1"use strict";(globalThis.webpackChunkcustomer_app=globalThis.webpackChunkcustomer_app||[]).push([[701],{4442(L,P,t){t.d(P,{u:()=>o});var e=t(28531),v=t(6767),u=t(36179),h=t.n(u);const d={"font-semibold-42":"BadgeCounter_font-semibold-42__o6+Mk","font-semibold-34":"BadgeCounter_font-semibold-34__oJ9Pw","font-semibold-30":"BadgeCounter_font-semibold-30__Jz3Mi","font-semibold-24":"BadgeCounter_font-semibold-24__aU43i","font-semibold-20":"BadgeCounter_font-semibold-20__EuuEI","font-semibold-18":"BadgeCounter_font-semibold-18__psvT2","font-semibold-16":"BadgeCounter_font-semibold-16__ps82j","font-semibold-14":"BadgeCounter_font-semibold-14__WBuSE","font-semibold-12":"BadgeCounter_font-semibold-12__dP3Fy","font-medium-30":"BadgeCounter_font-medium-30__LPFV7","font-medium-16":"BadgeCounter_font-medium-16__HEdb4","font-medium-14":"BadgeCounter_font-medium-14__Y1y5W","font-medium-10":"BadgeCounter_font-medium-10__5fSi9","font-regular-12":"BadgeCounter_font-regular-12__luF6d","font-regular-14":"BadgeCounter_font-regular-14__6o3co","font-regular-16":"BadgeCounter_font-regular-16__N8H3V","font-regular-18":"BadgeCounter_font-regular-18__Y4TmC","font-regular-20":"BadgeCounter_font-regular-20__TiBWk","font-regular-42":"BadgeCounter_font-regular-42__2E9Wd",wrapper:"BadgeCounter_wrapper__YSYsS",default:"BadgeCounter_default__ysKoR",alert:"BadgeCounter_alert__ZOIKO",tab:"BadgeCounter_tab__x5IXY",prefix:"BadgeCounter_prefix__t8pOn",fadeInUp:"BadgeCounter_fadeInUp__jxL3-",fadeInDown:"BadgeCounter_fadeInDown__BO3By",fadeInLeft:"BadgeCounter_fadeInLeft__1ar9Z",fadeInRight:"BadgeCounter_fadeInRight__lwbOP",loadingCircle:"BadgeCounter_loadingCircle__KTpKA"};var _=Object.defineProperty,m=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,p=(n,r,a)=>r in n?_(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,C=(n,r)=>{for(var a in r||(r={}))f.call(r,a)&&p(n,a,r[a]);if(m)for(var a of m(r))c.call(r,a)&&p(n,a,r[a]);return n},B=(n,r)=>{var a={};for(var l in n)f.call(n,l)&&r.indexOf(l)<0&&(a[l]=n[l]);if(n!=null&&m)for(var l of m(n))r.indexOf(l)<0&&c.call(n,l)&&(a[l]=n[l]);return a};const o=n=>{var r=n,{text:a,className:l,type:O="default"}=r,j=B(r,["text","className","type"]);return j.count?(0,e.jsxs)(e.Fragment,{children:[a&&(0,e.jsx)("span",{className:d.prefix,children:a}),(0,e.jsx)(v.A,C({overflowCount:1e5,className:h()(d.wrapper,d[O],l)},j))]}):(0,e.jsx)("div",{children:j.children||a})}},96568(L,P,t){t.d(P,{s:()=>r});var e=t(28531),v=t(4442),u=t(73527),h=t(36179),d=t.n(h),_=t(82269);const m={"font-semibold-42":"BackButton_font-semibold-42__u8M5H","font-semibold-34":"BackButton_font-semibold-34__07B33","font-semibold-30":"BackButton_font-semibold-30__z-SA1","font-semibold-24":"BackButton_font-semibold-24__SQF8D","font-semibold-20":"BackButton_font-semibold-20__kCNqK","font-semibold-18":"BackButton_font-semibold-18__V2nni","font-semibold-16":"BackButton_font-semibold-16__n2lpX","font-semibold-14":"BackButton_font-semibold-14__hGuzm","font-semibold-12":"BackButton_font-semibold-12__yO0fm","font-medium-30":"BackButton_font-medium-30__csa-d","font-medium-16":"BackButton_font-medium-16__XXCLB","font-medium-14":"BackButton_font-medium-14__6J4vm","font-medium-10":"BackButton_font-medium-10__ZqeiW","font-regular-12":"BackButton_font-regular-12__59TNO","font-regular-14":"BackButton_font-regular-14__sFk-7","font-regular-16":"BackButton_font-regular-16__+PAUj","font-regular-18":"BackButton_font-regular-18__CWw+6","font-regular-20":"BackButton_font-regular-20__wJsTe","font-regular-42":"BackButton_font-regular-42__OO0kD",fadeInUp:"BackButton_fadeInUp__hT760",fadeInDown:"BackButton_fadeInDown__rAgP8",fadeInLeft:"BackButton_fadeInLeft__icGwa",fadeInRight:"BackButton_fadeInRight__dWF-6",loadingCircle:"BackButton_loadingCircle__QKYCf"},f=()=>{const a=(0,_.Zp)(),{pathname:l}=(0,_.zy)();return()=>{const O=window.history.length>1,j=document.referrer&&new URL(document.referrer).origin===window.location.origin;if(O&&j){a(-1);return}const E=l.split("/").filter(Boolean);a(E.length>1?`/${E[0]}`:"/")}},c=({className:a})=>{const l=f();return(0,e.jsx)("div",{className:d()(m.wrapper,a),children:(0,e.jsx)(u.$,{shape:"circle",icon:"IcoRArrowLeft",onClick:l})})};var p=t(88224),C=t(29310),B=t(41468),o=t(1331);const n={"font-semibold-42":"PageTitle_font-semibold-42__U7ywF","font-semibold-34":"PageTitle_font-semibold-34__f0VOi","font-semibold-30":"PageTitle_font-semibold-30__72cai","font-semibold-24":"PageTitle_font-semibold-24__ZSh2i","font-semibold-20":"PageTitle_font-semibold-20__65xUS","font-semibold-18":"PageTitle_font-semibold-18__xRYku","font-semibold-16":"PageTitle_font-semibold-16__Yv7ud","font-semibold-14":"PageTitle_font-semibold-14__Jyh6K","font-semibold-12":"PageTitle_font-semibold-12__n-WZd","font-medium-30":"PageTitle_font-medium-30__pmHci","font-medium-16":"PageTitle_font-medium-16__KdCde","font-medium-14":"PageTitle_font-medium-14__buJtf","font-medium-10":"PageTitle_font-medium-10__1uJKg","font-regular-12":"PageTitle_font-regular-12__uYi8y","font-regular-14":"PageTitle_font-regular-14__PwyK3","font-regular-16":"PageTitle_font-regular-16__u5yBZ","font-regular-18":"PageTitle_font-regular-18__3aNob","font-regular-20":"PageTitle_font-regular-20__qxUDK","font-regular-42":"PageTitle_font-regular-42__0qOzy",wrapper:"PageTitle_wrapper__Y-O41",heading:"PageTitle_heading__dZDfe",withBackBtn:"PageTitle_withBackBtn__HcFao",status:"PageTitle_status__lASVi",extra:"PageTitle_extra__RDxSr",left:"PageTitle_left__SZuwL",headingWrap:"PageTitle_headingWrap__8YhOl",actions:"PageTitle_actions__9yUxW",top:"PageTitle_top__TV8hn",count:"PageTitle_count__izRoW",mobileMenu:"PageTitle_mobileMenu__n82pE",mobileMenuItem:"PageTitle_mobileMenuItem__xiYKf",fadeInUp:"PageTitle_fadeInUp__0FNj5",fadeInDown:"PageTitle_fadeInDown__yX0In",fadeInLeft:"PageTitle_fadeInLeft__75GXE",fadeInRight:"PageTitle_fadeInRight__OITQt",loadingCircle:"PageTitle_loadingCircle__2M2ET"}
1,r=({heading:a,count:l,backButton:O=!0,status:j,actions:E,extra:W,className:N})=>{const{isSm:K}=(0,C.G)(),[w,U]=(0,o.useState)(!1),R=(E==null?void 0:E.filter(({condition:b})=>!(typeof b=="boolean"&&!b)))||[];return(0,e.jsx)("div",{className:d()(n.wrapper,{[n.withBackBtn]:O},N),"data-testid":"page-title",children:(0,e.jsxs)(p.s,{alignItems:"center",wrap:!0,children:[(0,e.jsxs)("div",{className:n.left,children:[(0,e.jsxs)("div",{className:n.top,children:[(0,e.jsxs)("div",{className:n.headingWrap,children:[O&&(0,e.jsx)(c,{}),(0,e.jsx)("div",{className:n.heading,children:a}),!!l&&(0,e.jsx)("div",{className:n.count,children:(0,e.jsx)(v.u,{count:l})})]}),j&&(0,e.jsx)("div",{className:n.status,children:j})]}),!!R.length&&(0,e.jsx)("div",{className:n.actions,children:K?R.length===1?R[0].desktop:(0,e.jsx)(B.A,{trigger:"click",open:w,onOpenChange:U,placement:"bottomRight",content:(0,e.jsx)("div",{className:n.mobileMenu,children:R.map((b,i)=>(0,e.jsx)("div",{className:n.mobileMenuItem,onClick:()=>U(!1),children:b.mobile||b.desktop},i))}),children:(0,e.jsx)(u.$,{icon:"IcoMore",modification:"text"})}):(0,e.jsx)(e.Fragment,{children:R.map((b,i)=>(0,e.jsx)("div",{children:b.desktop},i))})})]}),W&&(0,e.jsx)("div",{className:n.extra,children:W})]})})}},11010(L,P,t){t.d(P,{w:()=>h});var e=t(28531),v=t(73527),u=t(82603);const h=({icon:d,text:_,onClick:m,modification:f})=>(0,e.jsxs)(u.A,{size:8,align:"center",onClick:m,style:{cursor:"pointer"},children:[(0,e.jsx)(v.$,{icon:d,circle:!0,modification:f}),(0,e.jsx)("div",{children:_})]})},86728(L,P,t){t.d(P,{O:()=>B});var e=t(28531),v=t(73527),u=t(11010),h=t(28597),d=Object.defineProperty,_=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,c=(o,n,r)=>n in o?d(o,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[n]=r,p=(o,n)=>{for(var r in n||(n={}))m.call(n,r)&&c(o,r,n[r]);if(_)for(var r of _(n))f.call(n,r)&&c(o,r,n[r]);return o},C=(o,n)=>{var r={};for(var a in o)m.call(o,a)&&n.indexOf(a)<0&&(r[a]=o[a]);if(o!=null&&_)for(var a of _(o))n.indexOf(a)<0&&f.call(o,a)&&(r[a]=o[a]);return r};const B=o=>{var n=o,{variant:r="default"}=n,a=C(n,["variant"]);return r==="default"?(0,e.jsx)(h.A,{title:"Reload",children:(0,e.jsx)(v.$,p({shape:"circle",icon:"IcoRArrowRotateRight"},a))}):(0,e.jsx)(u.w,{icon:"IcoRArrowRotateRight",text:"Reload",onClick:a.onClick})}},52212(L,P,t){t.d(P,{Y:()=>_});var e=t(28531),v=t(35692),u=t(45516),h=t(61020),d=t(1331);const _=({className:m,title:f,error:c,loading:p,children:C})=>{const{config:{site:B}}=(0,v.U)();if((0,d.useEffect)(()=>{document.title=String(f)+" \u2022 "+B.name},[B.name,f]),p)return(0,e.jsx)(h.K,{});if(c&&"status"in c){const{status:o}=c;if(typeof o=="number"&&o>=500||o==="FETCH_ERROR")return(0,e.jsx)(u.M,{type:500});if(typeof o=="number"&&o===400||o===404)return(0,e.jsx)(u.M,{type:404})}return(0,e.jsx)("div",{className:m,"data-testid":"page-content",children:C})}},12729(L,P,t){t.d(P,{Q:()=>m});var e=t(28531),v=t(3546),u=t(24516),h=t(38413),d=t(53805),_=t(56865);const m=({className:f,showHeading:c})=>{const[p]=(0,d.x3)(),{data:C}=(0,d.Kt)(),{isSolidgate:B}=(0,_.r)();if(!C||!B)return null;const o=n=>{const r=n.target.checked;p({allowRememberCard:r}).unwrap().then(()=>{}).catch(a=>{console.error("Failed to update privacy settings:",a)})};return(0,e.jsx)(v.A,{className:"alert-card",type:"info",description:(0,e.jsxs)("div",{className:f,style:{padding:11},children:[c&&(0,e.jsxs)("div",{style:{fontWeight:600,fontSize:18,marginBottom:10},children:["Payment Cards ",(0,e.jsx)(h.A,{color:"green",children:"New"})," "]}),(0,e.jsxs)(u.A,{style:{width:"100%",paddingBlock:5,fontSize:"1rem"},defaultChecked:C.allowRememberCard,onChange:o,children:[(0,e.jsx)("strong",{style:{fontSize:"1.1rem"},children:"Suggest saving my card details for future payments"}),(0,e.jsx)("p",{style:{marginTop:10},children:"If this option is disabled, you won\u2019t be able to save your card details for future payments."})]})]})})}},91701(L,P,t){t.r(P),t.d(P,{default:()=>b});var e=t(28531),v=t(52212),u=t(96568),h=t(55138),d=t(12396),_=t(12729),m=t
1(73527),f=t(66579),c=t(28597),p=t(20985),C=t(61180);const B={wrapper:{hidden:{opacity:0,y:30},visible:{transition:{delayChildren:(0,C.y)(.5,{startDelay:.5}),when:"beforeChildren"}}},item:{hidden:{opacity:0,rotateZ:2,scale:.9,y:10},visible:{opacity:1,rotateZ:0,scale:1,y:0,transition:{delay:.2,duration:10,type:"spring",stiffness:400,damping:30,mass:.5,when:"afterChildren"}},exit:{opacity:0,scale:.6,rotateZ:-5,transition:{duration:.3,type:"spring",stiffness:400,damping:30,mass:.5}}}},o={"font-semibold-42":"SolidgatePaymentCard_font-semibold-42__B8sGU","font-semibold-34":"SolidgatePaymentCard_font-semibold-34__oljZp","font-semibold-30":"SolidgatePaymentCard_font-semibold-30__gypbO","font-semibold-24":"SolidgatePaymentCard_font-semibold-24__Wsrsh","font-semibold-20":"SolidgatePaymentCard_font-semibold-20__HhIT9","font-semibold-18":"SolidgatePaymentCard_font-semibold-18__dpWej","font-semibold-16":"SolidgatePaymentCard_font-semibold-16__S9q4M","font-semibold-14":"SolidgatePaymentCard_font-semibold-14__2cpJT","font-semibold-12":"SolidgatePaymentCard_font-semibold-12__r6hSb","font-medium-30":"SolidgatePaymentCard_font-medium-30__jFYFW","font-medium-16":"SolidgatePaymentCard_font-medium-16__k8h44","font-medium-14":"SolidgatePaymentCard_font-medium-14__MuEoZ","font-medium-10":"SolidgatePaymentCard_font-medium-10__TLg8D","font-regular-12":"SolidgatePaymentCard_font-regular-12__8l9Hj","font-regular-14":"SolidgatePaymentCard_font-regular-14__Zm7Fy","font-regular-16":"SolidgatePaymentCard_font-regular-16__VLIkv","font-regular-18":"SolidgatePaymentCard_font-regular-18__9jkRB","font-regular-20":"SolidgatePaymentCard_font-regular-20__bmf-H","font-regular-42":"SolidgatePaymentCard_font-regular-42__Uzxnz",card:"SolidgatePaymentCard_card__ImIx5",cardHover:"SolidgatePaymentCard_cardHover__4cWDe",remove:"SolidgatePaymentCard_remove__nAcI1",number:"SolidgatePaymentCard_number__Z5DS9",info:"SolidgatePaymentCard_info__ylHPn",cardUnhover:"SolidgatePaymentCard_cardUnhover__TQaJZ",primary:"SolidgatePaymentCard_primary__npLnX",header:"SolidgatePaymentCard_header__YreVO",makePrimary:"SolidgatePaymentCard_makePrimary__APy3o",type:"SolidgatePaymentCard_type__5GiLJ",icon:"SolidgatePaymentCard_icon__lW7+k",brand:"SolidgatePaymentCard_brand__SHkTe",fadeInUp:"SolidgatePaymentCard_fadeInUp__1EeJX",fadeInDown:"SolidgatePaymentCard_fadeInDown__9TasW",fadeInLeft:"SolidgatePaymentCard_fadeInLeft__iUSiE",fadeInRight:"SolidgatePaymentCard_fadeInRight__pc+fv",loadingCircle:"SolidgatePaymentCard_loadingCircle__7V5xx"};var n=t(36179),r=t.n(n),a=(i,M,g)=>new Promise((D,T)=>{var A=s=>{try{y(g.next(s))}catch(x){T(x)}},I=s=>{try{y(g.throw(s))}catch(x){T(x)}},y=s=>s.done?D(s.value):Promise.resolve(s.value).then(A,I);y((g=g.apply(i,M)).next())});const l=({card:i})=>{const M=i.brand.toLowerCase(),g=f.yJ.includes(M)||f.yJ.includes(i.brand),D=g?`/img/svg/pay-${i.brand.toLowerCase()}.svg`:"",[T,{isLoading:A}]=(0,d.X6)(),[I]=(0,d.qr)(),{isPrimary:y}=i,s=()=>a(null,null,function*(){yield T([i.id]).unwrap()}),x=()=>a(null,null,function*(){if(!y)try{yield I(i.id).unwrap()}catch(S){console.error("Failed to mark card as primary:",S)}});return(0,e.jsx)(p.P.div,{layoutId:i.id,variants:B.item,initial:"hidden",animate:"visible",exit:"exit",children:(0,e.jsxs)("div",{className:r()(o.card,{[o.primary]:y}),children:[(0,e.jsxs)("header",{className:o.header,children:[(0,e.jsxs)("div",{className:o.type,children:[i.cardType," CARD"]}),(0,e.jsxs)("div",{children:[(0,e.jsx)(c.A,{title:y?"This card is already primary":"Make this card as primary",children:(0,e.jsx)(m.$,{size:"small",className:o.makePrimary,icon:"IcoRCrown",shape:"circle",modification:y?"warning":"warningOutlined",onClick:x})}),(0,e.jsx)(c.A,{title:"Remove card",children:(0,e.jsx)(m.$,{shape:"circle",className:o.remove,modification:"text",onClick:s,disabled:A,children:"\u2715"})})]})]}),g?(0,e.jsx)("img",{className:o.icon,src:D,alt:i.brand}):(0,e.jsx)("span",{className:o.brand,children:i.brand}),(0,e.jsx)("div",{className:o.number,children:i.number.replace(/(.{4})/g,"$1 ").trim()}),(0,e.jsxs)("div",{className:o.info,children:["Expiry:"," ",(0,e.jsxs)("strong",{children:[i.cardExpMonth,"/",i.cardExpYear]})]})]})})};var O=t(86728),j=t(3546),E=t(13185),W=t(88224),N=t(87232),K=t(82269),w=t(1331),U=t(20843),R=(i,M,g)=>new Promise((D,T)=>{var A=s=>{try{y(g.next(s))}catch(x){T(x)}},I=s=>
1{try{y(g.throw(s))}catch(x){T(x)}},y=s=>s.done?D(s.value):Promise.resolve(s.value).then(A,I);y((g=g.apply(i,M)).next())});function b(){const{data:i=[],refetch:M,isLoading:g,isFetching:D}=(0,d.fs)(),[T,{isLoading:A}]=(0,d.X6)(),{canRenderPaymentCardsMenu:I}=(0,N.m)(),y=(0,K.Zp)(),s=g||D,x=()=>R(null,null,function*(){yield T(i.map(S=>S.id)).unwrap()});return(0,w.useEffect)(()=>{!I&&!s&&y("/orders",{replace:!0})},[I,s,y]),I?(0,e.jsx)(v.Y,{title:"Solidgate payment cards",loading:g,error:void 0,children:(0,e.jsxs)(h.m,{children:[(0,e.jsx)(u.s,{heading:"Solidgate payment cards",backButton:!1,count:i.length,actions:[{desktop:(0,e.jsx)(O.O,{loading:g,onClick:M})}]}),!!i.length&&(0,e.jsx)("div",{style:{display:"flex",gap:"1rem",flexWrap:"wrap",marginBlock:15},children:(0,e.jsx)(U.N,{children:[...i].sort((S,F)=>(F.isPrimary?1:0)-(S.isPrimary?1:0)).map(S=>(0,e.jsx)(l,{card:S},S.id))})}),(0,e.jsxs)("div",{style:{maxWidth:640},children:[(0,e.jsx)("hr",{style:{marginBlock:30}}),(0,e.jsx)(_.Q,{}),(0,e.jsx)(j.A,{className:"alert-card",type:"warning",style:{marginTop:10},message:(0,e.jsxs)(W.s,{gap:5,style:{fontSize:"1.1rem",fontWeight:600},children:[(0,e.jsx)(E.a,{color:"#258fff",icon:"IcoSCircleInfo",size:22})," Secure Payments"]}),description:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("p",{style:{fontSize:"1rem"},children:"We do not store your sensitive card details. Only a portion of your card number and the expiration date are securely saved using industry-standard encryption. This information is tokenized and managed by certified payment providers. We never have access to your full card details, and your payment data remains protected at all times."}),(0,e.jsx)(m.$,{modification:"primaryOutlined",loading:A,icon:"IcoRTrash",onClick:x,children:"I want to delete all my saved cards"})]})})]})]})}):null}}}]); 2 3//# sourceMappingURL=701.9e39a451.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.