PageSourceSearch

https://app.turnozo.com/assets/_appLayout-D7bmGbHn.js

js turnozo.com collected 2026-09-28 10:36:05 UTC 130,522 bytes, 33 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0193d-a26a-7c62-a16e-7777b8623659")}catch(e){}}();import{m as xt,r as Z,n as bt,o as Ct,p as me,c as A,j as l,q as R,u as q,s as be,T as I,B as ie,S as Ce,v as ye,x as yt,y as _e,f as ae,z as _t,A as ue,D as le,E as ee,F as vt,G as ve,H as Me,I as jt,J as Ge,K as Lt,b as St,M as qe,N as We,P as wt,Q as Nt,t as kt,R as Ae,g as Tt,U as Be,V as Pt,W as Mt,X as At,Y as Bt,Z as It,_ as Ot,$ as Ut,O as Et,a0 as Rt}from"./index-BrrDycJc.js";import{u as pe}from"./useSuspenseQuery-CphnBbpU.js";import{T as Ie,a as Oe,b as Ue,c as zt,P as $t,d as Dt,e as Ht}from"./popover-DF0NSsCk.js";import{u as Ee,a as je,b as Ke,B as Vt,c as Ft,P as Zt}from"./pro-upgrade-dialog-YHYUHDDB.js";import{C as Qe}from"./clock-3-DgaI232f.js";import{U as Ye}from"./users-BTzuaP8a.js";import{C as Gt,a as qt,b as Wt}from"./collapsible-DwWzfjuE.js";import"./input-class-name-CLpWM5B0.js";import{X as Kt}from"./x-E2J_ExBq.js";import{R as Qt,T as Yt,D as Xt,C as Jt,P as es,a as ts,O as ss,b as ls}from"./textarea-yqvxCBGR.js";import{C as is}from"./chevron-right-C67pYrV2.js";import{A as as,a as ns,b as os,U as Re}from"./user-avatar-Dit012_m.js";import{u as rs,C as cs}from"./current-organization-DBnYvl3j.js";import{H as ds,C as fs,T as ms,I as ps}from"./team-B1Rnwp9O.js";import{C as us}from"./calendar-DCSxLE40.js";import{u as gs}from"./use-current-billing-fyWlVQUc.js";import{S as Xe}from"./sparkles-WGM893nQ.js";import{D as Le,a as Se,b as we,c as Ne,d as ke}from"./dialog-QG_DREPA.js";import{s as hs,r as xs}from"./stop-convex-for-auth-change-Ds1ojJOn.js";import{L as Je,A as bs}from"./app-store-badges-8Y6_fLlW.js";import{L as Cs}from"./language-selector-BWZGut9R.js";import{D as et,a as tt,b as ze,c as de,d as ys,e as st,f as lt}from"./dropdown-menu-C_wvrZgp.js";import{B as _s}from"./bell-DON459IN.js";import{B as $e}from"./badge-DJm4Hqap.js";import{u as vs,g as js}from"./notifications-DUikn_44.js";import{u as Ls}from"./use-time-format-D-chAty5.js";import{C as Ss}from"./check-4P7fJ2mN.js";import{u as ws,R as it}from"./use-authenticated-shell-auth-BpWnBxuJ.js";import{s as Ns,a as ks}from"./segmented-control-B0repPE5.js";import{u as Ts}from"./use-support-impersonation-DXqYa9DB.js";import{S as Ps}from"./shield-alert-lsF_47w0.js";import"./index-CXZCay7u.js";import"./index-jjkLF7kJ.js";import"./index-JzjpaTA2.js";import"./index-Br_TbOzh.js";import"./index-DkVNVtgg.js";import"./calendar-days-o4mrIiCC.js";import"./parseISO-CRU56lVM.js";function Ms(t){const e=xt(),s=Z.useRef(void 0);return bt(e.stores.location,a=>{const i=a;if(e.options.defaultStructuralSharing){const n=Ct(s.current,i);return s.current=n,n}return i})}/**
2 * @license lucide-react v0.553.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const As=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bs=me("badge-check",As);/**
7 * @license lucide-react v0.553.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Is=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Os=me("bug",Is);/**
12 * @license lucide-react v0.553.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const Us=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],Es=me("circle-ellipsis",Us);/**
17 * @license lucide-react v0.553.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const Rs=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],zs=me("credit-card",Rs);/**
22 * @license lucide-react v0.553.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const $s=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Ds=me("lightbulb",$s);/**
27 * @license lucide-react v0.553.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */const Hs=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Vs=me("panel-left",Hs);function Fs(t){const e=A.c(16);let s,a,i;e[0]!==t?({fill:i,secondaryfill:a,...s}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i):(s=e[1],a=e[2],i=e[3]);let n,d,r,o;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6Z",fill:"url(#1752500502788-6080933_gear_existing_0_2z1iprimi)","data-glass":"origin",mask:"url(#1752500502788-6080933_gear_mask_lza70t7q1)"}),d=l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6Z",fill:"url(#1752500502788-6080933_gear_existing_0_2z1iprimi)","data-glass":"clone",filter:"url
31(#1752500502788-6080933_gear_filter_8bx0dpzso)",clipPath:"url(#1752500502788-6080933_gear_clipPath_b5f224jfy)"}),r=l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3447 1C13.7426 1.00011 13.9999 1.33303 14 1.70801C14 2.5955 14.6355 3.34891 15.4551 3.68945C16.2743 4.0297 17.2358 3.93568 17.8633 3.30859C18.1288 3.04342 18.5464 2.9898 18.8281 3.27148L20.7285 5.17188C21.0095 5.45283 20.9573 5.87076 20.6924 6.13574C20.0645 6.76325 19.9699 7.72518 20.3105 8.54492C20.6512 9.36445 21.4045 10 22.292 10C22.667 10.0001 22.9999 10.2575 23 10.6553V13.3447C22.9999 13.7426 22.667 13.9999 22.292 14C21.4047 14 20.6515 14.6349 20.3105 15.4541C19.9697 16.2735 20.0639 17.2357 20.6914 17.8633C20.9566 18.1287 21.0102 18.5464 20.7285 18.8281L18.8281 20.7285C18.5464 21.0103 18.1288 20.9565 17.8633 20.6914C17.2358 20.0639 16.2736 19.9701 15.4541 20.3105C14.6351 20.651 14.0002 21.4031 14 22.29C14 22.6656 13.7427 23 13.3438 23H10.6562C10.2576 23 10.0002 22.6664 10 22.291C10 21.4036 9.3645 20.6508 8.54492 20.3105C7.72514 19.9703 6.76322 20.0637 6.13574 20.6914C5.87074 20.9566 5.45301 21.0096 5.17188 20.7285L3.27148 18.8281C2.9898 18.5464 3.04342 18.1288 3.30859 17.8633C3.93568 17.2358 4.0297 16.2743 3.68945 15.4551C3.34891 14.6355 2.5955 14 1.70801 14C1.33303 13.9999 1.00011 13.7426 1 13.3447V10.6553C1.00011 10.2575 1.33301 10 1.70801 10C2.59557 10 3.34809 9.36461 3.68848 8.54492C4.02888 7.72515 3.93527 6.7634 3.30762 6.13574C3.04283 5.87087 2.99006 5.45378 3.27051 5.17285L5.17285 3.27051C5.45378 2.99006 5.87087 3.04283 6.13574 3.30762C6.7634 3.93527 7.72515 4.02888 8.54492 3.68848C9.36461 3.34809 10 2.59557 10 1.70801C10 1.33301 10.2575 1.00011 10.6553 1H13.3447ZM12 7.5C9.51472 7.5 7.5 9.51472 7.5 12C7.5 14.4853 9.51472 16.5 12 16.5C14.4853 16.5 16.5 14.4853 16.5 12C16.5 9.51472 14.4853 7.5 12 7.5Z",fill:"url(#1752500502788-6080933_gear_existing_1_v6y0vtbxg)","data-glass":"blur"}),o=l.jsx("path",{d:"M13.3447 1C13.7426 1.00011 13.9999 1.33303 14 1.70801C14 2.5955 14.6355 3.34891 15.4551 3.68945C16.2743 4.0297 17.2358 3.93568 17.8633 3.30859C18.1288 3.04342 18.5464 2.9898 18.8281 3.27148L20.7285 5.17188C21.0095 5.45283 20.9573 5.87076 20.6924 6.13574C20.0645 6.76325 19.9699 7.72518 20.3105 8.54492C20.6512 9.36445 21.4045 10 22.292 10C22.667 10.0001 22.9999 10.2575 23 10.6553V13.3447C22.9999 13.7426 22.667 13.9999 22.292 14C21.4047 14 20.6515 14.6349 20.3105 15.4541C19.9697 16.2735 20.0639 17.2357 20.6914 17.8633C20.9566 18.1287 21.0102 18.5464 20.7285 18.8281L18.8281 20.7285C18.5464 21.0103 18.1288 20.9565 17.8633 20.6914C17.2358 20.0639 16.2736 19.9701 15.4541 20.3105C14.6351 20.651 14.0002 21.4031 14 22.29C14 22.6656 13.7427 23 13.3438 23H10.6562C10.2576 23 10.0002 22.6664 10 22.291C10 21.4036 9.3645 20.6508 8.54492 20.3105C7.72514 19.9703 6.76322 20.0637 6.13574 20.6914C5.87074 20.9566 5.45301 21.0096 5.17188 20.7285L3.27148 18.8281C2.9898 18.5464 3.04342 18.1288 3.30859 17.8633C3.93568 17.2358 4.0297 16.2743 3.68945 15.4551C3.34891 14.6355 2.5955 14 1.70801 14C1.33303 13.9999 1.00011 13.7426 1 13.3447V10.6553C1.00011 10.2575 1.33301 10 1.70801 10C2.59557 10 3.34809 9.36461 3.68848 8.54492C4.02888 7.72515 3.93527 6.7634 3.30762 6.13574C3.04283 5.87087 2.99006 5.45378 3.27051 5.17285L5.17285 3.27051C5.45378 2.99006 5.87087 3.04283 6.13574 3.30762C6.7634 3.93527 7.72515 4.02888 8.54492 3.68848C9.36461 3.34809 10 2.59557 10 1.70801C10 1.33301 10.2575 1.00011 10.6553 1H13.3447ZM10.748 1.75C10.7285 2.99383 9.84617 3.95994 8.83301 4.38086C7.80936 4.80592 6.5239 4.72648 5.63672 3.86621L3.86621 5.63672C4.72648 6.5239 4.80592 7.80936 4.38086 8.83301C3.95994 9.84617 2.99382 10.7285 1.75 10.748V13.251C2.99359 13.2705 3.96068 14.1537 4.38184 15.167C4.80701 16.1907 4.72613 17.4755 3.86621 18.3623L5.63574 20.1318C6.52284 19.2714 7.80872 19.1935 8.83203 19.6182C9.84564 20.039 10.729 21.0057 10.748 22.25H13.252C13.2708 21.0059 14.1529 20.0394 15.166 19.6182C16.1896 19.1929 17.4754 19.2728 18.3623 20.1328L20.1328 18.3623C19.2729 17.4754 19.1922 16.1899 19.6182 15.166L19.7041 14.9756C20.1626 14.0447 21.0852 13.2692 22.25 13.251V10.748C21.0063 10.7285 20.0394 9.84609 19.6182 8.83301C19.1926 7.80892 19.2731 6.52338 20.1328 5.63672L18.3623 3.86621C17.4755 4.72613 16.1907 4.80701 15.167 4.38184C14.1537 3.96068 13.2715 2.99358 13.252 1.75H10.748Z",fill:"url(#1752500502788-6080933_gear_existing_2_1vqoz2c6t)"}),e[4]=n,e[5]=d,e[6]=r,e[7]=o):(n=e[4],d=e[5],r=e[6],o=e[7]);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsxs("linearGradient",{id:"1752500502788-6080933_gear_existing_0_2z1iprimi",x1:"12",y1:"6",x2:"12",y2:"18",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"#575757"}),l.jsx("stop",{offset:"1",stopColor:"#151515"})]}),e[8]=c):c=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsxs("linearGradient",{id:"1752500502788-6080933_gear_existing_1_v6y0vtbxg",x1:"12",y1:"1",x2:"12",y2:"23",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"#E3E3E5",stopOpacity:".6"}),l.jsx("stop",{offset:"1",stopColor:"#BBBBC0",stopOpacity:".6"})]}),e[9]=m):m=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsxs("linearGradient",{id:"1752500502788-6080933_gear_existing_2_1vqoz2c6t",x1:"12",y1:"1",x2:"12",y2:"15",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"#fff",stopOpacity:"1"}),l.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0"})]}),e[10]=u):u=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx("filter",{id:"1752500502788-6080933_gear_filter_8bx0dpzso",x:"-100%",y:"-100%",width:"400%",height:"400%",filterUnits:"objectBoundingBox",primitiveUnits:"userSpaceOnUse",children:l.jsx("feGaussianBlur",{stdDeviation:"2",x:"0%",y:"0%",width:"100%",height:"100%",in:"SourceGraphic",edgeMode:"none",result:"blur"})}),e[11]=g):g=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("clipPath",{id:"1752500502788-6080933_gear_clipPath_b5f224jfy",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3447 1C13.7426 1.00011 13.9999 1.33303 14 1.70801C14 2.5955 14.6355 3.34891 15.4551 3.68945C16.2743 4.0297 17.2358 3.93568 17.8633 3.30859C18.1288 3.04342 18.5464 2.9898 18.8281 3.27148L20.7285 5.17188C21.0095 5.45283 20.9573 5.87076 20.6924 6.13574C20.0645 6.76325 19.9699 7.72518 20.3105 8.54492C20.6512 9.36445 21.4045 10 22.292 10C22.667 10.0001 22.9999 10.2575 23 10.6553V13.3447C22.9999 13.7426 22.667 13.9999 22.292 14C21.4047 14 20.6515 14.6349 20.3105 15.4541C19.9697 16.2735 20.0639 17.2357 20.6914 17.8633C20.9566 18.1287 21.0102 18.5464 20.7285 18.8281L18.8281 20.7285C18.5464 21.0103 18.1288 20.9565 17.8633 20.6914C17.2358 20.0639 16.2736 19.9701 15.4541 20.3105C14.6351 20.651 14.0002 21.4031 14 22.29C14 22.6656 13.7427 23 13.3438 23H10.6562C10.2576 23 10.0002 22.6664 10 22.291C10 21.4036 9.3645 20.6508 8.54492 20.3105C7.72514 19.9703 
316.76322 20.0637 6.13574 20.6914C5.87074 20.9566 5.45301 21.0096 5.17188 20.7285L3.27148 18.8281C2.9898 18.5464 3.04342 18.1288 3.30859 17.8633C3.93568 17.2358 4.0297 16.2743 3.68945 15.4551C3.34891 14.6355 2.5955 14 1.70801 14C1.33303 13.9999 1.00011 13.7426 1 13.3447V10.6553C1.00011 10.2575 1.33301 10 1.70801 10C2.59557 10 3.34809 9.36461 3.68848 8.54492C4.02888 7.72515 3.93527 6.7634 3.30762 6.13574C3.04283 5.87087 2.99006 5.45378 3.27051 5.17285L5.17285 3.27051C5.45378 2.99006 5.87087 3.04283 6.13574 3.30762C6.7634 3.93527 7.72515 4.02888 8.54492 3.68848C9.36461 3.34809 10 2.59557 10 1.70801C10 1.33301 10.2575 1.00011 10.6553 1H13.3447ZM12 7.5C9.51472 7.5 7.5 9.51472 7.5 12C7.5 14.4853 9.51472 16.5 12 16.5C14.4853 16.5 16.5 14.4853 16.5 12C16.5 9.51472 14.4853 7.5 12 7.5Z",fill:"url(#1752500502788-6080933_gear_existing_1_v6y0vtbxg)"})}),e[12]=f):f=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsxs("g",{fill:"none",children:[n,d,r,o,l.jsxs("defs",{children:[c,m,u,g,f,l.jsxs("mask",{id:"1752500502788-6080933_gear_mask_lza70t7q1",children:[l.jsx("rect",{width:"100%",height:"100%",fill:"#FFF"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3447 1C13.7426 1.00011 13.9999 1.33303 14 1.70801C14 2.5955 14.6355 3.34891 15.4551 3.68945C16.2743 4.0297 17.2358 3.93568 17.8633 3.30859C18.1288 3.04342 18.5464 2.9898 18.8281 3.27148L20.7285 5.17188C21.0095 5.45283 20.9573 5.87076 20.6924 6.13574C20.0645 6.76325 19.9699 7.72518 20.3105 8.54492C20.6512 9.36445 21.4045 10 22.292 10C22.667 10.0001 22.9999 10.2575 23 10.6553V13.3447C22.9999 13.7426 22.667 13.9999 22.292 14C21.4047 14 20.6515 14.6349 20.3105 15.4541C19.9697 16.2735 20.0639 17.2357 20.6914 17.8633C20.9566 18.1287 21.0102 18.5464 20.7285 18.8281L18.8281 20.7285C18.5464 21.0103 18.1288 20.9565 17.8633 20.6914C17.2358 20.0639 16.2736 19.9701 15.4541 20.3105C14.6351 20.651 14.0002 21.4031 14 22.29C14 22.6656 13.7427 23 13.3438 23H10.6562C10.2576 23 10.0002 22.6664 10 22.291C10 21.4036 9.3645 20.6508 8.54492 20.3105C7.72514 19.9703 6.76322 20.0637 6.13574 20.6914C5.87074 20.9566 5.45301 21.0096 5.17188 20.7285L3.27148 18.8281C2.9898 18.5464 3.04342 18.1288 3.30859 17.8633C3.93568 17.2358 4.0297 16.2743 3.68945 15.4551C3.34891 14.6355 2.5955 14 1.70801 14C1.33303 13.9999 1.00011 13.7426 1 13.3447V10.6553C1.00011 10.2575 1.33301 10 1.70801 10C2.59557 10 3.34809 9.36461 3.68848 8.54492C4.02888 7.72515 3.93527 6.7634 3.30762 6.13574C3.04283 5.87087 2.99006 5.45378 3.27051 5.17285L5.17285 3.27051C5.45378 2.99006 5.87087 3.04283 6.13574 3.30762C6.7634 3.93527 7.72515 4.02888 8.54492 3.68848C9.36461 3.34809 10 2.59557 10 1.70801C10 1.33301 10.2575 1.00011 10.6553 1H13.3447ZM12 7.5C9.51472 7.5 7.5 9.51472 7.5 12C7.5 14.4853 9.51472 16.5 12 16.5C14.4853 16.5 16.5 14.4853 16.5 12C16.5 9.51472 14.4853 7.5 12 7.5Z",fill:"#000"})]})]})]}),e[13]=p):p=e[13];let h;return e[14]!==s?(h=l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",...s,children:p}),e[14]=s,e[15]=h):h=e[15],h}function Zs(t){const e=A.c(16);let s,a;e[0]!==t?({size:a,...s}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const i=a===void 0?"24px":a;let n,d,r,o;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx("path",{d:"M15.5 19.5C15.5 21.433 13.933 23 12 23C10.06
317 23 8.5 21.433 8.5 19.5C8.5 17.567 10.067 16 12 16C13.933 16 15.5 17.567 15.5 19.5Z",fill:"url(#rfdw1cu6o1m-1752500502766-7626048_bell_existing_0_14lff8flw)","data-glass":"origin",mask:"url(#rfdw1cu6o1m-1752500502766-7626048_bell_mask_fyq300pns)"}),d=l.jsx("path",{d:"M15.5 19.5C15.5 21.433 13.933 23 12 23C10.067 23 8.5 21.433 8.5 19.5C8.5 17.567 10.067 16 12 16C13.933 16 15.5 17.567 15.5 19.5Z",fill:"url(#rfdw1cu6o1m-1752500502766-7626048_bell_existing_0_14lff8flw)","data-glass":"clone",filter:"url(#rfdw1cu6o1m-1752500502766-7626048_bell_filter_44txncefw)",clipPath:"url(#rfdw1cu6o1m-1752500502766-7626048_bell_clipPath_wi1z96ji7)"}),r=l.jsx("path",{d:"M4 9C4 4.58172 7.58172 1 12 1C16.4183 1 20 4.58172 20 9V12.1246C20 12.7003 20.134 13.2681 20.3915 13.783L20.6845 14.3689C21.4512 15.9024 21.8345 16.6691 21.7425 17.2923C21.662 17.8365 21.361 18.3236 20.9102 18.6389C20.3939 19 19.5367 19 17.8223 19H6.17771C4.46327 19 3.60606 19 3.08979 18.6389C2.63898 18.3236 2.33795 17.8365 2.25755 17.2923C2.16546 16.6691 2.54882 15.9024 3.31554 14.3689L3.60851 13.783C3.86597 13.2681 4 12.7003 4 12.1246V9Z",fill:"url(#rfdw1cu6o1m-1752500502766-7626048_bell_existing_1_cf31vy2bg)","data-glass":"blur"}),o=l.jsx("path",{d:"M17.8223 18.25V19H6.17776V18.25H17.8223ZM19.25 12.125V9C19.25 4.99594 16.0041 1.75 12 1.75C7.99596 1.75 4.75002 4.99594 4.75002 9V12.125C4.74996 12.8169 4.58873 13.4993 4.27932 14.1182L3.98635 14.7041C3.59657 15.4837 3.32785 16.0227 3.16311 16.4443C2.99806 16.8669 2.9819 17.0663 2.99905 17.1826C3.0493 17.5227 3.23782 17.8273 3.51955 18.0244C3.6159 18.0918 3.80101 18.1666 4.25295 18.208C4.7038 18.2493 5.30599 18.25 6.17776 18.25V19L5.04494 18.9941C4.13826 18.9786 3.57614 18.9205 3.19045 18.7021L3.08987 18.6387C2.69536 18.3627 2.41547 17.9554 2.29787 17.4932L2.25783 17.292C2.18889 16.8246 2.38661 16.2764 2.8135 15.3848L3.31545 14.3691L3.60842 13.7832C3.83372 13.3326 3.96501 12.8413 3.99416 12.3398L4.00002 12.125V9C4.00002 4.58172 7.58174 1 12 1C16.4183 1 20 4.58172 20 9V12.125L20.0059 12.3398C20.035 12.8413 20.1663 13.3326 20.3916 13.7832L20.6846 14.3691C21.4511 15.9022 21.8341 16.6688 21.7422 17.292C21.6618 17.8362 21.3609 18.3234 20.9102 18.6387C20.3939 18.9998 19.5367 19 17.8223 19V18.25C18.6941 18.25 19.2962 18.2493 19.7471 18.208C20.199 18.1666 20.3841 18.0918 20.4805 18.0244C20.7622 17.8273 20.9507 17.5227 21.001 17.1826C21.0181 17.0663 21.002 16.8669 20.8369 16.4443C20.6722 16.0227 20.4035 15.4837 20.0137 14.7041L19.7207 14.1182C19.4113 13.4993 19.2501 12.8169 19.25 12.125Z",fill:"url(#rfdw1cu6o1m-1752500502766-7626048_bell_existing_2_82e85sl3p)"}),e[3]=n,e[4]=d,e[5]=r,e[6]=o):(n=e[3],d=e[4],r=e[5],o=e[6]);let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsxs("linearGradient",{id:"rfdw1cu6o1m-1752500502766-7626048_bell_existing_0_14lff8flw",x1:"12",y1:"16",x2:"12",y2:"23",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-gradient-1-color-1,#575757)","data-glass-11":"on"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-gradient-1-color-2,#151515)","data-glass-12":"on"})]}),e[7]=c):c=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsxs("linearGradient",{id:"rfdw1cu6o1m-1752500502766-7626048_bell_existing_1_cf31vy2bg",x1:"12",y1:"1",x2:"12",y2:"19",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-gradient-2-color-1,#E3E3E599)","data-glass-21":"on"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-gradient-2-color-2,#BBBBC099)","data-glass-22":"on"})]}),e[8]=m):m=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsxs("linearGradient",{id:"rfdw1cu6o1m-1752500502766-7626048_bell_existing_2_82e85sl3p",x1:"12",y1:"1",x2:"12",y2:"11.424",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-light,#fff)","data-glass-light":"on"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-light,#fff)",stopOpacity:"0","data-glass-light":"on"})]}),e[9]=u):u=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx("filter",{id:"rfdw1cu6o1m-1752500502766-7626048_bell_filter_44txncefw",x:"-100%",y:"-100%",width:"400%",height:"400%",filterUnits:"objectBoundingBox",primitiveUnits:"userSpaceOnUse",children:l.jsx("feGaussianBlur",{stdDeviation:"2",x:"0%",y:"0%",width:"100%",height:"100%",in:"SourceGraphic",edgeMode:"none",result:"blur"})}),e[10]=g):g=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("clipPath",{id:"rfdw1cu6o1m-1752500502766-7626048_bell_clipPath_wi1z96ji7",children:l.jsx("path",{d:"M4 9C4 4.58172 7.58172 1 12 1C16.4183 1 20 4.58172 20 9V12.1246C20 12.7003 20.134 13.2681 20.3915 13.783L20.6845 14.3689C21.4512 15.9024 21.8345 16.6691 21.7425 17.2923C21.662 17.8365 21.361 18.3236 20.9102 18.6389C20.3939 19 19.5367 19 17.8223 19H6.17771C4.46327 19 3.60606 19 3.08979 18.6389C2.63898 18.3236 2.33795 17.8365 2.25755 17.2923C2.16546 16.6691 2.54882 15.9024 3.31554 14.3689L3.60851 13.783C3.86597 13.2681 4 12.7003 4 12.1246V9Z",fill:"url(#rfdw1cu6o1m-1752500502766-7626048_bell_existing_1_cf31vy2bg)"})}),e[11]=f):f=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsxs("g",{fill:"none",className:"nc-icon-wrapper",children:[n,d,r,o,l.jsxs("defs",{children:[c,m,u,g,f,l.jsxs("mask",{id:"rfdw1cu6o1m-1752500502766-7626048_bell_mask_fyq300pns",children:[l.jsx("rect",{width:"100%",height:"100%",fill:"#FFF"}),l.jsx("path",{d:"M4 9C4 4.58172 7.58172 1 12 1C16.4183 1 20 4.58172 20 9V12.1246C20 12.7003 20.134 13.2681 20.3915 13.783L20.6845 14.3689C21.4512 15.9024 21.8345 16.6691 21.7425 17.2923C21.662 17.8365 21.361 18.3236 20.9102 18.6389C20.3939 19 19.5367 19 17.8223 19H6.17771C4.46327 19 3.60606 19 3.08979 18.6389C2.63898 18.3236 2.33795 17.8365 2.25755 17.2923C2.16546 16.6691 2.54882 15.9024 3.31554 14.3689L3.60851 13.783C3.86597 13.2681 4 12.7003 4 12.1246V9Z",fill:"#000"})]})]})]}),e[12]=p):p=e[12];let h;return e[13]!==s||e[14]!==i?(h=l.jsx("svg",{width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:p}),e[13]=s,e[14]=i,e[15]=h):h=e[15],h}function Gs(t){const e=A.c(17);let s,a;e[0]!==t?({title:a,...s}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const i=a===void 0?"plane":a;let n;e[3]!==i?(n=l.jsx("title",{children:i}),e[3]=i,e[4]=n):n=e[4];let d,r,o,c;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx("path",{d:"M19.62 2.63C20.19 2.4 20.83 2.52 21.27 2.96C21.71 3.4 21.83 4.04 21.6 4.61L21.38 5.16C21.1 5.87 20.66 6.51 20.12 7.05L16.19 10.98L18.51 18.07C18.65 18.48 18.54 18.93 18.24 19.23L17.51 19.96C17.02 20.45 16.18 20.26 15.9
316 19.6L12.91 14.17L10.54 16.54L10.58 19.13C10.59 19.47 10.46 19.8 10.21 20.04L9.7 20.55C9.2 21.06 8.34 20.82 8.16 20.14L7.25 16.77L3.88 15.86C3.2 15.68 2.96 14.82 3.47 14.32L3.98 13.81C4.22 13.56 4.55 13.43 4.89 13.44L7.48 13.48L9.85 11.11L4.42 8.06C3.76 7.84 3.57 7 4.06 6.51L4.79 5.78C5.09 5.48 5.54 5.37 5.95 5.51L13.04 7.83L16.97 3.9C17.51 3.36 18.15 2.92 18.86 2.64L19.62 2.63Z",fill:"url(#plane_blur_fill)","data-glass":"blur"}),r=l.jsx("path",{d:"M5.95 5.51L4.06 6.51L4.42 8.06L9.85 11.11L13.04 7.83L5.95 5.51Z",fill:"url(#plane_origin_fill)","data-glass":"origin"}),o=l.jsx("path",{d:"M5.95 5.51L4.06 6.51L4.42 8.06L9.85 11.11L13.04 7.83L5.95 5.51Z",fill:"url(#plane_origin_fill)","data-glass":"clone",filter:"url(#plane_filter)",clipPath:"url(#plane_lens_clip)"}),c=l.jsx("path",{d:"M19.4106 2.34253C20.1893 2.03249 21.0747 2.21247 21.6655 2.80347C22.2562 3.39434 22.4365 4.27957 22.1265 5.05811L21.9067 5.604C21.5705 6.43821 21.0729 7.19797 20.4424 7.83643L20.4434 7.83545L16.9897 11.2891L16.6738 10.3179L19.9116 7.0791C20.4523 6.5364 20.8758 5.89042 21.1626 5.18164L21.3823 4.63574C21.5217 4.28608 21.4413 3.88869 21.1768 3.62402C20.9121 3.35932 20.5147 3.27801 20.1646 3.41748L19.6196 3.6377C18.9094 3.92414 18.2629 4.34693 17.7188 4.88721L17.7178 4.88818L13.4839 9.12305L12.5151 8.80762L17.1882 4.13428C17.8266 3.4955 18.587 2.99841 19.4204 2.66211L19.4106 2.34253Z",fill:"url(#plane_highlight_fill)"}),e[5]=d,e[6]=r,e[7]=o,e[8]=c):(d=e[5],r=e[6],o=e[7],c=e[8]);let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsxs("linearGradient",{id:"plane_origin_fill",x1:"8.7",y1:"5.51",x2:"8.7",y2:"11.11",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-gradient-1-color-1,#575757)"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-gradient-1-color-2,#151515)"})]}),e[9]=m):m=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsxs("linearGradient",{id:"plane_blur_fill",x1:"12.533",y1:"2.521",x2:"12.533",y2:"20.931",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-gradient-2-color-1,#E3E3E5)",stopOpacity:".6"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-gradient-2-color-2,#BBBBC0)",stopOpacity:".6"})]}),e[10]=u):u=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsxs("linearGradient",{id:"plane_highlight_fill",x1:"17.5",y1:"2.187",x2:"17.5",y2:"11.402",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-light,#fff)"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-light,#fff)",stopOpacity:"0"})]}),e[11]=g):g=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("filter",{id:"plane_filter",x:"-100%",y:"-100%",width:"400%",height:"400%",filterUnits:"objectBoundingBox",primitiveUnits:"userSpaceOnUse",children:l.jsx("feGaussianBlur",{stdDeviation:"0.4",x:"0%",y:"0%",width:"100%",height:"100%",in:"SourceGraphic",edgeMode:"none",result:"blur"})}),e[12]=f):f=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsxs("g",{fill:"none",className:"nc-icon-wrapper",children:[d,r,o,c,l.jsxs("defs",{children:[m,u,g,f,l.jsx("clipPath",{id:"plane_lens_clip",children:l.jsx("path",{d:"M19.62 2.63C20.19 2.4 20.83 2.52 21.27 2.96C21.71 3.4 21.83 4.04 21.6 4.61L21.38 5.16C21.1 5.87 20.66 6.51 20.12 7.05L16.19 10.98L18.51 18.07C18.65 18.48 18.54 18.93 18.24 19.23L17.51 19.96C17.02 20.45 16.18 20.26 15.96 19.6L12.91 14.17L10.54 16.54L10.58 19.13C10.59 19.47 10.46 19.8 10.21 20.04L9.7 20.55C9.2 21.06 8.34 20.82 8.16 20.14L7.25 16.77L3.88 15.86C3.2 15.68 2.96 14.82 3.47 14.32L3.98 13.81C4.22 13.56 4.55 13.43 4.89 13.44L7.48 13.48L9.85 11.11L4.42 8.06C3.76 7.84 3.57 7 4.06 6.51L4.79 5.78C5.09 5.48 5.54 5.37 5.95 5.51L13.04 7.83L16.97 3.9C17.51 3.36 18.15 2.92 18.86 2.64L19.62 2.63Z",fill:"url(#plane_blur_fill)"})})]})]}),e[13]=p):p=e[13];let h;return e[14]!==s||e[15]!==n?(h=l.jsxs("svg",{width:"24",height:"24",viewBox:"1.5 1.5 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:[n,p]}),e[14]=s,e[15]=n,e[16]=h):h=e[16],h}function qs(t){const e=A.c(16);let s,a;e[0]!==t?({size:a,...s}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const i=a===void 0?"24px":a;let n,d,r,o;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx("path",{d:"M21.6776 4.18458C22.0463 3.03731 20.9625 1.95364 19.8153 2.32227L2.2772 7.95899C1.05479 8.35081 0.881376 10.0028 1.98423 10.6475L9.16391 14.835L11.2577 18.4243L21.6776 4.18458Z",fill:"url(#paper_plane_origin_fill)","data-glass":"origin",mask:"url(#paper_plane_mask)"}),d=l.jsx("path",{d:"M21.6776 4.18458C22.0463 3.03731 20.9625 1.95364 19.8153 2.32227L2.2772 7.95899C1.05479 8.35081 0.881376 10.0028 1.98423 10.6475L9.16391 14.835L11.2577 18.4243L21.6776 4.18458Z",fill:"url(#paper_plane_origin_fill)","data-glass":"clone",filter:"url
31(#paper_plane_filter)",clipPath:"url(#paper_plane_clip_path)"}),r=l.jsx("path",{d:"M16.04 21.7227L21.6777 4.1846C21.864 3.60492 21.6795 3.04147 21.3033 2.6734L9.16406 14.835L13.3516 22.0137C13.9962 23.1237 15.649 22.9407 16.04 21.7227Z",fill:"url(#paper_plane_blur_fill)","data-glass":"blur"}),o=l.jsx("path",{d:"M21.3037 2.6734C21.6796 3.04139 21.8638 3.60471 21.6777 4.18414L16.04 21.7222C15.649 22.9403 13.9962 23.1233 13.3516 22.0132L9.16406 14.8345L21.3037 2.6734ZM10.1025 14.9556L13.999 21.6353L14 21.6373C14.3171 22.1831 15.133 22.0945 15.3262 21.4927L20.9062 4.13239L10.1025 14.9556Z",fill:"url(#paper_plane_highlight_fill)"}),e[3]=n,e[4]=d,e[5]=r,e[6]=o):(n=e[3],d=e[4],r=e[5],o=e[6]);let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsxs("linearGradient",{id:"paper_plane_origin_fill",x1:"11.501",y1:"2.249",x2:"11.501",y2:"18.424",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-gradient-1-color-1,#575757)","data-glass-11":"on"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-gradient-1-color-2,#151515)","data-glass-12":"on"})]}),e[7]=c):c=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsxs("linearGradient",{id:"paper_plane_blur_fill",x1:"15.458",y1:"2.673",x2:"15.458",y2:"22.75",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-gradient-2-color-1,#E3E3E599)","data-glass-21":"on"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-gradient-2-color-2,#BBBBC099)","data-glass-22":"on"})]}),e[8]=m):m=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsxs("linearGradient",{id:"paper_plane_highlight_fill",x1:"15.457",y1:"2.673",x2:"15.457",y2:"14.3",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-light,#fff)","data-glass-light":"on"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-light,#fff)",stopOpacity:"0","data-glass-light":"on"})]}),e[9]=u):u=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx("filter",{id:"paper_plane_filter",x:"-100%",y:"-100%",width:"400%",height:"400%",filterUnits:"objectBoundingBox",primitiveUnits:"userSpaceOnUse",children:l.jsx("feGaussianBlur",{stdDeviation:"2",x:"0%",y:"0%",width:"100%",height:"100%",in:"SourceGraphic",edgeMode:"none",result:"blur"})}),e[10]=g):g=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("clipPath",{id:"paper_plane_clip_path",children:l.jsx("path",{d:"M16.04 21.7227L21.6777 4.1846C21.864 3.60492 21.6795 3.04147 21.3033 2.6734L9.16406 14.835L13.3516 22.0137C13.9962 23.1237 15.649 22.9407 16.04 21.7227Z"})}),e[11]=f):f=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsxs("g",{fill:"none",className:"nc-icon-wrapper",children:[n,d,r,o,l.jsxs("defs",{children:[c,m,u,g,f,l.jsxs("mask",{id:"paper_plane_mask",children:[l.jsx("rect",{width:"100%",height:"100%",fill:"#FFF"}),l.jsx("path",{d:"M16.04 21.7227L21.6777 4.1846C21.864 3.60492 21.6795 3.04147 21.3033 2.6734L9.16406 14.835L13.3516 22.0137C13.9962 23.1237 15.649 22.9407 16.04 21.7227Z",fill:"#000"})]})]})]}),e[12]=p):p=e[12];let h;return e[13]!==s||e[14]!==i?(h=l.jsx("svg",{width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:p}),e[13]=s,e[14]=i,e[15]=h):h=e[15],h}function Ws(t){const e=A.c(18);let s,a;e[0]!==t?({title:a,...s}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const i=a===void 0?"sparkle":a;let n;e[3]!==i?(n=l.jsx("title",{children:i}),e[3]=i,e[4]=n):n=e[4];let d,r,o,c;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx("path",{d:"M13 9.00531C13.5522 9.00531 13.9999 9.45308 14 10.0053V12.0053H16C16.5522 12.0053 16.9999 12.4531 17 13.0053C16.9998 13.5574 16.5521 14.0053 16 14.0053H14V16.0053C13.9998 16.5574 13.5521 17.0053 13 17.0053C12.4479 17.0053 12.0002 16.5574 12 16.0053V14.0053H10C9.44791 14.0053 9.00025 13.5574 9 13.0053C9.00007 12.4531 9.4478 12.0054 10 12.0053H12V10.0053C12.0001 9.45311 12.4478 9.00536 13 9.00531ZM6.07031 1.34125C6.4044 0.499912 7.59575 0.499853 7.92969 1.34125L9.25 4.66937C9.26453 4.70571 9.29373 4.73396 9.33008 4.74847L12.6592 6.07074C13.5005 6.40477 13.5005 7.59509 12.6592 7.92914L9.33008 9.2514C9.29374 9.2659 9.26454 9.29419 9.25 9.33051L7.92969 12.6586C7.59575 13.5 6.4044 13.5 6.07031 12.6586L4.74902 9.33051C4.73446 9.29418 4.70531 9.26588 4.66895 9.2514L1.34082 7.92914C0.49956 7.59509 0.49956 6.40479 1.34082 6.07074L4.66895 4.74847C4.70533 4.73399 4.73447 4.70572 4.74902 4.66937L6.07031 1.34125Z",fill:"url(#sparkle_origin_fill)","data-glass":"origin",mask:"url(#sparkle_lens_mask)"}),r=l.jsx("path",{d:"M13 9.00531C13.5522 9.00531 13.9999 9.45308 14 10.
310053V12.0053H16C16.5522 12.0053 16.9999 12.4531 17 13.0053C16.9998 13.5574 16.5521 14.0053 16 14.0053H14V16.0053C13.9998 16.5574 13.5521 17.0053 13 17.0053C12.4479 17.0053 12.0002 16.5574 12 16.0053V14.0053H10C9.44791 14.0053 9.00025 13.5574 9 13.0053C9.00007 12.4531 9.4478 12.0054 10 12.0053H12V10.0053C12.0001 9.45311 12.4478 9.00536 13 9.00531ZM6.07031 1.34125C6.4044 0.499912 7.59575 0.499853 7.92969 1.34125L9.25 4.66937C9.26453 4.70571 9.29373 4.73396 9.33008 4.74847L12.6592 6.07074C13.5005 6.40477 13.5005 7.59509 12.6592 7.92914L9.33008 9.2514C9.29374 9.2659 9.26454 9.29419 9.25 9.33051L7.92969 12.6586C7.59575 13.5 6.4044 13.5 6.07031 12.6586L4.74902 9.33051C4.73446 9.29418 4.70531 9.26588 4.66895 9.2514L1.34082 7.92914C0.49956 7.59509 0.49956 6.40479 1.34082 6.07074L4.66895 4.74847C4.70533 4.73399 4.73447 4.70572 4.74902 4.66937L6.07031 1.34125Z",fill:"url(#sparkle_origin_fill)","data-glass":"clone",filter:"url(#sparkle_filter)",clipPath:"url(#sparkle_lens_clip)"}),o=l.jsx("path",{d:"M16.6562 9.21226L14.3939 3.51196C13.893 2.24987 12.1067 2.24971 11.6056 3.51172L9.34194 9.21226C9.31834 9.27153 9.27153 9.31834 9.21226 9.34194L3.51085 11.6059C2.24896 12.107 2.24896 13.893 3.51085 14.3941L9.21226 16.6581C9.27153 16.6817 9.31834 16.7285 9.34194 16.7877L11.6055 22.4883C12.1067 23.7503 13.8929 23.7501 14.3939 22.488L16.6562 16.7877C16.6799 16.7283 16.7273 16.6816 16.7868 16.6581L22.4888 14.3941C23.7507 13.8931 23.7507 12.1069 22.4888 11.6059L16.7868 9.34194C16.7273 9.3184 16.6799 9.27173 16.6562 9.21226Z",fill:"url(#sparkle_blur_fill)","data-glass":"blur"}),c=l.jsx("path",{d:"M11.6054 3.51174C12.1064 2.24985 13.8924 2.24997 14.3934 3.51174L16.6561 9.21194C16.6798 9.27141 16.7275 9.31828 16.787 9.34182L22.4882 11.6055C23.7501 12.1065 23.7501 13.8935 22.4882 14.3946L16.787 16.6582L16.745 16.6797C16.7052 16.7056 16.6739 16.7433 16.6561 16.7881L14.3934 22.4883L14.3427 22.6026C13.8 23.7118 12.1987 23.712 11.6561 22.6026L11.6054 22.4883L9.34168 16.7881C9.31809 16.7288 9.27106 16.6818 9.2118 16.6582L3.51063 14.3946C2.24874 13.8935 2.24874 12.1066 3.51063 11.6055L9.2118 9.34182C9.27106 9.31822 9.31809 9.2712 9.34168 9.21194L11.6054 3.51174ZM13.6972 3.78909C13.4468 3.15817 12.5534 3.15751 12.3026 3.78811L10.0389 9.48928C9.95156 9.70875 9.78837 9.88881 9.58094 9.99709L9.48914 10.0391L3.78797 12.3028C3.15702 12.5533 3.15703 13.4467 3.78797 13.6973L9.48914 15.961C9.70861 16.0483 9.88867 16.2115 9.99695 16.419L10.0389 16.5108L12.3026 22.2119C12.5534 22.8425 13.4458 22.8419 13.6962 22.211L15.9589 16.5108L16.0018 16.418C16.1117 16.2083 16.293 16.047 16.5097 15.961L22.2118 13.6973C22.8428 13.4468 22.8428 12.5533 22.2118 12.3028L16.5097 10.0391V10.0381C16.2931 9.95206 16.1116 9.79167 16.0018 9.58205L15.9589 9.48928L13.6972 3.78909Z",fill:"url(#sparkle_highlight_fill)"}),e[5]=d,e[6]=r,e[7]=o,e[8]=c):(d=e[5],r=e[6],o=e[7],c=e[8]);let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsxs("linearGradient",{id:"sparkle_origin_fill",x1:"8.855",y1:"0.71",x2:"8.855",y2:"13.5",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-gradient-1-color-1,#575757)"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-gradient-1-color-2,#151515)"})]}),e[9]=m):m=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsxs("linearGradient",{id:"sparkle_blur_fill",x1:"13",y1:"0",x2:"13",y2:"26",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-gradient-2-color-1,#E3E3E599)"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-gradient-2-color-2,#BBBBC099)"})]}),e[10]=u):u=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsxs("linearGradient",{id:"sparkle_highlight_fill",x1:"12.999",y1:"2.565",x2:"12.999",y2:"13.5",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"var(--nc-light,#fff)"}),l.jsx("stop",{offset:"1",stopColor:"var(--nc-light,#fff)",stopOpacity:"0"})]}),e[11]=g):g=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("filter",{id:"sparkle_filter",x:"-100%",y:"-100%",width:"400%",height:"400%",filterUnits:"objectBoundingBox",primitiveUnits:"userSpaceOnUse",children:l.jsx("feGaussianBlur",{stdDeviation:"2",x:"0%",y:"0%",width:"100%",height:"100%",in:"SourceGraphic",edgeMode:"none",result:"blur"})}),e[12]=f):f=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsx("clipPath",{id:"sparkle_lens_clip",children:l.jsx("path",{d:"M16.6562 9.21226L14.3939 3.51196C13.893 2.24987 12.1067 2.24971 11.6056 3.51172L9.34194 9.21226C9.31834 9.27153 9.27153 9.31834 9.21226 9.34194L3.51085 11.6059C2.24896 12.107 2.24896 13.893 3.51085 14.3941L9.21226 16.6581C9.27153 16.6817 9.31834 16.7285 9.34194 16.7877L11.6055 22.4883C12.1067 23.7503 13.8929 23.7501 14.3939 22.488L16.6562 16.7877C16.6799 16.7283 16.7273 16.6816 16.7868 16.6581L22.4888 14.3941C23.7507 13.8931 23.7507 12.1069 22.4888 11.6059L16.7868 9.34194C16.7273 9.3184 16.6799 9.27173 16.6562 9.21226Z",fill:"url(#sparkle_blur_fill)"})}),e[13]=p):p=e[13];let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsxs("g",{fill:"none",className:"nc-icon-wrapper",children:[d,r,o,c,l.jsxs("defs",{children:[m,u,g,f,p,l.jsxs("mask",{id:"sparkle_lens_mask",children:[l.jsx("rect",{width:"100%",height:"100%",fill:"#FFF"}),l.jsx("path",{d:"M16.6562 9.21226L14.3939 3.51196C13.893 2.24987 12.1067 2.24971 11.6056 3.51172L9.34194 9.21226C9.31834 9.27153 9.27153 9.31834 9.21226 9.34194L3.51085 11.6059C2.24896 12.107 2.24896 13.893 3.51085 14.3941L9.21226 16.6581C9.27153 16.6817 9.31834 16.7285 9.34194 16.7877L11.6055 22.4883C12.1067 23.7503 13.8929 23.7501 14.3939 22.488L16.6562 16.7877C16.6799 16.7283 16.7273 16.6816 16.7868 16.6581L22.4888 14.3941C23.7507 13.8931 23.7507 12.1069 22.4888 11.6059L16.7868 9.34194C16.7273 9.3184 16.6799 9.27173 16.6562 9.21226Z",fill:"#000"})]})]})]}),e[14]=h):h=e[14];let x;return e[15]!==s||e[16]!==n?(x=l.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:[n,h]}),e[15]=s,e[16]=n,e[17]=x):x=e[17],x}function Ks(t){const e=A.c(13),{leading:s,middle:a,actions:i,className:n}=t;let d;e[0]!==n?(d=R("bg-background/95 supports-[backdrop-filter]:bg-background/75 sticky top-0 z-10 grid h-[70px] grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 border-b px-4 backdrop-blur",n),e[0]=n,e[1]=d):d=e[1];let r;e[2]!==s?(r=l.jsx("div",{className:"flex min-w-0 items-center gap-3",children:s}),e[2]=s,e[3]=r):r=e[3];let o;e[4]!==a?(o=a?l.jsx("div",{className:"justify-self-center",children:a}):l.jsx("div",{}),e[4]=a,e[5]=o):o=e[5];let c;e[6]!==i?(c=l.jsx("div",{className:"flex min-w-0 items-center justify-end gap-2",children:i}),e[6]=i,e[7]=c):c=e[7];let m;return e[8]!==d||e[9]!==r||e[10]!==o||e[11]!==c?(m=l.jsxs("header",{className:d,children:[r,o,c]}),e[8]=d,e[9]=r,e[10]=o,e[11]=c,e[12]=m):m=e[12],m}function Te(t){const e=A.c(48),{Icon:s,label:a,subtitle:i,tooltipTitle:n,tooltipBody:d,tooltipUsage:r,ctaHref:o,ctaLabel:c,onCtaClick:m,isPreparingCta:u}=t,{i18n:g}=q(),f=o?"a":"div";let p;e[0]!==o||e[1]!==m?(p=o?O=>{O.preventDefault(),m?.()}:void 0,e[0]=o,e[1]=m,e[2]=p):p=e[2];const h=u||void 0,x=o?"focus-visible:ring-ring/60 hover:bg-sidebar-accent/45 focus-visible:ring-2 focus-visible:outline-none":void 0,y=u?"pointer-events-none cursor-progress opacity-80":void 0;let C;e[3]!==x||e[4]!==y?(C=R("border-sidebar-border/70 bg-sidebar-accent/30 group mx-2 mt-2 block rounded-lg border px-3 py-2 group-data-[collapsible=icon]:px-2",x,y),e[3]=x,e[4]=y,e[5]=C):C=e[5];let v;e[6]!==s||e[7]!==u?(v=u?l.jsx(be,{className:"text-sidebar-foreground
31/80 size-4 shrink-0 animate-spin"}):l.jsx(s,{className:"text-sidebar-foreground/80 size-4 shrink-0"}),e[6]=s,e[7]=u,e[8]=v):v=e[8];let _;e[9]!==a?(_=l.jsx("p",{className:"truncate text-xs font-medium",children:a}),e[9]=a,e[10]=_):_=e[10];let j;e[11]!==o||e[12]!==c||e[13]!==g||e[14]!==u?(j=u?l.jsx("span",{className:"text-sidebar-foreground/70 text-xs",children:g._({id:"billing.sidebar.preparing"})}):o?l.jsx("span",{className:"text-xs font-medium underline-offset-4 group-hover:underline",children:c}):null,e[11]=o,e[12]=c,e[13]=g,e[14]=u,e[15]=j):j=e[15];let b;e[16]!==_||e[17]!==j?(b=l.jsxs("div",{className:"flex items-center justify-between gap-2",children:[_,j]}),e[16]=_,e[17]=j,e[18]=b):b=e[18];let L;e[19]!==i?(L=l.jsx("p",{className:"text-sidebar-foreground/70 truncate pt-0.5 text-[11px]",children:i}),e[19]=i,e[20]=L):L=e[20];let N;e[21]!==L||e[22]!==b?(N=l.jsxs("div",{className:"min-w-0 grow group-data-[collapsible=icon]:hidden",children:[b,L]}),e[21]=L,e[22]=b,e[23]=N):N=e[23];let w;e[24]!==N||e[25]!==v?(w=l.jsxs("div",{className:"flex items-center gap-2 group-data-[collapsible=icon]:justify-center",children:[v,N]}),e[24]=N,e[25]=v,e[26]=w):w=e[26];let T;e[27]!==f||e[28]!==o||e[29]!==p||e[30]!==w||e[31]!==h||e[32]!==C?(T=l.jsx(Ie,{asChild:!0,children:l.jsx(f,{href:o,onClick:p,"aria-disabled":h,className:C,children:w})}),e[27]=f,e[28]=o,e[29]=p,e[30]=w,e[31]=h,e[32]=C,e[33]=T):T=e[33];let S;e[34]!==n?(S=l.jsx("p",{className:"font-medium",children:n}),e[34]=n,e[35]=S):S=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=R("text-primary-foreground/80 leading-relaxed"),e[36]=M):M=e[36];let B;e[37]!==d?(B=l.jsx("p",{className:M,children:d}),e[37]=d,e[38]=B):B=e[38];let P;e[39]!==r?(P=r?l.jsx("p",{className:R("text-primary-foreground/70 text-xs leading-relaxed"),children:r}):null,e[39]=r,e[40]=P):P=e[40];let k;e[41]!==S||e[42]!==B||e[43]!==P?(k=l.jsx(Oe,{side:"top",align:"start",sideOffset:8,className:"max-w-56",children:l.jsxs("div",{className:"space-y-1",children:[S,B,P]})}),e[41]=S,e[42]=B,e[43]=P,e[44]=k):k=e[44];let U;return e[45]!==T||e[46]!==k?(U=l.jsxs(Ue,{children:[T,k]}),e[45]=T,e[46]=k,e[47]=U):U=e[47],U}function Qs(t){const e=A.c(26),{daysRemaining:s,employeeCount:a,employeeLimit:i,ctaHref:n,isPreparingCta:d,onCtaClick:r}=t,{i18n:o}=q();let c;e[0]!==s||e[1]!==o?(c=o._({id:"billing.sidebar.daysLeft",message:"{days, plural, one {# day left} other {# days left}}",values:{days:s}}),e[0]=s,e[1]=o,e[2]=c):c=e[2];const m=c;let u;e[3]!==o?(u=o._({id:"billing.sidebar.overFreeLimits",message:"Over Essential limit"}),e[3]=o,e[4]=u):u=e[4];let g;e[5]!==o?(g=o._({id:"billing.sidebar.trialTooltipTitle",message:"You're on a 14-day upgrade trial"}),e[5]=o,e[6]=g):g=e[6];let f;e[7]!==i||e[8]!==o?(f=o._({id:"billing.sidebar.trialTooltipBody",message:"This workspace is above Essential's limit of {employeeLimit} employees or one branch. Upgrade before the 14-day Pro trial ends to keep making changes.",values:{employeeLimit:i}}),e[7]=i,e[8]=o,e[9]=f):f=e[9];let p;e[10]!==a||e[11]!==i||e[12]!==o?(p=o._({id:"billing.sidebar.usageLine",message:"Current usage: {employees}/{employeeLimit} employees.",values:{employees:a,employeeLimit:i}}),e[10]=a,e[11]=i,e[12]=o,e[13]=p):p=e[13];let h;e[14]!==o?(h=o._({id:"billing.sidebar.upgrade"}),e[14]=o,e[15]=h):h=e[15];let x;return e[16]!==n||e[17]!==m||e[18]!==d||e[19]!==r||e[20]!==u||e[21]!==g||e[22]!==f||e[23]!==p||e[24]!==h?(x=l.jsx(Te,{Icon:Qe,label:m,subtitle:u,tooltipTitle:g,tooltipBody:f,tooltipUsage:p,ctaHref:n,onCtaClick:r,ctaLabel:h,isPreparingCta:d}),e[16]=n,e[17]=m,e[18]=d,e[19]=r,e[20]=u,e[21]=g,e[22]=f,e[23]=p,e[24]=h,e[25]=x):x=e[25],x}function Ys(t){const e=A.c(25),{employeeCount:s,employeeLimit:a,ctaHref:i,ctaLabel:n,isPreparingCta:d,onCtaClick:r}=t,{i18n:o}=q();let c;e[0]!==o?(c=o._({id:"billing.sidebar.freePlan"}),e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s||e[3]!==a||e[4]!==o?(m=o._({id:"billing.sidebar.employeeFraction",message:"{employees}/{employeeLimit} employees",values:{employees:s,employeeLimit:a}}),e[2]=s,e[3]=a,e[4]=o,e[5]=m):m=e[5];let u;e[6]!==o?(u=o._({id:"billing.sidebar.freeTooltipTitle",message:"You're on the free plan"}),e[6]=o,e[7]=u):u=e[7];let g;e[8]!==a||e[9]!==o?(g=o._({id:"billing.sidebar.freeTooltipBody",message:"This workspace is within the free plan limits. Free includes up to {employeeLimit} employees.",values:{employeeLimit:a}}),e[8]=a,e[9]=o,e[10]=g):g=e[10];let f;e[11]!==s||e[12]!==a||e[13]!==o?(f=o._({id:"billing.sidebar.usageLine",message:"Current usage: {employees}/{employeeLimit} employees.",values:{employees:s,employeeLimit:a}}),e[11]=s,e[12]=a,e[13]=o,e[14]=f):f=e[14];let p;return e[15]!==i||e[16]!==n||e[17]!==d||e[18]!==r||e[19]!==c||e[20]!==m||e[21]!==u||e[22]!==g||e[23]!==f?(p=l.jsx(Te,{Icon:Ye,label:c,subtitle:m,tooltipTitle:u,tooltipBody:g,tooltipUsage:f,ctaHref:i,onCtaClick:r,ctaLabel:n,isPreparingCta:d}),e[15]=i,e[16]=n,e[17]=d,e[18]=r,e[19]=c,e[20]=m,e[21]=u,e[22]=g,e[23]=f,e[24]=p):p=e[24],p}function Xs(t){const e=A.c(28),{employeeCount:s,employeeLimit:a,ctaHref:i,isPreparingCta:n,onCtaClick:d,planTier:r}=t,{i18n:o}=q(),c=r==="flat";let m;e[0]!==o||e[1]!==c?(m=c?o._({id:"billing.sidebar.basicPlan"}):o._({id:"billing.sidebar.proPlan"}),e[0]=o,e[1]=c,e[2]=m):m=e[2];const u=m;let g;e[3]!==o||e[4]!==c?(g=c?o._({id:"billing.sidebar.basicTooltipTitle",message:"You're on Essential"}):o._({id:"billing.sidebar.proTooltipTitle",message:"You're on Pro"}),e[3]=o,e[4]=c,e[5]=g):g=e[5];const f=g;let p;e[6]!==a||e[7]!==o||e[8]!==c?(p=c?o._({id:"billing.sidebar.basicTooltipBody",message:"Essential includes every feature for up to {employeeLimit} employees at one branch. Open billing to manage payment details and subscription settings.",values:{employeeLimit:a}}):o._({id:"billing.sidebar.proTooltipBody",message:"This workspace is on the Pro plan. Open billing to manage payment details and subscription settings."}),e[6]=a,e[7]=o,e[8]=c,e[9]=p):p=e[9];const h=p;let x;e[10]!==s||e[11]!==o?(x=o._({id:"billing.sidebar.activeEmployees",message:"{employees, plural, one {# employee} other {# employees}}",values:{employees:s}}),e[10]=s,e[11]=o,e[12]=x):x=e[12];let y;e[13]!==s||e[14]!==o?(y=o._({id:"billing.sidebar.proUsageLine",message:"Current usage: {employees, plural, one {# employee} other {# employees}}.",values:{employees:s}}),e[13]=s,e[14]=o,e[15]=y):y=e[15];let C;e[16]!==o?(C=o._({id:"billing.sidebar.billingCta"}),e[16]=o,e[17]=C):C=e[17];let v;return e[18]!==i||e[19]!==n||e[20]!==u||e[21]!==d||e[22]!==x||e[23]!==y||e[24]!==C||e[25]!==h||e[26]!==f?(v=l.jsx(Te,{Icon:Ye,label:u,subtitle:x,tooltipTitle:f,tooltipBody:h,tooltipUsage:y,ctaHref:i,onCtaClick:d,ctaLabel:C,isPreparingCta:n}),e[18]=i,e[19]=n,e[20]=u,e[21]=d,e[22]=x,e[23]=y,e[24]=C,e[25]=h,e[26]=f,e[27]=v):v=e[27],v}function Js(t){const e=A.c(25),{daysRemaining:s,employeeCount:a,employeeLimit:i,ctaHref:n,isPreparingCta:d,onCtaClick:r}=t,{i18n:o}=q();let c;e[0]!==s||e[1]!==o?(c=o._({id:"billing.sidebar.daysLeft",message:"{days, plural, one {# day left} other {# days left}}",values:{days:s}}),e[0]=s,e[1]=o,e[2]=c):c=e[2];const m=c;let u;e[3]!==o?(u=o._({id:"billing.sidebar.billingNeedsAttention",message:"Billing needs attention"}),e[3]=o,e[4]=u):u=e[4];let g;e[5]!==o?(g=o._({id:"billing.sidebar.graceTooltipTitle",message:"You're in a grace peri
31od"}),e[5]=o,e[6]=g):g=e[6];let f;e[7]!==o?(f=o._({id:"billing.sidebar.graceTooltipBody",message:"Your paid subscription needs attention. Update billing before the grace period ends to avoid losing access."}),e[7]=o,e[8]=f):f=e[8];let p;e[9]!==a||e[10]!==i||e[11]!==o?(p=o._({id:"billing.sidebar.usageLine",message:"Current usage: {employees}/{employeeLimit} employees.",values:{employees:a,employeeLimit:i}}),e[9]=a,e[10]=i,e[11]=o,e[12]=p):p=e[12];let h;e[13]!==o?(h=o._({id:"billing.sidebar.billingCta"}),e[13]=o,e[14]=h):h=e[14];let x;return e[15]!==n||e[16]!==m||e[17]!==d||e[18]!==r||e[19]!==u||e[20]!==g||e[21]!==f||e[22]!==p||e[23]!==h?(x=l.jsx(Te,{Icon:Qe,label:m,subtitle:u,tooltipTitle:g,tooltipBody:f,tooltipUsage:p,ctaHref:n,onCtaClick:r,ctaLabel:h,isPreparingCta:d}),e[15]=n,e[16]=m,e[17]=d,e[18]=r,e[19]=u,e[20]=g,e[21]=f,e[22]=p,e[23]=h,e[24]=x):x=e[24],x}function el(){const t=A.c(39),{i18n:e}=q(),{billing:s,canManageBilling:a,ctaHref:i,ctaKind:n,isPreparingCta:d,openBillingCta:r}=Ee(),{open:o}=je();let c;t[0]!==n||t[1]!==r||t[2]!==o?(c=n==="portal"?r:()=>o("trial"),t[0]=n,t[1]=r,t[2]=o,t[3]=c):c=t[3];const m=c;let u;t[4]!==n||t[5]!==r||t[6]!==o?(u=n==="portal"?r:()=>o("generic"),t[4]=n,t[5]=r,t[6]=o,t[7]=u):u=t[7];const g=u;if(s?.hasActiveSubscription&&s.billingPhase!=="trial"){const f=a?i:void 0,p=s.planTier==="flat"?"flat":"pro";let h;return t[8]!==s.freeLimits.employees||t[9]!==s.usage.employees||t[10]!==d||t[11]!==r||t[12]!==f||t[13]!==p?(h=l.jsx(Xs,{employeeCount:s.usage.employees,employeeLimit:s.freeLimits.employees,ctaHref:f,isPreparingCta:d,onCtaClick:r,planTier:p}),t[8]=s.freeLimits.employees,t[9]=s.usage.employees,t[10]=d,t[11]=r,t[12]=f,t[13]=p,t[14]=h):h=t[14],h}if(s?.billingPhase==="free"&&s.planTier==="pro_trial")return null;if(s?.billingPhase==="free"){const f=a?i:void 0;let p;t[15]!==n||t[16]!==e?(p=n==="portal"?e._({id:"billing.sidebar.billingCta"}):e._({id:"billing.sidebar.upgrade"}),t[15]=n,t[16]=e,t[17]=p):p=t[17];const h=a&&n==="checkout"&&d;let x;return t[18]!==s.freeLimits.employees||t[19]!==s.usage.employees||t[20]!==g||t[21]!==f||t[22]!==p||t[23]!==h?(x=l.jsx(Ys,{employeeCount:s.usage.employees,employeeLimit:s.freeLimits.employees,ctaHref:f,ctaLabel:p,onCtaClick:g,isPreparingCta:h}),t[18]=s.freeLimits.employees,t[19]=s.usage.employees,t[20]=g,t[21]=f,t[22]=p,t[23]=h,t[24]=x):x=t[24],x}if(s?.providerVerificationPending)return null;if(s?.billingPhase==="trial"&&s.daysRemaining!==null){const f=a?i:void 0;let p;return t[25]!==s.daysRemaining||t[26]!==s.freeLimits.employees||t[27]!==s.usage.employees||t[28]!==d||t[29]!==m||t[30]!==f?(p=l.jsx(Qs,{daysRemaining:s.daysRemaining,employeeCount:s.usage.employees,employeeLimit:s.freeLimits.employees,ctaHref:f,isPreparingCta:d,onCtaClick:m}),t[25]=s.daysRemaining,t[26]=s.freeLimits.employees,t[27]=s.usage.employees,t[28]=d,t[29]=m,t[30]=f,t[31]=p):p=t[31],p}if(s?.billingPhase==="grace"&&s.daysRemaining!==null){const f=a?i:void 0;let p;return t[32]!==s.daysRemaining||t[33]!==s.freeLimits.employees||t[34]!==s.usage.employees||t[35]!==d||t[36]!==m||t[37]!==f?(p=l.jsx(Js,{daysRemaining:s.daysRemaining,employeeCount:s.usage.employees,employeeLimit:s.freeLimits.employees,ctaHref:f,isPreparingCta:d,onCtaClick:m}),t[32]=s.daysRemaining,t[33]=s.freeLimits.employees,t[34]=s.usage.employees,t[35]=d,t[36]=m,t[37]=f,t[38]=p):p=t[38],p}return null}function tl(t){const e=A.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=l.jsx(Qt,{"data-slot":"sheet",...s}),e[2]=s,e[3]=a):a=e[3],a}function sl(t){const e=A.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=l.jsx(es,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function ll(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx(ss,{"data-slot":"sheet-overlay",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function il(t){const e=A.c(18);let s,a,i,n;e[0]!==t?({className:a,children:s,side:n,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=n):(s=e[1],a=e[2],i=e[3],n=e[4]);const d=n===void 0?"right":n;let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx(ll,{}),e[5]=r):r=e[5];const o=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",c=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",m=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",u=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let g;e[6]!==a||e[7]!==o||e[8]!==c||e[9]!==m||e[10]!==u?(g=R("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",o,c,m,u,a),e[6]=a,e[7]=o,e[8]=c,e[9]=m,e[10]=u,e[11]=g):g=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Kt,{className:"size-4"}),e[12]=f):f=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsxs(ts,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[f,l.jsx(I,{id:"ui.sheet.close",components:{0:l.jsx("span",{className:"sr-only"})}})]}),e[13]=p):p=e[13];let h;return e[14]!==s||e[15]!==i||e[16]!==g?(h=l.jsxs(sl,{children:[r,l.jsxs(Jt,{"data-slot":"sheet-content",className:g,...i,children:[s,p]})]}),e[14]=s,e[15]=i,e[16]=g,e[17]=h):h=e[17],h}function al(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("flex flex-col gap-1.5 p-4",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("div",{"data-slot":"sheet-header",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function nl(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("text-foreground font-semibold tracking-tight",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx(Yt,{"data-slot":"sheet-title",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function ol(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("text-muted-foreground text-sm",s),e[3]=s,e[4]=i):i=e[4];let n;
31return e[5]!==a||e[6]!==i?(n=l.jsx(Xt,{"data-slot":"sheet-description",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const rl=768,at=`(max-width: ${rl-1}px)`;function cl(){return typeof window>"u"?!1:window.matchMedia(at).matches}function dl(t){const e=window.matchMedia(at);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}function nt(){return Z.useSyncExternalStore(dl,cl,fl)}function fl(){return!1}const ml="sidebar_state",pl=3600*24*7,ul="240px",gl="18rem",hl="70px",xl="b",ot=Z.createContext(null);function ge(){const t=Z.useContext(ot);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}const bl=Z.forwardRef((t,e)=>{const s=A.c(38);let a,i,n,d,r,o,c;s[0]!==t?({defaultOpen:c,open:n,onOpenChange:r,className:i,style:o,children:a,...d}=t,s[0]=t,s[1]=a,s[2]=i,s[3]=n,s[4]=d,s[5]=r,s[6]=o,s[7]=c):(a=s[1],i=s[2],n=s[3],d=s[4],r=s[5],o=s[6],c=s[7]);const m=c===void 0?!1:c,u=nt(),[g,f]=Z.useState(!1),[p,h]=Z.useState(!1),[x,y]=Z.useState(m),C=n??x;let v;s[8]!==C||s[9]!==r?(v=O=>{const E=typeof O=="function"?O(C):O;r?r(E):y(E),document.cookie=`${ml}=${E}; path=/; max-age=${pl}`},s[8]=C,s[9]=r,s[10]=v):v=s[10];const _=v;let j;s[11]!==u||s[12]!==_?(j=()=>u?f(Bl):_(Il),s[11]=u,s[12]=_,s[13]=j):j=s[13];const b=j;let L,N;s[14]!==b?(L=()=>{const O=E=>{E.key===xl&&(E.metaKey||E.ctrlKey)&&(E.preventDefault(),b())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},N=[b],s[14]=b,s[15]=L,s[16]=N):(L=s[15],N=s[16]),Z.useEffect(L,N);const w=C?"expanded":"collapsed",T=C?!1:p;let S;s[17]!==T||s[18]!==u||s[19]!==C||s[20]!==g||s[21]!==_||s[22]!==w||s[23]!==b?(S={state:w,open:C,setOpen:_,hovered:T,setHovered:h,isMobile:u,openMobile:g,setOpenMobile:f,toggleSidebar:b},s[17]=T,s[18]=u,s[19]=C,s[20]=g,s[21]=_,s[22]=w,s[23]=b,s[24]=S):S=s[24];const M=S;let B;s[25]!==o?(B={"--sidebar-width":ul,"--sidebar-width-icon":hl,...o},s[25]=o,s[26]=B):B=s[26];let P;s[27]!==i?(P=R("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",i),s[27]=i,s[28]=P):P=s[28];let k;s[29]!==a||s[30]!==d||s[31]!==e||s[32]!==B||s[33]!==P?(k=l.jsx(zt,{delayDuration:0,children:l.jsx("div",{"data-slot":"sidebar-wrapper",style:B,className:P,ref:e,...d,children:a})}),s[29]=a,s[30]=d,s[31]=e,s[32]=B,s[33]=P,s[34]=k):k=s[34];let U;return s[35]!==M||s[36]!==k?(U=l.jsx(ot.Provider,{value:M,children:k}),s[35]=M,s[36]=k,s[37]=U):U=s[37],U});function Cl(t){const e=A.c(67);let s,a,i,n,d,r;e[0]!==t?({side:n,variant:d,collapsible:r,className:a,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r):(s=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6]);const o=n===void 0?"left":n,c=d===void 0?"sidebar":d,m=r===void 0?"offcanvas":r,{isMobile:u,state:g,hovered:f,setHovered:p,openMobile:h,setOpenMobile:x}=ge(),{i18n:y}=q(),C=m==="icon-hover"&&f?"expanded":g,v=C==="collapsed";let _;e:{if(!v){_="";break e}if(m==="icon"||m==="icon-hover"){_="icon";break e}_=m}const j=_;if(m==="none"){let O;e[7]!==a?(O=R("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=O):O=e[8];let E;return e[9]!==s||e[10]!==i||e[11]!==O?(E=l.jsx("div",{"data-slot":"sidebar",className:O,...i,children:s}),e[9]=s,e[10]=i,e[11]=O,e[12]=E):E=e[12],E}if(u){let O;e[13]===Symbol.for("react.memo_cache_sentinel")?(O={"--sidebar-width":gl},e[13]=O):O=e[13];let E;e[14]!==y?(E=y._({id:"ui.sidebar.sheetTitle"}),e[14]=y,e[15]=E):E=e[15];let z;e[16]!==E?(z=l.jsx(nl,{children:E}),e[16]=E,e[17]=z):z=e[17];let H;e[18]!==y?(H=y._({id:"ui.sidebar.sheetDescription",message:"Displays the mobile sidebar."}),e[18]=y,e[19]=H):H=e[19];let $;e[20]!==H?($=l.jsx(ol,{children:H}),e[20]=H,e[21]=$):$=e[21];let V;e[22]!==z||e[23]!==$?(V=l.jsxs(al,{className:"sr-only",children:[z,$]}),e[22]=z,e[23]=$,e[24]=V):V=e[24];let F;e[25]!==s?(F=l.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[25]=s,e[26]=F):F=e[26];let D;e[27]!==o||e[28]!==V||e[29]!==F?(D=l.jsxs(il,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:O,side:o,children:[V,F]}),e[27]=o,e[28]=V,e[29]=F,e[30]=D):D=e[30];let G;return e[31]!==h||e[32]!==i||e[33]!==x||e[34]!==D?(G=l.jsx(tl,{open:h,onOpenChange:x,...i,children:D}),e[31]=h,e[32]=i,e[33]=x,e[34]=D,e[35]=G):G=e[35],G}let b;e[36]!==m||e[37]!==u||e[38]!==p||e[39]!==g?(b=()=>{!u&&m==="icon-hover"&&g==="collapsed"&&p(!0)}
31,e[36]=m,e[37]=u,e[38]=p,e[39]=g,e[40]=b):b=e[40];let L;e[41]!==m||e[42]!==p?(L=()=>{m==="icon-hover"&&p(!1)},e[41]=m,e[42]=p,e[43]=L):L=e[43];const N=c==="floating"||c==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let w;e[44]!==N?(w=R("relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",N),e[44]=N,e[45]=w):w=e[45];let T;e[46]!==w?(T=l.jsx("div",{className:w}),e[46]=w,e[47]=T):T=e[47];const S=o==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",M=c==="floating"||c==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l";let B;e[48]!==a||e[49]!==S||e[50]!==M?(B=R("fixed inset-y-0 z-20 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",S,M,a),e[48]=a,e[49]=S,e[50]=M,e[51]=B):B=e[51];let P;e[52]!==s?(P=l.jsx("div",{"data-sidebar":"sidebar",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s}),e[52]=s,e[53]=P):P=e[53];let k;e[54]!==i||e[55]!==B||e[56]!==P?(k=l.jsx("div",{className:B,...i,children:P}),e[54]=i,e[55]=B,e[56]=P,e[57]=k):k=e[57];let U;return e[58]!==j||e[59]!==o||e[60]!==k||e[61]!==b||e[62]!==L||e[63]!==T||e[64]!==c||e[65]!==C?(U=l.jsxs("div",{className:"text-sidebar-foreground group peer hidden md:block","data-state":C,"data-collapsible":j,"data-variant":c,"data-side":o,"data-slot":"sidebar",onMouseEnter:b,onMouseLeave:L,children:[T,k]}),e[58]=j,e[59]=o,e[60]=k,e[61]=b,e[62]=L,e[63]=T,e[64]=c,e[65]=C,e[66]=U):U=e[66],U}function yl(t){const e=A.c(19);let s,a,i;e[0]!==t?({className:s,onClick:a,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i):(s=e[1],a=e[2],i=e[3]);const{toggleSidebar:n}=ge(),{i18n:d}=q();let r;e[4]!==s?(r=R("h-7 w-7",s),e[4]=s,e[5]=r):r=e[5];let o;e[6]!==a||e[7]!==n?(o=f=>{a?.(f),n()},e[6]=a,e[7]=n,e[8]=o):o=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(Vs,{}),e[9]=c):c=e[9];let m;e[10]!==d?(m=d._({id:"ui.sidebar.toggle"}),e[10]=d,e[11]=m):m=e[11];let u;e[12]!==m?(u=l.jsx("span",{className:"sr-only",children:m}),e[12]=m,e[13]=u):u=e[13];let g;return e[14]!==i||e[15]!==r||e[16]!==o||e[17]!==u?(g=l.jsxs(ie,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:r,onClick:o,...i,children:[c,u]}),e[14]=i,e[15]=r,e[16]=o,e[17]=u,e[18]=g):g=e[18],g}function _l(t){const e=A.c(12);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const{toggleSidebar:i}=ge(),{i18n:n}=q();let d;e[3]!==n?(d=n._({id:"ui.sidebar.toggle"}),e[3]=n,e[4]=d):d=e[4];const r=d;let o;e[5]!==s?(o=R("hover:after:bg-sidebar-border absolute inset-y-0 z-30 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",s),e[5]=s,e[6]=o):o=e[6];let c;return e[7]!==a||e[8]!==o||e[9]!==i||e[10]!==r?(c=l.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":r,tabIndex:-1,onClick:i,title:r,className:o,...a}),e[7]=a,e[8]=o,e[9]=i,e[10]=r,e[11]=c):c=e[11],c}function vl(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("bg-background relative flex min-h-svh min-w-0 flex-1 flex-col","peer-data-[variant=inset]:min-
31h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function jl(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("flex flex-col gap-2 p-0",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ll(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Sl(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function wl(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("relative flex w-full min-w-0 flex-col p-2",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Nl(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function De(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("group/menu-item relative",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const kl=yt("peer/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground flex w-full items-center gap-3 overflow-hidden rounded-md text-left text-sm outline-hidden transition-colors duration-200 group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:mr-[15px] group-data-[collapsible=icon]:ml-[7px] group-data-[collapsible=icon]:h-10 group-data-[collapsible=icon]:w-10 group-data-[collapsible=icon]:justify-start group-data-[collapsible=icon]:pr-[10px] group-data-[collapsible=icon]:pl-[10px] group-data-[state=expanded]:mr-[7px] group-data-[state=expanded]:ml-[7px] group-data-[state=expanded]:h-10 group-data-[state=expanded]:w-[calc(100%-13px)] group-data-[state=expanded]:justify-start group-data-[state=expanded]:pr-[10px] group-data-[state=expanded]:pl-[10px] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium group-data-[collapsible=icon]:[&>span]:hidden [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-10 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function He(t){const e=A.c(28);let s,a,i,n,d,r,o;if(e[0]!==t){let{asChild:_,isActive:j,variant:b,size:L,tooltip:N,className:w,...T}=t;r=N,s=w,i=T;const S=_===void 0?!1:_;a=j===void 0?!1:j,o=b===void 0?"default":b,n=L===void 0?"default":L,d=S&&ye(i.children)?Ce:"button",e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r,e[7]=o}else s=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6],o=e[7];const c=d,{isMobile:m,state:u,hovered:g}=ge();let f;e[8]!==s||e[9]!==n||e[10]!==o?(f=R(kl({variant:o,size:n}),s),e[8]=s,e[9]=n,e[10]=o,e[11]=f):f=e[11];let p;e[12]!==c||e[13]!==a||e[14]!==i||e[15]!==n||e[16]!==f?(p=l.jsx(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":n,"data-active":a,className:f,...i}),e[12]=c,e[13]=a,e[14]=i,e[15]=n,e[16]=f,e[17]=p):p=e[17];const h=p;if(!r)return h;if(typeof r=="string"){let _;e[18]!==r?(_={children:r}
31,e[18]=r,e[19]=_):_=e[19],r=_}let x;e[20]!==h?(x=l.jsx(Ie,{asChild:!0,children:h}),e[20]=h,e[21]=x):x=e[21];const y=u!=="collapsed"||g||m;let C;e[22]!==y||e[23]!==r?(C=l.jsx(Oe,{side:"right",align:"center",hidden:y,...r}),e[22]=y,e[23]=r,e[24]=C):C=e[24];let v;return e[25]!==x||e[26]!==C?(v=l.jsxs(Ue,{children:[x,C]}),e[25]=x,e[26]=C,e[27]=v):v=e[27],v}function Tl(t){const e=A.c(12);let s,a,i,n;if(e[0]!==t){const{className:m,asChild:u,showOnHover:g,...f}=t;s=m,a=f;const p=u===void 0?!1:u;i=g===void 0?!1:g,n=p&&ye(a.children)?Ce:"button",e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=n}else s=e[1],a=e[2],i=e[3],n=e[4];const d=n,r=i&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0";let o;e[5]!==s||e[6]!==r?(o=R("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r,s),e[5]=s,e[6]=r,e[7]=o):o=e[7];let c;return e[8]!==d||e[9]!==a||e[10]!==o?(c=l.jsx(d,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:o,...a}),e[8]=d,e[9]=a,e[10]=o,e[11]=c):c=e[11],c}function Pl(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("border-sidebar-border mr-3.5 ml-6 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ml(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("group/menu-sub-item relative",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Al(t){const e=A.c(16);let s,a,i,n,d;if(e[0]!==t){const{asChild:g,size:f,isActive:p,className:h,...x}=t;s=h,i=x;const y=g===void 0?!1:g;n=f===void 0?"md":f,a=p===void 0?!1:p,d=y&&ye(i.children)?Ce:"a",e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=n,e[5]=d}else s=e[1],a=e[2],i=e[3],n=e[4],d=e[5];const r=d,o=n==="sm"&&"text-xs",c=n==="md"&&"text-sm";let m;e[6]!==s||e[7]!==o||e[8]!==c?(m=R("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",o,c,"group-data-[collapsible=icon]:hidden",s),e[6]=s,e[7]=o,e[8]=c,e[9]=m):m=e[9];let u;return e[10]!==r||e[11]!==a||e[12]!==i||e[13]!==n||e[14]!==m?(u=l.jsx(r,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":n,"data-active":a,className:m,...i}),e[10]=r,e[11]=a,e[12]=i,e[13]=n,e[14]=m,e[15]=u):u=e[15],u}function Bl(t){return!t}function Il(t){return!t}function Pe(t,e){return t===e||t.startsWith(`${e}/`)}function Ol(t){const e=A.c(15),{items:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={select:Ul},e[0]=a):a=e[0];const i=_e(a),{i18n:n}=q(),{isMobile:d,setOpenMobile:r}=ge();let o;e[1]!==d||e[2]!==r?(o=()=>{d&&r(!1)},e[1]=d,e[2]=r,e[3]=o):o=e[3];const c=o;let m;if(e[4]!==c||e[5]!==n||e[6]!==s||e[7]!==i){let g;
31e[9]!==c||e[10]!==n||e[11]!==i?(g=f=>{const p=Pe(i,f.url),h=f.items?.some(y=>Pe(i,y.url))??!1,x=p||h;return f.items?.length?l.jsx(Gt,{asChild:!0,defaultOpen:f.isActive||x,className:"group/collapsible",children:l.jsxs(De,{children:[l.jsx(He,{asChild:!0,tooltip:n._(f.title),isActive:x,children:l.jsxs(ae,{to:f.url,onClick:c,children:[f.icon&&l.jsx(f.icon,{}),l.jsx("span",{children:n._(f.title)}),l.jsx(qt,{asChild:!0,children:l.jsx(Tl,{showOnHover:!0,"aria-label":n._({id:"nav.main.toggleSubmenu",message:"Toggle {title} submenu",values:{title:n._(f.title)}}),className:"",children:l.jsx(is,{className:"transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})})})]})}),l.jsx(Wt,{forceMount:!0,className:"data-[state=open]:mt-1",children:l.jsx(Pl,{children:f.items?.map(y=>l.jsx(Ml,{children:l.jsx(Al,{asChild:!0,isActive:Pe(i,y.url),children:l.jsx(ae,{to:y.url,onClick:c,children:l.jsx("span",{children:n._(y.title)})})})},y.url))})})]})},f.url):l.jsx(De,{children:l.jsx(He,{asChild:!0,tooltip:n._(f.title),isActive:x,children:l.jsxs(ae,{to:f.url,onClick:c,children:[f.icon&&l.jsx(f.icon,{}),l.jsx("span",{children:n._(f.title)})]})})},f.url)},e[9]=c,e[10]=n,e[11]=i,e[12]=g):g=e[12],m=s.map(g),e[4]=c,e[5]=n,e[6]=s,e[7]=i,e[8]=m}else m=e[8];let u;return e[13]!==m?(u=l.jsx(wl,{className:"mt-4",children:l.jsx(Nl,{className:"gap-2",children:m})}),e[13]=m,e[14]=u):u=e[14],u}function Ul(t){return t.location.pathname}function El(t){const e=new URL("/org-logo",_t.VITE_CONVEX_SITE_URL);return e.searchParams.set("organizationId",t),e.toString()}function Rl(t){const e=A.c(41);let s,a,i,n,d;e[0]!==t?({name:i,className:s,id:a,hasLogo:d,...n}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=n,e[5]=d):(s=e[1],a=e[2],i=e[3],n=e[4],d=e[5]);const r=d===void 0?!1:d,{i18n:o}=q();let c;e[6]!==i?(c=zl(i),e[6]=i,e[7]=c):c=e[7];const m=c;let u,g,f,p,h,x;if(e[8]!==s||e[9]!==r||e[10]!==o||e[11]!==a||e[12]!==i||e[13]!==n){const _=$l(a||"12345678");let j;e[20]!==r||e[21]!==a?(j=a&&r?El(a):null,e[20]=r,e[21]=a,e[22]=j):j=e[22];const b=j;g=ns,e[23]!==s?(p=R("rounded-sm",s),e[23]=s,e[24]=p):p=e[24],h=n,e[25]!==o||e[26]!==b||e[27]!==i?(x=b?l.jsx(as,{src:b,alt:o._({id:"org.avatar.logoAlt",message:"{name} logo",values:{name:i}}),className:"rounded-sm"}):null,e[25]=o,e[26]=b,e[27]=i,e[28]=x):x=e[28],u=os,f=R("rounded-sm p-0",_),e[8]=s,e[9]=r,e[10]=o,e[11]=a,e[12]=i,e[13]=n,e[14]=u,e[15]=g,e[16]=f,e[17]=p,e[18]=h,e[19]=x}else u=e[14],g=e[15],f=e[16],p=e[17],h=e[18],x=e[19];let y;e[29]!==m?(y=l.jsx("span",{className:"text-xs font-medium text-white/95 uppercase",children:m}),e[29]=m,e[30]=y):y=e[30];let C;e[31]!==u||e[32]!==f||e[33]!==y?(C=l.jsx(u,{className:f,children:y}),e[31]=u,e[32]=f,e[33]=y,e[34]=C):C=e[34];let v;return e[35]!==g||e[36]!==p||e[37]!==h||e[38]!==x||e[39]!==C?(v=l.jsxs(g,{className:p,...h,children:[x,C]}),e[35]=g,e[36]=p,e[37]=h,e[38]=x,e[39]=C,e[40]=v):v=e[40],v}function zl(t){const e=t.trim().split(/\s+/).filter(Boolean);if(e.length===0)return"?";if(e.length===1){const[s]=e;return s.slice(0,2).toUpperCase()}return(e[0][0]+e[1][0]).toUpperCase()}function $l(t){const e=["bg-gradient-to-br from-blue-9 to-violet-9","bg-gradient-to-br from-iris-9 to-pink-9","bg-gradient-to-br from-teal-9 to-cyan-9","bg-gradient-to-br from-orange-9 to-amber-9","bg-gradient-to-br from-purple-9 to-plum-9","bg-gradient-to-br from-indigo-9 to-blue-9","bg-gradient-to-br from-lime-9 to-green-9","bg-gradient-to-br from-mint-9 to-jade-9"];let s=0;for(let i=0;i<t.length;i++)s=Math.imul(31,s)+t.charCodeAt(i),s|=0;const a=Math.abs(s)%e.length;return e[a]}const Dl={id:"nav.home"},Hl={id:"nav.roster"},Vl={id:"nav.absences"},Fl={id:"nav.clock"},Zl={id:"nav.employees"},Gl={id:"nav.nominas"},ql={id:"nav.settings"},Wl={id:"nav.assistant"},Ve={id:"nav.organization"};function Kl(t){const e=A.c(57);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{i18n:a}=q(),i=ue();let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=le(ee.settings.getEmployeeVisibilitySettings,{}),e[2]=n):n=e[2];const{data:d}=pe(n);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=le(ee.settings.getTimeTrackingSettings,{}),e[3]=r):r=e[3];const{data:o}=pe(r),c=rs();let m;e[4]!==i?(m=i.check("employees",["create","update","delete"]),e[4]=i,e[5]=m):m=e[5];const u=m;let g;e[6]!==i?(g=i.check("assistant","use"),e[6]=i,e[7]=g):g=e[7];const f=g;let p;e[8]!==i?(p=i.check("documents","manage"),e[8]=i,e[9]=p):p=e[9];const h=p;let x;e[10]!==i?(x=i.check("systemSettings","update")||i.check("kiosk","manage"),e[10]=i,e[11]=x):x=e[11];const y=x;if(!d||!o)return null;const C=u||!d.hideEmployeesPageFromEmployees,v=o.clockInOutEnabled;let _,j;e[12]===Symbol.for("react.memo_cache_sentinel")?(_={title:Dl,url:"/home",icon:ds},j={title:Hl,url:"/roster",icon:us},e[12]=_,e[13]=j):(_=e[12],j=e[13]);let b;
31e[14]!==v?(b=v?[{title:Fl,url:"/clock",icon:fs}]:[],e[14]=v,e[15]=b):b=e[15];let L;e[16]===Symbol.for("react.memo_cache_sentinel")?(L={title:Vl,url:"/absences",icon:Gs},e[16]=L):L=e[16];let N;e[17]!==f?(N=f?[{title:Wl,url:"/assistant",icon:Ws}]:[],e[17]=f,e[18]=N):N=e[18];let w;e[19]!==C?(w=C?[{title:Zl,url:"/employees",icon:ms}]:[],e[19]=C,e[20]=w):w=e[20];let T;e[21]!==h?(T=h?[{title:Gl,url:"/nominas",icon:ps}]:[],e[21]=h,e[22]=T):T=e[22];let S;e[23]!==y?(S=y?[{title:ql,url:"/settings",icon:Fs}]:[],e[23]=y,e[24]=S):S=e[24];let M;e[25]!==N||e[26]!==w||e[27]!==T||e[28]!==S||e[29]!==b?(M=[_,j,...b,L,...N,...w,...T,...S],e[25]=N,e[26]=w,e[27]=T,e[28]=S,e[29]=b,e[30]=M):M=e[30];const B=M;let P;e[31]!==B?(P={navMain:B},e[31]=B,e[32]=P):P=e[32];const k=P;let U;e[33]===Symbol.for("react.memo_cache_sentinel")?(U=l.jsx(jl,{className:"border-sidebar-border h-[70px] border-b",children:l.jsx("div",{className:"h-[70px] group-data-[collapsible=icon]:w-[69px] group-data-[state=expanded]:w-full",children:l.jsx(ae,{to:"/home",className:"flex h-full items-center pl-[23px]",children:l.jsx(vt,{className:"",showText:!1})})})}),e[33]=U):U=e[33];let O;e[34]!==k.navMain?(O=l.jsx(Sl,{children:l.jsx(Ol,{items:k.navMain})}),e[34]=k.navMain,e[35]=O):O=e[35];let E;e[36]===Symbol.for("react.memo_cache_sentinel")?(E=l.jsx(el,{}),e[36]=E):E=e[36];let z;e[37]!==a||e[38]!==c.name?(z=c.name||a._(Ve),e[37]=a,e[38]=c.name,e[39]=z):z=e[39];const H=c._id,$=!!c.logo;let V;e[40]!==c._id||e[41]!==z||e[42]!==$?(V=l.jsx(Rl,{className:"size-7",name:z,id:H,hasLogo:$}),e[40]=c._id,e[41]=z,e[42]=$,e[43]=V):V=e[43];let F;e[44]!==a||e[45]!==c.name?(F=c.name||a._(Ve),e[44]=a,e[45]=c.name,e[46]=F):F=e[46];let D;e[47]!==F?(D=l.jsx("span",{className:"truncate text-sm group-data-[collapsible=icon]:hidden",children:F}),e[47]=F,e[48]=D):D=e[48];let G;e[49]!==V||e[50]!==D?(G=l.jsxs(Ll,{children:[E,l.jsxs("div",{className:"text-sidebar-foreground/80 flex h-10 w-full items-center gap-2 pr-2 pl-[13px]",children:[V,D]})]}),e[49]=V,e[50]=D,e[51]=G):G=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=l.jsx(_l,{}),e[52]=K):K=e[52];let W;return e[53]!==s||e[54]!==O||e[55]!==G?(W=l.jsxs(Cl,{collapsible:"icon",...s,children:[U,O,G,K]}),e[53]=s,e[54]=O,e[55]=G,e[56]=W):W=e[56],W}const rt=1440*60*1e3;function Ql(t,e=Date.now()){if(t===void 0||typeof t.proTrialEndsAt!="number"||t.proTrialEndsAt>e||t.hasSubscription||t.hasActiveSubscription||t.planTier!=="free")return null;const s=(t.billingPhase==="trial"||t.billingPhase==="grace")&&typeof t.daysRemaining=="number"&&t.daysRemaining>0?t.daysRemaining:null,a=t.usage.employees<=t.freeLimits.employees&&t.usage.branches<=t.freeLimits.branches;if(s===null&&a&&t.accessState==="active")return null;const i=s!==null?typeof t.graceEndsAt=="number"?t.graceEndsAt:e+s*rt:null;return{postTrialDaysLeft:s,graceEndsAt:i,proTrialEndsAt:t.proTrialEndsAt,isSmallTeam:a}}function Yl(t){return t?.planTier!=="pro_trial"?null:typeof t.proTrialEndsAt=="number"?Math.max(0,Math.ceil((t.proTrialEndsAt-Date.now())/rt)):null}function Xl(t){const e=A.c(48),{billing:s,postTrialDaysLeft:a,graceEndsAt:i,isSmallTeam:n,proTrialEndsAt:d}=t,{i18n:r}=q(),{open:o}=je(),c=ve(),m=ue(),u=Z.useRef(null);let g;e[0]!==m?(g=m.check("billing","manage"),e[0]=m,e[1]=g):g=e[1];const f=g;let p;e[2]!==s.billingPhase||e[3]!==s.freeLimits.employees||e[4]!==s.hasActiveSubscription||e[5]!==s.hasSubscription||e[6]!==s.planTier||e[7]!==s.usage.employees||e[8]!==f||e[9]!==a||e[10]!==d?(p={reason:"trial_ended",ctaKind:"open_dialog",canManageBilling:f,planTier:s.planTier,billingPhase:s.billingPhase,postTrialDaysLeft:a,proTrialEndsAt:d,hasSubscription:s.hasSubscription,hasActiveSubscription:s.hasActiveSubscription,employeeCount:s.usage.employees,freeEmployeeLimit:s.freeLimits.employees},e[2]=s.billingPhase,e[3]=s.freeLimits.employees,e[4]=s.hasActiveSubscription,e[5]=s.hasSubscription,e[6]=s.planTier,e[7]=s.usage.employees,e[8]=f,e[9]=a,e[10]=d,e[11]=p):p=e[11];const h=p;let x;e[12]!==c||e[13]!==s.billingPhase||e[14]!==s.freeLimits.employees||e[15]!==s.hasActiveSubscription||e[16]!==s.hasSubscription||e[17]!==s.planTier||e[18]!==s.usage.employees||e[19]!==f||e[20]!==a||e[21]!==d?(x=()=>{const N=String(d);u.current!==N&&(u.current=N,c.capture("billing_trial_ended_banner_viewed",{reason:"trial_ended",ctaKind:"open_dialog",canManageBilling:f,planTier:s.planTier,billingPhase:s.billingPhase,postTrialDaysLeft:a,proTrialEndsAt:d,hasSubscription:s.hasSubscription,hasActiveSubscription:s.hasActiveSubscription,employeeCount:s.usage.employees,freeEmployeeLimit:s.freeLimits.employees}))},e[12]=c,e[13]=s.billingPhase,e[14]=s.freeLimits.employees,e[15]=s.hasActiveSubscription,e[16]=s.hasSubscription,e[17]=s.planTier,e[18]=s.usage.employees,e[19]=f,e[20]=a,e[21]=d,e[22]=x):x=e[22];let y;e[23]!==c||e[24]!==s||e[25]!==f||e[26]!==a||e[27]!==d?(y=[c,s,f,a,d],e[23]=c,e[24]=s,e[25]=f,e[26]=a,e[27]=d,e[28]=y):y=e[28],Z.useEffect(x,y);let C;e[29]===Symbol.for("react.memo_cache_sentinel")?(C=l.jsx(Xe,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e[29]=C):C=e[29];let v;e[30]!==s.freeLimits.employees||e[31]!==i||e[32]!==r||e[33]!==n||e[34]!==a?(v=l.jsxs("span",{className:"flex items-center gap-1.5",children:[C,n&&a!==null&&i!==null?l.jsx(I,{id:"billing.graceBanner.messageSmallTeamCountdown",values:{0:Me(new Date(i),{day:"numeric",month:"long"},r.locale)}}):n?l.jsx(I,{id:"billing.graceBanner.messageSmallTeam",values:{0:s.freeLimits.employees}}):a===null||i===null?l.jsx(I,{id:"billing.graceBanner.messageNoCountdown"}):l.jsx(I,{id:"billing.graceBanner.message",values:{0:Me(new Date(i),{day:"numeric",month:"long"},r.locale)}})]}),e[30]=s.freeLimits.employees,e[31]=i,e[32]=r,e[33]=n,e[34]=a,e[35]=v):v=e[35];let _;e[36]!==c||e[37]!==o||e[38]!==h?(_=()=>{c.capture("billing_trial_ended_banner_upgrade_clicked",h),o("trial")},e[36]=c,e[37]=o,e[38]=h,e[39]=_):_=e[39];let j;e[40]!==n?(j=n?l.jsx(I,{id:"billing.graceBanner.choosePlanCta"}):l.jsx(I,{id:"billing.graceBanner.cta"}),e[40]=n,e[41]=j):j=e[41];let b;e[42]!==_||e[43]!==j?(b=l.jsx("button",{type:"button",onClick:_,className:"cursor-pointer font-medium text-amber-900 underline-offset-4 hover:underline",children:j}),e[42]=_,e[43]=j,e[44]=b):b=e[44];let L;return e[45]!==v||e[46]!==b?(L=l.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-3 gap-y-1 border-b border-amber-200 bg-amber-50 px-4 py-1.5 text-sm text-amber-900",children:[v,b]}),e[45]=v,e[46]=b,e[47]=L):L=e[47],L}function Jl(){const t=A.c(40),{data:e}=gs(),{open:s}=je(),a=ve(),i=ue(),n=Z.useRef(null);let d;t[0]!==e?(d=Ql(e),t[0]=e,t[1]=d):d=t[1];const r=d;let o;t[2]!==e||t[3]!==r?(o=r===null?Yl(e):null,t[2]=e,t[3]=r,t[4]=o):o=t[4];const c=o;let m;t[5]!==i?(m=i.check("billing","manage"),t[5]=i,t[6]=m):m=t[6];const u=m;let g,f;if(t[7]!==a||t[8]!==e||t[9]!==u||t[10]!==c?(g=()=>{if(c===null||!e)return;const w=String(e.proTrialEndsAt??"unknown");n.current!==w&&(n.current=w,a.capture("billing_pro_trial_banner_viewed",{reason:"trial",ctaKind:"open_dialog",canManageBilling:u,planTier:e.planTier,billingPhase:e.billingPhase,trialDaysLeft:c,proTrialEndsAt:e.proTrialEndsAt,employeeCount:e.usage.employees,freeEmployeeLimit:e.freeLimits.employees}))},f=[a,e,u,c],t[7]=a,t[8]=e,t[9]=u,t[10]=c,t[11]=g,t[12]=f):(g=t[11],f=t[12]),Z.useEffect(g,f),r!==null&&e){let w;return t[13]!==e||t[14]!==r.graceEndsAt||t[15]!==r.isSmallTeam||t[16]!==r.postTrialDaysLeft||t[17]!==r.proTrialEndsAt?(w=l.jsx(Xl,{billing:e,postTrialDaysLeft:r.postTrialDaysLeft,graceEndsAt:r.graceEndsAt,isSmallTeam:r.isSmallTeam,proTrialEndsAt:r.proTrialEndsAt}),t[13]=e,t[14]=r.graceEndsAt,t[15]=r.isSmallTeam,t[16]=r.postTrialDaysLeft,t[17]=r.proTrialEndsAt,t[18]=w):w=t[18],w}if(c===null)return null;const p=c<=3,h=p?"border-amber-200 bg-amber-50 text-amber-900":"bg-slate-2 text-muted-foreground";let x;t[19]!==h?(x=R("flex items-center justify-center gap-x-3 gap-y-1 border-b px-4 py-1.5 text-sm",h),t[19]=h,t[20]=x):x=t[20];let y;t[21]===Symbol.for("react.memo_cache_sentinel")?(y=l.jsx(Xe,{className:"size-3.5 shrink-0","aria-hidden":"true"}),t[21]=y):y=t[21];let C;t[22]!==p||t[23]!==c?(C=l.jsxs("span",{className:"flex items-center gap-1.5",children:[y,p?l.jsx(I,{id:"billing.proTrial.bannerEnding",values:{trialDaysLeft:c}}):l.jsx(I,{id:"billing.proTrial.banner",values:{trialDaysLeft:c}})]}),t[22]=p,t[23]=c,t[24]=C):C=t[24];let v;t[25]!==s?(v=()=>s("trial"),t[25]=s,t[26]=v):v=t[26];const _=p?"text-amber-900":"text-foreground";let j;t[27]!==_?(j=R("cursor-pointer font-medium underline-offset-4 hover:underline",_),t[27]=_,t[28]=j):j=t[28];let b;t[29]!==u||t[30]!==p?(b=p&&u?l.jsx(I,{id:"billing.proTrial.activateCta"}):l.jsx(I,{id:"billing.proTrial.seeIncluded"}),t[29]=u,t[30]=p,t[31]=b):b=t[31];let L;t[32]!==j||t[33]!==b||t[34]!==v?(L=l.jsx("button",{type:"button",onClick:v,className:j,children:b}),t[32]=j,t[33]=b,t[34]=v,t[35]=L):L=t[35];let N;return t[36]!==L||t[37]!==x||t[38]!==C?(N=l.jsxs("div",{className:x,children:[C,L]}),t[36]=L,t[37]=x,t[38]=C,t[39]=N):N=t[39],N}const ct="/assets/illustration_transparent-B8HZhsSJ.webp";function dt(){const t=jt(),e=Ge(),s=Lt(),[a,i]=Z.useState(!1),n=Z.useCallback(async()=>
31{if(!a){i(!0);try{hs(t),await xs(s),await St.signOut(),await e({to:"/signin/$",reloadDocument:!0})}finally{i(!1)}}},[t,a,e,s]);return{isSigningOut:a,signOut:n}}function fe(t){const e=A.c(8),{isSigningOut:s,onSignOut:a,variant:i}=t,n=i===void 0?"ghost":i;let d;e[0]!==s?(d=s?null:l.jsx(Je,{}),e[0]=s,e[1]=d):d=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx(I,{id:"navUser.logOut"}),e[2]=r):r=e[2];let o;return e[3]!==s||e[4]!==a||e[5]!==d||e[6]!==n?(o=l.jsxs(ie,{variant:n,size:"lg",isLoading:s,onClick:a,className:"min-w-32",children:[d,r]}),e[3]=s,e[4]=a,e[5]=d,e[6]=n,e[7]=o):o=e[7],o}function ei(t){const e=A.c(44),{canManageBilling:s,ctaHref:a,ctaLabel:i,fallbackCopy:n,isPreparingCta:d,isSigningOut:r,onCtaClick:o,onSignOut:c}=t,{i18n:m}=q();if(!s){let _;e[0]!==n?(_=l.jsx("p",{className:"text-muted-foreground text-center text-sm",children:n}),e[0]=n,e[1]=_):_=e[1];let j;e[2]!==r||e[3]!==c?(j=l.jsx(fe,{variant:"outline",isSigningOut:r,onSignOut:c}),e[2]=r,e[3]=c,e[4]=j):j=e[4];let b;return e[5]!==_||e[6]!==j?(b=l.jsxs("div",{className:"flex flex-col items-center gap-3 pt-3",children:[_,j]}),e[5]=_,e[6]=j,e[7]=b):b=e[7],b}if(!a){let _;e[8]!==m||e[9]!==d?(_=d?m._({id:"billing.freeTrial.preparingCheckout"}):m._({id:"billing.freeTrial.billingLoading"}),e[8]=m,e[9]=d,e[10]=_):_=e[10];let j;e[11]!==_?(j=l.jsx("span",{className:"text-muted-foreground text-sm",children:_}),e[11]=_,e[12]=j):j=e[12];let b;e[13]!==r||e[14]!==c?(b=l.jsx(fe,{isSigningOut:r,onSignOut:c}),e[13]=r,e[14]=c,e[15]=b):b=e[15];let L;return e[16]!==j||e[17]!==b?(L=l.jsxs("div",{className:"flex flex-col items-center gap-3 pt-3",children:[j,b]}),e[16]=j,e[17]=b,e[18]=L):L=e[18],L}let u;e[19]!==o?(u=_=>{_.preventDefault(),o?.()},e[19]=o,e[20]=u):u=e[20];const g=d||void 0;let f;e[21]!==d?(f=R(qe({variant:"default",size:"lg"}),"min-w-36 font-medium",d?"pointer-events-none cursor-progress opacity-80":void 0),e[21]=d,e[22]=f):f=e[22];let p;e[23]!==d?(p=d?l.jsx(be,{className:"size-4 animate-spin"}):null,e[23]=d,e[24]=p):p=e[24];let h;e[25]!==i||e[26]!==m||e[27]!==d?(h=d?m._({id:"billing.freeTrial.preparingCheckout"}):i,e[25]=i,e[26]=m,e[27]=d,e[28]=h):h=e[28];let x;e[29]!==p||e[30]!==h?(x=l.jsxs("span",{className:"inline-flex items-center gap-2",children:[p,h]}),e[29]=p,e[30]=h,e[31]=x):x=e[31];let y;e[32]!==a||e[33]!==u||e[34]!==g||e[35]!==f||e[36]!==x?(y=l.jsx("a",{href:a,onClick:u,"aria-disabled":g,className:f,children:x}),e[32]=a,e[33]=u,e[34]=g,e[35]=f,e[36]=x,e[37]=y):y=e[37];let C;e[38]!==r||e[39]!==c?(C=l.jsx(fe,{isSigningOut:r,onSignOut:c}),e[38]=r,e[39]=c,e[40]=C):C=e[40];let v;return e[41]!==y||e[42]!==C?(v=l.jsxs("div",{className:"flex flex-col items-center gap-2 pt-3",children:[y,C]}),e[41]=y,e[42]=C,e[43]=v):v=e[43],v}function ft(t){const e=A.c(94),{canManageBilling:s,employeeCount:a,employeeLimit:i,fallbackCopy:n,flatPlanPriceCents:d,getTierHref:r,includeFlat:o,isPreparingCta:c,isSigningOut:m,onSignOut:u,openTierCheckout:g,proAnnualSeatPriceCents:f,proSeatPriceCents:p}=t,{i18n:h}=q(),[x,y]=Z.useState(o?"flat":"pro_monthly");let C;e[0]!==a||e[1]!==f||e[2]!==p?(C={proSeatPriceCents:p,proAnnualSeatPriceCents:f,employeeCount:a},e[0]=a,e[1]=f,e[2]=p,e[3]=C):C=e[3];const{monthlySeatPrice:v,annualPerMonthSeatPrice:_,monthlyTotal:j,annualTotal:b,annualMonthsFree:L}=Ke(C);let N;e[4]!==d||e[5]!==h?(N=typeof d=="number"?h.number(d/100,{style:"currency",currency:"EUR"}):null,e[4]=d,e[5]=h,e[6]=N):N=e[6];const w=N;if(!s){let Q;e[7]!==n?(Q=l.jsx("p",{className:"text-muted-foreground text-center text-sm",children:n}),e[7]=n,e[8]=Q):Q=e[8];let X;e[9]!==m||e[10]!==u?(X=l.jsx(fe,{variant:"outline",isSigningOut:m,onSignOut:u}),e[9]=m,e[10]=u,e[11]=X):X=e[11];let J;return e[12]!==Q||e[13]!==X?(J=l.jsxs("div",{className:"flex flex-col items-center gap-3 pt-3",children:[Q,X]}),e[12]=Q,e[13]=X,e[14]=J):J=e[14],J}const T=f!=null,S=o&&x==="flat"?"flat":"pro",M=T&&x==="pro_annual"?"annual":"monthly",B=M==="annual"&&_!==null?_:v,P=S==="pro"?M:void 0;let k;e[15]!==S||e[16]!==r||e[17]!==P?(k=r(S,P),e[15]=S,e[16]=r,e[17]=P,e[18]=k):k=e[18];const U=k;if(!U){let Q;e[19]!==h||e[20]!==c?(Q=c?h._({id:"billing.freeTrial.preparingCheckout"}):h._({id:"billing.freeTrial.billingLoading"}),e[19]=h,e[20]=c,e[21]=Q):Q=e[21];let X;e[22]!==Q?(X=l.jsx("span",{className:"text-muted-foreground text-sm",children:Q}),e[22]=Q,e[23]=X):X=e[23];let J;e[24]!==m||e[25]!==u?(J=l.jsx(fe,{isSigningOut:m,onSignOut:u}),e[24]=m,e[25]=u,e[26]=J):J=e[26];let xe;return e[27]!==X||e[28]!==J?(xe=l.jsxs("div",{className:"flex flex-col items-center gap-3 pt-3",children:[X,J]}),e[27]=X,e[28]=J,e[29]=xe):xe=e[29],xe}let O;e[30]!==h||e[31]!==o?(O=h._(o?{id:"billing.proUpgrade.planPickerLabel"}:{id:"billing.proUpgrade.intervalPickerLabel"}),e[30]=h,e[31]=o,e[32]=O):O=e[32];let E;e[33]!==o?(E=o?[{value:"flat",label:l.jsx(I,{id:"billing.proUpgrade.plan.flat"})}]:[],e[33]=o,e[34]=E):E=e[34];let z;e[35]!==o?(z={value:"pro_monthly",label:o?l.jsx(I,{id:"billing.proUpgrade.plan.proMonthly"}):l.jsx(I,{id:"billing.proUpgrade.interval.monthly"})},e[35]=o,e[36]=z):z=e[36];let H;e[37]!==L||e[38]!==o||e[39]!==T?(H=T?[{value:"pro_annual",label:o?l.jsx(I,{id:"billing.proUpgrade.plan.proAnnual"}):l.jsx(I,{id:"billing.proUpgrade.interval.annual"}),badge:L>=1?l.jsx(Vt,{className:o?"max-[420px]:hidden":void 0,children:l.jsx(I,{id:"billing.proUpgrade.interval.monthsFree",values:{annualMonthsFree:L}})}):void 0}]:[],e[37]=L,e[38]=o,e[39]=T,e[40]=H):H=e[40];let $;e[41]!==E||e[42]!==z||e[43]!==H?($=[...E,z,...H],e[41]=E,e[42]=z,e[43]=H,e[44]=$):$=e[44];let V;e[45]!==x||e[46]!==O||e[47]!==$?(V=l.jsx(Ft,{value:x,onValueChange:y,"aria-label":O,className:"mb-2.5",options:$}),e[45]=x,e[46]=O,e[47]=$,e[48]=V):V=e[48];let F;e[49]!==S||e[50]!==i||e[51]!==w||e[52]!==B?(F=S==="flat"&&w?l.jsxs(l.Fragment,{children:[l.jsx("p",{className:"text-2xl font-semibold tracking-tight",children:l.jsx(I,{id:"billing.proUpgrade.basicPriceAmount",values:{flatMonthlyPrice:w},components:{0:l.jsx("span",{className:"text-muted-foreground text-sm font-normal"})}})}),l.jsx("p",{className:"text-muted-foreground text-sm",children:l.jsx(I,{id:"billing.proUpgrade.basicPriceQualifier",values:{employeeLimit:i}})})]}):B?l.jsx("p",{className:"text-2xl font-semibold tracking-tight",children:l.jsx(I,{id:"billing.proUpgrade.priceAmount",values:{seatPrice:B},components:{0:l.jsx("span",{className:"text-muted-foreground text-sm font-normal"})}})}):null,e[49]=S,e[50]=i,e[51]=w,e[52]=B,e[53]=F):F=e[53];let D;e[54]!==M||e[55]!==S||e[56]!==b||e[57]!==a||e[58]!==j?(D=S==="pro"&&typeof a=="number"&&a>0?M==="annual"&&b?l.jsx("p",{className:"text-muted-foreground text-sm",children:l.jsx(I,{id:"billing.proUpgrade.priceTotalAnnual",values:{employeeCount:a,annualTotal:b}})}):M==="monthly"&&j?l.jsx("p",{className:"text-muted-foreground text-sm",children:l.jsx(I,{id:"billing.proUpgrade.priceTotal",values:{employeeCount:a,monthlyTotal:j}
31})}):null:null,e[54]=M,e[55]=S,e[56]=b,e[57]=a,e[58]=j,e[59]=D):D=e[59];let G;e[60]===Symbol.for("react.memo_cache_sentinel")?(G=l.jsx("p",{className:"text-muted-foreground text-xs",children:l.jsx(I,{id:"billing.proUpgrade.priceNote"})}),e[60]=G):G=e[60];let K;e[61]!==M||e[62]!==S||e[63]!==g?(K=Q=>{Q.preventDefault(),g(S,S==="pro"?M:void 0)},e[61]=M,e[62]=S,e[63]=g,e[64]=K):K=e[64];const W=c||void 0;let Y;e[65]!==c?(Y=R(qe({variant:"default",size:"lg"}),"w-full font-medium",c?"pointer-events-none cursor-progress opacity-80":void 0),e[65]=c,e[66]=Y):Y=e[66];let te;e[67]!==c?(te=c?l.jsx(be,{className:"size-4 animate-spin"}):null,e[67]=c,e[68]=te):te=e[68];let se;e[69]!==M||e[70]!==S||e[71]!==h||e[72]!==c?(se=c?h._({id:"billing.freeTrial.preparingCheckout"}):S==="flat"?l.jsx(I,{id:"billing.freeTrial.ctaChooseBasic"}):M==="annual"?l.jsx(I,{id:"billing.freeTrial.ctaChooseProAnnual"}):l.jsx(I,{id:"billing.freeTrial.ctaChooseProMonthly"}),e[69]=M,e[70]=S,e[71]=h,e[72]=c,e[73]=se):se=e[73];let ne;e[74]!==te||e[75]!==se?(ne=l.jsxs("span",{className:"inline-flex items-center gap-2",children:[te,se]}),e[74]=te,e[75]=se,e[76]=ne):ne=e[76];let oe;e[77]!==U||e[78]!==K||e[79]!==W||e[80]!==Y||e[81]!==ne?(oe=l.jsx("a",{href:U,onClick:K,"aria-disabled":W,className:Y,children:ne}),e[77]=U,e[78]=K,e[79]=W,e[80]=Y,e[81]=ne,e[82]=oe):oe=e[82];let re;e[83]!==m||e[84]!==u?(re=l.jsx(fe,{isSigningOut:m,onSignOut:u}),e[83]=m,e[84]=u,e[85]=re):re=e[85];let ce;e[86]!==oe||e[87]!==re?(ce=l.jsxs("div",{className:"flex w-full flex-col items-center gap-2 pt-3",children:[oe,re]}),e[86]=oe,e[87]=re,e[88]=ce):ce=e[88];let he;return e[89]!==V||e[90]!==F||e[91]!==D||e[92]!==ce?(he=l.jsxs("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:[V,F,D,G,ce]}),e[89]=V,e[90]=F,e[91]=D,e[92]=ce,e[93]=he):he=e[93],he}function ti(t){const e=A.c(28),{canManageBilling:s,employeeLimit:a,employeeCount:i,proSeatPriceCents:n,proAnnualSeatPriceCents:d,getTierHref:r,openTierCheckout:o,isPreparingCta:c,isSigningOut:m,onSignOut:u}=t,{i18n:g}=q();let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Le,{className:"text-center text-3xl font-bold",children:l.jsx(I,{id:"billing.freeTrial.titleUpgrade"})}),e[0]=f):f=e[0];let p;e[1]!==a||e[2]!==g?(p=g._({id:"billing.freeTrial.overLimitBody",message:"This workspace is over Essential's limit of {employeeLimit} employees or one branch, and the 14-day Pro upgrade trial has ended.",values:{employeeLimit:a}}),e[1]=a,e[2]=g,e[3]=p):p=e[3];let h;e[4]!==p?(h=l.jsxs(Se,{children:[f,l.jsx(we,{className:"text-center",children:p})]}),e[4]=p,e[5]=h):h=e[5];let x;e[6]!==g?(x=g._({id:"billing.freeTrial.titleUpgrade"}),e[6]=g,e[7]=x):x=e[7];let y;e[8]!==x?(y=l.jsx("div",{className:"mx-auto flex justify-center",children:l.jsx("img",{src:ct,alt:x,className:"w-auto"})}),e[8]=x,e[9]=y):y=e[9];let C;e[10]!==g?(C=g._({id:"billing.freeTrial.fallbackAskAdminUpgrade"}),e[10]=g,e[11]=C):C=e[11];let v;e[12]!==s||e[13]!==i||e[14]!==a||e[15]!==r||e[16]!==c||e[17]!==m||e[18]!==u||e[19]!==o||e[20]!==d||e[21]!==n||e[22]!==C?(v=l.jsx(ft,{canManageBilling:s,employeeCount:i,employeeLimit:a,fallbackCopy:C,getTierHref:r,includeFlat:!1,isPreparingCta:c,isSigningOut:m,onSignOut:u,openTierCheckout:o,proAnnualSeatPriceCents:d,proSeatPriceCents:n}),e[12]=s,e[13]=i,e[14]=a,e[15]=r,e[16]=c,e[17]=m,e[18]=u,e[19]=o,e[20]=d,e[21]=n,e[22]=C,e[23]=v):v=e[23];let _;return e[24]!==h||e[25]!==y||e[26]!==v?(_=l.jsx(Ne,{open:!0,onOpenChange:si,children:l.jsxs(ke,{showCloseButton:!1,className:"gap-2 sm:max-w-md md:max-w-lg",children:[h,y,v]})}),e[24]=h,e[25]=y,e[26]=v,e[27]=_):_=e[27],_}function si(){}function li(t){const e=A.c(59),{canManageBilling:s,employeeLimit:a,employeeCount:i,flatPlanPriceCents:n,proSeatPriceCents:d,proAnnualSeatPriceCents:r,getTierHref:o,openTierCheckout:c,isPreparingCta:m,isSigningOut:u,onSignOut:g}=t,{i18n:f}=q();let p;e[0]!==r||e[1]!==d?(p={proSeatPriceCents:d,proAnnualSeatPriceCents:r},e[0]=r,e[1]=d,e[2]=p):p=e[2];const{monthlySeatPrice:h,annualSeatPrice:x}=Ke(p);let y,C,v,_,j,b,L,N,w,T,S;if(e[3]!==x||e[4]!==a||e[5]!==n||e[6]!==f||e[7]!==h){const H=typeof n=="number"?f.number(n/100,{style:"currency",currency:"EUR"}):"",$=h??"";_=Ne,T=!0,S=ii,v=ke,N=!1,w="gap-2 sm:max-w-md md:max-w-lg",C=Se,e[19]===Symbol.for("react.memo_cache_sentinel")?(L=l.jsx(Le,{className:"text-center text-3xl font-bold",children:l.jsx(I,{id:"billing.freeTrial.smallTeamTitle"})}),e[19]=L):L=e[19],y=we,j="text-center",b=x?f._({id:"billing.freeTrial.smallTeamBodyAnnual",message:"Essential is {flatMonthlyPrice}/month and includes every feature for up to {employeeLimit} employees at one branch. Pro is {seatPrice} per employee/month or {annualSeatPrice} per employee/year, with no employee or branch limits.",values:{employeeLimit:a,flatMonthlyPrice:H,seatPrice:$,annualSeatPrice:x}}):f._({id:"billing.freeTrial.smallTeamBody",message:"Essential is {flatMonthlyPrice}/month and includes every feature for up to {employeeLimit} employees at one branch. Pro is {seatPrice}
31 per employee/month with no employee or branch limits.",values:{employeeLimit:a,flatMonthlyPrice:H,seatPrice:$}}),e[3]=x,e[4]=a,e[5]=n,e[6]=f,e[7]=h,e[8]=y,e[9]=C,e[10]=v,e[11]=_,e[12]=j,e[13]=b,e[14]=L,e[15]=N,e[16]=w,e[17]=T,e[18]=S}else y=e[8],C=e[9],v=e[10],_=e[11],j=e[12],b=e[13],L=e[14],N=e[15],w=e[16],T=e[17],S=e[18];let M;e[20]!==y||e[21]!==j||e[22]!==b?(M=l.jsx(y,{className:j,children:b}),e[20]=y,e[21]=j,e[22]=b,e[23]=M):M=e[23];let B;e[24]!==C||e[25]!==L||e[26]!==M?(B=l.jsxs(C,{children:[L,M]}),e[24]=C,e[25]=L,e[26]=M,e[27]=B):B=e[27];let P;e[28]!==f?(P=f._({id:"billing.freeTrial.smallTeamTitle"}),e[28]=f,e[29]=P):P=e[29];let k;e[30]!==P?(k=l.jsx("div",{className:"mx-auto flex justify-center",children:l.jsx("img",{src:ct,alt:P,className:"w-auto"})}),e[30]=P,e[31]=k):k=e[31];let U;e[32]!==f?(U=f._({id:"billing.freeTrial.fallbackAskAdminChoosePlan"}),e[32]=f,e[33]=U):U=e[33];let O;e[34]!==s||e[35]!==i||e[36]!==a||e[37]!==n||e[38]!==o||e[39]!==m||e[40]!==u||e[41]!==g||e[42]!==c||e[43]!==r||e[44]!==d||e[45]!==U?(O=l.jsx(ft,{canManageBilling:s,employeeCount:i,employeeLimit:a,fallbackCopy:U,flatPlanPriceCents:n,getTierHref:o,includeFlat:!0,isPreparingCta:m,isSigningOut:u,onSignOut:g,openTierCheckout:c,proAnnualSeatPriceCents:r,proSeatPriceCents:d}),e[34]=s,e[35]=i,e[36]=a,e[37]=n,e[38]=o,e[39]=m,e[40]=u,e[41]=g,e[42]=c,e[43]=r,e[44]=d,e[45]=U,e[46]=O):O=e[46];let E;e[47]!==v||e[48]!==B||e[49]!==k||e[50]!==O||e[51]!==N||e[52]!==w?(E=l.jsxs(v,{showCloseButton:N,className:w,children:[B,k,O]}),e[47]=v,e[48]=B,e[49]=k,e[50]=O,e[51]=N,e[52]=w,e[53]=E):E=e[53];let z;return e[54]!==_||e[55]!==E||e[56]!==T||e[57]!==S?(z=l.jsx(_,{open:T,onOpenChange:S,children:E}),e[54]=_,e[55]=E,e[56]=T,e[57]=S,e[58]=z):z=e[58],z}function ii(){}function ai(t){const e=A.c(15),{canManageBilling:s,ctaHref:a,isPreparingCta:i,isSigningOut:n,onCtaClick:d,onSignOut:r}=t,{i18n:o}=q();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(Le,{className:"text-center text-3xl font-bold",children:l.jsx(I,{id:"billing.freeTrial.titleBillingRequired"})}),e[0]=c):c=e[0];let m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsxs(Se,{children:[c,l.jsx(we,{className:"text-center",children:l.jsx(I,{id:"billing.freeTrial.gracePeriodEnded"})})]}),e[1]=m):m=e[1];let u;e[2]!==o?(u=o._({id:"billing.freeTrial.ctaManageBilling"}),e[2]=o,e[3]=u):u=e[3];let g;e[4]!==o?(g=o._({id:"billing.freeTrial.fallbackContactAdminBilling"}),e[4]=o,e[5]=g):g=e[5];let f;return e[6]!==s||e[7]!==a||e[8]!==i||e[9]!==n||e[10]!==d||e[11]!==r||e[12]!==u||e[13]!==g?(f=l.jsx(Ne,{open:!0,onOpenChange:ni,children:l.jsxs(ke,{showCloseButton:!1,className:"gap-2 sm:max-w-md md:max-w-lg",children:[m,l.jsx(ei,{canManageBilling:s,ctaHref:a,ctaLabel:u,fallbackCopy:g,isPreparingCta:i,isSigningOut:n,onCtaClick:d,onSignOut:r})]})}),e[6]=s,e[7]=a,e[8]=i,e[9]=n,e[10]=d,e[11]=r,e[12]=u,e[13]=g,e[14]=f):f=e[14],f}function ni(){}function oi(t){return t?.billingPhase!=="blocked"?"hidden":t.canManageSubscription?"portal":t.usage.employees<=t.freeLimits.employees&&t.usage.branches<=t.freeLimits.branches?"basic_and_pro":"pro_only"}function ri(){const t=A.c(35),{billing:e,canManageBilling:s,ctaHref:a,getCtaHref:i,isPreparingCta:n,openBillingCta:d}=Ee(),{isSigningOut:r,signOut:o}=dt(),{pathname:c}=Ms();q();const m=oi(e);if(m==="hidden"||!e||c.startsWith("/billing/winback"))return null;if(m==="portal"){let b;return t[0]!==s||t[1]!==a||t[2]!==n||t[3]!==r||t[4]!==d||t[5]!==o?(b=l.jsx(ai,{canManageBilling:s,ctaHref:a,isPreparingCta:n,isSigningOut:r,onCtaClick:d,onSignOut:o}),t[0]=s,t[1]=a,t[2]=n,t[3]=r,t[4]=d,t[5]=o,t[6]=b):b=t[6],b}const u=m==="basic_and_pro";let g;t[7]===Symbol.for("react.memo_cache_sentinel")?(g={source:"blocked_billing_dialog",reason:"blocked"},t[7]=g):g=t[7];const f=g;let p;t[8]!==i?(p=(b,L)=>i(f,b,L),t[8]=i,t[9]=p):p=t[9];const h=p;let x;t[10]!==d?(x=(b,L)=>d(f,b,L),t[10]=d,t[11]=x):x=t[11];const y=x,C=e.flatPlanPriceCents??999,v=e.proSeatPriceCents??299,_=e.proAnnualAvailable?e.proAnnualSeatPriceCents??2988:null;if(u){let b;return t[12]!==e.freeLimits.employees||t[13]!==e.usage.employees||t[14]!==s||t[15]!==C||t[16]!==h||t[17]!==n||t[18]!==r||t[19]!==y||t[20]!==_||t[21]!==v||t[22]!==o?(b=l.jsx(li,{canManageBilling:s,employeeLimit:e.freeLimits.employees,employeeCount:e.usage.employees,flatPlanPriceCents:C,proSeatPriceCents:v,proAnnualSeatPriceCents:_,getTierHref:h,openTierCheckout:y,isPreparingCta:n,isSigningOut:r,onSignOut:o}),t[12]=e.freeLimits.employees,t[13]=e.usage.employees,t[14]=s,t[15]=C,t[16]=h,t[17]=n,t[18]=r,t[19]=y,t[20]=_,t[21]=v,t[22]=o,t[23]=b):b=t[23],b}let j;return t[24]!==e.freeLimits.employees||t[25]!==e.usage.employees||t[26]!==s||t[27]!==h||t[28]!==n||t[29]!==r||t[30]!==y||t[31]!==_||t[32]!==v||t[33]!==o?(j=l.jsx(ti,{canManageBilling:s,employeeLimit:e.freeLimits.employees,employeeCount:e.usage.employees,proSeatPriceCents:v,proAnnualSeatPriceCents:_,getTierHref:h,openTierCheckout:y,isPreparingCta:n,isSigningOut:r,onSignOut:o}),t[24]=e.freeLimits.employees,t[25]=e.usage.employees,t[26]=s,t[27]=h,t[28]=n,t[29]=r,t[30]=y,t[31]=_,t[32]=v,t[33]=o,t[34]=j):j=t[34],j}const ci="34641987253",Fe={es:"Hola, os escribo desde mi cuenta de Turnozo. ",en:"Hi, I'm writing from my Turnozo account. ",it:"Ciao, vi scrivo dal mio account Turnozo. ",fr:"Bonjour, je vous écris depuis mon compte Turnozo. "};function di(t){const e=encodeURIComponent(Fe[t]??Fe.en);return`https://wa.me/${ci}?text=${e}`}const fi=[{value:"bug",label:{id:"feedback.category.bug"},Icon:Os},{value:"idea",label:{id:"feedback.category.idea"},Icon:Ds},{value:"other",label:{id:"feedback.category.other"},Icon:Es}];function mi(t){const e=A.c(3),{className:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.
31198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"}),e[0]=a):a=e[0];let i;return e[1]!==s?(i=l.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:s,children:a}),e[1]=s,e[2]=i):i=e[2],i}function pi(){const t=A.c(66),{i18n:e}=q(),s=ve(),a=We(ee.feedback.submit);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={select:ui},t[0]=i):i=t[0];const n=_e(i),[d,r]=Z.useState(!1),[o,c]=Z.useState("idea"),[m,u]=Z.useState("");let g;t[1]!==a?(g=W=>a(W),t[1]=a,t[2]=g):g=t[2];let f;t[3]!==s||t[4]!==e?(f=(W,Y)=>{r(!1),u(""),s.capture("feedback_submitted",{category:Y.category}),kt.success(e._({id:"feedback.thanks"}))},t[3]=s,t[4]=e,t[5]=f):f=t[5];let p;t[6]!==g||t[7]!==f?(p={mutationFn:g,onSuccess:f},t[6]=g,t[7]=f,t[8]=p):p=t[8];const h=wt(p);let x;t[9]!==m||t[10]!==h.isPending?(x=m.trim().length>0&&!h.isPending,t[9]=m,t[10]=h.isPending,t[11]=x):x=t[11];const y=x;let C;t[12]!==y||t[13]!==o||t[14]!==m||t[15]!==n||t[16]!==h?(C=()=>{y&&h.mutate({category:o,message:m,route:n})},t[12]=y,t[13]=o,t[14]=m,t[15]=n,t[16]=h,t[17]=C):C=t[17];const v=C;let _;t[18]!==e?(_=e._({id:"feedback.openAria"}),t[18]=e,t[19]=_):_=t[19];let j;t[20]===Symbol.for("react.memo_cache_sentinel")?(j=l.jsx(qs,{size:"20px","aria-hidden":"true"}),t[20]=j):j=t[20];let b;t[21]!==_?(b=l.jsx(Ie,{asChild:!0,children:l.jsx($t,{asChild:!0,children:l.jsx(ie,{variant:"ghost",size:"icon","aria-label":_,children:j})})}),t[21]=_,t[22]=b):b=t[22];let L;t[23]===Symbol.for("react.memo_cache_sentinel")?(L=l.jsx(Oe,{children:l.jsx(I,{id:"feedback.tooltip"})}),t[23]=L):L=t[23];let N;t[24]!==b?(N=l.jsxs(Ue,{children:[b,L]}),t[24]=b,t[25]=N):N=t[25];let w;t[26]===Symbol.for("react.memo_cache_sentinel")?(w=l.jsx("p",{className:"text-sm font-semibold",children:l.jsx(I,{id:"feedback.title"})}),t[26]=w):w=t[26];let T;t[27]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsxs("div",{className:"grid gap-1",children:[w,l.jsx("p",{className:"text-muted-foreground text-xs",children:l.jsx(I,{id:"feedback.subtitle"})})]}),t[27]=T):T=t[27];let S;t[28]!==o||t[29]!==e?(S=fi.map(W=>{const{value:Y,label:te,Icon:se}=W;return l.jsxs("button",{type:"button",onClick:()=>c(Y),"aria-pressed":Y===o,className:R("inline-flex cursor-pointer items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs leading-snug transition-colors",Y===o?"border-primary bg-primary/10 text-foreground":"bg-background hover:bg-accent text-muted-foreground"),children:[l.jsx(se,{className:"size-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{children:e._(te)})]},Y)}),t[28]=o,t[29]=e,t[30]=S):S=t[30];let M;t[31]!==S?(M=l.jsx("div",{className:"flex flex-wrap gap-2",children:S}),t[31]=S,t[32]=M):M=t[32];let B;t[33]===Symbol.for("react.memo_cache_sentinel")?(B=W=>u(W.target.value),t[33]=B):B=t[33];let P;t[34]!==v?(P=W=>{(W.metaKey||W.ctrlKey)&&W.key==="Enter"&&v()},t[34]=v,t[35]=P):P=t[35];let k;t[36]!==e?(k=e._({id:"feedback.placeholder"}),t[36]=e,t[37]=k):k=t[37];let U;t[38]!==m||t[39]!==P||t[40]!==k?(U=l.jsx(ls,{value:m,onChange:B,onKeyDown:P,rows:4,placeholder:k}),t[38]=m,t[39]=P,t[40]=k,t[41]=U):U=t[41];const O=!y;let E;t[42]===Symbol.for("react.memo_cache_sentinel")?(E=l.jsx(I,{id:"feedback.send"}),t[42]=E):E=t[42];let z;t[43]!==v||t[44]!==h.isPending||t[45]!==O?(z=l.jsx(ie,{type:"button",size:"sm",disabled:O,isLoading:h.isPending,onClick:v,children:E}),t[43]=v,t[44]=h.isPending,t[45]=O,t[46]=z):z=t[46];let H;t[47]!==e.locale?(H=di(Nt(e.locale)),t[47]=e.locale,t[48]=H):H=t[48];let $;t[49]!==s||t[50]!==n?($=()=>s.capture("whatsapp_contact_clicked",{route:n}),t[49]=s,t[50]=n,t[51]=$):$=t[51];let V,F;t[52]===Symbol.for("react.memo_cache_sentinel")?(V=l.jsx(mi,{className:"size-3.5 shrink-0 text-[#25D366]"}),F=l.jsx("span",{children:l.jsx(I,{id:"feedback.whatsapp"})}),t[52]=V,t[53]=F):(V=t[52],F=t[53]);let D;t[54]!==H||t[55]!==$?(D=l.jsx("div",{className:"-mx-4 -mb-4 border-t px-4 py-2.5",children:l.jsxs("a",{href:H,target:"_blank",rel:"noopener noreferrer",onClick:$,className:"text-muted-foreground hover:text-foreground -mx-2 -my-1.5 flex min-h-11 items-center gap-2 rounded-md px-2 py-1.5 text-xs transition-colors",children:[V,F]})}),t[54]=H,t[55]=$,t[56]=D):D=t[56];let G;
31t[57]!==M||t[58]!==U||t[59]!==z||t[60]!==D?(G=l.jsx(Dt,{align:"end",className:"w-[calc(100vw-2rem)] sm:w-[23.5rem]",children:l.jsxs("div",{className:"grid gap-3",children:[T,M,U,z,D]})}),t[57]=M,t[58]=U,t[59]=z,t[60]=D,t[61]=G):G=t[61];let K;return t[62]!==d||t[63]!==N||t[64]!==G?(K=l.jsxs(Ht,{open:d,onOpenChange:r,children:[N,G]}),t[62]=d,t[63]=N,t[64]=G,t[65]=K):K=t[65],K}function ui(t){return t.location.pathname}const mt="mobile-web-interstitial:v1:dismissed";function gi(){if(typeof window>"u")return!0;try{return localStorage.getItem(mt)==="1"}catch(t){return console.error("Failed to read mobile web notice dismissal",t),!1}}function hi(t){const e=A.c(32),{role:s}=t,a=nt(),[i,n]=Z.useState(gi),d=a&&!i;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{try{localStorage.setItem(mt,"1")}catch(P){console.error("Failed to persist mobile web notice dismissal",P)}n(!0)},e[0]=r):r=e[0];const o=r;if(!a||!d)return null;let c,m,u,g,f;if(e[1]===Symbol.for("react.memo_cache_sentinel")){const P=new Date,k=U=>new Date(P.getTime()+U*864e5).toLocaleDateString(void 0,{weekday:"long"});u={key:"front",day:k(0),what:l.jsx(I,{id:"mobileWebNotice.deck.shift"}),hours:"09:00–17:00",edge:"var(--color-blue-600)"},g={key:"second",day:k(1),what:l.jsx(I,{id:"mobileWebNotice.deck.location"}),hours:"12:00–20:00",edge:"var(--color-amber-600)"},c="third",m=k(2),f=l.jsx(I,{id:"mobileWebNotice.deck.evening"}),e[1]=c,e[2]=m,e[3]=u,e[4]=g,e[5]=f}else c=e[1],m=e[2],u=e[3],g=e[4],f=e[5];let p;e[6]!==m?(p={key:c,day:m,what:f,hours:"15:00–23:00",edge:"var(--color-zinc-900)"},e[6]=m,e[7]=p):p=e[7];let h;e[8]!==u||e[9]!==g||e[10]!==p?(h=[u,g,p],e[8]=u,e[9]=g,e[10]=p,e[11]=h):h=e[11];const x=h;let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=P=>!P&&o(),e[12]=y):y=e[12];let C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C=R("inset-0 h-auto max-h-none w-auto max-w-none translate-x-0 translate-y-0 gap-0 overflow-y-auto rounded-none border-0 p-0 sm:max-w-none","[&>button]:top-[max(1rem,env(safe-area-inset-top))]"),e[13]=C):C=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=l.jsx("p",{className:"text-muted-foreground/80 text-[0.7rem] font-semibold tracking-[0.14em] uppercase",children:l.jsx(I,{id:"mobileWebNotice.kicker"})}),e[14]=v):v=e[14];let _,j;e[15]===Symbol.for("react.memo_cache_sentinel")?(_=l.jsx(I,{id:"mobileWebNotice.title.v5"}),j=l.jsx("br",{}),e[15]=_,e[16]=j):(_=e[15],j=e[16]);let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=l.jsxs(Le,{className:"pt-3 text-[2.1rem] leading-[1.05] font-semibold tracking-[-0.03em] sm:text-[2.35rem]",children:[_,j,l.jsx("span",{className:"text-muted-foreground/70",children:l.jsx(I,{id:"mobileWebNotice.title.v5b"})})]}),e[17]=b):b=e[17];let L;e[18]!==s?(L=l.jsxs(Se,{className:"space-y-0 text-left",children:[v,b,l.jsx(we,{className:"text-muted-foreground pt-4 text-[0.95rem] leading-6 text-pretty",children:s==="employee"?l.jsx(I,{id:"mobileWebNotice.body.employee"}):l.jsx(I,{id:"mobileWebNotice.body.manager"})})]}),e[18]=s,e[19]=L):L=e[19];let N;e[20]!==x?(N=l.jsx("div",{"aria-hidden":"true",className:"relative h-[11.5rem]",children:x.map((P,k)=>l.jsxs("div",{className:"border-border bg-background absolute flex items-center gap-3 rounded-2xl border p-3.5",style:{to
31p:`${k*3.4}rem`,left:`${k*.75}rem`,right:`${k*.75}rem`,zIndex:x.length-k,boxShadow:k===0?"0 18px 32px -18px rgba(24,24,27,0.45), 0 2px 6px -2px rgba(24,24,27,0.12)":"0 6px 14px -10px rgba(24,24,27,0.25)"},children:[l.jsx("span",{className:"w-[3px] self-stretch rounded-full",style:{background:P.edge}}),l.jsxs("span",{className:"min-w-0",children:[l.jsx("span",{className:"text-muted-foreground block truncate text-xs capitalize",children:P.day}),l.jsx("span",{className:"mt-0.5 block truncate text-[0.9rem] font-medium",children:P.what})]}),l.jsx("span",{className:"text-foreground/80 ml-auto font-mono text-[0.8rem] tabular-nums",children:P.hours})]},P.key))}),e[20]=x,e[21]=N):N=e[21];let w;e[22]!==L||e[23]!==N?(w=l.jsxs("div",{className:"flex flex-1 flex-col justify-center gap-7 py-6 sm:gap-9 sm:py-10",children:[L,N]}),e[22]=L,e[23]=N,e[24]=w):w=e[24];let T;e[25]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(bs,{}),e[25]=T):T=e[25];let S;e[26]===Symbol.for("react.memo_cache_sentinel")?(S=l.jsxs("div",{className:"space-y-4",children:[T,l.jsx("button",{"data-mobile-web-notice-continue":"",type:"button",onClick:o,className:"text-muted-foreground hover:text-foreground flex min-h-11 w-full items-center justify-center text-sm font-medium transition-colors",children:l.jsx(I,{id:"mobileWebNotice.continue.v2"})})]}),e[26]=S):S=e[26];let M;e[27]!==w?(M=l.jsx(ke,{className:C,onOpenAutoFocus:xi,children:l.jsx("div",{className:"bg-background relative flex min-h-full flex-col",children:l.jsxs("div",{className:"flex min-h-full flex-col px-6 pt-[max(2rem,env(safe-area-inset-top))] pb-[max(1.5rem,env(safe-area-inset-bottom))]",children:[w,S]})})}),e[27]=w,e[28]=M):M=e[28];let B;return e[29]!==d||e[30]!==M?(B=l.jsx(Ne,{open:d,onOpenChange:y,children:M}),e[29]=d,e[30]=M,e[31]=B):B=e[31],B}function xi(t){t.preventDefault(),document.querySelector("[data-app-store-badge]")?.focus()}function bi(){const t=A.c(43);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=le(ee.employees.getCurrent,{}),t[0]=e):e=t[0];const{data:s}=Ae(e),{ctaHref:a,ctaKind:i,isPreparingCta:n,openBillingCta:d}=Ee(),{open:r}=je(),o=ue();let c;t[1]!==o?(c=o.check("billing","manage"),t[1]=o,t[2]=c):c=t[2];const m=c,{signOut:u}=dt(),g=s?.authUser?.image,f=s?._id??"";let p;t[3]!==g||t[4]!==f?(p=l.jsx(et,{asChild:!0,children:l.jsx(ie,{size:"icon",variant:"ghost",children:l.jsx(Re,{src:g,userId:f})})}),t[3]=g,t[4]=f,t[5]=p):p=t[5];const h=s?.authUser?.image,x=s?._id??"";let y;t[6]!==h||t[7]!==x?(y=l.jsx(Re,{src:h,userId:x}),t[6]=h,t[7]=x,t[8]=y):y=t[8];const C=s?.name;let v;t[9]!==C?(v=l.jsx("span",{className:"truncate font-semibold",children:C}),t[9]=C,t[10]=v):v=t[10];const _=s?.contactEmail;let j;t[11]!==_?(j=l.jsx("span",{className:"truncate text-xs",children:_}),t[11]=_,t[12]=j):j=t[12];let b;t[13]!==j||t[14]!==v?(b=l.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v,j]}),t[13]=j,t[14]=v,t[15]=b):b=t[15];let L;t[16]!==b||t[17]!==y?(L=l.jsx(tt,{className:"p-0 font-normal",children:l.jsxs("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[y,b]})}),t[16]=b,t[17]=y,t[18]=L):L=t[18];let N;t[19]===Symbol.for("react.memo_cache_sentinel")?(N=l.jsx(ze,{}),t[19]=N):N=t[19];let w;t[20]===Symbol.for("react.memo_cache_sentinel")?(w=l.jsx(de,{asChild:!0,children:l.jsxs(ae,{to:"/profile",children:[l.jsx(Bs,{}),l.jsx(I,{id:"navUser.profile"})]})}),t[20]=w):w=t[20];let T;t[21]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(de,{asChild:!0,children:l.jsxs(ae,{to:"/notifications",children:[l.jsx(_s,{}),l.jsx(I,{id:"navUser.notifications"})]})}),t[21]=T):T=t[21];let S;t[22]!==m||t[23]!==a||t[24]!==i||t[25]!==n||t[26]!==d||t[27]!==r?(S=m&&a?l.jsxs(de,{disabled:n,onSelect:z=>{if(i==="portal"){z.preventDefault(),d();return}r("generic")},children:[n?l.jsx(be,{className:"animate-spin"}):l.jsx(zs,{}),n?l.jsx(I,{id:"navUser.preparingUpgrade"}):i==="portal"?l.jsx(I,{id:"navUser.billing"}):l.jsx(I,{id:"navUser.upgrade"})]}):null,t[22]=m,t[23]=a,t[24]=i,t[25]=n,t[26]=d,t[27]=r,t[28]=S):S=t[28];let M;t[29]!==S?(M=l.jsxs(ys,{children:[w,T,S]}),t[29]=S,t[30]=M):M=t[30];let B;t[31]===Symbol.for("react.memo_cache_sentinel")?(B=l.jsx(ze,{}),t[31]=B):B=t[31];let P,k;t[32]===Symbol.for("react.memo_cache_sentinel")?(P=l.jsx(Je,{}),k=l.jsx(I,{id:"navUser.logOut"}),t[32]=P,t[33]=k):(P=t[32],k=t[33]);let U;t[34]!==u?(U=l.jsxs(de,{onClick:u,children:[P,k]}),t[34]=u,t[35]=U):U=t[35];let O;t[36]!==L||t[37]!==M||t[38]!==U?(O=l.jsxs(st,{className:"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",side:"bottom",align:"end",sideOffset:4,children:[L,N,M,B,U]}),t[36]=L,t[37]=M,t[38]=U,t[39]=O):O=t[39];let E;return t[40]!==O||t[41]!==p?(E=l.jsxs(lt,{children:[p,O]}),t[40]=O,t[41]=p,t[42]=E):E=t[42],E}function Ci(){const t=A.c(49),e=Ge(),{i18n:s}=q(),{intlOptions:a,timeFormat:i}=Ls(),{handleNotificationClick:n,markAllReadMutation:d}=vs();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=le(ee.notifications.countUnread,{}),t[0]=r):r=t[0];const{data:o}
31=Ae(r),c=o===void 0?0:o;let m;t[1]===Symbol.for("react.memo_cache_sentinel")?(m=le(ee.notifications.listForUser,{paginationOpts:{numItems:10,cursor:null}}),t[1]=m):m=t[1];const{data:u}=Ae(m);let g,f,p,h,x,y,C;if(t[2]!==n||t[3]!==s||t[4]!==a||t[5]!==d||t[6]!==u||t[7]!==i||t[8]!==c){const N={dateStyle:"medium",timeStyle:"short",...a};f=lt;let w;t[16]===Symbol.for("react.memo_cache_sentinel")?(w=l.jsx(Zs,{className:"size-5"}),t[16]=w):w=t[16];let T;t[17]!==s||t[18]!==c?(T=c>0&&l.jsx($e,{variant:"destructive",className:"absolute -top-1 -right-1 size-5 rounded-full p-0 text-xs",children:c>9?s._({id:"notificationBell.badgeOverflow"}):c}),t[17]=s,t[18]=c,t[19]=T):T=t[19],t[20]!==T?(C=l.jsx(et,{asChild:!0,children:l.jsxs(ie,{variant:"ghost",size:"icon",className:"relative",children:[w,T]})}),t[20]=T,t[21]=C):C=t[21],g=st,p="end",h="max-h-[min(32rem,calc(100vh-2rem))] w-80 overflow-y-auto p-0";let S;t[22]===Symbol.for("react.memo_cache_sentinel")?(S=l.jsx("span",{children:l.jsx(I,{id:"notificationBell.title"})}),t[22]=S):S=t[22];let M;t[23]!==c?(M=c>0&&l.jsx($e,{variant:"secondary",className:"rounded-full",size:"sm",children:c}),t[23]=c,t[24]=M):M=t[24];let B;t[25]!==M?(B=l.jsxs("div",{className:"flex items-center gap-1",children:[S,M]}),t[25]=M,t[26]=B):B=t[26];let P;t[27]!==d||t[28]!==c?(P=c>0&&l.jsx(ie,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",isLoading:d.isPending,onClick:k=>{k.preventDefault(),k.stopPropagation(),d.mutateAsync({})},children:l.jsx(I,{id:"notificationBell.markAllRead"})}),t[27]=d,t[28]=c,t[29]=P):P=t[29],t[30]!==B||t[31]!==P?(x=l.jsxs(tt,{className:"bg-popover sticky top-0 z-10 flex items-center justify-between gap-1 border-b",children:[B,P]}),t[30]=B,t[31]=P,t[32]=x):x=t[32],y=u?.page&&u.page.length>0?u.page.map(k=>{const U=Me(new Date(k._creationTime),N,s.locale);return l.jsxs(de,{className:"cursor-pointer gap-2 p-3",onClick:()=>n(k._id,k.payload,!!k.readAt),children:[l.jsxs("div",{className:"flex min-w-0 grow flex-col gap-1",children:[l.jsxs("div",{className:"flex items-start gap-2",children:[!k.readAt&&l.jsx("div",{className:"bg-blue-9 mt-1.5 size-2 shrink-0 rounded-full"}),l.jsx("p",{className:k.readAt?"text-muted-foreground text-sm":"text-sm font-medium",children:js(k.payload,i)})]}),U?l.jsx("p",{className:"text-muted-foreground text-xs",children:U}):null]}),k.readAt&&l.jsx(Ss,{className:"text-muted-foreground size-4 shrink-0"})]},k._id)}):l.jsx("div",{className:"text-muted-foreground p-4 text-center text-sm",children:l.jsx(I,{id:"notificationBell.empty"})}),t[2]=n,t[3]=s,t[4]=a,t[5]=d,t[6]=u,t[7]=i,t[8]=c,t[9]=g,t[10]=f,t[11]=p,t[12]=h,t[13]=x,t[14]=y,t[15]=C}else g=t[9],f=t[10],p=t[11],h=t[12],x=t[13],y=t[14],C=t[15];let v;t[33]!==e?(v=()=>e({to:"/notifications"}),t[33]=e,t[34]=v):v=t[34];let _;t[35]===Symbol.for("react.memo_cache_sentinel")?(_=l.jsx(I,{id:"notificationBell.viewAll"}),t[35]=_):_=t[35];let j;t[36]!==v?(j=l.jsx(de,{className:"bg-popover sticky bottom-0 z-10 justify-center rounded-none border-t py-3 text-center",onClick:v,children:_}),t[36]=v,t[37]=j):j=t[37];let b;t[38]!==g||t[39]!==j||t[40]!==p||t[41]!==h||t[42]!==x||t[43]!==y?(b=l.jsxs(g,{align:p,className:h,children:[x,y,j]}),t[38]=g,t[39]=j,t[40]=p,t[41]=h,t[42]=x,t[43]=y,t[44]=b):b=t[44];let L;return t[45]!==f||t[46]!==b||t[47]!==C?(L=l.jsxs(f,{children:[C,b]}),t[45]=f,t[46]=b,t[47]=C,t[48]=L):L=t[48],L}function yi(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R("scrollbar-hidden flex min-h-9 max-w-full shrink-0 overflow-x-auto",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("nav",{className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function _i(t){const e=A.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=R(Ns(),s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=l.jsx("div",{className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function vi(t){const e=A.c(12);let s,a,i,n;if(e[0]!==t){const{className:c,active:m,asChild:u,...g}=t;a=c,i=g,s=m===void 0?!1:m,n=(u===void 0?!1:u)&&ye(i.children)?Ce:"a",e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=n}else s=e[1],a=e[2],i=e[3],n=e[4];const d=n;let r;e[5]!==s||e[6]!==a?(r=R(ks({active:s}),a),e[5]=s,e[6]=a,e[7]=r):r=e[7];let o;return e[8]!==d||e[9]!==i||e[10]!==r?(o=l.jsx(d,{className:r,...i}),e[8]=d,e[9]=i,e[10]=r,e[11]=o):o=e[11],o}function ji(t){const e=A.c(13);let s,a,i;e[0]!==t?({className:s,active:i,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i):(s=e[1],a=e[2],i=e[3]);
31const n=i===void 0?!1:i,d=!n&&"hover:text-foreground/80";let r;e[4]!==d?(r=R(d),e[4]=d,e[5]=r):r=e[5];let o;e[6]!==a||e[7]!==r?(o=l.jsx(ae,{className:r,...a}),e[6]=a,e[7]=r,e[8]=o):o=e[8];let c;return e[9]!==n||e[10]!==s||e[11]!==o?(c=l.jsx(vi,{asChild:!0,active:n,className:s,children:o}),e[9]=n,e[10]=s,e[11]=o,e[12]=c):c=e[12],c}const Li=["/(app)/_appLayout/roster","/(app)/_appLayout/availabilities","/(app)/_appLayout/timesheets","/(app)/_appLayout/timesheet-approval"],pt={title:{id:"nav.roster.root"},url:"/roster"},Ze=[pt,{title:{id:"nav.roster.availabilities"},url:"/availabilities"},{title:{id:"nav.roster.timesheets"},url:"/timesheets"}],ut={title:{id:"nav.roster.approvals"},url:"/timesheet-approval"};function Si({canApproveTimesheets:t}){return t?[...Ze,ut]:Ze}function gt(t,e){return t===e||t.startsWith(`${e}/`)}function wi(t){return[pt.url,"/availabilities","/timesheets",ut.url].some(e=>gt(t,e))}function Ni(t){return Li.some(e=>e===t)}const ki={id:"nav.roster.ariaLabel"};function Ti(t){const e=A.c(20),{canApproveTimesheets:s}=t,{i18n:a}=q();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={select:Pi},e[0]=i):i=e[0];const n=_e(i);let d,r,o,c;if(e[1]!==s||e[2]!==a||e[3]!==n){const g=Si({canApproveTimesheets:s});r=yi,e[8]!==a?(c=a._(ki),e[8]=a,e[9]=c):c=e[9],d=_i;let f;e[10]!==a||e[11]!==n?(f=p=>{const h=gt(n,p.url);return l.jsx(ji,{to:p.url,active:h,"aria-current":h?"page":void 0,children:a._(p.title)},p.url)},e[10]=a,e[11]=n,e[12]=f):f=e[12],o=g.map(f),e[1]=s,e[2]=a,e[3]=n,e[4]=d,e[5]=r,e[6]=o,e[7]=c}else d=e[4],r=e[5],o=e[6],c=e[7];let m;e[13]!==d||e[14]!==o?(m=l.jsx(d,{children:o}),e[13]=d,e[14]=o,e[15]=m):m=e[15];let u;return e[16]!==r||e[17]!==c||e[18]!==m?(u=l.jsx(r,{"aria-label":c,children:m}),e[16]=r,e[17]=c,e[18]=m,e[19]=u):u=e[19],u}function Pi(t){return t.location.pathname}const ht=Tt("/(app)/_appLayout"),Mi={id:"app.documentTitle"};function Ai(){const t=A.c(6),{userId:e}=ht.useRouteContext();let s;t[0]!==e?(s={routeUserId:e},t[0]=e,t[1]=s):s=t[1];const a=ws(s);if(a.view==="reconnecting"){let n;return t[2]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(Be,{}),t[2]=n):n=t[2],n}if(a.view==="reconnecting-failed"){let n;return t[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(Be,{failed:!0}),t[3]=n):n=t[3],n}if(a.view==="sign-in"){let n;return t[4]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(it,{}),t[4]=n):n=t[4],n}let i;return t[5]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(Bi,{}),t[5]=i):i=t[5],i}function Bi(){const t=A.c(9);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=le(ee.employees.getCurrent,{}),t[0]=e):e=t[0];const{data:s}=pe(e);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=le(ee.organizations.getCurrent,{}),t[1]=a):a=t[1];const{data:i}=pe(a);let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=le(ee.onboarding.getCurrent,{}),t[2]=n):n=t[2];const{data:d}=pe(n);if(d&&Pt(d)){let o;return t[3]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx(Mt,{to:"/onboarding"}),t[3]=o):o=t[3],o}if(!s||!i||!d){let o;return t[4]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx(Be,{}),t[4]=o):o=t[4],o}let r;return t[5]!==s||t[6]!==d||t[7]!==i?(r=l.jsx(Ii,{employee:s,onboarding:d,organization:i}),t[5]=s,t[6]=d,t[7]=i,t[8]=r):r=t[8],r}function Ii(t){const e=A.c(53),{employee:s,onboarding:a,organization:i}=t,{i18n:n}=q(),d=At(),r=ht.useRouteContext();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={structuralSharing:!1,select:Ei},e[0]=o):o=e[0];const{matches:c,pathname:m}=_e(o);let u;if(e[1]!==d||e[2]!==c){const T=[...c].reverse().find(Ui);u=d(T?.context.title||Mi),e[1]=d,e[2]=c,e[3]=u}else u=e[3];const g=u;let f;e[4]!==c||e[5]!==m?(f=c.some(Oi)||wi(m),e[4]=c,e[5]=m,e[6]=f):f=e[6];const p=f,h=ve(),x=Z.useRef(null),y=Z.useRef(null),C=We(ee.onboarding.completeOnboardingForUsageBypass);let v,_;e[7]!==h||e[8]!==r.orgId||e[9]!==r.userId||e[10]!==s._id||e[11]!==s.contactEmail||e[12]!==s.intendedRole||e[13]!==s.name||e[14]!==i.acquisitionIntent||e[15]!==i.acquisitionRef||e[16]!==i.firstTouchAt||e[17]!==i.firstTouchPath||e[18]!==i.firstTouchReferrer||e[19]!==i.gbraid||e[20]!==i.gclid||e[21]!==i.name||e[22]!==i.slug||e[23]!==i.utmCampaign||e[24]!==i.utmContent||e[25]!==i.utmMedium||e[26]!==i.utmSource||e[27]!==i.utmTerm||e[28]!==i.wbraid?(v=()=>{if(!r.userId)return;h.identifyAuthenticatedUser({userId:r.userId,organizationId:r.orgId,name:s.name,email:s.contactEmail,permissionRole:s.intendedRole,employeeId:s._id}),r.orgId&&h.identifyOrganizationGroup({organizationId:r.orgId,name:i.name,slug:i.slug,acquisitionRef:i.acquisitionRef,acquisitionIntent:i.acquisitionIntent,utmSource:i.utmSource,utmMedium:i.utmMedium,utmCampaign:i.utmCampaign,utmTerm:i.utmTerm,utmContent:i.utmContent,gclid:i.gclid,gbraid:i.gbraid,wbraid:i.wbraid,firstTouchPath:i.firstTouchPath,firstTouchReferrer:i.firstTouchReferrer,firstTouchAt:i.firstTouchAt});const T=`${r.userId}:${r.orgId??"no-org"}`;x.current!==T&&(x.current=T,h.capture("app_opened",{organizationId:r.orgId,permissionRole:s.intendedRole,employeeId:s._id}))},_=[h,r.orgId,r.userId,s._id,s.contactEmail,s.intendedRole,s.name,i.acquisitionIntent,i.acquisitionRef,i.firstTouchAt,i.firstTouchPath,i.firstTouchReferrer,i.name,i.slug,i.utmCampaign,i.utmTerm,i.utmContent,i.gclid,i.gbraid,i.wbraid,i.utmMedium,i.utmSource],e[7]=h,e[8]=r.orgId,e[9]=r.userId,e[10]=s._id,e[11]=s.
31contactEmail,e[12]=s.intendedRole,e[13]=s.name,e[14]=i.acquisitionIntent,e[15]=i.acquisitionRef,e[16]=i.firstTouchAt,e[17]=i.firstTouchPath,e[18]=i.firstTouchReferrer,e[19]=i.gbraid,e[20]=i.gclid,e[21]=i.name,e[22]=i.slug,e[23]=i.utmCampaign,e[24]=i.utmContent,e[25]=i.utmMedium,e[26]=i.utmSource,e[27]=i.utmTerm,e[28]=i.wbraid,e[29]=v,e[30]=_):(v=e[29],_=e[30]),Z.useEffect(v,_);let j,b;e[31]!==h||e[32]!==C||e[33]!==a.onboardingStateId||e[34]!==a.organizationId||e[35]!==a.routing.hasMeaningfulWorkspaceUsage||e[36]!==a.status?(j=()=>{if(a.status!=="self_serve_in_progress"||!a.routing.hasMeaningfulWorkspaceUsage||!a.organizationId||!a.onboardingStateId)return;const T=`${a.onboardingStateId}:${a.organizationId}`;y.current!==T&&(y.current=T,C({}).catch(S=>{y.current=null,h.capture("onboarding_usage_bypass_self_heal_failed",{organizationId:a.organizationId,onboardingStateId:a.onboardingStateId}),console.error("[onboarding] Failed to self-heal stale state",S)}))},b=[h,C,a.onboardingStateId,a.organizationId,a.routing.hasMeaningfulWorkspaceUsage,a.status],e[31]=h,e[32]=C,e[33]=a.onboardingStateId,e[34]=a.organizationId,e[35]=a.routing.hasMeaningfulWorkspaceUsage,e[36]=a.status,e[37]=j,e[38]=b):(j=e[37],b=e[38]),Z.useEffect(j,b);let L;e[39]!==r||e[40]!==s||e[41]!==n||e[42]!==m||e[43]!==p||e[44]!==g?(L=l.jsx(Ri,{context:r,employee:s,i18n:n,pathname:m,showRosterSectionNav:p,title:g}),e[39]=r,e[40]=s,e[41]=n,e[42]=m,e[43]=p,e[44]=g,e[45]=L):L=e[45];let N;e[46]!==s._id||e[47]!==s.intendedRole||e[48]!==L?(N=l.jsx(Bt,{role:s.intendedRole,employeeId:s._id,children:L}),e[46]=s._id,e[47]=s.intendedRole,e[48]=L,e[49]=N):N=e[49];let w;return e[50]!==i||e[51]!==N?(w=l.jsx(cs,{organization:i,children:N}),e[50]=i,e[51]=N,e[52]=w):w=e[52],w}function Oi(t){return Ni(t.routeId)}function Ui(t){return t.context.title}function Ei(t){return{matches:t.matches,pathname:t.location.pathname}}function Ri(t){const e=A.c(14),{context:s,employee:a,i18n:i,pathname:n,showRosterSectionNav:d,title:r}=t,o=ue();let c;e[0]!==o?(c=o.check("timesheets","approve"),e[0]=o,e[1]=c):c=e[1];const m=c;let u;e[2]!==n?(u=n.startsWith("/assistant"),e[2]=n,e[3]=u):u=e[3];const g=u,f=Ts();let p;return e[4]!==m||e[5]!==s.isImpersonating||e[6]!==s.userId||e[7]!==a||e[8]!==i||e[9]!==d||e[10]!==f||e[11]!==r||e[12]!==g?(p=l.jsx(bl,{children:s.userId?l.jsxs(Zt,{children:[l.jsx(Kl,{}),l.jsxs(vl,{children:[l.jsx(Ks,{leading:l.jsx(yl,{className:"-ml-1"}),middle:l.jsx("h1",{className:"truncate text-lg font-semibold",children:r}),actions:l.jsxs(l.Fragment,{children:[l.jsx(Cs,{}),l.jsx(pi,{}),l.jsx(Ci,{}),l.jsx(bi,{})]})}),l.jsx(Jl,{}),s.isImpersonating?l.jsx("div",{className:"px-4 pt-4",children:l.jsxs(It,{variant:"warning",children:[l.jsx(Ps,{className:"size-4"}),l.jsx(Ot,{children:l.jsx(I,{id:"app.impersonationBanner.title"})}),l.jsxs(Ut,{className:"gap-3",children:[l.jsx("p",{children:l.jsx(I,{id:"app.impersonationBanner.description",values:{0:a.name??"this client"}})}),l.jsx("div",{className:"flex flex-wrap items-center gap-2",children:l.jsx(ie,{size:"sm",variant:"outline",isLoading:f.isPending,onClick:()=>{f.mutate()},children:l.jsx(I,{id:"app.impersonationBanner.stop"})})})]})]})}):null,l.jsxs("div",{className:R("flex min-h-0 grow basis-0 flex-col",g?"gap-0 p-0 sm:gap-4 sm:p-4":"gap-4 p-4"),children:[d?l.jsx(Ti,{canApproveTimesheets:m}):null,l.jsx(Z.Suspense,{fallback:l.jsx(Rt,{title:i._({id:"app.shell.loading"}),className:"h-full"}),children:l.jsx(Et,{})})]})]}),l.jsx(ri,{}),l.jsx(hi,{role:a.intendedRole})]}):l.jsx(it,{})}),e[4]=m,e[5]=s.isImpersonating,e[6]=s.userId,e[7]=a,e[8]=i,e[9]=d,e[10]=f,e[11]=r,e[12]=g,e[13]=p):p=e[13],p}const j1=Ai;export{j1 as component};
32
33//# chunkId=01a0193d-a26a-7c62-a16e-7777b8623659

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.