1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2155],{37601:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var a=n(27378),i=n(60042),o=n.n(i),r=n(41408),s=(0,r.iv)(["&.stepper-list{z-index:1;padding:",";display:flex;justify-content:space-between;align-items:center;margin:0 1rem;overflow:visible;position:relative;@media ","{max-width:40rem;margin:0 auto;padding:",";}&::before{content:'';position:absolute;top:5px;left:0;right:0;height:2px;background:",";}.stepper-label-wrapper{display:flex;flex-direction:column;align-items:start;justify-content:start;position:relative;overflow:visible;.stepper-list__dot{width:0.75rem;height:0.75rem;background-color:",";border-radius:100%;&.active{background-color:",";}}.stepper-list__label{position:absolute;top:20px;left:50%;color:#555;transform:translateX(-50%);&.active{color:",";}}}.stepper-progress{position:absolute;top:5px;left:0;height:2px;background:",";transition:width 0.3s ease;}}"],"0 ".concat(32,"px"),(function(e){return e.theme.mediaQuery.medium}),"0 ".concat(60,"px"),(function(e){var t,n;return null===e||void 0===e||null===(t=e.theme)||void 0===t||null===(n=t.colors)||void 0===n?void 0:n.GREY2}),(function(e){var t,n;return null===e||void 0===e||null===(t=e.theme)||void 0===t||null===(n=t.colors)||void 0===n?void 0:n.GREY2}),(function(e){var t,n;return null===e||void 0===e||null===(t=e.theme)||void 0===t||null===(n=t.colors)||void 0===n?void 0:n.BEO_BLACK}),(function(e){var t,n;return null===e||void 0===e||null===(t=e.theme)||void 0===t||null===(n=t.colors)||void 0===n?void 0:n.BEO_BLACK}),(function(e){var t,n;return null===e||void 0===e||null===(t=e.theme)||void 0===t||null===(n=t.colors)||void 0===n?void 0:n.BEO_BLACK})),l=n(34869),c=n(24246),d=function(e){var t=e.steps,n=e.className,i=void 0===n?"":n,r=e.activeStep,s=e.viewportInfo,l=e.edgeOffsetAtCenter,d=void 0!==l&&l,u=null===s||void 0===s?void 0:s.getIn(["isEqualOrLargerThan","medium"]),p=r/(t.length-1),v=(0,a.useMemo)((function(){var e=u?60:32;return d||[0,1].includes(p)?"min(calc(".concat(100*p,"% + ").concat(e,"px), 100%)"):"".concat(100*p,"%")}),[p,u]);return(0,c.jsxs)("div",{className:o()("stepper-list",i),children:[(0,c.jsx)("div",{className:"stepper-progress",style:{width:v}}),t.map((function(e,t){return(0,c.jsxs)("div",{className:"stepper-label-wrapper",children:[(0,c.jsx)("div",{className:o()("stepper-list__dot",{active:t<=r})}),(0,c.jsx)("div",{className:o()("stepper-list__label b3 small",{active:t<=r}),children:e})]},e)}))]})},u=(0,l.Z)(a.memo(d),s)},8150:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var a=n(27378),i=n(88038),o=n.n(i),r=n(43218),s=n.n(r),l=n(86677),c=n(62557),d=n(86107),u=n(3514),p=n(21318),v=n(50813),m=n(71250),g=n(37601),h=n(85193),C=n(50188),y=n(24246),b=(0,c.Z)((function(e){var t,n,i,r,c,b,f=e.secureCheckoutHeader,A=e.country,_=e.featureConfigs,E=e.isNativeMobileApp,L=e.locale,N=e.globalCMSLabels,w=e.viewportInfo,k=(0,l.useRouter)(),S=(0,a.useState)(1),P=S[0],I=S[1],O=null===_||void 0===_||null===(t=_.toJS())||void 0===t?void 0:t.find((function(e){return"includeGlobaleScriptOnAllPages"===(null===e||void 0===e?void 0:e.key)})),T=null===_||void 0===_||null===(n=_.toJS())||void 0===n||null===(i=n.find((function(e){return"globaleCssLink"===(null===e||void 0===e?void 0:e.key)})))||void 0===i||null===(r=i.value)||void 0===r?void 0:r.replace("{country}",A),D=null===_||void 0===_||null===(c=_.toJS())||void 0===c||null===(b=c.find((function(e){return"globaleScriptUrl"===(null===e||void 0===e?void 0:e.key)})))||void 0===b?void 0:b.value;(0,a.useEffect)((function(){var e=function(e){var t,n,a,i="string"===typeof(null===e||void 0===e?void 0:e.data)?JSON.parse(e.data):e.data;"ClientEvent"===(null===i||void 0===i?void 0:i.Key)&&"ButtonClicked"===(null===i||void 0===i||null===(t=i.Data)||void 0===t?void 0:t.eventName)&&"CustomerRegistration"===(null===i||void 0===i||null===(n=i.Data)||void 0===n||null===(a=n.eventData)||void 0===a?void 0:a.action)&&function(e){var t=(null===e||void 0===e?void 0:e.billingAddress)||{},n={firstName:t.BillingFirstName,lastName:t.BillingLastName,email:t.BillingEmail},a="/".concat(L,"/").concat(A.toLowerCase(),"/login"),i={pathname:"/[language]/[country]/login",query:{tab:"register",prefill:btoa(JSON.stringify(n))}};k.push(i,a,{shallow:!1})}(i.Data.eventData.registrationInfo)};return window.addEventListener("message",e),function(){window.removeEventListener("message",e)}}),[]),(0,a.useEffect)((function(){window.glegem&&window.glegem("OnCheckoutStepLoaded",(function(e){var t;if((null===e||void 0===e?void 0:e.StepId)===(null===e||void 0===e||null===(t=e.Steps)||void 0===t?void 0:t.CONFIRMATION)&&e.IsSuccess){var n,a,i;I(2);var o=null===e||void 0===e||null===(n=e.details)||void 0===n||null===(a=n.CustomerDetails)||void 0===a||null===(i=a.BillingAddress)||void 0===i?void 0:i.BillingEmail;o&&(0,m.mn)({email:o})}}))}),[]);var M=[null===N||void 0===N?void 0:N.get("checkoutFlowCartLabel"),null===N||void 0===N?void 0:N.get("checkoutFlowCheckoutLabel"),null===N||void 0===N?void 0:N.get("checkoutFlowConfirmationLabel")],x=(0,a.useCallback)((function(e){return(0,y.jsx)("div",{style:{marginTop:e,padding:"8.2rem 0 4.5rem 0",backgroundColor:h.Z.colors.WHITE,opacity:1},children:(0,y.jsx)(g.Z,{steps:M,activeStep:P,viewportInfo:w})})}),[P,w]);return(0,y.jsxs)(y.Fragment,{children:[!O&&(0,y.jsxs)(o(),{children:[(0,y.jsx)("script",{type:"text/javascript",src:D,async:!0}),(0,y.jsx)("link",{id:"GEPIStyles",rel:"stylesheet",href:T})]}),(0,y.jsx)(s(),{type:"text/javascript",children:"\n var glegem = glegem || function() {\
1n ((window[\"glegem\"] = window[\"glegem\"] || {q:[]}).q = window[\"glegem\"].q || []).push(arguments);\n };\n glegem(\"OnClientEvent\",function(source,data){\n \n switch(source){\n case GEMerchantUtils.ClientEvents.INPUT_BLUR:break;\n case GEMerchantUtils.ClientEvents.STORE_SELECTION:break;\n case GEMerchantUtils.ClientEvents.SHIPPINGMETHOD_SELECTION:\n dataLayer?.push({\n event: 'add_shipping_info',\n ecommerce: {\n shipping_tier : data?.id?.toLowerCase(),\n } \n }); \n break;\n case GEMerchantUtils.ClientEvents.TAX_OPTION_SELECTED:break;\n case GEMerchantUtils.ClientEvents.PAYMENTMETHOD_CHANGED:\n dataLayer?.push({\n event: 'add_payment_info',\n ecommerce: {\n payment_type : data?.name?.toLowerCase(),\n } \n });\n break;\n case GEMerchantUtils.ClientEvents.BUTTON_CLICKED:\n dataLayer?.push({\n event: 'Click',\n eventCategory: 'checkout',\n eventAction: 'click_cta',\n eventLabel: data?.text?.toLowerCase()\n });\n break;\n case GEMerchantUtils.ClientEvents.COMBO_CHANGED:\n if(data?.id === \"langSelectionHeader\") {\n dataLayer?.push({\n event: 'Click',\n eventCategory: 'checkout',\n eventAction: 'change_dropdown_selection',\n eventLabel: data?.id?.toLowerCase()?.concat(\" : \", data?.text?.toLowerCase())\n });\n }\n break;\n case GEMerchantUtils.ClientEvents.ADD_NEW_SHIPPING_ADDRESS:\n dataLayer?.push({\n event: 'Click',\n eventCategory: 'checkout',\n eventAction: 'select_radiobutton',\n eventLabel: 'delivery : alternate',\n }); \n break;\n case GEMerchantUtils.ClientEvents.ON_PAGE_LOAD:break;\n case GEMerchantUtils.ClientEvents.ON_CLIENT_ERROR:\n dataLayer?.push({\n event: 'exception',\n eventCategory: 'checkout',\n fatal: 'false',\n description: data?.message?.toLowerCase()\n });\n break;\n case GEMerchantUtils.ClientEvents.ON_SERVER_ERROR:break;\n case GEMerchantUtils.ClientEvents.CHECKBOX_CHANGE:\n dataLayer?.push({\n event: 'Click',\n eventCategory: 'checkout',\n eventAction: 'change_checkbox',\n eventLabel: data?.id?.toLowerCase()?.concat(\" : \", data?.checked===true ? 'checked' : 'unchecked')\n });\n break;\n case GEMerchantUtils.ClientEvents.WINDOW_SHOWN:break;\n case GEMerchantUtils.ClientEvents.CHECKOUT_FAILURE:break;\n case GEMerchantUtils.ClientEvents.BILLING_ADDRESS_COMPLETED:\n dataLayer?.push({\n event: 'form_submit',\n eventCategory: 'checkout',\n eventAction: 'form_submit',\n eventLabel: 'billing address' ,\n });\n break;\n case GEMerchantUtils.ClientEvents.SHIPPING_ADDRESS_COMPLETED:\n dataLayer?.push({\n event: 'form_submit',\n eventCategory: 'checkout',\n eventAction: 'form_submit',\n eventLabel: 'shipping address' ,\n });\n break;\n default: console.log(\"Invalid Client Event\");\n }\n });\n\n glegem(\"OnCheckoutStepLoaded\", function(data) {\n \n switch (data.StepId) { \n case data.Steps.LOADED:\n ".concat((0,p.q8)((0,p.v8)({pageType:"checkout",pageName:"checkout"})),"\n itemsArray = [];\n\n data?.details?.ProductInformation?.forEach((product)=>{\n const discountValue = product?.ProductPrices?.CustomerTransaction?.CustomerListPrice - product?.ProductPrices?.CustomerTransaction?.CustomerDiscountedPrice;\n const preOrderType = product?.MetaData?.find(p => p?.AttributeKey === 'preorderType')?.AttributeValue === 'preorder' ? 'preorder' : 'normal';\n const relovedGrade = product?.MetaData?.find((p) => p?.AttributeKey === 'RelovedGrade')?.AttributeValue;\n const analyticsProductName = product?.MetaData?.find((p) => p?.AttributeKey === 'AnalyticsProductName')?.AttributeValue;\n\n itemsArray.push({\n item_id: product?.SKU,\n item_name: analyticsProductName?.toLowerCase()|| product?.ProductName?.toLowerCase(),\n coupon: product?.MetaData?.find(p => p?.AttributeKey === 'Coupon')?.AttributeValue || '',\n discount: discountValue ? parseFloat(discountValue?.toFixed(2)) : 0,\n item_brand: product?.MetaData?.find(p => p?.AttributeKey === 'Tag')?.AttributeValue?.toLowerCase() || 'B&O',\n item_category: product?.MetaData?.find(p => p?.AttributeKey === 'CategoryName')?.AttributeValue?.toLowerCase() || '',\n item_category2: \"DATA_NOT_AVAILABLE\",\n item_category3: preOrderType,\n item_category4: relovedGrade ? 'reloved_'+ relovedGrade?.toLowerCase():'',\n item_category5: '',\n item_variant: product?.MetaData?.find(p => p?.AttributeKey === 'VariantName')?.AttributeValue?.toLowerCase() || '',\n price: product?.ProductPrices?.CustomerTransaction?.CustomerListPrice,\n quantity: product?.Quantity? parseInt(product?.Quantity):1,\n });\n })\n dataLayer.push({ ecommerce: null });\n dataLayer.push({\n event: 'begin_checkout',\n ecommerce: {\n currency: data?.details?.CustomerCurrencyCode,\n value: data?.details?.OrderPrices?.CustomerTransaction?.CustomerTotalPrice,\n coupon: \"DATA_NOT_AVAILABLE\",\n items: itemsArray\n }\n });\n break;\n case data.Steps.CONFIRMATION:\n if (data.IsSuccess) {\
1n // remove cookies when order is completed\n var expires = ';expires=Thu, 01-Jan-70 00:00:01 GMT;path=/;';\n document.cookie = 'cart=' + expires;\n document.cookie = 'showVoucherNotification=' + expires;\n document.cookie = 'voucherAlreadyApplied=' + expires;\n document.cookie = 'utmCampaign=' + expires;\n document.cookie = 'clearSaleSessId=' + expires;\n orderItemsArray = [];\n data?.details?.ProductInformation?.forEach((product)=>{\n const discountValue = product?.ProductPrices?.CustomerTransaction?.CustomerListPrice - product?.ProductPrices?.CustomerTransaction?.CustomerDiscountedPrice;\n const preOrderType = product?.MetaData?.find(p => p?.AttributeKey === 'preorderType')?.AttributeValue === 'preorder' ? 'preorder' : 'normal';\n const relovedGrade = product?.MetaData?.find((p) => p?.AttributeKey === 'RelovedGrade')?.AttributeValue;\n const analyticsProductName = product?.MetaData?.find((p) => p?.AttributeKey === 'AnalyticsProductName')?.AttributeValue;\n orderItemsArray.push({\n item_id: product?.SKU,\n item_name: analyticsProductName?.toLowerCase()|| product?.ProductName?.toLowerCase(),\n coupon: product?.MetaData?.find(p => p?.AttributeKey === 'Coupon')?.AttributeValue || '',\n discount: discountValue ? parseFloat(discountValue?.toFixed(2)) : 0,\n item_brand: product?.MetaData?.find(p => p?.AttributeKey === 'Tag')?.AttributeValue?.toLowerCase() || 'B&O',\n item_category: product?.MetaData?.find(p => p?.AttributeKey === 'CategoryName')?.AttributeValue?.toLowerCase() || '',\n item_category2: \"DATA_NOT_AVAILABLE\",\n item_category3: preOrderType,\n item_category4: relovedGrade ? 'reloved_'+ relovedGrade?.toLowerCase():'',\n item_category5: '',\n item_variant: product?.MetaData?.find(p => p?.AttributeKey === 'VariantName')?.AttributeValue?.toLowerCase() || '',\n price: product?.ProductPrices?.CustomerTransaction?.CustomerListPrice,\n quantity: product?.Quantity? parseInt(product?.Quantity):1\n });\n })\n const shippingAdd= data?.details?.CustomerDetails?.ShippingAddress;\n const billingAdd= data?.details?.CustomerDetails?.BillingAddress;\n const email=billingAdd?.BillingEmail;\n const phone = shippingAdd?.ShippingPhoneNumber;\n const firstName = shippingAdd?.ShippingFirstName?.toLowerCase();\n const lastName = shippingAdd?.ShippingLastName?.toLowerCase(); \n const shippingCost = data?.details?.OrderPrices?.CustomerTransaction?.CustomerShippingPrice;\n dataLayer.push({ ecommerce: null,user:null });\n const key = ").concat(JSON.stringify(C.nj),' + \'_\' + data?.OrderId;\n const hasLoggedPurchase = window && window.sessionStorage.getItem(key) === \'true\';\n if(!hasLoggedPurchase){\n window.sessionStorage.setItem(key,\'true\');\n dataLayer.push({\n event: "purchase",\n user: {\n "email": email,\n "phoneNumber": phone?parseInt(phone):null,\n "firstName": firstName,\n "lastName": lastName,\n },\n ecommerce: {\n currency: data?.details?.CustomerCurrencyCode,\n value: data?.details?.OrderPrices?.CustomerTransaction?.CustomerTotalPrice,\n coupon: "DATA_NOT_AVAILABLE",\n transaction_id : data?.OrderId,\n shipping_tier : data?.details?.ShippingMethodType?.toLowerCase(),\n payment_type : data?.details?.OrderPaymentMethods[0]?.PaymentMethodName?.toLowerCase(),\n items: orderItemsArray,\n shipping:shippingCost,\n }\n });\n \n dataLayer.push({\n event:\'').concat(v.SeZ,"',\n user_email: email,\n user_fname:shippingAdd?.ShippingFirstName,\n user_lname: shippingAdd?.ShippingLastName,\n user_phone:shippingAdd?.ShippingPhoneNumber,\n user_street:shippingAdd?.ShippingAddress1 + ' ' + shippingAdd?.ShippingAddress2,\n user_city: shippingAdd?.ShippingCity,\n user_country: shippingAdd?.ShippingCountryCode,\n user_postal_code: shippingAdd?.ShippingZipCode,\n });\n }\n }\n break;\n }\n });\n ")}),(0,y.jsxs)(d.Z,{showSupportingNav:!1,hasCountryNotification:!1,showHeader:!E,showFooter:!1,pageType:v.Hao.CHECKOUT,StepperComponent:x,children:[f&&(0,y.jsx)(u.Z,{title:f}),(0,y.jsx)("div",{id:"geContainer",className:"ge-container"})]})]})}),{mapStateToProps:function(e){return{globalCMSLabels:e.getIn(["global","cmsData","Global"]),secureCheckoutHeader:null===e||void 0===e?void 0:e.getIn(["global","cmsData","CheckoutPage","secureCheckoutHeader"]),country:e.getIn(["global","globalData","country"]),locale:e.getIn(["global","globalData","userlanguage"]),featureConfigs:e.getIn(["global","globalData","siteSettings","featureConfigs"]),isNativeMobileApp:e.getIn(["global","globalData","isNativeMobileApp"]),viewportInfo:e.getIn(["global","globalData","viewportInfo"])}},key:"CheckoutPage"})},10775:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[language]/ge-checkout",function(){return n(8150)}])},43218:function(e,t,n){e.exports=n(22203)}},function(e){e.O(0,[9774,2888,179],(function(){return t=10775,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.