1import{a as e}from"./rolldown-runtime-COnpUsM8.js";import{h as t,t as n}from"./vendor-D-VjDQh9.js";import{t as r}from"./useTranslation-Bmi1j1Zy.js";import{M as i,t as a}from"./proxy-q8WOnioT.js";import{t as o}from"./arrow-right-left-i9a542E6.js";import{n as s,t as c}from"./phone-Q_Uod1tf.js";import{t as l}from"./circle-arrow-right-DHIs2BlN.js";import{t as u}from"./mail-DY3BiWbu.js";import{t as d}from"./AnimatePresence-DZTQhYob.js";import{t as f}from"./use-in-view--hg-nlq4.js";import{d as p,f as m,m as h}from"./index-kN60YZmi.js";import{t as g}from"./Container-XZY3wovF.js";var _=i(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),v=i(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),y=i(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),b=i(`circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]),x=i(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),S=e(t(),1),C=n(),w=`M60.7579 17.1888C68.1496 12.9129 77.6014 15.4504 81.8691 22.8566C86.1367 30.2629 83.6041 39.7332 76.2123 44.0091L36.0604 67.2362C33.694 68.6051 31.9669 70.8598 31.2597 73.5044C30.5525 76.149 30.923 78.9668 32.2893 81.3379C33.6555 83.7089 35.9058 85.4394 38.5452 86.148C41.1846 86.8566 43.997 86.4853 46.3634 85.1164L161.466 18.5322C170.931 13.0564 182.18 11.5727 192.738 14.4071C203.296 17.2416 212.297 24.162 217.762 33.6463C223.227 43.1305 224.708 54.4015 221.879 64.9798C219.05 75.5581 212.143 84.5772 202.677 90.053L52.777 176.767C50.4106 178.136 48.6835 180.391 47.9763 183.036C47.2691 185.68 47.6396 188.498 49.0059 190.869C50.3721 193.24 52.6224 194.971 55.2618 195.679C57.9012 196.388 60.7136 196.016 63.08 194.648L178.182 128.063C187.648 122.588 198.897 121.104 209.454 123.938C220.012 126.773 229.014 133.693 234.479 143.177C239.944 152.662 241.425 163.933 238.596 174.511C235.767 185.089 228.86 194.108 219.394 199.584L179.242 222.811C171.85 227.087 162.399 224.55 158.131 217.143C153.863 209.737 156.396 200.267 163.788 195.991L203.94 172.764C206.306 171.395 208.033 169.14 208.74 166.496C209.448 163.851 209.077 161.033 207.711 158.662C206.344 156.291 204.094 154.561 201.455 153.852C198.815 153.143 196.003 153.515 193.637 154.884L78.5345 221.468C69.0688 226.944 57.8198 228.427 47.2621 225.593C36.7045 222.758 27.703 215.838 22.238 206.354C16.7729 196.869 15.2921 185.598 18.121 175.02C20.9499 164.442 27.8568 155.423 37.3226 149.947L187.223 63.2327C189.589 61.8637 191.316 59.609 192.024 56.9645C192.731 54.3199 192.36 51.5021 190.994 49.131C189.628 46.7599 187.378 45.0295 184.738 44.3209C182.099 43.6123 179.286 43.9835 176.92 45.3525L61.8179 111.937C52.3522 117.412 41.1032 118.896 30.5455 116.062C19.9879 113.227 10.9864 106.307 5.52136 96.8226C0.0563203 87.3383 -1.42451 76.0673 1.4044 65.489C4.23331 54.9107 11.1402 45.8916 20.606 40.4159L60.7579 17.1888Z`,T=`M68.5 30.6L28.3 53.8A25.8 25.8 0 0 0 54.1 98.5L169.2 31.9A25.8 25.8 0 0 1 195 76.6L45.1 163.4A25.8 25.8 0 0 0 70.8 208.1L185.9 141.5A25.8 25.8 0 0 1 211.7 186.2L171.5 209.4`,E=({size:e=40,className:t,duration:n=1.5,tubeOpacity:r=.5,showHighlight:i=!0,color:o=`base`})=>{let s=`skrif-mask-${(0,S.useId)()}`,c={base:{back:`base-200`,front:`base-800`},radiant:{back:`radiant-200`,front:`radiant-500`},sand:{back:`sand-200`,front:`sand-500`}},l=c[o]?.back||c.base.back,u=c[o]?.front||c.base.front;return(0,C.jsxs)(a.svg,{initial:{opacity:0,scale:.8}
1,animate:{opacity:1,scale:1},transition:{type:`spring`,duration:.4,bounce:.2},width:e,height:e,viewBox:`0 0 240 240`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:t,"aria-hidden":`true`,children:[(0,C.jsx)(`defs`,{children:(0,C.jsx)(`mask`,{id:s,children:(0,C.jsx)(`path`,{d:w,fill:`white`})})}),(0,C.jsx)(`path`,{d:w,fill:`var(--color-${l})`,opacity:r}),i&&(0,C.jsx)(`path`,{d:T,fill:`none`,stroke:`var(--color-${u})`,strokeWidth:`36`,strokeLinecap:`round`,strokeLinejoin:`round`,opacity:`0.9`,pathLength:1e3,strokeDasharray:`180 820`,mask:`url(#${s})`,children:(0,C.jsx)(`animate`,{attributeName:`stroke-dashoffset`,from:`0`,to:`-1000`,dur:`${n}s`,repeatCount:`indefinite`})})]})},D=({children:e,disabled:t=!1,speed:n=2,className:r=``})=>(0,C.jsx)(`div`,{className:`shiny-text ${t?`shiny-text-disabled`:``} ${r}`,style:{animationDuration:`${n}s`},children:e}),O=(...e)=>{let t=[];for(let n of e)if(n===`br`)t.push({br:!0});else if(typeof n==`string`)for(let e of n.split(` `).filter(Boolean))t.push({word:e});else for(let e of n.bold.split(` `).filter(Boolean))t.push({word:e,bold:!0});return t},k=e=>O(...e.map(e=>e.br?`br`:e.bold?{bold:e.bold}:e.text??``)),A={hidden:{},visible:{transition:{staggerChildren:.04}}},j={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.15}}},M=({tokens:e})=>(0,C.jsx)(a.div,{variants:A,initial:`hidden`,animate:`visible`,className:`text-xs xl:text-sm text-base-700 leading-relaxed`,children:e.map((e,t)=>`br`in e?(0,C.jsx)(`br`,{},t):(0,C.jsxs)(a.span,{variants:j,className:`inline`,children:[e.bold?(0,C.jsx)(`strong`,{className:`text-base-900 font-semibold`,children:e.word}):e.word,` `]},t))}),N=e=>[{question:e(`conversations.payroll.question`),label:e(`conversations.payroll.label`),toolName:e(`conversations.payroll.toolName`),approvalDemo:`approve`,block:(0,C.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,C.jsxs)(`div`,{className:`flex items-center gap-1.5 flex-wrap`,children:[(0,C.jsxs)(`div`,{className:`flex items-center gap-1.5 h-6 border border-base-200 rounded-full px-2.5 text-xs`,children:[(0,C.jsx)(v,{className:`size-3 text-base-400`}),(0,C.jsx)(`span`,{className:`text-base-700`,children:e(`conversations.payroll.date`)})]}),(0,C.jsx)(`div`,{className:`flex-1 min-w-0 h-6 flex items-center border border-base-200 rounded-full px-2.5 text-xs`,children:(0,C.jsx)(`span`,{className:`text-base-500 truncate`,children:e(`conversations.payroll.description`)})})]}),(0,C.jsx)(`div`,{className:`space-y-px`,children:e(`conversations.payroll.lines`,{returnObjects:!0}).map(e=>(0,C.jsxs)(`div`,{className:`flex items-center gap-1.5 py-0.5`,children:[(0,C.jsx)(l,{className:`size-3 text-base-400 shrink-0`}),(0,C.jsx)(`span`,{className:`font-mono text-[10px] text-base-400`,children:e.code}),(0,C.jsx)(`span`,{className:`text-xs text-base-500 flex-1 truncate`,children:e.name}),(0,C.jsx)(`span`,{className:`font-mono text-xs font-semibold ${e.debit?`text-emerald-500`:`text-red-500`}`,children:e.amount})]},e.code))}),(0,C.jsxs)(`div`,{className:`flex items-center justify-end gap-4 border-t border-base-100 pt-1.5`,children:[(0,C.jsxs)(`div`,{className:`flex flex-col items-end`,children:[(0,C.jsx)(`span`,{className:`font-mono text-xs font-semibold text-emerald-500`,children:e(`conversations.payroll.totalDebit`)}),(0,C.jsx)(`span`,{className:`text-[10px] text-base-400`,children:e(`labels.debit`)})]}),(0,C.jsxs)(`div`,{className:`flex flex-col items-end`,children:[(0,C.jsx)(`span`,{className:`font-mono text-xs font-semibold text-red-500`,children:e(`conversations.payroll.totalCredit`)}),(0,C.jsx)(`span`,{className:`text-[10px] text-base-400`,children:e(`labels.credit`)})]})]})]})},{question:e(`conversations.balances.question`),label:``,block:(0,C.jsx)(M,{tokens:k(e(`conversations.balances.tokens`,{returnObjects:!0}))})},{question:e(`conversations.expense.question`),label:e(`conversations.expense.label`),toolName:e(`conversations.expense.toolName`),approvalDemo:`approve`,block:(0,C.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,C.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-lg border border-base-100 bg-base-50/50 py-1.5 px-2.5`,children:[(0,C.jsx)(m,{className:`size-3.5 text-base-400 shrink-0`}),(0,C.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,C.jsx)(`span`,{className:`text-[10px] text-base-400 leading-tight`,children:e(`conversations.expense.creditorLabel`)}),(0,C.jsx)(`span`,{className:`text-xs font-medium text-base-950 leading-tight`,children:e(`conversations.expense.creditorName`)}),(0,C.jsx)(`span`,{className:`text-[10px] text-base-400 leading-tight`,children:e(`conversations.expense.creditorId`)})]})]}),(0,C.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-lg bg-base-50 px-2.5 py-1`,children:[(0,C.jsx)(v,{className:`size-3.5 text-base-400`}),(0,C.jsxs)(`div`,{className:`flex flex-col`,children:[(0,C.jsx)(`span`,{className:`text-[10px] text-base-400 leading-tight`,children:e(`conversations.expense.dateLabel`)}),(0,C.jsx)(`span`,{className:`text-xs`,children:e(`conversations.expense.date`)})]})]}),(0,C.jsx)(`div`,{className:`py-1 border-y border-base-100`,children:(0,C.jsxs)(`div`,{className:`flex items-start gap-2 py-1`,children:[(0,C.jsx)(l,{className:`size-3 text-base-400 shrink-0 mt-0.5`}),(0,C.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,C.jsx)(`div`,{className:`text-xs font-medium`,children:e(`conversations.expense.itemTitle`)}),(0,C.jsxs)(`div`,{className:`text-[10px] text-base-400`,children:[(0,C.jsx)(`span`,{className:`font-mono`,children:e(`conversations.expense.accountCode`)}),` `,e(`conversations.expense.accountName`)]}),(0,C.jsx)(`div`,{className:`flex items-center gap-2 mt-0.5`,children:(0,C.jsx)(`span`,{className:`text-[10px] px-1.5 py-px rounded-full bg-base-100 text-base-500 font-medium`,children:e(`conversations.expense.vatBadge`)})})]})]})}),(0,C.jsxs)(`div`,{className:`flex flex-col items-end gap-0.5`,children:[(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsx)(`span`,{className:`text-[10px] text-base-500`,children:e(`conversations.expense.exVatLabel`)}),(0,C.jsx)(`span`,{className:`font-mono text-xs text-base-500`,children:e(`conversations.expense.exVatAmount`)})]}),(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsx)(`span`,{className:`text-[10px] text-base-500`,children:e(`conversations.expense.totalLabel`)}),(0,C.jsx)(`span`,{className:`font-mono text-sm font-semibold text-base-800`,children:e(`conversations.expense.totalAmount`)})]})]})]})},{question:e(`conversations.customer.question`),label:e(`conversations.customer.label`),toolName:e(`conversations.customer.toolName`),approvalDemo:`approve`,block:(0,C.jsxs)(`div`,{className:`grid grid-cols-2 gap-1.5`,children:[(0,C.jsxs)(`div`,{className:`col-span-2 flex items-center gap-2`,children:[(0,C.jsx)(x,{className:`size-3 text-base-400 shrink-0`}),(0,C.jsx)(`span`,{className:`text-xs text-base-700`,children:e(`conversations.customer.idNumber`)})]}),(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsx)(u,{className:`size-3 text-base-400 shrink-0`}),(0,C.jsx)(`span`,{className:`text-xs text-base-700`,children:e(`conversations.customer.email`)})]}),(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsx)(c,{className:`size-3 text-base-400 shrink-0`}),(0,C.jsx)(`span`,{className:`text-xs text-base-700`,children:e(`conversations.customer.phone`)})]}),(0,C.jsxs)(`div`,{className:`col-span-2 flex items-center gap-2`,children:[(0,C.jsx)(h,{className:`size-3 text-base-400 shrink-0`}),(0,C.jsx)(`span`,{className:`text-xs text-base-700`,children:e(`conversations.customer.address`)})]})]})},{question:e(`conversations.reconcile.question`),label:e(`conversations.reconcile.label`),toolName:e(`conversations.reconcile.toolName`),approvalDemo:`reject`,block:(0,C.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,C.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-base-100 bg-base-50/50 py-1.5 px-2.5`,children:[(0,C.jsx)(o,{className:`size-3.5 text-base-400 shrink-0 mt-0.5`}),(0,C.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,C.jsxs)(`div`,{className:`text-xs`,children:[(0,C.jsx)(`span`,{className:`text-base-500 mr-1.5`,children:e(`conversations.reconcile.txnDate`)}),(0,C.jsx)(`span`,{className:`font-medium text-base-950`,children:e(`conversations.reconcile.txnName`)})]}),(0,C.jsx)(`span`,{className:`text-[10px] text-base-400`,children:e(`conversations.reconcile.txnAccount`)})]}),(0,C.jsx)(`span`,{className:`font-mono text-xs font-medium text-red-500 shrink-0`,children:e(`conversations.reconcile.txnAmount`)})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`span`,{className:`text-[10px] text-base-400 font-medium`,children:e(`conversations.reconcile.linesLabel`)}),(0,C.jsx)(`div`,{className:`mt-0.5 space-y-px`,children:e(`conversations.reconcile.lines`,{returnObjects:!0}).map(e=>(0,C.jsxs)(`div`,{className:`flex items-center gap-1.5 py-0.5`,children:[(0,C.jsx)(l,{className:`size-3 text-base-400 shrink-0`}),(0,C.jsx)(`span`,{className:`font-mono text-[10px] text-base-400`,children:e.code}),(0,C.jsx)(`span`,{className:`text-xs text-base-500 flex-1 truncate`,children:e.name}),(0,C.jsx)(`span`,{className:`font-mono text-xs font-semibold ${e.debit?`text-emerald-600`:`text-red-500`}`,children:e.amount})]},e.code))})]}),(0,C.jsxs)(`div`,{className:`flex items-center justify-end gap-1.5 border-t border-base-100 pt-1.5`,children:[(0,C.jsx)(`span`,{className:`text-[10px] text-base-500`,children:e(`conversations.reconcile.totalLabel`)}),(0,C.jsx)(`span`,{className:`font-mono text-xs font-semibold text-base-800`,children:e(`conversations.reconcile.totalAmount`)})]})]})},{question:e(`conversations.currency.question`),label:``,block:(0,C.jsx)(M,{tokens:k(e(`conversations.currency.tokens`,{returnObjects:!0}))})}],P=500,F=800,I=3e3,L=1800,R=1500,z=1500,B=300,V=600,H=()=>{let{t:e}=r(`chat`),[t,n]=(0,S.useState)(0),[i,o]=(0,S.useState)(`user-enter`),[c,l]=(0,S.useState)(0),[u,m]=(0,S.useState)(!1),h=(0,S.useRef)(null),v=f(h,{margin:`100px`}),x=(0,S.useMemo)(()=>N(e),[e]),w=e(`workingLabels`,{returnObjects:!0}),T=x[t];(0,S.useEffect)(()=>
1{if(!v)return;let e;switch(i){case`user-enter`:e=setTimeout(()=>{l(0),o(`working`)},P);break;case`working`:e=c<w.length-1?setTimeout(()=>{l(e=>e+1)},F):setTimeout(()=>{o(`result`)},F);break;case`result`:e=setTimeout(()=>{o(T.approvalDemo?`approving`:`exit`)},T.approvalDemo?L:I);break;case`approving`:e=setTimeout(()=>o(`approved`),T.approvalDemo===`reject`?B+200:R);break;case`approved`:e=setTimeout(()=>o(`exit`),z);break;case`exit`:e=setTimeout(()=>{n(e=>(e+1)%x.length),l(0),o(`user-enter`)},V);break}return()=>clearTimeout(e)},[v,i,c,T.approvalDemo,x.length,w.length]),(0,S.useEffect)(()=>{if(i===`approving`){m(!0);let e=setTimeout(()=>m(!1),B);return()=>clearTimeout(e)}m(!1)},[i]);let O=T.approvalDemo===`approve`,k=T.approvalDemo===`reject`,A=O?i===`approved`||i===`exit`?`completed`:i===`approving`&&!u?`executing`:`pending`:k&&(i===`approving`&&!u||i===`approved`||i===`exit`)?`rejected`:`pending`;return(0,C.jsx)(g,{children:(0,C.jsx)(`div`,{ref:h,className:`pt-12 md:pt-16 lg:pt-20 xl:pt-24 pb-8`,children:(0,C.jsxs)(`div`,{className:`grid grid-cols-10 gap-6 md:gap-8 lg:items-start`,children:[(0,C.jsxs)(`div`,{className:`col-span-full lg:col-span-5 2xl:col-span-6 flex flex-col justify-center`,children:[(0,C.jsx)(`h2`,{className:`text-2xl lg:text-3xl xl:text-5xl font-semibold text-base-900`,children:e(`title`)}),(0,C.jsx)(`p`,{className:`mt-2 md:mt-3 lg:mt-5 text-base-600 text-base md:text-lg lg:text-xl xl:text-2xl max-w-md xl:max-w-lg 2xl:max-w-xl text-pretty`,children:e(`subtitle`)}),(0,C.jsx)(`div`,{className:`mt-4 lg:mt-6 flex flex-wrap gap-2 max-w-md xl:max-w-lg 2xl:max-w-xl`,children:e(`pills`,{returnObjects:!0}).map(e=>(0,C.jsx)(`span`,{className:`inline-block rounded-full border border-base-200/60 bg-white/60 px-3 py-1 text-xs md:text-sm text-base-500`,children:e},e))})]}),(0,C.jsx)(`div`,{className:`col-span-full lg:col-span-5 2xl:col-span-4 relative overflow-hidden lg:pt-12 xl:pt-16 min-h-112 md:min-h-124 xl:min-h-128`,children:(0,C.jsxs)(a.div,{initial:{opacity:0}
1,animate:{opacity:i===`exit`?0:1,y:i===`exit`?-80:0},transition:{duration:.4,ease:`easeInOut`},className:`flex flex-col gap-4`,children:[(0,C.jsxs)(a.div,{className:`flex flex-col items-end gap-1.5`,initial:{opacity:0,y:12,scale:.96},animate:{opacity:1,y:0,scale:1},transition:{duration:.3,ease:`easeOut`},children:[(0,C.jsx)(`span`,{className:`text-xs xl:text-sm font-medium text-base-600`,children:e(`you`)}),(0,C.jsx)(`div`,{className:`bg-base-100 rounded-2xl 2xl:rounded-3xl rounded-tr-md! px-5 py-3 2xl:px-6 2xl:py-4`,children:(0,C.jsx)(`p`,{className:`text-base md:text-lg 2xl:text-xl text-base-900`,children:T.question})})]}),i!==`user-enter`&&(0,C.jsxs)(a.div,{className:`flex items-start gap-3 xl:gap-4`,initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.3,ease:`easeOut`},children:[(0,C.jsx)(`div`,{className:`shrink-0 size-8 md:size-9 xl:size-10 rounded-full bg-white border border-base-200/40 flex items-center justify-center shadow-sm`,children:(0,C.jsx)(`img`,{src:`/images/agents/skrif.svg`,alt:`Skrif`,width:388,height:388,className:`size-5 md:size-5.5 xl:size-6`})}),(0,C.jsxs)(`div`,{className:`flex flex-col gap-1.5 flex-1 min-w-0`,children:[(0,C.jsx)(`span`,{className:`text-xs xl:text-sm font-medium text-base-600`,children:`Skrif`}),(0,C.jsx)(d,{mode:`wait`,children:i===`working`?(0,C.jsx)(a.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.2},className:`rounded-xl border border-radiant-200 bg-white/50 py-2 px-3`,children:(0,C.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,C.jsxs)(`div`,{className:`shrink-0`,children:[(0,C.jsx)(E,{color:`radiant`,size:14,duration:1.2,className:`xl:hidden`}),(0,C.jsx)(E,{color:`radiant`,size:18,duration:1.2,className:`hidden xl:block`})]}),(0,C.jsx)(`div`,{className:`relative overflow-hidden h-5`,children:(0,C.jsx)(d,{mode:`wait`,initial:!1,children:(0,C.jsx)(a.span,{initial:{y:8,opacity:0},animate:{y:0,opacity:1},exit:{y:-8,opacity:0},transition:{duration:.15,ease:`easeInOut`},className:`block text-sm font-medium whitespace-nowrap`,children:(0,C.jsx)(D,{speed:3,children:w[c]})},c)})})]})},`working`):T.toolName?(0,C.jsxs)(a.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},transition:{duration:.25,ease:`easeOut`},children:[(0,C.jsx)(`p`,{className:`text-xs xl:text-sm text-base-500 mb-2`,children:T.label}),(0,C.jsxs)(`div`,{className:`rounded-xl xl:rounded-2xl p-2.5 xl:p-3 border transition-all duration-500 ${A===`completed`?`border-radiant-200 bg-radiant-50/50`:A===`executing`?`border-radiant-200 bg-white/50`:A===`rejected`?`border-base-200 bg-white/50 opacity-50`:`border-dashed border-base-200 bg-white/50`}`,children:[(0,C.jsx)(`div`,{className:`flex items-center gap-1.5 mb-2`,children:(0,C.jsx)(d,{mode:`wait`,initial:!1,children:A===`completed`?(0,C.jsxs)(a.div,{className:`flex items-center gap-1.5`,initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.2},children:[(0,C.jsx)(y,{className:`size-3.5 xl:size-4 text-radiant-400`}),(0,C.jsx)(`span`,{className:`text-xs xl:text-sm font-medium text-base-950`,children:T.toolName}),(0,C.jsxs)(`span`,{className:`text-xs xl:text-sm text-radiant-400`,children:[`(`,e(`toolSuccess`),`)`]})]},`completed`):A===`rejected`?(0,C.jsxs)(a.div,{className:`flex items-center gap-1.5`,initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},children:[(0,C.jsx)(_,{className:`size-3.5 xl:size-4 text-base-400`}),(0,C.jsx)(`span`,{className:`text-xs xl:text-sm font-medium text-base-950 line-through`,children:T.toolName}),(0,C.jsxs)(`span`,{className:`text-xs xl:text-sm text-base-400`,children:[`(`,e(`toolRejected`),`)`]})]},`rejected`):A===`executing`?(0,C.jsxs)(a.div,{className:`flex items-center gap-1.5`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[(0,C.jsxs)(`div`,{className:`shrink-0`,children:[(0,C.jsx)(E,{color:`radiant`,size:14,duration:1.2,className:`xl:hidden`}),(0,C.jsx)(E,{color:`radiant`,size:18,duration:1.2,className:`hidden xl:block`})]}),(0,C.jsx)(D,{className:`text-xs xl:text-sm font-medium`,children:T.toolName})]},`executing`):(0,C.jsxs)(a.div,{className:`flex items-center gap-1.5`,exit:{opacity:0},transition:{duration:.15},children:[(0,C.jsx)(b,{className:`size-3.5 xl:size-4 text-radiant-400`}),(0,C.jsx)(`span`,{className:`text-xs xl:text-sm font-medium text-base-950`,children:T.toolName})]},`pending`)})}),(0,C.jsx)(`div`,{className:`rounded-lg xl:rounded-xl border border-base-50 bg-white shadow shadow-base-500/5 p-2 xl:p-2.5`,children:T.block}),(0,C.jsx)(d,{children:A===`pending`&&(0,C.jsxs)(a.div,{exit:{opacity:0},transition:{duration:.15},className:`flex items-center justify-end gap-1.5 mt-2`,children:[(0,C.jsx)(a.div,{animate:u?k?{scale:[1,.75,1.1]}:{scale:.8,opacity:.3}:{},transition:{duration:k?.25:.15},className:`size-6 xl:size-7 rounded-full border shadow-xs flex items-center justify-center transition-colors duration-150 ${u&&k?`border-base-400 bg-base-200 ring-4 ring-base-200 text-base-700`:`border-base-200 bg-white text-base-500`}`,children:(0,C.jsx)(p,{className:`size-3 xl:size-3.5`})}),(0,C.jsx)(a.div,{animate:u?k?{scale:.8,opacity:.3}:{scale:[1,.75,1.1]}:{},transition:{duration:k?.15:.25},className:`size-6 xl:size-7 rounded-full shadow-xs flex items-center justify-center text-white transition-colors duration-150 ${u&&!k?`bg-radiant-600 ring-4 ring-radiant-200`:`bg-radiant-500`}`,children:(0,C.jsx)(s,{className:`size-3 xl:size-3.5`})})]})})]})]},`result`):(0,C.jsx)(a.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.15},children:T.block},`result`)})]})]})]},t)})]})})})};export{y as a,b as i,D as n,v as o,E as r,_ as s,H as 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.