1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="8c1acd34-f7de-4919-90ae-d44b1ab8d835",e._sentryDebugIdIdentifier="sentry-dbid-8c1acd34-f7de-4919-90ae-d44b1ab8d835")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8312],{48312:(e,l,s)=>{s.r(l),s.d(l,{ClubSelection:()=>r});var n=s(95155),a=s(67909),i=s(69691),c=s(87449),t=s(95559),u=s(89246),d=s(27292);let o=(0,a.default)(()=>s.e(9809).then(s.bind(s,49809)).then(e=>e.ClubListItem),{loadableGenerated:{webpack:()=>[require.resolveWeak("./ClubListItem/ClubListItem.js")]}});function r(e){let{setFlowState:l,selectedClubs:s,setEligibleClubs:a,setIneligibleClubs:r,customerActiveClubs:p,popupButtonProps:b,hasClubMembershipError:m,customerServiceEmail:h}=(0,u.S)(),{handlePopupClose:_}=e;return(0,n.jsxs)("div",{className:(0,i.$)("step-one row",t.A.stepContainer),children:[(0,n.jsxs)("div",{className:"cancel-club-popup__heading-container",children:[(0,n.jsx)("h1",{id:"cancel-club-popup-heading",className:"cancel-club-popup__heading",children:"Club Membership Cancellation"}),(0,n.jsx)("p",{className:"cancel-club-popup__body",children:"Weâre sorry to see you go! Please note: All Members-only benefits will deactivate once your account is cancelled, including discounts, exclusive access, and more."})]}),p&&(null==p?void 0:p.length)>0&&!m?(0,n.jsx)("ul",{className:"cancel-club-popup__club-list",children:null==p?void 0:p.map(e=>(0,n.jsx)(o,Object.assign({},e),e.id))}):null,p||m?null:(0,n.jsxs)("div",{role:"status",className:(0,i.$)("cancel-club-popup__club-list__loader",t.A.loader),children:[(0,n.jsx)("span",{className:"sr-only",children:"Loading club membershipsâ¦"}),(0,n.jsx)("span",{"aria-hidden":"true",className:(0,i.$)("cancel-club-popup__club-list__loader--item",t.A.loaderItem)}),(0,n.jsx)("span",{"aria-hidden":"true",className:(0,i.$)("cancel-club-popup__club-list__loader--item",t.A.loaderItem)}),(0,n.jsx)("span",{"aria-hidden":"true",className:(0,i.$)("cancel-club-popup__club-list__loader--item",t.A.loaderItem)})]}),m?(0,n.jsx)("div",{className:"error__message",children:(0,n.jsxs)("p",{role:"alert",children:["Something went wrong retrieving your memberships. Please try again or contact customer service at"," ",(0,n.jsx)("a",{href:"mailto:".concat(h),children:h}),"."]})}):null,(0,n.jsxs)("div",{className:"cancel-club-popup__button-container",children:[(0,n.jsx)(c.default,{as:"button",onClick:()=>{let e=[],n=[];s.length>0&&(s.map(l=>{l.currentNumberOfShipments>=2?e.push(l):n.push(l)}),a(e),r(n)),l(d.e.CANCELLATION_SURVEY)},disabled:0===s.length,className:"cancel-club-popup__primary-btn",design:null==b?void 0:b.popupPrimaryBtnDesign,outlined:null==b?void 0:b.isPopupPrimaryBtnOutlined,children:"Proceed with cancellation"}),(0,n.jsx)(c.default,{as:"button",onClick:()=>{_()},className:"cancel-club-popup__exit-btn",design:null==b?void 0:b.popupExitBtnDesign,outlined:null==b?void 0:b.isPopupExitBtnOutlined,children:"I Changed My Mind"})]})]})}}}]); 2//# sourceMappingURL=8312.1227c5ea78a9c50e.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.