1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0d2e2785-15d0-4b97-bfa3-212d474b80ce",e._sentryDebugIdIdentifier="sentry-dbid-0d2e2785-15d0-4b97-bfa3-212d474b80ce")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4253],{24253:(e,t,r)=>{r.d(t,{G8:()=>_,VV:()=>d,ZQ:()=>p});var i=r(72378),a=r(78666),n=r(65694),l=r(79490),u=r(82466);let s=e=>e?.images?.find(e=>!!e&&!e.startsWith("files/"))||e?.mediaGalleryEntries?.[0]?.file||"",o="",c=e=>{if(!e?.items?.length)return{id:e?.id??"",products_ids:[],products_price:[],products_quantity:[],product_sku:[],colour:[],brand:[],title:[],rrp:[],name:[],gender:[],magento_products_id:[],size:[],master_category:[],basketParams:[],basketURL:"",total_items:e?.total_quantity??0,total_value:e?.prices?.grand_total?.value??0,currency:e?.prices?.grand_total?.currency??""};let t=e.items.reduce((e,t)=>{let{prices:r,quantity:i,product:a,variant_sku:l}=t;e.products_ids.push(a?.sku),e.products_price.push(r?.price_including_tax?.value),e.products_quantity.push(i),e.product_sku.push(l),e.master_category.push((0,n.KP)(t?.custom_data,"breadcrumb")||""),e.colour.push(a?.colour_attribute_text),e.brand.push(a?.brand),e.title.push(a?.name),e.magento_products_id.push(a?.id),e.size.push(t?.configurable_options[0]&&t?.configurable_options[0]?.value_label||""),e.gender.push((0,n.KP)(t?.custom_data,"metadata_gender")||"");let u=(0,n.lM)((0,n.KP)(t?.custom_data,"breadcrumb")),s=t?.product?.variants?.find(e=>e?.product?.sku===t?.variant_sku),o=(0,n.ww)(s?.product?.rrp,r?.price_including_tax?.value),c=new URL(a.url_key,window.location.origin),d={...u,...o,rrp:s?.product?.rrp,image_url:(e=>{let t=e?.images;if(t){let e=Object.keys(t).find(e=>{let r=t[e];return null!=r&&"__typename"!==e&&"Images"!==e&&!String(r).startsWith("files/")});if(e)return t[e]}return e?.media_gallery_entries?.[0]?.file||""})(a),url:c.href};Object.keys(d).forEach(t=>{e[t]?e[t].push(d[t]):e[t]=[d[t]]});let _=`${l}|${a?.sku}|${i}`;return e.basketParams?e.basketParams.push(_):e.basketParams=[_],e},{products_ids:[],products_price:[],products_quantity:[],product_sku:[],colour:[],brand:[],title:[],rrp:[],name:[],gender:[],magento_products_id:[],size:[],master_category:[],basketParams:[]}),r="";if(t.basketParams.length>0){let e=t.basketParams.map((e,t)=>`productId${t+1}=${e}`).join("&");r=`${window.location.origin}/cart/?${e}`}return{id:e.id,...t,basketURL:r,total_items:e.total_quantity,total_value:e.prices?.grand_total?.value,currency:e.prices?.grand_total?.currency}},d=e=>({algolia_id:(()=>{let e=i.A.get("_ALGOLIA");if(e)return o=e,e;try{(0,a.Ay)("getUserToken",null,(e,t)=>{e||null==t||(o=String(t))})}catch{}return o})(),statsig_stable_id:e?.statsig?.stableID||"",statsig_session_id:e?.statsig?.session?.data?.sessionID||"",google_cookie:function(){let e=document.cookie.match(/_ga=([^;]+)/);return e?e[1]:""}(),site:e?.storeName||window.location.origin,customer_status:e?.isAuthenticated?"registered":"guest",user_agent:window.navigator.userAgent,customer_email:e?.email||(()=>{let e=window?.ometria?.getIdentity?.();if(e)return e;let t=i.A.get("ometria");if(!t)return null;let r={};return t.split(/\s*&\s*/).forEach(e=>{let t=e.split(/\s*=\s*/);r[decodeURIComponent(t[0])]=decodeURIComponent(t.splice(1).join("="))}),r?.uiid||null})()||(()=>{try{let e=i.A.get("sscinf");if(!e)return null;return JSON.parse((0,l.YZ)(e,"6fab42a591c00ff120ecd2e217ec01776298a44f4fcffc764a66bbe9ffbf15f9","6fab42a591c00ff120ecd2e217ec0177"))?.email}catch{return null}})()||""}),_=(e,t)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,data:{...t,url:t?.url||window.location.href}})};class p{constructor(){this.name="tealium",this.beginCheckoutCache=new Set,this.track={purchase:async(e,t)=>{let r=e?.cart;if(!r)return;let i=c(r);i.basketURL="";let a=g(r);a&&this.beginCheckoutCache.delete(a),this.sendEvent("tealium_purchase",{order_number:e?.orderNumber||e?.order_number||"",payment_method:e?.paymentMethod||e?.payment_method||"",...i,...d(t)})},beginCheckout:async(e,t)=>{if(!e?.cart)return;let r=g(e.cart);
1!(r&&this.beginCheckoutCache.has(r))&&(this.sendEvent("tealium_begin_checkout",{...c(e.cart),...d(t)}),r&&this.beginCheckoutCache.add(r))},pageView:async e=>{u.v.debug("Tracking page view event on Tealium",e)},signUp:async e=>{u.v.debug("Tracking sign up event on Tealium",e)},viewItem:async(e,t)=>{if(!e?.product)return;let r=e.product,i=r.listPageId||"";this.sendEvent("tealium_pdp_view",{id:r.sku||"",title:r.name||"",price:r.price??"",rrp:r.rrp??"",quantity:r.metadata?.product_data?.quantity||"",master_category:i,colour:r.colour||"",gender:r.gender||"",magento_product_id:r.productId||"",brand:r.brand||"",...(0,n.ww)(r.rrp,r.price),product_image:s(r),...(0,n.lM)(i),...d(t)})},sizeSelection:async(e,t)=>{if(!e?.product||!e?.size)return;let r=e.product,i=r.listPageId||"";this.sendEvent("tealium_size_selection",{id:r.sku||"",sku:e.variantSku||"",title:r.name||"",quantity:"",price:r.price??"",magento_product_id:r.productId||"",rrp:r.rrp??"",...(0,n.ww)(r.rrp,r.price),colour:r.colour||"",master_category:i,...(0,n.lM)(i),size:e.size||"",gender:r.gender||"",brand:r.brand||"",product_image:s(r),...d(t)})},cartView:async(e,t)=>{e?.cart&&this.sendEvent("tealium_cart_view",{...c(e.cart),...d(t)})},cartChange:async(e,t)=>{e?.cart&&this.sendEvent("tealium_cart_data",{...c(e.cart),...d(t)})},cartAddItem:async(e,t)=>{this.sendEvent("tealium_cart_add_item",{...e?.itemData,...d(t)})},cartRemoveItem:async(e,t)=>{this.sendEvent("tealium_cart_remove_item",{...e?.itemData,...d(t)})},cartUpdateItem:async(e,t)=>{this.sendEvent("tealium_cart_update_item",{...e?.itemData,...d(t)})},plpView:async(e,t)=>{let{category:r,product_count:i,page_number:a}=e||{},l=(0,n.lM)(r?.list_page_id||"");this.sendEvent("tealium_plp_view",{category_title:r?.plp_heading||r?.display_name||r?.name||"",page_number:a??1,product_count:i??0,...l,...d(t)})},plpInteraction:async(e,t)=>{let{facet_header:r,facet_value:i}=e||{};(r||i)&&this.sendEvent("tealium_facet_click",{facet_header:r||"",facet_value:i||"",...d(t)})},searchInteraction:async(e,t)=>{let{facet_header:r,facet_value:i}=e||{};r&&this.sendEvent("tealium_facet_click",{facet_header:r||"",facet_value:i||"",...d(t)})},searchFirstInteraction:async(e,t)=>{this.sendEvent("tealium_search",{search_term:e?.search_term,...d(t)})},addToWishlist:async(e,t)=>{let r=e?.eventData||{},i=r.master_category||"";this.sendEvent("tealium_add_to_wishlist",{id:r.sku||e?.product_id||"",title:r.title||"",price:r.price??"",rrp:r.rrp??"",colour:r.colour||"",master_category:i,...(0,n.lM)(i),...(0,n.ww)(r.rrp,r.price),gender:r.gender||"",brand:r.brand||"",product_image:r.product_image||"",source:e?.source||"",...d(t)})},removeFromWishlist:async(e,t)=>{let r=e?.eventData||{},i=r.master_category||"";this.sendEvent("tealium_remove_from_wishlist",{id:r.sku||e?.product_id||"",title:r.title||"",price:r.price??"",rrp:r.rrp??"",colour:r.colour||"",master_category:i,...(0,n.lM)(i),...(0,n.ww)(r.rrp,r.price),gender:r.gender||"",brand:r.brand||"",product_image:r.product_image||"",...d(t)})},wishlistChange:async e=>{this.sendEvent("tealium_wishlist_data",(e=>{let t=Array.isArray(e)?e:[],r=t.reduce((e,t)=>{let r=t?.master_category??t?.list_page_id??"",i=(0,n.lM)(r),a=(0,n.ww)(t?.rrp,t?.price);return e.products_ids.push(t?.sku??""),e.product_sku.push(t?.sku??""),e.products_price.push(t?.price??""),e.products_quantity.push(1),e.title.push(t?.name??""),e.name.push(t?.name??""),e.brand.push(t?.brand??""),e.image_url.push(t?.image??""),e.rrp.push(t?.rrp??""),e.gender.push(t?.gender??""),e.master_category.push(r),e.list_page_id.push(i.list_page_id),e.lpid_level_1.push(i.lpid_level_1),e.lpid_level_2.push(i.lpid_level_2),e.lpid_level_3.push(i.lpid_level_3),e.lpid_level_4.push(i.lpid_level_4),e.discount_percentage.push(a.discount_percentage),e.discount_value.push(a.discount_value),e},{products_ids:[],product_sku:[],products_price:[],products_quantity:[],title:[],name:[],brand:[],image_url:[],rrp:[],gender:[],master_category:[],list_page_id:[],lpid_level_1:[],lpid_level_2:[],lpid_level_3:[],lpid_level_4:[],discount_percentage:[],discount_value:[]}),i=t.reduce((e,t)=>e+(Number(t?.price)||0),0);return{...r,total_items:t.length,total_value:Number(i.toFixed(2)),currency:t[0]?.currency||"",url:window.location.href}})(e?.products||[]))},wishlistAddedFromEmail:async(e,t)=>{this.sendEvent("tealium_wishlist_added_from_email",{product_id:e?.product_ids||[],source:e?.source||"email_link",...d(t)})},wishlistPageViewed:async(e,t)=>{let r=e||{};this.sendEvent("tealium_wishlist_page_viewed",{...r,product_ids:r.product_id||[],title:r.product_title||[],product_prices:r.product_price||[],rrps:r.product_rrp||[],brands:r.product_brand||[],colours:r.product_colour||[],genders:r.product_gender||[],source:r.source||"",...d(t)})},navigationClick:async(e,t)=>{let r=e||{},i=Object.keys(r).reduce((e,t)=>
1(t.startsWith("level_")&&(e[t]=r[t]),e),{});this.sendEvent("tealium_navigation_click",{...i,option_click:r.option_click,option_url:r.url,...d(t)})},homePageView:async(e,t)=>{this.sendEvent("tealium_home_page",{...d(t)})}}}async initialize(){}isEnabled(){return!0}async sendEvent(e,t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,data:{...t,url:t?.url||window.location.href}})}}function g(e){let t=e?.id||e?.uid;return"string"==typeof t&&t.length>0?t:null}},65694:(e,t,r)=>{r.d(t,{Al:()=>f,DE:()=>n,DW:()=>v,FL:()=>g,IO:()=>l,KP:()=>i,P$:()=>w,Tc:()=>s,UK:()=>h,ep:()=>b,fm:()=>_,iE:()=>d,lM:()=>u,oQ:()=>m,sY:()=>y,us:()=>a,ww:()=>o});let i=(e,t)=>{let r=e?.find(e=>e?.key===t);return r?r?.value:void 0},a=(e,t)=>{let r=e?.find(e=>e?.key===t);try{return r?JSON.parse(r?.value):void 0}catch(e){console.error("Error parsing JSON:",e);return}};function n(e,t){try{if(!e)return null;let r=e.split("|").map(e=>e.split(":")).find(([e,r])=>e===t&&r);return r?r[1]:null}catch{return null}}let l=e=>{if(!e)return{};let t=e.price?.price??e.price??void 0,r=e.price?.rrp??e.rrp??void 0;return{sku:e.sku,title:e.title??e.name,price:t,rrp:r,colour:e.colour??e.color,master_category:e.list_page_id??e.listPageId,gender:e.gender,brand:e.brand,product_image:e.image_url??e.imageUrl??e.image}},u=e=>{try{let t=e.split(">").map(e=>e.trim());return{list_page_id:e,lpid_level_1:t[0]||"",lpid_level_2:t[1]||"",lpid_level_3:t[2]||"",lpid_level_4:t[3]||""}}catch{return{list_page_id:e||"",lpid_level_1:"",lpid_level_2:"",lpid_level_3:"",lpid_level_4:""}}},s=e=>{let t=Number(e);return null==e||Number.isNaN(t)?"":t.toFixed(2)},o=(e,t)=>{if(!e||!t)return{discount_percentage:"",discount_value:""};let r=Number(e)-Number(t),i=(r/Number(e)*100).toFixed(2);return{discount_percentage:`${i}%`,discount_value:r.toFixed(2)}},c=e=>{if(!e)return{};let t=e.product,r=Array.isArray(t?.dimensions)?t.dimensions:[];if((!r||0===r.length)&&Array.isArray(t?.variants)){let i=e.variant_sku||t?.sku,a=t.variants.find(e=>e?.product?.sku===i);Array.isArray(a?.product?.dimensions)&&(r=a.product.dimensions)}return d(r)},d=e=>Array.isArray(e)&&0!==e.length?e.reduce((e,t)=>(t?.key&&t?.value&&(e[t.key]=t.value),e),{}):{},_=(e,t,r)=>{let a=e?.product,n=a?.variants?.find(t=>t?.product?.sku===e?.variant_sku),l=r?.price??e?.prices?.price_including_tax?.value,s=n?.product?.rrp,c=(e=>Array.isArray(e)?e.filter(Boolean).map(e=>({key:e?.key??"",value:e?.value??""})):[])(e?.custom_data),d=i(c,"breadcrumb")||"",_=i(c,"metadata_gender")||"";return{id:a?.sku||"",sku:e?.variant_sku||"",title:a?.name||"",price:l??"",magento_product_id:a?.id||"",rrp:s??"",quantity:t??e?.quantity??1,...o(s,l),master_category:d,...u(d),colour:r?.colour??(a?.colour_attribute_text||""),size:e?.configurable_options?.[0]?.value_label||"",gender:_,brand:a?.brand||"",product_image:n?.product?.images?.main_image||a?.images?.main_image||n?.product?.small_image?.url||""}},p=e=>e?.product?.gtm_category||"",g=(e,t={})=>{let r=Array.isArray(e?.items)?e?.items:[];if(!r.length)return null;let i={action:t.action||"checkout",step:t.step??1};return void 0!==t.option&&(i.option=t.option),{checkout:{actionField:i,products:r.filter(Boolean).map(e=>{let t=e?.product??null,r=e?.prices?.price_including_tax??null,i=t?.sku||e?.variant_sku||"",a=p(e);return{name:t?.name??"",id:i,price:r?.value??null,category:a,list:a,quantity:e?.quantity??0,...c(e)}}),currencyCode:e?.prices?.grand_total?.currency||e?.prices?.subtotal_including_tax?.currency||r[0]?.prices?.price_including_tax?.currency||""}}},m=(e,t={})=>{if(!e)return null;let r=(Array.isArray(e.items)?e.items:[]).filter(Boolean).map(e=>{let t=e?.product??null,r=e?.prices?.price_including_tax??null,i=p(e),{variant:a,variantId:n}=(e=>({variant:(Array.isArray(e?.configurable_options)?e.configurable_options:[]).filter(Boolean).map(e=>e?.option_label&&e?.value_label?`${e.option_label}: ${e.value_label}
1`:"").filter(Boolean).join(","),variantId:e?.variant_sku||""}))(e);return{name:t?.name??"",id:t?.sku||e?.variant_sku||"",price:r?.value!==void 0&&r?.value!==null?String(r.value):"",category:i,list:i,quantity:e?.quantity!==void 0?String(e?.quantity):"0",variant:a,variantId:n,...c(e)}}),i=e?.prices?.subtotal_excluding_tax?.value??null,a=e?.applied_coupons?.[0]?.code||"",n=e?.prices?.applied_taxes?.[0]?.amount?.value??null,l=e?.shipping_addresses?.[0]?.selected_shipping_method?.amount?.value??null,u=e?.prices?.subtotal_excluding_tax?.currency||e?.prices?.subtotal_including_tax?.currency||e?.prices?.grand_total?.currency||"";return{purchase:{actionField:{id:t.orderNumber||"",affiliation:t.affiliation||"",revenue:null!==i?String(i):"",coupon:a,tax:null!==n?String(n):"",shipping:null!==l?String(l):""},products:r},currencyCode:u}};function h(e,t){let r=e?.id||e?.uid;return r?`${r}::${void 0!==t?t:1}`:null}function y(e,t){let r=t?.id||t?.uid;if(r)for(let t of Array.from(e))t.startsWith(`${r}::`)&&e.delete(t)}function v({origin:e,origin_url:t,origin_plp:r}){let i,a="__navigation_origin_state__",n=sessionStorage.getItem(a);try{i=n?{...JSON.parse(n)}:{}}catch(e){console.error("Error parsing navigation state:",e),i={}}let l=(()=>{try{let e=document.referrer;return e?new URL(e):null}catch(e){return console.error("Invalid referrer URL:",e),null}})();e&&(i.origin=e),(r||null===r)&&(i.origin_plp=r),t?i.origin_url=t:i.origin_url=i.origin_url||location.pathname,r||null===r||i.origin_plp||l?.origin===window.location.origin||(i.origin_plp="direct"),e||i.origin||l?.origin===window.location.origin||(i.origin="direct",i.origin_plp=null),sessionStorage.setItem(a,JSON.stringify(i))}let f=(e,t)=>!!e&&(!!e.includes("/c/")||!!e.includes("/search/"))&&(v({origin_plp:`navigation_${t??""}`}),!0),b=()=>{let e;try{e=(e=sessionStorage.getItem("__navigation_origin_state__"))?JSON.parse(e):null}catch(t){console.error("Error accessing session storage:",t),e=null}return e?{origin:e.origin,origin_url:e.origin_url,origin_plp:e.origin_plp}:{}},w=(e={})=>{let{origin:t,origin_url:r,origin_plp:i}=e??{},a=[];return t&&a.push({key:"origin",value:t}),r&&a.push({key:"origin_url",value:r}),i&&a.push({key:"origin_plp",value:i}),a}},82466:(e,t,r)=>{r.d(t,{v:()=>u});var i=r(95704);(function(){let e=i.env.LOG_LEVEL?.toLowerCase();"debug"===e||"info"===e||"warn"===e||"error"===e})();let a="sslogs",n={debug:"log",info:"info",warn:"warn",error:"error"};class l{shouldLog(e){try{let e=new URLSearchParams(window.location.search).get(a);if("true"===e)return localStorage.setItem(a,"true"),!0;if("false"===e)return localStorage.removeItem(a),!1;return"true"===localStorage.getItem(a)}catch{return!1}}emit(e,t,r,i){if(!this.shouldLog(e))return;let a=function(e,t,r,i){let a={timestamp:new Date().toISOString(),level:e,context:t,message:r,env:"client"};return 1===i.length?a.data=i[0]:i.length>1&&(a.data=i),a}(e,t,r,i);console[n[e]](JSON.stringify(a,null,2))}debug(e,t,...r){this.emit("debug",e,t,r)}info(e,t,...r){this.emit("info",e,t,r)}warn(e,t,...r){this.emit("warn",e,t,r)}error(e,t,...r){this.emit("error",e,t,r)}cartDebug(e,t){this.debug("Cart",e,t)}checkoutDebug(e,t){this.debug("Checkout",e,t)}storeDebug(e,t){this.debug("Store",e,t)}}let u=new l}}]);
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.