1import{V as p,h as u,u as g,v as h,B as b}from"./Ct8m0tvh.js";const P=()=>{const{GTMPushCustom:t}=b(),{user:a}=p(),l=u("localReferrer"),{siteUrl:m,brandName:o}=g().public,r=u("cart"),s=h(()=>({customer_number:a?.value?.customerNumber,aller_id:a?.value?.allerId,email_address:r?.value?.billingAddress?.email||a?.value?.email,first_name:r?.value?.billingAddress?.firstName||a?.value?.firstName,last_name:r?.value?.billingAddress?.lastName||a?.value?.lastName,city:r?.value?.billingAddress?.city||a?.value?.city,country:r?.value?.billingAddress?.countryCode||a?.value?.countryCode,phone_number:r?.value?.billingAddress?.phoneNumber||a?.value?.phoneNumber}));return{transformToCommerceItem:(e,i,n,d,c,v=void 0,_=1)=>({item_id:e.advantagePromotionCode,item_name:e.title,affiliation:void 0,coupon:void 0,discount:void 0,index:n,item_brand:e.brand?.title,item_category:void 0,item_category2:void 0,item_category3:void 0,item_category4:void 0,item_category5:void 0,item_list_id:d,item_list_name:c,item_variant:i?.advantage?.choiceCode,location_id:void 0,price:i?.price?.currentPrice,quantity:_,first_delivery:v,media_source:"shop",product_type:e.type,is_gift:!!e.isGift,price_info:i?.price}),pushPageView:e=>{t("page_view",{...e,brand_name:o||void 0,page_referrer:l.value===window.location.pathname+window.location.search?document.referrer?document.referrer:void 0:m+l.value,user_logged_in:!!a.value,user_data:s.value})},pushCommerce:(e,i,n={})=>{window.dataLayer||=[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:e,ecommerce:i,brand_name:o||void 0,...n})},pushElement:(e,i)=>{t(e,{brand_name:o||void 0,...i})},pushUser:e=>{t(e,s.value)},userData:s}};export{P as u};
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.