PageSourceSearch

https://www.carrentalchoice.com/_next/static/chunks/2227-b494b3e578e9057d.js

js carrentalchoice.com collected 2026-10-02 14:47:04 UTC 20,468 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2227],{12227:(e,t,r)=>{r.d(t,{LocationPageV2HeroSearchForm:()=>F});var a=r(95155),s=r(12115),l=r(82651),n=r(5565),o=r(32141),i=r(57223),c=r(20853),d=r(98867),u=r(74984),x=r(31621),m=r(21567),p=r(73312),b=r(40472);let h=(0,r(31027).F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(b.b,{ref:t,className:(0,m.cn)(h(),r),...s})});f.displayName=b.b.displayName;let g=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,m.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...s})});g.displayName="Card",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,m.cn)("flex flex-col space-y-1.5 p-6",r),...s})}).displayName="CardHeader",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,m.cn)("text-2xl font-semibold leading-none tracking-tight",r),...s})}).displayName="CardTitle",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,m.cn)("text-sm text-muted-foreground",r),...s})}).displayName="CardDescription";let y=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,m.cn)("p-6 pt-0",r),...s})});y.displayName="CardContent",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,m.cn)("flex items-center p-6 pt-0",r),...s})}).displayName="CardFooter";var j=r(63744);let N=j.bL,v=j.l9,w=s.forwardRef((e,t)=>{let{className:r,align:s="center",sideOffset:l=4,...n}=e;return(0,a.jsx)(j.ZL,{children:(0,a.jsx)(j.UC,{ref:t,align:s,sideOffset:l,className:(0,m.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",r),...n})})});w.displayName=j.UC.displayName;let C=["00:00","00:30","01:00","01:30","02:00","02:30","03:00","03:30","04:00","04:30","05:00","05:30","06:00","06:30","07:00","07:30","08:00","08:30","09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30"],k=e=>{let[t,r]=e.split(":").map(Number);return"".concat(t%12||12,":").concat(r.toString().padStart(2,"0")," ").concat(t>=12?"PM":"AM")},S=e=>{let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(r,"-").concat(a)},D=["January","February","March","April","May","June","July","August","September","October","November","December"];function A(e){let t=new Date;return t.setDate(t.getDate()+e),t.setHours(11,0,0,0),t}function P(e,t){if(!e)return A(t);let[r,a,s]=e.split("-").map(Number);return r&&a&&s?new Date(r,a-1,s,11,0,0,0):A(t)}function T(e){let{selectedDate:t,onDateChange:r,selectedTime:l,onTimeChange:n,minDate:o}=e,[i,c]=(0,s.useState)(t.getMonth()),[d,u]=(0,s.useState)(t.getFullYear());(0,s.useEffect)(()=>{c(t.getMonth()),u(t.getFullYear())},[t]);let x=new Date(o);x.setHours(0,0,0,0);let p=new Date(d,i,1).getDay(),b=new Date(d,i+1,0).getDate(),h=[];for(let e=0;e<p;e++)h.push((0,a.jsx)("div",{className:"h-10"},"empty-".concat(e)));for(let e=1;e<=b;e++){let s=new Date(d,i,e);s.setHours(0,0,0,0);let l=s<x,n=t.toDateString()===s.toDateString();h.push((0,a.jsx)("div",{onClick:()=>!l&&r(s),className:(0,m.cn)("h-10 flex items-center justify-center rounded-lg transition-colors cursor-pointer",l&&"text-gray-300 cursor-not-allowed",!l&&"text-gray-900 hover:bg-gray-200",n&&"bg-blue-500 text-white font-semibold hover:bg-blue-600"),children:e},e))}return(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{0===i?(c(11),u(d-1)):c(i-1)},className:"text-blue-400 hover:text-blue-600 p-1 cursor-pointer",children:"←"}),(0,a.jsxs)("span",{className:"font-semibold text-gray-700",children:[D[i]," ",d]}),(0,a.jsx)("button",{type:"button",onClick:()=>{11===i?(c(0),u(d+1)):c(i+1)},className:"text-blue-400 hover:text-blue-600 p-1 cursor-pointer",children:"→"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-7 text-center text-xs font-medium text-gray-500 mb-2",children:[(0,a.jsx)("span",{children:"SUN"}),(0,a.jsx)("span",{children:"MON"}),(0,a.jsx)("span",{children:"TUE"}),(0,a.jsx)("span",{children:"WED"}),(0,a.jsx)("span",{children:"THU"}),(0,a.jsx)("span",{children:"FRI"}),(0,a.jsx)("span",{children:"SAT"})]}),(0,a.jsx)("div",{className:"grid grid-cols-7 gap-1 text-sm",children:h})]}),(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Time"}
1),(0,a.jsx)("select",{value:l,onChange:e=>n(e.target.value),className:"w-full py-2.5 px-3 rounded-lg border border-gray-200 bg-white text-gray-900 font-medium text-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 outline-none transition-all cursor-pointer",children:C.map(e=>(0,a.jsx)("option",{value:e,children:k(e)},e))})]})]})}let U=["United Kingdom","United States","Canada","Germany","France","Spain","Italy","Australia","Netherlands","Ireland","Belgium","Switzerland","Austria","Portugal","Greece","Sweden","Norway","Denmark","Finland","Poland","Czech Republic","Hungary","Turkey","United Arab Emirates","Singapore","Japan","South Korea","China","Brazil","Argentina","Mexico","South Africa","New Zealand"],z=["18-24","25-29","30-65","66+"],R=[{code:"USD",symbol:"$",name:"US Dollar"},{code:"GBP",symbol:"\xa3",name:"British Pound"},{code:"EUR",symbol:"€",name:"Euro"},{code:"CAD",symbol:"$",name:"Canadian Dollar"},{code:"AUD",symbol:"$",name:"Australian Dollar"},{code:"NZD",symbol:"$",name:"New Zealand Dollar"},{code:"CHF",symbol:"Fr",name:"Swiss Franc"},{code:"AED",symbol:"د.إ",name:"UAE Dirham"}];function F(e){var t,r;let{defaultPickupLocationName:b,defaultPickupLocationId:h,initialPickupDateIso:j,initialDropoffDateIso:C,defaultCurrency:D,defaultDriverCountry:F}=e,[M,L]=(0,s.useState)(()=>h&&b?{Id:h,Name:b}:null),[E,I]=(0,s.useState)(null),[_,H]=(0,s.useState)(!0),[$,B]=(0,s.use
1State)(()=>P(j,1)),[G,J]=(0,s.useState)(()=>P(C,2)),[Z,O]=(0,s.useState)("11:00"),[Y,K]=(0,s.useState)("11:00"),[V,q]=(0,s.useState)(()=>(0,u.f)(P(j,1),-1)),[Q,W]=(0,s.useState)(()=>(function(e){let t=null==e?void 0:e.trim();if(!t)return"United States";let r=U.find(e=>e.toLowerCase()===t.toLowerCase());return null!=r?r:t})(F)),[X,ee]=(0,s.useState)("30-65"),[et,er]=(0,s.useState)(()=>(function(e){let t=(null!=e?e:"").trim().toUpperCase();return R.some(e=>e.code===t)?t:"USD"})(D)),ea=function(e){let t=null==e?void 0:e.trim();return!t||U.some(e=>e.toLowerCase()===t.toLowerCase())?U:[t,...U]}(Q),[es,el]=(0,s.useState)(!1),[en,eo]=(0,s.useState)(!1),[ei,ec]=(0,s.useState)(!1),[ed,eu]=(0,s.useState)(!1),[ex,em]=(0,s.useState)(!1),[ep,eb]=(0,s.useState)(""),[eh,ef]=(0,s.useState)([]),[eg,ey]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=setTimeout(()=>{ep.length>=4?(ey(!0),l.A.get("/api/search?searchTerm=".concat(encodeURIComponent(ep))).then(e=>{var t,r;let a=null!==(r=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.data)&&void 0!==r?r:[];ef(Array.isArray(a)?a:[])}).catch(()=>ef([])).finally(()=>ey(!1))):ef([])},300);return()=>clearTimeout(e)},[ep]),(0,s.useEffect)(()=>{h&&b&&L(e=>(null==e?void 0:e.Id)===h&&(null==e?void 0:e.Name)===b||e&&e.Id!==h?e:{Id:h,Name:b})},[h,b]),(0,s.useEffect)(()=>{let e=A(1),t=A(2),r=A(0);B(e),J(t),q(r)},[]);let ej=(e,t)=>{t?(L(e),el(!1)):(I(e),eo(!1)),eb("")},eN=()=>{el(!1),eo(!1),eb("")},ev=M?"".concat(M.Name).concat("1"===M.Airport?" (Airport)":""):"Select location...",ew=E?"".concat(E.Name).concat("1"===E.Airport?" (Airport)":""):"Select location...",eC=null!==(r=null===(t=R.find(e=>e.code===et))||void 0===t?void 0:t.symbol)&&void 0!==r?r:"$";return(0,a.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!M||!$||!G){alert("Please select all required fields: pickup location, dates.");return}let t=_?M:E;if(!t){alert("Please select a drop-off location.");return}let r=X.split("-")[0]||X.replace("+","")||"30",a="".concat(S($),"T").concat(Z),s="".concat(S(G),"T").concat(Y),l="/availability?client=599270&tv=331C565A&age=".concat(r,"&currency=").concat(et,"&pickupLocationId=").concat(M.Id,"&returnLocationId=").concat(t.Id,"&pickupDateTime=").concat(a,"&returnDateTime=").concat(s,"&promo=#/vehicles");window.open(l,"_blank")},className:"w-full max-w-6xl mx-auto",children:[(0,a.jsx)(g,{className:"border-0 rounded-xl bg-transparent shadow-none lg:bg-yellow-400 lg:shadow-2xl",children:(0,a.jsxs)(y,{className:"p-0 lg:p-6",children:[(0,a.jsxs)("div",{className:(0,m.cn)("flex flex-col gap-4","lg:grid lg:items-end",_?"lg:grid-cols-[1fr_auto_auto]":"lg:grid-cols-[1fr_1fr_auto_auto]"),children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(f,{className:"text-gray-800 font-bold text-[10px] uppercase tracking-widest",children:"Pick-up Location"}),(0,a.jsxs)("button",{type:"button",onClick:()=>el(!0),className:"w-full h-14 bg-white rounded-xl px-4 border-0 shadow-sm flex items-center gap-3 hover:bg-gray-50 transition-colors text-left cursor-pointer",children:[(null==M?void 0:M.Airport)==="1"?(0,a.jsx)(o.A,{className:"w-5 h-5 text-blue-600 flex-shrink-0"}):(0,a.jsx)(i.A,{className:"w-5 h-5 text-blue-600 flex-shrink-0"}),(0,a.jsx)("span",{className:"text-gray-900 font-semibold truncate text-sm flex-1 min-w-0",children:ev})]})]}),!_&&(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(f,{className:"text-gray-800 font-bold text-[10px] uppercase tracking-widest",children:"Drop-off Location"}),(0,a.jsxs)("button",{type:"button",onClick:()=>eo(!0),className:"w-full h-14 bg-white rounded-xl px-4 border-0 shadow-sm flex items-center gap-3 hover:bg-gray-50 transition-colors text-left cursor-pointer",children:[(null==E?void 0:E.Airport)==="1"?(0,a.jsx)(o.A,{className:"w-5 h-5 text-blue-600 flex-shrink-0"}):(0,a.jsx)(i.A,{className:"w-5 h-5 text-blue-600 flex-shrink-0"}),(0,a.jsx)("span",{className:"text-gray-900 font-semibold truncate text-sm flex-1 min-w-0",children:ew})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("div",{className:"space-y-2 lg:w-44",children:[(0,a.jsx)(f,{className:"text-gray-800 font-bold text-[10px] uppercase tracking-widest",children:"Pick-up"}),(0,a.jsxs)(N,{children:[(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",className:"w-full h-14 bg-white rounded-xl border-0 flex flex-col items-start justify-center px-3 lg:px-4 shadow-sm hover:bg-gray-50 transition-colors cursor-pointer",children:[(0,a.jsx)("span",{className:"text-gray-900 font-semibold text-sm",children:(0,x.GP)($,"d MMM, yyyy")}),(0,a.jsx)("span",{className:"text-blue-600 font-semibold text-xs",children:k(Z)})]})}),(0,a.jsx)(w,{className:"w-auto p-0 bg-white z-50",align:"start",children:(0,a.jsx)(T,{selectedDate:$,onDateChange:e=>{B(e),e>G&&J((0,u.f)(e,1))},selectedTime:Z,onTimeChange:O,minDate:V}
1)})]})]}),(0,a.jsxs)("div",{className:"space-y-2 lg:w-44",children:[(0,a.jsx)(f,{className:"text-gray-800 font-bold text-[10px] uppercase tracking-widest",children:"Drop-off"}),(0,a.jsxs)(N,{children:[(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",className:"w-full h-14 bg-white rounded-xl border-0 flex flex-col items-start justify-center px-3 lg:px-4 shadow-sm hover:bg-gray-50 transition-colors cursor-pointer",children:[(0,a.jsx)("span",{className:"text-gray-900 font-semibold text-sm",children:(0,x.GP)(G,"d MMM, yyyy")}),(0,a.jsx)("span",{className:"text-blue-600 font-semibold text-xs",children:k(Y)})]})}),(0,a.jsx)(w,{className:"w-auto p-0 bg-white z-50",align:"start",children:(0,a.jsx)(T,{selectedDate:G,onDateChange:J,selectedTime:Y,onTimeChange:K,minDate:$})})]})]})]}),(0,a.jsxs)(p.$,{type:"submit",disabled:!M||!_&&!E,className:"w-full lg:w-auto h-14 lg:px-8 bg-blue-600 hover:bg-blue-700 text-white rounded-xl font-bold text-sm uppercase tracking-wider disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,a.jsx)(c.A,{className:"w-5 h-5 mr-2"}),"Search"]})]}),(0,a.jsxs)("div",{className:"mt-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 select-none",children:[(0,a.jsx)("button",{type:"button",onClick:()=>H(!_),className:(0,m.cn)("w-5 h-5 rounded border-2 flex items-center justify-center transition-colors cursor-pointer",_?"bg-blue-600 border-blue-600":"bg-white border-gray-400 hover:border-gray-500"),"aria-pressed":_,"aria-label":"Return car in same location",children:_&&(0,a.jsx)(d.A,{className:"w-3 h-3 text-white"})}),(0,a.jsx)("button",{type:"button",onClick:()=>H(!_),className:"text-gray-800 font-medium text-sm cursor-pointer bg-transparent border-0 p-0 text-left",children:"Return car in same location"})]}),(0,a.jsxs)("div",{className:"flex items-center flex-wrap gap-1.5 text-sm text-gray-800",children:[(0,a.jsx)("span",{children:"Residence:"}),(0,a.jsx)("button",{type:"button",onClick:()=>ec(!0),className:"text-blue-600 font-bold border-b border-blue-600/50 hover:border-blue-600 cursor-pointer",children:Q}),(0,a.jsx)("span",{className:"mx-1",children:"|"}),(0,a.jsx)("span",{children:"Age:"}),(0,a.jsx)("button",{type:"button",onClick:()=>eu(!0),className:"text-blue-600 font-bold border-b border-blue-600/50 hover:border-blue-600 cursor-pointer",children:X}),(0,a.jsx)("span",{className:"w-4 h-4 bg-blue-600 text-white rounded-full text-[9px] font-bold flex items-center justify-center ml-0.5",title:"Driver age",children:"i"}),(0,a.jsx)("span",{className:"mx-1",children:"|"}),(0,a.jsx)("span",{children:"Currency:"}),(0,a.jsxs)("button",{type:"button",onClick:()=>em(!0),className:"text-blue-600 font-bold border-b border-blue-600/50 hover:border-blue-600 cursor-pointer",children:[et," (",eC,")"]})]})]})]})}),(es||en)&&(0,a.jsx)("div",{className:"fixed inset-0 bg-black/70 z-50 flex items-center justify-center backdrop-blur-sm p-4 cursor-pointer",onClick:eN,children:(0,a.jsxs)("div",{className:"bg-white w-full max-w-[500px] max-h-[80vh] rounded-2xl p-6 md:p-8 shadow-2xl flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("h3",{className:"text-xl font-bold text-gray-800 mb-4",children:es?"Select Pick-up Location":"Select Drop-off Location"}),(0,a.jsxs)("div",{className:"relative mb-4",children:[(0,a.jsx)(c.A,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-500"}),(0,a.jsx)("input",{type:"text",value:ep,onChange:e=>eb(e.target.value),placeholder:"Search city, airport, or address...",className:"w-full pl-12 pr-4 py-3 border-2 border-gray-200 rounded-xl text-base font-semibold focus:border-blue-500 focus:bg-gray-50 outline-none transition-all",autoFocus:!0})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto -mr-2 pr-2 min-h-[200px]",children:eg?(0,a.jsx)("div",{className:"flex justify-center py-12",children:(0,a.jsx)("div",{className:"w-8 h-8 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):ep.length>=4?eh.length>0?eh.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>ej(e,es),className:"w-full p-4 rounded-xl flex items-center gap-3 hover:bg-gray-100 border border-transparent hover:border-gray-200 transition-all text-left mb-1 cursor-pointer",children:["1"===e.Airport?(0,a.jsx)(o.A,{className:"w-5 h-5 text-blue-600 flex-shrink-0"}):(0,a.jsx)(i.A,{className:"w-5 h-5 text-blue-600 flex-shrink-0"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 overflow-hidden",children:[(0,a.jsxs)("div",{className:"font-bold text-gray-900 truncate",children:[e.Name,"1"===e.Airport&&(0,a.jsx)("span",{className:"text-blue-600 ml-1",children:"(Airport)"})]}),(0,a.jsx)("div",{className:"text-xs text-gray-500 truncate",children:[e.CityName,e.CountryName].filter(
1Boolean).join(", ")})]}),e.CountryCode&&(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(n.default,{src:"https://flagcdn.com/40x30/".concat(e.CountryCode.toLowerCase(),".png"),width:30,height:20,alt:e.CountryCode,unoptimized:!0})})]},e.Id)):(0,a.jsxs)("div",{className:"text-center text-gray-500 py-8",children:['No locations found for "',ep,'"']}):(0,a.jsx)("div",{className:"text-center text-gray-500 py-8",children:"Type at least 4 characters to search"})}),(0,a.jsx)("button",{type:"button",onClick:eN,className:"mt-4 w-full py-3 bg-gray-200 text-gray-800 rounded-xl font-semibold hover:bg-gray-300 transition-colors cursor-pointer",children:"Cancel"})]})}),ei&&(0,a.jsx)("div",{className:"fixed inset-0 bg-black/70 z-50 flex items-center justify-center p-4 cursor-pointer",onClick:()=>ec(!1),children:(0,a.jsxs)("div",{className:"bg-white w-full max-w-md max-h-[80vh] rounded-2xl p-6 shadow-2xl overflow-y-auto",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-800 mb-4",children:"Driver's Country"}),(0,a.jsx)("div",{className:"space-y-2",children:ea.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>{W(e),ec(!1)},className:(0,m.cn)("w-full p-3 rounded-xl text-left font-medium cursor-pointer",Q===e?"bg-blue-600 text-white":"hover:bg-gray-100"),children:e},e))})]})}),ed&&(0,a.jsx)("div",{className:"fixed inset-0 bg-black/70 z-50 flex items-center justify-center p-4 cursor-pointer",onClick:()=>eu(!1),children:(0,a.jsxs)("div",{className:"bg-white w-full max-w-sm rounded-2xl p-6 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-800 mb-4",children:"Driver's Age"}),(0,a.jsx)("div",{className:"space-y-2",children:z.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{ee(e),eu(!1)},className:(0,m.cn)("w-full p-3 rounded-xl text-left font-medium cursor-pointer",X===e?"bg-blue-600 text-white":"hover:bg-gray-100"),children:[e," years"]},e))})]})}),ex&&(0,a.jsx)("div",{className:"fixed inset-0 bg-black/70 z-50 flex items-center justify-center p-4 cursor-pointer",onClick:()=>em(!1),children:(0,a.jsxs)("div",{className:"bg-white w-full max-w-md rounded-2xl p-6 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-800 mb-4",children:"Select Currency"}),(0,a.jsx)("div",{className:"space-y-2",children:R.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{er(e.code),em(!1)},className:(0,m.cn)("w-full p-3 rounded-xl text-left font-medium flex justify-between items-center cursor-pointer",et===e.code?"bg-blue-600 text-white":"hover:bg-gray-100"),children:[(0,a.jsx)("span",{children:e.name}),(0,a.jsxs)("span",{className:"font-bold",children:[e.code," (",e.symbol,")"]})]},e.code))})]})})]})}},73312:(e,t,r)=>{r.d(t,{$:()=>c,r:()=>i});var a=r(95155),s=r(12115),l=r(12317),n=r(31027),o=r(21567);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:c=!1,...d}=e,u=c?l.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:s,size:n,className:r})),ref:t,...d})});c.displayName="Button"},21567:(e,t,r)=>{r.d(t,{cn:()=>l});var a=r(43463),s=r(69795);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,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.