1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[4861],{32845(e,s,t){t.d(s,{tu:()=>i,sP:()=>u,MM:()=>h,kV:()=>x,K6:()=>g,nB:()=>S});var n=t(3495),c=t(86866),r=t.n(c),a=t(7117);const i=({title:e,children:s,className:t,component:c,onClick:i,headerAction:l,"data-testid":o,...d})=>{const u=e||l,m=c||"article",h=t&&t.match(/\btheme-(dark|light)\b(?!.*\btheme-(?:dark|light)\b)/),N=h?.[0]||"theme-light";return(0,n.jsxs)(m,{...d,className:r()("MwzJtDsVgDHKMCM_","Yzexxihyvja_VugR",t,N),onClick:i,children:[u?(0,n.jsxs)("header",{className:"gMi8J1agLwxhOXnU",children:[(0,n.jsx)(a.o,{className:"ErGjLGl9eL04i5UX",level:"KINSHASA_3",component:"h2",children:e}),l]}):null,s]})};var l=t(65993),o=t.n(l),d="tqqLG0wIcjd7AQRL";const u=({children:e,className:s,direction:t="row",...c})=>(0,n.jsx)("div",{className:o()("T3_DLwpAZIHgWrEu",s,{[d]:"column"===t}),...c,children:e});var m="gU_H5r12DyHQ24Ql";const h=({children:e,className:s,centered:t=!1,...c})=>(0,n.jsx)("div",{className:o()("TBg6kJx3XksboyT2",{[m]:t},s),...c,children:e});var N=t(55729);const x=({iconName:e,className:s})=>(0,n.jsx)(N.In,{className:s,name:e,size:40}),g=({children:e,className:s,...t})=>(0,n.jsx)(a.o,{className:o()("oyCLioHcjPRxHVUN",s),...t,children:e}),S=({children:e,className:s,...t})=>(0,n.jsx)("div",{className:"yNhzkKC8kDlUTzGH",children:(0,n.jsx)(a.o,{className:s,component:"h2",level:"KINSHASA_1",...t,children:e})})},94859(e,s,t){t.r(s),t.d(s,{default:()=>C});var n=t(3495),c=t(55729),r=t(71229),a=t(70333),i=t(65993),l=t.n(i),o=t(30696),d=t(32845),u=t(98797),m=t(28383),h="GPZdzOliS5qGGaIk";const N=({type:e,title:s,message:t,action:r})=>{const{t:i}=(0,a.Bd)();return(0,n.jsx)(d.tu,{children:(0,n.jsxs)(d.MM,{centered:!0,children:[(0,n.jsx)(d.kV,{iconName:e===m.dO.SUCCESS?c.WW.Check:c.WW.Info}),s?(0,n.jsx)(d.nB,{className:l()("Xe30gLet8ifAMtJZ",{[h]:e!==m.dO.SUCCESS}),children:i(s)}):null,t?(0,n.jsx)(d.K6,{children:i(t)}):null,r?(0,n.jsx)(d.sP,{direction:"column",children:(0,n.jsx)(o.$,{onClick:()=>{return e=r.redirection,void(0,u.iB)({name:e});var e},label:i(r.label)})}):null]})})};var x=t(66751),g=t(2740),S=t(2631),j=t.n(S),k=t(80342),I=t(50888),f=t(17614),p=t(67279),_=t(89058),b=t(67032),v=t(27742),y=t(10660);const C=()=>{const{subscriptionStatus:e}=(()=>{const[e,s]=(0,x.useState)(null),t=(0,g.d4)(b.$V),n=(0,g.d4)(_.bI),c=(0,g.d4)(y.UJ),r=(0,g.d4)(y.wz),a=(0,g.wA)(),i=(0,x.useMemo)(()=>({UID:j().get(r,"UID"),token:j().get(t,"params.subscriptionToken"),storeCode:m.QW}),[r,t]);return(0,x.useEffect)(()=>{n&&(c?e||(async({UID:e,storeCode:t,token:n})=>{try{(({warnings:e})=>e?.some(e=>[m.a6,m.SD].includes(e)))(await I.p.check({UID:e,storeCode:t,receipt:n}))?(s(m.Z2),(0,v.BI)({key:"externalSubscription",status:"warning",message:"WARNING_TOO_MANY_SUBSCRIPTIONS"})):(s(m._$),(0,v.BI)({key:"externalSubscription",status:"success"}))}catch(e){s(m.dp),(0,v.BI)({key:"externalSubscription",status:"error",message:(0,f.u)(e)})}})(i):a((0,p.Qu)({emitter:k.jh.emitter.EXTERNAL_SUBSCRIPTION_PAGE,redirectRoute:t})))},[e,n,c,t,a,r,i]),{subscriptionStatus:e}})();return(0,r.r)({isLoadingDisplayed:!e,name:"externalSubscriptionPage"}),(0,n.jsx)("div",{className:"dg2rBzG_uQseZ04N",children:e?(0,n.jsx)(N,{...e}):(0,n.jsx)(c.In,{name:c.WW.Loading,size:64})})}},71229(e,s,t){var n=t(66751),c=t(27742);t.d(s,["r",0,({maxTime:e=3e4,callback:s,isLoadingDisplayed:t,name:r,...a})=>{const i=(0,n.useRef)(null),l=(0,n.useRef)(t),o=(0,n.useRef)(a);(0,n.useEffect)(()=>{o.current=a},[JSON.stringify(a)]),(0,n.useEffect)(()=>{l.current=t},[t]);const d=()=>{null!==i.current&&clearTimeout(i.current)};(0,n.useEffect)(()=>{null===i.current&&(i.current=setTimeout(()=>{!1!==l.current&&((0,c.BI)({key:"loadingTimeout",timeout:e,details:o.current?JSON.stringify(o.current):void 0,name:r}),s?.())},e))},[s,JSON.stringify(a),e,r]),(0,n.useEffect)(()=>d,[])}])}}]); 2//# sourceMappingURL=sourcemaps/externalSubscription-662cee6e8fc298dc.bundle.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.