@sunrise-upc/sales-static-components 4.4.1 → 4.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +8 -8
  2. package/dist/cjs/components/ButtonGroup/ButtonGroup.css +95 -95
  3. package/dist/cjs/components/FalconButton/falconButton.js.map +1 -1
  4. package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.js +1 -1
  5. package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.js.map +1 -1
  6. package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartFooter/CartFooter.js +1 -1
  7. package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartFooter/CartFooter.js.map +1 -1
  8. package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.js +1 -1
  9. package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.js.map +1 -1
  10. package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartOverlay.js +1 -1
  11. package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartOverlay.js.map +1 -1
  12. package/dist/cjs/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.js +1 -1
  13. package/dist/cjs/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.js.map +1 -1
  14. package/dist/cjs/components/FalconMainNavigation/FalconHeader/BusinessCustomerLinkOut/BusinessCustomerLinkOut.js.map +1 -1
  15. package/dist/cjs/components/FalconMainNavigation/FalconMainNavigation.js +1 -1
  16. package/dist/cjs/components/FalconMainNavigation/FalconMainNavigation.js.map +1 -1
  17. package/dist/cjs/components/FalconMainNavigation/MobileNavigation/MobileMenuItem/MobileMenuItem.js.map +1 -1
  18. package/dist/cjs/components/InternetAndTvCardsBenefits/InternetAndTvCardItemBenefits.js.map +1 -1
  19. package/dist/cjs/components/RibbonComponent/RibbonComponent.css +389 -389
  20. package/dist/cjs/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.css +68 -68
  21. package/dist/cjs/components/StageTeaserComponent/DoubleGrid/DoubleGridComponent.css +937 -937
  22. package/dist/cjs/components/StageTeaserComponent/SingleGrid/SingleGridRedefined.js.map +1 -1
  23. package/dist/cjs/components/StageTeaserV3/DoubleGrid/DoubleGridComponent.css +87 -87
  24. package/dist/cjs/components/StageTeaserV3/SingleGrid/SingleGridComponent.css +87 -87
  25. package/dist/cjs/components/linecheck/AutoComplete.css +514 -514
  26. package/dist/cjs/components/linecheck/FiberUpgradeInfo.css +514 -514
  27. package/dist/cjs/components/linecheck/LineCheckV2.css +514 -514
  28. package/dist/cjs/components/linecheck/Success.css +514 -514
  29. package/dist/cjs/index.js +1 -1
  30. package/dist/cjs/utils/AnalyticUtils.js +1 -1
  31. package/dist/cjs/utils/AnalyticUtils.js.map +1 -1
  32. package/dist/cjs/utils/AnalyticsConstants.js +1 -1
  33. package/dist/cjs/utils/AnalyticsConstants.js.map +1 -1
  34. package/dist/esm/components/ButtonGroup/ButtonGroup.css +95 -95
  35. package/dist/esm/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.js +1 -1
  36. package/dist/esm/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.js.map +1 -1
  37. package/dist/esm/components/FalconMainNavigation/CartOverlay/CartFooter/CartFooter.js +1 -1
  38. package/dist/esm/components/FalconMainNavigation/CartOverlay/CartFooter/CartFooter.js.map +1 -1
  39. package/dist/esm/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.js +1 -1
  40. package/dist/esm/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.js.map +1 -1
  41. package/dist/esm/components/FalconMainNavigation/CartOverlay/CartOverlay.js +1 -1
  42. package/dist/esm/components/FalconMainNavigation/CartOverlay/CartOverlay.js.map +1 -1
  43. package/dist/esm/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.js +1 -1
  44. package/dist/esm/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.js.map +1 -1
  45. package/dist/esm/components/FalconMainNavigation/FalconMainNavigation.js +1 -1
  46. package/dist/esm/components/FalconMainNavigation/FalconMainNavigation.js.map +1 -1
  47. package/dist/esm/components/RibbonComponent/RibbonComponent.css +389 -389
  48. package/dist/esm/components/RibbonComponent/RibbonComponentTimer/RibbonComponentTimer.css +68 -68
  49. package/dist/esm/components/StageTeaserComponent/DoubleGrid/DoubleGridComponent.css +937 -937
  50. package/dist/esm/components/StageTeaserV3/DoubleGrid/DoubleGridComponent.css +87 -87
  51. package/dist/esm/components/StageTeaserV3/SingleGrid/SingleGridComponent.css +87 -87
  52. package/dist/esm/components/linecheck/AutoComplete.css +514 -514
  53. package/dist/esm/components/linecheck/FiberUpgradeInfo.css +514 -514
  54. package/dist/esm/components/linecheck/LineCheckV2.css +514 -514
  55. package/dist/esm/components/linecheck/Success.css +514 -514
  56. package/dist/esm/index.js +1 -1
  57. package/dist/esm/utils/AnalyticUtils.js +1 -1
  58. package/dist/esm/utils/AnalyticUtils.js.map +1 -1
  59. package/dist/esm/utils/AnalyticsConstants.js +1 -1
  60. package/dist/esm/utils/AnalyticsConstants.js.map +1 -1
  61. package/dist/index.d.ts +78 -2
  62. package/dist/navigation.css +20 -20
  63. package/package.json +115 -115
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./components/RibbonComponent/RibbonComponent.js"),t=require("./components/RibbonRenderer/RibbonRenderer.js"),r=require("./components/GlobalPromoRibbon/GlobalPromoRibbon.js"),o=require("./components/FalconButtonV3/FalconButtonV3.js"),n=require("./components/StageTeaserComponent/StageTeaserComponent.js"),s=require("./components/ImageComponent/ImageComponent.js"),a=require("./components/TextComponent/TextComponent.js"),i=require("./components/ButtonGroup/ButtonGroup.js"),p=require("./components/ImageWithText/ImageWithText.js"),c=require("./components/ImageWithTextWrapper/ImageWithTextWrapper.js"),m=require("./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js"),u=require("./components/QuickLinks/QuickLinks.js"),l=require("./components/DeviceGallery/DeviceGalleryList.js"),C=require("./components/InternetAndTvCards/InternetAndTvCards.js"),d=require("./components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js"),x=require("./components/PromotionTeaser/PromotionTeaser.js"),g=require("./components/linecheck/LineCheckV2.js"),v=require("./components/StageTeaserV3/StageTeaserV3.js"),f=require("./components/StageTeaserV3/PromoBubble/PromoBubble.js"),b=require("./components/FalconMainNavigation/FalconMainNavigation.js"),S=require("./components/SearchWrapper/SearchWrapper.js"),T=require("./components/MinimizedHeader/MinimizedHeader.js"),j=require("./components/BadgeContainer/BadgeContainer.js"),q=require("./services/LinecheckBasicPropConfig.js"),k=require("./services/CustomerPropConfig.js"),h=require("./services/customerSegmentSync.js"),I=require("./services/CustomerService.js"),y=require("./services/CartPropConfig.js"),G=require("./utils/AnalyticUtils.js");exports.RibbonComponent=e.default,exports.RibbonRenderer=t.default,exports.GlobalPromoRibbon=r.default,exports.FalconButtonV3=o.default,exports.StageTeaserComponent=n.default,exports.ImageComponent=s.default,exports.TextComponent=a.default,exports.ButtonGroup=i.default,exports.ImageWithText=p.default,exports.ImageWithTextWrapper=c.default,exports.InternetAndTvCardsBenefits=m.default,exports.QuickLinks=u.default,exports.DeviceGalleryList=l.default,exports.InternetAndTvCards=C.default,exports.InternetAndTvCardItem=d.default,exports.PromotionTeaser=x.default,exports.LineCheckV2=g.default,exports.StageTeaserV3=v.default,exports.PromoBubble=f.default,exports.FalconMainNavigation=b.default,exports.SearchWrapper=S.default,exports.MinimizedHeader=T.default,exports.BadgeContainer=j.default,exports.LinecheckBasicPropConfig=q.LinecheckBasicPropConfig,exports.CustomerPropConfig=k.CustomerPropConfig,exports.createCustomerGroupFetcher=h.createCustomerGroupFetcher,exports.createCustomerSegmentSync=h.createCustomerSegmentSync,exports.dispatchCustomerSegmentRefreshEvent=h.dispatchCustomerSegmentRefreshEvent,exports.extractCustomerGroupFromProfile=h.extractCustomerGroupFromProfile,exports.getCurrentCustomerSegment=h.getCurrentCustomerSegment,exports.hasCachedCustomerSegment=h.hasCachedCustomerSegment,exports.resolveCustomerGroup=h.resolveCustomerGroup,exports.setCustomerSegment=h.setCustomerSegment,exports.subscribeToCustomerSegmentRefresh=h.subscribeToCustomerSegmentRefresh,exports.syncCustomerSegment=h.syncCustomerSegment,exports.customerGroup=I.customerGroup,exports.CartPropConfig=y.CartPropConfig,exports.getDeviceGalleryAnalyticsItem=G.getDeviceGalleryAnalyticsItem,exports.getDeviceGallerySelectAnalyticsItem=G.getDeviceGallerySelectAnalyticsItem,exports.trackComponent=G.trackComponent,exports.trackDeviceGalleryEligibility=G.trackDeviceGalleryEligibility,exports.trackErrorEvent=G.trackErrorEvent,exports.trackEvent=G.trackEvent,exports.trackGADatalayerEvent=G.trackGADatalayerEvent,exports.trackLineEvent=G.trackLineEvent,exports.trackMessageEvent=G.trackMessageEvent,exports.trackNewDatalayerEvent=G.trackNewDatalayerEvent;
1
+ "use strict";var e=require("./components/RibbonComponent/RibbonComponent.js"),t=require("./components/RibbonRenderer/RibbonRenderer.js"),r=require("./components/GlobalPromoRibbon/GlobalPromoRibbon.js"),o=require("./components/FalconButtonV3/FalconButtonV3.js"),n=require("./components/StageTeaserComponent/StageTeaserComponent.js"),s=require("./components/ImageComponent/ImageComponent.js"),a=require("./components/TextComponent/TextComponent.js"),i=require("./components/ButtonGroup/ButtonGroup.js"),p=require("./components/ImageWithText/ImageWithText.js"),c=require("./components/ImageWithTextWrapper/ImageWithTextWrapper.js"),u=require("./components/InternetAndTvCardsBenefits/InternetAndTvCardsBenefits.js"),m=require("./components/QuickLinks/QuickLinks.js"),l=require("./components/DeviceGallery/DeviceGalleryList.js"),C=require("./components/InternetAndTvCards/InternetAndTvCards.js"),d=require("./components/InternetAndTvCards/InternetAndTvCardItem/InternetAndTvCardItem.js"),x=require("./components/PromotionTeaser/PromotionTeaser.js"),g=require("./components/linecheck/LineCheckV2.js"),v=require("./components/StageTeaserV3/StageTeaserV3.js"),f=require("./components/StageTeaserV3/PromoBubble/PromoBubble.js"),b=require("./components/FalconMainNavigation/FalconMainNavigation.js"),S=require("./components/SearchWrapper/SearchWrapper.js"),T=require("./components/MinimizedHeader/MinimizedHeader.js"),j=require("./components/BadgeContainer/BadgeContainer.js"),q=require("./services/LinecheckBasicPropConfig.js"),y=require("./services/CustomerPropConfig.js"),k=require("./services/customerSegmentSync.js"),I=require("./services/CustomerService.js"),h=require("./services/CartPropConfig.js"),G=require("./utils/AnalyticUtils.js");exports.RibbonComponent=e.default,exports.RibbonRenderer=t.default,exports.GlobalPromoRibbon=r.default,exports.FalconButtonV3=o.default,exports.StageTeaserComponent=n.default,exports.ImageComponent=s.default,exports.TextComponent=a.default,exports.ButtonGroup=i.default,exports.ImageWithText=p.default,exports.ImageWithTextWrapper=c.default,exports.InternetAndTvCardsBenefits=u.default,exports.QuickLinks=m.default,exports.DeviceGalleryList=l.default,exports.InternetAndTvCards=C.default,exports.InternetAndTvCardItem=d.default,exports.PromotionTeaser=x.default,exports.LineCheckV2=g.default,exports.StageTeaserV3=v.default,exports.PromoBubble=f.default,exports.FalconMainNavigation=b.default,exports.SearchWrapper=S.default,exports.MinimizedHeader=T.default,exports.BadgeContainer=j.default,exports.LinecheckBasicPropConfig=q.LinecheckBasicPropConfig,exports.CustomerPropConfig=y.CustomerPropConfig,exports.createCustomerGroupFetcher=k.createCustomerGroupFetcher,exports.createCustomerSegmentSync=k.createCustomerSegmentSync,exports.dispatchCustomerSegmentRefreshEvent=k.dispatchCustomerSegmentRefreshEvent,exports.extractCustomerGroupFromProfile=k.extractCustomerGroupFromProfile,exports.getCurrentCustomerSegment=k.getCurrentCustomerSegment,exports.hasCachedCustomerSegment=k.hasCachedCustomerSegment,exports.resolveCustomerGroup=k.resolveCustomerGroup,exports.setCustomerSegment=k.setCustomerSegment,exports.subscribeToCustomerSegmentRefresh=k.subscribeToCustomerSegmentRefresh,exports.syncCustomerSegment=k.syncCustomerSegment,exports.customerGroup=I.customerGroup,exports.CartPropConfig=h.CartPropConfig,exports.buildCartAnalyticsData=G.buildCartAnalyticsData,exports.buildCartAnalyticsItems=G.buildCartAnalyticsItems,exports.getDeviceGalleryAnalyticsItem=G.getDeviceGalleryAnalyticsItem,exports.getDeviceGallerySelectAnalyticsItem=G.getDeviceGallerySelectAnalyticsItem,exports.trackComponent=G.trackComponent,exports.trackDeviceGalleryEligibility=G.trackDeviceGalleryEligibility,exports.trackErrorEvent=G.trackErrorEvent,exports.trackEvent=G.trackEvent,exports.trackGADatalayerEvent=G.trackGADatalayerEvent,exports.trackLineEvent=G.trackLineEvent,exports.trackMessageEvent=G.trackMessageEvent,exports.trackNewDatalayerEvent=G.trackNewDatalayerEvent;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("./AnalyticsConstants.js");let a;const n=e=>({item_id:e.title||"",item_name:e.title||"",item_brand:"Sunrise",item_category:"Hardware",item_category2:"Device",item_category3:"",item_category4:"No subscription",item_category5:"",item_list_id:"device-gallery",item_list_name:"device-gallery",item_variant:"",price:0,quantity:1});exports.getDeviceGalleryAnalyticsItem=n,exports.getDeviceGallerySelectAnalyticsItem=(e,t)=>{var a;return Object.assign(Object.assign({},n(e)),{affiliation:"",coupon:"",discount:(null===(a=e.promoText)||void 0===a?void 0:a.slice(0,9))||"",index:t,item_list_id:"Home",item_list_name:"Home",location_id:""})},exports.trackComponent=(e,t,n,i)=>{const r={componentInfo:{type:n,subType:i},attributes:{title:e,targetLink:t}};Array.isArray(a)||(a=[]),a.push(r)},exports.trackDeviceGalleryEligibility=(e,t,a)=>{if("undefined"==typeof window||!Array.isArray(window.dataLayer))return;window.dataLayer.push({ecommerce:null});const n="view"===e?"view_item_list":"select_item";window.dataLayer.push({event:n,event_name:n,ecommerce:{item_list_id:"select"===e?"Home":"device-gallery",item_list_name:"select"===e?"Home":"device-gallery",items:"select"===e&&a?[a]:t}})},exports.trackErrorEvent=(e,t,a,n)=>{const i={message_type:e,message_title:t,message_source:a,message_reason:n};try{window.dataLayer.push(Object.assign({event:"gaEvent",event_name:"error_event"},i))}catch(e){}},exports.trackEvent=(e,n,i)=>{const r={eventAction:e,eventValue:n,timeStamp:Math.round(Date.now()/1e3),type:i};"dropDownClick/enter/leftClick"==i&&(i=t.TYPE);try{"view"==i?(a=[],window.appEventData.push({event:i,eventInfo:r,component:a})):window.appEventData.push({event:i,eventInfo:r})}catch(e){}},exports.trackGADatalayerEvent=(e,t,a)=>{window.dataLayer.push(Object.assign({event:e,event_name:t},a))},exports.trackLineEvent=(e,t,a,n,i)=>{const r={address:e,eventAction:t,eventValue:a,id:n,timeStamp:Math.round(Date.now()/1e3),type:i};try{window.appEventData.push({event:i,eventInfo:r})}catch(e){}},exports.trackMessageEvent=(a,n,i,r,s,o)=>{const c={description:a,source:n,title:i,type:r,guid:s,errorID:o};"dropDownClick/enter/leftClick"==r&&(r=t.TYPE);try{const{guid:t,errorID:a}=c,n=e.__rest(c,["guid","errorID"]);"error"==r&&null==t&&null==a||"success"==r||"general"==r?window.appEventData.push({event:"message",message:n}):void 0!==t&&void 0!==a&&window.appEventData.push({event:"message",message:c})}catch(e){}},exports.trackNewDatalayerEvent=(e,t,a)=>{window.dataLayer.push(Object.assign({event:e,event_name:t},a))};
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("js-cookie"),i=require("./AnalyticsConstants.js"),n=require("../components/Constants.js");let o;const a=e=>({item_id:e.title||"",item_name:e.title||"",item_brand:"Sunrise",item_category:"Hardware",item_category2:"Device",item_category3:"",item_category4:"No subscription",item_category5:"",item_list_id:"device-gallery",item_list_name:"device-gallery",item_variant:"",price:0,quantity:1}),r=e=>{const t=Number.parseFloat(null!=e?e:"");return Number.isNaN(t)?0:t},l=e=>Math.round(100*e)/100;exports.buildCartAnalyticsData=e=>{var i,o,a,s,c,d,u,v;const m=null==e?void 0:e.totals,p=l(r(null!==(o=null===(i=null==m?void 0:m.recurring)||void 0===i?void 0:i.final)&&void 0!==o?o:null===(a=null==m?void 0:m.recurring)||void 0===a?void 0:a.original)),y=l(r(null!==(c=null===(s=null==m?void 0:m.oneTime)||void 0===s?void 0:s.final)&&void 0!==c?c:null===(d=null==m?void 0:m.oneTime)||void 0===d?void 0:d.original)),_=l([null==m?void 0:m.recurring,null==m?void 0:m.oneTime].reduce((e,t)=>{if(void 0!==(null==t?void 0:t.final)&&void 0!==(null==t?void 0:t.original)){const i=r(t.original)-r(t.final);return e+Math.max(i,0)}return e},0));let g="";if("undefined"!=typeof document)try{g=null!==(u=t.get(n.CART_COOKIE))&&void 0!==u?u:""}catch(e){g=""}return{cartID:`cart-${g}`,idcheck:"false",totalContractDuration:"",totalOnetimePrice:y,totalRecurringPrice:p,totalQuantity:null!==(v=null==e?void 0:e.itemCount)&&void 0!==v?v:0,promotion:"",totalAppliedPromotions:_,cartDate:"",productCategory:"",subscriptionSubType:"",subscriptionType:"",crossSell:"",productSubCategory:[],startTime:null,coupon:""}},exports.buildCartAnalyticsItems=e=>(null!=e?e:[]).map((e,t)=>{var o,a,s,c,d,u,v;const m=(null==e?void 0:e.paymentTerm)===n.FULL_PAYMENT?null===(o=null==e?void 0:e.price)||void 0===o?void 0:o.oneTime:null===(a=null==e?void 0:e.price)||void 0===a?void 0:a.recurring,p=r(null==m?void 0:m.original),y=void 0!==(null==m?void 0:m.final)?r(m.final):p,_=l(Math.max(p-y,0));return{item_id:null!==(s=null==e?void 0:e.id)&&void 0!==s?s:"",item_name:null!==(c=null==e?void 0:e.name)&&void 0!==c?c:"",affiliation:"",coupon:"",discount:_,index:t,item_brand:[n.DEVICE,n.ACCESSORY,n.WATCH,n.TABLET].includes(null!==(d=null==e?void 0:e.category)&&void 0!==d?d:"")?"":"Sunrise",item_category:null!==(u=null==e?void 0:e.category)&&void 0!==u?u:"",item_category2:"",item_category3:"",item_category4:"",item_category5:"",item_list_id:i.PERSISTENT_CART,item_list_name:i.PERSISTENT_CART,item_variant:(null==e?void 0:e.variant)?e.variant.split(",").map(e=>e.trim()).join("|"):"",location_id:"",price:l(y),quantity:null!==(v=null==e?void 0:e.quantity)&&void 0!==v?v:1,promotion_id:""}}),exports.getDeviceGalleryAnalyticsItem=a,exports.getDeviceGallerySelectAnalyticsItem=(e,t)=>{var i;return Object.assign(Object.assign({},a(e)),{affiliation:"",coupon:"",discount:(null===(i=e.promoText)||void 0===i?void 0:i.slice(0,9))||"",index:t,item_list_id:"Home",item_list_name:"Home",location_id:""})},exports.trackComponent=(e,t,i,n)=>{const a={componentInfo:{type:i,subType:n},attributes:{title:e,targetLink:t}};Array.isArray(o)||(o=[]),o.push(a)},exports.trackDeviceGalleryEligibility=(e,t,i)=>{if("undefined"==typeof window||!Array.isArray(window.dataLayer))return;window.dataLayer.push({ecommerce:null});const n="view"===e?"view_item_list":"select_item";window.dataLayer.push({event:n,event_name:n,ecommerce:{item_list_id:"select"===e?"Home":"device-gallery",item_list_name:"select"===e?"Home":"device-gallery",items:"select"===e&&i?[i]:t}})},exports.trackErrorEvent=(e,t,i,n)=>{const o={message_type:e,message_title:t,message_source:i,message_reason:n};try{window.dataLayer.push(Object.assign({event:"gaEvent",event_name:"error_event"},o))}catch(e){}},exports.trackEvent=(e,t,n)=>{const a={eventAction:e,eventValue:t,timeStamp:Math.round(Date.now()/1e3),type:n};"dropDownClick/enter/leftClick"==n&&(n=i.TYPE);try{"view"==n?(o=[],window.appEventData.push({event:n,eventInfo:a,component:o})):window.appEventData.push({event:n,eventInfo:a})}catch(e){}},exports.trackGADatalayerEvent=(e,t,i)=>{window.dataLayer.push(Object.assign({event:e,event_name:t},i))},exports.trackLineEvent=(e,t,i,n,o)=>{const a={address:e,eventAction:t,eventValue:i,id:n,timeStamp:Math.round(Date.now()/1e3),type:o};try{window.appEventData.push({event:o,eventInfo:a})}catch(e){}},exports.trackMessageEvent=(t,n,o,a,r,l)=>{const s={description:t,source:n,title:o,type:a,guid:r,errorID:l};"dropDownClick/enter/leftClick"==a&&(a=i.TYPE);try{const{guid:t,errorID:i}=s,n=e.__rest(s,["guid","errorID"]);"error"==a&&null==t&&null==i||"success"==a||"general"==a?window.appEventData.push({event:"message",message:n}):void 0!==t&&void 0!==i&&window.appEventData.push({event:"message",message:s})}catch(e){}},exports.trackNewDatalayerEvent=(e,t,i)=>{window.dataLayer.push(Object.assign({event:e,event_name:t},i))};
2
2
  //# sourceMappingURL=AnalyticUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticUtils.js","sources":["../../../../src/utils/AnalyticUtils.ts"],"sourcesContent":[null],"names":["ComponentArray","getDeviceGalleryAnalyticsItem","content","item_id","title","item_name","item_brand","item_category","item_category2","item_category3","item_category4","item_category5","item_list_id","item_list_name","item_variant","price","quantity","index","Object","assign","affiliation","coupon","discount","_a","promoText","slice","location_id","targetLink","type","subType","component","componentInfo","attributes","Array","isArray","push","eventType","items","selectedItem","window","dataLayer","ecommerce","eventName","event","event_name","message_type","message_title","message_source","message_reason","eventInfo","eventAction","eventValue","timeStamp","Math","round","Date","now","TYPE","appEventData","address","id","description","source","guid","errorID","validationmessage","__rest","undefined","message"],"mappings":"sGACA,IAAIA,EAUG,MA2DMC,EAAiCC,IAA2B,CACvEC,QAASD,EAAQE,OAAS,GAC1BC,UAAWH,EAAQE,OAAS,GAC5BE,WAAY,UACZC,cAAe,WACfC,eAAgB,SAChBC,eAAgB,GAChBC,eAAgB,kBAChBC,eAAgB,GAChBC,aAAc,iBACdC,eAAgB,iBAChBC,aAAc,GACdC,MAAO,EACPC,SAAU,wFAuBuC,CACjDd,EACAe,WAOG,OAAAC,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACAlB,EAA8BC,IAAQ,CACzCkB,YAAa,GACbC,OAAQ,GACRC,UAA2B,QAAjBC,EAAArB,EAAQsB,iBAAS,IAAAD,OAAA,EAAAA,EAAEE,MAAM,EAAG,KAAM,GAC5CR,QACAL,aAAc,OACdC,eAAgB,OAChBa,YAAa,6BA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BU,EACAT,EACAC,EACAS,EACAhC,KAEA,MAAMqB,EAAyC,CAC7CU,QAASA,EACTT,YAAaA,EACbC,WAAYA,EACZS,GAAIA,EACJR,UAAWC,KAAKC,MAAMC,KAAKC,MAAQ,KACnC5B,KAAMA,GAER,IACEW,OAAOmB,aAAavB,KAAK,CACvBQ,MAAOf,EACPqB,UAAWA,GAEf,CAAE,MAAA1B,GAEF,6BA2C+B,CAC/BsC,EACAC,EACA1D,EACAwB,EACAmC,EACAC,KAEA,MAAMf,EAAiB,CACrBY,YAAaA,EACbC,OAAQA,EACR1D,MAAOA,EACPwB,KAAMA,EACNmC,KAAMA,EACNC,QAASA,GAEC,iCAARpC,IACFA,EAAO6B,EAAAA,MAET,IACE,MAAMM,KAAEA,EAAIC,QAAEA,GAAkCf,EAAtBgB,EAAiBC,EAAAA,OAAKjB,EAA1C,CAAA,OAAA,YAEK,SAARrB,GAA2BuC,MAARJ,GAAgCI,MAAXH,GACjC,WAARpC,GACQ,WAARA,EAECW,OAAOmB,aAAavB,KAAK,CACvBQ,MAAO,UACNyB,QAASH,SAEOE,IAATJ,QAAkCI,IAAZH,GAC/BzB,OAAOmB,aAAavB,KAAK,CACvBQ,MAAO,UACPyB,QAASnB,GAGjB,CAAE,MAAA1B,GAEF,kCA5MoC,CAACoB,EAAeD,EAAmBO,KACrEV,OAAOC,UAAUL,oBACfQ,MAAOA,EACPC,WAAYF,GACTO"}
1
+ {"version":3,"file":"AnalyticUtils.js","sources":["../../../../src/utils/AnalyticUtils.ts"],"sourcesContent":[null],"names":["ComponentArray","getDeviceGalleryAnalyticsItem","content","item_id","title","item_name","item_brand","item_category","item_category2","item_category3","item_category4","item_category5","item_list_id","item_list_name","item_variant","price","quantity","parsePrice","value","parsed","Number","parseFloat","isNaN","roundPrice","Math","round","cart","totals","totalRecurringPrice","_b","_a","recurring","final","_c","original","totalOnetimePrice","_e","_d","oneTime","_f","totalAppliedPromotions","reduce","sum","bucket","undefined","discount","max","cartID","document","_g","Cookies","get","CART_COOKIE","_j","idcheck","totalContractDuration","totalQuantity","_h","itemCount","promotion","cartDate","productCategory","subscriptionSubType","subscriptionType","crossSell","productSubCategory","startTime","coupon","items","map","item","index","activePrice","paymentTerm","FULL_PAYMENT","id","name","affiliation","DEVICE","ACCESSORY","WATCH","TABLET","includes","category","PERSISTENT_CART","variant","split","part","trim","join","location_id","promotion_id","Object","assign","promoText","slice","targetLink","type","subType","component","componentInfo","attributes","Array","isArray","push","eventType","selectedItem","window","dataLayer","ecommerce","eventName","event","event_name","message_type","message_title","message_source","message_reason","eventInfo","eventAction","eventValue","timeStamp","Date","now","TYPE","appEventData","address","description","source","guid","errorID","validationmessage","__rest","message"],"mappings":"qKAGA,IAAIA,EAUG,MA2DMC,EAAiCC,IAA2B,CACvEC,QAASD,EAAQE,OAAS,GAC1BC,UAAWH,EAAQE,OAAS,GAC5BE,WAAY,UACZC,cAAe,WACfC,eAAgB,SAChBC,eAAgB,GAChBC,eAAgB,kBAChBC,eAAgB,GAChBC,aAAc,iBACdC,eAAgB,iBAChBC,aAAc,GACdC,MAAO,EACPC,SAAU,IAgPNC,EAAcC,IAClB,MAAMC,EAASC,OAAOC,WAAWH,QAAAA,EAAS,IAC1C,OAAOE,OAAOE,MAAMH,GAAU,EAAIA,GAI9BI,EAAcL,GAA0BM,KAAKC,MAAc,IAARP,GAAe,mCAOjCQ,wBACrC,MAAMC,EAASD,aAAI,EAAJA,EAAMC,OAEfC,EAAsBL,EAC1BN,EAAmC,QAAxBY,EAAiB,QAAjBC,EAAAH,aAAM,EAANA,EAAQI,iBAAS,IAAAD,OAAA,EAAAA,EAAEE,aAAK,IAAAH,EAAAA,EAAqB,QAAjBI,EAAAN,aAAM,EAANA,EAAQI,iBAAS,IAAAE,OAAA,EAAAA,EAAEC,WAEtDC,EAAoBZ,EACxBN,EAAiC,QAAtBmB,EAAe,QAAfC,EAAAV,aAAM,EAANA,EAAQW,eAAO,IAAAD,OAAA,EAAAA,EAAEL,aAAK,IAAAI,E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AKC,MAAMgG,KAAKC,MAAQ,KACnCzB,KAAMA,GAER,IACEU,OAAOiB,aAAapB,KAAK,CACvBO,MAAOd,EACPoB,UAAWA,GAEf,CAAE,MAAAvF,GAEF,6BA2C+B,CAC/BgG,EACAC,EACA3H,EACA6F,EACA+B,EACAC,KAEA,MAAMZ,EAAiB,CACrBS,YAAaA,EACbC,OAAQA,EACR3H,MAAOA,EACP6F,KAAMA,EACN+B,KAAMA,EACNC,QAASA,GAEC,iCAARhC,IACFA,EAAO0B,EAAAA,MAET,IACE,MAAMK,KAAEA,EAAIC,QAAEA,GAAkCZ,EAAtBa,EAAiBC,EAAAA,OAAKd,EAA1C,CAAA,OAAA,YAEK,SAARpB,GAA2BrD,MAARoF,GAAgCpF,MAAXqF,GACjC,WAARhC,GACQ,WAARA,EAECU,OAAOiB,aAAapB,KAAK,CACvBO,MAAO,UACNqB,QAASF,SAEOtF,IAAToF,QAAkCpF,IAAZqF,GAC/BtB,OAAOiB,aAAapB,KAAK,CACvBO,MAAO,UACPqB,QAASf,GAGjB,CAAE,MAAAvF,GAEF,kCA5MoC,CAACiF,EAAeD,EAAmBO,KACrEV,OAAOC,UAAUJ,oBACfO,MAAOA,EACPC,WAAYF,GACTO"}
@@ -1,2 +1,2 @@
1
- "use strict";exports.ALL="All",exports.ARTICLEICONSELECT="article_pagination_icon_click",exports.ARTICLELEFTSELECT="article_pagination_left_click",exports.ARTICLERIGHTSELECT="article_pagination_right_click",exports.ARTICLESELECT="article_select_promotion",exports.ARTICLEVIEW="article_view_promotion",exports.CAROUSELICONCLICK="carousel_icon_click",exports.CHANGE="Change",exports.CHECKADDRESS="Check address",exports.CMS="CMS",exports.COMPONENTLINK="link",exports.CONTACTHELPCENTERCLICK="contact_helpcenter_click",exports.CONTENT="content",exports.CTABUTTONCLICK="cta_button_click",exports.CTATEXTCLICK="cta_text_click",exports.DEVICEGALLERY="deviceGalleryList",exports.ERRORMESSAGE="Missing or Invalid Error",exports.ERRORTYPE="error",exports.FALCONTITLE="FlaconTitle",exports.FIXNET="fixnet",exports.GAEVENT="gaEvent",exports.ICONPOSITIONLEFT="Left",exports.ICONPOSITIONRIGHT="Right",exports.INTERNETCARD="internet_tv_card_click",exports.INTERNETTVCARD="InternetTVCard",exports.LANG="lang",exports.LINEADDRESS="lineTableView Address",exports.LINECHECKSTART="lineCheckStart",exports.LINETABLERESULT="lineCheckResult",exports.LINK="links",exports.LOGINCLICK="sunrise_login_click",exports.MAINNAVCLICK="mainnavigation_click",exports.MAINNAVIGATION="Mainnavigation",exports.MYPROFILECLICK="profile_mysunrise_click",exports.PROFILECLICK="sunrise_profile_click",exports.PROFILELOGOUT="profile_logout",exports.PROMOTIONTEASER="PromotionTeaser",exports.QUICKLINK="QuickLinks",exports.QUICKLINKCLICK="quicklink_click",exports.RIBBON="Ribbon",exports.SALESHOTLINECLICK="sales_hotline_click",exports.SBLINECHECKRESULT="line_check_results",exports.SBLINECHECKSTART="line_check_start",exports.SEARCH="Search",exports.SELECTPROMOTION="select_promotion",exports.SUBMAINNAVIGATION="SubMainnavigation",exports.SUBNAVCLICK="subnavigation_click",exports.SUBTEASER="Sub Teaser",exports.TEASER="Teaser",exports.TEXTIMAGECOMPONENT="Text_Image_Component",exports.TEXTLINK="Text_link",exports.TYPE="click",exports.VIEW="view",exports.VIEWPROMOTION="view_promotion";
1
+ "use strict";exports.ALL="All",exports.ARTICLEICONSELECT="article_pagination_icon_click",exports.ARTICLELEFTSELECT="article_pagination_left_click",exports.ARTICLERIGHTSELECT="article_pagination_right_click",exports.ARTICLESELECT="article_select_promotion",exports.ARTICLEVIEW="article_view_promotion",exports.CAROUSELICONCLICK="carousel_icon_click",exports.CARTICONCLICK="cart_icon_click",exports.CHANGE="Change",exports.CHECKADDRESS="Check address",exports.CLOSEICONCLICK="close_icon_click",exports.CMS="CMS",exports.COMPONENTLINK="link",exports.CONTACTHELPCENTERCLICK="contact_helpcenter_click",exports.CONTENT="content",exports.CTABUTTONCLICK="cta_button_click",exports.CTATEXTCLICK="cta_text_click",exports.DEVICEGALLERY="deviceGalleryList",exports.ERRORMESSAGE="Missing or Invalid Error",exports.ERRORTYPE="error",exports.FALCONTITLE="FlaconTitle",exports.FIXNET="fixnet",exports.GAEVENT="gaEvent",exports.ICONPOSITIONLEFT="Left",exports.ICONPOSITIONRIGHT="Right",exports.INTERNETCARD="internet_tv_card_click",exports.INTERNETTVCARD="InternetTVCard",exports.LANG="lang",exports.LINEADDRESS="lineTableView Address",exports.LINECHECKSTART="lineCheckStart",exports.LINETABLERESULT="lineCheckResult",exports.LINK="links",exports.LOGINCLICK="sunrise_login_click",exports.MAINNAVCLICK="mainnavigation_click",exports.MAINNAVIGATION="Mainnavigation",exports.MYPROFILECLICK="profile_mysunrise_click",exports.PERSISTENT_CART="persistent_cart",exports.PROFILECLICK="sunrise_profile_click",exports.PROFILELOGOUT="profile_logout",exports.PROMOTIONTEASER="PromotionTeaser",exports.QUICKLINK="QuickLinks",exports.QUICKLINKCLICK="quicklink_click",exports.REMOVE_FROM_CART="remove_from_cart",exports.RIBBON="Ribbon",exports.SALESHOTLINECLICK="sales_hotline_click",exports.SBLINECHECKRESULT="line_check_results",exports.SBLINECHECKSTART="line_check_start",exports.SEARCH="Search",exports.SELECTPROMOTION="select_promotion",exports.SUBMAINNAVIGATION="SubMainnavigation",exports.SUBNAVCLICK="subnavigation_click",exports.SUBTEASER="Sub Teaser",exports.TEASER="Teaser",exports.TEXTIMAGECOMPONENT="Text_Image_Component",exports.TEXTLINK="Text_link",exports.TYPE="click",exports.VIEW="view",exports.VIEWPROMOTION="view_promotion",exports.VIEW_CART="view_cart";
2
2
  //# sourceMappingURL=AnalyticsConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticsConstants.js","sources":["../../../../src/utils/AnalyticsConstants.ts"],"sourcesContent":[null],"names":[],"mappings":"yBA4QmB,gCAnQc,0DADA,2DADC,uDADL,+CADF,mDAyQM,qCAeX,8BAFM,4BAlBT,4BAQU,sCAtCS,2CAnLf,iCAuKO,wCA4BF,uCAnHC,yCAsJD,6CACH,4BAhLE,6BA8EL,yBA5LC,mCA8QS,iCACC,6BA1CL,gDAnGE,8BAxHV,2BAiRO,+CAFG,yCADC,+BAhOX,2BA6MM,2CA7CE,8CA5LE,wCA2OA,+CAHF,8CAEC,yCA/JE,oCAnFN,oCACK,iCAuPR,mCAXW,gDApBA,8CADD,kCAjBV,iCAPS,6CAvLE,wCA4LN,wCAiDF,4BADH,oCAtQY,wCAwOV,yBAhOJ,qBACA,6BA+LS"}
1
+ {"version":3,"file":"AnalyticsConstants.js","sources":["../../../../src/utils/AnalyticsConstants.ts"],"sourcesContent":[null],"names":[],"mappings":"yBA4QmB,gCAnQc,0DADA,2DADC,uDADL,+CADF,mDAyQM,4CAoBJ,iCALP,8BAFM,uCASE,+BA3BX,4BAQU,sCAtCS,2CAnLf,iCAuKO,wCA4BF,uCAnHC,yCAsJD,6CACH,4BAhLE,6BA8EL,yBA5LC,mCA8QS,iCACC,6BA1CL,gDAnGE,8BAxHV,2BAiRO,+CAFG,yCADC,+BAhOX,2BA6MM,2CA7CE,8CA5LE,wCA2OA,kDA2BC,uCA9BH,8CAEC,yCA/JE,oCAnFN,oCACK,2CAgRE,kCAzBV,mCAXW,gDApBA,8CADD,kCAjBV,iCAPS,6CAvLE,wCA4LN,wCAiDF,4BADH,oCAtQY,wCAwOV,yBAhOJ,qBACA,6BA+LS,mCAyFJ"}
@@ -1,96 +1,96 @@
1
- .overline {
2
- color: gray;
3
- }
4
-
5
- .desciption {
6
- font-size: 20px;
7
- line-height: 26px;
8
- color: #3d3935;
9
- }
10
-
11
- .primary {
12
- text-align: center;
13
- background: #da291c;
14
- color: white;
15
- border: none;
16
- border-radius: 28px;
17
- font-weight: 700;
18
- overflow: visible;
19
- padding: 14px 24px;
20
- width: fit-content;
21
-
22
- a {
23
- color: white;
24
- text-decoration: none;
25
- }
26
- }
27
-
28
- .secondary {
29
- text-align: center;
30
- background: white;
31
- color: #da291c;
32
- border: 2px solid #da291c;
33
- border-radius: 28px;
34
- font-weight: 700;
35
- overflow: visible;
36
- padding: 14px 24px;
37
- width: fit-content;
38
-
39
- a {
40
- color: #da291c;
41
- text-decoration: none;
42
- }
43
- }
44
-
45
- .horizontal-left {
46
- display: flex;
47
- justify-content: flex-start;
48
- }
49
-
50
- .horizontal-right {
51
- display: flex;
52
- justify-content: flex-end;
53
- }
54
-
55
- .horizontal-center {
56
- display: flex;
57
- justify-content: center;
58
- margin-top: 20px;
59
- }
60
-
61
- .vertical-left {
62
- display: flex;
63
- flex-direction: column;
64
- align-items: flex-start;
65
- }
66
-
67
- .vertical-right {
68
- display: flex;
69
- flex-direction: column;
70
- align-items: flex-end;
71
- }
72
-
73
- .vertical-center {
74
- display: flex;
75
- flex-direction: column;
76
- align-items: center;
77
- }
78
- .btn-container{
79
- margin-top: 16px;
80
- display: flex;
81
- flex-direction: column;
82
- align-items: center;
83
- }
84
-
85
- .text{
86
- text-align: center;
87
- color: #da291c;
88
- font-weight: 700;
89
- overflow: visible;
90
- padding: 14px 24px;
91
- width: fit-content;
92
- a{
93
- color: #da291c;
94
- text-decoration: none;
95
- }
1
+ .overline {
2
+ color: gray;
3
+ }
4
+
5
+ .desciption {
6
+ font-size: 20px;
7
+ line-height: 26px;
8
+ color: #3d3935;
9
+ }
10
+
11
+ .primary {
12
+ text-align: center;
13
+ background: #da291c;
14
+ color: white;
15
+ border: none;
16
+ border-radius: 28px;
17
+ font-weight: 700;
18
+ overflow: visible;
19
+ padding: 14px 24px;
20
+ width: fit-content;
21
+
22
+ a {
23
+ color: white;
24
+ text-decoration: none;
25
+ }
26
+ }
27
+
28
+ .secondary {
29
+ text-align: center;
30
+ background: white;
31
+ color: #da291c;
32
+ border: 2px solid #da291c;
33
+ border-radius: 28px;
34
+ font-weight: 700;
35
+ overflow: visible;
36
+ padding: 14px 24px;
37
+ width: fit-content;
38
+
39
+ a {
40
+ color: #da291c;
41
+ text-decoration: none;
42
+ }
43
+ }
44
+
45
+ .horizontal-left {
46
+ display: flex;
47
+ justify-content: flex-start;
48
+ }
49
+
50
+ .horizontal-right {
51
+ display: flex;
52
+ justify-content: flex-end;
53
+ }
54
+
55
+ .horizontal-center {
56
+ display: flex;
57
+ justify-content: center;
58
+ margin-top: 20px;
59
+ }
60
+
61
+ .vertical-left {
62
+ display: flex;
63
+ flex-direction: column;
64
+ align-items: flex-start;
65
+ }
66
+
67
+ .vertical-right {
68
+ display: flex;
69
+ flex-direction: column;
70
+ align-items: flex-end;
71
+ }
72
+
73
+ .vertical-center {
74
+ display: flex;
75
+ flex-direction: column;
76
+ align-items: center;
77
+ }
78
+ .btn-container{
79
+ margin-top: 16px;
80
+ display: flex;
81
+ flex-direction: column;
82
+ align-items: center;
83
+ }
84
+
85
+ .text{
86
+ text-align: center;
87
+ color: #da291c;
88
+ font-weight: 700;
89
+ overflow: visible;
90
+ padding: 14px 24px;
91
+ width: fit-content;
92
+ a{
93
+ color: #da291c;
94
+ text-decoration: none;
95
+ }
96
96
  }
@@ -1,3 +1,3 @@
1
1
  import './CartClearConfirm.css';
2
- import{__awaiter as o}from"../../../../node_modules/tslib/tslib.es6.js";import{jsx as e,jsxs as i}from"react/jsx-runtime";import r from"js-cookie";import t from"./CartClearConfirm.module.scss.js";import{clearCart as n}from"../../../../services/CartService.js";import{CART_COOKIE as c}from"../../../Constants.js";const l=({content:l,onCancel:s})=>{const{clearConfirmMsg:a,clearCancelLbl:d,clearConfirmLbl:m,clrRedirectionUrl:f}=l||{};return e("div",{className:t.overlay,role:"dialog","aria-modal":"true",children:i("div",{className:t.dialog,children:[a&&e("p",{className:t.message,children:a}),i("div",{className:t.actions,children:[e("button",{type:"button",className:t.cancelButton,onClick:s,children:d}),e("button",{type:"button",className:t.confirmButton,onClick:()=>o(void 0,void 0,void 0,function*(){const o=r.get(c);if(o)try{if(void 0!==(yield n(o))){r.remove(c);const o=null==f?void 0:f.cached_url;o&&"undefined"!=typeof window&&(window.location.href=o)}}catch(o){s()}}),children:m})]})]})})};export{l as default};
2
+ import{__awaiter as o}from"../../../../node_modules/tslib/tslib.es6.js";import{jsx as i,jsxs as l}from"react/jsx-runtime";import n from"js-cookie";import e from"./CartClearConfirm.module.scss.js";import{clearCart as r}from"../../../../services/CartService.js";import{CART_COOKIE as t}from"../../../Constants.js";import{trackNewDatalayerEvent as c,buildCartAnalyticsItems as s,buildCartAnalyticsData as a}from"../../../../utils/AnalyticUtils.js";import{PERSISTENT_CART as d,CTABUTTONCLICK as m,GAEVENT as u,REMOVE_FROM_CART as v}from"../../../../utils/AnalyticsConstants.js";const f=({content:f,onCancel:p,cartData:C})=>{const{clearConfirmMsg:g,clearCancelLbl:h,clearConfirmLbl:y,clrRedirectionUrl:b}=f||{},{items:j,totals:_}=C;return i("div",{className:e.overlay,role:"dialog","aria-modal":"true",children:l("div",{className:e.dialog,children:[g&&i("p",{className:e.message,children:g}),l("div",{className:e.actions,children:[i("button",{type:"button",className:e.cancelButton,onClick:()=>{p(),c(u,m,{click_text:null!=h?h:"",process_name:d})},children:h}),i("button",{type:"button",className:e.confirmButton,onClick:()=>o(void 0,void 0,void 0,function*(){var o,i,l,e,f,g,h,N;c(u,m,{click_text:null!=y?y:"",process_name:d}),c(v,v,{cartInfo:a(C),ecommerce:{currency:"CHF",value:null!==(N=null!==(g=null!==(e=null!==(i=null===(o=null==_?void 0:_.recurring)||void 0===o?void 0:o.final)&&void 0!==i?i:null===(l=null==_?void 0:_.recurring)||void 0===l?void 0:l.original)&&void 0!==e?e:null===(f=null==_?void 0:_.oneTime)||void 0===f?void 0:f.final)&&void 0!==g?g:null===(h=null==_?void 0:_.oneTime)||void 0===h?void 0:h.original)&&void 0!==N?N:0,items:s(j)},process_name:d});const k=n.get(t);if(k)try{if(void 0!==(yield r(k))){n.remove(t);const o=null==b?void 0:b.cached_url;o&&"undefined"!=typeof window&&(window.location.href=o)}}catch(o){p()}}),children:y})]})]})})};export{f as default};
3
3
  //# sourceMappingURL=CartClearConfirm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CartClearConfirm.js","sources":["../../../../../../../src/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.tsx"],"sourcesContent":[null],"names":["CartClearConfirm","content","onCancel","clearConfirmMsg","clearCancelLbl","clearConfirmLbl","clrRedirectionUrl","_jsx","className","styles","overlay","role","children","_jsxs","dialog","message","actions","type","cancelButton","onClick","confirmButton","__awaiter","cartId","Cookies","get","CART_COOKIE","undefined","clearCart","remove","redirectUrl","cached_url","window","location","href","_a"],"mappings":"wTAWA,MAAMA,EAAmB,EACvBC,UACAC,eAEA,MAAMC,gBAAEA,EAAeC,eAAEA,EAAcC,gBAAEA,EAAeC,kBAAEA,GAAsBL,GAAW,CAAA,EAkB3F,OACEM,EAAA,MAAA,CAAKC,UAAWC,EAAOC,QAASC,KAAK,SAAQ,aAAY,OAAMC,SAC7DC,EAAA,MAAA,CAAKL,UAAWC,EAAOK,iBACpBX,GAAmBI,EAAA,IAAA,CAAGC,UAAWC,EAAOM,QAAOH,SAAGT,IACnDU,SAAKL,UAAWC,EAAOO,QAAOJ,SAAA,CAC5BL,EAAA,SAAA,CACEU,KAAK,SACLT,UAAWC,EAAOS,aAClBC,QAASjB,WAERE,IAEHG,EAAA,SAAA,CACEU,KAAK,SACLT,UAAWC,EAAOW,cAClBD,QA/Bc,IAAWE,OAAA,OAAA,OAAA,EAAA,YACjC,MAAMC,EAASC,EAAQC,IAAIC,GAC3B,GAAKH,EACL,IAEE,QAAiBI,WADMC,EAAUL,IACL,CAC1BC,EAAQK,OAAOH,GACf,MAAMI,EAAcvB,aAAiB,EAAjBA,EAAmBwB,WACnCD,GAAiC,oBAAXE,SACxBA,OAAOC,SAASC,KAAOJ,EAE3B,CACF,CAAE,MAAAK,GACAhC,GACF,CACF,YAkBWG"}
1
+ {"version":3,"file":"CartClearConfirm.js","sources":["../../../../../../../src/components/FalconMainNavigation/CartOverlay/CartClearConfirm/CartClearConfirm.tsx"],"sourcesContent":[null],"names":["CartClearConfirm","content","onCancel","cartData","clearConfirmMsg","clearCancelLbl","clearConfirmLbl","clrRedirectionUrl","items","totals","_jsx","className","styles","overlay","role","children","_jsxs","dialog","message","actions","type","cancelButton","onClick","trackNewDatalayerEvent","GAEVENT","CTABUTTONCLICK","click_text","process_name","PERSISTENT_CART","confirmButton","__awaiter","REMOVE_FROM_CART","cartInfo","buildCartAnalyticsData","ecommerce","currency","value","_f","_d","_a","recurring","final","_b","_c","original","oneTime","_e","_g","_h","buildCartAnalyticsItems","cartId","Cookies","get","CART_COOKIE","undefined","clearCart","remove","redirectUrl","cached_url","window","location","href","_j"],"mappings":"8jBAeA,MAAMA,EAAmB,EACvBC,UACAC,WACAC,eAEA,MAAMC,gBAAEA,EAAeC,eAAEA,EAAcC,gBAAEA,EAAeC,kBAAEA,GAAsBN,GAAW,CAAA,GACrFO,MAAEA,EAAKC,OAAEA,GAAWN,EA+B1B,OACEO,EAAA,MAAA,CAAKC,UAAWC,EAAOC,QAASC,KAAK,SAAQ,aAAY,OAAMC,SAC7DC,EAAA,MAAA,CAAKL,UAAWC,EAAOK,OAAMF,SAAA,CAC1BX,GAAmBM,EAAA,IAAA,CAAGC,UAAWC,EAAOM,QAAOH,SAAGX,IACnDY,EAAA,MAAA,CAAKL,UAAWC,EAAOO,QAAOJ,SAAA,CAC5BL,EAAA,SAAA,CACEU,KAAK,SACLT,UAAWC,EAAOS,aAClBC,QAAS,KACPpB,IACAqB,EAAuBC,EAASC,EAAgB,CAC9CC,WAAYrB,QAAAA,EAAkB,GAC9BsB,aAAcC,KAEjBb,SAEAV,IAEHK,EAAA,SAAA,CACEU,KAAK,SACLT,UAAWC,EAAOiB,cAClBP,QAlDc,IAAWQ,OAAA,OAAA,OAAA,EAAA,gCACjCP,EAAuBC,EAASC,EAAgB,CAC9CC,WAAYpB,QAAAA,EAAmB,GAC/BqB,aAAcC,IAEhBL,EAAuBQ,EAAkBA,EAAkB,CACzDC,SAAUC,EAAuB9B,GACjC+B,UAAW,CACTC,SAAU,MACVC,MAAqH,kBAA9GC,EAAuD,QAAvDC,EAAwB,UAAP,QAAjBC,EAAA9B,aAAM,EAANA,EAAQ+B,iBAAS,IAAAD,OAAA,EAAAA,EAAEE,aAAK,IAAAC,EAAAA,UAAIC,EAAAlC,aAAM,EAANA,EAAQ+B,gCAAWI,gBAAQ,IAAAN,EAAAA,EAAmB,UAAf7B,aAAM,EAANA,EAAQoC,eAAO,IAAAC,OAAA,EAAAA,EAAEL,qBAAwB,QAAfM,EAAAtC,aAAM,EAANA,EAAQoC,eAAO,IAAAE,OAAA,EAAAA,EAAEH,gBAAQ,IAAAI,EAAAA,EAAI,EACzHxC,MAAOyC,EAAwBzC,IAEjCmB,aAAcC,IAEhB,MAAMsB,EAASC,EAAQC,IAAIC,GAC3B,GAAKH,EACL,IAEE,QAAiBI,WADMC,EAAUL,IACL,CAC1BC,EAAQK,OAAOH,GACf,MAAMI,EAAclD,aAAiB,EAAjBA,EAAmBmD,WACnCD,GAAiC,oBAAXE,SACxBA,OAAOC,SAASC,KAAOJ,EAE3B,CACF,CAAE,MAAAK,GACA5D,GACF,CACF,GAsBkCa,SAEvBT"}
@@ -1,3 +1,3 @@
1
1
  import './CartFooter.css';
2
- import{jsxs as l,jsx as o}from"react/jsx-runtime";import e from"./CartFooter.module.scss.js";import{countZero as n}from"../../../../utils/utilities.js";import i from"../../../FalconButtonV3/FalconButtonV3.js";const t=({totals:t,checkout:r,content:a,onClose:d,placeOrderEligible:u})=>{var s,c,v,m,f,b,h,p,T;const{totalMthLbl:g,totalTodayLbl:N,closeBtn:y,completeBtn:L,mnthLbl:B,oldSummaryUrl:j,newSummaryUrl:F}=a||{},V=!!(null==t?void 0:t.recurring)&&!!(null===(s=null==t?void 0:t.oneTime)||void 0===s?void 0:s.original),C="old"===r?null==j?void 0:j.cached_url:null==F?void 0:F.cached_url,I=null==y?void 0:y[0],$=null==L?void 0:L[0];return l("div",{className:e.cartFooter,children:[l("div",{className:e.footerTotals,children:[(null==t?void 0:t.recurring)&&l("div",{className:e.footerTotalsItem,children:[g&&o("span",{className:e.footerTotalsLabel,children:g}),l("span",{className:e.footerTotalsValue,children:[n(null!==(f=null!==(v=null===(c=null==t?void 0:t.recurring)||void 0===c?void 0:c.final)&&void 0!==v?v:null===(m=null==t?void 0:t.recurring)||void 0===m?void 0:m.original)&&void 0!==f?f:""),B&&o("span",{children:B})]})]}),(null===(b=null==t?void 0:t.oneTime)||void 0===b?void 0:b.original)&&l("div",{className:`${e.footerTotalsItem}${V?` ${e.footerTotalsItemDivider}`:""}`,children:[N&&o("span",{className:e.footerTotalsLabel,children:N}),o("span",{className:e.footerTotalsValue,children:n(null!==(p=null===(h=null==t?void 0:t.oneTime)||void 0===h?void 0:h.final)&&void 0!==p?p:null===(T=null==t?void 0:t.oneTime)||void 0===T?void 0:T.original)})]})]}),l("div",{className:e.footerButtons,children:[I&&o(i,{href:"#",label:null==I?void 0:I.buttonLabel,buttonType:null==I?void 0:I.buttonType,iconPosition:"left"===(null==I?void 0:I.buttonAlignment)?"before":"after",onClick:l=>{l.preventDefault(),d()}}),$&&o(i,{href:C||"#",label:null==$?void 0:$.buttonLabel,buttonType:null==$?void 0:$.buttonType,iconPosition:"left"===(null==$?void 0:$.buttonAlignment)?"before":"after",disabled:!u})]})]})};export{t as default};
2
+ import{jsxs as l,jsx as o}from"react/jsx-runtime";import i from"./CartFooter.module.scss.js";import{countZero as n}from"../../../../utils/utilities.js";import e from"../../../FalconButtonV3/FalconButtonV3.js";import{PERSISTENT_CART as t,CTABUTTONCLICK as r,GAEVENT as a}from"../../../../utils/AnalyticsConstants.js";import{trackNewDatalayerEvent as u}from"../../../../utils/AnalyticUtils.js";const d=({totals:d,checkout:s,content:c,onClose:v,placeOrderEligible:m})=>{var f,b,p,h,T,g,y,L,N;const{totalMthLbl:j,totalTodayLbl:_,closeBtn:k,completeBtn:B,mnthLbl:C,oldSummaryUrl:x,newSummaryUrl:A}=c||{},F=!!(null==d?void 0:d.recurring)&&!!(null===(f=null==d?void 0:d.oneTime)||void 0===f?void 0:f.original),V="old"===s?null==x?void 0:x.cached_url:null==A?void 0:A.cached_url,I=null==k?void 0:k[0],U=null==B?void 0:B[0];return l("div",{className:i.cartFooter,children:[l("div",{className:i.footerTotals,children:[(null==d?void 0:d.recurring)&&l("div",{className:i.footerTotalsItem,children:[j&&o("span",{className:i.footerTotalsLabel,children:j}),l("span",{className:i.footerTotalsValue,children:[n(null!==(T=null!==(p=null===(b=null==d?void 0:d.recurring)||void 0===b?void 0:b.final)&&void 0!==p?p:null===(h=null==d?void 0:d.recurring)||void 0===h?void 0:h.original)&&void 0!==T?T:""),C&&o("span",{children:C})]})]}),(null===(g=null==d?void 0:d.oneTime)||void 0===g?void 0:g.original)&&l("div",{className:`${i.footerTotalsItem}${F?` ${i.footerTotalsItemDivider}`:""}`,children:[_&&o("span",{className:i.footerTotalsLabel,children:_}),o("span",{className:i.footerTotalsValue,children:n(null!==(L=null===(y=null==d?void 0:d.oneTime)||void 0===y?void 0:y.final)&&void 0!==L?L:null===(N=null==d?void 0:d.oneTime)||void 0===N?void 0:N.original)})]})]}),l("div",{className:i.footerButtons,children:[I&&o(e,{href:"#",label:null==I?void 0:I.buttonLabel,buttonType:null==I?void 0:I.buttonType,iconPosition:"left"===(null==I?void 0:I.buttonAlignment)?"before":"after",onClick:l=>{var o;l.preventDefault(),v(),u(a,r,{click_text:null!==(o=null==I?void 0:I.buttonLabel)&&void 0!==o?o:"",process_name:t})}}),U&&o(e,{href:V||"#",label:null==U?void 0:U.buttonLabel,buttonType:null==U?void 0:U.buttonType,iconPosition:"left"===(null==U?void 0:U.buttonAlignment)?"before":"after",disabled:!m,onClick:l=>{var o;u(a,r,{click_text:null!==(o=null==U?void 0:U.buttonLabel)&&void 0!==o?o:"",process_name:t})}})]})]})};export{d as default};
3
3
  //# sourceMappingURL=CartFooter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CartFooter.js","sources":["../../../../../../../src/components/FalconMainNavigation/CartOverlay/CartFooter/CartFooter.tsx"],"sourcesContent":[null],"names":["CartFooter","totals","checkout","content","onClose","placeOrderEligible","totalMthLbl","totalTodayLbl","closeBtn","completeBtn","mnthLbl","oldSummaryUrl","newSummaryUrl","hasBothTotals","recurring","_a","oneTime","original","checkoutUrl","cached_url","closeBtnContent","completeBtnContent","_jsxs","className","styles","cartFooter","children","footerTotals","footerTotalsItem","_jsx","footerTotalsLabel","footerTotalsValue","countZero","_c","_b","final","_d","_e","_f","footerTotalsItemDivider","_g","_j","footerButtons","FalconButtonV3","href","label","buttonLabel","buttonType","iconPosition","buttonAlignment","onClick","e","preventDefault","disabled"],"mappings":"iNAqBA,MAAMA,EAAa,EACjBC,SACAC,WACAC,UACAC,UACAC,+CAEA,MAAMC,YAAEA,EAAWC,cAAEA,EAAaC,SAAEA,EAAQC,YAAEA,EAAWC,QAAEA,EAAOC,cAAEA,EAAaC,cAAEA,GAAkBT,GAAW,CAAA,EAC1GU,KAAkBZ,aAAM,EAANA,EAAQa,eAA8B,QAAfC,EAAAd,aAAM,EAANA,EAAQe,eAAO,IAAAD,OAAA,EAAAA,EAAEE,UAC1DC,EAA2B,QAAbhB,EAAqBS,aAAa,EAAbA,EAAeQ,WAAaP,aAAa,EAAbA,EAAeO,WAC9EC,EAAkBZ,eAAAA,EAAW,GAC7Ba,EAAqBZ,eAAAA,EAAc,GAEzC,OACEa,EAAA,MAAA,CAAKC,UAAWC,EAAOC,WAAUC,SAAA,CAC/BJ,EAAA,MAAA,CAAKC,UAAWC,EAAOG,aAAYD,SAAA,EAChCzB,aAAM,EAANA,EAAQa,YACPQ,SAAKC,UAAWC,EAAOI,iBAAgBF,SAAA,CACpCpB,GACCuB,UAAMN,UAAWC,EAAOM,kBAAiBJ,SACtCpB,IAGLgB,EAAA,OAAA,CAAMC,UAAWC,EAAOO,kBAAiBL,SAAA,CACtCM,EAAiE,UAA/B,QAAxBC,UAAAC,EAAAjC,aAAM,EAANA,EAAQa,gCAAWqB,aAAK,IAAAF,EAAAA,EAAqB,QAAjBG,EAAAnC,aAAM,EAANA,EAAQa,iBAAS,IAAAsB,OAAA,EAAAA,EAAEnB,gBAAQ,IAAAoB,EAAAA,EAAI,IACrE3B,GAAWmB,EAAA,OAAA,CAAAH,SAAOhB,mBAIxB4B,EAAArC,aAAM,EAANA,EAAQe,8BAASC,WAChBK,EAAA,MAAA,CAAKC,UAAW,GAAGC,EAAOI,mBAAmBf,EAAgB,IAAIW,EAAOe,0BAA4B,KAAIb,SAAA,CACrGnB,GACCsB,UAAMN,UAAWC,EAAOM,kBAAiBJ,SACtCnB,IAGLsB,EAAA,OAAA,CAAMN,UAAWC,EAAOO,kBAAiBL,SACtCM,YAAyB,QAAfQ,EAAAvC,aAAM,EAANA,EAAQe,eAAO,IAAAwB,OAAA,EAAAA,EAAEL,qBAAwB,QAAfM,EAAAxC,eAAAA,EAAQe,eAAO,IAAAyB,OAAA,EAAAA,EAAExB,kBAK9DK,EAAA,MAAA,CAAKC,UAAWC,EAAOkB,cAAahB,SAAA,CACjCN,GACCS,EAACc,EAAc,CACbC,KAAK,IACLC,MAAOzB,aAAe,EAAfA,EAAiB0B,YACxBC,WAAY3B,aAAe,EAAfA,EAAiB2B,WAC7BC,aAAmD,UAArC5B,eAAAA,EAAiB6B,iBAA6B,SAAW,QACvEC,QAAUC,IAAQA,EAAEC,iBAAkBhD,OAGzCiB,GACCQ,EAACc,GACCC,KAAM1B,GAAe,IACrB2B,MAAOxB,aAAkB,EAAlBA,EAAoByB,YAC3BC,WAAY1B,aAAkB,EAAlBA,EAAoB0B,WAChCC,aAAsD,UAAxC3B,aAAkB,EAAlBA,EAAoB4B,iBAA6B,SAAW,QAC1EI,UAAWhD"}
1
+ {"version":3,"file":"CartFooter.js","sources":["../../../../../../../src/components/FalconMainNavigation/CartOverlay/CartFooter/CartFooter.tsx"],"sourcesContent":[null],"names":["CartFooter","totals","checkout","content","onClose","placeOrderEligible","totalMthLbl","totalTodayLbl","closeBtn","completeBtn","mnthLbl","oldSummaryUrl","newSummaryUrl","hasBothTotals","recurring","_a","oneTime","original","checkoutUrl","cached_url","closeBtnContent","completeBtnContent","_jsxs","className","styles","cartFooter","children","footerTotals","footerTotalsItem","_jsx","footerTotalsLabel","footerTotalsValue","countZero","_e","_c","_b","final","_d","_f","footerTotalsItemDivider","_g","_h","_j","footerButtons","FalconButtonV3","href","label","buttonLabel","buttonType","iconPosition","buttonAlignment","onClick","e","preventDefault","trackNewDatalayerEvent","GAEVENT","CTABUTTONCLICK","click_text","process_name","PERSISTENT_CART","disabled"],"mappings":"wYAuBA,MAAMA,EAAa,EACjBC,SACAC,WACAC,UACAC,UACAC,+CAEA,MAAMC,YAAEA,EAAWC,cAAEA,EAAaC,SAAEA,EAAQC,YAAEA,EAAWC,QAAEA,EAAOC,cAAEA,EAAaC,cAAEA,GAAkBT,GAAW,CAAA,EAC1GU,KAAkBZ,aAAM,EAANA,EAAQa,eAA8B,QAAfC,EAAAd,aAAM,EAANA,EAAQe,eAAO,IAAAD,OAAA,EAAAA,EAAEE,UAC1DC,EAA2B,QAAbhB,EAAqBS,aAAa,EAAbA,EAAeQ,WAAaP,aAAa,EAAbA,EAAeO,WAC9EC,EAAkBZ,eAAAA,EAAW,GAC7Ba,EAAqBZ,eAAAA,EAAc,GAEzC,OACEa,EAAA,MAAA,CAAKC,UAAWC,EAAOC,WAAUC,SAAA,CAC/BJ,EAAA,MAAA,CAAKC,UAAWC,EAAOG,aAAYD,SAAA,EAChCzB,aAAM,EAANA,EAAQa,YACPQ,EAAA,MAAA,CAAKC,UAAWC,EAAOI,iBAAgBF,SAAA,CACpCpB,GACCuB,EAAA,OAAA,CAAMN,UAAWC,EAAOM,kBAAiBJ,SACtCpB,IAGLgB,EAAA,OAAA,CAAMC,UAAWC,EAAOO,kBAAiBL,SAAA,CACtCM,EAAiE,QAAvDC,EAAwB,QAAxBC,EAAiB,QAAjBC,EAAAlC,aAAM,EAANA,EAAQa,iBAAS,IAAAqB,OAAA,EAAAA,EAAEC,aAAK,IAAAF,EAAAA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UAAWvD,EACX8C,QAAUC,UACRE,EAAuBC,EAASC,EAAgB,CAC9CC,WAA2C,QAA/B1C,EAAAM,eAAAA,EAAoB0B,mBAAW,IAAAhC,EAAAA,EAAI,GAC/C2C,aAAcC"}
@@ -1,3 +1,3 @@
1
1
  import './CartHeader.css';
2
- import{jsx as l,jsxs as t}from"react/jsx-runtime";import{Offcanvas as e}from"react-bootstrap";import i from"./CartHeader.module.scss.js";import{replacePlaceholderv2 as o}from"../../../../utils/utilities.js";const r=({content:r,itemCount:n,isLoading:a,error:s,onClearAll:d})=>l(e.Header,{closeButton:!0,children:t(e.Title,{id:"cart-overlay-title",children:[t("div",{className:i.headerTitle,children:[(null==r?void 0:r.title)&&l("span",{children:null==r?void 0:r.title}),!a&&!s&&n>0&&(null==r?void 0:r.itemsCountLbl)&&t("span",{className:i.headerItemCount,children:["(",o(null==r?void 0:r.itemsCountLbl,[String(n)]),")"]})]}),!a&&!s&&n>0&&(null==r?void 0:r.clearLbl)&&l("button",{type:"button",className:i.clearAllButton,onClick:d,children:null==r?void 0:r.clearLbl})]})});export{r as default};
2
+ import{jsx as l,jsxs as t}from"react/jsx-runtime";import{Offcanvas as e}from"react-bootstrap";import i from"./CartHeader.module.scss.js";import{replacePlaceholderv2 as o}from"../../../../utils/utilities.js";import{PERSISTENT_CART as r,CTATEXTCLICK as n,GAEVENT as s}from"../../../../utils/AnalyticsConstants.js";import{trackNewDatalayerEvent as a}from"../../../../utils/AnalyticUtils.js";const c=({content:c,itemCount:d,isLoading:u,error:m,onClearAll:p})=>l(e.Header,{closeButton:!0,children:t(e.Title,{id:"cart-overlay-title",children:[t("div",{className:i.headerTitle,children:[(null==c?void 0:c.title)&&l("span",{children:null==c?void 0:c.title}),!u&&!m&&d>0&&(null==c?void 0:c.itemsCountLbl)&&t("span",{className:i.headerItemCount,children:["(",o(null==c?void 0:c.itemsCountLbl,[String(d)]),")"]})]}),!u&&!m&&d>0&&(null==c?void 0:c.clearLbl)&&l("button",{type:"button",className:i.clearAllButton,onClick:()=>{var l;p(),a(s,n,{click_text:null!==(l=null==c?void 0:c.clearLbl)&&void 0!==l?l:"",process_name:r})},children:null==c?void 0:c.clearLbl})]})});export{c as default};
3
3
  //# sourceMappingURL=CartHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CartHeader.js","sources":["../../../../../../../src/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.tsx"],"sourcesContent":[null],"names":["CartHeader","content","itemCount","isLoading","error","onClearAll","_jsx","Offcanvas","Header","closeButton","children","_jsxs","Title","id","className","styles","headerTitle","title","itemsCountLbl","headerItemCount","replacePlaceholderv2","String","clearLbl","type","clearAllButton","onClick"],"mappings":"+MAaA,MAAMA,EAAa,EACjBC,UACAC,YACAC,YACAC,QACAC,gBAGEC,EAACC,EAAUC,QAAOC,aAAW,EAAAC,SAC3BC,EAACJ,EAAUK,MAAK,CAACC,GAAG,qBAAoBH,SAAA,CACtCC,EAAA,MAAA,CAAKG,UAAWC,EAAOC,YAAWN,SAAA,EAC/BT,aAAO,EAAPA,EAASgB,QAASX,mBAAOL,aAAO,EAAPA,EAASgB,SACjCd,IAAcC,GAASF,EAAY,IAAKD,aAAO,EAAPA,EAASiB,gBACjDP,EAAA,OAAA,CAAMG,UAAWC,EAAOI,gBAAeT,SAAA,CAAA,IAEpCU,EAAqBnB,eAAAA,EAASiB,cAAe,CAC5CG,OAAOnB,KACP,WAKNC,IAAcC,GAASF,EAAY,IAAKD,aAAO,EAAPA,EAASqB,WACjDhB,EAAA,SAAA,CACEiB,KAAK,SACLT,UAAWC,EAAOS,eAClBC,QAASpB,EAAUK,SAElBT,aAAO,EAAPA,EAASqB"}
1
+ {"version":3,"file":"CartHeader.js","sources":["../../../../../../../src/components/FalconMainNavigation/CartOverlay/CartHeader/CartHeader.tsx"],"sourcesContent":[null],"names":["CartHeader","content","itemCount","isLoading","error","onClearAll","_jsx","Offcanvas","Header","closeButton","children","_jsxs","Title","id","className","styles","headerTitle","title","itemsCountLbl","headerItemCount","replacePlaceholderv2","String","clearLbl","type","clearAllButton","onClick","trackNewDatalayerEvent","GAEVENT","CTATEXTCLICK","click_text","_a","process_name","PERSISTENT_CART"],"mappings":"oYAeA,MAAMA,EAAa,EACjBC,UACAC,YACAC,YACAC,QACAC,gBAGEC,EAACC,EAAUC,QAAOC,aAAW,EAAAC,SAC3BC,EAACJ,EAAUK,MAAK,CAACC,GAAG,qBAAoBH,SAAA,CACtCC,EAAA,MAAA,CAAKG,UAAWC,EAAOC,YAAWN,SAAA,EAC/BT,aAAO,EAAPA,EAASgB,QAASX,mBAAOL,aAAO,EAAPA,EAASgB,SACjCd,IAAcC,GAASF,EAAY,IAAKD,aAAO,EAAPA,EAASiB,gBACjDP,EAAA,OAAA,CAAMG,UAAWC,EAAOI,gBAAeT,SAAA,CAAA,IAEpCU,EAAqBnB,eAAAA,EAASiB,cAAe,CAC5CG,OAAOnB,gBAMbC,IAAcC,GAASF,EAAY,IAAKD,aAAO,EAAPA,EAASqB,WACjDhB,EAAA,SAAA,CACEiB,KAAK,SACLT,UAAWC,EAAOS,eAClBC,QAAS,WACPpB,IACAqB,EAAuBC,EAASC,EAAc,CAC5CC,WAA6B,QAAjBC,EAAA7B,eAAAA,EAASqB,gBAAQ,IAAAQ,EAAAA,EAAI,GACjCC,aAAcC,KAEjBtB,SAEAT,aAAO,EAAPA,EAASqB"}
@@ -1,3 +1,3 @@
1
1
  import './CartOverlay.css';
2
- import{jsxs as t,Fragment as e,jsx as r}from"react/jsx-runtime";import{useState as o,useEffect as n}from"react";import{Offcanvas as a}from"react-bootstrap";import i from"./CartOverlay.module.scss.js";import l from"./CartDotLoader/CartDotLoader.js";import s from"./useCartData.js";import d from"./CartItems/CartItems.js";import m from"./CartFooter/CartFooter.js";import c from"./EmptyCart/EmptyCart.js";import p from"./CartHeader/CartHeader.js";import h from"./CartClearConfirm/CartClearConfirm.js";const C=({isOpen:C,onClose:u,content:f})=>{const[v,g]=o(!1),[b,w]=o(!1),{items:y,totals:j,itemCount:x,checkout:L,isLoading:M,error:E,placeOrderEligible:k}=s(C,null==f?void 0:f.errorMsg);n(()=>{C||w(!1)},[C]);return n(()=>{if("undefined"==typeof window)return;if(!window.matchMedia)return void g(window.innerWidth<=767);const t=window.matchMedia("(max-width: 767px)");g(t.matches);const e=t=>g(t.matches);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},[]),t(e,{children:[C&&r("div",{className:i.backdrop,onMouseDown:u,"aria-hidden":"true"}),r("div",{children:t(a,{show:C,placement:v?"bottom":"end",onHide:u,backdrop:!1,scroll:!1,"aria-labelledby":"cart-overlay-title",className:"cart-overlay-panel",style:v?{height:"90dvh"}:{width:"40vw",minWidth:"375px",maxWidth:"600px",border:"0px"},children:[r(p,{content:f,itemCount:x,isLoading:M,error:E,onClearAll:()=>w(!0)}),r(a.Body,{children:M?r(l,{loadingMsg:null==f?void 0:f.loadingMsg}):E?r("p",{className:i.errorMessage,children:E}):(null==y?void 0:y.length)>0?r(d,{cartItems:y,content:f}):r(c,{content:f})}),!M&&!E&&(null==y?void 0:y.length)>0?r(m,{totals:j,checkout:L,content:f,onClose:u,placeOrderEligible:k}):(null==f?void 0:f.footerBtnLbl)&&r("div",{className:i.footer,children:r("button",{type:"button",className:i.dismissButton,onClick:u,children:null==f?void 0:f.footerBtnLbl})}),b&&r(h,{content:f,onCancel:()=>w(!1)})]})})]})};export{C as default};
2
+ import{jsxs as o,Fragment as t,jsx as e}from"react/jsx-runtime";import{useState as r,useEffect as n}from"react";import{Offcanvas as i}from"react-bootstrap";import l from"./CartOverlay.module.scss.js";import a from"./CartDotLoader/CartDotLoader.js";import d from"./useCartData.js";import s from"./CartItems/CartItems.js";import c from"./CartFooter/CartFooter.js";import m from"./EmptyCart/EmptyCart.js";import u from"./CartHeader/CartHeader.js";import v from"./CartClearConfirm/CartClearConfirm.js";import{PERSISTENT_CART as p,CARTICONCLICK as h,GAEVENT as f,VIEW_CART as C,CTABUTTONCLICK as g,CLOSEICONCLICK as b}from"../../../utils/AnalyticsConstants.js";import{trackNewDatalayerEvent as w,buildCartAnalyticsItems as y,buildCartAnalyticsData as j}from"../../../utils/AnalyticUtils.js";const x=({isOpen:x,onClose:L,content:k})=>{const[M,E]=r(!1),[_,B]=r(!1),D=d(x,null==k?void 0:k.errorMsg),{items:N,totals:H,itemCount:I,checkout:O,isLoading:A,error:F,placeOrderEligible:W}=D;n(()=>{x||B(!1)},[x]);return n(()=>{if(w(f,h,{process_name:p}),"undefined"==typeof window)return;if(!window.matchMedia)return void E(window.innerWidth<=767);const o=window.matchMedia("(max-width: 767px)");E(o.matches);const t=o=>E(o.matches);return o.addEventListener("change",t),()=>o.removeEventListener("change",t)},[]),n(()=>{var o,t,e,r,n,i,l,a;(null==N?void 0:N.length)>0&&w(C,C,{cartInfo:j(D),ecommerce:{currency:"CHF",value:null!==(a=null!==(i=null!==(r=null!==(t=null===(o=null==H?void 0:H.recurring)||void 0===o?void 0:o.final)&&void 0!==t?t:null===(e=null==H?void 0:H.recurring)||void 0===e?void 0:e.original)&&void 0!==r?r:null===(n=null==H?void 0:H.oneTime)||void 0===n?void 0:n.final)&&void 0!==i?i:null===(l=null==H?void 0:H.oneTime)||void 0===l?void 0:l.original)&&void 0!==a?a:0,items:y(N)},process_name:p})},[N]),o(t,{children:[x&&e("div",{className:l.backdrop,onMouseDown:L,"aria-hidden":"true"}),e("div",{children:o(i,{show:x,placement:M?"bottom":"end",onHide:()=>{L(),w(f,b,{click_text:"X",process_name:p})},backdrop:!1,scroll:!1,"aria-labelledby":"cart-overlay-title",className:"cart-overlay-panel",style:M?{height:"90dvh"}:{width:"40vw",minWidth:"375px",maxWidth:"600px"},children:[e(u,{content:k,itemCount:I,isLoading:A,error:F,onClearAll:()=>B(!0)}),e(i.Body,{children:A?e(a,{loadingMsg:null==k?void 0:k.loadingMsg}):F?e("p",{className:l.errorMessage,children:F}):(null==N?void 0:N.length)>0?e(s,{cartItems:N,content:k}):e(m,{content:k})}),!A&&!F&&(null==N?void 0:N.length)>0?e(c,{totals:H,checkout:O,content:k,onClose:L,placeOrderEligible:W}):(null==k?void 0:k.footerBtnLbl)&&e("div",{className:l.footer,children:e("button",{type:"button",className:l.dismissButton,onClick:()=>{var o;L(),w(f,g,{click_text:null!==(o=null==k?void 0:k.footerBtnLbl)&&void 0!==o?o:"",process_name:p})},children:null==k?void 0:k.footerBtnLbl})}),_&&e(v,{content:k,onCancel:()=>B(!1),cartData:D})]})})]})};export{x as default};
3
3
  //# sourceMappingURL=CartOverlay.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CartOverlay.js","sources":["../../../../../../src/components/FalconMainNavigation/CartOverlay/CartOverlay.tsx"],"sourcesContent":[null],"names":["CartOverlay","isOpen","onClose","content","isMobile","setIsMobile","useState","showClearConfirm","setShowClearConfirm","items","totals","itemCount","checkout","isLoading","error","placeOrderEligible","useCartData","errorMsg","useEffect","window","matchMedia","innerWidth","mq","matches","handler","e","addEventListener","removeEventListener","_jsxs","_Fragment","children","_jsx","className","styles","backdrop","onMouseDown","Offcanvas","show","placement","onHide","scroll","style","height","width","minWidth","maxWidth","border","CartHeader","onClearAll","Body","CartDotLoader","loadingMsg","errorMessage","length","CartItems","cartItems","EmptyCart","CartFooter","footerBtnLbl","footer","type","dismissButton","onClick","CartClearConfirm","onCancel"],"mappings":"kfA4DA,MAAMA,EAAc,EAAGC,SAAQC,UAASC,cACtC,MAAOC,EAAUC,GAAeC,GAAS,IAClCC,EAAkBC,GAAuBF,GAAS,IACnDG,MAAEA,EAAKC,OAAEA,EAAMC,UAAEA,EAASC,SAAEA,EAAQC,UAAEA,EAASC,MAAEA,EAAKC,mBAAEA,GAAuBC,EACnFf,EACAE,aAAO,EAAPA,EAASc,UAGXC,EAAU,KACHjB,GACHO,GAAoB,IAErB,CAACP,IA+BJ,OAhBAiB,EAAU,KACR,GAAsB,oBAAXC,OACT,OAGF,IAAKA,OAAOC,WAEV,YADAf,EAAYc,OAAOE,YAAc,KAGnC,MAAMC,EAAKH,OAAOC,W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BnD,GACCwB,EAACgC,EAAgB,CACf5D,QAASA,EACT6D,SAAU,IAAMxD,GAAoB"}
1
+ {"version":3,"file":"CartOverlay.js","sources":["../../../../../../src/components/FalconMainNavigation/CartOverlay/CartOverlay.tsx"],"sourcesContent":[null],"names":["CartOverlay","isOpen","onClose","content","isMobile","setIsMobile","useState","showClearConfirm","setShowClearConfirm","cartData","useCartData","errorMsg","items","totals","itemCount","checkout","isLoading","error","placeOrderEligible","useEffect","trackNewDatalayerEvent","GAEVENT","CARTICONCLICK","process_name","PERSISTENT_CART","window","matchMedia","innerWidth","mq","matches","handler","e","addEventListener","removeEventListener","length","VIEW_CART","cartInfo","buildCartAnalyticsData","ecommerce","currency","value","_f","_d","_a","recurring","final","_b","_c","original","oneTime","_e","_g","_h","buildCartAnalyticsItems","_jsxs","_Fragment","children","_jsx","className","styles","backdrop","onMouseDown","Offcanvas","show","placement","onHide","CLOSEICONCLICK","click_text","scroll","style","height","width","minWidth","maxWidth","CartHeader","onClearAll","Body","CartDotLoader","loadingMsg","errorMessage","CartItems","cartItems","EmptyCart","CartFooter","footerBtnLbl","footer","type","dismissButton","onClick","CTABUTTONCLICK","CartClearConfirm","onCancel"],"mappings":"kxBA8DA,MAAMA,EAAc,EAAGC,SAAQC,UAASC,cACtC,MAAOC,EAAUC,GAAeC,GAAS,IAClCC,EAAkBC,GAAuBF,GAAS,GACnDG,EAAWC,EAAYT,EAAQE,aAAO,EAAPA,EAASQ,WACxCC,MAAEA,EAAKC,OAAEA,EAAMC,UAAEA,EAASC,SAAEA,EAAQC,UAAEA,EAASC,MAAEA,EAAKC,mBAAEA,GAAuBT,EAErFU,EAAU,KACHlB,GACHO,GAAoB,IAErB,CAACP,IAgDJ,OAjCAkB,EAAU,KAIR,GAHAC,EAAuBC,EAASC,EAAe,CAC7CC,aAAcC,IAEM,oBAAXC,OACT,OAGF,IAAKA,OAAOC,WAEV,YADArB,EAAYoB,OAAOE,YAAc,KAGnC,MAAMC,EAAKH,OAAOC,WA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ACP0D,WAAY,IAAMnE,GAAoB,KAGxCiD,EAACK,EAAUc,KAAI,CAAApB,SAnFjBxC,EACKyC,EAACoB,EAAa,CAACC,WAAY3E,aAAO,EAAPA,EAAS2E,aAEzC7D,EACKwC,EAAA,IAAA,CAAGC,UAAWC,EAAOoB,aAAYvB,SAAGvC,KAEzCL,aAAK,EAALA,EAAOsB,QAAS,EACXuB,EAACuB,EAAS,CAACC,UAAWrE,EAAOT,QAASA,IAExCsD,EAACyB,EAAS,CAAC/E,QAASA,OA8EnBa,IAAcC,IAASL,aAAK,EAALA,EAAOsB,QAAS,EACvCuB,EAAC0B,EAAU,CACTtE,OAAQA,EACRE,SAAUA,EACVZ,QAASA,EACTD,QAASA,EACTgB,mBAAoBA,KAGtBf,aAAO,EAAPA,EAASiF,eACP3B,EAAA,MAAA,CAAKC,UAAWC,EAAO0B,OAAM7B,SAC3BC,EAAA,SAAA,CACE6B,KAAK,SACL5B,UAAWC,EAAO4B,cAClBC,QAAS,WACPtF,IACAkB,EAAuBC,EAASoE,EAAgB,CAC9CtB,WAAiC,QAArBxB,EAAAxC,eAAAA,EAASiF,oBAAY,IAAAzC,EAAAA,EAAI,GACrCpB,aAAcC,cAIjBrB,aAAO,EAAPA,EAASiF,iBAMjB7E,GACCkD,EAACiC,GACCvF,QAASA,EACTwF,SAAU,IAAMnF,GAAoB,GACpCC,SAAUA"}
@@ -1,3 +1,3 @@
1
1
  import './EmptyCart.css';
2
- import{jsxs as l,jsx as e}from"react/jsx-runtime";import i from"./EmptyCart.module.scss.js";const n=({content:n})=>{const{illustration:a,emptyHeading:t,emptySubTitle:d,ctaCards:o}=n||{};return l("div",{className:i.emptyState,children:[(null==a?void 0:a.filename)&&e("div",{className:i.emptyIcon,children:e("img",{src:null==a?void 0:a.filename,alt:"","aria-hidden":"true"})}),t&&e("p",{className:i.emptyText,children:t}),d&&e("p",{className:i.emptySubText,children:d}),o&&(null==o?void 0:o.length)>0&&e("div",{className:i.categoryLinks,children:o.map(n=>{var a,t,d,o;return l("a",{href:(null===(a=null==n?void 0:n.link)||void 0===a?void 0:a.cached_url)||(null===(t=null==n?void 0:n.link)||void 0===t?void 0:t.url)||"/",className:i.categoryLink,children:[(null===(d=null==n?void 0:n.icon)||void 0===d?void 0:d.filename)&&e("span",{className:i.categoryLinkIcon,children:e("img",{src:null===(o=null==n?void 0:n.icon)||void 0===o?void 0:o.filename,alt:"","aria-hidden":"true",width:24,height:24})}),(null==n?void 0:n.text)&&e("span",{className:i.categoryLinkLabel,children:null==n?void 0:n.text})]},null==n?void 0:n._uid)})})]})};export{n as default};
2
+ import{jsxs as l,jsx as i}from"react/jsx-runtime";import{PERSISTENT_CART as n,QUICKLINKCLICK as e,GAEVENT as t}from"../../../../utils/AnalyticsConstants.js";import{trackNewDatalayerEvent as a}from"../../../../utils/AnalyticUtils.js";import o from"./EmptyCart.module.scss.js";const d=({content:d})=>{const{illustration:r,emptyHeading:c,emptySubTitle:s,ctaCards:u}=d||{};return l("div",{className:o.emptyState,children:[(null==r?void 0:r.filename)&&i("div",{className:o.emptyIcon,children:i("img",{src:null==r?void 0:r.filename,alt:"","aria-hidden":"true"})}),c&&i("p",{className:o.emptyText,children:c}),s&&i("p",{className:o.emptySubText,children:s}),u&&(null==u?void 0:u.length)>0&&i("div",{className:o.categoryLinks,children:u.map(d=>{var r,c,s,u;return l("a",{href:(null===(r=null==d?void 0:d.link)||void 0===r?void 0:r.cached_url)||(null===(c=null==d?void 0:d.link)||void 0===c?void 0:c.url)||"/",className:o.categoryLink,onClick:()=>{var l,i,o;a(t,e,{click_text:null!==(l=null==d?void 0:d.text)&&void 0!==l?l:"",link_url:(null===(i=null==d?void 0:d.link)||void 0===i?void 0:i.cached_url)||(null===(o=null==d?void 0:d.link)||void 0===o?void 0:o.url)||"/",process_name:n})},children:[(null===(s=null==d?void 0:d.icon)||void 0===s?void 0:s.filename)&&i("span",{className:o.categoryLinkIcon,children:i("img",{src:null===(u=null==d?void 0:d.icon)||void 0===u?void 0:u.filename,alt:"","aria-hidden":"true",width:24,height:24})}),(null==d?void 0:d.text)&&i("span",{className:o.categoryLinkLabel,children:null==d?void 0:d.text})]},null==d?void 0:d._uid)})})]})};export{d as default};
3
3
  //# sourceMappingURL=EmptyCart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyCart.js","sources":["../../../../../../../src/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.tsx"],"sourcesContent":[null],"names":["EmptyCart","content","illustration","emptyHeading","emptySubTitle","ctaCards","_jsxs","className","styles","emptyState","children","filename","_jsx","emptyIcon","src","alt","emptyText","emptySubText","length","categoryLinks","map","card","href","_a","link","cached_url","_b","url","categoryLink","_c","icon","categoryLinkIcon","_d","width","height","text","categoryLinkLabel","_uid"],"mappings":"4FAOA,MAAMA,EAAY,EAAGC,cACnB,MAAMC,aAAEA,EAAYC,aAAEA,EAAYC,cAAEA,EAAaC,SAAEA,GAAaJ,GAAW,CAAA,EAE3E,OACEK,SAAKC,UAAWC,EAAOC,WAAUC,SAAA,EAC9BR,aAAY,EAAZA,EAAcS,WACbC,EAAA,MAAA,CAAKL,UAAWC,EAAOK,mBACrBD,EAAA,MAAA,CAAKE,IAAKZ,aAAY,EAAZA,EAAcS,SAAUI,IAAI,GAAE,cAAa,WAGxDZ,GACCS,EAAA,IAAA,CAAGL,UAAWC,EAAOQ,UAASN,SAAGP,IAElCC,GACCQ,EAAA,IAAA,CAAGL,UAAWC,EAAOS,aAAYP,SAAGN,IAErCC,IAAYA,eAAAA,EAAUa,QAAS,GAC9BN,EAAA,MAAA,CAAKL,UAAWC,EAAOW,cAAaT,SACjCL,EAASe,IAAKC,gBAAS,OACtBf,EAAA,IAAA,CAEEgB,MAAgB,QAAVC,EAAAF,aAAI,EAAJA,EAAMG,YAAI,IAAAD,OAAA,EAAAA,EAAEE,cAAwB,QAAVC,EAAAL,aAAI,EAAJA,EAAMG,YAAI,IAAAE,OAAA,EAAAA,EAAEC,MAAO,IACnDpB,UAAWC,EAAOoB,aAAYlB,SAAA,EAEnB,QAAVmB,EAAAR,aAAI,EAAJA,EAAMS,YAAI,IAAAD,OAAA,EAAAA,EAAElB,WACXC,EAAA,OAAA,CAAML,UAAWC,EAAOuB,iBAAgBrB,SACtCE,EAAA,MAAA,CAAKE,IAAe,QAAVkB,EAAAX,aAAI,EAAJA,EAAMS,YAAI,IAAAE,OAAA,EAAAA,EAAErB,SAAUI,IAAI,GAAE,cAAa,OAAOkB,MAAO,GAAIC,OAAQ,QAGhFb,aAAI,EAAJA,EAAMc,OAAQvB,EAAA,OAAA,CAAML,UAAWC,EAAO4B,kBAAiB1B,SAAGW,aAAI,EAAJA,EAAMc,SAT5Dd,aAAI,EAAJA,EAAMgB"}
1
+ {"version":3,"file":"EmptyCart.js","sources":["../../../../../../../src/components/FalconMainNavigation/CartOverlay/EmptyCart/EmptyCart.tsx"],"sourcesContent":[null],"names":["EmptyCart","content","illustration","emptyHeading","emptySubTitle","ctaCards","_jsxs","className","styles","emptyState","children","filename","_jsx","emptyIcon","src","alt","emptyText","emptySubText","length","categoryLinks","map","card","href","link","cached_url","url","categoryLink","onClick","trackNewDatalayerEvent","GAEVENT","QUICKLINKCLICK","click_text","_a","text","link_url","_b","_c","process_name","PERSISTENT_CART","icon","categoryLinkIcon","_d","width","height","categoryLinkLabel","_uid"],"mappings":"mRASA,MAAMA,EAAY,EAAGC,cACnB,MAAMC,aAAEA,EAAYC,aAAEA,EAAYC,cAAEA,EAAaC,SAAEA,GAAaJ,GAAW,CAAA,EAE3E,OACEK,SAAKC,UAAWC,EAAOC,WAAUC,SAAA,EAC9BR,aAAY,EAAZA,EAAcS,WACbC,EAAA,MAAA,CAAKL,UAAWC,EAAOK,mBACrBD,EAAA,MAAA,CAAKE,IAAKZ,aAAY,EAAZA,EAAcS,SAAUI,IAAI,GAAE,cAAa,WAGxDZ,GACCS,EAAA,IAAA,CAAGL,UAAWC,EAAOQ,UAASN,SAAGP,IAElCC,GACCQ,EAAA,IAAA,CAAGL,UAAWC,EAAOS,aAAYP,SAAGN,IAErCC,IAAYA,eAAAA,EAAUa,QAAS,GAC9BN,EAAA,MAAA,CAAKL,UAAWC,EAAOW,cAAaT,SACjCL,EAASe,IAAKC,gBAAS,OACtBf,EAAA,IAAA,CAEEgB,gBAAMD,aAAI,EAAJA,EAAME,2BAAMC,wBAAcH,aAAI,EAAJA,EAAME,2BAAME,MAAO,IACnDlB,UAAWC,EAAOkB,aAClBC,QAAS,eACPC,EAAuBC,EAASC,EAAgB,CAC9CC,WAAsB,QAAVC,EAAAX,eAAAA,EAAMY,YAAI,IAAAD,EAAAA,EAAI,GAC1BE,UAAoB,QAAVC,EAAAd,aAAI,EAAJA,EAAME,YAAI,IAAAY,OAAA,EAAAA,EAAEX,cAAwB,QAAVY,EAAAf,aAAI,EAAJA,EAAME,YAAI,IAAAa,OAAA,EAAAA,EAAEX,MAAO,IACvDY,aAAcC,gBAIP,QAAVF,EAAAf,eAAAA,EAAMkB,YAAI,IAAAH,OAAA,EAAAA,EAAEzB,WACXC,UAAML,UAAWC,EAAOgC,iBAAgB9B,SACtCE,EAAA,MAAA,CAAKE,IAAe,QAAV2B,EAAApB,eAAAA,EAAMkB,YAAI,IAAAE,OAAA,EAAAA,EAAE9B,SAAUI,IAAI,GAAE,cAAa,OAAO2B,MAAO,GAAIC,OAAQ,QAGhFtB,eAAAA,EAAMY,OAAQrB,EAAA,OAAA,CAAML,UAAWC,EAAOoC,2BAAoBvB,aAAI,EAAJA,EAAMY,SAhB5DZ,aAAI,EAAJA,EAAMwB"}
@@ -1,3 +1,3 @@
1
1
  import './FalconMainNavigation.css';
2
- import{jsxs as e,Fragment as i,jsx as o}from"react/jsx-runtime";import n from"./FalconMainNavigation.module.scss.js";import{resolveStoryblokLink as l}from"./shared.js";import r from"./NavigationMenuItem/NavigationMenuItem.js";import a from"./MobileNavigation/MobileNavigation.js";import t from"./FalconHeader/FalconHeader.js";import{InteractiveHamburger as d}from"./InteractiveHamburger/InteractiveHamburger.js";import s from"./ProfileLinkOut/ProfileLinkOut.js";import c from"./useOnClickOutside.js";import v from"./useNavService.js";import u from"./NavContext.js";import{trackNewDatalayerEvent as m}from"../../utils/AnalyticUtils.js";import{MAINNAVCLICK as h,GAEVENT as p,SALESHOTLINECLICK as g,SEARCH as w}from"../../utils/AnalyticsConstants.js";import{useRef as f,useEffect as b,useState as N}from"react";import k from"js-cookie";import y from"./FalconHeader/LocaleSelector/LocaleSelector.js";import I from"./FalconHeader/useScrollCheck.js";import L from"../ResponsiveRow/row.js";import C from"../SearchWrapper/SearchWrapper.js";import S from"./CartOverlay/CartOverlay.js";import{CART_COOKIE as $}from"../Constants.js";import{registerWonderfulChatAuthListener as x}from"../../utils/wonderfulChat.js";const M=({content:M,metadata:j,disableSearchIcon:F=!1,navigationBaseUrl:H})=>{var P,O,B,_,A,E,T,R,D,U,W,q,z,G,V,X,J,K,Q,Y,Z,ee,ie,oe,ne,le,re,ae,te,de;const se=f(null),ce=f(!1),{activeNavLinkId:ve,navCtx:ue}=v(M.navigationItems,null==j?void 0:j.activePath),{isScrollBreak:me}=I();b(()=>{var e,i;const o=()=>{const e=se.current,i=document.querySelector("#main")||document.querySelector(".page-body");if(!e||!i)return!1;const o=Math.ceil(e.getBoundingClientRect().bottom),n=window.matchMedia("(max-width: 1023px)").matches?50:72,l=Math.max(o-(me?52:0),n);return document.documentElement.style.setProperty("--main-nav-height",`${l}px`),i.style.paddingTop=`${l}px`,ce.current=!0,!0};let n=0,l=0,r=!1,a=0,t=0;const d=()=>{n||(n=window.requestAnimationFrame(()=>{n=0,o()}))},s=()=>{if(ce.current)return;o()||t>=20||(t+=1,a=window.setTimeout(s,100))},c=()=>{r&&(o(),l=window.requestAnimationFrame(c))},v=e=>{e.target===se.current&&(r||(r=!0,c()))},u=e=>{e.target===se.current&&(r=!1,l&&(window.cancelAnimationFrame(l),l=0),d())};return window.addEventListener("resize",d),window.addEventListener("scroll",d,{passive:!0}),null===(e=se.current)||void 0===e||e.addEventListener("transitionstart",v),null===(i=se.current)||void 0===i||i.addEventListener("transitionend",u),o(),s(),d(),()=>{var e,i;window.removeEventListener("resize",d),window.removeEventListener("scroll",d),null===(e=se.current)||void 0===e||e.removeEventListener("transitionstart",v),null===(i=se.current)||void 0===i||i.removeEventListener("transitionend",u),n&&window.cancelAnimationFrame(n),l&&window.cancelAnimationFrame(l),a&&window.clearTimeout(a)}},[me,ue.navStore.isMobMenuOpen]);const[he,pe]=N(!1),[ge,we]=N(!1),[fe,be]=N(!1);b(()=>{if("undefined"==typeof document)return;const e=document.body,i=e.style.overflow,o=e.style.overscrollBehavior;return ue.navStore.isMobMenuOpen?(e.style.overflow="hidden",e.style.overscrollBehavior="none"):(e.style.overflow=i||"",e.style.overscrollBehavior=o||""),()=>{e.style.overflow=i,e.style.overscrollBehavior=o}},[ue.navStore.isMobMenuOpen]),b(()=>x(),[]),b(()=>{be(!!k.get($))},[]);const Ne=process.env.NEXT_PUBLIC_APP_VERSION,ke=process.env.NEXT_PUBLIC_CHANNEL||"",ye=Ne?`${ke}_${Ne}`:void 0,Ie="prod"===(null===(P=process.env.TARGET_ENVIRONMENT)||void 0===P?void 0:P.toLowerCase()),Le=c(ue.reset,"",""!==ue.navStore.activeDeskId),Ce=null===(O=null==M?void 0:M.rewardsBlok)||void 0===O?void 0:O[0],Se=Boolean(null==M?void 0:M.isBlackFriday),$e=`${H||""}${(null===(B=null==M?void 0:M.logoutUrl)||void 0===B?void 0:B.trim())||"logout"}`,xe=()=>{var e,i;m(p,g,{click_text:null===(i=null===(e=null==M?void 0:M.salesHotlinePopup)||void 0===e?void 0:e[0])||void 0===i?void 0:i.label})},Me=()=>{var e,i;const o=(null===(e=null==Ce?void 0:Ce.url)||void 0===e?void 0:e.cached_url)||(null===(i=null==Ce?void 0:Ce.url)||void 0===i?void 0:i.url)||"";o&&(window.location.href=o)},je=l(j,null==M?void 0:M.sunriseLogoLink),Fe=null===(_=null==M?void 0:M.sunriseLogo)||void 0===_?void 0:_.filename,He=null===(A=null==M?void 0:M.sunriseLogoMobile)||void 0===A?void 0:A.filename,Pe=c(pe,!1,he),Oe=null===(E=null==M?void 0:M.searchIcon)||void 0===E?void 0:E.filename,Be=null===(T=null==M?void 0:M.phoneIcon)||void 0===T?void 0:T.filename,_e=null===(R=null==M?void 0:M.headsetIcon)||void 0===R?void 0:R.filename,Ae=fe?null===(W=null===(U=null===(D=null==M?void 0:M.cart)||void 0===D?void 0:D[0])||void 0===U?void 0:U.cartIcon)||void 0===W?void 0:W.filename:null===(G=null===(z=null===(q=null==M?void 0:M.cart)||void 0===q?void 0:q[0])||void 0===z?void 0:z.emptyCartIcon)||void 0===G?void 0:G.filename;return e(i,{children:[o(u,{value:ue,children:o(i,{children:e("header",{ref:e=>{se.current=e,Le.current=e},className:`falcon-header-section ${n.container} ${Se?n["black-friday"]:""} ${me&&n["falcon-nav"]} ${ue.navStore.isMobMenuOpen?"mob-nav-expand":""} `,"data-app-version":ye||"",children:[!Ie&&ye&&o("div",{className:n["s20-header__version-number"],children:o("p",{children:ye})}),e("div",{children:[o("div",{children:M.header.map((e,i)=>o(t,{content:e,metadata:j,isBlackFriday:Se,arrowDown:null==M?void 0:M.arrowDown,greyArrowDown:null==M?void 0:M.greyArrowDown},i))}),o("span",{className:`${n["desktop-block"]}`,children:o(L,{children:o("a",{href:(null===(V=null==M?void 0:M.sunriseLogoLink)||void 0===V?void 0:V.cached_url)?je:"",className:`${n["new-logo"]} ${me&&n.resize}`,children:o("img",{src:Fe,alt:M.sunriseLogoAlt||"Sunrise | Handy-, Internet- und TV-Abos für die Schweiz"})})})}),o("div",{children:e("div",{className:`${ue.navStore.isMobMenuOpen?n["open-content"]:n.content} ${!ue.navStore.isMobMenuOpen&&"sunrise-box-shadow"}`,children:[o(L,{children:e("div",{className:`d-flex align-items-center ${n["nav-bar"]}`,children:[o("div",{className:"flex-shrink-0 flex-grow-1",children:o("a",{href:M.sunriseLogoLink.cached_url||"/",onClick:()=>ue.reset(),title:"Sunrise",className:`${n["sunrise-logo"]} ${me?n.visible:n["not-visible"]}`,style:{backgroundImage:`url(${He})`}})}),o("div",{className:"hide-in-mob hide-in-tab full-width",children:e("div",{className:`d-flex flex-grow-1 ${n["desktop-margin"]}`,children:[o("nav",{className:"nav",children:M.navigationItems.map(e=>o(r,{content:e,activeNavLinkId:ve,metadata:j,promoIcon:M.icon,promoTextColor:M.textColor,promoTextGradient:M.textGradient,subNavigationFontWeight:M.subNavigationFontWeight,iconPlacement:M.iconPlacement,isBlackFriday:Se},e._uid))}),e("div",{className:"d-flex flex-shrink-0",children:[!(null===(J=null===(X=null==M?void 0:M.salesHotlinePopup)||void 0===X?void 0:X[0])||void 0===J?void 0:J.disableHotline)&&((null===(K=null==M?void 0:M.salesHotlinePopup)||void 0===K?void 0:K.length)>0?e(i,{children:[_e&&o("img",{onClick:xe,className:n.headset,src:_e,alt:"","aria-hidden":"true"}),o("span",{onClick:xe,className:n["phone-number"],children:null===(Y=null===(Q=null==M?void 0:M.salesHotlinePopup)||void 0===Q?void 0:Q[0])||void 0===Y?void 0:Y.label})]}):M.salesHotlineNumber&&e(i,{children:[Be&&o("img",{className:n["phone-icon"],src:Be,alt:"","aria-hidden":"true"}),o("span",{className:n["phone-number"],children:M.salesHotlineNumber})]})),(null===(ee=null===(Z=null==M?void 0:M.salesHotlinePopup)||void 0===Z?void 0:Z[0])||void 0===ee?void 0:ee.disableHotline)&&Ce&&e(i,{children:[o("img",{onClick:Me,className:n.rewards,src:null==Ce?void 0:Ce.icon,height:24,width:24,alt:"Rewards Icon"}),o("span",{onClick:Me,className:n["phone-number"],children:null==Ce?void 0:Ce.title})]}),o("div",{className:n["search-icon-div"],children:o("a",{onClick:()=>{var e;F||(pe(!he),ue.reset(),m(p,h,{link_url:null===(e=null==M?void 0:M.searchIconLink)||void 0===e?void 0:e.cached_url,click_text:w}))},className:`${n["search-icon"]}${F?` ${n["search-icon-disabled"]}`:""}`,"aria-disabled":F,tabIndex:F?-1:0,children:Oe&&o("img",{src:Oe,alt:"Search",width:24,height:24})})}),o(s,{link:M.mySunriseLink,title:M.mySunriseTitle,logoutLabel:null==M?void 0:M.logoutLabel,salutationLabel:null==M?void 0:M.salutationLabel,userIcon:null==M?void 0:M.mySunriseUserIcon,arrowRight:null==M?void 0:M.arrowRight,arrowDown:null==M?void 0:M.arrowDown,logoutIcon:null==M?void 0:M.logoutIcon,logoutUrl:$e,isBlackFriday:Se}),(null===(oe=null===(ie=null==M?void 0:M.cart)||void 0===ie?void 0:ie[0])||void 0===oe?void 0:oe.showCart)&&Ae&&o("button",{className:n["cart-icon-div"],onClick:()=>we(!0),"aria-label":"Open cart",type:"button",children:o("img",{src:Ae,alt:"cart","aria-hidden":"true",width:24,height:24})})]})]})}),o("div",{className:"hide-in-desktop",children:e("div",{className:"d-flex align-items-center",children:[o("li",{className:`${n["list-item"]} ${n.language} ${ue.navStore.isMobMenuOpen?"d-none":""}`,children:o(y,{localeSelector:M.header[0]&&M.header[0].localeSelector,metadata:j,isBlackFriday:Se,tickIcon:null==M?void 0:M.tickIcon,greyArrowDown:null==M?void 0:M.greyArrowDown})}),(null===(ne=null==M?void 0:M.salesHotlinePopup)||void 0===ne?void 0:ne.length)>0&&!(null===(re=null===(le=null==M?void 0:M.salesHotlinePopup)||void 0===le?void 0:le[0])||void 0===re?void 0:re.disableHotline)?_e?o("img",{onClick:xe,className:n.headset,src:_e,alt:"","aria-hidden":"true"}):null:Ce?o("img",{onClick:Me,className:n.rewards,src:null==Ce?void 0:Ce.icon,height:24,width:24,alt:"Rewards Icon"}):null,o("a",{onClick:()=>{F||(pe(!he),ue.reset())},className:`${n["search-icon"]}${F?` ${n["search-icon-disabled"]}`:""}`,"aria-disabled":F,tabIndex:F?-1:0,children:Oe&&o("img",{src:Oe,alt:"Search",width:24,height:24})}),(null===(te=null===(ae=null==M?void 0:M.cart)||void 0===ae?void 0:ae[0])||void 0===te?void 0:te.showCart)&&Ae&&o("button",{className:n["cart-icon-div"],onClick:()=>we(!0),"aria-label":"Open cart",type:"button",children:o("img",{src:Ae,alt:"cart","aria-hidden":"true",width:24,height:24})})]})}),o(d,{closeIcon:null==M?void 0:M.closeIcon})]})}),o(a,{content:M,activeNavLinkId:ve,metadata:j,resolvedLogoutUrl:$e,subNavigationFontWeight:M.subNavigationFontWeight,iconPlacement:M.iconPlacement,isBlackFriday:Se,newStyle:null==M?void 0:M.newStyle})]})})]})]})})}),!F&&he&&o("div",{ref:Pe,children:o(C,{content:null==M?void 0:M.searchComponent,scroll:me})}),o(S,{isOpen:ge,onClose:()=>we(!1),content:null===(de=null==M?void 0:M.cart)||void 0===de?void 0:de[0]})]})};export{M as default};
2
+ import{jsxs as e,Fragment as i,jsx as o}from"react/jsx-runtime";import n from"./FalconMainNavigation.module.scss.js";import{resolveStoryblokLink as l}from"./shared.js";import r from"./NavigationMenuItem/NavigationMenuItem.js";import a from"./MobileNavigation/MobileNavigation.js";import t from"./FalconHeader/FalconHeader.js";import{InteractiveHamburger as d}from"./InteractiveHamburger/InteractiveHamburger.js";import s from"./ProfileLinkOut/ProfileLinkOut.js";import c from"./useOnClickOutside.js";import v from"./useNavService.js";import u from"./NavContext.js";import{trackNewDatalayerEvent as m}from"../../utils/AnalyticUtils.js";import{MAINNAVCLICK as h,GAEVENT as p,SALESHOTLINECLICK as g,SEARCH as w}from"../../utils/AnalyticsConstants.js";import{useRef as f,useEffect as b,useState as N}from"react";import k from"js-cookie";import y from"./FalconHeader/LocaleSelector/LocaleSelector.js";import I from"./FalconHeader/useScrollCheck.js";import L from"../ResponsiveRow/row.js";import C from"../SearchWrapper/SearchWrapper.js";import S from"./CartOverlay/CartOverlay.js";import{CART_COOKIE as $}from"../Constants.js";import{registerWonderfulChatAuthListener as x}from"../../utils/wonderfulChat.js";const M=({content:M,metadata:j,disableSearchIcon:F=!1,navigationBaseUrl:H})=>{var P,O,B,_,A,E,T,R,D,U,W,q,z,G,V,X,J,K,Q,Y,Z,ee,ie,oe,ne,le,re,ae,te,de;const se=f(null),ce=f(!1),{activeNavLinkId:ve,navCtx:ue}=v(M.navigationItems,null==j?void 0:j.activePath),{isScrollBreak:me}=I();b(()=>{var e,i;const o=()=>{const e=se.current,i=document.querySelector("#main")||document.querySelector(".page-body");if(!e||!i)return!1;const o=Math.ceil(e.getBoundingClientRect().bottom),n=window.matchMedia("(max-width: 1023px)").matches?50:72,l=Math.max(o-(me?52:0),n);return document.documentElement.style.setProperty("--main-nav-height",`${l}px`),i.style.paddingTop=`${l}px`,ce.current=!0,!0};let n=0,l=0,r=!1,a=0,t=0;const d=()=>{n||(n=window.requestAnimationFrame(()=>{n=0,o()}))},s=()=>{if(ce.current)return;o()||t>=20||(t+=1,a=window.setTimeout(s,100))},c=()=>{r&&(o(),l=window.requestAnimationFrame(c))},v=e=>{e.target===se.current&&(r||(r=!0,c()))},u=e=>{e.target===se.current&&(r=!1,l&&(window.cancelAnimationFrame(l),l=0),d())};return window.addEventListener("resize",d),window.addEventListener("scroll",d,{passive:!0}),null===(e=se.current)||void 0===e||e.addEventListener("transitionstart",v),null===(i=se.current)||void 0===i||i.addEventListener("transitionend",u),o(),s(),d(),()=>{var e,i;window.removeEventListener("resize",d),window.removeEventListener("scroll",d),null===(e=se.current)||void 0===e||e.removeEventListener("transitionstart",v),null===(i=se.current)||void 0===i||i.removeEventListener("transitionend",u),n&&window.cancelAnimationFrame(n),l&&window.cancelAnimationFrame(l),a&&window.clearTimeout(a)}},[me,ue.navStore.isMobMenuOpen]);const[he,pe]=N(!1),[ge,we]=N(!1),[fe,be]=N(!1);b(()=>{if("undefined"==typeof document)return;const e=document.body,i=e.style.overflow,o=e.style.overscrollBehavior;return ue.navStore.isMobMenuOpen?(e.style.overflow="hidden",e.style.overscrollBehavior="none"):(e.style.overflow=i||"",e.style.overscrollBehavior=o||""),()=>{e.style.overflow=i,e.style.overscrollBehavior=o}},[ue.navStore.isMobMenuOpen]),b(()=>x(),[]),b(()=>{be(!!k.get($))},[]);const Ne=process.env.NEXT_PUBLIC_APP_VERSION,ke=process.env.NEXT_PUBLIC_CHANNEL||"",ye=Ne?`${ke}_${Ne}`:void 0,Ie="prod"===(null===(P=process.env.TARGET_ENVIRONMENT)||void 0===P?void 0:P.toLowerCase()),Le=c(ue.reset,"",""!==ue.navStore.activeDeskId),Ce=null===(O=null==M?void 0:M.rewardsBlok)||void 0===O?void 0:O[0],Se=Boolean(null==M?void 0:M.isBlackFriday),$e=`${H||""}${(null===(B=null==M?void 0:M.logoutUrl)||void 0===B?void 0:B.trim())||"logout"}`,xe=()=>{var e,i;m(p,g,{click_text:null===(i=null===(e=null==M?void 0:M.salesHotlinePopup)||void 0===e?void 0:e[0])||void 0===i?void 0:i.label})},Me=()=>{var e,i;const o=(null===(e=null==Ce?void 0:Ce.url)||void 0===e?void 0:e.cached_url)||(null===(i=null==Ce?void 0:Ce.url)||void 0===i?void 0:i.url)||"";o&&(window.location.href=o)},je=l(j,null==M?void 0:M.sunriseLogoLink),Fe=null===(_=null==M?void 0:M.sunriseLogo)||void 0===_?void 0:_.filename,He=null===(A=null==M?void 0:M.sunriseLogoMobile)||void 0===A?void 0:A.filename,Pe=c(pe,!1,he),Oe=null===(E=null==M?void 0:M.searchIcon)||void 0===E?void 0:E.filename,Be=null===(T=null==M?void 0:M.phoneIcon)||void 0===T?void 0:T.filename,_e=null===(R=null==M?void 0:M.headsetIcon)||void 0===R?void 0:R.filename,Ae=fe?null===(W=null===(U=null===(D=null==M?void 0:M.cart)||void 0===D?void 0:D[0])||void 0===U?void 0:U.cartIcon)||void 0===W?void 0:W.filename:null===(G=null===(z=null===(q=null==M?void 0:M.cart)||void 0===q?void 0:q[0])||void 0===z?void 0:z.emptyCartIcon)||void 0===G?void 0:G.filename;return e(i,{children:[o(u,{value:ue,children:o(i,{children:e("header",{ref:e=>{se.current=e,Le.current=e},className:`falcon-header-section ${n.container} ${Se?n["black-friday"]:""} ${me&&n["falcon-nav"]} ${ue.navStore.isMobMenuOpen?"mob-nav-expand":""} `,"data-app-version":ye||"",children:[!Ie&&ye&&o("div",{className:n["s20-header__version-number"],children:o("p",{children:ye})}),e("div",{children:[o("div",{children:M.header.map((e,i)=>o(t,{content:e,metadata:j,isBlackFriday:Se,arrowDown:null==M?void 0:M.arrowDown,greyArrowDown:null==M?void 0:M.greyArrowDown},i))}),o("span",{className:`${n["desktop-block"]}`,children:o(L,{children:o("a",{href:(null===(V=null==M?void 0:M.sunriseLogoLink)||void 0===V?void 0:V.cached_url)?je:"",className:`${n["new-logo"]} ${me&&n.resize}`,children:o("img",{src:Fe,alt:M.sunriseLogoAlt||"Sunrise | Handy-, Internet- und TV-Abos für die Schweiz"})})})}),o("div",{children:e("div",{className:`${ue.navStore.isMobMenuOpen?n["open-content"]:n.content} ${!ue.navStore.isMobMenuOpen&&"sunrise-box-shadow"}`,children:[o(L,{children:e("div",{className:`d-flex align-items-center ${n["nav-bar"]}`,children:[o("div",{className:"flex-shrink-0 flex-grow-1",children:o("a",{href:M.sunriseLogoLink.cached_url||"/",onClick:()=>ue.reset(),title:"Sunrise",className:`${n["sunrise-logo"]} ${me?n.visible:n["not-visible"]}`,style:{backgroundImage:`url(${He})`}})}),o("div",{className:"hide-in-mob hide-in-tab full-width",children:e("div",{className:`d-flex flex-grow-1 ${n["desktop-margin"]}`,children:[o("nav",{className:"nav",children:M.navigationItems.map(e=>o(r,{content:e,activeNavLinkId:ve,metadata:j,promoIcon:M.icon,promoTextColor:M.textColor,promoTextGradient:M.textGradient,subNavigationFontWeight:M.subNavigationFontWeight,iconPlacement:M.iconPlacement,isBlackFriday:Se},e._uid))}),e("div",{className:"d-flex flex-shrink-0",children:[!(null===(J=null===(X=null==M?void 0:M.salesHotlinePopup)||void 0===X?void 0:X[0])||void 0===J?void 0:J.disableHotline)&&((null===(K=null==M?void 0:M.salesHotlinePopup)||void 0===K?void 0:K.length)>0?e(i,{children:[_e&&o("img",{onClick:xe,className:n.headset,src:_e,alt:"","aria-hidden":"true"}),o("span",{onClick:xe,className:n["phone-number"],children:null===(Y=null===(Q=null==M?void 0:M.salesHotlinePopup)||void 0===Q?void 0:Q[0])||void 0===Y?void 0:Y.label})]}):M.salesHotlineNumber&&e(i,{children:[Be&&o("img",{className:n["phone-icon"],src:Be,alt:"","aria-hidden":"true"}),o("span",{className:n["phone-number"],children:M.salesHotlineNumber})]})),(null===(ee=null===(Z=null==M?void 0:M.salesHotlinePopup)||void 0===Z?void 0:Z[0])||void 0===ee?void 0:ee.disableHotline)&&Ce&&e(i,{children:[o("img",{onClick:Me,className:n.rewards,src:null==Ce?void 0:Ce.icon,height:24,width:24,alt:"Rewards Icon"}),o("span",{onClick:Me,className:n["phone-number"],children:null==Ce?void 0:Ce.title})]}),o("div",{className:n["search-icon-div"],children:o("a",{onClick:()=>{var e;F||(pe(!he),ue.reset(),m(p,h,{link_url:null===(e=null==M?void 0:M.searchIconLink)||void 0===e?void 0:e.cached_url,click_text:w}))},className:`${n["search-icon"]}${F?` ${n["search-icon-disabled"]}`:""}`,"aria-disabled":F,tabIndex:F?-1:0,children:Oe&&o("img",{src:Oe,alt:"Search",width:24,height:24})})}),o(s,{link:M.mySunriseLink,title:M.mySunriseTitle,logoutLabel:null==M?void 0:M.logoutLabel,salutationLabel:null==M?void 0:M.salutationLabel,userIcon:null==M?void 0:M.mySunriseUserIcon,arrowRight:null==M?void 0:M.arrowRight,arrowDown:null==M?void 0:M.arrowDown,logoutIcon:null==M?void 0:M.logoutIcon,logoutUrl:$e,isBlackFriday:Se}),(null===(oe=null===(ie=null==M?void 0:M.cart)||void 0===ie?void 0:ie[0])||void 0===oe?void 0:oe.showCart)&&Ae&&o("button",{className:n["cart-icon-div"],onClick:()=>we(!0),"aria-label":"Open cart",type:"button",children:o("img",{src:Ae,alt:"cart","aria-hidden":"true",width:24,height:24})})]})]})}),o("div",{className:"hide-in-desktop",children:e("div",{className:"d-flex align-items-center",children:[o("li",{className:`${n["list-item"]} ${n.language} ${ue.navStore.isMobMenuOpen?"d-none":""}`,children:o(y,{localeSelector:M.header[0]&&M.header[0].localeSelector,metadata:j,isBlackFriday:Se,tickIcon:null==M?void 0:M.tickIcon,greyArrowDown:null==M?void 0:M.greyArrowDown})}),(null===(ne=null==M?void 0:M.salesHotlinePopup)||void 0===ne?void 0:ne.length)>0&&!(null===(re=null===(le=null==M?void 0:M.salesHotlinePopup)||void 0===le?void 0:le[0])||void 0===re?void 0:re.disableHotline)?_e?o("img",{onClick:xe,className:n.headset,src:_e,alt:"","aria-hidden":"true"}):null:Ce?o("img",{onClick:Me,className:n.rewards,src:null==Ce?void 0:Ce.icon,height:24,width:24,alt:"Rewards Icon"}):null,o("a",{onClick:()=>{F||(pe(!he),ue.reset())},className:`${n["search-icon"]}${F?` ${n["search-icon-disabled"]}`:""}`,"aria-disabled":F,tabIndex:F?-1:0,children:Oe&&o("img",{src:Oe,alt:"Search",width:24,height:24})}),(null===(te=null===(ae=null==M?void 0:M.cart)||void 0===ae?void 0:ae[0])||void 0===te?void 0:te.showCart)&&Ae&&o("button",{className:n["cart-icon-div"],onClick:()=>we(!0),"aria-label":"Open cart",type:"button",children:o("img",{src:Ae,alt:"cart","aria-hidden":"true",width:24,height:24})})]})}),o(d,{closeIcon:null==M?void 0:M.closeIcon})]})}),o(a,{content:M,activeNavLinkId:ve,metadata:j,resolvedLogoutUrl:$e,subNavigationFontWeight:M.subNavigationFontWeight,iconPlacement:M.iconPlacement,isBlackFriday:Se,newStyle:null==M?void 0:M.newStyle})]})})]})]})})}),!F&&he&&o("div",{ref:Pe,children:o(C,{content:null==M?void 0:M.searchComponent,scroll:me})}),ge&&o(S,{isOpen:ge,onClose:()=>we(!1),content:null===(de=null==M?void 0:M.cart)||void 0===de?void 0:de[0]})]})};export{M as default};
3
3
  //# sourceMappingURL=FalconMainNavigation.js.map