@contact_incruiter/fcc 1.0.8 → 1.1.0
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1393 -1193
- package/dist/index.js.map +1 -1
- package/dist/shared/InCruiterSidebar.d.ts +9 -3
- package/dist/shared/InCruiterTopBar.d.ts +27 -1
- package/dist/shared/UserAvatar.d.ts +9 -0
- package/package.json +1 -1
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"),k=require("lucide-react"),R=require("react");function $e(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=$e(t[o]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ft(){for(var t,o,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(o=$e(t))&&(r&&(r+=" "),r+=o);return r}const pt=(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},gt=(t,o)=>({classGroupId:t,validator:o}),Ue=(t=new Map,o=null,n)=>({nextPart:t,validators:o,classGroupId:n}),se="-",ze=[],xt="arbitrary..",ut=t=>{const o=mt(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return bt(a);const d=a.split(se),x=d[0]===""&&d.length>1?1:0;return _e(d,x,o)},getConflictingClassGroupIds:(a,d)=>{if(d){const x=r[a],l=n[a];return x?l?pt(l,x):x:l||ze}return n[a]||ze}}},_e=(t,o,n)=>{if(t.length-o===0)return n.classGroupId;const s=t[o],i=n.nextPart.get(s);if(i){const l=_e(t,o+1,i);if(l)return l}const a=n.validators;if(a===null)return;const d=o===0?t.join(se):t.slice(o).join(se),x=a.length;for(let l=0;l<x;l++){const y=a[l];if(y.validator(d))return y.classGroupId}},bt=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?xt+r:void 0})(),mt=t=>{const{theme:o,classGroups:n}=t;return ht(n,o)},ht=(t,o)=>{const n=Ue();for(const r in t){const s=t[r];be(s,n,r,o)}return n},be=(t,o,n,r)=>{const s=t.length;for(let i=0;i<s;i++){const a=t[i];yt(a,o,n,r)}},yt=(t,o,n,r)=>{if(typeof t=="string"){wt(t,o,n);return}if(typeof t=="function"){kt(t,o,n,r);return}vt(t,o,n,r)},wt=(t,o,n)=>{const r=t===""?o:Ve(o,t);r.classGroupId=n},kt=(t,o,n,r)=>{if(jt(t)){be(t(r),o,n,r);return}o.validators===null&&(o.validators=[]),o.validators.push(gt(n,t))},vt=(t,o,n,r)=>{const s=Object.entries(t),i=s.length;for(let a=0;a<i;a++){const[d,x]=s[a];be(x,Ve(o,d),n,r)}},Ve=(t,o)=>{let n=t;const r=o.split(se),s=r.length;for(let i=0;i<s;i++){const a=r[i];let d=n.nextPart.get(a);d||(d=Ue(),n.nextPart.set(a,d)),n=d}return n},jt=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Ct=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)}}},xe="!",Te=":",Nt=[],Ie=(t,o,n,r,s)=>({modifiers:t,hasImportantModifier:o,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),St=t=>{const{prefix:o,experimentalParseClassName:n}=t;let r=s=>{const i=[];let a=0,d=0,x=0,l;const y=s.length;for(let w=0;w<y;w++){const N=s[w];if(a===0&&d===0){if(N===Te){i.push(s.slice(x,w)),x=w+1;continue}if(N==="/"){l=w;continue}}N==="["?a++:N==="]"?a--:N==="("?d++:N===")"&&d--}const c=i.length===0?s:s.slice(x);let b=c,C=!1;c.endsWith(xe)?(b=c.slice(0,-1),C=!0):c.startsWith(xe)&&(b=c.slice(1),C=!0);const m=l&&l>x?l-x:void 0;return Ie(i,C,b,m)};if(o){const s=o+Te,i=r;r=a=>a.startsWith(s)?i(a.slice(s.length)):Ie(Nt,!1,a,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},zt=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],d=a[0]==="[",x=o.has(a);d||x?(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}},Tt=t=>({cache:Ct(t.cacheSize),parseClassName:St(t),sortModifiers:zt(t),postfixLookupClassGroupIds:It(t),...ut(t)}),It=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},At=/\s+/,Rt=(t,o)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i,postfixLookupClassGroupIds:a}=o,d=[],x=t.trim().split(At);let l="";for(let y=x.length-1;y>=0;y-=1){const c=x[y],{isExternal:b,modifiers:C,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:N}=n(c);if(b){l=c+(l.length>0?" "+l:l);continue}let I=!!N,S;if(I){const u=w.substring(0,N);S=r(u);const g=S&&a[S]?r(w):void 0;g&&g!==S&&(S=g,I=!1)}else S=r(w);if(!S){if(!I){l=c+(l.length>0?" "+l:l);continue}if(S=r(w),!S){l=c+(l.length>0?" "+l:l);continue}I=!1}const W=C.length===0?"":C.length===1?C[0]:i(C).join(":"),z=m?W+xe:W,v=z+S;if(d.indexOf(v)>-1)continue;d.push(v);const P=s(S,I);for(let u=0;u<P.length;++u){const g=P[u];d.push(z+g)}l=c+(l.length>0?" "+l:l)}return l},Pt=(...t)=>{let o=0,n,r,s="";for(;o<t.length;)(n=t[o++])&&(r=He(n))&&(s&&(s+=" "),s+=r);return s},He=t=>{if(typeof t=="string")return t;let o,n="";for(let r=0;r<t.length;r++)t[r]&&(o=He(t[r]))&&(n&&(n+=" "),n+=o);return n},Mt=(t,...o)=>{let n,r,s,i;const a=x=>{const l=o.reduce((y,c)=>c(y),t());return n=Tt(l),r=n.cache.get,s=n.cache.set,i=d,d(x)},d=x=>{const l=r(x);if(l)return l;const y=Rt(x,n);return s(x,y),y};return i=a,(...x)=>i(Pt(...x))},Lt=[],T=t=>{const o=n=>n[t]||Lt;return o.isThemeGetter=!0,o},qe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ye=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Bt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ft=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wt=/\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$/,Et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ot=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=t=>Bt.test(t),j=t=>!!t&&!Number.isNaN(Number(t)),O=t=>!!t&&Number.isInteger(Number(t)),pe=t=>t.endsWith("%")&&j(t.slice(0,-1)),D=t=>Ft.test(t),Qe=()=>!0,Gt=t=>Wt.test(t)&&!Et.test(t),me=()=>!1,$t=t=>Ot.test(t),Ut=t=>Dt.test(t),_t=t=>!f(t)&&!p(t),Vt=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)),Ht=t=>U(t,Je,me),f=t=>qe.test(t),V=t=>U(t,Ke,Gt),Ae=t=>U(t,er,j),qt=t=>U(t,tt,Qe),Yt=t=>U(t,et,me),Re=t=>U(t,Xe,me),Qt=t=>U(t,Ze,Ut),ee=t=>U(t,rt,$t),p=t=>Ye.test(t),Y=t=>H(t,Ke),Xt=t=>H(t,et),Pe=t=>H(t,Xe),Zt=t=>H(t,Je),Jt=t=>H(t,Ze),te=t=>H(t,rt,!0),Kt=t=>H(t,tt,!0),U=(t,o,n)=>{const r=qe.exec(t);return r?r[1]?o(r[1]):n(r[2]):!1},H=(t,o,n=!1)=>{const r=Ye.exec(t);return r?r[1]?o(r[1]):n:!1},Xe=t=>t==="position"||t==="percentage",Ze=t=>t==="image"||t==="url",Je=t=>t==="length"||t==="size"||t==="bg-size",Ke=t=>t==="length",er=t=>t==="number",et=t=>t==="family-name",tt=t=>t==="number"||t==="weight",rt=t=>t==="shadow",tr=()=>{const t=T("color"),o=T("font"),n=T("text"),r=T("font-weight"),s=T("tracking"),i=T("leading"),a=T("breakpoint"),d=T("container"),x=T("spacing"),l=T("radius"),y=T("shadow"),c=T("inset-shadow"),b=T("text-shadow"),C=T("drop-shadow"),m=T("blur"),w=T("perspective"),N=T("aspect"),I=T("ease"),S=T("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...z(),p,f],P=()=>["auto","hidden","clip","visible","scroll"],u=()=>["auto","contain","none"],g=()=>[p,f,x],B=()=>[G,"full","auto",...g()],ye=()=>[O,"none","subgrid",p,f],we=()=>["auto",{span:["full",O,p,f]},O,p,f],Q=()=>[O,"auto",p,f],ke=()=>["auto","min","max","fr",p,f],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...g()],_=()=>[G,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],le=()=>[G,"screen","full","dvw","lvw","svw","min","max","fit",...g()],ce=()=>[G,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],h=()=>[t,p,f],ve=()=>[...z(),Pe,Re,{position:[p,f]}],je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",Zt,Ht,{size:[p,f]}],de=()=>[pe,Y,V],M=()=>["","none","full",l,p,f],L=()=>["",j,Y,V],X=()=>["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"],A=()=>[j,pe,Pe,Re],Se=()=>["","none",m,p,f],Z=()=>["none",j,p,f],J=()=>["none",j,p,f],fe=()=>[j,p,f],K=()=>[G,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[Qe],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[_t],"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",j],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",G,f,p,N]}],container:["container"],"container-type":[{"@container":["","normal","size",p,f]}],"container-named":[Vt],columns:[{columns:[j,f,p,d]}],"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:v()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:u()}],"overscroll-x":[{"overscroll-x":u()}],"overscroll-y":[{"overscroll-y":u()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",p,f]}],basis:[{basis:[G,"full","auto",d,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,G,"auto","initial","none",f]}],grow:[{grow:["",j,p,f]}],shrink:[{shrink:["",j,p,f]}],order:[{order:[O,"first","last","none",p,f]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:we()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:we()}],"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:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],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:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"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",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[d,"screen",..._()]}],"min-w":[{"min-w":[d,"screen","none",..._()]}],"max-w":[{"max-w":[d,"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,Y,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Kt,qt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pe,f]}],"font-family":[{font:[Xt,Yt,o]}],"font-features":[{"font-features":[f]}],"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,p,f]}],"line-clamp":[{"line-clamp":[j,"none",p,Ae]}],leading:[{leading:[i,...g()]}],"list-image":[{"list-image":["none",p,f]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",p,f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",p,V]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[j,"auto",p,f]}],"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:[O,p,f]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p,f]}],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",p,f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:je()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,p,f],radial:["",p,f],conic:[O,p,f]},Jt,Qt]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],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:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,p,f]}],"outline-w":[{outline:["",j,Y,V]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",y,te,ee]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",c,te,ee]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[j,V]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",b,te,ee]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[j,p,f]}],"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":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[p,f]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"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:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",p,f]}],filter:[{filter:["","none",p,f]}],blur:[{blur:Se()}],brightness:[{brightness:[j,p,f]}],contrast:[{contrast:[j,p,f]}],"drop-shadow":[{"drop-shadow":["","none",C,te,ee]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",j,p,f]}],"hue-rotate":[{"hue-rotate":[j,p,f]}],invert:[{invert:["",j,p,f]}],saturate:[{saturate:[j,p,f]}],sepia:[{sepia:["",j,p,f]}],"backdrop-filter":[{"backdrop-filter":["","none",p,f]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[j,p,f]}],"backdrop-contrast":[{"backdrop-contrast":[j,p,f]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,p,f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,p,f]}],"backdrop-invert":[{"backdrop-invert":["",j,p,f]}],"backdrop-opacity":[{"backdrop-opacity":[j,p,f]}],"backdrop-saturate":[{"backdrop-saturate":[j,p,f]}],"backdrop-sepia":[{"backdrop-sepia":["",j,p,f]}],"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",p,f]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",p,f]}],ease:[{ease:["linear","initial",I,p,f]}],delay:[{delay:[j,p,f]}],animate:[{animate:["none",S,p,f]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,p,f]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[p,f,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],zoom:[{zoom:[O,p,f]}],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"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",p,f]}],"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":h()}],"scrollbar-track-color":[{"scrollbar-track":h()}],"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",p,f]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[j,Y,V,Ae]}],stroke:[{stroke:["none",...h()]}],"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"]}},rr=Mt(tr);function F(...t){return rr(ft(t))}const or={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",Paused:"bg-yellow-100 text-yellow-700",Stopped:"bg-red-100 text-red-600",Configured:"","Configuration Pending":""},nr={Configured:{background:"#21C45D",color:"#fff",border:"none"},"Configuration Pending":{background:"#DC2828",color:"#fff",border:"none"}};function sr({status:t,className:o,dot:n=!1}){const r=nr[t],s=t==="Configured"||t==="Configuration Pending";return e.jsxs("span",{className:F("inline-flex items-center gap-1 rounded-full",s?"px-[10px] py-[2px] text-[10px] font-semibold leading-[15px]":"px-2 py-0.5 text-xs font-medium",or[t]??"bg-gray-100 text-gray-600",o),style:r,children:[n&&!s&&e.jsx("span",{className:F("h-1.5 w-1.5 rounded-full",{"bg-green-500":t==="Active","bg-orange-500":t==="Draft","bg-red-500":t==="Stopped"})}),t]})}const ot={incscreen:{label:"IncScreen",Icon:k.Phone,gradient:"linear-gradient(135deg, #0d9488 0%, #14b8a6 100%)"},incbot:{label:"IncBot",Icon:k.Bot,gradient:"linear-gradient(135deg, #2563eb 0%, #3b82f6 100%)"},incvid:{label:"IncVid",Icon:k.Video,gradient:"linear-gradient(135deg, #4f46e5 0%, #6366f1 100%)"},incfeed:{label:"IncFeed",Icon:k.Calendar,gradient:"linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%)"},incserve:{label:"IncServe",Icon:k.GraduationCap,gradient:"linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%)"},incproctor:{label:"IncProctor",Icon:k.Shield,gradient:"linear-gradient(135deg, #475569 0%, #64748b 100%)"}},ir={sm:{box:28,icon:13,radius:7},md:{box:36,icon:17,radius:9},lg:{box:48,icon:22,radius:12}};function ie({product:t,size:o="md",className:n}){const r=ot[t],{box:s,icon:i,radius:a}=ir[o],{Icon:d,gradient:x}=r;return e.jsx("span",{className:F("flex flex-shrink-0 items-center justify-center",n),style:{width:s,height:s,borderRadius:a,background:x},children:e.jsx(d,{size:i,color:"#fff"})})}function he(t){return ot[t]?.label??t}function ar({placeholder:t="Search...",shortcut:o="⌘K",className:n,onSearch:r}){return e.jsxs("div",{className:F("relative flex items-center",n),children:[e.jsx(k.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:F("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 lr({title:t,description:o,breadcrumb:n,actions:r,className:s}){return e.jsxs("div",{className:F("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 re="#12b6bc",cr="#f5fbf8",nt="rgba(0,0,0,0.03)",oe="rgba(0,0,0,0.07)";function Me({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?cr:"transparent",borderLeft:o?`2px solid ${re}`:"2px solid transparent",borderRadius:0},onMouseEnter:s=>{o||(s.currentTarget.style.background=nt)},onMouseLeave:s=>{o||(s.currentTarget.style.background="transparent")},children:[e.jsx(t.Icon,{size:22,style:{flexShrink:0,color:o?re:"#9ca3af",display:"block"}}),!n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-1 text-left",style:{fontFamily:"'Manrope', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:o?700:500,color:o?re:"#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:re,fontSize:10,fontWeight:600,flexShrink:0},children:t.badge})]})]})}function st({user:t,logoSrc:o,logoAlt:n="Logo",navItems:r=[],otherItems:s=[],activeHref:i="/",onNavigate:a,onMyProfile:d,onAccountsBilling:x}){const[l,y]=R.useState(!1),[c,b]=R.useState(!1),C=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:c?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:c?"center":"space-between"},children:[!c&&o&&e.jsx("img",{src:o,alt:n,style:{height:36,width:"auto",objectFit:"contain"}}),e.jsx("button",{onClick:()=>{b(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(k.Menu,{size:16})})]}),e.jsxs("div",{className:"flex-shrink-0",children:[e.jsxs("button",{onClick:()=>!c&&y(m=>!m),className:"flex w-full items-center transition-colors",style:{gap:12,padding:12,background:"rgba(18,182,188,0.05)",justifyContent:c?"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:C}),!c&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[e.jsx("p",{style:{fontFamily:"'Manrope', 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:"'Manrope', sans-serif",fontSize:12,fontWeight:400,color:"#3f3f3f",lineHeight:"1.5",marginTop:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.role})]}),e.jsx(k.ChevronsUpDown,{size:16,style:{color:"#9ca3af",flexShrink:0}})]})]}),l&&e.jsx(e.Fragment,{children:[{label:"My Profile",Icon:k.UserCircle,action:d},{label:"Accounts & Billing",Icon:k.CreditCard,action:x}].map(({label:m,Icon:w,action:N})=>e.jsxs("button",{onClick:N,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:I=>{I.currentTarget.style.background=nt},onMouseLeave:I=>{I.currentTarget.style.background="transparent"},children:[e.jsx(w,{size:22,style:{color:"#878787",flexShrink:0}}),e.jsx("span",{style:{fontFamily:"'Manrope', 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&&!c&&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:"'Manrope', sans-serif"},children:"MAIN MENU"}),r.map(m=>e.jsx(Me,{item:m,active:i===m.href,collapsed:c,onNavigate:a},m.href))]}),s.length>0&&e.jsxs("div",{className:"flex-shrink-0",children:[!c&&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:"'Manrope', sans-serif",borderTop:`1px solid ${oe}`},children:"OTHER"}),c&&e.jsx("div",{style:{height:8,borderTop:`1px solid ${oe}`}}),s.map(m=>e.jsx(Me,{item:m,active:i===m.href,collapsed:c,onNavigate:a},m.href)),e.jsx("div",{style:{height:16}})]})]})}function it({title:t,breadcrumb:o,actions:n,notificationCount:r=0,onBellClick:s,className:i}){return e.jsxs("header",{className:F("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(k.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 dr({user:t,logoSrc:o,logoAlt:n,navItems:r,otherItems:s,activeHref:i,topBarTitle:a="",topBarBreadcrumb:d,topBarActions:x,notificationCount:l,onNavigate:y,onMyProfile:c,onAccountsBilling:b,onBellClick:C,children:m,className:w}){return e.jsxs("div",{className:"flex h-screen overflow-hidden bg-gray-50",children:[e.jsx(st,{user:t,logoSrc:o,logoAlt:n,navItems:r,otherItems:s,activeHref:i,onNavigate:y,onMyProfile:c,onAccountsBilling:b}),e.jsxs("div",{className:"flex flex-1 min-w-0 flex-col overflow-hidden",children:[e.jsx(it,{title:a,breadcrumb:d,actions:x,notificationCount:l,onBellClick:C}),e.jsx("main",{className:F("flex-1 overflow-y-auto",w),style:{margin:12,borderRadius:6,border:"1px solid #E5E7EB",background:"#fff"},children:m})]})]})}function fr({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 pr({icon:t,iconBg:o="#eff6ff",title:n,subtitle:r,onClick:s,className:i}){return e.jsxs("button",{onClick:s,className:F("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 gr({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(ie,{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 xr({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 Le={Popular:"#2563eb",Fast:"#d97706",Premium:"#7c3aed",Complete:"#c2410c",AI:"#0d9488",Lean:"#a16207"};function ur({title:t,description:o,badge:n,steps:r,onUseTemplate:s}){const i=Le[n]??Le.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(k.Workflow,{size:22,color:"#10b981"})}),e.jsx("span",{style:{fontFamily:"'Manrope', sans-serif",fontSize:13,fontWeight:600,color:i},children:n})]}),e.jsx("h3",{style:{fontFamily:"'Manrope', sans-serif",fontSize:16,fontWeight:700,color:"#111118",marginBottom:8},children:t}),e.jsx("p",{style:{fontFamily:"'Manrope', 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,d)=>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:"'Manrope', sans-serif",fontWeight:500},children:a}),d<r.length-1&&e.jsx(k.ArrowRight,{size:9,style:{color:"#cbd5e1",flexShrink:0}})]},a)),e.jsx("button",{onClick:s,style:{fontFamily:"'Manrope', 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"})]})]})}const Be={Active:{bg:"#f0fdf4",color:"#15803d",border:"#bbf7d0"},Paused:{bg:"#fefce8",color:"#a16207",border:"#fde68a"},Stopped:{bg:"#fef2f2",color:"#b91c1c",border:"#fecaca"},Draft:{bg:"#fff7ed",color:"#c2410c",border:"#fed7aa"}},Fe={Active:e.jsx(k.Play,{size:15,fill:"#16a34a",style:{color:"#16a34a"}}),Paused:e.jsx(k.Pause,{size:15,fill:"#ca8a04",style:{color:"#ca8a04"}}),Stopped:e.jsx(k.Square,{size:15,fill:"#dc2626",style:{color:"#dc2626"}}),Draft:e.jsx(k.FileText,{size:15,style:{color:"#ea580c"}})},We={Active:"#f0fdf4",Paused:"#fefce8",Stopped:"#fef2f2",Draft:"#fff7ed"};function br({title:t,steps:o,createdAt:n,status:r,candidates:s,hired:i,onEdit:a,onAddCandidate:d,onReplicate:x,onPause:l,onResume:y,onStop:c,onDelete:b}){const[C,m]=R.useState(!1),w=R.useRef(null);R.useEffect(()=>{function z(v){w.current&&!w.current.contains(v.target)&&m(!1)}return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[]);const N=Be[r]??Be.Draft,I=Fe[r]??Fe.Draft,S=We[r]??We.Draft,W=r==="Active";return e.jsxs("div",{className:"flex items-center gap-4 rounded-xl border border-[rgba(0,0,0,0.06)] bg-white px-5 py-4 transition-colors hover:border-gray-200",children:[e.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full",style:{background:S},children:I}),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((z,v)=>e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[12px] text-gray-500",children:z}),v<o.length-1&&e.jsx(k.ArrowRight,{size:9,className:"text-gray-300"})]},z)),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:{background:N.bg,color:N.color,border:`1px solid ${N.border}`},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-[#e5e7eb] px-3 h-[28px] text-[12px] font-medium text-gray-600 hover:bg-gray-50 transition-colors",children:[e.jsx(k.Pencil,{size:11}),"Edit"]}),e.jsxs("button",{onClick:d,disabled:!W,className:"flex items-center gap-1.5 rounded-lg h-[28px] px-3 text-[12px] font-medium text-white transition-opacity hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed",style:{background:"#133F7D"},children:[e.jsx(k.UserPlus,{size:11}),"Add Candidate"]}),e.jsxs("div",{ref:w,className:"relative",children:[e.jsx("button",{onClick:()=>m(z=>!z),className:"flex h-[28px] w-[28px] items-center justify-center rounded-lg border border-[#e5e7eb] text-gray-400 hover:bg-gray-50 transition-colors",children:e.jsx(k.MoreVertical,{size:14})}),C&&e.jsxs("div",{className:"absolute right-0 top-full mt-1 z-50 w-44 rounded-xl border border-gray-200 bg-white shadow-lg overflow-hidden",children:[e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",onClick:()=>{m(!1),x?.()},children:[e.jsx(k.Copy,{size:13,className:"text-gray-400"}),"Replicate"]}),r==="Paused"?e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",onClick:()=>{m(!1),y?.()},children:[e.jsx(k.Play,{size:13,className:"text-gray-400"}),"Resume Workflow"]}):r==="Active"?e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",onClick:()=>{m(!1),l?.()},children:[e.jsx(k.Pause,{size:13,className:"text-gray-400"}),"Pause Workflow"]}):null,r!=="Stopped"&&e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",onClick:()=>{m(!1),c?.()},children:[e.jsx(k.Square,{size:13,className:"text-gray-400"}),"Stop Workflow"]}),e.jsx("div",{className:"h-px bg-gray-100"}),e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-red-500 hover:bg-red-50 transition-colors",onClick:()=>{m(!1),b?.()},children:[e.jsx(k.FileText,{size:13,className:"text-red-400"}),"Delete"]})]})]})]})]})}const Ee={incscreen:"IncScreen",incbot:"IncBot",incvid:"IncVid",incfeed:"IncFeed",incserve:"IncServe",incproctor:"IncProctor"},mr={border:"2px solid rgba(19,63,125,0.30)",background:"rgba(19,63,125,0.05)",boxShadow:"none"},hr={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 yr(t,o,n,r,s){if(n==="Configuration Pending")return"Configuration Pending...";if(t==="onboarding")return"Auto-create entry in onboarding dashboard";if(!r)return s??"";if(t==="position"){const i=[];return r.title&&i.push(r.title),r.domain&&i.push(r.domain),r.expRange&&i.push(r.expRange),r.positionCount&&i.push(`${r.positionCount} pos`),r.skillCount&&i.push(`${r.skillCount} skills`),i.join(" · ")}if(o==="incscreen"){const i=[];return r.interviewType&&i.push(r.interviewType),r.questionSetId&&i.push(`#${r.questionSetId}`),i.join(" · ")||(s??"")}if(o==="incbot"){const i=[];return r.interviewType&&i.push(r.interviewType),r.questionSetId&&i.push(`#${r.questionSetId}`),r.linkExpiry&&i.push(r.linkExpiry),i.join(" · ")||(s??"")}if(o==="incfeed"||o==="incvid"||o==="incserve"){const i=[];return r.panelistCount&&i.push(`${r.panelistCount} panelists`),r.schedulingType&&i.push(r.schedulingType),i.join(" · ")||(s??"")}return s??""}function at({type:t="product",product:o,productTag:n,status:r,config:s,details:i,iconUrl:a,onSettings:d,onDelete:x,className:l}){const y=t==="position",c=t==="onboarding",C=r==="Configured"||y||c?mr:hr,m=y?"Position":c?"Onboarding":o&&Object.prototype.hasOwnProperty.call(Ee,o)?Ee[o]:"",w=yr(t,o,r,s,i);return e.jsxs("div",{className:F("flex items-center gap-3.5 px-4 py-3.5 w-full max-w-lg",l),style:{borderRadius:12,border:C.border,background:C.background,boxShadow:C.boxShadow},children:[y||c?e.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{background:y?"#e0e7ff":"#dcfce7"},children:e.jsx(k.Briefcase,{size:17,style:{color:y?"#6366f1":"#16a34a"}})}):o?a?e.jsx("img",{src:a,alt:o,className:"flex-shrink-0 rounded-md object-cover",style:{width:36,height:36}}):e.jsx(ie,{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:m}),n&&e.jsx("span",{style:{display:"inline-flex",alignItems:"center",padding:"2px 10px",borderRadius:9999,border:"1px solid #E5E7EB",color:"#0F1729",fontSize:10,fontWeight:600,lineHeight:"15px",whiteSpace:"nowrap"},children:n}),r&&e.jsx("span",{style:{display:"inline-flex",alignItems:"center",borderRadius:9999,border:"1px solid transparent",background:r==="Configured"?"#21C45D":"#DC2828",padding:"2px 10px",color:"#FFF",fontSize:10,fontWeight:600,lineHeight:"15px",whiteSpace:"nowrap"},children:r})]}),w&&e.jsx("p",{className:"mt-0.5 truncate text-[12px]",style:{color:"#6b7280"},children:w})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-0.5",children:[e.jsx("button",{onClick:d,className:"rounded-md p-1.5 hover:bg-white/70 transition-colors",style:{color:"#0F1729"},"aria-label":"Settings",children:e.jsx(k.Settings,{size:14})}),!y&&e.jsx("button",{onClick:x,className:"rounded-md p-1.5 text-gray-400 hover:text-red-500 transition-colors",onMouseEnter:N=>{N.currentTarget.style.background="#fee2e2"},onMouseLeave:N=>{N.currentTarget.style.background="transparent"},"aria-label":"Delete",children:e.jsx(k.Trash2,{size:14,color:"#DC2828"})})]})]})}const wr={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 lt({type:t,branches:o=[],threshold:n,className:r,onClick:s}){const i=t==="manual-review",a=t==="automatic",d=t==="conditional",x=i?e.jsxs(e.Fragment,{children:[e.jsx(k.Hand,{size:12}),"Manual Review"]}):a?e.jsxs(e.Fragment,{children:[e.jsx(k.Zap,{size:12}),`Automatic${n!==void 0?` @ ${n}%`:""}`]}):d?e.jsxs(e.Fragment,{children:[e.jsx(k.GitMerge,{size:12}),"Conditional"]}):e.jsxs(e.Fragment,{children:[e.jsx(k.Settings2,{size:12}),"Condition Not Configured"]}),y={display:"inline-flex",alignItems:"center",gap:6,padding:"4px 10px",borderRadius:9999,fontSize:12,fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",...a?{border:"1px solid rgba(60, 131, 246, 0.30)",background:"rgba(60, 131, 246, 0.10)",color:"#3C83F6"}:i?{border:"1px solid rgba(245, 159, 10, 0.30)",background:"rgba(245, 159, 10, 0.10)",color:"#F59F0A"}:d?{border:"1px solid rgba(13, 148, 136, 0.30)",background:"rgba(13, 148, 136, 0.10)",color:"#0d9488"}:{border:"1px solid #d1d5db",background:"#fff",color:"#9ca3af"}};return e.jsxs("div",{className:F("flex flex-col items-center gap-2",r),children:[s?e.jsx("button",{onClick:s,style:{...y,cursor:"pointer",transition:"all 0.15s"},onMouseEnter:c=>{c.currentTarget.style.opacity="0.8"},onMouseLeave:c=>{c.currentTarget.style.opacity="1"},children:x}):e.jsx("div",{style:y,children:x}),d&&o.length>0&&e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:o.map(c=>e.jsx("span",{className:F("rounded-full border px-3 py-1 text-[11px] font-medium",wr[c.color]),children:c.label},c.label))})]})}function ue({onClick:t,className:o}){return e.jsx("button",{onClick:t,"aria-label":"Add step",className:F("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(k.Plus,{size:14})})}const Oe=[{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 De(){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 kr({product:t,iconUrl:o}){return o?e.jsx("img",{src:o,alt:t,className:"flex-shrink-0 rounded-md object-cover",style:{width:28,height:28}}):e.jsx(ie,{product:t,size:"sm"})}function ct({open:t,onClose:o,onSelectProduct:n,onSelectItem:r,subscribedProducts:s,showOnboarding:i=!1,addedProducts:a=[],onboardingAdded:d=!1}){if(!t)return null;const x=new Map((s??[]).filter(b=>b.subdomain).map(b=>[b.subdomain.toLowerCase(),b.icon])),l=s&&s.length>0?Oe.filter(({product:b})=>x.has(b.toLowerCase())):Oe;function y(b){a.includes(b)||(n?.(b),r?.({kind:"product",product:b}),o())}function c(){d||(r?.({kind:"onboarding"}),o())}return e.jsxs("aside",{className:"flex w-[300px] 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.jsxs("div",{className:"flex-1 overflow-y-auto bg-[#f5f6f8] p-2.5 flex flex-col gap-2",children:[l.map(({product:b,description:C})=>{const m=a.includes(b);return e.jsxs("button",{draggable:!m,onDragEnd:()=>!m&&y(b),onClick:()=>y(b),disabled:m,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 transition-all",style:{opacity:m?.4:1,cursor:m?"not-allowed":"grab"},children:[e.jsx(De,{}),e.jsx(kr,{product:b,iconUrl:x.get(b.toLowerCase())}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"text-[12px] font-bold text-gray-900 leading-tight",children:[he(b),":"]}),e.jsx("p",{className:"text-[10.5px] text-gray-500 leading-tight",children:C})]})]},b)}),i&&e.jsxs("button",{draggable:!d,onDragEnd:()=>!d&&c(),onClick:c,disabled:d,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 transition-all",style:{opacity:d?.4:1,cursor:d?"not-allowed":"grab"},children:[e.jsx(De,{}),e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-md flex-shrink-0",style:{background:"linear-gradient(135deg, #16a34a 0%, #22c55e 100%)"},children:e.jsx(k.GraduationCap,{size:14,color:"#fff"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[12px] font-bold text-gray-900 leading-tight",children:"Onboarding:"}),e.jsx("p",{className:"text-[10.5px] text-gray-500 leading-tight",children:"Candidate Onboarding"})]})]})]})]})}const vr={incscreen:"Resume Score Threshold",position:"Resume Score Threshold"};function jr(t){return vr[t]??"Pass Threshold"}function dt({product:t,onSave:o,onCancel:n}){const[r,s]=R.useState("Automatic"),[i,a]=R.useState(60),[d,x]=R.useState("Qualified"),l=t==="incscreen";function y(){const c={type:r,...r==="Automatic"&&!l&&{threshold:i},...r==="Automatic"&&l&&{advanceOn:d}};o(c)}return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{background:"rgba(0,0,0,0.35)"},onClick:c=>{c.target===c.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(k.X,{size:16})}),e.jsxs("div",{className:"p-5",children:[e.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Transition after ",he(t)]}),e.jsx("div",{className:"mt-4 grid grid-cols-2 gap-3",children:["Automatic","Manual"].map(c=>{const b=r===c;return e.jsxs("button",{onClick:()=>s(c),className:"flex flex-col items-center gap-1.5 rounded-lg border py-4 transition-all",style:b?{borderColor:"#12b6bc",background:"#f0fdfe",color:"#0e7490"}:{borderColor:"#e2e8f0",background:"#f8fafc",color:"#64748b"},children:[c==="Automatic"?e.jsx(k.Zap,{size:18,strokeWidth:2,style:{color:b?"#12b6bc":"#94a3b8"}}):e.jsx(k.User,{size:18,strokeWidth:2,style:{color:b?"#12b6bc":"#94a3b8"}}),e.jsx("span",{className:"text-[13px] font-semibold",children:c})]},c)})}),e.jsx("div",{className:"mt-5 min-h-[80px]",children:r==="Automatic"?l?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(c=>{const b=d===c;return e.jsx("button",{onClick:()=>x(c),className:"rounded-lg border py-2.5 text-[12.5px] font-medium transition-all",style:b?{borderColor:"#12b6bc",background:"#f0fdfe",color:"#0e7490"}:{borderColor:"#e2e8f0",background:"#f8fafc",color:"#475569"},children:c},c)})}),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:jr(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:c=>a(Number(c.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 Cr=[{id:"position",type:"position",details:""}];function Nr({title:t="Untitled Pipeline",status:o="draft",initialSteps:n=Cr,onBack:r,onPublish:s,onSaveDraft:i}){const[a,d]=R.useState(t),[x,l]=R.useState(n),[y,c]=R.useState("designer"),[b,C]=R.useState(!1),[m,w]=R.useState(null);function N(v){l(P=>P.filter(u=>u.id!==v))}function I(){C(!0)}function S(v){w(v)}function W(v){if(!m)return;const P=v.type==="Automatic"?"automatic":"manual-review",u={id:`${m}-${Date.now()}`,type:"product",product:m,status:"Configuration Pending",transitionCondition:v,connector:{type:P,...v.type==="Automatic"&&v.threshold!==void 0&&{branches:[{label:`≥ ${v.threshold}%`,color:"green"},{label:`< ${v.threshold}%`,color:"red"}]}}};l(g=>[...g,u]),w(null),C(!1)}function z(){w(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(k.ArrowLeft,{size:16})}),e.jsx("input",{value:a,onChange:v=>d(v.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:()=>c("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:()=>c("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(k.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(k.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(k.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||C(!1)},children:e.jsxs("div",{className:"flex flex-col items-center gap-0 w-full max-w-lg mx-auto",children:[x.map((v,P)=>{const u=P===x.length-1,g=v.connector&&v.connector.type!=="simple";return e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx(at,{type:v.type,product:v.product,productTag:v.productTag,status:v.status,config:v.config,details:v.details,onDelete:()=>N(v.id),onSettings:()=>C(!0)}),!u&&e.jsxs("div",{className:"flex flex-col items-center py-2",children:[e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}}),g&&v.connector?e.jsxs(e.Fragment,{children:[e.jsx(lt,{type:v.connector.type,branches:v.connector.branches,threshold:v.transitionCondition?.threshold}),e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}})]}):null,e.jsx(ue,{onClick:I}),e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}})]})]},v.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(ue,{onClick:I})]})]})}),e.jsx(ct,{open:b,onClose:()=>C(!1),onSelectProduct:S})]}),m&&e.jsx(dt,{product:m,onSave:W,onCancel:z})]})}const $="#12b6bc",Sr="#f5fbf8",zr="rgba(0,0,0,0.03)",ne="rgba(0,0,0,0.07)",Tr=[{label:"My Profile",Icon:k.UserCircle},{label:"Accounts & Billing",Icon:k.CreditCard}];function ge({item:t,active:o,collapsed:n,expanded:r,onNavigate:s,onToggle:i}){const{label:a,href:d,link:x,Icon:l,badge:y,hasChevron:c,expandedContent:b,collapsedExpandedContent:C,onClick:m}=t,w=()=>{m?m():x?window.open(x,"_blank","noopener,noreferrer"):c&&b&&d?i?.(d):d&&s?.(d)};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:w,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?Sr:"transparent",borderLeft:o||r?`2px solid ${$}`:"2px solid transparent",borderTop:"none",borderRight:"none",borderBottom:"none",borderRadius:0,cursor:"pointer",outline:"none",transition:"background 0.12s"},onMouseEnter:N=>{!o&&!r&&(N.currentTarget.style.background=zr)},onMouseLeave:N=>{!o&&!r&&(N.currentTarget.style.background="transparent")},children:[e.jsx(l,{size:22,style:{flexShrink:0,color:o||r?$:"#9ca3af",display:"block"}}),!n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{flex:1,textAlign:"left",fontFamily:"'Manrope', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:o||r?700:500,color:o||r?$:"#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:$,fontSize:10,fontWeight:600,flexShrink:0},children:y}),c&&b&&e.jsx(k.ChevronDown,{size:16,style:{flexShrink:0,color:"#9ca3af",transform:r?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}}),c&&!b&&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&&b&&e.jsx("div",{style:{background:"rgba(18,182,188,0.02)",borderLeft:`2px solid ${$}`,overflow:"hidden",maxHeight:320,overflowY:"auto"},children:b}),n&&r&&C&&e.jsx("div",{style:{borderLeft:`2px solid ${$}`,overflow:"hidden",maxHeight:320,overflowY:"auto"},children:C})]})}function Ir({name:t,icon:o,active:n,onClick:r}){return e.jsxs("button",{onClick:r,style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"9px 16px 9px 20px",textAlign:"left",fontSize:13,fontWeight:n?700:400,color:n?$:"#374151",background:n?"rgba(18,182,188,0.08)":"transparent",border:"none",cursor:"pointer",outline:"none",transition:"background 0.12s, color 0.12s"},onMouseEnter:s=>{n||(s.currentTarget.style.background="rgba(0,0,0,0.03)",s.currentTarget.style.color="#111")},onMouseLeave:s=>{n||(s.currentTarget.style.background="transparent",s.currentTarget.style.color="#374151")},children:[o?e.jsx("img",{src:o,alt:t,style:{width:20,height:20,borderRadius:4,objectFit:"cover",flexShrink:0}}):e.jsx("div",{style:{width:20,height:20,borderRadius:4,flexShrink:0,background:n?"rgba(18,182,188,0.15)":"rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:700,color:n?$:"#9CA3AF"},children:t.charAt(0)}),e.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})]})}function Ar({logoSrc:t,user:o={},navItems:n=[],otherItems:r=[],profileItems:s,activeHref:i="/",onNavigate:a,collapsed:d,onToggleCollapse:x,defaultExpandedItem:l,children:y}){const c=s??Tr,b=c.some(u=>u.href&&i&&(i===u.href||i.startsWith(u.href+"/"))),[C,m]=R.useState(!1),w=d!==void 0?d:C,N=x?u=>{const g=typeof u=="function"?u(w):u;x(g)}:u=>m(typeof u=="function"?u(C):u),[I,S]=R.useState(b),[W,z]=R.useState(l??null);R.useEffect(()=>{b&&S(!0)},[b]),R.useEffect(()=>{w||z(l??null)},[w,l]);const v=o.name?o.name.split(" ").map(u=>u[0]).join("").slice(0,2).toUpperCase():"?",P=u=>{z(g=>g===u?null:u)};return e.jsxs("div",{style:{display:"flex",height:"100%"},children:[e.jsxs("aside",{style:{width:w?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:w?"center":"space-between",padding:10,borderBottom:`1px solid ${ne}`},children:[!w&&t&&e.jsx("img",{src:t,alt:"Logo",style:{height:36,width:"auto",objectFit:"contain"}}),e.jsx("button",{onClick:()=>{N(u=>!u),z(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:u=>u.currentTarget.style.background="#f3f4f6",onMouseLeave:u=>u.currentTarget.style.background="transparent","aria-label":"Toggle sidebar",children:e.jsx(k.Menu,{size:16})})]}),e.jsxs("div",{style:{flexShrink:0},children:[e.jsxs("button",{onClick:()=>{w?(N(!1),S(!0)):S(u=>!u)},style:{display:"flex",width:"100%",alignItems:"center",gap:12,padding:12,justifyContent:w?"center":void 0,background:b?"#f5fbf8":"rgba(18,182,188,0.05)",borderLeft:b?"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:b?"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:b?"2px solid #12b6bc":"none",outlineOffset:2,color:"#fff",background:"linear-gradient(135deg, #3b82f6 0%, #12b6bc 100%)"},children:v}),!w&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{flex:1,minWidth:0,textAlign:"left"},children:[e.jsx("p",{style:{margin:0,fontFamily:"'Manrope', 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:"'Manrope', sans-serif",fontSize:12,fontWeight:400,color:"#3f3f3f",lineHeight:1.5,marginTop:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.role??""})]}),e.jsx(k.ChevronsUpDown,{size:16,style:{color:"#9ca3af",flexShrink:0}})]})]}),(I||w&&b)&&e.jsx(e.Fragment,{children:c.map(u=>e.jsx(ge,{item:{...u,onClick:u.onClick?()=>{w||S(!1),u.onClick?.()}:u.link?()=>{w||S(!1),window.open(u.link,"_blank","noopener,noreferrer")}:void 0},active:!!(u.href&&i&&(i===u.href||i.startsWith(u.href+"/"))),collapsed:w,onNavigate:a,onToggle:P},u.label))})]}),e.jsxs("nav",{style:{flex:1,overflowY:"auto"},children:[n.length>0&&!w&&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:"'Manrope', sans-serif"},children:"MAIN MENU"}),n.map(u=>e.jsx(ge,{item:u,active:i===u.href,expanded:W===u.href,collapsed:w,onNavigate:a,onToggle:P},u.href??u.label))]}),r.length>0&&e.jsxs("div",{style:{flexShrink:0},children:[!w&&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:"'Manrope', sans-serif",borderTop:`1px solid ${ne}`},children:"OTHER"}),w&&e.jsx("div",{style:{height:8,borderTop:`1px solid ${ne}`}}),r.map(u=>e.jsx(ge,{item:u,active:i===u.href,collapsed:w,onNavigate:a,onToggle:P},u.href??u.label)),e.jsx("div",{style:{height:16}})]})]}),e.jsx("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:y})]})}const Rr="rgba(0,0,0,0.07)",Ge="#12b6bc";function Pr({title:t="",notificationCount:o=0,onBellClick:n,bellRef:r,notificationDropdown:s,leftButton:i,navLinks:a=[],rightExtra:d}){const x=a.length>0;return e.jsxs("header",{style:{height:52,flexShrink:0,display:"flex",alignItems:"center",background:"#fff",borderBottom:`1px solid ${Rr}`,padding:"0 12px",zIndex:99,gap:16,filter:"drop-shadow(0 3px 6px rgba(0, 0, 0, 0.161))"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,flexShrink:0},children:[i,!x&&e.jsx("h2",{style:{margin:0,fontSize:15,fontWeight:700,color:"#111118",fontFamily:"'Manrope', sans-serif",whiteSpace:"nowrap"},children:t})]}),x&&e.jsxs("nav",{style:{display:"flex",alignItems:"stretch",gap:0,height:"100%",flex:1,justifyContent:"flex-end",marginRight:8},children:[d&&e.jsx("div",{style:{display:"flex",alignItems:"center",paddingRight:8},children:d}),a.map((l,y)=>e.jsx("button",{onClick:l.onClick,style:{position:"relative",height:"100%",padding:"0 16px",background:"none",border:"none",borderBottom:l.active?`2px solid ${Ge}`:"2px solid transparent",cursor:"pointer",fontFamily:"'Manrope', sans-serif",fontSize:13,fontWeight:l.active?700:500,color:l.active?Ge:"#6b7280",whiteSpace:"nowrap",outline:"none",transition:"color 0.15s, border-color 0.15s"},onMouseEnter:c=>{l.active||(c.currentTarget.style.color="#374151")},onMouseLeave:c=>{l.active||(c.currentTarget.style.color="#6b7280")},children:l.label},y))]}),!x&&d&&e.jsx("div",{style:{flexShrink:0,marginLeft:"auto"},children:d}),e.jsxs("div",{ref:r,style:{position:"relative",flexShrink:0,marginLeft:x||d?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:l=>{l.currentTarget.style.background="#f3f4f6",l.currentTarget.style.color="#6b7280"},onMouseLeave:l=>{l.currentTarget.style.background="transparent",l.currentTarget.style.color="#9ca3af"},"aria-label":"Notifications",children:[e.jsx(k.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=xr;exports.AddStepButton=ue;exports.AppShell=dr;exports.ConditionalBranch=lt;exports.InCruiterSidebar=Ar;exports.InCruiterTopBar=Pr;exports.PageHeader=lr;exports.PipelineNode=at;exports.ProductDragPanel=ct;exports.ProductIcon=ie;exports.QuickActionCard=pr;exports.SearchBar=ar;exports.Sidebar=st;exports.SidebarSubItem=Ir;exports.StatusBadge=sr;exports.SubscriptionCard=gr;exports.TopBar=it;exports.TransitionConditionDialog=dt;exports.WelcomeBanner=fr;exports.WorkflowDesigner=Nr;exports.WorkflowListItem=br;exports.WorkflowTemplateCard=ur;exports.getProductLabel=he;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),k=require("lucide-react"),z=require("react"),ut=require("react-dom");function _e(t){var n,o,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(n=0;n<s;n++)t[n]&&(o=_e(t[n]))&&(r&&(r+=" "),r+=o)}else for(o in t)t[o]&&(r&&(r+=" "),r+=o);return r}function mt(){for(var t,n,o=0,r="",s=arguments.length;o<s;o++)(t=arguments[o])&&(n=_e(t))&&(r&&(r+=" "),r+=n);return r}const bt=(t,n)=>{const o=new Array(t.length+n.length);for(let r=0;r<t.length;r++)o[r]=t[r];for(let r=0;r<n.length;r++)o[t.length+r]=n[r];return o},ht=(t,n)=>({classGroupId:t,validator:n}),Ue=(t=new Map,n=null,o)=>({nextPart:t,validators:n,classGroupId:o}),se="-",Ie=[],yt="arbitrary..",wt=t=>{const n=kt(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return vt(a);const l=a.split(se),g=l[0]===""&&l.length>1?1:0;return Ve(l,g,n)},getConflictingClassGroupIds:(a,l)=>{if(l){const g=r[a],d=o[a];return g?d?bt(d,g):g:d||Ie}return o[a]||Ie}}},Ve=(t,n,o)=>{if(t.length-n===0)return o.classGroupId;const s=t[n],i=o.nextPart.get(s);if(i){const d=Ve(t,n+1,i);if(d)return d}const a=o.validators;if(a===null)return;const l=n===0?t.join(se):t.slice(n).join(se),g=a.length;for(let d=0;d<g;d++){const w=a[d];if(w.validator(l))return w.classGroupId}},vt=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=t.slice(1,-1),o=n.indexOf(":"),r=n.slice(0,o);return r?yt+r:void 0})(),kt=t=>{const{theme:n,classGroups:o}=t;return jt(o,n)},jt=(t,n)=>{const o=Ue();for(const r in t){const s=t[r];be(s,o,r,n)}return o},be=(t,n,o,r)=>{const s=t.length;for(let i=0;i<s;i++){const a=t[i];St(a,n,o,r)}},St=(t,n,o,r)=>{if(typeof t=="string"){Ct(t,n,o);return}if(typeof t=="function"){Nt(t,n,o,r);return}zt(t,n,o,r)},Ct=(t,n,o)=>{const r=t===""?n:He(n,t);r.classGroupId=o},Nt=(t,n,o,r)=>{if(It(t)){be(t(r),n,o,r);return}n.validators===null&&(n.validators=[]),n.validators.push(ht(o,t))},zt=(t,n,o,r)=>{const s=Object.entries(t),i=s.length;for(let a=0;a<i;a++){const[l,g]=s[a];be(g,He(n,l),o,r)}},He=(t,n)=>{let o=t;const r=n.split(se),s=r.length;for(let i=0;i<s;i++){const a=r[i];let l=o.nextPart.get(a);l||(l=Ue(),o.nextPart.set(a,l)),o=l}return o},It=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Tt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,o=Object.create(null),r=Object.create(null);const s=(i,a)=>{o[i]=a,n++,n>t&&(n=0,r=o,o=Object.create(null))};return{get(i){let a=o[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return s(i,a),a},set(i,a){i in o?o[i]=a:s(i,a)}}},ue="!",Te=":",At=[],Ae=(t,n,o,r,s)=>({modifiers:t,hasImportantModifier:n,baseClassName:o,maybePostfixModifierPosition:r,isExternal:s}),Rt=t=>{const{prefix:n,experimentalParseClassName:o}=t;let r=s=>{const i=[];let a=0,l=0,g=0,d;const w=s.length;for(let h=0;h<w;h++){const j=s[h];if(a===0&&l===0){if(j===Te){i.push(s.slice(g,h)),g=h+1;continue}if(j==="/"){d=h;continue}}j==="["?a++:j==="]"?a--:j==="("?l++:j===")"&&l--}const c=i.length===0?s:s.slice(g);let b=c,m=!1;c.endsWith(ue)?(b=c.slice(0,-1),m=!0):c.startsWith(ue)&&(b=c.slice(1),m=!0);const x=d&&d>g?d-g:void 0;return Ae(i,m,b,x)};if(n){const s=n+Te,i=r;r=a=>a.startsWith(s)?i(a.slice(s.length)):Ae(At,!1,a,void 0,!0)}if(o){const s=r;r=i=>o({className:i,parseClassName:s})}return r},Pt=t=>{const n=new Map;return t.orderSensitiveModifiers.forEach((o,r)=>{n.set(o,1e6+r)}),o=>{const r=[];let s=[];for(let i=0;i<o.length;i++){const a=o[i],l=a[0]==="[",g=n.has(a);l||g?(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}},Mt=t=>({cache:Tt(t.cacheSize),parseClassName:Rt(t),sortModifiers:Pt(t),postfixLookupClassGroupIds:Lt(t),...wt(t)}),Lt=t=>{const n=Object.create(null),o=t.postfixLookupClassGroups;if(o)for(let r=0;r<o.length;r++)n[o[r]]=!0;return n},Et=/\s+/,Ft=(t,n)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i,postfixLookupClassGroupIds:a}=n,l=[],g=t.trim().split(Et);let d="";for(let w=g.length-1;w>=0;w-=1){const c=g[w],{isExternal:b,modifiers:m,hasImportantModifier:x,baseClassName:h,maybePostfixModifierPosition:j}=o(c);if(b){d=c+(d.length>0?" "+d:d);continue}let I=!!j,N;if(I){const A=h.substring(0,j);N=r(A);const u=N&&a[N]?r(h):void 0;u&&u!==N&&(N=u,I=!1)}else N=r(h);if(!N){if(!I){d=c+(d.length>0?" "+d:d);continue}if(N=r(h),!N){d=c+(d.length>0?" "+d:d);continue}I=!1}const W=m.length===0?"":m.length===1?m[0]:i(m).join(":"),T=x?W+ue:W,S=T+N;if(l.indexOf(S)>-1)continue;l.push(S);const y=s(N,I);for(let A=0;A<y.length;++A){const u=y[A];l.push(T+u)}d=c+(d.length>0?" "+d:d)}return d},Wt=(...t)=>{let n=0,o,r,s="";for(;n<t.length;)(o=t[n++])&&(r=qe(o))&&(s&&(s+=" "),s+=r);return s},qe=t=>{if(typeof t=="string")return t;let n,o="";for(let r=0;r<t.length;r++)t[r]&&(n=qe(t[r]))&&(o&&(o+=" "),o+=n);return o},Bt=(t,...n)=>{let o,r,s,i;const a=g=>{const d=n.reduce((w,c)=>c(w),t());return o=Mt(d),r=o.cache.get,s=o.cache.set,i=l,l(g)},l=g=>{const d=r(g);if(d)return d;const w=Ft(g,o);return s(g,w),w};return i=a,(...g)=>i(Wt(...g))},Dt=[],R=t=>{const n=o=>o[t]||Dt;return n.isThemeGetter=!0,n},Ye=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ot=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Gt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$t=/\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$/,_t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ut=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=t=>Ot.test(t),C=t=>!!t&&!Number.isNaN(Number(t)),D=t=>!!t&&Number.isInteger(Number(t)),xe=t=>t.endsWith("%")&&C(t.slice(0,-1)),O=t=>Gt.test(t),Xe=()=>!0,Ht=t=>$t.test(t)&&!_t.test(t),he=()=>!1,qt=t=>Ut.test(t),Yt=t=>Vt.test(t),Qt=t=>!f(t)&&!p(t),Xt=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)),Kt=t=>_(t,Je,he),f=t=>Ye.test(t),V=t=>_(t,et,Ht),Re=t=>_(t,sr,C),Zt=t=>_(t,rt,Xe),Jt=t=>_(t,tt,he),Pe=t=>_(t,Ke,he),er=t=>_(t,Ze,Yt),te=t=>_(t,nt,qt),p=t=>Qe.test(t),Y=t=>H(t,et),tr=t=>H(t,tt),Me=t=>H(t,Ke),rr=t=>H(t,Je),nr=t=>H(t,Ze),re=t=>H(t,nt,!0),or=t=>H(t,rt,!0),_=(t,n,o)=>{const r=Ye.exec(t);return r?r[1]?n(r[1]):o(r[2]):!1},H=(t,n,o=!1)=>{const r=Qe.exec(t);return r?r[1]?n(r[1]):o:!1},Ke=t=>t==="position"||t==="percentage",Ze=t=>t==="image"||t==="url",Je=t=>t==="length"||t==="size"||t==="bg-size",et=t=>t==="length",sr=t=>t==="number",tt=t=>t==="family-name",rt=t=>t==="number"||t==="weight",nt=t=>t==="shadow",ir=()=>{const t=R("color"),n=R("font"),o=R("text"),r=R("font-weight"),s=R("tracking"),i=R("leading"),a=R("breakpoint"),l=R("container"),g=R("spacing"),d=R("radius"),w=R("shadow"),c=R("inset-shadow"),b=R("text-shadow"),m=R("drop-shadow"),x=R("blur"),h=R("perspective"),j=R("aspect"),I=R("ease"),N=R("animate"),W=()=>["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"],S=()=>[...T(),p,f],y=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],u=()=>[p,f,g],E=()=>[G,"full","auto",...u()],we=()=>[D,"none","subgrid",p,f],ve=()=>["auto",{span:["full",D,p,f]},D,p,f],X=()=>[D,"auto",p,f],ke=()=>["auto","min","max","fr",p,f],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...u()],U=()=>[G,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],ce=()=>[G,"screen","full","dvw","lvw","svw","min","max","fit",...u()],de=()=>[G,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],v=()=>[t,p,f],je=()=>[...T(),Me,Pe,{position:[p,f]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",rr,Kt,{size:[p,f]}],fe=()=>[xe,Y,V],M=()=>["","none","full",d,p,f],L=()=>["",C,Y,V],K=()=>["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"],P=()=>[C,xe,Me,Pe],ze=()=>["","none",x,p,f],Z=()=>["none",C,p,f],J=()=>["none",C,p,f],pe=()=>[C,p,f],ee=()=>[G,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[O],breakpoint:[O],color:[Xe],container:[O],"drop-shadow":[O],ease:["in","out","in-out"],font:[Qt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[O],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[O],shadow:[O],spacing:["px",C],text:[O],"text-shadow":[O],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",G,f,p,j]}],container:["container"],"container-type":[{"@container":["","normal","size",p,f]}],"container-named":[Xt],columns:[{columns:[C,f,p,l]}],"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:S()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",p,f]}],basis:[{basis:[G,"full","auto",l,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[C,G,"auto","initial","none",f]}],grow:[{grow:["",C,p,f]}],shrink:[{shrink:["",C,p,f]}],order:[{order:[D,"first","last","none",p,f]}],"grid-cols":[{"grid-cols":we()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":we()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ke()}],"auto-rows":[{"auto-rows":ke()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[l,"screen",...U()]}],"min-w":[{"min-w":[l,"screen","none",...U()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",o,Y,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,or,Zt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,f]}],"font-family":[{font:[tr,Jt,n]}],"font-features":[{"font-features":[f]}],"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,p,f]}],"line-clamp":[{"line-clamp":[C,"none",p,Re]}],leading:[{leading:[i,...u()]}],"list-image":[{"list-image":["none",p,f]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",p,f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:v()}],"text-color":[{text:v()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[C,"from-font","auto",p,V]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[C,"auto",p,f]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"tab-size":[{tab:[D,p,f]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p,f]}],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",p,f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:je()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,p,f],radial:["",p,f],conic:[D,p,f]},nr,er]}],"bg-color":[{bg:v()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:v()}],"gradient-via":[{via:v()}],"gradient-to":[{to:v()}],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:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:v()}],"border-color-x":[{"border-x":v()}],"border-color-y":[{"border-y":v()}],"border-color-s":[{"border-s":v()}],"border-color-e":[{"border-e":v()}],"border-color-bs":[{"border-bs":v()}],"border-color-be":[{"border-be":v()}],"border-color-t":[{"border-t":v()}],"border-color-r":[{"border-r":v()}],"border-color-b":[{"border-b":v()}],"border-color-l":[{"border-l":v()}],"divide-color":[{divide:v()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[C,p,f]}],"outline-w":[{outline:["",C,Y,V]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",w,re,te]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",c,re,te]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[C,V]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",b,re,te]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[C,p,f]}],"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":[C]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":v()}],"mask-image-linear-to-color":[{"mask-linear-to":v()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":v()}],"mask-image-t-to-color":[{"mask-t-to":v()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":v()}],"mask-image-r-to-color":[{"mask-r-to":v()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":v()}],"mask-image-b-to-color":[{"mask-b-to":v()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":v()}],"mask-image-l-to-color":[{"mask-l-to":v()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":v()}],"mask-image-x-to-color":[{"mask-x-to":v()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[p,f]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":v()}],"mask-image-radial-to-color":[{"mask-radial-to":v()}],"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":[C]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":v()}],"mask-image-conic-to-color":[{"mask-conic-to":v()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:je()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",p,f]}],filter:[{filter:["","none",p,f]}],blur:[{blur:ze()}],brightness:[{brightness:[C,p,f]}],contrast:[{contrast:[C,p,f]}],"drop-shadow":[{"drop-shadow":["","none",m,re,te]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",C,p,f]}],"hue-rotate":[{"hue-rotate":[C,p,f]}],invert:[{invert:["",C,p,f]}],saturate:[{saturate:[C,p,f]}],sepia:[{sepia:["",C,p,f]}],"backdrop-filter":[{"backdrop-filter":["","none",p,f]}],"backdrop-blur":[{"backdrop-blur":ze()}],"backdrop-brightness":[{"backdrop-brightness":[C,p,f]}],"backdrop-contrast":[{"backdrop-contrast":[C,p,f]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C,p,f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C,p,f]}],"backdrop-invert":[{"backdrop-invert":["",C,p,f]}],"backdrop-opacity":[{"backdrop-opacity":[C,p,f]}],"backdrop-saturate":[{"backdrop-saturate":[C,p,f]}],"backdrop-sepia":[{"backdrop-sepia":["",C,p,f]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",p,f]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C,"initial",p,f]}],ease:[{ease:["linear","initial",I,p,f]}],delay:[{delay:[C,p,f]}],animate:[{animate:["none",N,p,f]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,p,f]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[p,f,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[D,p,f]}],accent:[{accent:v()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:v()}],"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",p,f]}],"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":v()}],"scrollbar-track-color":[{"scrollbar-track":v()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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",p,f]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[C,Y,V,Re]}],stroke:[{stroke:["none",...v()]}],"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"]}},ar=Bt(ir);function F(...t){return ar(mt(t))}const lr={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",Paused:"bg-yellow-100 text-yellow-700",Stopped:"bg-red-100 text-red-600",Configured:"","Configuration Pending":""},cr={Configured:{background:"#21C45D",color:"#fff",border:"none"},"Configuration Pending":{background:"#DC2828",color:"#fff",border:"none"}};function dr({status:t,className:n,dot:o=!1}){const r=cr[t],s=t==="Configured"||t==="Configuration Pending";return e.jsxs("span",{className:F("inline-flex items-center gap-1 rounded-full",s?"px-[10px] py-[2px] text-[10px] font-semibold leading-[15px]":"px-2 py-0.5 text-xs font-medium",lr[t]??"bg-gray-100 text-gray-600",n),style:r,children:[o&&!s&&e.jsx("span",{className:F("h-1.5 w-1.5 rounded-full",{"bg-green-500":t==="Active","bg-orange-500":t==="Draft","bg-red-500":t==="Stopped"})}),t]})}const ot={incscreen:{label:"IncScreen",Icon:k.Phone,gradient:"linear-gradient(135deg, #0d9488 0%, #14b8a6 100%)"},incbot:{label:"IncBot",Icon:k.Bot,gradient:"linear-gradient(135deg, #2563eb 0%, #3b82f6 100%)"},incvid:{label:"IncVid",Icon:k.Video,gradient:"linear-gradient(135deg, #4f46e5 0%, #6366f1 100%)"},incfeed:{label:"IncFeed",Icon:k.Calendar,gradient:"linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%)"},incserve:{label:"IncServe",Icon:k.GraduationCap,gradient:"linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%)"},incproctor:{label:"IncProctor",Icon:k.Shield,gradient:"linear-gradient(135deg, #475569 0%, #64748b 100%)"}},fr={sm:{box:28,icon:13,radius:7},md:{box:36,icon:17,radius:9},lg:{box:48,icon:22,radius:12}};function ae({product:t,size:n="md",className:o}){const r=ot[t],{box:s,icon:i,radius:a}=fr[n],{Icon:l,gradient:g}=r;return e.jsx("span",{className:F("flex flex-shrink-0 items-center justify-center",o),style:{width:s,height:s,borderRadius:a,background:g},children:e.jsx(l,{size:i,color:"#fff"})})}function ye(t){return ot[t]?.label??t}function pr({placeholder:t="Search...",shortcut:n="⌘K",className:o,onSearch:r}){return e.jsxs("div",{className:F("relative flex items-center",o),children:[e.jsx(k.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:F("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")}),n&&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:n})})]})}function xr({title:t,description:n,breadcrumb:o,actions:r,className:s}){return e.jsxs("div",{className:F("flex items-start justify-between",s),children:[e.jsxs("div",{children:[o&&e.jsx("p",{className:"mb-1 text-xs text-gray-400 uppercase tracking-wider",children:o}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:t}),n&&e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:n})]}),r&&e.jsx("div",{className:"flex items-center gap-2",children:r})]})}const ne="#12b6bc",gr="#f5fbf8",st="rgba(0,0,0,0.03)",oe="rgba(0,0,0,0.07)";function Le({item:t,active:n,collapsed:o,onNavigate:r}){return e.jsxs("button",{onClick:()=>r?.(t.href),title:o?t.label:void 0,className:"flex w-full items-center overflow-hidden",style:{gap:o?0:20,paddingLeft:o?0:15,paddingRight:o?0:10,paddingTop:10,paddingBottom:10,justifyContent:o?"center":void 0,background:n?gr:"transparent",borderLeft:n?`2px solid ${ne}`:"2px solid transparent",borderRadius:0},onMouseEnter:s=>{n||(s.currentTarget.style.background=st)},onMouseLeave:s=>{n||(s.currentTarget.style.background="transparent")},children:[e.jsx(t.Icon,{size:22,style:{flexShrink:0,color:n?ne:"#9ca3af",display:"block"}}),!o&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-1 text-left",style:{fontFamily:"'Manrope', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:n?700:500,color:n?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 it({user:t,logoSrc:n,logoAlt:o="Logo",navItems:r=[],otherItems:s=[],activeHref:i="/",onNavigate:a,onMyProfile:l,onAccountsBilling:g}){const[d,w]=z.useState(!1),[c,b]=z.useState(!1),m=t.name.split(" ").map(x=>x[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:c?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:c?"center":"space-between"},children:[!c&&n&&e.jsx("img",{src:n,alt:o,style:{height:36,width:"auto",objectFit:"contain"}}),e.jsx("button",{onClick:()=>{b(x=>!x),w(!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(k.Menu,{size:16})})]}),e.jsxs("div",{className:"flex-shrink-0",children:[e.jsxs("button",{onClick:()=>!c&&w(x=>!x),className:"flex w-full items-center transition-colors",style:{gap:12,padding:12,background:"rgba(18,182,188,0.05)",justifyContent:c?"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:m}),!c&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[e.jsx("p",{style:{fontFamily:"'Manrope', 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:"'Manrope', sans-serif",fontSize:12,fontWeight:400,color:"#3f3f3f",lineHeight:"1.5",marginTop:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.role})]}),e.jsx(k.ChevronsUpDown,{size:16,style:{color:"#9ca3af",flexShrink:0}})]})]}),d&&e.jsx(e.Fragment,{children:[{label:"My Profile",Icon:k.UserCircle,action:l},{label:"Accounts & Billing",Icon:k.CreditCard,action:g}].map(({label:x,Icon:h,action:j})=>e.jsxs("button",{onClick:j,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:I=>{I.currentTarget.style.background=st},onMouseLeave:I=>{I.currentTarget.style.background="transparent"},children:[e.jsx(h,{size:22,style:{color:"#878787",flexShrink:0}}),e.jsx("span",{style:{fontFamily:"'Manrope', sans-serif",fontSize:13,lineHeight:"24px",fontWeight:500,color:"#000",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:x})]},x))})]}),e.jsxs("nav",{className:"flex-1 overflow-y-auto",children:[r.length>0&&!c&&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:"'Manrope', sans-serif"},children:"MAIN MENU"}),r.map(x=>e.jsx(Le,{item:x,active:i===x.href,collapsed:c,onNavigate:a},x.href))]}),s.length>0&&e.jsxs("div",{className:"flex-shrink-0",children:[!c&&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:"'Manrope', sans-serif",borderTop:`1px solid ${oe}`},children:"OTHER"}),c&&e.jsx("div",{style:{height:8,borderTop:`1px solid ${oe}`}}),s.map(x=>e.jsx(Le,{item:x,active:i===x.href,collapsed:c,onNavigate:a},x.href)),e.jsx("div",{style:{height:16}})]})]})}function at({title:t,breadcrumb:n,actions:o,notificationCount:r=0,onBellClick:s,className:i}){return e.jsxs("header",{className:F("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}),n&&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:n})]})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2.5",children:[o,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(k.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 ur({user:t,logoSrc:n,logoAlt:o,navItems:r,otherItems:s,activeHref:i,topBarTitle:a="",topBarBreadcrumb:l,topBarActions:g,notificationCount:d,onNavigate:w,onMyProfile:c,onAccountsBilling:b,onBellClick:m,children:x,className:h}){return e.jsxs("div",{className:"flex h-screen overflow-hidden bg-gray-50",children:[e.jsx(it,{user:t,logoSrc:n,logoAlt:o,navItems:r,otherItems:s,activeHref:i,onNavigate:w,onMyProfile:c,onAccountsBilling:b}),e.jsxs("div",{className:"flex flex-1 min-w-0 flex-col overflow-hidden",children:[e.jsx(at,{title:a,breadcrumb:l,actions:g,notificationCount:d,onBellClick:m}),e.jsx("main",{className:F("flex-1 overflow-y-auto",h),style:{margin:12,borderRadius:6,border:"1px solid #E5E7EB",background:"#fff"},children:x})]})]})}function mr({name:t,subtitle:n=""}){const o=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:o})," ",e.jsx("span",{"aria-hidden":!0,children:"👋"})]}),e.jsx("p",{className:"mt-1.5 text-[13.5px] text-gray-500",children:n})]})}function br({icon:t,iconBg:n="#eff6ff",title:o,subtitle:r,onClick:s,className:i}){return e.jsxs("button",{onClick:s,className:F("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:n},children:t}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[13.5px] font-semibold text-gray-900 leading-snug",children:o}),e.jsx("p",{className:"mt-0.5 text-[12px] text-gray-500 leading-snug",children:r})]})]})}function hr({name:t,product:n,status:o,validTill:r,usage:s,onOpenDashboard:i}){const a=o==="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(ae,{product:n,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:o}),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 yr({product:t,message:n,ctaLabel:o="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})," ",n," ",e.jsx("button",{onClick:r,className:"font-semibold text-blue-600 hover:underline",style:{background:"none",border:"none",cursor:"pointer",padding:0},children:o})]})]})}const Ee={Popular:"#2563eb",Fast:"#d97706",Premium:"#7c3aed",Complete:"#c2410c",AI:"#0d9488",Lean:"#a16207"};function wr({title:t,description:n,badge:o,steps:r,onUseTemplate:s}){const i=Ee[o]??Ee.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(k.Workflow,{size:22,color:"#10b981"})}),e.jsx("span",{style:{fontFamily:"'Manrope', sans-serif",fontSize:13,fontWeight:600,color:i},children:o})]}),e.jsx("h3",{style:{fontFamily:"'Manrope', sans-serif",fontSize:16,fontWeight:700,color:"#111118",marginBottom:8},children:t}),e.jsx("p",{style:{fontFamily:"'Manrope', sans-serif",fontSize:13,lineHeight:"1.6",color:"#6b7280",marginBottom:20,flexGrow:1},children:n}),e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[r.map((a,l)=>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:"'Manrope', sans-serif",fontWeight:500},children:a}),l<r.length-1&&e.jsx(k.ArrowRight,{size:9,style:{color:"#cbd5e1",flexShrink:0}})]},a)),e.jsx("button",{onClick:s,style:{fontFamily:"'Manrope', 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"})]})]})}const Fe={Active:{bg:"#f0fdf4",color:"#15803d",border:"#bbf7d0"},Paused:{bg:"#fefce8",color:"#a16207",border:"#fde68a"},Stopped:{bg:"#fef2f2",color:"#b91c1c",border:"#fecaca"},Draft:{bg:"#fff7ed",color:"#c2410c",border:"#fed7aa"}},We={Active:e.jsx(k.Play,{size:15,fill:"#16a34a",style:{color:"#16a34a"}}),Paused:e.jsx(k.Pause,{size:15,fill:"#ca8a04",style:{color:"#ca8a04"}}),Stopped:e.jsx(k.Square,{size:15,fill:"#dc2626",style:{color:"#dc2626"}}),Draft:e.jsx(k.FileText,{size:15,style:{color:"#ea580c"}})},Be={Active:"#f0fdf4",Paused:"#fefce8",Stopped:"#fef2f2",Draft:"#fff7ed"};function vr({title:t,steps:n,createdAt:o,status:r,candidates:s,hired:i,onEdit:a,onAddCandidate:l,onReplicate:g,onPause:d,onResume:w,onStop:c,onDelete:b}){const[m,x]=z.useState(!1),h=z.useRef(null);z.useEffect(()=>{function T(S){h.current&&!h.current.contains(S.target)&&x(!1)}return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]);const j=Fe[r]??Fe.Draft,I=We[r]??We.Draft,N=Be[r]??Be.Draft,W=r==="Active";return e.jsxs("div",{className:"flex items-center gap-4 rounded-xl border border-[rgba(0,0,0,0.06)] bg-white px-5 py-4 transition-colors hover:border-gray-200",children:[e.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full",style:{background:N},children:I}),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:[n.map((T,S)=>e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[12px] text-gray-500",children:T}),S<n.length-1&&e.jsx(k.ArrowRight,{size:9,className:"text-gray-300"})]},T)),e.jsx("span",{className:"text-gray-300 text-[12px] select-none",children:"·"}),e.jsxs("span",{className:"text-[12px] text-gray-400",children:["Created ",o]})]})]}),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:{background:j.bg,color:j.color,border:`1px solid ${j.border}`},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-[#e5e7eb] px-3 h-[28px] text-[12px] font-medium text-gray-600 hover:bg-gray-50 transition-colors",children:[e.jsx(k.Pencil,{size:11}),"Edit"]}),e.jsxs("button",{onClick:l,disabled:!W,className:"flex items-center gap-1.5 rounded-lg h-[28px] px-3 text-[12px] font-medium text-white transition-opacity hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed",style:{background:"#133F7D"},children:[e.jsx(k.UserPlus,{size:11}),"Add Candidate"]}),e.jsxs("div",{ref:h,className:"relative",children:[e.jsx("button",{onClick:()=>x(T=>!T),className:"flex h-[28px] w-[28px] items-center justify-center rounded-lg border border-[#e5e7eb] text-gray-400 hover:bg-gray-50 transition-colors",children:e.jsx(k.MoreVertical,{size:14})}),m&&e.jsxs("div",{className:"absolute right-0 top-full mt-1 z-50 w-44 rounded-xl border border-gray-200 bg-white shadow-lg overflow-hidden",children:[e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",onClick:()=>{x(!1),g?.()},children:[e.jsx(k.Copy,{size:13,className:"text-gray-400"}),"Replicate"]}),r==="Paused"?e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",onClick:()=>{x(!1),w?.()},children:[e.jsx(k.Play,{size:13,className:"text-gray-400"}),"Resume Workflow"]}):r==="Active"?e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",onClick:()=>{x(!1),d?.()},children:[e.jsx(k.Pause,{size:13,className:"text-gray-400"}),"Pause Workflow"]}):null,r!=="Stopped"&&e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",onClick:()=>{x(!1),c?.()},children:[e.jsx(k.Square,{size:13,className:"text-gray-400"}),"Stop Workflow"]}),e.jsx("div",{className:"h-px bg-gray-100"}),e.jsxs("button",{className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-red-500 hover:bg-red-50 transition-colors",onClick:()=>{x(!1),b?.()},children:[e.jsx(k.FileText,{size:13,className:"text-red-400"}),"Delete"]})]})]})]})]})}const De={incscreen:"IncScreen",incbot:"IncBot",incvid:"IncVid",incfeed:"IncFeed",incserve:"IncServe",incproctor:"IncProctor"},kr={border:"2px solid rgba(19,63,125,0.30)",background:"rgba(19,63,125,0.05)",boxShadow:"none"},jr={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 Sr(t,n,o,r,s){if(o==="Configuration Pending")return"Configuration Pending...";if(t==="onboarding")return"Auto-create entry in onboarding dashboard";if(!r)return s??"";if(t==="position"){const i=[];return r.title&&i.push(r.title),r.domain&&i.push(r.domain),r.expRange&&i.push(r.expRange),r.positionCount&&i.push(`${r.positionCount} pos`),r.skillCount&&i.push(`${r.skillCount} skills`),i.join(" · ")}if(n==="incscreen"){const i=[];return r.interviewType&&i.push(r.interviewType),r.questionSetId&&i.push(`#${r.questionSetId}`),i.join(" · ")||(s??"")}if(n==="incbot"){const i=[];return r.interviewType&&i.push(r.interviewType),r.questionSetId&&i.push(`#${r.questionSetId}`),r.linkExpiry&&i.push(r.linkExpiry),i.join(" · ")||(s??"")}if(n==="incfeed"||n==="incvid"||n==="incserve"){const i=[];return r.panelistCount&&i.push(`${r.panelistCount} panelists`),r.schedulingType&&i.push(r.schedulingType),i.join(" · ")||(s??"")}return s??""}function lt({type:t="product",product:n,productTag:o,status:r,config:s,details:i,iconUrl:a,onSettings:l,onDelete:g,className:d}){const w=t==="position",c=t==="onboarding",m=r==="Configured"||w||c?kr:jr,x=w?"Position":c?"Onboarding":n&&Object.prototype.hasOwnProperty.call(De,n)?De[n]:"",h=Sr(t,n,r,s,i);return e.jsxs("div",{className:F("flex items-center gap-3.5 px-4 py-3.5 w-full max-w-lg",d),style:{borderRadius:12,border:m.border,background:m.background,boxShadow:m.boxShadow},children:[w||c?e.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{background:w?"#e0e7ff":"#dcfce7"},children:e.jsx(k.Briefcase,{size:17,style:{color:w?"#6366f1":"#16a34a"}})}):n?a?e.jsx("img",{src:a,alt:n,className:"flex-shrink-0 rounded-md object-cover",style:{width:36,height:36}}):e.jsx(ae,{product:n,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:x}),o&&e.jsx("span",{style:{display:"inline-flex",alignItems:"center",padding:"2px 10px",borderRadius:9999,border:"1px solid #E5E7EB",color:"#0F1729",fontSize:10,fontWeight:600,lineHeight:"15px",whiteSpace:"nowrap"},children:o}),r&&e.jsx("span",{style:{display:"inline-flex",alignItems:"center",borderRadius:9999,border:"1px solid transparent",background:r==="Configured"?"#21C45D":"#DC2828",padding:"2px 10px",color:"#FFF",fontSize:10,fontWeight:600,lineHeight:"15px",whiteSpace:"nowrap"},children:r})]}),h&&e.jsx("p",{className:"mt-0.5 truncate text-[12px]",style:{color:"#6b7280"},children:h})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-0.5",children:[e.jsx("button",{onClick:l,className:"rounded-md p-1.5 hover:bg-white/70 transition-colors",style:{color:"#0F1729"},"aria-label":"Settings",children:e.jsx(k.Settings,{size:14})}),!w&&e.jsx("button",{onClick:g,className:"rounded-md p-1.5 text-gray-400 hover:text-red-500 transition-colors",onMouseEnter:j=>{j.currentTarget.style.background="#fee2e2"},onMouseLeave:j=>{j.currentTarget.style.background="transparent"},"aria-label":"Delete",children:e.jsx(k.Trash2,{size:14,color:"#DC2828"})})]})]})}const Cr={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 ct({type:t,branches:n=[],threshold:o,className:r,onClick:s}){const i=t==="manual-review",a=t==="automatic",l=t==="conditional",g=i?e.jsxs(e.Fragment,{children:[e.jsx(k.Hand,{size:12}),"Manual Review"]}):a?e.jsxs(e.Fragment,{children:[e.jsx(k.Zap,{size:12}),`Automatic${o!==void 0?` @ ${o}%`:""}`]}):l?e.jsxs(e.Fragment,{children:[e.jsx(k.GitMerge,{size:12}),"Conditional"]}):e.jsxs(e.Fragment,{children:[e.jsx(k.Settings2,{size:12}),"Condition Not Configured"]}),w={display:"inline-flex",alignItems:"center",gap:6,padding:"4px 10px",borderRadius:9999,fontSize:12,fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",...a?{border:"1px solid rgba(60, 131, 246, 0.30)",background:"rgba(60, 131, 246, 0.10)",color:"#3C83F6"}:i?{border:"1px solid rgba(245, 159, 10, 0.30)",background:"rgba(245, 159, 10, 0.10)",color:"#F59F0A"}:l?{border:"1px solid rgba(13, 148, 136, 0.30)",background:"rgba(13, 148, 136, 0.10)",color:"#0d9488"}:{border:"1px solid #d1d5db",background:"#fff",color:"#9ca3af"}};return e.jsxs("div",{className:F("flex flex-col items-center gap-2",r),children:[s?e.jsx("button",{onClick:s,style:{...w,cursor:"pointer",transition:"all 0.15s"},onMouseEnter:c=>{c.currentTarget.style.opacity="0.8"},onMouseLeave:c=>{c.currentTarget.style.opacity="1"},children:g}):e.jsx("div",{style:w,children:g}),l&&n.length>0&&e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:n.map(c=>e.jsx("span",{className:F("rounded-full border px-3 py-1 text-[11px] font-medium",Cr[c.color]),children:c.label},c.label))})]})}function me({onClick:t,className:n}){return e.jsx("button",{onClick:t,"aria-label":"Add step",className:F("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",n),style:{background:"#F8F9FB"},children:e.jsx(k.Plus,{size:14})})}const Oe=[{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 Ge(){return e.jsx("div",{className:"grid grid-cols-2 gap-[3px] flex-shrink-0",children:Array.from({length:6}).map((t,n)=>e.jsx("div",{className:"h-[4px] w-[4px] rounded-full bg-gray-300"},n))})}function Nr({product:t,iconUrl:n}){return n?e.jsx("img",{src:n,alt:t,className:"flex-shrink-0 rounded-md object-cover",style:{width:28,height:28}}):e.jsx(ae,{product:t,size:"sm"})}function dt({open:t,onClose:n,onSelectProduct:o,onSelectItem:r,subscribedProducts:s,showOnboarding:i=!1,addedProducts:a=[],onboardingAdded:l=!1}){if(!t)return null;const g=new Map((s??[]).filter(b=>b.subdomain).map(b=>[b.subdomain.toLowerCase(),b.icon])),d=s&&s.length>0?Oe.filter(({product:b})=>g.has(b.toLowerCase())):Oe;function w(b){a.includes(b)||(o?.(b),r?.({kind:"product",product:b}),n())}function c(){l||(r?.({kind:"onboarding"}),n())}return e.jsxs("aside",{className:"flex w-[300px] 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.jsxs("div",{className:"flex-1 overflow-y-auto bg-[#f5f6f8] p-2.5 flex flex-col gap-2",children:[d.map(({product:b,description:m})=>{const x=a.includes(b);return e.jsxs("button",{draggable:!x,onDragEnd:()=>!x&&w(b),onClick:()=>w(b),disabled:x,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 transition-all",style:{opacity:x?.4:1,cursor:x?"not-allowed":"grab"},children:[e.jsx(Ge,{}),e.jsx(Nr,{product:b,iconUrl:g.get(b.toLowerCase())}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"text-[12px] font-bold text-gray-900 leading-tight",children:[ye(b),":"]}),e.jsx("p",{className:"text-[10.5px] text-gray-500 leading-tight",children:m})]})]},b)}),i&&e.jsxs("button",{draggable:!l,onDragEnd:()=>!l&&c(),onClick:c,disabled:l,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 transition-all",style:{opacity:l?.4:1,cursor:l?"not-allowed":"grab"},children:[e.jsx(Ge,{}),e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-md flex-shrink-0",style:{background:"linear-gradient(135deg, #16a34a 0%, #22c55e 100%)"},children:e.jsx(k.GraduationCap,{size:14,color:"#fff"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[12px] font-bold text-gray-900 leading-tight",children:"Onboarding:"}),e.jsx("p",{className:"text-[10.5px] text-gray-500 leading-tight",children:"Candidate Onboarding"})]})]})]})]})}const zr={incscreen:"Resume Score Threshold",position:"Resume Score Threshold"};function Ir(t){return zr[t]??"Pass Threshold"}function ft({product:t,onSave:n,onCancel:o}){const[r,s]=z.useState("Automatic"),[i,a]=z.useState(60),[l,g]=z.useState("Qualified"),d=t==="incscreen";function w(){const c={type:r,...r==="Automatic"&&!d&&{threshold:i},...r==="Automatic"&&d&&{advanceOn:l}};n(c)}return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{background:"rgba(0,0,0,0.35)"},onClick:c=>{c.target===c.currentTarget&&o()},children:e.jsxs("div",{className:"relative w-[560px] rounded-xl bg-white shadow-2xl",style:{border:"1px solid #e2e8f0"},children:[e.jsx("button",{onClick:o,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(k.X,{size:16})}),e.jsxs("div",{className:"p-5",children:[e.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Transition after ",ye(t)]}),e.jsx("div",{className:"mt-4 grid grid-cols-2 gap-3",children:["Automatic","Manual"].map(c=>{const b=r===c;return e.jsxs("button",{onClick:()=>s(c),className:"flex flex-col items-center gap-1.5 rounded-lg border py-4 transition-all",style:b?{borderColor:"#12b6bc",background:"#f0fdfe",color:"#0e7490"}:{borderColor:"#e2e8f0",background:"#f8fafc",color:"#64748b"},children:[c==="Automatic"?e.jsx(k.Zap,{size:18,strokeWidth:2,style:{color:b?"#12b6bc":"#94a3b8"}}):e.jsx(k.User,{size:18,strokeWidth:2,style:{color:b?"#12b6bc":"#94a3b8"}}),e.jsx("span",{className:"text-[13px] font-semibold",children:c})]},c)})}),e.jsx("div",{className:"mt-5 min-h-[80px]",children:r==="Automatic"?d?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(c=>{const b=l===c;return e.jsx("button",{onClick:()=>g(c),className:"rounded-lg border py-2.5 text-[12.5px] font-medium transition-all",style:b?{borderColor:"#12b6bc",background:"#f0fdfe",color:"#0e7490"}:{borderColor:"#e2e8f0",background:"#f8fafc",color:"#475569"},children:c},c)})}),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:Ir(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:c=>a(Number(c.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:o,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:w,className:"rounded-lg px-5 py-2 text-[13px] font-semibold text-white transition-opacity hover:opacity-90",style:{background:"#0f1f3d"},children:"Save"})]})]})]})})}const Tr=[{id:"position",type:"position",details:""}];function Ar({title:t="Untitled Pipeline",status:n="draft",initialSteps:o=Tr,onBack:r,onPublish:s,onSaveDraft:i}){const[a,l]=z.useState(t),[g,d]=z.useState(o),[w,c]=z.useState("designer"),[b,m]=z.useState(!1),[x,h]=z.useState(null);function j(S){d(y=>y.filter(A=>A.id!==S))}function I(){m(!0)}function N(S){h(S)}function W(S){if(!x)return;const y=S.type==="Automatic"?"automatic":"manual-review",A={id:`${x}-${Date.now()}`,type:"product",product:x,status:"Configuration Pending",transitionCondition:S,connector:{type:y,...S.type==="Automatic"&&S.threshold!==void 0&&{branches:[{label:`≥ ${S.threshold}%`,color:"green"},{label:`< ${S.threshold}%`,color:"red"}]}}};d(u=>[...u,A]),h(null),m(!1)}function T(){h(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(k.ArrowLeft,{size:16})}),e.jsx("input",{value:a,onChange:S=>l(S.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:n==="active"?{background:"#f0fdf4",color:"#15803d",border:"1px solid #bbf7d0"}:{background:"#f1f5f9",color:"#475569",border:"1px solid #e2e8f0"},children:n}),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:()=>c("designer"),className:`rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${w==="designer"?"text-white shadow-sm":"text-gray-500 hover:text-gray-700"}`,style:w==="designer"?{background:"#0f1f3d"}:{},children:"Designer"}),e.jsxs("button",{onClick:()=>c("run"),className:`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${w==="run"?"text-white shadow-sm":"text-gray-500 hover:text-gray-700"}`,style:w==="run"?{background:"#0f1f3d"}:{},children:[e.jsx(k.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(k.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(k.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:()=>{x||m(!1)},children:e.jsxs("div",{className:"flex flex-col items-center gap-0 w-full max-w-lg mx-auto",children:[g.map((S,y)=>{const A=y===g.length-1,u=S.connector&&S.connector.type!=="simple";return e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsx(lt,{type:S.type,product:S.product,productTag:S.productTag,status:S.status,config:S.config,details:S.details,onDelete:()=>j(S.id),onSettings:()=>m(!0)}),!A&&e.jsxs("div",{className:"flex flex-col items-center py-2",children:[e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}}),u&&S.connector?e.jsxs(e.Fragment,{children:[e.jsx(ct,{type:S.connector.type,branches:S.connector.branches,threshold:S.transitionCondition?.threshold}),e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}})]}):null,e.jsx(me,{onClick:I}),e.jsx("div",{className:"h-4 w-px",style:{background:"#cbd5e1"}})]})]},S.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:I})]})]})}),e.jsx(dt,{open:b,onClose:()=>m(!1),onSelectProduct:N})]}),x&&e.jsx(ft,{product:x,onSave:W,onCancel:T})]})}const Rr="#12b6bc";function ie({user:t,size:n=32,highlighted:o=!1}){const r={outline:o?`2px solid ${Rr}`:"none",outlineOffset:2};if(t.avatarUrl)return e.jsx("img",{src:t.avatarUrl,alt:t.name??"User",style:{width:n,height:n,borderRadius:"50%",objectFit:"cover",flexShrink:0,display:"block",...r}});const s=t.name?t.name.split(" ").map(i=>i[0]).join("").slice(0,2).toUpperCase():"?";return e.jsx("div",{style:{width:n,height:n,borderRadius:"50%",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Manrope', sans-serif",fontSize:Math.round(n*.34),fontWeight:700,color:"#fff",background:"linear-gradient(135deg, #3b82f6 0%, #12b6bc 100%)",...r},children:s})}const $="#12b6bc",Pr="#f5fbf8",Mr="rgba(0,0,0,0.03)",Q="rgba(0,0,0,0.07)",Lr=250,Er=84,pt={maxWidth:"100%",fontFamily:"'Manrope', sans-serif",fontSize:11,lineHeight:"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},Fr=[{label:"My Profile",Icon:k.UserCircle},{label:"Accounts & Billing",Icon:k.CreditCard}];function ge({item:t,active:n,collapsed:o,expanded:r,onNavigate:s,onToggle:i}){const{label:a,href:l,link:g,Icon:d,badge:w,hasChevron:c,expandedContent:b,collapsedExpandedContent:m,onClick:x}=t;if(o&&m)return e.jsx("div",{style:{borderTop:`1px solid ${Q}`,borderBottom:`1px solid ${Q}`},children:m});const h=()=>{x?x():g?window.open(g,"_blank","noopener,noreferrer"):c&&b&&l?i?.(l):l&&s?.(l)};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:h,title:o?a:void 0,style:{display:"flex",flexDirection:o?"column":"row",width:"100%",alignItems:"center",overflow:"hidden",gap:o?4:20,paddingLeft:o?4:15,paddingRight:o?4:10,paddingTop:10,paddingBottom:10,background:n?Pr:"transparent",borderLeft:n?`2px solid ${$}`:"2px solid transparent",borderTop:"none",borderRight:"none",borderBottom:"none",borderRadius:0,cursor:"pointer",outline:"none",transition:"background 0.12s"},onMouseEnter:j=>{n||(j.currentTarget.style.background=Mr)},onMouseLeave:j=>{n||(j.currentTarget.style.background="transparent")},children:[e.jsx(d,{size:22,style:{flexShrink:0,color:n?$:"#9ca3af",display:"block"}}),o?e.jsx("span",{style:{...pt,fontWeight:n?700:500,color:n?$:"#000"},children:a}):e.jsx(e.Fragment,{children:e.jsxs("span",{style:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:10},children:[e.jsx("span",{style:{textAlign:"left",fontFamily:"'Manrope', sans-serif",fontSize:14,lineHeight:"24px",fontWeight:n?700:500,color:n?$:"#000",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:a}),w!==void 0&&e.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:20,minWidth:20,paddingInline:4,borderRadius:10,background:"rgba(18,182,188,0.14)",color:$,fontSize:11,fontWeight:600,flexShrink:0},children:w}),c&&e.jsx(k.ChevronDown,{size:16,style:{flexShrink:0,marginLeft:"auto",color:"#9ca3af",transform:r&&b?"none":"rotate(-90deg)",transition:"transform 0.2s"}})]})})]}),!o&&r&&b&&e.jsx("div",{style:{maxHeight:320,overflowY:"auto"},children:b})]})}function Wr({name:t,icon:n,active:o,onClick:r,collapsed:s=!1}){return e.jsxs("button",{onClick:r,title:s?t:void 0,style:{display:"flex",flexDirection:s?"column":"row",alignItems:"center",gap:s?4:10,width:"100%",padding:s?"8px 4px":"9px 10px 9px 57px",textAlign:"left",fontFamily:"'Manrope', sans-serif",fontSize:14,lineHeight:"22px",fontWeight:o?700:400,color:o?$:"#374151",background:o?"rgba(18,182,188,0.08)":"transparent",borderLeft:o?`2px solid ${$}`:"2px solid transparent",borderTop:"none",borderRight:"none",borderBottom:"none",cursor:"pointer",outline:"none",transition:"background 0.12s, color 0.12s"},onMouseEnter:i=>{o||(i.currentTarget.style.background="rgba(0,0,0,0.03)",i.currentTarget.style.color="#111")},onMouseLeave:i=>{o||(i.currentTarget.style.background="transparent",i.currentTarget.style.color="#374151")},children:[n?e.jsx("img",{src:n,alt:t,style:{width:22,height:22,borderRadius:4,objectFit:"cover",flexShrink:0}}):e.jsx("div",{style:{width:22,height:22,borderRadius:4,flexShrink:0,background:o?"rgba(18,182,188,0.15)":"rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:700,color:o?$:"#9CA3AF"},children:t.charAt(0)}),e.jsx("span",{style:s?{...pt,fontWeight:o?700:500}:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})]})}function Br({logoSrc:t,user:n,navItems:o=[],otherItems:r=[],profileItems:s,activeHref:i="/",onNavigate:a,collapsed:l,onToggleCollapse:g,defaultExpandedItem:d,children:w}){const c=s??Fr,b=!!n&&c.some(y=>y.href&&i&&(i===y.href||i.startsWith(y.href+"/"))),[m,x]=z.useState(!1),h=l!==void 0?l:m,j=g?y=>{const A=typeof y=="function"?y(h):y;g(A)}:y=>x(typeof y=="function"?y(m):y),[I,N]=z.useState(b),[W,T]=z.useState(d??null);z.useEffect(()=>{b&&N(!0)},[b]),z.useEffect(()=>{h||T(d??null)},[h,d]);const S=y=>{T(A=>A===y?null:y)};return e.jsxs("div",{style:{display:"flex",height:"100%"},children:[e.jsxs("aside",{style:{width:h?Er:Lr,flexShrink:0,display:"flex",flexDirection:"column",height:"100%",background:"#fff",borderRight:`1px solid ${Q}`,transition:"width 0.2s ease",overflow:"hidden",zIndex:100},children:[e.jsxs("div",{style:{height:52,flexShrink:0,display:"flex",alignItems:"center",justifyContent:h?"center":"space-between",padding:"6px 10px 6px 14px"},children:[!h&&t&&e.jsx("img",{src:t,alt:"Logo",style:{height:40,width:"auto",objectFit:"contain"}}),e.jsx("button",{onClick:()=>j(y=>!y),style:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:6,border:"none",background:"transparent",color:"#9ca3af",cursor:"pointer",flexShrink:0,outline:"none"},onMouseEnter:y=>y.currentTarget.style.background="#f3f4f6",onMouseLeave:y=>y.currentTarget.style.background="transparent","aria-label":"Toggle sidebar",children:e.jsx(k.Menu,{size:20})})]}),n&&e.jsxs("div",{style:{flexShrink:0},children:[e.jsxs("button",{onClick:()=>{h?(j(!1),N(!0)):N(y=>!y)},style:{display:"flex",width:"100%",alignItems:"center",gap:12,padding:12,justifyContent:h?"center":void 0,background:b?"#f5fbf8":"rgba(18,182,188,0.05)",borderLeft:b?"2px solid #12b6bc":"2px solid transparent",borderTop:"none",borderRight:"none",borderBottom:"none",cursor:"pointer",outline:"none"},children:[e.jsx(ie,{user:n,size:32,highlighted:b}),!h&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{flex:1,minWidth:0,textAlign:"left"},children:[e.jsx("p",{style:{margin:0,fontFamily:"'Manrope', sans-serif",fontSize:14,fontWeight:500,color:"#000",lineHeight:1.45,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.name??"User"}),e.jsx("p",{style:{margin:0,fontFamily:"'Manrope', sans-serif",fontSize:12,fontWeight:400,color:"#3f3f3f",lineHeight:1.5,marginTop:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.role??""})]}),e.jsx(k.ChevronsUpDown,{size:16,style:{color:"#9ca3af",flexShrink:0}})]})]}),(I||h&&b)&&e.jsx(e.Fragment,{children:c.map(y=>e.jsx(ge,{item:{...y,onClick:y.onClick?()=>{h||N(!1),y.onClick?.()}:y.link?()=>{h||N(!1),window.open(y.link,"_blank","noopener,noreferrer")}:void 0},active:!!(y.href&&i&&(i===y.href||i.startsWith(y.href+"/"))),collapsed:h,onNavigate:a,onToggle:S},y.label))})]}),e.jsx("nav",{style:{flex:1,overflowY:"auto"},children:o.map(y=>e.jsx(ge,{item:y,active:i===y.href,expanded:W===y.href,collapsed:h,onNavigate:a,onToggle:S},y.href??y.label))}),r.length>0&&e.jsxs("div",{style:{flexShrink:0},children:[!h&&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:"'Manrope', sans-serif",borderBottom:`1px solid ${Q}`},children:"OTHER"}),h&&e.jsx("div",{style:{height:8,borderTop:`1px solid ${Q}`}}),r.map(y=>e.jsx(ge,{item:y,active:i===y.href,collapsed:h,onNavigate:a,onToggle:S},y.href??y.label)),e.jsx("div",{style:{height:16}})]})]}),e.jsx("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:w})]})}const xt="rgba(0,0,0,0.07)",$e="#12b6bc";function gt({user:t,items:n,onNavigate:o,buttonLabel:r="Profile menu",title:s,zIndex:i=1050}){const[a,l]=z.useState(!1),[g,d]=z.useState(null),w=z.useRef(null),c=z.useRef(null);z.useEffect(()=>{if(!a)return;const m=h=>{const j=h.target;w.current?.contains(j)||c.current?.contains(j)||l(!1)},x=h=>{h.key==="Escape"&&l(!1)};return document.addEventListener("mousedown",m),document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",x)}},[a]),z.useLayoutEffect(()=>{if(!a)return;const m=()=>{const x=w.current?.getBoundingClientRect();x&&d({top:x.bottom+8,right:window.innerWidth-x.right})};return m(),window.addEventListener("resize",m),window.addEventListener("scroll",m,!0),()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",m,!0)}},[a]);const b=m=>{l(!1),m.onClick?m.onClick():m.link?window.open(m.link,"_blank","noopener,noreferrer"):m.href&&o?.(m.href)};return e.jsxs(e.Fragment,{children:[e.jsx("button",{ref:w,onClick:()=>l(m=>!m),"aria-label":r,title:s||void 0,"aria-haspopup":"menu","aria-expanded":a,style:{padding:0,border:"none",borderRadius:"50%",background:"transparent",cursor:"pointer",flexShrink:0,outline:"none"},children:e.jsx(ie,{user:t,size:32,highlighted:a})}),a&&g&&ut.createPortal(e.jsxs("div",{ref:c,role:"menu",style:{position:"fixed",top:g.top,right:g.right,width:260,background:"#fff",border:`1px solid ${xt}`,borderRadius:8,boxShadow:"0 8px 24px rgba(0,0,0,0.12)",overflow:"hidden",zIndex:i},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"12px 16px",background:"rgba(18,182,188,0.06)"},children:[e.jsx(ie,{user:t,size:36}),e.jsxs("div",{style:{minWidth:0},children:[e.jsx("p",{style:{margin:0,fontFamily:"'Manrope', sans-serif",fontSize:14,fontWeight:600,color:"#000",lineHeight:1.45,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name||"User"}),t.role&&e.jsx("p",{style:{margin:0,fontFamily:"'Manrope', sans-serif",fontSize:12,color:"#3f3f3f",lineHeight:1.5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.role})]})]}),n.map(m=>e.jsxs("button",{role:"menuitem",onClick:()=>b(m),style:{display:"flex",alignItems:"center",gap:16,width:"100%",padding:"11px 16px",background:"transparent",border:"none",cursor:"pointer",outline:"none",transition:"background 0.12s"},onMouseEnter:x=>x.currentTarget.style.background="#f9fafb",onMouseLeave:x=>x.currentTarget.style.background="transparent",children:[e.jsx(m.Icon,{size:22,style:{flexShrink:0,color:"#9ca3af",display:"block"}}),e.jsx("span",{style:{fontFamily:"'Manrope', sans-serif",fontSize:14,fontWeight:500,color:"#000",whiteSpace:"nowrap"},children:m.label})]},m.label))]}),document.body)]})}function Dr({title:t="",notificationCount:n=0,onBellClick:o,bellRef:r,notificationDropdown:s,leftButton:i,navLinks:a=[],rightExtra:l,user:g,profileItems:d=[],onNavigate:w,navLabel:c,profileButtonLabel:b,profileTitle:m,profileMenuZIndex:x}){const h=a.length>0;return e.jsxs("header",{style:{height:52,flexShrink:0,display:"flex",alignItems:"center",background:"#fff",borderBottom:`1px solid ${xt}`,padding:"0 12px",zIndex:99,gap:16,filter:"drop-shadow(0 3px 6px rgba(0, 0, 0, 0.161))"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,flexShrink:0},children:[i,!h&&e.jsx("h2",{style:{margin:0,fontSize:15,fontWeight:700,color:"#111118",fontFamily:"'Manrope', sans-serif",whiteSpace:"nowrap"},children:t})]}),h&&e.jsxs("nav",{"aria-label":c,style:{display:"flex",alignItems:"stretch",gap:0,height:"100%",flex:1,justifyContent:"flex-end",marginRight:8},children:[l&&e.jsx("div",{style:{display:"flex",alignItems:"center",paddingRight:8},children:l}),a.map((j,I)=>e.jsx("button",{type:"button","aria-current":j.active?"page":void 0,onClick:j.onClick,style:{position:"relative",height:"100%",padding:"0 16px",background:"none",border:"none",borderBottom:j.active?`2px solid ${$e}`:"2px solid transparent",cursor:"pointer",fontFamily:"'Manrope', sans-serif",fontSize:13,fontWeight:j.active?700:500,color:j.active?$e:"#6b7280",whiteSpace:"nowrap",outline:"none",transition:"color 0.15s, border-color 0.15s"},onMouseEnter:N=>{j.active||(N.currentTarget.style.color="#374151")},onMouseLeave:N=>{j.active||(N.currentTarget.style.color="#6b7280")},children:j.label},I))]}),!h&&l&&e.jsx("div",{style:{flexShrink:0,marginLeft:"auto"},children:l}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,flexShrink:0,marginLeft:h||l?0:"auto"},children:[e.jsxs("div",{ref:r,style:{position:"relative"},children:[e.jsxs("button",{onClick:o,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:j=>{j.currentTarget.style.background="#f3f4f6",j.currentTarget.style.color="#6b7280"},onMouseLeave:j=>{j.currentTarget.style.background="transparent",j.currentTarget.style.color="#9ca3af"},"aria-label":"Notifications",children:[e.jsx(k.Bell,{size:16,strokeWidth:1.75}),n>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]}),g&&e.jsx(gt,{user:g,items:d,onNavigate:w,buttonLabel:b,title:m,zIndex:x})]})]})}exports.AIBanner=yr;exports.AddStepButton=me;exports.AppShell=ur;exports.ConditionalBranch=ct;exports.InCruiterSidebar=Br;exports.InCruiterTopBar=Dr;exports.PageHeader=xr;exports.PipelineNode=lt;exports.ProductDragPanel=dt;exports.ProductIcon=ae;exports.ProfileMenu=gt;exports.QuickActionCard=br;exports.SearchBar=pr;exports.Sidebar=it;exports.SidebarSubItem=Wr;exports.StatusBadge=dr;exports.SubscriptionCard=hr;exports.TopBar=at;exports.TransitionConditionDialog=ft;exports.UserAvatar=ie;exports.WelcomeBanner=mr;exports.WorkflowDesigner=Ar;exports.WorkflowListItem=vr;exports.WorkflowTemplateCard=wr;exports.getProductLabel=ye;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|