text: !function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/packs/",t(t.s=15)}({15:function(e,n){function t(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.links=document.querySelectorAll(".add_fields"),this.iterateLinks()}var n,r,i;return n=e,(r=[{key:"iterateLinks",value:function(){var e=this;0!==this.links.length&&this.links.forEach((function(n){n.addEventListener("click",(function(t){e.handleClick(n,t)}))}))}},{key:"handleClick",value:function(e,n){if(e&&n){n.preventDefault();var t=(new Date).getTime(),r=e.dataset.id,i=r?new RegExp(r,"g"):null,o=i?e.dataset.fields.replace(i,t):null;o&&e.insertAdjacentHTML("beforebegin",o)}}}])&&t(n.prototype,r),i&&t(n,i),e}();window.addEventListener("turbolinks:load",(function(){return new r}))}});
  //# sourceMappingURL=addFields-e739f56c18c15c3fb62f.js.map