1(()=>{var __webpack_modules__={
1"./src/js/helpers/format-money.js":((__unused_webpack_module,__webpack_exports__2,__webpack_require__2)=>{"use strict";__webpack_require__2.r(__webpack_exports__2),__webpack_require__2.d(__webpack_exports__2,{formatMoney:()=>formatMoney});var formatMoney=function(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));var placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||"${{amount}}";function defaultTo(value2,defaultValue){return value2==null||value2!==value2?defaultValue:value2}function formatWithDelimiters(number,precision,thousands,decimal){if(precision=defaultTo(precision,2),thousands=defaultTo(thousands,","),decimal=defaultTo(decimal,"."),isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollarsAmount=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),centsAmount=parts[1]?decimal+parts[1]:"";return dollarsAmount+centsAmount}var value="";switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_space_separator":value=formatWithDelimiters(cents,2," ",".");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,",",".");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0," ");break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break}return formatString.indexOf("with_comma_separator")!==-1,formatString.replace(placeholderRegex,value)}}),
vendor: 4,134 bytes, line 1
1"./src/js/modules/ed-quantity-change-observer.js":((__unused_webpack_module,__webpack_exports__2,__webpack_require__2)=>{"use strict";__webpack_require__2.r(__webpack_exports__2);var _helpers_format_money__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__2("./src/js/helpers/format-money.js");function _typeof(obj){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj2){return typeof obj2}:function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call=="function"))return call;if(call!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o2){return o2.__proto__||Object.getPrototypeOf(o2)}
1,_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var QuantityChangeObserver=(function(_HTMLElement){_inherits(QuantityChangeObserver2,_HTMLElement);var _super=_createSuper(QuantityChangeObserver2);function QuantityChangeObserver2(){var _this;_classCallCheck(this,QuantityChangeObserver2);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=_super.call.apply(_super,[this].concat(args)),_defineProperty(_assertThisInitialized(_this),"_",void 0),_this}return _createClass(QuantityChangeObserver2,[{key:"connectedCallback",value:function(){this._attachSelectors(),this._attachListeners(),this.currentQuantity=1;try{this.currentSinglePrice=document.querySelector("[data-ed-price]").dataset.edPrice,this.currentComparePrice=document.querySelector("[data-ed-compare-price]").dataset.edComparePrice,this.convertPrices()}catch{}}},{key:"_attachSelectors",value:function(){this.productInfoContainer=document.querySelector(".product__info")}},{key:"_attachListeners",value:function(){document.addEventListener("variant:changed",this.onVariantChange.bind(this)),document.addEventListener("ed:qty:change",this.onQuantityChange.bind(this)),document.addEventListener("ed:qty:discount:change",this.onQuantityDiscountsChange.bind(this))}},{key:"onVariantChange",value:function(e){var newVariant=e.detail.variant;this.currentVariant=newVariant,this.currentSinglePrice=newVariant.price,this.currentComparePrice=newVariant.compare_at_price?newVariant.compare_at_price:newVariant.price,this.convertPrices(),this.updatePrices(),document.querySelector(".ed-quantity-discounts")&&this.renderPrices()}},{key:"onQuantityChange",value:function(e){this.currentQuantity=e.detail.value,this.convertPrices(),this.updatePrices()}},{key:"updatePrices",value:function(){this.priceContainer=this.productInfoContainer.querySelector(".price.price--large"),this.comparePriceContainer=this.productInfoContainer.querySelector(".price.price--compare"),this.savingsContainer=this.productInfoContainer.querySelector(".ed-save-amount");var finalPrice=this.calculatePrice(this.currentSinglePrice,this.currentQuantity),finalComparePrice=this.calculateComparePrice(this.currentComparePrice,this.currentQuantity),finalSavings=this.calculateSavings(this.currentSinglePrice,this.currentComparePrice,this.currentQuantity);this.priceContainer&&(this.priceContainer.innerHTML=finalPrice),this.comparePriceContainer&&(this.comparePriceContainer.innerHTML=finalComparePrice),this.savingsContainer&&(this.savingsContainer.innerHTML=finalSavings),(!this.currentComparePrice||this.currentComparePrice-this.currentSinglePrice<=0)&&this.savingsContainer&&(this.savingsContainer.parentElement.style.display="none")}},{key:"calculateSavings",value:function(price,comparePrice,quantity){comparePrice=parseFloat(comparePrice)*quantity,price=parseFloat(price)*quantity,this.qtyDiscountValue&&(price=price*(1-parseFloat(this.qtyDiscountValue)/100));var savings=comparePrice-price;return(0,_helpers_format_money__WEBPACK_IMPORTED_MODULE_0__.formatMoney)(savings,window.elbDevCustom.moneyFormat)}},{key:"calculatePrice",value:function(price,quantity){var finalPrice=parseFloat(quantity)*parseFloat(price);return this.qtyDiscountValue&&(finalPrice=finalPrice*(1-parseFloat(this.qtyDiscountValue)/100)),(0,_helpers_format_money__WEBPACK_IMPORTED_MODULE_0__.formatMoney)(finalPrice,window.elbDevCustom.moneyFormat)}},{key:"calculateComparePrice",value:function(price,quantity){var finalPrice=parseFloat(quantity)*parseFloat(price);return(0,_helpers_format_money__WEBPACK_IMPORTED_MODULE_0__.formatMoney)(finalPrice,window.elbDevCustom.moneyFormat)}},{key:"onQuantityDiscountsChange",value:function(e){this.currentQuantity=e.detail.value,this.qtyDiscountType=e.detail.discountType,this.qtyDiscountValue=e.detail.discountValue,this.qtyDiscountValue||console.log("xxx"),this.updatePrices(),this.renderPrices()}},{key:"renderPrices",value:function(){var productPrices=document.querySelector("[data-product-price-list]");if(productPrices)if(productPrices.innerHTML="",console.log("price",this.currentComparePrice,this.currentSinglePrice,this.qtyDiscountValue),this.currentComparePrice>this.currentSinglePrice||this.qtyDiscountValue){var comparePrice;this.currentComparePrice?comparePrice=this.currentComparePrice:comparePrice=this.currentSinglePrice,productPrices.innerHTML+='<span class="price price--highlight price--large"><span class="visually-hidden">'.concat(window.themeVariables.strings.productSalePrice,"</span>").concat(this.calculatePrice(this.currentSinglePrice,this.currentQuantity),"</span>"),productPrices.innerHTML+='<span class="price price--compare"><span class="visually-hidden">'.concat(window.themeVariables.strings.productRegularPrice,"</span>").concat(this.calculateComparePrice(comparePrice,this.currentQuantity),"</span>");var savings=this.calculateSavings(this.currentSinglePrice,comparePrice,this.currentQuantity);if(savings!==0){document.querySelectorAll("[data-product-label-list]").forEach(function(element){return element.remove()});var saveLabel=this.createSaveLabel(this.calculateSavings(this.currentSinglePrice,comparePrice,this.currentQuantity)),priceList=productPrices;priceList.parentNode.insertBefore(saveLabel,priceList.nextSibling)}}else productPrices.innerHTML+='<span class="price '.concat(this.priceClass,'"><span class="visually-hidden">').concat(window.themeVariables.strings.productSalePrice,"</span>").concat(this.calculatePrice(this.currentSinglePrice,this.currentQuantity),"</span>")}},{key:"createSaveLabel",value:function(savings){var saveLabel=document.createElement("div");return saveLabel.className="product-meta__label-list label-list",saveLabel.dataset.productLabelList="",saveLabel.innerHTML='<span class="label label--highlight">(Du sparst <span class="ed-save-amount">'+savings+"</span>)</span>",saveLabel}},{key:"convertPrices",value:function(){this.currentComparePrice=parseFloat(this.currentComparePrice),this.currentSinglePrice=parseFloat(this.currentSinglePrice)}}]),QuantityChangeObserver2})(_wrapNativeSuper(HTMLElement));customElements.define("ed-quantity-change-observer",QuantityChangeObserver)}),
vendor: 4,153 bytes, line 1
1"./src/js/modules/ed-quantity-discounts.js":(()=>{function _typeof(obj){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj2){return typeof obj2}:function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call=="function"))return call;if(call!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}var QuantityDiscounts=(function(_HTMLElement){_inherits(QuantityDiscounts2,_HTMLElement);var _super=_createSuper(QuantityDiscounts2);function QuantityDiscounts2(){return _classCallCheck(this,QuantityDiscounts2),_super.apply(this,arguments)}
1return _createClass(QuantityDiscounts2,[{key:"connectedCallback",value:function(){this._attachSelectors(),this._attachListeners()}},{key:"_attachSelectors",value:function(){this.quantityInput=this.querySelector("input"),this.quantityItems=this.querySelectorAll(".quantity-item")}},{key:"_attachListeners",value:function(){var _this=this;this.quantityItems.forEach(function(item){item.addEventListener("click",_this.onQuantityItemClick.bind(_this)),item.dataset.preselect==="true"&&_this.applyPreSelect(item)})}},{key:"onQuantityItemClick",value:function(e){var _this2=this;this.quantityItems.forEach(function(item){item.classList.remove("selected"),e.target===item&&(item.classList.add("selected"),_this2.quantityInput.value=item.dataset.qty,document.dispatchEvent(new CustomEvent("ed:qty:discount:change",{detail:{value:item.dataset.qty,discountType:item.dataset.discountType,discountValue:item.dataset.discountValue}})))})}},{key:"applyPreSelect",value:function(element){var _this3=this;this.quantityItems.forEach(function(item){item.classList.remove("selected"),element===item&&(item.classList.add("selected"),_this3.quantityInput.value=item.dataset.qty,setTimeout(function(){document.dispatchEvent(new CustomEvent("ed:qty:discount:change",{detail:{value:item.dataset.qty,discountType:item.dataset.discountType,discountValue:item.dataset.discountValue}}))}.bind(_this3)))})}}]),QuantityDiscounts2})(_wrapNativeSuper(HTMLElement));customElements.define("ed-quantity-discounts",QuantityDiscounts)}),
vendor: 4,845 bytes, line 1
1"./src/js/modules/ed-video-component.js":(()=>{function _typeof(obj){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj2){return typeof obj2}:function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call=="function"))return call;if(call!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}class EdVideoThumbnail extends HTMLElement{constructor(){super(),this.popUp=document.querySelector(".video-popup-container"),this.popUpVideo=this.popUp.querySelector(".video-container"),this.openButton=this.querySelector(".btn-open"),this.closeButton=this.popUp.querySelector(".btn-close"),this.playButton=this.querySelector(".play-btn"),this.popUp&&document.querySelector("ed-video-popup").setAttribute("enabled",""),this._attachListeners()}get videoSrc(){return this.getAttribute("video-src")||""}_attachListeners(){document.addEventListener("keydown",this.closeOnEsc.bind(this)),this.openButton.addEventListener("click",this.openPopup.bind(this)),this.playButton.addEventListener("click",this.openPopup.bind(this)),this.closeButton.addEventListener("click",this.closePopup.bind(this))}openPopup(e){e.stopPropagation(),this.createVideo(),this.popUp.classList.add("open"),document.documentElement.classList.add("ed-video-popup-open")}
1closePopup(e){e.stopPropagation(),this.popUpVideo.innerHTML="",this.popUp.classList.remove("open"),document.documentElement.classList.remove("ed-video-popup-open")}closeOnEsc(e){e.key==="Escape"&&(this.popUpVideo.innerHTML="",document.documentElement.classList.remove("ed-video-popup-open"),this.popUp.classList.remove("open"))}createVideo(){this.popUpVideo.innerHTML="";const videoUrl=this.videoSrc.trim();if(this.isYouTubeUrl(videoUrl)){const iframe=document.createElement("iframe");iframe.src=this.getYouTubeEmbedUrl(videoUrl),iframe.width="100%",iframe.height="100%",iframe.allowFullscreen=!0,iframe.allow="autoplay; encrypted-media",this.popUpVideo.appendChild(iframe)}else{const video=document.createElement("video");video.src=videoUrl,video.autoplay=!0,video.controls=!0,this.popUpVideo.appendChild(video)}}isYouTubeUrl(url){return url.includes("youtube.com/watch?v=")||url.includes("youtu.be/")}getYouTubeEmbedUrl(url){let videoId;return url.includes("youtu.be/")?videoId=url.split("youtu.be/")[1].split("?")[0]:url.includes("youtube.com/watch?v=")&&(videoId=new URL(url).searchParams.get("v")),`https://www.youtube.com/embed/${videoId}?autoplay=1`}}customElements.define("ed-video-thumbnail",EdVideoThumbnail);class EdVideoPopup extends HTMLElement{constructor(){super()}}customElements.define("ed-video-popup",EdVideoPopup)})
1},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.exports}__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";var __webpack_exports__2={};/*!**************************!*\ 2 !*** ./src/js/custom.js ***! 3 \**************************/__webpack_require__.r(__webpack_exports__2);var _modules_ed_video_component__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/js/modules/ed-video-component.js"),_modules_ed_video_component__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_modules_ed_video_component__WEBPACK_IMPORTED_MODULE_0__),_modules_ed_quantity_discounts__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/js/modules/ed-quantity-discounts.js"),_modules_ed_quantity_discounts__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_modules_ed_quantity_discounts__WEBPACK_IMPORTED_MODULE_1__),_modules_ed_quantity_change_observer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/js/modules/ed-quantity-change-observer.js")})(),(()=>{"use strict";/*!******************************!*\ 4 !*** ./src/scss/custom.scss ***! 5 \******************************/__webpack_require__.r(__webpack_exports__)})()})(); 6//# sourceMappingURL=/cdn/shop/t/4/assets/ed-custom.js.map?v=111153952331888122641756323275
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.