1"use strict";(self.webpackChunkiris=self.webpackChunkiris||[]).push([[5054],{50097(e,t,r){r.d(t,{Gm:()=>d,L0:()=>u,R5:()=>m,U7:()=>h,nw:()=>l,qr:()=>p});r(27357),r(74509);var i=r(3514),n=r.n(i),s=r(20837),o=r(22622),a=r(17229);const l={ORIGINAL_PAYMENT:"ORIGINAL_PAYMENT",EGIFT_CARD:"EGIFT_CARD",SPLIT:"SPLIT"},u=(e,t)=>!n()(e)&&n()(t),d=(e,t)=>{const{originalPaymentRefundNotificationMessage:r,eGiftCardRefundNotificationMessage:i,splitRefundNotificationMessage:n}=t;switch(e){case l.ORIGINAL_PAYMENT:return r;case l.EGIFT_CARD:return i;case l.SPLIT:return n;default:return""}},p=(e,t)=>{const{canceledCardOriginalPaymentMessage:r,canceledCardEGiftCardMessage:i,canceledCardSplitMessage:n}=t;switch(e){case l.ORIGINAL_PAYMENT:return r;case l.EGIFT_CARD:return i;case l.SPLIT:return n;default:return""}},c=e=>{let{refunds:t,canceled:r}=e;if(!(0,s.Ef)(r))return null;const i=(e=>(null===e||void 0===e?void 0:e.filter((e=>e.refundType===s.cE.CANCEL)))??[])(t);if(1!==i.length)return null;const[n]=i,u=(e=>{const t=e.flatMap((e=>e.transactions??[])).filter((e=>e.refundPaymentType!==s.nH.FANCASH));if(!t.length)return null;const r=new Set(t.map((e=>e.refundPaymentType)));if(r.size>1)return l.SPLIT;const[i]=r;return i===s.nH.GIFT_CARD?l.EGIFT_CARD:l.ORIGINAL_PAYMENT})(i);if(!u)return null;return{variant:u,refundAmount:(0,o.A)(n.refundTotal,n.currency),formattedRefundDate:n.processedDate?(0,a.Ib)({time:n.processedDate,format:a.QJ}):""}},m=e=>{let{refunds:t,canceled:r,shipments:i,showCancellationNotification:n}=e;return n&&u(r,i)?c({refunds:t,canceled:r}):null},h=e=>{let{refunds:t,canceled:r,shipments:i}=e;return u(r,i)?null:c({refunds:t,canceled:r})}},57565(e,t,r){r.d(t,{Cm:()=>d,HJ:()=>p,Qn:()=>m,U4:()=>u,fn:()=>h,hb:()=>g,mR:()=>c});var i=r(17229),n=r(58003),s=r(20837),o=r(41327),a=r(24464);const l={TO:"toLabel",FROM:"fromLabel",MESSAGE:"messageLabel"};function u(e){return!0===(null===e||void 0===e?void 0:e.isVirtualGiftCard)}function d(e){return!0===(null===e||void 0===e?void 0:e.isGiftSubscription)}function p(e){return u(e)||d(e)}function c(e){return Array.isArray(e)&&e.length>0&&e.every((e=>!0===e.isVirtualGiftCard))}function m(e){var t;if(!u(e))return!1;const r=null===e||void 0===e||null===(t=e.status)||void 0===t?void 0:t.toUpperCase();return r===s.w8.SHIPPED||r===s.w8.DELIVERED}function h(e,t){let{preDeliveryStatusText:r,deliveredTodayLabel:s,digitalDeliveryLabel:o,shipmentIndex:a,totalShipments:l}=t;var d,p,c;if(!u(e))return{isVirtualGiftCard:!1};const h=m(e),g=h&&function(e){return!(!m(e)||!(null===e||void 0===e?void 0:e.shippedDate))&&(0,i.ny)(e.shippedDate,(0,i.sF)().toISOString())}(e);let y;return h?g&&(y=s):y=r,{isVirtualGiftCard:!0,delivered:h,statusShipment:h&&(null===e||void 0===e?void 0:e.shippedDate)?{...e,deliveredDate:e.shippedDate}:e,deliveryStatusOverride:y,counterLabel:(0,n.CK)(o,{currentDeliveryCount:a,totalDeliveriesCount:l}),deliveryStatusHighlighted:g,unitIds:(null===e||void 0===e||null===(d=e.items)||void 0===d||null===(p=d[0])||void 0===p||null===(c=p.giftCertDetails)||void 0===c?void 0:c.unitIds)||[]}}function g(e,t){return t&&(null===e||void 0===e?void 0:e.isVirtual)?function(e){if(!(null===e||void 0===e?void 0:e.giftCertDetails))return null;const{email:t="",recipientName:r="",giftMessage:i="",unitIds:n=[]}=e.giftCertDetails;return{email:t,recipientName:r,giftMessage:i,unitIds:n}}(e):(null===e||void 0===e?void 0:e.isGiftCard)&&!(null===e||void 0===e?void 0:e.isVirtual)?function(e){if(!(null===e||void 0===e?void 0:e.customOptions))return null;try{const t=JSON.parse(e.customOptions),r=e=>(t.find((t=>o.o[String(t.name)]===e))||{}).value||"";return{to:r(l.TO),from:r(l.FROM),message:r(l.MESSAGE)}}catch(e){return a.A.error({message:`Failed to parse physical gift card customOptions: ${e}`}),null}}(e):null}},75300(e,t,r){r.r(t),r.d(t,{default:()=>ye});var i=r(11552),n=(r(74509),r(14041)),s=r(1098),o=r(46341);const a=JSON.parse('{"id":"WISMO","name":"Wismo modal settings","description":"Where Is My Order modal settings","type":"object","properties":{"isWismoEnabled":{"type":"boolean","name":"Enabled Wismo flag","description":"A flag to toggle wismo feature","default":false},"orderStatusLabel":{"type":"string","name":"Order status label","description":"Order status label","default":"Your order status","exposeToTools":false},"scheduledDeliveryLabel":{"type":"string","name":"Scheduled delivery label","description":"Scheduled delivery label","default":"Scheduled Delivery","exposeToTools":false},"deliveredLabel":{"type":"string","name":"Delivered label","description":"Delivered label","default":"Delivered","exposeToTools":false},"orderNumberLabel":{"type":"string","name":"Order number label","description":"Order number label","default":"Order Number","exposeToTools":false}
1,"yourOrderLabel":{"type":"string","name":"Your Order label","description":"Your Order label","default":"Your Most Recent Order","exposeToTools":false,"shouldTranslate":true},"buttonText":{"type":"string","name":"Button Text","description":"Button Text","default":"View Order Details","exposeToTools":false,"shouldTranslate":true},"wismoExcludedCountries":{"type":"array","name":"Countries not supporting Wismo widget","description":"List of countries that are not supporting Wismo widget","items":{"type":"object","name":"Country Code","properties":{"countryCode":{"type":"string","name":"Country Code","description":"Country Code - should be same as the code sent in shippingAddress"}}}}}}'),l=JSON.parse('{"id":"WISMO_REDESIGN","name":"Wismo Redesign modal settings","description":"Where Is My Order 2.0 modal settings (RET-909)","type":"object","properties":{"isWismoRedesignEnabled":{"type":"boolean","name":"Enable Wismo flag","description":"A flag to toggle the new redesigned wismo modal","default":false},"modalTitleText":{"type":"string","name":"Modal title","description":"Header copy shown at the top of the widget","default":"Your most recent order","shouldTranslate":true}}}');var u=r(82375),d=r(45366),p=r(46123),c=r.n(p),m=r(39067),h=r.n(m),g=r(97712),y=r(44734),f=r(28501),E=r(16654),v=r.n(E),T=r(55165),b=r(92108),S=r(84470),D=r(5765),L=r(99870),C=r.n(L),k=r(90613),I=r(71204),w=r(73118),A=r(93361),O=r(17229),P=r(64485),N=r(11923),M=r(25345),R=r(79521),x=r(78021);const _={COMPLETED:"completed",ACTIVE:"active",IN_PROGRESS:"in-progress"};let U=class extends n.Component{componentDidMount(){this.deleteCookieIfDelivered(),this.deleteCookieIfCanceled(),this.fireWismoViewPageEvent()}fireWismoViewPageEvent(){const{orderId:e,appContext:t}=this.props;(0,w.rj)({header:{pn:t&&t.pageTypeCode||"WISMO",oi:e},attrs:{mdn:"wismo_widget"}})}deleteCookieIfDelivered(){const{shipments:e}=this.props;e.reduce(((e,t)=>{let{status:r}=t;return e&&(r===d.w8.DELIVERED||r===d.w8.PICKEDUP)}),!0)&&x.Ay.removeCookie(f.AZ.WISMO.name)}deleteCookieIfCanceled(){const{canceled:e,returned:t,shipments:r}=this.props;e.length>0&&0===t.length&&0===r.length&&x.Ay.removeCookie(f.AZ.WISMO.name)}toggleModal(){this.setState({isWismoOpened:!this.state.isWismoOpened})}sortShipments(e){e.sort(((e,t)=>d.TG[t.status.toLowerCase()].key-d.TG[e.status.toLowerCase()].key))}getStatusClass(e){const{shipmentStatus:t}=this.props;return e.key===t.key?_.ACTIVE:e.key<t.key?_.COMPLETED:_.IN_PROGRESS}getImageUrl(e,t){return t===_.COMPLETED?d.Vx.COMPLETED:t===_.ACTIVE?e.activeImage:null}renderProgressStep(e,t,r){return n.createElement("div",{className:C()("progress-step",t),key:e},r&&n.createElement(D.A,{className:"wismo-image",src:r,alt:"Where is my order"}),n.createElement("span",{className:"step-label"},e," "))}getExpectedDeliveryDate(e){return e.reduce(((e,t)=>{let{promiseDeliveryDate:r}=t;return(0,O.tw)(e,r)?e:r}),e[0].promiseDeliveryDate)}getHighDeliveryDate(e){return e.reduce(((e,t)=>{let{highDeliveryDate:r}=t;return(0,O.tw)(e,r)?e:r}),e[0].highDeliveryDate)}getLowDeliveryDate(e){return e.reduce(((e,t)=>{let{lowDeliveryDate:r}=t;return(0,O.tw)(e,r)?e:r}),e[0].lowDeliveryDate)}getExpectedShippingDate(e){return e.reduce(((e,t)=>{let{promiseShipDate:r}=t;return(0,O.tw)(e,r)?e:r}),e[0].promiseShipDate)}getDeliveryDateBasedOnStatus(e,t,r){return t||(e===d.w8.PROCESSING?r:void 0)}renderAllShipments(e,t,r){return n.createElement(n.Fragment,null,e.map(((e,i)=>{if(e.status===d.w8.CANCELED&&(!r||i>0))return null;const s=e.expectedDeliveryDate||this.getExpectedDeliveryDate(e.items),o=e.expectedShippingDate||this.getExpectedShippingDate(e.items),a=this.getDeliveryDateBasedOnStatus(e.status,e.highDeliveryDate,this.getHighDeliveryDate(e.items)),l=this.getDeliveryDateBasedOnStatus(e.status,e.lowDeliveryDate,this.getLowDeliveryDate(e.items)),u=c()(this.props,"appContext.serverTimeUTCinMs");return n.createElement(I.A,{key:i,status:e.status.toLowerCase(),currentShipmentNumber:++i,totalShipmentsCount:t,expectedDeliveryDate:s,expectedShippingDate:o,currentDate:u,deliveredDate:e.deliveredDate,modelEstimatedDeliveryDate:e.modelEstimatedDeliveryDate,isVirtualGiftCard:e.isVirtualGiftCard,deliveryModeCode:this.props.deliveryModeCode,refundStatus:e.refundStatus,showProcessingEstimatedDate:e.status===d.w8.PROCESSING,pickupPointMaxPickupDate:e.pickupPointMaxPickupDate,pickupPointPickedUpDate:e.pickupPointPickedUpDate,highDeliveryDate:a,lowDeliveryDate:l,items:e.items,isWismoPopup:!0})})))}
1render(){const{buttonText:e,yourOrderLabel:t,shipments:r,canceled:i,returned:s}=this.props,{isLoggedIn:o}=c()(this.props,"appContext.userStatus",{}),a=o?"/account/orders":"/track-order";this.sortShipments(r),s.forEach((e=>{e.status||(e.status=d.w8.RETURNED)})),i.forEach((e=>{e.status=d.w8.CANCELED}));const l=[...r,...i,...s],u=0===l.filter((e=>e.status!==d.w8.CANCELED)).length,p=u?l.length:l.length-l.filter((e=>e.status===d.w8.CANCELED)).length;return n.createElement(N.M,{closeAriaLabel:(0,R.H)(),className:"wismo-aspire-modal",isOpen:this.state.isWismoOpened,size:p>1?P.sE.MEDIUM:P.sE.SMALL,"aria-label":t,onOpenChange:e=>{!1!==e||this.closeEventFired||(this.closeEventFired=!0,this.toggleModal(),(0,w.br)("wismo-modal"))}},n.createElement("h2",{className:"wismo-title",slot:"title"},t),n.createElement("div",{"data-trk-id":"WISMO"},1===p?n.createElement(n.Fragment,null,l.map(((e,t)=>{if(e.status===d.w8.CANCELED&&(!u||t>0))return null;const r=e.expectedDeliveryDate||this.getExpectedDeliveryDate(e.items),i=e.expectedShippingDate||this.getExpectedShippingDate(e.items),s=this.getDeliveryDateBasedOnStatus(e.status,e.highDeliveryDate,this.getHighDeliveryDate(e.items)),o=this.getDeliveryDateBasedOnStatus(e.status,e.lowDeliveryDate,this.getLowDeliveryDate(e.items)),a=c()(this.props,"appContext.serverTimeUTCinMs");return n.createElement(I.A,{key:t,status:e.status.toLowerCase(),currentShipmentNumber:++t,totalShipmentsCount:p,expectedDeliveryDate:r,expectedShippingDate:i,currentDate:a,deliveredDate:e.deliveredDate,modelEstimatedDeliveryDate:e.modelEstimatedDeliveryDate,isVirtualGiftCard:e.isVirtualGiftCard,deliveryModeCode:this.props.deliveryModeCode,refundStatus:e.refundStatus,showProcessingEstimatedDate:e.status===d.w8.PROCESSING,pickupPointMaxPickupDate:e.pickupPointMaxPickupDate,pickupPointPickedUpDate:e.pickupPointPickedUpDate,highDeliveryDate:s,lowDeliveryDate:o,items:e.items,isWismoPopup:!0})}))):n.createElement(k.A,{arrowsType:A.W4.CHEVRON,arrowVisibility:A.QV.ALL,slideCount:l.length},this.renderAllShipments(l,p,u))),n.createElement(M.L,{href:a,className:"full-width",variant:P.zi.BUTTON_PRIMARY,"data-trk-id":"view-order",onPress:()=>{window.localStorage&&window.localStorage.setItem("isWismoFlow","true")}},e))}constructor(e){super(e),this.state={isWismoOpened:!0},this.closeEventFired=!1}};var W=r(3514),G=r.n(W),V=r(83089),$=r(16040),F=r(13552);const q=e=>{let{title:t,onClose:r,ariaClose:i}=e;return n.createElement("div",{className:"wismo-redesign-header"},n.createElement("h2",{className:"wismo-redesign-header-title"},t),n.createElement(V.$,{variant:P.Vt.UNSTYLED,onPress:r,className:"wismo-redesign-header-close","aria-label":i,"data-trk-id":"wismo-redesign-close-cta"},n.createElement($.A,{className:"wismo-redesign-header-close-icon"})))};q.propTypes={title:h().string.isRequired,onClose:h().func.isRequired,ariaClose:h().string};const H=(0,s.A)(q,[F]);var Y=r(41123),j=r(4438),B=r(20837),J=r(33681),Q=r(78134);function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{canceled:t,returned:r,shipments:i}=e;(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).every((e=>{let{status:t}=e;return t===d.w8.DELIVERED||t===d.w8.PICKEDUP}))}(i)||(e=>{let{canceled:t=[],returned:r=[],shipments:i=[]}=e;return t.length>0&&0===r.length&&0===i.length})({canceled:t,returned:r,shipments:i}))&&x.Ay.removeCookie(f.AZ.WISMO.name)}const K=()=>{var e;return null===(e=window.localStorage)||void 0===e?void 0:e.setItem("isWismoFlow","true")};function X(e){const{orderId:t,appContext:r,modalTitleText:s}=e,[o,a]=(0,n.useState)(!0),l=(0,n.useRef)(!1);if((0,n.useEffect)((()=>{G()(t)||(z(e),function(){let{orderId:e,appContext:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,w.rj)({attrs:{mdn:"wismo_widget"},header:{pn:(null===t||void 0===t?void 0:t.pageTypeCode)||"WISMO",oi:e}})}(e))}),[]),G()(t))return null;const{events:u,...p}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{orderId:t,summary:r,payments:i,canceled:n=[],returned:s=[],shipments:o=[],orderAssociation:a,orderCreationDate:l}=e,u={orderId:t,summary:r,canceled:n,payments:i,returned:s.map((e=>(null===e||void 0===e?void 0:e.status)?e:{...e,status:d.w8.RETURNED})),shipments:o,reshipped:[],orderAssociation:a,orderCreationDate:l};return{...(0,Q.Ay)(u),totalLabel:(0,J.sC)(u,{netOfRefunds:!1})}}(e),c=(0,B.mS)(t,{autoAuthenticate:!1}),m=()=>{l.current||(l.current=!0,a(!1),(0,w.br)("wismo-redesign"))};
1return n.createElement(N.M,{size:P.sE.SMALL,isOpen:o,padding:P.wR.NONE,className:"wismo-redesign-modal","aria-label":s,onOpenChange:e=>{e||m()},displayCloseButton:!1},n.createElement(H,{title:s,onClose:m}),n.createElement(Y.A,(0,i.A)({},p,{href:c,onNavigate:K}),n.createElement(j.A,(0,i.A)({},u,{href:c,appContext:r,onNavigate:K}))))}X.propTypes={orderId:h().string,canceled:h().array,returned:h().array,shipments:h().array,appContext:h().object,modalTitleText:h().string};const Z=(0,o.V4)((0,s.A)(X,l),"wismo-redesign");r(18586);var ee=r(4554),te=r(17353),re=r(32192),ie=r(87310);const ne=e=>{if("string"===typeof e)return n.createElement(D.A,{src:e,alt:""});const t=e.alt||"";if(e.src)return n.createElement(D.A,{src:e.src,alt:t});if("string"===typeof e.srcSet){const i="string"!==typeof(r=e.srcSet)?null:r.split(",").map((e=>e.trim().split(/\s+/)[0])).find(Boolean);return i?n.createElement(D.A,{src:i,alt:t}):null}var r;if(e.srcSet){const r=(0,ie.Lo)(e.srcSet);return 1===r.length?n.createElement(D.A,{src:r[0],alt:t}):n.createElement(D.A,(0,i.A)({},e.srcSet,{alt:t}))}return n.createElement(D.A,(0,i.A)({},e,{alt:t}))},se=e=>{let{lnContext:t,regionalInterstitialImage:r}=e;const[i,s]=(0,n.useState)(!0);if(!t||!r)return null;const o=t.regionHost,a=t.requestUrl,l=a?`//${o}${a}`:`//${o}`,u="string"===typeof r?"":r.alt||"";return n.createElement(ee.a,{closeAriaLabel:(0,R.H)(),isOpen:i,onOpenChange:e=>{e||(s(!i),re.default.emit({et:"COLLAPSE.MODULE",a:{purl:window.location.href,obpurl:window.location.href,mid:"regional-interstitial"}}))},size:P.sE.CUSTOM,customWidth:"375px",padding:P.wR.NONE,className:"regional-interstitial","aria-label":u||"Regional interstitial"},n.createElement(te.Ay,{href:l,className:"regional-interstitial-link","data-trk-id":"regional-interstitial-link"},ne(r)))},oe=JSON.parse('{"id":"DUAL_OPT_IN","name":"Dual Opt-In modal settings","description":"The necessary properties to render the dual opt-in modal component","type":"object","properties":{"enableModal":{"type":"boolean","name":"Enable Dual Opt-In Modal","description":"Modal will be displayed on the home page","default":false},"successSubscriptionTitle":{"shouldTranslate":true,"type":"string","name":"Success Subscription Title","description":"Title displayed at the top of the modal","default":"Thank you for subscribing!"},"successSubscriptionContent":{"shouldTranslate":true,"type":"string","name":"Success Subscription Content","description":"Content containing instructions about the subscription. You can change the position of the {unsubscribeLink} or {questionsLink} parameters in the content","default":"We respect your privacy and you can unsubscribe at any time by following Unsubscribe instructions {unsubscribeLink}. If you have any questions, feel free to contact us using any of the methods {questionsLink}."},"unsubscribeLinkText":{"shouldTranslate":true,"type":"string","name":"Unsubscribe Link Text","description":"The text that will be displayed in the {unsubscribeLink} parameter","default":"here"},"unsubscribeLinkUrl":{"type":"string","name":"Unsubscribe Link URL","description":"The URL that will be used as a link in the {unsubscribeLink} parameter","default":"/user-prefs/communication-subscriptions"},"unsubscribeLinkTarget":{"type":"string","name":"Unsubscribe Link Target","description":"Whether or not the link should be opened in a new tab","enum":["_blank","_self"],"default":"_self"},"questionsLinkText":{"shouldTranslate":true,"type":"string","name":"Questions Link Text","description":"The text that will be displayed in the {questionsLink} parameter","default":"here"},"questionsLinkUrl":{"type":"string","name":"Questions Link URL","description":"The URL that will be used as a link in the {questionsLink} parameter","default":"/contact-us/ch-2241"},"questionsLinkTarget":{"type":"string","name":"Questions Link Target","description":"Whether or not the link should be opened in a new tab","enum":["_blank","_self"],"default":"_self"},"errorSubscriptionLinkText":{"shouldTranslate":true,"type":"string","name":"Error Subscription Link Text","description":"The text that will be displayed in the {errorSubscriptionLink} parameter","default":"here"},"errorSubscriptionLinkUrl":{"type":"string","name":"Error Subscription Link URL","description":"The URL that will be used as a link in the {errorSubscriptionLink}
1 parameter","default":"/login?nextPathname=/account"},"errorSubscriptionLinkTarget":{"type":"string","name":"Error Subscription Link Target","description":"Whether or not the link should be opened in a new tab","enum":["_blank","_self"],"default":"_self"},"errorSubscriptionTitle":{"shouldTranslate":true,"type":"string","name":"Error Subscription Title","description":"Title displayed at the top of the modal","default":"Something went wrong."},"errorSubscriptionContent":{"shouldTranslate":true,"type":"string","name":"Error Subscription Content","description":"Content containing instructions for handling errors during subscription","default":"This link has already been used. For your security, each link is valid for a single use. Please request a new one if necessary by opting out and back in {errorSubscriptionLink}."},"errorTitle":{"shouldTranslate":true,"type":"string","name":"Error Title","description":"Title displayed at the top of the modal when update dual opt-in failed","default":"Something went wrong."},"errorContent":{"shouldTranslate":true,"type":"string","name":"Error Content","description":"Content providing instructions for handling errors during the update process of dual opt-in","default":"It appears you have opted out of emails. To opt back in, please login {errorLink} and go to Email Preferences."},"errorLinkText":{"shouldTranslate":true,"type":"string","name":"Error Text","description":"The text that will be displayed in the {errorLink} parameter","default":"here"},"errorLinkUrl":{"type":"string","name":"Error Link URL","description":"The URL that will be used as a link in the {errorLink} parameter","default":"/login?nextPathname=/account"},"errorLinkTarget":{"type":"string","name":"Error Target","description":"Whether or not the link should be opened in a new tab","enum":["_blank","_self"],"default":"_self"},"expiredTokenTitle":{"shouldTranslate":true,"type":"string","name":"Expired Token Title","default":"Something went wrong."},"expiredTokenContent":{"shouldTranslate":true,"type":"string","name":"Expired Token Content","default":"This token has expired and we were unable to opt you in. Please login to your account {tokenLink} and unsubscribe and then resubscribe to get a new confirmation email."},"expiredTokenText":{"shouldTranslate":true,"type":"string","name":"Error Token Link Text","description":"The text that will be displayed in the {tokenLink} parameter","default":"here"},"expiredTokenLinkUrl":{"type":"string","name":"Error Token Link URL","description":"The URL that will be used as a link in the {tokenLink} parameter","default":"/login?nextPathname=/account"},"expiredTokenLinkTarget":{"type":"string","name":"Error Token Target","description":"Whether or not the link should be opened in a new tab","enum":["_blank","_self"],"default":"_self"}}}');var ae=r(34145);const le=e=>{let{target:t,text:r,url:i}=e;return n.createElement(te.Ay,{href:i,target:t,"data-trk-id":i},r)},ue=e=>{let{subscriptions:t}=e;const[r,s]=(0,n.useState)(!0),{title:o,message:a,links:l}=t;return n.createElement(ee.a,{closeAriaLabel:(0,R.H)(),isOpen:r,onOpenChange:e=>{e||s(!1)},className:"dual-opt-in","aria-label":o},n.createElement("section",null,n.createElement("header",null,n.createElement("h2",{className:"dual-opt-in-title"},o)),n.createElement("div",{className:"dual-opt-in-content"},((e,t)=>t?n.createElement(ae.A,{msg:e,replacements:{errorSubscriptionLink:t.errorSubscription?n.createElement(le,(0,i.A)({},t.errorSubscription)):null,unsubscribeLink:t.unsubscribe?n.createElement(le,(0,i.A)({},t.unsubscribe)):null,questionsLink:t.questions?n.createElement(le,(0,i.A)({},t.questions)):null,errorLink:t.error?n.createElement(le,(0,i.A)({},t.error)):null,tokenLink:t.token?n.createElement(le,(0,i.A)({},t.token)):null}}):e)(a,l))))};var de=r(84859);let pe=class extends n.Component{async componentDidMount(){var e,t;const{popupPriority:r,isWismoEnabled:i,isWismoRedesignEnabled:n,isNewSession:s,enableModal:o}=this.props,a=i||n,l=null===r||void 0===r?void 0:r.some((e=>e.popupModal===T.$y.SMS_OPT_IN)),u=b.A.getData("initialAppContext");r&&!l&&u&&(0,T.l_)()&&(0,S.Ji)({appContext:u,settingID:"POPUP_CONTROLLER",settings:["popupModal"]});const d=v().get(f.AZ.WISMO.name);if(r){const{type:e,props:t}=await this.getResolvedPopup(r,a,s,d,o);this.setState({popupProps:t,popupType:e})}null===(t=(e=this.props).onPopupResolved)||void 0===t||t.call(e)}async getResolvedPopup(e,t,r,i,n){for(const a of e)switch(a.popupModal){case T.$y.DUAL_OPT_IN:{const e=(0,T.Jc)(n);if(e)return{type:T.$y.DUAL_OPT_IN,props:e};break}case T.$y.WISMO:{const e=await(0,T.A1)(t,i,r,this.props);if(e)return{type:T.$y.WISMO,props:e};break}case T.$y.REGIONAL_INTERSTITIAL:{const e=(0,T.Ag)(this.props);if(e)return{type:T.$y.REGIONAL_INTERSTITIAL,props:e};break}case T.$y.SMS_OPT_IN:{const{shouldShow:e,number:t,optInStatus:r,cik:i}=await(0,T.EK)();var s,o;if(e)return null===(o=(s=this.props).onSmsPopupActive)||void 0===o||o.call(s),{type:T.$y.SMS_OPT_IN,props:{...this.props,number:t,optInStatus:r,cik:i}};break}case T.$y.SLIVER:{const e=(0,T.ob)(this.props);if(e)return{type:T.$y.SLIVER,props:e};break}}return{}}render(){const{popupProps:e,popupType:t}=this.state;if(!e)return null;switch(t){case T.$y.DUAL_OPT_IN:return n.createElement(ue,(0,i.A)({},e));case T.$y.WISMO:return this.props.isWismoRedesignEnabled?n.createElement(Z,(0,i.A)({},e)):n.createElement(U,(0,i.A)({},e));case T.$y.REGIONAL_INTERSTITIAL:return n.createElement(se,(0,i.A)({},e));case T.$y.SLIVER:return n.createElement(g.A,(0,i.A)({},e,{isSliverPopupEnabled:!0}));case T.$y.SMS_OPT_IN:return n.createElement(de.A,{initialNumber:e.number,initialOptInStatus:e.optInStatus,initialCik:e.cik,onClose:this.props.onSmsPopupClosed});default:return null}}constructor(e){super(e),this.state={wismoShipment:null,popupProps:null,popupType:null}}};pe.propTypes={onSmsPopupActive:h().func,onSmsPopupClosed:h().func,onPopupResolved:h().func},pe.defaultProps={...(0,y.CX)({schema:a}),...(0,y.CX)({schema:l}),...(0,y.CX)({schema:oe}),popupPriority:[{popupModal:T.$y.DUAL_OPT_IN},{popupModal:T.$y.WISMO},{popupModal:T.$y.REGIONAL_INTERSTITIAL},{popupModal:T.$y.SLIVER}]};const ce=pe,me=JSON.parse('{"id":"POPUP_CONTROLLER","name":"POPUP_CONTROLLER","title":"JSON Schema for Popup Controller","description":"Defines the configuration for popup behavior and priorities","type":"object","properties":{"popupPriority":{"type":"array","name":"Popup Priority List","description":"Define the priority order for popups. Options include WISMO, REGIONAL, SLIVER, DUAL_OPT_IN, SMS_OPT_IN.","
1items":{"name":"Popup Priority List Item","type":"object","properties":{"popupModal":{"name":"Popup Modal","type":"string","enum":["DUAL_OPT_IN","WISMO","REGIONAL_INTERSTITIAL","SLIVER","SMS_OPT_IN"]}}}}}}');var he=r(70475);const ge=(0,o.V4)((0,s.A)((e=>{const t=b.A.getData("initialAppContext"),r=c()(t,"lumenSettings.settings",{}),s=c()(t,"device.isMobile",!1),o=c()(t,"isTestSiteMode",!1),a=c()(t,"serverTimeUTCinMs",void 0),l=c()(t,"originalUrl",""),u=Object.values(r).find((e=>"SLIVER"===e.type)),p=Object.values(r).find((e=>"PROMO_CAROUSEL"===e.type)),m=c()(u??p,"settings",{}),h=c()(r,"SLIVER_EXPERIMENTS",{}),g=c()(h,"settings",{}),y=b.A.getData(d.Fb),f={...b.A.getData("ln-context")||{},requestUrl:l};return n.createElement(ce,(0,i.A)({},e,m,g,{lnContext:f,isNewSession:y,isMobile:s,isTestSiteMode:o,serverTimeUTCinMs:a}))}),[a,l,me,he]),"wismo","wismo-redesign","sliver","sliver_experiments","regional-interstitial","popup-controller","dual-opt-in-modal","sms-opt-in-modal"),ye=(0,u.A)(ge,(function(e){var t,r,i,n,s,o,a,l,u,d,p;return{promotionDetails:null===(t=e.checkout)||void 0===t||null===(r=t.cart)||void 0===r?void 0:r.promotionDetails,promotionInfo:null===(i=e.checkout)||void 0===i||null===(n=i.cart)||void 0===n?void 0:n.promotionInfo,cartMessages:null===(s=e.checkout)||void 0===s||null===(o=s.cart)||void 0===o?void 0:o.messages,deliveryModeCode:null===(a=e.checkout)||void 0===a||null===(l=a.cart)||void 0===l||null===(u=l.shippingMethod)||void 0===u?void 0:u.deliveryModeCode,items:null===(d=e.checkout)||void 0===d||null===(p=d.cart)||void 0===p?void 0:p.items}}))}}]);
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.