1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[781,954],{3219:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>l,fp:()=>s,oV:()=>n});let r=(0,a(79059).Z0)({name:"sectionVisibility",initialState:{hiddenSections:[]},reducers:{hideSections:(e,t)=>{let a=t.payload.filter(t=>!e.hiddenSections.includes(t));e.hiddenSections=[...e.hiddenSections,...a]},showSections:(e,t)=>{e.hiddenSections=e.hiddenSections.filter(e=>!t.payload.includes(e))},resetSectionVisibility:e=>{e.hiddenSections=[]}}}),{hideSections:s,showSections:n,resetSectionVisibility:i}=r.actions,l=r.reducer},3705:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var r=a(12115),s=a(99967),n=a(3219);let i=({sectionsToHide:e=[],shouldHide:t=!1})=>{let a=(0,s.useDispatch)(),i=(0,r.useRef)(e);i.current=e;let l=e.join(",");return(0,r.useLayoutEffect)(()=>{let e=i.current;return e.length>0&&(t?a((0,n.fp)(e)):a((0,n.oV)(e))),()=>{e.length>0&&a((0,n.oV)(e))}},[t,l,a]),null}},6021:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>g});var r=a(95155),s=a(69828),n=a(38739),i=a(63915),l=a(81322),o=a(12115),c=a(60082),d=a(13977),u=a(4474),p=a(37559),m=a(93344);let h=({downloadLink:e=null,useHyperLinkElement:t=!0})=>((0,o.useEffect)(()=>{if(e)if(t){let t=document.createElement("a");t.href=e,t.download="pCloud Drive",t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}else window.location=e},[e]),null),g=({title:e={t_text:"HOW_TO_INSTALL_PCLOUD_DRIVE_ON",t_default:"How to install pCloud Drive",t_params:[]},titleBackgroundImage:t,linkSrc:a=null,linkText:g=null,backgroundSection:f=null,sectionClassName:b="",noteLabel:x=null,noteText:_=null,smallDescriptionText:v=null,smallDescriptionImage:y=null,terminalNotes:w=null,seeHiddenText:j=null,downloadLink:N=null,downloadLinkData:P=null})=>{let{t:C}=(0,l.useT)(),{downloadLink:k,seeHiddenText:S}=(({onReady:e}={})=>{let t=(0,c.useSearchParams)(),a=t?.get("download")||null,[r,s]=(0,o.useState)(null),[n,i]=(0,o.useState)(!!a),[l,m]=(0,o.useState)(null),h=(0,o.useRef)(e),g=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{h.current=e},[e]),(0,o.useEffect)(()=>{let e=!1,t=()=>{h.current&&!g.current&&(g.current=!0,h.current())};if(!a){i(!1),t();return}let r=u.AD[a];if(!r?.value){i(!1),t();return}return(0,d.default)("getpublinkdownload",{code:r.value},a=>{e||(0===a.result&&a.hosts?.[0]?s("//"+a.hosts[0]+a.path):m("Failed to get download link"),i(!1),t())},{errorCallback:()=>{e||(m("API error"),i(!1),t())},onXhrError:()=>{e||(m("Network error"),i(!1),t())},apiServer:p.US_API}),()=>{e=!0}},[a]),{downloadLink:r,isLoading:n,error:l,downloadParam:a,seeHiddenText:u.AD[a]?.hash||null}})({onReady:(0,m.m)("InstallNotesAndDownloadAppSection")}),E=N||k,A=j||S;return(0,r.jsxs)(r.Fragment,{children:[E&&(0,r.jsx)(h,{downloadLink:E}),(0,r.jsx)("section",{className:`section ${b}`,style:f?{background:f}:void 0,children:(0,r.jsxs)("div",{className:"align-container with-small-gap",children:[(0,r.jsx)("h1",{className:"title text-gradient",style:{backgroundImage:t},children:C(e)}),a?(0,r.jsxs)("a",{href:a,className:`header-text-subheader-link ${E?"has-download-link":""} text-gradient`,children:[C(g)," ",(0,r.jsx)(s.default,{})]}):null,E?(0,r.jsxs)("div",{className:"header-text-download-link-wrapper",children:[P&&P.textBefore?(0,r.jsx)("span",{children:C(P.textBefore)}):null,(0,r.jsx)("a",{href:E,target:"_blank",className:"header-text-download-link text-gradient",children:C(P?.linkText||"Download")})]}):null,_?(0,r.jsxs)("div",{className:"header-text-note",children:[(0,r.jsx)("span",{className:"header-text-note-label",children:C(x).trim()})," ",(0,r.jsx)(n.default,{text:C(_),converters:[i.linkConverter,i.brTagConverter]})]}):null,w&&w.length>0?(0,r.jsx)("div",{className:"terminal-notes-instructions",children:w.map(e=>(0,r.jsxs)("div",{className:"terminal-notes-wrapper",children:[(0,r.jsx)("div",{children:C(e.note)}),(0,r.jsx)("div",{className:"terminal-notes-command",children:C(e.command)})]}))}):null,A?(0,r.jsx)("div",{className:"sha256-note-wrapper",children:(0,r.jsxs)("div",{className:"see-hidden-text-content hash-text",children:[(0,r.jsx)("strong",{children:"SHA-256: "})," ",(0,r.jsx)("span",{children:A})]})}):null,v||y?(0,r.jsxs)("div",{className:"header-text-small-desc-wrapper",children:[y?(0,r.jsx)("img",{src:y,alt:C(v)}):null,y?(0,r.jsx)("div",{className:"header-text-small-desc",children:(0,r.jsx)(n.default,{text:C(v),converters:[i.boldConverter]})}):null]}):null]})})]})}},6992:(e,t,a)=>{"use strict";a.d(t,{$:()=>b,EH:()=>_,Jb:()=>d,Jy:()=>j,R8:()=>w,T3:()=>h,Vf:()=>g,YK:()=>v,Z8:()=>u,iP:()=>f,qL:()=>y});var r=a(13977),s=a(67653),n=a(2604),i=a(25939),l=a(33307),o=a(12115),c=a(33539);let d=1,u=5,p=[1,2,3],m={en:{something_went_wrong:"Something went wrong. Try again later",retry:"Retry",hours:"hours",minutes:"minutes",seconds:"seconds",timer_hurryup:"Hurr
1y up! The promotion will end in...",limited_time_deal:"Limited Time Deal",promo_no_longer_available:"Promo is no longer available",go_to_pricing:"Go to pricing page"},bg:{something_went_wrong:"ÐеÑо Ñе обÑÑка. ÐÑобвайÑе оÑново",retry:"ÐовÑоÑи",hours:"ÑаÑа",minutes:"минÑÑи",seconds:"ÑекÑнди",timer_hurryup:"ÐобÑÑзай! ÐÑомоÑиÑÑа изÑиÑа Ñлед...",limited_time_deal:"ÐимиÑиÑана ÐÑомоÑиÑ",promo_no_longer_available:"ÐÑомоÑиÑÑа веÑе не е налиÑна",go_to_pricing:"ÐÑм ÑÑÑаниÑаÑа Ñ Ñени"},es:{something_went_wrong:"Also sali\xf3 mal. Intenta nuevamente m\xe1s tarde",retry:"Reintentar",hours:"horas",minutes:"minutos",seconds:"segundos",timer_hurryup:"\xa1Ap\xfarate! La promoci\xf3n terminar\xe1 en...",limited_time_deal:"Oferta por tiempo limitado",promo_no_longer_available:"La promoci\xf3n ya no est\xe1 disponible",go_to_pricing:"Ir a la p\xe1gina de precios"},ru:{something_went_wrong:"ÐÑоизоÑла оÑибка. ÐовÑоÑиÑе попÑÑÐºÑ Ð¿Ð¾Ð·Ð¶Ðµ",retry:"ÐовÑоÑиÑÑ",hours:"ÑаÑÑ",minutes:"минÑÑÑ",seconds:"ÑекÑндÑ",timer_hurryup:"ÐоÑоÑопиÑеÑÑ! ÐкÑÐ¸Ñ Ð·Ð°ÐºÐ¾Ð½ÑиÑÑÑ ÑеÑез ...",limited_time_deal:"Сделка Ñ Ð¾Ð³ÑаниÑеннÑм вÑеменем",promo_no_longer_available:"ÐÑомо болÑÑе не доÑÑÑпно",go_to_pricing:"ÐеÑейÑи на ÑÑÑаниÑÑ Ñ Ñенами"},pt:{something_went_wrong:"Alguma coisa correu mal. Por favor tente mais tarde",retry:"Repetir",hours:"horas",minutes:"minutos",seconds:"segundos",timer_hurryup:"N\xe3o perca tempo! A promo\xe7\xe3o vai acabar em...",limited_time_deal:"Oferta por tempo limitado",promo_no_longer_available:"A promo\xe7\xe3o j\xe1 n\xe3o est\xe1 dispon\xedvel",go_to_pricing:"Ir para a p\xe1gina de pre\xe7os"},fr:{something_went_wrong:"Une erreur s'est produite. R\xe9essayez plus tard",retry:"R\xe9essayer",hours:"heures",minutes:"minutes",seconds:"secondes",timer_hurryup:"D\xe9p\xeachez-vous ! La promotion se terminera en...",limited_time_deal:"Offre \xe0 dur\xe9e limit\xe9e",promo_no_longer_available:"La promotion n'est plus disponible",go_to_pricing:"Aller \xe0 la page des tarifs"},it:{something_went_wrong:"Qualcosa \xe8 stato sbagliato. Prova ancora pi\xf9 tardi",retry:"Riprova",hours:"ore",minutes:"minuti",seconds:"secondi",timer_hurryup:"Veloce! La promozione terminer\xe0 in...",limited_time_deal:"Un affare a tempo limitato",promo_no_longer_available:"La promozione non \xe8 pi\xf9 disponibile",go_to_pricing:"Vai alla pagina dei prezzi"},de:{something_went_wrong:"Etwas ist schief gelaufen. Versuchen Sie es sp\xe4ter erneut",retry:"Wiederholen",hours:"Stunden",minutes:"minuten",seconds:"Sekunden",timer_hurryup:"Beeilen Sie sich! Die Aktion endet in...",limited_time_deal:"Zeitlich befristetes Angebot",promo_no_longer_available:"Angebot nicht mehr verf\xfcgbar",go_to_pricing:"Zur Preisseite gehen"},tr:{something_went_wrong:"Bir hata oluÅtu. Daha sonra tekrar deneyin",retry:"Tekrar dene",hours:"saat",minutes:"dakika",seconds:"saniye",timer_hurryup:"Acele edin! Promosyon Åu tarihte bitecek...",limited_time_deal:"Sınırlı s\xfcreli teklif",promo_no_longer_available:"Promosyon artık mevcut deÄil",go_to_pricing:"Fiyatlandırma sayfasına git"},zh:{something_went_wrong:"åºç¾äºæªç¥åé¡ãè«ç¨å¾å試",retry:"åè©¦ä¸æ¬¡",hours:"å°æ",minutes:"åé",seconds:"ç§",timer_hurryup:"è¡åè¦å¿«ï¼æ¤åªæ æ´»åå°çµææ¼â¦â¦",limited_time_deal:"éæåªæ ",promo_no_longer_available:"ä¿é·ä¸åå¯ç¨",go_to_pricing:"åå¾å®å¹é é¢"}},h=(e,t,a="")=>m[e]?.[t]||m.en?.[t]||a,g=e=>{let t=RegExp("[\\?&]"+(e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)").exec(window.location.href);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},f=e=>{let t=g("auth")||(0,l.Hs)(c.J$),a=g("locationid")||(0,l.Hs)("locationid"),r=["channelid","label"];try{let s=new URL(e.btnlink);for(let t=0;t<r.length;t++){let a=r[t];e[a]&&s.searchParams.set(a,e[a])}if(t&&a)s.searchParams.set("authtoken",t),s.searchParams.set("locationid",a);else if(t){let e=s.hash?"&":"#";return s.href+e+"authtoken="+t}return s.href}catch(t){return console.error("Error constructing promo URL:",t),e.btnlink}},b=(e,t,a,n,i,o={})=>{let{useBeacon:d=!1}=o,u={category:e,action:t,label:a,etime:Math.round(new Date().getTime()/1e3),os:parseInt(i||g("os"))};n&&(u.keychannelid=n,u.keys="channelid");let p=g("auth")||(0,l.Hs)(c.J$);p&&(u.auth=p),d?(0,s.default)("lae",u):(0,r.default)("lae",u,e=>{console.log("Analytics event sent:",e)},{errorCallback:e=>{console.error("Analytics error:",e.error)}})},x=e=>{let t=String(e);return 1===t.length?"0"+t:t},_=e=>
1{let[t,a]=(0,o.useState)({hours:"00",minutes:"00",seconds:"00"}),[r,s]=(0,o.useState)(!1),n=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!e)return;let t=(e=>{if(!e.timerstime||!e.timeretime)return null;let t=e.timerstime.replace(" ","T"),a=e.timeretime.replace(" ","T"),r={start:new Date(t).getTime(),end:new Date(a).getTime()};if(!e.uselocaltime){let e=60*new Date().getTimezoneOffset()*1e3;r.start+=-1*e,r.end+=-1*e}return r})(e);if(!t)return void s(!1);let r=new Date().getTime();if(r>=t.end||r<t.start)return void s(!1);s(!0);let i=()=>{var e;let r,i,l,o=new Date().getTime();if(o>=t.end||o<t.start){s(!1),n.current&&clearInterval(n.current);return}a((r=Math.floor((e=t.end-o)/36e5),i=Math.floor(e%36e5/6e4),l=Math.floor(e%6e4/1e3),{hours:x(r),minutes:x(i),seconds:x(l)}))};return i(),n.current=setInterval(i,1e3),()=>{n.current&&clearInterval(n.current)}},[e]),{countdown:t,isActive:r}},v=async(e=0,t=2)=>new Promise((a,s)=>{let n=(()=>{let e=RegExp("(\\?|#)(.+)").exec(window.location.href);if(null===e)return{};let t=e[2].split("&"),a={};for(let e=0;e<t.length;e++){let r=t[e].split("=");a[r[0]]=r[1]}return a})(),i=(0,l.Hs)(c.J$);(!g("auth")&&i&&(n.auth=i),e>t||g("fail"))?s(Error("max_retries_exceeded")):(0,r.default)("getpromooffer",n,e=>{e.haspromo?(e.btnlink=f(e),a(e)):s(Error("no_promo_available"))},{errorCallback:e=>{s(e)},onTimeout:()=>{v(e+1,t).then(a).catch(s)},type:"post",timeout:1e4*(e+1)})}),y=(e,t,a,s,l,o={})=>{let c={bonuscode:t,verifymailcode:a};e&&(c.auth=e.auth);let d={forceFresh:!0,...o};if(s){let e=(0,i.getLocationById)(Number(s))?.api;e&&(Number(s)!==Number(n.default.locationid)&&delete c.auth,d.apiServer=e)}return(0,r.default)("usebonuscodeandverify",c,l,d)},w=e=>-1!==p.indexOf(parseInt(e)),j=e=>`https://www.pcloud.com/${"en"===e?"":e+"/"}cloud-storage-pricing-plans.html`},8115:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(95155);a(12115);var s=a(19976),n=a(50215),i=a(14899);let l=({alignLogo:e="left",logoKey:t=null})=>{let a=(0,n.f)(),{logo:l}=(0,i.x)({buildData:a,logoKey:t});return(0,r.jsx)("section",{className:"section smaller-padding-top-bottom sample-header-section",children:(0,r.jsx)("div",{className:`align-container align-${e}`,children:(0,r.jsx)(s.A,{logo:l})})})}},8490:(e,t,a)=>{"use strict";a.r(t),a.d(t,{VivacomLoginFormSection:()=>m,default:()=>h});var r=a(95155),s=a(47e3),n=a(54654),i=a(81322),l=a(56934),o=a(93344),c=a(83371),d=a(67889),u=a.n(d);let p=(0,c.default)(()=>Promise.all([a.e(4655),a.e(8108),a.e(8737),a.e(8161),a.e(7130),a.e(900),a.e(3574),a.e(9963),a.e(7888),a.e(7260)]).then(a.bind(a,56640)),{loadableGenerated:{webpack:()=>[56640]},ssr:!1}),m=()=>{let{t:e}=(0,i.useT)(),{setCookie:t}=(0,l.f)(),{handleLogout:a,dispatch:c}=(0,n.A)(),d=(0,o.m)("VivacomLoginFormSection");return(0,r.jsx)("div",{className:"section no-padding-top",children:(0,r.jsxs)("div",{className:"align-container with-gap",children:[(0,r.jsx)("h2",{className:"titleh3 align-center",children:e("vivacom_title","Welcome to pCloud!")}),(0,r.jsx)(p,{onAuthAction:async e=>{await (0,s.Ir)(e,t,c)},logoutUser:a,resetPassword:()=>{},onPrepareLoginOrSignupFormFinished:d,skipPrepareLoginOrSignupFormLoading:!0}),(0,r.jsx)("div",{className:"vivacom-faq-link",children:(0,r.jsx)(u(),{href:"/vivacom-faq",children:e("f.a.q","FAQ")})})]})})},h=m},11595:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(95155);a(12115);var s=a(74703),n=a(76800);let i=({children:e,trigger:t=!1,type:a="fade",timeout:i=500,animationDirection:l="left",style:o={},disableInitialAnimation:c=!1})=>{let d=(()=>{switch(a){case"slide":return{initial:{opacity:0,x:"right"===l?-150:150},animate:{opacity:1,x:0},exit:{opacity:0,x:"right"===l?150:-150}};case"fade-down":return{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};case"slide-up":return{initial:{opacity:0,y:40},animate:{opacity:1,y:0},exit:{opacity:0,y:40}};default:return{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0}}}})();return(0,r.jsx)("div",{style:{width:"100%",...o},className:"animation-container",children:(0,r.jsx)(s.N,{mode:"wait",children:(0,r.jsx)(n.P.div,{variants:d,initial:c?"animate":"initial",animate:"animate",exit:"exit",transition:{duration:i/1e3},className:"animation-wrapper",children:e},t)})})}},12978:(e,t,a)=>{"use strict";a.d(t,{A:()=>T});var r,s,n,i,l,o,c,d,u,p,m=a(95155),h=a(12115),g=a(74585),f=a(90929),b=a(45795);function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let _=function(e){return h.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"check-icon_svg__Layer_1",x:0,y:0,viewBox:"0 0 14 10"},e),r||(r=h.createElement("path",{id:"check-icon_svg__Union_94",d:"M.4 5.4c-.6-.6-.6-1.5 0-2.1s1.5-.6 2.1 0l3.1 3.2 5.9-6c.6-.6 1.5-.6 2.1 0s.6 1.5 0 2.1l-6.9 7c-.6.6-1.5.6-2.1 0z",className:"check-icon_svg__st0"})))};function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let y=function(e){return h.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:12,height:9,fill:"none"},e),s||(s=h.createElement("path",{fill:"url(#check-icon-v001_svg__paint0_linear_1_2605)",d:"m4 6.175 5.9-5.9A.95.95 0 0 1 10.6 0q.426 0 .7.275a.95.95 0 0 1 .276.7.95.95 0 0 1-.275.7l-6.6 6.6q-.3.3-.7.3a.96.96 0 0 1-.7-.3l-2.6-2.6a.95.95 0 0 1-.275-.7q0-.425.275-.7A.95.95 0 0 1 1.4 4q.424 0 .7.275z"})),n||(n=h.createElement("defs",null,h.createElement("linearGradient",{id:"check-icon-v001_svg__paint0_linear_1_2605",x1:11.576,x2:.43,y1:4.413,y2:4.53,gradientUnits:"userSpaceOnUse"},h.createElement("stop",{stopColor:"#17BED0"}),h.createElement("stop",{offset:1,stopColor:"#0291D5"})))))};function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let j=function(e){return h.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:12,height:9,fill:"none"},e),i||(i=h.createElement("path",{fill:"url(#check-icon-v002_svg__paint0_linear_1_2624)",d:"m3.575 6.175 5.9-5.9a.95.95 0 0 1 .7-.275q.425 0 .7.275a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7l-6.6 6.6q-.3.3-.7.3a.96.96 0 0 1-.7-.3l-2.6-2.6a.95.95 0 0 1-.275-.7q0-.425.275-.7A.95.95 0 0 1 .975 4q.425 0 .7.275z"})),l||(l=h.createElement("defs",null,h.createElement("linearGradient",{id:"check-icon-v002_svg__paint0_linear_1_2624",x1:0,x2:11.132,y1:4.012,y2:3.758,gradientUnits:"userSpaceOnUse"},h.createElement("stop",{stopColor:"#11AA52"}),h.createElement("stop",{offset:1,stopColor:"#4BCA00"}
1)))))};function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let P=function(e){return h.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),o||(o=h.createElement("path",{fill:"#838689",d:"M8 1a7 7 0 1 1-.001 14.001A7 7 0 0 1 8 1m0 15a8 8 0 0 0 8-8 8 8 0 0 0-8-8 8 8 0 0 0-8 8 8 8 0 0 0 8 8m-1.5-5c-.275 0-.5.225-.5.5s.225.5.5.5h3c.275 0 .5-.225.5-.5s-.225-.5-.5-.5h-1V7.5c0-.275-.225-.5-.5-.5H6.5c-.275 0-.5.225-.5.5s.225.5.5.5h1v3zM8 5.75c.416 0 .75-.334.75-.75A.75.75 0 0 0 8 4.25a.75.75 0 0 0-.75.75c0 .416.334.75.75.75",opacity:.5})))};var C=a(47768);function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let S=function(e){return h.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",width:12,height:9,fill:"none"},e),c||(c=h.createElement("path",{fill:"url(#storage-check-icon_svg__paint0_linear_159_3451)",d:"m3.575 6.175 5.9-5.9a.95.95 0 0 1 .7-.275q.425 0 .7.275a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7l-6.6 6.6q-.3.3-.7.3a.96.96 0 0 1-.7-.3l-2.6-2.6a.95.95 0 0 1-.275-.7q0-.425.275-.7A.95.95 0 0 1 .975 4q.425 0 .7.275z"})),d||(d=h.createElement("defs",null,h.createElement("linearGradient",{id:"storage-check-icon_svg__paint0_linear_159_3451",x1:0,x2:11.15,y1:4.287,y2:4.287,gradientUnits:"userSpaceOnUse"},h.createElement("stop",{stopColor:"#17bed0"}),h.createElement("stop",{offset:1,stopColor:"#17bed0"})))))};function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let A=function(e){return h.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:12,height:9,fill:"none"},e),u||(u=h.createElement("path",{fill:"url(#family-check-icon_svg__paint0_linear_159_3451)",d:"m3.575 6.175 5.9-5.9a.95.95 0 0 1 .7-.275q.425 0 .7.275a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7l-6.6 6.6q-.3.3-.7.3a.96.96 0 0 1-.7-.3l-2.6-2.6a.95.95 0 0 1-.275-.7q0-.425.275-.7A.95.95 0 0 1 .975 4q.425 0 .7.275z"})),p||(p=h.createElement("defs",null,h.createElement("linearGradient",{id:"family-check-icon_svg__paint0_linear_159_3451",x1:0,x2:11.15,y1:4.287,y2:4.287,gradientUnits:"userSpaceOnUse"},h.createElement("stop",{stopColor:"var(--features-check-icon-gradient-start, #9E49CB)"}),h.createElement("stop",{offset:1,stopColor:"var(--features-check-icon-gradient-end, #593DAD)"})))))},T=({feature:e,tooltip:t,label:a,lastChild:r=!1,disabled:s=!1,className:n="",theme:i,color:l,showCheck:o,plansType:c="storage",plansVersion:d="1.0.0"})=>{let[u]=(0,h.useState)((0,b.A)()),p="#17bed0";s?p="#ccc":l&&f.COLORS[l]&&(p=void 0!==f.COLORS[l].bulletsColor&&""!==f.COLORS[l].bulletsColor?f.COLORS[l].bulletsColor:f.COLORS[l].mainColor);let x=(()=>{if("storage"===c||"business_storage_checkout"===c)switch(d){case"0.0.1":return y;case"0.0.2":return j;default:return S}return"storage_family"===c?A:_})(),v=(()=>{if("storage"===c||"business_storage_checkout"===c)switch(d){case"0.0.1":case"0.0.2":return C.A}return P})(),w=`plans-feature-wrapper ${n}${r?" plans-feature-wrapper--last-child":""}${"dark"===i?" theme-dark":""}`,N=`plans-feature-text inner-text${s?" plans-feature-text--disabled":""}${a?" plans-feature-text--with-label":""}${"dark"===i?" theme-dark":""}`;return(0,m.jsxs)("div",{className:w,children:[o?(0,m.jsx)(x,{fill:p,width:"15px",height:"10.2px"}):null,(0,m.jsxs)("div",{className:N,children:[e,a?(0,m.jsx)("span",{className:"plans-feature-label",children:(0,m.jsx)("span",{className:"plans-feature-label-text text-gradient",children:a})}):null]}),t?(0,m.jsxs)(h.Fragment,{children:[(0,m.jsx)(v,{"data-tooltip-id":u,"data-tooltip-content":t,width:"16px",height:"16px",className:"feature-info-icon"}),(0,m.jsx)(g.m_,{id:u,className:"tooltip-message",multiline:!0})]}):null]})}},13371:(e,t,a)=>{"use strict";a.d(t,{m:()=>n});var r=a(12115),s=a(60333);
1let n=({provider:e,changeCard:t=!0,validateHolderName:a,setDisableErrorAnimation:n,setValidCardNumber:i,setValidExpDate:l,setValidCVC:o,setValidHolderName:c,holderName:d,getHolderNameFormatted:u})=>{let p=(0,r.useRef)(null),m=(0,r.useRef)(null);(0,r.useEffect)(()=>h,[]),(0,r.useEffect)(()=>{"safecharge"===e&&t?p&&p.current&&(p.current.addEventListener("change",g),p.current.addEventListener("focus",f),p.current.addEventListener("blur",b)):h()},[e,t]);let h=()=>{p&&p.current&&(p.current.removeEventListener("change",g),p.current.removeEventListener("focus",f),p.current.removeEventListener("blur",b)),s.SAFECHARGE_CARD_FIELDS.forEach(e=>{if(window[e]){try{window[e].destroy()}catch(e){}window[e]=null}})},g=e=>{a(e.target.value)&&x("holderName",!0)},f=()=>{x("holderName",!0)},b=e=>{if(""!==e.target.value){let t=a(e.target.value);t||n(!0),x("holderName",t)}},x=(e,t)=>{switch(e){case"SFCardNumber":i(t);break;case"cardExpiry":l(t);break;case"cardCvc":o(t);break;case"holderName":c(t)}};return{holderNameRef:p,onSafechargeFieldsCreated:()=>{s.SAFECHARGE_CARD_FIELDS.forEach(e=>{var t;return t=e,void(window[t].on("change",e=>{m.current||(m.current={}),m.current[t]=e,e.complete&&x(t,!0)}),window[t].on("focus",e=>{x(t,!0)}),window[t].on("blur",e=>{m.current&&m.current[t]&&!m.current[t].empty&&(e.complete||n(!0),x(t,e.complete))}))})},validateSafeChargeInputs:()=>{let e={};return e.validCardNumber=m.current&&m.current.SFCardNumber&&m.current.SFCardNumber.complete,e.validExpDate=m.current&&m.current.cardExpiry&&m.current.cardExpiry.complete,e.validCVC=m.current&&m.current.cardCvc&&m.current.cardCvc.complete,e.validHolderName=a(d),e.filledInputs=m.current&&m.current.SFCardNumber&&!m.current.SFCardNumber.empty&&m.current.cardExpiry&&!m.current.cardExpiry.empty&&m.current.cardCvc&&!m.current.cardCvc.empty&&u(d),e}}}},14091:(e,t,a)=>{"use strict";a.d(t,{default:()=>o});var r=a(95155),s=a(29157),n=a(40381),i=a(20023),l=a(93344);let o=()=>{let e=(0,l.m)("SellersPanelSection"),{startPageLoading:t}=(0,i.v)();return(0,r.jsx)("div",{className:"section smaller-padding-top",children:(0,r.jsx)("div",{className:"align-container",children:(0,r.jsx)("div",{className:"sellers-panel-form-login-wrapper",children:(0,r.jsx)(s.A,{onForgotPassword:()=>{},language:(0,n.Z)(),isLoginModal:!1,showTitle:!1,onPrepareLoginOrSignupFormFinished:e,skipPrepareLoginOrSignupFormLoading:!0,buttinIsOutsideInput:!1,disabledByDefault:!0,noDefaultFiles:!1,tooltip:null,onLoginSuccess:e=>(e.userinfo,void t())})})})})}},14899:(e,t,a)=>{"use strict";a.d(t,{x:()=>l});var r=a(12115),s=a(99967),n=a(37559),i=a(4474);let l=({buildData:e,logoKey:t})=>{let a=(0,s.useSelector)(({pCloudUser:e})=>e.logged),l=(0,s.useSelector)(({pCloudUser:e})=>e.userRegionId);return{logo:(0,r.useMemo)(()=>{let r={};if("pCloud"!==e.project)r={srcRetina:e.logo.srcRetina,src:e.logo.src,height:e.logo.height?e.logo.height:32,width:e.logo.width?e.logo.width:174,link:e.logo.link};else if(e.product.startsWith("pass-"))r={srcRetina:e.logoPass.srcRetina,src:e.logoPass.src,height:e.logoPass.height?e.logoPass.height:32,width:e.logoPass.width?e.logoPass.width:174,link:e.logoPass.link};else{let s=a&&parseInt(l)===n.EU_LOCATIONID,i=t||(s?e?.theme==="dark"?"logoEuDark":"logoEu":e?.theme==="dark"?"logoDark":"logo");r={srcRetina:e[i].srcRetina,src:e[i].src,height:e[i].height?e[i].height:32,width:e[i].width?e[i].width:122,link:e[i].link}}return e.logo.hasOwnProperty("track")&&(r.track=e.logo.track),r.project=e.project,r.alt=e.logo.alt,a&&"/"===r.link&&(r.link=i.v0),r},[e,a,l])}}},16442:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var r,s,n=a(95155),i=a(81322),l=a(99967),o=a(48233),c=a(12115);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let u=function(e){return c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:10,height:6,fill:"none"},e),r||(r=c.createElement("path",{fill:"#17BED0",d:"M.22 5.598a.76.76 0 0 0 1.063 0l3.722-3.637 3.72 3.637A.76.76 0 0 0 9.78 5.59a.727.727 0 0 0 .009-1.03L5.536.403a.76.76 0 0 0-1.063 0L.22 4.559a.726.726 0 0 0 0 1.04"})))};function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let m=function(e){return c.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:11,height:6,fill:"none"},e),s||(s=c.createElement("path",{fill:"#17BED0",d:"M.72.403a.76.76 0 0 1 1.063 0L5.505 4.04 9.225.403a.76.76 0 0 1 1.055.009.726.726 0 0 1 .009 1.03L6.036 5.598a.76.76 0 0 1-1.063 0L.72 1.442a.726.726 0 0 1 0-1.04"})))}
1,h=({title:e,shortDescription:t,longDescription:a,readMoreText:r={t_text:"Read more",t_default:"Read more"},images:s=[],showReadMore:d=!0,className:p=""})=>{let{t:h}=(0,i.useT)(),g=(0,l.useDispatch)(),[f,b]=(0,c.useState)(!1),x=e=>{g((0,o.GR)({modalId:"ImagePreviewModalSimple",imgSrc:e}))};return(0,n.jsxs)("div",{className:`imgs-with-modal-preview-container ${p}`.trim(),children:[e&&(0,n.jsx)("h2",{className:"imgs-with-modal-preview-title",children:h(e)}),t&&(0,n.jsx)("p",{className:"imgs-with-modal-preview-description",children:h(t)}),f&&a&&(0,n.jsx)("p",{className:"imgs-with-modal-preview-description",children:h(a)}),d&&a&&(0,n.jsxs)("button",{className:"imgs-with-modal-preview-read-more-toggle",onClick:()=>b(e=>!e),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),b(e=>!e))},type:"button","aria-expanded":f,"aria-label":f?"Show less content":"Show more content",children:[h(r)," ",f?(0,n.jsx)(u,{"aria-hidden":"true"}):(0,n.jsx)(m,{"aria-hidden":"true"})]}),s.length>0&&(0,n.jsx)("div",{className:"imgs-with-modal-preview-images-wrapper",role:"region","aria-label":"Image gallery",children:s.map((e,t)=>(0,n.jsx)("img",{className:"imgs-with-modal-preview-image-item",src:e.src,alt:e.alt||`Image ${t+1}`,onClick:()=>x(e.src),onKeyDown:t=>{var a;return a=e.src,void(("Enter"===t.key||" "===t.key)&&(t.preventDefault(),x(a)))},role:"button",tabIndex:0,"aria-label":`Open ${e.alt||`Image ${t+1}`} in modal preview`},t))})]})}},16607:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r,s,n=a(12115);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let l=function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:10,height:6,fill:"none"},e),r||(r=n.createElement("path",{fill:"#1F1F1F",d:"M5 3.607 8.33.277A.95.95 0 0 1 9.026 0 .945.945 0 0 1 10 .974q0 .42-.277.696L5.702 5.691a.9.9 0 0 1-.327.215q-.18.068-.375.068-.196 0-.375-.068a.9.9 0 0 1-.327-.215l-4.02-4.02A.95.95 0 0 1 0 .973.945.945 0 0 1 .974 0q.42 0 .696.277z"})),s||(s=n.createElement("path",{stroke:"#000",strokeOpacity:.2,strokeWidth:.025,d:"M9.987.974a.93.93 0 0 1-.273.687l-4.02 4.022a.9.9 0 0 1-.323.212A1 1 0 0 1 5 5.96a1 1 0 0 1-.371-.066.9.9 0 0 1-.322-.212L.287 1.66A.93.93 0 0 1 .012.974a.93.93 0 0 1 .96-.961q.415 0 .688.273L5 3.625 8.339.286a.93.93 0 0 1 .687-.273.93.93 0 0 1 .961.96Z"})))}},18385:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var r=a(95155),s=a(12115),n=a(74585),i=a(90929),l=a(41252),o=a(83489),c=a(26550),d=a(62683),u=a(90573),p=a(12978),m=a(92198);let h=({value:e,type:t="percent",color:a="cyan",theme:s,currency:n,disabled:l=!1,className:o="",template:c="corner",width:d,height:u,positionLeft:p,background:h,backgroundRetina:g})=>{let f=(0,m.detectIsRetina)();if(!e)return null;let b=l?"dark"===s?"#888888":"#cccccc":i.COLORS[a]?.mainColor||"#17bed0",x=i.COLORS[a]?.text||"#fff",_=`plans-discount-wrapper plans-discount-wrapper--${c} ${o}${l?" plans-discount-wrapper--disabled":""}${"dark"===s?" theme-dark":""}`;return(0,r.jsx)("div",{className:_,style:{"--discount-color":b,"--discount-text-color":x,"--discount-width":d||"initial","--discount-height":u||"initial","--discount-left":p||"initial","--discount-background":f&&g?g:h||"transparent"},children:(0,r.jsxs)("div",{className:`plans-discount-value-wrap ${o}-value-wrap`,children:["text"!==t?(0,r.jsx)("span",{className:"plans-discount-minus-sign",children:"-"}):null,"fixedamount"===t?(0,r.jsx)("span",{className:"plans-discount-currency",children:n}):null,(0,r.jsx)("span",{className:`plans-discount-value ${o}-value`,children:e}),"percent"===t?(0,r.jsx)("span",{className:"plans-discount-percent-sign",children:"%"}):null]})})};var g=a(81322),f=a(4474),b=a(67889),x=a.n(b);let _=({planId:e,planTexts:t,billingPeriod:a,isAddStoragePlan:m=!1,color:b,buttonColor:_,price:v,currency:y="$",buttonAction:w=()=>{},oldPrice:j,periodText:N,discount:P={},disabled:C=!1,disabledReason:k,borderRadius:S,newLabel:E,getTotalStorage:A,getTotalTraffic:T,maxNumberOfFeaturesToShow:I=2,featuresIdsToRender:M=[],showBestPriceByRandomGirl:L=!1,hideDiscountPercentage:O=!0,plansType:D="storage",plansVersion:R="1.0.0",showPlanDescriptionText:F=!1,showSaveLabel:$=!1,subtitlePosition:B="bottom",hideStartFreeTrialButton:U=!0,hasPlanWithOldPrice:q=!1,hideActionButton:z=!1,textAfterPrice:H="",checkoutHeader:W=null})=>{let V,{t:Y}=(0,g.useT)(),G=(0,s.useMemo)(()=>(0,l.getPlanBoxTexts)(),[]),X=(0,s.useMemo)(()=>(0,l.getPlanBoxPeriodTexts)(),[]),K=(0,s.useMemo)(()=>(0,l.getNotEligibleTexts)(),[]),Q=(0,s.useMemo)(()=>(0,l.getNotEligibleTextsForGetPlansApi)(),[]),Z=t?{...G[e],...t}
1:G[e],J=m?"add":a,ee={title:Z.title?Z.title[J]||Z.title.default:"",titleShort:(m?Z?.title?.addMobile:Z?.title?.mobile)||"",features:Z.features?Z.features[J]||Z.features.default:[],button:(Z.buttonText?Z.buttonText[J]||Z.buttonText.default:"").toUpperCase(),subtitle:Z.subtitle||"",description:Z.description||""},et=window.devicePixelRatio>1,ea=t=>{C?t.preventDefault():w(e,a)},er={"--box-border-radius":S?`${S}px`:"24px"},es={"--box-border-radius":S?`${S}px`:"24px","--plan-color":i.COLORS[b]?.mainColor||"#17bed0"},en=`${(0,c.X)("plans-box-outer",D,R)} plan-box-wrapper${C?" plans-box-outer--disabled":""}${L?" plans-box-outer--show-best-price":""}`,ei=`${(0,c.X)("plans-box-wrapper",D,R)}${E?" plans-box-wrapper--new-label":""}${C?" plans-box-wrapper--disabled":""}${L?" plans-box-wrapper--show-best-price":""}`,el=`${(0,c.X)("plans-box-features-wrapper",D,R)} box-feature`;return(0,r.jsx)("div",{className:en,onClick:U?ea:null,style:er,children:(0,r.jsxs)("div",{className:ei,style:es,children:[(()=>{let{value:e,type:t}=P;return e&&t&&!O?(0,r.jsx)(h,{value:e,type:t,color:b,disabled:C,currency:y,className:"box-discount"}):null})(),(0,r.jsxs)("div",{className:"plans-box-inner planbox-info-wrapper",children:[W?(0,r.jsxs)("div",{className:"plans-box-checkout-header",children:[W.title?(0,r.jsx)("div",{className:"plans-box-checkout-header-title",children:W.title}):null,W.ctaLink?(0,r.jsx)("div",{className:"plans-box-checkout-header-link",children:(0,r.jsx)(x(),{onClick:e=>W.ctaLink?.disabled?e.preventDefault():null,className:"link",href:W.ctaLink.href,children:W.ctaLink.text})}):null]}):null,(0,r.jsx)(d.A,{className:"plan-box-header",plansType:D,plansVersion:R,title:ee.title,subtitle:ee.subtitle||X[a],subtitlePosition:B,color:b,disabled:C,label:E?Y("new"):""}),(0,r.jsxs)("div",{children:[(0,r.jsx)(u.A,{price:"free"===a?"0.00":v,oldPrice:j,currency:y,periodText:N,disabled:C,showSaveLabel:$,color:b,plansType:D,plansVersion:R,hasPlanWithOldPrice:q,textAfterPrice:H,template:"old-price-above"}),z&&U?null:(0,r.jsxs)("div",{className:"plans-cta-btns-wrapper",children:[z?null:(0,r.jsx)(o.ButtonWithIcon,{size:"big",color:_||b,className:"plan-action-button",disabled:C,disabledColor:"#CCCCCC",height:47,"data-tooltip-content":C&&k?l.notEligibleTextsForGetPlansApiByType[D]&&l.notEligibleTextsForGetPlansApiByType[D][k]||Q[k]||K[k]||K.plan_upgrade_restrictions:null,loading:!1,text:ee.button,icon:"arrow",href:"#",onClick:U?()=>!1:ea,borderRadius:"24","data-testid":`plans_${l.testPlanNames[e]}${"free"===a&&"passwords"===D?"_free":""}`,"data-tooltip-id":`plans_${l.testPlanNames[e]}${"free"===a&&"passwords"===D?"_free":""}`}),U?null:(0,r.jsx)(o.ButtonWithIcon,{size:"big",color:_||b,className:"plan-action-button secondary",disabled:C,disabledColor:"#CCCCCC",height:47,loading:!1,text:Y("start_free_trial","START FREE TRIAL"),icon:"arrow",href:"crypto"===D?f.v0+"#page=cryptoset":"#",onClick:"crypto"===D?null:()=>!1,borderRadius:"24","data-testid":`free_trial_plans_${l.testPlanNames[e]}`,"data-tooltip-id":`free_trial_plans_${l.testPlanNames[e]}`})]})]})]}),C&&k?(0,r.jsx)(n.m_,{id:`plans_${l.testPlanNames[e]}${"free"===a&&"passwords"===D?"_free":""}`,className:"tooltip-message tooltip",multiline:!0}):null,F&&""!=ee.description?(0,r.jsx)("div",{className:`plans-plan-description${C&&k?" plans-plan-description--disabled":""}`,children:ee.description}):null,I>0||-1===I?(0,r.jsx)("div",{className:el,children:(V=[],(V=M&&M.length>0?M.map(e=>ee.features.find(({id:t})=>t==e)):-1!==I?ee.features.slice(0,I):ee.features).map(({feature:t,tooltip:a,label:s},n)=>(-1!==t.indexOf("%amount%")&&(t=t.replace("%amount%",A(e))),-1!==t.indexOf("%traffic_amount%")&&(t=t.replace("%traffic_amount%",T(e))),(0,r.jsx)(p.A,{feature:t,tooltip:a,label:s,lastChild:n===V.length-1,disabled:C,showCheck:!0,color:b,plansType:D,plansVersion:R,className:"plans-feature"},n))))}):null,L&&(0,r.jsxs)("div",{className:`${(0,c.X)("plans-arrow-box-wrapper",D,R)} arrow_box random_girl`,children:[(0,r.jsxs)("span",{className:"plans-arrow-box-inner-wrapper",children:[(0,r.jsx)("img",{alt:"Best plan",src:et?(IMG_PATH||"")+
1"[email protected]":(IMG_PATH||"")+"best-plan.png",width:"32"}),(0,r.jsx)("span",{className:"plans-arrow-box-best-valued best_valued",children:Y("landing_lifetime_bestvalued")})]}),(0,r.jsx)("img",{alt:"Girl",src:et?(IMG_PATH||"")+
1"[email protected]":(IMG_PATH||"")
1+"girl.png",width:"143"})]})]})},e+a[0])}},19976:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(95155);a(12115);var s=a(38161),n=a(50185);a(99620);let i=({logo:e})=>(0,r.jsxs)("div",{className:"header-logo",style:{"--logo-width":`${e.width}px`,"--logo-height":`${e.height}px`},children:[(0,r.jsx)(n.default,{className:"header-logo__link",onClick:()=>{var t;return e.hasOwnProperty("track")?(t=e.track,void("u">typeof pageTitle&&(0,s.sendPassAnalyticsEvent)({label:pageTitle,category:t,action:"Click"}))):null},href:e.link,children:"pCloud Secure Cloud Storage"}),(0,r.jsx)("img",{className:"header-logo__img",alt:e.alt,src:e.src,srcSet:`${e.srcRetina} 2x`,fetchPriority:"high"})]})},21088:(e,t,a)=>{"use strict";a.d(t,{default:()=>y});var r,s=a(95155),n=a(12115),i=a(33307),l=a(81322),o=a(87694),c=a(12035),d=a(67889),u=a.n(d);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let m=function(e){return n.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},e),r||(r=n.createElement("g",{id:"trash_svg__trash",transform:"translate(-1182 -4920)"},n.createElement("circle",{id:"trash_svg__Ellipse_1163",cx:32,cy:32,r:32,fill:"#494F50","data-name":"Ellipse 1163",transform:"translate(1182 4920)"}),n.createElement("g",{id:"trash_svg__Regular-S",transform:"translate(2223.199 5376.9)"},n.createElement("path",{id:"trash_svg__Path_8095",fill:"#fff",d:"M-1016.043-408.9h13.974a3.04 3.04 0 0 0 2.159-.72 2.87 2.87 0 0 0 .833-2.121l.871-20.866h2.045a1.15 1.15 0 0 0 .871-.379 1.3 1.3 0 0 0 .379-.871 1.15 1.15 0 0 0-.379-.871 1.1 1.1 0 0 0-.871-.379h-25.827a1.07 1.07 0 0 0-.833.379 1.15 1.15 0 0 0-.379.871 1.15 1.15 0 0 0 .379.871 1.13 1.13 0 0 0 .833.379h2.083l.871 20.866a3 3 0 0 0 .8 2.121 3.26 3.26 0 0 0 2.191.72m2.348-4.166a.94.94 0 0 1-.72-.265 1.14 1.14 0 0 1-.3-.72l-.417-15.527a.86.86 0 0 1 .265-.682 1.03 1.03 0 0 1 .757-.265 1 1 0 0 1 .72.265.97.97 0 0 1 .3.72l.417 15.527a.86.86 0 0 1-.265.682 1.22 1.22 0 0 1-.757.265m4.62 0a1.03 1.03 0 0 1-.757-.265.95.95 0 0 1-.3-.682v-15.527a.89.89 0 0 1 .3-.682 1.03 1.03 0 0 1 .757-.265 1.03 1.03 0 0 1 .757.265.95.95 0 0 1 .3.682v15.527a.89.89 0 0 1-.3.682 1.03 1.03 0 0 1-.757.265m4.62 0a1.03 1.03 0 0 1-.757-.265.91.91 0 0 1-.265-.682l.417-15.527a.89.89 0 0 1 .3-.682.94.94 0 0 1 .72-.265 1.03 1.03 0 0 1 .757.265.91.91 0 0 1 .265.682l-.417 15.527a.97.97 0 0 1-.3.72 1.1 1.1 0 0 1-.719.227Zm-11.285-21.548h3.03V-437a1.22 1.22 0 0 1 .3-.8 1.18 1.18 0 0 1 .833-.3h5a1.25 1.25 0 0 1 .833.3 1.09 1.09 0 0 1 .3.8v2.386h2.992v-2.575a3.57 3.57 0 0 0-1.06-2.727 3.97 3.97 0 0 0-2.878-.985h-5.415a3.98 3.98 0 0 0-2.84.985 3.57 3.57 0 0 0-1.06 2.727v2.575Z","data-name":"Path 8095"})))))};var h=a(13977),g=a(20023),f=a(93344),b=a(2356),x=a(99967),_=a(32356),v=a(17744);let y=({codes:e,user:t})=>{let{t:a}=(0,l.useT)(),[r,d]=(0,n.useState)(new Set),[p,y]=(0,n.useState)(new Set),[w,j]=(0,n.useState)(e),N=(0,n.useRef)({}),P=(0,n.useRef)(!1),C=(0,f.m)("SellersPanelSection"),{stopPageLoading:k,startPageLoading:S}=(0,g.v)();(0,n.useEffect)(()=>()=>{Object.values(N.current).forEach(clearTimeout)},[]);let E=(0,x.useDispatch)();(0,n.useEffect)(()=>{b.A.setDispatch(E)},[E]);let A=(0,n.useRef)(!0);(0,n.useEffect)(()=>{P.current?((0,i.PA)(".sellers-panel-table tbody tr:last-child",100,500),j(e),k()):A.current&&C?.(),A.current=!1},[e]);let T=()=>{b.A.open("SellersGenerateLinkModal",{user:t,onSuccess:()=>{S(),(0,_.$)(["sellers-codes"]),P.current=!0}})},I=e=>{N.current[e]&&(clearTimeout(N.current[e]),delete N.current[e]),y(t=>{let a=new Set(t);return a.delete(e),a}),d(t=>{let a=new Set(t);return a.delete(e),a})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"section header-section smaller-padding-bottom",children:(0,s.jsxs)("div",{className:"align-container",children:[(0,s.jsx)("div",{className:"sellers-panel-cta-btn-wrapper",children:(0,s.jsx)(c.default,{ctaButtons:[{link:"#",text:{t_text:"Generate link",t_default:"Generate link"},onClick:T}]})}),(0,s.jsx)("div",{className:"table-wrapper",children:(0,s.jsxs)("table",{className:"sellers-panel-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"#"}),(0,s.jsx)("th",{children:a("Code")}),(0,s.jsx)("th",{children:a("Members")}),(0,s.jsx)("th",{children:a("Duration")}),(0,s.jsx)("th",{children:a("E-mail")}),(0,s.jsx)("th",{children:a("Used")}),(0,s.jsx)("th",{children:a("Created")}),(0,s.jsx)("th",{className:"align-center",children:a("Delete")})]})}),(0,s.jsx)("tbody",{children:w.map((e,n)=>{let l=Math.round(e.duration/86400/30);return(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{"data-label":"#",children:n+1}),(0,s.jsx)("td",{"data-label":a("Code"),children:(0,s.jsx)(u(),{href:`/business-registration?code=${e.code}`,target:"_blank",children:e.code})}),(0,s.jsx)("td",{"data-label":a("Members"),children:e.members}),(0,s.jsxs)("td",{"data-label":a("Duration"),children:[l," ",1===l?a("month"):a("months")]}),(0,s.jsx)("td",{"data-label":a("E-mail"),children:e.mail}),(0,s.jsx)("td",{"data-label":a("Used"),children:e.used?a("Yes"):a("No")}
1),(0,s.jsx)("td",{"data-label":a("Created"),className:"date-column",children:(0,i.Wg)(e.created,!0," "," ",a)}),(0,s.jsx)("td",{"data-label":a("Delete"),className:"action-button",children:p.has(e.code)?(0,s.jsx)("div",{className:"delete-spinner"}):(0,s.jsx)("button",{onClick:()=>(e=>{if(r.has(e))return;d(t=>new Set(t).add(e)),N.current[e]=setTimeout(()=>{y(t=>new Set(t).add(e))},100);let s={code:e,auth:t.auth};(0,h.default)("seller_codedelete",s,async t=>{0===t.result?(j(t=>t.filter(t=>t.code!==e)),await (0,_.$)(["sellers-codes"]),P.current=!1,(0,v.toastSuccess)(a("Link deleted successfully"))):(0,v.toastError)(t.error||a("Failed to delete link")),I(e)},{errorCallback:t=>{(0,v.toastError)(t?.error||a("An error occurred while deleting the link")),I(e)},onXhrError:(t,r,s)=>{(0,v.toastError)(a("Network error. Please check your connection and try again.")),I(e)}})})(e.code),type:"button",disabled:r.has(e.code),children:(0,s.jsx)(m,{})})})]},e.id||n)})})]})})]})}),(0,s.jsx)(o.default,{title:"",ctaButtons:[{link:"#",text:{t_text:"Generate link",t_default:"Generate link"},onClick:T}],sectionClassName:"smaller-padding-top"})]})}},21709:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r,s=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let i=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:18,height:22},e),r||(r=s.createElement("path",{fill:"#84c925",d:"M9 0 0 4v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V4zM7.17 15.79 3.5 11.97l1.29-1.35 2.37 2.46 6.04-6.3 1.29 1.36z"})))}},22285:(e,t,a)=>{"use strict";a.d(t,{default:()=>_});var r,s,n,i=a(95155),l=a(38739),o=a(26550),c=a(63915),d=a(81322),u=a(37500),p=a(40381),m=a(12115);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let g=function(e){return m.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:37,height:37,fill:"none"},e),r||(r=m.createElement("path",{fill:"url(#gogo-medal_svg__paint0_linear_150_54)",d:"M18.489 13.748a8.65 8.65 0 0 0-6.233 2.648 9.1 9.1 0 0 0-2.578 6.394c0 2.416.913 4.683 2.578 6.394a8.64 8.64 0 0 0 6.232 2.648c2.36 0 4.568-.937 6.233-2.648 3.434-3.527 3.434-9.262 0-12.788a8.63 8.63 0 0 0-6.233-2.648m.705 4.36.96 1.988a.8.8 0 0 0 .59.44l2.138.323c.636.092.902.902.428 1.364l-1.48 1.48a.84.84 0 0 0-.196.844l.682 1.978c.23.659-.417 1.283-1.052 1.006l-2.475-1.11a.74.74 0 0 0-.624 0l-2.475 1.11c-.624.277-1.283-.347-1.052-1.006l.682-1.978a.81.81 0 0 0-.196-.844l-1.48-1.48c-.463-.462-.208-1.271.428-1.364l2.139-.324a.77.77 0 0 0 .59-.44l.959-1.988c.312-.601 1.145-.601 1.434 0"})),s||(s=m.createElement("path",{fill:"#707070",d:"M8.232 2.313A1.31 1.31 0 0 0 6.937 3.63v6.694c0 .463.245.902.642 1.133l3.569 2.114a11.99 11.99 0 0 0-4.269 9.218c0 6.57 5.197 11.898 11.609 11.898 6.411 0 11.609-5.327 11.609-11.898a11.99 11.99 0 0 0-4.224-9.18l3.561-2.152c.387-.23.628-.67.628-1.133V3.631c0-.729-.571-1.318-1.269-1.318zm16.8 1.156v9.493a11.5 11.5 0 0 0-3.018-1.512V3.47zm-9.955 0v7.944a11.4 11.4 0 0 0-3.007 1.46V3.47zm3.422 29.785a9.99 9.99 0 0 1-7.215-3.064 10.52 10.52 0 0 1-2.994-7.4c0-2.798 1.063-5.423 2.994-7.4a10.047 10.047 0 0 1 14.442 0c3.977 4.081 3.977 10.718 0 14.8-1.943 1.977-4.51 3.064-7.227 3.064"})),n||(n=m.createElement("defs",null,m.createElement("linearGradient",{id:"gogo-medal_svg__paint0_linear_150_54",x1:18.487,x2:18.487,y1:13.748,y2:31.832,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FF4824"}),m.createElement("stop",{offset:1,stopColor:"#D72C0B"})))))};var f=a(78699),b=a.n(f),x=a(33307);let _=({plansType:e="storage",plansVersion:t="1.0.0"})=>{let{t:a}=(0,d.useT)(),{ipData:r}=(0,u.Y)(),s=(0,p.Z)();return"jp"===("string"==typeof r?.country?r.country.toLowerCase():"")&&"en"===s||"ja"===s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(0,o.X)("plans-payment-partner",e,t),children:[(0,i.jsx)("div",{className:(0,o.X)("plans-gogo-logo",e,t)}),(0,i.jsx)("div",{className:"payment-partner-text-container",children:(0,i.jsx)(l.default,{text:a("japanese_partners"),converters:[c.linkConverter]})})]}),(0,i.jsxs)("div",{className:(0,o.X)("plans-japanese-certification",e,t),children:[(0,i.jsx)(g,{}),(0,i.jsx)("p",{children:b()(a("japanese_certification_jury_prize"),/(%link%)/g,(e,t)=>(0,i.jsx)("span",{className:"link",onClick:()=>(0,x.PA)(".japanese-certificates-section"),children:a("japanese_certification_jury_prize_link")},t))})]})]}):null}},22409:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(12115),s=a(92198);let n={width:0,height:0,bodyWidth:0,bodyHeight:0};
1function i(){let{innerWidth:e,innerHeight:t}=window,{offsetWidth:a,offsetHeight:r}=document.body;return{width:e,height:t,bodyWidth:a,bodyHeight:r}}function l(){let[e,t]=(0,r.useState)(n);return(0,r.useEffect)(()=>{t(i());let e=(0,s.debounce)(()=>{t(i())});return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}},24154:(e,t,a)=>{"use strict";a.d(t,{default:()=>L});var r,s,n=a(95155),i=a(12115),l=a(38739),o=a(63915),c=a(81322),d=a(11595),u=a(12035),p=a(4474);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let h=function(e){return i.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 52 52"},e),r||(r=i.createElement("path",{fill:"url(#success-icon-v4_svg__paint0_linear_901_667)",d:"M25.6 51.2C11.46 51.2 0 39.74 0 25.6S11.46 0 25.6 0s25.6 11.46 25.6 25.6-11.46 25.6-25.6 25.6m0-48C13.23 3.2 3.2 13.23 3.2 25.6S13.23 48 25.6 48 48 37.97 48 25.6 37.97 3.2 25.6 3.2m8.31 13.46c.52-.71 1.52-.87 2.23-.35s.87 1.52.35 2.23l-12.8 17.6c-.28.38-.7.62-1.17.65s-.93-.13-1.26-.46l-6.4-6.4c-.62-.62-.62-1.64 0-2.26s1.64-.62 2.26 0l5.07 5.07 11.7-16.08z"})),s||(s=i.createElement("defs",null,i.createElement("linearGradient",{id:"success-icon-v4_svg__paint0_linear_901_667",x1:25.6,x2:25.591,y1:0,y2:64,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#13C4D7"}),i.createElement("stop",{offset:.145,stopColor:"#17BED0"}),i.createElement("stop",{offset:1,stopColor:"#17B1D0"})))))};var g=a(13977);let f={2012:{t_text:"promo_code_error_2012",t_default:"This promo code doesnât seem to work. Try again or check for typos."},2299:{t_text:"promo_code_error_2299",t_default:"This code is not valid or it has already been used."},2014:{t_text:"promo_code_error_2014",t_default:"Weâve sent you an email. Confirm it to activate your promo code."},2074:{t_text:"promo_code_error_2074",t_default:"This promo code has expired. Try a different one."},2077:{t_text:"promo_code_error_2077",t_default:"Looks like youâre already part of a business account, so this promo canât be used."},2092:{t_text:"promo_code_error_2092",t_default:"This code has been used before. Try a different one."},2109:{t_text:"promo_code_error_2109",t_default:"Youâre already enjoying Premium, so this code doesnât apply."},2219:{t_text:"promo_code_error_2219",t_default:"We couldnât apply this code. It doesnât add extra storage on free accounts."},2362:{t_text:"promo_code_error_2362",t_default:"This promotion isnât available in your region."},2368:{t_text:"promo_code_error_2368",t_default:"You can't add more storage to your current plan with this voucher."}},b={DROPBOX2PCLOUD:{guest:{title:{t_text:"promo_title_brand_users",t_default:"Special treat for %brandName% users.",t_params:{brandName:"Dropbox"}},subtitle:{t_text:"promo_subtitle_brand_register",t_default:"Sign up now and enjoy %monthts% months of Premium 500 GB for FREE.",t_params:{months:3}}},user:{title:{t_text:"promo_title_brand_users",t_default:"Special treat for %brandName% users.",t_params:{brandName:"Dropbox"}},subtitle:{t_text:"promo_subtitle_brand",t_default:"Activate your gift and enjoy %monthts% months of Premium 500 GB for FREE.",t_params:{months:3}}}},HUBIC2PCLOUD:{guest:{title:{t_text:"promo_title_brand_users",t_default:"Special treat for %brandName% users.",t_params:{brandName:"hubiC"}},subtitle:{t_text:"promo_subtitle_brand_register",t_default:"Sign up now and enjoy %monthts% months of Premium 500 GB for FREE.",t_params:{months:3}}},user:{title:{t_text:"promo_title_brand_users",t_default:"Special treat for %brandName% users.",t_params:{brandName:"hubiC"}},subtitle:{t_text:"promo_subtitle_brand",t_default:"Activate your gift and enjoy %monthts% months of Premium 500 GB for FREE.",t_params:{months:3}}}},APPO:{guest:{title:{t_text:"promo_title_brand_members",t_default:"Special treat for %brandName% members.",t_params:{brandName:"APPO"}},subtitle:{t_text:"promo_subtitle_brand_register",t_default:"Sign up now and enjoy %monthts% months of Premium 500 GB for FREE.",t_params:{months:3}}},user:{title:{t_text:"promo_title_brand_members",t_default:"Special treat for %brandName% members.",t_params:{brandName:"APPO"}},subtitle:{t_text:"promo_subtitle_brand",t_default:"Activate your gift and enjoy %monthts% months of Premium 500 GB for FREE.",t_params:{months:3}}}},BIRTHDAY4U:{guest:{title:{t_text:"promo_title_birthday",t_default:"Celebrate with a gift from us."},subtitle:{t_text:"promo_subtitle_birthday_guest",t_default:"Sign up and enjoy 100 GB to store your birthday memories and more for the next %monthts% months.",t_params:{months:6}}},user:{title:{t_text:"promo_title_birthday",t_default:"Celebrate with a gift from us."},subtitle:{t_text:"promo_subtitle_birthday_user",t_default:"Enjoy 100 GB to store your birthday memories and more for the next %monthts% months.",t_params:{months:6}}}},PCLOUDMUSIC:{guest:{title:{t_text:"promo_title_code_guest",t_default:"Sign up for free, add the promo code %url_promo%, and unlock %months% months instantly.",t_params:{months:"3"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}},user:{title:{t_text:"promo_title_code_user",t_default:"Activate your promo code %url_promo% and unlock %months% months instantly.",t_params:{months:"3"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}}},BDAY3MONTHS:{guest:{title:{t_text:"promo_title_code_guest",t_default:"Sign up for free, add the promo code %url_promo%, and unlock %months% months instantly.",t_params:{months:"3"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}},user:{title:{t_text:"promo_title_code_user",t_default:"Activate your promo code %url_promo% and unlock %months% months instantly.",t_params:{months:"3"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}}},BDAY2025:{guest:{title:{t_text:"promo_title_code_guest",t_default:"Sign up for free, add the promo code %url_promo%, and unlock %months% months instantly.",t_params:{months:"3"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}},user:{title:{t_text:"promo_title_code_user",t_default:"Activate your promo code %url_promo% and unlock %months% months instantly.",t_params:{months:"3"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}}},PM6MONTHS:{guest:{title:{t_text:"promo_title_code_guest",t_default:"Sign up for free, add the promo code %url_promo%, and unlock %months% months instantly.",t_params:{months:"6"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}},user:{title:{t_text:"promo_title_code_user",t_default:"Activate your promo code %url_promo% and unlock %months% months instantly.",t_params:{months:"6"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}}},INT6MONTHS:{guest:{title:{t_text:"promo_title_code_guest",t_default:"Sign up for free, add the promo code %url_promo%, and unlock %months% months instantly.",t_params:{months:"6"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}},user:{title:{t_text:"promo_title_code_user",t_default:"Activate your promo code %url_promo% and unlock %months% months instantly.",t_params:{months:"6"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}}},LFS6MONTHS:{guest:{title:{t_text:"promo_title_code_guest",t_default:"Sign up for free, add the promo code %url_promo%, and unlock %months% months instantly.",t_params:{months:"6"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}},user:{title:{t_text:"promo_title_code_user",t_default:"Activate your promo code %url_promo% and unlock %months% months instantly.",t_params:{months:"6"}},subtitle:{t_text:"promo_title_code_subtitle",t_default:"<i>Itâs a one time coupon, not a subscription.</i>"}}},defaultWithCode:{guest:{title:{t_text:"promo_title_code_custom",t_default:"Got a promo code?<br />Lucky you!"},subtitle:{t_text:"promo_code_subtitle_guest",t_default:"Sign up for free and add the promo code %url_promo% to activate it instantly."}},user:{title:{t_text:"promo_title_code_custom",t_default:"Got a promo code?<br />Lucky you!"},subtitle:{t_text:"promo_code_subtitle_user",t_default:"Activate your promo code %url_promo% right away."}}},default:{guest:{title:{t_text:"promo_title_code_custom",t_default:"Got a promo code?<br />Lucky you!"},subtitle:{t_text:"promo_code_subtitle_guest_custom",t_default:"Sign up for free and enter your promo code to activate it instantly."}},user:{title:{t_text:"promo_title_code_custom",t_default:"Got a promo code?<br />Lucky you!"}}}},x={defaultWithCode:{guest:{title:{t_text:"reseller_code_title_guest",t_default:"Get your Premium Upgrade now"},subtitle:{t_text:"reseller_code_by_url_subtitle_guest",t_default:"Log in or sign up, and activate your <b>%product%</b> for one <b>%period%</b> instantly."},subtitle_lifetime:{t_text:"reseller_code_by_url_subtitle_guest_lifetime",t_default:"Log in or sign up, and activate your <b>%product% %period%</b> instantly."}},user:{title:{t_text:"reseller_code_by_url_title_user",t_default:"Activate your pCloud Premium account"},subtitle:{t_text:"reseller_code_by_url_subtitle_user",t_default:"Get <b>%product%</b> for one <b>%period%</b> for your account <b>%email%</b> right away."},subtitle_lifetime:{t_text:"reseller_code_by_url_subtitle_user_lifetime",t_default:"Get <b>%product% %period%</b> for your account <b>%email%</b> right away."}}},default:{guest:{title:{t_text:"reseller_code_title_guest",t_default:"Get your Premium Upgrade now"},subtitle:{t_text:"reseller_code_subtitle_guest",t_default:"Log in or sign up, and activate your voucher co
1de."}},user:{title:{t_text:"reseller_code_title_user",t_default:"Activate your voucher code"},subtitle:{t_text:"reseller_code_subtitle_user",t_default:"This code will upgrade the account for <b>%email%</b>. Your premium features start right away."}}}},_={month:{t_text:"month",t_default:"month"},year:{t_text:"year",t_default:"year"},lifetime:{t_text:"Lifetime",t_default:"Lifetime"}},v=(e,t)=>"storage"===e.type?t("promo_code_success_gb","Enjoy your upgrade. You now have <b>%recieved_gb%</b> for your files.",{recieved_gb:(e=>{let t=["Bytes","KB","MB","GB","TB"];if(0==e)return null;let a=parseInt(Math.floor(Math.log(e)/Math.log(1024)));return 0==a?e+" "+t[a]:(e/Math.pow(1024,a)).toFixed(0)+" "+t[a]})(e.quota)}):t("promo_code_success_crypto","Enjoy %crypto_duration% days of secure, private file protection with pCloud Encryption.",{crypto_duration:Math.ceil(Math.ceil((new Date(e.cryptoexpires).getTime()/1e3-Math.round((new Date).getTime()/1e3))/3600)/24)}),y=(e,t)=>{let a=f[e?.result];return a?t(a):e?.error||t("error_general","An error occurred. Please try again.")};var w=a(32356),j=a(46373),N=a(33307),P=a(95925);let C=({title:e,subtitle:t,user:a,codeUrlParam:r,codeUrlError:s,initialSuccess:m={message:"",title:"",showCTAButton:!1},promoCodeType:f})=>{let{t:b}=(0,c.useT)(),[x,C]=(0,i.useState)(s||""),[k,S]=(0,i.useState)(m?.message||""),[E,A]=(0,i.useState)(m?.title||""),[T,I]=(0,i.useState)(m?.showCTAButton||!1),M=(0,i.useRef)(!1),[L,O]=(0,i.useState)(M.current),[D,R]=(0,i.useState)(!1),[F,$]=(0,i.useState)(r||""),{activateCode:B}="reseller"===f?(({user:e,loadingCodeActivationRef:t,setSuccessMessage:a,setSuccessMessageTitle:r,setShowCTAButtonOnSuccessMessage:s,setLoadingCodeActivation:n,setErrorMessage:i})=>{let{t:l}=(0,c.useT)(),o=e=>{i(y(e,l)),t.current=!1,n(!1)};return{activateCode:c=>{(0,g.default)("codeinfo",{auth:e.auth,code:c},d=>{(0,g.default)("usecode",{auth:e.auth,code:c,userid:e.userid,email:e.email,locationid:(0,N.Hs)("locationid")},async i=>{await (0,w.$)([(0,j.F)(e.auth)]),r(l("Congratulations!","Congratulations!"));
1let o=l(void 0!==_[i.period]?_[i.period]:i.period),c=(0,P.t6)(i.productid,l);"lifetime"===i.period?a(l("reseller_code_for_lifetime_product_success_message","Enjoy your upgrade. You have successfully activated <b>%product% %period%</b>.",{product:c,period:o})):a(l("reseller_code_success_message","Enjoy your upgrade. You have successfully activated <b>%product%</b> for one <b>%period%</b>.",{product:c,period:o})),s(!0),t.current=!1,n(!1)},{apiServer:"partner.pcloud.com",apiScheme:"https",errorCallback:e=>o(e),onXhrError:(e,a,r)=>{i(l("Please check your Internet connection.")),t.current=!1,n(!1)}})},{apiServer:"partner.pcloud.com",apiScheme:"https",forceFresh:!0,errorCallback:e=>o(e),onXhrError:(e,a,r)=>{i(l("Please check your Internet connection.")),t.current=!1,n(!1)}})}}})({user:a,loadingCodeActivationRef:M,setSuccessMessage:S,setSuccessMessageTitle:A,setShowCTAButtonOnSuccessMessage:I,setLoadingCodeActivation:O,setErrorMessage:C}):(({user:e,loadingCodeActivationRef:t,setSuccessMessage:a,setSuccessMessageTitle:r,setShowCTAButtonOnSuccessMessage:s,setLoadingCodeActivation:n,setErrorMessage:i})=>{let{t:l}=(0,c.useT)(),o=e=>{2014===e.result?(a(l("promo_code_error_title_2014","Youâve got mail")),a(l("promo_code_error_2014","Weâve sent you an email. Confirm it to activate your promo code.")),s(!1)):i(y(e,l)),t.current=!1,n(!1)};return{activateCode:c=>{(0,g.default)("getbonuscodeinfo",{auth:e.auth,code:c},d=>{let u=void 0!==d.codedata&&void 0!==d.codedata.planid&&parseInt(d.codedata.planid);!1===u||u>=130&&u<=139?o({result:2012}):(0,g.default)("usebonuscode",{auth:e.auth,code:c},async i=>{await (0,w.$)([(0,j.F)(e.auth)]),r(l("Congratulations!","Congratulations!")),a(v(i,l)),s(!0),t.current=!1,n(!1)},{errorCallback:e=>o(e),onXhrError:(e,a,r)=>{i(l("Please check your Internet connection.")),t.current=!1,n(!1)}})},{errorCallback:e=>o(e),onXhrError:(e,a,r)=>{i(l("Please check your Internet connection.")),t.current=!1,n(!1)}})}}})({user:a,loadingCodeActivationRef:M,setSuccessMessage:S,setSuccessMessageTitle:A,setShowCTAButtonOnSuccessMessage:I,setLoadingCodeActivation:O,setErrorMessage:C}),U=()=>{if(!F||""===F.trim()){$(""),R(!0);return}M.current||(C(""),R(!1),M.current=!0,O(!0),B(F))};return k?(0,n.jsxs)("div",{className:"promo-code-form-wrapper",children:[(0,n.jsxs)("div",{className:"promo-code-texts-wrapper",children:[(0,n.jsx)("div",{className:"promo-code-success-icon-wrapper",children:(0,n.jsx)(h,{})}),(0,n.jsx)("h1",{className:"promo-code-title title text-gradient",children:E}),(0,n.jsx)("div",{className:"promo-code-subtitle text-gradient",children:(0,n.jsx)(l.default,{text:b(k),converters:[o.linkConverter,o.boldConverter,o.brTagConverter]})})]}),T?(0,n.jsx)("div",{className:"promo-code-cta-button-wrapper",children:(0,n.jsx)(u.default,{containerMinWidth:"100%",ctaButtons:[{link:p.v0,text:{t_text:"go_to_my_account",t_default:"GO TO MY ACCOUNT"},className:"rounded-button-v2",minWidth:"100%"}]})}):null]}):(0,n.jsxs)("div",{className:"promo-code-form-wrapper",children:[(0,n.jsxs)("div",{className:"promo-header-texts",children:[(0,n.jsx)("h1",{className:"promo-code-title title text-gradient",children:(0,n.jsx)(l.default,{text:b(e),converters:[o.brTagConverter]})}),t?(0,n.jsx)("h2",{className:"promo-code-subtitle subtitle text-gradient",children:(0,n.jsx)(l.default,{text:b(t),converters:[o.boldConverter,o.italicConverter,o.brTagConverter]})}):null]}),(0,n.jsx)("form",{className:"promo-code-form",action:"submit",onSubmit:U,children:(0,n.jsxs)("div",{className:"input-column-wrapper",children:[!r||r&&x?(0,n.jsx)("div",{className:"input-row-wrapper",children:(0,n.jsx)("input",{placeholder:"reseller"===f?b("Your code","Your code"):b("promo_code_placeholder","Enter promo code"),className:"input-text",name:"code",disabled:L,value:F,type:"text",autoComplete:"off",autoCapitalize:"none",autoCorrect:"off",spellCheck:"false",onChange:e=>$(e.target.value),"data-invalid":D})}):null,(0,n.jsxs)("div",{className:"submit-row-wrapper",children:[x&&(0,n.jsx)(d.A,{trigger:!!x,type:"slide-up",timeout:250,disableInitialAnimation:!1,children:(0,n.jsx)("div",{className:"business-registration-client-error-wrapper",children:(0,n.jsx)("div",{className:"alert-info alert-info--error align-center",children:x})})}),(0,n.jsx)(u.default,{containerMinWidth:"100%",ctaButtons:[{text:{t_text:"promo_code_cta_btn_label",t_default:"ACTIVATE"},className:"rounded-button-v2",minWidth:"100%",onClick:U,loading:L,type:"submit"}]})]})]})})]})};var k=a(29157),S=a(40381),E=a(93344);let A=({onLoginSuccess:e,title:t,subtitle:a,errorMessage:r=""})=>{let s=(0,E.m)("PromoCodeActivationSection"),{t:i}=(0,c.useT)();return(0,n.jsxs)("div",{className:"form-login-wrapper",children:[(0,n.jsxs)("div",{className:"promo-header-texts",children:[(0,n.jsx)("h1",{className:"promo-code-title title text-gradient",children:(0,n.jsx)(l.default,{text:i(t),converters:[o.brTagConverter]})}),a?(0,n.jsx)("h2",{className:"promo-code-subtitle subtitle text-gradient",children:(0,n.jsx)(l.default,{text:i(a),converters:[o.boldConverter,o.italicConverter,o.brTagConverter]})}):null]}),r?(0,n.jsx)("div",{className:"promo-login-error-wrapper",children:(0,n.jsx)("div",{className:"alert-info alert-info--error align-center",children:r})}):null,(0,n.jsx)(k.A,{showTitle:!1,onForgotPassword:()=>{},language:(0,S.Z)(),isLoginModal:!1,onPrepareLoginOrSignupFormFinished:s,skipPrepareLoginOrSignupFormLoading:!0,buttinIsOutsideInput:!1,disabledByDefault:!0,noDefaultFiles:!1,tooltip:null,showSubtitle:!1,onLoginSuccess:t=>e(t.userinfo)})]})};var T=a(20023),I=a(6992),M=a(65017);let L=({initialUser:e,codeUrlParam:t,verifyEmailCodeUrlParam:a,locationIdUrlParam:r,promoCodeType:s,codeInfo:l})=>{let{t:o}=(0,c.useT)(),[d,u]=(0,i.useState)(e),{startPageLoading:p}=(0,T.v)(),m="default"===s&&!!t&&!!a&&!!r,[h,g]=(0,i.useState)(m),[f,N]=(0,i.useState)(null),[k,S]=(0,i.useState)("");(0,i.useEffect)(()=>{m&&(0,I.qL)(d,t,a,r,e=>{N({title:o("Congratulations!","Congratulations!"),message:v(e,o),showCTAButton:!0}),g(!1),d&&(0,w.$)([(0,j.F)(d.auth)]).catch(()=>{})},{errorCallback:e=>{S(y(e,o)),g(!1)},onXhrError:()=>{S(o("Please check your Internet connection.")),g(!1)}})},[]);let E=(0,i.useMemo)(()=>l&&0!==l.result?y(l,o):"",[l]),{title:L,subtitle:O}=(0,i.useMemo)(()=>{let e="reseller"===s?x:b,a=(e[t]||(t&&l?.result===0?e.defaultWithCode:e.default))[d?"user":"guest"],r=a["title_"+l?.period]||a.title;r.t_params||(r.t_params={}),r.t_params.url_promo=t;let n=null;return(a.subtitle||a["subtitle_"+l?.period])&&((n=a["subtitle_"+l?.period]||a.subtitle).t_params||(n.t_params={}),n.t_params.url_promo=t,n.t_params.email=d?.email,"reseller"===s&&l?.result===0&&(n.t_params.product=(0,P.t6)(l.productid,o),n.t_params.period=o(void 0!==_[l.period]?_[l.period]:l.period))),{title:r,subtitle:n}},[d,t]);if((0,i.useEffect)(()=>{e&&(!d||d&&e.auth!==d.auth)?u(e):!e&&d&&(p(),u(null),N(null))},[e]),h)return null;let D=!!d||!!f;return(0,n.jsxs)(n.Fragment,{children:[D?null:(0,n.jsx)(A,{title:L,subtitle:O,errorMessage:k,onLoginSuccess:e=>{S(""),u(e)}}),D?(0,n.jsx)(M.default,{sectionName:"PromoCodeActivationSection",children:(0,n.jsx)(C,{title:L,subtitle:O,user:d,codeUrlParam:t,initialSuccess:f,promoCodeType:s,codeUrlError:E||k})}):null]})}},26027:(e,t,a)=>{"use strict";a.d(t,{default:()=>o});var r=a(95155);a(12115);var s=a(38739),n=a(63915),i=a(50185),l=a(81322);let o=({headline:e="",headlineAlign:t="left",headlineAlignMobile:a="left",headlineBackgroun
1dImage:o="",headlineSecond:c="",headlineSecondBackgroundImage:d="",headlineSecondFontSize:u=null,headlineSecondFontSizeMobile:p=null,headlineSecondFontWeight:m=null,headlineSecondFontWeightMobile:h=null,headlinePadding:g=null,headlinePaddingMobile:f=null,headlineLink:b=null})=>{let{t:x}=(0,l.useT)();if(!e&&!c)return null;let _={backgroundImage:d??"var(--text-gradient)",...u&&{"--headline-second-font-size":u},...p&&{"--headline-second-font-size-mobile":p},...m&&{"--headline-second-font-weight":m},...h&&{"--headline-second-font-weight-mobile":h}},v={...g&&{"--headline-padding":g},...f&&{"--headline-padding-mobile":f}};return(0,r.jsxs)("div",{className:`features-grid-headline headline title ${t?"align-"+t:"left"} ${a?"align-mobile-"+a:"left"}`,style:v,children:[e?(0,r.jsx)("span",{className:"text-gradient",style:{backgroundImage:o??"var(--text-gradient)"},children:(0,r.jsx)(s.default,{text:x(e),converters:[n.boldConverter,n.linkConverter,n.brTagConverter]})}):null,c?(0,r.jsx)("span",{className:"text-gradient headline-second",style:_,children:(0,r.jsx)(s.default,{text:x(c),converters:[n.boldConverter,n.linkConverter,n.brTagConverter]})}):null,b?(0,r.jsx)(i.default,{href:b.href,className:"features-grid-headline-link link",...b.target&&{target:b.target},children:x(b.text)}):null]})}},26550:(e,t,a)=>{"use strict";a.d(t,{X:()=>r});let r=(e,t="storage",a="1.0.0")=>{let r=[e];if(t&&r.push(`${e}--${t}`),a&&"0.0.0"!==a&&"1.0.0"!==a){let s=a.replace(/\./g,"-");r.push(`${e}--${t}--v${s}`)}return r.join(" ")}},27999:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var r=a(95155);let s=({image:e})=>{let t=window.matchMedia("(hover: hover) and (pointer: fine)").matches;return(0,r.jsx)("img",{className:"rotate-images-section__image",src:e.src,alt:e.alt,onMouseEnter:t?t=>t.target.src=e.srcHover:void 0,onMouseLeave:t?t=>t.target.src=e.src:void 0})}},30781:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var r=a(95155),s=a(12115),n=a(92198),i=a(27037);let l="windows",o=({componentName:e,contentByOS:t,fallbackOS:a=l,...o})=>{let[c,d]=(0,s.useState)(a);(0,s.useEffect)(()=>{d((0,n.detectOS)(!1,!0))},[]);let u=t[c]?c:a,p=t[u],m=i.U[e];return m&&p?(0,r.jsx)(m,{...p,...o}):null}},30948:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(12115),s=a(33307),n=a(76985);let i=({handleButtonClick:e=()=>{},timerSeconds:t=60})=>{let[a,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{i(!!(0,s.GS)())},[]),(0,n.A)({cookieId:"openedExitIntentTimerModal",modalId:"TimerDiscountExitIntentModal",handleButtonClick:e,modalProps:{timerSeconds:t},shouldShow:!a}),null}},31541:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(12115),s=a(99907),n=a(4007),i=a(60333),l=a(79853),o=a(81322),c=a(40381);let d=({auth:e,user:t=null,planId:a,period:d,discount:u,provider:p,billingAddress:m,afterPaymentActions:h,onPaymentProcessing:g,setDisabledButton:f,setDisabledPlanOptions:b,traffic:x,downgrade:_=!1,onPaymentErrorMessageChange:v=()=>null,skipUserInfoSubscribe:y=!1,totalPrice:w,currency:j,onReady:N=()=>null,onNotAvailable:P=()=>null,onWalletPayLoadingChange:C=()=>null,onPaymentCancel:k=()=>null,containerId:S="wallet-pay-button"})=>{let{t:E}=(0,o.useT)(),[A,T]=(0,r.useState)(""),I=(0,r.useRef)(null),M=(0,r.useRef)(m);M.current=m;let L=(0,r.useRef)(a);L.current=a;let O=(0,r.useRef)(u);O.current=u;let D=(0,r.useRef)(v);D.current=v,(0,r.useEffect)(()=>{D.current(A)},[A]);let R=(0,r.useRef)(null);(0,r.useEffect)(()=>(R.current&&(R.current(),R.current=null),document.querySelectorAll(`[id="${S}"]`).forEach(e=>{for(;e.firstChild;)e.removeChild(e.firstChild)}),w&&j&&q(),()=>{R.current&&(R.current(),R.current=null),document.querySelectorAll(`[id="${S}"]`).forEach(e=>{for(;e.firstChild;)e.removeChild(e.firstChild)})}),[w,j,p,d,e]);let F=(0,r.useRef)(!1),$=e=>{let t="show"===e;t&&T(""),f(t),b(t),C(t),t&&!F.current&&(F.current=!0,g()),t||(F.current=!1)},B=e=>{T(e),$("hide")},U=(e,t,a,r)=>{h&&"function"==typeof h&&h(e,t,a,r)},q=()=>{let a=j?i.signToCurrency[j]||j:"USD",r=L.current,o=M.current,u=O.current,m=Array.isArray(r)?r:[],h={provider:p,period:d,userAuth:e,products:m,traffic:-1!==m.indexOf(n.ADDITIONAL_TRAFFIC_ID)&&(parseInt(x)||t&&(0,s.getUserTtrafficCount)(t,!0))||0,downgrade:_,toggleLoader:$,toggleMobilePaymentLoader:$,showPaymentError:B,onPaymentCancel:k,skipUserInfoSubscribe:y,billingAddress:o,currency:a,amount:"number"==typeof w&&w>0?w:0,t:E,walletPayContainerId:S};t?.lastsubscription?.status==="active"&&t.lastsubscription?.products.indexOf(n.CUSTOM4TB_PLAN_ID)!==-1&&"lifetime"!==d&&(t?.plan
1params?.traffic&&(h.traffic+=t.planparams.traffic),t?.planparams?.storage&&(h.storage=t.planparams.storage)),u&&(h.discountcode=u);let g=new l.Zc(h);I.current=g;let f={current:!1},b={callback:U,onReady:()=>{f.current||(f.current=!0,N())},onNotAvailable:P,locale:(0,c.Z)()};"stripe"===p?g.initExpressCheckoutElement(b):"safecharge"===p?(g.initSafechargeMobilePayments(b),R.current=()=>{g._walletPayCleanup&&g._walletPayCleanup()}):P()};return null}},34865:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var r=a(95155),s=a(38739),n=a(63915),i=a(12115),l=a(81322),o=a(12035),c=a(60333),d=a(90573),u=a(41252),p=a(99967),m=a(2356),h=a(11595);let g=({user:e,subscription:t,totalPrices:a,discountDuration:g,currency:f,period:b,discountCode:x,onCancel:_})=>{let{t:v}=(0,l.useT)(),[y,w]=(0,i.useState)(""),j=(0,i.useMemo)(()=>(0,u.getUnderPriceTexts)(),[]),N=(0,p.useDispatch)();return(0,i.useEffect)(()=>{m.A.setDispatch(N)},[N]),(0,r.jsxs)("div",{className:"cancel-subscription-step-wrapper",children:[(0,r.jsx)("div",{className:"title-wrapper",children:(0,r.jsx)("h1",{className:"title",children:(0,r.jsx)(s.default,{text:v("cancel_sub_discount_offer_headline","Stay and save<br />Keep your plan for less."),converters:[n.brTagConverter]})})}),(0,r.jsx)("div",{className:"cancel-subscription-content-box",children:(0,r.jsxs)("div",{className:"cancel-subscription-content-box--inner",children:[(0,r.jsxs)("div",{className:"cancel-subscription-offer-percent-wrapper",children:[(0,r.jsx)("div",{className:"cancel-subscription-offer-percent",children:`-${((1-a.price/a.oldPrice)*100).toFixed(0)}%`}),(0,r.jsx)("div",{className:"cancel-subscription-offer-title",children:v("cancel_sub_discount_offer_title","SAVE %percents% FOR THE NEXT %xmonths% MONTHS",{percents:`${((1-a.price/a.oldPrice)*100).toFixed(0)}%`,xmonths:g})})]}),(0,r.jsxs)("div",{className:"cancel-subscription-offer-content",children:[(0,r.jsx)("div",{className:"cancel-subscription-offer-subtitle",children:v("cancel_sub_discount_offer_subtitle","Keep your plan for just")}),(0,r.jsx)("div",{className:"cancel-subscription-offer-price",children:(0,r.jsx)(d.A,{price:a.price,oldPrice:a.oldPrice,currency:c.currencyMap[f],periodText:j[b],periodTextAlign:"center"})})]}),(0,r.jsxs)("div",{className:"cancel-subscription-box-buttons",children:[y&&(0,r.jsx)(h.A,{trigger:!!y,type:"slide-up",timeout:250,disableInitialAnimation:!1,children:(0,r.jsx)("div",{className:"cancel-subscription-offer-error-wrapper",children:(0,r.jsx)("div",{className:"alert-info alert-info--error align-center",children:y})})}),(0,r.jsx)(o.default,{template:"column",rowGap:"var(--spacing-md)",containerMinWidth:"100%",ctaButtons:[{text:{t_text:"cancel_sub_offer_btn_get_discount",t_default:"YES, KEEP MY PLAN"},minWidth:"100%",className:"rounded-button-v2",onClick:()=>{w("");let a=m.A.open("ApplySubscriptionDiscountModal",{user:e,subscription:t,discountCode:x,onUpdateSubscriptionError:e=>{w(e),a()}})}},{text:{t_text:"cancel_sub_offer_btn_refuse",t_default:"NO IâLL CANCEL"},className:"rounded-button-v2 btn-warning-transparent",minWidth:"100%",onClick:_}]})]})]})})]})};var f=a(4474);let b=e=>!!e&&!(e.length<10)&&!(e.trim().length<=5);var x=a(48233);let _=({user:e,subscription:t})=>{let{t:a}=(0,l.useT)(),[c,d]=(0,i.useState)(""),[u,m]=(0,i.useState)(""),[g,_]=(0,i.useState)(!1),[v,y]=(0,i.useState)(""),w=(0,i.useRef)(null),j=(0,p.useDispatch)(),N=[{id:"2",label:a("cancel_sub_reason_2","Too expensive")},{id:"1",label:a("cancel_sub_reason_1","Technical issues")},{id:"3",label:a("cancel_sub_reason_3","Don't need it")},{id:"4",label:a("cancel_sub_reason_4","Better alternative")},{id:"5",label:a("Other","Other")}],P=e=>{let t=e.target.value;t.length<=500&&(m(t),C(e.target),g&&b(t)&&(_(!1),y("")))},C=e=>{e.style.height="auto",e.style.height=e.scrollHeight+"px"};return(0,i.useEffect)(()=>{if("5"===c&&w.current){let e=w.current;e.focus();let t=e.value.length;e.setSelectionRange(t,t),C(e)}},[c]),(0,r.jsxs)("div",{className:"cancel-subscription-step-wrapper",children:[(0,r.jsx)("div",{className:"title-wrapper",children:(0,r.jsx)("h1",{className:"title",children:(0,r.jsx)(s.default,{text:a("cancel_sub_reason_headline","Thanks for your time.<br />Help us improve."),converters:[n.brTagConverter]})})}),(0,r.jsx)("div",{className:"cancel-subscription-content-box",children:(0,r.jsxs)("div",{className:"cancel-subscription-content-box--inner",children:[(0,r.jsx)("div",{className:"titleh3",children:a("cancel_sub_reason_subtitle","What's the reason you are canceling?")}),(0,r.jsx)("div",{className:"cancel-subscription-reason-content",children:N.map(e=>(0,r.jsxs)("div",{className:`reason-wrapper ${"5"===e.id?"textarea-in":""}`,children:[(0,r.jsxs)("label",{className:"radio-option",children:[(0,r.jsx)("input",{type:"radio",name:"cancelReason",value:e.id,checked:c===e.id,onChange:e=>d(e.target.value)}),(0,r.jsx)("span",{className:"radio-custom"}),(0,r.jsx)("span",{className:"radio-label",children:e.label})]}),"5"===e.id&&"5"===c&&(0,r.jsxs)("div",{className:"textarea-container",children:[(0,r.jsx)("textarea",{className:"input-textarea",ref:w,placeholder:a("share_ur_reason_with_us","Share your reason with us"),value:u,onChange:P,maxLength:500,"data-invalid":g}),(0,r.jsxs)("div",{className:"textarea-chars",children:[(0,r.jsx)("i",{children:500-u.length})," ",(0,r.jsx)("b",{children:a("REMAINING","left")})]})]})]},e.id))}),(0,r.jsxs)("div",{className:"cancel-subscription-box-buttons",children:[v&&(0,r.jsx)(h.A,{trigger:!!v,type:"slide-up",timeout:250,disableInitialAnimation:!1,children:(0,r.jsx)("div",{className:"cancel-subscription-error-wrapper",children:(0,r.jsx)("div",{className:"alert-info alert-info--error align-center",children:v})})}),(0,r.jsx)(o.default,{template:"column",rowGap:"var(--spacing-md)",containerMinWidth:"100%",ctaButtons:[{link:f.xE,text:{t_text:"cancel_sub_btn_stay",t_default:"I'LL STAY"},minWidth:"100%",className:"rounded-button-v2"},{text:{t_text:"cancel_sub_btn_label",t_default:"CANCEL"},className:"rounded-button-v2 btn-warning-transparent",minWidth:"100%",disabled:""===c,tooltip:""===c?{t_text:"cancel_sub_btn_tooltip",t_default:"Help us improve. To complete your cancellation, let us know why you're leaving."}:null,onClick:()=>
1{if(""===c||!N.find(({id:e})=>e==c))return;if("5"===c&&!b(u)){_(!0),y(a("cancel_sub_other_reason","Tell us a little more. We need at least %count% characters to understand your feedback.",{count:10}));return}_(!1),y("");let r={auth:e.auth,billingprovider:t.billingprovider,subscriptionid:t.id,istrial:t.istrial,products:t.products.join(","),pcloudmanaged:+!!t.pcloudmanaged,reasonid:c};"5"===c?r.customreason=u:r.reasonid=c,j((0,x.GR)({modalId:"CancelSubscriptionSubmitModal",user:e,cancelParams:r,subscription:t}))}}]})]})]})})]})},v=({user:e,subscription:t,discountOfferData:a})=>{let{t:o}=(0,l.useT)(),[c,d]=(0,i.useState)(a?"discount-offer":"reason");return(0,r.jsxs)("div",{className:"cancel-subscription-wrapper",children:["discount-offer"===c?(0,r.jsx)(g,{...a,user:e,subscription:t,onCancel:()=>d("reason")}):null,"reason"===c?(0,r.jsx)(_,{user:e,subscription:t}):null,(0,r.jsxs)("div",{className:"cancel-subscription-footer-texts",children:[(0,r.jsx)("div",{className:"cancel-subscription-footer-texts--title",children:o("cancel_subscription_footer_title","Still have questions? Weâre here to help.")}),(0,r.jsx)("div",{className:"cancel-subscription-footer-texts--subtitle",children:(0,r.jsx)(s.default,{text:o("cancel_subscription_footer_subtitle","Visit our https://pcloud.com/help[help center] for more information or mailto:[email protected][contact our support team]."),converters:[n.linkConverter]})})]})]})}},35069:(e,t,a)=>{"use strict";a.d(t,{default:()=>eT});var r,s,n,i,l,o,c,d,u,p,m,h,g,f,b,x,_,v,y,w,j,N,P=a(95155),C=a(12115),k=a(83489);function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let E=function(e){return C.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),r||(r=C.createElement("circle",{id:"ellipse_svg__Ellipse 1",cx:12,cy:12,r:12,fill:"#58BBCD",fillOpacity:.24})))};function A(){return(A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let T=function(e){return C.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",width:24,height:18,fill:"none"},e),C.createElement("g",{id:"today_svg__today"},C.createElement("mask",{id:"today_svg__mask0_857_21030",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},s||(s=C.createElement("path",{id:"today_svg__Bounding box",fill:"#D9D9D9",d:"M0 0h24v24H0z"}))),n||(n=C.createElement("g",{mask:"url(#today_svg__mask0_857_21030)"},C.createElement("path",{id:"today_svg__today_2",fill:"#17BED0",d:"M9 16.5q-1.05 0-1.775-.725T6.5 14t.725-1.775T9 11.5t1.775.725T11.5 14t-.725 1.775T9 16.5M5 22q-.824 0-1.412-.587A1.93 1.93 0 0 1 3 20V6q0-.824.587-1.412A1.93 1.93 0 0 1 5 4h1V3q0-.424.287-.712A.97.97 0 0 1 7 2q.424 0 .713.288Q8 2.575 8 3v1h8V3q0-.424.288-.712A.97.97 0 0 1 17 2q.424 0 .712.288Q18 2.575 18 3v1h1q.824 0 1.413.588Q21 5.175 21 6v14q0 .824-.587 1.413A1.93 1.93 0 0 1 19 22zm0-2h14V10H5zM5 8h14V6H5z"})))))};function I(){return(I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let M=function(e){return C.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),C.createElement("g",{id:"savings_svg__savings"},C.createElement("mask",{id:"savings_svg__mask0_626_21806",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},i||(i=C.createElement("path",{id:"savings_svg__Bounding box",fill:"#D9D9D9",d:"M0 0h20v20H0z"}))),l||(l=C.createElement("g",{mask:"url(#savings_svg__mask0_626_21806)"},C.createElement("path",{id:"savings_svg__savings_2",fill:"#818181",d:"M13.334 9.156q.326 0 .573-.246a.787.787 0 0 0 0-1.148.787.787 0 0 0-1.147 0 .787.787 0 0 0 0 1.148.79.79 0 0 0 .574.246m-6.01-1.778h2.852a.63.63 0 0 0 .457-.2.64.64 0 0 0 0-.933.63.63 0 0 0-.457-.2H7.324a.63.63 0 0 0-.457.2.64.64 0 0 0 0 .932.63.63 0 0 0 .457.2m-2.091 9.708a1.5 1.5 0 0 1-.927-.328 1.52 1.52 0 0 1-.56
15-.8 154 154 0 0 1-.822-3.018 46 46 0 0 1-.507-2.138 17 17 0 0 1-.257-1.567 12 12 0 0 1-.071-1.316q0-1.74 1.213-2.953T6.25 3.753h4.375A4.4 4.4 0 0 1 12 2.544a3.5 3.5 0 0 1 1.75-.458q.345 0 .59.244.243.245.244.59a.6.6 0 0 1-.024.165l-.049.161q-.091.245-.176.53t-.159.725l2.169 2.168h.777q.322 0 .558.237a.76.76 0 0 1 .237.553v3.733a.74.74 0 0 1-.146.46.83.83 0 0 1-.402.28l-1.726.575-1.03 3.441a1.564 1.564 0 0 1-1.534 1.138h-1.072q-.54 0-1.003-.452a2.03 2.03 0 0 1-.587-1.055v-.16h-2.5v.16q-.126.603-.588 1.055t-1.002.452zm.038-1.333h1.056a.25.25 0 0 0 .184-.072.25.25 0 0 0 .072-.185v-1.41h5.167v1.41a.25.25 0 0 0 .072.184.25.25 0 0 0 .185.073h1.072q.087 0 .156-.049a.24.24 0 0 0 .092-.136l1.228-4.09 2.029-.684V8.003h-.792l-2.958-2.959q0-.37.045-.761.045-.392.137-.73-.497.158-.925.584a2.7 2.7 0 0 0-.632.949H6.25q-1.188 0-2.01.823-.823.822-.823 2.015 0 .827.41 2.815.412 1.989 1.18 4.813a.26.26 0 0 0 .1.145q.075.056.164.056"})))))};var L=a(33307),O=a(60333),D=a(72085),R=a(11595),F=a(12035),$=a(1684),B=a(69447),U=a(4007),q=a(41252),z=a(99907),H=a(81322);let W=({show:e=!0,onClose:t=()=>{},subscriptionSummary:a,additionalSubscriptions:r,user:s,userPaymentProvider:n,paymentSource:i=null,loadingUpdateToYearlySubscription:l,setLoadingUpdateToYearlySubscription:o,onUpdateSuccess:c,onCancelSubscription:d})=>{let u,{t:p}=(0,H.useT)(),[m,h]=(0,C.useState)(null),[g,f]=(0,C.useState)(!0),[b,x]=(0,C.useState)(!1),[_,v]=(0,C.useState)(a.products),[y,w]=(0,C.useState)(a),j=(0,C.useRef)(null),N=(0,C.useRef)(null),{updateSubscription:k,updateSubscriptionErrorMsg:S,setUpdateSubscriptionErrorMsg:E}=(0,$.M)({user:s,userPaymentProvider:n,paymentSource:i,loadingUpdateSubscription:l,setLoadingUpdateSubscription:o,onUpdateSuccess:c,currency:a?.currency});(0,C.useEffect)(()=>(I(),()=>{M(),E({show:!1,message:""})}),[]);let A=e=>{e&&"xhr_error"===e.result&&e.error&&e.error.status&&"abort"===e.error.status||x(!0)},T=e=>({totalPlanPrice:e.totalamount||0,totalPriceToPay:e.amounttopay,totalNextPriceToPay:e.nextbillingamount||0,nextBillingDate:e.nextbillingtime||"",currency:O.currencyMap[e.currency]}),I=()=>{let e;if(!s)return;let t=(0,B.Nx)(n);if(null===t)return;let i=(e=[...a.products],r.length>0&&r.map(t=>{t.products.length>0&&e.push(...t.products.filter(e=>e!==U.VIVACOM_128GB_PLAN_ID&&e!==U.VIVACOM_1TB_PLAN_ID&&e!==U.VIVACOM_500GB_PLAN_ID))}),v(e),e);M(),x(!1),f(!0);let l=[];(j.current=(0,B.Sz)({user:s,chosenPeriod:"year",chosenPlanIds:i,paymentView:t,cardProvider:(0,B.g7)(n)},e=>{h(T(e))},A),l.push(j.current),r.length>0)&&(N.current=(0,B.Sz)({user:s,chosenPeriod:a.period,chosenPlanIds:i,paymentView:t,cardProvider:(0,B.g7)(n)},e=>{w(T(e))},A),l.push(N.current));Promise.all(l).finally(e=>{f(!1)})},M=()=>{j&&void 0!==j.current&&null!==j.current&&j.current.abort&&j.current.abort(),N&&void 0!==N.current&&null!==N.current&&N.current.abort&&N.current.abort()};return(0,P.jsxs)(C.Fragment,{children:[b?(0,P.jsx)("div",{className:"change-subscription-error-message-wrapper",children:(0,P.jsx)("div",{className:"change-subscription-error-message",children:p("unexpected_error","An unexpected error has occurred. Please reload the page to try again.")})}):null,g?(0,P.jsx)("div",{className:"change-subscription-loading-wrapper",children:(0,P.jsx)("div",{className:"change-subscription-loading"})}):null,g||b||!m?null:(0,P.jsxs)(C.Fragment,{children:[_.length>1&&_.length>a.products.length?(u=_.reduce((e,t,a)=>{let r=q.productNameMap[t].long;return(t==U.ADDITIONAL_TRAFFIC_ID&&(r=r.replace("%amount%",(0,z.getPlanTtraffic)((0,z.getUserTtrafficCount)(s,!0)))),1===_.length||0===a)?r:a===_.length-1?e+" "+p("and")+" "+r:e+", "+r},""),(0,P.jsxs)("div",{className:"change-subscription-affected-products-list-wrapper",children:[p("affected_services","Affected services"),": ",(0,P.jsx)("span",{className:"change-subscription-products-list",children:u})]})):null,(0,P.jsxs)("div",{className:"change-subscription-wrapper",children:[(0,P.jsxs)("div",{className:"change-subscription-compare-prices-wrapper",children:[(0,P.jsxs)("div",{className:"change-subscription-prices-wrapper",children:[(0,P.jsx)("div",{className:"change-subscription-title-label",children:p("current_subscription","Current subscription")}),(0,P.jsxs)("div",{className:"change-subscription-label-and-prices-wrapper",children:[(0,P.jsx)("div",{className:"change-subscription-period-label",children:p("monthly_subscription_2","Ðonthly subscription")}),(0,P.jsx)("div",{className:"change-subscription-prices",children:(0,P.jsxs)("span",{className:"change-subscription-price",children:[y.totalPlanPrice/100,(0,P.jsxs)("span",{className:"change-subscription-currency",children:[" ",O.signToCurrency[y.currency]]})]})})]}),(0,P.jsxs)("div",{className:"change-subscription-label-and-prices-wrapper change-subscription-color-gray",children:[(0,P.jsx)("div",{className:"change-subscription-period-label",children:p("total_yearly_payment","Total yearly payment")}),(0,P.jsx)("div",{className:"change-subscription-prices",children:(0,P.jsxs)("span",{className:"change-subscription-price",children:[12*y.totalPlanPrice/100,(0,P.jsxs)("span",{className:"change-subscription-currency",children:[" ",O.signToCurrency[y.currency]]})]})})]})]}),(0,P.jsxs)("div",{className:"change-subscription-prices-wrapper",children:[(0,P.jsx)("div",{className:"change-subscription-title-label",children:p("update_to","Update to")}),(0,P.jsxs)("div",{className:"change-subscription-label-and-prices-wrapper",children:[(0,P.jsx)("div",{className:"change-subscription-period-label",children:p("yearly_subscription","Yearly subscription")}),(0,P.jsx)("div",{className:"change-subscription-better-prices",children:(0,P.jsxs)("span",{className:"change-subscription-price better-subscription-price",children:[m.totalPlanPrice/100,(0,P.jsxs)("span",{className:"change-subscription-currency",children:[" ",O.signToCurrency[m.currency]]})]})})]})]})]}),(0,P.jsx)("div",{className:"change-subscription-separation-line"}),(0,P.jsxs)("div",{className:"change-subscription-total-price-summary-wrapper",children:[(0,P.jsxs)("div",{className:"change-subscription-label-and-prices-wrapper",children:[(0,P.jsx)("div",{className:"change-subscription-period-label total-sub-period-label",children:p("due_today","Due today")}),(0,P.jsx)("div",{className:"change-subscription-prices",children:(0,P.jsxs)("span",{className:"change-subscription-price-total",children:[m.totalPriceToPay/100,(0,P.jsxs)("span",{className:"change-subscription-currency-total",children:[" ",O.signToCurrency[m.currency]]})]})})]}),(0,P.jsx)("div",{className:"change-subscription-prices-summary-text",children:(0,B.ci)(m,"stripe"!==n.short_name,p)})]}),(0,P.jsx)("div",{className:"change-subscription-separation-line"}),(0,P.jsx)("div",{className:"change-subscription-cancel-link-wrapper",children:(0,P.jsx)("a",{className:`manage-subs-link ${l?"disabled":""}`,onClick:()=>l?null:d(),children:p("cancel_subs_modal_bnt_cancel","Cancel subscription")})}),(0,P.jsx)(R.A,{trigger:S.show,type:"slide-up",timeout:250,children:S.show&&(0,P.jsx)("div",{className:"manage-subs-error-wrapper",children:(0,P.jsx)("div",{className:"manage-subs-error-msg",children:S.message})})})]}),(0,P.jsx)("div",{className:"manage-subs-modal-button-container",children:(0,P.jsx)(F.default,{containerMinWidth:"100%",columnGap:"var(--spacing-md)",ctaButtons:[{text:{t_text:"Close",t_default:"Close"},onClick:t,disabled:l,variant:"secondary",className:"rounded-button-v2 cancel-btn hide-on-mobile",ctaFontSize:"11px",ctaPadding:"0 var(--spacing-md)"},{text:{t_text:"update_to_annual",t_default:"Update to Annual"},onClick:()=>k({period:"year",products:_}),disabled:l,loading:l,variant:"primary",className:"rounded-button-v2",ctaFontSize:"11px",ctaFontSizeMobile:"11px",ctaPadding:"0 var(--spacing-md)"}]})})]})]})},V=({show:e=!0,onClose:t=()=>{},subscriptionSummary:a,additionalSubscriptions:r,user:s,userPaymentProvider:n,paymentSource:i=null,onUpdatedMonthlySubscriptionToAnnual:l,onCancelSubscription:o})=>{let{t:c}=(0,H.useT)(),[d,u]=(0,C.useState)(!1);(0,C.useEffect)(()=>()=>{u(!1)},[e]);let p=()=>{d||t()};return(0,P.jsx)(D.default,{opened:e,onClose:p,animate:!0,shouldCloseOnOverlayClick:!d,style:{display:"flex",alignItems:"center",justifyContent:"safe center",flexDirection:"column"},width:"100%",margin:"50px 0",children:(0,P.jsxs)("div",{className:"manage-subs-modal-wrap",children:[(0,P.jsx)("div",{className:"manage-subs-modal-title",style:{marginBottom:"16
1px"},children:c("change_subscription_label","Change subscription")}),(0,P.jsx)(W,{subscriptionSummary:a,additionalSubscriptions:r,user:s,userPaymentProvider:n,paymentSource:i,onClose:p,loadingUpdateToYearlySubscription:d,setLoadingUpdateToYearlySubscription:u,onUpdateSuccess:l,onCancelSubscription:o}),(0,P.jsx)(D.OvalModalClose,{className:"manage-subs-oval-modal-close",onClick:p,disabled:d})]})})};var Y=a(67889),G=a.n(Y);let X=({onClose:e=()=>{},subscriptionIdToCancel:t,cancelSubscriptionWithSingleProductId:a=null,cancelSubscriptionPageURL:r})=>{let{t:s}=(0,H.useT)(),n=(0,C.useMemo)(()=>(0,q.getCancelSubscriptionTextsMap)(),[]);return(0,P.jsx)(C.Fragment,{children:(0,P.jsxs)(C.Fragment,{children:[(0,P.jsxs)("div",{className:"manage-subs-confirmation-description-wrapper",children:[(0,P.jsx)("div",{className:"manage-subs-confirmation-description-title",children:s("warning_irreversible_action","Be careful. You cannot reverse this action.")}),(0,P.jsx)("div",{className:"manage-subs-confirmation-description-text",children:a&&n[a]?n[a].text:s("cancel_subscription_warning_short","If you cancel your subscription, your account will be downgraded. You may lose important files.")}),(0,P.jsx)("div",{className:"manage-subs-confirmation-text",children:s("confirmation_question","Do you still wish to proceed?")})]}),(0,P.jsxs)("div",{className:"manage-subs-modal-button-container",children:[(0,P.jsxs)(k.ButtonCentered,{as:G(),color:"red2",borderRadius:"4",fontWeight:"400",textSize:"bigger2",minWidth:"100%",padding:"0 16px",href:r+(-1===r.search(/[?]/)?"?":"&")+"id="+t,className:"rounded-button rounded-button-v2 btn-warning-transparent",children:[(0,P.jsx)("span",{className:"hide-on-mobile",children:s("cancel_subs_modal_bnt_cancel","Cancel subscription")}),(0,P.jsx)("span",{className:"show-on-mobile",children:s("Yes")})]}),(0,P.jsxs)(k.ButtonCentered,{color:"cyan",borderRadius:"4",fontWeight:"400",textSize:"bigger2",minWidth:"100%",padding:"0 16px",onClick:e,className:"rounded-button rounded-button-v2",children:[(0,P.jsx)("span",{className:"hide-on-mobile",children:s("cancel_subs_modal_bnt_keep","Keep plan")}),(0,P.jsx)("span",{className:"show-on-mobile",children:s("No")})]})]})]})})},K=({show:e=!0,onClose:t=()=>{},title:a,subscriptionIdToCancel:r,cancelSubscriptionWithSingleProductId:s=null,cancelSubscriptionPageURL:n})=>{let{t:i}=(0,H.useT)();(0,C.useEffect)(()=>{null==r&&l()},[e]);let l=()=>{t()};return(0,P.jsx)(D.default,{opened:e,onClose:l,animate:!0,shouldCloseOnOverlayClick:!0,style:{display:"flex",alignItems:"center",justifyContent:"safe center",flexDirection:"column"},width:"100%",margin:"50px 0",children:(0,P.jsxs)("div",{className:"manage-subs-modal-wrap",children:[(0,P.jsx)("div",{className:"manage-subs-modal-title",children:a||i("cancel_subs_modal_bnt_cancel","Cancel subscription")}),(0,P.jsx)(X,{subscriptionIdToCancel:r,cancelSubscriptionWithSingleProductId:s,cancelSubscriptionPageURL:n,onClose:l}),(0,P.jsx)(D.OvalModalClose,{className:"manage-subs-oval-modal-close",onClick:l})]})})};var Q=a(79853);let Z=({subscriptionSummary:e,subscribedProducts:t,additionalSubscriptions:a,user:r,userPaymentProvider:s,paymentSource:n,onUpdatedSubscription:i,cancelSubscriptionPageURL:l})=>{let{t:o}=(0,H.useT)(),[c,d]=(0,C.useState)(!1),[u,p]=(0,C.useState)(!1),m=async(e,t,a)=>{t&&t(),await i("year"),d(!1)};if(!e)return null;let h="month"===e.period&&!e.disableChangeToAnnual||("year"===e.period||e.disableChangeToAnnual)&&!e.disableCancelSubscription;return(0,P.jsxs)("div",{className:`manage-subs-subscription-summary-wrapper ${h?"manage-subs-justify-space-between":""}`,children:[(0,P.jsxs)("div",{className:"subscription-summary-header-and-info-wrapper",children:[(0,P.jsxs)("div",{className:"manage-subs-box-header-wrapper",children:[(0,P.jsxs)("div",{className:"manage-subs-box-header-icon",children:[(0,P.jsx)(E,{}),(0,P.jsx)("div",{className:"subscription-summary-today-icon-wrapper",children:(0,P.jsx)(T,{})})]}),(0,P.jsx)("div",{className:"manage-subs-box-header-text",children:"month"===e.period?o("monthly_subscription_period","Monthly Subscription Period"):"year"===e.period?o("yearly_subscription_period","Yearly Subscription Period"):null})]}),(0,P.jsxs)("div",{className:"subscription-summary-info-wrapper",children:[e.totalPlanPrice&&e.totalPlanPrice>0?(0,P.jsxs)("div",{className:"subscription-summary-info-wrapper-inner",children:[(0,P.jsxs)("span",{className:"subscription-summary-info-label",children:["month"===e.period?o("key_monthly_payment","Monthly payment"):"year"===e.period?o("key_yearly_payment","Yearly payment"):null,":"]}
1),(0,P.jsxs)("span",{className:"subscription-summary-info-value",children:["bgn"===e.currency.toLocaleLowerCase()?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{children:(e.totalPlanPrice/100/1.95583).toFixed(2)}),(0,P.jsx)("span",{className:"subscription-summary-info-currency",children:" EUR "}),(0,P.jsxs)("span",{children:["(",e.totalPlanPrice/100,(0,P.jsxs)("span",{className:"subscription-summary-info-currency",children:[" ",O.signToCurrency[e.currency]]}),")"]})]}):(0,P.jsxs)(P.Fragment,{children:[e.totalPlanPrice/100,(0,P.jsxs)("span",{className:"subscription-summary-info-currency",children:[" ",O.signToCurrency[e.currency]]})]}),(()=>{if(0===a.length)return null;let e={};a.forEach(({provider:t})=>{e[t]||(e[t]=Q.r5[t])});let t=Object.keys(e).sort().map(t=>e[t].short_name);return(0,P.jsxs)("span",{className:"subscription-summary-excluded-price-text-wrapper",children:["(",o("not_included_"+t.join("_"),"not included external provider price"),")"]})})()]})]}):null,e.nextBillingDate&&""!==e.nextBillingDate?(0,P.jsxs)("div",{className:"subscription-summary-info-wrapper-inner",children:[(0,P.jsxs)("span",{className:"subscription-summary-info-label",children:[o("next_billing_date_v2","Next billing date"),":"]}),(0,P.jsx)("span",{className:"subscription-summary-info-value",children:(0,L.Wg)(e.nextBillingDate,!1," ",", ",o)})]}):null,e.totalNextPriceToPay!=e.totalPlanPrice?(0,P.jsxs)("div",{className:"subscription-summary-info-wrapper-inner",children:[(0,P.jsxs)("span",{className:"subscription-summary-info-label",children:[o("next_payment","Next payment"),":"]}),(0,P.jsx)("span",{className:"subscription-summary-info-value",children:"bgn"===e.currency.toLocaleLowerCase()?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{children:(e.totalNextPriceToPay/100/1.95583).toFixed(2)}),(0,P.jsx)("span",{className:"subscription-summary-info-currency",children:" EUR"}),(0,P.jsxs)("span",{children:["(",e.totalNextPriceToPay/100,(0,P.jsx)("span",{className:"subscription-summary-info-currency",children:O.signToCurrency[e.currency]}),")"]})]}):(0,P.jsxs)(P.Fragment,{children:[e.totalNextPriceToPay/100,(0,P.jsx)("span",{className:"subscription-summary-info-currency",children:O.signToCurrency[e.currency]})]})})]}):null]})]}),"month"!==e.period||e.disableChangeToAnnual?null:(0,P.jsxs)("div",{className:"subscription-summary-footer-wrapper",children:[(0,P.jsxs)("div",{className:"subscription-summary-savings-label-wrapper",children:[(0,P.jsx)("div",{className:"subscription-summary-savings-icon",children:(0,P.jsx)(M,{})}),(0,P.jsx)("div",{className:"subscription-summary-savings-text",dangerouslySetInnerHTML:{__html:o("save_with_our_annual_plans",'Save <span class="savings-percentages">17%</span> with our annual plans').replace("%amount_percentages%",'<span class="savings-percentages">17%</span>')}})]}),(0,P.jsx)("div",{className:"subscription-summary-button-wrapper",children:(0,P.jsx)(k.ButtonCentered,{color:"lightgray5",borderRadius:"4",fontWeight:"400",textSize:"bigger2",padding:"0 24px",onClick:()=>d(!0),className:"rounded-button rounded-button-v2 secondary",children:o("Change","Change")})}),(0,P.jsx)(V,{show:c,onClose:()=>d(!1),subscriptionSummary:e,additionalSubscriptions:a,user:r,userPaymentProvider:s,paymentSource:n,onUpdatedMonthlySubscriptionToAnnual:m,onCancelSubscription:()=>{d(!1),p(!0)}})]}),("year"===e.period||e.disableChangeToAnnual)&&!e.disableCancelSubscription?(0,P.jsx)("div",{className:"subscription-summary-footer-link-wrapper",children:(0,P.jsx)("a",{className:"manage-subs-link",onClick:()=>p(!0),children:o("cancel_subs_modal_bnt_cancel","Cancel subscription")})}):null,("month"!==e.period||e.disableChangeToAnnual)&&("year"!==e.period&&!e.disableChangeToAnnual||e.disableCancelSubscription)?null:(0,P.jsx)(K,{show:u,onClose:()=>p(!1),subscriptionIdToCancel:e.id,cancelSubscriptionWithSingleProductId:t.products&&1===t.products.length?t.products[0].id:null,cancelSubscriptionPageURL:l})]})};var J=a(7441),ee=a(92198),et=a(75357),ea=a(90929),er=a(49874),es=a(13371),en=a(67286);let ei=({user:e,color:t="cyan",provider:a,closeModal:r=()=>{},onUpdatedPaymentSource:s,loadingUpdatePaymentSource:n,setLoadingUpdatePaymentSource:i,currency:l})=>{let{t:o}=(0,H.useT)(),[c,d]=(0,C.useState)(!0),[u,p]=(0,C.useState)(!1),[m,h]=(0,C.useState)(""),[g,f]=(0,C.useState)(""),[b,x]=(0,C.useState)(""),[_,v]=(0,C.useState)(""),[y,w]=(0,C.useState)("default"),[j,N]=(0,C.useState)(!0),[S,E]=(0,C.useState)(!0),[A,T]=(0,C.useState)(!0),[I,M]=(0,C.useState)(!0),[D,F]=(0,C.useState)(ea.DEFAULT_CARDNUMBER_LENGTH),[$,B]=(0,C.useState)({error:!1,message:"",showMessage:!1}),U=(0,C.useRef)(!1),[q,z]=(0,C.useState)(!0),W=(0,ee.isInternetExplorer)(),V=e=>e.replace(/\s+/g,""),Y=e=>{let t=V(e);return!(!t||t.length<3)},{holderNameRef:G,onSafechargeFieldsCreated:X,validateSafeChargeInputs:K}
1=(0,es.m)({provider:a,validateHolderName:Y,setDisableErrorAnimation:z,setValidCardNumber:N,setValidExpDate:E,setValidCVC:M,setValidHolderName:T,holderName:b,getHolderNameFormatted:V});(0,C.useEffect)(()=>{a!==O.SAFECHARGE_PAYMENT_PROVIDER||U.current||W?a===O.STRIPE_PAYMENT_PROVIDER?Promise.all([(0,ee.loadScript)("https://js.stripe.com/v2/"),(0,ee.loadScript)("https://js.stripe.com/v3/")]).then(()=>{}).catch(e=>{p(!0)}).finally(()=>{d(!1)}):d(!1):((0,et.insertSafechargeForm)({language:(0,L.Hs)("lang")||"en",callback:Z,onError:ei,ScFieldStyles:en.fu}),U.current=!0,z(!0))},[a]);let Z=()=>{X(),d(!1)},ei=()=>{p(!0),d(!1)},el=e=>{B({error:!0,message:e,showMessage:!0})},eo=e=>{i("show"===e)},ec=e=>{"card_number"===e&&N(!1),"exp_date"==e&&E(!1),"cvc"==e&&M(!1)},ed=t=>{n||(eo("show"),t.preventDefault(),B({...$,error:!1,showMessage:!1}),z(!1),eu(()=>{let t={toggleLoader:eo,showPaymentError:el,newCC:a===O.SAFECHARGE_PAYMENT_PROVIDER?{cardHolderName:b}:{cardNumber:m.replace(/\s/g,""),cardHolderName:b,expirationMonth:(0,J.getExpiryDatePeriod)(g,"month"),expirationYear:(0,J.getExpiryDatePeriod)(g,"year"),CVV:_},showBadInput:ec,userAuth:e.auth,authorizeCard:a===O.SAFECHARGE_PAYMENT_PROVIDER,currency:l,t:o},r=new Q.Zc(t),n=()=>{s()};switch(a){case O.STRIPE_PAYMENT_PROVIDER:r.setStripePaymentSource({shoudUpdateDefaultSource:!0,refresh:!1,callback:n});break;case O.SAFECHARGE_PAYMENT_PROVIDER:r.initSafechargePayment({refresh:!1,callback:n,changeCard:!0});break;case O.PAYPAL_PAYMENT_PROVIDER:r.createBraintreePayment({refresh:!1})}},()=>{setTimeout(()=>{eo("hide")},300)}))},eu=(e,t)=>{let r=!1,s=!1,n=!1,i=!1,l=!1,o=!1,c=_&&_.replace(/\s+/g,"");if(a===O.STRIPE_PAYMENT_PROVIDER)r=!(!m||m.length<12),s=Y(b),n=!(!c||c.length<3),i=(0,J.validateExpiryDate)(g),o=m&&g&&V(b)&&c;else if(a===O.SAFECHARGE_PAYMENT_PROVIDER){let e=K();r=e.validCardNumber,s=e.validHolderName,n=e.validCVC,i=e.validExpDate,o=e.filledInputs}return(N(r),T(s),M(n),E(i),console.log("validInputs",l=i&&r&&s&&n,i,r,s,n),l&&o)?(e&&"function"==typeof e&&e(),!0):(t&&"function"==typeof t&&t(),!1)};return u?(0,P.jsx)("div",{className:"change-payment-source-error-message-wrapper",children:(0,P.jsx)("div",{className:"change-payment-source-error-message",children:o("unexpected_error","An unexpected error has occurred. Please reload the page to try again.")})}):(0,P.jsxs)(P.Fragment,{children:[c?(0,P.jsx)("div",{className:"change-payment-source-loading-wrapper",children:(0,P.jsx)("div",{className:"change-payment-source-loading"})}):null,(0,P.jsxs)("form",{className:`change-payment-source-container ${c?"hidden":""}`,children:[(0,P.jsx)("div",{className:"change-payment-source-wrapper",children:(0,P.jsx)(er.A,{color:t,cardNumber:m,cardType:y,expDate:g,CVC:_,holderName:b,validCardNumber:j,validExpDate:S,validCVC:I,validHolderName:A,paymentLoading:n,changeCard:!1,handleCardNumberChange:e=>{let t=e.target.value,a=(0,J.findCardType)(t);t.length<=4&&t.length>0?a=(0,J.findCardType)(t):0==t.length&&(w("default"),F(16)),a&&y!=a.name&&(w(a.name),F(a.valid_length[0])),t.length-m.length<=1&&h(t)},handleCardNumberKeyPress:e=>{var t;let a,r;13!==(e.which||e.keyCode||e.charCode)&&((0,J.preventEnteringChars)(e),(r=(a=(t=e).target.value.trim()).replace(/\s+/g,"")).length>D-1?t.preventDefault():"amex"===y&&r?(4===r.length||10===r.length)&&h(a+=" "):r&&r.length%4==0&&h(a+=" "))},handleCardNumberPaste:e=>{let t=(e.clipboardData||window.clipboardData).getData("text"),a=[];if(t=t.replace(/\D/g,"")){let e,r=(0,J.findCardType)(t);r?(w(r.name),e=r.valid_length[0],t=t.slice(0,e),"amex"===r.name?(a.push(t.slice(0,4)),a.push(t.slice(4,10)),a.push(t.slice(10))):a=t.match(/.{1,4}/g)):(w("default"),F(16),a=t.match(/.{1,4}/g)),h(a.join(" "))}},handleExpDateChange:e=>{let t=e.target.value;t.length>g.length?f((0,J.formatExpDatetoMMYY)(t)):f(t)},handleExpDateKeyUp:e=>{(e=>{if(-1!==[8].indexOf(e.keyCode))return e.preventDefault();let t=e.target.value;f((0,J.formatExpDatetoMMYY)(t))})(e)},handleCVCChange:e=>{v(e.target.value)},handleCVCKeyPress:e=>{13!==(e.which||e.keyCode||e.charCode)&&(0,J.preventEnteringChars)(e)},handleHolderNameChange:e=>{x(e.target.value.toUpperCase())},handleHolderNameKeyPress:e=>{13!==(e.which||e.keyCode||e.charCode)&&(0,J.preventSymbolsOnCCHolderName)(e)},handleSubmit:ed,shouldRenderInputs:a!==O.SAFECHARGE_PAYMENT_PROVIDER,skipFormWrapper:!0,disableErrorAnimation:q,holderNameRef:G,errorTextColor:a===O.SAFECHARGE_PAYMENT_PROVIDER?"#e25950":null})}),(0,P.jsx)(R.A,{trigger:$.error&&$.showMessage,type:"slide-up",timeout:250,children:$.error&&$.showMessage&&(0,P.jsx)("div",{className:"manage-subs-error-wrapper",children:(0,P.jsx)("div",{className:"manage-subs-error-msg",children:$.message})})}),(0,P.jsxs)("div",{className:"manage-subs-modal-button-container hide-close-btn-mobile",children:[(0,P.jsx)(k.ButtonCentered,{color:"lightgray5",borderRadius:"4",fontWeight:"400",textSize:"bigger2",minWidth:"100%",padding:"0 16px",onClick:r,disabled:n,className:"rounded-button rounded-button-v2 cancel-btn",children:o("Close")}),(0,P.jsx)("div",{children:(0,P.jsx)(k.ButtonWithIcon,{color:"cyan",borderRadius:"4",fontWeight:"400",textSize:"bigger2",minWidth:"100%",disabled:n,disabledColor:"#e4e4e4",loading:n,onClick:ed,icon:"secureV3",type:"submit",id:"cc-form",text:o("Change","Change"),className:"rounded-button rounded-button-v2"})})]})]})]})},el=({show:e,onClose:t,user:a,userPaymentProvider:r,onUpdatedPaymentSource:s,currency:n})=>{let{t:i}=(0,H.useT)(),[l,o]=(0,C.useState)(!1);(0,C.useEffect)(()=>
1{if(e)return()=>{if("safecharge"===r.short_name&&SFCardNumber){try{SFCardNumber.destroy()}catch(e){}if(SFCardNumber=null,"u">typeof cardExpiry){try{cardExpiry.destroy()}catch(e){}cardExpiry=null}if("u">typeof cardCvc){try{cardCvc.destroy()}catch(e){}cardCvc=null}}o(!1)}},[e]);let c=()=>{l||t()};return(0,P.jsx)(D.default,{opened:e,onClose:c,animate:!0,shouldCloseOnOverlayClick:!l,style:{display:"flex",alignItems:"center",justifyContent:"safe center",flexDirection:"column"},width:"100%",margin:"50px 0",children:(0,P.jsxs)("div",{className:"manage-subs-modal-wrap",children:[(0,P.jsx)("div",{className:"manage-subs-modal-title",children:i("change_payment_details","Change payment details")}),(0,P.jsx)(ei,{user:a,provider:r.short_name,onUpdatedPaymentSource:s,loadingUpdatePaymentSource:l,setLoadingUpdatePaymentSource:o,closeModal:c,currency:n}),(0,P.jsx)(D.OvalModalClose,{className:"manage-subs-oval-modal-close",onClick:c,disabled:l})]})})};var eo=a(13977);let ec=({user:e,subscription:t,paymentSource:a,setPaymentSource:r,disableEdit:s,onLoadedPaymentSource:n=()=>null,onLoadPaymentSourceError:i=e=>null,onLoadedPaypalButton:l=()=>null,onLoadPaypalButtonError:o=e=>null,currency:c})=>{let{t:d}=(0,H.useT)(),[u,p]=(0,C.useState)(!1),[m,h]=(0,C.useState)(!1),[g,f]=(0,C.useState)(null),[b,x]=(0,C.useState)(null),[_,v]=(0,C.useState)(""),[y,w]=(0,C.useState)(!1),j=(0,C.useRef)(null),N=(0,C.useRef)(null);(0,C.useEffect)(()=>{e&&null===a&&S()},[]),(0,C.useEffect)(()=>{if(!t||!e)return;let a=(0,B.nV)(t);f(a),"paypal"===a.short_name&&(j.current?E():T())},[t,e]),(0,C.useEffect)(()=>{null!==b&&I()},[b]),(0,C.useEffect)(()=>{v((0,Q.cz)(a))},[a]);let k=e=>{"show"==e?p(!0):"hide"==e&&p(!1)},S=()=>{let{auth:t}=e;return(0,eo.default)("listpaymentsources",{auth:t,getexpired:1},e=>{r(e),n()},{errorCallback:i,onXhrError:i})},E=()=>{let{products:e,storage:t,traffic:a}=A();j.current.paymentInfo.products=e.join(","),j.current.paymentInfo.storage=t,j.current.paymentInfo.traffic=a},A=()=>{let a=0;return e?.planparams?.traffic&&(a+=e.planparams.traffic),e?.planparams?.additionaltraffic&&(a+=e.planparams.additionaltraffic),{products:t.products,storage:e.planparams?e.planparams.storage:0,traffic:a}},T=async()=>{if(!j.current)try{await Promise.all([(0,ee.loadScript)("https://js.braintreegateway.com/web/3.76.0/js/client.min.js"),(0,ee.loadScript)("https://js.braintreegateway.com/web/3.76.0/js/paypal-checkout.min.js")])}catch(e){p(!1),l(),w(!0);return}let{products:a,storage:r,traffic:s}=A(),n={provider:"paypal",period:t.period,userAuth:e.auth,userId:e.userid,products:a,storage:r,traffic:s,toggleLoader:k,showPaymentError:e=>{o(e)},t:d};j.current=new Q.Zc(n),p(!0),clearTimeout(N.current),N.current=setTimeout(()=>l(),5e3),j.current.getTokenBraintree({refresh:!0,callback:(e,t,a,r)=>x({res:e,successCallback:t,errorCallback:a,skipApiUpdate:r}),onReady:()=>{clearTimeout(N.current),p(!1),l()},height:26})},I=async()=>{"paypal"!==g.short_name&&await new Promise(e=>setTimeout(e,"safecharge"===g.short_name?1e3:600)),(0,eo.default)("listpaymentsources",{auth:e.auth},e=>{r(e),"paypal"===g.short_name?k("hide"):h(!1)},{forceFresh:!0,errorCallback:()=>h(!1),onXhrError:()=>h(!1)})};if(!g)return null;let M="safecharge"===g.short_name||"stripe"===g.short_name||"paypal"===g.short_name,L=_?.expired?"expired":_?.expiressoon?"expires-soon":"";return(0,P.jsxs)("div",{className:`manage-subs-payment-source-wrapper ${L} ${M?"manage-subs-justify-space-between":""}`,children:[(0,P.jsxs)("div",{className:"manage-subs-box-header-wrapper",children:[(0,P.jsx)("div",{className:"manage-subs-box-header-icon manage-subs-icon-width-32 manage-subs-icon-maxheight-26 manage-subs-icon-bradius-0",children:(0,Q.YY)(g,a)}),(0,P.jsx)("div",{className:"manage-subs-box-header-text",children:d("billing_information","Billing information")})]}),"safecharge"===g.short_name||"stripe"===g.short_name?_?(0,P.jsxs)(C.Fragment,{children:[(0,P.jsxs)("div",{className:"payment-source-payment-details-wrapper",children:[(0,P.jsxs)("div",{className:"payment-source-card-number",children:["â¢â¢â¢â¢ â¢â¢â¢â¢ â¢â¢â¢â¢ ",_.last4]}),(0,P.jsx)("div",{className:"payment-source-card-holder-name",children:_.name}),(0,P.jsxs)("div",{className:`payment-source-card-exp-date ${_.expired?"expired":_.expiressoon?"expires-soon":""}`,children:[d("expires_on","Expires on"),": ",_.expmonth,"/",_.expyear]})]}),s?null:(0,P.jsxs)("div",{className:"payment-source-change-payment-details-wrapper",children:[(0,P.jsx)("a",{className:"manage-subs-link",onClick:()=>h(!0),children:d("change_payment_details","Change payment details")}),(0,P.jsx)(el,{show:m,onClose:()=>h(!1),user:e,userPaymentProvider:g,onUpdatedPaymentSource:I,currency:c})]}),_.expiressoon&&!_.expired?(0,P.jsx)("div",{className:"payment-source-card-exp-label expires-soon",children:d("expires_s
1oon","Expires soon")}):null,_.expired?(0,P.jsx)("div",{className:"payment-source-card-exp-label expired",children:d("expired_card","Expired")}):null]}):null:"paypal"===g.short_name?(0,P.jsxs)(C.Fragment,{children:[(0,P.jsxs)("div",{className:"payment-source-payment-details-paypal-wrapper",children:[(0,P.jsx)("div",{className:"payment-source-paypal-label",children:"PayPal"}),(0,P.jsx)("div",{className:"payment-source-paypal-email",children:a&&a.paypal?a.paypal.email:null})]}),y?(0,P.jsx)("div",{className:"payment-source-paypal-change-container"}):(0,P.jsxs)("div",{className:"payment-source-paypal-change-container",children:[(0,P.jsxs)("div",{className:"payment-source-change-paypal-label",children:[d("Change","Change"),":"]}),(0,P.jsxs)("div",{className:`payment-source-paypal-button-container ${u?"payment-source-hide-paypal-btn":""}`,children:[u?(0,P.jsx)("div",{className:"payment-source-blue-button-loading",children:(0,P.jsx)("div",{className:"payment-source-loading"})}):null,(0,P.jsx)("div",{id:"paypal-button"})]})]})]}):(0,P.jsxs)("div",{className:"payment-source-ext-payment-details-wrapper",children:[(0,P.jsx)("div",{className:"payment-source-external-payment-provider-name",children:"vivacom"===g.short_name?g.name.toUpperCase():g.name}),(0,P.jsx)("div",{className:"payment-source-external-payment-provider-description",children:d("ext_provider_desc_"+g.short_name,`To manage your subscription, please go to your ${g.name} account.`)})]})]})},ed=({productIdToRemove:e,subscriptionSummary:t,user:a,userPaymentProvider:r,paymentSource:s=null,onClose:n=()=>{},loadingRemoveProduct:i,setLoadingRemoveProduct:l,onUpdateSuccess:o})=>{let c=(0,C.useMemo)(()=>(0,q.getRemoveProductTextsMap)(),[]),{t:d}=(0,H.useT)();(0,C.useEffect)(()=>()=>{m({show:!1,message:""})},[]);let{updateSubscription:u,updateSubscriptionErrorMsg:p,setUpdateSubscriptionErrorMsg:m}=(0,$.M)({user:a,userPaymentProvider:r,paymentSource:s,loadingUpdateSubscription:i,setLoadingUpdateSubscription:l,onUpdateSuccess:o,currency:t?.currency});return(0,P.jsx)(C.Fragment,{children:(0,P.jsxs)(C.Fragment,{children:[(0,P.jsxs)("div",{className:"manage-subs-confirmation-description-wrapper",children:[(0,P.jsx)("div",{className:"manage-subs-confirmation-description-title",children:d("warning_irreversible_action","Be careful. You cannot reverse this action.")}),(0,P.jsx)("div",{className:"manage-subs-confirmation-description-text",children:e&&c[e]?c[e].text:d("remove_storage_description","Removing your storage plan will downgrade your account and may lead to the loss of important files.")}),(0,P.jsx)("div",{className:"manage-subs-confirmation-text",children:d("confirmation_question","Do you still wish to proceed?")}),(0,P.jsx)(R.A,{trigger:p.show,type:"slide-up",timeout:250,children:p.show&&(0,P.jsx)("div",{className:"manage-subs-error-wrapper",children:(0,P.jsx)("div",{className:"manage-subs-error-msg",children:p.message})})})]}),(0,P.jsxs)("div",{className:"manage-subs-modal-button-container",children:[(0,P.jsxs)(k.ButtonCentered,{color:"red2",borderRadius:"4",fontWeight:"400",textSize:"bigger2",minWidth:"100%",padding:"0 16px",disabled:i,disabledColor:"#e4e4e4",loading:i,onClick:()=>{let a=t.products.findIndex(t=>t==e);if(-1===a)return o(),!0;let r=[...t.products];r.splice(a,1),u({period:t.period,products:r})},className:"rounded-button rounded-button-v2 btn-warning-transparent",children:[(0,P.jsx)("span",{className:"hide-on-mobile",children:d("Remove")}),(0,P.jsx)("span",{className:"show-on-mobile",children:d("Yes")})]}),(0,P.jsxs)(k.ButtonCentered,{color:"cyan",borderRadius:"4",fontWeight:"400",textSize:"bigger2",minWidth:"100%",padding:"0 16px",onClick:n,disabled:i,className:"rounded-button rounded-button-v2",children:[(0,P.jsx)("span",{className:"hide-on-mobile",children:d("keep_service","Keep service")}),(0,P.jsx)("span",{className:"show-on-mobile",children:d("No")})]})]})]})})},eu=({show:e=!0,onClose:t=()=>{},productIdToRemove:a,subscriptionSummary:r,user:s,userPaymentProvider:n,paymentSource:i=null,onRemovedProduct:l})=>{let{t:o}=(0,H.useT)(),[c,d]=(0,C.useState)(!1),[u,p]=(0,C.useState)(q.productNameMap[a].short);(0,C.useEffect)(()=>{a===U.ADDITIONAL_TRAFFIC_ID&&p(q.productNameMap[a].long.replace("%amount%",(0,z.getPlanTtraffic)((0,z.getUserTtrafficCount)(s))))},[]),(0,C.useEffect)(()=>
1((void 0===a||r.externalPaymentProvider)&&m(),()=>{d(!1)}),[e]);let m=()=>{c||t()};return(0,P.jsx)(D.default,{opened:e,onClose:m,animate:!0,shouldCloseOnOverlayClick:!c,style:{display:"flex",alignItems:"center",justifyContent:"safe center",flexDirection:"column"},width:"100%",margin:"50px 0",children:(0,P.jsxs)("div",{className:"manage-subs-modal-wrap",children:[(0,P.jsx)("div",{className:"manage-subs-modal-title",children:o("remove_product_name","Remove %product_name%").replace("%product_name%",u)}),(0,P.jsx)(ed,{productIdToRemove:a,subscriptionSummary:r,user:s,userPaymentProvider:n,paymentSource:i,onClose:m,loadingRemoveProduct:c,setLoadingRemoveProduct:d,onUpdateSuccess:l}),(0,P.jsx)(D.OvalModalClose,{className:"manage-subs-oval-modal-close",onClick:m,disabled:c})]})})},ep=({user:e,subscriptionSummary:t,subscribedProducts:a,lifetimeProducts:r=(0,B.BZ)(e),additionalSubscriptions:s,userPaymentProvider:n,paymentSource:i,onUpdatedSubscription:l,pricingPageURL:o,pricingPagePassURL:c,trafficPageURL:d,familyPageURL:u})=>{let p,m,{t:h}=(0,H.useT)(),[g,f]=(0,C.useState)([]),[b,x]=(0,C.useState)([]);(0,ee.isInternetExplorer)();let _=async(e,a,r)=>{a&&a(),await l(t.period),f([])},v=e=>(0,P.jsx)("div",{className:"subscribed-product-upgrade-btn-wrapper",children:(0,P.jsx)(k.ButtonCentered,{as:G(),href:e,color:"cyan",borderRadius:"4",fontWeight:"400",textSize:"bigger2",padding:"0 24px",className:"rounded-button rounded-button-v2",children:h("UPGRADE","Upgrade")})}),y=({planId:t,period:r})=>{if(a.disableUpgradeButton)return null;let s="";switch(t){case U.PREMIUM_PLAN_ID:s=o+(-1===o.search(/[?]/)?"?":"&")+"period="+r;break;case U.PREMIUM_PLUS_PLAN_ID:s=o+(-1===o.search(/[?]/)?"?":"&")+"period=lifetime";break;case U.ADDITIONAL_TRAFFIC_ID:(0,z.getUserTtrafficCount)(e,!0)<U.MAX_TRAFFIC_COUNT_PER_PERIOD[r]&&(s=d+(-1===d.search(/[?]/)?"?":"&")+"period="+r);break;default:return null}return""!=s?v(s):null},w=t=>{if(a.disableUpgradeButton)return null;let r="";switch(t.id){case U.PREMIUM_PLAN_ID:case U.PREMIUM_PLUS_PLAN_ID:case U.CUSTOM4TB_PLAN_ID:case U.CUSTOM_PLAN_ID:case U.PRO_PLAN_ID:case U.ULTRA_PLAN_ID:t.id===U.CUSTOM_PLAN_ID&&e.planparams&&e.planparams.storage>=U.MAX_CUSTOM_STORAGE_COUNT||t.id===U.CUSTOM4TB_PLAN_ID&&e.planparams&&e.planparams.storage>1||(r=o+(-1===o.search(/[?]/)?"?":"&")+"period=lifetime");break;case U.FAMILY2TB_PLAN_ID:case U.FAMILY_CUSTOM_PLAN_ID:t.id===U.FAMILY_CUSTOM_PLAN_ID&&e.planparams&&e.planparams.storage>=U.MAX_FAMILY_STORAGE_COUNT||(r=u+(-1===u.search(/[?]/)?"?":"&"));break;case U.ADDITIONAL_TRAFFIC_ID:(0,z.getUserTtrafficCount)(e,!0)<U.MAX_TRAFFIC_COUNT_PER_PERIOD.lifetime&&(r=d+(-1===d.search(/[?]/)?"?":"&")+"period=lifetime");break;default:return null}return""!=r?v(r):null};return t?(0,P.jsxs)("div",{className:"subscribed-products-wrapper",children:[0==a.products.length?null:(0,P.jsxs)("div",{className:"subscribed-products-inner-wrapper",children:[(0,P.jsx)("div",{className:"subscribed-products-header-text",children:1!=a.products.length?h("your_active_srvices","Your active services"):h("your_active_service","Your active service")}),(0,P.jsx)("div",{className:"subscribed-products-list-wrapper",children:a.products.map(r=>{let s=q.productNameMap[r.id].long;if(r.id==U.ADDITIONAL_TRAFFIC_ID&&(s=s.replace("%amount%",(0,z.getPlanTtraffic)((0,z.getUserTtrafficCount)(e,!0)))),r.id==U.CUSTOM4TB_PLAN_ID){let t=e?.planparams?.storage;t&&(s+=" "+(0,z.renderQuota)(0x20000000000*t,!0))}return(0,P.jsxs)("div",{className:`subscribed-product-wrapper ${0==r.pricecents?"gray-background":""}`,children:[(0,P.jsxs)("div",{className:"subscribed-product-header",children:[(0,P.jsx)("div",{className:"subscribed-product-name",children:s}),r.pricecents>0?(0,P.jsx)("div",{className:"subscribed-product-prices-container",children:a?.currency?.toLocaleLowerCase()==="bgn"?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"subscribed-product-price",children:[(0,P.jsx)("div",{className:"subscribed-product-price-value",children:(r.pricecents/100/1.95583).toFixed(2)}),(0,P.jsx)("div",{className:"subscribed-product-price-currency",children:"EUR"})]}),(0,P.jsxs)("div",{className:"subscribed-product-price",children:[(0,P.jsxs)("div",{className:"subscribed-product-price-value",children:["(",r.pricecents/100]}),(0,P.jsxs)("div",{className:"subscribed-product-price-currency",children:[O.signToCurrency[a.currency],")"]})]})]}):(0,P.jsxs)("div",{className:"subscribed-product-price",children:[(0,P.jsx)("div",{className:"subscribed-product-price-value",children:r.pricecents/100}),(0,P.jsx)("div",{className:"subscribed-product-price-currency",children:O.signToCurrency[a.currency]})]})}):null]}),(0,P.jsxs)("div",{className:"subscribed-product-actions-wrapper",children:[t.externalPaymentProvider||a.disableRemoveProduct||!(a.products.length>1)?null:(0,P.jsxs)(C.Fragment,{children:[(0,P.jsx)("div",{className:"subscribed-product-remove-link-wrapper",children:(0,P.jsx)("a",{className:"manage-subs-link",onClick:()=>f({[r.id]:!0}),children:h("Remove","Remove")})}),(0,P.jsx)(eu,{show:void 0!==g[r.id],onClose:()=>f([]),subscriptionSummary:t,productIdToRemove:r.id,user:e,userPaymentProvider:n,paymentSource:i,onRemovedProduct:_})]}),y({planId:r.id,period:a.period})]})]},r.id)})})]}),0===r.length?null:(0,P.jsxs)("div",{className:"subscribed-products-inner-wrapper",children:[(0,P.jsx)("div",{className:"subscribed-products-header-text",children:1!=r.length?h("your_lifetime_services","Your Lifetime services"):h("your_lifetime_service","Your Lifetime service")}),(0,P.jsx)("div",{className:"subscribed-products-list-wrapper",children:r.map(e=>(0,P.jsxs)("div",{className:"subscribed-product-wrapper gray-background",children:[(0,P.jsxs)("div",{className:"subscribed-product-header",children:[(0,P.jsx)("div",{className:"subscribed-product-name",children:e.name}),(0,P.jsx)("div",{className:"subscribed-product-period-label",children:h("Lifetime","Lifetime")}
1)]}),(0,P.jsx)("div",{className:"subscribed-product-actions-wrapper",children:w(e)})]},e.id))})]}),(p=[],m={},s.forEach(e=>{m[e.provider]||(m[e.provider]=[e])}),Object.entries(m).forEach(([e,t])=>{let a=(0,B.nV)(t[0]);if(!a)return null;p.push((0,P.jsxs)("div",{className:"subscribed-products-inner-wrapper",children:[(0,P.jsx)("div",{className:"subscribed-products-header-text",children:(1===t.length?h("your_provider_subscription","Your %provider_name% subscription"):h("your_provider_subscriptions","Your %provider_name% subscriptions")).replace("%provider_name%","vivacom"===a.short_name?a.name.toUpperCase():a.name)}),t.map(e=>{let t,r;return(0,P.jsxs)("div",{className:"subscribed-products-list-wrapper",children:[(t=e,r=a,t.products.map(e=>q.productNameMap[e]?(0,P.jsxs)("div",{className:"subscribed-product-wrapper gray-background",children:[(0,P.jsx)("div",{className:"subscribed-product-header",children:(0,P.jsx)("div",{className:"subscribed-product-name",children:q.productNameMap[e].long})}),(0,P.jsxs)("div",{className:"subscribed-product-description",children:[(0,P.jsx)("div",{className:"manage-subs-provider-icon",children:(0,Q.YY)(r)}),(0,P.jsx)("div",{className:"subscribed-product-provider-description-text",children:h("ext_provider_product_desc_"+r.short_name,`This subscription is made via your ${r.name} account.`)})]}),t.iscancelable&&1===t.products.length?(0,P.jsx)("div",{className:"subscribed-product-actions-wrapper",children:(0,P.jsx)("div",{className:"subscribed-product-remove-link-wrapper",children:(0,P.jsx)("a",{className:"manage-subs-link",onClick:()=>x({[t.id]:!0}),children:h("cancel_subs_modal_bnt_cancel","Cancel subscription")})})}):null]},e):null)),e.iscancelable&&e.products.length>1?(0,P.jsx)("div",{className:"subscribed-product-cancel-subscription-link-wrapper",children:(0,P.jsx)("a",{className:"manage-subs-link",onClick:()=>x({[e.id]:!0}),children:h("cancel_provider_name_subscription","Cancel %provider_name% subscription").replace("%provider_name%",a.name)})}):null,e.iscancelable?(0,P.jsx)(K,{title:h("cancel_provider_name_subscription","Cancel %provider_name% subscription").replace("%provider_name%",a.name),show:void 0!==b[e.id],onClose:()=>x([]),subscriptionIdToCancel:e.id,cancelSubscriptionWithSingleProductId:e.products&&1===e.products.length?e.products[0]:null,cancelSubscriptionPageURL:cancelSubscriptionPageURL}):null]},e.id)})]},e))}),p)]}):null};function em(){return(em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let eh=function(e){return C.createElement("svg",em({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none"},e),o||(o=C.createElement("circle",{id:"ellipse-bigger_svg__Ellipse 1",cx:20,cy:20,r:20,fill:"#58BBCD",fillOpacity:.24})))};function eg(){return(eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let ef=function(e){return C.createElement("svg",eg({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),C.createElement("g",{id:"external-link_svg__open_in_new"},C.createElement("mask",{id:"external-link_svg__mask0_897_16458",width:14,height:14,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},c||(c=C.createElement("path",{id:"external-link_svg__Bounding box",fill:"#D9D9D9",d:"M0 0h14v14H0z"}))),d||(d=C.createElement("g",{mask:"url(#external-link_svg__mask0_897_16458)"},C.createElement("path",{id:"external-link_svg__open_in_new_2",fill:"#17BED0",d:"M3.15 11.902q-.434 0-.741-.309a1 1 0 0 1-.309-.741v-7.7q0-.434.309-.742.307-.308.741-.308h3.325a.5.5 0 0 1 .374.15q.15.15.151.371 0 .222-.15.375a.5.5 0 0 1-.375.154H3.15v7.7h7.7V7.527a.5.5 0 0 1 .15-.375q.15-.15.372-.15t.375.15.153.375v3.325q0 .432-.308.741a1.01 1.01 0 0 1-.742.309zm7.7-8.007L6.008 8.737a.48.48 0 0 1-.364.153.53.53 0 0 1-.365-.168.51.51 0 0 1 0-.743l4.827-4.827h-1.18a.5.5 0 0 1-.375-.15.5.5 0 0 1-.15-.372q0-.222.15-.375
1a.5.5 0 0 1 .374-.153H11.9v2.975a.5.5 0 0 1-.15.374q-.15.15-.372.15a.51.51 0 0 1-.375-.15.5.5 0 0 1-.153-.374z"})))))};function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}function e_(){return(e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let ey={[U.CRYPTO_PLAN_ID]:{description:{t_text:"manage_subscription_crypto_tooltip"},addLinkText:{t_text:"add_encryption"},icon:{svg:(0,P.jsx)(function(e){return C.createElement("svg",eb({xmlns:"http://www.w3.org/2000/svg",width:40,height:34,fill:"none"},e),C.createElement("g",{id:"encryption_svg__add-ons icons"},C.createElement("mask",{id:"encryption_svg__mask0_897_16448",width:40,height:40,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},u||(u=C.createElement("path",{id:"encryption_svg__Bounding box",fill:"#D9D9D9",d:"M0 0h40v40H0z"}))),p||(p=C.createElement("g",{mask:"url(#encryption_svg__mask0_897_16448)"},C.createElement("path",{id:"encryption_svg__encrypted",fill:"#17BED0",d:"M17.5 25.003h5l-.959-5.375a3.15 3.15 0 0 0 1.313-1.209q.48-.79.48-1.75a3.2 3.2 0 0 0-.98-2.354 3.2 3.2 0 0 0-2.354-.98 3.2 3.2 0 0 0-2.354.98 3.2 3.2 0 0 0-.98 2.354q0 .96.48 1.75.48.791 1.312 1.209zM20 36.669q-5.792-1.458-9.563-6.646-3.77-5.187-3.77-11.52V8.336l13.333-5 13.333 5v10.167q0 6.333-3.77 11.52Q25.79 35.211 20 36.67m0-3.5q4.334-1.374 7.166-5.5Q30 23.544 30 18.503v-7.875l-10-3.75-10 3.75v7.875q0 5.04 2.833 9.166 2.834 4.125 7.167 5.5"})))))},{}),hasEllipseIconBackground:!0}},[U.EFH_PLAN_ID]:{description:{t_text:"manage_subscription_efh_tooltip"},addLinkText:{t_text:"add_efh"},icon:{svg:(0,P.jsx)(function(e){return C.createElement("svg",ev({xmlns:"http://www.w3.org/2000/svg",width:40,height:33,fill:"none"},e),C.createElement("g",{id:"efh_svg__add-ons icons"},C.createElement("mask",{id:"efh_svg__mask0_2000_23985",width:40,height:40,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},f||(f=C.createElement("path",{id:"efh_svg__Bounding box",fill:"#D9D9D9",d:"M0 0h40v40H0z"}))),b||(b=C.createElement("g",{mask:"url(#efh_svg__mask0_2000_23985)"},C.createElement("path",{id:"efh_svg__restore_page",fill:"#17BED0",d:"M20 29.586q3.25 0 5.583-2.333t2.334-5.584q0-3.249-2.334-5.583-2.332-2.334-5.583-2.333a7.5 7.5 0 0 0-2.959.583 8.5 8.5 0 0 0-2.458 1.583v-2.583h-2.5v7.083h7.083v-2.5h-3a5.4 5.4 0 0 1 1.709-1.208A5 5 0 0 1 20 16.253q2.25 0 3.833 1.583 1.584 1.584 1.584 3.833t-1.584 3.834T20 27.086q-1.833 0-3.209-1.063a5.8 5.8 0 0 1-1.958-2.687H12.25q.583 2.709 2.729 4.48 2.145 1.77 5.02 1.77m-10 7.083a3.2 3.2 0 0 1-2.354-.979 3.2 3.2 0 0 1-.98-2.354V6.669q0-1.374.98-2.354A3.2 3.2 0 0 1 10 3.335h13.333l10 10v20a3.2 3.2 0 0 1-.979 2.355 3.2 3.2 0 0 1-2.354.98zm0-3.333h20V14.753l-8.084-8.084H10z"})))))},{}),hasEllipseIconBackground:!0}},[U.ADDITIONAL_TRAFFIC_ID]:{description:{t_text:"manage_subscription_traffic_tooltip"},addLinkText:{t_text:"add_extra_traffic"},icon:{svg:(0,P.jsx)(function(e){return C.createElement("svg",ex({xmlns:"http://www.w3.org/2000/svg",width:35,height:30,fill:"none"},e),C.createElement("g",{id:"traffic_svg__add-ons icons"},C.createElement("g",{id:"traffic_svg__add_link"},C.createElement("mask",{id:"traffic_svg__mask0_626_21783",width:50,height:50,x:-5,y:-6,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},m||(m=C.createElement("path",{id:"traffic_svg__Bounding box",fill:"#D9D9D9",d:"M-4.484 18.516h34.648v34.648H-4.484z",transform:"rotate(-45 -4.484 18.516)"}))),h||(h=C.createElement("g",{mask:"url(#traffic_svg__mask0_626_21783)"},C.createElement("path",{id:"traffic_svg__add_link_2",fill:"#17BED0",d:"m26.839 16.638-2.435 2.434q-.51.51-1.187.496-.675-.015-1.187-.526-.51-.51-.51-1.202 0-.69.51-1.202l2.404-2.404-2.404-2.404q-.51-.511-.51-1.202 0-.692.51-1.202.511-.511 1.202-.511t1.203.51l2.404 2.405 2.404-2.404q.51-.511 1.202-.511.69 0 1.202.51.51.511.51 1.203 0 .69-.51 1.202l-2.404 2.404 2.404 2.404q.51.51.51 1.202 0 .691-.51 1.202-.51.51-1.202.511-.691 0-1.202-.51zm-8.415 8.415-3.606 3.606q-2.494 2.494-6.01 2.494-3.517 0-6.011-2.494t-2.494-6.01 2.494-6.011l3.606-3.606q.511-.51 1.202-.511.692 0 1.202.51.511.512.511 1.203 0 .69-.51 1.202L5.2 19.042Q3.698 20.545 3.7 22.648q0 2.104 1.502 3.607 1.503 1.502 3.606 1.502 2.104 0 3.607-1.502l3.606-3.607q.51-.51 1.202-.51.69 0 1.202.51.51.512.511 1.203 0 .69-.51 1.202m-6.01-3.607q-.511.51-1.202.511-.692 0-1.203-.51-.51-.512-.51-1.203 0-.69.51-1.202l7.213-7.212q.51-.51 1.202-.511.691 0 1.202.51.51.511.511 1.203 0 .69-.51 1.202zM26.839 4.617l-2.404 2.404Q22.932 5.52 20.828 5.52T17.222 7.02l-3.636 3.637q-.511.51-1.187.495-.677-.015-1.187-.525-.511-.512-.511-1.202 0-.691.51-1.203l3.607-3.606q2.494-2.494 6.01-2.494 3.517 0 6.01 2.494"}))))))},{}
1),hasEllipseIconBackground:!0}},[U.PREMIUM_PLAN_ID]:{description:{t_text:"manage_subscription_premium_tooltip"},addLinkText:{t_text:"add_storage"}},[U.PREMIUM_PLUS_PLAN_ID]:{description:{t_text:"manage_subscription_premium_tooltip"},addLinkText:{t_text:"add_storage"}},[U.CUSTOM4TB_PLAN_ID]:{description:{t_text:"manage_subscription_premium_tooltip"},addLinkText:{t_text:"add_storage"}},[U.FAMILY2TB_PLAN_ID]:{description:{t_text:"manage_subscription_family_tooltip"},addLinkText:{t_text:"add_short"}},[U.FAMILY_CUSTOM_PLAN_ID]:{description:{t_text:"manage_subscription_family_tooltip"},addLinkText:{t_text:"add_short"}},[U.CUSTOM_PLAN_ID]:{description:{t_text:"manage_subscription_premium_tooltip"},addLinkText:{t_text:"add_storage"}},[U.PASS_PREMIUM_PLAN_ID]:{description:{t_text:"manage_subscription_ppass_tooltip"},addLinkText:{t_text:"add_pcloud_pass"},icon:{svg:(0,P.jsx)(function(e){return C.createElement("svg",e_({xmlns:"http://www.w3.org/2000/svg",width:40,height:26,fill:"none"},e),g||(g=C.createElement("g",{id:"pcloud-pass_svg__pcloud pass"},C.createElement("path",{id:"pcloud-pass_svg__Ellipse 863",fill:"#fff",d:"M19.999 24.386c6.28 0 11.373-5.092 11.373-11.373S26.28 1.641 19.999 1.641 8.626 6.732 8.626 13.013 13.718 24.386 20 24.386"}),C.createElement("path",{id:"pcloud-pass_svg__Subtraction 886",fill:"#746DE4",d:"M33.708 25.94H9.513a9.45 9.45 0 0 1-6.727-2.807A9.6 9.6 0 0 1 0 16.357 10 10 0 0 1 .608 12.9a9.4 9.4 0 0 1 1.689-2.886A9.12 9.12 0 0 1 8.11 6.89c-.578 1.273-.877 2.713-.94 4.53h.085a12.95 12.95 0 0 1 4.201-8.081 12.764 12.764 0 0 1 17.094 0 12.95 12.95 0 0 1 4.202 8.083h.08c-.075-1.723-.418-3.265-1.018-4.582q.27-.036.544-.029a5.32 5.32 0 0 1 3.801 1.583 5.43 5.43 0 0 1-1.345 8.642c1.315-.545 2.332-1.441 2.865-2.525a6.2 6.2 0 0 1 1.709 2.16 6.565 6.565 0 0 1-1.227 7.325 6.37 6.37 0 0 1-4.453 1.935zM19.995 2.59a10.2 10.2 0 0 0-4.013.818 10.3 10.3 0 0 0-3.277 2.232 10.473 10.473 0 0 0 0 14.727 10.3 10.3 0 0 0 3.277 2.232 10.25 10.25 0 0 0 8.026 0 10.3 10.3 0 0 0 3.277-2.232 10.473 10.473 0 0 0 0-14.727 10.3 10.3 0 0 0-3.277-2.232 10.2 10.2 0 0 0-4.013-.818m0 19.565c-4.996 0-9.06-4.105-9.06-9.152s4.064-9.151 9.06-9.151 9.06 4.105 9.06 9.151c0 5.047-4.064 9.152-9.06 9.152M17.183 7.322a1.564 1.564 0 0 0-1.562 1.562v8.236a1.562 1.562 0 1 0 3.124 0v-1.593h2.906v-.001a4 4 0 0 0 1.487-.322 4 4 0 0 0 1.291-.879 4.126 4.126 0 0 0 0-5.801 4 4 0 0 0-1.29-.88 4 4 0 0 0-1.488-.32v-.002zm4.362 5.365h-2.8v-2.524h2.8a1.263 1.263 0 0 1 0 2.524"}))))},{}),hasEllipseIconBackground:!1}}},ew=({subscription:e,upsellProducts:t,pricingPageURL:a,cryptoPageURL:r,pricingPagePassURL:s,trafficPageURL:n,familyPageURL:i,checkoutPageURL:l})=>{let{t:o}=(0,H.useT)();return 0===t.length?null:(0,P.jsx)("div",{className:"upsell-products-wrapper",children:t.map(t=>{if(!q.productNameMap[t.id]||!ey[t.id])return null;let c=(t=>{let o="";switch(t){case U.CRYPTO_PLAN_ID:o=r;break;case U.EFH_PLAN_ID:o=l+(-1===l.search(/[?]/)?"?":"&")+"period="+e.period+"&product=extended-history";break;case U.ADDITIONAL_TRAFFIC_ID:o=n;break;case U.PREMIUM_PLAN_ID:case U.PREMIUM_PLUS_PLAN_ID:case U.CUSTOM4TB_PLAN_ID:case U.CUSTOM_PLAN_ID:o=a;break;case U.FAMILY2TB_PLAN_ID:case U.FAMILY_CUSTOM_PLAN_ID:o=i;break;case U.PASS_PREMIUM_PLAN_ID:o=s}return o})(t.id);if(""===c)return null;let d=q.productNameMap[t.id].long;return t.id==U.ADDITIONAL_TRAFFIC_ID&&(d=d.replace("%amount%",(0,z.getPlanTtraffic)(U.MIN_TRAFFIC_COUNT))),(0,P.jsxs)("div",{className:"upsell-product-wrapper",children:[(0,P.jsx)("div",{className:"upsell-product-icon-wrapper",children:(0,P.jsx)("div",{className:"upsell-product-icon",children:ey[t.id].icon?ey[t.id].icon.hasEllipseIconBackground?(0,P.jsxs)(C.Fragment,{children:[(0,P.jsx)(eh,{}),(0,P.jsx)("div",{className:"upsell-product-icon-inner-wrapper",children:ey[t.id].icon.svg})]}):ey[t.id].icon.svg:null})}),(0,P.jsxs)("div",{className:"upsell-product-info-wrapper",children:[(0,P.jsx)("div",{className:"upsell-product-name",children:d}),(0,P.jsx)("div",{className:"upsell-product-description",children:o(ey[t.id].description)}),(0,P.jsx)("div",{className:"upsell-product-external-link",children:(0,P.jsxs)(G(),{className:"manage-subs-link",target:"_blank",href:c,children:[o(ey[t.id].addLinkText),(0,P.jsx)("span",{className:"upsell-product-external-link-icon-wrapper",children:(0,P.jsx)(ef,{})})]})})]})]},t.id)})})};function ej(){return(ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let eN=function(e){return C.createElement("svg",ej({xmlns:"http://www.w3.org/2000/svg",width:251,height:213,fill:"none"},e),C.createElement("g",{id:"blank-screen-devices_svg__Group 1"},C.createElement("g",{id:"blank-screen-devices_svg__desktop_windows"},C.createElement("mask",{id:"blank-screen-devices_svg__mask0_639_23500",width:200,height:200,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},x||(x=C.createElement("path",{id:"blank-screen-devices_svg__Bounding box",fill:"#D9D9D9",d:"M0 0h200v200H0z"}))),_||(_=C.createElement("g",{mask:"url(#blank-screen-devices_svg__mask0_639_23500)"},C.createElement("path",{id:"blank-screen-devices_svg__desktop_windows_2",fill:"#ECECF0",d:"M94.167 158.336v-16.667H40q-5.416 0-8.958-3.541t-3.542-8.959V48.336q0-5.416 3.542-8.958 3.54-3.542 8.958-3.542h120q5.417 0 8.958 3.542 3.542 3.54 3.542 8.958v80.833q0 5.417-3.542 8.959T160 141.669h-54.167v16.66
17h13.75q1.25 0 2.084.833.833.834.833 2.084t-.833 2.083q-.834.834-2.084.833H80.417q-1.25 0-2.084-.833-.833-.834-.833-2.083t.833-2.084q.833-.833 2.084-.833zM40 135.836h120q2.5 0 4.583-2.083t2.084-4.584V48.336q0-2.5-2.084-4.583-2.083-2.085-4.583-2.084H40q-2.5 0-4.583 2.084t-2.084 4.583v80.833q0 2.5 2.084 4.584T40 135.836"})))),v||(v=C.createElement("path",{id:"blank-screen-devices_svg__Rectangle 3",fill:"#fff",d:"M113 83h112v85H113z"})),C.createElement("g",{id:"blank-screen-devices_svg__laptop_mac"},C.createElement("mask",{id:"blank-screen-devices_svg__mask1_639_23500",width:164,height:164,x:87,y:49,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},y||(y=C.createElement("path",{id:"blank-screen-devices_svg__Bounding box_2",fill:"#D9D9D9",d:"M87 49h164v164H87z"}))),w||(w=C.createElement("g",{mask:"url(#blank-screen-devices_svg__mask1_639_23500)"},C.createElement("path",{id:"blank-screen-devices_svg__laptop_mac_2",fill:"#ECECF0",d:"M103.058 179.174q-2.904 0-5.04-2.135-2.135-2.135-2.135-5.04H119.8q-4.442 0-7.346-2.904t-2.904-7.346V88.633q0-4.442 2.904-7.346t7.346-2.904h98.4q4.442 0 7.346 2.904t2.904 7.346v73.116q0 4.442-2.904 7.346t-7.346 2.904h23.917q0 2.905-2.136 5.04-2.135 2.136-5.039 2.135zM169 176.783q1.366 0 2.392-1.025 1.025-1.026 1.025-2.392t-1.025-2.392q-1.026-1.025-2.392-1.025t-2.392 1.025q-1.025 1.026-1.025 2.392t1.025 2.392q1.026 1.025 2.392 1.025m-49.2-9.567h98.4q2.05 0 3.758-1.708 1.709-1.709 1.709-3.759V88.633q0-2.05-1.709-3.758-1.708-1.71-3.758-1.709h-98.4q-2.05 0-3.758 1.709-1.709 1.707-1.709 3.758v73.116q0 2.05 1.709 3.759 1.708 1.708 3.758 1.708"}))))))};function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let eC=function(e){return C.createElement("svg",eP({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),C.createElement("g",{id:"warning_svg__warning"},C.createElement("mask",{id:"warning_svg__mask0_793_22775",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},j||(j=C.createElement("path",{id:"warning_svg__Bounding box",fill:"#D9D9D9",d:"M0 0h20v20H0z"}))),N||(N=C.createElement("g",{mask:"url(#warning_svg__mask0_793_22775)"},C.createElement("path",{id:"warning_svg__warning_2",fill:"#1C1B1F",fillOpacity:.5,d:"M2.271 17.5a.811.811 0 0 1-.708-.417.9.9 0 0 1-.115-.406.75.75 0 0 1 .115-.427L9.27 2.917a.8.8 0 0 1 .323-.313A.86.86 0 0 1 10 2.5q.208 0 .406.104a.8.8 0 0 1 .323.313l7.709 13.333a.75.75 0 0 1 .114.427.9.9 0 0 1-.114.406.81.81 0 0 1-.709.417zm7.73-2.5q.353 0 .593-.24t.24-.593a.8.8 0 0 0-.24-.594.8.8 0 0 0-.594-.24.8.8 0 0 0-.594.24.8.8 0 0 0-.24.594q0 .354.24.593.24.24.594.24m0-2.5q.353 0 .593-.24t.24-.593v-2.5a.8.8 0 0 0-.24-.594.8.8 0 0 0-.594-.24.8.8 0 0 0-.594.24.8.8 0 0 0-.24.594v2.5q0 .354.24.593.24.24.594.24"})))))};var ek=a(47520),eS=a(88032),eE=a(93344),eA=a(37500);let eT=({initialUser:e,initialUserSubscriptions:t=null,initialUserPaymentSource:a=null,cancelSubscriptionPageURL:r="/cancel-subscription",pricingPageURL:s="/cloud-storage-pricing-plans",pricingPagePassURL:n="/pass/pricing-and-plans",cryptoPageURL:i="/encrypted-cloud-storage",trafficPageURL:l="/additional-traffic",familyPageURL:o="/family",checkoutPageURL:c="/checkout"})=>{let{t:d}=(0,H.useT)(),u=(0,eE.m)("ManageSubscriptionsSection"),{ipData:p}=(0,eA.Y)(),m="string"==typeof p?.country?p.country.toLowerCase():"",[h,g]=(0,C.useState)(a),[f,b]=(0,C.useState)(e&&(null===t||null===a)),x=(0,ee.isInternetExplorer)(),_=(0,C.useRef)({loadedSubscriptionInfo:!1,loadedPaypalButton:!1});(0,C.useEffect)(()=>{e&&(null===t||null===a)?w():j||u?.()},[]);let v=e=>{_.current[e]=!0},y=()=>!Object.keys(_.current).some(e=>!_.current[e])&&(u?.(),!0),w=e=>{u?.(),b(!0)},{user:j,subscription:N,subscriptionSummary:S,subscribedProducts:E,lifetimeProducts:A,upsellProductsForOutput:T,additionalSubscriptions:I,onUpdatedSubscription:M}=(({initialUser:e,initialUserSubscriptions:t,country:a,setPageDataIsFetched:r,checkAllDataIsFetched:s,onSectionDataReady:n,onLoadRequiredPageDataError:i,requiredPageDataToFetchStatuses:l})=>{let[o,c]=(0,C.useState)(e),[d,u]=(0,C.useState)(null),[p,m]=(0,C.useState)(null),[h,g]=(0,C.useState)({products:[],currency:null,period:null,disableRemoveProduct:!1,disableUpgradeButton:!1}),[f,b]=(0,C.useState)([]),[x,_]=(0,C.useState)([]),[v,y]=(0,C.useState)([]),[w,j]=(0,C.useState)([]),[N,P]=(0,C.useState)([]),k=(0,ee.isInternetExplorer)();(0,C.useEffect)(()=>{t&&S(t)},[]),(0,C.useEffect)(()=>{o&&b((0,B.BZ)(o))},[o]),(0,C.useEffect)(()=>{let e=[];h&&h.products.length>0&&e.push(...h.products.map(e=>e.id)),N.length>0&&N.map(t=>{t.products.length>0&&e.push(...t.products)}),f.length>0&&e.push(...f.map(e=>e.id)),_(e)},[h.products,N,f]),(0,C.useEffect)(()=>{j(x.length>0?v.filter(e=>!x.includes(e.id)):v)},[v,x]);let S=e=>{let t=E(e);t?(u(t),e.length>1&&P(e.filter(e=>"canceled"!==e.status&&e!==t)),(0,B.xG)(t)?(delete l.current.loadedSubscriptionInfo,delete l.current.loadedPaymentSource,delete l.current.loadedPaypalButton,s(n),M(t)):("paypal"!==(0,B.nV)(t).short_name&&delete l.current.loadedPaypalButton,A(t))):n?.()},E=e=>{let t=e.find(e=>"canceled"!==e.status&&e.canedit);return!t&&(o&&o.lastsubscription&&"canceled"!==o.lastsubscription.status&&o.lastsubscription.products.length>0&&(t=e.find(e=>"canceled"!==e.status&&e.id===o.lastsubscription.id)),t||(t=e.find(e=>"canceled"!==e.status))),t},A=e=>{if(!o||!e)return;let t=(0,B.nV)(e),a=(0,B.Nx)(t);null===a?u(null):(0,B.Sz)({user:o,getNextBilling:!0,paymentView:a,cardProvider:(0,B.g7)(t)},t=>{r("loadedSubscriptionInfo"),s(n),t.period=e.period,I(t,e)},i)},T=async e=>{let t=null,a=null,r=null,s=null,{auth:n}=o,i=[new Promise(async e=>{console.log(window?.apiConfig?.apiServer),t=await (0,ek.default)(n,()=>{},{apiServer:window?.apiConfig?.apiServer,forceFresh:!0}),e()})];((0,ee.rcookie)("passtoken")||(0,ee.rcookie)("restrictedPassToken"))&&i.push(new Promise(async e=>{a=await (0,eS.A)({auth:(0,ee.rcookie)("passtoken")||(0,ee.rcookie)("restrictedPassToken")},{forceFresh:!0}),e()}));let l=(0,B.nV)(d);if(i.push(new Promise(e=>{(0,eo.default)("listpaymentsubscriptions",{auth:o.auth},t=>{r=t.subscriptions,e()},{forceFresh:!0,errorCallback:t=>{e()},onXhrError:t=>{e()}})})),i.push(new Promise(e=>{let t=(0,B.Nx)(l);(0,B.Sz)({user:o,getNextBilling:!0,paymentView:t,cardProvider:(0,B.g7)(l),forceFresh:!0},t=>{s=t,e()},t=>{e()})})),await Promise.all(i).catch(e=>{}),t&&0===t.result&&o.auth===n&&(c({...Object.assign({},{...t,auth:n,passmanagerdata:a})}),s&&r)){let t=E(r);t&&(u(t),P(r.filter(e=>"canceled"!==e.status&&e!==t)),s.period=e,I(s,t))}return Promise.resolve()},I=(e,t)=>{let r=k||-1!==O.PAYMENT_DISRUPTION_COUNTRIES.indexOf(a);m({id:t.id,period:e.period,totalPlanPrice:e.totalamount||0,totalNextPriceToPay:e.nextbillingamount||0,nextBillingDate:e.nextbillingtime,currency:O.currencyMap[e.currency],disableChangeToA
1nnual:r||!t.canedit,disableCancelSubscription:r||!t.iscancelable,products:t.products,externalPaymentProvider:!1}),g({products:e.subscribedproducts?Object.values(e.subscribedproducts):[],currency:O.currencyMap[e.currency],period:e.period,disableRemoveProduct:r,disableUpgradeButton:r}),y(!r&&e.upsellproducts?Object.values(e.upsellproducts):[])},M=e=>{let t=(0,B.nV)(e),r=t&&"vivacom"===t.short_name&&"month"==e.period,s=k||-1!==O.PAYMENT_DISRUPTION_COUNTRIES.indexOf(a);m({id:e.id,period:e.period,totalPlanPrice:r?100*q.productInfo.vivacom.month:0,totalNextPriceToPay:r?100*q.productInfo.vivacom.month:0,nextBillingDate:e.nextbilling,disableChangeToAnnual:!0,disableCancelSubscription:s||!e.iscancelable,currency:r?q.productInfo.vivacom.currency:null,products:e.products,externalPaymentProvider:!0}),g({products:e.products.map(e=>({id:e,pricecents:r?100*q.productInfo.vivacom.month:0,originalprice:r?100*q.productInfo.vivacom.month:0})),currency:r?q.productInfo.vivacom.currency:null,period:e.period,disableRemoveProduct:s,disableUpgradeButton:s});let n=[U.CRYPTO_PLAN_ID,U.ADDITIONAL_TRAFFIC_ID,U.EFH_PLAN_ID];y((!s?n:[]).map(e=>({id:e,price:0,originalprice:0})))};return{user:o,subscription:d,subscriptionSummary:p,subscribedProducts:h,lifetimeProducts:f,upsellProductsForOutput:w,additionalSubscriptions:N,onUpdatedSubscription:T}})({initialUser:e,initialUserSubscriptions:t,country:m,setPageDataIsFetched:v,checkAllDataIsFetched:y,onSectionDataReady:u,onLoadRequiredPageDataError:w,requiredPageDataToFetchStatuses:_}),L=e=>{v(e),y()},D=e=>(0,P.jsxs)("div",{className:"manage-subs-cannot-edit-subs-wrapper",children:[(0,P.jsx)(eC,{}),e]});return(0,P.jsxs)("div",{className:"manage-subs-view-wrapper",children:[(0,P.jsx)("h1",{className:"manage-subs-top-headline",children:(0,P.jsx)("span",{children:d("Manage Subscriptions")})}),f?(0,P.jsx)("div",{className:"manage-subs-error-message",children:d("unexpected_error","An unexpected error has occurred. Please reload the page to try again.")}):null,f?null:j?(0,P.jsxs)(C.Fragment,{children:[x?D(d("ie_safercharge_unsupported_manage","It's not possible to manage your subscription from Internet Explorer. Please use another browser.")):null,-1!==O.PAYMENT_DISRUPTION_COUNTRIES.indexOf(m)?D(d("payment_disruption")):null,(0,P.jsxs)("div",{className:"manage-subs-content-grid",children:[(0,P.jsx)(Z,{subscriptionSummary:S,subscribedProducts:E,additionalSubscriptions:I,user:j,userPaymentProvider:(0,B.nV)(N),paymentSource:h,onUpdatedSubscription:M,cancelSubscriptionPageURL:r}),(0,P.jsx)(ec,{user:j,subscription:N,paymentSource:h,setPaymentSource:g,disableEdit:x||-1!==O.PAYMENT_DISRUPTION_COUNTRIES.indexOf(m),onLoadedPaymentSource:()=>L("loadedPaymentSource"),onLoadPaymentSourceError:w,onLoadedPaypalButton:()=>L("loadedPaypalButton"),onLoadPaypalButtonError:w,currency:E?.currency}),(0,P.jsx)("div",{className:`manage-subs-subscribed-products-wrapper ${0===T.length?"manage-subs-fullwidth":""}`,children:(0,P.jsx)(ep,{user:j,subscriptionSummary:S,subscribedProducts:E,lifetimeProducts:A,additionalSubscriptions:I,userPaymentProvider:(0,B.nV)(N),onUpdatedSubscription:M,cancelSubscriptionPageURL:r,pricingPageURL:s,trafficPageURL:l,familyPageURL:o,pricingPagePassURL:n})}),N&&T.length>0?(0,P.jsx)(ew,{subscription:N,upsellProducts:T,pricingPageURL:s,trafficPageURL:l,familyPageURL:o,pricingPagePassURL:n,cryptoPageURL:i,checkoutPageURL:c}):null]})]}):null,f||N?null:(0,P.jsxs)("div",{className:"manage-subs-no-active-subscriptions-wrapper",children:[(0,P.jsx)("div",{className:"manage-subs-blank-screen-devices-icon-wrapper",children:(0,P.jsx)(eN,{})}),(0,P.jsx)("div",{className:"manage-subs-no-active-subs-text",children:d("no_active_subscriptions","You have no active subscriptions.")}),(0,P.jsx)(k.ButtonCentered,{as:G(),color:"cyan",borderRadius:"4",fontWeight:"400",textSize:"bigger2",padding:"0 24px",href:s,className:"rounded-button rounded-button-v2",children:d("upgrade_your_acc","Upgrade your account")})]})]})}},36556:(e,t,a)=>{"use strict";a.d(t,{default:()=>h});var r=a(95155),s=a(81322),n=a(12115),i=a(38739),l=a(63915),o=a(50185);a(69828);var c=a(74242),d=a(20512),u=a(12035),p=a(92198),m=a(90426);let h=({header:e,title:t,description:a,imageSrc:h,imageSrc_2x:g,secondImageSrc:f,secondImageSrc_2x:b,hideSecondImageOnMobile:x=!1,mobileImageSrc:_,mobileImageSrc_2x:v,imageIcon:y,imageIcon_2x:w,secondImageIcon:j,secondImageIcon_2x:N,imageOutsideFeatureBox:P,imageOutsideFeatureBox_2x:C,imageOutsideFeatureBoxMobile:k,imageOutsideFeatureBoxMobile_2x:S,imageOutsideFeatureBoxWidth:E,imageOutsideFeatureBoxWidthMobile:A,imageOutsideFeatureBoxIconLeft:T,imageOutsideFeatureBoxIconLeft_2x:I,imageOutsideFeatureBoxIconRight:M,imageOutsideFeatureBoxIconRight_2x:L,imageOutsideFeatureBoxIconLeftMobile:O,imageOutsideFeatureBoxIconLeftMobile_2x:D,imageOutsideFeatureBoxIconRightMobile:R,imageOutsideFeatureBoxIconRightMobile_2x:F,imageOutsideFeatureBoxRight:$,
1imageOutsideFeatureBoxTop:B,imageOutsideFeatureBoxTopMobile:U,imageOutsideFeatureBoxPosition:q="right",imageOutsideFeatureBoxPositionMobile:z="bottom",imageOutsideFeatureBoxRelativeTarget:H="image-wrapper",imageOutsideFeatureBoxRelativeTargetMobile:W=null,rotateFeatureBox:V=null,rotateFeatureBoxMobile:Y=null,imagePosition:G="right",mobileImagePosition:X="top",fullWidth:K=!1,span:Q=1,startColumn:Z=null,columns:J=2,breakpointSpans:ee={},breakpointStartColumns:et={},className:ea="",background:er,backgroundMobile:es,headerColor:en,bulletBackground:ei,titleClassName:el="",titleBackgroundImage:eo="",titleAlign:ec="left",titleAlignMobile:ed=null,titlePadding:eu=null,titleFontSize:ep=null,titleFontSizeMobile:em=null,titleColor:eh=null,descriptionAlign:eg="left",descriptionAlignMobile:ef=null,descriptionClassName:eb="",descriptionBackgroundImage:ex="",descriptionColor:e_=null,descriptionFontSize:ev=null,descriptionFontSizeMobile:ey=null,descriptionLineHeight:ew=null,descriptionLineHeightMobile:ej=null,descriptionFontFamily:eN=null,descriptionListGap:eP=null,descriptionListGapMobile:eC=null,bulletMarginTop:ek=null,bulletMarginTopMobile:eS=null,bulletTitleFontSize:eE=null,bulletTitleFontSizeMobile:eA=null,columnsSameSize:eT=!1,imagesMinHeight:eI=null,imagesMinHeightMobile:eM=null,imagesAspectRatio:eL=null,imagesAspectRatioMobile:eO=null,maxIconWidth:eD=null,maxIconHeight:eR=null,featureBoxPadding:eF=null,featureBoxPaddingMobile:e$=null,featureBoxImagePadding:eB=null,featureBoxImagePaddingMobile:eU=null,featureBoxImageMargin:eq=null,featureBoxImageMarginMobile:ez=null,featureBoxImageBackground:eH=null,featureBoxImageBackgroundMobile:eW=null,featureBoxSecondImageBackground:eV=null,featureBoxSecondImageBackgroundMobile:eY=null,featureBoxImageBorderRadius:eG=null,featureBoxImageBorderRadiusMobile:eX=null,featureBoxBorderRadius:eK=null,featureBoxBorderRadiusMobile:eQ=null,featureBoxMaxWidth:eZ=null,featureBoxMaxWidthMobile:eJ=null,featureBoxAspectRatio:e0=null,featureBoxAspectRatioMobile:e1=null,featureBoxJustifyContent:e2=null,featureBoxJustifyContentMobile:e5=null,featureBoxTextPadding:e3=null,featureBoxTextPaddingMobile:e4=null,featureBoxBorder:e7=null,featureBoxBorderMobile:e6=null,featureBoxShadow:e9=null,featureBoxShadowMobile:e8=null,imageAlign:te="center",imageTextGap:tt=null,imageTextGapMobile:ta=null,textGap:tr=null,columnGap:ts=null,ctaLink:tn=null,ctaButtonsContainerMinWidth:ti=null,ctaButtonsContainerMinWidthMobile:tl=null,ctaButtons:to=null,showDownloadDriveButton:tc=!1,showDownloadAppsButton:td=!1,downloadAppsButtonsAlign:tu="left",downloadAppsButtonsAlignMobile:tp="left",downloadAppsButtonsWidth:tm="220px",downloadAppsButtonsWidthMobile:th=null,downloadDriveButtonProps:tg={},downloadDriveButtonTemplate:tf="v2",featureBoxCTAAlign:tb=null,featureBoxCTAAlignMobile:tx=null,ctaButtonsPositionMobile:t_="after-text",forceClientOS:tv=null,onClick:ty=null,fullBleedBackground:tw=!1})=>{let{t:tj}=(0,s.useT)(),tN=(0,n.useMemo)(()=>(tc||td)&&(tv||(0,p.detectOS)(!1,!0)),[tc,td,tv]),tP=!0===td||"mobile-only"===td||"desktop-only"===td||"object"==typeof td&&td?.[tN],tC="mobile-only"===td?"mobile-only":"desktop-only"===td?"desktop-only":"",tk=e=>"string"!=typeof e?e:e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/javascript:/gi,"").replace(/expression\s*\(/gi,"").replace(/url\s*\(\s*['"]?\s*javascript:/gi,"").replace(/import\s*['"][^'"]*['"];/gi,""),tS=tk(er),tE=tk(es),tA=tk(en),tT=W??H,tI=W&&W!==H,tM=["feature-box-wrapper",ea,`feature-box-image-${G}`,`feature-box-mobile-image-${X}`,eT?"feature-box-columns-same-size":"",Q>1?"feature-box-multi-column":"",ea.includes("no-padding-bottom")?"feature-box-no-padding-bottom":"",eI?"feature-box-images-min-height":"",eM?"feature-box-images-min-height-mobile":"",eL?"feature-box-images-aspect-ratio":"",eO?"feature-box-images-aspect-ratio-mobile":"",!h?"feature-box-no-image":"",x?"hide-second-image-mobile":"",te?`feature-box-image-align-${te}`:"",P&&q?`feature-box-outside-image-${q}`:"",P&&z?`feature-box-outside-image-mobile-${z}`:"",P&&"feature-box-wrapper"===H?"feature-box-outside-image-relative-wrapper":"",P&&"feature-box-wrapper"===tT?"feature-box-outside-image-relative-wrapper-mobile":"",P&&tI?"feature-box-outside-image-different-mobile-target":"",V||Y?"feature-box-rotated":"",ty?"feature-box-clickable":"",tw?"feature-box-full-bleed-bg":"","after-text"!==t_?`feature-box-cta-position-mobile-${t_}
1`:""].filter(Boolean).join(" "),tL={gridColumn:Z?`${Z} / span ${Q||1}`:`span ${Q||1}`};tw?(tL["--full-bleed-background"]=tS,tL["--full-bleed-background-mobile"]=tE||tS):(tL.background=tS,tL["--mobile-background"]=tE||tS),eI&&(tL["--images-min-height"]=eI),eM&&(tL["--images-min-height-mobile"]=eM),eL&&(tL["--images-aspect-ratio"]=eL),eO&&(tL["--images-aspect-ratio-mobile"]=eO),eD&&(tL["--max-icon-width"]=eD),eR&&(tL["--max-icon-height"]=eR),eF&&(tL["--feature-box-padding"]=eF),e$&&(tL["--feature-box-padding-mobile"]=e$),E&&(tL["--image-outside-feature-box-width"]=E),A&&(tL["--image-outside-feature-box-width-mobile"]=A),$&&(tL["--image-outside-feature-box-right"]=$),B&&(tL["--image-outside-feature-box-top"]=B),U&&(tL["--image-outside-feature-box-top-mobile"]=U),V&&(tL["--rotate-feature-box"]=V),Y&&(tL["--rotate-feature-box-mobile"]=Y),eB&&(tL["--feature-box-image-padding"]=eB),eU&&(tL["--feature-box-image-padding-mobile"]=eU),eq&&(tL["--feature-box-image-margin"]=eq),ez&&(tL["--feature-box-image-margin-mobile"]=ez),eH&&(tL["--feature-box-image-background"]=eH),eW&&(tL["--feature-box-image-background-mobile"]=eW),eV&&(tL["--feature-box-second-image-background"]=eV),eY&&(tL["--feature-box-second-image-background-mobile"]=eY),eG&&(tL["--feature-box-image-border-radius"]=eG),eX&&(tL["--feature-box-image-border-radius-mobile"]=eX),em&&(tL["--title-font-size-mobile"]=em),ev&&(tL["--description-font-size"]=ev),ey&&(tL["--description-font-size-mobile"]=ey),ew&&(tL["--description-line-height"]=ew),ej&&(tL["--description-line-height-mobile"]=ej),eN&&(tL["--description-font-family"]=eN),eP&&(tL["--description-list-gap"]=eP),eC&&(tL["--description-list-gap-mobile"]=eC),ek&&(tL["--bullet-margin-top"]=ek),eS&&(tL["--bullet-margin-top-mobile"]=eS),eE&&(tL["--bullet-title-font-size"]=eE),eA&&(tL["--bullet-title-font-size-mobile"]=eA),tt&&(tL["--image-text-gap"]=tt),ta&&(tL["--image-text-gap-mobile"]=ta),tr&&(tL["--text-gap"]=tr),ts&&(tL["--column-gap"]=ts),eK&&(tL["--feature-box-border-radius"]=eK),eQ&&(tL["--feature-box-border-radius-mobile"]=eQ),eZ&&(tL["--feature-box-max-width"]=eZ),eJ&&(tL["--feature-box-max-width-mobile"]=eJ),e0&&(tL["--feature-box-aspect-ratio"]=e0),e1&&(tL["--feature-box-aspect-ratio-mobile"]=e1),e2&&(tL["--feature-box-justify-content"]=e2),e5&&(tL["--feature-box-justify-content-mobile"]=e5),e3&&(tL["--feature-box-text-padding"]=e3),e4&&(tL["--feature-box-text-padding-mobile"]=e4),e7&&(tL["--feature-box-border"]=e7),e6&&(tL["--feature-box-border-mobile"]=e6),e9&&(tL["--feature-box-shadow"]=e9),e8&&(tL["--feature-box-shadow-mobile"]=e8),tb&&(tL["--feature-box-cta-align"]=tb),tx&&(tL["--feature-box-cta-align-mobile"]=tx),Object.keys(ee).forEach(e=>{tL[`--span-${e.replace("data-span-","")}`]=ee[e]}),Object.keys(et).forEach(e=>{tL[`--start-column-${e.replace("data-start-column-","")}`]=et[e]});let tO={backgroundImage:eo||"unset"};eu&&(tO.padding=eu),ep&&(tO.fontSize=ep),eh&&(tO.color=tk(eh));let tD={backgroundImage:ex||"unset"};e_&&(tD.color=tk(e_));let tR=tn||to||tc||td,tF=(e="default")=>{if(!P)return null;let a="";return tI&&("wrapper"===e?"feature-box-wrapper"===H&&"feature-box-wrapper"!==tT?a="desktop-only-outside-box":"feature-box-wrapper"!==H&&"feature-box-wrapper"===tT&&(a="mobile-only-outside-box"):"image"===e&&("feature-box-wrapper"!==H&&"feature-box-wrapper"===tT?a="desktop-only-outside-box":"feature-box-wrapper"===H&&"feature-box-wrapper"!==tT&&(a="mobile-only-outside-box"))),(0,r.jsx)("div",{className:`feature-box-image-outside-box-wrapper ${a}`,children:(0,r.jsxs)("div",{children:[T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{className:`feature-box-image-outside-box ${O?"desktop-image":""}`,src:T,srcSet:I?`${T} 1x, ${I} 2x`:void 0,alt:tj(t)}),O?(0,r.jsx)("img",{className:"feature-box-image-outside-box mobile-image",src:O,srcSet:D?`${O} 1x, ${D} 2x`:void 0,alt:tj(t)}):null]}):null,(0,r.jsx)("img",{className:`feature-box-image-outside-box ${k?"desktop-image":""}`,src:P,srcSet:C?`${P} 1x, ${C} 2x`:void 0,alt:tj(t)}),k?(0,r.jsx)("img",{className:"feature-box-image-outside-box mobile-image",src:k,srcSet:S?`${k} 1x, ${S} 2x`:void 0,alt:tj(t)}):null,M?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{className:`feature-box-image-outside-box ${R?"desktop-image":""}`,src:M,srcSet:L?`${M} 1x, ${L} 2x`:void 0,alt:tj(t)}),R?(0,r.jsx)("img",{className:"feature-box-image-outside-box mobile-image",src:R,srcSet:F?`${R} 1x, ${F} 2x`:void 0,alt:tj(t)}):null]}):null]})})};return(0,r.jsxs)("div",{className:tM,style:tL,onClick:ty,...ee,...et,children:[("feature-box-wrapper"===H||"feature-box-wrapper"===tT)&&tF("wrapper"),(0,r.jsxs)("div",{className:"feature-box-text-wrapper",children:[e?(0,r.jsx)("div",{className:"feature-box-header",style:{color:tA},children:tj(e)}):null,t?(0,r.jsx)("div",{className:`feature-box-subheader titleh3 ${el} ${eo?"text-gradient":""} align-${ec} ${ed?`align-mobile-${ed}`:""}`,style:tO,children:tj(t)}):null,(()=>{if(!a)return null;let e=`feature-box-description ${eb} align-${eg} ${ef?`align-mobile-${ef}`:""}`;return Array.isArray(a)?(0,r.jsx)("div",{className:e,style:tD,children:(0,r.jsx)("ul",{children:a.map((e,t)=>
1{let a=e.bulletBackground||ei||"#43C31F",s=e.bulletWidth||(e.bulletIcon?"20px":"6px"),n=e.bulletHeight||(e.bulletIcon?"auto":"6px");return(0,r.jsxs)("li",{children:[e.bulletIcon?(0,r.jsx)("img",{src:e.bulletIcon,alt:"",className:"feature-box-bullet-icon",style:{width:s,height:n}}):(0,r.jsx)("span",{className:"feature-box-bullet",style:{background:a,width:s,minWidth:s,height:n}}),e.bulletTitle?(0,r.jsxs)("span",{className:"bullet-with-title",children:[(0,r.jsx)("span",{className:"bullet-title",children:tj(e.bulletTitle)}),(0,r.jsx)("span",{children:tj(e.text)})]}):tj(e.text)]},t)})})}):(0,r.jsx)("div",{className:e,style:tD,children:(0,r.jsx)(i.default,{text:tj(a),converters:[l.boldConverter,l.italicConverter,l.linkConverter,l.brTagConverter]})})})(),tR&&(0,r.jsxs)("div",{className:`feature-box-cta ${"after-text"!==t_?"hide-on-mobile":""}`,children:["boolean"==typeof tc&&tc||tc[tN]?(0,r.jsx)(c.A,{forceClientOS:tN,downloadDriveButtonProps:tg,className:"feature-box-download-drive",buttonsTemplate:tf}):null,tP?(0,r.jsx)("div",{className:`feature-box-download-apps-container ${tC}`,children:(0,r.jsx)(d.A,{device:tN,align:tu,alignMobile:tp,className:"feature-box-download-apps",buttonWidth:tm,buttonWidthMobile:th})}):null,tn?(0,r.jsx)(o.default,{href:tn.href,className:`feature-box-cta-link link ${tn.align?`align-${tn.align}`:""} ${tn.alignMobile?`align-mobile-${tn.alignMobile}`:""}`,...tn.target&&{target:tn.target},children:tj(tn.text)}):null,to?(0,r.jsx)(u.default,{containerMinWidth:ti,containerMinWidthMobile:tl,ctaButtons:to}):null]})]}),"after-text"!==t_&&tR&&(0,r.jsxs)("div",{className:"feature-box-cta feature-box-cta-mobile-repositioned",children:["boolean"==typeof tc&&tc||tc[tN]?(0,r.jsx)(c.A,{forceClientOS:tN,downloadDriveButtonProps:tg,className:"feature-box-download-drive",buttonsTemplate:tf}):null,tP?(0,r.jsx)("div",{className:`feature-box-download-apps-container ${tC}`,children:(0,r.jsx)(d.A,{device:tN,align:tu,alignMobile:tp,className:"feature-box-download-apps",buttonWidth:tm,buttonWidthMobile:th})}):null,tn?(0,r.jsx)(o.default,{href:tn.href,className:`feature-box-cta-link link ${tn.align?`align-${tn.align}`:""} ${tn.alignMobile?`align-mobile-${tn.alignMobile}`:""}`,...tn.target&&{target:tn.target},children:tj(tn.text)}):null,to?(0,r.jsx)(u.default,{containerMinWidth:ti,containerMinWidthMobile:tl,ctaButtons:to}):null]}),h||_?(0,r.jsx)("div",{className:`feature-box-image ${(h||_)&&f?"multiple-images":""} ${P?"has-image-outside-box":""}`,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[y?(0,r.jsx)(m.default,{className:`${_?"desktop-image":""} feature-box-icon-img`,src:y,src_2x:w}):null,h?(0,r.jsx)(m.default,{className:_?"desktop-image":"",src:h,src_2x:g,alt:tj(t)}):null,_?(0,r.jsx)(m.default,{className:"mobile-image",src:_,src_2x:_,alt:tj(t)}):null]}),f?(0,r.jsxs)("div",{className:"second-image-wrapper",children:[j?(0,r.jsx)(m.default,{className:"feature-box-icon-img",src:j,src_2x:N}):null,(0,r.jsx)(m.default,{className:"second-image",src:f,src_2x:b,alt:tj(t)})]}):null,("feature-box-wrapper"!==H||"feature-box-wrapper"!==tT)&&tF("image")]})}):null]})}},36738:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var r=a(95155),s=a(12115),n=a(4007),i=a(38739),l=a(63915),o=a(26550),c=a(81322);let d=({user:e,plansVersion:t="1.0.0"})=>{let{t:a}=(0,c.useT)(),d=(0,s.useMemo)(()=>e&&e.planparams&&e.planparams.additionaltraffic?a("traffic_current").replace("%amount%",e.planparams.additionaltraffic*n.TB_PER_TRAFFIC_COUNT):null,[e]);return d?(0,r.jsx)("div",{className:(0,o.X)("plans-user-plan-info-container","traffic",t),children:(0,r.jsx)("div",{children:(0,r.jsx)(i.default,{text:a(d),converters:[l.boldConverter,l.italicConverter,l.linkConverter,l.brTagConverter]})})}):null}},37500:(e,t,a)=>{"use strict";a.d(t,{ClientIPProvider:()=>d,Y:()=>u});var r=a(95155),s=a(12115),n=a(5021),i=a(33307),l=a(13977);let o=(0,s.createContext)(null),c=["/manage-subscriptions","/checkout","/cloud-storage-pricing-plans","/payment-success"],d=({children:e})=>{let t=(0,n.p)(),a=()=>{if(!t)return!1;let e=(0,i.at)(t);return c.some(a=>{let r=t===a||t.startsWith(`${a}/`),s=e===a||e.startsWith(`${a}/`);return r||s})}
1,d=a(),[u,p]=(0,s.useState)(null),[m,h]=(0,s.useState)(d),[g,f]=(0,s.useState)(null);(0,s.useEffect)(()=>{let e=a();e&&!u?(h(!0),b()):e||h(!1)},[t]);let b=()=>{(0,l.default)("getip",{},async e=>{p(e),h(!1),f(null)},{errorCallback:e=>{f(e),h(!1)},onXhrError:(e,t,a)=>{f({result:"xhr_error",error:{xhr:e,status:t,error:a}}),h(!1)}})};return(0,r.jsx)(o.Provider,{value:{ipData:u,isLoadingIP:m,error:g},children:e})},u=()=>{let e=(0,s.useContext)(o);if(!e)throw Error("useClientIP must be used within ClientIPProvider");return e}},38072:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>d});var r,s,n,i,l,o=a(12115);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let d=function(e){return o.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:100,height:64,fill:"none"},e),r||(r=o.createElement("path",{fill:"url(#family-icon_svg__paint0_linear_136_2250)",fillRule:"evenodd",d:"M99.998 47.994a15.35 15.35 0 0 0-1.475-6.802 15.4 15.4 0 0 0-4.328-5.455 13.5 13.5 0 0 1-7.162 6.242 13.4 13.4 0 0 0 6.076-6.33 13.35 13.35 0 0 0 .842-8.727 13.37 13.37 0 0 0-4.752-7.373 13.4 13.4 0 0 0-8.305-2.85 8.7 8.7 0 0 0-1.359.07 30.1 30.1 0 0 1 2.547 11.33h-.203A32.05 32.05 0 0 0 71.268 8.03 32.15 32.15 0 0 0 50.008 0a32.15 32.15 0 0 0-21.26 8.03A32.05 32.05 0 0 0 18.137 28.1h-.211a28.9 28.9 0 0 1 2.351-11.204C8.552 18.364 0 28.225 0 40.304a23.7 23.7 0 0 0 6.976 16.765 23.78 23.78 0 0 0 16.807 6.93h60.485v-.023A16.05 16.05 0 0 0 95.4 59.19a16 16 0 0 0 4.597-11.197",clipRule:"evenodd"})),s||(s=o.createElement("path",{fill:"#000",d:"M84.268 64H23.783a23.7 23.7 0 0 1-9.258-1.862A23.7 23.7 0 0 1 3.96 53.411 23.65 23.65 0 0 1 .009 39.656 23.57 23.57 0 0 0 7.163 56.05a23.65 23.65 0 0 0 16.62 6.67h60.485v-.023a16.06 16.06 0 0 0 10.907-4.567 16 16 0 0 0 4.812-10.786q.012.326.012.653a16 16 0 0 1-4.598 11.195 16.05 16.05 0 0 1-11.132 4.785z",opacity:.05})),n||(n=o.createElement("path",{fill:"#000",fillOpacity:.05,fillRule:"evenodd",d:"M44.694 14.797a4.97 4.97 0 0 1 4.963 4.955c0 2.706-2.252 4.955-4.963 4.955-2.71 0-4.963-2.249-4.963-4.955s2.252-4.955 4.963-4.955m11.762 3.497a4.464 4.464 0 0 1 4.462 4.456 4.464 4.464 0 0 1-4.462 4.455 4.464 4.464 0 0 1-4.463-4.455 4.464 4.464 0 0 1 4.463-4.456M38.355 46.983v3.456l.041.041c0 .208.167.375.376.375h3.67v-3.664a3.59 3.59 0 0 1-4.087-.208m5.755-2.499a4.9 4.9 0 0 1 4.046-2.123h4.588c1.752 0 3.336.916 4.212 2.415 0 .708.209 1.415.668 2.04v4.038h-2.837v-2.29a.374.374 0 0 0-.375-.374.374.374 0 0 0-.375.375v2.29H46.82v-2.29a.374.374 0 0 0-.375-.375.374.374 0 0 0-.375.375v2.29h-2.837v-3.581c0-.25 0-.541.084-.791.459-.583.75-1.29.792-1.999m17.726 6.33a.374.374 0 0 0 .376-.375v-3.04a3.47 3.47 0 0 1-1.96.666c-.626 0-1.252-.208-1.794-.54v3.289zM50.305 31.93c2.131 0 3.9 1.726 3.9 3.893a3.875 3.875 0 0 1-3.9 3.894 3.875 3.875 0 0 1-3.9-3.894 3.875 3.875 0 0 1 3.9-3.893m11.698 14.635 5.866-6.07.056-.05c.793-.792.96-2.04.376-2.999l-3.546-6.12c-1-1.666-2.71-2.665-4.67-2.665H54.37c-1.447 0-2.785.65-3.686 1.711a5.5 5.5 0 0 0-1.04.103 5.7 5.7 0 0 1 1.76
15-1.73 5.39 5.39 0 0 0-4.421-2.332H40.69c-2.21 0-4.087 1.082-5.172 2.997l-3.92 6.746a2.76 2.76 0 0 0 .417 3.372l6.506 6.496a2.77 2.77 0 0 0 3.92 0 2.76 2.76 0 0 0 0-3.914l-4.754-4.747c-.083-.083-.125-.291-.041-.458l1.918-3.33c.125-.21.334-.292.542-.167s.292.333.167.54l-1.793 3.082 4.546 4.538c.5.5.792 1.083.959 1.708 1.084-1.083 2.544-1.75 4.13-1.75h4.587c1.71 0 3.337.792 4.421 2.124.167-.416.417-.832.75-1.166l4.13-4.122-1.585-2.748a.42.42 0 0 1 .167-.54.42.42 0 0 1 .542.166l1.752 3.04c.125.124.083.332-.042.457l-4.338 4.33c-.959.958-.959 2.54 0 3.498.46.5 1.085.75 1.752.75s1.293-.292 1.752-.75M50.305 31.152c2.557 0 4.68 2.071 4.68 4.672a4.65 4.65 0 0 1-4.68 4.673 4.65 4.65 0 0 1-4.68-4.673 4.65 4.65 0 0 1 4.68-4.672",clipRule:"evenodd"})),i||(i=o.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M44.694 14.019a4.97 4.97 0 0 1 4.963 4.954c0 2.707-2.252 4.955-4.963 4.955-2.71 0-4.963-2.248-4.963-4.955s2.252-4.954 4.963-4.954m11.762 3.497a4.464 4.464 0 0 1 4.462 4.456 4.464 4.464 0 0 1-8.925 0 4.464 4.464 0 0 1 4.463-4.456M38.355 46.205v3.456l.041.041c0 .209.167.375.376.375h3.67v-3.664a3.59 3.59 0 0 1-4.087-.208m5.756-2.498a4.9 4.9 0 0 1 4.045-2.124h4.588c1.752 0 3.337.916 4.212 2.415 0 .708.209 1.416.668 2.04v4.039h-2.836v-2.29a.374.374 0 0 0-.376-.374.374.374 0 0 0-.375.374v2.29h-7.215v-2.29a.374.374 0 0 0-.376-.374.374.374 0 0 0-.375.374v2.29h-2.836v-3.58c0-.25 0-.542.083-.791.459-.583.75-1.291.793-2m17.725 6.329a.374.374 0 0 0 .376-.375v-3.04a3.47 3.47 0 0 1-1.96.667c-.626 0-1.252-.208-1.794-.542v3.29zM50.305 31.153c2.131 0 3.9 1.726 3.9 3.894a3.875 3.875 0 0 1-3.9 3.894 3.875 3.875 0 0 1-3.9-3.894 3.875 3.875 0 0 1 3.9-3.894m11.698 14.635 5.866-6.07.056-.05c.793-.792.96-2.041.376-2.999l-3.546-6.12c-1-1.666-2.71-2.665-4.67-2.665H54.37c-1.447 0-2.785.65-3.686 1.71a5.5 5.5 0 0 0-1.04.104 5.7 5.7 0 0 1 1.76
15-1.731 5.39 5.39 0 0 0-4.421-2.332H40.69c-2.21 0-4.087 1.083-5.172 2.998l-3.92 6.746a2.76 2.76 0 0 0 .417 3.372l6.506 6.496a2.77 2.77 0 0 0 3.92 0 2.76 2.76 0 0 0 0-3.914l-4.754-4.747c-.083-.083-.125-.291-.041-.458l1.918-3.331c.125-.208.334-.291.542-.167.209.125.292.334.167.542l-1.793 3.08 4.546 4.54c.5.499.792 1.082.959 1.706 1.084-1.082 2.544-1.748 4.13-1.748h4.587c1.71 0 3.337.79 4.421 2.123.167-.416.417-.832.75-1.166l4.13-4.122-1.585-2.748a.42.42 0 0 1 .167-.541.42.42 0 0 1 .542.166l1.752 3.04c.125.125.083.333-.042.458l-4.338 4.33c-.959.958-.959 2.54 0 3.498.46.5 1.085.75 1.752.75s1.293-.292 1.752-.75M50.305 30.373c2.557 0 4.68 2.072 4.68 4.673a4.65 4.65 0 0 1-4.68 4.673 4.65 4.65 0 0 1-4.68-4.673 4.65 4.65 0 0 1 4.68-4.673",clipRule:"evenodd"})),l||(l=o.createElement("defs",null,o.createElement("linearGradient",{id:"family-icon_svg__paint0_linear_136_2250",x1:28.864,x2:76.348,y1:.779,y2:63.548,gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:"#84FAB0"}),o.createElement("stop",{offset:1,stopColor:"#20B5DB"})))))}},39612:(e,t,a)=>{"use strict";a.d(t,{B:()=>s});var r=a(4474);let s={title:{t_text:"japanese_certification_jury_prize_title",t_default:"Japanese Cloud Award Recognition"},shortDescription:{t_text:"japanese_certification_jury_prize_description_short",t_default:"pCloud has been recognized with the prestigious Japanese Cloud Award, highlighting our commitment to excellence in cloud storage solutions."},longDescription:{t_text:"japanese_certification_jury_prize_description_long",t_default:"This certification validates our dedication to providing secure, reliable, and innovative cloud storage services that meet the highest industry standards. The award reflects our ongoing efforts to deliver exceptional value to our users worldwide."},readMoreText:{t_text:"Read more",t_default:"Read more"},showReadMore:!0,images:[{src:r.w4+"images/aspic-certificate.jpg",alt:"ASPIC Certificate"},{src:r.w4+"images/aspic-certificate-accreditation.jpg",alt:"ASPIC Certificate Accreditation"}]}},40122:()=>{},40579:(e,t,a)=>{"use strict";a.d(t,{default:()=>Y});var r,s,n,i=a(95155),l=a(44522),o=a(81322),c=a(37500),d=a(20023),u=a(93344),p=a(60333),m=a(12115),h=a(40381),g=a(29157);let f=({nextUser:e,user:t,onPrepareLoginOrSignupFormFinished:a=()=>{},validateLoginOrSignupForm:r=!1})=>t&&e?null:(0,i.jsx)("div",{className:"bregister-form-container",children:(0,i.jsx)("div",{className:"signin-container-form",children:(0,i.jsx)(g.A,{onForgotPassword:()=>{},language:(0,h.Z)(),isLoginModal:!1,showTitle:!1,onPrepareLoginOrSignupFormFinished:a,skipPrepareLoginOrSignupFormLoading:!0,forceValidateForm:r,buttinIsOutsideInput:!1,disabledByDefault:!0,noDefaultFiles:!1,tooltip:null})})});var b=a(48083),x=a(12035),_=a(11595);let v=({user:e,formData:t,handleSubmit:a,setFormData:r,loadingBusinessRegister:s=!1,disableAllFields:n=!1,disableRequirePaymentData:l=!1,companyDetailsErrorMsg:c={show:!1,message:""}})=>{let{t:d}=(0,o.useT)(),[u,p]=(0,m.useState)(new Map),h=e=>t=>{let a=t.target.value;u.has(e)&&p(t=>{let a=new Map(t);return a.delete(e),a}),r(t=>({...t,[e]:a}))};return e?(0,i.jsxs)("div",{className:"input-column-wrapper",children:[(0,i.jsxs)("div",{className:"input-row-wrapper",children:[(0,i.jsx)("input",{placeholder:d("business_page_first_name","First name"),className:"input-text",name:"firstname",value:t.firstname,type:"text",disabled:n,onChange:h("firstname"),"data-invalid":u.has("firstname")}),(0,i.jsx)("input",{placeholder:d("Last Name","Last name"),className:"input-text",name:"lastname",value:t.lastname,type:"text",disabled:n,onChange:h("lastname"),"data-invalid":u.has("lastname")})]}),(0,i.jsx)("div",{className:"input-row-wrapper",children:(0,i.jsx)("input",{placeholder:d("Company Name","Company name"),className:"input-text",name:"companyname",value:t.companyname,type:"text",disabled:n,onChange:h("companyname"),"data-invalid":u.has("companyname")})}),(0,i.jsxs)("div",{className:"submit-row-wrapper",children:[c.show&&(0,i.jsx)(_.A,{trigger:c.show,type:"slide-up",timeout:250,disableInitialAnimation:!1,children:(0,i.jsx)("div",{className:"business-registration-client-error-wrapper",children:(0,i.jsx)("div",{className:"alert-info alert-info--error align-center",children:c.message})})}),(0,i.jsx)(x.default,{containerMinWidth:"100%",ctaButtons:[{text:l?{t_text:"SIGN UP NOW",t_default:"SIGN UP NOW"}:{t_text:"CONTINUE",t_default:"CONTINUE"},className:"rounded-button-v2",minWidth:"100%",onClick:()=>
1{if(!n){let e,a=(e=new Map,t.firstname&&""!==t.firstname.trim()||e.set("firstname",!0),t.lastname&&""!==t.lastname.trim()||e.set("lastname",!0),t.companyname&&""!==t.companyname.trim()||e.set("companyname",!0),{isValid:0===e.size,invalidFields:e});if(!a.isValid)return void p(a.invalidFields);p(new Map)}a()},loading:s}]})]})]}):null};var y=a(59425),w=a(92198),j=a(83489),N=a(22409);let P=({user:e,nextUser:t=e,initialUser:a,initialUserPaymentData:r=null,payBtnErrorMsg:s,paymentView:n,setPaymentView:l,cardProvider:c,setCardProvider:d,onPaymentStarted:u,onLoadedPaymentData:p,onLoadRequiredPageDataError:h,chosenPeriod:g,userDiff:f,country:b,onPaymentErrorMessageChange:x,loadingPayButton:v,setLoadingPayButton:P,onPaymentSuccess:C,showPaymentContainerUI:k,companyDetailsErrorMsg:S,setCompanyDetailsErrorMsg:E})=>{let{t:A}=(0,o.useT)(),T=(0,w.isInternetExplorer)(),[I,M]=(0,m.useState)(!1),[L,O]=(0,m.useState)(!0),[D,R]=(0,m.useState)(!1),[F,$]=(0,m.useState)(!0),[B,U]=(0,m.useState)(null),q=(0,m.useRef)(null),z=(0,m.useRef)(null),{width:H}=(0,N.A)();(0,m.useEffect)(()=>{I&&(M(!1),z.current&&(u(),W(z.current.res)))},[I]),(0,m.useEffect)(()=>{S.show&&(O(!1),P(!1),x(S.message),E({show:!1,message:""}))},[S.show]);let W=e=>{z.current={res:e},C("ccard"===n?c:n,e)};return e||t?(0,i.jsxs)("div",{className:`bregister-payment-form-wrapper ${!k?"bregister-payment-form-wrapper--hidden":""}`,children:[(0,i.jsx)(y.Ay,{payButtonRef:q,user:e,nextUser:t,initialUser:a,initialUserPaymentData:r,disabledButton:L,setDisabledButton:O,setPaypalButtonLoading:R,paymentView:n,setPaymentView:l,userPaymentSource:B,setUserPaymentSource:U,cart:e&&e.lastsubscription&&"active"!==e.lastsubscription.status&&e.lastsubscription.products||[],onPaymentStarted:u,onPaymentFinished:()=>P(!1),onLoadedPaymentData:p,onLoadedPaymentDataError:e=>h(e),disableLoadingIndication:!0,chosenPeriod:g,payButtonClicked:I,cardProvider:c,setCardProvider:d,tabsToSelectOnMobile:!1,isMobile:H<=768,userDiff:f.current,removePaypalPaymentSource:()=>{let e={...B};e.paypal&&delete e.paypal,U(e)},hidePaypalButton:F,setHidePaypalButton:$,country:b,onPaymentErrorMessageChange:x,onPaymentSuccess:W,isBusinessTrial:!0,isBusiness:!0,tabIconSize:"sm"}),e?(0,i.jsx)("div",{children:(0,i.jsx)(_.A,{trigger:"paypal"===n,type:"fade",timeout:300,disableInitialAnimation:!1,children:(0,i.jsxs)(m.Fragment,{children:[s.show&&(0,i.jsx)(_.A,{trigger:s.show,type:"slide-up",timeout:250,disableInitialAnimation:!1,children:(0,i.jsx)("div",{className:"business-registration-client-error-wrapper",children:(0,i.jsx)("div",{className:"alert-info alert-info--error align-center",children:s.message})})}),"paypal"!==n||T||F?(0,i.jsx)("div",{className:"business-registration-client-button-wrapper",children:(0,i.jsx)(j.ButtonWithIcon,{size:"big",disabled:T||L&&e,height:40,text:A("cta_register_label","START YOUR TRIAL"),icon:"secureV3",loading:v,borderRadius:"4",textSize:"bigger",buttonRef:q,onClick:()=>{T||L||M(!0)},"data-testid":"checkout_pay_now",className:"rounded-button rounded-button-v2"})}):(0,i.jsx)("div",{className:"business-registration-client-button-wrapper business-registration-client-paypal-button-wrapper",children:(0,i.jsxs)("div",{className:`business-registration-client-paypal-button-container ${T?"business-registration-client-paypal-button-container--disabled":""} ${D||v?"business-registration-client-paypal-button-container--hide-paypal-btn":""}`,style:{"--transition-delay":"0ms"},children:[D||v?(0,i.jsx)("div",{className:"business-registration-client-blue-button-loading",children:(0,i.jsx)("div",{className:"business-registration-client-loading",style:{backgroundImage:`url(${j.LoadingButtonImage})`}})}):null,(0,i.jsx)("div",{id:"paypal-button","data-testid":"checkout_pay_now",disabled:T||D})]})})]})})}):null]}):null};var C=a(4007);let k={month:0,year:1},S={month:{t_text:"month",t_default:"month"},year:{t_text:"year",t_default:"year"}},E={stripe:5,safecharge:7,paypal:8};var A=a(13977),T=a(4474),I=a(38161),M=a(99967),L=a(18385),O=a(41252);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let R=function(e){return m.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 16"},e),r||(r=m.createElement("path",{fill:"#000",d:"M16.304.233a1.2 1.2 0 0 1 .266 1.676l-9.6 13.2a1.2 1.2 0 0 1-.877.492 1.19 1.19 0 0 1-.941-.35l-4.8-4.8A1.202 1.202 0 0 1 2.05 8.754l3.807 3.806L14.632.495A1.2 1.2 0 0 1 16.308.23z"})))};function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let $=function(e){return m.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=m.createElement("path",{fill:"url(#pencil_svg__paint0_linear_745_1048)",d:"M14.08 1.643A1.5 1.5 0 0 1 15.15 1.2c.401 0 .784.157 1.069.443l1.338 1.338c.285.285.443.668.443 1.069s-.157.784-.442 1.069l-2.194 2.194-3.476-3.477zm-3.045 3.045 3.476 3.476-7.98 7.976a2.1 2.1 0 0 1-.922.54L1.33 17.869 2.52 13.59c.098-.349.281-.668.54-.922zM15.15 0c-.72 0-1.41.285-1.916.795L2.208 11.82a3.33 3.33 0 0 0-.848 1.451L.033 18.06a.9.9 0 0 0 .232.878.91.91 0 0 0 .878.232l4.792-1.331a3.3 3.3 0 0 0 1.452-.848L18.412 5.966a2.72 2.72 0 0 0 .787-1.916c0-.72-.285-1.41-.795-1.916L17.065.795A2.7 2.7 0 0 0 15.15 0"})),n||(n=m.createElement("defs",null,m.createElement("linearGradient",{id:"pencil_svg__paint0_linear_745_1048",x1:9.6,x2:9.596,y1:0,y2:24.003,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#13C4D7"}),m.createElement("stop",{offset:.145,stopColor:"#17BED0"}),m.createElement("stop",{offset:1,stopColor:"#17B1D0"})))))};var B=a(10490),U=a(54654),q=a(21709),z=a(38739),H=a(63915),W=a(48233);let V=({currency:e,cardProvider:t="stripe",paymentView:a="ccard",price:r,billingPeriod:s})=>{let{t:n}=(0,o.useT)(),l=(0,M.useDispatch)();return(0,i.jsxs)("div",{className:"bregister-client-disclaimer",children:[(0,i.jsxs)("div",{className:"bregister-client-secure-text",children:[(0,i.jsx)(q.A,{}),(0,i.jsxs)("span",{children:[n("secure_ssl_payment_short"),". ",n("10_DAYS_MONEY_BACK")]})]}),e?(0,i.jsx)("div",{className:"bregister-client-disclaimer-text",children:n("prices_dis
1played_currency").replace("%currency%",e)}):null,(0,i.jsx)("div",{className:"bregister-client-disclaimer-text",children:(0,i.jsx)(z.default,{text:n("b_autorenew_policy_message_componentify").replace("%currency%",e).replace("%amount%",r).replace("%frequency%",n(s)),converters:[H.linkConverter]})}),(0,i.jsxs)("div",{className:"bregister-client-disclaimer-text",children:["ccard"===a?(0,i.jsx)("div",{children:(0,i.jsx)(z.default,{text:n("b-store-card-disclaimer"),converters:[H.brTagConverter,{regex:/%review%/g,component:"a",props:{className:"bregister-client-link",onClick:()=>{l((0,W.GR)({modalId:"PrivacyPolicy"}))}},innerText:()=>n("store-card-review-link")}]})}):null,"ccard"===a&&"safecharge"===t?(0,i.jsxs)("div",{children:[n("checkout_safecharge_terms_1"),n("checkout_safecharge_terms_2"),(0,i.jsx)("a",{className:"bregister-client-link",href:"https://www.nuvei.com/legal/terms-of-use",target:"_blank",children:n("terms and conditions")})," ","|",(0,i.jsx)("a",{className:"bregister-client-link",href:"https://www.nuvei.com/legal/privacy-notice",target:"_blank",children:n("Privacy Policy")})]}):null,(0,i.jsx)("div",{children:(0,i.jsx)("b",{children:n("website_operated_address")})})]})]})},Y=({initialUser:e,initialUserPaymentData:t=null,chosenPeriod:a,currency:r,disableRequirePaymentData:s,initialBusinessRegistrationData:n={},disableAllCompanyDetailsFields:h=!1,warningMessage:g=null,errorMessage:_=null,sourceProvider:y=null,showLogoutCTAonError:w=!1})=>{let{t:j}=(0,o.useT)(),N=(0,m.useMemo)(()=>(0,O.getPlanBoxTexts)(),[]),D=(0,u.m)("BusinessRegistrationSection"),{startPageLoading:F}=(0,d.v)(),{handleLogout:q}=(0,U.A)(),{ipData:W}=(0,c.Y)(),Y=W?.country||"fr",G=-1!==p.PAYMENT_DISRUPTION_COUNTRIES.indexOf(Y),{relocationInfo:X}=(0,M.useSelector)(({pCloudUser:e})=>e),K=(0,m.useMemo)(()=>{let e=X&&X.relocationStatus||-1;return 0===e||1===e},[X]),Q=()=>({loggedUser:{loadedPaymentData:s||G||_||K,loadedPaymentScripts:s||G||_||K},guest:{loadedLoginOrSignupForm:!1}}),[Z,J]=(0,m.useState)(!1),[ee,et]=(0,m.useState)(e),[ea,er]=(0,m.useState)(e),es=(0,m.useRef)(Q()),en=(0,m.useRef)(!1),[ei,el]=(0,m.useState)({show:en.current,message:""}),[eo,ec]=(0,m.useState)(!1),[ed,eu]=(0,m.useState)("ccard"),[ep,em]=(0,m.useState)(null),{subscribeForUserDiff:eh,userDiff:eg,onUserDiff:ef}=(0,b.A)({user:ee,initialUser:e,nextUser:ea,setNextUser:er,showPageLoading:F,resetLoadingRequiredPageDataStatus:()=>{J(!1),es.current=Q()}}),{businessRegistrationData:eb,setBusinessRegistrationData:ex,handleCompanyDetailsSubmit:e_,loadingBusinessRegister:ev,handlePaymentDataSubmit:ey,companyDetailsStepCompleted:ew,setCompanyDetailsStepCompleted:ej,companyDetailsErrorMsg:eN,setCompanyDetailsErrorMsg:eP}=(({initialBusinessRegistrationData:e,disableRequirePaymentData:t,sourceProvider:a,user:r,registerSuccessURL:s=`${T.v0}#page=b_account`,currency:n})=>{let{t:i}=(0,o.useT)(),[l,c]=(0,m.useState)(e),[d,u]=(0,m.useState)(!1),p=(0,m.useRef)(!1),[h,g]=(0,m.useState)(p.current),[f,b]=(0,m.useState)({show:!1,message:""}),x=()=>{window.location.href=s},_=(e,t=null)=>{let a={auth:r.auth,mode:"create",returnUrl:`https://${window.location.host}/business-registration`,cancelUrl:`https://${window.location.host}/business-registration#false`,name:l.companyname,firstname:l.firstname,lastname:l.lastname,members:l.members,bprovider:e,billingperiod:k[l.period],businessplanid:l.productid,termsaccepted:"yes",ref:l.ref,code:l.code,phone:l.phone||123456};return t&&(t.changeCard&&(a.changecard=!0),t.nonce&&(a.nonce=t.nonce)),(0,A.default)("account_register",a,t=>{(y(e),"u">typeof dataLayer&&dataLayer.push({event:"business_free_trial"}),l.code&&2==e)?v(t.accounttoken,e,l.code):x()},{errorCallback:e=>{b({show:!0,message:2273==e.result?i("error_2273","You've reached the maximum number of subscriptions that can be purchased with the same payment method. To continue, please use a different payment card or method."):e.error||i("error_general","An error occurred. Please try again.")}),p.current=!1,g(!1)},onXhrError:(e,t,a)=>{b({show:!0,message:i("Please check your Internet connection.")}),p.current=!1,g(!1)}})},v=(e,t=null,a=null)=>{let s={auth:r.auth,token:e};return t&&(s.source=t),a&&(s.code=a),(0,A.default)("account_create_execute",s,e=>{x()},{errorCallback:e=>{b({show:!0,message:2273==e.result?i("error_2273","You've reached the maximum number of subscriptions that can be purchased with the same payment method. To continue, please use a different payment card or method."):e.error||i("error_general","An error occurred. Please try again.")}),p.current=!1,g(!1)},onXhrError:(e,t,a)=>{b({show:!0,message:i("Please check your Internet connection.")}),p.current=!1,g(!1)}})},y=e=>{let t=l.period;var a={category:"business",action:"start trial",defaultlabel:"www-site"}
1,s={currency:n,period:t,products:l.productid,members:l.members,bprovider:e};l.pricecents&&(s.revenue=parseFloat(l.members*(l.pricecents/100)).toFixed(2)),r.auth&&(a.auth=r.auth),(0,I.sendAnalyticsEvent)(a,s)};return{businessRegistrationData:l,setBusinessRegistrationData:c,handleCompanyDetailsSubmit:()=>{if(!p.current&&r){if(f.show&&b({show:!1,message:""}),t&&9==a&&l.code){p.current=!0,g(!0),v(l.code);return}if(t){p.current=!0,g(!0),_(l.code?2:l.source);return}u(!0)}},loadingBusinessRegister:h,handlePaymentDataSubmit:(e,t)=>{p.current=!0,g(!0),_(E[e],t)},companyDetailsStepCompleted:d,setCompanyDetailsStepCompleted:u,companyDetailsErrorMsg:f,setCompanyDetailsErrorMsg:b}})({initialBusinessRegistrationData:n,disableRequirePaymentData:s,sourceProvider:y,user:ee,currency:r});(0,m.useEffect)(()=>{eC()||F()},[ea]);let eC=()=>{let e=ea?"loggedUser":"guest",t=!Object.keys(es.current[e]).some(t=>!es.current[e][t]);return t&&(ee!=ea&&(et(ea),en.current=!1,el({...ei,show:en.current})),D?.()),t},ek=e=>{let t=ea?"loggedUser":"guest";es.current[t][e]=!0},eS=e=>{e&&"xhr_error"===e.result&&e.error&&e.error.status&&"abort"===e.error.status||(D?.(),J(!0))};(0,l.Q)({disableLoad:s||G,user:ea,onScriptsLoaded:()=>{ek("loadedPaymentScripts"),eC()},onScriptsError:e=>{eS({error:"payment_scripts_load_error"})}});let eE=(e,t)=>{""!==e&&eh(ee,ef),t&&"all_fields_blank"==t||(en.current=""!==e,el({show:en.current,message:en.current?e:ei.message}))};return Z?(0,i.jsx)("div",{className:"checkout-error-message",style:{maxWidth:"100%"},children:j("unexpected_error","An unexpected error has occurred. Please reload the page to try again.")}):(0,i.jsxs)("div",{className:"business-registration-content",children:[(0,i.jsxs)("div",{className:"bregister-header-wrapper",children:[(0,i.jsx)("h1",{className:"title",children:(0,i.jsx)("span",{children:j("bregister_headline","pCloud Business: 30-day free trial")})}),(0,i.jsx)("h2",{className:"subtitle",children:j("bregister_headline_subtitle","You'll only pay if you keep using pCloud after your trial.")})]}),(0,i.jsxs)("div",{className:"bregister-client-box-wrapper",children:[(0,i.jsxs)("div",{className:"bregister-left-box",children:[(0,i.jsxs)("div",{className:"bregister-signin-container-wrapper",children:[(0,i.jsxs)("div",{className:"bregister-section-title",children:[(0,i.jsx)("span",{className:"bregister-step-number",children:ee?(0,i.jsx)(R,{className:"bregister-check-icon"}):"1"}),(0,i.jsxs)("span",{className:"bregister-step-title",children:[j("your_acc","Your account"),ee?(0,i.jsx)("div",{className:"bregister-container-step-summary",children:(0,i.jsx)(B.default,{email:ee.email})}):null]})]}),K||_||!s&&G&&ee?null:(0,i.jsx)("div",{className:"bregister-step-content-wrapper",children:ee?null:(0,i.jsx)("div",{className:"bregister-sign-form-wrapper",children:(0,i.jsx)(f,{nextUser:ea,user:ee,onPrepareLoginOrSignupFormFinished:()=>{ek("loadedLoginOrSignupForm"),eC()}})})})]}),K||_||!s&&G&&ee?(0,i.jsx)("div",{className:"bregister-alert-form-wrapper",children:(0,i.jsxs)("div",{className:"alert-info alert-info--warning align-center",children:[(0,i.jsx)("span",{children:(0,i.jsx)(z.default,{text:_?j(_):G?j("error_payment_disruption_country","We are sorry, but we are unable to process payments from your region at this time."):j("error_relocation_in_progress","Your account is currently moving to a new data region. Please wait for the move to finish before signing up for pCloud Business, or use a different account now."),converters:[H.linkConverter,H.boldConverter,H.brTagConverter]})}),w?(0,i.jsx)(x.default,{ctaButtons:[{text:{t_text:"header_logout",t_default:"Log out"},className:"rounded-button-v2",ctaType:"link",noArrow:!0,onClick:q}]}):null]})}):(0,i.jsxs)(i.Fragment,{children:[!G||s&&G?(0,i.jsxs)("div",{className:"bregister-company-details-container-wrapper",children:[(0,i.jsxs)("div",{className:"bregister-section-title",children:[(0,i.jsx)("span",{onClick:()=>eo?null:ej(!1),className:`bregister-step-number ${!ee?"bregister-step-number--inactive":""} ${ew&&!eo?"bregister-step-number--enable-edit":""}`,children:ee&&ew?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R,{className:"bregister-check-icon"}),(0,i.jsx)($,{className:"bregister-edit-icon"})]}):"2"}),(0,i.jsxs)("span",{className:"bregister-step-title",children:[j("company_details","Company details"),ew?(0,i.jsxs)("div",{className:"bregister-container-step-summary",children:[eb.firstname," ",eb.lastname,", ",eb.companyname]}):null]}),ee&&ew?(0,i.jsx)("span",{className:`bregister-edit-icon-mobile ${eo?"bregister-edit-icon-mobile--disabled":""}`,onClick:()=>eo?null:ej(!1),children:(0,i.jsx)($,{})}):null]}),(0,i.jsx)("div",{className:`${!s?"bregister-step-content-wrapper":""}`,children:ee&&!ew?(0,i.jsxs)("div",{className:"bregister-company-detail
1s-form-wrapper",children:[g?(0,i.jsx)("div",{className:"alert-info alert-info--warning align-center",children:j(g)}):(0,i.jsx)("div",{className:"alert-info align-center",children:j("bregister_company_details_header_info_msg","This account will act as the Business subscription owner. To change the owner, youâll need to contact pCloud Support.")}),(0,i.jsx)(v,{user:ee,formData:eb,setFormData:ex,handleSubmit:e_,loadingBusinessRegister:ev,disableAllFields:h,disableRequirePaymentData:s,companyDetailsErrorMsg:eN})]}):null})]}):null,s||G?null:(0,i.jsxs)("div",{className:"bregister-payment-container-wrapper",children:[(0,i.jsxs)("div",{className:"bregister-section-title",children:[(0,i.jsx)("span",{className:`bregister-step-number ${!ee||!ew?"bregister-step-number--inactive":""}`,children:"3"}),(0,i.jsx)("span",{className:"bregister-step-title",children:j("payment")})]}),e?(0,i.jsx)(P,{user:ee,nextUser:ea,initialUser:e,initialUserPaymentData:t,payBtnErrorMsg:ei,paymentView:ed,setPaymentView:eu,cardProvider:ep,setCardProvider:em,onPaymentStarted:()=>{eE(""),eN.show&&eP({show:!1,message:""}),ec(!0)},onLoadedPaymentData:()=>{ek("loadedPaymentData"),eC()},onLoadRequiredPageDataError:eS,chosenPeriod:a,userDiff:eg,country:Y,loadingPayButton:eo,setLoadingPayButton:ec,onPaymentErrorMessageChange:eE,onPaymentSuccess:ey,showPaymentContainerUI:ew,companyDetailsErrorMsg:eN,setCompanyDetailsErrorMsg:eP}):null]})]})]}),(0,i.jsx)("div",{className:`bregister-right-box ${eb.productid===C.BUSINESS_PLAN_2_API_ID?"businesspro":""}`,children:(0,i.jsx)(L.A,{planId:C.BUSINESS_PLANS_ID_MAP_FROM_API[eb.productid],planTexts:{subtitle:`${eb.members} ${j("USERS","USERS")} / ${N[C.BUSINESS_PLANS_ID_MAP_FROM_API[eb.productid]].storagePerUser*eb.members} ${j("TB")} ${j("STORAGE","STORAGE")}`},plansType:"business_storage_checkout",plansVersion:eb.productid===C.BUSINESS_PLAN_2_API_ID?"0.0.2":"0.0.1",billingPeriod:eb.period,price:eb.members*(eb.pricecents/100),currency:p.currencyMap[r],periodText:`${j("label_below_business_price","Billed after free trial ends")}`,borderRadius:32,maxNumberOfFeaturesToShow:-1,hideActionButton:!0,textAfterPrice:j(S[eb.period]).toUpperCase(),checkoutHeader:eb.code?null:{title:j("your_order","Your order").toUpperCase(),ctaLink:{href:`/business?period=${eb.period}&users=${eb.members}`,text:j("change","Change").toUpperCase(),disabled:eo}}})})]}),ee&&!s?(0,i.jsx)(V,{currency:r,cardProvider:ep,paymentView:ed,price:eb.members*(eb.pricecents/100),billingPeriod:eb.period}):null]})}},41624:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var r=a(95155),s=a(12115),n=a(76800),i=a(38739),l=a(63915),o=a(81322),c=a(77586),d=a(12035),u=a(67889),p=a.n(u),m=a(99967),h=a(90426),g=a(20512),f=a(92198);let b=({title:e,titleBackgroundImage:t,titleHighlight:a,titleHighlightBackgroun
1dImage:u,secondTitle:b,secondTitleBackgroundImage:x,subtitle:_,description:v,descriptionSecond:y,subDescriptionSecond:w,titleIconSrc:j,titleIconSrc_2x:N,titleAlign:P,titleAlignMobile:C,subtitleAlign:k,subtitleAlignMobile:S,titleIconPosition:E,titleFontSize:A,titleFontSizeMobile:T,secondTitleFontSize:I,secondTitleFontSizeMobile:M,subtitleFontSize:L,subtitleFontSizeMobile:O,subtitleColor:D,titleLineHeight:R,subtitleLineHeight:F,subtitleLineHeightMobile:$,descriptionFontSize:B,descriptionFontSizeMobile:U,descriptionColor:q,descriptionLineHeight:z,descriptionLineHeightMobile:H,descriptionFontWeight:W,bulletBackground:V="#43C31F",bulletStyle:Y="dot",bulletGap:G=null,bulletRowGap:X=null,bulletMinWidth:K=null,titleGap:Q,subtitleGap:Z,subtitleWrapperGap:J,subtitleWrapperGapMobile:ee,image:et,image_2x:ea,mobileImage:er=null,mobileImage_2x:es=null,imagePosition:en="left",mobileImagePosition:ei="between",imagePadding:el=null,imagePaddingMobile:eo=null,imageBorderRadius:ec=null,imageBorderRadiusMobile:ed=null,imageMaxWidth:eu=null,imageMaxWidthMobile:ep=null,imageFullWidthMobile:em=!1,imageTransformOffset:eh=null,imageZIndex:eg=null,titlePadding:ef=null,titlePaddingMobile:eb=null,subtitlePadding:ex=null,subtitlePaddingMobile:e_=null,animatedOnScroll:ev=!0,gridColumnGap:ey=null,gridRowGap:ew=null,gridRowGapMobile:ej=null,animationSpeed:eN=.25,imageCTAButtons:eP=null,imageCTAButtonsAlign:eC="bottom-center",imageCTAButtonsAlignMobile:ek=null,onImageClick:eS=null,contentOverImage:eE=null,contentMaxWidth:eA=null,contentMaxWidthMobile:eT=null,subtitleMaxWidth:eI=null,subtitleMaxWidthMobile:eM=null,imageCTAContent:eL=null,ctaLink:eO=null,ctaButtons:eD=null,loggedUserCTAButtons:eR=null,ctaButtonsContainerMinWidth:eF=null,ctaButtonsTemplate:e$=null,showDownloadAppsButton:eB=!1,downloadAppsButtonsAlign:eU="center",downloadAppsButtonsAlignMobile:eq="center",downloadAppsButtonsClassName:ez="",forceClientOS:eH=null})=>{let eW,eV,eY,eG,eX,eK,eQ=(0,m.useSelector)(({pCloudUser:e})=>e?.logged),eZ=(0,s.useMemo)(()=>eB&&(eH||(0,f.detectOS)(!1,!0)),[eB,eH]),eJ=!0===eB||"mobile-only"===eB||"desktop-only"===eB||"object"==typeof eB&&eB?.[eZ],e0="mobile-only"===eB?"mobile-only":"desktop-only"===eB?"desktop-only":"",e1=eQ&&eR?eR:eD,{t:e2}=(0,o.useT)(),{containerRef:e5,titleAnimations:e3,subtitleAnimations:e4,imageAnimations:e7,staticStyle:e6}=(0,c.K)({animatedOnScroll:ev,animationSpeed:eN}),e9=ev?e7:e6,e8={...A&&{fontSize:A},...R&&{lineHeight:R},...T&&{"--mobile-font-size":T}},te={...I&&{fontSize:I},...R&&{lineHeight:R},...M&&{"--mobile-font-size":M}},tt={...L&&{fontSize:L},...F&&{lineHeight:F},...D&&{color:D},...O&&{"--mobile-font-size":O},...$&&{"--mobile-line-height":$}},ta={...B&&{fontSize:B},...W&&{fontWeight:W},...q&&{color:q},...z&&{lineHeight:z},...U&&{"--mobile-font-size":U},...H&&{"--mobile-line-height":H},...G&&{"--bullet-gap":G},...X&&{"--bullet-row-gap":X},...K&&{"--bullet-min-width":K}},tr=(e,t,a="")=>{let i=a.includes("mobile-only"),l={...e9,...el&&!i&&{padding:el},...el&&!i&&eo&&{"--mobile-padding":eo},...el&&i&&eo&&{padding:eo},...ec&&{"--image-border-radius":ec},...ed&&{"--mobile-border-radius":ed},...eu&&{maxWidth:eu},...ep&&{"--mobile-max-width":ep},...eh&&{"--image-transform-offset":eh},...eg&&{"--image-z-index":eg},...eS&&{cursor:"pointer"}},o=`image-and-text-section-image ${a} ${el&&!i&&eo?"has-mobile-padding":""} ${ec?"has-border-radius":""} ${ed?"has-mobile-border-radius":""} ${ep?"has-mobile-max-width":""} ${em?"full-width-mobile":""} ${eh?"has-transform-offset":""} ${eg?"has-z-index":""} ${eS?"clickable":""}`.trim(),c=(0,r.jsx)(n.P.div,{className:o,style:l,onClick:eS||void 0,role:eS?"button":void 0,tabIndex:eS?0:void 0,onKeyDown:eS?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eS(e))}:void 0,children:s.isValidElement(e)?e:e&&("string"==typeof e||e.src)?(0,r.jsx)(h.default,{src:e,src_2x:t,alt:"Section image"}):e?(0,r.jsx)(e,{}):null}),u=!!eE,p=()=>u?(0,r.jsx)("div",{className:`image-state-overlay ${a}`.trim(),style:ec&&{"--image-border-radius":ec},children:(0,r.jsx)(eE,{})}):null;if(eP&&eP.length>0){let e=`image-wrapper ${a} ${em?"full-width-mobile":""}`.trim(),t=ek?`align-mobile-${ek}`:"",s=`image-cta-overlay align-${eC} ${t} ${a} ${eS?"clickable":""}`.trim();return(0,r.jsxs)("div",{className:e,children:[c,(0,r.jsxs)("div",{className:s,onClick:eS||void 0,role:eS?"button":void 0,tabIndex:eS?0:void 0,onKeyDown:eS?e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eS(e))}:void 0,children:[eL&&(0,r.jsx)(eL,{}),(0,r.jsx)(d.default,{ctaButtons:eP})]}),p()]})}if(u||eS){let e=`image-wrapper ${a} ${em?"full-width-mobile":""}`.trim();return(0,r.jsxs)("div",{className:e,children:[c,p()]})}return c},ts={...ey&&{gridColumnGap:ey},...ew&&{gridRowGap:ew},...ej&&{"--grid-row-gap-mobile":ej},...eA&&{maxWidth:eA},...eT&&{"--content-max-width-mobile":eT}},tn={...ev?e3:e6,...Q&&{gap:Q},...ef&&{padding:ef},...eb&&{"--mobile-title-padding":eb}},ti={...ev?e4:e6},tl=!!(e||a||b),to=!!(_||v||y||eO||e1&&e1.length>0),tc=[tl?"has-title":"no-title",to?"has-subtitle":"no-subtitle",et||er?"has-image":"no-image"].join(" ");return(0,r.jsxs)("div",{ref:e5,className:`image-and-text-section-grid-container image-and-text-section-image-position-${en} image-and-text-section-mobile-image-position-${ei} ${tc} ${eT?"has-content-max-width-mobile":""} ${ej?"has-grid-row-gap-mobile":""}`,style:ts,children:[tl&&(0,r.jsx)(n.P.div,{className:`image-and-text-section-title ${eb?"has-mobile-title-padding":""}`,style:tn,children:(eW=`title align-${P} align-mobile-${C} icon-position-${E} ${T?"has-mobile-font-size":""}`,eV=`image-and-text-second-title title align-${P} align-mobile-${C} ${M?"has-mobile-font-size":""}`,(0,r.jsxs)(r.Fragment,{children:[(e||a)&&(0,r.jsxs)(n.P.h2,{className:eW,style:e8,children:[j&&(0,r.jsx)(h.default,{src:j,src_2x:N,alt:e2(e||a)}),e&&(0,r.jsx)("span",{className:`${t?"text-gradient":""}`,style:t?{backgroundImage:t}:{},children:(0,r.jsx)(i.default,{text:e2(e),converters:[l.boldConverter,l.linkConverter,l.brTagConverter]})}),a&&(0,r.jsx)("span",{className:"text-gradient",style:u?{backgroundImage:u}:{},children:(0,r.jsx)(i.default,{text:e2(a),converters:[l.boldConverter,l.linkConverter,l.brTagConverter]})})]}),b&&(0,r.jsx)(n.P.h3,{className:eV,style:te,children:(0,r.jsx)("span",{className:`${x?"text-gradient":""}`,style:x?{backgroundImage:x}:{},children:e2(b)})})]}))}),er?(0,r.jsxs)(r.Fragment,{children:[et&&tr(et,ea,"desktop-only"),tr(er,es,"mobile-only")]}):et?tr(et,ea):null,to&&(0,r.jsx)(n.P.div,{className:"image-and-text-section-subtitle",style:ti,children:(eY=`image-and-text-section-text-wrapper subtitle align-${k} align-mobile-${S} ${O?"has-mobile-font-size":""} ${$?"has-mobile-line-height":""} ${e_?"has-mobile-subtitle-padding":""} ${ee?"has-mobile-subtitle-wrapper-gap":""} ${eM?"has-mobile-subtitle-max-width":""}`,eG={...tt,...ex&&{padding:ex}
1,...e_&&{"--mobile-subtitle-padding":e_},...J&&{gap:J},...ee&&{"--mobile-subtitle-wrapper-gap":ee},...Z&&{gap:Z},...eI&&{maxWidth:eI},...eM&&{"--mobile-subtitle-max-width":eM}},eK={alignSelf:(eX=e=>"left"===e?"flex-start":"right"===e?"flex-end":"center")(k),...S&&{"--align-self":eX(k)},...S&&{"--mobile-align-self":eX(S)}},(0,r.jsxs)(n.P.div,{className:eY,style:eG,children:[_?(0,r.jsx)("div",{children:(0,r.jsx)(i.default,{text:e2(_),converters:[l.boldConverter,l.linkConverter,l.brTagConverter]})}):null,v?Array.isArray(v)?(0,r.jsx)("div",{className:`description ${U?"has-mobile-font-size":""} ${H?"has-mobile-line-height":""}`,style:ta,children:(0,r.jsx)("ul",{children:v.map((e,t)=>{let a=e.bulletBackground||V,s=e.bulletWidth||(e.bulletIcon?"20px":"6px"),n=e.bulletHeight||(e.bulletIcon?"auto":"6px");return(0,r.jsxs)("li",{children:[e.bulletIcon?(0,r.jsx)("img",{src:e.bulletIcon,alt:"",className:"bullet-icon",style:{width:s,height:n}}):"number"===Y?(0,r.jsxs)("span",{className:"bullet-number text-gradient",style:{backgroundImage:a},children:[t+1,"."]}):(0,r.jsx)("span",{className:"bullet",style:{background:a,width:s,minWidth:s,height:n}}),e.bulletTitle?(0,r.jsxs)("span",{className:"bullet-with-title",children:[(0,r.jsx)("span",{className:"bullet-title",children:e2(e.bulletTitle)}),(0,r.jsx)("span",{children:e2(e.text)})]}):e2(e.text)]},t)})})}):(0,r.jsx)("div",{className:`description ${U?"has-mobile-font-size":""} ${H?"has-mobile-line-height":""}`,style:ta,children:(0,r.jsx)(i.default,{text:e2(v),converters:[l.boldConverter,l.linkConverter,l.brTagConverter]})}):null,y?(0,r.jsxs)("div",{className:"description-second",children:[(0,r.jsx)(i.default,{text:e2(y),converters:[l.boldConverter,l.linkConverter,l.brTagConverter]}),(0,r.jsx)("div",{className:"sub-description-second",children:(0,r.jsx)(i.default,{text:e2(w),converters:[l.boldConverter,l.linkConverter,l.brTagConverter]})})]}):null,eO?(0,r.jsx)(p(),{href:eO.href,className:"cta-link link",style:eK,...eO.target&&{target:eO.target},children:e2(eO.text)}):null,e1&&e1.length>0?(0,r.jsx)("div",{className:"cta-buttons-wrapper",style:eK,children:(0,r.jsx)(d.default,{containerMinWidth:eF,ctaButtons:e1,template:e$})}):null,eJ?(0,r.jsx)("div",{className:`download-apps-buttons-container ${e0}`,style:eK,children:(0,r.jsx)(g.A,{device:eZ,align:eU,alignMobile:eq,buttonWidth:"220px",className:ez})}):null]}))})]})}},41952:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>f});var r=a(95155);a(12115);var s=a(35734),n=a(76800),i=a(84897);let l=({contentWidth:e,navArrowRightSrc:t,navArrowWidth:a,navArrowHeight:s,navArrowWidthMobile:l,navArrowHeightMobile:o,prevBtnDisabled:c,nextBtnDisabled:d,onPrevButtonClick:u,onNextButtonClick:p,slides:m=[],currentSlideIndex:h,scrollTo:g,emblaRef:f,galleryContainerRef:b,children:x})=>{let{containerRef:_,titleAnimations:v,prevButtonAnimation:y,nextButtonAnimation:w}=(0,i.K)({}),j={"--wrapper-width":e?`${e}px`:"896px"},N={"--nav-arrow-width":a||"32px","--nav-arrow-height":s||"32px","--nav-arrow-width-mobile":l||a||"32px","--nav-arrow-height-mobile":o||s||"32px"};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"single-slide-carousel-wrapper",ref:_,style:j,children:[(0,r.jsx)(n.P.button,{className:"single-slide-prev-button",onClick:u,disabled:c,"aria-label":"Previous review",style:{...y,...N},children:(0,r.jsx)("img",{src:t,alt:"Previous"})}),(0,r.jsx)("div",{ref:f,className:"single-slide-carousel-viewport",children:(0,r.jsx)(n.P.div,{className:"single-slide-carousel-container carousel-container",ref:b,"data-swipe-area":!0,style:v,children:x})}),(0,r.jsx)(n.P.button,{className:"single-slide-next-button",onClick:p,disabled:d,"aria-label":"Next review",style:{...w,...N},children:(0,r.jsx)("img",{src:t,alt:"Next"})})]}),(0,r.jsx)("div",{className:"single-slide-dots-container",children:m.map((e,t)=>(0,r.jsx)("div",{className:"single-slide-clickable-area",onClick:e=>{g(t)},children:(0,r.jsx)("div",{className:`single-slide-dot-button${t===h?" active":""}`,"aria-label":`Go to slide ${t+1}`,type:"button"})},t))})]})};var o=a(4474),c=a(81322);let d=({slideContent:e})=>{let{t}=(0,c.useT)(),a=e.imagePosition||"between",s=e.mobileImagePosition||"between",n=(0,r.jsx)("div",{className:"quote single-carousel-title",children:t(e.title)}),i=(0,r.jsx)("div",{className:"single-carousel-logo-container",children:(0,r.jsx)("img",{src:e.image,className:"single-carousel-logo",alt:((e,t)=>{if(e.imageAlt)return e.imageAlt;let a="";return"string"==typeof e.title?a=e.title:e.title&&"object"==typeof e.title&&(a=t?t(e.title):e.title.t_default||""),a?`${a} logo`:"Company logo"})(e,t),loading:"lazy"})}),l=(0,r.jsx)("a",{href:e.readMoreLink,target:"_blank",rel:"noopener noreferrer",className:"link single-carousel-read-more",children:t("Read more","Read more")});return(0,r.jsx)("div",{className:"single-carousel-slide",children:(0,r.jsx)("div",{className:`single-carousel-slide-content image-position-${a} mobile-image-position-${s}`,children:"left"===a||"right"===a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"single-carousel-content-text",children:[n,l]}),i]}):(0,r.jsxs)(r.Fragment,{children:[n,i,l]})})})},u={title:{t_text:"reviews_section_title",t_default:"pCloud is Getting Attention"},slides:{default:[{id:1,title:{t_text:"reviews_slide_1",t_default:"âpCloud is a great value cloud storage service with a fantastic free plan and the kind of social media integration that few of its rivals can match.â"},image:o.w4+"images/animated-home/reviews/techradar.svg",readMoreLink:"https://www.techradar.com/reviews/pcloud",imagePosition:"between",mobileImagePosition:"between"},{id:2,title:{t_text:"reviews_slide_2",t_default:"âpCloud provides excellent backup options, fast upload speeds, and flexible sharing controls without compromising privacy.â"},image:o.w4+"images/animated-home/reviews/cloudwards.svg",readMoreLink:"https://www.cloudwards.net/review/pcloud/",imagePosition:"between",mobileImagePosition:"between"},{id:3,title:{t_text:"reviews_slide_3",t_default:"âpCloud offers great performance, simple file sharing with password protection and expiration dates, plus unmatched lifetime plans.â"},image:o.w4+"images/animated-home/reviews/gizmodo.svg",readMoreLink:"https://gizmodo.com/best-cloud-storage",imagePosition:"between",mobileImagePosition:"between"}],de:[{id:1,title:"âpCloud ist ein Cloud-Speicher mit deutlichem Fokus auf digitale Mediadateien.â",image:o.w4+"images/animated-home/reviews/netzsieger.svg",readMoreLink:"https://www.netzsieger.de/p/pcloud",imagePosition:"between",mobileImagePosition:"between"},{id:2,title:"âMit der Kombination aus solider Sicherheit und fairer Preisgestaltung kann uns pCloud \xfcberzeugen.â",
1image:o.w4+"images/animated-home/reviews/netzwelt.svg",readMoreLink:"https://www.netzwelt.de/cloud-speicher/pcloud-testbericht.html",imagePosition:"between",mobileImagePosition:"between"},{id:3,title:"âpCloud ist in diesem Jahr Cloud-Speicher-Testsieger. Die Gr\xfcnde: Hohe Sicherheitsstandards, gutes Preis-Leistungs-Verh\xe4ltnis und top Usability.â",image:o.w4+"images/animated-home/reviews/trusted.svg",readMoreLink:"https://trusted.de/cloud-speicher#pcloud",imagePosition:"between",mobileImagePosition:"between"}],fr:[{id:1,title:"âBas\xe9 en Suisse, pCloud est l'un des rares h\xe9bergeurs \xe0 garantir une s\xe9curit\xe9 et confidentialit\xe9 sans faille.â",image:o.w4+"images/animated-home/reviews/clubic.svg",readMoreLink:"https://www.clubic.com/stockage-en-ligne/guide-21001-meilleur-stockage-cloud.html",imagePosition:"between",mobileImagePosition:"between"},{id:2,title:"âLe meilleur cloud en ligne gr\xe2ce \xe0 son service de qualit\xe9 et sa plateforme ergonomique et rapide.â",image:o.w4+"images/animated-home/reviews/01net.svg",readMoreLink:"https://www.01net.com/cloud/",imagePosition:"between",mobileImagePosition:"between"},{id:3,title:"âpCloud est le meilleur service de stockage en ligne avec un rapport qualit\xe9/prix excellent.â",image:o.w4+"images/animated-home/reviews/pressecitron.svg",readMoreLink:"https://www.presse-citron.net/stockage-en-ligne/",imagePosition:"between",mobileImagePosition:"between"}],es:[{id:1,title:"âpCloud destaca por ofrecer una soluci\xf3n con almacenamiento seguro, pago \xfanico de por vida y gran versatilidad.â",image:o.w4+"images/animated-home/reviews/andro4all.svg",readMoreLink:" https://andro4all.com/aplicaciones/los-7-mejores-servicios-de-almacenamiento-en-la-nube-de-2023-manten-tus-archivos-a-salvo",imagePosition:"between",mobileImagePosition:"between"},{id:2,title:"âpCloud es una de las mejores alternativas por su facilidad de uso, velocidad y opciones de seguridad robustas.â",image:o.w4+"images/animated-home/reviews/01net.svg",readMoreLink:"https://www.01net.com/es/almacenamiento-nube/",imagePosition:"between",mobileImagePosition:"between"},{id:3,title:"âEste servicio ofrece almacenamiento seguro, privacidad total y funciones avanzadas para usuarios exigentes.â",image:o.w4+"images/animated-home/reviews/redeszone.svg",readMoreLink:"https://www.redeszone.net/analisis/software/pcloud-almacenamiento-nube-cloud-premium/",imagePosition:"between",mobileImagePosition:"between"}],it:[{id:1,title:"âpCloud \xe8 una soluzione cloud ideale per chi cerca privacy e spazio a vita, affidabile nel lungo termine.â",image:o.w4+"images/animated-home/reviews/hdblog.svg",readMoreLink:"https://www.hdblog.it/applicazioni/guide/n612251/pcloud-recensione/",imagePosition:"between",mobileImagePosition:"between"},{id:2,title:"âpCloud \xe8 semplice da usare, veloce e sicuro con ottimo rapporto qualit\xe0-prezzo.â",image:o.w4+"images/animated-home/reviews/01net.svg",readMoreLink:"https://www.01net.com/it/cloud-storage/pcloud/",imagePosition:"between",mobileImagePosition:"between"},{id:3,title:"âpCloud offre spazio stabile, prestazioni elevate e sicurezza avanzata.â",image:o.w4+"images/animated-home/reviews/punto-informatico.svg",readMoreLink:"https://www.punto-informatico.it/pcloud-recensione/",imagePosition:"between",mobileImagePosition:"between"}],ja:[{id:1,title:"å人çã«ã¯pCloudã¯ã¯ã©ã¦ãã¹ãã¬ã¼ã¸ã®å©ç¹ãæå¤§éã«å©ç¨ã§ãããµã¼ãã¹ã ã¨æã£ã¦ãã¾ãã",image:o.w4+"images/animated-home/reviews/blankcoin.svg",readMoreLink:"https://blankcoin.com/?p=6802",imagePosition:"between",mobileImagePosition:"between"},{id:2,title:"ããããpCloudã£ã¦çµæ§ãå¾ãªããããã¨æããæ¹ãå¤ãã¨æãã¾ãããããpCloudãå©ç¨ããã°å¤ä»ãSSDã®ä¸æºã䏿°ã«è§£æ±ºã§ãã¾ã",image:o.w4+"images/animated-home/reviews/sukiburo.svg",readMoreLink:"https://sukiburo.jp/pcloud/#1",imagePosition:"between",mobileImagePosition:"between"},{id:3,title:"é·æé使ããã¨ãæ³å®ãã¦ãä¾¡æ ¼ãæ¯è¼ããã¨ãè²·ãåãã¢ãã«ãããã«ãå¾ã宿ããã ããã¯ãã",image:o.w4+"images/animated-home/reviews/macfan.svg",readMoreLink:"https://macfan.book.mynavi.jp/article/41667/",imagePosition:"between",mobileImagePosition:"between"}],zh:[{id:1,title:"æå人èªçºpCloudæ¯ç®åç¾å¤é²ç«¯ç¡¬ç¢é¸æç¶ä¸ï¼æ´é«è©å¹æå¥½çåçï¼è©²æçåè½é½ç¸ç¶å®æ´ï¼å°¤å
¶æ¯é»è
¦è»é«çç¸ç¶å¥½ç¨ã",image:o.w4+"images/animated-home/reviews/benic360.svg",readMoreLink:"https://benic360.com/best-cloud-drive-services/",imagePosition:"between",mobileImagePosition:"between"},{id:2,title:"pCloudçåè¶ä¹èé«ç¾å¨å
¶å®å
¨æ§ãéæ´»æ§åæä¹
æ§ä¸ã該æå以強大çå 坿è¡ä¿éç¨æ¶æ¸æçå®å
¨æ§ï¼åææä¾éæ´»çå²åæ¹æ¡ï¼æ»¿è¶³ä¸åç¨æ¶çåæ§åéæ±ã
1",image:o.w4+"images/animated-home/reviews/mytechgirl.svg",readMoreLink:"https://www.mytechgirl.com/tw/cloud/pcloud-prices-and-plans-mtg6688.html",imagePosition:"between",mobileImagePosition:"between"},{id:3,title:"pCloud æ¯ä¸å®¶é常注éè³æå®å
¨æ§çå
¬å¸ï¼æ¾å¨ 2016 å¹´ç²å¾ Best Cloud Security çé
ãå³ä¾¿å°ä»æ¥ï¼æªæ¾ç¼çéä»»ä½è³å®æ°èã",image:o.w4+"images/animated-home/reviews/aidaidme.svg",readMoreLink:"https://aidaidme.com/pcloud-cloud-storage-intro/",imagePosition:"between",mobileImagePosition:"between"}]}};u.slides;var p=a(40381);let m=({title:e,animations:t={}})=>{let{t:a}=(0,c.useT)();return(0,r.jsx)(n.P.h2,{className:"title text-gradient",style:t,children:a(e)})};var h=a(77586);let g=({children:e,title:t,animatedOnScroll:a=!0,sectionClassName:s="",sectionBackground:n=null,sectionBackgroundMobile:i=null})=>{let{titleAnimations:l,containerRef:o}=(0,h.K)({disabled:!a});return(0,r.jsx)("section",{className:`section ${s}`,ref:o,style:{...n&&{"--section-background":n},...i&&{"--section-background-mobile":i}},children:(0,r.jsx)("div",{className:"align-container",children:(0,r.jsxs)("div",{className:"single-carousel-flex-container full-width",children:[(0,r.jsx)(m,{title:t,animations:a?l:{}}),e]})})})},f=({sectionClassName:e,title:t=u.title,slides:a=u.slides,SlideComponent:n=d,animatedOnScroll:i=!0,contentWidth:c="1180",minContentOffset:m=24,navArrowRightSrc:h=o.w4+"images/circle-arrow-light.svg",navArrowWidth:f="48px",navArrowHeight:b="48px",navArrowWidthMobile:x="32px",navArrowHeightMobile:_="32px",dragFree:v=!1,visibleSlidesInContent:y=1,align:w="center",sectionBackground:j=null,sectionBackgroundMobile:N=null})=>{let P=a[(0,p.Z)()]||a.default;return P&&Array.isArray(P)&&0!==P.length?(0,r.jsx)(g,{title:t,animatedOnScroll:i,sectionClassName:e,sectionBackground:j,sectionBackgroundMobile:N,children:P.length>1?(0,r.jsx)(s.A,{SlideComponent:n,Template:l,slides:P,contentWidth:c,minContentOffset:m,navArrowRightSrc:h,navArrowWidth:f,navArrowHeight:b,navArrowWidthMobile:x,navArrowHeightMobile:_,dragFree:v,visibleSlidesInContent:y,align:w}):(0,r.jsx)(n,{slideContent:P[0]})}):(console.warn("SingleCarouselSection: No valid slides provided"),null)}},42209:()=>{},44522:(e,t,a)=>{"use strict";a.d(t,{Q:()=>n});var r=a(12115),s=a(92198);let n=({user:e,onScriptsLoaded:t=()=>{},onScriptsError:a=e=>{},disableLoad:n=!1})=>{let i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{n||!e||(i.current?t():Promise.all(["https://js.stripe.com/v2/","https://js.stripe.com/v3/","https://js.braintreegateway.com/web/3.76.0/js/client.min.js","https://js.braintreegateway.com/web/3.76.0/js/paypal-checkout.min.js","https://js.braintreegateway.com/web/3.76.0/js/data-collector.min.js"].map(e=>(0,s.loadScript)(e))).then(()=>{i.current=!0,t()}).catch(e=>{a(e)}))},[e,t,a,n])}},46618:(e,t,a)=>{"use strict";a.d(t,{default:()=>e_});var r,s,n,i=a(95155),l=a(12115),o=a(60082),c=a(74703),d=a(76800),u=a(38739),p=a(11595),m=a(78699),h=a.n(m),g=a(89037),f=a(19138),b=a(47520),x=a(88032),_=a(81322),v=a(40381),y=a(29157),w=a(2604),j=a(56934),N=a(99967),P=a(47e3);let C=({nextUser:e,user:t,userIsBuyingPcloudPassPlan:a,handleLogin:r=null,onPrepareLoginOrSignupFormFinished:s=()=>{},validateLoginOrSignupForm:n=!1})=>{let{t:o}=(0,_.useT)(),{setCookie:u}=(0,j.f)(),p=(0,N.useDispatch)(),m="signin"===((0,g.hrefSearch)("authentication-option")||"").toLowerCase()?"login":"register",[h,C]=(0,l.useState)(S),T=async(e={})=>{let{pcauth:t,locationid:a,passToken:s}=e;if("function"!=typeof r)return;let n=null,i=null;if(await Promise.all([new Promise(async e=>{n=await (0,b.default)(t,()=>{},{apiServer:w.default?.apiServer}),e()}),new Promise(async e=>{i=await (0,x.A)({auth:s}),e()})]),n&&0===n.result){let e={...n,auth:t,passmanagerdata:i};await (0,P.Ir)({userinfo:e,locationid:a},u,p),r(e)}},I=a?t?null:(0,i.jsx)("div",{className:"checkout-pass-form-container",children:(0,i.jsx)(f.A,{onSuccessToken:T,isLoginModal:!1,toRegister:!0,showTitle:!0,toLogin:!0,urlEmail:"",view:m,skipRecoveryWordsStepAfterSignup:!0,showVerificationCodeStep:!1,skipVerificationCodeStep:!0,customTitleStyle:k,customInputStyle:n?{style:{...h.style,"border-color":"#fe574e"}}:h,customButtonStyle:E,customStepActionDescription:A})}):t&&e?null:(0,i.jsx)("div",{className:"checkout-form-container",children:(0,i.jsx)("div",{className:"signin-container-form",children:(0,i.jsx)(y.A,{onForgotPassword:()=>{},language:(0,v.Z)(),isLoginModal:!1,showTitle:!1,onPrepareLoginOrSignupFormFinished:s,skipPrepareLoginOrSignupFormLoading:!0,forceValidateForm:n,buttinIsOutsideInput:!1,disabledByDefault:!0,noDefaultFiles:!1,tooltip:null,onLoginSuccess:e=>r(e.userinfo)})})});return(0,i.jsxs)("div",{className:"checkout-signin-container-wrapper",children:[(0,i.jsxs)("div",{className:"checkout-section-title",children:[(0,i.jsx)("span",{className:"checkout-step-number",children:t?(0,i.jsx)("span",{className:"checkout-check-icon",style:{to
1p:"7px"}}):"1"}),(0,i.jsxs)("span",{className:"checkout-step-title",children:[o("your_acc"),t?(0,i.jsx)(d.P.div,{className:"signin-container-useremail",initial:{opacity:0,height:0,marginTop:0},animate:{opacity:1,height:"auto",marginTop:4},transition:{duration:.35,ease:"easeOut"},style:{overflow:"hidden"},children:t.email}):null]})]}),(0,i.jsx)("div",{className:"checkout-step-content-wrapper",children:(0,i.jsx)(c.N,{initial:!1,children:I&&(0,i.jsx)(d.P.div,{className:`checkout-sign-form-wrapper ${t?"checkout-sign-form-wrapper--user":""}`,initial:!1,exit:{height:0,opacity:0},transition:{duration:.4,ease:"easeInOut"},style:{overflow:"hidden"},children:I},"signin-form")})})]})},k={style:{"font-size":"17px","line-height":"1.35",margin:"5px 0","text-align":"center","font-weight":"normal","max-width":"initial"}},S={style:{"border-radius":"4px"}},E={style:{"border-radius":"4px"}},A={style:{"max-width":"100%"}};var T=a(59425),I=a(90929),M=a(4007),L=a(41252),O=a(74585),D=a(92577),R=a(44323);function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let $=function(e){return l.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",width:18,height:17.999},e),r||(r=l.createElement("path",{d:"M9 18a9.01 9.01 0 0 1-9-9 9.01 9.01 0 0 1 9-9 9.01 9.01 0 0 1 9 9 9.01 9.01 0 0 1-9 9M9 2a7.01 7.01 0 0 0-7 7 7.007 7.007 0 0 0 7 7 7.01 7.01 0 0 0 7-7 7.01 7.01 0 0 0-7-7",opacity:.15})),s||(s=l.createElement("path",{d:"M0 9a9.01 9.01 0 0 1 8.952-9H9a1 1 0 0 1 1 1 1 1 0 0 1-1 1 7.01 7.01 0 0 0-7 7 1 1 0 0 1-1 1 1 1 0 0 1-1-1",opacity:.35})))};function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let U=function(e){return l.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),n||(n=l.createElement("path",{fill:"#d9d9d9",d:"M8 16a8.01 8.01 0 0 1-8-8 8.01 8.01 0 0 1 8-8 8.01 8.01 0 0 1 8 8 8.01 8.01 0 0 1-8 8m0-9a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1 1 1 0 0 0 1-1V8a1 1 0 0 0-1-1m0-3a1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1"})))};var q=a(778),z=a(60333);let H=({price:e=0,currency:t,oldPrice:a,className:r="",newLine:s=!1,hasDiscount:n=!1,discountPercentages:o=0,size:c="small",priceColor:d,oldPriceColor:u,pricesInColumn:p=!1})=>{let m=`box-prices-inline-wrapper ${p?"box-prices-inline-wrapper--column":""} ${r}`,h=`box-prices-inline-old-price ${"big"===c?"box-prices-inline-old-price--big":""} ${p?"box-prices-inline-old-price--column":""}`,g=`box-prices-inline-price ${"big"===c?"box-prices-inline-price--big":""}`,f=`box-prices-inline-currency-code ${"big"===c?"box-prices-inline-currency-code--big":""}`;return(0,i.jsxs)(l.Fragment,{children:[s?(0,i.jsx)("br",{}):null,(0,i.jsxs)("div",{className:m,children:[a&&a!=e&&0!=e?(0,i.jsx)(l.Fragment,{children:(0,i.jsxs)("span",{className:h,style:u?{color:u}:void 0,children:[(0,i.jsx)("span",{children:a}),(0,i.jsx)("span",{className:`${f} currency-code-old-price`,children:z.signToCurrency[t]}),(0,i.jsx)("div",{className:"box-prices-inline-crossline",style:u?{backgroundColor:u}:void 0})]})}):null,(0,i.jsxs)("span",{className:g,style:d?{color:d}:void 0,children:[(0,i.jsx)("span",{children:e}),(0,i.jsx)("span",{className:f,children:z.signToCurrency[t]})]})]}),n?(0,i.jsx)("div",{className:"box-prices-inline-discount-wrapper",children:(0,i.jsxs)("span",{children:[__("discount_applied","Discount applied"),o>0?" -"+o+"%":null]})}):null]})};var W=a(99907);let V=({feature:e,tooltip:t,className:a="",showCheck:r=!0,color:s="#17bed0"})=>(0,i.jsxs)("div",{className:`box-feature-wrapper ${a}`,children:[r?(0,i.jsx)("span",{className:"checkout-check-icon",style:{display:"block",top:"-2px",width:"7px",height:"14px",borderColor:s,position:"relative",marginLeft:"0"}}):null,(0,i.jsx)("div",{className:"box-feature-text",children:e}),t?(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(U,{"data-tooltip-id":"feature-tooltip","data-tooltip-content":t,width:"16px",height:"16px",className:"feature-info-icon"}),(0,i.jsx)(O.m_,{id:"feature-tooltip",className:"tooltip-message",multiline:!0})]}):null]});var Y=a(45687);let G=({plan:e,selectable:t=!1,color:a,price:r=0,oldPrice:s=0,currency:n="",priceLoading:o=!1,selected:c,onChange:d=()=>{},testid:u="",disabled:p=!1,featuresAsTooltip:m=!1,showFeatures:h=!0})=>{let{t:g}=(0,_.useT)(),f=(0,l.useMemo)(()=>(0,L.getPlanBoxTexts)(),[]),b=(0,l.useMemo)(()=>{let t=L.productNameMap[e.id][e.addplan?"add":"long"];return e.id===M.ADDITIONAL_TRAFFIC_ID&&(t=t.replace("%amount%",(0,W.renderQuota)(e.trafficafterbuy,!0))),e.id===M.CUSTOM4TB_PLAN_ID&&(t=t+" "+(0,W.renderQuota)(e.quotaafterbuy,!0)),t},[e]),x=I.COLORS[a]?I.COLORS[a].mainColor:"#17bed0",[v,y]=(0,l.useState)({shown:!1,animationFinished:!0}),[w,j]=(0,l.useState)("auto"),N=(0,l.useRef)(null),P=(0,l.useRef)(!1);(0,l.useEffect)(()=>
1{if(!m&&N.current){let e=N.current,t=()=>{y({shown:P.current,animationFinished:!0})};return e.addEventListener("transitionend",t),j(e.offsetHeight+"px"),()=>{e.removeEventListener("transitionend",t)}}},[m]);let C=(e,t=!0)=>{let{features:a}=f[e.id];return a[e.addplan?"add":"default"].map(({feature:a},r)=>(-1!==a.indexOf("%traffic_amount%")&&(a=a.replace("%traffic_amount%",(0,W.renderQuota)(e.trafficafterbuy,!0))),-1!==a.indexOf("%amount%")&&(a=a.replace("%amount%",(0,W.renderQuota)(e.quotaafterbuy,!0))),(0,i.jsx)(V,{feature:a,showCheck:t,color:x},e.id+"_feature_"+r)))},k=`order-info-plan-box-checkbox-name-wrapper ${t&&p?"order-info-plan-box-checkbox-name-wrapper--disabled":""}`,S=`order-info-plan-box-checkbox-wrapper ${m?"order-info-plan-box-checkbox-wrapper--tooltip":""}`,E=`order-info-plan-box-name ${!h||!m?"order-info-plan-box-name--no-info-icon":""}`,A=`order-info-plan-box-name-text ${t?"order-info-plan-box-name-text--selectable":""} ${p?"order-info-plan-box-name-text--disabled":""} plan-name-text`,T=`order-info-plan-box-benefits-wrapper ${v.shown?"show-benefits":""}`,F=`order-info-plan-box-benefits-container-wrapper ${"auto"===w?"order-info-plan-box-benefits-container-wrapper--auto":""} benefits-container-wrapper`;return(0,i.jsxs)("div",{className:"order-info-plan-box-wrapper plan-wrapper",children:[(0,i.jsxs)("div",{className:"order-info-plan-box-name-price-wrapper",children:[(0,i.jsxs)("div",{className:k,children:[(0,i.jsx)("div",{className:S,children:t?(0,i.jsx)(q.default,{size:"big",color:x,checked:c,isDisabled:p,onChange:d}):(0,i.jsx)("span",{className:"checkout-check-icon plan-box-check-icon",style:{display:"block",top:"0",width:"7px",height:"14px",borderColor:x,position:"relative",marginLeft:"4px"}})}),(0,i.jsx)("div",{className:E,children:(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{className:A,"data-testid":u,onClick:t&&!p?d:()=>{},children:b}),h&&m?(0,i.jsxs)("span",{className:"plan-info-icon-wrapper",children:[(0,i.jsx)(O.m_,{id:"plan-info-"+e.id,className:"tooltip-message plan-info-tooltip",multiline:!0}),(0,i.jsx)(U,{className:"plan-info-icon","data-tooltip-id":"plan-info-"+e.id,"data-tooltip-html":Y.renderToStaticMarkup(C(e)),width:"16px",height:"16px"})]}):null]})})]}),(0,i.jsx)("div",{className:"order-info-plan-box-prices-wrapper",children:(0,i.jsx)("div",{className:"checkout-animation-container",children:(0,i.jsx)(D.A,{children:(0,i.jsx)(R.A,{addEndListener:(e,t)=>e.addEventListener("transitionend",t,!1),classNames:"fade",children:o?(0,i.jsx)("div",{className:"checkout-price-loading-wrapper",children:(0,i.jsx)("div",{className:"checkout-spin-container",style:{"--spin-width":"18px","--spin-height":"18px"},children:(0,i.jsx)($,{})})}):(0,i.jsx)(H,{size:"small",oldPriceSize:"14px",price:r%1==0?r:r.toFixed(2),currency:n,oldPrice:s%1==0?s:s.toFixed(2)})},o)})})})]}),h&&!m?(0,i.jsxs)("div",{className:T,style:{"--max-height":w},children:[(0,i.jsx)("div",{ref:N,className:F,children:(0,i.jsx)("div",{className:"order-info-plan-box-benefits-container",children:C(e)})}),(0,i.jsx)("a",{className:"order-info-plan-box-toggle-benefits-link",style:{"--link-color":x},onClick:()=>{P.current=!P.current,y({shown:P.current,animationFinished:!1}),!P.current&&N.current?j("0"):P.current&&N.current&&j(N.current.scrollHeight+"px")},children:v.shown&&v.animationFinished||!v.shown&&!v.animationFinished?(0,i.jsxs)(l.Fragment,{children:[g("label_hide_all_benefits","Hide all benefits")," ",(0,i.jsx)("span",{className:"order-info-plan-box-benefits-arrow-up",style:{"--arrow-color":x}})]}):(0,i.jsxs)(l.Fragment,{children:[g("label_see_all_benefits","See all benefits")," ",(0,i.jsx)("span",{className:"order-info-plan-box-benefits-arrow-down",style:{"--arrow-color":x}})]})})]}):null]})},X=({periodText:e,price:t,oldPrice:a,priceLoading:r=!1,priceLoadingDelay:s=0,currency:n,showDiscountLabel:o=!1,discountPercentages:c=0,discountSum:d=0})=>{let{t:u}=(0,_.useT)();t=t%1==0?t:t.toFixed(2),a=a%1==0?a:a.toFixed(2);let[m,h]=(0,l.useState)(r),g=(0,l.useRef)(null);(0,l.useEffect)(()=>()=>{s>0&&g.current&&clearTimeout(g.current)},[]),(0,l.useEffect)(()=>{0==s?h(r):(clearTimeout(g.current),r?g.current=setTimeout(()=>r?h(!0):null,s):h(!1))},[r]);let f=`order-info-price-sum-wrapper ${o?"order-info-price-sum-wrapper--column":""}`;return(0,i.jsxs)("div",{className:f,children:[(0,i.jsxs)("div",{className:"order-info-price-sum-period-text",children:[(0,i.jsx)("div",{children:e}),o?(0,i.jsx)("div",{className:"order-info-price-sum-discount-wrapper",children:(0,i.jsxs)("span",{children:[u("discount_applied","Discount applied"),c>0?" -"+c+"%":d>0?(0,i.jsxs)(l.Fragment,{children:[" -",d," ",(0,i.jsx)("span",{className:"order-info-price-sum-discount-currency",children:z.signToCurrency[n]})]}):null]})}):null]}),(0,i.jsx)(p.A,{trigger:m,type:"fade",timeout:300,disableInitialAnimation:!1,style:{position:"relative"},children:(0,i.jsxs)(l.Fragment,{children:[m?(0,i.jsx)("div",{className:"checkout-price-loading-wrapper",style:{position:"absolute",width:"100%"},children:(0,i.jsx)("div",{className:"checkout-spin-container checkout-spin-container--right",style:{"--spin-width":"18px","--spin-height":"18px"},children:(0,i.jsx)($,{})})}):null,(0,i.jsx)(H,{className:`total-price${m?" vis-hidden":""}`,pricesInColumn:o,size:"big",price:t,priceColor:o?"#3eaf2f":void 0,oldPriceColor:o?"#000":void 0,currency:n,oldPrice:a})]})})]})};var K=a(92198),Q=a(69447),Z=a(67889),J=a.n(Z);let ee=({chosenPlan:e,chosenPeriod:t,user:a,renderPayButton:r,setCart:s,disabledPlanOptions:n=!1,paymentInProgress:o,discount:c,setTotalPrice:d,totalPrice:u,traffic:p,orderInfo:m={totalDiscount:0,totalPlanPrice:0,totalPriceToPay:0,totalOriginalPrice
1:0,totalNextPriceToPay:0,nextBillingDate:"",initialOrderPlans:[],subscribedPlans:{plans:[],storagePlansToUpgrade:[],passPlansToUpgrade:[],trafficPlansToUpgrade:[],periods:[]},upsellPlans:[],chosenUpsellPlans:[]},paymentSummaryData:h={totalDiscount:0,totalPlanPrice:0,totalPriceToPay:0,totalNextPriceToPay:0,nextBillingDate:"",currency:null},setPaymentSummaryData:g,featuresAsTooltip:f=!1,chosenUpsellPlans:b,setChosenUpsellPlans:x,loadOrderInfoOnUpsellsChangeXHR:v=null,loadOrderInfoXHR:y=null,setLoadRequiredPageDataFailed:w=(e=!1)=>e,setLoadingOrderInfoOnUpsellsChange:j=(e=!1)=>e,loadingOrderInfoOnUpsellsChange:N=!1,paypalButtonLoading:P=!1,paymentView:C="ccard",cardProvider:k=null,downgrade:S="",pricingPageURL:E,pricingPagePassURL:A,cryptoPageURL:T,trafficPageURL:O,familyPageURL:D})=>{let R,F,$,B,{t:U}=(0,_.useT)(),[q,H]=(0,l.useState)(0),W=(0,l.useMemo)(()=>(0,L.getUnderPriceTexts)(),[]),V=(0,l.useRef)(null);(0,l.useEffect)(()=>{V.current&&Z()},[V]);let Y=()=>{let e=[];for(let t of m.initialOrderPlans)e.push(t.id);for(let t of m.subscribedPlans.plans)for(let a of t.subscribedProducts)e.push(a.id);return e};(0,l.useLayoutEffect)(()=>{s(Y().concat(m.chosenUpsellPlans)),g({totalDiscount:m.totalDiscount,totalPlanPrice:m.totalPlanPrice,totalPriceToPay:m.totalPriceToPay,totalNextPriceToPay:m.totalNextPriceToPay,nextBillingDate:m.nextBillingDate,currency:m.currency}),d(m.totalPriceToPay/100),H(m.totalOriginalPrice/100),m.upsellPlans.length&&"u">typeof dataLayer&&m.upsellPlans.forEach(({id:e,pricecents:a,discount:r,validdiscountcode:s})=>{dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_item",ecommerce:{currency:z.signToCurrency[m.currency],value:a/100,items:[{item_id:e,item_name:L.planNames[e]+" "+L.gaPeriods[t],affiliation:(0,K.rcookie)("ref")||"0",coupon:r&&s?r:"",index:0,item_brand:L.PASS_PLANS_PER_PERIOD[t].includes(e)?"pCloudPass":"pCloud",item_category:L.gaPeriods[t],item_variant:L.plansQuota[e]||"",price:a/100,quantity:1}]}})}),window.dispatchEvent(new CustomEvent("sticky-total-price-and-pay-btn-check"))},[m]),(0,l.useEffect)(()=>{if(null===b.data||null!==y.current||"checkbox_change"!=b.setAfter)return;let e=Y();for(let t in b.data){let a=m.upsellPlans.find(e=>e.id===b.data[t]);a&&e.push(a.id)}s(e),j(!0),v&&v.current&&null!==v.current&&v.current.abort&&v.current.abort(),v.current=(0,Q.Sz)({user:a,chosenPeriod:t,chosenPlanIds:e,subscribedPlans:{plans:[],storagePlansToUpgrade:[],passPlansToUpgrade:[],trafficPlansToUpgrade:[],periods:[]},chosenUpsellPlans:{},traffic:p,paymentView:C,cardProvider:k,discountCode:c},e=>{let t=e.amounttopay,a=e.originaltotalamount;d(t/100),H(a/100),g({totalDiscount:e.totaldiscount||0,totalPlanPrice:e.totalamount||0,totalPriceToPay:t,totalNextPriceToPay:e.nextbillingamount,nextBillingDate:e.nextbillingtime,currency:z.currencyMap[e.currency]}),j(!1),v.current=null,window.dispatchEvent(new CustomEvent("sticky-total-price-and-pay-btn-check"))},e=>{e&&"xhr_error"===e.result&&e.error&&e.error.status&&"abort"===e.error.status||w(!0)})},[b]);let Z=()=>{let e=V.current?.querySelector(".sticky-element-wrapper");if(!e)return;let t=!1,a=()=>{window.innerWidth<=768&&window.innerHeight>400&&V.current?.getBoundingClientRect().top+e.offsetHeight>window.innerHeight?(e.parentElement&&(e.parentElement.style.height=e.offsetHeight+"px"),t||(e.classList.add("sticky-total-price-and-pay-btn"),t=!0)):t&&(e.parentElement&&(e.parentElement.style.height="auto"),e.classList.remove("sticky-total-price-and-pay-btn"),t=!1)};window.addEventListener("scroll",a),window.addEventListener("resize",a),window.addEventListener("sticky-total-price-and-pay-btn-check",a),a()},ee=e=>a&&m.subscribedPlans.plans.length&&"lifetime"!==t?m.subscribedPlans.plans.map(a=>e&&a.period!==t||!e&&a.period===t?null:a.subscribedProducts.map(t=>(0,i.jsx)(G,{plan:t,selectable:!1,color:L.plansCheckoutPageColors[t.id],price:t.pricecents/100,oldPrice:c&&h.totalDiscount>0?null:t.originalprice/100,currency:h.currency,featuresAsTooltip:f,showFeatures:!e},t.id))):null,et=e=>{let{id:a,pricecents:r,addplan:s}=e,n=b?{...b,setAfter:"checkbox_change"}:{setAfter:"checkbox_change",data:{}};n.data&&void 0!==n.data[a]?(delete n.data[a],"u">typeof dataLayer&&(dataLayer.push({ecommerce:null}),dataLayer.push({event:"remove_from_cart",ecommerce:{currency:z.signToCurrency[h.currency],value:r/100,items:[{item_name:L.planNames[a]+" "+L.gaPeriods[t],item_brand:L.PASS_PLANS_PER_PERIOD[t].includes(a)?"pCloudPass":"pCloud",item_category:L.gaPeriods[t],item_variant:L.plansQuota[a]||"",affiliation:(0,K.rcookie)("ref")||"0",coupon:c&&h.totalDiscount>0?c:"",price:r/100,currency:z.signToCurrency[h.currency],quantity:1}]}}))):(n.data[a]=a,"u">typeof dataLayer&&(dataLayer.push({ecommerce:null}),dataLayer.push({event:"add_to_cart",ecommerce:{currency:z.signToCurrency[h.currency],value:r/100,items:[{item_name:L.planNames[a]+" "+L.gaPeriods[t],item_brand:L.PASS_PLANS_PER_PERIOD[t].includes(a)?"pCloudPass":"pCloud",item_category:L.gaPeriods[t],item_variant:L.plansQuota[a]||"",affiliation:(0,K.rcookie)("ref")||"0",coupon:c&&h.totalDiscount>0?c:"",price:r/100,currency:z.signToCurrency[h.currency],quantity:1,item_id:a}]}})),"u">typeof ttq&&ttq.track&&"function"==typeof ttq.track&&ttq.track("AddToCart",{content_id:a,content_type:"product",content_name:L.productNameMap[a][s?"add":"long"],quantity:1,price:r/100,value:r/100,currency:z.signToCurrency[h.currency]})),x(n)};return(0,i.jsx)(l.Fragment,{children:(0,i.jsxs)("div",{className:"checkout-right-box order-info-main-wrapper",children:[a&&m.subscribedPlans.plans.length&&"lifetime"!==t&&m.subscribedPlans.plans.find(e=>e.period===t)?(0,i.jsx)("div",{className:"checkout-box-container subscribed-for-same-period",children:(0,i.jsx)("div",{className:"order-info-information-wrapper",children:(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)("div",{className:"checkout-order-info-list-title first-order-info-list-title",children:U("currently_subscribed","Currently subscribed")}),ee(!0)]})})}):null,(0,i.jsx)("div",{className:"checkout-box-container",children:(0,i.jsxs)("div",{className:"order-info-information-wrapper",children:[(()=>{if(m.initialOrderPlans.length>1||m.initialOrderPlans.some(e=>e.id===M.CUSTOM4TB_PLAN_ID))return null;let a=m.initialOrderPlans.length>0&&I.COLORS[L.plansCheckoutPageColors[m.initialOrderPlans[0].id]]?I.COLORS[L.plansCheckoutPageColors[m.initialOrderPlans[0].id]].mainColor:"#17bed0",r=(0,Q.Rm)(1===m.initialOrderPlans.length?m.initialOrderPlans:e.map(e=>({id:e})),{discount:c,period:t,downgrade:S,traffic:p},{pricingPagePassURL:A,familyPageURL:D,trafficPageURL:O,cryptoPageURL:T,pricingPageURL:E});return(0,i.jsxs)(J(),{className:"order-info-change-plan",href:r,onClick:e=>o?e.preventDefault():null,"data-testid":"checkout_change_plan",style:{"--l
1ink-color":a},children:[U("product_change")," ",(0,i.jsx)("span",{className:"arrow-right"})]})})(),m.initialOrderPlans.length?(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)("div",{className:"checkout-order-info-list-title first-order-info-list-title",children:U("your_order")}),m.initialOrderPlans.length?m.initialOrderPlans.map(e=>(0,i.jsx)(G,{plan:e,selectable:!1,color:L.plansCheckoutPageColors[e.id],price:e.pricecents/100,oldPrice:c&&h.totalDiscount>0?null:e.originalprice/100,currency:h.currency,featuresAsTooltip:f},e.id)):null]}):null,a&&m.subscribedPlans.plans.length&&"lifetime"!==t&&m.subscribedPlans.plans.find(e=>e.period!==t)?(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)("div",{className:"checkout-order-info-list-title",children:U("currently_subscribed","Currently subscribed")}),ee(!1)]}):null,m.upsellPlans.length?(0,i.jsx)(l.Fragment,{children:(0,i.jsxs)("div",{className:"order-info-add-more-wrapper",children:[(0,i.jsx)("div",{className:"checkout-order-info-list-title",children:U("add_more")}),m.upsellPlans.length?m.upsellPlans.map(e=>(0,i.jsx)(G,{plan:e,selectable:!0,selected:!!b.data&&!!b.data[e.id],color:L.plansCheckoutPageColors[e.id],price:e.pricecents/100,oldPrice:c&&h.totalDiscount>0?null:e.originalprice/100,currency:h.currency,onChange:()=>{et(e)},testid:"checkout_add_"+L.testPlanNames[e.id]+"_toggle",disabled:n,featuresAsTooltip:f},e.id)):null]},"add-more-wrapper")}):null,(0,i.jsx)("div",{className:"order-info-total-price-pay-btn-wrapper",ref:V,children:(0,i.jsxs)("div",{className:"order-info-total-price-pay-btn-inner-wrapper sticky-element-wrapper",children:[(0,i.jsx)("div",{className:"order-info-separation-line-bigger-wrapper",children:(0,i.jsx)("div",{className:"order-info-separation-line-bigger"})}),(R=t,(h.totalPlanPrice-h.totalDiscount)/100!==u&&(R="duetoday"),F=W[R],$=`order-info-price-sum-container ${N&&"paypal"===C&&P?"order-info-price-sum-wrapper--container":""}`,(0,i.jsx)("div",{className:$,children:(0,i.jsx)(X,{price:u,oldPrice:c&&h.totalDiscount>0?u+h.totalDiscount/100:q,currency:h.currency,periodText:F,showDiscountLabel:c&&h.totalDiscount>0,discountSum:h.totalDiscount/100,priceLoading:N&&!("paypal"===C&&P),priceLoadingDelay:300})})),(0,i.jsx)("div",{className:"order-info-pay-btn-wrapper",children:r()})]})}),(B=`order-info-text-for-prices-periods-wrapper ${N?"order-info-text-for-prices-periods-wrapper--loading":""}`,a&&"lifetime"!==t?(0,i.jsx)("div",{className:B,children:(0,i.jsx)("span",{children:h.totalPlanPrice>0?(0,Q.ci)(h,(m.subscribedPlans.periods.length>0&&!m.subscribedPlans.periods.some(e=>e!==t)||!("ccard"===C&&k&&"stripe"===k))&&(m.subscribedPlans.plans.length>0||m.subscribedPlans.storagePlansToUpgrade.length>0||m.subscribedPlans.passPlansToUpgrade.length>0||m.subscribedPlans.trafficPlansToUpgrade.length>0),U):null})}):null)]},"order-info-wrapper")})]})})};var et=a(83489);function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let er=function(e){return l.createElement("svg",ea({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"warning-orange_svg__Layer_1",x:0,y:0,viewBox:"0 0 50.7 45.3"},e),l.createElement("path",{d:"M5.3 45.3h40c4.1 0 6.6-4.4 4.6-8l-20-34.7c-2-3.5-7.1-3.5-9.2 0L.7 37.3c-2 3.6.5 8 4.6 8m20-18.6c-1.5 0-2.7-1.2-2.7-2.7v-5.3c0-1.5 1.2-2.7 2.7-2.7s2.7 1.2 2.7 2.7V24c0 1.5-1.2 2.7-2.7 2.7M28 37.3h-5.3V32H28z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#ff8000"}}))};var es=a(21709),en=a(63915),ei=a(33307),el=a(13977),eo=a(38161),ec=a(22409),ed=a(30948),eu=a(37500),ep=a(93344),em=a(20023),eh=a(48233),eg=a(44522),ef=a(48083),eb=a(79853),ex=a(31541);let e_=({initialUser:e,chosenPlan:t=[],chosenPeriod:a="lifetime",hideExitIntent:r=!1,onPlanChange:s=()=>{},pricingPageURL:n="/cloud-storage-pricing-plans",pricingPagePassURL:m="/pass/pricing-and-plans",cryptoPageURL:f="/encrypted-cloud-storage",trafficPageURL:b="/additional-traffic",familyPageURL:x="/family",manageSubscrLink:v="/manage-subscriptions",thankYouPage:y="/payment-success",thankYouPagePass:w="https://pass.pcloud.com/#/page/payment-success",initialUserPaymentData:j=null})=>{let{t:P}=(0,_.useT)(),k=(0,N.useDispatch)(),S=(0,o.useRouter)(),E=(0,ep.m)("CheckoutSection"),{startPageLoading:A}=(0,em.v)(),{ipData:I}=(0,eu.Y)(),{width:O}=(0,ec.A)(),D=O<=768,R=I?.country||"fr",F=(0,g.hrefSearch)("discount"),$=(0,g.hrefSearch)("downgrade"),B=(0,g.hrefSearch)("traffic"),U=(0,g.hrefSearch)("featurestooltip"),q=F||(0,ei.Hs)("discount"),H="1"===$||$?.toString().toLowerCase()==="true"||void 0!==$&&!1!==$&&$?.toString().toLowerCase()!=="false";"null"===q&&(q=null);let V=()=>({loggedUser:{loadedOrderInfo:!1,loadedPaymentData:X,loadedPaymentScripts:X},guest:{loadedOrderInfo:!1,loadedLoginOrSignupForm:Y}}),Y=1===t.length&&(-1!==t.indexOf(M.PASS_PREMIUM_PLAN_ID)||-1!==t.indexOf(M.PASS_FAMILY_PLAN_ID)),G=!isNaN(B)&&B?B<M.MIN_TRAFFIC_COUNT?M.MIN_TRAFFIC_COUNT:B>M.MAX_TRAFFIC_COUNT_PER_PERIOD[a]?M.MAX_TRAFFIC_COUNT_PER_PERIOD[a]:B:0,X=-1!==z.PAYMENT_DISRUPTION_COUNTRIES.indexOf(R),Z=(0,K.isInternetExplorer)(),J=(0,l.useRef)(!1),ea=(0,l.useRef)(null),e_=(0,l.useRef)(V()),ev=(0,l.useRef)(!1),ey=(0,l.useRef)(!1),[ew,ej]=(0,l.useState)(0),[eN,eP]=(0,l.useState)(e),[eC,ek]=(0,l.useState)(e),[eS,eE]=(0,l.useState)(!1),[eA,eT]=(0,l.useState)(!0),[eI,eM]=(0,l.useState)(null),[eL,eO]=(0,l.useState)("ccard"),[eD,eR]=(0,l.useState)(null),[eF,e$]=(0,l.useState)(!1),[eB,eU]=(0,l.useState)(X?"stripe":null),[eq,ez]=(0,l.useState)(null),[eH,eW]=(0,l.useState)(!1),[eV,eY]=(0,l.useState)(!1),[eG,eX]=(0,l.useState)(!0),[eK,eQ]=(0,l.useState)("cyan"),[eZ,eJ]=(0,l.useState)(!1),[e0,e1]=(0,l.useState)({show:J.current,message:""}),[e2,e5]=(0,l.useState)({show:!1,message:""}),[e3,e4]=(0,l.useState)({totalDiscount:0,totalPlanPrice:0,totalPriceToPay:0,totalNextPriceToPay:0,nextBillingDate:"",currency:null});(0,l.useEffect)(()=>{J.current=!1,e1(e=>e.show?{...e,show:!1}:e),e5(e=>e.show?{...e,show:!1}:e)},[eD]);let[e7,e6]=(0,l.useState)(!1),[e9,e8]=(0,l.useState)(!1),[te,tt]=(0,l.useState)({show:!1,message:""}),[ta,tr]=(0,l.useState)(!1),ts=(0,l.useRef)(null);(0,l.useEffect)(()=>{e9&&e7&&E?.()},[e9]);let tn=()=>{let e=eC?"loggedUser":"guest";Object.keys(e_.current[e]).some(t=>!e_.current[e][t])||(eN!=eC&&(eC?tp(to):td(to),eP(eC),e5({...e2,show:!1}),J.current=!1,e1({...e0,show:J.current})),t_.current=!0,(!e7||e9)&&E?.())},ti=e=>{let t=eC?"loggedUser":"guest";e_.current[t][e]=!0},tl=e=>{e&&"xhr_error"===e.result&&e.error&&e.error.status&&"abort"===e.error.status||(t_.current=!0,E?.(),eE(!0))},{initialOrderInfo:to,userOrderInfo:tc,setUserOrderInfo:td,guestOrderInfo:tu,setGuestOrderInfo:tp,chosenUpsellPlans:tm,setChosenUpsellPlans:th,disabledPlanOptions:tg,setDisabledPlanOptions:tf,loadingOrderInfoOnUpsellsChange:tb,setLoadingOrderInfoOnUpsellsChange:tx,enableLoadingOrderInfoOnUpsellsChange:t_,loadOrderInfoOnUpsellsChangeXHR:tv,loadOrderInfoXHR:ty,discountCode:tw,setDiscountCode:tj,setUserSubscriptions:tN}=(({user:e,nextUser:t,discount:a,paymentView:r,cardProvider:s,chosenPlan:n,chosenPeriod:i,downgrade:c,traffic:d,cryptoPageURL:u,pricingPageURL:p,trafficPageURL:m,pricingPagePassURL:h,familyPageURL:f,isPaymentDisruptionCountry:b,setDataFetched:x,checkAllDataIsFetched:_,onLoadRequiredPageDataError:v})=>{let y=(0,o.useRouter)(),w={currency:"",totalDiscount:0,totalPlanPrice:0,totalPriceToPay:0,totalOriginalPrice
1:0,totalNextPriceToPay:0,nextBillingDate:"",initialOrderPlans:[],subscribedPlans:{plans:[],storagePlansToUpgrade:[],passPlansToUpgrade:[],trafficPlansToUpgrade:[],periods:[]},upsellPlans:[],chosenUpsellPlans:[]},[j,N]=(0,l.useState)(a),[P,C]=(0,l.useState)(w),[k,S]=(0,l.useState)(w),[E,A]=(0,l.useState)({setAfter:"user_change",data:null}),[T,I]=(0,l.useState)(b),[M,L]=(0,l.useState)(!1),O=(0,l.useRef)(!1),D=(0,l.useRef)(null),R=(0,l.useRef)(null),[F,$]=(0,l.useState)(null);(0,l.useEffect)(()=>{if(0===n.length&&!(0,g.hrefSearch)("ErrCode"))return void y.push(p+(-1===p.search(/[?]/)?"?":"&")+"period="+i)},[]),(0,l.useEffect)(()=>{if("succeeded"===(0,g.hrefSearch)("redirect_status"))return;let a={plans:[],storagePlansToUpgrade:[],passPlansToUpgrade:[],trafficPlansToUpgrade:[],periods:[]};if(t){if("ccard"===r&&!s||"lifetime"!==i&&e&&e.lastsubscription&&null===F)return;a=(0,Q.i)(F,n,i)}q(),I(!0),O.current&&e===t&&L(!0),R.current=(0,Q.Sz)({user:t,chosenPeriod:i,chosenPlanIds:n,subscribedPlans:a,chosenUpsellPlans:E&&E.data,traffic:d,paymentView:r,cardProvider:s,discountCode:j,downgrade:c},B,U)},[t,j,r,s,F]);let B=(e,{chosenPlanIds:t,user:a,subscribedPlans:r,chosenUpsellPlanIds:s})=>{if(!e.products||Array.isArray(e.products)&&0===e.products.length)return U({result:2313,error:"This product can't be bought."},null,null),!1;let n=e.products?{...e.products}:null,i=e.upsellproducts?{...e.upsellproducts}:null;if(x("loadedOrderInfo"),_(),I(!1),n){if(r.plans.length>0)for(let t of r.plans)for(let a of t.subscribedProducts)n[a]&&(e.subscribedproducts||(e.subscribedproducts={}),e.subscribedproducts[a]=n[a],delete n[a]);if(s.length>0)for(let e in n){let t=n[e].id;-1!==s.indexOf(t)&&(i||(i={}),i[t]=n[t],delete n[t])}}let l=[];if(n)for(let e of t)n[e]&&(n[e].id=e,l.push(n[e]));let o={plans:[],storagePlansToUpgrade:r.storagePlansToUpgrade,passPlansToUpgrade:r.passPlansToUpgrade,trafficPlansToUpgrade:r.trafficPlansToUpgrade,periods:r.periods};if(e.subscribedproducts&&r.plans.length>0)for(let t of r.plans){let a=[];for(let r of t.subscribedProducts)e.subscribedproducts[r]&&(e.subscribedproducts[r].id=r,a.push(e.subscribedproducts[r]));o.plans.push({subscribedProducts:a,period:t.period})}let c=[];if(s.length>0){let e=P.initialOrderPlans.length>0?P:k.initialOrderPlans.length>0?k:null;if(e&&e.upsellPlans.length>0)for(let t of e.upsellPlans)-1!==s.indexOf(t.id)&&i&&i[t.id]?(c.push(i[t.id]),delete i[t.id]):i&&i[t.id]&&(c.push(i[t.id]),delete i[t.id])}if(i)for(let e in i)c.push(i[e]);let d={currency:z.currencyMap[e.currency],totalDiscount:e.totaldiscount||0,totalPlanPrice:e.totalamount,totalPriceToPay:e.amounttopay,totalOriginalPrice:e.originaltotalamount,totalNextPriceToPay:e.nextbillingamount,nextBillingDate:e.nextbillingtime,initialOrderPlans:l,subscribedPlans:o,upsellPlans:c,chosenUpsellPlans:s};a?C(d):S(d),R.current=null;let u={setAfter:"user_change",data:{}};for(let e in s)u.data[s[e]]=s[e];A(u),L(!1)},U=(e,t,a)=>{if(e&&e.result)switch(e.result){case 2289:case 2313:case 1101:return y.push((0,Q.Rm)(n.map(e=>({id:e})),{discount:j,period:i,downgrade:c,traffic:d},{pricingPagePassURL:h,familyPageURL:f,trafficPageURL:m,cryptoPageURL:u,pricingPageURL:p})),!1}v(e,t,a)},q=()=>{R&&void 0!==R.current&&null!==R.current&&R.current.abort&&R.current.abort(),D&&null!==D.current&&D.current.abort&&(D.current.abort(),D.current=null)};
1return{initialOrderInfo:w,userOrderInfo:P,setUserOrderInfo:C,guestOrderInfo:k,setGuestOrderInfo:S,chosenUpsellPlans:E,setChosenUpsellPlans:A,disabledPlanOptions:T,setDisabledPlanOptions:I,loadingOrderInfoOnUpsellsChange:M,setLoadingOrderInfoOnUpsellsChange:L,enableLoadingOrderInfoOnUpsellsChange:O,loadOrderInfoOnUpsellsChangeXHR:D,loadOrderInfoXHR:R,discountCode:j,setDiscountCode:N,setUserSubscriptions:$}})({user:eN,nextUser:eC,discount:q,paymentView:eL,cardProvider:eB,chosenPlan:t,chosenPeriod:a,downgrade:H,traffic:G,cryptoPageURL:f,pricingPageURL:n,trafficPageURL:b,pricingPagePassURL:m,familyPageURL:x,isPaymentDisruptionCountry:X,setDataFetched:ti,checkAllDataIsFetched:tn,onLoadRequiredPageDataError:tl}),tP=(eA||tb)&&!!eN,tC=((e,t=100)=>{let[a,r]=(0,l.useState)(!1),s=(0,l.useRef)(null);return(0,l.useEffect)(()=>(e?s.current=setTimeout(()=>{r(!0)},t):(s.current&&(clearTimeout(s.current),s.current=null),r(!1)),()=>{s.current&&clearTimeout(s.current)}),[e,t]),a})(tP,100),{handlePassLogin:tk,handleLogin:tS,subscribeForUserDiff:tE,userDiff:tA,onUserDiff:tT}=(0,ef.A)({user:eN,initialUser:e,nextUser:eC,setNextUser:ek,showPageLoading:A,resetLoadingRequiredPageDataStatus:()=>{eE(!1),e_.current=V()},onLogin:()=>tN(null),onLogout:()=>tN(null),sendTrackingEventsOnUserDiff:()=>{"u">typeof _learnq&&(56215==(0,ei.Hs)("ref")||56215==(0,g.hrefSearch)("ref"))&&_learnq.push(["identify",{$email:eN.email,$id:eN.userid}]),"function"==typeof fbq&&fbq("track","InitiateCheckout",{}),"u">typeof ttq&&ttq.track&&"function"==typeof ttq.track&&!((0,g.hrefSearch)("ErrCode")||"succeeded"===(0,g.hrefSearch)("redirect_status"))&&ttq.track("InitiateCheckout"),"function"==typeof pintrk&&pintrk("track","addtocart")}});(0,eg.Q)({user:eC,disableLoad:X,onScriptsLoaded:()=>{ti("loadedPaymentScripts"),tn()},onScriptsError:e=>{tl({error:"payment_scripts_load_error"})}}),(0,l.useEffect)(()=>{if(eI&&eI.length&&eN&&!eN.business){let e=0;eI.forEach(t=>(t==M.CUSTOM4TB_PLAN_ID&&(e=1),t==M.ADDITIONAL_TRAFFIC_ID&&(e=G||(0,W.getUserTtrafficCount)(eN)||0),t));let t={auth:eN.auth,products:eI.join(","),period:a,traffic:e};tw&&tc.totalDiscount>0&&(t.discountcode=tw),(0,el.default)("setuservisit",t,()=>{},{})}},[eI,eN,tw]),(0,l.useEffect)(()=>{F&&(0,ei.Hs)("discount")&&(0,ei.Hs)("discount")!==F&&(0,ei.pC)("discount",F)},[]),(0,l.useEffect)(()=>{eV&&eY(!1)},[eV]),(0,l.useEffect)(()=>{eI&&1===eI.length&&(-1!==eI.indexOf(M.PASS_PREMIUM_PLAN_ID)||-1!==eI.indexOf(M.PASS_FAMILY_PLAN_ID))?eQ("pCloudPass"):eQ("cyan"),s(eI)},[eI]),(0,l.useEffect)(()=>{if(!eI?.length||(0,g.hrefSearch)("ErrCode")||"succeeded"===(0,g.hrefSearch)("redirect_status"))return;let e=eN?tc:tu,t=eI.map(t=>{let r=(0,W.getProductFromOrderInfo)(e,t);return r?{item_name:L.planNames[t]+" "+L.gaPeriods[a],item_brand:e.initialOrderPlans.some(({id:e})=>L.PASS_PLANS_PER_PERIOD[a].includes(e))?"pCloudPass":"pCloud",item_category:L.gaPeriods[a],item_variant:L.plansQuota[t]||"",affiliation:(0,ei.Hs)("ref")||"0",coupon:tw&&e.totalDiscount>0?tw:"",price:r?.pricecents/100,currency:z.signToCurrency[e.currency],quantity:1,item_id:t}:{}});"u">typeof dataLayer&&(dataLayer.push({ecommerce:null}),dataLayer.push({event:"begin_checkout",coupon:tw&&e.totalDiscount>0?tw:"",ecommerce:{currency:z.signToCurrency[e.currency],value:e3.totalPriceToPay/100,items:t}}))},[e3]),(0,l.useEffect)(()=>{"lifetime"!==a&&(e6(!1),e8(!1))},[a]),(0,l.useEffect)(()=>{if(!e7)return;e8(!1);let e=setTimeout(()=>{Array.from(document.querySelectorAll('[id="wallet-pay-button"]')).some(e=>{if(e.querySelector("iframe")||e.querySelector("apple-pay-button"))return!0;let t=e.querySelector("button");return!!(t&&t.shadowRoot&&t.shadowRoot.childNodes.length>0||e.querySelector("button.gpay-button"))})?e8(!0):(e6(!1),e8(!1))},8e3);return()=>clearTimeout(e)},[e7,ew,tc?.currency]);let tI=()=>{!tP&&(tL(""),eN?e5({...e2,show:!1}):e5({show:!0,message:P("login_or_signup_error_msg","Please log in or sign up to continue.")}),Z||eA||tb||eY(!0))},tM=()=>{if("ccard"!==eD&&"local"!==eD&&"paypal"!==eD)return null;let e=P("checkout_right_btn").toLowerCase(),t=e2.show||e0.show;return(0,i.jsx)(p.A,{trigger:"paypal"===eL,type:"fade",timeout:300,disableInitialAnimation:!1,children:(0,i.jsxs)(l.Fragment,{children:[t&&(0,i.jsx)(p.A,{trigger:t,type:"slide-up",timeout:250,disableInitialAnimation:!1,children:(0,i.jsx)("div",{className:"checkout-client-error-wrapper",children:(0,i.jsx)("div",{className:"checkout-client-error-msg",children:!e0.show&&e2.message||e0.message})})}),"paypal"!==eL||Z||eG?(0,i.jsx)("div",{className:"checkout-client-button-wrapper",children:(0,i.jsx)(et.ButtonWithIcon,{size:"big",color:eK,disabled:Z||tC,disabledColor:"#e4e4e4",height:40,text:e.charAt(0).toUpperCase()+e.slice(1),icon:"secureV3",loading:Number(eZ),borderRadius:"4",textSize:"bigger",buttonRef:ea,onClick:tI,className:"rounded-button rounded-button-v2","data-testid":"checkout_pay_now"})}):(0,i.jsx)("div",{className:"checkout-client-button-wrapper checkout-client-paypal-button-wrapper",children:(0,i.jsxs)("div",{className:`checkout-client-paypal-button-container ${Z||tb?"checkout-client-paypal-button-container--disabled":""} ${eH||eZ?"checkout-client-paypal-button-container--hide-paypal-btn":""}`,style:{"--transition-delay":tb?"80ms":"0ms"},children:[eH||eZ?(0,i.jsx)("div",{className:"checkout-client-blue-button-loading",children:(0,i.jsx)("div",{className:"checkout-client-loading",style:{backgroundImage:`url(${et.LoadingButtonImage})`}})}):null,(0,i.jsx)("div",{id:"paypal-button","data-testid":"checkout_pay_now",disabled:Z||eH||tb})]})})]})})},tL=e=>{""!==e&&tE(eN,tT),tt({show:""!==e,message:e||te.message})},tO=e=>{""!==e&&tE(eN,tT),J.current=""!==e,e1({show:J.current,message:J.current?e:e0.message})};return(0,i.jsxs)("div",{className:"checkout-client-view-wrapper",children:[(0,i.jsx)("h1",{className:"checkout-top-headline checkout-headline",children:(0,i.jsx)("span",{children:P("secure_checkout")})}),(0,i.jsx)("div",{className:"checkout-client-box-wrapper",children:eS?(0,i.jsx)("div",{className:"checkout-error-message",style:{maxWidth:"100%"},children:P("unexpected_error","An unexpected error has occurred. Please reload the page to try again.")}):(0,i.jsxs)(l.Fragment,{children:[(0,i.jsxs)("div",{className:"checkout-left-box",children:[(0,i.jsx)(C,{nextUser:eC,user:eN,userIsBuyingPcloudPassPlan:Y,onPrepareLoginOrSignupFormFinished:()=>{ti("loadedLoginOrSignupForm"),tn()},handleLogin:Y?tk:tS,validateLoginOrSignupForm:e2.show}),X?(0,i.jsxs)("div",{className:"checkout-payment-message-form",children:[(0,i.jsx)(er,{width:"48px",height:"48px"}),(0,i.jsx)("div",{children:P("payment_disruption")})]}):(0,i.jsxs)("div",{className:"checkout-payment-container-wrapper",children:[(0,i.jsxs)("div",{className:"checkout-section-title",children:[(0,i.jsx)("span",{className:`checkout-step-number ${!eN?"checkout-step-number--inactive":""}`,children:"2"}),(0,i.jsxs)("span",{className:"checkout-step-title",children:[P("payment"),eN&&(0,i.jsx)("span",{className:"checkout-payment-method-title",children:"local"===eD?P("local_payment"):"paypal"===eD?P("paypal_payment"):"ccard"===eD?P("cc_payment"):P("CHOOSE_YOUR_PAYMENT_METHOD")})]}),(0,i.jsx)(c.N,{children:("ccard"===eD||"local"===eD||"paypal"===eD)&&!eF&&(0,i.jsxs)(d.P.button,{type:"button",className:"checkout-change-payment-method",onClick:()=>{eZ||eR(null)},disabled:eZ,initial:{opacity:0}
1,animate:{opacity:eZ?.4:1},exit:{opacity:0},transition:{duration:.35,ease:"easeOut"},children:[P("change","Change"),(0,i.jsx)("span",{className:"checkout-change-payment-method-arrow","aria-hidden":"true"})]})})]}),(0,i.jsx)(d.P.div,{className:"checkout-payment-reveal",initial:!1,animate:{height:eN?"auto":0,opacity:+!!eN},transition:{duration:.4,ease:"easeInOut"},style:{overflow:"hidden"},children:(0,i.jsx)(T.Ay,{payButtonRef:ea,user:eN,nextUser:eC,initialUser:e,initialUserPaymentData:j,disabledButton:eA,setDisabledButton:eT,setPaypalButtonLoading:eW,paymentView:eL,setPaymentView:eO,userPaymentSource:eq,setUserPaymentSource:ez,cart:eI,onPaymentStarted:()=>{tO(""),tL(""),eJ(!0)},onPaymentFinished:()=>eJ(!1),onLoadedPaymentData:()=>{ti("loadedPaymentData"),tn()},onLoadedPaymentDataError:e=>tl(e),disableLoadingIndication:!0,chosenPeriod:a,payButtonClicked:eV,setPayButtonClicked:eY,cardProvider:eB,setCardProvider:eU,discount:tw&&e3.totalDiscount>0?tw:"",setDisabledPlanOptions:tf,tabsToSelectOnMobile:!1,tabIconSize:"sm",isMobile:O<=768,userDiff:tA.current,removePaypalPaymentSource:()=>{let e={...eq};e.paypal&&delete e.paypal,ez(e)},traffic:G,hidePaypalButton:eG,setHidePaypalButton:eX,country:R,downgrade:H,onPaymentErrorMessageChange:tO,setUserSubscriptions:tN,sendAnalyticsEventsAfterPaymentSuccess:({transactionID:e,metapixeleventid:t})=>{(0,eb.NH)({productIDs:eI,price:ew,transactionID:e,currency:z.signToCurrency[tc.currency]});let r=eI.reduce((e,t)=>(e[t]=(0,W.getProductFromOrderInfo)(tc,t),e),{});if("function"==typeof gtag){let t=[{name:eI.map(e=>L.productNameMap[e][r[e]&&r[e].addplan?"add":"long"]).join(" + "),price:ew,quantity:1}],s=eI.map(e=>({item_name:L.planNames[e]+" "+L.gaPeriods[a],item_brand:L.PASS_PLANS_PER_PERIOD[a].includes(e)?"pCloudPass":"pCloud",item_category:L.gaPeriods[a],item_variant:L.plansQuota[e]||"",affiliation:(0,ei.Hs)("ref")||"0",coupon:q||"",item_id:e,price:r[e]&&r[e].pricecents/100||0,currency:z.signToCurrency[tc.currency],quantity:1}));"u">typeof dataLayer&&(dataLayer.push({ecommerce:null}),dataLayer.push({event:"purchase",ecommerce:{currency:z.signToCurrency[tc.currency],value:ew,transaction_id:e,payment_type:"ccard"===eL?eB:eL,items:s}})),gtagAds("event","conversion",{send_to:"AW-946159937/3Uu5CKv9wo0YEMGClcMD",value:ew,currency:z.signToCurrency[tc.currency]||"USD",transaction_id:e,items:t})}if("u">typeof ttq&&ttq.track&&"function"==typeof ttq.track){let e=eI.map(e=>({content_id:e,content_type:"product",content_name:L.productNameMap[e][r[e]&&r[e].addplan?"add":"long"],quantity:1,price:r[e]&&r[e].pricecents/100||0}));ttq.track("CompletePayment",{contents:e,value:ew,currency:z.signToCurrency[tc.currency]||"USD"})}"function"==typeof fbq&&fbq("track","lifetime"===a?"Purchase":"Subscribe",{value:ew,currency:z.signToCurrency[tc.currency]||"USD"},t?{eventID:t}:{});let s={revenue:ew,currency:z.signToCurrency[tc.currency]||"USD",period:a,products:eI.join(",")};q&&(s.discount=q),(0,eo.sendAnalyticsEvent)({category:"product",defaultlabel:"www-site",action:"purchase"},s)},onPaymentSuccess:()=>{let e=(e=>{if(H)return v;let t="&product=";t+=eI.map(e=>"string"==typeof e&&-1!==e.indexOf("_")?e.split("_")[0]:e).join(",");let r="ccard"===eL?eB:eL;ev.current&&(r=eB),ey.current&&(r="paypal"),"succeeded"===(0,g.hrefSearch)("redirect_status")?r="stripe":(0,g.hrefSearch)("ErrCode")&&(r="safecharge");let s=eI&&(-1!==eI.indexOf(M.PASS_PREMIUM_PLAN_ID)||-1!==eI.indexOf(M.PASS_FAMILY_PLAN_ID)),n="";return n=((n=s?w:y).includes("?")?n:n+"?")+(t+"&period="+a+"&pclext_update=1")+(e?"&"+e:"")+"&provider="+r,ev.current&&(n+="&walletpay=1"),n})();/^https?:\/\//i.test(e)?window.location.href=e:S.push(e)},usedPaypalRef:ey,walletPaymentSuccessRef:ts,setWalletPayAvailable:e6,currency:e3?.currency,stackedLayout:!0,renderPayButton:D?()=>null:tM,selectedMethod:eD,setSelectedMethod:eR,setPaymentLocked:e$,paymentInProgress:eZ,walletPayAvailable:e7,walletPayReady:e9,walletPayLoading:ta,walletPayErrorMsg:te,payBtnErrorMsg:e0})})]})]}),(0,i.jsx)(ee,{chosenPlan:t,chosenPeriod:a,user:eN,discount:tw,renderPayButton:D?tM:()=>null,setCart:eM,totalPrice:ew,setTotalPrice:ej,disabledPlanOptions:tg,paymentInProgress:eZ,traffic:G,orderInfo:eN?tc:tu,paymentSummaryData:e3,setPaymentSummaryData:e4,chosenUpsellPlans:tm,setChosenUpsellPlans:th,featuresAsTooltip:!!U,loadOrderInfoOnUpsellsChangeXHR:tv,loadOrderInfoXHR:ty,setLoa
1dRequiredPageDataFailed:eE,loadingOrderInfoOnUpsellsChange:tb,setLoadingOrderInfoOnUpsellsChange:tx,paypalButtonLoading:eH&&"paypal"===eL&&!Z&&!eG,paymentView:eL,cardProvider:eB,downgrade:H,pricingPageURL:n,pricingPagePassURL:m,cryptoPageURL:f,trafficPageURL:b,familyPageURL:x}),e7&&eN?(0,i.jsx)(ex.A,{auth:eN.auth,user:eN,planId:eI,period:a,discount:tw&&e3.totalDiscount>0?tw:"",provider:eB,billingAddress:{email:eN.email,country:R},afterPaymentActions:(...e)=>{ev.current=!0,ts.current?.onPaymentSuccess&&ts.current.onPaymentSuccess(...e)},onPaymentProcessing:()=>{ts.current?.onPaymentProcessing&&ts.current.onPaymentProcessing({fromWalletPay:!0})},setDisabledButton:eT,setDisabledPlanOptions:tf,traffic:G,downgrade:H,onPaymentErrorMessageChange:tL,skipUserInfoSubscribe:Y,totalPrice:ew,currency:tc?.currency,onReady:()=>e8(!0),onNotAvailable:()=>{e6(!1),e8(!1)},onWalletPayLoadingChange:e=>{tr(e),e?tO(""):ts.current?.afterPaymentProcessing?.()}}):null]})}),eN?(0,i.jsxs)("div",{className:"checkout-client-disclaimer",children:[(0,i.jsxs)("div",{className:"checkout-client-secure-text",children:[(0,i.jsx)(es.A,{}),(0,i.jsxs)("span",{children:[P("secure_ssl_payment_short"),". ",P("10_DAYS_MONEY_BACK")]})]}),tc.currency?(0,i.jsx)("div",{className:"checkout-client-disclaimer-text",children:P("prices_displayed_currency").replace("%currency%",z.signToCurrency[tc.currency])}):null,"lifetime"!=a&&("ccard"===eL||"paypal"===eL)?(0,i.jsx)("div",{className:"checkout-client-disclaimer-text",children:(0,i.jsx)(u.default,{text:P("autorenew_policy_message_componentify"),converters:[en.linkConverter]})}):null,"lifetime"!=a&&"local"===eL?(0,i.jsx)("div",{className:"checkout-client-disclaimer-text",children:(0,i.jsx)(u.default,{text:P("nonrecurring_policy_message"),converters:[en.linkConverter]})}):null,(0,i.jsxs)("div",{className:"checkout-client-disclaimer-text",children:["ccard"===eL?(0,i.jsx)("div",{children:h()(P("store-card-disclaimer"),/(%review%)/g,(e,t)=>(0,i.jsx)("a",{className:"checkout-client-link",onClick:()=>{k((0,eh.GR)({modalId:"PrivacyPolicy"}))},children:P("store-card-review-link")},t))}):null,"ccard"===eL&&"safecharge"===eB?(0,i.jsxs)("div",{children:[P("checkout_safecharge_terms_1"),P("checkout_safecharge_terms_2"),(0,i.jsx)("a",{className:"checkout-client-link",href:"https://www.nuvei.com/legal/terms-of-use",target:"_blank",children:P("terms and conditions")})," ","|",(0,i.jsx)("a",{className:"checkout-client-link",href:"https://www.nuvei.com/legal/privacy-notice",target:"_blank",children:P("Privacy Policy")})]}):null,(0,i.jsx)("div",{children:(0,i.jsx)("b",{children:P("website_operated_address")})})]})]}):null,r||"lifetime"===a||!eN||eN.lastsubscription||tw||tg||-1!==t.indexOf(M.ADDITIONAL_TRAFFIC_ID)||-1!==t.indexOf(M.PASS_PREMIUM_PLAN_ID)||-1!==t.indexOf(M.PASS_FAMILY_PLAN_ID)?null:(0,i.jsx)(ed.A,{handleButtonClick:()=>{q="EXIT_INTENT",tj("EXIT_INTENT")}})]})}},47768:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r,s=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let i=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),r||(r=s.createElement("path",{fill:"#838689",d:"M8 1a7 7 0 1 1-.001 14.001A7 7 0 0 1 8 1m0 15a8 8 0 0 0 8-8 8 8 0 0 0-8-8 8 8 0 0 0-8 8 8 8 0 0 0 8 8m-1.5-5c-.275 0-.5.225-.5.5s.225.5.5.5h3c.275 0 .5-.225.5-.5s-.225-.5-.5-.5h-1V7.5c0-.275-.225-.5-.5-.5H6.5c-.275 0-.5.225-.5.5s.225.5.5.5h1v3zM8 5.75c.416 0 .75-.334.75-.75A.75.75 0 0 0 8 4.25a.75.75 0 0 0-.75.75c0 .416.334.75.75.75"})))}},47842:()=>{},48056:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r,s,n=a(12115);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let l=function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),r||(r=n.createElement("path",{fill:"url(#check-icon-v3_svg__paint0_linear_15_4)",d:"M13.27 3.353a.8.8 0 0 1 .177 1.117l-6.4 8.8a.8.8 0 0 1-1.212.095l-3.2-3.2a.801.801 0 0 1 1.132-1.132l2.538 2.537 5.85-8.042a.8.8 0 0 1 1.117-.178z"})),s||(s=n.createElement("defs",null,n.createElement("linearGradient",{id:"check-icon-v3_svg__paint0_linear_15_4",x1:8,x2:7.999,y1:3.197,y2:16.201,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#13C4D7"}),n.createElement("stop",{offset:.145,stopColor:"#17BED0"}),n.createElement("stop",{offset:1,stopColor:"#17B1D0"})))))}},48083:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(87934),s=a(69447),n=a(12115);let i=({user:e,initialUser:t,nextUser:a,setNextUser:i,showPageLoading:l=()=>{},resetLoadingRequiredPageDataStatus:o=()=>{},onLogin:c=e=>{},onLogout:d=()=>{},sendTrackingEventsOnUserDiff:u=()=>{}})=>{let p=(0,n.useRef)(null);(0,n.useEffect)(()=>{t&&t!==a&&t.userid!==a?.userid?m(t):!t&&(a||e)&&h()},[t]),(0,n.useEffect)(()=>{e?(f(e,g),setTimeout(()=>{u()},600)):r.A.stop()},[e]);let m=(e,t=!0)=>{t&&l(),o(),c&&c(e),i(e)},h=()=>{l(),o(),d&&d(),i(null)},g=t=>{if(t&&e&&t.userid==e.userid){l(),o();let a={...e,...t};a.forceReloadPaymentData=!0,i(a)}},f=(e,t)=>(0,s.oo)(e,t,p);return{handlePassLogin:e=>{m(e,!1)},handleLogin:e=>{m(e,!1)},subscribeForUserDiff:f,userDiff:p,onUserDiff:g}}},49819:()=>{},49874:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(95155),s=a(12115),n=a(74585),i=a(90929),l=a(47768),o=a(59396),c=a(81322);let d=({cardNumber:e,validCardNumber:t,cardType:a,handleCardNumberChange:d,handleCardNumberKeyPress:u,handleCardNumberPaste:p,expDate:m,validExpDate:h,handleExpDateKeyUp:g,handleExpDateChange:f,CVC:b,validCVC:x,handleCVCChange:_,handleCVCKeyPress:v,holderName:y,validHolderName:w,handleHolderNameChange:j,handleHolderNameKeyPress:N,errorMessage:P,paymentLoading:C,handleSubmit:k,changeCard:S,handleCardChange:E,color:A,shouldRenderInputs:T=!0,setPaymentLoading:I,setErrorMessage:M,skipFormWrapper:L,disableErrorAnimation:O=!1,holderNameRef:D=null,errorTextColor:R=null})=>{let{t:F}
1=(0,c.useT)(),$=`cc-form-wrapper${S?" cc-form-wrapper--no-padding":""}`,B=`cc-form-input-field input-field${!T?" cc-form-input-field--hidden-inputs":""}${O?" cc-form-input-field--no-animation":""}`,U=i.COLORS[A]?i.COLORS[A].mainColor:i.COLORS.cyan.mainColor;return(0,r.jsxs)(L?"div":"form",{className:L?"cc-form-div-wrapper":$,onSubmit:L?null:k,style:R?{"--cc-error-text-color":R}:void 0,children:[(0,r.jsxs)("div",{className:"cc-form-card-number",children:[!T&&C?(0,r.jsx)("div",{className:"cc-form-disabled-cover"}):null,(0,r.jsx)("div",{id:"card-number",className:B,"data-invalid":!t,"data-testid":"card_number",children:T?(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("input",{placeholder:F("card_number","Card number"),type:"text",value:e,name:"cardnumber",autoComplete:"cc-number",onChange:d,onKeyPress:u,onPaste:p,inputMode:"numeric",autoFocus:!0,disabled:C}),(0,r.jsx)("div",{className:"cc-form-card-icon",children:a?o.P[a]:o.P.default})]}):null})]}),(0,r.jsxs)("div",{className:"cc-form-exp-cvc-row",children:[(0,r.jsxs)("div",{className:"cc-form-exp-date",children:[!T&&C?(0,r.jsx)("div",{className:"cc-form-disabled-cover"}):null,(0,r.jsx)("div",{id:"card-expiry",className:B,"data-invalid":!h,"data-testid":"card_exp_date",children:T?(0,r.jsx)("input",{placeholder:F("expiration_date_short","Exp. date"),type:"text",value:m,name:"cc-exp",maxLength:"5",autoComplete:"cc-exp",onChange:f,onKeyUp:g,disabled:C}):null})]}),(0,r.jsxs)("div",{className:"cc-form-cvc",children:[(0,r.jsxs)("div",{className:"cc-form-info-icon",children:[(0,r.jsx)(l.A,{"data-tooltip-id":"find_card_cvc","data-tooltip-content":F("find_card_cvc","This is the secret code located on the back of your credit card.")}),(0,r.jsx)(n.m_,{id:"find_card_cvc",className:"tooltip-message tooltip",multiline:!0})]}),!T&&C?(0,r.jsx)("div",{className:"cc-form-disabled-cover"}):null,(0,r.jsx)("div",{id:"card-cvc",className:B,"data-invalid":!x,"data-testid":"card_cvc",children:T?(0,r.jsx)("input",{placeholder:F("CVC","CVC"),type:"text",maxLength:"amex"===a||"default"===a?4:3,value:b,name:"cvc",autoComplete:"cc-csc",onChange:_,onKeyPress:v,inputMode:"numeric",disabled:C}):null})]})]}),(0,r.jsx)("div",{className:"cc-form-cardholder",children:(0,r.jsx)("div",{className:`cc-form-input-field input-field${O?" cc-form-input-field--no-animation":""}`,"data-invalid":!w,"data-testid":"card_name",style:R?{"--cc-error-text-color":R}:void 0,children:(0,r.jsx)("input",{ref:D,placeholder:F("card_holder","Name on card"),type:"text",value:y,name:"ccname",maxLength:"30",autoComplete:"cc-name",onChange:j,onKeyPress:N,disabled:C})})}),S?(0,r.jsx)("div",{className:"cc-form-change-card-wrapper change-card-wrapper",children:(0,r.jsx)("a",{className:"cc-form-change-card-link",role:"button",tabIndex:0,onClick:()=>C?null:E(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||C||(e.preventDefault(),E())},"aria-disabled":C,"data-testid":"undo_cart_change",style:{"--cc-link-color":U},children:F("undo_cart_change","Undo change")})}):null]})}},51148:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>g});var r=a(95155),s=a(12115),n=a(60082),i=a(5021),l=a(81322),o=a(81046),c=a(96420),d=a(99856),u=a(5998),p=a(91889);a(49482),a(73644);var m=a(48056),h=a(16607);let g=({navigationItems:e,title:t=null,mode:a="navigation",value:g=null,onChange:f=null,showMobileDropdown:b=!0,minHeight:x="var(--header-height, auto)",hideHeaderBorderOnTop:_=!0,headerBorderBottomCss:v="0.5px solid rgba(0,0,0,0.10)",widthClass:y="fullwidth"})=>{let w,{t:j}=(0,l.useT)(),N=(0,n.useRouter)(),P=(0,i.p)(),C=(0,s.useRef)(null),[k,S]=(0,c.E)({transition:!0}),E=(0,d.k)(k.state,S),A=(0,s.useRef)(null),T=(0,s.useRef)(null),[I,M]=(0,s.useState)(!1),L="state"===a?g:e.find(e=>P.endsWith(e.link)||P.includes(e.link))?.id,O=e.find(e=>e.id===L);return(0,s.useEffect)(()=>{S(!1)},[P,S]),(0,s.useEffect)(()=>{if(!b)return;let e=()=>{M(window.scrollY>0)};return e(),window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[b]),(0,s.useEffect)(()=>{if(!b)return;let e=()=>{if(T.current){let e=T.current.offsetHeight;document.documentElement.style.setProperty("--mobile-nav-height",`${e}px`)}};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),document.documentElement.style.removeProperty("--mobile-nav-height")}},[b]),(0,s.useEffect)(()=>
1{if(!_)return;let e=document.querySelector("html");if(!A.current)return void e.style.setProperty("--header-border-bottom",v);let t="none",a=()=>{A.current&&(A.current.getBoundingClientRect().bottom-parseInt(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"))<0?"none"===t&&(t=v,e.style.setProperty("--header-border-bottom",t)):"none"!==t&&(t="none",e.style.setProperty("--header-border-bottom",t)))};return window.addEventListener("scroll",a),a(),()=>{window.removeEventListener("scroll",a),e.style.removeProperty("--header-border-bottom")}},[_,v]),(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)("div",{className:"section smaller-padding-top-bottom",children:(0,r.jsx)("div",{className:"navigation-title",children:j(t)})}),(0,r.jsx)("div",{ref:A,className:`navigation-tabs-wrapper ${b?"navigation-desktop":""}`,style:{minHeight:x},children:(0,r.jsx)("div",{className:"pagewidth"===y?"align-container":"",children:(0,r.jsx)(o.s,{value:L,onChange:(t,r)=>{if("state"===a)f?.(r);else{let t=e.find(({id:e})=>e===r);t&&N.push(t.link)}},variant:"scrollable",scrollButtons:!0,allowScrollButtonsMobile:!0,children:e.map(({id:e,title:t,icon:a,iconMinHeight:s})=>{let n;if(a){let e=s?{minHeight:s}:void 0;n="string"==typeof a?(0,r.jsx)("div",{className:"navigation-tab-wrapper",style:e,children:(0,r.jsx)("img",{src:a,alt:""})}):(0,r.jsx)("div",{className:"navigation-tab-wrapper",style:e,children:(0,r.jsx)(a,{})})}return(0,r.jsx)(o.b,{icon:n,label:j(t),value:e},e)})})})}),b&&(0,r.jsx)("div",{ref:T,className:`navigation-mobile ${I?"scrolled":""}`,children:(0,r.jsxs)("div",{className:"navigation-select-wrapper align-container",children:[(0,r.jsxs)("button",{ref:C,className:"navigation-select-button",...E,"aria-expanded":k.state,children:[O?.icon&&(0,r.jsx)("span",{className:"navigation-select-icon",children:"string"==typeof O.icon?(0,r.jsx)("img",{src:O.icon,alt:""}):(w=O.icon,(0,r.jsx)(w,{}))}),(0,r.jsx)("span",{className:"navigation-select-text",children:O&&j(O.title)}),(0,r.jsx)(h.A,{className:`navigation-select-arrow ${k.state||"closed"}`})]}),(0,r.jsx)(u.k,{...k,anchorRef:C,onClose:()=>S(!1),direction:"bottom",align:"center",position:"anchor",viewScroll:"auto",gap:8,menuClassName:"navigation-controlled-menu",children:e.map(e=>{let t;return(0,r.jsx)(p.D,{className:`navigation-menu-item ${e.id===L?"active":""}`,onClick:()=>{S(!1),"state"===a?f?.(e.id):N.push(e.link)},children:(0,r.jsxs)("div",{className:"navigation-menu-item-content",children:[e.icon&&(0,r.jsx)("span",{className:"navigation-select-option-icon",children:"string"==typeof e.icon?(0,r.jsx)("img",{src:e.icon,alt:""}):(t=e.icon,(0,r.jsx)(t,{}))}),(0,r.jsx)("span",{className:"navigation-select-option-text",children:j(e.title)}),e.id===L&&(0,r.jsx)(m.A,{className:"navigation-select-check"})]})},e.id)})})]})})]})}},51291:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>d});var r=a(95155);a(12115);var s=a(38739),n=a(63915);let i=[{amount:"4.88",currency:"$",unit:{t_text:"million",t_default:"million"},description:{t_text:"business_cybercrime_section_cost_desc_1",t_default:"Average cost of a single data breach"},amountBackgroundImage:"var(--Business-Pro, linear-gradient(89deg, #11AA52 0.92%, #4BCA00 99.08%))",descriptionBackgroundImage:"linear-gradient(#FFFFFF, #FFFFFF)"},{amount:"10.5",currency:"$",unit:{t_text:"trillion",t_default:"trillion"},description:{t_text:"business_cybercrime_section_cost_desc_2",t_default:"Expected cybercrime cost in 2025"},amountBackgroundImage:"var(--Business-Pro, linear-gradient(89deg, #11AA52 0.92%, #4BCA00 99.08%))",descriptionBackgroundImage:"linear-gradient(#FFFFFF, #FFFFFF)"},{amount:"15.63",currency:"$",unit:{t_text:"trillion",t_default:"trillion"},description:{t_text:"business_cybercrime_section_cost_desc_3",t_default:"Expected cybercrime cost in 2029"},amountBackgroundImage:"var(--Business-Pro, linear-gradient(89deg, #11AA52 0.92%, #4BCA00 99.08%))",descriptionBackgroundImage:"linear-gradient(#FFFFFF, #FFFFFF)"}],l={t_text:"business_cybercrime_cost_title",t_default:"The rising cost of cybercrime"},o={t_text:"cybercrime_cost_section_disclaimer",t_default:"*Data collected from IBM's Data Breach Report 2025 & Statista's Annual cost of cybercrime worldwide 2018-2029"};var c=a(81322);
1let d=({headline:e=l,headlineBackgroundImage:t="linear-gradient(var(--color-base-black), var(--color-base-black))",alignHeadline:a="center",alignHeadlineMobile:d=null,textAboveStatistics:u=null,secondTextAboveStatistics:p=null,textBelowStatistics:m=o,statistics:h=i,sectionClassName:g="",sectionBackground:f=null,sectionBackgroundMobile:b=null,sectionMinHeight:x=null,sectionMinHeightMobile:_=null,justifyContent:v="center",statItemMinWidth:y=null,statItemAlignItems:w="center",statItemAlignItemsMobile:j="center",statItemAlignDescription:N=null,statItemAlignDescriptionMobile:P=null,statItemMinWidthMobile:C="140px",statisticsGap:k=null,statisticsGapMobile:S=null,statsContainerBackground:E=null,statsContainerBackgroundMobile:A=null,statsContainerPadding:T=null,statsContainerPaddingMobile:I=null,statsContainerBorderRadius:M=null,statsContainerBorderRadiusMobile:L=null})=>{let{t:O}=(0,c.useT)();return(0,r.jsx)("div",{className:`section statistics-section ${g}`,style:{...f&&{"--section-background":f},...b&&{"--section-background-mobile":b},...x&&{"--section-min-height":x},..._&&{"--section-min-height-mobile":_}},children:(0,r.jsxs)("div",{className:"statistics-section__container align-container",children:[(0,r.jsx)("h2",{className:`statistics-section__title title align-${a}${d?` align-${d}-mobile`:""}`,style:{backgroundImage:t??"unset"},children:O(e)}),u?(0,r.jsx)("div",{className:"statistics-section__description",children:(0,r.jsx)(s.default,{text:O(u),converters:[n.boldConverter,n.linkConverter,n.brTagConverter]})}):null,p?(0,r.jsx)("div",{className:"statistics-section__second-description",children:(0,r.jsx)(s.default,{text:O(p),converters:[n.boldConverter,n.linkConverter,n.brTagConverter]})}):null,(0,r.jsx)("div",{className:"statistics-section__stats-container",style:{...E&&{"--stats-container-background":E},...A&&{"--stats-container-background-mobile":A},...T&&{"--stats-container-padding":T},...I&&{"--stats-container-padding-mobile":I},...M&&{"--stats-container-border-radius":M},...L&&{"--stats-container-border-radius-mobile":L}},children:(0,r.jsxs)("div",{className:"statistics-section__statistics",style:{justifyContent:v,...k&&{"--statistics-gap":k},...S&&{"--statistics-gap-mobile":S}},children:[h.some(e=>e.barChartValue)&&(0,r.jsxs)("div",{className:"statistics-section__bar-chart-grid","aria-hidden":"true",children:[(0,r.jsx)("span",{className:"statistics-section__bar-chart-grid-line"}),(0,r.jsx)("span",{className:"statistics-section__bar-chart-grid-line"}),(0,r.jsx)("span",{className:"statistics-section__bar-chart-grid-line"}),(0,r.jsx)("span",{className:"statistics-section__bar-chart-grid-line"}),(0,r.jsx)("span",{className:"statistics-section__bar-chart-grid-line"})]}),h.map((e,t)=>(0,r.jsxs)("div",{className:"statistics-section__stat-wrapper",style:{"--stat-item-min-width":y,"--stat-item-min-width-mobile":C},children:[e.barChartValue?(0,r.jsx)("div",{className:"statistics-section__stat-bar-container",children:(0,r.jsx)("div",{className:"statistics-section__stat-bar",style:{"--bar-height":`${e.barChartValue}%`},"aria-hidden":"true"})}):null,(0,r.jsxs)("div",{className:"statistics-section__stat",style:{"--stat-item-align-items":w,"--stat-item-align-items-mobile":j,...N&&{"--stat-item-align-description":N},...P&&{"--stat-item-align-description-mobile":P}},role:"region","aria-labelledby":`stat-value-${t}`,"aria-describedby":`stat-desc-${t}`,children:[(0,r.jsxs)("div",{className:"statistics-section__stat-value",id:`stat-value-${t}`,children:[e.currency&&!e.currencyRightPosition?(0,r.jsx)("span",{className:"statistics-section__stat-currency",style:{backgroundImage:e.currencyBackgroundImage??"initial"},children:e.currency}):null,(0,r.jsxs)("span",{className:"statistics-section__stat-amount",style:{backgroundImage:e.amountBackgroundImage??"initial",...e.amountFontWeight&&{fontWeight:e.amountFontWeight}},children:[void 0!==e.amount.t_text?O(e.amount):e.amount," ",O(e.unit)]}),e.currency&&e.currencyRightPosition?(0,r.jsx)("span",{className:"statistics-section__stat-currency",style:{backgroundImage:e.currencyBackgroundImage??"initial"},children:e.currency}):null]}),(0,r.jsx)("div",{className:"statistics-section__stat-description",id:`stat-desc-${t}
1`,style:{backgroundImage:e.descriptionBackgroundImage??"initial"},children:O(e.description)})]})]},t))]})}),m?(0,r.jsx)("div",{className:"statistics-section__source",children:(0,r.jsx)(s.default,{text:O(m),converters:[n.boldConverter,n.linkConverter,n.brTagConverter]})}):null]})})}},51656:()=>{},53656:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>f});var r,s=a(95155),n=a(12115);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let l=function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:14,height:8,fill:"none"},e),r||(r=n.createElement("path",{fill:"#000",d:"M7 5.1 11.897.335Q12.242 0 12.776 0t.879.336.345.855q0 .518-.345.855L7.879 7.664a1.1 1.1 0 0 1-.408.26Q7.25 7.999 7 8q-.25 0-.47-.076a1.1 1.1 0 0 1-.409-.26L.345 2.046A1.14 1.14 0 0 1 0 1.19Q0 .672.345.336T1.225 0t.878.336z"})))};var o=a(69828),c=a(81322),d=a(38739),u=a(63915),p=a(90426);let m={t_text:"traffic_faq_title",t_default:"Want to know more?"},h={t_text:"traffic_faq_sub",t_default:"Here are the answers to some questions you may have"},g=[{title:{t_text:"traffic_q1",t_default:"Where can I see how much link traffic I've used?"},description:{t_text:"traffic_a1",t_default:"You can see how much link traffic you've used from my.pCloud > Shared > Links > Statistics or by clicking https://my.pcloud.com/#page=linkstats[here]."}},{title:{t_text:"traffic_q2",t_default:"Will the link traffic I purchase be added to my current traffic?"},description:{t_text:"traffic_a2",t_default:"Yes, the extra link traffic will be added to the traffic that's included in your plan. For example, if you're a 500 GB Premium user and decide to buy 2 TB extra link traffic, you will have 2.5 TB link traffic in total."}},{title:{t_text:"traffic_q3",t_default:"What will happen if I reach my traffic limit?"},description:{t_text:"traffic_a3",t_default:"If you reach your link traffic quota, the access to your shared links will be restricted until you increase your link traffic or it's reset."}},{title:{t_text:"traffic_q4",t_default:"How often will my traffic be reset?"},description:{t_text:"traffic_a4",t_default:"If you're a Basic or Lifetime user - your link traffic will reset from the past 30 days. If you're subscribed to a monthly or annual subscription plan - your link traffic will be reset monthly, on your billing date."}}],f=({headline:e=m,subheadline:t=h,accordionData:a=g,sectionClassName:r="",sectionBackground:i=null,sectionBackgroundMobile:f=null,headlineBackgroundImage:b=null,headlineImage:x=null,headlineImage_2x:_=null,headlinImagePosition:v="top",ctaLink:y=null,ctaText:w=null})=>{let{t:j}=(0,c.useT)(),[N,P]=(0,n.useState)(null);return(0,s.jsx)("section",{className:`section ${r}`,style:{...i&&{"--section-background":i},...f&&{"--section-background-mobile":f}},children:(0,s.jsxs)("div",{className:"align-container accordion-section-align-container",children:[(0,s.jsxs)("div",{className:"accordion-section-text-block","data-image-position":v,children:[x&&(0,s.jsx)(p.default,{src:x,src_2x:_,alt:"",className:"accordion-section-headline-image"}),e&&(0,s.jsx)("h2",{className:`title accordion-section-headline ${b?"text-gradient":""}`,style:b?{backgroundImage:b}:void 0,children:(0,s.jsx)(d.default,{text:j(e),converters:[u.boldConverter,u.italicConverter,u.linkConverter,u.brTagConverter]})}),t&&(0,s.jsx)("p",{className:"accordion-section-subheadline subtitle",children:(0,s.jsx)(d.default,{text:j(t),converters:[u.boldConverter,u.italicConverter,u.linkConverter,u.brTagConverter,u.paragraphConverter,u.ulElementConverter]})})]}),a.length>0&&(0,s.jsx)("div",{className:"accordion-section-container",children:a.map((e,t)=>(0,s.jsxs)("div",{className:`accordion-section-item ${N===t?"open":""}`,children:[(0,s.jsxs)("div",{className:"accordion-section-header",onClick:()=>{P(N===t?null:t)},children:[(0,s.jsx)("h3",{className:"accordion-section-title",children:j(e.title)}),(0,s.jsx)(l,{className:"accordion-section-arrow"})]}),(0,s.jsx)("div",{className:"accordion-section-content-wrapper",children:(0,s.jsx)("div",{className:"accordion-section-content",children:(0,s.jsx)("div",{className:"accordion-section-content-inner",children:(0,s.jsx)(d.default,{text:j(e.description),converters:[u.ulElementConverter,u.olElementConverter,u.boldConverter,u.italicConverter,u.linkConverter,u.brTagConverter,u.liElementConverter,u.paragraphConverter]})})})})]},t))}),y&&w&&(0,s.jsxs)("a",{href:y,className:"accordion-section-cta-link",children:[j(w)," ",(0,s.jsx)(o.default,{})]})]})})}},54034:(e,t,a)=>{"use strict";a.d(t,{default:()=>p});var r=a(95155),s=a(12115),n=a(78699),i=a.n(n),l=a(99907),o=a(41252),c=a(68e3),d=a(4007),u=a(26550);let p=({user:e,plansType:t="storage",plansVersion:a="1.0.0"})=>{if(e&&e.premiumlifetime&&(e.plan==d.PREMIUM_PLAN_ID||e.plan==d.PREMIUM_PLUS_PLAN_ID||e.plan==d.CUSTOM_PLAN_ID||e.plan==d.FAMILY2TB_PLAN_ID||e.plan==d.FAMILY_CUSTOM_PLAN_ID)){let n=(0,c.__)(o.productNameMap[e.plan].longKey??o.productNameMap[e.plan].long),d=(0,l.renderQuota)(e.quota,!0),p=(0,l.renderQuota)(e.publiclinkquota,!0),m=i()((0,c.__)("your_current_plan_
1storage_traffic"),/(%plan%)/g,(e,t)=>(0,r.jsx)("span",{className:"plans-user-info-bold",children:n},t));return m=i()(m,/(%storage%)/g,(e,t)=>(0,r.jsx)("span",{className:"plans-user-info-bold",children:d},t)),m=i()(m,/(%traffic%)/g,(e,t)=>(0,r.jsx)("span",{className:"plans-user-info-bold",children:p},t)),(0,r.jsx)("div",{className:(0,u.X)("plans-user-plan-info-container",t,a),children:(0,r.jsx)("div",{children:m.map((e,t)=>(0,r.jsx)(s.Fragment,{children:e},t))})})}return null}},54654:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var r=a(32356),s=a(88449),n=a(44158),i=a(47e3),l=a(33307),o=a(33539),c=a(46373),d=a(12115),u=a(99967);let p=()=>{let{setIsRefreshing:e}=(0,s.t)(),[t,a]=(0,d.useTransition)(),p=(0,u.useDispatch)();return(0,d.useEffect)(()=>(e(t),()=>{t&&e(!1)}),[t,e]),{handleLogout:async(e=()=>{})=>{let t=(0,l.Hs)(o.J$);a(async()=>{await (0,i.y4)(),p((0,n.logout)()),(0,i.VO)(),await (0,r.$)([(0,c.F)(t)]),"function"==typeof e&&e()})},dispatch:p}}},56612:()=>{},59396:(e,t,a)=>{"use strict";a.d(t,{P:()=>n});var r=a(95155);a(12115);let s=({type:e})=>(0,r.jsx)("div",{className:`cc-card-icon cc-card-icon--${e}`}),n={visa:(0,r.jsx)(s,{type:"visa"}),master:(0,r.jsx)(s,{type:"mastercard"}),mastercard:(0,r.jsx)(s,{type:"mastercard"}),amex:(0,r.jsx)(s,{type:"amex"}),americanexpress:(0,r.jsx)(s,{type:"amex"}),diners:(0,r.jsx)(s,{type:"diners"}),dinersclub:(0,r.jsx)(s,{type:"diners"}),discover:(0,r.jsx)(s,{type:"discover"}),jcb:(0,r.jsx)(s,{type:"jcb"}),default:(0,r.jsx)(s,{type:"default"})}},59425:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>Z});var r,s,n,i,l=a(95155),o=a(12115),c=a(74703),d=a(76800),u=a(11595),p=a(92198),m=a(33307),h=a(74585),g=a(90929);let f=({color:e,tabs:t,activeTab:a,theme:r,uppercase:s=!0,iconFill:n="#2a2a2a",iconActiveFill:i="#2a2a2a"})=>{let o=100/t.length,c={};t.forEach((e,t)=>{c[e.tabId]={index:t,tab:e}});let d=`payment-tabs-wrapper tabs ${"dark"===r?"payment-tabs-wrapper--dark":""}`,u={width:`${o}%`,left:`${(a&&c[a]?c[a].index:0)*o}%`,"--active-line-color":e&&g.COLORS[e]?g.COLORS[e].mainColor:"#17bed0"};return(0,l.jsxs)("div",{className:d,children:[t.map((t,c)=>{let{tabId:d,tabTitle:u,clickAction:p,disabled:m,TabIcon:h,tabIconActive:f,tooltip:b,testId:x="",tabAttributeId:_="",tabIconSize:v}=t,y=d===a,w=`payment-tabs-tab ${y?"active":""} tab-holder ${!u?"payment-tabs-tab--no-title":""} ${!s?"payment-tabs-tab--no-uppercase":""} ${m?"payment-tabs-tab--disabled":""} ${"dark"===r?"payment-tabs-tab--dark":""}`,j={width:`${o}%`,"--icon-active-fill":i};return"dark"===r&&e&&g.COLORS[e]&&(j["--tab-active-color"]=g.COLORS[e].mainColor),(0,l.jsxs)("div",{style:j,className:w,onClick:()=>m?null:p(d),id:_,"data-testid":x,children:[h?(0,l.jsx)("div",{className:"payment-tabs-icon-wrapper",children:(0,l.jsx)(h,{"data-tooltip-content":b||null,"data-tooltip-id":"tabs-tooltip",fill:n,disabled:m,className:`tab-icon${y?" active":""}`,tabIconSize:v})}):null,u||null]},d)}),(0,l.jsx)(h.m_,{id:"tabs-tooltip",className:"tooltip-message tabs-tooltip",multiline:!0}),(0,l.jsx)("div",{className:"payment-tabs-active-line tabs-active-line","data-for-tab-id":a&&c[a]&&c[a].tab.tabAttributeId?c[a].tab.tabAttributeId:"",style:u})]})};var b=a(59917);function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let _=function(e){return o.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:16.536,height:9.518},e),r||(r=o.createElement("path",{id:"arrow_svg__Path_1",fill:"none",stroke:"#444",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"m576.373 524.2 6.5 6.5 6.5-6.5","data-name":"Path 1",transform:"translate(-574.605 -522.435)"})))},v=({options:e,clickAction:t,selectedOption:a})=>{let[r,s]=(0,o.useState)(!1),[n,i]=(0,o.useState)(),c=(0,o.useRef)(null),d=(0,o.useRef)(null);(0,b.default)(c,()=>{s(!1)}),(0,o.useEffect)(()=>{let e=0;c.current&&(e+=c.current.offsetHeight),i(e)},[r]);let u=`payment-select-menu-header ${r?"payment-select-menu-header--open":""}`,p=`payment-select-menu-arrow-wrapper ${r?"payment-select-menu-arrow-wrapper--open":""}`;return(0,l.jsxs)("div",{className:"payment-select-menu-container",ref:c,children:[(0,l.jsxs)("div",{className:u,onClick:()=>s(!r),ref:d,children:[(0,l.jsx)("div",{className:"payment-select-menu-name-wrapper",children:(t=>{let a=e.find(e=>e.optionId===t);if(a)return a.optionName})(a)}),(0,l.jsx)("div",{className:p,children:(0,l.jsx)(_,{width:"18px"})})]}),r&&(0,l.jsxs)(o.Fragment,{children:[(0,l.jsx)("div",{className:"payment-select-menu-list-container",children:(0,l.jsx)("ul",{className:"payment-select-menu-list",children:e.map(({optionName:t,optionId:a,clickAction:r,OptionIcon:n,disabled:i},c)=>(0,l.jsxs)(o.Fragment,{children:[(0,l.jsxs)("li",{className:`payment-select-menu-list-item ${i?"payment-select-menu-list-item--disabled":""}`,onClick:e=>{e.stopPropagation(),e.preventDefault(),i||(r(a),s(!1))},children:[n?(0,l.jsx)("div",{className:"payment-select-menu-icon-wrapper",children:(0,l.jsx)(n,{})}):null,(0,l.jsx)("span",{className:"payment-select-menu-option-name",children:t})]}),c<e.length-1?(0,l.jsx)("div",{className:"payment-select-menu-separation-line"}):null]},a))})}),(0,l.jsx)("div",{className:"payment-select-menu-shadow",style:{height:`${n}px`}})]})]})};var y=a(7441),w=a(79853),j=a(2356),N=a(99967),P=a(49874),C=a(47768),k=a(59396),S=a(81322);let E=({paymentLoading:e,userPaymentSource:t,errorMessage:a,handleCardChange:r,setPaymentLoading:s,setErrorMessage:n})=>{let{t:i}=(0,S.useT)(),{last4:c,brand:d,expmonth:u,expyear:p,name:m}=t,f=d?d.toLowerCase():null;return(0,l.jsxs)("form",{className:"cc-prefilled-form-wrapper prefilled-card-form","data-testid":"prefilled_card",children:[(0,l.jsxs)("div",{className:"cc-prefilled-card-number",children:[(0,l.jsx)("input",{className:"cc-prefilled-input-field",placeholder:"â¢â¢â¢â¢ â¢â¢â¢â¢ â¢â¢â¢â¢ â¢â¢â¢â¢",type:"text",name:"cardnumber",value:"â¢â¢â¢â¢ â¢â¢â¢â¢ â¢â¢â¢â¢ "+c,autoComplete:"cc-number",disabled:!0}),f?k.P[f]:k.P.default]}),(0,l.jsxs)("div",{className:"cc-prefilled-exp-cvc-row",children:[(0,l.jsx)("div",{className:"cc-prefilled-exp-date",children:(0,l.jsx)("input",{className:"cc-prefilled-input-field",placeholder:i("MM","MM")+" / "+i("YY","YY"),type:"text",name:"cc-exp",maxLength:"5",value:u+"/"+p,autoComplete:"cc-exp",disabled:!0})}),(0,l.jsxs)("div",{className:"cc-prefilled-cvc",children:[(0,l.jsx)(o.Fragment,{children:(0,l.jsxs)("div",{className:"cc-prefilled-info-icon",children:[(0,l.jsx)(C.A,{"data-tooltip-id":"find_card_cvc","data-tooltip-content":i("find_card_cvc","This is the secret
1code located on the back of your credit card.")}),(0,l.jsx)(h.m_,{id:"find_card_cvc",className:"tooltip-message tooltip",multiline:!0})]})}),(0,l.jsx)("input",{className:"cc-prefilled-input-field",placeholder:"â¢â¢â¢",type:"text",maxLength:"3",value:"amex"===f?"â¢â¢â¢â¢":"â¢â¢â¢",name:"cvc",autoComplete:"cc-csc",disabled:!0})]})]}),(0,l.jsx)("div",{className:"cc-prefilled-cardholder",children:(0,l.jsx)("input",{className:"cc-prefilled-input-field",placeholder:i("card_holder","Name on card"),type:"text",value:m,name:"ccname",maxLength:"30",autoComplete:"cc-name",disabled:!0})}),(0,l.jsx)("div",{className:"cc-form-change-card-wrapper change-card-wrapper",children:(0,l.jsx)("a",{className:"cc-form-change-card-link",role:"button",tabIndex:0,onClick:()=>e?null:r(),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||e||(t.preventDefault(),r())},"aria-disabled":e,"data-testid":"change_card",style:{"--cc-link-color":g.COLORS.cyan.mainColor},children:i("change_card","Change card?")})})]})};var A=a(13371),T=a(75357),I=a(99907),M=a(4007),L=a(60333),O=a(67286);let D=!1,R=({auth:e,user:t=null,userId:a,planId:r=[],period:s,discount:n,provider:i,billingAddress:c,RenderForm:d=P.A,afterPaymentActions:u,RenderPrefilledForm:p=E,userPaymentSource:h,color:g="cyan",isBusinessTrial:f=!1,buttonText:b={t_key:"checkout_right_btn",t_default:"PAY NOW"},onPaymentProcessing:x=()=>{},afterPaymentProcessing:_=()=>{},showDisclaimer:v,payButtonClicked:C,disabledButton:k=!1,setDisabledButton:R=()=>{},setDisabledPlanOptions:F=()=>{},checkCurrentSubscription:$=()=>{},theme:B,traffic:U,isIE:q,subscribeForUserInfoChange:z=()=>{},abbortUserInfoChangeSubscribe:H=()=>{},stopUserDiff:W=()=>{},onPaymentErrorMessageChange:V=(e,t)=>null,downgrade:Y=!1,currency:G})=>{let{t:X}=(0,S.useT)(),K=(0,N.useDispatch)(),[Q,Z]=(0,o.useState)(""),[J,ee]=(0,o.useState)(16),[et,ea]=(0,o.useState)("default"),[er,es]=(0,o.useState)(""),[en,ei]=(0,o.useState)(""),[el,eo]=(0,o.useState)(""),[ec,ed]=(0,o.useState)(!0),[eu,ep]=(0,o.useState)(!0),[em,eh]=(0,o.useState)(!0),[eg,ef]=(0,o.useState)(!0),[eb,ex]=(0,o.useState)(""),[e_,ev]=(0,o.useState)(!1),[ey,ew]=(0,o.useState)(!1),[ej,eN]=(0,o.useState)(!1),eP=o.useRef(!1),[eC,ek]=(0,o.useState)(0),[eS,eE]=(0,o.useState)(!1),[eA,eT]=(0,o.useState)(!0),eI=e=>e.replace(/\s+/g,""),eM=e=>{let t=eI(e);return!(!t||t.length<3)},{holderNameRef:eL,onSafechargeFieldsCreated:eO,validateSafeChargeInputs:eD}=(0,A.m)({provider:i,changeCard:ey,validateHolderName:eM,setDisableErrorAnimation:eT,setValidCardNumber:ed,setValidExpDate:ep,setValidCVC:eh,setValidHolderName:ef,holderName:el,getHolderNameFormatted:eI});(0,o.useEffect)(()=>{j.A.setDispatch(K)},[K]),(0,o.useEffect)(()=>{V(eb)},[eb]),(0,o.useEffect)(()=>{C&&eH()},[C]),(0,o.useEffect)(()=>{R(e_),F(e_)},[e_]),(0,o.useEffect)(()=>{q&&!k&&R(!0)},[q,k]),(0,o.useEffect)(()=>{let e=null;if(i===L.SAFECHARGE_PAYMENT_PROVIDER&&!q)if(ej||eP.current||h&&(!h||!ey))h&&!ey&&(0,T.loadSafecharge)();else{let t={},a=(0,m.Hs)("lang")||(0,m.Hs)("set_lang");a&&(t.language=a),d===P.A&&(t.ScFieldStyles=O.fu);let r=()=>{clearTimeout(e),eP.current=!1,eC<2&&setTimeout(()=>ek(e=>e+1),500)};t.callback=()=>{clearTimeout(e),eP.current=!1,eN(!0),eO()},t.onError=r,eP.current=!0,(0,T.insertSafechargeForm)(t).catch(r),e=setTimeout(()=>{eP.current&&r()},15e3),eT(!0)}return()=>{clearTimeout(e)}},[ey,i,eC]),(0,o.useEffect)(()=>(window.handleSafeChargeSuccess=e=>{void 0!==window.on3DsecureSuccess&&window.on3DsecureSuccess(),ez(e)},()=>{delete window.handleSafeChargeSuccess}),[]);let eR=e=>{var t;let a=e.target.value,r=a.replace(/\s+/g,"");if("number"==typeof(t=e.target).selectionStart&&"number"==typeof t.selectionEnd&&t.selectionStart!==t.selectionEnd){e.target.selectionEnd-e.target.selectionStart==1&&" "===e.target.value.substr(e.target.selectionStart,1)&&" "!==String.fromCharCode(e.which||e.keyCode||e.charCode)&&r.length>J-1&&e.preventDefault();return}r.length>J-1?e.preventDefault():"amex"===et&&r?(4===r.length||10===r.length)&&Z(a+=" "):r&&r.length%4==0&&Z(a+=" ")},eF=e=>{-1!==[8].indexOf(e.keyCode)?e.preventDefault():es((0,y.formatExpDatetoMMYY)(er))},e$=()=>{ex(""),ew(!ey),"safecharge"===i&&ey&&(eN(!1),eP.current=!1,ek(0))},eB=e=>{D="show"===e,ev("show"===e),D?x():_()},eU=e=>{"card_number"===e&&ed(!1),"exp_date"==e&&ep(!1),"cvc"==e&&ef(!1)},eq=e=>{ex(e),eB("hide"),H(),W()},ez=(e,t,a,r)=>{D=!1,u(e,t,a,r)},eH=l=>{if(l&&l.preventDefault(),ex(""),e_)return;ex("");let o={provider:i,period:s,userAuth:e,userId:a,products:r,billingAddress:c,traffic:-1!==r.indexOf(M.ADDITIONAL_TRAFFIC_ID)&&(parseInt(U)||t&&(0,I.getUserTtrafficCount)(t,!0))||0,downgrade:Y,toggleLoader:eB,showPaymentError:eq,showBadInput:eU,currency:G,t:X};if(t?.lastsubscription?.status==="active"&&t.lastsubscription?.products.indexOf(M.CUSTOM4TB_PLAN_ID)!==-1&&"lifetime"!==s&&(t?.plan
1params?.traffic&&(o.traffic+=t.planparams.traffic),t?.planparams?.storage&&(o.storage=t.planparams.storage)),n&&(o.discountcode=n),h&&!ey){if(D)return;if(D=!0,f){eB("show"),ez({businessTialWithExistingPaymentSource:!0});return}h&&h.providersourceid&&(o.providerSourceId=h.providersourceid);let e=new w.Zc(o);eB("show"),"safecharge"===i?e.initSafechargePayment({refresh:!1,callback:ez,showPaymentConfirmationModal:$(),handlePaymentConfirmationCancle:eW}):i===L.STRIPE_PAYMENT_PROVIDER&&e.updateStripeSubscription({refresh:!1,callback:ez,showPaymentConfirmationModal:$(),handlePaymentConfirmationCancle:eW}),z()}else eT(!1),((e=()=>null)=>{let t=!1,a=!1,r=!1,s=!1,n=!1,l=en&&en.replace(/\s+/g,"");if(i===L.STRIPE_PAYMENT_PROVIDER)t=(0,y.validateExpiryDate)(er),a=!(!Q||Q.length<12),r=eM(el),s=!(!l||l.length<3),n=Q&&er&&eI(el)&&l;else if(i===L.SAFECHARGE_PAYMENT_PROVIDER){let e=eD();a=e.validCardNumber,r=e.validHolderName,s=e.validCVC,t=e.validExpDate,n=e.filledInputs}return(ep(t),ed(a),ef(r),eh(s),t&&a&&r&&s&&n)?e&&"function"==typeof e&&e():(({filledInputs:e,validExpDateTemp:t,validCardNumberTemp:a,validHolderNameTemp:r,validCVCTemp:s})=>{if(!e)return V(X("missing_credit_card_details_error","Please provide all card details."),"all_fields_blank");let n=[{name:"expDate",value:t},{name:"cardNumber",value:a},{name:"holderName",value:r},{name:"cvc",value:s}].filter(({value:e})=>!e);if(n.length>1)return V(X("invalid_credit_card_details_error","Invalid card details."));switch(n[0].name){case"expDate":V(X("invalid_exp_date_error","Invalid card expiration date."));break;case"cardNumber":V(X("invalid_card_number_error","Invalid card number."));break;case"holderName":V(X("invalid_holder_name_error","Invalid card holder name."));break;case"cvc":V(X("invalid_cvc_error","Invalid card security code."))}})({filledInputs:n,validExpDateTemp:t,validCardNumberTemp:a,validHolderNameTemp:r,validCVCTemp:s})})(()=>{if(D)return;D=!0,eB("show");let e=null;e="safecharge"===i?{cardHolderName:el}:{cardNumber:Q.replace(/\s+/g,""),cardHolderName:el.replace(/\s+/g,""),expirationMonth:(0,y.getExpiryDatePeriod)(er,"month"),expirationYear:(0,y.getExpiryDatePeriod)(er,"year"),CVV:en},f&&(o.authorizeCard=!0),o.newCC=e;let t=new w.Zc(o);f&&i===L.STRIPE_PAYMENT_PROVIDER?t.setStripePaymentSource({callback:()=>ez({changeCard:ey})}):i===L.SAFECHARGE_PAYMENT_PROVIDER?t.initSafechargePayment({refresh:!1,callback:ez,showPaymentConfirmationModal:$(),handlePaymentConfirmationCancle:eW}):i===L.STRIPE_PAYMENT_PROVIDER&&t.updateStripeSubscription({refresh:!1,callback:ez,showPaymentConfirmationModal:$(),handlePaymentConfirmationCancle:eW,changeCard:ey}),z()})},eW=()=>{ev(!1),ex("")};return(0,l.jsx)(o.Fragment,{children:h&&p&&!ey?(0,l.jsx)(p,{paymentLoading:e_,userPaymentSource:h,errorMessage:eb,handleCardChange:e$,handleSubmit:eH,color:g,buttonText:X(b),showDisclaimer:v,setPaymentLoading:ev,setErrorMessage:ex,theme:B}):(0,l.jsx)(d,{cardNumber:Q,validCardNumber:ec,cardType:et,handleCardNumberChange:e=>{let t,a=e.target.value;a.length<=4&&a.length>0?t=(0,y.findCardType)(a):0==a.length&&(ea("default"),ee(16)),t&&et!=t.name&&(ea(t.name),ee(t.valid_length[0])),a.length-Q.length<=1&&Z(a)},handleCardNumberKeyPress:e=>{(0,y.preventEnteringChars)(e),eR(e)},handleCardNumberPaste:e=>{let t=(e.clipboardData||window.clipboardData).getData("text"),a=[];if(t=t.replace(/\D/g,"")){let e,r=(0,y.findCardType)(t);r?(ea(r.name),e=r.valid_length[0],t=t.slice(0,e),"amex"===r.name?(a.push(t.slice(0,4)),a.push(t.slice(4,10)),a.push(t.slice(10))):a=t.match(/.{1,4}/g)):(ea("default"),ee(16),a=t.match(/.{1,4}/g)),Z(a.join(" "))}},expDate:er,validExpDate:eu,handleExpDateKeyUp:e=>{eF(e)},handleExpDateChange:e=>{let t=e.target.value;t.length>er.length?es((0,y.formatExpDatetoMMYY)(t)):es(t)},CVC:en,validCVC:em,handleCVCChange:e=>{ei(e.target.value)},handleCVCKeyPress:e=>{(0,y.preventEnteringChars)(e)},holderName:el,validHolderName:eg,handleHolderNameChange:e=>{eo(e.target.value.toUpperCase())},handleHolderNameKeyPress:e=>{(0,y.preventSymbolsOnCCHolderName)(e)},errorMessage:eb,paymentLoading:e_,handleSubmit:eH,changeCard:ey,handleCardChange:e$,color:g,shouldRenderInputs:"safecharge"!==i,shouldRenderHolderName:"safecharge"!==i,buttonText:b,showDisclaimer:v,setPaymentLoading:ev,setErrorMessage:ex,theme:B,disableErrorAnimation:eA,holderNameRef:eL,errorTextColor:"safecharge"===i?"#e25950":null})})},F=({color:e,paypalEmail:t,errorMessage:a,paypalLoading:r,paymentLoading:s,handleLogout:n,setPaymentLoading:i,setPaypalLoading:o,setErrorMessage:c})=>{let{t:d}=(0,S.useT)();return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"paypal-template-wrapper",children:[(0,l.jsx)("div",{className:"paypal-template-icon"}),t?(0,l.jsxs)("div",{className:"paypal-template-email",children:[(0,l.jsx)("span",{children:t}),(0,l.jsx)("a",{className:"paypal-template-logout",role:"button",tabIndex:0,onClick:()=>s?null:n(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||s||(e.preventDefault(),n())},"aria-disabled":s,children:d("header_logout")})]}):null]})})};var $=a(6330),B=a(40381);
1let U=({auth:e,user:t=null,planId:a=[],period:r,discount:s,userPaymentSource:n,afterPaymentActions:i,color:c="cyan",onPaymentProcessing:d=()=>{},afterPaymentProcessing:u=()=>{},showDisclaimer:p,isBusinessTrial:m=!1,paypalButtonLabel:h="",RenderTemplate:g=F,setExternalButtonLoading:f=()=>{},payButtonClicked:b,checkCurrentSubscription:x=()=>{},isMobile:_=!1,hidePaypalButton:v=!1,setDisabledPlanOptions:y=()=>{},setDisabledButton:P=()=>{},removePaypalPaymentSource:C=()=>{},theme:k,traffic:E,subscribeForUserInfoChange:A=()=>{},abbortUserInfoChangeSubscribe:T=()=>{},stopUserDiff:L=()=>{},onPaymentErrorMessageChange:D=e=>null,downgrade:R=!1})=>{let{t:U}=(0,S.useT)(),q=(0,N.useDispatch)(),[z,H]=(0,o.useState)(""),[W,V]=(0,o.useState)(!0),[Y,G]=(0,o.useState)(!1),[X,K]=(0,o.useState)(),[Q,Z]=(0,o.useState)(!1),J=(0,o.useRef)({value:null}),ee=(0,$.A)(_),et=(0,o.useRef)(!1),[ea,er]=(0,o.useState)(null);(0,o.useEffect)(()=>{j.A.setDispatch(q)},[q]),(0,o.useEffect)(()=>{let n={provider:"paypal",period:r,userAuth:e,products:a,billingAddress:{},traffic:-1!==a.indexOf(M.ADDITIONAL_TRAFFIC_ID)&&(parseInt(E)||t&&(0,I.getUserTtrafficCount)(t,!0))||0,downgrade:R,isBusinessTrial:m,toggleLoader:ei,showPaymentError:el,showBadInput:()=>{},onBraintreeCreatePayment:A,t:U};t?.lastsubscription?.status==="active"&&t.lastsubscription?.products.indexOf(M.CUSTOM4TB_PLAN_ID)!==-1&&"lifetime"!==r&&(t?.plan
1params?.traffic&&(n.traffic+=t.planparams.traffic),t?.planparams?.storage&&(n.storage=t.planparams.storage)),s&&(n.discountcode=s),J.current.value=new w.Zc(n)},[]),(0,o.useEffect)(()=>{J.current.value&&(s?J.current.value.paymentInfo.discountcode=s:delete J.current.value.paymentInfo.discountcode)},[s]),(0,o.useEffect)(()=>{P(Y||W),y(Y||W)},[Y,W]),(0,o.useEffect)(()=>{if(null===ea)return;let{res:e,successCallback:t,errorCallback:a,skipApiUpdate:r}=ea;i(e,t,a,r)},[ea]),(0,o.useEffect)(()=>{if(J.current.value&&!X&&!v){if(_===ee)if(!et.current)return;else et.current=!1;es()}},[_,X,v]),(0,o.useEffect)(()=>{J.current.value&&(J.current.value.paymentInfo.products=a.join(","),J.current.value.paymentInfo.traffic=-1!==a.indexOf(M.ADDITIONAL_TRAFFIC_ID)&&(E||t&&(0,I.getUserTtrafficCount)(t,!0))||0)},[a]),(0,o.useEffect)(()=>{D(z)},[z]),(0,o.useEffect)(()=>{b&&en()},[b]),(0,o.useEffect)(()=>{n&&n.email&&(K(n.email),V(!1))},[n]);let es=()=>{J.current.value&&(V(!0),f(!0),J.current.value.getTokenBraintree({refresh:!1,label:h,locale:O.Se[(0,B.Z)()]||"en_US",showPaymentConfirmationModal:x(),callback:(e,t,a,r)=>er({res:e,successCallback:t,errorCallback:a,skipApiUpdate:r}),onReady:()=>{V(!1),f(!1)}}))},en=()=>{!W&&(H(""),X?(ei("show"),m?i({businessTialWithExistingPaymentSource:!0}):(A(),J.current.value.createBraintreePayment({refresh:!1,callback:i,showPaymentConfirmationModal:x()}))):(A(),J.current.value.checkout&&(ei("show"),J.current.value.checkout.paypal.initAuthFlow())))},ei=e=>{let t="show"===e;G(t),V(t),t?d():u()},el=e=>{V(!1),H(e),T(),L()};return(0,l.jsx)(o.Fragment,{children:(0,l.jsx)(g,{paypalLoading:W,paymentLoading:Y,color:c,errorMessage:z,paypalEmail:X,handleLogout:()=>{K(""),H(""),C(),et.current=!0},handleSubmit:en,showDisclaimer:p,setPaymentLoading:G,setPaypalLoading:V,setErrorMessage:H,theme:k})})};var q=a(51194),z=a(13977);let H=({auth:e,user:t=null,planId:a,period:r,discount:s,afterPaymentActions:n,onPaymentProcessing:i,afterPaymentProcessing:c,setDisabledButton:d,paymentMethods:u,payButtonClicked:p,traffic:m,onPaymentErrorMessageChange:h=e=>null,downgrade:g=!1})=>{let{t:f}=(0,S.useT)(),[b,x]=(0,o.useState)(""),[_,v]=(0,o.useState)(!1),[y,w]=(0,o.useState)("");(0,o.useEffect)(()=>{1===u.length&&x(u[0].method)},[u]),(0,o.useEffect)(()=>{b?d(!1):d(!0)},[b]),(0,o.useEffect)(()=>{p&&j()},[p]),(0,o.useEffect)(()=>{h(y)},[y]);let j=()=>{(n=>{if(!b)return;let i={auth:e,products:a.join(","),traffic:-1!==a.indexOf(M.ADDITIONAL_TRAFFIC_ID)&&(m||t&&(0,I.getUserTtrafficCount)(t,!0))||0,period:r,paymentmethod:b};s&&(i.discountcode=s),g&&(i.isdowngrade=1),(0,z.default)("safechargepayment/buildparams",i,e=>{openLocalPaymentsModal&&openLocalPaymentsModal(e)},{apiServer:(0,q.V)()}),w("")})()},N=e=>{u&&1===u.length||(b===e?x(""):x(e))};return(0,l.jsxs)("div",{className:"local-payment-wrapper",children:[(()=>{if(u&&u.length>1)return(0,l.jsx)("div",{className:"local-payment-select-text",children:f("choose_local_provider")})})(),(0,l.jsx)("div",{children:u.map(({method:e,logourl:t,displayname:a})=>(0,l.jsx)("div",{role:"button",tabIndex:0,onClick:()=>N(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),N(e))},"aria-pressed":b===e,className:`local-payment-logo${b===e?" local-payment-logo--selected":""}`,children:(0,l.jsx)("img",{src:t,alt:`${a} payment method`})},e))})]})};function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let V=function(e){return o.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:64.001,height:63.999},e),s||(s=o.createElement("path",{fill:"#e4e4e4",d:"M32.001 64a31.8 31.8 0 0 1-12.456-2.515 31.9 31.9 0 0 1-10.171-6.858 31.9 31.9 0 0 1-6.858-10.171A31.8 31.8 0 0 1 .001 32a31.8 31.8 0 0 1 2.515-12.456A31.9 31.9 0 0 1 9.374 9.372a31.9 31.9 0 0 1 10.171-6.858A31.8 31.8 0 0 1 32.001 0a31.8 31.8 0 0 1 12.456 2.515 31.9 31.9 0 0 1 10.171 6.858 31.9 31.9 0 0 1 6.859 10.172A31.8 31.8 0 0 1 64.001 32a31.8 31.8 0 0 1-2.515 12.455 31.9 31.9 0 0 1-6.859 10.171 31.9 31.9 0 0 1-10.171 6.858A31.8 31.8 0 0 1 32.001 64m0-59a26.8 26.8 0 0 0-10.509 2.122 26.9 26.9 0 0 0-8.583 5.786 26.9 26.9 0 0 0-5.786 8.582A26.8 26.8 0 0 0 5.001 32a26.8 26.8 0 0 0 2.122 10.51 26.9 26.9 0 0 0 5.786 8.582 26.9 26.9 0 0 0 8.583 5.786A26.8 26.8 0 0 0 32.001 59a26.8 26.8 0 0 0 10.51-2.122 26.9 26.9 0 0 0 8.583-5.786 26.9 26.9 0 0 0 5.786-8.582A26.8 26.8 0 0 0 59.001 32a26.8 26.8 0 0 0-2.122-10.51 26.9 26.9 0 0 0-5.786-8.582 26.9 26.9 0 0 0-8.583-5.786A26.8 26.8 0 0 0 32.001 5"})),n||(n=o.createElement("path",{fill:"#bc3232",d:"M.051 32H0v-.499q-.001-.082.005-.163a31.8 31.8 0 0 1 2.509-11.793A31.9 31.9 0 0 1 9.372 9.373a31.9 31.9 0 0 1 10.171-6.858A31.8 31.8 0 0 1 31.307.007c.064 0 .129-.007.194-.007h.498v.05a2.5 2.5 0 0 1 2 2.451 2.5 2.5 0 0 1-2 2.449V5h-.009a26.8 26.8 0 0 0-10.5 2.12 26.95 26.95 0 0 0-8.582 5.786 26.9 26.9 0 0 0-5.786 8.584A26.8 26.8 0 0 0 5 32h-.048a2.5 2.5 0 0 1-2.451 2 2.5 2.5 0 0 1-2.45-2",className:"loading-icon_svg__color-path"})))};function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let G=function(e){return o.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",fill:"#1A1A1A",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 32 26"},e),i||(i=o.createElement("path",{d:"M5 3h22a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3M2 7h28v3.5H2Zm5 7h4a1 1 0 0 1 1 1v2.5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V15a1 1 0 0 1 1-1m-1 6h11v1.6H6Z"})))};var X=a(69447),K=a(46373),Q=a(32356);let Z=({payButtonRef:e,user:t,nextUser:a=t,initialUser:r,initialUserPaymentData:s=null,cart:n=[],chosenPeriod:i,discount:h,disabledButton:g,setDisabledButton:b,setPaypalButtonLoading:x,paymentView:_,setPaymentView:y,cardProvider:j,setCardProvider:N,userPaymentSource:P,setUserPaymentSource:C,removePaypalPaymentSource:k,payButtonClicked:E,setPayButtonClicked:A=()=>{},setDisabledPlanOptions:T,isMobile:I,userDiff:L=()=>{},traffic:D,hidePaypalButton:F,setHidePaypalButton:B,country:W,downgrade:Y,onLoadedPaymentData:G=()=>null,onLoadedPaymentDataError:Z=e=>null,disableLoadingIndication:es=!1,onPaymentStarted:en=()=>null,onPaymentFinished:ei=()=>null,onPaymentErrorMessageChange:el=e=>null,setUserSubscriptions:eo=e=>null,isBusinessTrial:ec=!1,isBusiness:ed=!1,sendAnalyticsEventsAfterPaymentSuccess:eu=e=>{},onPaymentSuccess:ep=e=>{},currency:em,showPaymentContainerUI:eh=!0,tabsToSelectOnMobile:eg=!1,tabIconSize:ef=null,walletPaymentSuccessRef:eb=null,usedPaypalRef:ex=null,setWalletPayAvailable:e_=()=>null,stackedLayout:ev=!1,renderPayButton:ey=()=>
1null,selectedMethod:ew=null,setSelectedMethod:ej=()=>{},setPaymentLocked:eN=()=>{},paymentInProgress:eP=!1,walletPayAvailable:eC=!1,walletPayReady:ek=!1,walletPayLoading:eS=!1,walletPayErrorMsg:eE={show:!1,message:""},payBtnErrorMsg:eA={show:!1,message:""}})=>{let{t:eT}=(0,S.useT)(),[eI,eM]=(0,o.useState)([]),[eL,eO]=(0,o.useState)(!es),[eD,eR]=(0,o.useState)(!0),[eF,e$]=(0,o.useState)(null),[eB,eU]=(0,o.useState)(!0),[eq,ez]=(0,o.useState)(!1),[eH,eW]=(0,o.useState)(!1),eV=(0,o.useRef)([]),eY=(0,p.isInternetExplorer)(),eG=(0,$.A)(_),{loadPaymentData:eX}=(({initialUser:e,nextUser:t,chosenPeriod:a,initialUserPaymentData:r,onLoadedPaymentData:s,onLoadedPaymentDataError:n,setUserPaymentSource:i,setSafechargeLocals:l,setCardProvider:o,setUserSubscriptions:c,setLoadPaymentDataInProgress:d,setLoading:u,subscriptionsRef:h,isBusiness:g=!1,setWalletPayAvailable:f=()=>null})=>{let b=(0,p.isInternetExplorer)();return{loadPaymentData:p=>{d(!0);let x={},_=e=>x.paymentSource=e,v=e=>x.paymentProvider=e,y=e=>x.safechargeLocal=e,w=e=>x.subscriptions=e.subscriptions,j=[],N=e?.auth===t?.auth&&r&&!t?.forceReloadPaymentData;if(N&&r.source)j.push(new Promise(e=>{_(r.source),e(r.source)}));else j.push(new Promise((e,a)=>{(0,z.default)("listpaymentsources",{auth:t.auth},t=>{_(t),e(t)},{errorCallback:a,onXhrError:(e,t,r)=>a({result:"xhr_error",error:{xhr:e,status:t,error:r}})})}));if(N&&!b&&r.provider)j.push(new Promise(e=>{v(r.provider),e(r.provider)}));else j.push(new Promise((e,a)=>{let r={auth:t.auth};(0,m.Hs)("forcecard")&&(r.card=(0,m.Hs)("forcecard")),(0,m.Hs)("forcecountry")&&(r.country=(0,m.Hs)("forcecountry")),b&&(r.browser="IE"),g&&(r.isbusiness=!0),(0,z.default)("listpaymentmethods",r,t=>{v(t),e(t)},{errorCallback:t=>{v(t),e(t)},onXhrError:(t,a,r)=>{let s={result:"xhr_error",error:{xhr:t,status:a,error:r}};v(s),e(s)}})}));if("month"!==a)if(N&&r.safechargeLocal)j.push(new Promise(e=>{y(r.safechargeLocal),e(r.safechargeLocal)}));else j.push(new Promise((e,a)=>{let r={auth:t.auth};(0,m.Hs)("forcecountry")&&(r.country=(0,m.Hs)("forcecountry").toUpperCase()),(0,z.default)("safechargepayment/getsessiontoken",r,a=>{((e,a)=>{if(!e)return a({});let r={auth:t.auth,sessiontoken:e};(0,m.Hs)("forcecountry")&&(r.country=(0,m.Hs)("forcecountry").toUpperCase()),(0,z.default)("safechargepayment/getpaymentmethods",r,e=>{a(e)},{apiServer:(0,q.V)(),timeout:1500,errorCallback:e=>{a(e)},onTimeout:()=>{a()},onXhrError:(e,t,r)=>{a({result:"xhr_error",error:{xhr:e,status:t,error:r}})}})})(a.sessiontoken,t=>{y(t),e(t)})},{apiServer:(0,q.V)(),timeout:1500,errorCallback:t=>{y(t),e(t)},onTimeout:()=>{console.log("Request timed out -> safechargepayment/getsessiontoken")},onXhrError:(t,a,r)=>{let s={result:"xhr_error",error:{xhr:t,status:a,error:r}};y(s),e(s)}})}));if("lifetime"!==a&&p)if(N&&r.subscriptions)j.push(new Promise(e=>{let t={subscriptions:r.subscriptions};w(t),e(t)}));else j.push(new Promise((e,a)=>{(0,z.default)("listpaymentsubscriptions",{auth:t.auth},t=>{w(t),e(t)},{errorCallback:a,onXhrError:(e,t,r)=>a({result:"xhr_error",error:{xhr:e,status:t,error:r}})})}));Promise.all(j).then(()=>{let e=x.paymentSource,t=x.paymentProvider,r=x.safechargeLocal;h.current=x.subscriptions,c(x.subscriptions);let n="safecharge";t&&t.paymentmethods&&t.paymentmethods[0]&&(n=t.paymentmethods[0].method),e&&(e.stripe||e.safecharge||e.paypal)&&(e.stripe?n="stripe":e.safecharge&&(!b||b&&"lifetime"!==a)&&(n="safecharge"),i(e)),r&&r.paymentmethods&&l(r),o(n),"lifetime"===a&&t&&t.paymentmethods&&t.paymentmethods[0]&&t.paymentmethods[0].mobilepaymentsavailable&&f(!0),d(!1),s(),setTimeout(()=>{u(!1)},300)}).catch(e=>{d(!1),u(!1),n(e)})}}})({initialUser:r,nextUser:a,chosenPeriod:i,initialUserPaymentData:s,onLoadedPaymentData:G,onLoadedPaymentDataError:Z,setUserPaymentSource:C,setSafechargeLocals:e$,setCardProvider:N,setUserSubscriptions:eo,setLoadPaymentDataInProgress:eR,setLoading:eO,subscriptionsRef:eV,isBusiness:ed,setWalletPayAvailable:e_}),eK=n&&(-1!==n.indexOf(M.PASS_PREMIUM_PLAN_ID)||-1!==n.indexOf(M.PASS_FAMILY_PLAN_ID)),eQ=e=>{y(e)},eZ=(e=!0)=>{if(!t||!Array.isArray(n)||0===n.length)return null;if(e){if(P&&P.paypal?eD:F)return null}else if(eD)return null;let a=ev?"paypal"===ew:"paypal"===_;return(0,l.jsx)(U,{auth:t.auth,user:t,planId:n,period:i,discount:h,afterPaymentActions:(...e)=>{ex&&(ex.current=!0),tu(...e)},userPaymentSource:P&&P.paypal,color:"cyan",onPaymentProcessing:tc,afterPaymentProcessing:tp,showDisclaimer:!0,paypalButtonLabel:"pay",setExternalButtonLoading:e=>{x(e),eU(e)},payButtonClicked:!!a&&E,checkCurrentSubscription:tm,hidePaypalButton:F,setDisabledPlanOptions:T,setDisabledButton:b,isMobile:I,removePaypalPaymentSource:k,traffic:D,downgrade:Y,onPaymentErrorMessageChange:el,isBusinessTrial:ec,...e?{RenderTemplate:()=>null}:{}})}
1,eJ=eP||g,e0=eP||eS,e1=(e,t)=>(0,l.jsx)("div",{className:"stacked-cta-morph",children:(0,l.jsx)(c.N,{initial:!1,children:(0,l.jsx)(d.P.div,{className:"stacked-cta-morph-layer",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.28,ease:"easeInOut"},children:ew===e?ey():(0,l.jsxs)("button",{type:"button",className:`payment-method-button ${"ccard"===e||"paypal"===e?"payment-method-button--card":""}`,onClick:()=>e4(e),"data-testid":`checkout_choose_${"ccard"===e?"card":e}`,"aria-label":e7[e],children:[(0,l.jsx)("span",{className:"payment-method-button-label",children:e7[e]}),(0,l.jsx)("span",{className:"payment-method-button-icon",children:(0,l.jsx)(t,{})})]})},ew===e?"pay":"select")})}),e2={duration:.28,ease:"easeInOut"},e5=e=>I?!!ew:!!ew&&ew!==e,e3=eI.some(e=>"local"===e.tabId),e4=e=>{y(e),ej(e)},e7={ccard:eT("pay_with_credit_card","Pay with Credit card"),paypal:eT("pay_with_paypal","Pay with PayPal"),local:eT("local_payment")},e6=(0,o.useRef)([{tabId:"ccard",TabIcon:ee,tooltip:eT("cc_payment"),tabTitle:I&&eg?eT("CREDIT CARD"):"",testId:"checkout_choose_card",optionName:eT("cc_payment"),clickAction:eQ,tabIconSize:ef},{tabId:"paypal",TabIcon:J,tooltip:eT("paypal_payment"),tabTitle:I&&eg?eT("PAYPAL"):"",testId:"checkout_choose_paypal",optionName:eT("paypal_payment"),clickAction:eQ,tabIconSize:ef}]),e9={tabId:"local",TabIcon:et,tooltip:eT("local_payment"),tabTitle:I&&eg?eT("LOCAL"):"",testId:"checkout_choose_local",optionName:eT("local_payment"),clickAction:eQ,tabIconSize:ef};(0,o.useEffect)(()=>{eM(e6.current)},[]),(0,o.useEffect)(()=>{((0,m.y2)("ErrCode")||"succeeded"===(0,m.y2)("redirect_status"))&&!ed&&tu({transactionId:(0,m.y2)("transactionid")},null,null,!0)},[]),(0,o.useEffect)(()=>{a&&eX(a)},[a]),(0,o.useEffect)(()=>{let e=to();eM(tl()),eG!==e&&y(e)},[t,P,j,eF]),(0,o.useEffect)(()=>{eb&&(eb.current={onPaymentSuccess:tu,onPaymentProcessing:tc,afterPaymentProcessing:tp})}),(0,o.useEffect)(()=>{t&&!eD?(b(!1),P&&P.paypal?B(!0):B(!1)):(b(!0),B(!0))},[eD,t,P]);let e8=()=>{if("lifetime"!==i&&eV.current&&eV.current.length>0&&P){let e=eV.current.find(({provider:e,status:t})=>"canceled"!==t&&(0,w.RP)(e));return e&&e.provider}return!1},te=e8(),tt=te&&w.r5[te]?w.r5[te].type:null,ta=!(P&&P.paypal),tr=!ta||"paypal"===ew,ts=!eD&&(!!tt||(!eC||ek)&&(!ta||!eB)),tn=eq&&ta&&eB,ti=ev&&!!t&&eh;(0,o.useEffect)(()=>{ti&&ts&&ez(!0)},[ti,ts]),(0,o.useEffect)(()=>{if(!ti)return;let e=setTimeout(()=>ez(!0),8e3);return()=>clearTimeout(e)},[ti]),(0,o.useEffect)(()=>{if(!eq)return;let e=setTimeout(()=>eW(!0),350);return()=>clearTimeout(e)},[eq]),(0,o.useEffect)(()=>{eN(ev&&!!tt),ev&&tt&&ew!==tt&&ej(tt)},[ev,tt,ew]);let tl=()=>{let e=[...e6.current],t=e8();if(eF&&eF.paymentmethods&&eF.paymentmethods.length&&e.push(e9),t){let a=w.r5[t].type;e.some(e=>e.tabId===a)&&(e=e.filter(e=>e.tabId===a))}return e},to=()=>{let e="ccard",t=e8();if((0,m.y2)("redirect_status")&&(0,m.y2)("source_type"))e=(0,m.y2)("source_type");else if(t){let a=w.r5[t].type;eI.some(e=>e.tabId===a)&&(e=a)}else P&&P.paypal?e="paypal":"paypal"===ew&&(e="paypal");return e},tc=({fromWalletPay:e}={})=>{eM(eI.map(e=>({disabled:!0,...e}))),null!==L&&L(!0),e||en()},td=async({transactionID:e,metapixeleventid:a,nonce:r,changeCard:s},n,i,l)=>{await (0,Q.$)([(0,K.F)(t.auth)]),l||eu({transactionID:e,metapixeleventid:a}),n&&n(),(0,m.Hs)("discount")&&(0,m.pC)("discount",null,-1),ep({transactionID:e,metapixeleventid:a,nonce:r,changeCard:s})},tu=(e,a,r,s)=>{let n=e?.transactionId||e?.transactionid||e?.id||e?.paymentIntent?.id||"",i=e?.metapixeleventid,l=e?.nonce,o=e?.changeCard;(h&&(0,m.pC)("discount",null,0),ec&&"safecharge"===j)?th({callback:()=>{td({transactionID:n,metapixeleventid:i,nonce:l,changeCard:o},a,r,!0)}}):s||ec?td({transactionID:n,metapixeleventid:i,nonce:l,changeCard:o},a,r,!0):(0,X.gC)({onUpdateSuccess:td,metapixeleventid:i,currentUser:t,userDiff:L,transactionID:n,successCallback:a,errorCallback:r})},tp=()=>{eM(tl()),ei()},tm=()=>{if(!n||!t||t&&eK&&!((0,m.Hs)("passtoken")||(0,m.Hs)("restrictedPassToken"))||ed)return!1;let{lastsubscription:e,efh:a,cryptosubscription:r,premium:s,premiumlifetime:i,additionaltraffic:l,additionaltrafficlifetime:o,passmanagerdata:c}=t,d=e&&"canceled"===e.status,u=!1,p=!1,h=!1,g=!1,f=!1;return!!d&&n.some(t=>{let n=(t===M.PREMIUM_PLAN_ID||t===M.PREMIUM_PLUS_PLAN_ID)&&(-1!==e.products.indexOf(M.PREMIUM_PLAN_ID)||-1!==e.products.indexOf(M.PREMIUM_PLUS_PLAN_ID)),d=(t===M.PASS_FAMILY_PLAN_ID||t===M.PASS_PREMIUM_PLAN_ID)&&(-1!==e.products.indexOf(M.PASS_FAMILY_PLAN_ID)||-1!==e.products.indexOf(M.PASS_PREMIUM_PLAN_ID));return -1!==e.products.indexOf(t)&&(a&&t==M.EFH_PLAN_ID&&(h=!0),r&&t==M.CRYPTO_PLAN_ID&&(g=!0),l&&!o&&t==M.ADDITIONAL_TRAFFIC_ID&&(f=!0)),n&&s&&!i&&(u=!0),d&&c&&c.plan&&!c.islifetime&&(p=!0),h||g||u||f||p})},th=({callback:e})=>{let a=0,r=0;if(P&&P.stripe){let e=P.stripe.sources;r=e[e.length-1]}else if(P&&P.safecharge){let e=P.safecharge.sources;r=e[e.length-1]}r&&(a=r.paymentsourceid),(0,z.default)("subscribe",{subscribefor:"paymentsource",auth:t.auth,paymentsourceid:a},({paymentsouce:t})=>{e(t)},{errorCallback:()=>{e()}})},tg=()=>eL?(0,l.jsx)(u.A,{trigger:eL,type:"fade",timeout:400,disableInitialAnimation:!1,children:(0,l.jsxs)("div",{className:"payment-container-processing-wrapper",children:[(0,l.jsx)("div",{className:"payment-container-loader-wrapper",children:(0,l.jsx)("div",{className:"checkout-spin-container",style:{"--spin-width":"64px","--spin-height":"64px"},children:(0,l.jsx)(V,{})})}),(0,l.jsx)("div",{className:"payment-container-processing-message",children:eT("loading_payment_form")})]})}):null,tf=a=>{let r=null;if(P&&P.stripe){let e=P.stripe.sources;r=e[e.length-1]}else if(P&&P.safecharge&&!eY){let e=P.safecharge.sources;r=e[e.length-1]}return(0,l.jsx)(R,{auth:t.auth,user:t,planId:n,period:i,discount:h,provider:j,billingAddress:{email:t.email,country:W},userPaymentSource:r,afterPaymentActions:tu,color:"cyan",onPaymentProcessing:tc,afterPaymentProcessing:tp,showDisclaimer:!0,payButtonRef:e,payButtonClicked:a,disabledButton:g,setDisabledButton:b,setDisabledPlanOptions:T,checkCurrentSubscription:tm,traffic:D,downgrade:Y,isIE:eY,onPaymentErrorMessageChange:el,isBusinessTrial:ec,currency:em})},tb=()=>"ccard"===_?tf(E):"paypal"===_?(0,l.jsx)(U,{auth:t.auth,user:t,planId:n,period:i,discount:h,afterPaymentActions:tu,userPaymentSource:P&&P.paypal,color:"cyan",onPaymentProcessing:tc,afterPaymentProcessing:tp,showDisclaimer:!0,paypalButtonLabel:"pay",setExternalButtonLoading:x,payButtonClicked:E,checkCurrentSubscription:tm,hidePaypalButton:F,setDisabledPlanOptions:T,setDisabledButton:b,isMobile:I,removePaypalPaymentSource:k,traffic:D,downgrade:Y,onPaymentErrorMessageChange:el,isBusinessTrial:ec}):"local"===_?(0,l.jsx)(H,{auth:t.auth,user:t,planId:n,period:i,discount:h,afterPaymentActions:tu,onPaymentProcessing:tc,afterPaymentProcessing:tp,setDisabledButton:b,paymentMethods:eF&&eF.paymentmethods,payButtonClicked:E,traffic:D,downgrade:Y,onPaymentErrorMessageChange:el}):void 0;return(0,l.jsx)(l.Fragment,{children:t&&eh?(0,l.jsx)("div",{className:"checkout-payment-form-wrapper",children:eY?(0,l.jsx)("div",{className:"payment-container-message unsupported-card-payments-message",children:(0,l.jsx)("span",{children:eT("payments_not_supported_ie")})}):(0,l.jsx)("div",{className:"checkout-form-container payment-form",children:ev?(0,l.jsxs)(l.Fragment,{children:[tg(),(0,l.jsxs)(d.P.div,{className:"stacked-buttons-area",initial:!1,animate:{height:O.Ik&&!eq?120:"auto"},transition:e2,style:{overflow:O.Ik&&!eH?"hidden":"visible"},children:[tt?"ccard"===tt?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"stacked-form-wrap stacked-form-wrap--locked",children:tf(E)}),(0,l.jsx)("div",{className:"stacked-cta",children:ey()})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"stacked-form-wrap stacked-form-wrap--locked",children:eZ(!1)}),(0,l.jsx)("div",{className:"stacked-cta",children:ey()})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:`stacked-row stacked-collapse ${ew||!eC?"stacked-collapse--collapsed":""}`,children:(0,l.jsx)("div",{className:"stacked-collapse-inner",children:eC?(0,l.jsxs)("div",{className:"wallet-pay-btn-wrapper wallet-pay-btn-wrapper--visible",children:[eE.show&&(0,l.jsx)(u.A,{trigger:eE.show,type:"slide-up",timeout:250,disableInitialAnimation:!1,children:(0,l.jsx)("div",{className:"wallet-pay-error-wrapper",children:(0,l.jsx)("div",{className:"wallet-pay-error-msg",children:eE.message})})}),(0,l.jsxs)("div",{className:"wallet-pay-button-container",children:[(0,l.jsx)("div",{id:"wallet-pay-button"}),(eS||eC&&!ek)&&(0,l.jsx)("div",{className:"wallet-pay-loading-overlay",children:(0,l.jsx)("div",{className:"stacked-buttons-spinner stacked-buttons-spinner--sm stacked-buttons-spinner--white"})})]})]}):null})}),tr?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.P.div,{className:"stacked-form-wrap",initial:!1,animate:{height:"paypal"===ew?"auto":0,opacity:+("paypal"===ew),marginBottom:24*("paypal"===ew)},transition:e2,style:{overflow:"hidden"},children:eZ(!1)}),(0,l.jsx)("div",{className:`stacked-cta stacked-collapse ${e5("paypal")?"stacked-collapse--collapsed":""}`,children:(0,l.jsx)("div",{className:"stacked-collapse-inner",children:e1("paypal",J)})})]}):(0,l.jsx)("div",{className:`stacked-row stacked-collapse ${ew||tn?"stacked-collapse--collapsed":""}`,children:(0,l.jsx)("div",{className:"stacked-collapse-inner",children:P&&P.paypal?(0,l.jsxs)("button",{type:"button",className:"payment-method-button payment-method-button--card",onClick:()=>{A(!0)},"data-testid":"checkout_choose_paypal","aria-label":e7.paypal,disabled:eJ,children:[(0,l.jsx)("span",{className:"payment-method-button-label",children:e7.paypal}),(0,l.jsx)("span",{className:"payment-method-button-icon",children:(0,l.jsx)(J,{})}),eJ&&(0,l.jsx)("span",{className:"payment-method-pay-loading",children:(0,l.jsx)("span",{className:"stacked-buttons-spinner stacked-buttons-spinner--sm stacked-buttons-spinner--white"})})]}):(0,l.jsxs)("div",{className:`payment-method-paypal-slot ${tn&&!tt?"payment-method-paypal-slot--hidden":""} ${eJ?"payment-method-paypal-slot--loading":""}
1`,children:[eA.show&&"ccard"!==ew&&"local"!==ew&&(0,l.jsx)(u.A,{trigger:eA.show,type:"slide-up",timeout:250,disableInitialAnimation:!1,children:(0,l.jsx)("div",{className:"paypal-pay-error-wrapper",children:(0,l.jsx)("div",{className:"paypal-pay-error-msg",children:eA.message})})}),er,eJ&&(0,l.jsx)("div",{className:"payment-method-pay-loading",children:(0,l.jsx)("div",{className:"stacked-buttons-spinner stacked-buttons-spinner--sm stacked-buttons-spinner--white"})})]})})}),!eD&&j&&(0,l.jsx)(d.P.div,{className:"stacked-form-wrap",initial:!1,animate:{height:"ccard"===ew?"auto":0,opacity:+("ccard"===ew),marginBottom:24*("ccard"===ew)},transition:e2,style:{overflow:"hidden"},children:tf("ccard"===ew&&E)}),(0,l.jsx)("div",{className:`stacked-cta stacked-collapse ${e5("ccard")?"stacked-collapse--collapsed":""}`,children:(0,l.jsx)("div",{className:"stacked-collapse-inner",children:e1("ccard",ea)})}),e3&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.P.div,{className:"stacked-form-wrap",initial:!1,animate:{height:"local"===ew?"auto":0,opacity:+("local"===ew),marginBottom:24*("local"===ew)},transition:e2,style:{overflow:"hidden"},children:"local"===ew?tb():null}),(0,l.jsx)("div",{className:`stacked-cta stacked-collapse ${e5("local")?"stacked-collapse--collapsed":""}`,children:(0,l.jsx)("div",{className:"stacked-collapse-inner",children:e1("local",et)})})]}),!tr&&eZ(!0)]}),(0,l.jsx)(c.N,{children:(O.Ik&&!eH||e0)&&(0,l.jsxs)(d.P.div,{className:"stacked-buttons-loading",initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:[(0,l.jsx)("div",{className:"stacked-buttons-spinner"}),(0,l.jsx)("div",{className:"stacked-buttons-loading-text",children:e0?eT("processing_payment","Processing your paymentâ¦"):eT("preparing_payment","Setting up secure paymentâ¦")})]},"buttons-loader")})]})]}):(0,l.jsxs)(l.Fragment,{children:[eI.length>1?I&&eg?(0,l.jsx)(v,{options:eI.map(({tabId:e,TabIcon:t,tooltip:a,tabTitle:r,optionName:s,testId:n,clickAction:i,disabled:l})=>({optionId:e,OptionIcon:t,tooltip:a,optionName:s,testId:n,clickAction:i,disabled:l})),selectedOption:_}):(0,l.jsx)(f,{color:"cyan",tabs:eI,activeTab:_}):null,tg(),(0,l.jsx)(u.A,{trigger:_,type:"fade",timeout:300,disableInitialAnimation:!1,children:tb()})]})})}):null})},J=e=>{let{disabled:t,tabIconSize:a}=e;return(0,l.jsx)("div",{className:`payment-container-paypal-icon ${t?"payment-container-tab-icon--disabled":""} ${a?`payment-container-tab-icon--${a}`:""}`})},ee=({disabled:e,tabIconSize:t})=>(0,l.jsx)("div",{className:`payment-container-cc-icon ${e?"payment-container-tab-icon--disabled":""} ${t?`payment-container-tab-icon--${t}`:""}`}),et=({disabled:e,tabIconSize:t})=>(0,l.jsx)("div",{className:`payment-container-local-icon ${e?"payment-container-tab-icon--disabled":""} ${t?`payment-container-tab-icon--${t}`:""}`}),ea=()=>(0,l.jsx)(G,{className:"payment-method-card-icon"}),er=(0,l.jsx)("div",{id:"paypal-button"})},61414:(e,t,a)=>{"use strict";a.d(t,{default:()=>h});var r=a(95155),s=a(33307),n=a(81322),i=a(87694),l=a(12035),o=a(2356),c=a(99967),d=a(12115),u=a(20023),p=a(93344),m=a(32356);let h=({accounts:e,user:t})=>{let{t:a}=(0,n.useT)(),h=(0,d.useRef)(!0),g=(0,p.m)("SellersPanelSection"),{stopPageLoading:f,startPageLoading:b}=(0,u.v)(),x=(0,c.useDispatch)();(0,d.useEffect)(()=>{o.A.setDispatch(x)},[x]),(0,d.useEffect)(()=>{h.current?g?.():((0,s.PA)(".sellers-panel-table tbody tr:last-child",100,500),f()),h.current=!1},[e]);let _=()=>{o.A.open("SellersCreateAccountModal",{user:t,onSuccess:()=>{b(),(0,m.$)(["sellers-accounts"])}})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"section header-section smaller-padding-bottom",children:(0,r.jsxs)("div",{className:"align-container",children:[(0,r.jsx)("div",{className:"sellers-panel-cta-btn-wrapper",children:(0,r.jsx)(l.default,{ctaButtons:[{link:"#",text:{t_text:"Create account",t_default:"Create account"},onClick:_}]})}),(0,r.jsx)("div",{className:"table-wrapper",children:(0,r.jsxs)("table",{className:"sellers-panel-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"#"}),(0,r.jsx)("th",{children:a("Company")}),(0,r.jsx)("th",{children:a("E-mail")}),(0,r.jsx)("th",{children:a("Members")}),(0,r.jsx)("th",{children:a("Created")}),(0,r.jsx)("th",{children:a("Next Billing")})]})}),(0,r.jsx)("tbody",{children:e.map((e,t)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{"data-label":"#",children:t+1}),(0,r.jsx)("td",{"data-label":a("Company"),children:e.company_name}),(0,r.jsx)("td",{"data-label":a("E-mail"),children:e?.owner.email}),(0,r.jsxs)("td",{"data-label":a("Members"),children:[e.members,"/",e.maxmembers]}
1),(0,r.jsx)("td",{"data-label":a("Created"),children:(0,s.Wg)(e.ctime,!0," "," ",a)}),(0,r.jsx)("td",{"data-label":a("Next Billing"),children:(0,s.Wg)(e.billeduntil,!0," "," ",a)})]},e.id||t))})]})})]})}),(0,r.jsx)(i.default,{title:"",ctaButtons:[{link:"#",text:{t_text:"Create account",t_default:"Create account"},onClick:_}],sectionClassName:"smaller-padding-top"})]})}},62683:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(95155);a(12115);var s=a(90929),n=a(26550);let i=({title:e,subtitle:t,color:a="cyan",disabled:i=!1,className:l="",theme:o="light",discountPeriod:c,label:d,subtitlePosition:u,plansType:p="storage",plansVersion:m="1.0.0"})=>{let h=`${(0,n.X)("plans-header-wrapper",p,m)} ${l}`,g=`${(0,n.X)("plans-header-title",p,m)} box-title${i?" plans-header-title--disabled":""}${"dark"===o?" theme-dark":""}`,f=`${(0,n.X)("plans-header-subtitle",p,m)} box-header-subtitle${i?" plans-header-subtitle--disabled":""}${"dark"===o?" theme-dark":""}`,b=a&&s.COLORS[a]?{"--label-color":s.COLORS[a].mainColor}:{},x=`plans-header-label plan-label${i?" plans-header-label--disabled":""}${"dark"===o?" theme-dark":""}${a?" plans-header-label--color":""}`;return(0,r.jsxs)("div",{className:h,children:["top"===u&&t?(0,r.jsx)("div",{className:f,children:t.replace("%limited_discount_period%",30*c)}):null,(0,r.jsxs)("h2",{className:g,children:[d?(0,r.jsx)("div",{className:x,style:b,children:d}):null,e]}),"bottom"===u&&t?(0,r.jsx)("div",{className:f,children:t.replace("%limited_discount_period%",30*c)}):null]})}},64900:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});var r,s=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let i=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:26,height:26,fill:"none"},e),r||(r=s.createElement("path",{id:"check-stamp-icon_svg__Subtract",fill:"#63BF00",fillRule:"evenodd",d:"M13 26a2.78 2.78 0 0 1-1.976-.818L9.67 23.828a2.8 2.8 0 0 0-1.974-.818H5.782a2.8 2.8 0 0 1-2.794-2.794V18.3a2.8 2.8 0 0 0-.818-1.974L.816 14.972A2.78 2.78 0 0 1 0 13a2.78 2.78 0 0 1 .816-1.975L2.17 9.671a2.8 2.8 0 0 0 .818-1.974V5.783a2.8 2.8 0 0 1 2.794-2.794h1.914a2.8 2.8 0 0 0 1.974-.818L11.024.817A2.77 2.77 0 0 1 13 0a2.77 2.77 0 0 1 1.975.818l1.354 1.354a2.8 2.8 0 0 0 1.974.818h1.914a2.8 2.8 0 0 1 2.794 2.794V7.7c.002.74.296 1.45.817 1.974l1.354 1.354A2.78 2.78 0 0 1 26 13a2.78 2.78 0 0 1-.816 1.975l-1.354 1.354a2.8 2.8 0 0 0-.817 1.974v1.914a2.8 2.8 0 0 1-2.794 2.794h-1.914c-.74.002-1.45.296-1.974.818l-1.354 1.354A2.77 2.77 0 0 1 13 26m4.407-16.792-6.072 6.082-2.074-2.082A.72.72 0 0 0 8.735 13a.71.71 0 0 0-.527.207.72.72 0 0 0-.207.528q0 .32.207.527l2.495 2.484q.27.27.633.271.36 0 .632-.271l6.495-6.484a.72.72 0 0 0 .207-.528.71.71 0 0 0-.207-.527.72.72 0 0 0-.528-.207.71.71 0 0 0-.527.207",clipRule:"evenodd"})))}},65017:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});var r=a(20023),s=a(93344),n=a(12115);let i=({children:e,sectionName:t=null})=>{let a=(0,s.m)(t),{stopPageLoading:i}=(0,r.v)();return(0,n.useLayoutEffect)(()=>{a?a():i()},[]),e}},65897:(e,t,a)=>{"use strict";a.r(t),a.d(t,{BreadcrumbSection:()=>l,default:()=>o});var r=a(95155),s=a(67889),n=a.n(s),i=a(81322);let l=({linkHref:e,linkText:t,sectionClassName:a=""})=>{let{t:s}=(0,i.useT)();return(0,r.jsx)("nav",{className:`breadcrumb-section ${a}`,"aria-label":"Breadcrumb",children:(0,r.jsx)("div",{className:"breadcrumb-container",children:(0,r.jsxs)(n(),{href:e,className:"breadcrumb-link","aria-label":`Back to ${s(t)}`,children:[(0,r.jsx)("span",{"aria-hidden":"true",children:"â"})," ",s(t)]})})})},o=l},67143:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155),s=a(12115),n=a(81322),i=a(26550);let l=({plansType:e="storage",plansVersion:t="1.0.0",topHeadlineBackground:a,user:l,headline:o={t_text:"toggle2_pricingpage_storage",t_default:"Choose Your Plan"},headlineSecond:c=null,subtitle:d={t_text:"PricingPage_SocialProof",t_default:"For over a decade, more than 20 million people have chosen us as their trusted cloud storage provider."},headlineForUserWithPlan:u={t_text:"upgrade_your_experience",t_default:"Upgrade your pCloud experience"}
1,headlineSecondForUserWithPlan:p=null,subtitleForUserWithPlan:m=null})=>{let{t:h}=(0,n.useT)(),{headlineText:g,headlineSecondText:f,subtitleText:b}=(0,s.useMemo)(()=>{let e=o,t=c;if(l){let{plan:a}=l;a&&(u||""===u)&&(e=u),a&&(p||""===p)&&(t=p)}return{headlineText:e,headlineSecondText:t,subtitleText:d}},[l,o,d,u,m]),x=`${(0,i.X)("plans-page-title",e,t)}${a?" plans-page-title--background":""}`;return(0,r.jsx)("div",{className:x,style:a?{"--custom-background":a}:{},children:(0,r.jsxs)("div",{className:"headline-wrapper",children:[g&&""!==g?(0,r.jsx)("div",{className:"title titleh1",children:h(g)}):null,f&&""!==f?(0,r.jsx)("div",{className:"title title-second",children:h(f)}):null,b&&""!==b?(0,r.jsx)("div",{className:"subtitle subtitle--h3",children:h(b)}):null]})})}},67181:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>_});var r=a(95155);a(12115);var s=a(41624),n=a(4474);let i={t_text:"home_swiss_privacy_section_title_1",t_default:"European excellence."},l={t_text:"home_swiss_privacy_section_title_2",t_default:"Swiss privacy."},o={t_text:"home_swiss_privacy_section_subtitle",t_default:"We're here to provide a reliable, secure cloud storage that puts your privacy first. As a Swiss-based cloud solution we follow the world's strictest data privacy standards. And our rock-solid encryption ensures your files are always secure.<br /> No compromises. No tracking. No third-party access."},c={src:n.w4+"images/animated-home/swiss-privacy/[email protected]",width:1084,height:1084},d="left",u="between",p=!0,m="left",h="center",g="left",f="center",b="left",x=!1,_=({title:e=i,titleBackgroundImage:t=null,titleHighlight:a=l,titleHighlightBackgroun
1dImage:n=null,secondTitle:_=null,secondTitleBackgroundImage:v=null,subtitle:y=o,description:w=null,descriptionSecond:j=null,subDescriptionSecond:N=null,ctaLink:P=null,ctaButtons:C=null,loggedUserCTAButtons:k=null,ctaButtonsContainerMinWidth:S=null,ctaButtonsTemplate:E=null,showDownloadAppsButton:A=!1,downloadAppsButtonsAlign:T="center",downloadAppsButtonsAlignMobile:I="center",downloadAppsButtonsClassName:M="",forceClientOS:L=null,image:O=c,image_2x:D=null,mobileImage:R=null,mobileImage_2x:F=null,titleIconSrc:$=null,titleIconSrc_2x:B=null,imagePosition:U=d,mobileImagePosition:q=u,animatedOnScroll:z=p,titleAlign:H=m,titleAlignMobile:W=h,subtitleAlign:V=g,subtitleAlignMobile:Y=f,titleIconPosition:G=b,imagePadding:X=null,imagePaddingMobile:K=null,imageMaxWidth:Q=null,imageMaxWidthMobile:Z=null,imageFullWidthMobile:J=x,imageTransformOffset:ee=null,imageZIndex:et=null,titlePadding:ea=null,titlePaddingMobile:er=null,subtitlePadding:es=null,subtitlePaddingMobile:en=null,subtitleWrapperGap:ei=null,subtitleWrapperGapMobile:el=null,imageBorderRadius:eo=null,imageBorderRadiusMobile:ec=null,sectionBackground:ed=null,sectionBackgroundMobile:eu=null,sectionMinHeight:ep=null,sectionMinHeightMobile:em=null,sectionContentBackground:eh=null,sectionContentBackgroundMobile:eg=null,sectionBorderRadius:ef=null,sectionPadding:eb=null,sectionPaddingMobile:ex=null,sectionContentWidth:e_=null,contentMaxWidth:ev=null,contentMaxWidthMobile:ey=null,gridColumnGap:ew=null,gridRowGap:ej=null,gridRowGapMobile:eN=null,titleGap:eP=null,subtitleGap:eC=null,titleFontSize:ek=null,titleFontSizeMobile:eS=null,secondTitleFontSize:eE=null,secondTitleFontSizeMobile:eA=null,subtitleFontSize:eT=null,subtitleFontSizeMobile:eI=null,subtitleColor:eM=null,titleLineHeight:eL=null,subtitleLineHeight:eO=null,subtitleLineHeightMobile:eD=null,descriptionFontSize:eR=null,descriptionFontSizeMobile:eF=null,descriptionColor:e$=null,descriptionLineHeight:eB=null,descriptionLineHeightMobile:eU=null,descriptionFontWeight:eq=null,bulletBackground:ez=null,bulletStyle:eH="dot",bulletGap:eW=null,bulletRowGap:eV=null,bulletMinWidth:eY=null,subtitleMaxWidth:eG=null,subtitleMaxWidthMobile:eX=null,sectionClassName:eK=""})=>{let eQ={...ed&&{"--section-background":ed},...eu&&{"--section-background-mobile":eu},...ep&&{"--section-min-height":ep},...em&&{"--section-min-height-mobile":em}},eZ={...eh&&{background:eh},...ef&&{borderRadius:ef},...eb&&{padding:eb},...eg&&{"--mobile-background":eg},...ex&&{"--mobile-padding":ex}
1,...e_&&{"--section-content-width":e_}},eJ=`section ${eK}`,e0=`align-container ${eg?"has-mobile-background":""} ${ex?"has-mobile-padding":""}`;return(0,r.jsx)("section",{className:eJ,style:eQ,children:(0,r.jsx)("div",{className:e0,style:eZ,children:(0,r.jsx)(s.A,{title:e,titleBackgroundImage:t,titleHighlight:a,titleHighlightBackgroundImage:n,secondTitle:_,secondTitleBackgroundImage:v,subtitle:y,description:w,descriptionSecond:j,subDescriptionSecond:N,ctaLink:P,ctaButtons:C,loggedUserCTAButtons:k,ctaButtonsContainerMinWidth:S,ctaButtonsTemplate:E,showDownloadAppsButton:A,downloadAppsButtonsAlign:T,downloadAppsButtonsAlignMobile:I,downloadAppsButtonsClassName:M,forceClientOS:L,titleIconSrc:$,titleIconSrc_2x:B,titleAlign:H,titleAlignMobile:W,subtitleAlign:V,subtitleAlignMobile:Y,titleIconPosition:G,titleFontSize:ek,titleFontSizeMobile:eS,secondTitleFontSize:eE,secondTitleFontSizeMobile:eA,subtitleFontSize:eT,subtitleFontSizeMobile:eI,subtitleColor:eM,titleLineHeight:eL,subtitleLineHeight:eO,subtitleLineHeightMobile:eD,descriptionFontSize:eR,descriptionFontSizeMobile:eF,descriptionColor:e$,descriptionLineHeight:eB,descriptionLineHeightMobile:eU,descriptionFontWeight:eq,bulletBackground:ez,bulletStyle:eH,bulletGap:eW,bulletRowGap:eV,bulletMinWidth:eY,imagePosition:U,mobileImagePosition:q,animatedOnScroll:z,image:O,image_2x:D,mobileImage:R,mobileImage_2x:F,gridColumnGap:ew,gridRowGap:ej,gridRowGapMobile:eN,titleGap:eP,subtitleGap:eC,animationSpeed:.25,imageBorderRadius:eo,titlePadding:ea,titlePaddingMobile:er,subtitlePadding:es,subtitlePaddingMobile:en,subtitleWrapperGap:ei,subtitleWrapperGapMobile:el,imagePadding:X,imagePaddingMobile:K,imageMaxWidth:Q,imageMaxWidthMobile:Z,imageFullWidthMobile:J,imageBorderRadiusMobile:ec,imageTransformOffset:ee,imageZIndex:et,contentMaxWidth:ev,contentMaxWidthMobile:ey,subtitleMaxWidth:eG,subtitleMaxWidthMobile:eX})})})}},67286:(e,t,a)=>{"use strict";a.d(t,{Ik:()=>r,Se:()=>s,fu:()=>n});let r=!1,s={bg:"bg_BG",de:"de_DE",en:"en_US",es:"es_ES",fr:"fr_FR",it:"it_IT",ja:"ja_JP",nl:"nl_NL",pt:"pt_PT",ru:"ru_RU",tr:"tr_TR",zh:"zh_CN"},n={base:{color:"#000",fontWeight:400,fontFamily:'"Inter", system-ui, -apple-system, Roboto, Consolas, Menlo, monospace',fontSize:"17px",fontSmoothing:"auto","::placeholder":{fontSize:"17px",fontWeight:400,color:"#838689",letterSpacing:"-0.5px"},":-webkit-autofill":{color:"#838689"}},invalid:{color:"#DC362E","::placeholder":{fontSize:"17px",fontWeight:400,color:"#838689",letterSpacing:"-0.5px"}},empty:{color:"#838689","::placeholder":{fontSize:"17px",fontWeight:400,color:"#838689",letterSpacing:"-0.5px"}},valid:{color:"#000","::placeholder":{fontSize:"17px",fontWeight:400,color:"#838689",letterSpacing:"-0.5px"}}}},68755:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>w});var r,s,n=a(95155),i=a(12115),l=a(60082),o=a(5021),c=a(81322),d=a(96420),u=a(99856),p=a(5998),m=a(91889);a(49482),a(73644);var h=a(74242),g=a(20512),f=a(48056),b=a(16607),x=a(12035);function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let v={windows:a(84682).A,"windows-xp":function(e){return i.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:22,height:20,fill:"none"},e),r||(r=i.createElement("path",{fill:"#1C1D1F",d:"M22 2.628c-4.265 1.731-6.315.758-8.162-.463L11.734 9.33c1.846 1.229 4.075 2.239 8.165.44zM8.139 17.034C6.287 15.81 4.274 14.803 0 16.538L2.093 9.36c4.274-1.736 6.328-.754 8.178.478z"})),s||(s=i.createElement("path",{fill:"#1C1D1F",d:"M10.627 8.541C9.512 7.804 8.313 7.116 6.61 7.103c-1.124-.009-2.461.305-4.159.994L4.555.937c4.272-1.735 6.324-.753 8.172.477zM11.38 10.528c1.85 1.223 3.903 2.197 8.172.464l-2.104 7.137c-4.269 1.734-6.32.752-8.167-.478z"})))}};var y=a(4474);let w=({title:e,releaseNotes:t=[],downloadButtonType:a="drive",os:r=null,linkLabel:s,secondLinkLabel:_,sectionClassName:w=""})=>{let{t:j}=(0,c.useT)(),N=(0,l.useRouter)(),P=(0,o.p)(),C=(0,i.useRef)(null),[k,S]=(0,d.E)({transition:!0}),E=(0,u.k)(k.state,S),A=Array.isArray(e),T=A?e:null,I=A?T.find(e=>P.endsWith(e.link)):null,M=A?null:e;return(0,i.useEffect)(()=>{S(!1)},[P,S]),(0,n.jsx)("div",{className:`section full-width ${w}`,children:(0,n.jsxs)("div",{className:"align-container",children:[(0,n.jsxs)("div",{className:"release-notes-header",children:[(0,n.jsxs)("div",{className:"release-notes-header-text",children:[(0,n.jsx)("h1",{className:"release-notes-title titleh3 align-left",children:j({t_text:"Release Notes",t_default:"Release Notes"})}),M&&(0,n.jsx)("h2",{className:"release-notes-subtitle",children:j(M)}),A&&(0,n.jsxs)("div",{className:"release-notes-subtitle-wrapper",children:[(0,n.jsxs)("button",{ref:C,className:"release-notes-subtitle-button",...E,"aria-expanded":k.state,children:[(0,n.jsx)("span",{className:"release-notes-subtitle-text",children:I&&j(I.text)}),(0,n.jsx)(b.A,{className:`release-notes-subtitle-arrow ${k.state||"closed"}`})]}),(0,n.jsx)(p.k,{...k,anchorRef:C,onClose:()=>S(!1),direction:"bottom",align:"start",position:"anchor",viewScroll:"auto",gap:8,shift:-24,menuClassName:"release-notes-controlled-menu",children:T.map((e,t)=>{let a=e.icon&&v[e.icon]?v[e.icon]:null;return(0,n.jsx)(m.D,{className:`release-notes-menu-item ${I===e?"active":""}`,onClick:()=>{S(!1),N.push(e.link)},children:(0,n.jsxs)("div",{className:"release-notes-menu-item-content",children:[a&&(0,n.jsx)(a,{className:"release-notes-subtitle-option-icon"}),(0,n.jsx)("span",{className:"release-notes-subtitle-option-text",children:j(e.text)}),I===e&&(0,n.jsx)(f.A,{className:"release-notes-subtitle-check"})]})},t)})})]})]}),"drive"===a||"apps"===a||"web"===a?(0,n.jsxs)("div",{className:"release-notes-download-button",children:["drive"===a?(0,n.jsx)(h.A,{forceClientOS:r,buttonsTemplate:"v2",className:"release-notes-drive-button",minWidth:"192px",minWidthMobile:"160px"}):null,"apps"===a?(0,n.jsx)(g.A,{device:r,align:"right",className:"release-notes-apps-button",buttonWidth:"162px",buttonWidthMobile:"128px"}):null,"web"===a?(0,n.jsx)(x.default,{ctaButtons:[{link:y.v0,text:{t_text:"go_to_my_account",t_default:"GO TO MY ACCOUNT"},minWidth:"96px",target:"_blank",className:"rounded-button-v2"}
1].filter(Boolean)}):null]}):null]}),(0,n.jsx)("div",{className:"release-notes-list",children:t.map((e,t)=>{let r,i,l,o;return(0,n.jsxs)("div",{className:"release-note-item",children:[(0,n.jsxs)("div",{className:"release-note-content",children:[(0,n.jsxs)("div",{className:"release-note-header",children:[(0,n.jsx)("span",{className:"release-note-version",children:e.version_name}),(0,n.jsxs)("span",{className:"release-note-date",children:["(",(i=String((r=new Date(1e3*e.time)).getDate()).padStart(2,"0"),l=String(r.getMonth()+1).padStart(2,"0"),o=r.getFullYear(),`${i}/${l}/${o}`),")"]})]}),(0,n.jsx)("div",{className:"release-note-description",dangerouslySetInnerHTML:{__html:e.desc.replace(/\n/g,"<br />")}})]}),(e.link||e.secondlink)&&"web"!==a&&(0,n.jsx)(x.default,{ctaButtons:[e.secondlink&&{link:e.secondlink,text:_||{t_text:"Download",t_default:"Download"},minWidth:"96px",target:"_blank",className:"rounded-secondary-button-v2 small-on-desktop no-uppercase"},e.link&&{link:e.link,text:s||{t_text:"Download",t_default:"Download"},minWidth:"96px",target:"_blank",className:"rounded-secondary-button-v2 small-on-desktop no-uppercase"}].filter(Boolean)})]},e.id)})})]})})}},70419:()=>{},72238:(e,t,a)=>{"use strict";a.d(t,{default:()=>P});var r=a(95155),s=a(12115),n=a(99967),i=a(74703),l=a(76800),o=a(83371),c=a(41624),d=a(81322),u=a(37500),p=a(90573),m=a(60333),h=a(4007),g=a(41252),f=a(33307),b=a(29239),x=a(91152),_=a(62188),v=a(13977),y=a(38161),w=a(2356),j=a(92369);let N=(0,o.default)(()=>Promise.all([a.e(5451),a.e(8298),a.e(819),a.e(9426),a.e(4864),a.e(1211)]).then(a.bind(a,71211)),{loadableGenerated:{webpack:()=>[71211]},ssr:!1}),P=({user:e,upsellData:t=null,sectionBackground:a=null,sectionBackgroundMobile:o=null,sectionBorderRadius:P=null,sectionPadding:C=null,sectionPaddingMobile:k=null,sectionClassName:S="",...E})=>{let{t:A}=(0,d.useT)(),{ipData:T}=(0,u.Y)(),I=(0,s.useMemo)(()=>(0,g.getUnderPriceTexts)(),[]),M=(0,n.useDispatch)(),[L,O]=(0,s.useState)(!1),D=!!t?.isWalletPay,[R,F]=(0,s.use
1State)(D),$=(0,s.useRef)({referringChannel:"Affiliate",pageType:b.CJ_PAGE_TYPE_MAP["payment-success"]?b.CJ_PAGE_TYPE_MAP["payment-success"]:"productDetail",discount:0}),B=(0,s.useRef)(null);(0,s.useEffect)(()=>{w.A.setDispatch(M)},[M]),(0,s.useEffect)(()=>{B.current=(0,_.get6HData)(),B.current&&v.default&&(0,_.send6HData)(v.default,B.current),U(),q(),(0,b.sendCJPageVisitTag)($.current)},[]);let U=()=>{if("u">typeof dataLayer){let e=[{item_id:t.planId,item_name:g.planNames[t.planId]+" "+g.gaPeriods[t.period],affiliation:(0,f.Hs)("ref")||"0",coupon:t.discount||"",index:0,item_brand:"pCloud",item_category:g.gaPeriods[t.period],item_list_id:"upsell_products",item_variant:g.plansQuota[t.planId]||"",price:t.price,quantity:1}];dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_item",ecommerce:{currency:t.currency,value:t.price,items:e}})}},q=()=>{if(window.cj||(window.cj={}),e){let t=(0,f.Hs)("locationid")||"0",a=x.sha256?(0,x.sha256)(e.email):"";$.current.emailHash=a,$.current.userId=t+"_"+e.userid}let a=b.CJ_PLANS_PREFIX[t.planId]+"_"+t.period[0].toUpperCase(),r=t.discount&&t.oldPrice-t.price||0;$.current.discount=r||0,$.current.items=[{itemId:a,quantity:1,unitPrice:t.price,discount:r}],$.current.cartSubtotal=t.price,$.current.currency=t.currency||"USD"},z=(e,a)=>{"function"==typeof gaAll&&gaAll("event","Payment Complete","click");let r={revenue:t.price,currency:t.currency||"USD",period:t.period,products:t.planId};t.discount&&(r.discount=t.discount),(0,y.sendAnalyticsEvent)({category:"upsell",defaultlabel:"www-site",action:"purchase"},r),B.current&&(0,_.send6HData)(v.default,B.current);if("u">typeof dataLayer){let a=[{item_id:t.planId,item_name:g.planNames[t.planId]+" "+g.gaPeriods[t.period],affiliation:(0,f.Hs)("ref")||"0",coupon:t.discount||"",item_brand:"pCloud",item_category:g.gaPeriods[t.period],item_variant:g.plansQuota[t.planId]||"",price:t.price,currency:t.currency||"USD",quantity:1}];dataLayer.push({ecommerce:null}),dataLayer.push({event:"purchase",ecommerce:{currency:t.currency,value:t.price,transaction_id:e||"",payment_type:t.provider,items:a}})}"u">typeof ttq&&ttq.track&&"function"==typeof ttq.track&&ttq.track("CompletePayment",{content_id:t.planId,content_type:"product",content_name:t.ttqProductName+" "+t.period,quantity:1,price:t.price,value:t.price,currency:t.currency||"USD"}),"function"==typeof fbq&&fbq("track","lifetime"===t.period?"Purchase":"RecurringPurchase",{value:t.price,currency:t.currency||"USD"},a?{eventID:a}:{}),"function"==typeof pintrk&&pintrk("track","checkout",{value:t.price,currency:t.currency||"USD"}),"function"==typeof lintrk&&lintrk("track",{conversion_id:0xa37121}),$.current.orderId=e,delete $.current.cartSubtotal,(0,b.sendCJConversionTag)($)},H={...a&&{background:a},...P&&{borderRadius:P},...C&&{padding:C},...o&&{"--mobile-background":o},...k&&{"--mobile-padding":k}},W=`upsell-wrapper align-container ${o?"has-mobile-background":""} ${k?"has-mobile-padding":""}`,V=(0,s.useCallback)(()=>{document.querySelectorAll(".upsell-wallet-pay-loading-overlay").forEach(e=>{e.style.display="none"})},[]),Y=(0,s.useRef)(null);Y.current={price:t.price,oldPrice:t.oldPrice,currency:m.currencyMap[t.currency],periodText:I[t.period],isWalletPayCandidate:D};let[G]=(0,s.useState)(()=>()=>{let e=Y.current;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"upsell-price-wrapper",children:(0,r.jsx)(p.A,{price:e.price,oldPrice:e.oldPrice,currency:e.currency,periodText:e.periodText,periodTextAlign:"center"})}),e.isWalletPayCandidate&&(0,r.jsxs)("div",{className:"upsell-wallet-pay-btn-container",children:[(0,r.jsx)("div",{id:"upsell-wallet-pay-button"}),(0,r.jsx)("div",{className:"upsell-wallet-pay-loading-overlay",id:"upsell-wallet-pay-loading",children:(0,r.jsx)("div",{className:"upsell-spin-container",children:(0,r.jsx)(j.A,{})})})]})]})}),X=[{text:t.upsellButtonText,className:`rounded-button-v2 ${t.planId===h.CRYPTO_PLAN_ID?"encryption":t.planId===h.PREMIUM_PLAN_ID?"premium":""} ${R?"upsell-cta-hidden":""}`,minWidth:"200px",onClick:a=>{a?.preventDefault(),w.A.open("UpsellPaymentModal",{user:e,upsellData:t,ipData:T,onPaymentSuccess:({transactionID:e,metapixeleventid:t})=>{z(e,t),O(!0)}})}}];return(0,r.jsx)(i.N,{mode:"wait",children:!L&&(0,r.jsx)(l.P.section,{className:`section ${S}`,initial:{opacity:1,height:"auto"},exit:{opacity:0,height:0,marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,transition:{duration:.5,ease:"easeInOut"}},children:(0,r.jsxs)("div",{className:W,style:H,children:[(0,r.jsx)(c.A,{...E,imageCTAContent:G,imageCTAButtons:X,imageCTAButtonsAlign:"left-bottom",imageCTAButtonsAlignMobile:"bottom-center"}),t.disclaimerText&&!R?(0,r.jsx)("div",{className:"upsell-disclaimer-text",children:A(t.disclaimerText)}):null,D&&(0,r.jsx)(N,{user:e,upsellData:t,ipData:T,sendTrackingDataAfterPurchase:z,onHideCta:()=>F(!0),onShowCta:()=>{F(!1),V()},onWalletPayReady:V,onPaymentSuccess:()=>O(!0)})]})})})}},73582:(e,t,a)=>{"use strict";a.d(t,{default:()=>D});var r=a(95155),s=a(12115),n=a(60082),i=a(38161),l=a(92198),o=a(86275),c=a(41252),d=a(4007),u=a(60333),p=a(99907),m=a(11595),h=a(90929),g=
1a(26550),f=a(81322);let b=({onPeriodChange:e,periods:t=["year","lifetime"],selectedPeriod:a="lifetime",color:n="green",backgroundColorValue:i,showBestValued:l=!0,plansType:o="storage",plansVersion:d="1.0.0"})=>{let{t:u}=(0,f.useT)(),p=(0,s.useMemo)(()=>(0,c.getPlanBoxPeriodTexts)(),[]),m=3===t.length?380:300,{periodWidth:b,offsets:x}=(0,s.useMemo)(()=>{let e=100/t.length,a=t.reduce((t,a,r)=>(t[a]=e*r,t),{});return{periodWidth:e,offsets:a}},[t]),[_,v]=(0,s.useState)(a);(0,s.useEffect)(()=>{v(a)},[a,t]);let y={"--period-background-color":i||"rgba(0, 0, 0, 0.1)","--period-width":`${m}px`},w={"--period-bar-width":`${b}%`,"--period-bar-offset":`${x[_]}%`},j=`${(0,g.X)("plans-period-wrapper",o,d)} periods-toggle`;return(0,r.jsxs)("div",{className:j,style:y,children:[(0,r.jsx)("div",{className:`${(0,g.X)("plans-period-selected-bar",o,d)}`,style:w}),t.map((i,l)=>(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("div",{onClick:t=>{i!==a&&(v(i),e(i))},className:`plans-period-item choose-period${i===a?" active":""}`,style:{"--period-item-width":`${b}%`,"--period-active-color":h.COLORS[n]?.mainColor||n||"#17bed0"},"data-testid":"choose_"+c.gaPeriods[i].toLocaleLowerCase(),children:(0,r.jsx)("span",{children:p[i]})}),l!==t.length-1?(0,r.jsx)("div",{className:"plans-period-separator period-separator"},i+"_sep"):null]},i)),-1!==t.indexOf("lifetime")&&l?(0,r.jsxs)("div",{className:"plans-period-best-value",children:[(0,r.jsx)("div",{className:"plans-period-best-value-arrow"}),(0,r.jsx)("div",{className:"plans-period-best-value-text",children:u("best_valued")})]}):null]})};var x=a(18385),_=a(33307),v=a(15232);let y=({plans:e,periods:t,user:a,currency:n,buttonAction:i,trafficUnit:l="TB",plansVersion:o=null,showTextUnderPrices:d=!0})=>{let{t:u}=(0,f.useT)(),m=(0,s.useMemo)(()=>(0,c.getUnderPriceTexts)(),[]),h=(0,s.useMemo)(()=>(0,c.getPlanBoxPeriodTexts)(),[]),[b,y]=(0,s.useState)(new Map),[w,j]=(0,s.useState)(0),[N,P]=(0,s.useState)([]),C=(0,s.useMemo)(()=>{let e=(0,_.y2)("traffic");if(e)return Number(e);if(a){let{lastsubscription:e,planparams:t}=a;if(e&&e.period&&t&&t.additionaltraffic)return Number(t.additionaltraffic)+1}return 0},[a]),k=e=>(0,p.bytesToUnit)(e,l),S=(e,t)=>e+l+"_"+t;return(0,s.useEffect)(()=>{if(0===Object.keys(e).length)return;let t=new Map,a=new Set;for(let r in e)e[r].map(e=>{if(e.canbuy){let s=k(e.traffic*e.trafficquota);a.add(s),t.set(S(s,r),e)}});let r=Array.from(a).sort((e,t)=>e>t?1:-1);j(r.findIndex((e,t)=>e>=C||t===r.length-1)),P(r),y(t)},[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"traffic-input-value-wrapper form-wrapper",style:{"--range-number-input-width":"316px","--range-number-input-width-mobile":"316px","--range-number-input-button-size":"48px","--ranger-input-font-size":"20px","--ranger-suffix-font-size":"20px"},children:(0,r.jsx)(v.A,{value:N[w],min:N[0],max:N[N.length-1],title:"",suffix:u(l),labelBelowValue:u("x_tb_range_input_label","LINK TRAFFIC"),onChange:(e,t)=>
1{let a=((e,t)=>{e=Math.round(e);let a=N[0],r=N[N.length-1],s=N[w],n=s;if(e>=a&&e<=r&&e!==s){let t=N.findIndex(t=>t>=e);-1!==t&&(n=N[t],j(t))}else e<a?(n=a,j(0)):e>r&&(n=r,j(N.length-1));return n})(e,0);t&&t(a)},onUp:()=>j(e=>N.length>e+1?e+1:e),onDown:()=>j(e=>e>0?e-1:e),autoFocus:!1,template:"v2"})}),(0,r.jsx)("div",{className:"plans-relative-container",children:(0,r.jsx)("div",{className:(0,g.X)("plans-boxes-wrapper","traffic",o),children:0===b.size||0===t.length?null:t.map(e=>{let t=S(N[w],e);if(!b.has(t))return null;let a=b.get(t);return(0,r.jsx)(x.A,{planTexts:{title:{default:h[e]},subtitle:u("x_TB_link_traffic","%amount% LINK TRAFFIC").replace("%amount%",k(a.traffic*a.trafficquota)+" "+l),buttonText:{default:u("traffic_plan_cta_btn_label","GET NOW")}},plansType:"traffic",plansVersion:o,billingPeriod:e,price:a.pricecents/100,currency:n,buttonAction:()=>i(a,e),oldPrice:a.pricecents!=a.originalpricecents?a.originalpricecents/100:0,periodText:d?m[e]:null,borderRadius:24,maxNumberOfFeaturesToShow:0},t)})})})]})},w=({tabs:e,theme:t,activeTab:a=0,color:n="cyan",title:i,disabled:l,width:o,defaultClickAction:c,showBestValued:d=!0})=>{let{t:u}=(0,f.useT)(),[p,m]=(0,s.useState)(a),g=o||(3===e.length?380:300),{tabWidth:b,offsets:x}=(0,s.useMemo)(()=>{let t=100/e.length,a=e.reduce((e,a,r)=>(e[a.tabId]=t*r,e),{});return{tabWidth:t,offsets:a}},[e]);(0,s.useEffect)(()=>{m(a)},[e,a]);let _=h.COLORS[n]?.mainColor||h.COLORS.cyan.mainColor;return(0,r.jsxs)(s.Fragment,{children:[i?(0,r.jsx)("div",{className:"toggle-tabs-title",children:i}):null,(0,r.jsxs)("div",{className:"toggle-tabs-wrapper",style:{"--toggle-tabs-color":_,width:`${g}px`},children:[(0,r.jsx)("div",{className:"toggle-tabs-selected-bar",style:{width:`calc(${b}% - 4px)`,left:`calc(${x&&x[p]||0}% + 2px)`}}),e.map(({tabTitle:t,tabId:i,clickAction:o,tabCustomColor:d,newLabel:u},g)=>{let f=h.COLORS[d||n]?.mainColor||h.COLORS.cyan.mainColor;return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsxs)("div",{className:`toggle-tabs-tab ${i===a?"toggle-tabs-tab--active":""}`,onClick:e=>{l||i!==p&&(c?c(i,e):o&&o(i,e),m(i))},style:{"--toggle-tabs-color":f,width:`${b}%`},children:[t,u?(0,r.jsx)("span",{className:"toggle-tabs-new",style:{backgroundColor:f},children:"New"}):null]}),g!==e.length-1?(0,r.jsx)("div",{className:"toggle-tabs-separator"},i+"_sep"):null]},i)}),-1!==e.indexOf("lifetime")&&d?(0,r.jsxs)("div",{className:"toggle-tabs-best-value",children:[(0,r.jsx)("div",{className:"toggle-tabs-best-value-arrow"}),(0,r.jsx)("div",{className:"toggle-tabs-best-value-text",children:u("best_valued")})]}):null]})]})};var j=a(4474),N=a(99967),P=a(56934),C=a(94168),k=a(76985);let S=({handleButtonClick:e=()=>{}})=>
1{let[t,a]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{a(!!(0,_.GS)())},[]),(0,k.A)({cookieId:"openedExitIntentYearPlansModal",modalId:"AnnualPlanExitIntentModal",handleButtonClick:e,shouldShow:!t}),null};var E=a(30948),A=a(2356),T=a(38739),I=a(63915);let M=({plansType:e="storage",plansVersion:t="1.0.0"})=>{let{t:a}=(0,f.useT)(),s="storage_family"===e?a("family_plans_no_vat_or_fees_included","Final price. Lifetime deal. No setup or hidden fees."):a("no_vat_or_fees_included")+"!";return(0,r.jsxs)("div",{className:(0,g.X)("plans-vat-included",e,t),children:[(0,r.jsx)("div",{children:s}),"storage"===e?(0,r.jsx)("div",{className:"plans-vat-upgrade-text upgrade-text",children:(0,r.jsx)(T.default,{text:a("can_i_upgrade_storage"),converters:[I.linkConverter]})}):null]})};var L=a(90426);let O=(e,t)=>j.w4+(window.devicePixelRatio>1?t:e),D=({currency:e,plans:t,periods:a,selectedPeriod:h,preselectedOption:_,searchParams:v=null,discount:j=null,showComparePrices:k,showBestPriceByRandomGirl:T,hideDiscountPercentage:I,checkoutPageLink:D,downgrade:R=!1,periodDisclaimer:F="",buttonColor:$=null,plansType:B,plansVersion:U=null,showPlanDescriptionText:q=!1,showTextUnderPrices:z=!0,maxNumberOfFeaturesToShow:H=2,periodsMainColor:W="cyan",periodsBackgroundColor:V="#ebebeb",analytics:Y=null,switchPlansFromSamePeriodByTabs:G=!1,tabsTitle:X=null,trafficUnit:K="TB",subtitlePosition:Q,showSaveLabel:Z,hideExitIntent:J=!1,hideVatIncluded:ee=!1,heroImage:et="",heroImage_2x:ea="",hideStartFreeTrialButton:er=!0,hasPlanWithOldPrice:es=!1})=>{let{t:en}=(0,f.useT)(),ei=(0,N.useDispatch)(),el=(0,s.useMemo)(()=>(0,c.getUnderPriceTexts)(),[]),{cookies:eo,setCookie:ec}=(0,P.f)(),ed=(0,n.useRouter)(),{inFBnxfo:eu}=(0,o.z)(),ep=(0,C.u)(),em=J?null:ep?.handleExitIntent,eh=(0,N.useSelector)(({pCloudUser:e})=>e?.userinfo),eg=(0,s.useMemo)(()=>{let e=G&&_;return e&&c.productInfo[e]&&c.productInfo[e].plan_id&&!c.oldUnsupportedURLPlanNames[e]?c.mapOldAddStoragePlanIds[c.productInfo[e].plan_id]||c.productInfo[e].plan_id:null},[]),[ef,eb]=(0,s.useState)(null),[ex,e_]=(0,s.useState)(h),ev=(0,s.useRef)(null);(0,s.useEffect)(()=>(eo.discount&&v&&v.discount&&eo.discount!==v.discount&&ec("discount",v.discount),()=>{ev.current&&(ev.current.disconnect(),ev.current=null)}),[]),(0,s.useEffect)(()=>{A.A.setDispatch(ei)},[ei]),(0,s.useEffect)(()=>{(0,l.rcookie)("exitIntentDiscount")&&ec("exitIntentDiscount","",-1)},[t]),(0,s.useLayoutEffect)(()=>{if("traffic"===B||!G||!t||!ex)return;let e=null!==ef?ef:0;t[ex].forEach((t,a)=>{eg&&eg===t.productid&&(e=a)}),eb(e)},[t,ex]),(0,s.useEffect)(()=>{ex&&"u">typeof dataLayer&&t[ex].forEach(({productid:t,pricecents:a,trafficquota:r,traffic:s,validdiscountcode:n})=>{dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_item",ecommerce:{currency:u.signToCurrency[e],value:a/100,items:[{item_id:t,item_name:c.planNames[t]+" "+c.gaPeriods[ex],affiliation:(0,l.rcookie)("ref")||"0",coupon:j&&n?j:"",index:0,item_brand:c.PASS_PLANS_PER_PERIOD[ex].includes(t)?"pCloudPass":"pCloud",item_category:c.gaPeriods[ex],item_list_id:`${B}_products`,item_variant:ew({productid:t,trafficquota:r,traffic:s}),price:a/100,quantity:1}]}})})},[t,ex]);let ey=()=>{if(!ex)return;let e=document.querySelectorAll(".plan-box-header");if(e.length>1){let t=0;e.forEach(e=>{let a=e.offsetHeight;a>t&&(t=a)}),t>0&&e.forEach(e=>{e.style.minHeight=`${t}px`})}};(0,s.useEffect)(()=>{ey();let e=document.querySelector(".plans-relative-container");if(!e)return;let t=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&t.addedNodes.length>0){ey();break}});return t.observe(e,{childList:!0,subtree:!0}),()=>t.disconnect()},[]);let ew=({productid:e,trafficquota:t,traffic:a})=>"traffic"===B&&t&&a?`traffic ${t/1024/1024/1024/1024*a} tb`:c.plansQuota[e]||"",ej=e=>{"passwords"===B&&(0,i.sendPassAnalyticsEvent)({label:Y.pageTitle,category:`Plan - ${e}`,action:"Click"}),e_(e);{let t=new URLSearchParams(window.location.search);t.set("period",e);let a=`${window.location.pathname}?${t.toString()}`;window.history.replaceState(null,"",a)}},eN=(t,a)=>{let r;if(0===t.productid){if("passwords"===B)if((0,i.sendPassAnalyticsEvent)({label:Y.pageTitle,category:"Get - Free",action:"Click"}),eh)location.href="https://pass.pcloud.com/";else if((0,l.detectIsMobile)()){let e={type:"register",hideCloseButton:!1,URLFormType:v&&v["authentication-option"]};e.URLFormTypeValidated="login"===e.URLFormType||"register"===e.URLFormType?e.URLFormType:null,A.A.open("PassLoginModal",e)}else location.href="https://pass.pcloud.com/#/register";return}if("crypto"===B){let r={category:Y.category+" - buy button",action:"click",defaultlabel:Y.label}
1,s={revenue:t.pricecents/100,currency:u.signToCurrency[e],period:a,products:t.productid};eh&&eh.auth&&(r.auth=eh.auth),j&&t.validdiscountcode&&(s.discountcode=j),(0,i.sendAnalyticsEvent)(r,s)}let s=[{item_id:t.productid,item_name:c.planNames[t.productid]+" "+c.gaPeriods[a],item_brand:"passwords"===B?"pCloudPass":"pCloud",item_category:c.gaPeriods[a],item_variant:ew({productid:t.productid,trafficquota:t.trafficquota,traffic:t.traffic}),affiliation:(0,l.rcookie)("ref")||"0",price:t.pricecents/100,currency:u.signToCurrency[e],quantity:1}];"u">typeof dataLayer&&(dataLayer.push({ecommerce:null}),dataLayer.push({event:"select_item",ecommerce:{item_list_id:`${B}_products`,items:s}}),dataLayer.push({ecommerce:null}),dataLayer.push({event:"add_to_cart",ecommerce:{currency:u.signToCurrency[e],value:t.pricecents/100,items:s}})),"passwords"===B&&(0,i.sendPassAnalyticsEvent)({label:Y.pageTitle,category:`Get - ${a} - ${c.planNames[t.productid]}`,action:"Click"});let n=(r=["period="+a,"product="+c.URLPlanNames[t.productid]],"traffic"===B&&t.traffic&&r.push("traffic="+t.traffic),j&&"null"!==j&&r.push("discount="+j),R&&r.push("downgrade=1"),r),o=D+(-1===D.search(/[?]/)?"?":"&")+n.join("&");eu?window.parent.location.href=o:ed.push(o)},eP=e=>{eb(e)},eC=()=>{em()};return!ex||G&&null===ef?null:(0,r.jsxs)(r.Fragment,{children:[(()=>{if(J)return null;if("lifetime"!==ex&&eh&&!eh.lastsubscription&&!j&&"passwords"!==B)return(0,r.jsx)(E.A,{handleButtonClick:eC});if(eh&&(eh.plan||eh.business))return null;let e="u">typeof document?document.referrer:"";return j&&"year"!==ex&&!/landing/i.test(e)?(0,r.jsx)(S,{handleButtonClick:()=>ej("year")}):null})(),(0,r.jsxs)("div",{className:(0,g.X)("plans-container",B,U),children:[et?(0,r.jsx)("div",{className:"plans-hero-image-wrapper",children:(0,r.jsx)("div",{className:"plans-hero-image",children:(0,r.jsx)(L.default,{src:et,src_2x:ea,alt:en("pricing_plans","pCloud pricing plans")})})}):null,(0,r.jsxs)("div",{className:(0,g.X)("plans-wrapper",B,U),children:["traffic"===B?(0,r.jsx)(y,{plans:t,user:eh,periods:a,currency:e,buttonAction:eN,trafficUnit:K,plansVersion:U,showTextUnderPrices:z}):null,"traffic"!==B?(0,r.jsxs)(r.Fragment,{children:[a&&a.length>1?(0,r.jsxs)("div",{className:(0,g.X)("plans-periods-wrapper",B,U),children:[k&&(0,r.jsxs)("div",{className:(0,g.X)("plans-arrow-box-wrapper",B,U),children:[(0,r.jsx)("img",{className:"plans-arrow-compare",src:O("images/compare-left.png","images/[email protected]"),width:"20",alt:""}),(0,r.jsx)("div",{className:"plans-arrow-box-best-valued",children:en("landing_lifetime_compare")}),(0,r.jsx)("img",{className:"plans-arrow-compare",src:O("images/compare-right.png","images/[email protected]"),width:"20",alt:""})]}),(0,r.jsx)(b,{periods:a,selectedPeriod:ex,onPeriodChange:ej,color:W,backgroundColorValue:V,showBestValued:!1,plansType:B,plansVersion:U}),F?(0,r.jsx)("div",{className:`plans-periods-disclaimer${"lifetime"===ex?" plans-periods-disclaimer--show":""}`,children:F}):null]}):null,G?(()=>{if(!t[ex]||0===t[ex].length)return null;let e=t[ex].map((e,t)=>({tabId:t,tabTitle:(e.addplan?"+ ":"")+c.plansQuota[e.productid]}));return 0===e.length?null:(0,r.jsx)(w,{tabs:e,activeTab:ef,title:X||"",defaultClickAction:eP})})():null,(0,r.jsx)("div",{className:"plans-relative-container",children:(0,r.jsx)(m.A,{trigger:ex,timeout:200,disableInitialAnimation:!0,children:(0,r.jsx)("div",{className:(0,g.X)("plans-boxes-wrapper",B,U),children:t[ex].map((a,s)=>{let{productid:n,pricecents:i,originalpricecents:l,addplan:o,canbuy:m,quotaafterbuy:h,trafficafterbuy:g,canbuydisabledreason:f="plan_upgrade_restrictions"}=a,b=i/100,_=i!=l?l/100:0,v=el[ex],y=_&&_>b?{value:Math.round((1-b/_)*100),type:"percent"}:{};if("month"===ex&&"storage"===B){let t=12*b;v=`${t%1!=0?t.toFixed(2):t} ${u.signToCurrency[e]} ${en("for_year")}`}return(0,r.jsx)(x.A,{planId:0===n&&"passwords"===B?d.PASS_PREMIUM_PLAN_ID:n,plansType:B,plansVersion:U,billingPeriod:0===n&&"passwords"===B?"free":ex,isAddStoragePlan:o,color:"storage"===B?"cyan":"passwords"===B&&n===d.PASS_FAMILY_PLAN_ID?"orange":c.plansBoxesColors[n],buttonColor:$,price:b,currency:e,buttonAction:(e,t)=>eN(a,t),oldPrice:_,discount:y,disabled:!m,disabledReason:m?null:f,periodText:z?v:null,borderRadius:"storage"===B?24:19,getTotalStorage:()=>(0,p.renderQuota)(h,!0),getTotalTraffic:()=>(0,p.renderQuota)(g,!0),showBestPriceByRandomGirl:T&&t[ex].length===s+1,hideDiscountPercentage:I,showPlanDescriptionText:q,maxNumberOfFeaturesToShow:H,subtitlePosition:Q,showSaveLabel:Z,hideStartFreeTrialButton:er,hasPlanWithOldPrice:es},n+"_"+ex)})})})})]}):null,ee?null:(0,r.jsx)(M,{plansType:B})]})]})]})}},73658:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});var r=a(95155),s=a(81322),n=a(69828);let i=({os:e="windows",title:t={t_text:"NEED_HELP_WITH_PCLOUD_DRIVE",t_default:"Need Help with pCloud Drive?"}
1,titleBackgroundImage:a=null,links:i=[],sectionClassName:l=""})=>{let{t:o}=(0,s.useT)(),c=[{href:"https://www.pcloud.com/help/drive-help-center/what-is-pcloud-drive",text:{t_text:"WHAT_IS_PCDRIVE",t_default:"What is pCloud Drive?"}},{href:"https://www.pcloud.com/help/drive-help-center/whats-the-difference-between-pcloud-drive-and-pcloud-sync",text:{t_text:"DIFF_PCDRIVE_PCSYNC",t_default:"What's the difference between pCloud Drive and pCloud Sync?"}},..."mac"===e?[{href:"https://blog.pcloud.com/common-issues-with-pcloud-drive-on-macos/",text:{t_text:"pdrive_macos_common_issues",t_default:"Common issues with pCloud Drive on macOS"}}]:[],{href:"https://www.pcloud.com/help/drive-help-center/what-type-of-files-are-not-recommended-if-i-use-sync-backup-or-uploads",text:{t_text:"FILES_PCSYNC",t_default:"What type of files are not recommended?"}},{href:"https://help.pcloud.com/contact",text:{t_text:"PAGE_REQUEST_HELP",t_default:"Request Help"}}],d=i.length>0?i:c,u=a||`var(--${e}-text-gradient, var(--text-gradient))`;return(0,r.jsx)("section",{className:`section full-width ${l}`,children:(0,r.jsxs)("div",{className:"align-container with-gap align-left",children:[(0,r.jsx)("div",{className:"title align-left text-gradient",style:{backgroundImage:u},children:o(t)}),(0,r.jsx)("div",{className:"blank-section-children-wrapper",children:(0,r.jsx)("ul",{className:"questions-list",children:d.map((e,t)=>(0,r.jsxs)("li",{children:[(0,r.jsx)(n.default,{}),(0,r.jsx)("a",{href:e.href,children:o(e.text)})]},t))})})]})})}},74581:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>O});var r,s,n,i=a(95155),l=a(12115),o=a(74703),c=a(76800),d=a(33307);let u={initial:{opacity:0,scale:.8,maxHeight:0,overflow:"hidden"},animate:{opacity:1,scale:1,maxHeight:"1000px",overflow:"hidden",transition:{duration:.5,ease:[.23,1,.32,1],opacity:{duration:.2},scale:{duration:.25}}},exit:{opacity:0,maxHeight:0,overflow:"hidden",transition:{duration:.3,ease:"easeOut"}}},p={t_text:"business_contact_us_title",t_default:"Security failures are costly.<br />Protecting your data doesn't have to be."},m={t_text:"business_contact_us_subtitle",t_default:"Try our secure cloud storage free for 30 days."},h={t_text:"business_cta_button_1",t_default:"SELECT PLAN"},g={t_text:"business_cta_button_2",t_default:"CONTACT SALES"},f=()=>{(0,d.PA)("business-plans",56,500)},b="contact-sales-form";var x=a(40381);let _=e=>"string"!=typeof e?"":e.trim().replace(/\0/g,"").replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"").replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<[^>]*>/g,"").replace(/javascript:/gi,"").replace(/data:/gi,"");var v=a(15232);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let w=function(e){return l.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:52,height:52,fill:"none"},e),r||(r=l.createElement("path",{fill:"url(#success-icon-v2_svg__paint0_linear_1_3582)",d:"M26.005 51.333q-5.256 0-9.88-1.994-4.626-1.995-8.046-5.414-3.42-3.42-5.417-8.042Q.667 31.26.667 26.004t1.995-9.88 5.415-8.045q3.42-3.421 8.043-5.417Q20.744.667 26 .667q3.329 0 6.452.848a26 26 0 0 1 5.974 2.454q.77.43 1.005 1.241.236.81-.277 1.513a2.18 2.18 0 0 1-1.356.88 2.3 2.3 0 0 1-1.628-.255 21.3 21.3 0 0 0-4.921-1.994A20.3 20.3 0 0 0 26 4.667q-8.865 0-15.1 6.233Q4.667 17.133 4.667 26q0 8.866 6.233 15.1 6.234 6.233 15.1 6.233 8.867 0 15.1-6.233 6.234-6.234 6.234-15.1 0-.774-.059-1.5-.06-.726-.203-1.49a2.5 2.5 0 0 1 .292-1.628 2 2 0 0 1 1.282-1.008q.805-.23 1.495.2t.823 1.241q.185 1.01.277 2.044t.093 2.14q0 5.258-1.995 9.88-1.995 4.624-5.414 8.044-3.42 3.42-8.042 5.415t-9.878 1.995m-3.79-19.61L47.119 6.78q.555-.553 1.372-.586.818-.034 1.444.592.574.575.574 1.4t-.58 1.405L23.903 35.656q-.724.723-1.687.723-.965 0-1.688-.722l-7.318-7.318q-.554-.555-.566-1.393a1.89 1.89 0 0 1 .566-1.418q.58-.58 1.406-.58.825 0 1.405.58z"})),s||(s=l.createElement("defs",null,l.createElement("linearGradient",{id:"success-icon-v2_svg__paint0_linear_1_3582",x1:.667,x2:51.261,y1:24.375,y2:23.484,gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#11AA52"}),l.createElement("stop",{offset:1,stopColor:"#4BCA00"}
1)))))};var j=a(92369);function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let P=function(e){return l.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),n||(n=l.createElement("path",{fill:"#fff",d:"M16 0c8.837 0 16 7.163 16 16s-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0m4.87 10q-.48 0-.806.325L16 14.39l-4.065-4.065a1.1 1.1 0 0 0-.804-.325q-.481 0-.806.325a1.1 1.1 0 0 0-.325.806q0 .48.325.804L14.39 16l-4.065 4.064a1.1 1.1 0 0 0-.325.805q0 .481.325.806.326.325.806.325t.804-.325L16 17.61l4.064 4.065q.325.325.805.325t.806-.325q.325-.326.325-.806t-.325-.805L17.61 16l4.065-4.065q.325-.324.325-.804t-.325-.806a1.1 1.1 0 0 0-.806-.325",opacity:.2})))};var C=a(13977),k=a(81322);let S="blank",E="validation",A="success",T=({onClose:e,onSuccess:t,firstInputRef:a})=>{let{t:r}=(0,k.useT)(),[s,n]=(0,l.useState)(S),[o,u]=(0,l.useState)(!1),[p,m]=(0,l.useState)({name:"",company:"",email:"",users:3}),[h,g]=(0,l.useState)({}),[f,b]=(0,l.useState)(""),y=(0,l.useRef)(null),N=(0,l.useRef)(null),T=(0,l.useRef)(null),I=(0,l.useRef)(null),M=(0,l.useRef)(null),L=(0,l.useRef)(null),O=(0,l.useRef)(null);(0,l.useEffect)(()=>{a&&N.current&&N.current.focus({preventScroll:!0})},[]),(0,l.useEffect)(()=>{f&&y.current&&(y.current.focus(),y.current.scrollIntoView({behavior:"smooth",block:"center"}))},[f]);let D=(()=>{if(s===A)return A;let e=Object.values(p).some(e=>""!==e&&3!==e);return Object.keys(h).length>0?E:e?"filled":S})();(0,l.useEffect)(()=>{D!==s&&s!==A&&n(D)},[D,s]);let R=e=>t=>{let a=t.target.value;m(t=>({...t,[e]:a})),h[e]&&g(t=>{let a={...t};return delete a[e],a}),f&&b("")},F=()=>{h.users&&g(e=>{let t={...e};return delete t.users,t})},$=e=>{var a,s,i;let l,c,m,h,f;if(e.preventDefault(),o)return;let v=(l={},(c=(a=p.name)&&a.trim()?null:{t_text:"CONTACT_ENTER_NAME"})&&(l.name=c),(m=(s=p.company)&&s.trim()?null:{t_text:"business_company_name_error"})&&(l.company=m),(h=(e=>{if(!e||!e.trim())return{t_text:"CONTACT_ENTER_EMAIL"};let t=_(e);return(0,d.bd)(t)?[/[<>"']/,/javascript:/i,/data:/i,/vbscript:/i,/on\w+\s*=/i].some(e=>e.test(t))?{t_text:"CONTACT_ENTER_VALID_EMAIL"}:null:{t_text:"CONTACT_ENTER_VALID_EMAIL"}})(p.email))&&(l.email=h),(f=(i=p.users)&&!(i<3)?i>99?"Maximum 99 users allowed":null:"Minimum 3 users required")&&(l.users=f),l);if(Object.keys(v).length>0){g(v),n(E);let e=Object.keys(v)[0];setTimeout(()=>{let t=null;switch(e){case"name":t=N;break;case"company":t=T;break;case"email":t=I;break;case"users":t=M}t?.current&&(t.current.focus(),t.current.scrollIntoView({behavior:"smooth",block:"center"}))},100);return}u(!0),b("");let y=(e=>{let{firstName:t,lastName:a}=(e=>{if(!e||"string"!=typeof e)return{firstName:"",lastName:""};let t=e.trim().split(" ");return{firstName:t[0]||"",lastName:t.slice(1).join(" ")||""}})(_(e.name));return{firstname:t,lastname:a,company:_(e.company),mail:_(e.email).toLowerCase(),companysize:parseInt(e.users,10),phone:"",subject:"",message:"",reason:"Sales Contact form",language:(0,x.Z)(),feedbacktype:"sales",sitereferrer:document.referrer}})(p);(0,C.default)("feedback",y,e=>{n(A),t?.()},{type:"POST",errorCallback:e=>{b(e?.error||r("Something went wrong. Please try again later.")),u(!1)},onXhrError:(e,t,a)=>{b(r("Please check your Internet connection.")),u(!1)}})};return s===A?(0,i.jsx)(c.P.div,{className:"contact-sales-inline-form success",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},children:(0,i.jsxs)("div",{className:"contact-sales-inline-form__success-content",children:[(0,i.jsx)("div",{className:"contact-sales-inline-form__success-icon",children:(0,i.jsx)(w,{})}),(0,i.jsx)("p",{className:"contact-sales-inline-form__success-message",children:r("business_contact_us_success","Thank you for reaching out. A team member will follow up shortly.")})]})}):(0,i.jsxs)(c.P.div,{className:`contact-sales-inline-form ${D}`,initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.2},children:[(0,i.jsx)("button",{ref:O,type:"button",onClick:e,className:"contact-sales-inline-form__close-button",children:(0,i.jsx)(P,{})}),(0,i.jsxs)("div",{className:"contact-sales-inline-form__header",ref:y,children:[f?null:(0,i.jsx)("h2",{className:"contact-sales-inline-form__title",id:"contact-sales-title",children:r("business_contact_us_form_title","Let's Talk Business Storage")}),f?(0,i.jsx)("h2",{className:"contact-sales-inline-form__general-error",id:"general-error",role:"alert","aria-live":"polite",children:f}):null]}),(0,i.jsx)("form",{ref:L,onSubmit:$,onKeyDown:t=>{(e=>{if("Tab"!==e.key)return;let t=L.current?.querySelectorAll('input, button, textarea, select, [tabindex]:not([tabindex="-1"])');if(!t||0===t.length)return;let a=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===a&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),a.focus())})(t),(t.ctrlKey||t.metaKey)&&"Enter"===t.key&&$(t),"Escape"===t.key&&s!==A&&e?.()},noValidate:!0,role:"form","aria-labelledby":"contact-sales-title","aria-describedby":f?"general-error":void 0,className:"contact-sales-inline-form__form",children:(0,i.jsxs)("div",{className:"contact-sales-inline-form__content",children:[(0,i.jsxs)("div",{className:"contact-sales-inline-form__grid",children:[(0,i.jsxs)("div",{className:"contact-sales-inline-form__field",children:[h.name?(0,i.jsx)("span",{className:"contact-sales-inline-form__error",id:"name-error",role:"alert",children:r(h.name)}):(0,i.jsxs)("label",{className:"contact-sales-inline-form__label",htmlFor:"name",children:[r("your name","Your name")," *"]}),(0,i.jsx)("input",{ref:e=>{N.current=e,a&&(a.current=e)},type:"text",id:"name",name:"name",className:`contact-sales-inline-form__input ${h.name?"error":p.name.trim()?"filled":""}`,value:p.name,onChange:R("name"),placeholder:"","aria-describedby":h.name?"name-error":void 0,"aria-invalid":!!h.name,autoComplete:"name"})]}),(0,i.jsxs)("div",{className:"contact-sales-inline-form__field",children:[h.company?(0,i.jsx)("span",{className:"contact-sales-inline-form__error",id:"company-error",role:"alert",children:r(h.company)}):(0,i.jsxs)("label",{className:"contact-sales-inline-form__label",htmlFor:"company",children:[r("Company Name","Company name")," *"]}),(0,i.jsx)("input",{ref:T,type:"text",id:"company",name:"company",className:`contact-sales-inline-form__input ${h.company?"error":p.company.trim()?"filled":""}`,value:p.company,onChange:R("company"),placeholder:"","aria-describedby":h.company?"company-error":void 0,"aria-invalid":!!h.company,autoComplete:"organization"})]}),(0,i.jsxs)("div",{className:"contact-sales-inline-form__field",children:[h.email?(0,i.jsx)("span",{className:"contact-sales-inline-form__error",id:"email-error",role:"alert",children:r(h.email)}):(0,i.jsxs)("label",{className:"contact-sales-inline-form__label",htmlFor:"email",children:[r("business_page_work_email","Work email")," *"]}),(0,i.jsx)("input",{ref:I,type:"email",id:"email",name:"email",className:`contact-sales-inline-form__input ${h.email?"error":p.email.trim()?"filled":""}`,value:p.email,onChange:R("email"),placeholder:"","aria-describedby":h.email?"email-error":void 0,"aria-invalid":!!h.email,autoComplete:"email"})]}),(0,i.jsxs)("div",{className:"contact-sales-inline-form__field",children:[h.users?(0,i.jsx)("span",{className:"contact-sales-inline-form__error",id:"users-error",role:"alert",children:r(h.users)}):(0,i.jsxs)("label",{className:"contact-sales-inline-form__label",htmlFor:"users",children:[r("Users","Users")," *"]}),(0,i.jsx)("div",{className:`contact-sales-inline-form__number-input-container ${h.users?"error":p.users>3?"filled":""}`,children:(0,i.jsx)("div",{className:"contact-sales-inline-form__users-range-input",children:(0,i.jsx)(v.A,{value:p.users,min:3,max:99,onChange:(e,t)=>
1{let a=Math.round(e),r=p.users;a>=3&&a<=99?r=a:a<3?r=3:a>99&&(r=99),m(e=>({...e,users:r})),F(),t&&t(r)},onUp:()=>void(m(e=>({...e,users:e.users<99?e.users+1:e.users})),F()),onDown:()=>void(m(e=>({...e,users:e.users>3?e.users-1:e.users})),F()),autoFocus:!1,template:"v2",theme:"dark"})})})]})]}),D!==A&&(0,i.jsx)("button",{className:"contact-sales-inline-form__submit-button",type:"submit",disabled:o,children:(0,i.jsx)("span",{"aria-hidden":"true",children:o?(0,i.jsx)("div",{className:"contact-sales-inline-form__spinning-container",children:(0,i.jsx)(j.A,{})}):r("business_contact_sales_submit_button","REQUEST INFO")})})]})})]})};var I=a(38739),M=a(63915),L=a(4474);let O=({headline:e=p,subheadline:t=m,sectionClassName:a="",hidePrimaryButton:r=!1,primaryButtonText:s=h,onClickPrimaryButton:n=f,contactSalesText:x=g,toggleFormAnimationConfig:_=u})=>{let{t:v}=(0,k.useT)(),[y,w]=(0,l.useState)(!1),[j,N]=(0,l.useState)(!1),P=(0,l.useRef)(null),C=(0,l.useRef)(null),S=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=()=>{w(!0),N(!0)};return window.addEventListener(L.lB,e),()=>window.removeEventListener(L.lB,e)},[]),(0,l.useEffect)(()=>{j&&C.current&&(N(!1),(0,d.PA)(b,80,500),clearTimeout(S.current),S.current=setTimeout(()=>{(0,d.PA)(b,80,500),P.current&&P.current.focus({preventScroll:!0})},500))},[j]),(0,l.useEffect)(()=>()=>clearTimeout(S.current),[]),(0,i.jsx)("div",{className:`section contact-us-form-section ${a}`,children:(0,i.jsx)("div",{className:"contact-us-form-section__container align-container",children:(0,i.jsxs)("div",{className:"contact-us-form-section__card",children:[(0,i.jsxs)("div",{className:"contact-us-form-section__initial-content",children:[(0,i.jsx)("h2",{className:"contact-us-form-section__title",id:"contact-us-title",children:(0,i.jsx)(I.default,{text:v(e),converters:[M.brTagConverter]})}),(0,i.jsx)("p",{className:"contact-us-form-section__subtitle",children:v(t)}),(0,i.jsxs)("div",{className:"contact-us-form-section__actions",children:[r?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:"contact-us-form-section__button contact-us-form-section__button--primary",onClick:n,"aria-describedby":"primary-button-desc",children:(0,i.jsx)("span",{children:v(s)})}),(0,i.jsx)("span",{className:"contact-us-form-section__separator","aria-hidden":"true",children:v("OR","OR")})]}),(0,i.jsx)("button",{className:"contact-us-form-section__button contact-us-form-section__button--secondary",onClick:()=>{w(!0),setTimeout(()=>{P.current&&P.current.focus()},200)},"aria-describedby":"secondary-button-desc",disabled:y,children:(0,i.jsx)("span",{children:v(x)})})]})]}),(0,i.jsx)(o.N,{mode:"wait",children:y&&(0,i.jsx)(c.P.div,{ref:C,id:b,className:"contact-us-form-section__inline-form",..._,children:(0,i.jsx)(T,{onClose:()=>{w(!1)},onSuccess:()=>{setTimeout(()=>{w(!1)},3e3)},firstInputRef:P})})})]})})})}},76304:()=>{},76985:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(12115),s=a(99967),n=a(45795),i=a(48233),l=a(82001),o=a(33307),c=a(56934);let d=({cookieId:e,modalId:t,modalProps:a={},handleButtonClick:d,shouldShow:u=!0,delay:p=5e3})=>{let m=(0,s.useDispatch)(),{setCookie:h}=(0,c.f)(),g=(0,r.useRef)(null),f=(0,r.useRef)(d);f.current=d,(0,r.useEffect)(()=>{if(!u)return;let r=(0,n.A)(),s=(0,n.A)();g.current={callbackId:r,toastId:s},f.current&&l.g.register(r,(...e)=>f.current?.(...e));let c=n=>{(0,o.Zg)(n,()=>{(0,o.Hs)(e)||(h(e,!0,1),m((0,i.GR)({modalId:t,callbackId:f.current?r:void 0,toastId:s,...a})))})},d=setTimeout(()=>{document.addEventListener("mouseout",c)},p);return()=>{clearTimeout(d),document.removeEventListener("mouseout",c),g.current&&(m((0,i.QC)(g.current.toastId)),l.g.remove(g.current.callbackId))}},[u,e,t,p,m,h])}},77326:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(95155);a(12115),a(86706);let s=({buildData:e={},wrapClassName:t=""})=>(0,r.jsx)(r.Fragment,{children:e.hasOwnProperty("followUs")&&(0,r.jsxs)("div",{className:`footer-follow ${t}`,children:[(0,r.jsx)("div",{className:"footer-follow__headline",children:e.followUs.title}),(0,r.jsx)("div",{className:"footer-follow__buttons",children:e.followUs.hasOwnProperty("items")&&e.followUs.items.map((e,t)=>(0,r.jsxs)("a",{className:"footer-follow__link",href:e.url,target:"_blank",rel:"noopener noreferrer",children:[!e.hasOwnProperty("svg")&&(0,r.jsx)("img",{className:"footer-follow__img",alt:e.alt,src:e.src,srcSet:`${e.srcRetina} 2x`,width:20,height:20}),e.hasOwnProperty("svg")&&(0,r.jsx)("img",{className:"footer-follow__img",alt:e.alt,src:e.svg,width:20,height:20})]},t))})]})})},77586:(e,t,a)=>{"use strict";a.d(t,{K:()=>o});var r=a(12115),s=a(42497),n=a(77175),i=a(72745),l=a(92198);let o=({animationSpeed:e=.25,animatedOnScroll:t=!0})=>{let[a,o]=(0,r.useState)(window.innerWidth<=768),c=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=(0,l.debounce)(()=>{o(window.innerWidth<=768)},50);return window.addEventListener("resize",e),o(window.innerWidth<=768),()=>{window.removeEventListener("resize",e)}},[]);let{scrollYProgress:d}=(0,s.L)({target:c,offset:["start end","end start"]}),u={opacity:1,y:0,scale:1},p=5*e,m=.16999999999999998*p,h=.05*p,g=.16999999999999998*p,f=a?g:.1*p,b=(f+.12)*p,x={stiffness:300/p,damping:40*Math.sqrt(p),mass:.5*p},_=t?(0,n.z)((0,i.G)(d,[.05,m],[30,0]),x):0,v=t?(0,n.z)((0,i.G)(d,[.05,m],[0,1]),x):1,y=t?(0,n.z)((0,i.G)(d,[f,b],[30,0]),x):0,w=t?(0,n.z)((0,i.G)(d,[f,b],[0,1]),x):1,j=t?(0,n.z)((0,i.G)(d,[h,g],[.9,1]),x):1,N=t?(0,n.z)((0,i.G)(d,[h,g],[0,1]),x):1;return{containerRef:c,staticStyle:u,titleAnimations:t?{opacity:v,y:_}:u,subtitleAnimations:t?{opacity:w,y:y}:u,imageAnimations:t?{opacity:N,y:j}:u}}},78376:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>_});var r=a(95155),s=a(12115),n=a(77326),i=a(50215),l=a(89996),o=a(90426),c=a(4474),d=a(60082),u=a(5021),p=a(28399),m=a.n(p),h=a(56934),g=a(99967),f=a(47e3),b=a(81322);let x=({languageFlags:e})=>{let{logged:t}=(0,g.useSelector)(({pCloudUser:e})=>e),a=(0,s.useMemo)(()=>e&&e.length>0&&l.LANGUAGES_LIST.filter(({code:t})=>e.includes(t))||[],[]),{i18n:n}=(0,b.useT)(),i=n.language,p=(0,u.p)(),x=(0,d.useRouter)(),{setCookie:_}=(0,h.f)(),v=async e=>{_(m().cookieName,e,365);let t=i===m().defaultLocale?"/"+e+p:p.replace(`/${i}`,e===m().defaultLocale?"":`/${e}`);try{await (0,f.lU)(e),x.push(t),setTimeout(()=>{x.refresh()},0)}catch(e){console.error("Failed to reload language script:",e),window.location.href=t}};return a.length>0?(0,r.jsx)("div",{className:"sample-footer-change-language-flags-wrapper",children:a.map(({code:e,title:a})=>(0,r.jsx)("button",{onClick:()=>{t?(0,f.M1)(e,()=>{v(e)}):v(e)},className:"sample-footer-change-language-flag",children:(0,r.jsx)(o.default,{src:`${c.w4}images/flags/${e}.png`,src_2x:`${c.w4}images/flags/${e}@2x.png`,alt:a})},e))}):null},_=({showFollowUs:e=!0,changeLanguageWithFlags:t=null})=>{let a=(0,i.B)(),s=new Date().getFullYear();return(0,r.jsx)("section",{className:"section sample-footer-section separation-border-top smaller-padding-top-bottom",children:(0,r.jsxs)("div",{className:"align-container with-gap",children:[(0,r.jsxs)("p",{className:"sample-footer-section__copyright",children:[s," \xa9"," ",(0,r.jsx)("a",{href:"https://www.pcloud.com/",target:"_blank",rel:"noopener noreferrer",children:"pCloud International AG"}),", 74 Zugerstrasse Str, 6340 Baar, Switzerland. Email:"," ",(0,r.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"}),". Tel: ",(0,r.jsx)("span",{children:"(+41) 43 508-5948"})]}),e?(0,r.jsx)(n.A,{buildData:a}):null,t?(0,r.jsx)(x,{languageFlags:t}):null]})})}},79231:()=>{},80263:(e,t,a)=>{"use strict";a.d(t,{default:()=>u});var r=a(95155),s=a(12115),n=a(26550),i=a(81322),l=a(54654),o=a(4474),c=a(12035),d=a(67143);
1let u=({reason:e,plansContainerBackground:t="#fff",familyPageLink:a="/family",contactUsPageLink:u=o.wj,plansType:p="storage",plansVersion:m="1.0.0",sectionClassName:h="",topHeadlineBackground:g=null})=>{let{t:f}=(0,i.useT)(),{handleLogout:b}=(0,l.A)(),{noPlansInfoHeader:x,noPlansInfoDescription:_}=(0,s.useMemo)(()=>{let t=null,a=null;switch(e){case"isbusiness":t={t_text:"isbusiness_pricing_page_header",t_default:"Your account is associated with a business plan."},a={t_text:"isbusiness_pricing_page_description",t_default:"To explore individual plans, please sign out."};break;case"isfamily":t={t_text:"isfamily_pricing_page_header",t_default:"Your account is associated with a Family plan."},a={t_text:"isfamily_pricing_page_description",t_default:"Please go to our Family Plans page."};break;case"isfamilymember":t={t_text:"isfamily_pricing_page_header",t_default:"Your account is associated with a Family plan."},a={t_text:"isfamilymember_pricing_page_description",t_default:"Contact the account owner to upgrade, or sign out to view individual plans."};break;case"hasothertypestorageplan":t={t_text:"isindividual_family_page_header",t_default:"Your account is associated with an Individual plan."},a={t_text:"largest_plan_pricing_page_description",t_default:"Contact our support for more details."};break;default:t={t_text:"largest_plan_pricing_page_header",t_default:"You're on the largest plan available."},a={t_text:"largest_plan_pricing_page_description",t_default:"Contact our support for more details."}}return{noPlansInfoHeader:t,noPlansInfoDescription:a}},[e]),v=`section ${h} ${(0,n.X)("plans-container-wrapper",p,m)}${t?" plans-container-wrapper--background":""}`;return(0,r.jsx)("section",{className:v,style:t?{"--custom-background":t}:{},children:(0,r.jsxs)("div",{className:"align-container",children:[(0,r.jsx)(d.default,{user:null,plansType:p,headline:null,topHeadlineBackground:g,headlineSecond:x,subtitle:_}),(()=>{switch(e){case"isbusiness":case"isfamilymember":return(0,r.jsx)(c.default,{ctaButtons:[{text:{t_text:"sign_out",t_default:"Sign out"},minWidth:"200px",className:"rounded-button-v2",ctaFontSizeMobile:"12px",onClick:b}]});case"isfamily":return(0,r.jsx)(c.default,{ctaButtons:[{link:a,text:{t_text:"go_to_family",t_default:"Go to Family"},minWidth:"200px",className:"rounded-button-v2",ctaFontSizeMobile:"12px"}]});default:return(0,r.jsx)(c.default,{ctaButtons:[{link:u,text:{t_text:"contact_support",t_default:"Contact support"},minWidth:"200px",className:"rounded-button-v2",ctaFontSizeMobile:"12px"}]})}})()]})})}},82001:(e,t,a)=>{"use strict";a.d(t,{g:()=>s});let r=new Map,s={register:(e,t)=>(r.set(e,t),e),get:e=>r.get(e),remove:e=>{r.delete(e)}}},84682:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r,s=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let i=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),r||(r=s.createElement("path",{fill:"#1C1D1F",fillRule:"evenodd",d:"M0 0h10.5v10.5H0zm0 11.5V22h10.5V11.5zm11.5 0V22H22V11.5zm10.5-1V0H11.5v10.5z",clipRule:"evenodd"})))}},86706:()=>{},87694:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>h});var r=a(95155),s=a(12115),n=a(92198),i=a(81322),l=a(12035),o=a(20512);let c={t_text:"ready_to_get_started",t_default:"Ready to get started?"};var d=a(99967),u=a(74242),p=a(38739),m=a(63915);let h=({sectionId:e=null,title:t=c,titleLogged:a=null,subtitle:h=null,titleIconSrc:g,titleIconSrc_2x:f,titleIconPosition:b="top",showSignupButton:x=!1,signupButtonProps:_={},signupButtonText:v=null,showDownloadAppsButton:y=!1,showDownloadDriveButton:w=!1,ctaButtons:j=[],loggedUserCTAButtons:N=null,ctaButtonsTemplate:P="row",ctaButtonsTextSeparator:C=null,ctaButtonsColumnGap:k=null,ctaButtonsColumnGapMobile:S=null,ctaButtonsContainerMinWidth:E=null,ctaButtonsContainerMinWidthMobile:A=null,ctaButtonsAlign:T="center",ctaButtonsAlignMobile:I=null,titleAlign:M="align-center",titleClassName:L="",subt
1itleAlign:O="align-center",subtitleClassName:D="",titleBackgroundImage:R="",subtitleBackgroundImage:F="",smallerTitle:$=!0,sectionClassName:B="",buttonsTemplate:U="",forceClientOS:q=null,showDownloadWinBeta:z=!1,downloadDriveButtonProps:H={},sectionBackground:W=null,sectionBackgroundMobile:V=null,contentMaxWidth:Y=null,contentMaxWidthMobile:G=null})=>{let{t:X}=(0,i.useT)(),[K,Q]=(0,s.useState)(q||"mac"),Z=(0,d.useSelector)(({pCloudUser:e})=>e?.logged),J={left:"flex-start",right:"flex-end",center:"center"},ee=e=>J[e]||e,et=(0,d.useSelector)(t=>!!e&&t.sectionVisibility.hiddenSections.includes(e));if((0,s.useEffect)(()=>{q||Q((0,n.detectOS)(!1,!0))},[q]),et)return null;let ea=[];return x&&!(Z&&N)&&ea.push({signupButton:!0,signupButtonText:v,..._}),ea=ea.concat(Z&&N?N:j),(0,r.jsx)("section",{className:`section full-width ${B}`,style:{...W&&{"--section-background":W},...V&&{"--section-background-mobile":V}},children:(0,r.jsx)("div",{className:"align-container",children:(0,r.jsxs)("div",{className:"cta-flex-container",style:{...Y&&{"--cta-section-content-max-width":Y},...G&&{"--cta-section-content-max-width":G}},children:[t||a||h?(0,r.jsxs)("div",{className:"cta-title-wrapper",children:[(t||a)&&$&&(0,r.jsxs)("h2",{className:`titleh3 ${M} ${L} ${R?"text-gradient":""} icon-position-${b}`,style:{backgroundImage:R??"unset"},children:[g&&(0,r.jsx)("img",{src:g,srcSet:f?`${g} 1x, ${f} 2x`:void 0,alt:""}),(0,r.jsx)("span",{children:(0,r.jsx)(p.default,{text:X(Z&&a?a:t),converters:[m.boldConverter,m.linkConverter,m.brTagConverter]})})]}),(t||a)&&!$&&(0,r.jsxs)("div",{className:`title ${M} ${L} ${R?"text-gradient":""} icon-position-${b}`,style:{backgroundImage:R??"unset"},children:[g&&(0,r.jsx)("img",{src:g,srcSet:f?`${g} 1x, ${f} 2x`:void 0,alt:""}),(0,r.jsx)("span",{children:(0,r.jsx)(p.default,{text:X(Z&&a?a:t),converters:[m.boldConverter,m.linkConverter,m.brTagConverter]})})]}),h&&(0,r.jsx)("div",{className:`subtitle ${O} ${D} ${F?"text-gradient":""}`,style:{backgroundImage:F??"unset"},children:(0,r.jsx)("span",{children:(0,r.jsx)(p.default,{text:X(h),converters:[m.boldConverter,m.linkConverter,m.brTagConverter]})})})]}):null,ea.length>0?(0,r.jsx)("div",{className:"cta-buttons-container",style:{"--cta-buttons-justify":ee(T),...I&&{"--cta-buttons-justify-mobile":ee(I)}},children:(0,r.jsx)(s.Suspense,{fallback:(0,r.jsx)("div",{children:"Loading..."}),children:(0,r.jsx)(l.default,{ctaButtons:ea,template:P,ctaButtonsTextSeparator:C,columnGap:k,columnGapMobile:S,containerMinWidth:E,containerMinWidthMobile:A,justifyItems:{left:"start",right:"end",center:"center"}[T]||T})})}):null,"boolean"==typeof w&&w||w[K]?(0,r.jsx)(u.A,{downloadDriveButtonProps:H,showDownloadWinBeta:z,forceClientOS:q,buttonsTemplate:U}):null,"boolean"==typeof y&&y||y[K]?(0,r.jsx)("div",{className:"cta-download-mobile-container",children:(0,r.jsx)(o.A,{device:K,align:"center",buttonWidth:"220px"})}):null]})})})}},87917:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var r=a(95155),s=a(40381),n=a(37500),i=a(16442),l=a(39612);let o=({sectionClassName:e=""})=>{let{ipData:t}=(0,n.Y)(),a=(0,s.Z)();return"jp"===("string"==typeof t?.country?t.country.toLowerCase():"")&&"en"===a||"ja"===a?(0,r.jsx)("section",{className:`section japanese-certificates-section ${e}`,children:(0,r.jsx)("div",{className:"align-container",children:(0,r.jsx)(i.A,{title:l.B.title,shortDescription:l.B.shortDescription,longDescription:l.B.longDescription,readMoreText:l.B.readMoreText,images:l.B.images,showReadMore:!0})})}):null}},88449:(e,t,a)=>{"use strict";a.d(t,{AuthRefreshProvider:()=>i,t:()=>l});var r=a(95155),s=a(12115);let n=(0,s.createContext)(null),i=({children:e})=>
1{let[t,a]=(0,s.useState)(!1),[i,l]=(0,s.useState)(!1);return(0,r.jsx)(n.Provider,{value:{isRefreshing:t,setIsRefreshing:a,isProcessingAuthParams:i,setIsProcessingAuthParams:l},children:e})},l=()=>{let e=(0,s.useContext)(n);if(!e)throw Error("useAuthRefresh must be used within AuthRefreshProvider");return e}},88724:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var r=a(95155),s=a(12115),n=a(74585),i=a(41252),l=a(4007),o=a(83489),c=a(62683),d=a(12978),u=a(67889),p=a.n(u),m=a(81322),h=a(40381),g=a(90573),f=a(60333);let b=({plan:e,currency:t,buttonAction:a,period:n,usersCount:u})=>{let b,{t:x}=(0,m.useT)(),_=(0,h.Z)(),{title:v,buttonText:y,storagePerUser:w,features:j}=(0,s.useMemo)(()=>(0,i.getPlanBoxTexts)(),[])[e.id],N=y.default,P=v.default,C=i.plansBoxesColors[e.id];return(0,r.jsxs)("div",{className:"plan-box business-planbox-wrapper",children:[e.prices[t][n+"-old"]&&e.prices[t][n+"-old"]>e.prices[t][n]?(0,r.jsxs)("div",{className:"plan-box__discount-badge",children:[x("DISCOUNT","DISCOUNT")," ",parseFloat((e.prices[t][n+"-old"]-e.prices[t][n])/e.prices[t][n+"-old"]*100).toFixed(),"%"]}):null,(0,r.jsx)(c.A,{title:P,color:C,disabled:!1,plansVersion:"0.0.1",className:`business-plan-header ${e.planNameKey}`}),(0,r.jsxs)("div",{className:"plan-box__users-storage",children:[u," ",x("USERS","USERS")," / ",w*u," ",x("TB")," ",x("STORAGE","STORAGE")]}),(0,r.jsx)(g.A,{price:parseFloat(e.prices[t][n]*u*("year"===n?12:1)),oldPrice:e.prices[t][n+"-old"]?parseFloat(e.prices[t][n+"-old"]*u*("year"===n?12:1)):null,currency:t,periodText:`${e.prices[t][n]} ${f.signToCurrency[t]} ${x("PER USER","PER USER")}`,textAfterPrice:x(n).toUpperCase(),plansType:"storage",theme:"dark",hasPlanWithOldPrice:!0,template:"old-price-above"}),(0,r.jsx)(o.default,{as:p(),size:"big",color:C,onClick:e=>{a(null,null)},disabled:!1,disabledColor:"#CCCCCC",height:48,loading:!1,className:`box-button ${e.planNameKey}`,href:`${"en"!==_?"/"+_:""}/business-registration?plan=${e.planNameKey}&period=${n}&users=${u}`,workLikeLink:!0,children:N}),(0,r.jsx)("div",{className:"plan-box__features box-feature",children:(b=j.default).map(({feature:t,tooltip:a,label:s},n)=>(0,r.jsx)(d.A,{feature:t,tooltip:a,label:s,lastChild:n===b.length-1,disabled:!1,showCheck:!0,plansVersion:e.id===l.BUSINESS_PLAN_2_ID?"0.0.2":"0.0.1",className:"feature-wrapper"},n))})]})};var x=a(16828),_=a(15232);let v=({plans:e,currency:t,buttonAction:a=()=>{},initialUsersCount:i=3,minUsers:l=3,maxUsers:o=10,periodAndUsersContainerWidth:c=248,chosenPeriod:d="month",periods:u=[{id:"month",title:{t_text:"Monthly"}},{id:"year",title:{t_text:"annual_payment"}}]})=>{let{t:p}=(0,m.useT)(),[h,g]=(0,s.useState)(d),[f,v]=(0,s.useState)(i),y=e=>{console.log(t),g(e)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"dark-plans-section__period-users-switcher",children:[(0,r.jsx)("div",{className:"dark-plans-section__subscription-period",children:(0,r.jsx)(x.A,{color:"green",width:c,tabsSwitcherOffset:6,tabs:u.map(e=>({tabId:e.id,tabTitle:p(e.title),clickAction:y})),activeTab:h})}),(0,r.jsxs)("div",{className:"dark-plans-section__subscription-users",style:{"--range-number-input-width":`${c}px`},children:[(0,r.jsx)(_.A,{value:f,min:l,max:o,disabled:!1,title:"",suffix:"",labelBelowValue:p("Users","Users"),onChange:(e,t)=>
1{let a=Math.round(e),r=f;a>=l&&a<=o?r=a:a<l?r=l:a>o&&(r=o),v(r),t&&t(r)},onUp:()=>v(e=>e<o?e+1:e),onDown:()=>v(e=>e>l?e-1:e),autoFocus:!1,template:"v2",theme:"dark"}),f>=o&&(0,r.jsx)(n.m_,{id:"max-users-tooltip",className:"tooltip-message",anchorSelect:".dark-plans-section__subscription-users .btn-plus",content:p("business_plans_max_users_tooltip","Free trial for up to 10 users. After subscription, add unlimited users. For 10+ users, use per-user pricing or contact Sales.")}),f<=l&&(0,r.jsx)(n.m_,{id:"min-users-tooltip",className:"tooltip-message",anchorSelect:".dark-plans-section__subscription-users .btn-minus",content:p("business_plans_min_users_tooltip","pCloud Business requires a minimum of 3 users.")})]})]}),(0,r.jsx)("div",{className:"plans-container__wrapper business-plan-wrapper-sbs",children:Object.keys(e).map(s=>(0,r.jsx)(b,{plan:e[s],period:h,usersCount:f,currency:t,buttonAction:a},s))})]})}},88775:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(95155),s=a(81322),n=a(38739),i=a(63915);let l=({title:e={t_text:"f.a.q."},questionsAnswers:t=[],sectionClassName:a})=>{let{t:l}=(0,s.useT)();return(0,r.jsx)("div",{className:`section ${a}`,children:(0,r.jsxs)("div",{className:"align-container with-gap-2xl",children:[(0,r.jsx)("h2",{className:"titleh3 align-center",children:l(e)}),(0,r.jsx)("div",{className:"simple-faq-section",children:t.map((e,t)=>(0,r.jsxs)("div",{className:"faq-item",children:[(0,r.jsx)("div",{className:"faq-question",children:l(e.q.t_text)}),(0,r.jsx)("div",{className:"faq-answer",children:(0,r.jsx)(n.default,{text:l(e.a.t_text),converters:[i.boldConverter,i.linkConverter]})})]},t))})]})})}},90573:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var r,s=a(95155),n=a(12115),i=a(60333),l=a(90929),o=a(26550),c=a(81322);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let u=function(e){return n.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:5,height:15,fill:"none"},e),r||(r=n.createElement("path",{fill:"#838689",d:"M5 0 1.013 15H0L3.987 0z"})))},p=({price:e=0,currency:t,oldPrice:a=0,slashPeriod:r,periodText:n,periodTextAlign:d="left",disabled:p=!1,className:m="",theme:h="light",discountPeriod:g,template:f="row",showSaveLabel:b=!1,color:x="cyan",plansType:_="storage",plansVersion:v="1.0.0",hasPlanWithOldPrice:y=!1,textAfterPrice:w=""})=>{let{t:j}=(0,c.useT)();e=e%1==0?e:e.toFixed(2),a=a%1==0?a:a.toFixed(2);let N=(Number(e)+"").split("."),P="00";N.length>1&&1===(P=N[1].slice(0,2)).length&&(P+="0");let C=e%1==0?e+"":Math.floor(e).toString(),k=(Number(a)+"").split("."),S="00";k.length>1&&1===(S=k[1].slice(0,2)).length&&(S+="0");let E=a%1==0?a+"":Math.floor(a).toString(),A=`${(0,o.X)("plans-prices-wrapper",_,v)} ${m}${"column"===f?" plans-prices-wrapper--column":""}`,T=`plans-prices-inner${"column"===f?" plans-prices-inner--column":""}${"row"===f?" prices-wrapper-inner":""}${"column"===f?" prices-inner-wrapper":""}`,I=`plans-prices-new-price new-price${p?" plans-prices-new-price--disabled":""}${"dark"===h?" theme-dark":""}`,M=`plans-prices-old-price old-price${p?" plans-prices-old-price--disabled":""}${"dark"===h?" theme-dark":""}`,L=`plans-prices-currency-code${"row"===f?" old-price-currency-code":""}`,O=`plans-prices-crossline crossline${p?" plans-prices-crossline--disabled":""}`,D=`plans-prices-slash slash${p?" plans-prices-slash--disabled":""}${"dark"===h?" theme-dark":""}`,R=`plans-prices-period-text price-period-text${p?" plans-prices-period-text--disabled":""}${"dark"===h?" theme-dark":""} ${d?"plans-prices-period-text--align-"+d:""}`,F=`plans-prices-slash-period${p?" plans-prices-slash-period--disabled":""}${"dark"===h?" theme-dark":""}`,$={"--save-label-color":l.COLORS[x]?.mainColor||"#17bed0","--save-label-background":l.COLORS[x]?.lightShade||"#e0f7fa"},B=()=>a&&a!==e?(0,s.jsxs)("span",{className:M,children:[(0,s.jsx)("span",{className:"plans-prices-value old-price-value",children:E}),a%1!=0&&(0,s.jsxs)("span",{className:"plans-prices-cents old-price-cents",children:[".",S]}),(0,s.jsx)("span",{className:L,children:i.signToCurrency[t]}),(0,s.jsx)("div",{className:O})]}):null,U=()=>r?(0,s.jsx)("span",{className:F,children:r}):null,q=()=>n?(0,s.jsx)("div",{className:R,children:n.replace("%limited_discount_period%",30*g)}):null,z=()=>b?(0,s.jsx)("div",{className:"plans-prices-save-label",style:$,children:j("pricing_page_save_label","Save %discount% %currency%",{discount:a-e,currency:i.signToCurrency[t]})}):null;return"row"===f?e?(0,s.jsxs)("div",{className:A,children:[b&&a-e>0?q():null,(0,s.jsxs)("div",{className:T,children:[(0,s.jsxs)("span",{className:I,children:[(0,s.jsx)("span",{className:"plans-prices-value",children:C}),e%1!=0&&(0,s.jsxs)("span",{className:"plans-prices-cents new-price-cents",children:[".",P]}),(0,s.jsx)("span",{className:L,children:i.signToCurrency[t]})]}),a&&a!==e?(0,s.jsx)("span",{className:D,children:"/"}):null,B(),U()]}),a-e>0?z():null,b&&a-e>0?null:q()]}):(0,s.jsx)("div",{className:A,children:(0,s.jsx)("div",{className:"plans-prices-center-align",children:(0,s.jsx)("span",{className:I,children:"-"})})}):"column"===f?(()=>{if(!e)return null;
1let r={1:{whole:181,decimal:89,currency:52,wholeMobile:161,decimalMobile:81,currencyMobile:52,wholeTablet:181,decimalTablet:89,currencyTablet:52},2:{whole:140,decimal:68,currency:44,wholeMobile:141,decimalMobile:75,currencyMobile:52,wholeTablet:125,decimalTablet:62,currencyTablet:40},3:{whole:115,decimal:52,currency:35,wholeMobile:121,decimalMobile:29,currencyMobile:35,wholeTablet:92,decimalTablet:46,currencyTablet:32}}[C.length]||{whole:80,decimal:40,currency:30,wholeMobile:80,decimalMobile:40,currencyMobile:30,wholeTablet:80,decimalTablet:40,currencyTablet:30},n={"--price-font-size":`${r.whole}px`,"--price-font-size-mobile":`${r.wholeMobile}px`,"--price-font-size-tablet":`${r.wholeTablet}px`,"--decimal-font-size":`${r.decimal}px`,"--decimal-font-size-mobile":`${r.decimalMobile}px`,"--decimal-font-size-tablet":`${r.decimalTablet}px`,"--currency-font-size":`${r.currency}px`,"--currency-font-size-mobile":`${r.currencyMobile}px`,"--currency-font-size-tablet":`${r.currencyTablet}px`};return(0,s.jsxs)("div",{className:A,children:[b&&a-e>0?q():null,(0,s.jsxs)("div",{className:T,children:[B(),(0,s.jsxs)("span",{className:I,style:n,children:[(0,s.jsx)("span",{className:"plans-prices-value-whole new-price-value",children:C}),e%1!=0&&(0,s.jsxs)("span",{className:"plans-prices-value-decimal new-price-value-decimal",children:[".",P]}),(0,s.jsx)("span",{className:"plans-prices-currency-code-large new-price-currency-code",children:i.signToCurrency[t]})]}),U()]}),a-e>0?z():null,b&&a-e>0?null:q()]})})():"old-price-above"===f&&e?(0,s.jsxs)("div",{className:`${A} plans-prices-wrapper--old-price-above`,children:[a&&a!==e?(0,s.jsx)("div",{className:`plans-prices-old-price-above theme-${h}`,children:(0,s.jsxs)("span",{children:[a," ",i.signToCurrency[t]]})}):y?(0,s.jsx)("div",{className:`plans-prices-old-price-above theme-${h}`}):null,(0,s.jsxs)("span",{className:`plans-prices-new-price-above theme-${h}`,children:[(0,s.jsx)("span",{className:"plans-prices-new-price-above__value",children:C}),e%1!=0&&(0,s.jsxs)("span",{className:"plans-prices-new-price-above__cents",children:[".",P]}),(0,s.jsxs)("span",{className:"plans-prices-new-price-above__currency-and-period",children:[(0,s.jsx)("span",{children:i.signToCurrency[t]}),w?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u,{children:"/"}),(0,s.jsx)("span",{children:w})]}):null]})]}),n?(0,s.jsx)("div",{className:`plans-prices-bottom-text theme-${h}`,children:q()}):null]}):null}},92369:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r,s=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let i=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"loading-button-white_svg__Layer_1",x:0,y:0,baseProfile:"tiny",overflow:"visible",viewBox:"0 0 45 45"},e),r||(r=s.createElement("path",{fill:"#FFF",d:"m29.2 1-1.5 3.7c7.2 2.1 12.6 8.6 13.2 16.3l3.9-1.4c-1.1-8.7-7.3-16-15.6-18.6"})))}},94168:(e,t,a)=>{"use strict";a.d(t,{C:()=>i,u:()=>l});var r=a(95155),s=a(12115);let n=(0,s.createContext)(null);function i({handleExitIntent:e,children:t}){return(0,r.jsx)(n.Provider,{value:{handleExitIntent:e},children:t})}function l(){return(0,s.useContext)(n)??{handleExitIntent:()=>{}}}},95513:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});var r=a(95155),s=a(16442),n=a(39612);let i=({title:e=n.B.title,shortDescription:t=n.B.shortDescription,longDescription:a=n.B.longDescription,readMoreText:i=n.B.readMoreText,images:l=n.B.images,showReadMore:o=!0,sectionClassName:c})=>(0,r.jsx)("section",{className:`section ${c||""}`,children:(0,r.jsx)("div",{className:"align-container",children:(0,r.jsx)(s.A,{title:e,shortDescription:t,longDescription:a,readMoreText:i,images:l,showReadMore:o})})})},95913:()=>{},95925:(e,t,a)=>{"use strict";a.d(t,{qA:()=>i,t6:()=>l});var r=a(90929),s=a(4007),n=a(41252);let i=(e,t,a)=>{var i=t.products,l=[];for(var o in i){var c=n.productNameMap[i[o]].long;if(i[o]==s.CUSTOM4TB_PLAN_ID&&(c=c+" "+2*(e&&e.planparams&&e.plan
1params.storage||0)+" "+a("TB")),i[o]===r.ADDITIONAL_TRAFFIC_ID){var d=e&&e.planparams&&e.planparams.additionaltraffic||0;c=c.replace("%amount%",d*r.TB_PER_TRAFFIC_COUNT+" "+a("TB"))}l.push(c)}return l.join(" + ")},l=(e,t)=>{let a=String(e).trim().split(",");if(a.length){if(1==a.length)return n.productNameMap[String(a)].long;let e=[];for(var r=0;r<a.length;r++)e.push(n.productNameMap[a[r]].long);return e.join(" + ")}return""}},95988:()=>{},96328:()=>{},97745:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>P});var r,s=a(95155),n=a(12115),i=a(35734),l=a(12035),o=a(4474),c=a(42497),d=a(77175),u=a(72745),p=a(76800),m=a(38739),h=a(63915);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let f=function(e){return n.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),r||(r=n.createElement("path",{fill:"#fff",fillOpacity:.75,fillRule:"evenodd",d:"M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16m-1-22a1 1 0 1 1 2 0v5h5a1 1 0 1 1 0 2h-5v5a1 1 0 1 1-2 0v-5h-5a1 1 0 1 1 0-2h5z",clipRule:"evenodd"})))};var b=a(81322),x=a(40381),_=a(90426),v=a(99967),y=a(48233);let w={sectionHeadline:{title:"",subtitle:""},titleQuestion:{t_text:"home_carousel_title_question",t_default:"Easy to manage?"},title:{t_text:"home_carousel_title_answer",t_default:"For sure."},subHeaderText:"",slides:[{image:{src:o.w4+"images/animated-home/carousel-slides/[email protected]",width:2360,height:1160},imageMobile:{src:o.w4+"images/animated-home/carousel-slides/1-m.jpg",width:1600,height:2400},backgroundColor:"#F1FBFF",nameColor:"#3CA7F8",name:{t_text:"carousel_slide_category_1",t_default:"ACCESS & FLEXIBILITY"},title:{t_text:"carousel_slide_title_1",t_default:"Access from anywhere"},description:{t_text:"carousel_slide_title_description_1",t_default:"On a laptop, p
1hone, or tablet. From the city, beach, or the savanna."},learnMoreLinkText:{t_text:"learn_more",t_default:"Learn more"},learnMoreLinkSrc:"#",imagePosition:"bottom",mobileImagePosition:"bottom",imageAspectRatio:"1180 / 580",mobileImageAspectRatio:"1600 / 2400",slideAspectRatio:"1 / 0.64607",mobileSlideAspectRatio:"1 / 1.68"},{image:{src:o.w4+"images/animated-home/carousel-slides/[email protected]",width:2260,height:1160},imageMobile:{src:o.w4+"images/animated-home/carousel-slides/2-m.jpg",width:1600,height:2400},backgroundColor:"#F4F4F5",nameColor:"#9191A8",name:{t_text:"carousel_slide_category_2",t_default:"SHARING & COLLABORATION"},title:{t_text:"carousel_slide_title_2",t_default:"Send files instantly"},description:{t_text:"carousel_slide_title_description_2",t_default:"Share files and folders with anyone â fast, easy, and secure."},learnMoreLinkText:{t_text:"learn_more",t_default:"Learn more"},learnMoreLinkSrc:"#",imagePosition:"bottom",mobileImagePosition:"bottom",imageAspectRatio:"1180 / 580",mobileImageAspectRatio:"1600 / 2400",slideAspectRatio:"1 / 0.64607",mobileSlideAspectRatio:"1 / 1.68"},{image:{src:o.w4+"images/animated-home/carousel-slides/[email protected]",width:2060,height:1160},imageMobile:{src:o.w4+"images/animated-home/carousel-slides/3-m.jpg",width:1600,height:2400},backgroundColor:"#F1FFFB",nameColor:"#0BA699",name:{t_text:"carousel_slide_category_3",t_default:"CAPACITY & SPEED"},title:{t_text:"carousel_slide_title_3",t_default:"Big files? No big deal"},description:{t_text:"carousel_slide_title_description_3",t_default:"Store files of any size. Enjoy unlimited speed for uploads and downloads."},learnMoreLinkText:{t_text:"learn_more",t_default:"Learn more"},learnMoreLinkSrc:"#",imagePosition:"bottom",mobileImagePosition:"bottom",imageAspectRatio:"1180 / 580",mobileImageAspectRatio:"1600 / 2400",slideAspectRatio:"1 / 0.64607",mobileSlideAspectRatio:"1 / 1.68"},{image:{src:o.w4+"images/animated-home/carousel-slides/[email protected]",width:1858,height:1160},imageMobile:{src:o.w4+"images/animated-home/carousel-slides/4-m-an.jpg",width:1600,height:2400},imageMobileApple:{src:o.w4+"images/animated-home/carousel-slides/4-m-ip.jpg",width:1600,height:2400},backgroundColor:"#FBF6F0",nameColor:"#D2894E",name:{t_text:"carousel_slide_category_4",t_default:"STORAGE FREEDOM"},title:{t_text:"carousel_slide_title_4",t_default:'No more "Storage full" warnings'},description:{t_text:"carousel_slide_title_description_4",t_default:"Free up room on your device without saying goodbye to what matters."},learnMoreLinkText:{t_text:"learn_more",t_default:"Learn more"},learnMoreLinkSrc:"#",imagePosition:"bottom",mobileImagePosition:"bottom",imageAspectRatio:"1180 / 580",mobileImageAspectRatio:"1600 / 2400",slideAspectRatio:"1 / 0.64607",mobileSlideAspectRatio:"1 / 1.68"},{image:{src:o.w4+"images/animated-home/carousel-slides/[email protected]",width:2360,height:1160},imageMobile:{src:o.w4+"images/animated-home/carousel-slides/5-m.jpg",width:1600,height:2400},backgroundColor:"#EFF8FF",nameColor:"#1885FF",name:{t_text:"carousel_slide_category_5",t_default:"AUTO-BACKUP & SYNC"},title:{t_text:"carousel_slide_title_5",t_default:"Never lose a file again"},description:{t_text:"carousel_slide_title_description_5",t_default:"Set it, forget it â your files update automatically."},learnMoreLinkText:{t_text:"learn_more",t_default:"Learn more"},learnMoreLinkSrc:"#",imagePosition:"bottom",mobileImagePosition:"bottom",imageAspectRatio:"1180 / 580",mobileImageAspectRatio:"1600 / 2400",slideAspectRatio:"1 / 0.64607",mobileSlideAspectRatio:"1 / 1.68"}]},j=1180,N=({slideContent:e,cropSlideImages:t,animate:a,slides:r=[],slideIndex:i=0})=>{let{t:o}=(0,b.useT)(),[g,w]=(0,n.useState)(!1),j=(0,n.useRef)(null);(0,n.useEffect)(()=>{w(!!(0,x.A)())},[]);let N=(0,v.useDispatch)(),P=e.imagePosition||"bottom",C=e.mobileImagePosition||"bottom",k={left:"flex-start",right:"flex-end",center:"center"},S=e=>k[e]||e,{scrollYProgress:E}=(0,c.L)({target:j,offset:["start end","end start"]}),A=(0,d.z)((0,u.G)(E,[0,.24],a?[60,0]:[0,0]),{stiffness:150,damping:20,mass:.5}),T=e=>{N((0,y.GR)({modalId:"CarouselGalleryModal",slides:r,selectedIndex:e}))};return(0,s.jsx)(p.P.div,{className:`carousel-slide-wrapper carousel-slide-image-position-${P} carousel-slide-mobile-image-position-${C}`,style:{"--desktop-bg-color":e.backgroundColor,"--mobile-bg-color":e.backgroundColorMobile||e.backgroundColor,"--desktop-title-color":e.titleColor,"--mobile-title-color":e.titleColorMobile||e.titleColor,"--desktop-title-font-size":e.titleFontSize,"--desktop-title-font-we
1ight":e.titleFontWeight,"--desktop-title-line-height":e.titleLineHeight,"--desktop-title-opacity":e.titleOpacity,"--mobile-title-font-size":e.titleFontSizeMobile,"--mobile-title-line-height":e.titleLineHeightMobile,"--desktop-description-color":e.descriptionColor,"--mobile-description-color":e.descriptionColorMobile||e.descriptionColor,"--desktop-description-font-size":e.descriptionFontSize,"--desktop-description-line-height":e.descriptionLineHeight,"--mobile-description-font-size":e.descriptionFontSizeMobile,"--mobile-description-line-height":e.descriptionLineHeightMobile,"--loading-bg-color":e.loadingBackgroundColor},ref:j,children:"between"===P||"between"===C?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(p.P.div,{className:"carousel-text-wrapper carousel-text-header",children:[e.name?(0,s.jsx)(p.P.div,{className:"carousel-slide-name",style:{color:e.nameColor},children:o(e.name)}):null,e.title?(0,s.jsx)(p.P.div,{className:"carousel-title",children:o(e.title)}):null]}),(0,s.jsxs)(p.P.div,{className:`carousel-image-wrapper ${e.imageMobile?"desktop-only":""} carousel-image-between ${t?"crop-slide-images":""}`,style:{y:A},onClick:()=>!!e.enableImagePreview&&T(i),children:[e.showSlideNumber?(0,s.jsx)("span",{className:"slide-number",children:i+1}):null,(0,s.jsx)(_.default,{src:e.image,src_2x:e.image_2x,alt:o(e.title)||o(e.name)||o(e.description)||""}),e.enableImagePreview?(0,s.jsx)(f,{className:"add-sign"}):null]}),e.imageMobile?(0,s.jsx)(p.P.div,{className:`carousel-image-wrapper mobile-only carousel-image-between ${t?"crop-slide-images":""}`,children:(0,s.jsx)(_.default,{src:g&&e.imageMobileApple?e.imageMobileApple:e.imageMobile,src_2x:g&&e.imageMobileApple_2x?e.imageMobileApple_2x:e.imageMobile_2x,alt:o(e.title)||o(e.name)||o(e.description)||""})}):null,e.description?(0,s.jsxs)(p.P.div,{className:"carousel-text-wrapper carousel-text-description",children:[(0,s.jsx)(p.P.div,{className:"carousel-description",children:(0,s.jsx)(m.default,{text:o(e.description),converters:[h.boldConverter,h.italicConverter,h.linkConverter,h.brTagConverter]})}),e.ctaButtons&&(0,s.jsxs)("div",{className:"carousel-slide-cta-buttons",style:{"--slide-cta-justify":S(e.ctaButtonsAlign||"left"),"--slide-cta-text-align":e.ctaButtonsAlign||"left",...e.ctaButtonsAlignMobile&&{"--slide-cta-justify-mobile":S(e.ctaButtonsAlignMobile),"--slide-cta-text-align-mobile":e.ctaButtonsAlignMobile},...e.ctaButtonsPadding&&{"--slide-cta-padding":e.ctaButtonsPadding},...e.ctaButtonsPaddingMobile&&{"--slide-cta-padding-mobile":e.ctaButtonsPaddingMobile}},children:[e.ctaButtons.length>0?(0,s.jsx)(l.default,{ctaButtons:e.ctaButtons}):null,e.ctaButtons.length?null:(0,s.jsx)("span",{className:"link",style:{visibility:"hidden"},children:"\xa0"})]})]}):null]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(p.P.div,{className:"carousel-text-wrapper",children:[e.name?(0,s.jsx)(p.P.div,{className:"carousel-slide-name",style:{color:e.nameColor},children:o(e.name)}):null,e.title?(0,s.jsx)(p.P.div,{className:"carousel-title",children:o(e.title)}):null,e.description?(0,s.jsx)(p.P.div,{className:"carousel-description",children:(0,s.jsx)(m.default,{text:o(e.description),converters:[h.boldConverter,h.italicConverter,h.linkConverter,h.brTagConverter]})}):null,e.ctaButtons&&(0,s.jsxs)("div",{className:"carousel-slide-cta-buttons",style:{"--slide-cta-justify":S(e.ctaButtonsAlign||"left"),"--slide-cta-text-align":e.ctaButtonsAlign||"left",...e.ctaButtonsAlignMobile&&{"--slide-cta-justify-mobile":S(e.ctaButtonsAlignMobile),"--slide-cta-text-align-mobile":e.ctaButtonsAlignMobile},...e.ctaButtonsPadding&&{"--slide-cta-padding":e.ctaButtonsPadding},...e.ctaButtonsPaddingMobile&&{"--slide-cta-padding-mobile":e.ctaButtonsPaddingMobile}},children:[e.ctaButtons.length>0?(0,s.jsx)(l.default,{ctaButtons:e.ctaButtons}):null,e.ctaButtons.length?null:(0,s.jsx)("span",{className:"link",style:{visibility:"hidden"},children:"\xa0"})]})]}),(0,s.jsxs)(p.P.div,{className:`carousel-image-wrapper ${e.imageMobile?"desktop-only":""} ${t?"crop-slide-images":""}`,style:{y:A},onClick:()=>!!e.enableImagePreview&&T(i),children:[e.showSlideNumber?(0,s.jsx)("span",{className:"slide-number",children:i+1}):null,(0,s.jsx)(_.default,{src:e.image,src_2x:e.image_2x,alt:o(e.title)||o(e.name)||o(e.description)||""}),e.enableImagePreview?(0,s.jsx)(f,{className:"add-sign"}):null]}),e.imageMobile?(0,s.jsx)(p.P.div,{className:`carousel-image-wrapper mobile-only ${t?"crop-slide-images":""}`,children:(0,s.jsx)(_.default,{src:g&&e.imageMobileApple?e.imageMobileApple:e.imageMobile,src_2x:g&&e.imageMobileApple_2x?e.imageMobileApple_2x:e.imageMobile_2x,alt:o(e.title)||o(e.name)||o(e.description)||""})}):null]})})},P=({sectionHeadline:e=w.sectionHeadline,title:t=w.title,titleQuestion:a=w.titleQuestion,titleQuestionBackgroun
1dImage:r=null,titleBackgroundImage:n=null,titleFontSize:c=null,titleFontWeight:d=null,titleFontSizeMobile:u=null,titleFontWeightMobile:p=null,titleLineHeightMobile:m=null,titleMaxWidth:h=null,subHeaderText:g=w.subHeaderText,slides:f=w.slides,SlideComponent:x=N,textGradientKey:_="home-h1",visibleSlidesInContent:v=1,minContentOffset:y=24,animate:P=!0,cropSlideImages:C=!1,sectionClassName:k="",slideMaxImageWidth:S=j+"px",slideMaxImageWidthMobile:E=j+"px",imageAspectRatio:A="1180 / 580",slideAspectRatio:T="1 / 0.64607",mobileImageAspectRatio:I="1600 / 2400",mobileSlideAspectRatio:M="1 / 1.68",imageBorderRadius:L="0",navArrowRightSrc:O=o.w4+"images/circle-arrow-light.svg",navArrowWidth:D="48px",navArrowHeight:R="48px",navArrowWidthMobile:F="32px",navArrowHeightMobile:$="32px",navArrowOpacity:B=null,navArrowDisabledOpacity:U=null,boxRadius:q="32px",sectionWrapperClassName:z="",slideTextPadding:H="",slideTextPaddingMobile:W="",slideBorderRadius:V="",justifyTextImageContent:Y="",fillImageWidth:G=!1,sectionBackground:X="",mobileBreakpoint:K=768,headerTextsPadding:Q="",headerTextsPaddingMobile:Z="",ctaButtons:J=[],ctaButtonsAlign:ee="center",ctaButtonsAlignMobile:et=null,ctaButtonsPadding:ea=null,ctaButtonsPaddingMobile:er=null})=>{let{t:es}=(0,b.useT)(),en={left:"flex-start",right:"flex-end",center:"center"},ei=e=>en[e]||e;return(0,s.jsx)("section",{className:`section full-width ${k}`,style:{background:X},children:(0,s.jsxs)("div",{className:`carousel-section-wrapper ${z} ${!C?"no-crop-slide-images":""} ${G?"fill-image-width":""}`,style:{"--slide-max-image-width":S,"--slide-max-image-width-mobile":E||j+"px","--slide-image-aspect-ratio":A,"--slide-slide-aspect-ratio":T,"--slide-mobile-image-aspect-ratio":I,"--slide-mobile-slide-aspect-ratio":M,"--image-border-radius":L,"--box-radius":q,"--slide-text-padding":H,"--slide-text-padding-mobile":W,"--slide-border-radius":V,"--justify-text-image-content":Y,"--visible-slides-in-content":v,"--header-texts-padding":Q,"--header-texts-padding-mobile":Z},children:[e&&(e.title||e.subtitle)?(0,s.jsxs)(s.Fragment,{children:[e.title?(0,s.jsx)("div",{className:"carousel-section-title",children:(0,s.jsx)("span",{className:"text-gradient",style:{...e.titleBackgroundImage&&{backgroundImage:e.titleBackgroundImage}},children:es(e.title)})}):null,e.subtitle?(0,s.jsx)("div",{className:"carousel-section-subtitle text-gradient",style:{...e.subtitleBackgroundImage&&{backgroundImage:e.subtitleBackgroundImage},...e.subtitlePadding&&{padding:e.subtitlePadding}},children:es(e.subtitle)}):null]}):null,(0,s.jsx)(i.A,{SlideComponent:x,title:es(t),animate:P,titleQuestion:es(a),titleQuestionBackgroundImage:r,titleBackgroundImage:n,titleFontSize:c,titleFontWeight:d,titleFontSizeMobile:u,titleFontWeightMobile:p,titleLineHeightMobile:m,titleMaxWidth:h,subHeaderText:es(g),textGradientKey:_,slides:f,contentWidth:j,minContentOffset:y,navArrowRightSrc:O,navArrowWidth:D,navArrowHeight:R,navArrowWidthMobile:F,navArrowHeightMobile:$,navArrowOpacity:B,navArrowDisabledOpacity:U,dragFree:!0,visibleSlidesInContent:v,cropSlideImages:C,mobileBreakpoint:K,headerTextsPadding:Q,headerTextsPaddingMobile:Z}),J&&J.length>0&&(0,s.jsx)("div",{className:"carousel-cta-buttons",style:{"--cta-buttons-justify":ei(ee),"--cta-buttons-text-align":ee,...et&&{"--cta-buttons-justify-mobile":ei(et),"--cta-buttons-text-align-mobile":et},...ea&&{"--cta-buttons-padding":ea},...er&&{"--cta-buttons-padding-mobile":er}},children:(0,s.jsx)(l.default,{ctaButtons:J})})]})})}},99620:()=>{},99986:()=>{}}]);
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.