1import{_ as F}from"./DIpJLXLq.js";import{_ as L}from"./CeYhjmxz.js";import{_ as M,a as A}from"./DNKdWx3b.js";import{d as N,w as b,f as d,g as u,h as s,i as r,F as w,r as D,u as V,c as k,j as x,o as _,k as E,l as O,t as R,_ as T,p as U,a as W,e as q,m as S,n as H}from"./C1jBHEen.js";import{_ as z}from"./DRJOtmld.js";import{u as P}from"./Cc7KaeQI.js";import{f as G}from"./B42tanvJ.js";import{s as $}from"./Dc67U36i.js";import{m as B}from"./Bo-LLvbU.js";import{i as y}from"./Bn0WbPKo.js";import"./4cJ9A_Kr.js";import"./BJ1v9cNz.js";import"./BZxZfRrA.js";import"./CyGXHbgy.js";import"./OVYMRsZ8.js";import"./KPFNJGNi.js";import"./CnWNMTXH.js";import"./MnG2IZ2w.js";import"./DA8qVPtd.js";import"./8D6XoU3u.js";import"./C88Cso_x.js";import"./u89eJZtD.js";import"./GPFxmxAo.js";import"./UlRzPhpZ.js";import"./BpDunsqB.js";import"./Cpj98o6Y.js";import"./Co0_2zRt.js";import"./BfHJiDs_.js";import"./jvo4vhAv.js";import"./DO3iwYW5.js";import"./CmrrKGWD.js";import"./CDggJuk9.js";import"./9auBTMIZ.js";import"./D5LXeOrh.js";import"./BA0-rG8Z.js";import"./sDdvlrqg.js";import"./B_rZ7v4N.js";import"./CV0qUC2-.js";import"./BchBOsY4.js";import"./C_KGUl15.js";import"./BXpchvXV.js";const I={class:"content-space-t-1 content-space-b-5 content-space-b-md-4 text-break bg-light",id:"toc-content-body"},J={class:"container"},K={class:"row g-4"},Q={class:"card card-transition shadow-none rounded-2 border",style:{"aspect-ratio":"20 / 8"}},X={class:"card-body h-100 d-flex align-items-center justify-content-center"},Y=["src","alt","title"],Z={class:"my-2 fw-light text-small card-footnote text-small"},tt={key:1,class:"container content-space-t-1"},et=N({__name:"HelpPaymentMethods",props:{doc:{}},async setup(C){let o,m;const{resolver:h}=([o,m]=b(()=>V()),o=await o,m(),o),{getStories:v}=P(),[{data:f},{data:g}]=([o,m]=b(async()=>Promise.all([k("help:payment-methods/methods",()=>G((e,t)=>v({starts_with:"payment-methods/methods/",per_page:t,page:e,excluding_fields:"body",sort_by:"name:asc"}))),k("help:payment-methods/categories",async()=>{const{data:{stories:e}}=await v({starts_with:"payment-methods/categories/",sort_by:"name:asc"});return e})])),o=await o,m(),o),n=E({...{search:"",category:"",country:"",features:[]}}),i=x(()=>({filters:n})),p=x(()=>{let e=[...f.value??[]];if(n.value.category!=""){const t=(g.value??[]).find(a=>$(a.content.name,"+")==$(n.value.category,"+"));t?e=e.filter(a=>a.content.categories?.includes(t?.uuid)):e=[]}return n.value.country!=""&&(e=e.filter(t=>B(t.content.supported_countries||[],[n.value.country]))),n.value.features.length>0&&(e=e.filter(t=>B(t.content.supported_features||[],n.value.features))),n.value.search!=""&&(e=e.filter(t=>t.content.name?.toLowerCase().includes(n.value.search?.toLowerCase()))),e=e.sort((t,a)=>y(t.content.recommended)&&!y(a.content.recommended)?-1:!y(t.content.recommended)&&y(a.content.recommended)?1:0),e.filter(t=>t.content.enable_help_page===!0||t.content.enable_help_page===void 0)});return U("total",x(()=>p.value.length)),(e,t)=>{const a=M,j=T;return _(),d(w,null,[u(a,{doc:C.doc},null,8,["doc"]),u(z,{categories:s(g)??[],filters:s(i).filters,"onUpdate:filters":t[0]||(t[0]=l=>s(i).filters=l)},null,8,["categories","filters"]),r("div",I,[r("div",J,[r("div",K,[s(p).length>0?(_(!0),d(w,{key:0},D(s(p),l=>(_(),d("div",{key:l.content.name,class:"col-6 col-sm-6 col-md-4 col-lg-3"},[u(j,{class:"text-center card-parent",to:s(h).bySlug(l,{context:"help"})},{default:O(()=>[r("div",Q,[r("div",X,[r("img",{src:l.content.logo_color?.filename,alt:l.content.name,title:l.content.name,style:{"max-height":"40px","max-width":"100%"}},null,8,Y)])]),r("p",Z,[r("small",null,R(l.content.name),1)])]),_:2},1032,["to"])]))),128)):(_(),d("div",tt,[...t[1]||(t[1]=[r("span",{class:"fs-3"},"No payment methods found for the selected filters.",-1)])]))])])])],64)}}}),ot=Object.assign(et,{__name:"HelpPaymentMethods"}),nt={style:{contain:"content"}},zt=N({__name:"[slug]",async setup(C){let o,m;const{getStoryBySlug:h}=P(),f=W().params.slug,g=["help_center_category.featured_articles","help_center_category.featured_blog_posts","help_center_category.featured_case_studies","help_center_category.featured_guides","help_center_category.help_articles","help_center_category.blog_posts","help_center_category.case_studies","help_center_category.guides","help_payment_method.reference","help_center_guide.articles","help___parameters.group"],{data:c}=([o,m]=b(()=>k(`story:help/categories/${f}`,()=>h("help/categories/"+f,{resolve_relations:g.join(",")}),{getCachedData:(n,i)=>i.payload.data[n]??i.static.data[n]})),o=await o,m(),o);if(!c.value)throw q({statusCode:404,message:"Oops! Page not found",fatal:!0});return(n,i)=>{const p=F,e=L,t=A,a=ot;
1return _(),d(w,null,[u(p,{title:s(c).content.name,description:s(c).content.summary},null,8,["title","description"]),u(e,{doc:s(c)},null,8,["doc"]),i[0]||(i[0]=r("div",{id:"menu"},null,-1)),r("main",nt,[s(c).content.component=="help_center_category"?(_(),S(t,{key:0,doc:s(c)},null,8,["doc"])):H("",!0),s(c).content.component=="help_payment_methods"?(_(),S(a,{key:1,doc:s(c)},null,8,["doc"])):H("",!0)])],64)}}});export{zt 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.