1"use strict";(self.webpackChunkOnlinePets_Storefront=self.webpackChunkOnlinePets_Storefront||[]).push([[389],{6080:(t,e,n)=>{n.d(e,{A:()=>c});const r="ie11";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var c=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},n=[{key:"getContent",value:function(t){var e=document.documentElement;if(e){var n=null;if(n=e.classList.contains(r)?t:t.content){var o=n.firstElementChild;if(o)return o.cloneNode(!0);throw new Error("There is no content in the template")}throw new Error("Could not get the content of the template")}throw new Error("There is no present HTML tag")}}],(e=null)&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},389:(t,e,n)=>{n.r(e),n.d(e,{default:()=>w});var r=n(9857),o=n(6080),i=n(2525),u=n(8161);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function l(t,e,n){return e=p(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function b(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function m(t,e){return t.get(v(t,e))}function v(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,w=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];return b(t=l(this,e,[].concat(u)),d,void 0),n=t,o=void 0,(r=h(r="confirmButton"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(r=[{key:"bind",value:function(t){var n,r,o;s(p(e.prototype),"bind",this).call(this,t),"true"===this.el.dataset.render&&(this.render(),this.setUp(),n=d,r=this,o=this.accept.bind(this),n.set(v(n,r),o),this.confirmButton&&this.confirmButton.addEventListener(i.A.CLICK,m(d,this)))}},{key:"render",value:function(){this.el.appendChild(o.A.getContent(this.el.firstElementChild)),this.el.firstElementChild&&this.el.removeChild(this.el.firstElementChild)}},{key:"setUp",value:function(){this.confirmButton=this.el.getElementByRef("confirm-button")}},{key:"accept",value:function(){this.notify(u.A.ACCEPT_DISCLAIMER),this.el.firstElementChild&&this.notify(u.A.TOGGLE_MODAL,{id:this.el.firstElementChild.id})}},{key:"destroy",value:function(){s(p(e.prototype),"destroy",this).call(this),this.confirmButton&&this.confirmButton.removeEventListener(i.A.CLICK,m(d,this))}}])&&f(n.prototype,r),c&&f(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,c}(r.uA)}}]); 2//# sourceMappingURL=d210c77aec432c71.bundle.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.