1(self.webpackChunkinventis_front_end_boilerplate=self.webpackChunkinventis_front_end_boilerplate||[]).push([[7886],{67886:function(e,t,n){"use strict";n.r(t);n(73210);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"options",{containerSelector:"[data-address-list-item]",removeTriggerSelector:"[data-remove-item]",idAttribute:"data-id",popupAttribute:"data-confirmation-popup"}),i(this,"element",void 0),i(this,"removeTriggerElement",void 0),this.onRemoveClick=this.onRemoveClick.bind(this),this.element=t,this.setup()}var t,n,o;return t=e,(n=[{key:"setup",value:function(){this.removeTriggerElement=this.element.querySelector(this.options.removeTriggerSelector),this.attachEventListeners()}},{key:"destroy",value:function(){this.detachEventListener()}},{key:"attachEventListeners",value:function(){this.removeTriggerElement.addEventListener("click",this.onRemoveClick)}},{key:"detachEventListener",value:function(){this.removeTriggerElement.removeEventListener("click",this.onRemoveClick)}},{key:"onRemoveClick",value:function(e){var t=this;e.preventDefault();var n=this.createDialog();document.querySelector("[data-popup-dialogs]").appendChild(n),n.showModal(),n.addEventListener("close",(function(e){return t.onDialogClose(e)}),{once:!0})}},{key:"onDialogClose",value:function(e){"confirm"===e.target.returnValue&&this.element.dispatchEvent(new CustomEvent("remove-address",{bubbles:!0,detail:{id:this.element.getAttribute(this.options.idAttribute)}})),e.target.parentElement.removeChild(e.target)}},{key:"createDialog",value:function(){var e=this.element.getAttribute(this.options.popupAttribute),t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=function(e){return new o(e)}},76091:function(e,t,n){var r=n(76530).PROPER,i=n(47293),o=n(81361);e.exports=function(e){return i((function(){return!!o[e]()||"â á "!=="â á "[e]()||r&&o[e].name!==e}))}},53111:function(e,t,n){var r=n(1702),i=n(84488),o=n(41340),a=n(81361),u=r("".replace),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),v=function(e){return function(t){var n=o(i(t));return 1&e&&(n=u(n,l,"")),2&e&&(n=u(n,c,"")),n}};e.exports={start:v(1),end:v(2),trim:v(3)}},81361:function(e){e.exports="\t\n\v\f\r  áââââââ ââââââ¯âã\u2028\u2029\ufeff"},73210:function(e,t,n){"use strict";var r=n(82109),i=n(53111).trim;r({target:"String",proto:!0,forced:n(76091)("trim")},{trim:function(){return i(this)}})}}]); 2//# sourceMappingURL=7886.b0fc7d28.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.