1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67246,e=>{"use strict";let t=Number(e.i(47167).default.env.API_TIMEOUT_MS)||9e4,r=(e,t,r,o=null,n=!1)=>Object.assign(Error(e),{name:"ApiRequestError",status:t,requestId:o,isNetworkError:n,details:{...r,status:r?.status??t}}),o=e=>"number"==typeof e?.status?e.status:"number"==typeof e?.details?.status?e.details.status:null,n=e=>e?.isNetworkError===!0||0===o(e),a=e=>{let t=o(e);return null!==t&&t>=500},i=async(e,t,o)=>{let n=e.status,a=e.headers?.get("x-request-id")||null,i=`API ${t} ${o} failed with ${n}${e.statusText?` ${e.statusText}`:""}`,p=null;try{p=await e.text()}catch{p=null}if(p)try{let e=JSON.parse(p);if(e&&"object"==typeof e&&!Array.isArray(e))return r(i,n,e,a)}catch{}return r(i,n,{status:n},a)};async function p(e,o,n,a=new Headers,d={}){let c,u=d&&Object.keys(d).length?this.serializeQueryParams(d):null,s=o+(u?"?"+u:""),g=new Headers(a),m=((e,t)=>{let r=t.get("Content-Type");if("multipart/form-data"===r){let r=new FormData;for(let t in e)r.append(t,e[t]);return t.delete("Content-Type"),r}if("application/json"===r&&e&&Object.keys(e).length>0)return JSON.stringify(e)})(n,g);this.headers&&this.headers.length>0&&this.headers.forEach(e=>{g.append(e.name,e.value)});try{c=await fetch(s,{method:e,headers:g,body:m,signal:AbortSignal.timeout(t)})}catch(o){let t=o instanceof Error?o.message:String(o??"");throw r(`API ${e} ${s} failed to reach the server: ${t}`,0,{status:0,name:"NETWORK_ERROR"},null,!0)}if(204===c.status)return c;if(!c.ok)throw await i(c,e,s);if(!(c.headers?.get("Content-Type")||"").includes("application/json"))return c;try{return await c.json()}catch(t){throw r(`API ${e} ${s} returned ${c.status} with an invalid JSON body`,c.status,{name:"INVALID_JSON_RESPONSE",description:"Neplatna JSON odpoved zo servera"},c.headers?.get("x-request-id")||null)}}e.s(["getErrorRequestId",0,e=>e?.requestId??null,"getErrorStatus",0,o,"isAuthError",0,e=>{let t=o(e);return 401===t||403===t},"isNetworkError",0,n,"isNotFoundError",0,e=>404===o(e),"isRetriableError",0,e=>n(e)||a(e),"isServerError",0,a,"patchedRequest",()=>p])},68683,e=>{"use strict";var t=e.i(42090);function r(e){return(0,t.prop)(e,"main_good.currency.id")||(0,t.prop)(e,"currency")}function o(e){if(!e||!(0,t.prop)(e,"values")&&!(0,t.prop)(e,"value"))return"";let r=(0,t.prop)(e,"attrib_unit");if(e.value)return r?`${e.value} ${r}`:e.value;if((0,t.prop)(e,"values").length>1)return(0,t.prop)(e,"values").map(e=>{let o=(0,t.prop)(e,"translations.0.attrib_value")||(0,t.prop)(e,"attrib_value");return r?`${o} ${r}`:o}).join("<br> ");let o=(0,t.prop)(e,"values.0.translations.0.attrib_value")||(0,t.prop)(e,"values.0.attrib_value");return r?`${o} ${r}`:o}function n(e){return(0,t.prop)(e,"rangeAttribs")&&(0,t.prop)(e,"product_publish_url")?(0,t.prop)(e,"publish.0.product_name")||(0,t.prop)(e,"name")||(0,t.prop)(e,"product_name"):(0,t.prop)(e,"publish.0.product_name")||(0,t.prop)(e,"product_name")||(0,t.prop)(e,"name")}function a(e){return(0,t.prop)(e,"product_publish_url")||(0,t.prop)(e,"publish.0.product_url")||(0,t.prop)(e,"publish.0.url")||(0,t.prop)(e,"product_detail.url")||(0,t.prop)(e,"product_url")||(0,t.prop)(e,"url")||(0,t.prop)(e,"product.publish.0.url")||(0,t.prop)(e,"product.url")}e.s(["prepareProductForFbMarketing",0,(e,r,o)=>{if(!e||!e.goods&&!e.main_good_price&&!e.price)return{};let a=o&&e.goods?e.goods.find(e=>e.good_id===o):(0,t.prop)(e,"main_good");return{content_type:"product",content_ids:(0,t.prop)(e,"product_id")||(0,t.prop)(e,"id"),content_name:n(e),currency:(0,t.prop)(a,"currency_id")||(0,t.prop)(e,"currency.id"),value:(0,t.round)((0,t.prop)(a,"final_price")||(0,t.prop)(e,"main_good_price")||(0,t.prop)(e,"price")||0,2)}},"prepareProductForMarketing",0,(e,r,a,i="",p=0)=>{if(!e||!e.goods&&!e.sum_price&&!e.main_good_price&&!e.price&&!e.totalprice)return{};let d=a&&e.goods?e.goods.find(e=>e.good_id===a):(0,t.prop)(e,"main_good"),c=(0,t.prop)(d,"on_stock_count"),u=!!(0,t.prop)(e,"product"),s={name:n(e)||n((0,t.prop)(e,"product")),id:(0,t.prop)(e,"product_id")||(0,t.prop)(e,"product.product_id")||(0,t.prop)(e,"id"),price:(0,t.round)(u?(0,t.prop)(e,"good.final_price"):(0,t.prop)(d,"final_price")||(0,t.prop)(e,"main_good_price")||(0,t.prop)(e,"price")||(0,t.prop)(e,"unitprice")||0,2),brand:(0,t.prop)(e,"brand.brand_name")||(0,t.prop)(e,"brand")||(0,t.prop)(e,"product.brand")||"",category:(0,t.prop)(e,"breadCrumbs")?(0,t.prop)(e,"breadCrumbs").map(e=>e.url):[],variant:(0,t.prop)(d,"web_attribs.length")?(0,t.prop)(d,"web_attribs").map(e=>o(e)).join(", "):""};return r>0?s.quantity=r:s.stocklevel=c||"",i&&(s.list=i),p&&(s.position=p),s},"prepareProductForMarketingNew",0,(e,r,a,i="",p=0)=>
1{if(!e||!e.goods&&!e.sum_price&&!e.main_good_price&&!e.price&&!e.totalprice)return{};let d=a&&e.goods?e.goods.find(e=>e.good_id===a):(0,t.prop)(e,"main_good");(0,t.prop)(d,"on_stock_count");let c=!!(0,t.prop)(e,"product"),u={name:n(e)||n((0,t.prop)(e,"product")),id:((0,t.prop)(e,"product_id")||(0,t.prop)(e,"product.product_id")||(0,t.prop)(e,"id")||"").toString(),price:(0,t.round)(c?(0,t.prop)(e,"good.final_price"):(0,t.prop)(d,"final_price")||(0,t.prop)(e,"main_good_price")||(0,t.prop)(e,"price")||(0,t.prop)(e,"unitprice")||0,2).toString(),brand:(0,t.prop)(e,"good_details_json.brand_name")?(0,t.prop)(e,"good_details_json.brand_name"):(0,t.prop)(e,"brand.brand_name")?(0,t.prop)(e,"brand.brand_name"):(0,t.prop)(e,"product.brand.brand_name")?(0,t.prop)(e,"product.brand.brand_name"):"string"==typeof(0,t.prop)(e,"product.brand")?(0,t.prop)(e,"product.brand"):"string"==typeof(0,t.prop)(e,"brand")?(0,t.prop)(e,"brand"):"",category:(0,t.prop)(e,"good_details_json.category_text")?(0,t.prop)(e,"good_details_json.category_text"):e.category_text?e.category_text:(0,t.prop)(e,"product.category_text")?(0,t.prop)(e,"product.category_text"):(0,t.prop)(e,"breadCrumbs")?(0,t.prop)(e,"breadCrumbs").map(e=>e.url):[],variant:(0,t.prop)(d,"web_attribs.length")?(0,t.prop)(d,"web_attribs").map(e=>o(e)).join(", "):(0,t.prop)(e,"attribs_name")||""};return r>0&&(u.quantity=r),i&&(u.list=i),p&&(u.position=p),u},"resolveProductCurrency",()=>r,"resolveProductName",()=>n,"resolveProductUrlString",()=>a])},85635,e=>{"use strict";e.i(61244),e.s(["BLOG_ARTICLES_LIMIT",0,15,"CART_DATA_STATE",0,"getCart","DATALAYER_PRODUCTS_COOKIE",0,"dataLayerProducts","defaultSortOption",0,"available_desc_price_desc"])},17929,(e,t,r)=>{"use strict";function o(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}Object.defineProperty(r,"__esModule",{value:!0}),r.getImagePath=r.addVat=r.removeVat=r.slugify=r.text2ascii=r.round=r.prop=void 0,r.prop=(e,t,r=null)=>{let o=t.split(".").reduce((e,t)=>null==e?r:e[t],e);return void 0===o?r:o},r.round=o,r.text2ascii=e=>e?e.replace(/[áà ãâäÄ]/gi,"a").replace(/[Äç]/gi,"c").replace(/[Ä]/gi,"d").replace(/[éèêÄ]/gi,"e").replace(/[Ãìïî]/gi,"i").replace(/[ľĺ]/gi,"l").replace(/[ñÅ]/gi,"n").replace(/[óòöôõ]/gi,"o").replace(/[Å]/gi,"r").replace(/[Å¡ÈÅÅ]/gi,"s").replace(/[ťţ]/gi,"t").replace(/[úùüûů]/gi,"u").replace(/[ý]/gi,"y").replace(/[ž]/gi,"z").replace(/[^\x20-\x7E]/g,""):"",r.slugify=function(e){return e?r.text2ascii(e).toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""):""},r.removeVat=(e,t,r=!1,n=2)=>{let a=e/(1+t/100);return r?o(a,n):a},r.addVat=(e,t,r=!1,n=2)=>{let a=e*(1+t/100);return r?o(a,n):a},r.getImagePath=(e,t,{width:r,height:o}={width:64,height:80},n=!1,a=!1,i=!1)=>0===o?`${e}${t}&width=${r}&webp=${+!!a}${i?"&type=cover":""}`:n?`${e}${t}&webp=${+!!a}${i?"&type=cover":""}`:`${e}${t}&width=${r}&height=${o}&webp=${+!!a}${i?"&type=cover":""}`},89533,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fbInitiateCheckout=r.fbPurchase=r.fbAddToWishlist=r.fbAddToCart=r.fbViewItem=void 0;let o=e.r(17929);r.fbViewItem=function(e){e&&0!==Object.keys(e).length&&window.fbq&&window.fbq("track","ViewContent",{value:o.round(o.prop(e,"main_good.final_price"),2),currency:o.prop(e,"main_good.currency.id")||"EUR",content_type:"product",content_ids:[`${o.prop(e,"product_id")}`]})},r.fbAddToCart=function(e){e&&0!==Object.keys(e).length&&window.fbq&&window.fbq("track","AddToCart",{content_name:o.prop(e,"product_name")||o.prop(e,"name"),value:o.round(o.prop(e,"main_good.final_price"),2),currency:o.prop(e,"main_good.currency.id")||"EUR",content_type:"product",content_ids:[`${o.prop(e,"product_id")}`]})},r.fbAddToWishlist=function(e){e&&0!==Object.keys(e).length&&window.fbq&&window.fbq("track","fbAddToWishlist",{content_name:o.prop(e,"product_name")||o.prop(e,"name"),value:o.round(o.prop(e,"main_good.final_price"),2),currency:o.prop(e,"main_good.currency.id")||"EUR",content_type:"product",content_ids:[`${o.prop(e,"product_id")}`]})},r.fbPurchase=function(e){if(e&&0!==Object.keys(e).length&&window.fbq){let t=[],r=[];e.items&&e.items.length&&e.items.map(e=>{o.prop(e,"product_id")&&(t.push({id:o.prop(e,"product_id"),quantity:o.prop(e,"quantity")}),r.push(`${o.prop(e,"product_id")}`))}),window.fbq("track","Purchase",{value:e.order_tprice,currency:o.prop(e,"order_tpricecurrency")||"EUR",contents:t,content_type:"product",content_ids:r})}},r.fbInitiateCheckout=function(e){if(e&&0!==Object.keys(e).length&&window.fbq){let t=[],r=[];e.items&&e.items.length&&e.items.map(e=>{o.prop(e,"product.product_id")&&(t.push({id:o.prop(e,"product.product_id"),quantity:o.prop(e,"count")}),r.push(`${o.prop(e,"product.product_id")}`))}),window.fbq("track","InitiateCheckout",{value:e.total_price,currency:o.prop(e,"currency")||"EUR",contents:t,content_type:"product",content_ids:r})}}},22699,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.ga4ViewCategory=r.ga4Purchase=r.ga4AddPaymentInfo=r.ga4AddShippingInfo=r.ga4BeginCheckout=r.ga4AddToCart=r.ga4ViewItem=r.gaViewCategory=r.gaConversion=r.gaPurchase=r.gaAddToCart=r.gaViewItem=void 0;let o=e.r(17929);r.gaViewItem=function(e,t,r){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","view_item",{send_to:t,value:o.round(o.prop(e,"main_good.final_price"),2),items:[{id:r||o.prop(e,"product_id"),google_business_vertical:"retail"},{id:r||o.prop(e,"product_id"),google_business_vertical:"custom"}]})},r.gaAddToCart=function(e,t,r){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","add_to_cart",{send_to:t,value:o.round(o.prop(e,"main_good.final_price"),2),items:[{id:r||o.prop(e,"product_id"),google_business_vertical:"retail"},{id:r||o.prop(e,"product_id"),google_business_vertical:"custom"}]})},r.gaPurchase=function(e,t,r){if(e&&0!==Object.keys(e).length&&window.gtag){let n=[];e.items&&e.items.length&&e.items.map(e=>{n.push({id:r||o.prop(e,"product_id"),google_business_vertical:"retail"}),n.push({id:r||o.prop(e,"product_id"),google_business_vertical:"custom"})}),window.gtag("event","purchase",{send_to:t,value:e.order_tprice,items:n})}},r.gaConversion=function(e,t){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","conversion",{send_to:t,value:e.order_tprice,currency:e.order_tpricecurrency,transaction_id:e.order_nr})},r.gaViewCategory=function(e,t){if(e&&1!==Object.keys(e).length&&window.gtag){let r=e.products.reduce((e,t)=>e+=o.prop(t,"main_good.final_price"),0),n=[];e.products&&e.products.length&&e.products.map(e=>{n.push({id:o.prop(e,"product_id"),google_business_vertical:"retail"}),n.push({id:o.prop(e,"product_id"),google_business_vertical:"custom"})});let a={send_to:t,value:o.round(r,2),items:n};window.gtag("event","view_item_list",a)}},r.ga4ViewItem=function(e,t,r="EUR"){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","view_item",{send_to:t,currency:r,items:[{item_id:o.prop(e,"product_id"),item_name:o.prop(e,"name"),price:o.round(o.prop(e,"main_good.final_price"),2)}]})},r.ga4AddToCart=function(e,t,r,o,n,a="EUR"){e&&window.gtag&&window.gtag("event","add_to_cart",{send_to:n,items:[{item_id:e,item_name:t,quantity:r,price:o,currency:a}]})},r.ga4BeginCheckout=function(e,t,r="EUR"){if(e&&window.gtag){let n=e.map(e=>({item_id:o.prop(e,"good.product_id"),item_name:o.prop(e,"product.name"),quantity:o.prop(e,"count"),price:o.prop(e,"good.final_price")}));window.gtag("event","begin_checkout",{send_to:t,currency:r,items:[...n]})}},r.ga4AddShippingInfo=function(e,t,r,n="EUR"){if(e&&window.gtag){let a=e.map(e=>({item_id:o.prop(e,"good.product_id"),item_name:o.prop(e,"product.name"),quantity:o.prop(e,"count"),price:o.prop(e,"good.final_price")}));window.gtag("event","add_shipping_info",{send_to:r,currency:n,items:[...a],shipping_tier:t})}},r.ga4AddPaymentInfo=function(e,t,r,o="EUR"){if(e&&window.gtag){let n=e.map(e=>({item_id:e.good.product_id,item_name:e.product.name,quantity:e.count,price:e.good.final_price}));window.gtag("event","add_payment_info",{send_to:r,currency:o,items:[...n],payment_type:t})}},r.ga4Purchase=function(e,t=0,r=0,o=0,n=0,a,i="EUR"){if(e&&window.gtag){let p=e.map(e=>({item_id:e.product_id,item_name:e.product_name,quantity:e.quantity,price:e.unitprice}));window.gtag("event","purchase",{send_to:a,currency:i,items:[...p],transaction_id:t,shipping:r,value:o,tax:n})}},r.ga4ViewCategory=function(e,t,r,n="EUR"){if(e&&1!==Object.keys(e).length&&window.gtag){let a=[];e.products&&e.products.length&&e.products.map(e=>{a.push({item_id:o.prop(e,"product_id"),item_name:o.prop(e,"name"),price:o.prop(e,"max_price"),currency:n})});let i={send_to:r,item_list_name:o.prop(t,"category_name"),item_list_id:o.prop(t,"category_id"),items:a};window.gtag("event","view_item_list",i)}}},19960,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ga4EventsViewSearchResults=r.ga4EventsAddPaymentInfo=r.ga4EventsAddShippingInfo=r.ga4EventsBeginCheckout=r.ga4EventsRemoveFromCart=r.ga4EventsAddToCart=r.ga4EventsViewCart=r.ga4EventsViewItemList=r.ga4EventsViewItem=void 0,r.ga4EventsViewItem=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","view_item",e)},r.ga4EventsViewItemList=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","view_item_list",e)},r.ga4EventsViewCart=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","view_cart",e)},r.ga4EventsAddToCart=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","add_to_cart",e)},r.ga4EventsRemoveFromCart=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","remove_from_cart",e)},r.ga4EventsBeginCheckout=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","begin_checkout",e)},r.ga4EventsAddShippingInfo=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","add_shipping_info",e)},r.ga4EventsAddPaymentInfo=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","add_payment_info",e)},r.ga4EventsViewSearchResults=function(e){e&&0!==Object.keys(e).length&&window.gtag&&window.gtag("event","view_search_results",e)}},96709,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.heurekaPurchase=void 0,r.heurekaPurchase=function(e){e&&0!==Object.keys(e).length&&window._hrq&&(window._hrq.push(["setOrderId",`${e.order_id}`]),e.items&&e.items.length&&e.items.map(e=>{window._hrq.push(["addProduct",e.product_name,`${e.totalprice}`,`${e.quantity}`,`${e.product_id}`])}),window._hrq.push(["trackOrder"]),window.trackHeurekaOrder&&window.trackHeurekaOrder())}},4266,(e,t,r)=>{"use strict";function o(e,t={}){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"trackFBPixel",fb_pixel_track_name:e,fb_pixel_track_info:t})}Object.defineProperty(r,"__esModule",{value:!0}),r.gaTrackFbRegister=r.gaTrackFbPurchase=r.gaTrackFbCartView=r.gaTrackFbProductView=r.gaTrackFbSearchView=r.gaTrackFbHomepageView=r.gaAdsRemarketingOtherView=r.gaAdsRemarketingPurchaseView=r.gaAdsRemarketingCartView=r.gaAdsRemarketingProductView=r.gaAdsRemarketingCategoryView=r.gaAdsRemarketingSearchView=r.gaAdsRemarketingHomeView=r.gaTrackPromotionImpressions=r.gaTrackProductClick=r.gaTrackPromotionClick=r.gaPurchaseCustom=r.gaPurchaseObject=r.gaCheckoutStepCustom=r.gaCheckoutStepObject=r.gaAddToCartCustom=r.gaRemoveFromCartObject=r.gaAddToCartObject=r.gaViewItemImpresssionObject=r.gaViewProductGeneralObject=r.gaViewItemCustom=r.gaViewItemObject=void 0,r.gaViewItemObject=function(e,t=""){"u">typeof window&&window.dataLayer&&window.dataLayer.push({ecommerce:{detail:{products:e,actionField:{list:t}}},event:"enhancedEcommerceProductDetails"})},r.gaViewItemCustom=function(e,t="",r="EUR"){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"eec.detail",ecommerce:{currencyCode:r,detail:{actionField:{list:t},products:e}}})},r.gaViewProductGeneralObject=function(e){"u">typeof window&&window.dataLayer&&window.dataLayer.push({productDetails:e})},r.gaViewItemImpresssionObject=function(e,t="EUR"){"u">typeof window&&window.dataLayer&&window.dataLayer.push({ecommerce:{currencyCode:t,impressions:e},event:"enhancedEcommerceProductImpressions"})},r.gaAddToCartObject=function(e){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"addToCart",addToCart:e})},r.gaRemoveFromCartObject=function(e){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"removeFromCart",removeFromCart:e})},r.gaAddToCartCustom=function(e,t="",r="EUR"){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"eec.add",ecommerce:{currencyCode:r,add:{actionField:{list:t},products:e}}})},r.gaCheckoutStepObject=function(e){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"checkoutStep",checkoutStep:{step:e}})},r.gaCheckoutStepCustom=function(e,t=1,r="EUR",o=""){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"eec.checkout",ecommerce:{currencyCode:r,checkout:{actionField:{step:t,option:o},products:e}}})},r.gaPurchaseObject=function(e,t={}){"u">typeof window&&window.dataLayer&&(window.dataLayer.push({ecommerce:{purchase:{actionField:t,products:e}},event:"enhancedEcommercePurchase"}),window.dataLayer.push({event:"checkoutStep",checkoutStep:{step:4}}))},r.gaPurchaseCustom=function(e,t={},r={},o="EUR"){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"eec.purchase",ecommerce:{currencyCode:o,purchase:{actionField:t,products:e,customer:r}}})},r.gaTrackPromotionClick=function(e){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"promoClick",promotionClicked:e})},r.gaTrackProductClick=function(e){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"productClick",productClicked:e})},r.gaTrackPromotionImpressions=function(e,t){"u">typeof window&&window.dataLayer&&window.dataLayer.push({ecommerce:{promoView:{actionField:{list:t},promotions:e}},event:"enhancedEcommercePromotionImpressions"})},r.gaAdsRemarketingHomeView=function(){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"googleDynamicRemarketing",googleDynamicRemarketing:{ecomm_pagetype:"home"}})},r.gaAdsRemarketingSearchView=function(e,t){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"googleDynamicRemarketing",googleDynamicRemarketing:{ecomm_pagetype:"searchresults",ecomm_totalvalue:e,ecomm_prodid:t}})},r.gaAdsRemarketingCategoryView=function(e,t,r){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"googleDynamicRemarketing",googleDynamicRemarketing:{ecomm_pagetype:"category",ecomm_totalvalue:e,ecomm_prodid:t,ecomm_pcat:r}})},r.gaAdsRemarketingProductView=function(e,t,r,o){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"googleDynamicRemarketing",googleDynamicRemarketing:{ecomm_pagetype:"product",ecomm_totalvalue:e,ecomm_prodid:t,dynx_itemid:t,ecomm_pname:r,ecomm_pcat:o}})},r.gaAdsRemarketingCartView=function(e,t,r,o,n){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"googleDynamicRemarketing",googleDynamicRemarketing:{ecomm_pagetype:"cart",ecomm_totalvalue:e,ecomm_prodid:t,ecomm_pvalue:r,ecomm_pname:o,ecomm_pcat:n}})},r.gaAdsRemarketingPurchaseView=function(e,t){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"googleDynamicRemarketing",googleDynamicRemarketing:{ecomm_pagetype:"purchase",ecomm_totalvalue:e,ecomm_prodid:t}})},r.gaAdsRemarketingOtherView=function(){"u">typeof window&&window.dataLayer&&window.dataLayer.push({event:"googleDynamicRemarketing",googleDynamicRemarketing:{ecomm_pagetype:"other"}})},r.gaTrackFbHomepageView=function(){o("PageView",{})},r.gaTrackFbSearchView=function(e,t,r){o("Search",{value:e,currency:t,search_string:r})},r.gaTrackFbProductView=function(e,t,r,n){o("ViewContent",{value:e,currency:t,content_ids:[r],content_name:n,content_type:"product"})},r.gaTrackFbCartView=function(e,t,r,n,a){o("InitiateCheckout",{value:e,currency:t,num_items:r,content_type:n,content_ids:a})},r.gaTrackFbPurchase=function(e,t,r,n,a){o("Purchase",{value:e,currency:t,num_items:r,content_type:n,content_ids:a})},r.gaTrackFbRegister=function(e){o("CompleteRegistration",{value:"0.00",currency:e})}},81626,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.prepareProductDetailForMarketing=r.prepareProductForMarketing=r.prepareItemListForMarketing=r.prepareCartForMarketing=r.prepareOrderForMarketing=r.preparePromotionForMarketing=void 0;let o=e.r(17929);r.preparePromotionForMarketing=(e,t,n)=>{if(!t)return null;let a={creative_name:o.prop(t,"b_description")||"",creative_slot:o.prop(t,"b_position"),promotion_id:o.prop(t,"id"),promotion_name:o.prop(t,"b_name")};return n&&Array.isArray(n)&&n.length&&(a.items=n.map((t,n)=>r.prepareProductForMarketing(e,t,null,{quantity:o.prop(t,"quantity")||o.prop(t,"count"),idx:n})).filter(e=>e)),a},r.prepareOrderForMarketing=(e,t,n,a=!1)=>{if(!t)return null;let i=o.prop(t,"order_tprice")-o.prop(t,"order_tprice_without_vat"),p={transaction_id:o.prop(t,"order_nr"),value:o.prop(t,"total_items_price.priceWithoutVat")||o.prop(t,"order_tprice_without_vat"),tax:o.round(i,2),shipping:o.removeVat((o.prop(t,"delivery.delivery_price.price")||o.prop(t,"delivery.delivery_price"))+(o.prop(t,"payment.payment_price.price")||o.prop(t,"payment.payment_price")),o.prop(t,"delivery.vat_rate"),!0,2),currency:o.prop(t,"order_tpricecurrency"),coupon:o.prop(t,"payload.giftcards.0.card_number")||"",items:(o.prop(t,"items")||[]).map((t,a)=>r.prepareProductForMarketing(e,t,n,{quantity:o.prop(t,"quantity")||o.prop(t,"count"),idx:a})).filter(e=>e)};return a&&(p.email=o.prop(t,"address.person.email"),p.phone_number=o.prop(t,"address.person.phone"),p.address={first_name:o.prop(t,"address.person.name"),last_name:o.prop(t,"address.person.surname"),street:o.prop(t,"address.street"),city:o.prop(t,"address.city"),postal_code:o.prop(t,"address.zip"),country:o.prop(t,"address.country_code")}),void 0!==o.prop(t,"is_returning_customer")&&(p.new_customer=!o.prop(t,"is_returning_customer")),p},r.prepareCartForMarketing=(e,t,n,a,i,p=!1)=>{let d=n?r.prepareProductForMarketing(e,n,a,{quantity:o.prop(i,"quantity"),good:o.prop(n,"good"),item_list_name:o.prop(i,"item_list_name"),idx:o.prop(i,"idx")}):null,c={currency:o.prop(t,"currency")||o.prop(t,"order_tpricecurrency"),value:p?o.round(o.prop(d,"price")*o.prop(d,"quantity"),2):o.prop(t,"total_items_price.priceWithoutVat")||o.prop(t,"total_price_without_vat"),coupon:o.prop(t,"giftcards.0.card_number")||o.prop(t,"giftcards.0")||"",items:n?[d].filter(e=>e):(o.prop(t,"items")||[]).map((t,n)=>r.prepareProductForMarketing(e,t,a,{quantity:o.prop(i,"quantity")||o.prop(t,"quantity")||o.prop(t,"count"),idx:n,item_list_id:o.prop(i,"item_list_id")})).filter(e=>e)};return o.prop(i,"shipping_tier")&&(c.shipping_tier=o.prop(i,"shipping_tier")),o.prop(i,"payment_type")&&(c.payment_type=o.prop(i,"payment_type")),c},r.prepareItemListForMarketing=(e,t,n,a)=>a&&t&&t.length?{item_list_id:o.prop(a,"item_list_id")||o.slugify(o.prop(a,"item_list_name")),item_list_name:o.prop(a,"item_list_name"),items:t.map((t,i)=>r.prepareProductForMarketing(e,t,n,Object.assign(Object.assign({},a),{idx:o.prop(a,"idx")||0===o.prop(a,"idx")?o.prop(a,"idx"):i}))).filter(e=>e)}:null,r.prepareProductForMarketing=(e,t,r,n)=>{if(!t||o.prop(t,"is_meta_item"))return null;if(t.noRemap)return t;let a=o.prop(n,"good")||o.prop(t,"good")||o.prop(t,"good_details_json"),i=o.prop(a,"marketingParams.param1")||o.prop(t,"good.marketingParams.param1")||o.prop(t,"marketingParams.param1")||o.prop(t,"main_good.marketingParams.param1"),p=o.prop(t,"item.productId")||o.prop(t,"product.product_id")||o.prop(t,"product_id")||o.prop(a,"product_id"),d=o.prop(t,"plu")||o.prop(t,"product_plu")||o.prop(t,"productPlu")||o.prop(t,"good_details_json.productPlu")||o.prop(t,"product.plu")||p,c=o.prop(a,"good_id")||o.prop(t,"main_good.good_id")||o.prop(t,"good_id")||o.prop(t,"item.goodId")||"",u=o.prop(a,"good_id")||o.prop(a,"color")||o.prop(t,"product_detail.main_good.good_id")||o.prop(t,"main_good.good_id")||o.prop(t,"main_good.color")||o.prop(t,"product_detail.main_good.color")||o.prop(t,"good_id")||c||"",s=o.prop(t,"product.publish.0.product_name")||o.prop(t,"product_detail.publish.0.product_name")||o.prop(t,"publish.0.product_name")||o.prop(t,"product.name")||o.prop(t,"product_name")||o.prop(t,"name"),g=o.prop(t,"product.brand.brand_name")||o.prop(t,"brand.brand_name")||o.prop(t,"brand")||o.prop(t,"good_details_json.brand_name");"object"==typeof g&&(g="");let m=o.prop(n,"idx")||0,_=o.prop(n,"quantity")||o.prop(t,"quantity")||o.prop(t,"count")||1,l=(o.prop(t,"good_details_json.resolved_category_path")||o.prop(t,"product.publish.0.resolved_category_path")||o.prop(t,"resolved_category_path")||"").split(" | "),w=l&&l.length>0?l[l.length-1]:"",y=o.prop(t,"category_text")||w||o.prop(t,"category")||"",f=o.prop(t,"category2")||"",b=o.prop(a,"currency_id")||o.prop(t,"product_detail.main_good.currency_id")||o.prop(t,"main_good.currency_id")||o.prop(t,"main_good.currency")||o.prop(a,"currency")||o.prop(t,"good.currency_id")||o.prop(t,"currency"),h=o.prop(a,"vat_rate")||o.prop(t,"product_detail.main_good.vat_rate")||o.prop(t,"main_good.vat_rate")||o.prop(t,"main_good.vat_rate")||o.prop(t,"vat_rate"),v=o.prop(a,"oldprice")||o.prop(t,"product_detail.main_good.oldprice")||o.prop(t,"main_good.oldprice"),k=o.prop(t,"order_id")?o.prop(t,"totalprice")/_:o.prop(a,"final_price")||o.prop(t,"product_detail.main_good.final_price")||o.prop(t,"main_good.final_price")||o.prop(t,"main_good_price");k||(k=o.prop(t,"unitprice"));let P=o.prop(t,"order_id")?o.prop(t,"totalprice_without_vat")/_:o.prop(t,"item.productId")?o.round(o.prop(t,"priceWithoutVat"),2):o.prop(a,"final_price_without_vat")||o.prop(t,"product_detail.main_good.final_price_without_vat")||o.prop(t,"main_good.final_price_without_vat")||o.prop(t,"main_good_price_without_vat");P||(P=o.removeVat(k,h,!0,2)),o.round(v>0?o.removeVat(v,h):P,2);let O=v-k,C=`${p}-${c}`,j=r&&r[`${C}`],E=o.prop(j,"item_list_name")||o.prop(n,"item_list_name")||"",I=o.slugify(E)||"";return y||(y=o.prop(j,"category")||""),{item_id:d,item_name:s,affiliation:e,coupon:"",currency:b,discount:O>0?o.removeVat(O,h,!0,2):0,index:m,item_brand:g,item_category:y,item_category2:f,item_list_id:I,item_list_name:E,item_variant:u,location_id:"",price:P,quantity:_,param1:i}},r.prepareProductDetailForMarketing=(e,t,o,n)=>{let a=r.prepareProductForMarketing(e,t,o,n);return a?{currency:a.currency,value:a.price,items:[a]}:null}},28512,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.ga4EventsPromotion=r.ga4EventsRefund=r.ga4EventsPurchase=r.ga4CartEvent=r.ga4EventsItemDetail=r.ga4EventsItem=r.ga4EventsUniversalPush=void 0;let o=e.r(81626);function n(e,t,r=!1,o,a,i=!1,p=null){if("u">typeof window&&window.dataLayer&&e)if(r&&window.dataLayer.push({ecommerce:null}),i)o&&(e.enhanced_conversion_data=o),a&&(e.order_consent=a),window.gtag("event",t,e);else{let r={event:t,ecommerce:e};p&&(r.user_data=p),o&&(r.enhanced_conversion_data=o),a&&(r.order_consent=a),window.dataLayer.push(r)}}r.ga4EventsUniversalPush=n,r.ga4EventsItem=function(e,t,r,a,i){n(o.prepareItemListForMarketing(e,r,a,i),t,!0)},r.ga4EventsItemDetail=function(e,t,r,a,i){n(o.prepareProductDetailForMarketing(e,r,a,i),t,!0)},r.ga4CartEvent=function(e,t,r,a,i,p){n(o.prepareCartForMarketing(e,r,a,i,p,"add_to_cart"===t||"remove_from_cart"===t),t,!0)},r.ga4EventsPurchase=function(e,t,r,a){n(o.prepareOrderForMarketing(e,t,r,a),"purchase",!0)},r.ga4EventsRefund=function(e,t,r){n({},"refund",!0)},r.ga4EventsPromotion=function(e,t,r,a){n(o.preparePromotionForMarketing(e,r,a),t,!0)}},31905,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.prepareCartItemObject=r.prepareOrderItemObject=r.prepareOrderObject=void 0;let o=e.r(17929);r.prepareOrderObject=function(e,t){return{order_nr:e.order_nr,shopId:t,order_tprice:e.order_tprice,delivery_price:o.prop(e,"delivery.delivery_price",0),payment_price:o.prop(e,"payment.payment_price",0),delivery_addr_city:o.prop(e,"delivery.delivery_addr_city"),delivery_addr_country:o.prop(e,"delivery.delivery_addr_country")||"SK"}},r.prepareOrderItemObject=function(e,t){let r=o.prop(e,"good_details_json.resolved_category_path")||o.prop(e,"product.publish.0.resolved_category_path")||o.prop(e,"resolved_category_path")||"";return{order_nr:t,product_id:e.product_id,product_name:e.product_name,categoryPathString:r,unitprice:e.unitprice,quantity:e.quantity}},r.prepareCartItemObject=function(e,t,r){if(!e)return;let n=o.prop(e,"product.publish.0.product_name")||o.prop(e,"product_detail.publish.0.product_name")||o.prop(e,"publish.0.product_name")||o.prop(e,"product.name")||o.prop(e,"product_name")||o.prop(e,"name"),a=o.getImagePath(t,o.prop(e,"product.picture"),{width:320,height:320}),i=`${r}/${o.prop(e,"product.publish.0.url")||o.prop(e,"product_detail.publish.0.url")||o.prop(e,"publish.0.url")||o.prop(e,"product.url")||o.prop(e,"url")}`,p=o.prop(e,"product.publish.0.description")||o.prop(e,"product_detail.publish.0.description")||o.prop(e,"publish.0.description")||o.prop(e,"product.description")||o.prop(e,"description"),d=o.prop(e,"good.unitprice")||0;return{productId:o.prop(e,"product.product_id"),img_url:a,url:i,name:n,price:d,description:p}}},53019,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ecoTrackCart=r.ecomailPurchase=void 0;let o=e.r(31905);r.ecomailPurchase=function(e,t){var r;r=o.prepareOrderObject(e,t),window.ecotrack&&window.ecotrack("addTrans",r.order_nr,r.shopId,r.order_tprice,r.delivery_price,r.payment_price,r.delivery_addr_city,r.delivery_addr_country),e.items.forEach(t=>{var r;t.ordernr&&(r=o.prepareOrderItemObject(t,e.order_nr),window.ecotrack&&window.ecotrack("addItem",r.order_nr,r.product_id,r.product_name,r.categoryPathString,r.unitprice,r.quantity))}),window.ecotrack&&window.ecotrack("trackTrans")},r.ecoTrackCart=function(e,t,r){if(window.ecotrack){let n=e?e.items.map(e=>o.prepareCartItemObject(e,t,r)):[];window.ecotrack("trackUnstructEvent",{schema:"",data:{action:"Basket",products:n}})}}},82892,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dognetPurchase=void 0,r.dognetPurchase=function(e,t,r,o,n,a,i,p){if("u">typeof window&&window&&window.PostAffTracker&&e&&t&&r){window.PostAffTracker.setAccountId(e);let d=window.PostAffTracker.createSale();d.setCampaignID(t),d.setTotalCost(p),d.setData1(r),d.setOrderID(o),d.setProductID(n),d.setCoupon(a),d.setCurrency(i),window.PostAffTracker.register()}}},88293,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e.r(89533);Object.defineProperty(r,"fbPurchase",{enumerable:!0,get:function(){return o.fbPurchase}}),Object.defineProperty(r,"fbViewItem",{enumerable:!0,get:function(){return o.fbViewItem}}),Object.defineProperty(r,"fbAddToCart",{enumerable:!0,get:function(){return o.fbAddToCart}}),Object.defineProperty(r,"fbInitiateCheckout",{enumerable:!0,get:function(){return o.fbInitiateCheckout}});var n=e.r(22699);Object.defineProperty(r,"gaAddToCart",{enumerable:!0,get:function(){return n.gaAddToCart}}),Object.defineProperty(r,"gaPurchase",{enumerable:!0,get:function(){return n.gaPurchase}}),Object.defineProperty(r,"gaViewCategory",{enumerable:!0,get:function(){return n.gaViewCategory}}),Object.defineProperty(r,"gaViewItem",{enumerable:!0,get:function(){return n.gaViewItem}}),Object.defineProperty(r,"ga4ViewItem",{enumerable:!0,get:function(){return n.ga4ViewItem}}),Object.defineProperty(r,"ga4ViewCategory",{enumerable:!0,get:function(){return n.ga4ViewCategory}}),Object.defineProperty(r,"ga4AddToCart",{enumerable:!0,get:function(){return n.ga4AddToCart}}),Object.defineProperty(r,"ga4BeginCheckout",{enumerable:!0,get:function(){return n.ga4BeginCheckout}}),Object.defineProperty(r,"ga4AddShippingInfo",{enumerable:!0,get:function(){return n.ga4AddShippingInfo}}),Object.defineProperty(r,"ga4AddPaymentInfo",{enumerable:!0,get:function(){return n.ga4AddPaymentInfo}}),Object.defineProperty(r,"ga4Purchase",{enumerable:!0,get:function(){return n.ga4Purchase}}),Object.defineProperty(r,"gaConversion",{enumerable:!0,get:function(){return n.gaConversion}});var a=e.r(19960);Object.defineProperty(r,"ga4EventsViewItem",{enumerable:!0,get:function(){return a.ga4EventsViewItem}}),Object.defineProperty(r,"ga4EventsViewItemList",{enumerable:!0,get:function(){return a.ga4EventsViewItemList}}),Object.defineProperty(r,"ga4EventsViewCart",{enumerable:!0,get:function(){return a.ga4EventsViewCart}}),Object.defineProperty(r,"ga4EventsAddToCart",{enumerable:!0,get:function(){return a.ga4EventsAddToCart}}),Object.defineProperty(r,"ga4EventsRemoveFromCart",{enumerable:!0,get:function(){return a.ga4EventsRemoveFromCart}}),Object.defineProperty(r,"ga4EventsBeginCheckout",{enumerable:!0,get:function(){return a.ga4EventsBeginCheckout}}),Object.defineProperty(r,"ga4EventsAddShippingInfo",{enumerable:!0,get:function(){return a.ga4EventsAddShippingInfo}}),Object.defineProperty(r,"ga4EventsAddPaymentInfo",{enumerable:!0,get:function(){return a.ga4EventsAddPaymentInfo}});var i=e.r(96709);Object.defineProperty(r,"heurekaPurchase",{enumerable:!0,get:function(){return i.heurekaPurchase}});var p=e.r(4266);Object.defineProperty(r,"gaViewItemObject",{enumerable:!0,get:function(){return p.gaViewItemObject}}),Object.defineProperty(r,"gaAddToCartObject",{enumerable:!0,get:function(){return p.gaAddToCartObject}}),Object.defineProperty(r,"gaRemoveFromCartObject",{enumerable:!0,get:function(){return p.gaRemoveFromCartObject}}),Object.defineProperty(r,"gaCheckoutStepObject",{enumerable:!0,get:function(){return p.gaCheckoutStepObject}}),Object.defineProperty(r,"gaViewItemImpresssionObject",{enumerable:!0,get:function(){return p.gaViewItemImpresssionObject}}),Object.defineProperty(r,"gaPurchaseObject",{enumerable:!0,get:function(){return p.gaPurchaseObject}}),Object.defineProperty(r,"gaTrackPromotionClick",{enumerable:!0,get:function(){return p.gaTrackPromotionClick}}),Object.defineProperty(r,"gaViewItemCustom",{enumerable:!0,get:function(){return p.gaViewItemCustom}}),Object.defineProperty(r,"gaAddToCartCustom",{enumerable:!0,get:function(){return p.gaAddToCartCustom}}),Object.defineProperty(r,"gaCheckoutStepCustom",{enumerable:!0,get:function(){return p.gaCheckoutStepCustom}}),Object.defineProperty(r,"gaPurchaseCustom",{enumerable:!0,get:function(){return p.gaPurchaseCustom}}),Object.defineProperty(r,"gaAdsRemarketingOtherView",{enumerable:!0,get:function(){return p.gaAdsRemarketingOtherView}}),Object.defineProperty(r,"gaTrackFbHomepageView",{enumerable:!0,get:function(){return p.gaTrackFbHomepageView}}),Object.defineProperty(r,"gaTrackProductClick",{enumerable:!0,get:function(){return p.gaTrackProductClick}
1}),Object.defineProperty(r,"gaAdsRemarketingHomeView",{enumerable:!0,get:function(){return p.gaAdsRemarketingHomeView}}),Object.defineProperty(r,"gaTrackPromotionImpressions",{enumerable:!0,get:function(){return p.gaTrackPromotionImpressions}}),Object.defineProperty(r,"gaAdsRemarketingSearchView",{enumerable:!0,get:function(){return p.gaAdsRemarketingSearchView}}),Object.defineProperty(r,"gaAdsRemarketingPurchaseView",{enumerable:!0,get:function(){return p.gaAdsRemarketingPurchaseView}}),Object.defineProperty(r,"gaAdsRemarketingCategoryView",{enumerable:!0,get:function(){return p.gaAdsRemarketingCategoryView}}),Object.defineProperty(r,"gaAdsRemarketingProductView",{enumerable:!0,get:function(){return p.gaAdsRemarketingProductView}}),Object.defineProperty(r,"gaViewProductGeneralObject",{enumerable:!0,get:function(){return p.gaViewProductGeneralObject}}),Object.defineProperty(r,"gaAdsRemarketingCartView",{enumerable:!0,get:function(){return p.gaAdsRemarketingCartView}});var d=e.r(28512);Object.defineProperty(r,"ga4EventsUniversalPush",{enumerable:!0,get:function(){return d.ga4EventsUniversalPush}}),Object.defineProperty(r,"ga4EventsItem",{enumerable:!0,get:function(){return d.ga4EventsItem}}),Object.defineProperty(r,"ga4EventsItemDetail",{enumerable:!0,get:function(){return d.ga4EventsItemDetail}}),Object.defineProperty(r,"ga4CartEvent",{enumerable:!0,get:function(){return d.ga4CartEvent}}),Object.defineProperty(r,"ga4EventsPurchase",{enumerable:!0,get:function(){return d.ga4EventsPurchase}}),Object.defineProperty(r,"ga4EventsRefund",{enumerable:!0,get:function(){return d.ga4EventsRefund}}),Object.defineProperty(r,"ga4EventsPromotion",{enumerable:!0,get:function(){return d.ga4EventsPromotion}});var c=e.r(53019);Object.defineProperty(r,"ecomailPurchase",{enumerable:!0,get:function(){return c.ecomailPurchase}}),Object.defineProperty(r,"ecoTrackCart",{enumerable:!0,get:function(){return c.ecoTrackCart}});var u=e.r(82892);Object.defineProperty(r,"dognetPurchase",{enumerable:!0,get:function(){return u.dognetPurchase}})},20013,e=>{"use strict";var t=e.i(88293),r=e.i(81626);e.i(85635);var o=e.i(85070);let n=()=>(0,o.resolveBrandByHostname)(window.location.hostname);e.s(["sendGa4CartEvent",0,(e,o,a,i,p)=>{let d=(0,r.prepareCartForMarketing)(n(),o,a,i,p,"add_to_cart"===e||"remove_from_cart"===e);(0,t.ga4EventsUniversalPush)(d,e,!0,void 0,void 0,!0)},"sendGa4Purchase",0,(e,o,a=!1)=>{let i=(0,r.prepareOrderForMarketing)(n(),e,o,a);(0,t.ga4EventsUniversalPush)(i,"purchase",!0,void 0,void 0,!0)}])},69766,e=>{"use strict";var t=e.i(42090);let r=(e,t)=>{let r,o=Number.isFinite(r=Number(e))&&r>0?Math.round(100*r):void 0;return void 0!==o&&t?{amount:o,currency:String(t)}:{}},o=(e,t,r)=>({id:String(e),...t?{name:String(t)}:{},content_type:"product",quantity:Number(r)||1}),n=e=>(0,t.prop)(e,"publish.0.product_name")||(0,t.prop)(e,"name"),a=(e,t,r)=>{let o=()=>{window.oaiq&&(r?window.oaiq("measure",e,t,r):window.oaiq("measure",e,t))};window.oaiq||"complete"===document.readyState?o():window.addEventListener("load",o,{once:!0})};e.s(["sendOaiqCheckoutStarted",0,e=>a("checkout_started",{type:"contents",...r((0,t.prop)(e,"total_price_without_vat"),(0,t.prop)(e,"currency")),contents:(0,t.prop)(e,"items",[]).map(e=>o((0,t.prop)(e,"product.product_id"),n((0,t.prop)(e,"product")),(0,t.prop)(e,"count")))}),"sendOaiqContentsViewed",0,(e,i)=>a("contents_viewed",{type:"contents",...r((0,t.prop)(e,"main_good.final_price_without_vat"),i),contents:[o((0,t.prop)(e,"product_id"),n(e),1)]}),"sendOaiqItemsAdded",0,(e,i,p)=>{let d=(0,t.prop)(e,"items",[]).find(e=>Number((0,t.prop)(e,"good.good_id"))===Number(i.goodId));a("items_added",{type:"contents",...d?r((0,t.prop)(d,"good.final_price_without_vat")*i.count,(0,t.prop)(e,"currency")||p):{},contents:[o(i.productId,n((0,t.prop)(d,"product")),i.count)]})},"sendOaiqOrderCreated",0,e=>{let n=(0,t.prop)(e,"order_nr");a("order_created",{type:"contents",...r((0,t.prop)(e,"order_tprice_without_vat"),(0,t.prop)(e,"order_tpricecurrency")),contents:(0,t.prop)(e,"items",[]).filter(e=>!(0,t.prop)(e,"is_meta_item")).map(e=>o((0,t.prop)(e,"product_id"),(0,t.prop)(e,"product_name"),(0,t.prop)(e,"quantity")))},n?{event_id:String(n)}:void 0)},"sendOaiqPageViewed",0,()=>a("page_viewed",{type:"contents"})])}]);
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.