sestek-component 0.0.1 → 0.0.2

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.
@@ -0,0 +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;
@@ -0,0 +1,92 @@
1
+ import { ClassProp } from 'class-variance-authority/types';
2
+ import { FunctionComponent } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { MemoExoticComponent } from 'react';
5
+ import * as React_2 from 'react';
6
+ import { ReactNode } from 'react';
7
+ import { SVGAttributes } from 'react';
8
+ import { SVGProps } from 'react';
9
+ import { VariantProps } from 'class-variance-authority';
10
+
11
+ export declare const Avatar: ({ url, fullName, type }: AvatarProps) => JSX.Element;
12
+
13
+ declare interface AvatarProps {
14
+ url?: string;
15
+ fullName: string;
16
+ type?: "primary" | "secondary";
17
+ }
18
+
19
+ export declare const Button: (props: ButtonProps) => JSX.Element;
20
+
21
+ declare interface ButtonProps extends ButtonProps_2 {
22
+ children: ReactNode;
23
+ }
24
+
25
+ declare interface ButtonProps_2 extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
26
+ asChild?: boolean;
27
+ }
28
+
29
+ declare const buttonVariants: (props?: ({
30
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
31
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
32
+ } & ClassProp) | undefined) => string;
33
+
34
+ export declare const Icon: MemoExoticComponent<typeof IconComponent>;
35
+
36
+ declare function IconComponent({ name, ...props }: IIcon): JSX.Element | null;
37
+
38
+ declare const icons: {
39
+ Sparkles: FunctionComponent<SVGAttributes<SVGElement>>;
40
+ ChatBubble: FunctionComponent<SVGAttributes<SVGElement>>;
41
+ ArrowPathRoundedSquare: FunctionComponent<SVGAttributes<SVGElement>>;
42
+ Square2Stack: FunctionComponent<SVGAttributes<SVGElement>>;
43
+ Language: FunctionComponent<SVGAttributes<SVGElement>>;
44
+ HandRaised: FunctionComponent<SVGAttributes<SVGElement>>;
45
+ };
46
+
47
+ declare interface IIcon extends SVGProps<SVGSVGElement> {
48
+ name: keyof typeof icons;
49
+ }
50
+
51
+ export declare const MessageBubble: ({ sender, message, timestamps, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle, showHelperButton, managerReplyMessage, }: MessageBubbleProps) => JSX.Element;
52
+
53
+ declare interface MessageBubbleProps {
54
+ sender: string;
55
+ message: ReactNode | string;
56
+ timestamps: string;
57
+ icon: ReactNode;
58
+ type: MessageBubbleType;
59
+ onClickAskAI?: () => void;
60
+ onClickAskManager?: () => void;
61
+ managerReplyTitle?: ReactNode;
62
+ showHelperButton?: boolean;
63
+ managerReplyMessage?: ReactNode;
64
+ }
65
+
66
+ declare type MessageBubbleType = "message" | "reply" | "manager-reply" | "ai-reply";
67
+
68
+ export declare const MomentItem: ({ title, message, timestamps, icon, tag, showHelperButtons, onClickAskGenAI, onClickAskManager, }: MomentItemProps) => JSX.Element;
69
+
70
+ declare interface MomentItemProps {
71
+ title: string;
72
+ message: string;
73
+ timestamps: string;
74
+ icon: keyof typeof icons;
75
+ tag?: ReactNode;
76
+ showHelperButtons?: boolean;
77
+ onClickAskGenAI?: () => void;
78
+ onClickAskManager?: () => void;
79
+ }
80
+
81
+ export declare const Tab: () => JSX.Element;
82
+
83
+ export declare const Transcript: ({ isStandalone, messages, transcriptInfo, onClickTranslation, }: TranscriptProps) => JSX.Element;
84
+
85
+ declare interface TranscriptProps {
86
+ isStandalone?: boolean;
87
+ messages: MessageBubbleProps[];
88
+ transcriptInfo?: string;
89
+ onClickTranslation: () => void;
90
+ }
91
+
92
+ export { }