PageSourceSearch

https://www.adyen.com/main_nuxt/BOY-bQIV.js

js adyen.com collected 2026-09-24 07:16:36 UTC 11,701 bytes, 1 lines download raw bytes

1import{i as I,g as h,_ as O,h as K,N as re,m as W}from"./CJV5ot2_.js";import{d as C,a as n,f as _,k as c,i as a,e,j as u,c as d,w as l,s as w,t as x,F as P,l as q,m as E,I as ie,u as L,r as X,J as oe,o as ce,y as ue,av as de,p as pe,g as J,aZ as he,n as fe,x as me}from"./CfmJu-Wg.js";import{A as V,a as B,b as be,u as ge,r as Z,c as ye,d as ve,e as _e,f as ke,g as xe}from"./COp701u7.js";import{u as we}from"./3_8o5xFj.js";import{u as Se}from"./DGHql7pl.js";const Re={class:"flex flex-1 justify-between items-center gap-12"},$e=["value","placeholder"],Ce=C({__name:"search-input",props:{value:{},labels:{}},emits:["input","clear"],setup(y){const r=y;return(p,t)=>(n(),_("div",Re,[c("input",{name:"search",value:p.value,type:"search",placeholder:r.labels.search||"What are you looking for?",class:"ds-focusable focus-visible:outline-offset-4 leading-trim flex-1 [&::-webkit-search-cancel-button]:hidden",onInput:t[0]||(t[0]=v=>p.$emit("input",v))},null,40,$e),p.value?(n(),_("button",{key:0,class:"ds-focusable rounded-full text-black-1400 shrink-0 leading-trim flex justify-center items-center",onClick:t[1]||(t[1]=v=>p.$emit("clear"))},[a(e(I),{category:"Interface",name:"CrossCircleFill"})])):u("",!0)]))}}),Ae=Object.assign(Ce,{__name:"LayoutNextSearchInput"}),Ne=C({__name:"search-results-tag",props:{tag:{}},setup(y){return(r,p)=>(n(),d(e(h),{is:"span",variant:"body-emphasized",class:"bg-black-200 p-12 whitespace-nowrap capitalize rounded-m"},{default:l(()=>[w(x(r.tag),1)]),_:1}))}}),Q=Object.assign(Ne,{__name:"LayoutNextSearchResultsTag"}),Ee={class:"flex gap-12 flex-wrap items-center"},Te=C({__name:"search-results-api-explorer",props:{item:{}},setup(y){const r={param:{title:"parameterName",tag:"callType"},endpoint:{title:"endpointName",tag:"endpointMethod"},overview:{title:"apiName"}},p=t=>r[t.type];return(t,v)=>t.item.url?(n(),d(e(O),{key:0,href:t.item.url,class:"flex flex-col gap-10 md:gap-12","tracking-data":{componentName:"SearchApiExplorerResults",text:t.item.parameterName??t.item.endpointName??t.item.apiName,componentStyle:"SearchApiExplorerResults"}},{default:l(()=>[c("p",Ee,[t.item[p(t.item).tag]?(n(),d(Q,{key:0,tag:t.item[p(t.item).tag]},null,8,["tag"])):u("",!0),a(e(h),{is:"span",variant:"body-emphasized"},{default:l(()=>[a(e(V),{attribute:p(t.item).title,hit:t.item},null,8,["attribute","hit"])]),_:1}),t.item.parameterType?(n(),d(e(h),{key:1,is:"span",variant:"body-emphasized"},{default:l(()=>[w(x(t.item.parameterType),1)]),_:1})):u("",!0),t.item.parameterRequired?(n(),d(e(h),{key:2,is:"span",variant:"body-emphasized"},{default:l(()=>[w(x(t.item.parameterRequired),1)]),_:1})):u("",!0)]),a(e(h),{is:"span",variant:"body"},{default:l(()=>[a(e(B),{attribute:"content",hit:t.item},null,8,["hit"])]),_:1}),a(e(h),{is:"p",variant:"body",class:"text-black-1800"},{default:l(()=>[w(x(t.item.url),1)]),_:1})]),_:1},8,["href","tracking-data"])):u("",!0)}}),Le=Object.assign(Te,{__name:"LayoutNextSearchResultsApiExplorer"}),Ie={key:0,class:"flex gap-6"},je=C({__name:"search-results-docs",props:{item:{}},setup(y){return(r,p)=>r.item.url?(n(),d(e(O),{key:0,href:r.item.url,class:"flex flex-col gap-10 md:gap-12","tracking-data":{componentName:"SearchDocsResults",text:r.item.title,componentStyle:"SearchDocsResults"}},{default:l(()=>[a(e(h),{is:"span",variant:"body-emphasized"},{default:l(()=>[a(e(V),{attribute:"title",hit:r.item},null,8,["hit"])]),_:1}),a(e(h),{is:"span",variant:"body"},{default:l(()=>[a(e(B),{attribute:"content",hit:r.item},null,8,["hit"])]),_:1}),a(e(h),{is:"p",variant:"body",class:"text-black-1800"},{default:l(()=>[w(x(r.item.url),1)]),_:1}),r.item.tags&&r.item.tags.length>0?(n(),_("div",Ie,[(n(!0),_(P,null,q(r.item.tags,(t,v)=>(n(),d(Q,{key:`${t}-${v}`,tag:t},null,8,["tag"]))),128))])):u("",!0)]),_:1},8,["href","tracking-data"])):u("",!0)}}),ze=Object.assign(je,{__name:"LayoutNextSearchResultsDocs"}),De={class:"group flex flex-col gap-20 md:gap-24"},Fe={key:0},Ke={key:1,class:"flex"},Oe=C({__name:"search-results",props:{indexName:{},hits:{},query:{},labels:{default:null}},setup(y){const r=s=>y.indexName.includes("help.adyen.com")?`https://help.adyen.com${s.url}`:s?.url,p=s=>s?.path||s?.endpointUrl||r(s)||s?.section?.full_path||"",t=s=>s.h1?"h1":s.title?"title":"",v=s=>s?.pageContent?"pageContent":s?.content||s?._snippetResult?.content?"content":s?._snippetResult?.body_safe?"body_safe":"",T=E(()=>y.indexName.includes("api")),R=E(()=>y.indexName.includes("docs"));return(s,A)=>s.hits?.length&&s.query?(n(),d(e(be),{key:0,class:"flex flex-col gap-20 md:gap-24"},{default:l(({items:k,refineNext:j,isLastPage:z})=>[c("ul",De,[(n(!0),_(P,null,q(k,i=>(n(),_("li",{key:i.objectID,class:"transition-opacity duration-300 group-hover:opacity-(--color-black-1800-opacity) hover:opacity-100"},[r(i)&&!e(T)&&!e(R)?(n(),_("div",Fe,[a(e(O),{href:r(i),class:"flex flex-col gap-12","tracking-data":{componentName:"SearchResults",text:i.title,componentStyle:"SearchResult"}},{default:l(()=>[a(e(h),{variant:"body-emphasized"},{default:l(()=>[a(e(V),{attribute:t(i),hit:i},null,8,["attribute","hit"])]),_:2},1024),v(i)?(n(),d(e(h),{key:0,variant:"body"},{default:l(()=>[a(e(B),{attribute:v(i),hit:i},null,8,["attribute","hit"])]),_:2},1024)):u("",!0),a(e(h),{is:"span",variant:"body",class:"text-black-1800"},{default:l(()=>[w(x(p(i)),1)]),_:2},1024)]),_:2},1032,["href","tracking-data"])])):u("",!0),i.url&&e(R)?(n(),d(ze,{key:1,item:i},null,8,["item"])):u("",!0),i.url&&e(T)?(n(),d(Le,{key:2,item:i},null,8,["item"])):u("",!0)]))),128))]),z?u("",!0):(n(),d(e(K),{key:0,label:s.labels?.showMore??"Show more results","tracking-data":{componentName:"SearchResults",text:s.labels?.showMore??"Show more results"},icon:{category:"Interface",name:"Plus"}
1,type:"button",variant:"secondary",class:"self-start py-20",onClick:j},null,8,["label","tracking-data","onClick"]))]),_:1})):!s.hits?.length&&s.query?(n(),_("div",Ke,[a(e(h),{variant:"body"},{default:l(()=>[c("span",null,x(s.labels?.noResultsWereFoundFor||"No results were found for"),1),A[0]||(A[0]=w(" "+x(" ")+" ")),c("strong",null,x(s.query),1)]),_:1})])):u("",!0)}}),Pe=Object.assign(Oe,{__name:"LayoutNextSearchResults"}),qe={class:"relative h-dvh"},Ve={ref:"header",class:"bg-white flex flex-col"},Be={class:"lg:hidden border-b border-b-black-200 p-24 bg-white flex justify-between"},Ge={class:"flex flex-col gap-10 flex-1"},He={class:"flex items-center gap-12"},Me={key:0,role:"tablist",class:"flex gap-12 overflow-x-auto no-scrollbar px-24 md:px-32 py-24"},Ue=["aria-labelledby"],We={id:"results-container",ref:"results"},Xe=10,Je=C({__name:"search",props:{state:{}},emits:["update:search"],setup(y,{emit:r}){const p=[{substring:"website",labelKey:"website"},{substring:"knowledge",labelKey:"knowledgeHub"},{substring:"investor",labelKey:"productionInvestorsAdyen"},{substring:"help",labelKey:"productionHelpAdyenCom"},{substring:"docs",labelKey:"docsGrav"},{substring:"api",labelKey:"apiExplorer"}],t=r,{locale:v}=ie(),{getLocaleIso:T}=we(),R=E(()=>y.state.search),s=ge(),A=L("ais-search-box"),k=X(),{localeGlobalContentData:j,labels:z}=Se(),i=oe().public.algoliaSearchIndices?.split(","),Y=i.filter(f=>f.includes("website")||f.includes("knowledge")),D=i?.[0]||"",S=X(D),ee=L("header"),te=L("results"),ae=L("tabs"),{height:G}=re(te),N=()=>{A.value?.state?.refine(""),S.value=D,k.value=void 0,t("update:search",!1)},F=E(()=>j.value.search),se=E(()=>T(v.value)),H=f=>{const m=f.toLowerCase(),o=p.find(b=>m.includes(b.substring))?.labelKey;return!o||!F.value?f:F.value[o]??f},M=f=>{f.key!=="Escape"||!R.value||N()},ne=async f=>{if(!i)return;const m=ae.value;if(!m)return;const o=document.activeElement,b=m.findIndex(U=>U?.$el===o);if(b<0)return;let g=-1;if(f.key==="ArrowRight"?g=(b+1)%m.length:f.key==="ArrowLeft"&&(g=(b-1+m.length)%m.length),g===-1)return;f.preventDefault(),await me();const $=m.find((U,le)=>le===g);$&&$.$el.focus()};return ce(()=>{window.addEventListener("keydown",M)}),ue(()=>{window.removeEventListener("keydown",M)}),de(()=>{R.value&&A.value?.state?.query?.length?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow=""}),(f,m)=>R.value&&e(s)?(n(),d(e(W).div,{key:0,variants:{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0}},initial:"initial",animate:"animate",exit:"exit",class:"fixed inset-0 z-500 pointer-events-auto text-black-3200"},{default:l(()=>[a(e(xe),{"index-name":e(D),"search-client":e(s),class:"absolute inset-0"},{default:l(()=>[a(e(Z),{hitsPerPage:Xe,attributesToSnippet:["pageContent:20","content:20","body_safe:20"],snippetEllipsisText:"…"}),a(e(W).div,{variants:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,pointerEvents:"none",transition:{...e(pe),delay:.2,duration:.6}}},class:"absolute inset-0 bg-black-3200-rgba/20 hidden lg:block",onClick:N},null,8,["variants"]),c("div",qe,[c("div",Ve,[c("div",Be,[c("button",{"aria-label":"Close",class:"flex gap-12","data-track-component-name":"Search","data-track-text":"close","data-track-component-style":"Search",onClick:N},[a(e(I),{category:"Arrows",name:"ChevronLeft"}),a(e(h),{variant:"link-l"},{default:l(()=>m[0]||(m[0]=[w(" Search ")])),_:1})]),c("button",{"aria-label":"Close",class:"flex gap-12","data-track-component-name":"Search","data-track-text":"close","data-track-component-style":"Search",onClick:N},[a(e(I),{category:"Interface",name:"Cross"})])]),c("div",{class:J(["flex items-center justify-between gap-24 px-24 md:px-32 pt-24",{"lg:pb-24":!k.value}])},[c("div",Ge,[c("div",He,[a(e(I),{category:"Interface",name:"Search"}),a(e(ye),{ref:"ais-search-box",class:"flex flex-1"},{default:l(({currentRefinement:o,refine:b})=>[a(Ae,{value:o,labels:e(z),onInput:g=>{const $=g.currentTarget?.value;k.value=$,b($)},onClear:()=>{k.value="",b("")}},null,8,["value","labels","onInput","onClear"])]),_:1},512)]),m[1]||(m[1]=c("hr",{class:"w-full h-1 bg-black-200"},null,-1))]),a(e(K),{"aria-label":"Close",icon:{category:"Interface",name:"Cross"},variant:"secondary",class:"hidden lg:flex p-16","tracking-data":{componentName:"Search",text:"close"},onClick:N})],2),k.value?(n(),_("div",Me,[(n(!0),_(P,null,q(e(i),o=>(n(),d(e(ve),{key:o,"index-name":o},{default:l(()=>[e(Y).includes(o)?(n(),d(e(Z),{key:0,facets:["locale"],facetFilters:[`locale:${se.value}`]},null,8,["facetFilters"])):u("",!0),a(e(_e),null,{default:l(({nbHits:b,query:g})=>[a(e(K),{id:`tab-${o}`,ref_for:!0,ref:"tabs",role:"tab",tabindex:o===S.value?0:-1,"aria-selected":o===S.value,"aria-controls":"search-results",label:`${H(o)} ${g?"("+b+")":""}`,variant:o===S.value?"primary":"secondary","tracking-data":{componentName:"Search",text:`${H(o)} ${g?"("+b+")":""}`},mono:"",size:"small",onKeydown:ne,onClick:$=>S.value=o},null,8,["id","tabindex","aria-selected","label","variant","tracking-data","onClick"])]),_:2},1024),o===S.value?(n(),d(e(ke),{key:1},{default:l(({results:{hits:b,query:g}})=>[(n(),d(he,{to:"#results-container"},[a(Pe,{hits:b,query:g,"index-name":o,labels:F.value},null,8,["hits","query","index-name","labels"])]))]),_:2},1024)):u("",!0)]),_:2},1032,["index-name"]))),128))])):u("",!0)],512),c("div",{class:J(["px-24 md:px-32 bg-white grid overflow-hidden transition-[height] duration-300 pb-24 h-full lg:h-(--container-height) max-h-(--max-container-height)",{"grid-rows-[0fr] lg:pb-0":!k.value,"grid-rows-[1fr]":!!k.value}]),style:fe({"--container-height":`${e(G)?e(G)+24:0}px`,"--max-container-height":`calc(100dvh - ${e(ee)?.clientHeight??0}px)`})},[c("div",{id:"search-results",role:"tabpanel","aria-labelledby":`tab-${S.value}`,tabindex:"0",class:"min-h-0 overflow-y-auto"},[c("div",We,null,512)],8,Ue)],6)])]),_:1},8,["index-name","search-client"])]),_:1})):u("",!0)}}),at=Object.assign(Je,{__name:"LayoutNextSearch"});export{at 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.