1import{o as e}from"./chunk.CMxvf4Kt.js";import{K as t,L as n,O as r,R as i,U as a,X as o,i as s,k as c,n as l,r as u,t as d,z as ee}from"./Translate.B7ngJsem.js";import{a as f,i as p,o as m,r as h,t as te}from"./jsx-runtime.BSSrle20.js";import{c as g}from"./ListContext.B_m7MgkN.js";import{E as ne,T as re,a as _,c as v,i as ie,l as ae,n as y,r as b,t as oe,v as se}from"./createSimplePaletteValueFilter.BwvgYFdI.js";import{t as x}from"./Box.BKlSb_H6.js";import{t as ce}from"./ButtonBase.BZYP3O_r.js";import{r as le}from"./react-redux.DaU09I3e.js";import{At as S,Bi as ue,Bt as C,Di as w,Ei as de,Gt as T,Kt as E,Rr as D,Ut as O,Vt as k,Wt as A,Xi as j,Xt as fe,Yt as M,Zi as pe,ci as me,in as N,ji as he,jt as P,si as ge,zr as F,zt as _e}from"./index.DPoiUVjM.js";import{t as ve}from"./NotAuthenticated.CdouImKY.js";import{t as I}from"./clsx.m.Cj1LLHbP.js";import{t as L}from"./ExpandMore.D9KXKyK4.js";var R=e(p()),z=te(),ye=()=>{let e=s(),t=_e(`(max-width:959.95px)`),r=D();return(0,z.jsx)(`div`,{className:`footer`,children:t?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`footer-account`,children:[(0,z.jsx)(`div`,{className:`title`,children:(0,z.jsx)(d,{id:`footer.account.title`})}),!(r!=null&&r.get(n.DeactivateSignUpButton))&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(j,{to:`/register`,children:(0,z.jsx)(d,{id:`footer.account.link.register`})})})}),k[c.country]&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(`a`,{href:k[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(d,{id:`footer.account.link.partner`})})})})]}),(0,z.jsxs)(`div`,{className:`footer-information`,children:[(0,z.jsx)(`div`,{className:`title`,children:(0,z.jsx)(d,{id:`footer.information.title`})}),(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(`a`,{href:E[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(d,{id:`download-tos`})})})}),A[c.country]&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(`a`,{href:A[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(d,{id:`footer.information.link.privacy`})})})}),T[c.country]&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(`a`,{href:T[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(d,{id:`footer.information.link.special-commercial-transactions`})})})}),(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(`a`,{href:C[c.country]||`https://on-demand-rider-docs.deliveryhero.io/`,target:C[c.country]?`_blank`:`_self`,rel:`noopener noreferrer`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(d,{id:`footer.information.link.api-documentation`})})})}),O[c.country]&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(`a`,{href:O[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(d,{id:`footer.information.link.faq`})})})})]}),(0,z.jsxs)(`div`,{className:`footer-logo`,children:[(0,z.jsx)(N,{}),(0,z.jsxs)(`div`,{className:`copyright`,children:[`©`,` `,c.country===a.Cambodia?`pandasend`:e,` `,new Date().getFullYear()]})]})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`footer-logo`,children:[(0,z.jsx)(N,{}),(0,z.jsxs)(`div`,{className:`copyright`,children:[`©`,` `,c.country===a.Cambodia?`pandasend`:e,` `,new Date().getFullYear()]})]}),(0,z.jsxs)(`div`,{className:`footer-account`,children:[(0,z.jsx)(`div`,{className:`title`,children:(0,z.jsx)(d,{id:`footer.account.title`})}),(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(j,{to:`/register`,children:(0,z.jsx)(d,{id:`footer.account.link.register`})})})}),k[c.country]&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(`a`,{href:k[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(d,{id:`footer.account.link.partner`})})})})]}),(0,z.jsxs)(`div`,{className:`footer-information`,children:[(0,z.jsx)(`div`,{className:`title`,children:(0,z.jsx)(d,{id:`footer.information.title`})}),(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(`a`,{href:E[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(d,{id:`download-tos`})})})}),A[c.country]&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(`a`,{href:A[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(d,{id:`footer.information.link.privacy`})})})}),T[c.country]&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(`a`,{href:T[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(d,{id:`footer.information.link.special-commercial-transactions`})})})}),(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(`a`,{href:C[c.country]||`https://on-demand-rider-docs.deliveryhero.io/`,target:C[c.country]?`_blank`:`_self`,rel:`noopener noreferrer`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(d,{id:`footer.information.link.api-documentation`})})})}),O[c.country]&&(0,z.jsx)(`div`,{className:`link`,children:(0,z.jsx)(`a`,{href:O[c.country],target:`_blank`,rel:`noopener noreferrer`,children:(0,z.jsx)(x,{color:`primary.main`,children:(0,z.jsx)(d,{id:`footer.information.link.faq`})})})})]})]})})};function be(){let e=l();return(0,z.jsxs)(`div`,{className:`why-pandago`,children:[(0,z.jsx)(`h2`,{className:`title`,children:(0,z.jsx)(d,{id:`landing.why-pandago.title`})}),c.country===a.Czech?(0,z.jsxs)(`div`,{className:`why-sections`,children:[(0,z.jsxs)(`div`,{className:`why-section`,children:[(0,z.jsx)(`div`,{className:`why-section-illustration _fast ${u()}`,title:`Fast Delivery`}),(0,z.jsx)(`h3`,{className:`why-section-title`,children:(0,z.jsx)(d,{id:`landing.why-pandago.section-2.title`})}),(0,z.jsx)(`p`,{className:`why-section-description`,children:(0,z.jsx)(d,{id:`landing.why-pandago.section-2.description`})})]}),(0,z.jsxs)(`div`,{className:`why-section`,children:[(0,z.jsx)(`div`,{className:`why-section-illustration _reliable ${u()}`,title:`Reliable Delivery Riders`}),(0,z.jsx)(`h3`,{className:`why-section-title`,children:(0,z.jsx)(d,{id:`landing.why-pandago.section-3.title`})}),(0,z.jsx)(`p`,{className:`why-section-description`,children:(0,z.jsx)(d,{id:`landing.why-pandago.section-3.description`})})]}),(0,z.jsxs)(`div`,{className:`why-section`,children:[(0,z.jsx)(`div`,{className:`why-section-illustration _realtime ${u()}`,title:`Real-time Tracking`}),(0,z.jsx)(`h3`,{className:`why-section-title`,children:(0,z.jsx)(d,{id:`landing.why-pandago.section-1.title`})}),(0,z.jsx)(`p`,{className:`why-section-description`,children:e.formatMessage({id:`landing.why-pandago.section-1.description`})})]})]}):(0,z.jsxs)(`div`,{className:`why-sections`,children:[(0,z.jsxs)(`div`,{className:`why-section`,children:[(0,z.jsx)(`div`,{className:`why-section-illustration _realtime ${u()}`,title:`Real-time Tracking`}),(0,z.jsx)(`h3`,{className:`why-section-title`,children:(0,z.jsx)(d,{id:P()?`landing.why-glovo.section-1.title`:`landing.why-pandago.section-1.title`})}),P()?(0,z.jsx)(`p`,{className:`why-section-description`,children:(0,z.jsx)(d,{id:`landing.why-glovo.section-1.description`})}):(0,z.jsx)(`p`,{className:`why-section-description`,children:e.formatMessage({id:`landing.why-pandago.section-1.description`}).replace(`parcel or food`,c.country===a.Philippines?`deliveries`:`parcel or food`)})]}),(0,z.jsxs)(`div`,{className:`why-section`,children:[(0,z.jsx)(`div`,{className:`why-section-illustration _fast ${u()}`,title:`Fast Delivery`}),(0,z.jsx)(`h3`,{className:`why-section-title`,children:(0,z.jsx)(d,{id:P()?`landing.why-glovo.section-2.title`:`landing.why-pandago.section-2.title`})}),(0,z.jsx)(`p`,{className:`why-section-description`,children:(0,z.jsx)(d,{id:P()?`landing.why-glovo.section-2.description`:`landing.why-pandago.section-2.description`})})]}),(0,z.jsxs)(`div`,{className:`why-section`,children:[(0,z.jsx)(`div`,{className:`why-section-illustration _reliable ${u()}`,title:`Reliable Delivery Riders`}),(0,z.jsx)(`h3`,{className:`why-section-title`,children:(0,z.jsx)(d,{id:P()?`landing.why-glovo.section-3.title`:`landing.why-pandago.section-3.title`})}),(0,z.jsx)(`p`,{className:`why-section-description`,children:(0,z.jsx)(d,{id:P()?`landing.why-glovo.section-3.description`:`landing.why-pandago.section-3.description`})})]})]})]})}function B({titleH2:e,titleH3:t,description:n,illustrationClass:r,reversed:i,first:a}){return(0,z.jsxs)(`div`,{className:`text-and-illustration ${i?`reverse`:``} ${a?`first`:``}`,children:[(0,z.jsxs)(`div`,{className:`text`,children:[e&&(0,z.jsx)(`h2`,{className:`title ${u()}`,children:e}),t&&(0,z.jsx)(`h3`,{className:`title ${u()}`,children:t}),(0,z.jsx)(`div`,{className:`description ${u()}`,children:n})]}),(0,z.jsx)(`div`,{className:`illustration ${u()} ${r}`})]})}function xe(){let e=l();return P()?null:(0,z.jsx)(B,{titleH3:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(d,{id:`landing.pay-as-you-go.title1`}),(0,z.jsx)(`br`,{}),(0,z.jsx)(d,{id:`landing.pay-as-you-go.title2`})]}),description:e.formatMessage({id:S(`landing.pay-as-you-go.description`)}).replace(`parcel delivery to food delivery`,c.country===a.Philippines?`food delivery to groceries`:`parcel delivery to food delivery`),illustrationClass:`illustration-pay-as-you-go`,first:!0})}function Se(){let e=l();return(0,z.jsx)(B,{titleH3:(0,z.jsx)(d,{id:S(`landing.whatever-your-business.title`)}),description:e.formatMessage({id:S(`landing.whatever-your-business.description`)}).replace(`We offer same-day delivery on anything from food, groceries and documents to retail products and more.`,c.country===a.Philippines?`We offer same-day delivery on anything from food, groceries, to retail products, and more.`:`We offer same-day delivery on anything from food, groceries and documents to retail products and more.`),illustrationClass:`illustration-whatever-your-business`,reversed:!0})}function Ce(){return(0,z.jsx)(B,{titleH3:(0,z.jsx)(d,{id:S(`landing.fleet.title`)}),description:(0,z.jsx)(d,{id:`landing.fleet.description${c.dhEntity===r.FOODORA?`_foodpanda`:u()}`}),illustrationClass:`illustration-fleet`})}function we(){let[e,t]=R.useState(1),[n,r]=R.useState(void 0);return R.useEffect(()=>{let e=setInterval(()=>{t(e=>e+1>
13?1:e+1)},5e3);return r(e),()=>clearInterval(e)},[]),(0,z.jsx)(B,{titleH2:(0,z.jsx)(d,{id:`landing.how-it-works.title`}),description:(0,z.jsxs)(`div`,{className:`how-it-works-stepper`,children:[(0,z.jsxs)(`div`,{className:`step`,role:`button`,tabIndex:0,onKeyDown:()=>{t(1),n&&clearInterval(n)},onClick:()=>{t(1),n&&clearInterval(n)},"data-testid":`landing-hiw-step-1`,children:[(0,z.jsxs)(`div`,{className:`point-and-line`,children:[(0,z.jsx)(`div`,{className:`point active ${u()}`,children:`1`}),(0,z.jsx)(`div`,{className:`line ${[2,3].includes(e)?`active`:`disabled`} ${u()}`})]}),(0,z.jsxs)(`div`,{className:`content-how-it-works`,children:[(0,z.jsx)(`h3`,{className:`step-title`,children:(0,z.jsx)(d,{id:`landing.how-it-works.step-1.title`})}),(0,z.jsx)(`p`,{className:`step-description`,children:(0,z.jsx)(d,{id:`landing.how-it-works.step-1.description`})})]})]}),(0,z.jsxs)(`div`,{className:`step`,role:`button`,tabIndex:0,onKeyDown:()=>{t(2),n&&clearInterval(n)},onClick:()=>{t(2),n&&clearInterval(n)},"data-testid":`landing-hiw-step-2`,children:[(0,z.jsxs)(`div`,{className:`point-and-line`,children:[(0,z.jsx)(`div`,{className:`point ${[2,3].includes(e)?`active`:`disabled`} ${u()}`,children:`2`}),(0,z.jsx)(`div`,{className:`line ${[3].includes(e)?`active`:`disabled`} ${u()}`})]}),(0,z.jsxs)(`div`,{className:`content-how-it-works`,children:[(0,z.jsx)(`h3`,{className:`step-title`,children:(0,z.jsx)(d,{id:`landing.how-it-works.step-2.title`})}),(0,z.jsx)(`p`,{className:`step-description`,children:(0,z.jsx)(d,{id:`landing.how-it-works.step-2.description`})})]})]}),(0,z.jsxs)(`div`,{className:`step`,role:`button`,tabIndex:0,onKeyDown:()=>{t(3),n&&clearInterval(n)},onClick:()=>{t(3),n&&clearInterval(n)},"data-testid":`landing-hiw-step-3`,children:[(0,z.jsx)(`div`,{className:`point-and-line`,children:(0,z.jsx)(`div`,{className:`point ${[3].includes(e)?`active`:`disabled`} ${u()}`,children:`3`})}),(0,z.jsxs)(`div`,{className:`content-how-it-works`,children:[(0,z.jsx)(`h3`,{className:`step-title`,children:(0,z.jsx)(d,{id:`landing.how-it-works.step-3.title`})}),(0,z.jsx)(`p`,{className:`step-description`,children:(0,z.jsx)(d,{id:`landing.how-it-works.step-3.description`})})]})]})]}),illustrationClass:`illustration-how-it-works-${e}`,reversed:!0})}function Te(e){return ne(`MuiFab`,e)}var V=re(`MuiFab`,[`root`,`primary`,`secondary`,`extended`,`circular`,`focusVisible`,`disabled`,`colorInherit`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`info`,`error`,`warning`,`success`]);m();var Ee=[`children`,`className`,`color`,`component`,`disabled`,`disableFocusRipple`,`focusVisibleClassName`,`size`,`variant`],De=[`root`],Oe=e=>{let{color:t,variant:n,classes:r,size:i}=e,a=se({root:[`root`,n,`size${b(i)}`,t===`inherit`?`colorInherit`:t]},Te,r);return f(f({},r),a)},ke=v(ce,{name:`MuiFab`,slot:`Root`,shouldForwardProp:e=>ae(e)||e===`classes`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${b(n.size)}`],n.color===`inherit`&&t.colorInherit,t[b(n.size)],t[n.color]]}})(_(({theme:e})=>{var t,n;return f(f({},e.typography.button),{},{minHeight:36,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),borderRadius:`50%`,padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(t=(n=e.palette).getContrastText)==null?void 0:t.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:`none`},[`&.${V.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:`small`},style:{width:40,height:40}},{props:{size:`medium`},style:{width:48,height:48}},{props:{variant:`extended`},style:{borderRadius:48/2,padding:`0 16px`,width:`auto`,minHeight:`auto`,minWidth:48,height:48}},{props:{variant:`extended`,size:`small`},style:{width:`auto`,padding:`0 8px`,borderRadius:34/2,minWidth:34,he
1ight:34}},{props:{variant:`extended`,size:`medium`},style:{width:`auto`,padding:`0 16px`,borderRadius:40/2,minWidth:40,height:40}},{props:{color:`inherit`},style:{color:`inherit`}}]})}),_(({theme:e})=>({variants:[...Object.entries(e.palette).filter(oe([`dark`,`contrastText`])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),_(({theme:e})=>({[`&.${V.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Ae=R.forwardRef(function(e,t){let n=ie({props:e,name:`MuiFab`}),{children:r,className:i,color:a=`default`,component:o=`button`,disabled:s=!1,disableFocusRipple:c=!1,focusVisibleClassName:l,size:u=`large`,variant:d=`circular`}=n,ee=h(n,Ee),p=f(f({},n),{},{color:a,component:o,disabled:s,disableFocusRipple:c,size:u,variant:d}),m=Oe(p),{root:te}=m,g=h(m,De);return(0,z.jsx)(ke,f(f({className:y(m.root,i),component:o,disabled:s,focusRipple:!c,focusVisibleClassName:y(m.focusVisible,l),ownerState:p,ref:t},ee),{},{classes:g,children:r}))});function je(){let e=D();return(0,z.jsxs)(`div`,{className:`ready-to-request`,children:[(0,z.jsx)(`div`,{className:`title`,children:(0,z.jsx)(d,{id:`landing.ready-to-request.title`})}),(0,z.jsx)(`div`,{className:`cta`,children:(0,z.jsx)(F,{size:`small`,href:e!=null&&e.get(n.DeactivateSignUpButton)?`/connect`:`/register`,"data-testid":`ready-cta`,children:(0,z.jsx)(d,{id:`landing.ready-to-request.cta`})})}),(0,z.jsx)(`div`,{className:`fab`,children:(0,z.jsx)(Ae,{size:`small`,color:`primary`,"aria-label":`back to top`,"data-testid":`landing-back-to-top`,onClick:()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0},children:(0,z.jsx)(fe,{})})})]})}var Me=v(F)({height:`36px`,minWidth:`154px`,fontFamily:`Roboto, sans-serif`,fontSize:`14px`,fontWeight:500,letterSpacing:`1.25px`,lineHeight:`16px`});function Ne({title:e,description:t}){let i=D(),a=i!=null&&i.get(n.RequestARiderButtonGoesToLoginPage)||i!=null&&i.get(n.DeactivateSignUpButton)?`/connect`:`/register`;return(0,z.jsx)(z.Fragment,{children:(0,z.jsx)(`div`,{className:`content hero-img ${u()}`,children:(0,z.jsxs)(`div`,{dir:`ltr`,className:`content-text ${c.dhEntity===r.FOODY&&`foody`} `,children:[(0,z.jsx)(`h1`,{children:e==null?(0,z.jsx)(d,{id:S(`home.title`)}):e}),(0,z.jsx)(`p`,{className:`description`,children:t==null?(0,z.jsx)(d,{id:S(`home.description`)}):t}),(0,z.jsx)(`div`,{className:`cta`,children:(0,z.jsx)(j,{to:a,"data-testid":`home-cta`,children:(0,z.jsx)(Me,{children:(0,z.jsx)(d,{id:S(`home.cta`)})})})})]})})})}var H=g((0,z.jsx)(`path`,{d:`m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z`}),`ExpandLess`),U=function(e){return e.WHAT_IS_PANDAGO=`what-is-pandago`,e.HOW_SIGN_UP=`how-sign-up`,e.WHERE_DELIVER=`where-we-deliver`,e.WHAT_ITEMS=`what-items`,e.HOW_MUCH=`how-much-it-costs`,e}({}),Pe=e=>`faq.${e}.question`,W=e=>`faq.${e}.answer`,G=e=>`faq.where-we-deliver.answer.${e.toLowerCase()}`,K=`faq.where-we-deliver.answer.locallang`,q=e=>`faq.how-much.answer.${e.toLowerCase()}`,J=`faq.how-much.answer.locallang`,Y=e=>`faq.what-items.answer.${e.toLowerCase()}`,X=e=>`faq.how.sign.answer.${e.toLowerCase()}`,Z=e=>`faq.what.is.pandago.answer.${e.toLowerCase()}`,Q={"what-is-pandago":W(`what-is-pandago`),"how-sign-up":W(`how-sign-up`),"what-items":W(`what-items`)},Fe={[a.Singapore]:{[t.English]:{"where-we-deliver":G(a.Singapore),"how-much-it-costs":q(a.Singapore)}},[a.Malaysia]:{[t.English]:{"where-we-deliver":G(a.Malaysia),"how-much-it-costs":q(a.Malaysia),"what-items":Y(a.Malaysia)},[t.Malay]:{"where-we-deliver":K,"how-much-it-costs":J}},[a.Philippines]:{[t.English]:{"what-is-pandago":Z(a.Philippines),"how-sign-up":X(a.Philippines),"where-we-deliver":G(a.Philippines),"what-items":Y(a.Philippines)},[t.Tagalog]:{"where-we-deliver":K,"how-much-it-costs":J},[t.Cebuano]:{"where-we-deliver":K,"how-much-it-costs":J}},[a.Bahrain]:{},[a.Egypt]:{},[a.HongKong]:{[t.English]:{"what-is-pandago":Z(a.HongKong),"how-sign-up":X(a.HongKong),"where-we-deliver":G(a.HongKong),"what-items":Y(a.HongKong)},[t.ChineseHongKong]:{"where-we-deliver":K,"how-much-it-costs":J}},[a.Jordan]:{},[a.Kuwait]:{},[a.Oman]:{},[a.Pakistan]:{[t.English]:{"where-we-deliver":G(a.Pakistan),"how-much-it-costs":q(a.Pakistan)},[t.UrduRomanized]:{"where-we-deliver":K,"how-much-it-costs":J}},[a.Qatar]:{},[a.Taiwan]:{[t.English]:{"where-we-deliver":G(a.Taiwan),"how-much-it-costs":q(a.Taiwan)},[t.ChineseTaiwan]:{"where-we-deliver":K,"how-much-it-costs":J}},[a.UnitedArabEmirates]:{},[a.Myanmar]:{[t.English]:{"where-we-deliver":G(a.Myanmar),"how-much-it-costs":q(a.Myanmar)},[t.Burmese]:{"where-we-deliver":K,"how-much-it-costs":J}},[a.Bangladesh]:{[t.English]:{"where-we-deliver":G(a.Bangladesh),"how-much-it-costs":q(a.Bangladesh)},[t.Bengali]:{"where-we-deliver":K,"how-much-it-costs":J}},[a.Cambodia]:{},[a.Sweden]:{},[a.Laos]:{},[a.Hungary]:{},[a.Norway]:{},[a.Czech]:{},[a.SaudiArabia]:{},[a.Greece]:{},[a.Cyprus]:{},[a.Poland]:{},[a.Serbia]:{},[a.Romania]:{},[a.Nigeria]:{},[a.Kazakhstan]:{},[a.Italy]:{},[a.Georgia]:{},[a.Bulgaria]:{},[a.Portugal]:{},[a.Morocco]:{},[a.Ukraine]:{},[a.Armenia]:{},[a.BosniaAndHerzegovina]:{},[a.IvoryCoast]:{},[a.Croatia]:{},[a.Kenya]:{},[a.Kyrgyzstan]:{},[a.Moldova]:{},[a.Montenegro]:{},[a.Tunisia]:{},[a.Uganda]:{},[a.Spain]:{},[a.Austria]:{}},Ie=async()=>new Promise(e=>{setTimeout(()=>e([{questionTranslationId:`faq.what-is-pandago.question`,answerTranslationId:`glovo.faq.what.is.glovo.answer`},{questionTranslationId:`faq.what-items.question`,answerTranslationId:`glovo.faq.what-items.answer`},{questionTranslationId:`glovo.faq.who-pays`,answerTranslationId:`glovo.faq.who-pays.answer`}]),0)});function $({question:e,questionTranslationId:t,answer:n,answerTranslationId:r}){var i;let a=c.registrationType,o,s=(i=t==null?e:t)==null?``:i;try{o=btoa(s)}catch(e){o=btoa(encodeURIComponent(s))}let[l,u]=R.useState(!1),f;return r&&(f=r+(r.match(/.*sign-up.*/)?a===ee.NPV?`.npv`:`.pv`:``)),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`dt`,{children:(0,z.jsxs)(`button`,{type:`button`,className:`question`,onClick:()=>u(!l),"aria-controls":o,"aria-expanded":l,children:[(0,z.jsx)(`div`,{className:`question-text`,children:t?(0,z.jsx)(d,{id:t}):e}),(0,z.jsx)(`div`,{className:`expand-button`,children:l?(0,z.jsx)(H,{color:`primary`}):(0,z.jsx)(L,{color:`primary`})})]})}),(0,z.jsx)(`dd`,{id:o,className:I(`answer`,l&&`show`),children:(0,z.jsx)(`p`,{children:r?(0,z.jsx)(d,{id:f}):n})})]})}function Le({question:e,questionTranslationId:t,answer:n,answerTranslationId:r}){let i;try{i=btoa(t||``)}catch(e){i=btoa(encodeURIComponent(t||``))}let[a,o]=R.useState(!1);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`dt`,{children:(0,z.jsxs)(`button`,{type:`button`,className:`question`,onClick:()=>o(!a),"aria-controls":i,"aria-expanded":a,children:[(0,z.jsx)(`div`,{className:`question-text`,children:t?(0,z.jsx)(d,{id:t}):e}),(0,z.jsx)(`div`,{className:`expand-button`,children:a?(0,z.jsx)(H,{color:`primary`}):(0,z.jsx)(L,{color:`primary`})})]})}),(0,z.jsx)(`dd`,{id:i,className:I(`answer`,a&&`show`),children:(0,z.jsx)(`p`,{children:r?(0,z.jsx)(d,{id:r}):n})})]})}function Re({items:e}){let t=le(M),n=Fe[c.country][t]||{};return(0,z.jsxs)(`div`,{className:`faq`,children:[(0,z.jsx)(`div`,{className:`title`,children:(0,z.jsx)(d,{id:`faq.title`})}),e&&(e==null?void 0:e.length)>0?(0,z.jsx)(`dl`,{className:`faq-dl`,children:e.map((e,t)=>{var n,r;return P()?(0,z.jsx)(Le,{questionTranslationId:e.questionTranslationId||e.question,answerTranslationId:e.answerTranslationId||e.answer},(n=e.question)==null?t:n):(0,z.jsx)($,{question:e.question,answer:e.answer},(r=e.question)==null?t:r)})}):(0,z.jsx)(`dl`,{className:`faq-dl`,children:[U.WHAT_IS_PANDAGO,U.HOW_SIGN_UP,U.WHERE_DELIVER,U.WHAT_ITEMS].map(e=>e&&(n[e]||Q[e])&&(0,z.jsx)($,{questionTranslationId:Pe(e),answerTranslationId:n[e]||Q[e]},e))}),(0,z.jsx)(`div`,{className:`title`,children:O[c.country]&&(0,z.jsx)(`div`,{className:`learn-more-button`,children:(0,z.jsx)(`a`,{href:O[c.country],target:`_blank`,rel:`noreferrer`,children:(0,z.jsx)(F,{type:`button`,style:{backgroundColor:`#fff`,border:`1px solid #D70F64`,borderRadius:`3px`,color:`#D70F64`},children:(0,z.jsx)(d,{id:`footer.information.link.learn-more`})})})})})]})}var ze=e=>`${c.strapiBaseUrl}/api/${e}`,Be={heroArea:e=>i.get(ze(`hero-area`),{params:{locale:o[e]}}),faqs:e=>i.get(ze(`faqs`),{params:{locale:o[e]}})};function Ve(){var e,t;let[n,r]=(0,R.useState)(),i=w(ue),a=w(M),o=de();R.useEffect(()=>{o(me(ge.HomePageLoaded))},[o]);let s=async()=>{try{var e,t,n,i;let[o,s]=(await Promise.allSettled([Be.heroArea(a),Be.faqs(a)])).map(e=>e.status===`fulfilled`?e.value:void 0);r({heroArea:o&&{title:(e=o.data)==null||(e=e.data)==null||(e=e.attributes)==null?void 0:e.Title,description:(t=o.data)==null||(t=t.data)==null||(t=t.attributes)==null?void 0:t.Description},faqs:s&&((n=s.data)==null||(n=n.data)==null||(i=n.map)==null?void 0:i.call(n,e=>{var t,n;return{question:e==null||(t=e.attributes)==null?void 0:t.Question,answer:e==null||(n=e.attributes)==null?void 0:n.Answer}}))})}catch(e){r({})}};return R.useEffect(()=>(c.strapiBaseUrl&&s(),P()&&Ie().then(e=>{r({faqs:e})}),()=>{r(void 0)}),[a]),i?(0,z.jsx)(pe,{to:`/request-a-rider`,replace:!0}):c.strapiBaseUrl&&!n?(0,z.jsx)(`div`,{children:(0,z.jsx)(he,{color:`secondary`})}):(0,z.jsxs)(`div`,{className:`home-page`,children:[(0,z.jsx)(ve,{}),(0,z.jsx)(Ne,{title:n==null||(e=n.heroArea)==null?void 0:e.title,de
1scription:n==null||(t=n.heroArea)==null?void 0:t.description}),(0,z.jsx)(be,{}),(0,z.jsx)(xe,{}),(0,z.jsx)(Se,{}),(0,z.jsx)(Ce,{}),(0,z.jsx)(we,{}),(0,z.jsx)(Re,{items:n==null?void 0:n.faqs}),(0,z.jsx)(je,{}),(0,z.jsx)(ye,{})]})}export{Ve as default};
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.