1"use strict";(self.webpackChunkOnlinePets_Storefront=self.webpackChunkOnlinePets_Storefront||[]).push([[828],{828:(t,e,n)=>{n.r(e),n.d(e,{default:()=>M});var r=n(9857),o=n(3517),i=n.n(o);const a="stateChange";var u=n(2525);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 s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}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 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 p(t,e,n){return e=v(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,y()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=v(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}},d.apply(null,arguments)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function w(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(O(t,e))}function g(t,e,n){return t.set(O(t,e),n),n}function O(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 k=new WeakMap,S=new WeakMap,j=new WeakMap,E=new WeakMap,P=new WeakMap,A=new WeakMap,C=new WeakMap,_=new WeakMap,M=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return w(t=p(this,e,[].concat(r)),k,void 0),w(t,S,void 0),w(t,j,void 0),w(t,E,void 0),w(t,P,void 0),w(t,A,void 0),w(t,C,[]),w(t,_,[]),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&&b(t,e)}(e,t),n=e,(r=[{key:"bind",value:function(t){d(v(e.prototype),"bind",this).call(this,t);var n=this.el.getElementByRef("video-placeholder");if(!n)throw new Error("A placeholder is required to lazy load the video");g(k,this,n);var r=this.el.getElementByRef("video-container");if(!r)throw new Error("A container is required to load the video");g(S,this,r);var o=this.el.dataset.videoId;if(!o)throw new Error("A video id is required");g(j,this,o),g(E,this,this.load.bind(this)),m(k,this).addEventListener(u.A.CLICK,m(E,this));try{g(C,this,JSON.parse(this.el.dataset.pauseOn))}catch(t){}try{g(_,this,JSON.parse(this.el.dataset.stopOn))}catch(t){}var i,a=s(m(C,this));try{for(a.s();!(i=a.n()).done;){var c=i.value;this.addListener(c,this.pause)}}catch(t){a.e(t)}finally{a.f()}var l,f=s(m(_,this));try{for(f.s();!(l=f.n()).done;){var h=l.value;this.addListener(h,this.stop)}}catch(t){f.e(t)}finally{f.f()}}},{key:"handleYoutubeStateChangeEvents",value:function(t){}}
1,{key:"load",value:function(){m(P,this)||(g(P,this,i()(m(S,this).id,{videoId:this.el.dataset.videoId})),g(A,this,this.handleYoutubeStateChangeEvents.bind(this)),m(P,this).on(a,m(A,this)),this.play())}},{key:"play",value:function(){m(P,this).playVideo()}},{key:"pause",value:function(){m(P,this)&&m(P,this).pauseVideo()}},{key:"stop",value:function(){m(P,this)&&m(P,this).stopVideo()}},{key:"destroy",value:function(){m(k,this).removeEventListener(u.A.CLICK,m(E,this)),d(v(e.prototype),"destroy",this).call(this)}}])&&f(n.prototype,r),o&&f(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.uA)}}]); 2//# sourceMappingURL=f704f29423ced403.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.