@contact_incruiter/fcc 1.0.0 โ 1.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.
- package/dist/components/index.d.ts +6 -3
- package/dist/components/types.d.ts +9 -1
- package/dist/components/workflow/ConditionalBranch.d.ts +2 -1
- package/dist/components/workflow/ProductDragPanel.d.ts +1 -1
- package/dist/components/workflow/TransitionConditionDialog.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1259 -1056
- package/dist/index.js.map +1 -1
- package/package.json +2 -5
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export type { ProductName, WorkflowStatus, ConfigStatus, TemplateBadge, NodeType, ConnectorType, Branch, PipelineStepData, WorkflowTemplateData, WorkflowData, SubscriptionData, UserProfile, NavItem, } from './types';
|
|
1
|
+
export type { ProductName, WorkflowStatus, ConfigStatus, TemplateBadge, NodeType, ConnectorType, TransitionType, IncScreenAdvanceOn, TransitionCondition, Branch, PipelineStepData, WorkflowTemplateData, WorkflowData, SubscriptionData, UserProfile, NavItem, } from './types';
|
|
2
2
|
export { StatusBadge } from './common/StatusBadge';
|
|
3
3
|
export { ProductIcon, getProductLabel } from './common/ProductIcon';
|
|
4
4
|
export { SearchBar } from './common/SearchBar';
|
|
5
5
|
export { PageHeader } from './common/PageHeader';
|
|
6
|
-
export { Sidebar
|
|
6
|
+
export { Sidebar } from './layout/Sidebar';
|
|
7
|
+
export type { SidebarNavItem, SidebarProps } from './layout/Sidebar';
|
|
7
8
|
export { TopBar } from './layout/TopBar';
|
|
8
|
-
export { AppShell
|
|
9
|
+
export { AppShell } from './layout/AppShell';
|
|
10
|
+
export type { AppShellProps } from './layout/AppShell';
|
|
9
11
|
export { WelcomeBanner } from './dashboard/WelcomeBanner';
|
|
10
12
|
export { QuickActionCard } from './dashboard/QuickActionCard';
|
|
11
13
|
export { SubscriptionCard } from './dashboard/SubscriptionCard';
|
|
@@ -17,3 +19,4 @@ export { ConditionalBranch } from './workflow/ConditionalBranch';
|
|
|
17
19
|
export { AddStepButton } from './workflow/AddStepButton';
|
|
18
20
|
export { ProductDragPanel } from './workflow/ProductDragPanel';
|
|
19
21
|
export { WorkflowDesigner } from './workflow/WorkflowDesigner';
|
|
22
|
+
export { TransitionConditionDialog } from './workflow/TransitionConditionDialog';
|
|
@@ -4,7 +4,14 @@ export type WorkflowStatus = 'Active' | 'Draft';
|
|
|
4
4
|
export type ConfigStatus = 'Configured' | 'Configuration Pending';
|
|
5
5
|
export type TemplateBadge = 'Popular' | 'Fast' | 'Premium' | 'Complete' | 'AI' | 'Lean';
|
|
6
6
|
export type NodeType = 'position' | 'product' | 'onboarding';
|
|
7
|
-
export type ConnectorType = '
|
|
7
|
+
export type ConnectorType = 'automatic' | 'manual-review' | 'conditional' | 'simple';
|
|
8
|
+
export type TransitionType = 'Automatic' | 'Manual';
|
|
9
|
+
export type IncScreenAdvanceOn = 'Qualified' | 'Disqualified' | 'Both';
|
|
10
|
+
export interface TransitionCondition {
|
|
11
|
+
type: TransitionType;
|
|
12
|
+
threshold?: number;
|
|
13
|
+
advanceOn?: IncScreenAdvanceOn;
|
|
14
|
+
}
|
|
8
15
|
export interface Branch {
|
|
9
16
|
label: string;
|
|
10
17
|
color: 'green' | 'yellow' | 'red';
|
|
@@ -16,6 +23,7 @@ export interface PipelineStepData {
|
|
|
16
23
|
productLabel?: string;
|
|
17
24
|
status?: ConfigStatus;
|
|
18
25
|
details?: string;
|
|
26
|
+
transitionCondition?: TransitionCondition;
|
|
19
27
|
connector?: {
|
|
20
28
|
type: ConnectorType;
|
|
21
29
|
branches?: Branch[];
|
|
@@ -2,7 +2,8 @@ import type { Branch, ConnectorType } from '../types';
|
|
|
2
2
|
interface ConditionalBranchProps {
|
|
3
3
|
type: ConnectorType;
|
|
4
4
|
branches?: Branch[];
|
|
5
|
+
threshold?: number;
|
|
5
6
|
className?: string;
|
|
6
7
|
}
|
|
7
|
-
export declare function ConditionalBranch({ type, branches, className }: ConditionalBranchProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export declare function ConditionalBranch({ type, branches, threshold, className, }: ConditionalBranchProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
9
|
export {};
|
|
@@ -4,5 +4,5 @@ interface ProductDragPanelProps {
|
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
onSelectProduct?: (product: ProductName) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare function ProductDragPanel({ open, onClose, onSelectProduct }: ProductDragPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export declare function ProductDragPanel({ open, onClose: _onClose, onSelectProduct, }: ProductDragPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ProductName, TransitionCondition } from '../types';
|
|
2
|
+
interface TransitionConditionDialogProps {
|
|
3
|
+
product: ProductName;
|
|
4
|
+
onSave: (condition: TransitionCondition) => void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function TransitionConditionDialog({ product, onSave, onCancel, }: TransitionConditionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),w=require("lucide-react"),E=require("react");function Be(r){var t,n,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(t=0;t<s;t++)r[t]&&(n=Be(r[t]))&&(o&&(o+=" "),o+=n)}else for(n in r)r[n]&&(o&&(o+=" "),o+=n);return o}function nr(){for(var r,t,n=0,o="",s=arguments.length;n<s;n++)(r=arguments[n])&&(t=Be(r))&&(o&&(o+=" "),o+=t);return o}const sr=(r,t)=>{const n=new Array(r.length+t.length);for(let o=0;o<r.length;o++)n[o]=r[o];for(let o=0;o<t.length;o++)n[r.length+o]=t[o];return n},ir=(r,t)=>({classGroupId:r,validator:t}),Fe=(r=new Map,t=null,n)=>({nextPart:r,validators:t,classGroupId:n}),se="-",Se=[],lr="arbitrary..",ar=r=>{const t=dr(r),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=r;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return cr(i);const f=i.split(se),g=f[0]===""&&f.length>1?1:0;return We(f,g,t)},getConflictingClassGroupIds:(i,f)=>{if(f){const g=o[i],a=n[i];return g?a?sr(a,g):g:a||Se}return n[i]||Se}}},We=(r,t,n)=>{if(r.length-t===0)return n.classGroupId;const s=r[t],l=n.nextPart.get(s);if(l){const a=We(r,t+1,l);if(a)return a}const i=n.validators;if(i===null)return;const f=t===0?r.join(se):r.slice(t).join(se),g=i.length;for(let a=0;a<g;a++){const k=i[a];if(k.validator(f))return k.classGroupId}},cr=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=r.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?lr+o:void 0})(),dr=r=>{const{theme:t,classGroups:n}=r;return fr(n,t)},fr=(r,t)=>{const n=Fe();for(const o in r){const s=r[o];ue(s,n,o,t)}return n},ue=(r,t,n,o)=>{const s=r.length;for(let l=0;l<s;l++){const i=r[l];gr(i,t,n,o)}},gr=(r,t,n,o)=>{if(typeof r=="string"){pr(r,t,n);return}if(typeof r=="function"){xr(r,t,n,o);return}mr(r,t,n,o)},pr=(r,t,n)=>{const o=r===""?t:Oe(t,r);o.classGroupId=n},xr=(r,t,n,o)=>{if(ur(r)){ue(r(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(ir(n,r))},mr=(r,t,n,o)=>{const s=Object.entries(r),l=s.length;for(let i=0;i<l;i++){const[f,g]=s[i];ue(g,Oe(t,f),n,o)}},Oe=(r,t)=>{let n=r;const o=t.split(se),s=o.length;for(let l=0;l<s;l++){const i=o[l];let f=n.nextPart.get(i);f||(f=Fe(),n.nextPart.set(i,f)),n=f}return n},ur=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,br=r=>{if(r<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const s=(l,i)=>{n[l]=i,t++,t>r&&(t=0,o=n,n=Object.create(null))};return{get(l){let i=n[l];if(i!==void 0)return i;if((i=o[l])!==void 0)return s(l,i),i},set(l,i){l in n?n[l]=i:s(l,i)}}},xe="!",ze=":",hr=[],Ie=(r,t,n,o,s)=>({modifiers:r,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:s}),yr=r=>{const{prefix:t,experimentalParseClassName:n}=r;let o=s=>{const l=[];let i=0,f=0,g=0,a;const k=s.length;for(let v=0;v<k;v++){const C=s[v];if(i===0&&f===0){if(C===ze){l.push(s.slice(g,v)),g=v+1;continue}if(C==="/"){a=v;continue}}C==="["?i++:C==="]"?i--:C==="("?f++:C===")"&&f--}const p=l.length===0?s:s.slice(g);let j=p,N=!1;p.endsWith(xe)?(j=p.slice(0,-1),N=!0):p.startsWith(xe)&&(j=p.slice(1),N=!0);const b=a&&a>g?a-g:void 0;return Ie(l,N,j,b)};if(t){const s=t+ze,l=o;o=i=>i.startsWith(s)?l(i.slice(s.length)):Ie(hr,!1,i,void 0,!0)}if(n){const s=o;o=l=>n({className:l,parseClassName:s})}return o},wr=r=>{const t=new Map;return r.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let s=[];for(let l=0;l<n.length;l++){const i=n[l],f=i[0]==="[",g=t.has(i);f||g?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(i)):s.push(i)}return s.length>0&&(s.sort(),o.push(...s)),o}},kr=r=>({cache:br(r.cacheSize),parseClassName:yr(r),sortModifiers:wr(r),postfixLookupClassGroupIds:vr(r),...ar(r)}),vr=r=>{const t=Object.create(null),n=r.postfixLookupClassGroups;if(n)for(let o=0;o<n.length;o++)t[n[o]]=!0;return t},jr=/\s+/,Nr=(r,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:i}=t,f=[],g=r.trim().split(jr);let a="";for(let k=g.length-1;k>=0;k-=1){const p=g[k],{isExternal:j,modifiers:N,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:C}=n(p);if(j){a=p+(a.length>0?" "+a:a);continue}let h=!!C,S;if(h){const P=v.substring(0,C);S=o(P);const m=S&&i[S]?o(v):void 0;m&&m!==S&&(S=m,h=!1)}else S=o(v);if(!S){if(!h){a=p+(a.length>0?" "+a:a);continue}if(S=o(v),!S){a=p+(a.length>0?" "+a:a);continue}h=!1}const R=N.length===0?"":N.length===1?N[0]:l(N).join(":"),T=b?R+xe:R,A=T+S;if(f.indexOf(A)>-1)continue;f.push(A);const x=s(S,h);for(let P=0;P<x.length;++P){const m=x[P];f.push(T+m)}a=p+(a.length>0?" "+a:a)}return a},Cr=(...r)=>{let t=0,n,o,s="";for(;t<r.length;)(n=r[t++])&&(o=Ee(n))&&(s&&(s+=" "),s+=o);return s},Ee=r=>{if(typeof r=="string")return r;let t,n="";for(let o=0;o<r.length;o++)r[o]&&(t=Ee(r[o]))&&(n&&(n+=" "),n+=t);return n},Sr=(r,...t)=>{let n,o,s,l;const i=g=>{const a=t.reduce((k,p)=>p(k),r());return n=kr(a),o=n.cache.get,s=n.cache.set,l=f,f(g)},f=g=>{const a=o(g);if(a)return a;const k=Nr(g,n);return s(g,k),k};return l=i,(...g)=>l(Cr(...g))},zr=[],z=r=>{const t=n=>n[r]||zr;return t.isThemeGetter=!0,t},De=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ge=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ir=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Rr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ar=/\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$/,Tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=r=>Ir.test(r),y=r=>!!r&&!Number.isNaN(Number(r)),O=r=>!!r&&Number.isInteger(Number(r)),ge=r=>r.endsWith("%")&&y(r.slice(0,-1)),D=r=>Rr.test(r),Ue=()=>!0,Lr=r=>Ar.test(r)&&!Tr.test(r),be=()=>!1,Br=r=>Pr.test(r),Fr=r=>Mr.test(r),Wr=r=>!c(r)&&!d(r),Or=r=>r.startsWith("@container")&&(r[10]==="/"&&r[11]!==void 0||r[11]==="s"&&r[16]!==void 0&&r.startsWith("-size/",10)||r[11]==="n"&&r[18]!==void 0&&r.startsWith("-normal/",10)),Er=r=>U(r,_e,be),c=r=>De.test(r),V=r=>U(r,He,Lr),Re=r=>U(r,Yr,y),Dr=r=>U(r,qe,Ue),Gr=r=>U(r,Ye,be),Ae=r=>U(r,$e,be),Ur=r=>U(r,Ve,Fr),ee=r=>U(r,Je,Br),d=r=>Ge.test(r),Y=r=>_(r,He),$r=r=>_(r,Ye),Te=r=>_(r,$e),Vr=r=>_(r,_e),_r=r=>_(r,Ve),re=r=>_(r,Je,!0),Hr=r=>_(r,qe,!0),U=(r,t,n)=>{const o=De.exec(r);return o?o[1]?t(o[1]):n(o[2]):!1},_=(r,t,n=!1)=>{const o=Ge.exec(r);return o?o[1]?t(o[1]):n:!1},$e=r=>r==="position"||r==="percentage",Ve=r=>r==="image"||r==="url",_e=r=>r==="length"||r==="size"||r==="bg-size",He=r=>r==="length",Yr=r=>r==="number",Ye=r=>r==="family-name",qe=r=>r==="number"||r==="weight",Je=r=>r==="shadow",qr=()=>{const r=z("color"),t=z("font"),n=z("text"),o=z("font-weight"),s=z("tracking"),l=z("leading"),i=z("breakpoint"),f=z("container"),g=z("spacing"),a=z("radius"),k=z("shadow"),p=z("inset-shadow"),j=z("text-shadow"),N=z("drop-shadow"),b=z("blur"),v=z("perspective"),C=z("aspect"),h=z("ease"),S=z("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),d,c],x=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],m=()=>[d,c,g],F=()=>[G,"full","auto",...m()],he=()=>[O,"none","subgrid",d,c],ye=()=>["auto",{span:["full",O,d,c]},O,d,c],J=()=>[O,"auto",d,c],we=()=>["auto","min","max","fr",d,c],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...m()],$=()=>[G,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],ae=()=>[G,"screen","full","dvw","lvw","svw","min","max","fit",...m()],ce=()=>[G,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],u=()=>[r,d,c],ke=()=>[...T(),Te,Ae,{position:[d,c]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],je=()=>["auto","cover","contain",Vr,Er,{size:[d,c]}],de=()=>[ge,Y,V],M=()=>["","none","full",a,d,c],L=()=>["",y,Y,V],Q=()=>["solid","dashed","dotted","double"],Ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[y,ge,Te,Ae],Ce=()=>["","none",b,d,c],X=()=>["none",y,d,c],K=()=>["none",y,d,c],fe=()=>[y,d,c],Z=()=>[G,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[Ue],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[Wr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",y],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",G,c,d,C]}],container:["container"],"container-type":[{"@container":["","normal","size",d,c]}],"container-named":[Or],columns:[{columns:[y,c,d,f]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:A()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",d,c]}],basis:[{basis:[G,"full","auto",f,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,G,"auto","initial","none",c]}],grow:[{grow:["",y,d,c]}],shrink:[{shrink:["",y,d,c]}],order:[{order:[O,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:ye()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:ye()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":we()}],"auto-rows":[{"auto-rows":we()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[f,"screen",...$()]}],"min-w":[{"min-w":[f,"screen","none",...$()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,Y,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Hr,Dr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ge,c]}],"font-family":[{font:[$r,Gr,t]}],"font-features":[{"font-features":[c]}],"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:[s,d,c]}],"line-clamp":[{"line-clamp":[y,"none",d,Re]}],leading:[{leading:[l,...m()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:u()}],"text-color":[{text:u()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",d,V]}],"text-decoration-color":[{decoration:u()}],"underline-offset":[{"underline-offset":[y,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"tab-size":[{tab:[O,d,c]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:je()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,d,c],radial:["",d,c],conic:[O,d,c]},_r,Ur]}],"bg-color":[{bg:u()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:u()}],"gradient-via":[{via:u()}],"gradient-to":[{to:u()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:u()}],"border-color-x":[{"border-x":u()}],"border-color-y":[{"border-y":u()}],"border-color-s":[{"border-s":u()}],"border-color-e":[{"border-e":u()}],"border-color-bs":[{"border-bs":u()}],"border-color-be":[{"border-be":u()}],"border-color-t":[{"border-t":u()}],"border-color-r":[{"border-r":u()}],"border-color-b":[{"border-b":u()}],"border-color-l":[{"border-l":u()}],"divide-color":[{divide:u()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,d,c]}],"outline-w":[{outline:["",y,Y,V]}],"outline-color":[{outline:u()}],shadow:[{shadow:["","none",k,re,ee]}],"shadow-color":[{shadow:u()}],"inset-shadow":[{"inset-shadow":["none",p,re,ee]}],"inset-shadow-color":[{"inset-shadow":u()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:u()}],"ring-offset-w":[{"ring-offset":[y,V]}],"ring-offset-color":[{"ring-offset":u()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":u()}],"text-shadow":[{"text-shadow":["none",j,re,ee]}],"text-shadow-color":[{"text-shadow":u()}],opacity:[{opacity:[y,d,c]}],"mix-blend":[{"mix-blend":[...Ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":u()}],"mask-image-linear-to-color":[{"mask-linear-to":u()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":u()}],"mask-image-t-to-color":[{"mask-t-to":u()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":u()}],"mask-image-r-to-color":[{"mask-r-to":u()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":u()}],"mask-image-b-to-color":[{"mask-b-to":u()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":u()}],"mask-image-l-to-color":[{"mask-l-to":u()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":u()}],"mask-image-x-to-color":[{"mask-x-to":u()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":u()}],"mask-image-y-to-color":[{"mask-y-to":u()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":u()}],"mask-image-radial-to-color":[{"mask-radial-to":u()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":u()}],"mask-image-conic-to-color":[{"mask-conic-to":u()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:je()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:Ce()}],brightness:[{brightness:[y,d,c]}],contrast:[{contrast:[y,d,c]}],"drop-shadow":[{"drop-shadow":["","none",N,re,ee]}],"drop-shadow-color":[{"drop-shadow":u()}],grayscale:[{grayscale:["",y,d,c]}],"hue-rotate":[{"hue-rotate":[y,d,c]}],invert:[{invert:["",y,d,c]}],saturate:[{saturate:[y,d,c]}],sepia:[{sepia:["",y,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[y,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[y,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,d,c]}],"backdrop-invert":[{"backdrop-invert":["",y,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[y,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[y,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",y,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",d,c]}],ease:[{ease:["linear","initial",h,d,c]}],delay:[{delay:[y,d,c]}],animate:[{animate:["none",S,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,d,c]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],zoom:[{zoom:[O,d,c]}],accent:[{accent:u()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:u()}],"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",d,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":u()}],"scrollbar-track-color":[{"scrollbar-track":u()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"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",d,c]}],fill:[{fill:["none",...u()]}],"stroke-w":[{stroke:[y,Y,V,Re]}],stroke:[{stroke:["none",...u()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Jr=Sr(qr);function B(...r){return Jr(nr(r))}const Qr={Popular:"bg-green-100 text-green-700",Fast:"bg-orange-100 text-orange-600",Premium:"bg-purple-100 text-purple-700",Complete:"bg-blue-100 text-blue-700",AI:"bg-teal-100 text-teal-700",Lean:"bg-slate-100 text-slate-600",Active:"bg-green-100 text-green-700",Draft:"bg-orange-100 text-orange-600",Configured:"bg-green-100 text-green-700","Configuration Pending":"bg-red-100 text-red-600"};function Xr({status:r,className:t,dot:n=!1}){return e.jsxs("span",{className:B("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium",Qr[r]??"bg-gray-100 text-gray-600",t),children:[n&&e.jsx("span",{className:B("h-1.5 w-1.5 rounded-full",{"bg-green-500":r==="Active"||r==="Configured","bg-orange-500":r==="Draft","bg-red-500":r==="Configuration Pending"})}),r]})}const Qe={incscreen:{label:"IncScreen",Icon:w.Phone,gradient:"linear-gradient(135deg, #0d9488 0%, #14b8a6 100%)"},incbot:{label:"IncBot",Icon:w.Bot,gradient:"linear-gradient(135deg, #2563eb 0%, #3b82f6 100%)"},incvid:{label:"IncVid",Icon:w.Video,gradient:"linear-gradient(135deg, #4f46e5 0%, #6366f1 100%)"},incfeed:{label:"IncFeed",Icon:w.Calendar,gradient:"linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%)"},incserve:{label:"IncServe",Icon:w.GraduationCap,gradient:"linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%)"},incproctor:{label:"IncProctor",Icon:w.Shield,gradient:"linear-gradient(135deg, #475569 0%, #64748b 100%)"}},Kr={sm:{box:28,icon:13,radius:7},md:{box:36,icon:17,radius:9},lg:{box:48,icon:22,radius:12}};function ie({product:r,size:t="md",className:n}){const o=Qe[r],{box:s,icon:l,radius:i}=Kr[t],{Icon:f,gradient:g}=o;return e.jsx("span",{className:B("flex flex-shrink-0 items-center justify-center",n),style:{width:s,height:s,borderRadius:i,background:g},children:e.jsx(f,{size:l,color:"#fff"})})}function Xe(r){return Qe[r]?.label??r}function Zr({placeholder:r="Search...",shortcut:t="โK",className:n,onSearch:o}){return e.jsxs("div",{className:B("relative flex items-center",n),children:[e.jsx(w.Search,{size:14,className:"absolute left-3 text-gray-400 pointer-events-none",strokeWidth:2}),e.jsx("input",{type:"text",placeholder:r,onChange:s=>o?.(s.target.value),className:B("h-8 w-56 rounded-lg border border-gray-200 bg-gray-50","pl-8 pr-14 text-[13px] text-gray-700 placeholder:text-gray-400","focus:outline-none focus:ring-2 focus:ring-blue-400/30 focus:border-blue-400/60","transition-colors")}),t&&e.jsx("div",{className:"absolute right-2.5 flex items-center gap-0.5 pointer-events-none",children:e.jsx("kbd",{className:"flex items-center rounded bg-gray-100 px-1.5 py-0.5 text-[10px] font-medium text-gray-400 font-sans border border-gray-200",children:t})})]})}function et({title:r,description:t,breadcrumb:n,actions:o,className:s}){return e.jsxs("div",{className:B("flex items-start justify-between",s),children:[e.jsxs("div",{children:[n&&e.jsx("p",{className:"mb-1 text-xs text-gray-400 uppercase tracking-wider",children:n}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:r}),t&&e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:t})]}),o&&e.jsx("div",{className:"flex items-center gap-2",children:o})]})}const te="#12b6bc",rt="#f5fbf8",Ke="rgba(0,0,0,0.03)",oe="rgba(0,0,0,0.07)";function Pe({item:r,active:t,collapsed:n,onNavigate:o}){return e.jsxs("button",{onClick:()=>o?.(r.href),title:n?r.label:void 0,className:"flex w-full items-center overflow-hidden",style:{gap:n?0:20,paddingLeft:n?0:15,paddingRight:n?0:10,paddingTop:10,paddingBottom:10,justifyContent:n?"center":void 0,background:t?rt:"transparent",borderLeft:t?`2px solid ${te}`:"2px solid transparent",borderRadius:0},onMouseEnter:s=>{t||(s.currentTarget.style.background=Ke)},onMouseLeave:s=>{t||(s.currentTarget.style.background="transparent")},children:[e.jsx(r.Icon,{size:22,style:{flexShrink:0,color:t?te:"#9ca3af",display:"block"}}),!n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-1 text-left",style:{fontFamily:"'Inter', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:t?700:500,color:t?te:"#000",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.label}),r.badge!==void 0&&e.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:19,minWidth:20,paddingInline:4,borderRadius:10,background:"rgba(18,182,188,0.14)",color:te,fontSize:10,fontWeight:600,flexShrink:0},children:r.badge})]})]})}function Ze({user:r,logoSrc:t,logoAlt:n="Logo",navItems:o=[],otherItems:s=[],activeHref:l="/",onNavigate:i,onMyProfile:f,onAccountsBilling:g}){const[a,k]=E.useState(!1),[p,j]=E.useState(!1),N=r.name.split(" ").map(b=>b[0]).join("").slice(0,2).toUpperCase();return e.jsxs("aside",{className:"flex h-screen flex-shrink-0 flex-col bg-white transition-all duration-200",style:{width:p?52:250,borderRight:`1px solid ${oe}`},children:[e.jsxs("div",{className:"flex flex-shrink-0 items-center",style:{height:52,padding:10,borderBottom:`1px solid ${oe}`,justifyContent:p?"center":"space-between"},children:[!p&&t&&e.jsx("img",{src:t,alt:n,style:{height:36,width:"auto",objectFit:"contain"}}),e.jsx("button",{onClick:()=>{j(b=>!b),k(!1)},className:"flex items-center justify-center rounded-md text-gray-400 hover:bg-gray-100 transition-colors",style:{width:28,height:28,flexShrink:0},"aria-label":"Toggle menu",children:e.jsx(w.Menu,{size:16})})]}),e.jsxs("div",{className:"flex-shrink-0",children:[e.jsxs("button",{onClick:()=>!p&&k(b=>!b),className:"flex w-full items-center transition-colors",style:{gap:12,padding:12,background:"rgba(18,182,188,0.05)",justifyContent:p?"center":void 0},children:[r.avatarUrl?e.jsx("img",{src:r.avatarUrl,alt:r.name,className:"rounded-full object-cover",style:{width:32,height:32,flexShrink:0}}):e.jsx("div",{className:"flex items-center justify-center rounded-full text-white",style:{width:32,height:32,flexShrink:0,fontSize:11,fontWeight:700,background:"linear-gradient(135deg, #3b82f6 0%, #12b6bc 100%)"},children:N}),!p&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[e.jsx("p",{style:{fontFamily:"'Plus Jakarta Sans', sans-serif",fontSize:14,fontWeight:500,color:"#000",lineHeight:"1.45",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.name}),e.jsx("p",{style:{fontFamily:"'Plus Jakarta Sans', sans-serif",fontSize:12,fontWeight:400,color:"#3f3f3f",lineHeight:"1.5",marginTop:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.role})]}),e.jsx(w.ChevronsUpDown,{size:16,style:{color:"#9ca3af",flexShrink:0}})]})]}),a&&e.jsx(e.Fragment,{children:[{label:"My Profile",Icon:w.UserCircle,action:f},{label:"Accounts & Billing",Icon:w.CreditCard,action:g}].map(({label:b,Icon:v,action:C})=>e.jsxs("button",{onClick:C,className:"flex w-full items-center overflow-hidden",style:{gap:20,paddingLeft:15,paddingRight:10,paddingTop:10,paddingBottom:10,background:"transparent",borderLeft:"2px solid transparent",borderRadius:0},onMouseEnter:h=>{h.currentTarget.style.background=Ke},onMouseLeave:h=>{h.currentTarget.style.background="transparent"},children:[e.jsx(v,{size:22,style:{color:"#878787",flexShrink:0}}),e.jsx("span",{style:{fontFamily:"'Inter', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:500,color:"#000",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:b})]},b))})]}),e.jsxs("nav",{className:"flex-1 overflow-y-auto",children:[o.length>0&&!p&&e.jsx("div",{style:{paddingLeft:20,paddingRight:10,paddingTop:10,paddingBottom:6,fontSize:11,fontWeight:600,letterSpacing:"0.06em",color:"rgba(0,0,0,0.45)",fontFamily:"'Inter', sans-serif"},children:"MAIN MENU"}),o.map(b=>e.jsx(Pe,{item:b,active:l===b.href,collapsed:p,onNavigate:i},b.href))]}),s.length>0&&e.jsxs("div",{className:"flex-shrink-0",children:[!p&&e.jsx("div",{style:{paddingLeft:20,paddingRight:10,paddingTop:8,paddingBottom:6,fontSize:11,fontWeight:600,letterSpacing:"0.06em",color:"rgba(0,0,0,0.45)",fontFamily:"'Inter', sans-serif",borderTop:`1px solid ${oe}`},children:"OTHER"}),p&&e.jsx("div",{style:{height:8,borderTop:`1px solid ${oe}`}}),s.map(b=>e.jsx(Pe,{item:b,active:l===b.href,collapsed:p,onNavigate:i},b.href)),e.jsx("div",{style:{height:16}})]})]})}function er({title:r,breadcrumb:t,actions:n,notificationCount:o=0,onBellClick:s,className:l}){return e.jsxs("header",{className:B("flex h-[52px] flex-shrink-0 items-center justify-between bg-white px-6",l),style:{borderBottom:"1px solid rgba(0,0,0,0.07)"},children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("h2",{className:"text-[15px] font-bold text-gray-900 leading-none",children:r}),t&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-gray-300 leading-none",children:"/"}),e.jsx("span",{className:"text-[13px] text-gray-500 truncate",children:t})]})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2.5",children:[n,e.jsxs("button",{onClick:s,className:"relative flex h-8 w-8 items-center justify-center rounded-lg text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-colors","aria-label":"Notifications",children:[e.jsx(w.Bell,{size:16,strokeWidth:1.75}),o>0&&e.jsx("span",{className:"absolute right-1.5 top-1.5 flex h-2 w-2 rounded-full bg-blue-500 ring-1 ring-white"})]})]})]})}function tt({user:r,logoSrc:t,logoAlt:n,navItems:o,otherItems:s,activeHref:l,topBarTitle:i="",topBarBreadcrumb:f,topBarActions:g,notificationCount:a,onNavigate:k,onMyProfile:p,onAccountsBilling:j,onBellClick:N,children:b,className:v}){return e.jsxs("div",{className:"flex h-screen overflow-hidden bg-gray-50",children:[e.jsx(Ze,{user:r,logoSrc:t,logoAlt:n,navItems:o,otherItems:s,activeHref:l,onNavigate:k,onMyProfile:p,onAccountsBilling:j}),e.jsxs("div",{className:"flex flex-1 min-w-0 flex-col overflow-hidden",children:[e.jsx(er,{title:i,breadcrumb:f,actions:g,notificationCount:a,onBellClick:N}),e.jsx("main",{className:B("flex-1 overflow-y-auto",v),children:b})]})]})}function ot({name:r,subtitle:t=""}){const n=r.split(" ")[0];return e.jsxs("div",{children:[e.jsxs("h1",{className:"text-[26px] font-bold leading-tight text-gray-900",children:["Welcome back,"," ",e.jsx("span",{style:{color:"#3b82f6"},children:n})," ",e.jsx("span",{"aria-hidden":!0,children:"๐"})]}),e.jsx("p",{className:"mt-1.5 text-[13.5px] text-gray-500",children:t})]})}function nt({icon:r,iconBg:t="#eff6ff",title:n,subtitle:o,onClick:s,className:l}){return e.jsxs("button",{onClick:s,className:B("flex items-center gap-4 rounded-xl bg-white px-5 py-4 text-left","transition-all","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/40",l),style:{border:"1px solid rgba(0,0,0,0.07)"},children:[e.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-xl",style:{background:t},children:r}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[13.5px] font-semibold text-gray-900 leading-snug",children:n}),e.jsx("p",{className:"mt-0.5 text-[12px] text-gray-500 leading-snug",children:o})]})]})}function st({name:r,product:t,status:n,validTill:o,usage:s,onOpenDashboard:l}){const i=n==="Active";return e.jsxs("div",{className:"flex items-center gap-4 rounded-xl bg-white px-5 py-4",style:{border:"1px solid rgba(0,0,0,0.07)"},children:[e.jsx(ie,{product:t,size:"md",className:"flex-shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-[13px] font-semibold",style:{color:"#111118"},children:r}),e.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[e.jsx("span",{className:"inline-block h-[6px] w-[6px] rounded-full",style:{background:i?"#16a34a":"#f59e0b"}}),e.jsx("span",{className:"text-[11.5px] font-medium",style:{color:i?"#16a34a":"#d97706"},children:n}),e.jsx("span",{className:"text-[11.5px]",style:{color:"#d1d5db"},children:"ยท"}),e.jsxs("span",{className:"text-[11.5px]",style:{color:"#9ca3af"},children:["Valid till ",o]})]})]}),e.jsxs("div",{className:"hidden w-32 flex-shrink-0 sm:block",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[e.jsx("span",{className:"text-[10.5px]",style:{color:"#aab"},children:"Usage"}),e.jsxs("span",{className:"text-[10.5px] font-semibold",style:{color:"#374151"},children:[s,"%"]})]}),e.jsx("div",{className:"h-[3px] w-full overflow-hidden rounded-full",style:{background:"rgba(0,0,0,0.06)"},children:e.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${s}%`,background:"linear-gradient(90deg, #133f7d 0%, #12b6bc 100%)"}})})]}),e.jsx("button",{onClick:l,className:"ml-2 flex-shrink-0 rounded-lg text-[11px] font-medium transition-colors hover:bg-gray-200",style:{background:"#f1f2f4",border:"1px solid rgba(0,0,0,0.10)",color:"#111118",height:28,padding:"0 11px"},children:"Open Dashboard"})]})}function it({product:r,message:t,ctaLabel:n="Explore โ",onExplore:o}){return e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",style:{borderRadius:12,border:"1px dashed rgba(99, 102, 241, 0.25)",background:"rgba(99, 102, 241, 0.04)"},children:[e.jsx("span",{className:"flex-shrink-0 text-base leading-none","aria-hidden":!0,children:"๐ก"}),e.jsxs("p",{className:"flex-1 text-[13px] text-gray-600 leading-snug",children:["Based on your usage,"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:r})," ",t," ",e.jsx("button",{onClick:o,className:"font-semibold text-blue-600 hover:underline",style:{background:"none",border:"none",cursor:"pointer",padding:0},children:n})]})]})}const Me={Popular:"#2563eb",Fast:"#d97706",Premium:"#7c3aed",Complete:"#c2410c",AI:"#0d9488",Lean:"#a16207"};function lt({title:r,description:t,badge:n,steps:o,onUseTemplate:s}){const l=Me[n]??Me.Popular;return e.jsxs("div",{className:"flex flex-col rounded-2xl bg-white transition-colors hover:border-gray-300",style:{border:"1px solid rgba(0,0,0,0.08)",padding:"20px"},children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{style:{width:44,height:44,borderRadius:12,background:"rgba(16,185,129,0.12)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(w.Workflow,{size:22,color:"#10b981"})}),e.jsx("span",{style:{fontFamily:"'Inter', sans-serif",fontSize:13,fontWeight:600,color:l},children:n})]}),e.jsx("h3",{style:{fontFamily:"'Inter', sans-serif",fontSize:16,fontWeight:700,color:"#111118",marginBottom:8},children:r}),e.jsx("p",{style:{fontFamily:"'Inter', sans-serif",fontSize:13,lineHeight:"1.6",color:"#6b7280",marginBottom:20,flexGrow:1},children:t}),e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[o.map((i,f)=>e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{style:{background:"#f1f5f9",color:"#475569",border:"1px solid #e2e8f0",borderRadius:6,padding:"3px 8px",fontSize:11,fontFamily:"'Inter', sans-serif",fontWeight:500},children:i}),f<o.length-1&&e.jsx(w.ArrowRight,{size:9,style:{color:"#cbd5e1",flexShrink:0}})]},i)),e.jsx("button",{onClick:s,style:{fontFamily:"'Inter', sans-serif",fontSize:12,fontWeight:500,color:"#6b7280",background:"none",border:"none",cursor:"pointer",padding:0,marginLeft:4,whiteSpace:"nowrap"},className:"hover:text-gray-900 transition-colors",children:"+ Use Template"})]})]})}function at({title:r,steps:t,createdAt:n,status:o,candidates:s,hired:l,onEdit:i,onAddCandidate:f}){const g=o==="Draft";return e.jsxs("div",{className:"flex items-center gap-4 rounded-xl border border-gray-200 bg-white px-5 py-4 transition-colors hover:border-gray-300",children:[e.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full",style:{background:g?"#fff7ed":"#f0fdf4"},children:g?e.jsx(w.FileText,{size:15,style:{color:"#ea580c"}}):e.jsx(w.Play,{size:15,fill:"#16a34a",style:{color:"#16a34a"}})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-[13.5px] font-semibold text-gray-900",children:r}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-1.5",children:[t.map((a,k)=>e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[12px] text-gray-500",children:a}),k<t.length-1&&e.jsx(w.ArrowRight,{size:9,className:"text-gray-300"})]},a)),e.jsx("span",{className:"text-gray-300 text-[12px] select-none",children:"ยท"}),e.jsxs("span",{className:"text-[12px] text-gray-400",children:["Created ",n]})]})]}),e.jsxs("div",{className:"hidden flex-shrink-0 sm:flex items-center gap-5",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-[15px] font-bold text-gray-900",children:s}),e.jsx("p",{className:"text-[10.5px] text-gray-400",children:"Candidates"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-[15px] font-bold text-gray-900",children:l}),e.jsx("p",{className:"text-[10.5px] text-gray-400",children:"Hired"})]})]}),e.jsx("span",{className:"flex-shrink-0 rounded-full px-2.5 py-0.5 text-[11px] font-semibold",style:g?{background:"#fff7ed",color:"#c2410c",border:"1px solid #fed7aa"}:{background:"#f0fdf4",color:"#15803d",border:"1px solid #bbf7d0"},children:o}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2",children:[e.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 rounded-lg border border-gray-200 px-3 h-8 text-[12px] font-medium text-gray-600 hover:bg-gray-50 transition-colors",children:[e.jsx(w.Pencil,{size:12}),"Edit"]}),e.jsxs("button",{onClick:f,disabled:g,className:"flex items-center gap-1.5 rounded-lg h-8 px-3 text-[12px] font-medium text-white transition-opacity hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed",style:{background:"#0f1f3d"},children:[e.jsx(w.UserPlus,{size:12}),"Add Candidate"]})]})]})}const ct={incscreen:"IncScreen",incbot:"IncBot",incvid:"IncVid",incfeed:"IncFeed",incserve:"IncServe",incproctor:"IncProctor"},dt={border:"2px solid rgba(19,63,125,0.30)",background:"rgba(19,63,125,0.05)",boxShadow:"none"},ft={border:"1px solid rgba(19,63,125,0.12)",background:"#ffffff",boxShadow:"0 1px 3px 0 rgba(15,23,41,0.05), 0 1px 2px -1px rgba(15,23,41,0.05)"};function rr({type:r="product",product:t,productLabel:n,status:o,details:s,stepLabel:l,onMoveUp:i,onMoveDown:f,onSettings:g,onDelete:a,className:k}){const p=r==="position",j=r==="onboarding",b=o==="Configured"||p||j?dt:ft,v=p?"Position":j?"Onboarding":t?ct[t]:"";return e.jsxs("div",{className:B("flex items-center gap-3.5 px-4 py-3.5 w-full max-w-lg",k),style:{borderRadius:12,border:b.border,background:b.background,boxShadow:b.boxShadow},children:[p||j?e.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{background:p?"#e0e7ff":"#dcfce7"},children:e.jsx(w.Briefcase,{size:17,style:{color:p?"#6366f1":"#16a34a"}})}):t?e.jsx(ie,{product:t,size:"md",className:"flex-shrink-0"}):null,e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-[13.5px] font-bold text-gray-900",children:v}),n&&e.jsx("span",{className:"text-[12px] text-gray-400",children:n}),l&&e.jsx("span",{className:"rounded-full px-2 py-0.5 text-[10.5px] font-semibold",style:{background:"#e0f2fe",color:"#0369a1"},children:l}),o&&e.jsxs("span",{className:"flex items-center gap-1 rounded-full px-2 py-0.5 text-[10.5px] font-semibold",style:o==="Configured"?{background:"#f0fdf4",color:"#15803d",border:"1px solid #bbf7d0"}:{background:"#fff7ed",color:"#c2410c",border:"1px solid #fed7aa"},children:[o==="Configured"?e.jsx(w.CheckCircle2,{size:10}):e.jsx(w.AlertCircle,{size:10}),o]})]}),s&&e.jsx("p",{className:"mt-0.5 truncate text-[12px] text-gray-500",children:s})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-0.5",children:[!p&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:i,className:"rounded-md p-1.5 hover:bg-white/70 transition-colors",style:{color:"#0F1729"},"aria-label":"Move up",children:e.jsx(w.ChevronUp,{size:14})}),e.jsx("button",{onClick:f,className:"rounded-md p-1.5 hover:bg-white/70 transition-colors",style:{color:"#0F1729"},"aria-label":"Move down",children:e.jsx(w.ChevronDown,{size:14})})]}),e.jsx("button",{onClick:g,className:"rounded-md p-1.5 hover:bg-white/70 transition-colors",style:{color:"#0F1729"},"aria-label":"Settings",children:e.jsx(w.Settings,{size:14})}),!p&&e.jsx("button",{onClick:a,className:"rounded-md p-1.5 text-gray-400 hover:text-red-500 transition-colors",style:{},onMouseEnter:C=>C.currentTarget.style.background="#fee2e2",onMouseLeave:C=>C.currentTarget.style.background="transparent","aria-label":"Delete",children:e.jsx(w.Trash2,{size:14,color:"#DC2828"})})]})]})}const gt={green:"border-green-300 bg-green-50 text-green-700",yellow:"border-orange-300 bg-orange-50 text-orange-700",red:"border-red-300 bg-red-50 text-red-600"};function tr({type:r,branches:t=[],className:n}){if(r==="simple")return null;const o=r==="manual-review";return e.jsxs("div",{className:B("flex flex-col items-center gap-2",n),children:[e.jsx("div",{className:B("flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium",o?"border-amber-300 bg-amber-50 text-amber-700":"border-teal-300 bg-teal-50 text-teal-700"),children:o?e.jsxs(e.Fragment,{children:[e.jsx(w.UserCheck,{size:11}),"Manual Review"]}):e.jsxs(e.Fragment,{children:[e.jsx(w.GitMerge,{size:11}),"Conditional"]})}),!o&&t.length>0&&e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:t.map(s=>e.jsx("span",{className:B("rounded-full border px-3 py-1 text-[11px] font-medium",gt[s.color]),children:s.label},s.label))})]})}function me({onClick:r,className:t}){return e.jsx("button",{onClick:r,"aria-label":"Add step",className:B("flex h-7 w-7 items-center justify-center rounded-full border-2 border-dashed border-gray-300 text-gray-400","transition-all hover:border-blue-400 hover:bg-blue-50 hover:text-blue-600 hover:scale-110","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",t),style:{background:"#F8F9FB"},children:e.jsx(w.Plus,{size:14})})}const pt=[{product:"incscreen",description:"Conversational AI Recruiter"},{product:"incbot",description:"AI Video Interview Software"},{product:"incvid",description:"Video Interview Portal"},{product:"incfeed",description:"Interview Scheduling Software"},{product:"incserve",description:"Interview as a Service"}];function xt(){return e.jsx("div",{className:"grid grid-cols-2 gap-[3px] flex-shrink-0",children:Array.from({length:6}).map((r,t)=>e.jsx("div",{className:"h-[4px] w-[4px] rounded-full bg-gray-300"},t))})}function or({open:r,onClose:t,onSelectProduct:n}){return r?e.jsxs("aside",{className:"flex w-[220px] flex-shrink-0 flex-col border-l border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-3.5",style:{background:"#133F7D"},children:[e.jsx("h3",{className:"text-[12.5px] font-bold text-white leading-snug",children:"Drag & Drop Products to create Workflow"}),e.jsx("p",{className:"mt-1 text-[11px] text-white/60 leading-snug",children:"Set the conditions to execute further flow"})]}),e.jsx("div",{className:"flex-1 overflow-y-auto bg-[#f5f6f8] p-2.5 flex flex-col gap-2",children:pt.map(({product:o,description:s})=>e.jsxs("button",{draggable:!0,onDragEnd:()=>{n?.(o),t()},onClick:()=>{n?.(o),t()},className:"flex w-full items-center gap-2.5 rounded-xl border border-gray-200 bg-white px-2.5 py-2.5 text-left hover:border-blue-300 hover:shadow-sm transition-all cursor-grab active:cursor-grabbing",children:[e.jsx(xt,{}),e.jsx(ie,{product:o,size:"sm"}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"text-[12px] font-bold text-gray-900 leading-tight",children:[Xe(o),":"]}),e.jsx("p",{className:"text-[10.5px] text-gray-500 leading-tight",children:s})]})]},o))})]}):null}const mt=[{id:"position",type:"position",details:""}];function ut({title:r="Untitled Pipeline",status:t="draft",initialSteps:n=mt,onBack:o,onPublish:s,onSaveDraft:l}){const[i,f]=E.useState(r),[g,a]=E.useState(n),[k,p]=E.useState("designer"),[j,N]=E.useState(!1);function b(h){a(S=>S.filter(R=>R.id!==h))}function v(h,S){a(R=>{const T=R.findIndex(P=>P.id===h);if(T<0)return R;const A=[...R],x=S==="up"?T-1:T+1;return x<0||x>=A.length?R:([A[T],A[x]]=[A[x],A[T]],A)})}function C(){N(!0)}return e.jsxs("div",{className:"flex h-full flex-col overflow-hidden bg-gray-50",children:[e.jsxs("div",{className:"flex items-center gap-3 border-b border-gray-200 bg-white px-5 py-3.5",children:[e.jsx("button",{onClick:o,className:"rounded-lg p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-colors","aria-label":"Go back",children:e.jsx(w.ArrowLeft,{size:16})}),e.jsx("input",{value:i,onChange:h=>f(h.target.value),className:"rounded-md border-0 bg-transparent text-[14px] font-bold text-gray-900 focus:outline-none focus:ring-2 focus:ring-blue-400/40 px-2 py-1 max-w-xs"}),e.jsx("span",{className:"rounded-full px-2.5 py-0.5 text-[11px] font-semibold capitalize",style:t==="active"?{background:"#f0fdf4",color:"#15803d",border:"1px solid #bbf7d0"}:{background:"#f1f5f9",color:"#475569",border:"1px solid #e2e8f0"},children:t}),e.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[e.jsxs("div",{className:"flex rounded-lg border border-gray-200 bg-gray-50 p-0.5",children:[e.jsx("button",{onClick:()=>p("designer"),className:`rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${k==="designer"?"text-white shadow-sm":"text-gray-500 hover:text-gray-700"}`,style:k==="designer"?{background:"#0f1f3d"}:{},children:"Designer"}),e.jsxs("button",{onClick:()=>p("run"),className:`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${k==="run"?"text-white shadow-sm":"text-gray-500 hover:text-gray-700"}`,style:k==="run"?{background:"#0f1f3d"}:{},children:[e.jsx(w.Play,{size:11}),"Run"]})]}),e.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 rounded-lg border border-gray-200 px-3.5 h-8 text-[12px] font-medium text-gray-600 hover:bg-gray-50 transition-colors",children:[e.jsx(w.FileText,{size:13}),"Draft"]}),e.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 rounded-lg h-8 px-3.5 text-[12px] font-semibold text-white transition-opacity hover:opacity-90",style:{background:"#0f1f3d"},children:[e.jsx(w.Send,{size:13}),"Publish"]})]})]}),e.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[e.jsx("div",{className:"flex flex-1 overflow-y-auto p-8",style:{backgroundImage:"radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px)",backgroundSize:"20px 20px"},onClick:()=>N(!1),children:e.jsxs("div",{className:"flex flex-col items-center gap-0 w-full max-w-lg mx-auto",children:[g.map((h,S)=>{const R=S===g.length-1,T=h.connector&&h.connector.type!=="simple";return e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx(rr,{type:h.type,product:h.product,productLabel:h.productLabel,status:h.status,details:h.details,stepLabel:h.stepLabel,onMoveUp:()=>v(h.id,"up"),onMoveDown:()=>v(h.id,"down"),onDelete:()=>b(h.id),onSettings:()=>N(!0)}),!R&&e.jsxs("div",{className:"flex flex-col items-center py-2",children:[e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}}),T&&h.connector?e.jsxs(e.Fragment,{children:[e.jsx(tr,{type:h.connector.type,branches:h.connector.branches}),e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}})]}):null,e.jsx(me,{onClick:C}),e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}})]})]},h.id)}),e.jsxs("div",{className:"flex flex-col items-center pt-2",children:[e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}}),e.jsx(me,{onClick:C})]})]})}),e.jsx(or,{open:j,onClose:()=>N(!1)})]})]})}const q="#12b6bc",bt="#f5fbf8",ht="rgba(0,0,0,0.03)",ne="rgba(0,0,0,0.07)",yt=[{label:"My Profile",Icon:w.UserCircle},{label:"Accounts & Billing",Icon:w.CreditCard}];function pe({item:r,active:t,collapsed:n,expanded:o,onNavigate:s,onToggle:l}){const{label:i,href:f,link:g,Icon:a,badge:k,hasChevron:p,expandedContent:j,onClick:N}=r,b=()=>{N?N():g?window.open(g,"_blank","noopener,noreferrer"):p&&j&&f?l?.(f):f&&s?.(f)};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:b,title:n?i:void 0,style:{display:"flex",width:"100%",alignItems:"center",overflow:"hidden",gap:n?0:20,paddingLeft:n?0:15,paddingRight:n?0:10,paddingTop:10,paddingBottom:10,justifyContent:n?"center":void 0,background:t||o?bt:"transparent",borderLeft:t||o?`2px solid ${q}`:"2px solid transparent",borderTop:"none",borderRight:"none",borderBottom:"none",borderRadius:0,cursor:"pointer",outline:"none",transition:"background 0.12s"},onMouseEnter:v=>{!t&&!o&&(v.currentTarget.style.background=ht)},onMouseLeave:v=>{!t&&!o&&(v.currentTarget.style.background="transparent")},children:[e.jsx(a,{size:22,style:{flexShrink:0,color:t||o?q:"#9ca3af",display:"block"}}),!n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{flex:1,textAlign:"left",fontFamily:"'Inter', 'Manrope-Regular', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:t||o?700:500,color:t||o?q:"#000",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:i}),k!==void 0&&e.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:19,minWidth:20,paddingInline:4,borderRadius:10,background:"rgba(18,182,188,0.14)",color:q,fontSize:10,fontWeight:600,flexShrink:0},children:k}),p&&j&&e.jsx(w.ChevronDown,{size:16,style:{flexShrink:0,color:"#9ca3af",transform:o?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}}),p&&!j&&e.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"#9ca3af",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,transform:"rotate(-90deg)"},children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),!n&&o&&j&&e.jsx("div",{style:{background:"rgba(18,182,188,0.02)",borderLeft:`2px solid ${q}`,overflow:"hidden",maxHeight:320,overflowY:"auto"},children:j})]})}function wt({logoSrc:r,user:t={},navItems:n=[],otherItems:o=[],profileItems:s,activeHref:l="/",onNavigate:i,collapsed:f,onToggleCollapse:g,children:a}){const k=s??yt,p=k.some(x=>x.href&&l&&(l===x.href||l.startsWith(x.href+"/"))),[j,N]=E.useState(!1),b=f!==void 0?f:j,v=g?x=>{const P=typeof x=="function"?x(b):x;g(P)}:x=>N(typeof x=="function"?x(j):x),[C,h]=E.useState(p),[S,R]=E.useState(null);E.useEffect(()=>{p&&h(!0)},[p]);const T=t.name?t.name.split(" ").map(x=>x[0]).join("").slice(0,2).toUpperCase():"?",A=x=>{R(P=>P===x?null:x)};return e.jsxs("div",{style:{display:"flex",height:"100%"},children:[e.jsxs("aside",{style:{width:b?56:250,flexShrink:0,display:"flex",flexDirection:"column",height:"100%",background:"#fff",borderRight:`1px solid ${ne}`,transition:"width 0.2s ease",overflow:"hidden",zIndex:100},children:[e.jsxs("div",{style:{height:52,flexShrink:0,display:"flex",alignItems:"center",justifyContent:b?"center":"space-between",padding:10,borderBottom:`1px solid ${ne}`},children:[!b&&r&&e.jsx("img",{src:r,alt:"Logo",style:{height:36,width:"auto",objectFit:"contain"}}),e.jsx("button",{onClick:()=>{v(x=>!x),R(null)},style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:6,border:"none",background:"transparent",color:"#9ca3af",cursor:"pointer",flexShrink:0,outline:"none"},onMouseEnter:x=>x.currentTarget.style.background="#f3f4f6",onMouseLeave:x=>x.currentTarget.style.background="transparent","aria-label":"Toggle sidebar",children:e.jsx(w.Menu,{size:16})})]}),e.jsxs("div",{style:{flexShrink:0},children:[e.jsxs("button",{onClick:()=>{b?(v(!1),h(!0)):h(x=>!x)},style:{display:"flex",width:"100%",alignItems:"center",gap:12,padding:12,justifyContent:b?"center":void 0,background:p?"#f5fbf8":"rgba(18,182,188,0.05)",borderLeft:p?"2px solid #12b6bc":"2px solid transparent",borderTop:"none",borderRight:"none",borderBottom:"none",cursor:"pointer",outline:"none"},children:[t.avatarUrl?e.jsx("img",{src:t.avatarUrl,alt:t.name??"User",style:{width:32,height:32,borderRadius:"50%",objectFit:"cover",flexShrink:0,outline:p?"2px solid #12b6bc":"none",outlineOffset:2}}):e.jsx("div",{style:{width:32,height:32,borderRadius:"50%",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,outline:p?"2px solid #12b6bc":"none",outlineOffset:2,color:"#fff",background:"linear-gradient(135deg, #3b82f6 0%, #12b6bc 100%)"},children:T}),!b&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{flex:1,minWidth:0,textAlign:"left"},children:[e.jsx("p",{style:{margin:0,fontFamily:"'Plus Jakarta Sans', 'Inter', sans-serif",fontSize:14,fontWeight:500,color:"#000",lineHeight:1.45,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name??"User"}),e.jsx("p",{style:{margin:0,fontFamily:"'Plus Jakarta Sans', 'Inter', sans-serif",fontSize:12,fontWeight:400,color:"#3f3f3f",lineHeight:1.5,marginTop:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.role??""})]}),e.jsx(w.ChevronsUpDown,{size:16,style:{color:"#9ca3af",flexShrink:0}})]})]}),(C||b&&p)&&e.jsx(e.Fragment,{children:k.map(x=>e.jsx(pe,{item:{...x,onClick:x.onClick?()=>{b||h(!1),x.onClick?.()}:x.link?()=>{b||h(!1),window.open(x.link,"_blank","noopener,noreferrer")}:void 0},active:!!(x.href&&l&&(l===x.href||l.startsWith(x.href+"/"))),collapsed:b,onNavigate:i,onToggle:A},x.label))})]}),e.jsxs("nav",{style:{flex:1,overflowY:"auto"},children:[n.length>0&&!b&&e.jsx("div",{style:{paddingLeft:20,paddingRight:10,paddingTop:10,paddingBottom:6,fontSize:11,fontWeight:600,letterSpacing:"0.06em",color:"rgba(0,0,0,0.45)",fontFamily:"'Inter', sans-serif"},children:"MAIN MENU"}),n.map(x=>e.jsx(pe,{item:x,active:l===x.href,expanded:S===x.href,collapsed:b,onNavigate:i,onToggle:A},x.href??x.label))]}),o.length>0&&e.jsxs("div",{style:{flexShrink:0},children:[!b&&e.jsx("div",{style:{paddingLeft:20,paddingRight:10,paddingTop:8,paddingBottom:6,fontSize:11,fontWeight:600,letterSpacing:"0.06em",color:"rgba(0,0,0,0.45)",fontFamily:"'Inter', sans-serif",borderTop:`1px solid ${ne}`},children:"OTHER"}),b&&e.jsx("div",{style:{height:8,borderTop:`1px solid ${ne}`}}),o.map(x=>e.jsx(pe,{item:x,active:l===x.href,collapsed:b,onNavigate:i,onToggle:A},x.href??x.label)),e.jsx("div",{style:{height:16}})]})]}),e.jsx("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:a})]})}const kt="rgba(0,0,0,0.07)",Le="#12b6bc";function vt({title:r="",notificationCount:t=0,onBellClick:n,bellRef:o,notificationDropdown:s,leftButton:l,navLinks:i=[],rightExtra:f}){const g=i.length>0;return e.jsxs("header",{style:{height:52,flexShrink:0,display:"flex",alignItems:"center",background:"#fff",borderBottom:`1px solid ${kt}`,padding:"0 12px",zIndex:99,gap:16},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,flexShrink:0},children:[l,!g&&e.jsx("h2",{style:{margin:0,fontSize:15,fontWeight:700,color:"#111118",fontFamily:"'Inter', 'Manrope-Regular', sans-serif",whiteSpace:"nowrap"},children:r})]}),g&&e.jsxs("nav",{style:{display:"flex",alignItems:"stretch",gap:0,height:"100%",flex:1,justifyContent:"flex-end",marginRight:8},children:[f&&e.jsx("div",{style:{display:"flex",alignItems:"center",paddingRight:8},children:f}),i.map((a,k)=>e.jsx("button",{onClick:a.onClick,style:{position:"relative",height:"100%",padding:"0 16px",background:"none",border:"none",borderBottom:a.active?`2px solid ${Le}`:"2px solid transparent",cursor:"pointer",fontFamily:"'Inter','Manrope-Regular',sans-serif",fontSize:13,fontWeight:a.active?700:500,color:a.active?Le:"#6b7280",whiteSpace:"nowrap",outline:"none",transition:"color 0.15s, border-color 0.15s"},onMouseEnter:p=>{a.active||(p.currentTarget.style.color="#374151")},onMouseLeave:p=>{a.active||(p.currentTarget.style.color="#6b7280")},children:a.label},k))]}),!g&&f&&e.jsx("div",{style:{flexShrink:0,marginLeft:"auto"},children:f}),e.jsxs("div",{ref:o,style:{position:"relative",flexShrink:0,marginLeft:g||f?0:"auto"},children:[e.jsxs("button",{onClick:n,style:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:8,border:"none",background:"transparent",color:"#9ca3af",cursor:"pointer",position:"relative",outline:"none"},onMouseEnter:a=>{a.currentTarget.style.background="#f3f4f6",a.currentTarget.style.color="#6b7280"},onMouseLeave:a=>{a.currentTarget.style.background="transparent",a.currentTarget.style.color="#9ca3af"},"aria-label":"Notifications",children:[e.jsx(w.Bell,{size:16,strokeWidth:1.75}),t>0&&e.jsx("span",{style:{position:"absolute",top:6,right:6,width:7,height:7,borderRadius:"50%",background:"#3b82f6",border:"1.5px solid #fff"}})]}),s]})]})}exports.AIBanner=it;exports.AddStepButton=me;exports.AppShell=tt;exports.ConditionalBranch=tr;exports.InCruiterSidebar=wt;exports.InCruiterTopBar=vt;exports.PageHeader=et;exports.PipelineNode=rr;exports.ProductDragPanel=or;exports.ProductIcon=ie;exports.QuickActionCard=nt;exports.SearchBar=Zr;exports.Sidebar=Ze;exports.StatusBadge=Xr;exports.SubscriptionCard=st;exports.TopBar=er;exports.WelcomeBanner=ot;exports.WorkflowDesigner=ut;exports.WorkflowListItem=at;exports.WorkflowTemplateCard=lt;exports.getProductLabel=Xe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("lucide-react"),L=require("react");function Fe(t){var o,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(o=0;o<s;o++)t[o]&&(n=Fe(t[o]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function st(){for(var t,o,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(o=Fe(t))&&(r&&(r+=" "),r+=o);return r}const it=(t,o)=>{const n=new Array(t.length+o.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<o.length;r++)n[t.length+r]=o[r];return n},at=(t,o)=>({classGroupId:t,validator:o}),We=(t=new Map,o=null,n)=>({nextPart:t,validators:o,classGroupId:n}),ae="-",ze=[],lt="arbitrary..",ct=t=>{const o=ft(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return dt(a);const f=a.split(ae),u=f[0]===""&&f.length>1?1:0;return Oe(f,u,o)},getConflictingClassGroupIds:(a,f)=>{if(f){const u=r[a],c=n[a];return u?c?it(c,u):u:c||ze}return n[a]||ze}}},Oe=(t,o,n)=>{if(t.length-o===0)return n.classGroupId;const s=t[o],i=n.nextPart.get(s);if(i){const c=Oe(t,o+1,i);if(c)return c}const a=n.validators;if(a===null)return;const f=o===0?t.join(ae):t.slice(o).join(ae),u=a.length;for(let c=0;c<u;c++){const y=a[c];if(y.validator(f))return y.classGroupId}},dt=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=t.slice(1,-1),n=o.indexOf(":"),r=o.slice(0,n);return r?lt+r:void 0})(),ft=t=>{const{theme:o,classGroups:n}=t;return gt(n,o)},gt=(t,o)=>{const n=We();for(const r in t){const s=t[r];he(s,n,r,o)}return n},he=(t,o,n,r)=>{const s=t.length;for(let i=0;i<s;i++){const a=t[i];pt(a,o,n,r)}},pt=(t,o,n,r)=>{if(typeof t=="string"){xt(t,o,n);return}if(typeof t=="function"){ut(t,o,n,r);return}mt(t,o,n,r)},xt=(t,o,n)=>{const r=t===""?o:De(o,t);r.classGroupId=n},ut=(t,o,n,r)=>{if(bt(t)){he(t(r),o,n,r);return}o.validators===null&&(o.validators=[]),o.validators.push(at(n,t))},mt=(t,o,n,r)=>{const s=Object.entries(t),i=s.length;for(let a=0;a<i;a++){const[f,u]=s[a];he(u,De(o,f),n,r)}},De=(t,o)=>{let n=t;const r=o.split(ae),s=r.length;for(let i=0;i<s;i++){const a=r[i];let f=n.nextPart.get(a);f||(f=We(),n.nextPart.set(a,f)),n=f}return n},bt=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,ht=t=>{if(t<1)return{get:()=>{},set:()=>{}};let o=0,n=Object.create(null),r=Object.create(null);const s=(i,a)=>{n[i]=a,o++,o>t&&(o=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return s(i,a),a},set(i,a){i in n?n[i]=a:s(i,a)}}},me="!",Ie=":",yt=[],Ae=(t,o,n,r,s)=>({modifiers:t,hasImportantModifier:o,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),wt=t=>{const{prefix:o,experimentalParseClassName:n}=t;let r=s=>{const i=[];let a=0,f=0,u=0,c;const y=s.length;for(let v=0;v<y;v++){const C=s[v];if(a===0&&f===0){if(C===Ie){i.push(s.slice(u,v)),u=v+1;continue}if(C==="/"){c=v;continue}}C==="["?a++:C==="]"?a--:C==="("?f++:C===")"&&f--}const d=i.length===0?s:s.slice(u);let k=d,j=!1;d.endsWith(me)?(k=d.slice(0,-1),j=!0):d.startsWith(me)&&(k=d.slice(1),j=!0);const m=c&&c>u?c-u:void 0;return Ae(i,j,k,m)};if(o){const s=o+Ie,i=r;r=a=>a.startsWith(s)?i(a.slice(s.length)):Ae(yt,!1,a,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},kt=t=>{const o=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{o.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let i=0;i<n.length;i++){const a=n[i],f=a[0]==="[",u=o.has(a);f||u?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(a)):s.push(a)}return s.length>0&&(s.sort(),r.push(...s)),r}},vt=t=>({cache:ht(t.cacheSize),parseClassName:wt(t),sortModifiers:kt(t),postfixLookupClassGroupIds:jt(t),...ct(t)}),jt=t=>{const o=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)o[n[r]]=!0;return o},Nt=/\s+/,Ct=(t,o)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i,postfixLookupClassGroupIds:a}=o,f=[],u=t.trim().split(Nt);let c="";for(let y=u.length-1;y>=0;y-=1){const d=u[y],{isExternal:k,modifiers:j,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:C}=n(d);if(k){c=d+(c.length>0?" "+c:c);continue}let z=!!C,A;if(z){const S=v.substring(0,C);A=r(S);const g=A&&a[A]?r(v):void 0;g&&g!==A&&(A=g,z=!1)}else A=r(v);if(!A){if(!z){c=d+(c.length>0?" "+c:c);continue}if(A=r(v),!A){c=d+(c.length>0?" "+c:c);continue}z=!1}const W=j.length===0?"":j.length===1?j[0]:i(j).join(":"),O=m?W+me:W,B=O+A;if(f.indexOf(B)>-1)continue;f.push(B);const l=s(A,z);for(let S=0;S<l.length;++S){const g=l[S];f.push(O+g)}c=d+(c.length>0?" "+c:c)}return c},St=(...t)=>{let o=0,n,r,s="";for(;o<t.length;)(n=t[o++])&&(r=Ee(n))&&(s&&(s+=" "),s+=r);return s},Ee=t=>{if(typeof t=="string")return t;let o,n="";for(let r=0;r<t.length;r++)t[r]&&(o=Ee(t[r]))&&(n&&(n+=" "),n+=o);return n},zt=(t,...o)=>{let n,r,s,i;const a=u=>{const c=o.reduce((y,d)=>d(y),t());return n=vt(c),r=n.cache.get,s=n.cache.set,i=f,f(u)},f=u=>{const c=r(u);if(c)return c;const y=Ct(u,n);return s(u,y),y};return i=a,(...u)=>i(St(...u))},It=[],I=t=>{const o=n=>n[t]||It;return o.isThemeGetter=!0,o},Ge=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,At=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Tt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rt=/\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$/,Pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=t=>At.test(t),w=t=>!!t&&!Number.isNaN(Number(t)),D=t=>!!t&&Number.isInteger(Number(t)),xe=t=>t.endsWith("%")&&w(t.slice(0,-1)),G=t=>Tt.test(t),Ue=()=>!0,Bt=t=>Rt.test(t)&&!Pt.test(t),ye=()=>!1,Ft=t=>Lt.test(t),Wt=t=>Mt.test(t),Ot=t=>!p(t)&&!x(t),Dt=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Et=t=>U(t,He,ye),p=t=>Ge.test(t),H=t=>U(t,Ye,Bt),Te=t=>U(t,qt,w),Gt=t=>U(t,Je,Ue),$t=t=>U(t,qe,ye),Re=t=>U(t,Ve,ye),Ut=t=>U(t,_e,Wt),re=t=>U(t,Qe,Ft),x=t=>$e.test(t),Q=t=>Y(t,Ye),Vt=t=>Y(t,qe),Pe=t=>Y(t,Ve),_t=t=>Y(t,He),Ht=t=>Y(t,_e),oe=t=>Y(t,Qe,!0),Yt=t=>Y(t,Je,!0),U=(t,o,n)=>{const r=Ge.exec(t);return r?r[1]?o(r[1]):n(r[2]):!1},Y=(t,o,n=!1)=>{const r=$e.exec(t);return r?r[1]?o(r[1]):n:!1},Ve=t=>t==="position"||t==="percentage",_e=t=>t==="image"||t==="url",He=t=>t==="length"||t==="size"||t==="bg-size",Ye=t=>t==="length",qt=t=>t==="number",qe=t=>t==="family-name",Je=t=>t==="number"||t==="weight",Qe=t=>t==="shadow",Jt=()=>{const t=I("color"),o=I("font"),n=I("text"),r=I("font-weight"),s=I("tracking"),i=I("leading"),a=I("breakpoint"),f=I("container"),u=I("spacing"),c=I("radius"),y=I("shadow"),d=I("inset-shadow"),k=I("text-shadow"),j=I("drop-shadow"),m=I("blur"),v=I("perspective"),C=I("aspect"),z=I("ease"),A=I("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...O(),x,p],l=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],g=()=>[x,p,u],N=()=>[$,"full","auto",...g()],E=()=>[D,"none","subgrid",x,p],V=()=>["auto",{span:["full",D,x,p]},D,x,p],q=()=>[D,"auto",x,p],ke=()=>["auto","min","max","fr",x,p],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...g()],_=()=>[$,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],de=()=>[$,"screen","full","dvw","lvw","svw","min","max","fit",...g()],fe=()=>[$,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],b=()=>[t,x,p],ve=()=>[...O(),Pe,Re,{position:[x,p]}],je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ne=()=>["auto","cover","contain",_t,Et,{size:[x,p]}],ge=()=>[xe,Q,H],R=()=>["","none","full",c,x,p],P=()=>["",w,Q,H],Z=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[w,xe,Pe,Re],Se=()=>["","none",m,x,p],K=()=>["none",w,x,p],ee=()=>["none",w,x,p],pe=()=>[w,x,p],te=()=>[$,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[G],breakpoint:[G],color:[Ue],container:[G],"drop-shadow":[G],ease:["in","out","in-out"],font:[Ot],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[G],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[G],shadow:[G],spacing:["px",w],text:[G],"text-shadow":[G],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$,p,x,C]}],container:["container"],"container-type":[{"@container":["","normal","size",x,p]}],"container-named":[Dt],columns:[{columns:[w,p,x,f]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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:B()}],overflow:[{overflow:l()}],"overflow-x":[{"overflow-x":l()}],"overflow-y":[{"overflow-y":l()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",x,p]}],basis:[{basis:[$,"full","auto",f,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[w,$,"auto","initial","none",p]}],grow:[{grow:["",w,x,p]}],shrink:[{shrink:["",w,x,p]}],order:[{order:[D,"first","last","none",x,p]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ke()}],"auto-rows":[{"auto-rows":ke()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pbs:[{pbs:g()}],pbe:[{pbe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[f,"screen",..._()]}],"min-w":[{"min-w":[f,"screen","none",..._()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[a]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,Q,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Yt,Gt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,p]}],"font-family":[{font:[Vt,$t,o]}],"font-features":[{"font-features":[p]}],"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:[s,x,p]}],"line-clamp":[{"line-clamp":[w,"none",x,Te]}],leading:[{leading:[i,...g()]}],"list-image":[{"list-image":["none",x,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[w,"from-font","auto",x,H]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[w,"auto",x,p]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"tab-size":[{tab:[D,x,p]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:je()}],"bg-size":[{bg:Ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,x,p],radial:["",x,p],conic:[D,x,p]},Ht,Ut]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],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:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-bs":[{"border-bs":b()}],"border-color-be":[{"border-be":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[w,x,p]}],"outline-w":[{outline:["",w,Q,H]}],"outline-color":[{outline:b()}],shadow:[{shadow:["","none",y,oe,re]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":["none",d,oe,re]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[w,H]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":["none",k,oe,re]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[w,x,p]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[w]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[x,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[w]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:je()}],"mask-size":[{mask:Ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,p]}],filter:[{filter:["","none",x,p]}],blur:[{blur:Se()}],brightness:[{brightness:[w,x,p]}],contrast:[{contrast:[w,x,p]}],"drop-shadow":[{"drop-shadow":["","none",j,oe,re]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:["",w,x,p]}],"hue-rotate":[{"hue-rotate":[w,x,p]}],invert:[{invert:["",w,x,p]}],saturate:[{saturate:[w,x,p]}],sepia:[{sepia:["",w,x,p]}],"backdrop-filter":[{"backdrop-filter":["","none",x,p]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[w,x,p]}],"backdrop-contrast":[{"backdrop-contrast":[w,x,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",w,x,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w,x,p]}],"backdrop-invert":[{"backdrop-invert":["",w,x,p]}],"backdrop-opacity":[{"backdrop-opacity":[w,x,p]}],"backdrop-saturate":[{"backdrop-saturate":[w,x,p]}],"backdrop-sepia":[{"backdrop-sepia":["",w,x,p]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[w,"initial",x,p]}],ease:[{ease:["linear","initial",z,x,p]}],delay:[{delay:[w,x,p]}],animate:[{animate:["none",A,x,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,x,p]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[x,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],zoom:[{zoom:[D,x,p]}],accent:[{accent:b()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:b()}],"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",x,p]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":b()}],"scrollbar-track-color":[{"scrollbar-track":b()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mbs":[{"scroll-mbs":g()}],"scroll-mbe":[{"scroll-mbe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pbs":[{"scroll-pbs":g()}],"scroll-pbe":[{"scroll-pbe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"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",x,p]}],fill:[{fill:["none",...b()]}],"stroke-w":[{stroke:[w,Q,H,Te]}],stroke:[{stroke:["none",...b()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qt=zt(Jt);function M(...t){return Qt(st(t))}const Xt={Popular:"bg-green-100 text-green-700",Fast:"bg-orange-100 text-orange-600",Premium:"bg-purple-100 text-purple-700",Complete:"bg-blue-100 text-blue-700",AI:"bg-teal-100 text-teal-700",Lean:"bg-slate-100 text-slate-600",Active:"bg-green-100 text-green-700",Draft:"bg-orange-100 text-orange-600",Configured:"bg-green-100 text-green-700","Configuration Pending":"bg-red-100 text-red-600"};function Zt({status:t,className:o,dot:n=!1}){return e.jsxs("span",{className:M("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium",Xt[t]??"bg-gray-100 text-gray-600",o),children:[n&&e.jsx("span",{className:M("h-1.5 w-1.5 rounded-full",{"bg-green-500":t==="Active"||t==="Configured","bg-orange-500":t==="Draft","bg-red-500":t==="Configuration Pending"})}),t]})}const Xe={incscreen:{label:"IncScreen",Icon:h.Phone,gradient:"linear-gradient(135deg, #0d9488 0%, #14b8a6 100%)"},incbot:{label:"IncBot",Icon:h.Bot,gradient:"linear-gradient(135deg, #2563eb 0%, #3b82f6 100%)"},incvid:{label:"IncVid",Icon:h.Video,gradient:"linear-gradient(135deg, #4f46e5 0%, #6366f1 100%)"},incfeed:{label:"IncFeed",Icon:h.Calendar,gradient:"linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%)"},incserve:{label:"IncServe",Icon:h.GraduationCap,gradient:"linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%)"},incproctor:{label:"IncProctor",Icon:h.Shield,gradient:"linear-gradient(135deg, #475569 0%, #64748b 100%)"}},Kt={sm:{box:28,icon:13,radius:7},md:{box:36,icon:17,radius:9},lg:{box:48,icon:22,radius:12}};function le({product:t,size:o="md",className:n}){const r=Xe[t],{box:s,icon:i,radius:a}=Kt[o],{Icon:f,gradient:u}=r;return e.jsx("span",{className:M("flex flex-shrink-0 items-center justify-center",n),style:{width:s,height:s,borderRadius:a,background:u},children:e.jsx(f,{size:i,color:"#fff"})})}function we(t){return Xe[t]?.label??t}function er({placeholder:t="Search...",shortcut:o="โK",className:n,onSearch:r}){return e.jsxs("div",{className:M("relative flex items-center",n),children:[e.jsx(h.Search,{size:14,className:"absolute left-3 text-gray-400 pointer-events-none",strokeWidth:2}),e.jsx("input",{type:"text",placeholder:t,onChange:s=>r?.(s.target.value),className:M("h-8 w-56 rounded-lg border border-gray-200 bg-gray-50","pl-8 pr-14 text-[13px] text-gray-700 placeholder:text-gray-400","focus:outline-none focus:ring-2 focus:ring-blue-400/30 focus:border-blue-400/60","transition-colors")}),o&&e.jsx("div",{className:"absolute right-2.5 flex items-center gap-0.5 pointer-events-none",children:e.jsx("kbd",{className:"flex items-center rounded bg-gray-100 px-1.5 py-0.5 text-[10px] font-medium text-gray-400 font-sans border border-gray-200",children:o})})]})}function tr({title:t,description:o,breadcrumb:n,actions:r,className:s}){return e.jsxs("div",{className:M("flex items-start justify-between",s),children:[e.jsxs("div",{children:[n&&e.jsx("p",{className:"mb-1 text-xs text-gray-400 uppercase tracking-wider",children:n}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:t}),o&&e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:o})]}),r&&e.jsx("div",{className:"flex items-center gap-2",children:r})]})}const ne="#12b6bc",rr="#f5fbf8",Ze="rgba(0,0,0,0.03)",se="rgba(0,0,0,0.07)";function Le({item:t,active:o,collapsed:n,onNavigate:r}){return e.jsxs("button",{onClick:()=>r?.(t.href),title:n?t.label:void 0,className:"flex w-full items-center overflow-hidden",style:{gap:n?0:20,paddingLeft:n?0:15,paddingRight:n?0:10,paddingTop:10,paddingBottom:10,justifyContent:n?"center":void 0,background:o?rr:"transparent",borderLeft:o?`2px solid ${ne}`:"2px solid transparent",borderRadius:0},onMouseEnter:s=>{o||(s.currentTarget.style.background=Ze)},onMouseLeave:s=>{o||(s.currentTarget.style.background="transparent")},children:[e.jsx(t.Icon,{size:22,style:{flexShrink:0,color:o?ne:"#9ca3af",display:"block"}}),!n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-1 text-left",style:{fontFamily:"'Inter', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:o?700:500,color:o?ne:"#000",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.label}),t.badge!==void 0&&e.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:19,minWidth:20,paddingInline:4,borderRadius:10,background:"rgba(18,182,188,0.14)",color:ne,fontSize:10,fontWeight:600,flexShrink:0},children:t.badge})]})]})}function Ke({user:t,logoSrc:o,logoAlt:n="Logo",navItems:r=[],otherItems:s=[],activeHref:i="/",onNavigate:a,onMyProfile:f,onAccountsBilling:u}){const[c,y]=L.useState(!1),[d,k]=L.useState(!1),j=t.name.split(" ").map(m=>m[0]).join("").slice(0,2).toUpperCase();return e.jsxs("aside",{className:"flex h-screen flex-shrink-0 flex-col bg-white transition-all duration-200",style:{width:d?52:250,borderRight:`1px solid ${se}`},children:[e.jsxs("div",{className:"flex flex-shrink-0 items-center",style:{height:52,padding:10,borderBottom:`1px solid ${se}`,justifyContent:d?"center":"space-between"},children:[!d&&o&&e.jsx("img",{src:o,alt:n,style:{height:36,width:"auto",objectFit:"contain"}}),e.jsx("button",{onClick:()=>{k(m=>!m),y(!1)},className:"flex items-center justify-center rounded-md text-gray-400 hover:bg-gray-100 transition-colors",style:{width:28,height:28,flexShrink:0},"aria-label":"Toggle menu",children:e.jsx(h.Menu,{size:16})})]}),e.jsxs("div",{className:"flex-shrink-0",children:[e.jsxs("button",{onClick:()=>!d&&y(m=>!m),className:"flex w-full items-center transition-colors",style:{gap:12,padding:12,background:"rgba(18,182,188,0.05)",justifyContent:d?"center":void 0},children:[t.avatarUrl?e.jsx("img",{src:t.avatarUrl,alt:t.name,className:"rounded-full object-cover",style:{width:32,height:32,flexShrink:0}}):e.jsx("div",{className:"flex items-center justify-center rounded-full text-white",style:{width:32,height:32,flexShrink:0,fontSize:11,fontWeight:700,background:"linear-gradient(135deg, #3b82f6 0%, #12b6bc 100%)"},children:j}),!d&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[e.jsx("p",{style:{fontFamily:"'Plus Jakarta Sans', sans-serif",fontSize:14,fontWeight:500,color:"#000",lineHeight:"1.45",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),e.jsx("p",{style:{fontFamily:"'Plus Jakarta Sans', sans-serif",fontSize:12,fontWeight:400,color:"#3f3f3f",lineHeight:"1.5",marginTop:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.role})]}),e.jsx(h.ChevronsUpDown,{size:16,style:{color:"#9ca3af",flexShrink:0}})]})]}),c&&e.jsx(e.Fragment,{children:[{label:"My Profile",Icon:h.UserCircle,action:f},{label:"Accounts & Billing",Icon:h.CreditCard,action:u}].map(({label:m,Icon:v,action:C})=>e.jsxs("button",{onClick:C,className:"flex w-full items-center overflow-hidden",style:{gap:20,paddingLeft:15,paddingRight:10,paddingTop:10,paddingBottom:10,background:"transparent",borderLeft:"2px solid transparent",borderRadius:0},onMouseEnter:z=>{z.currentTarget.style.background=Ze},onMouseLeave:z=>{z.currentTarget.style.background="transparent"},children:[e.jsx(v,{size:22,style:{color:"#878787",flexShrink:0}}),e.jsx("span",{style:{fontFamily:"'Inter', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:500,color:"#000",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m})]},m))})]}),e.jsxs("nav",{className:"flex-1 overflow-y-auto",children:[r.length>0&&!d&&e.jsx("div",{style:{paddingLeft:20,paddingRight:10,paddingTop:10,paddingBottom:6,fontSize:11,fontWeight:600,letterSpacing:"0.06em",color:"rgba(0,0,0,0.45)",fontFamily:"'Inter', sans-serif"},children:"MAIN MENU"}),r.map(m=>e.jsx(Le,{item:m,active:i===m.href,collapsed:d,onNavigate:a},m.href))]}),s.length>0&&e.jsxs("div",{className:"flex-shrink-0",children:[!d&&e.jsx("div",{style:{paddingLeft:20,paddingRight:10,paddingTop:8,paddingBottom:6,fontSize:11,fontWeight:600,letterSpacing:"0.06em",color:"rgba(0,0,0,0.45)",fontFamily:"'Inter', sans-serif",borderTop:`1px solid ${se}`},children:"OTHER"}),d&&e.jsx("div",{style:{height:8,borderTop:`1px solid ${se}`}}),s.map(m=>e.jsx(Le,{item:m,active:i===m.href,collapsed:d,onNavigate:a},m.href)),e.jsx("div",{style:{height:16}})]})]})}function et({title:t,breadcrumb:o,actions:n,notificationCount:r=0,onBellClick:s,className:i}){return e.jsxs("header",{className:M("flex h-[52px] flex-shrink-0 items-center justify-between bg-white px-6",i),style:{borderBottom:"1px solid rgba(0,0,0,0.07)"},children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("h2",{className:"text-[15px] font-bold text-gray-900 leading-none",children:t}),o&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-gray-300 leading-none",children:"/"}),e.jsx("span",{className:"text-[13px] text-gray-500 truncate",children:o})]})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2.5",children:[n,e.jsxs("button",{onClick:s,className:"relative flex h-8 w-8 items-center justify-center rounded-lg text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-colors","aria-label":"Notifications",children:[e.jsx(h.Bell,{size:16,strokeWidth:1.75}),r>0&&e.jsx("span",{className:"absolute right-1.5 top-1.5 flex h-2 w-2 rounded-full bg-blue-500 ring-1 ring-white"})]})]})]})}function or({user:t,logoSrc:o,logoAlt:n,navItems:r,otherItems:s,activeHref:i,topBarTitle:a="",topBarBreadcrumb:f,topBarActions:u,notificationCount:c,onNavigate:y,onMyProfile:d,onAccountsBilling:k,onBellClick:j,children:m,className:v}){return e.jsxs("div",{className:"flex h-screen overflow-hidden bg-gray-50",children:[e.jsx(Ke,{user:t,logoSrc:o,logoAlt:n,navItems:r,otherItems:s,activeHref:i,onNavigate:y,onMyProfile:d,onAccountsBilling:k}),e.jsxs("div",{className:"flex flex-1 min-w-0 flex-col overflow-hidden",children:[e.jsx(et,{title:a,breadcrumb:f,actions:u,notificationCount:c,onBellClick:j}),e.jsx("main",{className:M("flex-1 overflow-y-auto",v),children:m})]})]})}function nr({name:t,subtitle:o=""}){const n=t.split(" ")[0];return e.jsxs("div",{children:[e.jsxs("h1",{className:"text-[26px] font-bold leading-tight text-gray-900",children:["Welcome back,"," ",e.jsx("span",{style:{color:"#3b82f6"},children:n})," ",e.jsx("span",{"aria-hidden":!0,children:"๐"})]}),e.jsx("p",{className:"mt-1.5 text-[13.5px] text-gray-500",children:o})]})}function sr({icon:t,iconBg:o="#eff6ff",title:n,subtitle:r,onClick:s,className:i}){return e.jsxs("button",{onClick:s,className:M("flex items-center gap-4 rounded-xl bg-white px-5 py-4 text-left","transition-all","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/40",i),style:{border:"1px solid rgba(0,0,0,0.07)"},children:[e.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-xl",style:{background:o},children:t}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[13.5px] font-semibold text-gray-900 leading-snug",children:n}),e.jsx("p",{className:"mt-0.5 text-[12px] text-gray-500 leading-snug",children:r})]})]})}function ir({name:t,product:o,status:n,validTill:r,usage:s,onOpenDashboard:i}){const a=n==="Active";return e.jsxs("div",{className:"flex items-center gap-4 rounded-xl bg-white px-5 py-4",style:{border:"1px solid rgba(0,0,0,0.07)"},children:[e.jsx(le,{product:o,size:"md",className:"flex-shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-[13px] font-semibold",style:{color:"#111118"},children:t}),e.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[e.jsx("span",{className:"inline-block h-[6px] w-[6px] rounded-full",style:{background:a?"#16a34a":"#f59e0b"}}),e.jsx("span",{className:"text-[11.5px] font-medium",style:{color:a?"#16a34a":"#d97706"},children:n}),e.jsx("span",{className:"text-[11.5px]",style:{color:"#d1d5db"},children:"ยท"}),e.jsxs("span",{className:"text-[11.5px]",style:{color:"#9ca3af"},children:["Valid till ",r]})]})]}),e.jsxs("div",{className:"hidden w-32 flex-shrink-0 sm:block",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[e.jsx("span",{className:"text-[10.5px]",style:{color:"#aab"},children:"Usage"}),e.jsxs("span",{className:"text-[10.5px] font-semibold",style:{color:"#374151"},children:[s,"%"]})]}),e.jsx("div",{className:"h-[3px] w-full overflow-hidden rounded-full",style:{background:"rgba(0,0,0,0.06)"},children:e.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${s}%`,background:"linear-gradient(90deg, #133f7d 0%, #12b6bc 100%)"}})})]}),e.jsx("button",{onClick:i,className:"ml-2 flex-shrink-0 rounded-lg text-[11px] font-medium transition-colors hover:bg-gray-200",style:{background:"#f1f2f4",border:"1px solid rgba(0,0,0,0.10)",color:"#111118",height:28,padding:"0 11px"},children:"Open Dashboard"})]})}function ar({product:t,message:o,ctaLabel:n="Explore โ",onExplore:r}){return e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",style:{borderRadius:12,border:"1px dashed rgba(99, 102, 241, 0.25)",background:"rgba(99, 102, 241, 0.04)"},children:[e.jsx("span",{className:"flex-shrink-0 text-base leading-none","aria-hidden":!0,children:"๐ก"}),e.jsxs("p",{className:"flex-1 text-[13px] text-gray-600 leading-snug",children:["Based on your usage,"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:t})," ",o," ",e.jsx("button",{onClick:r,className:"font-semibold text-blue-600 hover:underline",style:{background:"none",border:"none",cursor:"pointer",padding:0},children:n})]})]})}const Me={Popular:"#2563eb",Fast:"#d97706",Premium:"#7c3aed",Complete:"#c2410c",AI:"#0d9488",Lean:"#a16207"};function lr({title:t,description:o,badge:n,steps:r,onUseTemplate:s}){const i=Me[n]??Me.Popular;return e.jsxs("div",{className:"flex flex-col rounded-2xl bg-white transition-colors hover:border-gray-300",style:{border:"1px solid rgba(0,0,0,0.08)",padding:"20px"},children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{style:{width:44,height:44,borderRadius:12,background:"rgba(16,185,129,0.12)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(h.Workflow,{size:22,color:"#10b981"})}),e.jsx("span",{style:{fontFamily:"'Inter', sans-serif",fontSize:13,fontWeight:600,color:i},children:n})]}),e.jsx("h3",{style:{fontFamily:"'Inter', sans-serif",fontSize:16,fontWeight:700,color:"#111118",marginBottom:8},children:t}),e.jsx("p",{style:{fontFamily:"'Inter', sans-serif",fontSize:13,lineHeight:"1.6",color:"#6b7280",marginBottom:20,flexGrow:1},children:o}),e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[r.map((a,f)=>e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{style:{background:"#f1f5f9",color:"#475569",border:"1px solid #e2e8f0",borderRadius:6,padding:"3px 8px",fontSize:11,fontFamily:"'Inter', sans-serif",fontWeight:500},children:a}),f<r.length-1&&e.jsx(h.ArrowRight,{size:9,style:{color:"#cbd5e1",flexShrink:0}})]},a)),e.jsx("button",{onClick:s,style:{fontFamily:"'Inter', sans-serif",fontSize:12,fontWeight:500,color:"#6b7280",background:"none",border:"none",cursor:"pointer",padding:0,marginLeft:4,whiteSpace:"nowrap"},className:"hover:text-gray-900 transition-colors",children:"+ Use Template"})]})]})}function cr({title:t,steps:o,createdAt:n,status:r,candidates:s,hired:i,onEdit:a,onAddCandidate:f}){const u=r==="Draft";return e.jsxs("div",{className:"flex items-center gap-4 rounded-xl border border-gray-200 bg-white px-5 py-4 transition-colors hover:border-gray-300",children:[e.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full",style:{background:u?"#fff7ed":"#f0fdf4"},children:u?e.jsx(h.FileText,{size:15,style:{color:"#ea580c"}}):e.jsx(h.Play,{size:15,fill:"#16a34a",style:{color:"#16a34a"}})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-[13.5px] font-semibold text-gray-900",children:t}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-1.5",children:[o.map((c,y)=>e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[12px] text-gray-500",children:c}),y<o.length-1&&e.jsx(h.ArrowRight,{size:9,className:"text-gray-300"})]},c)),e.jsx("span",{className:"text-gray-300 text-[12px] select-none",children:"ยท"}),e.jsxs("span",{className:"text-[12px] text-gray-400",children:["Created ",n]})]})]}),e.jsxs("div",{className:"hidden flex-shrink-0 sm:flex items-center gap-5",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-[15px] font-bold text-gray-900",children:s}),e.jsx("p",{className:"text-[10.5px] text-gray-400",children:"Candidates"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-[15px] font-bold text-gray-900",children:i}),e.jsx("p",{className:"text-[10.5px] text-gray-400",children:"Hired"})]})]}),e.jsx("span",{className:"flex-shrink-0 rounded-full px-2.5 py-0.5 text-[11px] font-semibold",style:u?{background:"#fff7ed",color:"#c2410c",border:"1px solid #fed7aa"}:{background:"#f0fdf4",color:"#15803d",border:"1px solid #bbf7d0"},children:r}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2",children:[e.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 rounded-lg border border-gray-200 px-3 h-8 text-[12px] font-medium text-gray-600 hover:bg-gray-50 transition-colors",children:[e.jsx(h.Pencil,{size:12}),"Edit"]}),e.jsxs("button",{onClick:f,disabled:u,className:"flex items-center gap-1.5 rounded-lg h-8 px-3 text-[12px] font-medium text-white transition-opacity hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed",style:{background:"#0f1f3d"},children:[e.jsx(h.UserPlus,{size:12}),"Add Candidate"]})]})]})}const dr={incscreen:"IncScreen",incbot:"IncBot",incvid:"IncVid",incfeed:"IncFeed",incserve:"IncServe",incproctor:"IncProctor"},fr={border:"2px solid rgba(19,63,125,0.30)",background:"rgba(19,63,125,0.05)",boxShadow:"none"},gr={border:"1px solid rgba(19,63,125,0.12)",background:"#ffffff",boxShadow:"0 1px 3px 0 rgba(15,23,41,0.05), 0 1px 2px -1px rgba(15,23,41,0.05)"};function tt({type:t="product",product:o,productLabel:n,status:r,details:s,stepLabel:i,onMoveUp:a,onMoveDown:f,onSettings:u,onDelete:c,className:y}){const d=t==="position",k=t==="onboarding",m=r==="Configured"||d||k?fr:gr,v=d?"Position":k?"Onboarding":o?dr[o]:"";return e.jsxs("div",{className:M("flex items-center gap-3.5 px-4 py-3.5 w-full max-w-lg",y),style:{borderRadius:12,border:m.border,background:m.background,boxShadow:m.boxShadow},children:[d||k?e.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{background:d?"#e0e7ff":"#dcfce7"},children:e.jsx(h.Briefcase,{size:17,style:{color:d?"#6366f1":"#16a34a"}})}):o?e.jsx(le,{product:o,size:"md",className:"flex-shrink-0"}):null,e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-[13.5px] font-bold text-gray-900",children:v}),n&&e.jsx("span",{className:"text-[12px] text-gray-400",children:n}),i&&e.jsx("span",{className:"rounded-full px-2 py-0.5 text-[10.5px] font-semibold",style:{background:"#e0f2fe",color:"#0369a1"},children:i}),r&&e.jsxs("span",{className:"flex items-center gap-1 rounded-full px-2 py-0.5 text-[10.5px] font-semibold",style:r==="Configured"?{background:"#f0fdf4",color:"#15803d",border:"1px solid #bbf7d0"}:{background:"#fff7ed",color:"#c2410c",border:"1px solid #fed7aa"},children:[r==="Configured"?e.jsx(h.CheckCircle2,{size:10}):e.jsx(h.AlertCircle,{size:10}),r]})]}),s&&e.jsx("p",{className:"mt-0.5 truncate text-[12px] text-gray-500",children:s})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-0.5",children:[!d&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:a,className:"rounded-md p-1.5 hover:bg-white/70 transition-colors",style:{color:"#0F1729"},"aria-label":"Move up",children:e.jsx(h.ChevronUp,{size:14})}),e.jsx("button",{onClick:f,className:"rounded-md p-1.5 hover:bg-white/70 transition-colors",style:{color:"#0F1729"},"aria-label":"Move down",children:e.jsx(h.ChevronDown,{size:14})})]}),e.jsx("button",{onClick:u,className:"rounded-md p-1.5 hover:bg-white/70 transition-colors",style:{color:"#0F1729"},"aria-label":"Settings",children:e.jsx(h.Settings,{size:14})}),!d&&e.jsx("button",{onClick:c,className:"rounded-md p-1.5 text-gray-400 hover:text-red-500 transition-colors",style:{},onMouseEnter:C=>C.currentTarget.style.background="#fee2e2",onMouseLeave:C=>C.currentTarget.style.background="transparent","aria-label":"Delete",children:e.jsx(h.Trash2,{size:14,color:"#DC2828"})})]})]})}const pr={green:"border-green-300 bg-green-50 text-green-700",yellow:"border-orange-300 bg-orange-50 text-orange-700",red:"border-red-300 bg-red-50 text-red-600"};function rt({type:t,branches:o=[],threshold:n,className:r}){if(t==="simple")return null;const s=t==="manual-review",i=t==="automatic",a=t==="conditional";return e.jsxs("div",{className:M("flex flex-col items-center gap-2",r),children:[e.jsx("div",{className:M("flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium",s?"border-amber-300 bg-amber-50 text-amber-700":"border-teal-300 bg-teal-50 text-teal-700"),children:s?e.jsxs(e.Fragment,{children:[e.jsx(h.UserCheck,{size:11}),"Manual Review"]}):i?e.jsxs(e.Fragment,{children:[e.jsx(h.Zap,{size:11}),"Automatic",n!==void 0?` @ ${n}%`:""]}):e.jsxs(e.Fragment,{children:[e.jsx(h.GitMerge,{size:11}),"Conditional"]})}),a&&o.length>0&&e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:o.map(f=>e.jsx("span",{className:M("rounded-full border px-3 py-1 text-[11px] font-medium",pr[f.color]),children:f.label},f.label))})]})}function be({onClick:t,className:o}){return e.jsx("button",{onClick:t,"aria-label":"Add step",className:M("flex h-7 w-7 items-center justify-center rounded-full border-2 border-dashed border-gray-300 text-gray-400","transition-all hover:border-blue-400 hover:bg-blue-50 hover:text-blue-600 hover:scale-110","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500",o),style:{background:"#F8F9FB"},children:e.jsx(h.Plus,{size:14})})}const xr=[{product:"incscreen",description:"Conversational AI Recruiter"},{product:"incbot",description:"AI Video Interview Software"},{product:"incvid",description:"Video Interview Portal"},{product:"incfeed",description:"Interview Scheduling Software"},{product:"incserve",description:"Interview as a Service"}];function ur(){return e.jsx("div",{className:"grid grid-cols-2 gap-[3px] flex-shrink-0",children:Array.from({length:6}).map((t,o)=>e.jsx("div",{className:"h-[4px] w-[4px] rounded-full bg-gray-300"},o))})}function ot({open:t,onClose:o,onSelectProduct:n}){return t?e.jsxs("aside",{className:"flex w-[220px] flex-shrink-0 flex-col border-l border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-3.5",style:{background:"#133F7D"},children:[e.jsx("h3",{className:"text-[12.5px] font-bold text-white leading-snug",children:"Drag & Drop Products to create Workflow"}),e.jsx("p",{className:"mt-1 text-[11px] text-white/60 leading-snug",children:"Set the conditions to execute further flow"})]}),e.jsx("div",{className:"flex-1 overflow-y-auto bg-[#f5f6f8] p-2.5 flex flex-col gap-2",children:xr.map(({product:r,description:s})=>e.jsxs("button",{draggable:!0,onDragEnd:()=>{n?.(r)},onClick:()=>{n?.(r)},className:"flex w-full items-center gap-2.5 rounded-xl border border-gray-200 bg-white px-2.5 py-2.5 text-left hover:border-blue-300 hover:shadow-sm transition-all cursor-grab active:cursor-grabbing",children:[e.jsx(ur,{}),e.jsx(le,{product:r,size:"sm"}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"text-[12px] font-bold text-gray-900 leading-tight",children:[we(r),":"]}),e.jsx("p",{className:"text-[10.5px] text-gray-500 leading-tight",children:s})]})]},r))})]}):null}const mr={incscreen:"Resume Score Threshold",position:"Resume Score Threshold"};function br(t){return mr[t]??"Pass Threshold"}function nt({product:t,onSave:o,onCancel:n}){const[r,s]=L.useState("Automatic"),[i,a]=L.useState(60),[f,u]=L.useState("Qualified"),c=t==="incscreen";function y(){const d={type:r,...r==="Automatic"&&!c&&{threshold:i},...r==="Automatic"&&c&&{advanceOn:f}};o(d)}return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{background:"rgba(0,0,0,0.35)"},onClick:d=>{d.target===d.currentTarget&&n()},children:e.jsxs("div",{className:"relative w-[560px] rounded-xl bg-white shadow-2xl",style:{border:"1px solid #e2e8f0"},children:[e.jsx("button",{onClick:n,className:"absolute right-3.5 top-3.5 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-colors",children:e.jsx(h.X,{size:16})}),e.jsxs("div",{className:"p-5",children:[e.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Transition after ",we(t)]}),e.jsx("div",{className:"mt-4 grid grid-cols-2 gap-3",children:["Automatic","Manual"].map(d=>{const k=r===d;return e.jsxs("button",{onClick:()=>s(d),className:"flex flex-col items-center gap-1.5 rounded-lg border py-4 transition-all",style:k?{borderColor:"#12b6bc",background:"#f0fdfe",color:"#0e7490"}:{borderColor:"#e2e8f0",background:"#f8fafc",color:"#64748b"},children:[d==="Automatic"?e.jsx(h.Zap,{size:18,strokeWidth:2,style:{color:k?"#12b6bc":"#94a3b8"}}):e.jsx(h.User,{size:18,strokeWidth:2,style:{color:k?"#12b6bc":"#94a3b8"}}),e.jsx("span",{className:"text-[13px] font-semibold",children:d})]},d)})}),e.jsx("div",{className:"mt-5 min-h-[80px]",children:r==="Automatic"?c?e.jsxs("div",{children:[e.jsx("p",{className:"mb-2.5 text-[12.5px] font-medium text-gray-700",children:"Advance candidate if Interview status is:"}),e.jsx("div",{className:"grid grid-cols-3 gap-2.5",children:["Qualified","Disqualified","Both"].map(d=>{const k=f===d;return e.jsx("button",{onClick:()=>u(d),className:"rounded-lg border py-2.5 text-[12.5px] font-medium transition-all",style:k?{borderColor:"#12b6bc",background:"#f0fdfe",color:"#0e7490"}:{borderColor:"#e2e8f0",background:"#f8fafc",color:"#475569"},children:d},d)})}),e.jsx("p",{className:"mt-3 text-[11.5px] text-gray-500",children:"Candidates auto-advance if the above condition is matched; others trigger auto-reject + feedback email."})]}):e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx("p",{className:"text-[12.5px] font-medium text-gray-700",children:br(t)}),e.jsxs("span",{className:"text-[12.5px] font-semibold",style:{color:"#12b6bc"},children:[i,"%"]})]}),e.jsx("input",{type:"range",min:0,max:100,value:i,onChange:d=>a(Number(d.target.value)),className:"w-full accent-teal-500",style:{accentColor:"#12b6bc"}}),e.jsx("p",{className:"mt-3 text-[11.5px] text-gray-500",children:"Candidates auto-advance on pass; below threshold triggers auto-reject + feedback email."})]}):e.jsx("p",{className:"text-[12.5px] text-gray-600 leading-relaxed",children:"How does your team Approve or Reject each candidate at this step? Reviews must be done manually before the candidate moves to the next stage."})}),e.jsxs("div",{className:"mt-6 flex justify-end gap-2.5",children:[e.jsx("button",{onClick:n,className:"rounded-lg border border-gray-200 px-5 py-2 text-[13px] font-medium text-gray-600 hover:bg-gray-50 transition-colors",children:"Cancel"}),e.jsx("button",{onClick:y,className:"rounded-lg px-5 py-2 text-[13px] font-semibold text-white transition-opacity hover:opacity-90",style:{background:"#0f1f3d"},children:"Save"})]})]})]})})}const hr=[{id:"position",type:"position",details:""}];function yr({title:t="Untitled Pipeline",status:o="draft",initialSteps:n=hr,onBack:r,onPublish:s,onSaveDraft:i}){const[a,f]=L.useState(t),[u,c]=L.useState(n),[y,d]=L.useState("designer"),[k,j]=L.useState(!1),[m,v]=L.useState(null);function C(l){c(S=>S.filter(g=>g.id!==l))}function z(l,S){c(g=>{const N=g.findIndex(q=>q.id===l);if(N<0)return g;const E=[...g],V=S==="up"?N-1:N+1;return V<0||V>=E.length?g:([E[N],E[V]]=[E[V],E[N]],E)})}function A(){j(!0)}function W(l){v(l)}function O(l){if(!m)return;const S=l.type==="Automatic"?"automatic":"manual-review",g={id:`${m}-${Date.now()}`,type:"product",product:m,status:"Configuration Pending",transitionCondition:l,connector:{type:S,...l.type==="Automatic"&&l.threshold!==void 0&&{branches:[{label:`โฅ ${l.threshold}%`,color:"green"},{label:`< ${l.threshold}%`,color:"red"}]}}};c(N=>[...N,g]),v(null),j(!1)}function B(){v(null)}return e.jsxs("div",{className:"flex h-full flex-col overflow-hidden bg-gray-50",children:[e.jsxs("div",{className:"flex items-center gap-3 border-b border-gray-200 bg-white px-5 py-3.5",children:[e.jsx("button",{onClick:r,className:"rounded-lg p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-colors","aria-label":"Go back",children:e.jsx(h.ArrowLeft,{size:16})}),e.jsx("input",{value:a,onChange:l=>f(l.target.value),className:"rounded-md border-0 bg-transparent text-[14px] font-bold text-gray-900 focus:outline-none focus:ring-2 focus:ring-blue-400/40 px-2 py-1 max-w-xs"}),e.jsx("span",{className:"rounded-full px-2.5 py-0.5 text-[11px] font-semibold capitalize",style:o==="active"?{background:"#f0fdf4",color:"#15803d",border:"1px solid #bbf7d0"}:{background:"#f1f5f9",color:"#475569",border:"1px solid #e2e8f0"},children:o}),e.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[e.jsxs("div",{className:"flex rounded-lg border border-gray-200 bg-gray-50 p-0.5",children:[e.jsx("button",{onClick:()=>d("designer"),className:`rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${y==="designer"?"text-white shadow-sm":"text-gray-500 hover:text-gray-700"}`,style:y==="designer"?{background:"#0f1f3d"}:{},children:"Designer"}),e.jsxs("button",{onClick:()=>d("run"),className:`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${y==="run"?"text-white shadow-sm":"text-gray-500 hover:text-gray-700"}`,style:y==="run"?{background:"#0f1f3d"}:{},children:[e.jsx(h.Play,{size:11}),"Run"]})]}),e.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 rounded-lg border border-gray-200 px-3.5 h-8 text-[12px] font-medium text-gray-600 hover:bg-gray-50 transition-colors",children:[e.jsx(h.FileText,{size:13}),"Draft"]}),e.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 rounded-lg h-8 px-3.5 text-[12px] font-semibold text-white transition-opacity hover:opacity-90",style:{background:"#0f1f3d"},children:[e.jsx(h.Send,{size:13}),"Publish"]})]})]}),e.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[e.jsx("div",{className:"flex flex-1 overflow-y-auto p-8",style:{backgroundImage:"radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px)",backgroundSize:"20px 20px"},onClick:()=>{m||j(!1)},children:e.jsxs("div",{className:"flex flex-col items-center gap-0 w-full max-w-lg mx-auto",children:[u.map((l,S)=>{const g=S===u.length-1,N=l.connector&&l.connector.type!=="simple";return e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx(tt,{type:l.type,product:l.product,productLabel:l.productLabel,status:l.status,details:l.details,stepLabel:l.stepLabel,onMoveUp:()=>z(l.id,"up"),onMoveDown:()=>z(l.id,"down"),onDelete:()=>C(l.id),onSettings:()=>j(!0)}),!g&&e.jsxs("div",{className:"flex flex-col items-center py-2",children:[e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}}),N&&l.connector?e.jsxs(e.Fragment,{children:[e.jsx(rt,{type:l.connector.type,branches:l.connector.branches,threshold:l.transitionCondition?.threshold}),e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}})]}):null,e.jsx(be,{onClick:A}),e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}})]})]},l.id)}),e.jsxs("div",{className:"flex flex-col items-center pt-2",children:[e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}}),e.jsx(be,{onClick:A})]})]})}),e.jsx(ot,{open:k,onClose:()=>j(!1),onSelectProduct:W})]}),m&&e.jsx(nt,{product:m,onSave:O,onCancel:B})]})}const X="#12b6bc",wr="#f5fbf8",kr="rgba(0,0,0,0.03)",ie="rgba(0,0,0,0.07)",vr=[{label:"My Profile",Icon:h.UserCircle},{label:"Accounts & Billing",Icon:h.CreditCard}];function ue({item:t,active:o,collapsed:n,expanded:r,onNavigate:s,onToggle:i}){const{label:a,href:f,link:u,Icon:c,badge:y,hasChevron:d,expandedContent:k,onClick:j}=t,m=()=>{j?j():u?window.open(u,"_blank","noopener,noreferrer"):d&&k&&f?i?.(f):f&&s?.(f)};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:m,title:n?a:void 0,style:{display:"flex",width:"100%",alignItems:"center",overflow:"hidden",gap:n?0:20,paddingLeft:n?0:15,paddingRight:n?0:10,paddingTop:10,paddingBottom:10,justifyContent:n?"center":void 0,background:o||r?wr:"transparent",borderLeft:o||r?`2px solid ${X}`:"2px solid transparent",borderTop:"none",borderRight:"none",borderBottom:"none",borderRadius:0,cursor:"pointer",outline:"none",transition:"background 0.12s"},onMouseEnter:v=>{!o&&!r&&(v.currentTarget.style.background=kr)},onMouseLeave:v=>{!o&&!r&&(v.currentTarget.style.background="transparent")},children:[e.jsx(c,{size:22,style:{flexShrink:0,color:o||r?X:"#9ca3af",display:"block"}}),!n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{flex:1,textAlign:"left",fontFamily:"'Inter', 'Manrope-Regular', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:o||r?700:500,color:o||r?X:"#000",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:a}),y!==void 0&&e.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:19,minWidth:20,paddingInline:4,borderRadius:10,background:"rgba(18,182,188,0.14)",color:X,fontSize:10,fontWeight:600,flexShrink:0},children:y}),d&&k&&e.jsx(h.ChevronDown,{size:16,style:{flexShrink:0,color:"#9ca3af",transform:r?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}}),d&&!k&&e.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"#9ca3af",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,transform:"rotate(-90deg)"},children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),!n&&r&&k&&e.jsx("div",{style:{background:"rgba(18,182,188,0.02)",borderLeft:`2px solid ${X}`,overflow:"hidden",maxHeight:320,overflowY:"auto"},children:k})]})}function jr({logoSrc:t,user:o={},navItems:n=[],otherItems:r=[],profileItems:s,activeHref:i="/",onNavigate:a,collapsed:f,onToggleCollapse:u,children:c}){const y=s??vr,d=y.some(l=>l.href&&i&&(i===l.href||i.startsWith(l.href+"/"))),[k,j]=L.useState(!1),m=f!==void 0?f:k,v=u?l=>{const S=typeof l=="function"?l(m):l;u(S)}:l=>j(typeof l=="function"?l(k):l),[C,z]=L.useState(d),[A,W]=L.useState(null);L.useEffect(()=>{d&&z(!0)},[d]);const O=o.name?o.name.split(" ").map(l=>l[0]).join("").slice(0,2).toUpperCase():"?",B=l=>{W(S=>S===l?null:l)};return e.jsxs("div",{style:{display:"flex",height:"100%"},children:[e.jsxs("aside",{style:{width:m?56:250,flexShrink:0,display:"flex",flexDirection:"column",height:"100%",background:"#fff",borderRight:`1px solid ${ie}`,transition:"width 0.2s ease",overflow:"hidden",zIndex:100},children:[e.jsxs("div",{style:{height:52,flexShrink:0,display:"flex",alignItems:"center",justifyContent:m?"center":"space-between",padding:10,borderBottom:`1px solid ${ie}`},children:[!m&&t&&e.jsx("img",{src:t,alt:"Logo",style:{height:36,width:"auto",objectFit:"contain"}}),e.jsx("button",{onClick:()=>{v(l=>!l),W(null)},style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:6,border:"none",background:"transparent",color:"#9ca3af",cursor:"pointer",flexShrink:0,outline:"none"},onMouseEnter:l=>l.currentTarget.style.background="#f3f4f6",onMouseLeave:l=>l.currentTarget.style.background="transparent","aria-label":"Toggle sidebar",children:e.jsx(h.Menu,{size:16})})]}),e.jsxs("div",{style:{flexShrink:0},children:[e.jsxs("button",{onClick:()=>{m?(v(!1),z(!0)):z(l=>!l)},style:{display:"flex",width:"100%",alignItems:"center",gap:12,padding:12,justifyContent:m?"center":void 0,background:d?"#f5fbf8":"rgba(18,182,188,0.05)",borderLeft:d?"2px solid #12b6bc":"2px solid transparent",borderTop:"none",borderRight:"none",borderBottom:"none",cursor:"pointer",outline:"none"},children:[o.avatarUrl?e.jsx("img",{src:o.avatarUrl,alt:o.name??"User",style:{width:32,height:32,borderRadius:"50%",objectFit:"cover",flexShrink:0,outline:d?"2px solid #12b6bc":"none",outlineOffset:2}}):e.jsx("div",{style:{width:32,height:32,borderRadius:"50%",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,outline:d?"2px solid #12b6bc":"none",outlineOffset:2,color:"#fff",background:"linear-gradient(135deg, #3b82f6 0%, #12b6bc 100%)"},children:O}),!m&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{flex:1,minWidth:0,textAlign:"left"},children:[e.jsx("p",{style:{margin:0,fontFamily:"'Plus Jakarta Sans', 'Inter', sans-serif",fontSize:14,fontWeight:500,color:"#000",lineHeight:1.45,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.name??"User"}),e.jsx("p",{style:{margin:0,fontFamily:"'Plus Jakarta Sans', 'Inter', sans-serif",fontSize:12,fontWeight:400,color:"#3f3f3f",lineHeight:1.5,marginTop:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.role??""})]}),e.jsx(h.ChevronsUpDown,{size:16,style:{color:"#9ca3af",flexShrink:0}})]})]}),(C||m&&d)&&e.jsx(e.Fragment,{children:y.map(l=>e.jsx(ue,{item:{...l,onClick:l.onClick?()=>{m||z(!1),l.onClick?.()}:l.link?()=>{m||z(!1),window.open(l.link,"_blank","noopener,noreferrer")}:void 0},active:!!(l.href&&i&&(i===l.href||i.startsWith(l.href+"/"))),collapsed:m,onNavigate:a,onToggle:B},l.label))})]}),e.jsxs("nav",{style:{flex:1,overflowY:"auto"},children:[n.length>0&&!m&&e.jsx("div",{style:{paddingLeft:20,paddingRight:10,paddingTop:10,paddingBottom:6,fontSize:11,fontWeight:600,letterSpacing:"0.06em",color:"rgba(0,0,0,0.45)",fontFamily:"'Inter', sans-serif"},children:"MAIN MENU"}),n.map(l=>e.jsx(ue,{item:l,active:i===l.href,expanded:A===l.href,collapsed:m,onNavigate:a,onToggle:B},l.href??l.label))]}),r.length>0&&e.jsxs("div",{style:{flexShrink:0},children:[!m&&e.jsx("div",{style:{paddingLeft:20,paddingRight:10,paddingTop:8,paddingBottom:6,fontSize:11,fontWeight:600,letterSpacing:"0.06em",color:"rgba(0,0,0,0.45)",fontFamily:"'Inter', sans-serif",borderTop:`1px solid ${ie}`},children:"OTHER"}),m&&e.jsx("div",{style:{height:8,borderTop:`1px solid ${ie}`}}),r.map(l=>e.jsx(ue,{item:l,active:i===l.href,collapsed:m,onNavigate:a,onToggle:B},l.href??l.label)),e.jsx("div",{style:{height:16}})]})]}),e.jsx("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:c})]})}const Nr="rgba(0,0,0,0.07)",Be="#12b6bc";function Cr({title:t="",notificationCount:o=0,onBellClick:n,bellRef:r,notificationDropdown:s,leftButton:i,navLinks:a=[],rightExtra:f}){const u=a.length>0;return e.jsxs("header",{style:{height:52,flexShrink:0,display:"flex",alignItems:"center",background:"#fff",borderBottom:`1px solid ${Nr}`,padding:"0 12px",zIndex:99,gap:16},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,flexShrink:0},children:[i,!u&&e.jsx("h2",{style:{margin:0,fontSize:15,fontWeight:700,color:"#111118",fontFamily:"'Inter', 'Manrope-Regular', sans-serif",whiteSpace:"nowrap"},children:t})]}),u&&e.jsxs("nav",{style:{display:"flex",alignItems:"stretch",gap:0,height:"100%",flex:1,justifyContent:"flex-end",marginRight:8},children:[f&&e.jsx("div",{style:{display:"flex",alignItems:"center",paddingRight:8},children:f}),a.map((c,y)=>e.jsx("button",{onClick:c.onClick,style:{position:"relative",height:"100%",padding:"0 16px",background:"none",border:"none",borderBottom:c.active?`2px solid ${Be}`:"2px solid transparent",cursor:"pointer",fontFamily:"'Inter','Manrope-Regular',sans-serif",fontSize:13,fontWeight:c.active?700:500,color:c.active?Be:"#6b7280",whiteSpace:"nowrap",outline:"none",transition:"color 0.15s, border-color 0.15s"},onMouseEnter:d=>{c.active||(d.currentTarget.style.color="#374151")},onMouseLeave:d=>{c.active||(d.currentTarget.style.color="#6b7280")},children:c.label},y))]}),!u&&f&&e.jsx("div",{style:{flexShrink:0,marginLeft:"auto"},children:f}),e.jsxs("div",{ref:r,style:{position:"relative",flexShrink:0,marginLeft:u||f?0:"auto"},children:[e.jsxs("button",{onClick:n,style:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:8,border:"none",background:"transparent",color:"#9ca3af",cursor:"pointer",position:"relative",outline:"none"},onMouseEnter:c=>{c.currentTarget.style.background="#f3f4f6",c.currentTarget.style.color="#6b7280"},onMouseLeave:c=>{c.currentTarget.style.background="transparent",c.currentTarget.style.color="#9ca3af"},"aria-label":"Notifications",children:[e.jsx(h.Bell,{size:16,strokeWidth:1.75}),o>0&&e.jsx("span",{style:{position:"absolute",top:6,right:6,width:7,height:7,borderRadius:"50%",background:"#3b82f6",border:"1.5px solid #fff"}})]}),s]})]})}exports.AIBanner=ar;exports.AddStepButton=be;exports.AppShell=or;exports.ConditionalBranch=rt;exports.InCruiterSidebar=jr;exports.InCruiterTopBar=Cr;exports.PageHeader=tr;exports.PipelineNode=tt;exports.ProductDragPanel=ot;exports.ProductIcon=le;exports.QuickActionCard=sr;exports.SearchBar=er;exports.Sidebar=Ke;exports.StatusBadge=Zt;exports.SubscriptionCard=ir;exports.TopBar=et;exports.TransitionConditionDialog=nt;exports.WelcomeBanner=nr;exports.WorkflowDesigner=yr;exports.WorkflowListItem=cr;exports.WorkflowTemplateCard=lr;exports.getProductLabel=we;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|