PageSourceSearch

https://ibank.com.kh/_next/static/chunks/7685-1779eb49269c398d.js

js ibank.com.kh collected 2026-10-02 00:38:48 UTC 28,477 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7685],{688281:(e,a,t)=>{t.d(a,{m:()=>o});var r=t(181439),l=t(408407),s=t(97657),n=t(356817),i=t(545634);let o=e=>{let{value:a,options:t,onValueChange:o,placeholder:d,disabled:c=!1,triggerClassName:u,menuClassName:p,classNameViewport:m,menuAlign:x="left",classNameIcon:f,showCheckIcon:h=!1,id:g,"aria-invalid":b}=e,[v,j]=l.useState(!1);return(0,r.jsx)("div",{className:"relative w-full",children:(0,r.jsxs)(s.l6,{value:a,onValueChange:o,onOpenChange:j,disabled:c,children:[(0,r.jsxs)(s.bq,{id:g,"aria-invalid":b,showArrowIcon:!1,className:(0,i.cn)("flex items-center justify-between px-4 py-2 w-full text-sm font-bold text-neutral-800 bg-brand-inverse border border-neutral-200 rounded-full cursor-pointer transition-colors",c&&"opacity-50 cursor-not-allowed",u),children:[(0,r.jsx)(s.yv,{className:"truncate text-left flex-1",placeholder:d}),(0,r.jsx)(n.b,{color:"var(--color-neutral-500)",className:(0,i.cn)("size-6 pointer-events-none transition-transform",v&&"rotate-180",f)})]}),(0,r.jsx)(s.gC,{position:"popper",sideOffset:8,align:"right"===x?"end":"start",className:(0,i.cn)("z-60 border border-neutral-200",p),classNameViewport:(0,i.cn)("p-2 rounded-lg shadow-lg",m),children:t.length>0?t.map(e=>(0,r.jsx)(s.eb,{value:e.value,showCheckIcon:h,className:(0,i.cn)("w-auto px-6 py-2 text-left text-sm rounded-xl cursor-pointer transition-colors hover:bg-primary-100 focus:bg-primary-100",a===e.value&&"bg-primary-100"),children:e.label},e.value)):(0,r.jsx)("div",{className:"px-4 py-2 text-sm text-neutral-500 text-center",children:"No options"})})]})})}},119610:(e,a,t)=>{t.d(a,{A:()=>f});var r=t(181439),l=t(408407),s=t(311422),n=t(846953),i=t(545634),o=t(360997);function d(e){let{className:a,...t}=e;return(0,r.jsx)("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:(0,i.cn)("mx-auto flex w-full justify-center",a),...t})}function c(e){let{className:a,...t}=e;return(0,r.jsx)("ul",{"data-slot":"pagination-content",className:(0,i.cn)("flex flex-row items-center gap-2",a),...t})}function u(e){let{...a}=e;return(0,r.jsx)("li",{"data-slot":"pagination-item",...a})}function p(e){let{className:a,isActive:t,size:l="icon",...s}=e;return(0,r.jsx)("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:(0,i.cn)((0,o.r)({variant:t?"default":"ghost",size:l}),"rounded-full",a),...s})}function m(e){let{className:a,...t}=e;return(0,r.jsxs)(p,{"aria-label":"Go to previous page",size:"icon",className:(0,i.cn)("gap-1 px-2.5 sm:pl-2.5",a),...t,children:[(0,r.jsx)(s.e,{className:"size-6"}),(0,r.jsx)("span",{className:"sr-only",children:"Previous"})]})}function x(e){let{className:a,...t}=e;return(0,r.jsxs)(p,{"aria-label":"Go to next page",size:"icon",className:(0,i.cn)("gap-1 px-2.5 sm:pr-2.5",a),...t,children:[(0,r.jsx)("span",{className:"sr-only",children:"Next"}),(0,r.jsx)(n.J,{className:"size-6"})]})}let f=e=>{let{currentPage:a,totalItems:t,itemsPerPage:s,onPageChange:n,isLoading:o}=e,[p,f]=(0,l.useTransition)(),h=Math.max(1,Math.ceil(t/s)),g=t>0&&h>1,b=async e=>{o||p||e<1||e>h||e===a||f(async()=>{try{await n(e)}catch(e){console.error("Failed to change page:",e)}})},v=o||p||a<=1,j=o||p||a>=h,w=e=>a=>{a.preventDefault(),b(e)};return g?(0,r.jsx)(d,{className:"w-full",children:(0,r.jsxs)(c,{className:"gap-1",children:[(0,r.jsx)(m,{href:"#",onClick:w(a-1),"aria-disabled":v,tabIndex:v?-1:0,className:(0,i.cn)("gap-0 sm:p-1 hover:bg-transparent",v&&"pointer-events-none opacity-50",!v&&"cursor-pointer")}),(0,r.jsx)(u,{children:(0,r.jsxs)("div",{className:"flex items-center gap-1","aria-label":"Page ".concat(a," of ").concat(h),children:[(0,r.jsx)("span",{className:"w-6 text-center",children:a}),(0,r.jsx)("span",{children:"/"}),(0,r.jsx)("span",{className:"w-6 text-center",children:h})]})}),(0,r.jsx)(x,{href:"#",onClick:w(a+1),"aria-disabled":j,tabIndex:j?-1:0,className:(0,i.cn)("gap-0 sm:p-1 hover:bg-transparent",j&&"pointer-events-none opacity-50",!j&&"cursor-pointer")})]})}):null}},252996:(e,a,t)=>{t.d(a,{SiteSettingsProvider:()=>n,y:()=>i});var r=t(181439),l=t(408407);let s=(0,l.createContext)(void 0);function n(e){let{children:a,siteSettings:t}=e;return(0,r.jsx)(s.Provider,{value:{siteSettings:t},children:a})}function i(){let e=(0,l.useContext)(s);if(void 0===e)throw Error("useSiteSettings must be used within a SiteSettingsProvi
1der");return e.siteSettings}},588133:(e,a,t)=>{t.d(a,{default:()=>h});var r=t(181439),l=t(408407),s=t(674086),n=t(222704),i=t(290633),o=t(811149),d=t(78385),c=t(748580),u=t(545634),p=t(72643);let m=l.forwardRef((e,a)=>{let{className:t,onClear:s,value:n,onChange:i,colorIcon:o="var(--color-brand-link)",classNameInput:m,...x}=e,[f,h]=l.useState(null!=n?n:""),g=void 0!==n,b=g?n:f,v=b.length>0;return(0,r.jsxs)("div",{className:(0,u.cn)("group relative flex h-12 w-full items-center rounded-full border border-transparent bg-brand-inverse text-neutral-900 shadow-none transition-colors md:h-14","hover:border-primary-500 hover:shadow-[0_0_0_1px_rgba(76,99,255,0.7)]","focus-within:border-border-highlight focus-within:shadow-[0_0_0_1px_rgba(76,99,255,1)]",v&&"border-primary-500 shadow-[0_0_0_1px_rgba(76,99,255,0.7)]",t),children:[(0,r.jsx)("span",{className:"flex items-center justify-center pl-4 pr-2 text-primary-500",children:(0,r.jsx)(d.$,{className:"size-6","aria-hidden":"true",color:o})}),(0,r.jsx)(p.p,{ref:a,type:"search",className:(0,u.cn)("h-full flex-1 border-none bg-transparent px-0 pr-4 text-base text-brand-primary outline-none ring-0 ring-offset-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:shadow-none placeholder:font-bold placeholder:text-brand-link caret-primary-500 md:text-base",m),autoComplete:"off",value:b,onChange:e=>{g||h(e.target.value),i&&i(e)},...x}),v&&(0,r.jsx)("button",{type:"button","aria-label":"Clear search",onClick:()=>{if(g||h(""),s&&s(),a&&"function"!=typeof a){var e;null===(e=a.current)||void 0===e||e.focus()}},className:"mr-4 flex size-6 items-center justify-center rounded-full text-neutral-500 transition-colors hover:bg-neutral-100 hover:text-neutral-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",children:(0,r.jsx)(c.q,{className:"size-5","aria-hidden":"true"})})]})});var x=t(84245),f=t(752287);function h(e){let{className:a,placeholder:t,autoFocus:d=!1,colorIcon:c,classNameInput:u,onNavigate:p}=e,h=(0,f.bW)(),g=(0,o.c3)("search"),b=l.useMemo(()=>i.Ikc({searchTerm:i.YjP().refine(e=>""===e.trim()||e.trim().length>=3,{message:g("validation.minLength",{min:3})}).refine(e=>e.trim().length<=120,{message:g("validation.maxLength",{max:120})})}),[g]),{register:v,handleSubmit:j,watch:w,setValue:N,formState:{errors:y}}=(0,s.mN)({mode:"onChange",resolver:(0,n.u)(b),defaultValues:{searchTerm:""}}),k=w("searchTerm"),z=!!y.searchTerm;return(0,r.jsxs)(x.D0,{"data-invalid":z,className:"gap-1 w-full",children:[(0,r.jsx)("form",{onSubmit:j(e=>{let a=e.searchTerm.trim();a&&(h.push("/search?q=".concat(encodeURIComponent(a))),null==p||p())}),className:"w-full",children:(0,r.jsx)(m,{...v("searchTerm"),value:k,onClear:()=>{N("searchTerm","")},placeholder:t||g("placeholder"),className:a,autoFocus:d,colorIcon:c,classNameInput:u,minLength:3,maxLength:120,"aria-invalid":z})}),z&&(0,r.jsx)(x.bg,{errors:[y.searchTerm]})]})}},384986:(e,a,t)=>{t.d(a,{default:()=>c});var r=t(181439),l=t(562536),s=t(668499),n=t(629460),i=t(143488);let o=(0,i.createServerReference)("407d025686c798c113797c1b3a18cc367a8bddc1ec",i.callServer,void 0,i.findSourceMapURL,"fetchSearchPage");var d=t(119610);let c=e=>{let{initialResults:a,initialTotal:t=0,tabsInfo:i=[],showFilters:c=!0,language:u}=e,{items:p,total:m,currentPage:x,isPaginationLoading:f,isFilterLoading:h,isPending:g,containerRef:b,handlePageChange:v,handleFilterChange:j}=(0,n.useListingContainer)({initialItems:a,initialTotal:t,itemsPerPage:12,filterParams:{page:l.GJ.withDefault(1),q:l.tU.withDefault(""),type:l.tU.withDefault("all"),parent:l.tU.withDefault("all")},serverAction:async e=>{let a=await o({search:e.q?String(e.q):void 0,type:e.type&&"all"!==e.type?String(e.type):void 0,parent:e.parent&&"all"!==e.parent?String(e.parent):void 0,page:Number(e.page),itemsPerPage:Number(e.itemsPerPage),language:u});return{success:a.success,items:a.results,total:a.total,error:a.error}}}),w=async e=>{await j({type:"all"!==e?e:"all"})};return(0,r.jsxs)("section",{ref:b,className:"flex flex-col gap-6",children:[(0,r.jsx)(s.default,{results:p,showFilters:c,isPending:f||h||g,onFilterChange:w,total:m,tabsInfo:i}),m>12&&(0,r.jsx)(d.A,{currentPage:x,totalItems:m,itemsPerPage:12,onPageChange:v,isLoading:f})]})}},675659:(e,a,t)=>{t.d(a,{default:()=>d});var r=t(181439),l=t(408407),s=t(811149),n=t(545634),i=t(588133),o=t(752287);let d=e=>{let{isOpen:a,onClose:t}=e,d=(0,o.bW)(),c=(0,s.c3)("search"),u=(0,l.useRef)(null),p=[c("popularSearchCard"),c("popularSearchSavings"),c("popularSearchLoans")];(0,l.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&t()};return a&&setTimeout(()=>{document.addEventListener("mousedown",e)},100),()=>{document.removeEventListener("mousedown",e)}},[a,t]);let m=e=>{d.push("/search?q=".concat(encodeURIComponent(e))),t()};return a?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{ref:u,className:(0,n.cn)("absolute right-0 top-15 z-50 w-full w-105","rounded-3xl bg-brand-inverse p-6 shadow-[0_32px_64px_-12px_rgba(0,0,0,0.12)]","animate-in fade-in-0 slide-in-from-top-2 duration-200"),role:"dialog","aria-modal":"true","aria-label":"Search",children:[(0,r.jsx)(i.default,{placeholder:c("placeholder")||"Search here...",autoFocus:!0,className:"w-full border border-neutral-200 md:h-12 py-3",colorIcon:"var(--color-neutral-500)",classNameInput:"placeholder:text-neutral-300 placeholder:font-medium py-0"}),(0,r.jsxs)("div",{className:"space-y-2 mt-4",children:[(0,r.jsx)("h3",{className:"text-base font-bold text-neutral-800",children:c("popularSearches")}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:p.map(e=>(0,r.jsx)("button",{onClick:()=>m(e),className:"rounded-full cursor-pointer border border-neutral-200 bg-brand-inverse hover:bg-neutral-50 px-3 py-2 text-sm font-bold text-neutral-800",children:e},e))})]})]})}):null}},107097:(e,a,t)=>{t.d(a,{default:()=>n});var r=t(181439),l=t(811149),s=t(545634);function n(e){let{type:a,parent:t,onFilterChange:n,tabsInfo:i=[]}=e,o=(0,l.c3)("search"),d=[{label:o("allContent"),value:"all"},{label:o("productsServices"),value:"products_services"},{label:o("offers"),value:"offer"},{label:o("news"),value:"news"},{label:o("otherPages"),value:"other"}].filter(e=>{var a;if("all"===e.value)return!0;let t=i.find(a=>a.type===e.value);return t&&(null!==(a=t.count)&&void 0!==a?a:0)>0}),c=e=>{n(e)};return(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:d.map(e=>{let t=a===e.value;return(0,r.jsx)("button",{onClick:()=>c(e.value),className:(0,s.cn)("px-3 py-2 rounded-[32px] text-sm font-bold transition-all h-9 min-w-10 flex items-center",t?"bg-primary-100 text-primary border-none":"bg-white text-[#242a37] border border-[#e4e6eb] hover:bg-gray-50"),"aria-pressed":t,children:e.label},e.value)})})}},749424:(e,a,t)=>{t.d(a,{default:()=>w});var r=t(181439),l=t(416762),s=t(408407),n=t(674086),i=t(222704),o=t(290633),d=t(811149),c=t(545634),u=t(360997),p=t(953217),m=t(627765),x=t(72643);function f(e){let{className:a,...t}=e;return(0,r.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,
1c.cn)("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",a),...t})}t(485379);let h=(0,m.F)("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function g(e){let{className:a,align:t="inline-start",...l}=e;return(0,r.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:(0,c.cn)(h({align:t}),a),onClick:e=>{var a,t;e.target.closest("button")||null===(t=e.currentTarget.parentElement)||void 0===t||null===(a=t.querySelector("input"))||void 0===a||a.focus()},...l})}function b(e){let{className:a,...t}=e;return(0,r.jsx)(x.p,{"data-slot":"input-group-control",className:(0,c.cn)("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",a),...t})}(0,m.F)("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});var v=t(688281),j=t(84245);function w(e){let{className:a}=e,t=(0,l.useRouter)(),m=(0,l.useSearchParams)(),x=(0,d.c3)("search"),[h,w]=(0,s.useState)(m.get("parent")||"all"),N=s.useMemo(()=>o.Ikc({searchTerm:o.YjP().refine(e=>""===e.trim()||e.trim().length>=3,{message:x("validation.minLength",{min:3})}).refine(e=>e.trim().length<=120,{message:x("validation.maxLength",{max:120})})}),[x]),{register:y,handleSubmit:k,setValue:z,formState:{errors:S}}=(0,n.mN)({mode:"onChange",resolver:(0,i.u)(N),defaultValues:{searchTerm:m.get("q")||""}});(0,s.useEffect)(()=>{z("searchTerm",m.get("q")||""),w(m.get("parent")||"all")},[m,z]);let C=s.useMemo(()=>[{value:"all",label:x("allCategories")},{value:"personal",label:x("personalBanking")},{value:"business",label:x("businessBanking")}],[x]),_=!!S.searchTerm;return(0,r.jsxs)(j.D0,{"data-invalid":_,className:"gap-1",children:[(0,r.jsxs)("form",{onSubmit:k(e=>{let a=new URLSearchParams(m.toString()),r=e.searchTerm.trim();r?a.set("q",r):a.delete("q"),a.delete("page"),a.delete("type"),t.push("?".concat(a.toString()))}),className:(0,c.cn)("flex items-center gap-6 bg-white border border-neutral-200 rounded-full pl-4 pr-2 md:pl-6 py-2 md:h-14","focus-within:ring-2 focus-within:ring-primary/20",_&&"border-destructive focus-within:ring-destructive/20",a),children:[(0,r.jsxs)(f,{className:"[--radius:100px] border-none shadow-none",children:[(0,r.jsx)(g,{align:"inline-start",className:"px-0 py-2",children:(0,r.jsx)(v.m,{value:h,options:C,onValueChange:e=>{w(e);let a=new URLSearchParams(m.toString());"all"===e?a.delete("parent"):a.set("parent",e),a.delete("page"),t.push("?".concat(a.toString()))},triggerClassName:"text-base font-bold text-neutral-800 py-0 h-auto border-none bg-transparent shadow-none px-0 hover:bg-transparent",menuAlign:"left",menuClassName:"[--radius:0.95rem]"})}),(0,r.jsx)("div",{className:"h-6 w-px mx-2 md:mx-6 bg-neutral-200"}),(0,r.jsx)(b,{...y("searchTerm"),placeholder:x("placeholder"),minLength:3,maxLength:120,"aria-invalid":_,className:"p-0! md:text-base"})]}),(0,r.jsxs)(u.$,{variant:"default",type:"submit",className:"p-1.5 md:px-6 md:py-2 rounded-full font-bold md:h-10",children:[(0,r.jsx)("span",{className:"max-md:hidden text-inherit ",children:x("searchButton")}),(0,r.jsx)("div",{className:"size-6 md:size-5 flex items-center justify-center",children:(0,r.jsx)(p.$,{className:"size-full",color:"white"})})]})]}),_&&(0,r.jsx)(j.bg,{errors:[S.searchTerm],className:"px-4"})]})}},668499:(e,a,t)=>{t.d(a,{default:()=>x});var r=t(181439),l=t(408407),s=t(562536),n=t(811149),i=t(107097),o=t(866073),d=t(900843),c=t(252996),u=t(239822);let p=()=>{let e=(0,n.c3)("search"),a=(0,c.y)(),t=null==a?void 0:a.companyInfo;return(0,r.jsxs)("div",{className:"flex flex-col gap-12 w-full text-neutral-500","aria-live":"polite","aria-label":"No search results found",children:[(0,r.jsx)("h1",{className:"text-h1 font-medium",children:e("noResults")}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("span",{className:"text-base",children:[e("allowUsToSupportYou"),":"]}),(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2 text-base font-normal text-neutral-500",children:[(0,r.jsx)(o.default,{src:"/icons/phone.webp",width:32,height:32,alt:"phone"}),(0,r.jsxs)("span",{children:[e("hotline"),":"]}),(0,r.jsx)(u.default,{href:"tel:".concat(null==t?void 0:t.phone),className:"text-base text-primary-600",children:null==t?void 0:t.phone})]}),(0,r.jsxs)("div",{className:"flex flex-row gap-2 text-base items-center font-normal text-neutral-500",children:[(0,r.jsx)(o.default,{src:"/icons/mail.webp",width:32,height:32,alt:"mail"}),(0,r.jsxs)("span",{children:[e("email"),":"]}),(0,r.jsx)(u.default,{href:"mailto:".concat(null==t?void 0:t.email),className:"text-base text-primary-600",children:null==t?void 0:t.email})]}),(0,r.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,r.jsx)(o.default,{src:"/icons/location.webp",width:32,height:32,alt:"location"}),(0,r.jsx)(u.default,{href:"/bank-locators",className:"text-base text-brand-primary",children:"".concat(e("iBankBranch"),": ").concat(e("checkForOurNearestBranch"))}),(0,r.jsx)("div",{className:"w-5",children:(0,r.jsx)(d.A,{size:20,className:"size-5"})})]})]})]})};function m(e){let{node:a}=e,t=(0,n.c3)("search"),l=a.excerpt?a.excerpt.replace(/<[^>]*>/g,"").trim():"";return(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("h3",{className:"text-h5 font-bold text-neutral-800",children:a.title}),l&&(0,r.jsx)("p",{className:"text-base font-medium text-neutral-500 line-clamp-2",children:l}),(0,r.jsxs)(u.default,{href:a.uri,className:"flex items-center gap-2 text-sm font-bold text-primary transition-colors group w-fit",children:[t("viewMore"),
1(0,r.jsx)(d.A,{className:"size-5",color:"var(--color-primary)"})]})]})}let x=e=>{let{results:a,showFilters:t=!0,isPending:o=!1,onFilterChange:d,total:c=0,tabsInfo:u=[]}=e,x=(0,n.c3)("search"),[f,h]=(0,l.useTransition)(),[g,b]=(0,s.ab)({q:s.tU.withDefault(""),type:s.tU.withDefault("all"),parent:s.tU.withDefault("all"),page:s.GJ.withDefault(1)},{shallow:!0,startTransition:h}),v=g.q?x.rich("foundResultsWithQuery",{count:c,query:g.q,countText:e=>(0,r.jsx)("span",{className:"font-bold",children:e})}):x.rich("foundResults",{count:c,countText:e=>(0,r.jsx)("span",{className:"font-bold",children:e})});return(0,r.jsxs)("div",{className:"flex flex-col gap-6 md:gap-12 w-full",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[c>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("h1",{className:"text-h1 font-medium",children:x("searchResults")}),(0,r.jsx)("p",{className:"text-lg leading-7 font-medium text-neutral-500",children:v})]}),a.length>0&&t&&(0,r.jsx)(i.default,{type:g.type,parent:g.parent,onFilterChange:e=>{b({type:"all"===e?null:e,page:1}),d&&d(e)},tabsInfo:u})]}),(o||f)&&(0,r.jsx)("div",{className:"flex items-center justify-center w-full min-h-[400px]",children:(0,r.jsx)("div",{className:"inline-block w-8 h-8 border-2 border-primary-600 border-t-transparent rounded-full animate-spin","aria-label":"Loading search results","aria-live":"polite"})}),o||f||!(a.length>0)?o||f?null:(0,r.jsx)(p,{}):(0,r.jsx)("div",{className:"flex flex-col gap-6 w-full",children:a.map((e,t)=>(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)(m,{node:e}),t<a.length-1&&(0,r.jsx)("div",{className:"h-px bg-neutral-200 rounded-full"})]},e.id))})]})}},84245:(e,a,t)=>{t.d(a,{D0:()=>c,bg:()=>p,M_:()=>o,dh:()=>u});var r=t(181439),l=t(408407),s=t(627765),n=t(545634),i=t(378473);function o(e){let{className:a,...t}=e;return(0,r.jsx)("div",{"data-slot":"field-group",className:(0,n.cn)("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",a),...t})}let d=(0,s.F)("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function c(e){let{className:a,orientation:t="vertical",...l}=e;return(0,r.jsx)("div",{role:"group","data-slot":"field","data-orientation":t,className:(0,n.cn)(d({orientation:t}),a),...l})}function u(e){let{className:a,...t}=e;return(0,r.jsx)(i.J,{"data-slot":"field-label",className:(0,n.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",a),...t})}function p(e){let{className:a,children:t,errors:s,...i}=e,o=(0,l.useMemo)(()=>{if(t)return t;if(!(null==s?void 0:s.length))return null;let e=Array.from(new Map(s.map(e=>[null==e?void 0:e.message,e])).values());if((null==e?void 0:e.length)==1){var a;return null===(a=e[0])||void 0===a?void 0:a.message}return(0,r.jsx)("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:e.map((e,a)=>(null==e?void 0:e.message)&&(0,r.jsx)("li",{children:e.message},a))})},[t,s]);return o?(0,r.jsx)("div",{role:"alert","data-slot":"field-error",className:(0,n.cn)("text-destructive text-sm font-normal",a),...i,children:o}):null}},72643:(e,a,t)=>{t.d(a,{p:()=>s});var r=t(181439);t(408407);
1var l=t(545634);function s(e){let{className:a,type:t,...s}=e;return(0,r.jsx)("input",{type:t,"data-slot":"input",className:(0,l.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a),...s})}},378473:(e,a,t)=>{t.d(a,{J:()=>n});var r=t(181439);t(408407);var l=t(724902),s=t(545634);function n(e){let{className:a,...t}=e;return(0,r.jsx)(l.b,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...t})}},97657:(e,a,t)=>{t.d(a,{bq:()=>u,eb:()=>m,gC:()=>p,l6:()=>d,yv:()=>c});var r=t(181439);t(408407);var l=t(653934),s=t(610353),n=t(535725),i=t(48444),o=t(545634);function d(e){let{...a}=e;return(0,r.jsx)(l.bL,{"data-slot":"select",...a})}function c(e){let{...a}=e;return(0,r.jsx)(l.WT,{"data-slot":"select-value",...a})}function u(e){let{className:a,size:t="default",children:n,showArrowIcon:i=!0,...d}=e;return(0,r.jsxs)(l.l9,{"data-slot":"select-trigger","data-size":t,className:(0,o.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...d,children:[n,i&&(0,r.jsx)(l.In,{asChild:!0,children:(0,r.jsx)(s.A,{className:"size-4 opacity-50"})})]})}function p(e){let{className:a,children:t,position:s="popper",align:n="center",classNameViewport:i,...d}=e;return(0,r.jsx)(l.ZL,{children:(0,r.jsxs)(l.UC,{"data-slot":"select-content",className:(0,o.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:s,align:n,...d,children:[(0,r.jsx)(x,{}),(0,r.jsx)(l.LM,{className:(0,o.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1",i),children:t}),(0,r.jsx)(f,{})]})})}function m(e){let{className:a,children:t,showCheckIcon:s=!0,...i}=e;return(0,r.jsxs)(l.q7,{"data-slot":"select-item",className:(0,o.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",a),...i,children:[s&&(0,r.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,r.jsx)(l.VF,{children:(0,r.jsx)(n.A,{className:"size-4"})})}),(0,r.jsx)(l.p4,{children:t})]})}function x(e){let{className:a,...t}=e;return(0,r.jsx)(l.PP,{"data-slot":"select-scroll-up-button",className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...t,children:(0,r.jsx)(i.A,{className:"size-4"})})}function f(e){let{className:a,...t}=e;return(0,r.jsx)(l.wn,{"data-slot":"select-scroll-down-button",className:(0,o.cn)("flex cursor-default items-center justify-center py-1",a),...t,children:(0,r.jsx)(s.A,{className:"size-4"})})}},485379:(e,a,t)=>{t.d(a,{T:()=>s});var r=t(181439);t(408407);
1var l=t(545634);function s(e){let{className:a,...t}=e;return(0,r.jsx)("textarea",{"data-slot":"textarea",className:(0,l.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),...t})}}}]);

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.