sestek-component 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,12 +11,14 @@ A React component library built with TypeScript, Tailwind CSS, and Shadcn.
11
11
  ### Installation
12
12
 
13
13
  1. Clone the repository:
14
+
14
15
  ```bash
15
16
  git clone https://github.com/sestek/ui-component.git
16
17
  cd ui-component
17
18
  ```
18
19
 
19
20
  2. Install dependencies:
21
+
20
22
  ```bash
21
23
  npm install
22
24
  # or
@@ -51,21 +53,19 @@ This will start Storybook at [http://localhost:6006](http://localhost:6006)
51
53
  ### Installation in Your Project
52
54
 
53
55
  ```bash
54
- npm install sestek-ui-component
56
+ npm install sestek-component
55
57
  # or
56
- yarn add sestek-ui-component
58
+ yarn add sestek-component
57
59
  ```
58
60
 
59
61
  ### Using Components
60
62
 
61
63
  ```jsx
62
- import { Tab } from 'sestek-ui-component';
63
- import 'sestek-ui-component/css';
64
+ import { Tab } from "sestek-component";
65
+ import "sestek-component/css";
64
66
 
65
67
  function App() {
66
- return (
67
- <Tab />
68
- );
68
+ return <Tab />;
69
69
  }
70
70
  ```
71
71
 
@@ -80,6 +80,7 @@ function App() {
80
80
  ## License
81
81
 
82
82
  This project is licensed under the MIT License - see the LICENSE file for details
83
+
83
84
  ```
84
85
 
85
86
  This README provides:
@@ -99,3 +100,4 @@ You can customize this further by:
99
100
  - Including troubleshooting sections
100
101
  - Adding more detailed usage examples
101
102
  - Including links to additional documentation
103
+ ```
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),z=require("react");require("react-dom");function yt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=yt(z);function O(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ce(e,t=[]){let r=[];function n(s,i){const c=l.createContext(i),d=r.length;r=[...r,i];const u=g=>{var N;const{scope:x,children:C,...b}=g,v=((N=x==null?void 0:x[e])==null?void 0:N[d])||c,j=l.useMemo(()=>b,Object.values(b));return a.jsx(v.Provider,{value:j,children:C})};u.displayName=s+"Provider";function p(g,x){var v;const C=((v=x==null?void 0:x[e])==null?void 0:v[d])||c,b=l.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=r.map(i=>l.createContext(i));return function(c){const d=(c==null?void 0:c[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[n,Nt(o,...t)]}function Nt(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=n.reduce((c,{useScope:d,scopeName:u})=>{const g=d(s)[`__scope${u}`];return{...c,...g}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ie(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ve(...e){return t=>{let r=!1;const n=e.map(o=>{const s=Ie(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():Ie(e[o],null)}}}}function le(...e){return l.useCallback(Ve(...e),e)}var X=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),s=o.find(St);if(s){const i=s.props.children,c=o.map(d=>d===s?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:d);return a.jsx(be,{...n,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,c):null})}return a.jsx(be,{...n,ref:t,children:r})});X.displayName="Slot";var be=l.forwardRef((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const o=At(r),s=Ft(n,r.props);return r.type!==l.Fragment&&(s.ref=t?Ve(t,o):o),l.cloneElement(r,s)}return l.Children.count(r)>1?l.Children.only(null):null});be.displayName="SlotClone";var jt=({children:e})=>a.jsx(a.Fragment,{children:e});function St(e){return l.isValidElement(e)&&e.type===jt}function Ft(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...c)=>{s(...c),o(...c)}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function At(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Rt(e){const t=e+"CollectionProvider",[r,n]=ce(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=C=>{const{scope:b,children:v}=C,j=z.useRef(null),N=z.useRef(new Map).current;return a.jsx(o,{scope:b,itemMap:N,collectionRef:j,children:v})};i.displayName=t;const c=e+"CollectionSlot",d=z.forwardRef((C,b)=>{const{scope:v,children:j}=C,N=s(c,v),S=le(b,N.collectionRef);return a.jsx(X,{ref:S,children:j})});d.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",g=z.forwardRef((C,b)=>{const{scope:v,children:j,...N}=C,S=z.useRef(null),T=le(b,S),M=s(u,v);return z.useEffect(()=>(M.itemMap.set(S,{ref:S,...N}),()=>void M.itemMap.delete(S))),a.jsx(X,{[p]:"",ref:T,children:j})});g.displayName=u;function x(C){const b=s(e+"CollectionConsumer",C);return z.useCallback(()=>{const j=b.collectionRef.current;if(!j)return[];const N=Array.from(j.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((M,E)=>N.indexOf(M.ref.current)-N.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:d,ItemSlot:g},x,n]}var Q=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},It=l.useId||(()=>{}),Mt=0;function ze(e){const[t,r]=l.useState(It());return Q(()=>{r(n=>n??String(Mt++))},[e]),e||(t?`radix-${t}`:"")}var kt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],B=kt.reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:s,...i}=n,c=s?X:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function de(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Oe({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Tt({defaultProp:t,onChange:r}),s=e!==void 0,i=s?e:n,c=de(r),d=l.useCallback(u=>{if(s){const g=typeof u=="function"?u(e):u;g!==e&&c(g)}else o(u)},[s,e,o,c]);return[i,d]}function Tt({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),s=de(t);return l.useEffect(()=>{o.current!==n&&(s(n),o.current=n)},[n,o,s]),r}var Et=l.createContext(void 0);function Be(e){const t=l.useContext(Et);return e||t||"ltr"}var pe="rovingFocusGroup.onEntryFocus",Lt={bubbles:!1,cancelable:!0},ue="RovingFocusGroup",[he,Ge,Pt]=Rt(ue),[_t,De]=ce(ue,[Pt]),[Vt,zt]=_t(ue),$e=l.forwardRef((e,t)=>a.jsx(he.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(he.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Ot,{...e,ref:t})})}));$e.displayName=ue;var Ot=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...g}=e,x=l.useRef(null),C=le(t,x),b=Be(s),[v=null,j]=Oe({prop:i,defaultProp:c,onChange:d}),[N,S]=l.useState(!1),T=de(u),M=Ge(r),E=l.useRef(!1),[h,I]=l.useState(0);return l.useEffect(()=>{const A=x.current;if(A)return A.addEventListener(pe,T),()=>A.removeEventListener(pe,T)},[T]),a.jsx(Vt,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:v,onItemFocus:l.useCallback(A=>j(A),[j]),onItemShiftTab:l.useCallback(()=>S(!0),[]),onFocusableItemAdd:l.useCallback(()=>I(A=>A+1),[]),onFocusableItemRemove:l.useCallback(()=>I(A=>A-1),[]),children:a.jsx(B.div,{tabIndex:N||h===0?-1:0,"data-orientation":n,...g,ref:C,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{E.current=!0}),onFocus:O(e.onFocus,A=>{const ee=!E.current;if(A.target===A.currentTarget&&ee&&!N){const U=new CustomEvent(pe,Lt);if(A.currentTarget.dispatchEvent(U),!U.defaultPrevented){const q=M().filter(y=>y.focusable),J=q.find(y=>y.active),D=q.find(y=>y.id===v),V=[J,D,...q].filter(Boolean).map(y=>y.ref.current);Ke(V,p)}}E.current=!1}),onBlur:O(e.onBlur,()=>S(!1))})})}),Ue="RovingFocusGroupItem",We=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,...i}=e,c=ze(),d=s||c,u=zt(Ue,r),p=u.currentTabStopId===d,g=Ge(r),{onFocusableItemAdd:x,onFocusableItemRemove:C}=u;return l.useEffect(()=>{if(n)return x(),()=>C()},[n,x,C]),a.jsx(he.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:a.jsx(B.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:O(e.onMouseDown,b=>{n?u.onItemFocus(d):b.preventDefault()}),onFocus:O(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:O(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=Dt(b,u.orientation,u.dir);if(v!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let N=g().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")N.reverse();else if(v==="prev"||v==="next"){v==="prev"&&N.reverse();const S=N.indexOf(b.currentTarget);N=u.loop?$t(N,S+1):N.slice(S+1)}setTimeout(()=>Ke(N))}})})})});We.displayName=Ue;var Bt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Gt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Dt(e,t,r){const n=Gt(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Bt[n]}function Ke(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function $t(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Ut=$e,Wt=We;function Kt(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var qe=e=>{const{present:t,children:r}=e,n=qt(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),s=le(n.ref,Zt(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:s}):null};qe.displayName="Presence";function qt(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),s=l.useRef("none"),i=e?"mounted":"unmounted",[c,d]=Kt(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=se(n.current);s.current=c==="mounted"?u:"none"},[c]),Q(()=>{const u=n.current,p=o.current;if(p!==e){const x=s.current,C=se(u);e?d("MOUNT"):C==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&x!==C?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Q(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,g=C=>{const v=se(n.current).includes(C.animationName);if(C.target===t&&v&&(d("ANIMATION_END"),!o.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},x=C=>{C.target===t&&(s.current=se(n.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function se(e){return(e==null?void 0:e.animationName)||"none"}function Zt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ce="Tabs",[Ht,mn]=ce(Ce,[De]),Ze=De(),[Yt,ye]=Ht(Ce),He=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:c,activationMode:d="automatic",...u}=e,p=Be(c),[g,x]=Oe({prop:n,onChange:o,defaultProp:s});return a.jsx(Yt,{scope:r,baseId:ze(),value:g,onValueChange:x,orientation:i,dir:p,activationMode:d,children:a.jsx(B.div,{dir:p,"data-orientation":i,...u,ref:t})})});He.displayName=Ce;var Ye="TabsList",Je=l.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,s=ye(Ye,r),i=Ze(r);return a.jsx(Ut,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:n,children:a.jsx(B.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Je.displayName=Ye;var Xe="TabsTrigger",Qe=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,i=ye(Xe,r),c=Ze(r),d=rt(i.baseId,n),u=nt(i.baseId,n),p=n===i.value;return a.jsx(Wt,{asChild:!0,...c,focusable:!o,active:p,children:a.jsx(B.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":u,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:O(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?i.onValueChange(n):g.preventDefault()}),onKeyDown:O(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&i.onValueChange(n)}),onFocus:O(e.onFocus,()=>{const g=i.activationMode!=="manual";!p&&!o&&g&&i.onValueChange(n)})})})});Qe.displayName=Xe;var et="TabsContent",tt=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:s,...i}=e,c=ye(et,r),d=rt(c.baseId,n),u=nt(c.baseId,n),p=n===c.value,g=l.useRef(p);return l.useEffect(()=>{const x=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(x)},[]),a.jsx(qe,{present:o||p,children:({present:x})=>a.jsx(B.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!x,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:x&&s})})});tt.displayName=et;function rt(e,t){return`${e}-trigger-${t}`}function nt(e,t){return`${e}-content-${t}`}var Jt=He,Xt=Je,Qt=Qe,er=tt;function ot(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ot(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function st(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ot(e))&&(n&&(n+=" "),n+=t);return n}const Ne="-",tr=e=>{const t=nr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const c=i.split(Ne);return c[0]===""&&c.length!==1&&c.shift(),at(c,t)||rr(i)},getConflictingClassGroupIds:(i,c)=>{const d=r[i]||[];return c&&n[i]?[...d,...n[i]]:d}}},at=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?at(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Ne);return(i=t.validators.find(({validator:c})=>c(s)))==null?void 0:i.classGroupId},Me=/^\[(.+)\]$/,rr=e=>{if(Me.test(e)){const t=Me.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},nr=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)xe(r[o],n,o,t);return n},xe=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ke(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(or(o)){xe(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{xe(i,ke(t,s),r,n)})})},ke=(e,t)=>{let r=e;return t.split(Ne).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},or=e=>e.isThemeGetter,sr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},ve="!",we=":",ar=we.length,ir=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,c=0,d=0,u;for(let b=0;b<o.length;b++){let v=o[b];if(i===0&&c===0){if(v===we){s.push(o.slice(d,b)),d=b+ar;continue}if(v==="/"){u=b;continue}}v==="["?i++:v==="]"?i--:v==="("?c++:v===")"&&c--}const p=s.length===0?o:o.substring(d),g=lr(p),x=g!==p,C=u&&u>d?u-d:void 0;return{modifiers:s,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:C}};if(t){const o=t+we,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},lr=e=>e.endsWith(ve)?e.substring(0,e.length-1):e.startsWith(ve)?e.substring(1):e,cr=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},dr=e=>({cache:sr(e.cacheSize),parseClassName:ir(e),sortModifiers:cr(e),...tr(e)}),ur=/\s+/,fr=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],c=e.trim().split(ur);let d="";for(let u=c.length-1;u>=0;u-=1){const p=c[u],{isExternal:g,modifiers:x,hasImportantModifier:C,baseClassName:b,maybePostfixModifierPosition:v}=r(p);if(g){d=p+(d.length>0?" "+d:d);continue}let j=!!v,N=n(j?b.substring(0,v):b);if(!N){if(!j){d=p+(d.length>0?" "+d:d);continue}if(N=n(b),!N){d=p+(d.length>0?" "+d:d);continue}j=!1}const S=s(x).join(":"),T=C?S+ve:S,M=T+N;if(i.includes(M))continue;i.push(M);const E=o(N,j);for(let h=0;h<E.length;++h){const I=E[h];i.push(T+I)}d=p+(d.length>0?" "+d:d)}return d};function mr(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=it(t))&&(n&&(n+=" "),n+=r);return n}const it=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=it(e[n]))&&(r&&(r+=" "),r+=t);return r};function pr(e,...t){let r,n,o,s=i;function i(d){const u=t.reduce((p,g)=>g(p),e());return r=dr(u),n=r.cache.get,o=r.cache.set,s=c,c(d)}function c(d){const u=n(d);if(u)return u;const p=fr(d,r);return o(d,p),p}return function(){return s(mr.apply(null,arguments))}}const F=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},lt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ct=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gr=/^\d+\/\d+$/,br=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>gr.test(e),w=e=>!!e&&!Number.isNaN(Number(e)),W=e=>!!e&&Number.isInteger(Number(e)),Te=e=>e.endsWith("%")&&w(e.slice(0,-1)),$=e=>br.test(e),Cr=()=>!0,yr=e=>hr.test(e)&&!xr.test(e),je=()=>!1,Nr=e=>vr.test(e),jr=e=>wr.test(e),Sr=e=>!f(e)&&!m(e),Fr=e=>H(e,ft,je),f=e=>lt.test(e),K=e=>H(e,mt,yr),ge=e=>H(e,Vr,w),Ar=e=>H(e,dt,je),Rr=e=>H(e,ut,jr),Ir=e=>H(e,je,Nr),m=e=>ct.test(e),ae=e=>Y(e,mt),Mr=e=>Y(e,zr),kr=e=>Y(e,dt),Tr=e=>Y(e,ft),Er=e=>Y(e,ut),Lr=e=>Y(e,Or,!0),H=(e,t,r)=>{const n=lt.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Y=(e,t,r=!1)=>{const n=ct.exec(e);return n?n[1]?t(n[1]):r:!1},dt=e=>e==="position",Pr=new Set(["image","url"]),ut=e=>Pr.has(e),_r=new Set(["length","size","percentage"]),ft=e=>_r.has(e),mt=e=>e==="length",Vr=e=>e==="number",zr=e=>e==="family-name",Or=e=>e==="shadow",Br=()=>{const e=F("color"),t=F("font"),r=F("text"),n=F("font-weight"),o=F("tracking"),s=F("leading"),i=F("breakpoint"),c=F("container"),d=F("spacing"),u=F("radius"),p=F("shadow"),g=F("inset-shadow"),x=F("drop-shadow"),C=F("blur"),b=F("perspective"),v=F("aspect"),j=F("ease"),N=F("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],h=()=>[m,f,d],I=()=>[Z,"full","auto",...h()],A=()=>[W,"none","subgrid",m,f],ee=()=>["auto",{span:["full",W,m,f]},m,f],U=()=>[W,"auto",m,f],q=()=>["auto","min","max","fr",m,f],J=()=>["start","end","center","between","around","evenly","stretch","baseline"],D=()=>["start","end","center","stretch"],_=()=>["auto",...h()],V=()=>[Z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],y=()=>[e,m,f],fe=()=>[Te,K],R=()=>["","none","full",u,m,f],k=()=>["",w,ae,K],te=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>["","none",C,m,f],Re=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m,f],re=()=>["none",w,m,f],ne=()=>["none",w,m,f],me=()=>[w,m,f],oe=()=>[Z,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[Cr],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[Sr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",w],text:[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Z,f,m,v]}],container:["container"],columns:[{columns:[w,f,m,c]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),f,m]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[W,"auto",m,f]}],basis:[{basis:[Z,"full","auto",c,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[w,Z,"auto","initial","none",f]}],grow:[{grow:["",w,m,f]}],shrink:[{shrink:["",w,m,f]}],order:[{order:[W,"first","last","none",m,f]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...D(),"baseline"]}],"align-self":[{self:["auto",...D(),"baseline"]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[c,"screen",...V()]}],"min-w":[{"min-w":[c,"screen","none",...V()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...V()]}],h:[{h:["screen",...V()]}],"min-h":[{"min-h":["screen","none",...V()]}],"max-h":[{"max-h":["screen",...V()]}],"font-size":[{text:["base",r,ae,K]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,m,ge]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Te,f]}],"font-family":[{font:[Mr,f,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,m,f]}],"line-clamp":[{"line-clamp":[w,"none",m,ge]}],leading:[{leading:[s,...h()]}],"list-image":[{"list-image":["none",m,f]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",m,f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[w,"from-font","auto",m,K]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[w,"auto",m,f]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m,f]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m,f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),kr,Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Tr,Fr]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},W,m,f],radial:["",m,f],conic:[W,m,f]},Er,Rr]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[w,m,f]}],"outline-w":[{outline:["",w,ae,K]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",p,Lr,Ir]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",m,f,g]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[w,K]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":y()}],opacity:[{opacity:[w,m,f]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],filter:[{filter:["","none",m,f]}],blur:[{blur:Ae()}],brightness:[{brightness:[w,m,f]}],contrast:[{contrast:[w,m,f]}],"drop-shadow":[{"drop-shadow":["","none",x,m,f]}],grayscale:[{grayscale:["",w,m,f]}],"hue-rotate":[{"hue-rotate":[w,m,f]}],invert:[{invert:["",w,m,f]}],saturate:[{saturate:[w,m,f]}],sepia:[{sepia:["",w,m,f]}],"backdrop-filter":[{"backdrop-filter":["","none",m,f]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[w,m,f]}],"backdrop-contrast":[{"backdrop-contrast":[w,m,f]}],"backdrop-grayscale":[{"backdrop-grayscale":["",w,m,f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w,m,f]}],"backdrop-invert":[{"backdrop-invert":["",w,m,f]}],"backdrop-opacity":[{"backdrop-opacity":[w,m,f]}],"backdrop-saturate":[{"backdrop-saturate":[w,m,f]}],"backdrop-sepia":[{"backdrop-sepia":["",w,m,f]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",m,f]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[w,"initial",m,f]}],ease:[{ease:["linear","initial",j,m,f]}],delay:[{delay:[w,m,f]}],animate:[{animate:["none",N,m,f]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,m,f]}],"perspective-origin":[{"perspective-origin":Re()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[m,f,"","none","gpu","cpu"]}],"transform-origin":[{origin:Re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m,f]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m,f]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[w,ae,K,ge]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Gr=pr(Br);function G(...e){return Gr(st(e))}function Dr({className:e,...t}){return a.jsx(Jt,{"data-slot":"tabs",className:G("flex flex-col gap-2",e),...t})}function $r({className:e,...t}){return a.jsx(Xt,{"data-slot":"tabs-list",className:G("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",e),...t})}function Ee({className:e,...t}){return a.jsx(Qt,{"data-slot":"tabs-trigger",className:G("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Le({className:e,...t}){return a.jsx(er,{"data-slot":"tabs-content",className:G("flex-1 outline-none",e),...t})}const Ur=()=>a.jsxs(Dr,{defaultValue:"transcript",className:"w-[400px]",children:[a.jsxs($r,{children:[a.jsx(Ee,{value:"transcript",children:"Transcript"}),a.jsx(Ee,{value:"timeline",children:"Timeline"})]}),a.jsx(Le,{value:"transcript",children:"Transcript component."}),a.jsx(Le,{value:"timeline",children:"Timeline component."})]}),Pe=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_e=st,Wr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return _e(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const p=r==null?void 0:r[u],g=s==null?void 0:s[u];if(p===null)return null;const x=Pe(p)||Pe(g);return o[u][x]}),c=r&&Object.entries(r).reduce((u,p)=>{let[g,x]=p;return x===void 0||(u[g]=x),u},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,p)=>{let{class:g,className:x,...C}=p;return Object.entries(C).every(b=>{let[v,j]=b;return Array.isArray(j)?j.includes({...s,...c}[v]):{...s,...c}[v]===j})?[...u,g,x]:u},[]);return _e(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},Kr=Wr("inline-flex items-center justify-center 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",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-hover",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive-hover",outline:"border border-input text-secondary-foreground hover:bg-accent hover:text-accent-foreground",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"}}),pt=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},s)=>{const i=n?X:"button";return a.jsx(i,{className:G(Kr({variant:t,size:r,className:e})),ref:s,...o})});pt.displayName="Button";const P=e=>a.jsx(pt,{...e,children:e.children});var Se="Avatar",[qr,pn]=ce(Se),[Zr,gt]=qr(Se),bt=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,s]=l.useState("idle");return a.jsx(Zr,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:a.jsx(B.span,{...n,ref:t})})});bt.displayName=Se;var ht="AvatarImage",xt=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...s}=e,i=gt(ht,r),c=Hr(n,s.referrerPolicy),d=de(u=>{o(u),i.onImageLoadingStatusChange(u)});return Q(()=>{c!=="idle"&&d(c)},[c,d]),c==="loaded"?a.jsx(B.img,{...s,ref:t,src:n}):null});xt.displayName=ht;var vt="AvatarFallback",wt=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,s=gt(vt,r),[i,c]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const d=window.setTimeout(()=>c(!0),n);return()=>window.clearTimeout(d)}},[n]),i&&s.imageLoadingStatus!=="loaded"?a.jsx(B.span,{...o,ref:t}):null});wt.displayName=vt;function Hr(e,t){const[r,n]=l.useState("idle");return Q(()=>{if(!e){n("error");return}let o=!0;const s=new window.Image,i=c=>()=>{o&&n(c)};return n("loading"),s.onload=i("loaded"),s.onerror=i("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{o=!1}},[e,t]),r}var Yr=bt,Jr=xt,Xr=wt;function Qr({className:e,...t}){return a.jsx(Yr,{"data-slot":"avatar",className:G("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...t})}function en({className:e,...t}){return a.jsx(Jr,{"data-slot":"avatar-image",className:G("aspect-square size-full",e),...t})}function tn({className:e,...t}){return a.jsx(Xr,{"data-slot":"avatar-fallback",className:G("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const ie=({url:e,fullName:t,type:r="primary"})=>{const n=()=>{const[o,s]=t.split(" ");return`${(o==null?void 0:o.charAt(0))??""}${(s==null?void 0:s.charAt(0))??""}`};return a.jsxs(Qr,{children:[a.jsx(en,{role:"img",src:e}),a.jsx(tn,{className:G("text-base font-normal",r==="primary"?"text-[#F5F5F5] bg-[#39385F]":"bg-[#F5F5F5] text-[#37466D]"),children:n()})]})},rn=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4.5C9.33486 4.5 9.62915 4.72198 9.72114 5.04396L10.5343 7.89015C10.8903 9.13593 11.8641 10.1097 13.1099 10.4657L15.956 11.2789C16.278 11.3709 16.5 11.6651 16.5 12C16.5 12.3349 16.278 12.6291 15.956 12.7211L13.1098 13.5343C11.8641 13.8903 10.8903 14.8641 10.5343 16.1099L9.72114 18.956C9.62915 19.278 9.33486 19.5 9 19.5C8.66514 19.5 8.37085 19.278 8.27886 18.956L7.46566 16.1099C7.10972 14.8641 6.13593 13.8903 4.89015 13.5343L2.04396 12.7211C1.72198 12.6291 1.5 12.3349 1.5 12C1.5 11.6651 1.72198 11.3709 2.04396 11.2789L4.89015 10.4657C6.13593 10.1097 7.10972 9.13593 7.46566 7.89015L8.27886 5.04396C8.37085 4.72198 8.66514 4.5 9 4.5Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 1.5C18.3442 1.5 18.6441 1.73422 18.7276 2.0681L18.9865 3.10356C19.2216 4.04406 19.9559 4.7784 20.8964 5.01353L21.9319 5.27239C22.2658 5.35586 22.5 5.65585 22.5 6C22.5 6.34415 22.2658 6.64414 21.9319 6.72761L20.8964 6.98647C19.9559 7.2216 19.2216 7.95594 18.9865 8.89644L18.7276 9.9319C18.6441 10.2658 18.3442 10.5 18 10.5C17.6558 10.5 17.3559 10.2658 17.2724 9.9319L17.0135 8.89644C16.7784 7.95594 16.0441 7.2216 15.1036 6.98647L14.0681 6.72761C13.7342 6.64414 13.5 6.34415 13.5 6C13.5 5.65585 13.7342 5.35586 14.0681 5.27239L15.1036 5.01353C16.0441 4.7784 16.7784 4.04406 17.0135 3.10356L17.2724 2.0681C17.3559 1.73422 17.6558 1.5 18 1.5Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 15C16.8228 15 17.1094 15.2066 17.2115 15.5128L17.6058 16.6956C17.7551 17.1435 18.1065 17.4949 18.5544 17.6442L19.7372 18.0385C20.0434 18.1406 20.25 18.4272 20.25 18.75C20.25 19.0728 20.0434 19.3594 19.7372 19.4615L18.5544 19.8558C18.1065 20.0051 17.7551 20.3565 17.6058 20.8044L17.2115 21.9872C17.1094 22.2934 16.8228 22.5 16.5 22.5C16.1772 22.5 15.8906 22.2934 15.7885 21.9872L15.3942 20.8044C15.2449 20.3565 14.8935 20.0051 14.4456 19.8558L13.2628 19.4615C12.9566 19.3594 12.75 19.0728 12.75 18.75C12.75 18.4272 12.9566 18.1406 13.2628 18.0385L14.4456 17.6442C14.8935 17.4949 15.2449 17.1435 15.3942 16.6956L15.7885 15.5128C15.8906 15.2066 16.1772 15 16.5 15Z",fill:"currentColor"})),nn=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M4.91307 2.65823C6.9877 2.38888 9.10296 2.25 11.2503 2.25C13.3974 2.25 15.5124 2.38885 17.5869 2.65815C19.5091 2.90769 20.8783 4.51937 20.9923 6.38495C20.6665 6.27614 20.3212 6.20396 19.96 6.17399C18.5715 6.05874 17.1673 6 15.75 6C14.3326 6 12.9285 6.05874 11.54 6.17398C9.1817 6.36971 7.5 8.36467 7.5 10.6082V14.8937C7.5 16.5844 8.45468 18.1326 9.9328 18.8779L7.28033 21.5303C7.06583 21.7448 6.74324 21.809 6.46299 21.6929C6.18273 21.5768 6 21.3033 6 21V16.9705C5.63649 16.9316 5.27417 16.8887 4.91308 16.8418C2.90466 16.581 1.5 14.8333 1.5 12.8626V6.63738C1.5 4.66672 2.90466 2.91899 4.91307 2.65823Z",fill:"#C7C6FA"}),l.createElement("path",{d:"M15.75 7.5C14.3741 7.5 13.0114 7.55702 11.6641 7.66884C10.1248 7.7966 9 9.10282 9 10.6082V14.8937C9 16.4014 10.128 17.7083 11.6692 17.8341C12.9131 17.9357 14.17 17.9912 15.4384 17.999L18.2197 20.7803C18.4342 20.9948 18.7568 21.059 19.037 20.9429C19.3173 20.8268 19.5 20.5533 19.5 20.25V17.8601C19.6103 17.8518 19.7206 17.8432 19.8307 17.8342C21.372 17.7085 22.5 16.4015 22.5 14.8938V10.6082C22.5 9.10283 21.3752 7.79661 19.836 7.66885C18.4886 7.55702 17.1259 7.5 15.75 7.5Z",fill:"#C7C6FA"})),on=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19.5 12C19.5 10.7681 19.4536 9.54699 19.3624 8.3384C19.2128 6.35425 17.6458 4.78724 15.6616 4.63757C14.453 4.54641 13.2319 4.5 12 4.5C10.7681 4.5 9.54699 4.54641 8.3384 4.63757C6.35425 4.78724 4.78724 6.35425 4.63757 8.3384C4.62097 8.55852 4.60585 8.77906 4.59222 9M19.5 12L22.5 9M19.5 12L16.5 9M4.5 12C4.5 13.2319 4.54641 14.453 4.63757 15.6616C4.78724 17.6458 6.35425 19.2128 8.3384 19.3624C9.54699 19.4536 10.7681 19.5 12 19.5C13.2319 19.5 14.453 19.4536 15.6616 19.3624C17.6458 19.2128 19.2128 17.6458 19.3624 15.6616C19.379 15.4415 19.3941 15.2209 19.4078 15M4.5 12L7.5 15M4.5 12L1.5 15",stroke:"#5150B0",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),sn=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16.5 8.25V6C16.5 4.75736 15.4926 3.75 14.25 3.75H6C4.75736 3.75 3.75 4.75736 3.75 6V14.25C3.75 15.4926 4.75736 16.5 6 16.5H8.25M16.5 8.25H18C19.2426 8.25 20.25 9.25736 20.25 10.5V18C20.25 19.2426 19.2426 20.25 18 20.25H10.5C9.25736 20.25 8.25 19.2426 8.25 18V16.5M16.5 8.25H10.5C9.25736 8.25 8.25 9.25736 8.25 10.5V16.5",stroke:"#5150B0",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),an=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 5C11.799 5 12.0693 5.17751 12.1882 5.45179L15.4382 12.9518C15.6029 13.3319 15.4283 13.7735 15.0482 13.9382C14.6682 14.1029 14.2266 13.9283 14.0619 13.5482L13.3908 11.9997H9.60923L8.9382 13.5482C8.7735 13.9283 8.33189 14.1029 7.95182 13.9382C7.57176 13.7735 7.39717 13.3319 7.56186 12.9518L10.8119 5.45179C10.9307 5.17751 11.2011 5 11.5 5ZM10.2592 10.4997H12.7408L11.5 7.63628L10.2592 10.4997Z",fill:"#5150B0"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50003 1C5.91424 1 6.25003 1.33579 6.25003 1.75V3.01104C6.66299 3.02322 7.0735 3.04541 7.48131 3.0774C7.94038 3.11341 8.39601 3.16182 8.84786 3.22231C9.25842 3.27727 9.54668 3.65464 9.49172 4.06519C9.43676 4.47574 9.05938 4.76401 8.64883 4.70905C8.42894 4.67961 8.20808 4.65321 7.98628 4.6299C7.6301 5.85717 7.09808 7.00928 6.41941 8.05729C6.65555 8.36066 6.90658 8.65193 7.17142 8.92999C7.45709 9.22993 7.44553 9.70466 7.14559 9.99034C6.84565 10.276 6.37092 10.2644 6.08525 9.96451C5.88294 9.7521 5.68774 9.53284 5.50002 9.30711C4.68402 10.2884 3.72645 11.1474 2.65883 11.853C2.31326 12.0813 1.84799 11.9863 1.61962 11.6408C1.39124 11.2952 1.48624 10.8299 1.83181 10.6015C2.8813 9.90797 3.81021 9.04714 4.58066 8.05729C4.38359 7.75296 4.19887 7.43984 4.02724 7.11865C3.83202 6.75332 3.96992 6.29891 4.33524 6.10369C4.70057 5.90847 5.15498 6.04637 5.3502 6.4117C5.39895 6.50293 5.4489 6.59343 5.50002 6.68318C5.88798 6.00207 6.2083 5.27759 6.45187 4.51891C6.13619 4.50635 5.81887 4.5 5.50003 4.5C4.43193 4.5 3.38086 4.57121 2.35122 4.70905C1.94067 4.76401 1.5633 4.47574 1.50834 4.06519C1.45338 3.65464 1.74164 3.27727 2.15219 3.22231C3.00548 3.10808 3.87219 3.03692 4.75003 3.01104V1.75C4.75003 1.33579 5.08582 1 5.50003 1Z",fill:"#5150B0"})),ln=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.8001 1.59999C8.8001 1.15816 8.44192 0.799988 8.0001 0.799988C7.55827 0.799988 7.2001 1.15816 7.2001 1.59999V6.39999V6.79999C7.2001 7.0209 7.02101 7.19999 6.8001 7.19999C6.57918 7.19999 6.4001 7.0209 6.4001 6.79999V6.39999V2.39999C6.4001 1.95816 6.04192 1.59999 5.6001 1.59999C5.15827 1.59999 4.8001 1.95816 4.8001 2.39999V6.39999V6.79999C4.8001 6.80028 4.8001 6.80058 4.8001 6.80087C4.79962 7.02138 4.62072 7.19999 4.4001 7.19999C4.17918 7.19999 4.0001 7.0209 4.0001 6.79999V6.39999V3.99999C4.0001 3.55816 3.64192 3.19999 3.2001 3.19999C2.75827 3.19999 2.4001 3.55816 2.4001 3.99999V8.79999V9.59999C2.4001 12.6928 4.9073 15.2 8.0001 15.2C11.0929 15.2 13.6001 12.6928 13.6001 9.59999L13.6001 8.79999L13.6001 6.39999C13.6001 5.95816 13.2419 5.59999 12.8001 5.59999C12.3583 5.59999 12.0001 5.95816 12.0001 6.39999V8.79999V9.19999C12.0001 9.4209 11.821 9.59999 11.6001 9.59999C11.3792 9.59999 11.2001 9.4209 11.2001 9.19999V8.79999V7.99999V6.39999V2.39999C11.2001 1.95816 10.8419 1.59999 10.4001 1.59999C9.95827 1.59999 9.6001 1.95816 9.6001 2.39999V6.39999V6.79999C9.6001 7.0209 9.42101 7.19999 9.2001 7.19999C8.97918 7.19999 8.8001 7.0209 8.8001 6.79999V6.39999V1.59999Z",fill:"white"})),cn={Sparkles:rn,ChatBubble:nn,ArrowPathRoundedSquare:on,Square2Stack:sn,Language:an,HandRaised:ln};function dn({name:e,...t}){const r=cn[e];return r?a.jsx(r,{...t}):(console.error(`Icon "${e}" not found.`),null)}const L=z.memo(dn),un=({title:e,message:t,timestamps:r,icon:n,tag:o,showHelperButtons:s,onClickAskGenAI:i,onClickAskManager:c})=>a.jsxs("div",{className:"flex flex-col w-full h-fit rounded-xl md:rounded-3xl bg-[#F5F5F5] md:bg-[#FFFFFF] gap-2 p-4",children:[a.jsxs("div",{className:"flex w-full flex-row items-center justify-between",children:[a.jsxs("div",{className:"flex flex-row",children:[a.jsx(L,{name:n,width:24,height:24}),a.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-[#000000]",children:e}),typeof o<"u"&&o]}),a.jsx("div",{className:"bg-[#0e0e1814] rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-[#0000000]",children:r})]}),a.jsx("div",{className:"text-sm md:text-base w-full font-normal text-[#000000]",children:t}),s&&a.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[a.jsx(P,{onClick:i,size:"sm",className:"bg-[#5150B0] gap-2",children:a.jsx("div",{className:"text-sm font-medium text-[#F5F5F5]",children:"Ask GenAI"})}),a.jsx(P,{onClick:c,size:"sm",className:"bg-[#5150B0] gap-2",children:a.jsx("div",{className:"text-sm font-medium text-[#F5F5F5]",children:"Ask Manager"})})]})]}),Ct=({sender:e,message:t,timestamps:r,icon:n,type:o,onClickAskAI:s,onClickAskManager:i,managerReplyTitle:c,showHelperButton:d,managerReplyMessage:u})=>{const p=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[a.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative flex flex-col gap-2 items-start rounded-2xl rounded-tr-none bg-[#F5F5F5] max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-[#000000]",children:t}),a.jsx("div",{className:"text-xs w-full font-normal text-[#737373] text-right",children:r}),n&&a.jsx("div",{className:"border w-10 h-8 border-[#E5E5E5] flex items-center justify-center rounded-full bg-[#FFFFFF] absolute -bottom-[14px] ",children:n})]}),a.jsx(ie,{type:"secondary",fullName:e})]}),g=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[a.jsx(ie,{fullName:e}),a.jsxs("div",{className:"px-4 py-3 relative w-fit min-w-[128px] flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-[#39385F] max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-[#F5F5F5]",children:t}),d&&a.jsxs("div",{className:"flex flex-row gap-2",children:[a.jsx(P,{name:"ai-helper",role:"button",onClick:s,className:"bg-[#0000001a] p-0 w-8 h-8 rounded-full",children:a.jsx(L,{name:"Sparkles",color:"#C7C6FA",width:24,height:24})}),a.jsx(P,{name:"manager-helper",role:"button",onClick:i,className:"bg-[#0000001a] p-0 w-8 h-8 rounded-full",children:a.jsx(L,{name:"ChatBubble",width:24,height:24})})]}),a.jsx("div",{className:"text-xs w-full font-normal text-[#737373] text-right",children:r}),n&&a.jsx("div",{className:"border w-10 h-8 border-[#E5E5E5] flex items-center justify-center rounded-full bg-[#FFFFFF] absolute -bottom-[14px] ",children:n})]})]}),x=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[a.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-[#E5E5E5]",children:[a.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[a.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3",children:[c,a.jsx("div",{className:"w-fit bg-[#DC2626] rounded-md p-1 text-[15px] text-[#F5F5F5] font-normal",children:r})]}),a.jsx("div",{className:"text-sm font-medium text-[#000000]",children:u})]}),a.jsxs("div",{className:"rounded-br-2xl w-full rounded-bl-2xl bg-[#F5F5F5] flex flex-col items-start justify-center p-3 gap-2",children:[a.jsx("div",{className:"text-sm font-medium text-[#000000]",children:t}),a.jsx("div",{className:"text-xs w-full font-normal text-[#737373] text-right",children:r})]})]}),a.jsx(ie,{type:"secondary",fullName:e})]}),C=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[a.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-[#FCF5CF]",children:a.jsx(L,{name:"Sparkles",width:24,height:24,color:"#37365E"})}),a.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative w-full flex-1 flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-[#FCF5CF] max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-[#000000]",children:t}),a.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[a.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[a.jsx(P,{className:"w-8 h-8 bg-transparent p-0",children:a.jsx(L,{name:"ArrowPathRoundedSquare",width:24,height:24})}),a.jsx(P,{className:"w-8 h-8 bg-transparent p-0",children:a.jsx(L,{name:"Square2Stack",width:24,height:24})})]}),a.jsx("div",{className:"text-xs font-normal text-[#000000]",children:r})]})]})]});return{message:p(),reply:g(),"manager-reply":x(),"ai-reply":C()}[o]},fn=({isStandalone:e,messages:t,transcriptInfo:r,onClickTranslation:n})=>a.jsxs("div",{className:"max-w-[768px] w-full flex flex-col gap-3 md:gap-[26px] h-full items-center justify-center",children:[e?a.jsxs("div",{className:"w-full flex flex-row items-center justify-between ",children:[a.jsxs("div",{className:"flex flex-row items-center justify-center gap-2",children:[a.jsx("div",{className:"text-lg font-medium text-[#000000]",children:"Transcript"}),r&&a.jsx("div",{className:"px-2.5 py-1 bg-[#0e0e1814] rounded-full",children:r})]}),a.jsx("div",{className:"md:flex",children:a.jsxs(P,{variant:"outline",size:"lg",onClick:n,className:"bg-[#FFFFFF] gap-2 px-6 py-4 h-12",children:[a.jsx(L,{name:"Language",width:16,height:16,color:"#5150B0"}),a.jsx("div",{className:"text-base text-[#5150B0] font-medium",children:"Start Translation"})]})}),a.jsx("div",{className:"md:hidden",children:a.jsxs(P,{variant:"link",size:"default",onClick:n,className:"bg-[#FFFFFF] gap-2 px-6",children:[a.jsx(L,{name:"Language",width:16,height:16,color:"#5150B0"}),a.jsx("div",{className:"text-base text-[#5150B0] font-medium",children:"Start Translation"})]})})]}):a.jsxs("div",{className:"w-full flex items-center justify-center",children:[a.jsx("div",{className:"md:flex",children:a.jsxs(P,{variant:"outline",size:"lg",onClick:n,className:"bg-[#FFFFFF] gap-2 px-6 py-4 h-12",children:[a.jsx(L,{name:"Language",width:16,height:16,color:"#5150B0"}),a.jsx("div",{className:"text-base text-[#5150B0] font-medium",children:"Start Translation"})]})}),a.jsx("div",{className:"md:hidden",children:a.jsxs(P,{variant:"link",size:"default",onClick:n,className:"bg-[#FFFFFF] gap-2 px-6",children:[a.jsx(L,{name:"Language",width:16,height:16,color:"#5150B0"}),a.jsx("div",{className:"text-base text-[#5150B0] font-medium",children:"Start Translation"})]})})]}),a.jsx("div",{className:"flex flex-col gap-6 w-full",children:t.map(o=>a.jsx(Ct,{...o}))})]});exports.Avatar=ie;exports.Button=P;exports.Icon=L;exports.MessageBubble=Ct;exports.MomentItem=un;exports.Tab=Ur;exports.Transcript=fn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),z=require("react");require("react-dom");function Nt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=Nt(z);function O(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ce(e,t=[]){let r=[];function n(s,i){const c=l.createContext(i),d=r.length;r=[...r,i];const u=g=>{var N;const{scope:x,children:C,...b}=g,v=((N=x==null?void 0:x[e])==null?void 0:N[d])||c,j=l.useMemo(()=>b,Object.values(b));return a.jsx(v.Provider,{value:j,children:C})};u.displayName=s+"Provider";function p(g,x){var v;const C=((v=x==null?void 0:x[e])==null?void 0:v[d])||c,b=l.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=r.map(i=>l.createContext(i));return function(c){const d=(c==null?void 0:c[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[n,jt(o,...t)]}function jt(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=n.reduce((c,{useScope:d,scopeName:u})=>{const g=d(s)[`__scope${u}`];return{...c,...g}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ie(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ve(...e){return t=>{let r=!1;const n=e.map(o=>{const s=Ie(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():Ie(e[o],null)}}}}function le(...e){return l.useCallback(Ve(...e),e)}var X=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),s=o.find(Ft);if(s){const i=s.props.children,c=o.map(d=>d===s?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:d);return a.jsx(be,{...n,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,c):null})}return a.jsx(be,{...n,ref:t,children:r})});X.displayName="Slot";var be=l.forwardRef((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const o=Rt(r),s=At(n,r.props);return r.type!==l.Fragment&&(s.ref=t?Ve(t,o):o),l.cloneElement(r,s)}return l.Children.count(r)>1?l.Children.only(null):null});be.displayName="SlotClone";var St=({children:e})=>a.jsx(a.Fragment,{children:e});function Ft(e){return l.isValidElement(e)&&e.type===St}function At(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...c)=>{s(...c),o(...c)}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Rt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function It(e){const t=e+"CollectionProvider",[r,n]=ce(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=C=>{const{scope:b,children:v}=C,j=z.useRef(null),N=z.useRef(new Map).current;return a.jsx(o,{scope:b,itemMap:N,collectionRef:j,children:v})};i.displayName=t;const c=e+"CollectionSlot",d=z.forwardRef((C,b)=>{const{scope:v,children:j}=C,N=s(c,v),S=le(b,N.collectionRef);return a.jsx(X,{ref:S,children:j})});d.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",g=z.forwardRef((C,b)=>{const{scope:v,children:j,...N}=C,S=z.useRef(null),k=le(b,S),M=s(u,v);return z.useEffect(()=>(M.itemMap.set(S,{ref:S,...N}),()=>void M.itemMap.delete(S))),a.jsx(X,{[p]:"",ref:k,children:j})});g.displayName=u;function x(C){const b=s(e+"CollectionConsumer",C);return z.useCallback(()=>{const j=b.collectionRef.current;if(!j)return[];const N=Array.from(j.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((M,T)=>N.indexOf(M.ref.current)-N.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:d,ItemSlot:g},x,n]}var Q=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Mt=l.useId||(()=>{}),Et=0;function ze(e){const[t,r]=l.useState(Mt());return Q(()=>{r(n=>n??String(Et++))},[e]),e||(t?`radix-${t}`:"")}var kt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],G=kt.reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:s,...i}=n,c=s?X:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function de(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Oe({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Tt({defaultProp:t,onChange:r}),s=e!==void 0,i=s?e:n,c=de(r),d=l.useCallback(u=>{if(s){const g=typeof u=="function"?u(e):u;g!==e&&c(g)}else o(u)},[s,e,o,c]);return[i,d]}function Tt({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),s=de(t);return l.useEffect(()=>{o.current!==n&&(s(n),o.current=n)},[n,o,s]),r}var Lt=l.createContext(void 0);function Ge(e){const t=l.useContext(Lt);return e||t||"ltr"}var pe="rovingFocusGroup.onEntryFocus",Pt={bubbles:!1,cancelable:!0},ue="RovingFocusGroup",[he,Be,_t]=It(ue),[Vt,De]=ce(ue,[_t]),[zt,Ot]=Vt(ue),$e=l.forwardRef((e,t)=>a.jsx(he.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(he.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Gt,{...e,ref:t})})}));$e.displayName=ue;var Gt=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...g}=e,x=l.useRef(null),C=le(t,x),b=Ge(s),[v=null,j]=Oe({prop:i,defaultProp:c,onChange:d}),[N,S]=l.useState(!1),k=de(u),M=Be(r),T=l.useRef(!1),[h,I]=l.useState(0);return l.useEffect(()=>{const A=x.current;if(A)return A.addEventListener(pe,k),()=>A.removeEventListener(pe,k)},[k]),a.jsx(zt,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:v,onItemFocus:l.useCallback(A=>j(A),[j]),onItemShiftTab:l.useCallback(()=>S(!0),[]),onFocusableItemAdd:l.useCallback(()=>I(A=>A+1),[]),onFocusableItemRemove:l.useCallback(()=>I(A=>A-1),[]),children:a.jsx(G.div,{tabIndex:N||h===0?-1:0,"data-orientation":n,...g,ref:C,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{T.current=!0}),onFocus:O(e.onFocus,A=>{const ee=!T.current;if(A.target===A.currentTarget&&ee&&!N){const U=new CustomEvent(pe,Pt);if(A.currentTarget.dispatchEvent(U),!U.defaultPrevented){const q=M().filter(y=>y.focusable),J=q.find(y=>y.active),D=q.find(y=>y.id===v),V=[J,D,...q].filter(Boolean).map(y=>y.ref.current);Ke(V,p)}}T.current=!1}),onBlur:O(e.onBlur,()=>S(!1))})})}),Ue="RovingFocusGroupItem",We=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,...i}=e,c=ze(),d=s||c,u=Ot(Ue,r),p=u.currentTabStopId===d,g=Be(r),{onFocusableItemAdd:x,onFocusableItemRemove:C}=u;return l.useEffect(()=>{if(n)return x(),()=>C()},[n,x,C]),a.jsx(he.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:a.jsx(G.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:O(e.onMouseDown,b=>{n?u.onItemFocus(d):b.preventDefault()}),onFocus:O(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:O(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=$t(b,u.orientation,u.dir);if(v!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let N=g().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")N.reverse();else if(v==="prev"||v==="next"){v==="prev"&&N.reverse();const S=N.indexOf(b.currentTarget);N=u.loop?Ut(N,S+1):N.slice(S+1)}setTimeout(()=>Ke(N))}})})})});We.displayName=Ue;var Bt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Dt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $t(e,t,r){const n=Dt(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Bt[n]}function Ke(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ut(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Wt=$e,Kt=We;function qt(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var qe=e=>{const{present:t,children:r}=e,n=Zt(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),s=le(n.ref,Ht(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:s}):null};qe.displayName="Presence";function Zt(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),s=l.useRef("none"),i=e?"mounted":"unmounted",[c,d]=qt(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=se(n.current);s.current=c==="mounted"?u:"none"},[c]),Q(()=>{const u=n.current,p=o.current;if(p!==e){const x=s.current,C=se(u);e?d("MOUNT"):C==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(p&&x!==C?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Q(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,g=C=>{const v=se(n.current).includes(C.animationName);if(C.target===t&&v&&(d("ANIMATION_END"),!o.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},x=C=>{C.target===t&&(s.current=se(n.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function se(e){return(e==null?void 0:e.animationName)||"none"}function Ht(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ce="Tabs",[Yt,mn]=ce(Ce,[De]),Ze=De(),[Jt,ye]=Yt(Ce),He=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:c,activationMode:d="automatic",...u}=e,p=Ge(c),[g,x]=Oe({prop:n,onChange:o,defaultProp:s});return a.jsx(Jt,{scope:r,baseId:ze(),value:g,onValueChange:x,orientation:i,dir:p,activationMode:d,children:a.jsx(G.div,{dir:p,"data-orientation":i,...u,ref:t})})});He.displayName=Ce;var Ye="TabsList",Je=l.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,s=ye(Ye,r),i=Ze(r);return a.jsx(Wt,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:n,children:a.jsx(G.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Je.displayName=Ye;var Xe="TabsTrigger",Qe=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,i=ye(Xe,r),c=Ze(r),d=rt(i.baseId,n),u=nt(i.baseId,n),p=n===i.value;return a.jsx(Kt,{asChild:!0,...c,focusable:!o,active:p,children:a.jsx(G.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":u,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:O(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?i.onValueChange(n):g.preventDefault()}),onKeyDown:O(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&i.onValueChange(n)}),onFocus:O(e.onFocus,()=>{const g=i.activationMode!=="manual";!p&&!o&&g&&i.onValueChange(n)})})})});Qe.displayName=Xe;var et="TabsContent",tt=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:s,...i}=e,c=ye(et,r),d=rt(c.baseId,n),u=nt(c.baseId,n),p=n===c.value,g=l.useRef(p);return l.useEffect(()=>{const x=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(x)},[]),a.jsx(qe,{present:o||p,children:({present:x})=>a.jsx(G.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!x,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:x&&s})})});tt.displayName=et;function rt(e,t){return`${e}-trigger-${t}`}function nt(e,t){return`${e}-content-${t}`}var Xt=He,Qt=Je,er=Qe,tr=tt;function ot(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ot(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function st(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ot(e))&&(n&&(n+=" "),n+=t);return n}const Ne="-",rr=e=>{const t=or(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const c=i.split(Ne);return c[0]===""&&c.length!==1&&c.shift(),at(c,t)||nr(i)},getConflictingClassGroupIds:(i,c)=>{const d=r[i]||[];return c&&n[i]?[...d,...n[i]]:d}}},at=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?at(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Ne);return(i=t.validators.find(({validator:c})=>c(s)))==null?void 0:i.classGroupId},Me=/^\[(.+)\]$/,nr=e=>{if(Me.test(e)){const t=Me.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},or=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)xe(r[o],n,o,t);return n},xe=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Ee(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(sr(o)){xe(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{xe(i,Ee(t,s),r,n)})})},Ee=(e,t)=>{let r=e;return t.split(Ne).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},sr=e=>e.isThemeGetter,ar=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},ve="!",we=":",ir=we.length,lr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,c=0,d=0,u;for(let b=0;b<o.length;b++){let v=o[b];if(i===0&&c===0){if(v===we){s.push(o.slice(d,b)),d=b+ir;continue}if(v==="/"){u=b;continue}}v==="["?i++:v==="]"?i--:v==="("?c++:v===")"&&c--}const p=s.length===0?o:o.substring(d),g=cr(p),x=g!==p,C=u&&u>d?u-d:void 0;return{modifiers:s,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:C}};if(t){const o=t+we,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},cr=e=>e.endsWith(ve)?e.substring(0,e.length-1):e.startsWith(ve)?e.substring(1):e,dr=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},ur=e=>({cache:ar(e.cacheSize),parseClassName:lr(e),sortModifiers:dr(e),...rr(e)}),fr=/\s+/,mr=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],c=e.trim().split(fr);let d="";for(let u=c.length-1;u>=0;u-=1){const p=c[u],{isExternal:g,modifiers:x,hasImportantModifier:C,baseClassName:b,maybePostfixModifierPosition:v}=r(p);if(g){d=p+(d.length>0?" "+d:d);continue}let j=!!v,N=n(j?b.substring(0,v):b);if(!N){if(!j){d=p+(d.length>0?" "+d:d);continue}if(N=n(b),!N){d=p+(d.length>0?" "+d:d);continue}j=!1}const S=s(x).join(":"),k=C?S+ve:S,M=k+N;if(i.includes(M))continue;i.push(M);const T=o(N,j);for(let h=0;h<T.length;++h){const I=T[h];i.push(k+I)}d=p+(d.length>0?" "+d:d)}return d};function pr(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=it(t))&&(n&&(n+=" "),n+=r);return n}const it=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=it(e[n]))&&(r&&(r+=" "),r+=t);return r};function gr(e,...t){let r,n,o,s=i;function i(d){const u=t.reduce((p,g)=>g(p),e());return r=ur(u),n=r.cache.get,o=r.cache.set,s=c,c(d)}function c(d){const u=n(d);if(u)return u;const p=mr(d,r);return o(d,p),p}return function(){return s(pr.apply(null,arguments))}}const F=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},lt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ct=/^\((?:(\w[\w-]*):)?(.+)\)$/i,br=/^\d+\/\d+$/,hr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>br.test(e),w=e=>!!e&&!Number.isNaN(Number(e)),W=e=>!!e&&Number.isInteger(Number(e)),ke=e=>e.endsWith("%")&&w(e.slice(0,-1)),$=e=>hr.test(e),yr=()=>!0,Nr=e=>xr.test(e)&&!vr.test(e),je=()=>!1,jr=e=>wr.test(e),Sr=e=>Cr.test(e),Fr=e=>!f(e)&&!m(e),Ar=e=>H(e,ft,je),f=e=>lt.test(e),K=e=>H(e,mt,Nr),ge=e=>H(e,zr,w),Rr=e=>H(e,dt,je),Ir=e=>H(e,ut,Sr),Mr=e=>H(e,je,jr),m=e=>ct.test(e),ae=e=>Y(e,mt),Er=e=>Y(e,Or),kr=e=>Y(e,dt),Tr=e=>Y(e,ft),Lr=e=>Y(e,ut),Pr=e=>Y(e,Gr,!0),H=(e,t,r)=>{const n=lt.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Y=(e,t,r=!1)=>{const n=ct.exec(e);return n?n[1]?t(n[1]):r:!1},dt=e=>e==="position",_r=new Set(["image","url"]),ut=e=>_r.has(e),Vr=new Set(["length","size","percentage"]),ft=e=>Vr.has(e),mt=e=>e==="length",zr=e=>e==="number",Or=e=>e==="family-name",Gr=e=>e==="shadow",Br=()=>{const e=F("color"),t=F("font"),r=F("text"),n=F("font-weight"),o=F("tracking"),s=F("leading"),i=F("breakpoint"),c=F("container"),d=F("spacing"),u=F("radius"),p=F("shadow"),g=F("inset-shadow"),x=F("drop-shadow"),C=F("blur"),b=F("perspective"),v=F("aspect"),j=F("ease"),N=F("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],h=()=>[m,f,d],I=()=>[Z,"full","auto",...h()],A=()=>[W,"none","subgrid",m,f],ee=()=>["auto",{span:["full",W,m,f]},m,f],U=()=>[W,"auto",m,f],q=()=>["auto","min","max","fr",m,f],J=()=>["start","end","center","between","around","evenly","stretch","baseline"],D=()=>["start","end","center","stretch"],_=()=>["auto",...h()],V=()=>[Z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],y=()=>[e,m,f],fe=()=>[ke,K],R=()=>["","none","full",u,m,f],E=()=>["",w,ae,K],te=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>["","none",C,m,f],Re=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m,f],re=()=>["none",w,m,f],ne=()=>["none",w,m,f],me=()=>[w,m,f],oe=()=>[Z,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[yr],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[Fr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",w],text:[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Z,f,m,v]}],container:["container"],columns:[{columns:[w,f,m,c]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...k(),f,m]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[W,"auto",m,f]}],basis:[{basis:[Z,"full","auto",c,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[w,Z,"auto","initial","none",f]}],grow:[{grow:["",w,m,f]}],shrink:[{shrink:["",w,m,f]}],order:[{order:[W,"first","last","none",m,f]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...D(),"baseline"]}],"align-self":[{self:["auto",...D(),"baseline"]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[c,"screen",...V()]}],"min-w":[{"min-w":[c,"screen","none",...V()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...V()]}],h:[{h:["screen",...V()]}],"min-h":[{"min-h":["screen","none",...V()]}],"max-h":[{"max-h":["screen",...V()]}],"font-size":[{text:["base",r,ae,K]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,m,ge]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ke,f]}],"font-family":[{font:[Er,f,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,m,f]}],"line-clamp":[{"line-clamp":[w,"none",m,ge]}],leading:[{leading:[s,...h()]}],"list-image":[{"list-image":["none",m,f]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",m,f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[w,"from-font","auto",m,K]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[w,"auto",m,f]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m,f]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m,f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...k(),kr,Rr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Tr,Ar]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},W,m,f],radial:["",m,f],conic:[W,m,f]},Lr,Ir]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[w,m,f]}],"outline-w":[{outline:["",w,ae,K]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",p,Pr,Mr]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",m,f,g]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[w,K]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":y()}],opacity:[{opacity:[w,m,f]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],filter:[{filter:["","none",m,f]}],blur:[{blur:Ae()}],brightness:[{brightness:[w,m,f]}],contrast:[{contrast:[w,m,f]}],"drop-shadow":[{"drop-shadow":["","none",x,m,f]}],grayscale:[{grayscale:["",w,m,f]}],"hue-rotate":[{"hue-rotate":[w,m,f]}],invert:[{invert:["",w,m,f]}],saturate:[{saturate:[w,m,f]}],sepia:[{sepia:["",w,m,f]}],"backdrop-filter":[{"backdrop-filter":["","none",m,f]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[w,m,f]}],"backdrop-contrast":[{"backdrop-contrast":[w,m,f]}],"backdrop-grayscale":[{"backdrop-grayscale":["",w,m,f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w,m,f]}],"backdrop-invert":[{"backdrop-invert":["",w,m,f]}],"backdrop-opacity":[{"backdrop-opacity":[w,m,f]}],"backdrop-saturate":[{"backdrop-saturate":[w,m,f]}],"backdrop-sepia":[{"backdrop-sepia":["",w,m,f]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",m,f]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[w,"initial",m,f]}],ease:[{ease:["linear","initial",j,m,f]}],delay:[{delay:[w,m,f]}],animate:[{animate:["none",N,m,f]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,m,f]}],"perspective-origin":[{"perspective-origin":Re()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[m,f,"","none","gpu","cpu"]}],"transform-origin":[{origin:Re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m,f]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m,f]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[w,ae,K,ge]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Dr=gr(Br);function B(...e){return Dr(st(e))}function $r({className:e,...t}){return a.jsx(Xt,{"data-slot":"tabs",className:B("flex flex-col gap-2",e),...t})}function Ur({className:e,...t}){return a.jsx(Qt,{"data-slot":"tabs-list",className:B("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",e),...t})}function Te({className:e,...t}){return a.jsx(er,{"data-slot":"tabs-trigger",className:B("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Le({className:e,...t}){return a.jsx(tr,{"data-slot":"tabs-content",className:B("flex-1 outline-none",e),...t})}const Wr=()=>a.jsxs($r,{defaultValue:"transcript",className:"w-[400px]",children:[a.jsxs(Ur,{children:[a.jsx(Te,{value:"transcript",children:"Transcript"}),a.jsx(Te,{value:"timeline",children:"Timeline"})]}),a.jsx(Le,{value:"transcript",children:"Transcript component."}),a.jsx(Le,{value:"timeline",children:"Timeline component."})]}),Pe=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_e=st,Kr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return _e(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const p=r==null?void 0:r[u],g=s==null?void 0:s[u];if(p===null)return null;const x=Pe(p)||Pe(g);return o[u][x]}),c=r&&Object.entries(r).reduce((u,p)=>{let[g,x]=p;return x===void 0||(u[g]=x),u},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,p)=>{let{class:g,className:x,...C}=p;return Object.entries(C).every(b=>{let[v,j]=b;return Array.isArray(j)?j.includes({...s,...c}[v]):{...s,...c}[v]===j})?[...u,g,x]:u},[]);return _e(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},pt=Kr("inline-flex items-center justify-center 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",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-hover",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive-hover",outline:"border border-input text-secondary-foreground hover:bg-accent hover:text-accent-foreground",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"}}),gt=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},s)=>{const i=n?X:"button";return a.jsx(i,{className:B(pt({variant:t,size:r,className:e})),ref:s,...o})});gt.displayName="Button";const P=e=>a.jsx(gt,{...e,children:e.children});var Se="Avatar",[qr,pn]=ce(Se),[Zr,bt]=qr(Se),ht=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,s]=l.useState("idle");return a.jsx(Zr,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:a.jsx(G.span,{...n,ref:t})})});ht.displayName=Se;var xt="AvatarImage",vt=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...s}=e,i=bt(xt,r),c=Hr(n,s.referrerPolicy),d=de(u=>{o(u),i.onImageLoadingStatusChange(u)});return Q(()=>{c!=="idle"&&d(c)},[c,d]),c==="loaded"?a.jsx(G.img,{...s,ref:t,src:n}):null});vt.displayName=xt;var wt="AvatarFallback",Ct=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,s=bt(wt,r),[i,c]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const d=window.setTimeout(()=>c(!0),n);return()=>window.clearTimeout(d)}},[n]),i&&s.imageLoadingStatus!=="loaded"?a.jsx(G.span,{...o,ref:t}):null});Ct.displayName=wt;function Hr(e,t){const[r,n]=l.useState("idle");return Q(()=>{if(!e){n("error");return}let o=!0;const s=new window.Image,i=c=>()=>{o&&n(c)};return n("loading"),s.onload=i("loaded"),s.onerror=i("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{o=!1}},[e,t]),r}var Yr=ht,Jr=vt,Xr=Ct;function Qr({className:e,...t}){return a.jsx(Yr,{"data-slot":"avatar",className:B("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...t})}function en({className:e,...t}){return a.jsx(Jr,{"data-slot":"avatar-image",className:B("aspect-square size-full",e),...t})}function tn({className:e,...t}){return a.jsx(Xr,{"data-slot":"avatar-fallback",className:B("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const ie=({url:e,fullName:t,type:r="primary"})=>{const n=()=>{const[o,s]=t.split(" ");return`${(o==null?void 0:o.charAt(0))??""}${(s==null?void 0:s.charAt(0))??""}`};return a.jsxs(Qr,{children:[a.jsx(en,{role:"img",src:e}),a.jsx(tn,{className:B("text-base font-normal",r==="primary"?"text-[#F5F5F5] bg-[#39385F]":"bg-[#F5F5F5] text-[#37466D]"),children:n()})]})},rn=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4.5C9.33486 4.5 9.62915 4.72198 9.72114 5.04396L10.5343 7.89015C10.8903 9.13593 11.8641 10.1097 13.1099 10.4657L15.956 11.2789C16.278 11.3709 16.5 11.6651 16.5 12C16.5 12.3349 16.278 12.6291 15.956 12.7211L13.1098 13.5343C11.8641 13.8903 10.8903 14.8641 10.5343 16.1099L9.72114 18.956C9.62915 19.278 9.33486 19.5 9 19.5C8.66514 19.5 8.37085 19.278 8.27886 18.956L7.46566 16.1099C7.10972 14.8641 6.13593 13.8903 4.89015 13.5343L2.04396 12.7211C1.72198 12.6291 1.5 12.3349 1.5 12C1.5 11.6651 1.72198 11.3709 2.04396 11.2789L4.89015 10.4657C6.13593 10.1097 7.10972 9.13593 7.46566 7.89015L8.27886 5.04396C8.37085 4.72198 8.66514 4.5 9 4.5Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 1.5C18.3442 1.5 18.6441 1.73422 18.7276 2.0681L18.9865 3.10356C19.2216 4.04406 19.9559 4.7784 20.8964 5.01353L21.9319 5.27239C22.2658 5.35586 22.5 5.65585 22.5 6C22.5 6.34415 22.2658 6.64414 21.9319 6.72761L20.8964 6.98647C19.9559 7.2216 19.2216 7.95594 18.9865 8.89644L18.7276 9.9319C18.6441 10.2658 18.3442 10.5 18 10.5C17.6558 10.5 17.3559 10.2658 17.2724 9.9319L17.0135 8.89644C16.7784 7.95594 16.0441 7.2216 15.1036 6.98647L14.0681 6.72761C13.7342 6.64414 13.5 6.34415 13.5 6C13.5 5.65585 13.7342 5.35586 14.0681 5.27239L15.1036 5.01353C16.0441 4.7784 16.7784 4.04406 17.0135 3.10356L17.2724 2.0681C17.3559 1.73422 17.6558 1.5 18 1.5Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 15C16.8228 15 17.1094 15.2066 17.2115 15.5128L17.6058 16.6956C17.7551 17.1435 18.1065 17.4949 18.5544 17.6442L19.7372 18.0385C20.0434 18.1406 20.25 18.4272 20.25 18.75C20.25 19.0728 20.0434 19.3594 19.7372 19.4615L18.5544 19.8558C18.1065 20.0051 17.7551 20.3565 17.6058 20.8044L17.2115 21.9872C17.1094 22.2934 16.8228 22.5 16.5 22.5C16.1772 22.5 15.8906 22.2934 15.7885 21.9872L15.3942 20.8044C15.2449 20.3565 14.8935 20.0051 14.4456 19.8558L13.2628 19.4615C12.9566 19.3594 12.75 19.0728 12.75 18.75C12.75 18.4272 12.9566 18.1406 13.2628 18.0385L14.4456 17.6442C14.8935 17.4949 15.2449 17.1435 15.3942 16.6956L15.7885 15.5128C15.8906 15.2066 16.1772 15 16.5 15Z",fill:"currentColor"})),nn=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M4.91307 2.65823C6.9877 2.38888 9.10296 2.25 11.2503 2.25C13.3974 2.25 15.5124 2.38885 17.5869 2.65815C19.5091 2.90769 20.8783 4.51937 20.9923 6.38495C20.6665 6.27614 20.3212 6.20396 19.96 6.17399C18.5715 6.05874 17.1673 6 15.75 6C14.3326 6 12.9285 6.05874 11.54 6.17398C9.1817 6.36971 7.5 8.36467 7.5 10.6082V14.8937C7.5 16.5844 8.45468 18.1326 9.9328 18.8779L7.28033 21.5303C7.06583 21.7448 6.74324 21.809 6.46299 21.6929C6.18273 21.5768 6 21.3033 6 21V16.9705C5.63649 16.9316 5.27417 16.8887 4.91308 16.8418C2.90466 16.581 1.5 14.8333 1.5 12.8626V6.63738C1.5 4.66672 2.90466 2.91899 4.91307 2.65823Z",fill:"#C7C6FA"}),l.createElement("path",{d:"M15.75 7.5C14.3741 7.5 13.0114 7.55702 11.6641 7.66884C10.1248 7.7966 9 9.10282 9 10.6082V14.8937C9 16.4014 10.128 17.7083 11.6692 17.8341C12.9131 17.9357 14.17 17.9912 15.4384 17.999L18.2197 20.7803C18.4342 20.9948 18.7568 21.059 19.037 20.9429C19.3173 20.8268 19.5 20.5533 19.5 20.25V17.8601C19.6103 17.8518 19.7206 17.8432 19.8307 17.8342C21.372 17.7085 22.5 16.4015 22.5 14.8938V10.6082C22.5 9.10283 21.3752 7.79661 19.836 7.66885C18.4886 7.55702 17.1259 7.5 15.75 7.5Z",fill:"#C7C6FA"})),on=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19.5 12C19.5 10.7681 19.4536 9.54699 19.3624 8.3384C19.2128 6.35425 17.6458 4.78724 15.6616 4.63757C14.453 4.54641 13.2319 4.5 12 4.5C10.7681 4.5 9.54699 4.54641 8.3384 4.63757C6.35425 4.78724 4.78724 6.35425 4.63757 8.3384C4.62097 8.55852 4.60585 8.77906 4.59222 9M19.5 12L22.5 9M19.5 12L16.5 9M4.5 12C4.5 13.2319 4.54641 14.453 4.63757 15.6616C4.78724 17.6458 6.35425 19.2128 8.3384 19.3624C9.54699 19.4536 10.7681 19.5 12 19.5C13.2319 19.5 14.453 19.4536 15.6616 19.3624C17.6458 19.2128 19.2128 17.6458 19.3624 15.6616C19.379 15.4415 19.3941 15.2209 19.4078 15M4.5 12L7.5 15M4.5 12L1.5 15",stroke:"#5150B0",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),sn=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16.5 8.25V6C16.5 4.75736 15.4926 3.75 14.25 3.75H6C4.75736 3.75 3.75 4.75736 3.75 6V14.25C3.75 15.4926 4.75736 16.5 6 16.5H8.25M16.5 8.25H18C19.2426 8.25 20.25 9.25736 20.25 10.5V18C20.25 19.2426 19.2426 20.25 18 20.25H10.5C9.25736 20.25 8.25 19.2426 8.25 18V16.5M16.5 8.25H10.5C9.25736 8.25 8.25 9.25736 8.25 10.5V16.5",stroke:"#5150B0",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),an=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 5C11.799 5 12.0693 5.17751 12.1882 5.45179L15.4382 12.9518C15.6029 13.3319 15.4283 13.7735 15.0482 13.9382C14.6682 14.1029 14.2266 13.9283 14.0619 13.5482L13.3908 11.9997H9.60923L8.9382 13.5482C8.7735 13.9283 8.33189 14.1029 7.95182 13.9382C7.57176 13.7735 7.39717 13.3319 7.56186 12.9518L10.8119 5.45179C10.9307 5.17751 11.2011 5 11.5 5ZM10.2592 10.4997H12.7408L11.5 7.63628L10.2592 10.4997Z",fill:"#5150B0"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50003 1C5.91424 1 6.25003 1.33579 6.25003 1.75V3.01104C6.66299 3.02322 7.0735 3.04541 7.48131 3.0774C7.94038 3.11341 8.39601 3.16182 8.84786 3.22231C9.25842 3.27727 9.54668 3.65464 9.49172 4.06519C9.43676 4.47574 9.05938 4.76401 8.64883 4.70905C8.42894 4.67961 8.20808 4.65321 7.98628 4.6299C7.6301 5.85717 7.09808 7.00928 6.41941 8.05729C6.65555 8.36066 6.90658 8.65193 7.17142 8.92999C7.45709 9.22993 7.44553 9.70466 7.14559 9.99034C6.84565 10.276 6.37092 10.2644 6.08525 9.96451C5.88294 9.7521 5.68774 9.53284 5.50002 9.30711C4.68402 10.2884 3.72645 11.1474 2.65883 11.853C2.31326 12.0813 1.84799 11.9863 1.61962 11.6408C1.39124 11.2952 1.48624 10.8299 1.83181 10.6015C2.8813 9.90797 3.81021 9.04714 4.58066 8.05729C4.38359 7.75296 4.19887 7.43984 4.02724 7.11865C3.83202 6.75332 3.96992 6.29891 4.33524 6.10369C4.70057 5.90847 5.15498 6.04637 5.3502 6.4117C5.39895 6.50293 5.4489 6.59343 5.50002 6.68318C5.88798 6.00207 6.2083 5.27759 6.45187 4.51891C6.13619 4.50635 5.81887 4.5 5.50003 4.5C4.43193 4.5 3.38086 4.57121 2.35122 4.70905C1.94067 4.76401 1.5633 4.47574 1.50834 4.06519C1.45338 3.65464 1.74164 3.27727 2.15219 3.22231C3.00548 3.10808 3.87219 3.03692 4.75003 3.01104V1.75C4.75003 1.33579 5.08582 1 5.50003 1Z",fill:"#5150B0"})),ln=e=>l.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.8001 1.59999C8.8001 1.15816 8.44192 0.799988 8.0001 0.799988C7.55827 0.799988 7.2001 1.15816 7.2001 1.59999V6.39999V6.79999C7.2001 7.0209 7.02101 7.19999 6.8001 7.19999C6.57918 7.19999 6.4001 7.0209 6.4001 6.79999V6.39999V2.39999C6.4001 1.95816 6.04192 1.59999 5.6001 1.59999C5.15827 1.59999 4.8001 1.95816 4.8001 2.39999V6.39999V6.79999C4.8001 6.80028 4.8001 6.80058 4.8001 6.80087C4.79962 7.02138 4.62072 7.19999 4.4001 7.19999C4.17918 7.19999 4.0001 7.0209 4.0001 6.79999V6.39999V3.99999C4.0001 3.55816 3.64192 3.19999 3.2001 3.19999C2.75827 3.19999 2.4001 3.55816 2.4001 3.99999V8.79999V9.59999C2.4001 12.6928 4.9073 15.2 8.0001 15.2C11.0929 15.2 13.6001 12.6928 13.6001 9.59999L13.6001 8.79999L13.6001 6.39999C13.6001 5.95816 13.2419 5.59999 12.8001 5.59999C12.3583 5.59999 12.0001 5.95816 12.0001 6.39999V8.79999V9.19999C12.0001 9.4209 11.821 9.59999 11.6001 9.59999C11.3792 9.59999 11.2001 9.4209 11.2001 9.19999V8.79999V7.99999V6.39999V2.39999C11.2001 1.95816 10.8419 1.59999 10.4001 1.59999C9.95827 1.59999 9.6001 1.95816 9.6001 2.39999V6.39999V6.79999C9.6001 7.0209 9.42101 7.19999 9.2001 7.19999C8.97918 7.19999 8.8001 7.0209 8.8001 6.79999V6.39999V1.59999Z",fill:"white"})),cn={Sparkles:rn,ChatBubble:nn,ArrowPathRoundedSquare:on,Square2Stack:sn,Language:an,HandRaised:ln};function dn({name:e,...t}){const r=cn[e];return r?a.jsx(r,{...t}):(console.error(`Icon "${e}" not found.`),null)}const L=z.memo(dn),un=({title:e,message:t,timestamps:r,icon:n,tag:o,showHelperButtons:s,onClickAskGenAI:i,onClickAskManager:c})=>a.jsxs("div",{className:"flex flex-col w-full h-fit rounded-xl md:rounded-3xl bg-[#F5F5F5] md:bg-[#FFFFFF] gap-2 p-4",children:[a.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[a.jsxs("div",{className:"flex flex-row",children:[a.jsx(L,{name:n,width:24,height:24}),a.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-[#000000]",children:e}),typeof o<"u"&&o]}),a.jsx("div",{className:"bg-[#0e0e1814] rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-[#0000000]",children:r})]}),a.jsx("div",{className:"text-sm md:text-base w-full font-normal text-[#000000]",children:t}),s&&a.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[a.jsx(P,{onClick:i,size:"sm",className:"bg-[#5150B0] gap-2",children:a.jsx("div",{className:"text-sm font-medium text-[#F5F5F5]",children:"Ask GenAI"})}),a.jsx(P,{onClick:c,size:"sm",className:"bg-[#5150B0] gap-2",children:a.jsx("div",{className:"text-sm font-medium text-[#F5F5F5]",children:"Ask Manager"})})]})]}),yt=({sender:e,message:t,timestamp:r,icon:n,type:o,onClickAskAI:s,onClickAskManager:i,managerReplyTitle:c,showHelperButton:d,managerReplyMessage:u})=>{const p=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[a.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative flex flex-col gap-2 items-start rounded-2xl rounded-tr-none bg-[#F5F5F5] max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-[#000000]",children:t}),a.jsx("div",{className:"text-xs w-full font-normal text-[#737373] text-right",children:r}),n&&a.jsx("div",{className:"border w-10 h-8 border-[#E5E5E5] flex items-center justify-center rounded-full bg-[#FFFFFF] absolute -bottom-[14px] ",children:n})]}),a.jsx(ie,{type:"secondary",fullName:e})]}),g=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[a.jsx(ie,{fullName:e}),a.jsxs("div",{className:"px-4 py-3 relative w-fit min-w-[128px] flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-[#39385F] max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-[#F5F5F5]",children:t}),d&&a.jsxs("div",{className:"flex flex-row gap-2",children:[a.jsx(P,{name:"ai-helper",role:"button",onClick:s,className:"bg-[#0000001a] p-0 w-8 h-8 rounded-full",children:a.jsx(L,{name:"Sparkles",color:"#C7C6FA",width:24,height:24})}),a.jsx(P,{name:"manager-helper",role:"button",onClick:i,className:"bg-[#0000001a] p-0 w-8 h-8 rounded-full",children:a.jsx(L,{name:"ChatBubble",width:24,height:24})})]}),a.jsx("div",{className:"text-xs w-full font-normal text-[#737373] text-right",children:r}),n&&a.jsx("div",{className:"border w-10 h-8 border-[#E5E5E5] flex items-center justify-center rounded-full bg-[#FFFFFF] absolute -bottom-[14px] ",children:n})]})]}),x=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[a.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-[#E5E5E5]",children:[a.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[a.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3",children:[c,a.jsx("div",{className:"w-fit bg-[#DC2626] rounded-md p-1 text-[15px] text-[#F5F5F5] font-normal",children:r})]}),a.jsx("div",{className:"text-sm font-medium text-[#000000]",children:u})]}),a.jsxs("div",{className:"rounded-br-2xl w-full rounded-bl-2xl bg-[#F5F5F5] flex flex-col items-start justify-center p-3 gap-2",children:[a.jsx("div",{className:"text-sm font-medium text-[#000000]",children:t}),a.jsx("div",{className:"text-xs w-full font-normal text-[#737373] text-right",children:r})]})]}),a.jsx(ie,{type:"secondary",fullName:e})]}),C=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[a.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-[#FCF5CF]",children:a.jsx(L,{name:"Sparkles",width:24,height:24,color:"#37365E"})}),a.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative w-full flex-1 flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-[#FCF5CF] max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-[#000000]",children:t}),a.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[a.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[a.jsx(P,{className:"w-8 h-8 bg-transparent p-0",children:a.jsx(L,{name:"ArrowPathRoundedSquare",width:24,height:24})}),a.jsx(P,{className:"w-8 h-8 bg-transparent p-0",children:a.jsx(L,{name:"Square2Stack",width:24,height:24})})]}),a.jsx("div",{className:"text-xs font-normal text-[#000000]",children:r})]})]})]});return{MESSAGE:p(),REPLY:g(),MENAGER_REPLY:x(),AI_REPLY:C()}[o]},fn=({isStandalone:e,messages:t,transcriptInfo:r,onClickTranslation:n})=>a.jsxs("div",{className:"max-w-[768px] w-full flex flex-col gap-3 md:gap-[26px] h-full items-center justify-center",children:[e?a.jsxs("div",{className:"w-full flex flex-row items-center justify-between ",children:[a.jsxs("div",{className:"flex flex-row items-center justify-center gap-2",children:[a.jsx("div",{className:"text-lg font-medium text-[#000000]",children:"Transcript"}),r&&a.jsx("div",{className:"px-2.5 py-1 bg-[#0e0e1814] rounded-full",children:r})]}),a.jsx("div",{className:"hidden md:flex",children:a.jsxs(P,{variant:"outline",size:"lg",onClick:n,className:"bg-[#FFFFFF] gap-2 px-6 py-4 h-12",children:[a.jsx(L,{name:"Language",width:16,height:16,color:"#5150B0"}),a.jsx("div",{className:"text-base text-[#5150B0] font-medium",children:"Start Translation"})]})}),a.jsx("div",{className:"flex md:hidden",children:a.jsxs(P,{variant:"link",size:"default",onClick:n,className:"bg-[#FFFFFF] gap-2 px-6",children:[a.jsx(L,{name:"Language",width:16,height:16,color:"#5150B0"}),a.jsx("div",{className:"text-base text-[#5150B0] font-medium",children:"Start Translation"})]})})]}):a.jsxs("div",{className:"w-full flex items-center justify-center",children:[a.jsx("div",{className:"hidden md:flex",children:a.jsxs(P,{variant:"outline",size:"lg",onClick:n,className:"bg-[#FFFFFF] gap-2 px-6 py-4 h-12",children:[a.jsx(L,{name:"Language",width:16,height:16,color:"#5150B0"}),a.jsx("div",{className:"text-base text-[#5150B0] font-medium",children:"Start Translation"})]})}),a.jsx("div",{className:"flex md:hidden",children:a.jsxs(P,{variant:"link",size:"default",onClick:n,className:"bg-[#FFFFFF] gap-2 px-6",children:[a.jsx(L,{name:"Language",width:16,height:16,color:"#5150B0"}),a.jsx("div",{className:"text-base text-[#5150B0] font-medium",children:"Start Translation"})]})})]}),a.jsx("div",{className:"flex flex-col gap-6 w-full",children:t.map(o=>a.jsx(yt,{...o},o.id))})]});exports.Avatar=ie;exports.Button=P;exports.Icon=L;exports.MessageBubble=yt;exports.MomentItem=un;exports.Tab=Wr;exports.Transcript=fn;exports.buttonVariants=pt;
@@ -10,7 +10,7 @@ import { VariantProps } from 'class-variance-authority';
10
10
 
11
11
  export declare const Avatar: ({ url, fullName, type }: AvatarProps) => JSX.Element;
12
12
 
13
- declare interface AvatarProps {
13
+ export declare interface AvatarProps {
14
14
  url?: string;
15
15
  fullName: string;
16
16
  type?: "primary" | "secondary";
@@ -26,7 +26,7 @@ declare interface ButtonProps_2 extends React_2.ButtonHTMLAttributes<HTMLButtonE
26
26
  asChild?: boolean;
27
27
  }
28
28
 
29
- declare const buttonVariants: (props?: ({
29
+ export declare const buttonVariants: (props?: ({
30
30
  variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
31
31
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
32
32
  } & ClassProp) | undefined) => string;
@@ -48,14 +48,22 @@ declare interface IIcon extends SVGProps<SVGSVGElement> {
48
48
  name: keyof typeof icons;
49
49
  }
50
50
 
51
- export declare const MessageBubble: ({ sender, message, timestamps, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle, showHelperButton, managerReplyMessage, }: MessageBubbleProps) => JSX.Element;
51
+ export declare const MessageBubble: ({ sender, message, timestamp, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle, showHelperButton, managerReplyMessage, }: MessageBubbleProps) => ReactNode;
52
52
 
53
- declare interface MessageBubbleProps {
53
+ export declare enum MessageBubbleEnum {
54
+ MESSAGE = "message",
55
+ REPLY = "reply",
56
+ MENAGER_REPLY = "manager-reply",
57
+ AI_REPLY = "ai-reply"
58
+ }
59
+
60
+ export declare interface MessageBubbleProps {
61
+ id: string;
54
62
  sender: string;
55
63
  message: ReactNode | string;
56
- timestamps: string;
57
- icon: ReactNode;
58
- type: MessageBubbleType;
64
+ timestamp: string;
65
+ icon?: ReactNode;
66
+ type: keyof typeof MessageBubbleEnum;
59
67
  onClickAskAI?: () => void;
60
68
  onClickAskManager?: () => void;
61
69
  managerReplyTitle?: ReactNode;
@@ -63,11 +71,9 @@ declare interface MessageBubbleProps {
63
71
  managerReplyMessage?: ReactNode;
64
72
  }
65
73
 
66
- declare type MessageBubbleType = "message" | "reply" | "manager-reply" | "ai-reply";
67
-
68
74
  export declare const MomentItem: ({ title, message, timestamps, icon, tag, showHelperButtons, onClickAskGenAI, onClickAskManager, }: MomentItemProps) => JSX.Element;
69
75
 
70
- declare interface MomentItemProps {
76
+ export declare interface MomentItemProps {
71
77
  title: string;
72
78
  message: string;
73
79
  timestamps: string;
@@ -82,7 +88,7 @@ export declare const Tab: () => JSX.Element;
82
88
 
83
89
  export declare const Transcript: ({ isStandalone, messages, transcriptInfo, onClickTranslation, }: TranscriptProps) => JSX.Element;
84
90
 
85
- declare interface TranscriptProps {
91
+ export declare interface TranscriptProps {
86
92
  isStandalone?: boolean;
87
93
  messages: MessageBubbleProps[];
88
94
  transcriptInfo?: string;
package/dist/index.es.js CHANGED
@@ -58,7 +58,7 @@ function St(...e) {
58
58
  };
59
59
  return n.scopeName = t.scopeName, n;
60
60
  }
61
- function ke(e, t) {
61
+ function Ee(e, t) {
62
62
  if (typeof e == "function")
63
63
  return e(t);
64
64
  e != null && (e.current = t);
@@ -67,14 +67,14 @@ function Oe(...e) {
67
67
  return (t) => {
68
68
  let n = !1;
69
69
  const r = e.map((o) => {
70
- const s = ke(o, t);
70
+ const s = Ee(o, t);
71
71
  return !n && typeof s == "function" && (n = !0), s;
72
72
  });
73
73
  if (n)
74
74
  return () => {
75
75
  for (let o = 0; o < r.length; o++) {
76
76
  const s = r[o];
77
- typeof s == "function" ? s() : ke(e[o], null);
77
+ typeof s == "function" ? s() : Ee(e[o], null);
78
78
  }
79
79
  };
80
80
  };
@@ -137,8 +137,8 @@ function Mt(e) {
137
137
  d.displayName = c;
138
138
  const u = e + "CollectionItemSlot", p = "data-radix-collection-item", g = W.forwardRef(
139
139
  (C, b) => {
140
- const { scope: x, children: F, ...N } = C, A = W.useRef(null), L = le(b, A), E = s(u, x);
141
- return W.useEffect(() => (E.itemMap.set(A, { ref: A, ...N }), () => void E.itemMap.delete(A))), /* @__PURE__ */ i(Q, { [p]: "", ref: L, children: F });
140
+ const { scope: x, children: F, ...N } = C, A = W.useRef(null), L = le(b, A), k = s(u, x);
141
+ return W.useEffect(() => (k.itemMap.set(A, { ref: A, ...N }), () => void k.itemMap.delete(A))), /* @__PURE__ */ i(Q, { [p]: "", ref: L, children: F });
142
142
  }
143
143
  );
144
144
  g.displayName = u;
@@ -149,7 +149,7 @@ function Mt(e) {
149
149
  if (!F) return [];
150
150
  const N = Array.from(F.querySelectorAll(`[${p}]`));
151
151
  return Array.from(b.itemMap.values()).sort(
152
- (E, P) => N.indexOf(E.ref.current) - N.indexOf(P.ref.current)
152
+ (k, P) => N.indexOf(k.ref.current) - N.indexOf(P.ref.current)
153
153
  );
154
154
  }, [b.collectionRef, b.itemMap]);
155
155
  }
@@ -160,12 +160,12 @@ function Mt(e) {
160
160
  ];
161
161
  }
162
162
  var ee = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
163
- }, kt = l.useId || (() => {
164
- }), Et = 0;
163
+ }, Et = l.useId || (() => {
164
+ }), kt = 0;
165
165
  function Ge(e) {
166
- const [t, n] = l.useState(kt());
166
+ const [t, n] = l.useState(Et());
167
167
  return ee(() => {
168
- n((r) => r ?? String(Et++));
168
+ n((r) => r ?? String(kt++));
169
169
  }, [e]), e || (t ? `radix-${t}` : "");
170
170
  }
171
171
  var Tt = [
@@ -256,7 +256,7 @@ var Bt = l.forwardRef((e, t) => {
256
256
  prop: a,
257
257
  defaultProp: c,
258
258
  onChange: d
259
- }), [N, A] = l.useState(!1), L = de(u), E = De(n), P = l.useRef(!1), [h, k] = l.useState(0);
259
+ }), [N, A] = l.useState(!1), L = de(u), k = De(n), P = l.useRef(!1), [h, E] = l.useState(0);
260
260
  return l.useEffect(() => {
261
261
  const I = v.current;
262
262
  if (I)
@@ -275,11 +275,11 @@ var Bt = l.forwardRef((e, t) => {
275
275
  ),
276
276
  onItemShiftTab: l.useCallback(() => A(!0), []),
277
277
  onFocusableItemAdd: l.useCallback(
278
- () => k((I) => I + 1),
278
+ () => E((I) => I + 1),
279
279
  []
280
280
  ),
281
281
  onFocusableItemRemove: l.useCallback(
282
- () => k((I) => I - 1),
282
+ () => E((I) => I - 1),
283
283
  []
284
284
  ),
285
285
  children: /* @__PURE__ */ i(
@@ -298,7 +298,7 @@ var Bt = l.forwardRef((e, t) => {
298
298
  if (I.target === I.currentTarget && te && !N) {
299
299
  const U = new CustomEvent(pe, _t);
300
300
  if (I.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
301
- const Z = E().filter((y) => y.focusable), X = Z.find((y) => y.active), D = Z.find((y) => y.id === x), O = [X, D, ...Z].filter(
301
+ const Z = k().filter((y) => y.focusable), X = Z.find((y) => y.active), D = Z.find((y) => y.id === x), O = [X, D, ...Z].filter(
302
302
  Boolean
303
303
  ).map((y) => y.ref.current);
304
304
  qe(O, p);
@@ -643,9 +643,9 @@ const Se = "-", rr = (e) => {
643
643
  return (a = t.validators.find(({
644
644
  validator: c
645
645
  }) => c(s))) == null ? void 0 : a.classGroupId;
646
- }, Ee = /^\[(.+)\]$/, nr = (e) => {
647
- if (Ee.test(e)) {
648
- const t = Ee.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
646
+ }, ke = /^\[(.+)\]$/, nr = (e) => {
647
+ if (ke.test(e)) {
648
+ const t = ke.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
649
649
  if (n)
650
650
  return "arbitrary.." + n;
651
651
  }
@@ -810,14 +810,14 @@ const Se = "-", rr = (e) => {
810
810
  }
811
811
  F = !1;
812
812
  }
813
- const A = s(v).join(":"), L = C ? A + we : A, E = L + N;
814
- if (a.includes(E))
813
+ const A = s(v).join(":"), L = C ? A + we : A, k = L + N;
814
+ if (a.includes(k))
815
815
  continue;
816
- a.push(E);
816
+ a.push(k);
817
817
  const P = o(N, F);
818
818
  for (let h = 0; h < P.length; ++h) {
819
- const k = P[h];
820
- a.push(L + k);
819
+ const E = P[h];
820
+ a.push(L + E);
821
821
  }
822
822
  d = p + (d.length > 0 ? " " + d : d);
823
823
  }
@@ -862,14 +862,14 @@ const R = (e) => {
862
862
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
863
863
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
864
864
  vr.test(e) && !xr.test(e)
865
- ), Fe = () => !1, Sr = (e) => wr.test(e), Fr = (e) => Cr.test(e), Ar = (e) => !f(e) && !m(e), Rr = (e) => Y(e, mt, Fe), f = (e) => ct.test(e), q = (e) => Y(e, pt, Nr), ge = (e) => Y(e, Or, w), Ir = (e) => Y(e, ut, Fe), Mr = (e) => Y(e, ft, Fr), kr = (e) => Y(e, Fe, Sr), m = (e) => dt.test(e), ie = (e) => J(e, pt), Er = (e) => J(e, Gr), Tr = (e) => J(e, ut), Lr = (e) => J(e, mt), Pr = (e) => J(e, ft), _r = (e) => J(e, Br, !0), Y = (e, t, n) => {
865
+ ), Fe = () => !1, Sr = (e) => wr.test(e), Fr = (e) => Cr.test(e), Ar = (e) => !f(e) && !m(e), Rr = (e) => Y(e, mt, Fe), f = (e) => ct.test(e), q = (e) => Y(e, pt, Nr), ge = (e) => Y(e, Or, w), Ir = (e) => Y(e, ut, Fe), Mr = (e) => Y(e, ft, Fr), Er = (e) => Y(e, Fe, Sr), m = (e) => dt.test(e), ie = (e) => J(e, pt), kr = (e) => J(e, Gr), Tr = (e) => J(e, ut), Lr = (e) => J(e, mt), Pr = (e) => J(e, ft), _r = (e) => J(e, Br, !0), Y = (e, t, n) => {
866
866
  const r = ct.exec(e);
867
867
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
868
868
  }, J = (e, t, n = !1) => {
869
869
  const r = dt.exec(e);
870
870
  return r ? r[1] ? t(r[1]) : n : !1;
871
871
  }, ut = (e) => e === "position", Vr = /* @__PURE__ */ new Set(["image", "url"]), ft = (e) => Vr.has(e), zr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), mt = (e) => zr.has(e), pt = (e) => e === "length", Or = (e) => e === "number", Gr = (e) => e === "family-name", Br = (e) => e === "shadow", jr = () => {
872
- const e = R("color"), t = R("font"), n = R("text"), r = R("font-weight"), o = R("tracking"), s = R("leading"), a = R("breakpoint"), c = R("container"), d = R("spacing"), u = R("radius"), p = R("shadow"), g = R("inset-shadow"), v = R("drop-shadow"), C = R("blur"), b = R("perspective"), x = R("aspect"), F = R("ease"), N = R("animate"), A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], E = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", "contain", "none"], h = () => [m, f, d], k = () => [H, "full", "auto", ...h()], I = () => [K, "none", "subgrid", m, f], te = () => ["auto", {
872
+ const e = R("color"), t = R("font"), n = R("text"), r = R("font-weight"), o = R("tracking"), s = R("leading"), a = R("breakpoint"), c = R("container"), d = R("spacing"), u = R("radius"), p = R("shadow"), g = R("inset-shadow"), v = R("drop-shadow"), C = R("blur"), b = R("perspective"), x = R("aspect"), F = R("ease"), N = R("animate"), A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], k = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", "contain", "none"], h = () => [m, f, d], E = () => [H, "full", "auto", ...h()], I = () => [K, "none", "subgrid", m, f], te = () => ["auto", {
873
873
  span: ["full", K, m, f]
874
874
  }, m, f], U = () => [K, "auto", m, f], Z = () => ["auto", "min", "max", "fr", m, f], X = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], D = () => ["start", "end", "center", "stretch"], _ = () => ["auto", ...h()], O = () => [H, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...h()], y = () => [e, m, f], fe = () => [Le, q], M = () => [
875
875
  // Deprecated since Tailwind CSS v4.0.0
@@ -1016,21 +1016,21 @@ const R = (e) => {
1016
1016
  * @see https://tailwindcss.com/docs/overflow
1017
1017
  */
1018
1018
  overflow: [{
1019
- overflow: E()
1019
+ overflow: k()
1020
1020
  }],
1021
1021
  /**
1022
1022
  * Overflow X
1023
1023
  * @see https://tailwindcss.com/docs/overflow
1024
1024
  */
1025
1025
  "overflow-x": [{
1026
- "overflow-x": E()
1026
+ "overflow-x": k()
1027
1027
  }],
1028
1028
  /**
1029
1029
  * Overflow Y
1030
1030
  * @see https://tailwindcss.com/docs/overflow
1031
1031
  */
1032
1032
  "overflow-y": [{
1033
- "overflow-y": E()
1033
+ "overflow-y": k()
1034
1034
  }],
1035
1035
  /**
1036
1036
  * Overscroll Behavior
@@ -1063,63 +1063,63 @@ const R = (e) => {
1063
1063
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1064
1064
  */
1065
1065
  inset: [{
1066
- inset: k()
1066
+ inset: E()
1067
1067
  }],
1068
1068
  /**
1069
1069
  * Right / Left
1070
1070
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1071
1071
  */
1072
1072
  "inset-x": [{
1073
- "inset-x": k()
1073
+ "inset-x": E()
1074
1074
  }],
1075
1075
  /**
1076
1076
  * Top / Bottom
1077
1077
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1078
1078
  */
1079
1079
  "inset-y": [{
1080
- "inset-y": k()
1080
+ "inset-y": E()
1081
1081
  }],
1082
1082
  /**
1083
1083
  * Start
1084
1084
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1085
1085
  */
1086
1086
  start: [{
1087
- start: k()
1087
+ start: E()
1088
1088
  }],
1089
1089
  /**
1090
1090
  * End
1091
1091
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1092
1092
  */
1093
1093
  end: [{
1094
- end: k()
1094
+ end: E()
1095
1095
  }],
1096
1096
  /**
1097
1097
  * Top
1098
1098
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1099
1099
  */
1100
1100
  top: [{
1101
- top: k()
1101
+ top: E()
1102
1102
  }],
1103
1103
  /**
1104
1104
  * Right
1105
1105
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1106
1106
  */
1107
1107
  right: [{
1108
- right: k()
1108
+ right: E()
1109
1109
  }],
1110
1110
  /**
1111
1111
  * Bottom
1112
1112
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1113
1113
  */
1114
1114
  bottom: [{
1115
- bottom: k()
1115
+ bottom: E()
1116
1116
  }],
1117
1117
  /**
1118
1118
  * Left
1119
1119
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1120
1120
  */
1121
1121
  left: [{
1122
- left: k()
1122
+ left: E()
1123
1123
  }],
1124
1124
  /**
1125
1125
  * Visibility
@@ -1605,7 +1605,7 @@ const R = (e) => {
1605
1605
  * @see https://tailwindcss.com/docs/font-family
1606
1606
  */
1607
1607
  "font-family": [{
1608
- font: [Er, f, t]
1608
+ font: [kr, f, t]
1609
1609
  }],
1610
1610
  /**
1611
1611
  * Font Variant Numeric
@@ -2227,7 +2227,7 @@ const R = (e) => {
2227
2227
  "none",
2228
2228
  p,
2229
2229
  _r,
2230
- kr
2230
+ Er
2231
2231
  ]
2232
2232
  }],
2233
2233
  /**
@@ -3362,7 +3362,7 @@ const V = Nt(dn), vn = ({
3362
3362
  onClickAskGenAI: a,
3363
3363
  onClickAskManager: c
3364
3364
  }) => /* @__PURE__ */ S("div", { className: "flex flex-col w-full h-fit rounded-xl md:rounded-3xl bg-[#F5F5F5] md:bg-[#FFFFFF] gap-2 p-4", children: [
3365
- /* @__PURE__ */ S("div", { className: "flex w-full flex-row items-center justify-between", children: [
3365
+ /* @__PURE__ */ S("div", { className: "flex w-full flex-row items-center justify-between gap-6", children: [
3366
3366
  /* @__PURE__ */ S("div", { className: "flex flex-row", children: [
3367
3367
  /* @__PURE__ */ i(V, { name: r, width: 24, height: 24 }),
3368
3368
  /* @__PURE__ */ i("div", { className: "ml-2 mr-1 text-base font-medium leading-6 text-[#000000]", children: e }),
@@ -3394,7 +3394,7 @@ const V = Nt(dn), vn = ({
3394
3394
  ] }), un = ({
3395
3395
  sender: e,
3396
3396
  message: t,
3397
- timestamps: n,
3397
+ timestamp: n,
3398
3398
  icon: r,
3399
3399
  type: o,
3400
3400
  onClickAskAI: s,
@@ -3468,10 +3468,10 @@ const V = Nt(dn), vn = ({
3468
3468
  ] })
3469
3469
  ] });
3470
3470
  return {
3471
- message: p(),
3472
- reply: g(),
3473
- "manager-reply": v(),
3474
- "ai-reply": C()
3471
+ MESSAGE: p(),
3472
+ REPLY: g(),
3473
+ MENAGER_REPLY: v(),
3474
+ AI_REPLY: C()
3475
3475
  }[o];
3476
3476
  }, xn = ({
3477
3477
  isStandalone: e,
@@ -3484,7 +3484,7 @@ const V = Nt(dn), vn = ({
3484
3484
  /* @__PURE__ */ i("div", { className: "text-lg font-medium text-[#000000]", children: "Transcript" }),
3485
3485
  n && /* @__PURE__ */ i("div", { className: "px-2.5 py-1 bg-[#0e0e1814] rounded-full", children: n })
3486
3486
  ] }),
3487
- /* @__PURE__ */ i("div", { className: "md:flex", children: /* @__PURE__ */ S(
3487
+ /* @__PURE__ */ i("div", { className: "hidden md:flex", children: /* @__PURE__ */ S(
3488
3488
  z,
3489
3489
  {
3490
3490
  variant: "outline",
@@ -3497,7 +3497,7 @@ const V = Nt(dn), vn = ({
3497
3497
  ]
3498
3498
  }
3499
3499
  ) }),
3500
- /* @__PURE__ */ i("div", { className: "md:hidden", children: /* @__PURE__ */ S(
3500
+ /* @__PURE__ */ i("div", { className: "flex md:hidden", children: /* @__PURE__ */ S(
3501
3501
  z,
3502
3502
  {
3503
3503
  variant: "link",
@@ -3511,7 +3511,7 @@ const V = Nt(dn), vn = ({
3511
3511
  }
3512
3512
  ) })
3513
3513
  ] }) : /* @__PURE__ */ S("div", { className: "w-full flex items-center justify-center", children: [
3514
- /* @__PURE__ */ i("div", { className: "md:flex", children: /* @__PURE__ */ S(
3514
+ /* @__PURE__ */ i("div", { className: "hidden md:flex", children: /* @__PURE__ */ S(
3515
3515
  z,
3516
3516
  {
3517
3517
  variant: "outline",
@@ -3524,7 +3524,7 @@ const V = Nt(dn), vn = ({
3524
3524
  ]
3525
3525
  }
3526
3526
  ) }),
3527
- /* @__PURE__ */ i("div", { className: "md:hidden", children: /* @__PURE__ */ S(
3527
+ /* @__PURE__ */ i("div", { className: "flex md:hidden", children: /* @__PURE__ */ S(
3528
3528
  z,
3529
3529
  {
3530
3530
  variant: "link",
@@ -3538,7 +3538,7 @@ const V = Nt(dn), vn = ({
3538
3538
  }
3539
3539
  ) })
3540
3540
  ] }),
3541
- /* @__PURE__ */ i("div", { className: "flex flex-col gap-6 w-full", children: t.map((o) => /* @__PURE__ */ i(un, { ...o })) })
3541
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-6 w-full", children: t.map((o) => /* @__PURE__ */ i(un, { ...o }, o.id)) })
3542
3542
  ] });
3543
3543
  export {
3544
3544
  be as Avatar,
@@ -3547,5 +3547,6 @@ export {
3547
3547
  un as MessageBubble,
3548
3548
  vn as MomentItem,
3549
3549
  bn as Tab,
3550
- xn as Transcript
3550
+ xn as Transcript,
3551
+ Kr as buttonVariants
3551
3552
  };
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ /*! tailwindcss v4.0.10 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-normal:400;--font-weight-medium:500;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:calc(var(--radius) + 4px);--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.rounded-sm{border-radius:var(--radius-sm)}.rounded-md{border-radius:var(--radius-md)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}*{border-color:var(--border);outline-color:color-mix(in oklab,var(--ring)50%,transparent)}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.-bottom-\[14px\]{bottom:-14px}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.ml-2{margin-left:calc(var(--spacing)*2)}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing)*4)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-12{height:calc(var(--spacing)*12)}.h-fit{height:fit-content}.h-full{height:100%}.w-4{width:calc(var(--spacing)*4)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-\[400px\]{width:400px}.w-\[500px\]{width:500px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[768px\]{max-width:768px}.max-w-\[900px\]{max-width:900px}.max-w-full{max-width:100%}.min-w-\[128px\]{min-width:128px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.animate-spin{animation:var(--animate-spin)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-6{gap:calc(var(--spacing)*6)}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-4xl{border-radius:var(--radius-4xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-tl-none{border-top-left-radius:0}.rounded-tr-none{border-top-right-radius:0}.rounded-br-2xl{border-bottom-right-radius:var(--radius-2xl)}.rounded-bl-2xl{border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-\[\#E5E5E5\]{border-color:#e5e5e5}.border-input{border-color:var(--input)}.bg-\[\#0e0e1814\]{background-color:#0e0e1814}.bg-\[\#0000001a\]{background-color:#0000001a}.bg-\[\#5150B0\]{background-color:#5150b0}.bg-\[\#39385F\]{background-color:#39385f}.bg-\[\#DC2626\]{background-color:#dc2626}.bg-\[\#F5F5F5\]{background-color:#f5f5f5}.bg-\[\#FCF5CF\]{background-color:#fcf5cf}.bg-\[\#FFFFFF\]{background-color:#fff}.bg-destructive{background-color:var(--destructive)}.bg-muted{background-color:var(--muted)}.bg-primary{background-color:#098795}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.text-right{text-align:right}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[11px\]{font-size:11px}.text-\[15px\]{font-size:15px}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.whitespace-nowrap{white-space:nowrap}.text-\[\#000000\]{color:#000}.text-\[\#0000000\]{color:#0000000}.text-\[\#5150B0\]{color:#5150b0}.text-\[\#37466D\]{color:#37466d}.text-\[\#737373\]{color:#737373}.text-\[\#F5F5F5\]{color:#f5f5f5}.text-destructive-foreground{color:var(--destructive-foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:#098795}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.underline-offset-4{text-underline-offset:4px}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media (width>=48rem){.md\:flex{display:flex}.md\:hidden{display:none}.md\:gap-\[26px\]{gap:26px}.md\:rounded-3xl{border-radius:var(--radius-3xl)}.md\:bg-\[\#FFFFFF\]{background-color:#fff}.md\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}}:root{--background:oklch(1 0 0);--foreground:oklch(.145 0 0);--card:oklch(1 0 0);--card-foreground:oklch(.145 0 0);--popover:oklch(1 0 0);--popover-foreground:oklch(.145 0 0);--primary:oklch(.205 0 0);--primary-foreground:oklch(.985 0 0);--secondary:oklch(.97 0 0);--secondary-foreground:oklch(.205 0 0);--muted:oklch(.97 0 0);--muted-foreground:oklch(.556 0 0);--accent:oklch(.97 0 0);--accent-foreground:oklch(.205 0 0);--destructive:oklch(.577 .245 27.325);--destructive-foreground:oklch(.577 .245 27.325);--border:oklch(.922 0 0);--input:oklch(.922 0 0);--ring:oklch(.708 0 0);--chart-1:oklch(.646 .222 41.116);--chart-2:oklch(.6 .118 184.704);--chart-3:oklch(.398 .07 227.392);--chart-4:oklch(.828 .189 84.429);--chart-5:oklch(.769 .188 70.08);--radius:.625rem;--sidebar:oklch(.985 0 0);--sidebar-foreground:oklch(.145 0 0);--sidebar-primary:oklch(.205 0 0);--sidebar-primary-foreground:oklch(.985 0 0);--sidebar-accent:oklch(.97 0 0);--sidebar-accent-foreground:oklch(.205 0 0);--sidebar-border:oklch(.922 0 0);--sidebar-ring:oklch(.708 0 0)}.dark{--background:oklch(.145 0 0);--foreground:oklch(.985 0 0);--card:oklch(.145 0 0);--card-foreground:oklch(.985 0 0);--popover:oklch(.145 0 0);--popover-foreground:oklch(.985 0 0);--primary:oklch(.985 0 0);--primary-foreground:oklch(.205 0 0);--secondary:oklch(.269 0 0);--secondary-foreground:oklch(.985 0 0);--muted:oklch(.269 0 0);--muted-foreground:oklch(.708 0 0);--accent:oklch(.269 0 0);--accent-foreground:oklch(.985 0 0);--destructive:oklch(.396 .141 25.723);--destructive-foreground:oklch(.637 .237 25.331);--border:oklch(.269 0 0);--input:oklch(.269 0 0);--ring:oklch(.439 0 0);--chart-1:oklch(.488 .243 264.376);--chart-2:oklch(.696 .17 162.48);--chart-3:oklch(.769 .188 70.08);--chart-4:oklch(.627 .265 303.9);--chart-5:oklch(.645 .246 16.439);--sidebar:oklch(.205 0 0);--sidebar-foreground:oklch(.985 0 0);--sidebar-primary:oklch(.488 .243 264.376);--sidebar-primary-foreground:oklch(.985 0 0);--sidebar-accent:oklch(.269 0 0);--sidebar-accent-foreground:oklch(.985 0 0);--sidebar-border:oklch(.269 0 0);--sidebar-ring:oklch(.439 0 0)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@keyframes spin{to{transform:rotate(360deg)}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sestek-component",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",