1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4340],{88504:function(e,i,t){t(45503),t(42772),t(76277),t(23e3),t(15466),t(28835),t(96965);i.A=function(e){var i,t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((null===e||void 0===e||null===(i=e.variants)||void 0===i?void 0:i.length)>0&&(null===(t=Object.keys(null===e||void 0===e||null===(n=e.variants)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.value))||void 0===t?void 0:t.length)>0){var a,o,l,d=JSON.parse(null===e||void 0===e||null===(a=e.variants)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.value),p=null===d||void 0===d||null===(o=d.campaign)||void 0===o||null===(o=o.campaignResponses)||void 0===o?void 0:o.filter(function(e){var i;return null===e||void 0===e||null===(i=e.payload)||void 0===i||null===(i=i.testType)||void 0===i?void 0:i.includes("ca_delivery")}),c=null===p||void 0===p||null===(l=p[0])||void 0===l||null===(l=l.payload)||void 0===l?void 0:l.userGroup;return"test"===(null===c||void 0===c?void 0:c.toLowerCase())&&r}return!1}},45571:function(e,i,t){t.d(i,{A:function(){return b}});t(22369),t(44546),t(1075),t(23e3),t(28835),t(33960),t(82336);var n=t(41594),r=t.n(n),a=t(68217),o=t(26306),l=t(80998),d=t(17191),p=t(46560),c=t(93396),u=(t(53433),t(40464),t(97021),t(84059)),s=t(52233),v=(0,a.A)(function(){return{container:{position:"relative"},wrapperLeft:{display:"flex",justifyContent:"flex-end",paddingRight:"16px","& $dialog":{left:"unset",right:"16px","@media screen and (max-width: 440px)":{width:"100%"}}},dialog:{display:"flex",justifyContent:"center",width:"398px","@media screen and (max-width: 1024px)":{padding:"0px 10px 0px 0px"},"@media screen and (max-width: 400px)":{width:"100%",padding:"0px 5px 0px 15px"}},dialogOpen:{opacity:"1",visibility:"visible"},dialogClose:{opacity:"0",visibility:"hidden"},dialogWrapper:{background:"white",borderRadius:"5px",boxShadow:"0px 4px 8px 0px #0000004D",margin:"0 auto",paddingBottom:"4px",minHeight:"250px",height:"max-content"},dialogHeader:{justifyContent:"space-between",width:"100%",gridTemplateColumns:"calc(100% - 16px) 16px",display:"grid",padding:"9px 12.5px 9px 20px",backgroundColor:"#E9E9E9",alignItems:"center",borderRadius:"5px",borderBottomRightRadius:"0px",borderBottomLeftRadius:"0px"},closeIcon:{display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},dialogContent:{padding:"16px 20px 12px",gridTemplateColumns:"50% auto",display:"grid",justifyContent:"space-between",alignItems:"center","& div":{fontSize:"16px",lineHeight:"26px",letterSpacing:"0.5px","@media screen and (max-width: 400px)":{fontSize:"14px"},"@media screen and (max-width: 362px)":{fontSize:"12px"}}},title:{fontSize:"14px",lineHeight:"26px",letterSpacing:"0.5px",fontFamily:"var(--comp-base-font-family-default, Lato , Helvetica, Arial, sans-serif)",width:"auto",fontWeight:700},dialogMiddle:{borderTop:"1px solid #C4C4C4",margin:"0px 20px 12px",paddingTop:"12px",gridTemplateColumns:"50% auto",display:"grid",justifyContent:"space-between",alignItems:"center",width:"auto","& div":{fontSize:"16px",lineHeight:"26px",letterSpacing:"0.5px",fontFamily:'museo-sans, "Area Variable", LatoBold',fontWeight:"700","@media screen and (max-width: 400px)":{fontSize:"14px"},"@media screen and (max-width: 362px)":{fontSize:"12px"}}},dialogBottom:{fontSize:"14px",borderTop:"1px solid #C4C4C4",lineHeight:"20px",letterSpacing:"0.5px",margin:"0px 20px 12px",display:"flex",width:"auto",paddingTop:"12px"},priceContent:{display:"flex",justifyContent:"flex-end",textAlign:"end"},priceContainer:{display:"inline-block",fontSize:"var(--fontSizes-fontText3, 14px)",lineHeight:"var(--lineHeights-lineText3, 19px)",color:"var(--ENT-gray-900, #000)",fontWeight:"500",letterSpacing:"0.14px",paddingTop:"6px","@media screen and (max-width: 600px)":{fontSize:"var(--fontSizes-fontText4, 12px);",lineHeight:"var(--lineHeights-lineText4, 17px)"},"& span":{display:"inline-block"},"& s":{display:"flex",paddingBottom:"4px"}},serviceFee:{marginLeft:"2px"},serviceFeeContainer:{display:"inline-block"},priceAddOnContainer:{"& span":{fontSize:"16px",color:"#434343 !important"}},priceRange:{paddingBottom:"4px"}}}),g=function(e){var i=e.priceMessaging,t=e.productDeliveryType,n=e.dynamicPriceData,a=(e.priceRangeLayout,e.skuPriceRange),l=v(),d=(0,o.d4)((0,p.getFeatureFlag)("is-gpt-price-transparency-enabled")),c=((null===i||void 0===i?void 0:i[t.toLowerCase()])||{}).summary_modal||{},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"total",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("delivery"===e){var t,r=[];return null===n||void 0===n||null===(t=n.prices)||void 0===t||t.forEach(function(e){if("retail"===e.type){var i,t,n=parseFloat(e.value)+(null!==e&&void 0!==e&&null!==(i=e.charges)&&void 0!==i&&null!==(i=i[0])&&void 0!==i&&i.amount?parseFloat(null===(t=e.charges)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.amount):"");r.push({type:e.type,value:parseFloat(n).toFixed(2)})}else{var a,o,l=parseFloat(e.value)+(null!==e&&void 0!==e&&null!==(a=e.charges)&&void 0!==a&&null!==(a=a[0])&&void 0!==a&&a.amount?parseFloat(null===(o=e.charges)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.amount):"");r.push({type:e.type,value:parseFloat(l).toFixed(2)})}}),(0,u.QU)(r)}if("total"===e){var a=[];
1return null===n||void 0===n||n.prices.forEach(function(e){e.type,a.push({type:e.type,value:e.total})}),(0,u.QU)(a)}if("item_price"===e)return(0,u.QU)(null===n||void 0===n?void 0:n.prices);if("charges"===e){var o=[];return null===n||void 0===n||n.prices.forEach(function(e){((null===e||void 0===e?void 0:e.charges)||[]).forEach(function(t){var n;(null===t||void 0===t||null===(n=t.label)||void 0===n?void 0:n.toLowerCase())===(null===i||void 0===i?void 0:i.toLowerCase())&&(e.type,o.push({charges:e.charges,type:e.type,value:e.charges[0].amount}))})}),(0,u.QU)(o)}return{}};return function(){var e,i=null,n=null,o="";return((null===c||void 0===c?void 0:c.summary_labels)||[]).forEach(function(e){"item_price"===e.label_key&&(i=g("delivery",e.label_key)),"service fee"===e.label_key&&(n=g("charges",e.label_key)),e.value_override&&(o="plus shipping")}),(i||n)&&r().createElement("span",{className:l.priceContainer},n&&r().createElement("div",null,r().createElement("div",{className:l.priceRange},r().createElement(s.A,{priceRangeLayout:"",displayPrice:!0,skuPriceRange:a,collectionRestructureEnabled:!1,collectionPageHierarchyEnabled:!1,forceItemPriceOnly:!0,noFromText:!0})),r().createElement(s.A,{priceRangeLayout:"",displayPrice:!0,skuPriceRange:i,collectionRestructureEnabled:!1,collectionPageHierarchyEnabled:!1,forceItemPriceOnly:!0,noFromText:!0,showSinglePrice:!0}),r().createElement("span",{className:l.serviceFee},"with delivery fee")),o&&r().createElement("div",null,r().createElement(s.A,{priceRangeLayout:"",displayPrice:!0,skuPriceRange:null!==d&&void 0!==d&&null!==(e=d[null===t||void 0===t?void 0:t.toLowerCase()])&&void 0!==e&&e.withDeliveryCharges?i:a,collectionRestructureEnabled:!1,collectionPageHierarchyEnabled:!1,forceItemPriceOnly:!0,noFromText:!0}),r().createElement("span",{className:"".concat(l.underline," ").concat(l.serviceFee)},o)))}()};g.propTypes={dynamicPriceData:d.object.isRequired,productDeliveryType:d.string.isRequired,priceRangeLayout:d.object.isRequired,openPriceDialog:d.func.isRequired,priceMessaging:d.object.isRequired,addOnPrice:d.bool,skuPriceRange:(0,d.shape)({retail:(0,d.arrayOf)((0,d.shape)({value:d.number})),sale:(0,d.arrayOf)((0,d.shape)({value:d.number}))})},g.defaultProps={addOnPrice:!1,skuPriceRange:{}};var f=g,m=t(72190),y=t(85570),x=(0,a.A)(function(){return{container:{position:"relative"},wrapperRight:{display:"flex",justifyContent:"flex-end",paddingRight:"16px","& $dialog":{left:"unset",right:"16px","@media screen and (max-width: 440px)":{width:"100%"}}},messageCopy:{color:"#434343",fontSize:"14px",lineHeight:"20px ",letterSpacing:"0.5px",cursor:"pointer",textDecoration:"underline",textDecorationThickness:"1px",textUnderlineOffset:"3px",paddingBottom:"5px","@media screen and (max-width: 768px)":{fontSize:"12px"}},popperRoot:{zIndex:9999},wrapperPDP:{paddingRight:"0px"},messageHierarchyCopy:{fontSize:"14px",lineHeight:"18px",paddingBottom:"5px",letterSpacing:"normal",color:"#555555","@media only screen and (max-width: 768px)":{lineHeight:"16px !important",fontSize:"12px !important"}},wrapUpRedesignCopy:{lineHeight:"19px","@media only screen and (max-width: 768px)":{lineHeight:"17px"}}}}),h=function(e){var i,t,a,d,u,s=e.dynamicPriceData,v=e.skuPriceRange,g=e.isCaDelivery,h=x(),b=((0,o.d4)(y.h3),(0,o.wA)()),w=(0,o.d4)(p.getPriceRangeLayout),P="fpt"===(null===s||void 0===s||null===(i=s.productType)||void 0===i||null===(t=i.toLowerCase)||void 0===t?void 0:t.call(i))?"fpt":"standard",C=(null===s||void 0===s||null===(a=s.prices)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.displayCharges)||!1,S=(0,c.A)({brand:"global",contentType:"ca_product_messaging"}),E=(0,l.IT)(S),R=E.data,O=E.loading,D=E.error,_=(null===R||void 0===R||null===(d=R.findContent)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.entries)||[],j="fpt"===P?"fpt":"Standard",T=((null===_||void 0===_||null===(u=_[0])||void 0===u?void 0:u.brand)||[]).find(function(e){return e.brand_id===(null===s||void 0===s?void 0:s.brand)||g})||{};return(0,n.useEffect)(function(){var e;sessionStorage.getItem("caDeliveryFee")||(b((0,m.trackEvent)({eventCategory:"Experiment",eventAction:"CA All-In Pricing",eventLabel:g?"Variant":"Control",feature_detail:g?"Variant":"Control",feature_element:"CA All-In Pricing",feature_category:"Experiment",queued:!("undefined"===typeof window||null!==(e=window.utag)&&void 0!==e&&e.data),nonInteraction:!0})),sessionStorage.setItem("caDeliveryFee",!0))},[g]),O?r().createElement(r().Fragment,null):(!D||R||O)&&C&&g?r().createElement("div",{className:"".concat(h.container," ").concat(h.wrapperPDP," "),"data-component":"priceBreakDownUi"},r().createElement(f,{dynamicPriceData:s,priceMessaging:T,productDeliveryType:j,priceRangeLayout:w,skuPriceRange:v})):r().createElement(r().Fragment,null)};h.propTypes={dynamicPriceData:d.object.isRequired,isCaDelivery:d.bool,skuPriceRange:(0,d.shape)({retail:(0,d.arrayOf)((0,d.shape)({value:d.number})),sale:(0,d.arrayOf)((0,d.shape)({value:d.number}))})},h.defaultProps={isCaDelivery:!1,skuPriceRange:{}};var b=h},84059:function(e,i,t){t.d(i,{QU:function(){return l}});t(47012),t(34204),t(35978),t(81621),t(45503),t(44546),t(1075),t(93441),t(90937),t(1623),t(75755),t(99719),t(77532),t(36211),t(76277),t(23e3),t(43041),t(28835),t(96965),t(33960),t(40464),t(97021),t(82336);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function a(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};
1i%2?r(Object(t),!0).forEach(function(i){o(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function o(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,i||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==n(i)?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var l=function(e){var i=[],t=[];return e&&e.length?(e.forEach(function(e){var n,r,o,l,d,p,c=e,u=Number(null===(n=c)||void 0===n?void 0:n.display),s=Number(null!==(r=null===(o=c)||void 0===o?void 0:o.total)&&void 0!==r?r:null===(l=c)||void 0===l?void 0:l.value);"retail"===(null===(d=c)||void 0===d?void 0:d.type)&&!0===(null===(p=c)||void 0===p?void 0:p.promoApplied)&&Number.isFinite(u)&&Number.isFinite(s)&&u>s&&(c=a(a({},c),{},{value:u,total:u})),"retail"===c.type?i.push(c):t.push(c)}),i.sort(function(e,i){return e.value-i.value}),t.sort(function(e,i){return e.value-i.value}),{sale:t,retail:i}):{sale:t,retail:i}}}}]); 2//# sourceMappingURL=4340.cbfb9921.chunk.js.map
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.