1import{e as Fe,s as Re,K as ke,l as we,a as Se,L as ne,q as Ie,_ as Oe,b as qe}from"./CjtRbcb9.js";import{o as u,k as P,w as $,e as l,x as Ae,l as Me,j as h,u as e,V as je,O as Be,s as Ee,c as v,n as q,f as x,t as w,C as Ce,_ as le,J as Pe,I as Te,h as A,q as b,K as ye,W as Ge,X as Ve,Y as ge,m as Ne,F as ae,g as se,T as Ue,E as $e,G as ze,B as He,D as We,L as Qe,M as pe,A as Ye,N as Ke,P as Je,R as he,Z as Xe,Q as fe,U as Ze,$ as et}from"./B8LN8Hki.js";import{m as tt,w as ve}from"./CI7eJy7a.js";import{u as nt,F as te}from"./DY5N9k_d.js";import{a as at,F as st}from"./MfkmkYWG.js";import{p as lt}from"./B9qjvVp9.js";import{u as ot,i as be,b as rt,c as it,m as dt,g as ct,a as ut,h as mt}from"./B9Z2z77D.js";import{u as _e}from"./ChcU_EYa.js";import{_ as pt,k as yt}from"./C_Ag6DD8.js";import{N as gt}from"./xL3Q0CdW.js";import{S as _t}from"./q1TQxmXG.js";import{a as ht,u as ft}from"./BhlXqoFs.js";import{a as vt}from"./DEgSDfXW.js";import"./DrkyX6cD.js";const bt={class:"ds-card-link-with-media__text ds-heading-xsmall"},xt=Object.assign({name:"DsCardLinkMedia"},{__name:"card-link-media",props:{link:{type:Object,required:!0,validator:n=>["title","url","openInNewWindow","nuxt"].every(y=>y in n)},mediaHeight:{type:Number,default:264}},setup(n){const{trackingDataProvided:y}=Fe();return(g,F)=>(u(),P(e(Be),{class:"ds-card-link-with-media ds-button-link ds-button-link--chevron ds-button-link--primary ds-button-link--black ds-display-flex",style:{"border-radius":"0",width:"100% !important"},"tracking-data":{"component-name":g.$options.name,text:n.link.title,...e(y)},url:n.link.url,"open-in-new-window":n.link.openInNewWindow,nuxt:n.link.nuxt},{default:$(()=>[l("div",{class:"ds-card-link-with-media__media ds-width-full",style:Ae([{width:"100% !important"},{height:`${n.mediaHeight}px`}])},[Me(g.$slots,"media")],4),l("h4",bt,[h(e(je),{class:"ds-card-link-with-media__text__link","icon-right":{category:"arrows",name:"chevron-right-small"},text:n.link.title},null,8,["text"])])]),_:3},8,["tracking-data","url","open-in-new-window","nuxt"]))}}),kt={class:"ds-media-text-section__grid__image-box ds-grid__col ds-grid__col--12 ds-md-grid__col--6 ds-grid__col--no-gutter"},wt={class:"ds-heading ds-margin-top-12","data-j-title":""},Mt={class:"ds-text ds-margin-top-12","data-j-text":""},xe="DsMediaTextSection",Ct=Object.assign({name:xe},{__name:"media-text-section",props:{left:{type:Boolean,default:!1},image:{type:Object,required:!0},aspectRatio:{type:String,required:!1,default:null},eyebrow:{type:String,required:!1,default:null},title:{type:String,required:!0},text:{type:String,required:!1,default:""},link:{type:Object,required:!0},linkColor:{type:String,required:!1,default:"green"},...Re},emits:["link-clicked"],setup(n){return(y,g)=>(u(),v("div",{class:q(["ds-media-text-section",`ds-theme__${y.theme}`]),"data-j-section":""},[l("div",{class:q([{"ds-md-grid--reverse":!n.left},"ds-grid ds-media-text-section__grid"]),"data-j-grid":""},[l("div",kt,[h(ke,{image:n.image,"aspect-ratio":n.aspectRatio,class:"ds-media-text-section__grid__image-box__image"},null,8,["image","aspect-ratio"])]),l("div",{class:q(["ds-media-text-section__grid__text-box ds-grid__col ds-grid__col--12 ds-md-grid__col--6",{"ds-media-text-section__grid__text-box--left":n.left}])},[n.eyebrow?(u(),P(we,{key:0,text:n.eyebrow,theme:y.theme},null,8,["text","theme"])):x("",!0),l("h2",wt,w(n.title),1),Me(y.$slots,"text",{},()=>[l("p",Mt,w(n.text),1)],!0),n.link?(u(),P(e(Ce),{key:1,"tracking-data":{"component-name":xe,text:n.link.title,title:n.title},url:n.link.url,"open-in-new-window":n.link.openInNewWindow,nuxt:n.link.nuxt,content:n.link.title,"icon-right":{category:"arrows",name:"chevron-right-small"},color:n.linkColor,"lazy-url-endpoint":n.link.lazyUrlEndpoint,class:"ds-margin-top-24","data-j-link":"",onLinkClicked:g[0]||(g[0]=F=>y.$emit("link-clicked"))},null,8,["tracking-data","url","open-in-new-window","nuxt","content","color","lazy-url-endpoint"])):x("",!0)],2)],2)],2))}}),Pt=Ee(Ct,[["__scopeId","data-v-694a6690"]]),Tt={class:"filters"},$t={class:"ds-grid ds-justify-content-center ds-margin-top-48 ds-lg-margin-top-0"},Dt={class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--10 ds-display-flex ds-flex-direction-column ds-position-relative"},Lt={class:"filters__top-bar"},Ft={key:0,class:"ds-grid ds-margin-top-48"},Rt={class:"ds-grid__col ds-grid__col--12"},St={class:"ds-text-small ds-color-grey-450"},It={class:"ds-display-flex ds-align-items-center ds-margin-bottom-12"},Ot={class:"ds-text ds-font-weight-bold"},qt={class:"ds-grid"},At={class:"ds-grid__col"},jt={class:"filters__bottom-bar__tabs"},Bt=["onClick"],Et={key:0,class:"filters__bottom-bar__sort"},Gt={name:"PaymentMethodsFilters"},Vt=Object.assign(Gt,{props:{searchOptions:{type:Array,required:!0},initialFilters:{type:Array,default:()=>[]},sortType:{type:String,required:!0}},emits:["selected","sort","search"],setup(n,{emit:y}){const{localeGlobalContentData:g}=ot(),{labels:F}=_e(),{locale:I}=Pe(),V=Te(),R=y,{getFilterValue:T,normalizeKnowledgeHubFilterOptions:C,setFilter:j,handleSearch:N,filters:f,query:oe,resetFilters:re,removeFilter:B}=nt(R),{trackEvent:Y,filterTrackingOptions:K,filterItemTrackingData:J}=ze(),E="popularity",X="alphabetical",O=A({popularity:E,alphabetical:X}),U=n,D=A(!1),_=A(be(U.initialFilters)),t=b(()=>F.value),ie=b(()=>{const{getUrl:c}=ye(V.routes,I),m=Se(t.value.explanationLink,c);return{title:t.value.learnMore,url:m.url,openInNewWindow:m.openInNewWindow,nuxt:m.nuxt}}),de=b(()=>f.value.find(c=>c.name==="channel")?f.value.length>1:f.value.length),ce=b(()=>{const c=["processingCurrencies","settlementCurrencies","entityRequired","recurring","refunds","partialRefunds","chargeback"];return f.value.length&&f.value.find(m=>c.includes(m.name))}),z=b(()=>{const c=f.value.find(m=>m.name==="country");return c&&c.value.length===1}),S=b(()=>{const c=g.value.globalDataPaymentMethodType,m=g.value.globalDataChannel,p=g.value.globalDataCountry?.filter(ee=>ee.internalName!=="GLOBAL"&&!!ee.name),G=g.value.globalDataCurrency;return{currency:C(G),paymentMethodTypes:C(c),channel:C(m),country:C(p,"countries--unknown")}}),k=b(()=>{const c=[{id:"true",text:t.value.yes,value:"true"},{id:"false",text:t.value.no,value:"false"}];return[{title:t.value.processingCurrency,placeholder:`${t.value.allCurrencies}`,resultsLabel:t.value.currencies,options:S.value.currency,filter:"processingCurrencies",isMultiple:!0,explanation:t.value.processingCurrencyExplanation,labels:{label:t.value.processingCurrency,results:t.value.currencies}},{title:t.value.settlementCurrency,placeholder:`${t.value.allCurrencies}`,resultsLabel:t.value.currencies,options:S.value.currency,filter:"settlementCurrencies",isMultiple:!0,explanation:t.value.settlementCurrenciesExplanation,labels:{label:t.value.settlementCurrency,results:t.value.currencies}},{title:t.value.entityRequired,placeholder:"-",options:c,filter:"entityRequired",explanation:t.value.entityRequiredExplanation,labels:{label:t.value.entityRequired}},{title:t.value.recurring,placeholder:"-",options:c,filter:"recurring",explanation:t.value.recurringExplanation,labels:{label:t.value.recurring}},{title:t.value.refunds,placeholder:"-",options:c,filter:"refunds",explanation:t.value.refundsExplanation,labels:{label:t.value.refunds}},{title:t.value.partialRefunds,placeholder:"-",options:c,filter:"partialRefunds",explanation:t.value.partialRefundsExplanation,labels:{label:t.value.partialRefunds}},{title:t.value.chargeback,placeholder:"-",options:c,filter:"chargeback",explanation:t.value.chargebackExplanation,labels:{label:t.value.chargeback}}]}),H=b(()=>!f.value.find(c=>c.name==="channel"));Ge(f,c=>{R("selected",c),c.name==="country"&&c.length===1&&R("sort",E)}),Ve(()=>{f.value=U.initialFilters,D.value=U.initialFilters.find(c=>k.value.find(m=>m.filter===c.name)),O.value={popularity:E,alphabetical:X}});const W=c=>f.value.find(m=>m.value===c),Q=c=>{R("sort",c.value)},ue=()=>{D.value=!D.value},me=()=>{$e(()=>{re()})},Z=(c,m)=>{j(c,m),Y(J({filterName:c,filterValue:m,isValueId:!0,componentType:K.componentType.paymentMethods,filterType:K.filterType.dropdown,filterOptions:S.value[c],previousFilterState:_.value?.find(p=>p.name===c)?.value||[]})),_.value=be(m.value),R("selected",f.value)};return(c,m)=>(u(),v("div",Tt,[l("div",$t,[l("div",Dt,[h(e(te),{labels:{results:e(t).results,ariaLabelHint:e(t).ariaLabelArrowNavigationHint,clearValueButton:e(t).clearValueButton,submitValueButton:e(t).submitValueButton},placeholder:e(t).searchPaymentMethodsPlaceholder,options:n.searchOptions,value:e(oe),class:"ds-margin-bottom-24",autocomplete:"",onValue:m[0]||(m[0]=p=>e(N)(p))},null,8,["labels","placeholder","options","value"]),l("div",Lt,[h(e(te),{labels:{label:e(t).filterCountryPlaceholder,results:e(t).filterCountryResults,ariaLabelHint:e(t).ariaLabelArrowNavigationHint,clearValueButton:e(t).clearValueButton},icon:{name:"globe",category:"various"},placeholder:e(t).filterCountryPlaceholder,options:e(S).country,value:e(T)("country",!0),multiple:"",search:"",class:"filters__top-bar__filter ds-margin-bottom-12 ds-lg-margin-bottom-0",onValue:m[1]||(m[1]=p=>Z("country",p))},null,8,["labels","placeholder","options","value"]),h(e(te),{labels:{label:e(t).filterPaymentMethodTypePlaceholder},icon:{name:"payment-method-types",category:"products-and-features"},placeholder:e(t).filterPaymentMethodTypePlaceholder,options:e(S).paymentMethodTypes,value:e(T)("paymentMethodTypes"),class:"filters__top-bar__filter ds-margin-left-0 ds-lg-margin-left-24 ds-margin-bottom-12 ds-lg-margin-bottom-0",onValue:m[2]||(m[2]=p=>Z("paymentMethodTypes",p))},null,8,["labels","placeholder","options","value"]),l("button",{type:"button",class:q(["filters__top-bar__filter filters__top-bar__filter-show-more ds-font-weight-bold ds-margin-left-0 ds-lg-margin-left-24",{"ds-button-select--active":e(D),"ds-button-select--selected":e(ce)}]),onClick:m[3]||(m[3]=ge(p=>ue(e(t).filtersTitle),["prevent"]))},[h(e(tt),{size:"24","align-y":"center",class:"ds-margin-right-12"},{default:$(()=>[h(e(ne),{name:"sliders-2",category:"interface"})]),_:1}),Ne(" "+w(e(t).filtersTitle),1)],2)]),e(de)?(u(),v("button",{key:0,t
1ype:"button",class:"ds-button-small filters__reset-button",onClick:ge(me,["prevent"])},[l("span",null,w(e(t).resetFilters),1),h(e(ne),{category:"arrows",name:"refresh-small"})])):x("",!0)])]),h(Ue,{name:"filters__transition"},{default:$(()=>[e(D)?(u(),v("div",Ft,[l("div",Rt,[l("h5",St,w(e(t).filtersTitle),1)]),(u(!0),v(ae,null,se(e(k),p=>(u(),v("div",{key:p.filter,class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--4 ds-lg-grid__col--3 ds-margin-top-24 ds-display-flex ds-flex-direction-column"},[l("div",It,[l("h6",Ot,w(p.title),1),h(e(at),{class:"ds-margin-left-8",description:p.explanation,link:e(ie)},null,8,["description","link"])]),h(e(te),{labels:p.labels,value:e(T)(p.filter,p.isMultiple),options:p.options,multiple:p.isMultiple,placeholder:p.placeholder,onValue:G=>e(j)(p.filter,G)},null,8,["labels","value","options","multiple","placeholder","onValue"])]))),128))])):x("",!0)]),_:1}),l("div",qt,[l("div",At,[l("div",{class:q(["filters__bottom-bar",{"ds-margin-bottom-24":!e(z)}])},[l("div",jt,[l("button",{type:"button",class:q(["ds-button-navigation ds-button-navigation--secondary",{"ds-button-navigation--active":e(H)}]),onClick:m[4]||(m[4]=p=>e(B)("channel"))},w(e(t).allChannels),3),(u(!0),v(ae,null,se(e(S).channel,p=>(u(),v("button",{key:p.id,type:"button",class:q(["ds-button-navigation ds-button-navigation--secondary ds-margin-left-24",{"ds-button-navigation--active":W(p.id)}]),onClick:G=>e(j)("channel",p.id)},w(p.text),11,Bt))),128))]),e(z)?(u(),v("div",Et,[h(e(lt),{label:`${e(t).popularity} ${e(t).alphabetical}`,text:n.sortType===e(O).popularity?e(t).popularity:e(t).alphabetical,options:[{text:e(t).popularity,value:e(O).popularity},{text:e(t).alphabetical,value:e(O).alphabetical}],"align-x":"right",onDropdownItemClicked:Q},null,8,["label","text","options"])])):x("",!0)],2)])])]))}}),Nt=Object.assign(le(Vt,[["__scopeId","data-v-05d111d7"]]),{__name:"PaymentMethodsFilters"}),Ut={class:"payment-method-country-card"},zt={class:"payment-method-country-card__container ds-grid ds-theme__grey"},Ht={class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--6 ds-padding-left-0 ds-padding-right-0 ds-md-padding-right-24"},Wt={class:"payment-method-country-card__image-container"},Qt=["srcset"],Yt=["srcset"],Kt=["srcset"],Jt=["srcset"],Xt=["src","alt"],Zt={class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--6 ds-grid__col--no-gutter payment-method-country-card__text-container"},en={class:"ds-heading-small ds-margin-bottom-8"},tn={class:"ds-margin-bottom-12"},nn=Object.assign({name:"PaymentMethodsCountryCard"},{__name:"PaymentMethodsCountryCard",props:{item:{type:Object,required:!0}},setup(n){const{labels:y}=_e();return(g,F)=>(u(),v("div",Ut,[l("div",zt,[l("div",Ht,[l("div",Wt,[l("picture",null,[l("source",{media:"(max-width: 460px)",srcset:n.item.image.xsmall||n.item.image.small.src},null,8,Qt),l("source",{media:"(max-width: 767px)",srcset:n.item.image.small.src},null,8,Yt),l("source",{media:"(max-width: 1247px)",srcset:n.item.image.medium.src},null,8,Kt),l("source",{media:"(min-width: 1248px)",srcset:n.item.image.large.src},null,8,Jt),l("img",{class:"payment-method-country-card__image-container__image",src:n.item.image.small.src,alt:n.item.image.name||n.item.country.name},null,8,Xt)])])]),l("div",Zt,[l("h3",en,w(n.item.country.name),1),l("p",tn,w(n.item.shortDescription),1),h(e(Ce),{url:n.item.url,content:e(y).findOutMore,"icon-right":{category:"arrows",name:"chevron-right-small"},nuxt:""},null,8,["url","content"])])])]))}}),an=le(nn,[["__scopeId","data-v-8c29c964"]]),sn={key:0,class:"payment-methods-list"},ln=["data-track-text"],on={key:1,class:"ds-grid ds-justify-content-center ds-padding-y-48 ds-md-padding-y-96"},rn={class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--6 ds-display-flex ds-flex-direction-column ds-align-items-center"},dn={class:"ds-heading-xsmall ds-margin-top-24 ds-text-align-center"},cn=150,un=Object.assign({name:"PaymentMethodsList"},{__name:"PaymentMethodsList",props:{countryItem:{type:Object,default:null},items:{type:Array,required:!0},limit:{type:Number,required:!0}},setup(n){const{labels:y}=_e(),g=A(!1),F=A(),I=n,V=b(()=>g.value||!I.limit?I.items:I.items.slice(0,I.limit)),R=()=>{g.value=!g.value,$e(()=>{!g.value&&typeof window<"u"&&window.scrollTo({left:0,top:F.value.offsetTop-cn,behavior:"smooth"})})};return(T,C)=>{const j=an,N=pt;return u(),v("div",{ref_key:"paymentMethodsList",ref:F,class:"ds-padding-bottom-0 ds-md-padding-bottom-48"},[n.items&&n.items.length?(u(),v("div",sn,[h(He,{name:"payment-methods-list__transition",tag:"div",class:"payment-methods-list__group ds-grid ds-margin-bottom-24 padding-0"},{default:$(()=>[n.countryItem?(u(),P(j,{key:"country",item:n.countryItem,class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--8 ds-lg-grid__col--6 ds-padding-y-24"},null,8,["item"])):x("",!0),(u(!0),v(ae,null,se(e(V),f=>(u(),v("div",{key:f.id,class:q([{"payment-methods-list__item-order":n.countryItem},"ds-grid__col ds-grid__col--12 ds-md-grid__col--4 ds-lg-grid__col--3 ds-padding-y-24"])},[h(N,{link:f.url,image:f.image?.original,title:f.name,subtitle:f.paymentMethodTypesNames,description:f.shortDe
1scription},null,8,["link","image","title","subtitle","description"])],2))),128))]),_:1}),n.limit?(u(),v("button",{key:0,type:"button",class:"ds-button-link-icon ds-margin-top-24 ds-margin-bottom-0 ds-lg-margin-bottom-48","data-track-component-name":"payments-methods-list","data-track-text":e(g)?e(y).showLessPaymentMethods:e(y).showMorePaymentMethods,onClick:R},[h(e(ne),{category:"arrows",name:e(g)?"arrow-top-small":"arrow-bottom-small"},null,8,["name"]),l("span",null,w(e(g)?e(y).showLessPaymentMethods:e(y).showMorePaymentMethods),1)],8,ln)):x("",!0)])):(u(),v("div",on,[l("div",rn,[h(e(ne),{category:"ui-and-people",name:"zoom-in",class:"ds-color-grey-1300"}),l("p",dn,w(e(y).noPaymentMethodsFound),1)])]))],512)}}}),mn=le(un,[["__scopeId","data-v-c235aaf6"]]),pn=(n,y)=>{const g=document.querySelector(n);g&&window.scrollTo({left:0,top:g.offsetTop-y,behavior:"smooth"})},yn={class:"header"},gn={class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--8 ds-grid__col--no-gutter"},_n={class:"ds-heading-large"},hn=["data-track-title","data-track-text"],fn={key:0,class:"ds-grid usps"},vn={class:"ds-padding-y-48 ds-md-padding-y-96 ds-theme__grey"},bn={key:0,class:"ds-container ds-margin-bottom-48 ds-md-margin-bottom-96"},xn={class:"ds-grid"},kn={class:"ds-grid__col"},wn={key:1,class:"ds-padding-y-96"},Mn={class:"ds-container ds-grid ds-justify-content-center"},Cn={class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--8"},Pn="popularity",Tn={__name:"index",async setup(n){let y,g;const{dataPageMapper:F}=rt(),I=We(),{getSlug:V}=ut(),{getLocaleIso:R}=ht(),T=Qe(),{locale:C}=Pe(),j=V(T.path),N=R(C.value),{screen:f}=ft(),{onBeforeAdyenData:oe,onAfterAdyenData:re,localeGlobalContentData:B,globalContentData:Y,mappers:K}=it(),J=Te();[y,g]=pe(()=>oe({withRoutes:!0,globalDataContentType:"PagePaymentMethods"})),await y,g();const E=["channel","country","paymentMethodTypes","processingCurrencies","settlementCurrencies","entityRequired","recurring","refunds","partialRefunds","chargeback"],X=["country","processingCurrencies","settlementCurrencies"],{data:O}=([y,g]=pe(async()=>Ke("payment-methods-"+C.value,async()=>{const i=Ie({query:vt,variables:{slug:j,locale:N,preview:Je().public.preview}},{log:!1}),[a]=await Promise.all([i]);if(!a)return null;const d=a.page.items[0],s=a.pagePaymentMethodsGuidesRegion,o=a.pagePaymentMethodsGuidesRegionCountry.items||[],r=a.pagePaymentMethodsDetail;if(!d||!s||!r)return null;const M=F({...d,regions:s,paymentMethodsGuidesRegionCountryData:o},K);try{await mt(M)}catch(L){console.error("[ERROR]: Couldn't handle lazy urls in Payment Methods",L)}return{pageData:M,paymentMethodsDetailData:r?.items||[]}},"$c2pFQN5Y70")),y=await y,g(),y),U=i=>{i.startsWith("/")&&et(i)},D=b(()=>O.value?.paymentMethodsDetailData),_=b(()=>O.value?.pageData),t=b(()=>_.value.content.regionsGalleryItems),ie=b(()=>Y.value?.[C.value]?.paymentsMethodsData),de=b(()=>Y.value?.[C.value]?.paymentMethodCountryCollectionData),ce=(i,a,d)=>{const s=i.find(o=>o.name==="country");return s?s.value.reduce((r,M)=>{const L=a.countryData.find(Le=>Le.country===M);return L?.channels.includes(d)&&r.push(L),r},[]).length>0:a.countryData?.find(o=>o.channels.includes(d))},z=(i,a)=>i.sort((d,s)=>{const o=a.findIndex(M=>(d.sortingId||d.id)===M),r=a.findIndex(M=>(s.sortingId||s.id)===M);return o>=0&&r>=0?o-r:r-o}),S=i=>i.sort((a,d)=>a.name<d.name?-1:a.name>d.name?1:0),k=A(null),H=A(Pn),W=A(""),Q=b(()=>{const{getUrl:i}=ye(J.routes,C),a=ie.value,d=_.value.content.paymentMethods;let s=[];return D.value&&(s=D.value?.map(o=>({pageId:o.sys.id,sortingId:o.sys.id,...a?.find(r=>r.sys.id===o.paymentMethod.sys.id)}))),d.length&&k.value?.length===0?z(s,d):S(s),s?.map(o=>dt(o,i))}),ue=b(()=>{const i=(d,s)=>{const o={additionalText:s.paymentMethodTypesNames,value:s.url};return d.push({id:s.id,text:s.name,...o}),s.submethods.length&&d.push(...s.submethods.map(r=>({id:r.id,text:`${s.name} - ${r.name}`,...o}))),d};return Q.value.reduce(i,[])}),me=b(()=>{const i=k.value.find(s=>s.name==="country");let a=Q.value;const d=({name:s,value:o})=>a.filter(r=>{const M=r.features.find(L=>L.name===s);switch(!0){case!!M:return M.value===o;case s==="searchQuery":return r.name.toLowerCase().includes(o.toLowerCase());case s==="country":return r.countryData?.find(L=>
1o.includes(L[s]));case s==="channel":return ce(k.value,r,o);case Array.isArray(r[s]):return r[s].find(L=>o.includes(L.id));case!r[s]:return!1;default:return(r[s]?.id||r[s])===o}});if(W.value&&(a=d({name:"searchQuery",value:W.value})),k.value.length&&k.value.forEach(s=>{a=d(s)}),i&&i.value.length===1){const s=de.value?.items?.find(o=>o?.country?.sys?.id===i.value[0]);if(s){const o=ct(s.channelOnlineCollection.items,s.channelInPersonCollection.items);a=H.value==="popularity"?z(a,o):S(a)}}return a}),Z=b(()=>{const{getInternalUrl:i}=ye(J.routes,C),a=k.value.find(d=>d.name==="country");if(a&&a.value.length===1){const d=_.value.content.paymentMethodCountryData.find(s=>a.value.includes(s.country.sys.id));return d?{...d,url:i(d?.sys?.id)}:null}return null}),c=b(()=>W.value||k.value.length?0:_.value.content.paymentMethods.length);Ye(()=>{const i=Object.keys(T.query).filter(a=>E.includes(a));k.value=i.map(a=>{const d=T.query[a].split(",").map(s=>G(a,s));return{name:a,value:X.includes(a)?d:d[0]}})});const m=i=>{switch(!0){case i==="country":return B.value.globalDataCountry?.filter(a=>a.internalName!=="GLOBAL");case i==="paymentMethodTypes":return B.value.globalDataPaymentMethodType.value;case i==="processingCurrencies":case i==="settlementCurrencies":return B.value.globalDataCurrency;case i==="channel":return B.value.globalDataChannel;default:return[]}},p=(i,a)=>m(i)?.find(d=>d.sys.id===a)?.name||a,G=(i,a)=>m(i)?.find(d=>d.name===a)?.sys?.id||a,ee=i=>{k.value=i||[];const a=Object.keys(T.query).reduce((s,o)=>(E.includes(o)||(s[o]=T.query[o]),s),{}),d=i.reduce((s,o)=>({...s,[o.name]:Array.isArray(o.value)?o.value.map(r=>p(o.name,r)).join(","):p(o.name,o.value)}),{});I.push({path:T.path,query:{...a,...d}})},De=(i,a)=>{pn(i,a)};return[y,g]=pe(()=>re(O.value)),await y,g(),(i,a)=>{const d=Oe,s=Nt,o=mn;return u(),P(e(Ze),null,{default:$(()=>[h(e(ve),{"with-space":!1,theme:"grey","full-screen":""},{default:$(()=>[h(e(gt),{columns:12,screen:e(f)},{headerContent:$(()=>[l("div",yn,[l("div",gn,[h(e(we),{text:e(_).content.title,icon:{name:"local-payment-methods",category:"products-and-features"},theme:"grey"},null,8,["text"]),l("h1",_n,w(e(_).content.subtitle),1),e(_).content.buttonText?(u(),v("a",{key:0,href:"#paymentMethodsSearch",class:"ds-button ds-button--primary ds-margin-top-24","data-track-component-name":"Hero","data-track-title":e(_).content.title,"data-track-text":e(_).content.buttonText,onClick:a[0]||(a[0]=ge(r=>De("#paymentMethodsSearch",90,e(_).content.buttonText),["prevent"]))},[l("span",null,w(e(_).content.buttonText),1)],8,hn)):x("",!0)])]),e(_).content.usps?(u(),v("div",fn,[(u(!0),v(ae,null,se(e(_).content.usps,(r,M)=>(u(),P(e(st),{key:`usp-${M}`,icon:{name:r.icon.name,category:r.icon.category},title:r.title,class:"ds-grid__col ds-grid__col--12 ds-md-grid__col--6 ds-lg-grid__col--3 ds-margin-top-48 ds-margin-bottom-0"},{default:$(()=>[r.description?(u(),P(d,{key:0,data:r.description},null,8,["data"])):x("",!0)]),_:2},1032,["icon","title"]))),128))])):x("",!0)]),_:1},8,["screen"])]),_:1}),e(D)&&e(D).length?(u(),P(e(ve),{key:0,"with-space":!1},{default:$(()=>[e(k)&&e(Q)?(u(),P(s,{key:0,id:"paymentMethodsSearch","search-options":e(ue),"initial-filters":e(k),"sort-type":e(H),onSearch:U,onSelected:ee,onSort:a[1]||(a[1]=r=>H.value=r)},null,8,["search-options","initial-filters","sort-type"])):x("",!0),e(k)?(u(),P(o,{key:1,"country-item":e(Z),items:e(me),limit:e(c)},null,8,["country-item","items","limit"])):x("",!0)]),_:1})):x("",!0),l("section",vn,[e(_)&&e(_).content.highlight?(u(),v("div",bn,[l("div",xn,[l("div",kn,[h(e(Pt),he(Xe(e(_).content.highlight)),null,16)])])])):x("",!0),e(t).length?(u(),P(e(yt),{key:1,id:"guides",items:e(t).length,screen:e(f),width:{small:264,large:264},title:e(_).content.regionsGalleryTitle,text:e(_).content.regionsGalleryText},{default:$(({index:r})=>[h(e(xt),{link:{title:e(t)[r-1].name,url:e(t)[r-1].url,openInNewWindow:!1,nuxt:!1}},{media:$(()=>[h(e(ke),{image:e(t)[r-1].image},null,8,["image"])]),_:2},1032,["link"])]),_:1},8,["items","screen","title","text"])):x("",!0)]),e(_)&&e(_).content.faq?(u(),v("section",wn,[l("div",Mn,[l("div",Cn,[h(qe,fe(e(_).content.faq,{"show-first-opened":""}),null,16)])])])):x("",!0),e(_)&&e(_).content.callToAction?(u(),P(e(_t),he(fe({key:2},e(_).content.callToAction)),null,16)):x("",!0)]),_:1})}}},Vn=le(Tn,[["__scopeId","data-v-316c9ed6"]]);export{Vn 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.