PageSourceSearch

https://towmatic.ai/static/js/3489.eaa64a7d.chunk.js

js towmatic.ai collected 2026-09-25 03:32:34 UTC 21,200 bytes, 3 lines download raw bytes

1/*! For license information please see 3489.eaa64a7d.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[3489],{2580(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]])},48896(e,s,a){a.d(s,{Ke:()=>n,Nt:()=>r,R6:()=>l});var t=a(87885);const r=t.bL,l=t.R6,n=t.Ke},58002(e,s,a){a.d(s,{A:()=>l});var t=a(75088),r=a(70579);function l(){return(0,r.jsxs)("div",{className:"mb-4 flex items-start gap-3 rounded-lg border border-orange-200 bg-orange-50 px-4 py-3","data-testid":"setup-in-progress-banner",children:[(0,r.jsx)(t.A,{className:"h-5 w-5 flex-shrink-0 text-orange-500 mt-0.5"}),(0,r.jsxs)("div",{className:"flex-1 text-sm",children:[(0,r.jsx)("p",{className:"font-medium text-orange-900",children:"Your dashboard is still being set up"}),(0,r.jsx)("p",{className:"mt-0.5 text-orange-800",children:"Data will start appearing here once your agency completes the wire-up. You'll receive a welcome email the moment everything is live."})]})]})}},61013(e,s,a){a.d(s,{Bc:()=>o,ZI:()=>h,k$:()=>x,m_:()=>m});var t=a(89379),r=a(53986),l=a(65043),n=a(75208),i=a(99766),c=a(70579);const d=["className","sideOffset"],o=n.Kq,m=n.bL,x=n.l9,h=l.forwardRef((e,s)=>{let{className:a,sideOffset:l=4}=e,o=(0,r.A)(e,d);return(0,c.jsx)(n.ZL,{children:(0,c.jsx)(n.UC,(0,t.A)({ref:s,sideOffset:l,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 origin-[--radix-tooltip-content-transform-origin]",a)},o))})});h.displayName=n.UC.displayName},65773(e,s,a){a.d(s,{EA:()=>d,Tr:()=>m,co:()=>x,ff:()=>h,y2:()=>u,zP:()=>o});var t=a(89379),r=a(53986),l=a(99766),n=a(50516),i=a(70579);const c=["className","shimmer"];function d(e){let{className:s,shimmer:a=!0}=e,n=(0,r.A)(e,c);return(0,i.jsx)("div",(0,t.A)({className:(0,l.cn)("rounded-md bg-gray-200/80 relative overflow-hidden",a&&"before:absolute before:inset-0 before:-translate-x-full before:animate-[shimmer_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/60 before:to-transparent",s)},n))}function o(e){let{isRefetching:s,className:a}=e;return s?(0,i.jsxs)("div",{className:(0,l.cn)("fixed top-20 right-4 z-50 flex items-center gap-2 bg-white/95 backdrop-blur-sm px-3 py-2 rounded-full shadow-lg border border-gray-200 animate-fade-in",a),children:[(0,i.jsx)(n.A,{className:"w-4 h-4 text-brand-orange-500 animate-spin"}),(0,i.jsx)("span",{className:"text-xs text-gray-600 font-medium",children:"Updating..."})]}):null}function m(e){let{className:s}=e;return(0,i.jsx)("div",{className:(0,l.cn)("bg-white rounded-xl border border-gray-200 p-6",s),children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"space-y-2 flex-1",children:[(0,i.jsx)(d,{className:"h-4 w-24"}),(0,i.jsx)(d,{className:"h-8 w-20"}),(0,i.jsx)(d,{className:"h-3 w-16"})]}),(0,i.jsx)(d,{className:"h-12 w-12 rounded-xl"})]})})}function x(e){let{className:s}=e;return(0,i.jsxs)("div",{className:(0,l.cn)("bg-white rounded-xl border border-gray-200 p-5 space-y-3",s),children:[(0,i.jsxs)("div",{className:"flex items-start justify-between",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)(d,{className:"h-5 w-32"}),(0,i.jsx)(d,{className:"h-4 w-16 rounded-full"})]}),(0,i.jsx)(d,{className:"h-8 w-20 rounded-full"})]}),(0,i.jsxs)("div",{className:"space-y-2 pt-2",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)(d,{className:"h-4 w-4 rounded"}),(0,i.jsx)(d,{className:"h-4 w-28"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)(d,{className:"h-4 w-4 rounded"}),(0,i.jsx)(d,{className:"h-4 w-36"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)(d,{className:"h-4 w-4 roun
2ded"}),(0,i.jsx)(d,{className:"h-4 w-20"})]})]})]})}function h(e){let{className:s}=e;return(0,i.jsxs)("div",{className:(0,l.cn)("bg-white rounded-xl border border-gray-200 p-4",s),children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(d,{className:"h-4 w-24"}),(0,i.jsx)(d,{className:"h-4 w-16"})]}),(0,i.jsx)(d,{className:"h-6 w-24 rounded-full"})]}),(0,i.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)(d,{className:"h-4 w-4 rounded"}),(0,i.jsx)(d,{className:"h-4 w-20"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)(d,{className:"h-4 w-4 rounded"}),(0,i.jsx)(d,{className:"h-4 w-28"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)(d,{className:"h-4 w-4 rounded"}),(0,i.jsx)(d,{className:"h-4 w-16"})]})]})]})}function u(e){let{className:s}=e;return(0,i.jsxs)("div",{className:(0,l.cn)("bg-white rounded-xl border-l-4 border-l-green-500 border border-gray-200 p-4",s),children:[(0,i.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)(d,{className:"h-5 w-32"}),(0,i.jsx)(d,{className:"h-4 w-28"})]}),(0,i.jsx)(d,{className:"h-6 w-24 rounded-full"})]}),(0,i.jsx)(d,{className:"h-10 w-full rounded-lg mb-3"}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)(d,{className:"h-4 w-16"}),(0,i.jsx)(d,{className:"h-12 w-full"})]})]})}},72313(e,s,a){a.d(s,{A:()=>t});const t=(0,a(77784).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},73489(e,s,a){a.r(s),a.d(s,{default:()=>z});var t=a(65043),r=a(6931),l=a(99723),n=a(44687),i=a(83124),c=a(54925),d=a(13390),o=a(91140),m=a(92264),x=a(65773),h=a(48896),u=a(14935),p=a(61013),f=a(56328),g=a(2580),j=a(36210),N=a(92382),b=a(9463),y=a(38326),v=a(75088),w=a(72313),A=a(73062),C=a(57856),_=a(91286),k=a(50516),R=a(40614),M=a(95316),D=a(58002),S=a(70579);const F=e=>{if(!e)return null;const s=e.split(/(?=(User:|Agent:))/g).filter(Boolean);return s.length<=1?(0,S.jsx)("span",{children:e}):s.map((e,s)=>{const a=e.startsWith("User:"),t=e.startsWith("Agent:");if(a){const a=e.substring(5).trim();return a?(0,S.jsxs)("div",{className:s>0?"mt-3":"",children:[(0,S.jsx)("span",{className:"font-bold text-gray-900",children:"User:"}),(0,S.jsx)("span",{className:"ml-1",children:a})]},s):null}if(t){const a=e.substring(6).trim();return a?(0,S.jsxs)("div",{className:s>0?"mt-3":"",children:[(0,S.jsx)("span",{className:"font-bold text-brand-orange-600",children:"Agent:"}),(0,S.jsx)("span",{className:"ml-1",children:a})]},s):null}return(0,S.jsx)("span",{children:e},s)}).filter(Boolean)},I=e=>{let{call:s}=e;const[a,r]=(0,t.useState)(!1),[l,n]=(0,t.useState)(!1);return(0,S.jsx)(o.Zp,{className:"overflow-hidden border-l-4 border-l-gray-200","data-testid":"call-log-".concat(s.id),children:(0,S.jsxs)(o.Wu,{className:"p-5",children:[(0,S.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between mb-2 gap-2",children:[(0,S.jsxs)("div",{className:"flex items-center gap-2",children:[(0,S.jsx)(_.A,{className:"w-4 h-4 text-gray-500"}),(0,S.jsx)("span",{className:"font-mono font-semibold text-gray-900 text-lg",children:s.phone_number})]}),s.function_performed&&(0,S.jsx)("span",{className:"px-3 py-1.5 bg-brand-orange-500 text-white text-xs sm:text-sm font-medium rounded-lg break-words whitespace-normal leading-tight inline-block w-fit",children:s.function_performed})]}),(0,S.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:s.timestamp}),(0,S.jsxs)("div",{className:"flex items-center gap-4 mb-4 text-sm text-gray-600",children:[(0,S.jsxs)("div",{className:"flex items-center gap-1",children:[(0,S.jsx)(v.A,{className:"w-4 h-4 text-gray-400"}),(0,S.jsx)("span",{children:(e=>{const s=Math.floor(e/60),a=Math.round(e%60);return"".concat(s,":").concat(a.toString().padStart(2,"0"))})(s.duration_seconds)})]}),(0,S.jsxs)("div",{className:"flex items-center gap-1",children:[(0,S.jsx)(A.A,{className:"w-4 h-4 text-gray-400"}),(0,S.jsx)("span",{children:(s.cost||0).toFixed(8)})]})]}),s.summary&&(0,S.jsxs)("div",{className:"mb-4",children:[(0,S.jsx)("h4",{className:"text-sm font-semibold text-gray-900 mb-1",children:"Summary"}),(0,S.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed",children:s.summary})]}),s.transcript&&(0,S.jsxs)(h.Nt,{open:a,onOpenChange:r,children:[(0,S.jsx)(h.R6,{asChild:!0,children:(0,S.jsxs)(d.$,{variant:"ghost",className:"w-full justify-between px-0 hover:bg-transparent h-auto py-2",children:[(0,S.jsxs)("span",{className:"text-sm font-semibold text-gray-900 flex items-center gap-1",children:["Transcript",(0,S.jsx)(p.Bc,{children:(0,S.jsxs)(p.m_,{children:[(0,S.jsx)(p.k$,{asChild:!0,children:(0,S.jsx)(C.A,{className:"w-3.5 h-3.5 text-gray-400 hover:text-gray-600 cursor-help"})}),(0,S.jsx)(p.ZI,{className:"max-w-xs",children:(0,S.jsx)("p",{className:"text-xs",children:"Transcripts are AI-generated and may contain errors. Refer to the call audio for the most accurate information."})})]})})]}),(0,S.jsx)(N.A,{className:"w-4 h-4 transition-transform ".concat(a?"rotate-180":"")})]})}),(0,S.jsx)(h.Ke,{children:(0,S.jsx)("div",{className:"p-3 bg-gray-50 rounded-lg text-sm text-gray-600 max-h-60 overflow-y-auto",children:F(s.transcript)})})]}),s.audio_url&&(0,S.jsxs)("div",{className:"mt-4",children:[(0,S.jsx)("h4",{className:"text-sm font-semibold text-gray-900 mb-2",children:"Call Recording"}),(0,S.jsxs)("audio",{controls:!0,className:"w-full h-10","data-testid":"audio-".concat(s.id),children:[(0,S.jsx)("source",{src:s.audio_url,type:"audio/mpeg"}),"Your browser does not support the audio element."]})]}),(0,S.jsx)("div",{className:"mt-4 pt-3 border-t border-gray-100",children:(0,S.jsxs)("div",{className:"flex items-center gap-2",children:[(0,S.jsxs)("p",{className:"text-xs text-gray-400",children:["Call ID: ",s.id]}),(0,S.jsx)("button",{onClick:async()=>{try{await navigator.clipboard.writeText(s.id),n(!0),f.toast.success("Call ID copied to clipboard"),setTimeout(()=>n(!1),2e3)}catch(e){f.toast.error("Failed to copy")}},className:"p-1 rounded hover:bg-gray-100 transition-colors group",title:"Copy Call ID",children:l?(0,S.jsx)(j.A,{className:"w-3.5 h-3.5 text-green-500"}):(0,S.jsx)(w.A,{className:"w-3.5 h-3.5 text-gray-400 group-hover:text-orange-500"})})]})})]})})};function z(){const{user:e}=(0,i.A)(),{ready:s}=(0,M.o)(),[a,p]=(0,t.useState)("database"),f=e=>{const s=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),t=String(e.getDate()).padStart(2,"0");return"".concat(s,"-").concat(a,"-").concat(t)},j=()=>{const e=new Date,s=new Date(e);return s.setDate(s.getDate()-1),{start:f(s),end:f(e)}},v=j(),[w,A]=(0,t.useState)(v.start),[C,F]=(0,t.useState)(v.end),[z,O]=(0,t.useState)(""),[T,L]=(0,t.useState)("all"),[U,K]=(0,t.useState)(1),{data:P,isLoading:W,refetch:$,isFetching:B}=(0,r.I)({queryKey:c.l.callLogs(null===e||void 0===e?void 0:e.company_id),queryFn:async()=>{const s=await n.sheetsAPI.getCallLogsFromSheet(e.company_id);return p(s.data.source||"database"),s.data.calls||[]},enabled:!(null===e||void 0===e||!e.company_id),staleTime:12e4,refetchOnWindowFocus:!0,refetchInterval:3e4,refetchIntervalInBackgroun
2d:!1,placeholderData:l.rX}),Z=(0,t.useMemo)(()=>P||[],[P]),q=(0,t.useMemo)(()=>{const e=new Set;return Z.forEach(s=>{s.function_performed&&e.add(s.function_performed)}),Array.from(e).sort()},[Z]),E=e=>{if(!e)return null;try{const s=new Date(e);if(!isNaN(s.getTime()))return s;const a=e.match(/(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})\s*(AM|PM)?/i);if(a){let[,e,s,t,r,l,n]=a;return r=parseInt(r),n&&("PM"===n.toUpperCase()&&12!==r&&(r+=12),"AM"===n.toUpperCase()&&12===r&&(r=0)),new Date(t,e-1,s,r,parseInt(l))}return null}catch(s){return null}},Y=(0,t.useMemo)(()=>Z.filter(e=>{var s;if(w&&e.timestamp){const s=E(e.timestamp);if(!s)return!0;const[a,t,r]=w.split("-").map(Number);if(s<new Date(a,t-1,r,0,0,0,0))return!1}if(C&&e.timestamp){const s=E(e.timestamp);if(!s)return!0;const[a,t,r]=C.split("-").map(Number);if(s>new Date(a,t-1,r,23,59,59,999))return!1}if(z&&(null===(s=e.phone_number)||void 0===s||!s.includes(z)))return!1;if("all"!==T){if("none"===T&&e.function_performed)return!1;if("none"!==T&&e.function_performed!==T)return!1}return!0}),[Z,w,C,z,T]),G=(0,t.useMemo)(()=>{const e=10*(U-1);return Y.slice(e,e+10)},[Y,U]),V=Math.ceil(Y.length/10),H=(0,t.useMemo)(()=>{const e={};return Z.forEach(s=>{const a=s.function_performed||"No Function";e[a]=(e[a]||0)+1}),Object.entries(e).sort((e,s)=>s[1]-e[1])},[Z]),X=(e,s)=>{e(s),K(1)},J=B&&Z.length>0,Q=w!==v.start||C!==v.end||z||"all"!==T;return(0,S.jsxs)("div",{className:"p-4 md:p-8 bg-gray-50 min-h-screen",children:[!s&&(0,S.jsx)(D.A,{}),(0,S.jsx)(x.zP,{isRefetching:J}),(0,S.jsx)("div",{className:"mb-6",children:(0,S.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[(0,S.jsxs)("div",{children:[(0,S.jsxs)("h2",{className:"text-2xl font-heading font-bold text-gray-900 flex items-center gap-2",children:[(0,S.jsx)(_.A,{className:"w-7 h-7 text-brand-orange-500"}),"Call Log"]}),(0,S.jsx)("p",{className:"text-gray-500 mt-1",children:"View all incoming call records"})]}),(0,S.jsxs)(d.$,{variant:"outline",onClick:()=>{$()},disabled:B,className:"w-full md:w-auto","data-testid":"refresh-calls-btn",children:[(0,S.jsx)(k.A,{className:"w-4 h-4 mr-2 ".concat(B?"animate-spin":"")}),"Refresh"]})]})}),(0,S.jsx)(o.Zp,{className:"mb-6 overflow-hidden",children:(0,S.jsxs)(o.Wu,{className:"p-4 overflow-x-hidden",children:[(0,S.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,S.jsxs)("div",{className:"flex items-center gap-2",children:[(0,S.jsx)(g.A,{className:"w-4 h-4 text-gray-500"}),(0,S.jsx)("span",{className:"font-medium text-gray-900",children:"Filters"})]}),Q&&(0,S.jsxs)(d.$,{variant:"ghost",size:"sm",onClick:()=>{const e=j();A(e.start),F(e.end),O(""),L("all"),K(1)},className:"text-gray-500 hover:text-gray-700",children:[(0,S.jsx)(R.A,{className:"w-4 h-4 mr-1"}),"Clear All"]})]}),(0,S.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[(0,S.jsxs)("div",{className:"md:col-span-2 grid grid-cols-2 gap-2",children:[(0,S.jsxs)("div",{className:"min-w-0",children:[(0,S.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"Date Range"}),(0,S.jsx)(m.p,{type:"date",value:w,onChange:e=>X(A,e.target.value),className:"text-sm w-full max-w-full",placeholder:"mm/dd/yyyy"})]}),(0,S.jsxs)("div",{className:"min-w-0",children:[(0,S.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"\xa0"}),(0,S.jsx)(m.p,{type:"date",value:C,onChange:e=>X(F,e.target.value),className:"text-sm w-full max-w-full",placeholder:"mm/dd/yyyy"})]})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"Phone Number"}),(0,S.jsx)(m.p,{type:"text",value:z,onChange:e=>X(O,e.target.value),placeholder:"Filter by phone",className:"text-sm"})]}),(0,S.jsxs)("div",{className:"min-w-0",children:[(0,S.jsx)("label",{className:"text-xs text-gray-500 mb-1 block",children:"Function"}),(0,S.jsxs)(u.l6,{value:T,onValueChange:e=>X(L,e),children:[(0,S.jsx)(u.bq,{className:"text-sm",children:(0,S.jsx)(u.yv,{placeholder:"All Functions"})}),(0,S.jsxs)(u.gC,{children:[(0,S.jsx)(u.eb,{value:"all",children:"All Functions"}),(0,S.jsx)(u.eb,{value:"none",children:"No Function"}),q.map(e=>(0,S.jsx)(u.eb,{value:e,children:e},e))]})]})]})]})]})}),(0,S.jsx)(h.Nt,{className:"mb-6",children:(0,S.jsxs)(o.Zp,{children:[(0,S.jsx)(h.R6,{asChild:!0,children:(0,S.jsxs)(o.Wu,{className:"p-4 cursor-pointer hover:bg-gray-50 flex items-center justify-between",children:[(0,S.jsx)("span",{className:"font-medium text-gray-900",children:"Calls by Function"}),(0,S.jsxs)("div",{className:"flex items-center gap-2 text-gray-500 text-sm",children:[(0,S.jsx)("span",{children:"Expand"}),(0,S.jsx)(N.A,{className:"w-4 h-4"})]})]})}),(0,S.jsx)(h.Ke,{children:(0,S.jsx)(o.Wu,{className:"pt-0 pb-4 px-4",children:(0,S.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:H.map(e=>{let[s,a]=e;return(0,S.jsxs)("div",{className:"p-3 bg-gray-50 rounded-lg",children:[(0,S.jsx)("p",{className:"text-sm font-medium text-gray-900",children:s}),(0,S.jsx)("p",{className:"text-2xl font-bold text-brand-orange-500",children:a})]},s)})})})})]})}),(0,S.jsx)("div",{className:"space-y-4","data-testid":"call-logs-list",children:W?Array.from({length:3}).map((e,s)=>(0,S.jsx)(x.y2,{},s)):0===G.length?(0,S.jsx)(o.Zp,{children:(0,S.jsxs)(o.Wu,{className:"p-8 text-center text-gray-500",children:[(0,S.jsx)(_.A,{className:"w-12 h-12 mx-auto mb-3 text-gray-300"}),(0,S.jsx)("p",{children:"No call logs found"}),Q&&(0,S.jsx)("p",{className:"text-sm mt-2",children:"Try adjusting your filters"})]})}):G.map((e,s)=>(0,S.jsx)(I,{call:e},e.id||s))}),V>1&&(0,S.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 mt-6 bg-white rounded-lg p-4 border",children:[(0,S.jsxs)("p",{className:"text-sm text-gray-500 text-center sm:text-left",children:["Showing ",10*(U-1)+1," - ",Math.min(10*U,Y.length)," of ",Y.length," calls"]}),(0,S.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2",children:[(0,S.jsxs)(d.$,{variant:"outline",size:"sm",onClick:()=>K(e=>Math.max(1,e-1)),disabled:1===U,className:"px-2 sm:px-3",children:[(0,S.jsx)(b.A,{className:"w-4 h-4"}),(0,S.jsx)("span",{className:"hidden sm:inline ml-1",children:"Previous"})]}),(0,S.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(3,V)},(e,s)=>{let a;return a=V<=3||U<=2?s+1:U>=V-1?V-2+s:U-1+s,(0,S.jsx)(d.$,{variant:U===a?"default":"outline",size:"sm",className:"w-8 h-8 p-0 ".concat(U===a?"bg-brand-orange-500 hover:bg-brand-orange-600":""),onClick:()=>K(a),children:a},a)})}),(0,S.jsxs)(d.$,{variant:"outline",size:"sm",onClick:()=>K(e=>Math.min(V,e+1)),disabled:U===V,className:"px-2 sm:px-3",children:[(0,S.jsx)("span",{className:"hidden sm:inline mr-1",children:"Next"}),(0,S.jsx)(y.A,{className:"w-4 h-4"})]})]})]})]})}},87885(e,s,a){a.d(s,{Ke:()=>R,R6:()=>_,UC:()=>I,bL:()=>S,l9:()=>F,z3:()=>y});var t=a(89379),r=a(53986),l=a(65043),n=a(30858),i=a(21862),c=a(13642),d=a(70503),o=a(82814),m=a(87914),x=a(52894),h=a(54490),u=a(70579);const p=["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"],f=["__scopeCollapsible"],g=["forceMount"],j=["__scopeCollapsible","present","children"];var N="Collapsible",[b,y]=(0,i.A)(N),[v,w]=b(N),A=l.forwardRef((e,s)=>{const{__scopeCollapsible:a,open:n,defaultOpen:i,disabled:d,onOpenChange:o}=e,x=(0,r.A)(e,p),[f,g]=(0,c.i)({prop:n,defaultProp:null!==i&&void 0!==i&&i,onChange:o,caller:N});return(0,u.jsx)(v,{scope:a,disabled:d,contentId:(0,h.B)(),open:f,onOpenToggle:l.useCallback(()=>g(e=>!e),[g]),children:(0,u.jsx)(m.sG.div,(0,t.A)((0,t.A)({"data-state":D(f),"data-disabled":d?"":void 0},x),{},{ref:s}))})});A.displayName=N;var C="CollapsibleTrigger",_=l.forwardRef((e,s)=>{const{__scopeCollapsible:a}=e,l=(0,r.A)(e,f),i=w(C,a);return(0,u.jsx)(m.sG.button,(0,t.A)((0,t.A)({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":D(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},l),{},{ref:s,onClick:(0,n.mK)(e.onClick,i.onOpenToggle)}))});_.displayName=C;var k="CollapsibleContent",R=l.forwardRef((e,s)=>{const{forceMount:a}=e,l=(0,r.A)(e,g),n=w(k,e.__scopeCollapsible);return(0,u.jsx)(x.C,{present:a||n.open,children:e=>{let{present:a}=e;return(0,u.jsx)(M,(0,t.A)((0,t.A)({},l),{},{ref:s,present:a}))}})});R.displayName=k;var M=l.forwardRef((e,s)=>{const{__scopeCollapsible:a,present:n,children:i}=e,c=(0,r.A)(e,j),x=w(k,a),[h,p]=l.useState(n),f=l.useRef(null),g=(0,o.s)(s,f),N=l.useRef(0),b=N.current,y=l.useRef(0),v=y.current,A=x.open||h,C=l.useRef(A),_=l.useRef(void 0);return l.useEffect(()=>{const e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{const e=f.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const s=e.getBoundingClientRect();N.current=s.height,y.current=s.width,C.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),p(n)}},[x.open,n]),(0,u.jsx)(m.sG.div,(0,t.A)((0,t.A)({"data-state":D(x.open),"data-disabled":x.disabled?"":void 0,id:x.contentId,hidden:!A},c),{},{ref:g,style:(0,t.A)({"--radix-collapsible-content-height":b?"".concat(b,"px"):void 0,"--radix-collapsible-content-width":v?"".concat(v,"px"):void 0},e.style),children:A&&i}))});function D(e){return e?"open":"closed"}var S=A,F=_,I=R}}]);
3//# sourceMappingURL=3489.eaa64a7d.chunk.js.map

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.