@itsyouagency/ui 1.48.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["@itsyou/ui"]=n():e["@itsyou/ui"]=n()}(Object("undefined"!=typeof self?self:this),()=>(()=>{"use strict";var e={n:n=>{var a=n&&n.__esModule?()=>n.default:()=>n;return e.d(a,{a}),a},d:(n,a)=>{for(var t in a)e.o(a,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:a[t]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{ActionDialog:()=>Ur,ActiveButton:()=>Ba,AutoCompleteDropdown:()=>kt,Badge:()=>fr,Button:()=>Ta,ButtonIcon:()=>Ha,ButtonSubmit:()=>Wa,ButtonText:()=>Ua,CLIENT_CONTRACT_TYPES:()=>Ft,COUNTRIES:()=>Gt,ChatApiError:()=>vs,ChatCreatePage:()=>qs,ChatWorkspace:()=>Ls,ChoiceChips:()=>_r,CommandMenu:()=>dr,ContactDetails:()=>Fr,ContactPopover:()=>Wr,ContractFields:()=>Xr,CopyButton:()=>$r,DashboardLayout:()=>tr,DashboardTabs:()=>_a,DataRegion:()=>Dr,DatePicker:()=>Ja,DocumentEditor:()=>Jr,DocumentPreview:()=>Qr,Dropdown:()=>Qa,EYE_COLORS:()=>Wt,EmptyState:()=>xr,FaqCenter:()=>Or,FileDownloadButton:()=>ns,FileIconLink:()=>Xa,FileMultiUploadDrag:()=>xt,FileUploadDrag:()=>vt,FilterTabs:()=>Lr,FooterMini:()=>jt,FormActions:()=>Vr,FormCard:()=>kr,FormField:()=>yr,GENDERS:()=>Yt,HAIR_COLORS:()=>Ut,Icon:()=>Da,IconButton:()=>rt,ImageFullView:()=>at,InfoTooltip:()=>tt,InlineNotice:()=>br,Input:()=>Za,InputWrapper:()=>Ya,JOB_TYPES:()=>Zt,LANGUAGES:()=>Qt,LOCATIONS:()=>Jt,LearnMoreButton:()=>st,ListSkeleton:()=>Pr,Loader:()=>Ra,Logo:()=>ct,LogoLayout:()=>rr,MatchableSortableTable:()=>Nt,MetricCard:()=>Ar,Modal:()=>Fa,MultiSelectTags:()=>dt,NotificationBell:()=>gs,NotificationInbox:()=>fs,NotificationMenu:()=>mr,OptionButtons:()=>ut,OrderReviews:()=>Ts,Overlay:()=>$a,PERSONAL_TYPES:()=>Kt,PHOTO_TYPES:()=>$t,PageHeader:()=>pr,Pagination:()=>qr,Panel:()=>gr,Paragraph:()=>ht,Progress:()=>zr,REGISTRATION_CONTRACTS:()=>_t,REQUEST_CONTRACTS:()=>Vt,RadioGroup:()=>bt,RequestChat:()=>As,RequestContracts:()=>os,RequestResources:()=>ls,SearchMultiSelect:()=>es,SearchSelect:()=>Hr,Select:()=>Nr,SettingToggle:()=>Gr,Skeleton:()=>vr,StarRating:()=>Ds,Tabs:()=>Va,Tag:()=>mt,TextArea:()=>pt,TextInput:()=>Cr,ToastContainer:()=>Et.ToastContainer,Tooltip:()=>gt,WorkspaceAuthLayout:()=>hr,WorkspaceLayout:()=>ur,WorkspaceLoading:()=>jr,WorkspaceNav:()=>cr,createChatApi:()=>xs,emailReg:()=>Xt,filterSelectOptions:()=>Br,findActiveRoute:()=>lr,flattenNavigation:()=>ir,formatDate:()=>Dt,formatDateRange:()=>zt,formatDateShort:()=>It,formatDateTime:()=>Pt,formatName:()=>Rt,formatNumber:()=>Tt,formatPriceReadable:()=>Bt,formatPriceRounded:()=>Ht,inputClass:()=>wr,isActiveRoute:()=>sr,toasterError:()=>Mt,toasterErrorApi:()=>St,toasterSuccess:()=>Ot,toasterWarning:()=>Lt});const a=require("react/jsx-runtime"),t=require("classnames/dedupe");var r=e.n(t);const s=require("next/link");var i=e.n(s);const l=require("react");var o,c,d,u,h,m,p,g,f,v,x,b,j,w,y,C,N,k,E,S,M,O,L,q,A,D,P,z,R,T,B,H,I,$,F,W,U,V,_,G,K,Y,Z,J,Q,X,ee,ne,ae,te,re,se,ie,le,oe,ce,de,ue,he,me,pe,ge,fe,ve,xe,be,je,we,ye,Ce,Ne,ke,Ee,Se,Me,Oe,Le,qe,Ae,De,Pe,ze,Re,Te,Be,He,Ie,$e,Fe,We,Ue,Ve,_e,Ge,Ke,Ye,Ze,Je,Qe,Xe,en,nn,an;function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},tn.apply(null,arguments)}function rn(){return rn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},rn.apply(null,arguments)}function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},sn.apply(null,arguments)}function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ln.apply(null,arguments)}function on(){return on=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},on.apply(null,arguments)}function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},cn.apply(null,arguments)}function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},dn.apply(null,arguments)}function un(){return un=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},un.apply(null,arguments)}function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},hn.apply(null,arguments)}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},mn.apply(null,arguments)}function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},pn.apply(null,arguments)}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},gn.apply(null,arguments)}function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},fn.apply(null,arguments)}function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},vn.apply(null,arguments)}function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},xn.apply(null,arguments)}function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},bn.apply(null,arguments)}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},jn.apply(null,arguments)}function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},wn.apply(null,arguments)}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},yn.apply(null,arguments)}function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Cn.apply(null,arguments)}function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Nn.apply(null,arguments)}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},kn.apply(null,arguments)}function En(){return En=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},En.apply(null,arguments)}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Sn.apply(null,arguments)}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Mn.apply(null,arguments)}function On(){return On=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},On.apply(null,arguments)}function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Ln.apply(null,arguments)}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},qn.apply(null,arguments)}function An(){return An=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},An.apply(null,arguments)}function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Dn.apply(null,arguments)}function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Pn.apply(null,arguments)}function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},zn.apply(null,arguments)}function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Rn.apply(null,arguments)}function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Tn.apply(null,arguments)}function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Bn.apply(null,arguments)}function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Hn.apply(null,arguments)}function In(){return In=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},In.apply(null,arguments)}function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},$n.apply(null,arguments)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Fn.apply(null,arguments)}function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Wn.apply(null,arguments)}function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Un.apply(null,arguments)}function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Vn.apply(null,arguments)}function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},_n.apply(null,arguments)}function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Gn.apply(null,arguments)}function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Kn.apply(null,arguments)}function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Yn.apply(null,arguments)}function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Zn.apply(null,arguments)}function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Jn.apply(null,arguments)}function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Qn.apply(null,arguments)}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Xn.apply(null,arguments)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ea.apply(null,arguments)}function na(){return na=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},na.apply(null,arguments)}function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},aa.apply(null,arguments)}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ta.apply(null,arguments)}function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ra.apply(null,arguments)}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},sa.apply(null,arguments)}function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ia.apply(null,arguments)}function la(){return la=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},la.apply(null,arguments)}function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},oa.apply(null,arguments)}function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ca.apply(null,arguments)}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},da.apply(null,arguments)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ua.apply(null,arguments)}function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ha.apply(null,arguments)}function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ma.apply(null,arguments)}function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},pa.apply(null,arguments)}function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ga.apply(null,arguments)}function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},fa.apply(null,arguments)}function va(){return va=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},va.apply(null,arguments)}function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},xa.apply(null,arguments)}function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ba.apply(null,arguments)}function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ja.apply(null,arguments)}function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},wa.apply(null,arguments)}function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ya.apply(null,arguments)}function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Ca.apply(null,arguments)}function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Na.apply(null,arguments)}function ka(){return ka=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ka.apply(null,arguments)}function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Ea.apply(null,arguments)}function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Sa.apply(null,arguments)}function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Ma.apply(null,arguments)}function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Oa.apply(null,arguments)}function La(){return La=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},La.apply(null,arguments)}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},qa.apply(null,arguments)}const Aa={Archive:e=>l.createElement("svg",qa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),an||(an=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8v11a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V8M9 12h6M3 4h18v4H3z"}))),Upload:e=>l.createElement("svg",aa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ce||(Ce=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"}))),Download:e=>l.createElement("svg",wa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),_e||(_e=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}))),User:e=>l.createElement("svg",ba({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ue||(Ue=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0"}))),Copy:e=>l.createElement("svg",xa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),We||(We=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.5 2.003c-.675.009-1.08.048-1.408.215a2 2 0 0 0-.874.874c-.167.328-.206.733-.215 1.408M19.5 2.003c.675.009 1.08.048 1.408.215a2 2 0 0 1 .874.874c.167.328.206.733.215 1.408m0 9c-.009.675-.048 1.08-.215 1.408a2 2 0 0 1-.874.874c-.328.167-.733.206-1.408.215M22 8v2m-8-8h2M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22"}))),Invoice:e=>l.createElement("svg",fa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),$e||($e=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V8z"}))),Send:e=>l.createElement("svg",va({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Fe||(Fe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.5 13.5 21 3M10.627 13.828l2.628 6.758c.232.596.347.893.514.98a.5.5 0 0 0 .462 0c.167-.086.283-.384.515-.979L21.336 3.7c.21-.537.315-.805.258-.977a.5.5 0 0 0-.316-.316c-.172-.057-.44.048-.978.257L3.413 9.253c-.595.233-.893.349-.98.516a.5.5 0 0 0 0 .461c.087.167.385.283.98.515l6.759 2.628c.12.047.18.07.232.106a.5.5 0 0 1 .116.117c.037.051.06.111.107.232"}))),Camera:e=>l.createElement("svg",ha({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Re||(Re=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 3 5.12 3 6.8 3h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 5.28 22 6.12 22 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"})),Te||(Te=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8"}))),Eye:e=>l.createElement("svg",ra({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ke||(ke=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.2 1.2 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287"})),Ee||(Ee=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"}))),ChevronDown:e=>l.createElement("svg",tn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m6 9 6 6 6-6"}))),Close:e=>l.createElement("svg",rn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),c||(c=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"}))),Menu:e=>l.createElement("svg",sn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),d||(d=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"}))),Bell:e=>l.createElement("svg",ln({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),u||(u=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.354 21c.705.622 1.632 1 2.646 1s1.94-.378 2.646-1M18 8A6 6 0 1 0 6 8c0 3.09-.78 5.206-1.65 6.605-.735 1.18-1.102 1.771-1.089 1.936.015.182.054.252.2.36.133.099.732.099 1.928.099H18.61c1.196 0 1.795 0 1.927-.098.147-.11.186-.179.2-.361.014-.165-.353-.755-1.088-1.936C18.78 13.206 18 11.09 18 8"}))),Search:e=>l.createElement("svg",In({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),J||(J=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0"}))),Marker:e=>l.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),p||(p=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6"})),g||(g=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 22c4-4 8-7.582 8-12a8 8 0 1 0-16 0c0 4.418 4 8 8 12"}))),Play:e=>l.createElement("svg",dn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),f||(f=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 4.99c0-.972 0-1.457.202-1.725a1 1 0 0 1 .738-.395c.335-.02.74.25 1.548.788l10.515 7.01c.668.446 1.002.668 1.118.949a1 1 0 0 1 0 .766c-.116.28-.45.503-1.118.948l-10.515 7.01c-.809.54-1.213.809-1.548.789a1 1 0 0 1-.738-.395C5 20.467 5 19.98 5 19.01z"}))),PlayCircle:e=>l.createElement("svg",fn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),y||(y=l.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"})),C||(C=l.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.5 8.965c0-.477 0-.716.1-.849a.5.5 0 0 1 .364-.199c.166-.012.367.117.769.375l4.72 3.035c.349.224.523.336.583.478a.5.5 0 0 1 0 .39c-.06.142-.234.254-.583.478l-4.72 3.035c-.402.258-.603.387-.769.375a.5.5 0 0 1-.364-.2c-.1-.132-.1-.371-.1-.848z"}))),Pause:e=>l.createElement("svg",un({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"currentColor",strokeWidth:0,"aria-hidden":"true",viewBox:"0 0 20 20"},e),v||(v=l.createElement("path",{stroke:"none",d:"M5.75 3a.75.75 0 0 0-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 0 0 .75-.75V3.75A.75.75 0 0 0 7.25 3zm7 0a.75.75 0 0 0-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 0 0 .75-.75V3.75a.75.75 0 0 0-.75-.75z"}))),Company:e=>l.createElement("svg",gn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),w||(w=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7.5 7h2.75M7.5 11h2.75M7.5 15h2.75m3.5-8h2.75m-2.75 4h2.75m-2.75 4h2.75m3.5 6V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C18.48 3 17.92 3 16.8 3H7.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C4 4.52 4 5.08 4 6.2V21m18 0H2"}))),ArrowRight:e=>l.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),N||(N=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 12h16m0 0-6-6m6 6-6 6"}))),Star:e=>l.createElement("svg",pn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),j||(j=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.283 3.453c.23-.467.345-.7.502-.775a.5.5 0 0 1 .43 0c.157.075.272.308.502.775l2.187 4.43c.068.138.102.207.152.26a.5.5 0 0 0 .155.114c.067.03.143.042.295.064l4.891.715c.515.075.773.113.892.238a.5.5 0 0 1 .133.41c-.023.172-.21.353-.582.716L17.3 13.846c-.11.108-.165.162-.2.226a.5.5 0 0 0-.06.183c-.009.072.004.148.03.3l.835 4.867c.088.514.132.77.05.922a.5.5 0 0 1-.349.253c-.17.032-.4-.09-.862-.332l-4.373-2.3c-.136-.07-.204-.107-.276-.12a.5.5 0 0 0-.192 0c-.072.013-.14.05-.276.12l-4.373 2.3c-.461.243-.692.364-.862.332a.5.5 0 0 1-.348-.253c-.083-.152-.039-.409.05-.922l.834-4.867c.026-.152.039-.228.03-.3a.5.5 0 0 0-.06-.184c-.035-.063-.09-.117-.2-.225L3.16 10.4c-.373-.363-.56-.544-.582-.716a.5.5 0 0 1 .132-.41c.12-.125.377-.163.892-.238l4.891-.715c.152-.022.228-.034.295-.064a.5.5 0 0 0 .155-.113c.05-.054.084-.123.152-.26z"}))),Clock:e=>l.createElement("svg",hn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),x||(x=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}))),Euro:e=>l.createElement("svg",mn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),b||(b=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.333 8.273a5 5 0 1 0 0 7.454M6 13.5h5m-5-3h5M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}))),QuestionMark:e=>l.createElement("svg",xn({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 512 512"},e),k||(k=l.createElement("path",{stroke:"none",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248M262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102M256 338c-25.365 0-46 20.635-46 46s20.635 46 46 46 46-20.636 46-46-20.635-46-46-46"}))),Product:e=>l.createElement("svg",bn({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",fillRule:"evenodd",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 1024 1024"},e),E||(E=l.createElement("path",{stroke:"none",d:"M464 144c8.837 0 16 7.163 16 16v304c0 8.836-7.163 16-16 16H160c-8.837 0-16-7.164-16-16V160c0-8.837 7.163-16 16-16zm-52 68H212v200h200zm493.333 87.686c6.248 6.248 6.248 16.379 0 22.627l-181.02 181.02c-6.248 6.248-16.378 6.248-22.627 0l-181.019-181.02c-6.248-6.248-6.248-16.379 0-22.627l181.02-181.02c6.248-6.248 16.378-6.248 22.627 0zm-84.853 11.313L713 203.52 605.52 311 713 418.48zM464 544c8.837 0 16 7.164 16 16v304c0 8.837-7.163 16-16 16H160c-8.837 0-16-7.163-16-16V560c0-8.836 7.163-16 16-16zm-52 68H212v200h200zm452-68c8.837 0 16 7.164 16 16v304c0 8.837-7.163 16-16 16H560c-8.837 0-16-7.163-16-16V560c0-8.836 7.163-16 16-16zm-52 68H612v200h200z"}))),HeartHand:e=>l.createElement("svg",jn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),S||(S=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 20.087h2.61c.34 0 .679.04 1.009.122l2.758.67c.598.146 1.222.16 1.826.042l3.05-.593a4.2 4.2 0 0 0 2.127-1.107l2.158-2.1a1.503 1.503 0 0 0 0-2.168 1.61 1.61 0 0 0-2.06-.143l-2.515 1.835c-.36.263-.799.405-1.25.405h-2.427 1.545c.871 0 1.577-.687 1.577-1.534v-.307c0-.703-.492-1.317-1.194-1.487l-2.385-.58A5 5 0 0 0 11.643 13c-.965 0-2.711.799-2.711.799L6 15.025M2 14.6v5.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C2.76 22 3.04 22 3.6 22h.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C6 21.24 6 20.96 6 20.4v-5.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C5.24 13 4.96 13 4.4 13h-.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C2 13.76 2 14.04 2 14.6M17.191 3.592c-.596-1.249-1.972-1.91-3.31-1.272-1.339.639-1.909 2.153-1.348 3.483.346.821 1.338 2.417 2.045 3.516.261.406.392.61.583.728.164.102.369.157.561.15.225-.007.44-.118.87-.339 1.161-.598 2.818-1.483 3.529-2.022a2.66 2.66 0 0 0 .574-3.69c-.861-1.217-2.362-1.337-3.504-.554"}))),Section:e=>l.createElement("svg",wn({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 16 16"},e),M||(M=l.createElement("path",{stroke:"none",d:"M7.749 16c-.771 0-1.424-.225-1.939-.669-.519-.447-.782-.969-.782-1.552a.98.98 0 0 1 .307-.726c.207-.202.465-.309.748-.309.281 0 .534.1.732.29.195.187.294.435.294.736q0 .267-.086.58a1.5 1.5 0 0 0-.068.364c0 .058.014.126.121.199.199.138.439.204.732.204.353 0 .667-.123.962-.375.29-.249.431-.505.431-.782 0-.308-.082-.575-.252-.816-.287-.402-.826-.874-1.603-1.401-1.248-.835-2.079-1.559-2.54-2.211-.358-.511-.539-1.061-.539-1.636 0-.579.19-1.155.564-1.713.32-.477.794-.908 1.41-1.283q-.496-.534-.736-.995a2.57 2.57 0 0 1-.303-1.189c0-.747.295-1.393.878-1.92S7.39.001 8.241.001c.783 0 1.441.22 1.956.654.521.439.785.952.785 1.524q0 .44-.324.776l-.004.004c-.125.124-.353.271-.735.271-.299 0-.561-.098-.758-.283a.88.88 0 0 1-.296-.656c0-.108.027-.272.084-.515q.042-.173.042-.316a.48.48 0 0 0-.183-.39C8.679.962 8.494.909 8.243.909c-.389 0-.708.118-.975.361s-.399.533-.399.883q0 .474.212.771c.267.374.731.778 1.378 1.201 1.315.853 2.233 1.636 2.727 2.325.365.518.549 1.068.549 1.637 0 .572-.186 1.148-.552 1.714-.316.487-.793.926-1.42 1.308.347.367.591.688.743.977.189.359.284.751.284 1.165 0 .776-.296 1.435-.879 1.96s-1.31.79-2.161.79zM6.975 5.568c-.753.452-1.12.972-1.12 1.583 0 .356.102.674.31.973.311.436.926.97 1.825 1.583q.572.39 1.025.751c.767-.461 1.14-.974 1.14-1.565q0-.485-.378-1.03c-.263-.378-.826-.872-1.674-1.467a21 21 0 0 1-1.128-.827z"}))),SearchCircle:e=>l.createElement("svg",on({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 36 36"},e),h||(h=l.createElement("rect",{width:33,height:33,x:1.5,y:1.5,stroke:"currentColor",strokeWidth:3,rx:16.5})),m||(m=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m27 27-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0"}))),ZapFast:e=>l.createElement("svg",yn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),O||(O=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 17.5H3.5m3-5.5H2m7-5.5H4M17 3l-6.596 9.235c-.292.409-.438.613-.432.784a.5.5 0 0 0 .194.377c.135.104.386.104.889.104H16L15 21l6.596-9.235c.292-.409.438-.613.432-.784a.5.5 0 0 0-.194-.377c-.135-.104-.386-.104-.889-.104H16z"}))),Free:e=>l.createElement("svg",Cn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),L||(L=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.901 4.999c.206.498.601.893 1.1 1.1l1.744.723a2.033 2.033 0 0 1 1.1 2.656l-.722 1.744a2.03 2.03 0 0 0 0 1.556l.722 1.744a2.033 2.033 0 0 1-1.1 2.656L19 17.902A2.03 2.03 0 0 0 17.9 19l-.723 1.745a2.03 2.03 0 0 1-2.656 1.1l-1.744-.722a2.03 2.03 0 0 0-1.555 0l-1.745.723a2.033 2.033 0 0 1-2.654-1.1L6.1 19.001A2.03 2.03 0 0 0 5 17.9l-1.744-.723a2.033 2.033 0 0 1-1.1-2.654l.721-1.745a2.03 2.03 0 0 0 0-1.555l-.722-1.746a2.033 2.033 0 0 1 1.1-2.657L5 6.098c.498-.206.893-.6 1.1-1.098l.723-1.745a2.033 2.033 0 0 1 2.656-1.1l1.744.722a2.03 2.03 0 0 0 1.555-.001l1.746-.72a2.03 2.03 0 0 1 2.655 1.1l.723 1.746z"})),q||(q=l.createElement("mask",{id:"free_svg__a",width:15.556,height:15.556,x:3.586,y:3.686,fill:"currentColor",maskUnits:"userSpaceOnUse"},l.createElement("path",{fill:"#fff",d:"M3.586 3.686h15.556v15.556H3.586z"}),l.createElement("path",{d:"M8.519 18.035a.35.35 0 0 1-.242.106.35.35 0 0 1-.242-.106l-2.793-2.793a.33.33 0 0 1-.102-.237q0-.146.102-.247l1.931-1.931a.31.31 0 0 1 .242-.097q.136 0 .237.102a.34.34 0 0 1 .102.237.31.31 0 0 1-.097.242L5.968 15l.833.832 1.287-1.287a.31.31 0 0 1 .242-.097.35.35 0 0 1 .242.107.325.325 0 0 1 0 .474l-1.287 1.288 1.234 1.234q.101.102.101.247 0 .135-.101.237M11.636 14.908a.33.33 0 0 1-.232.097.3.3 0 0 1-.228-.083l-1.96-1.96a.32.32 0 0 1-.097-.232.34.34 0 0 1 .334-.334.3.3 0 0 1 .237.092l.146.145q-.15-.624.26-1.036.247-.246.49-.218a.7.7 0 0 1 .435.213l.145.146a.317.317 0 0 1 0 .455q-.116.115-.242.106a.37.37 0 0 1-.217-.111l-.063-.063q-.078-.078-.184.029-.087.087-.116.29a1.4 1.4 0 0 0 0 .368q.024.227.116.387.097.155.27.33l.916.924a.3.3 0 0 1 .082.227.32.32 0 0 1-.092.228M14.589 11.955q-.344.344-.765.474-.42.122-.847.005a1.84 1.84 0 0 1-.803-.493 1.84 1.84 0 0 1-.446-.717 1.65 1.65 0 0 1-.063-.837q.083-.421.402-.74.295-.296.624-.383.33-.097.6-.039.271.059.402.189.063.063.083.16a.5.5 0 0 1-.01.213l-.552 2.042a.67.67 0 0 0 .47-.005q.255-.09.47-.304a.9.9 0 0 0 .27-.688q0-.154.082-.237a.3.3 0 0 1 .223-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.204q.015.284-.107.62-.12.323-.343.546m-1.433-2.12a.5.5 0 0 0-.315.015.8.8 0 0 0-.304.198.9.9 0 0 0-.276.653q.005.373.251.678.063.082.165.184zM17.305 9.239q-.344.344-.765.474-.42.12-.847.005a1.84 1.84 0 0 1-.803-.494 1.84 1.84 0 0 1-.446-.716 1.65 1.65 0 0 1-.062-.837q.082-.422.401-.74.295-.297.625-.383.33-.098.6-.039.27.058.402.189.062.063.082.16a.5.5 0 0 1-.01.212l-.552 2.043a.67.67 0 0 0 .47-.005q.255-.092.47-.305a.9.9 0 0 0 .27-.687q0-.155.083-.237a.3.3 0 0 1 .222-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.203q.014.285-.106.62-.122.324-.344.547m-1.433-2.12a.5.5 0 0 0-.314.014.8.8 0 0 0-.305.199.9.9 0 0 0-.276.653q.004.373.252.678.062.082.164.184z"}))),A||(A=l.createElement("path",{fill:"currentColor",d:"M8.519 18.035a.35.35 0 0 1-.242.106.35.35 0 0 1-.242-.106l-2.793-2.793a.33.33 0 0 1-.102-.237q0-.146.102-.247l1.931-1.931a.31.31 0 0 1 .242-.097q.136 0 .237.102a.34.34 0 0 1 .102.237.31.31 0 0 1-.097.242L5.968 15l.833.832 1.287-1.287a.31.31 0 0 1 .242-.097.35.35 0 0 1 .242.107.325.325 0 0 1 0 .474l-1.287 1.288 1.234 1.234q.101.102.101.247 0 .135-.101.237M11.636 14.908a.33.33 0 0 1-.232.097.3.3 0 0 1-.228-.083l-1.96-1.96a.32.32 0 0 1-.097-.232.34.34 0 0 1 .334-.334.3.3 0 0 1 .237.092l.146.145q-.15-.624.26-1.036.247-.246.49-.218a.7.7 0 0 1 .435.213l.145.146a.317.317 0 0 1 0 .455q-.116.115-.242.106a.37.37 0 0 1-.217-.111l-.063-.063q-.078-.078-.184.029-.087.087-.116.29a1.4 1.4 0 0 0 0 .368q.024.227.116.387.097.155.27.33l.916.924a.3.3 0 0 1 .082.227.32.32 0 0 1-.092.228M14.589 11.955q-.344.344-.765.474-.42.122-.847.005a1.84 1.84 0 0 1-.803-.493 1.84 1.84 0 0 1-.446-.717 1.65 1.65 0 0 1-.063-.837q.083-.421.402-.74.295-.296.624-.383.33-.097.6-.039.271.059.402.189.063.063.083.16a.5.5 0 0 1-.01.213l-.552 2.042a.67.67 0 0 0 .47-.005q.255-.09.47-.304a.9.9 0 0 0 .27-.688q0-.154.082-.237a.3.3 0 0 1 .223-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.204q.015.284-.107.62-.12.323-.343.546m-1.433-2.12a.5.5 0 0 0-.315.015.8.8 0 0 0-.304.198.9.9 0 0 0-.276.653q.005.373.251.678.063.082.165.184zM17.305 9.239q-.344.344-.765.474-.42.12-.847.005a1.84 1.84 0 0 1-.803-.494 1.84 1.84 0 0 1-.446-.716 1.65 1.65 0 0 1-.062-.837q.082-.422.401-.74.295-.297.625-.383.33-.098.6-.039.27.058.402.189.062.063.082.16a.5.5 0 0 1-.01.212l-.552 2.043a.67.67 0 0 0 .47-.005q.255-.092.47-.305a.9.9 0 0 0 .27-.687q0-.155.083-.237a.3.3 0 0 1 .222-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.203q.014.285-.106.62-.122.324-.344.547m-1.433-2.12a.5.5 0 0 0-.314.014.8.8 0 0 0-.305.199.9.9 0 0 0-.276.653q.004.373.252.678.062.082.164.184z"})),D||(D=l.createElement("path",{stroke:"currentColor",strokeWidth:.4,d:"M8.519 18.035a.35.35 0 0 1-.242.106.35.35 0 0 1-.242-.106l-2.793-2.793a.33.33 0 0 1-.102-.237q0-.146.102-.247l1.931-1.931a.31.31 0 0 1 .242-.097q.136 0 .237.102a.34.34 0 0 1 .102.237.31.31 0 0 1-.097.242L5.968 15l.833.832 1.287-1.287a.31.31 0 0 1 .242-.097.35.35 0 0 1 .242.107.325.325 0 0 1 0 .474l-1.287 1.288 1.234 1.234q.101.102.101.247 0 .135-.101.237ZM11.636 14.908a.33.33 0 0 1-.232.097.3.3 0 0 1-.228-.083l-1.96-1.96a.32.32 0 0 1-.097-.232.34.34 0 0 1 .334-.334.3.3 0 0 1 .237.092l.146.145q-.15-.624.26-1.036.247-.246.49-.218a.7.7 0 0 1 .435.213l.145.146a.317.317 0 0 1 0 .455q-.116.115-.242.106a.37.37 0 0 1-.217-.111l-.063-.063q-.078-.078-.184.029-.087.087-.116.29a1.4 1.4 0 0 0 0 .368q.024.227.116.387.097.155.27.33l.916.924a.3.3 0 0 1 .082.227.32.32 0 0 1-.092.228ZM14.589 11.955q-.344.344-.765.474-.42.122-.847.005a1.84 1.84 0 0 1-.803-.493 1.84 1.84 0 0 1-.446-.717 1.65 1.65 0 0 1-.063-.837q.083-.421.402-.74.295-.296.624-.383.33-.097.6-.039.271.059.402.189.063.063.083.16a.5.5 0 0 1-.01.213l-.552 2.042a.67.67 0 0 0 .47-.005q.255-.09.47-.304a.9.9 0 0 0 .27-.688q0-.154.082-.237a.3.3 0 0 1 .223-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.204q.015.284-.107.62-.12.323-.343.546Zm-1.433-2.12a.5.5 0 0 0-.315.015.8.8 0 0 0-.304.198.9.9 0 0 0-.276.653q.005.373.251.678.063.082.165.184zM17.305 9.239q-.344.344-.765.474-.42.12-.847.005a1.84 1.84 0 0 1-.803-.494 1.84 1.84 0 0 1-.446-.716 1.65 1.65 0 0 1-.062-.837q.082-.422.401-.74.295-.297.625-.383.33-.098.6-.039.27.058.402.189.062.063.082.16a.5.5 0 0 1-.01.212l-.552 2.043a.67.67 0 0 0 .47-.005q.255-.092.47-.305a.9.9 0 0 0 .27-.687q0-.155.083-.237a.3.3 0 0 1 .222-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.203q.014.285-.106.62-.122.324-.344.547Zm-1.433-2.12a.5.5 0 0 0-.314.014.8.8 0 0 0-.305.199.9.9 0 0 0-.276.653q.004.373.252.678.062.082.164.184z",mask:"url(#free_svg__a)"}))),Google:e=>l.createElement("svg",Nn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24"},e),P||(P=l.createElement("g",{clipPath:"url(#google_svg__a)"},l.createElement("path",{fill:"#4285F4",d:"M24.266 12.277c0-.816-.066-1.636-.207-2.439H12.74v4.621h6.482a5.55 5.55 0 0 1-2.399 3.647v2.998h3.867c2.271-2.09 3.576-5.177 3.576-8.827"}),l.createElement("path",{fill:"#34A853",d:"M12.74 24c3.236 0 5.966-1.062 7.954-2.896l-3.867-2.998c-1.075.731-2.464 1.146-4.083 1.146-3.13 0-5.785-2.112-6.737-4.952h-3.99v3.091a12 12 0 0 0 10.723 6.61"}),l.createElement("path",{fill:"#FBBC04",d:"M6.003 14.3a7.2 7.2 0 0 1 0-4.594V6.615H2.017a12.01 12.01 0 0 0 0 10.776z"}),l.createElement("path",{fill:"#EA4335",d:"M12.74 4.75a6.52 6.52 0 0 1 4.603 1.799l3.426-3.426A11.53 11.53 0 0 0 12.74 0 12 12 0 0 0 2.016 6.615l3.987 3.09C6.95 6.863 9.609 4.75 12.74 4.75"}))),z||(z=l.createElement("defs",null,l.createElement("clipPath",{id:"google_svg__a"},l.createElement("path",{fill:"#fff",d:"M.5 0h24v24H.5z"}))))),Monitor:e=>l.createElement("svg",kn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),R||(R=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17"}))),Chat:e=>l.createElement("svg",En({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),T||(T=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.094 11.229A8 8 0 0 1 6 10c0-4.418 3.605-8 8.053-8 4.447 0 8.052 3.582 8.052 8 0 .998-.184 1.954-.52 2.835-.07.182-.105.274-.12.345a1 1 0 0 0-.024.194c-.002.073.008.153.028.314l.403 3.27c.043.355.065.532.006.66a.5.5 0 0 1-.257.252c-.13.055-.306.03-.66-.022l-3.184-.467c-.167-.024-.25-.037-.326-.036a1 1 0 0 0-.2.021c-.074.016-.169.051-.358.122a8.174 8.174 0 0 1-4.07.42M7.632 22C10.597 22 13 19.538 13 16.5S10.597 11 7.632 11s-5.369 2.462-5.369 5.5c0 .61.097 1.198.277 1.747.075.232.113.348.126.427.013.083.015.13.01.213-.005.08-.025.17-.065.351L2 22l2.995-.409c.163-.022.245-.034.316-.033.076 0 .115.005.19.02.07.013.173.05.381.123a5.3 5.3 0 0 0 1.75.299"}))),MessageSmile:e=>l.createElement("svg",Sn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),B||(B=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 14s1.312 1.5 3.5 1.5S16 14 16 14m-.75-5h.01M9.75 9h.01m2.74 11a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20m3.25-11a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-5.5 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0"}))),Phone:e=>l.createElement("svg",Mn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),H||(H=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.38 8.853a14.6 14.6 0 0 0 2.847 4.01 14.6 14.6 0 0 0 4.01 2.847c.124.06.187.09.265.112.28.082.625.023.862-.147.067-.048.124-.105.239-.219.35-.35.524-.524.7-.639a2 2 0 0 1 2.18 0c.176.115.35.29.7.64l.195.194c.532.531.797.797.942 1.082a2 2 0 0 1 0 1.806c-.145.285-.41.551-.942 1.082l-.157.158c-.53.53-.795.794-1.155.997-.4.224-1.02.386-1.478.384-.413-.001-.695-.081-1.26-.241a19.04 19.04 0 0 1-8.283-4.874A19.04 19.04 0 0 1 3.17 7.761c-.16-.564-.24-.846-.241-1.26a3.4 3.4 0 0 1 .384-1.477c.202-.36.467-.625.997-1.155l.157-.158c.532-.53.798-.797 1.083-.941a2 2 0 0 1 1.805 0c.286.144.551.41 1.083.942l.195.194c.35.35.524.525.638.7a2 2 0 0 1 0 2.18c-.114.177-.289.352-.638.701-.115.114-.172.172-.22.238-.17.238-.228.582-.147.862.023.08.053.142.113.266"}))),Success:e=>l.createElement("svg",On({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),I||(I=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M21.499 1.549 7.175 15.373l-3.801-4.061c-.7-.66-1.8-.7-2.601-.14-.78.58-1 1.6-.52 2.42l4.501 7.322c.44.68 1.2 1.1 2.06 1.1.82 0 1.601-.42 2.041-1.1.72-.94 14.464-17.324 14.464-17.324 1.8-1.84-.38-3.461-1.82-2.061z",clipRule:"evenodd"}))),Dot:e=>l.createElement("svg",Ln({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 10"},e),$||($=l.createElement("circle",{cx:5,cy:5,r:5,fill:"currentColor"}))),Calendar:e=>l.createElement("svg",qn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),F||(F=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22"}))),FilterLines:e=>l.createElement("svg",An({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),W||(W=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 12h12M3 6h18M9 18h6"}))),Users:e=>l.createElement("svg",Dn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),U||(U=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M22 21v-2a4 4 0 0 0-3-3.874M15.5 3.291a4.001 4.001 0 0 1 0 7.418M17 21c0-1.864 0-2.796-.305-3.53a4 4 0 0 0-2.164-2.165C13.796 15 12.864 15 11 15H8c-1.864 0-2.796 0-3.53.305a4 4 0 0 0-2.166 2.164C2 18.204 2 19.136 2 21M13.5 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}))),UsersCheck:e=>l.createElement("svg",Pn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),V||(V=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m16 18 2 2 4-4m-10-1H8c-1.864 0-2.796 0-3.53.305a4 4 0 0 0-2.166 2.164C2 18.204 2 19.136 2 21M15.5 3.29a4.001 4.001 0 0 1 0 7.42M13.5 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}))),ClockRewind:e=>l.createElement("svg",zn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),_||(_=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m22.7 13.5-2-2-2 2M21 12a9 9 0 1 1-1.245-4.57M12 7v5l3 2"}))),Bookmark:e=>l.createElement("svg",Rn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),G||(G=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C7.28 3 8.12 3 9.8 3h4.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 5.28 19 6.12 19 7.8V21l-7-4-7 4z"}))),Help:e=>l.createElement("svg",Tn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),K||(K=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3m.08 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}))),Home:e=>l.createElement("svg",Bn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Y||(Y=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 17h8M11.018 2.764 4.235 8.039c-.453.353-.68.53-.843.75a2 2 0 0 0-.318.65C3 9.704 3 9.991 3 10.565V17.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-7.235c0-.574 0-.861-.074-1.126a2 2 0 0 0-.318-.65c-.163-.22-.39-.397-.843-.75l-6.783-5.275c-.351-.273-.527-.41-.72-.462a1 1 0 0 0-.523 0c-.194.052-.37.189-.721.462"}))),Profile:e=>l.createElement("svg",Hn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Z||(Z=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 21.817C4.603 22 5.416 22 6.8 22h10.4c1.384 0 2.197 0 2.8-.183m-16 0a2 2 0 0 1-.362-.144 3 3 0 0 1-1.311-1.311C2 19.72 2 18.88 2 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 4.28 22 5.12 22 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311 2 2 0 0 1-.362.144m-16 0c0-.809.005-1.237.077-1.597a4 4 0 0 1 3.143-3.143C7.606 17 8.07 17 9 17h6c.93 0 1.394 0 1.78.077a4 4 0 0 1 3.143 3.143c.072.36.077.788.077 1.597M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}))),Settings:e=>l.createElement("svg",$n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Q||(Q=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.43 2.43 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.43 2.43 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.43 2.43 0 0 1-1.47-.312 2.43 2.43 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.43 2.43 0 0 1 2.474 1.43"})),X||(X=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"}))),Rows:e=>l.createElement("svg",Fn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ee||(ee=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.8 10c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 8.48 21 7.92 21 6.8v-.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 10 5.08 10 6.2 10zM17.8 21c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 14 18.92 14 17.8 14H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 15.52 3 16.08 3 17.2v.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21z"}))),Pen:e=>l.createElement("svg",Wn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ne||(ne=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 2 4 4M2 22l1.276-4.68c.084-.305.125-.458.19-.6q.085-.19.207-.36c.092-.125.204-.237.428-.46L14.434 5.565c.198-.198.297-.297.412-.334a.5.5 0 0 1 .309 0c.114.037.213.136.41.334l2.87 2.868c.197.198.296.297.333.411.033.1.033.21 0 .31-.037.114-.136.213-.334.41L8.101 19.9c-.224.224-.336.336-.462.428a2 2 0 0 1-.358.208c-.143.064-.296.105-.6.189z"}))),Info:e=>l.createElement("svg",Un({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ae||(ae=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}))),ArrowNarrowDown:e=>l.createElement("svg",Vn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),te||(te=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m0 0 6-6m-6 6-6-6"}))),ArrowNarrowUp:e=>l.createElement("svg",_n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),re||(re=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 20V4m0 0-6 6m6-6 6 6"}))),Switch:e=>l.createElement("svg",Gn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),se||(se=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 17H4m0 0 4-4m-4 4 4 4M4 7h16m0 0-4-4m4 4-4 4"}))),FileCheck:e=>l.createElement("svg",Kn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ie||(ie=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12.5V6.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 2 16.88 2 15.2 2H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22H12m2-11H8m2 4H8m8-8H8m6.5 12 2 2 4.5-4.5"}))),Dish:e=>l.createElement("svg",Yn({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 24 24"},e),le||(le=l.createElement("path",{stroke:"none",d:"M21 15c0-4.625-3.507-8.441-8-8.941V4h-2v2.059c-4.493.5-8 4.316-8 8.941v2h18zM5 15c0-3.859 3.141-7 7-7s7 3.141 7 7zm-3 3h20v2H2z"}))),Minus:e=>l.createElement("svg",Zn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),oe||(oe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"}))),Plus:e=>l.createElement("svg",Jn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ce||(ce=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"}))),Pdf:e=>l.createElement("svg",Qn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),de||(de=l.createElement("path",{fill:"#fff",stroke:"#D5D7DA",strokeWidth:1.5,d:"M7.75 4A3.25 3.25 0 0 1 11 .75h16c.121 0 .238.048.323.134l10.793 10.793a.46.46 0 0 1 .134.323v24A3.25 3.25 0 0 1 35 39.25H11A3.25 3.25 0 0 1 7.75 36z"})),ue||(ue=l.createElement("path",{stroke:"#D5D7DA",strokeWidth:1.5,d:"M27 .5V8a4 4 0 0 0 4 4h7.5"})),he||(he=l.createElement("rect",{width:26,height:16,x:1,y:18,fill:"#D92D20",rx:2})),me||(me=l.createElement("path",{fill:"#fff",d:"M4.832 30v-7.273h2.87q.826 0 1.41.316.582.314.887.87.31.555.31 1.279t-.313 1.278q-.313.555-.906.863-.59.309-1.427.309h-1.83V26.41h1.581q.444 0 .732-.153.29-.156.433-.43.145-.276.145-.635 0-.363-.145-.632a.97.97 0 0 0-.433-.423q-.291-.153-.74-.153H6.37V30zm9.053 0h-2.578v-7.273h2.6q1.095 0 1.889.437.791.433 1.218 1.246.43.814.43 1.947 0 1.136-.43 1.953a2.95 2.95 0 0 1-1.226 1.253q-.795.437-1.903.437m-1.04-1.317h.976q.682 0 1.147-.242.47-.244.703-.756.238-.516.238-1.328 0-.807-.238-1.318a1.54 1.54 0 0 0-.7-.753q-.465-.24-1.146-.241h-.98zM18.582 30v-7.273h4.816v1.268H20.12v1.733h2.958v1.268H20.12V30z"}))),Img:e=>l.createElement("svg",Xn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),pe||(pe=l.createElement("path",{fill:"#fff",stroke:"#D5D7DA",strokeWidth:1.5,d:"M7.75 4A3.25 3.25 0 0 1 11 .75h16c.121 0 .238.048.323.134l10.793 10.793a.46.46 0 0 1 .134.323v24A3.25 3.25 0 0 1 35 39.25H11A3.25 3.25 0 0 1 7.75 36z"})),ge||(ge=l.createElement("path",{stroke:"#D5D7DA",strokeWidth:1.5,d:"M27 .5V8a4 4 0 0 0 4 4h7.5"})),fe||(fe=l.createElement("rect",{width:26,height:16,x:1,y:18,fill:"#7F56D9",rx:2})),ve||(ve=l.createElement("path",{fill:"#fff",d:"M6.39 22.727V30H4.851v-7.273zm1.265 0H9.55l2.003 4.887h.085l2.003-4.887h1.896V30h-1.491v-4.734h-.06l-1.883 4.699H11.09l-1.883-4.716h-.06V30H7.655zm13.972 2.351a1.6 1.6 0 0 0-.21-.458q-.135-.203-.33-.34a1.4 1.4 0 0 0-.44-.218 1.9 1.9 0 0 0-.543-.074q-.558 0-.98.277-.42.277-.654.806-.234.526-.234 1.285 0 .76.23 1.293.233.533.654.813.423.277.998.277.522 0 .892-.184.373-.188.568-.53.198-.34.198-.805l.313.046h-1.875v-1.158h3.043v.916q0 .96-.405 1.648-.405.686-1.114 1.058-.71.37-1.627.37-1.022 0-1.797-.452a3.13 3.13 0 0 1-1.207-1.289q-.43-.837-.43-1.988 0-.884.256-1.577.26-.696.724-1.179.465-.483 1.083-.735a3.5 3.5 0 0 1 1.34-.252q.617 0 1.15.18.533.179.944.505.415.327.678.778.264.447.338.987z"}))),Maximize:e=>l.createElement("svg",ea({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),xe||(xe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 3h-.2c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8V8m5 13h-.2c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V16m18-8v-.2c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 3 17.88 3 16.2 3H16m5 13v.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H16"}))),Csv:e=>l.createElement("svg",na({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),be||(be=l.createElement("path",{fill:"#fff",stroke:"#D5D7DA",strokeWidth:1.5,d:"M7.75 4A3.25 3.25 0 0 1 11 .75h16c.121 0 .238.048.323.134l10.793 10.793a.46.46 0 0 1 .134.323v24A3.25 3.25 0 0 1 35 39.25H11A3.25 3.25 0 0 1 7.75 36z"})),je||(je=l.createElement("path",{stroke:"#D5D7DA",strokeWidth:1.5,d:"M27 .5V8a4 4 0 0 0 4 4h7.5"})),we||(we=l.createElement("rect",{width:28,height:16,x:1,y:18,fill:"#099250",rx:2})),ye||(ye=l.createElement("path",{fill:"#fff",d:"M11.273 25.273H9.717a1.5 1.5 0 0 0-.174-.536 1.4 1.4 0 0 0-.337-.405 1.5 1.5 0 0 0-.476-.255 1.8 1.8 0 0 0-.579-.09q-.564 0-.983.282-.42.276-.65.81-.231.528-.231 1.285 0 .777.23 1.306.236.53.654.8.42.27.97.27.309 0 .571-.082.267-.082.473-.238a1.4 1.4 0 0 0 .34-.387q.14-.228.192-.519l1.556.007q-.06.501-.302.966a2.9 2.9 0 0 1-.643.828 3 3 0 0 1-.959.575q-.554.21-1.253.21-.973 0-1.74-.44a3.13 3.13 0 0 1-1.208-1.276q-.44-.834-.44-2.02 0-1.19.447-2.024.448-.835 1.215-1.272a3.4 3.4 0 0 1 1.726-.44q.632 0 1.172.177.543.179.962.519.42.337.682.827.265.49.34 1.122m5.048-.454a.9.9 0 0 0-.366-.668q-.324-.238-.877-.238-.377 0-.636.107a.9.9 0 0 0-.398.288.7.7 0 0 0-.135.419.6.6 0 0 0 .082.34.85.85 0 0 0 .252.253q.16.103.37.18.21.075.447.129l.653.156q.477.106.874.284.398.177.689.437.291.259.45.61.164.353.168.807-.004.667-.341 1.157-.335.487-.966.757-.63.266-1.516.266-.882 0-1.534-.27a2.25 2.25 0 0 1-1.016-.799q-.362-.533-.38-1.317h1.488q.024.366.21.61.188.242.5.366.316.12.714.12.39 0 .678-.113a1.04 1.04 0 0 0 .451-.316.73.73 0 0 0 .16-.465q0-.244-.146-.412a1.1 1.1 0 0 0-.419-.284 4 4 0 0 0-.67-.213l-.793-.199q-.92-.224-1.452-.7-.533-.475-.53-1.282-.003-.66.352-1.154.36-.493.984-.77.625-.277 1.42-.277.81 0 1.414.277.608.276.944.77.338.494.348 1.144zm3.92-2.092L22 28.253h.067l1.762-5.526h1.704L23.026 30h-1.982l-2.51-7.273z"}))),UserCard:e=>l.createElement("svg",ta({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ne||(Ne=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 21.817C4.603 22 5.416 22 6.8 22h10.4c1.384 0 2.197 0 2.8-.183m-16 0a2 2 0 0 1-.362-.144 3 3 0 0 1-1.311-1.311C2 19.72 2 18.88 2 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 4.28 22 5.12 22 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311 2 2 0 0 1-.362.144m-16 0c0-.809.005-1.237.077-1.597a4 4 0 0 1 3.143-3.143C7.606 17 8.07 17 9 17h6c.93 0 1.394 0 1.78.077a4 4 0 0 1 3.143 3.143c.072.36.077.788.077 1.597M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}))),Mobile:e=>l.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Se||(Se=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 2v1.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C14.24 5 13.96 5 13.4 5h-2.8c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C9 4.24 9 3.96 9 3.4V2m-.8 20h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C19 20.48 19 19.92 19 18.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C17.48 2 16.92 2 15.8 2H8.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C5 3.52 5 4.08 5 5.2v13.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C6.52 22 7.08 22 8.2 22"}))),PhoneCall:e=>l.createElement("svg",ia({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Me||(Me=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.05 6A5 5 0 0 1 18 9.95M14.05 2A9 9 0 0 1 22 9.94m-11.773 3.923a14.6 14.6 0 0 1-2.847-4.01 2 2 0 0 1-.113-.266 1.05 1.05 0 0 1 .147-.862c.048-.067.105-.124.22-.238.35-.35.524-.524.638-.7a2 2 0 0 0 0-2.18c-.114-.176-.289-.351-.638-.7l-.195-.196c-.532-.531-.797-.797-1.083-.941a2 2 0 0 0-1.805 0c-.285.144-.551.41-1.083.941l-.157.158c-.53.53-.795.794-.997 1.154-.224.4-.386 1.02-.384 1.479 0 .413.081.695.241 1.26a19.04 19.04 0 0 0 4.874 8.283 19.04 19.04 0 0 0 8.283 4.874c.565.16.847.24 1.26.241a3.4 3.4 0 0 0 1.478-.384c.36-.203.625-.468 1.155-.997l.157-.158c.532-.531.797-.797.942-1.082a2 2 0 0 0 0-1.806c-.145-.285-.41-.55-.942-1.082l-.195-.195c-.35-.35-.524-.524-.7-.639a2 2 0 0 0-2.18 0c-.176.114-.35.29-.7.639-.115.114-.172.171-.239.22-.237.17-.581.228-.862.146a2 2 0 0 1-.266-.113 14.6 14.6 0 0 1-4.01-2.846"}))),Mail:e=>l.createElement("svg",la({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Oe||(Oe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m13.744 2.634 7.528 4.893c.266.173.399.26.495.374a1 1 0 0 1 .189.348c.044.143.044.302.044.62V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2V8.868c0-.317 0-.476.044-.62a1 1 0 0 1 .189-.347c.096-.115.229-.201.495-.374l7.528-4.893m3.488 0c-.631-.41-.947-.616-1.287-.696a2 2 0 0 0-.914 0c-.34.08-.656.285-1.287.696m3.488 0 6.192 4.024c.688.448 1.032.671 1.151.955a1 1 0 0 1 0 .774c-.12.284-.463.507-1.15.955l-6.193 4.024c-.631.41-.947.616-1.287.696-.3.07-.613.07-.914 0-.34-.08-.656-.285-1.287-.696L4.064 9.342c-.688-.448-1.032-.671-1.151-.955a1 1 0 0 1 0-.774c.12-.284.463-.507 1.15-.955l6.193-4.024M21.5 19l-6.643-6m-5.714 0L2.5 19"}))),Insta:e=>l.createElement("svg",oa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Le||(Le=l.createElement("g",{fill:"currentColor",clipPath:"url(#insta_svg__clip0_1422_1142)"},l.createElement("path",{d:"M12 2.16c3.206 0 3.586.015 4.847.071 1.172.052 1.805.249 2.226.413a3.7 3.7 0 0 1 1.379.895c.421.422.68.82.895 1.378.164.422.36 1.06.412 2.227.057 1.265.07 1.645.07 4.847 0 3.206-.013 3.586-.07 4.846-.051 1.172-.248 1.805-.412 2.227-.216.558-.478.961-.895 1.378a3.7 3.7 0 0 1-1.379.895c-.421.165-1.059.361-2.226.413-1.266.056-1.645.07-4.847.07-3.206 0-3.586-.014-4.847-.07-1.172-.052-1.805-.248-2.226-.413a3.7 3.7 0 0 1-1.379-.895 3.7 3.7 0 0 1-.895-1.378c-.164-.422-.36-1.06-.412-2.227-.057-1.265-.07-1.645-.07-4.846 0-3.207.013-3.586.07-4.847.051-1.172.248-1.805.412-2.227.216-.558.478-.96.895-1.378.422-.422.82-.68 1.379-.895.421-.164 1.059-.361 2.226-.413 1.261-.056 1.64-.07 4.847-.07M12 0C8.742 0 8.334.014 7.055.07 5.78.127 4.903.333 4.144.628a5.86 5.86 0 0 0-2.128 1.388A5.9 5.9 0 0 0 .628 4.139C.333 4.903.127 5.775.07 7.05.014 8.334 0 8.742 0 12s.014 3.666.07 4.945c.057 1.275.263 2.152.558 2.911.31.792.717 1.463 1.388 2.128a5.9 5.9 0 0 0 2.123 1.383c.764.296 1.636.502 2.911.558 1.28.056 1.688.07 4.945.07s3.666-.014 4.946-.07c1.275-.056 2.151-.262 2.91-.558a5.9 5.9 0 0 0 2.124-1.383 5.9 5.9 0 0 0 1.383-2.123c.295-.764.501-1.636.558-2.911.056-1.28.07-1.687.07-4.945s-.014-3.666-.07-4.946c-.057-1.275-.263-2.151-.558-2.91a5.6 5.6 0 0 0-1.374-2.133A5.9 5.9 0 0 0 19.861.633C19.097.338 18.225.13 16.95.075 15.666.015 15.258 0 12 0"}),l.createElement("path",{d:"M12 5.836A6.166 6.166 0 0 0 5.836 12 6.166 6.166 0 0 0 12 18.164 6.166 6.166 0 0 0 18.164 12 6.166 6.166 0 0 0 12 5.836m0 10.162A3.999 3.999 0 1 1 12.001 8 3.999 3.999 0 0 1 12 15.998M19.847 5.592a1.44 1.44 0 1 1-2.879 0 1.44 1.44 0 0 1 2.879 0"})))),Whatsapp:e=>l.createElement("svg",ca({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32"},e),qe||(qe=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 31c7.732 0 14-6.268 14-14S23.732 3 16 3 2 9.268 2 17c0 2.51.661 4.867 1.818 6.905L2 31l7.315-1.696A13.94 13.94 0 0 0 16 31m0-2.154c6.543 0 11.846-5.303 11.846-11.846 0-6.542-5.303-11.846-11.846-11.846C9.458 5.154 4.154 10.458 4.154 17c0 2.526.79 4.868 2.138 6.79L5.23 27.77l4.049-1.013a11.8 11.8 0 0 0 6.72 2.09",clipRule:"evenodd"})),Ae||(Ae=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 30c7.732 0 14-6.268 14-14S23.732 2 16 2 2 8.268 2 16c0 2.51.661 4.867 1.818 6.905L2 30l7.315-1.696A13.94 13.94 0 0 0 16 30m0-2.154c6.543 0 11.846-5.303 11.846-11.846 0-6.542-5.303-11.846-11.846-11.846C9.458 4.154 4.154 9.458 4.154 16c0 2.526.79 4.868 2.138 6.79L5.23 26.77l4.049-1.013a11.8 11.8 0 0 0 6.72 2.09",clipRule:"evenodd"})),De||(De=l.createElement("path",{fill:"currentColor",d:"M12.5 9.5c-.333-.669-.844-.61-1.36-.61-.921 0-2.359 1.105-2.359 3.16 0 1.684.742 3.528 3.243 6.286 2.414 2.662 5.585 4.039 8.218 3.992s3.175-2.312 3.175-3.078c0-.339-.21-.508-.356-.554-.897-.43-2.552-1.233-2.928-1.384-.377-.15-.573.054-.695.165-.342.325-1.019 1.284-1.25 1.5s-.578.106-.721.025c-.53-.213-1.964-.85-3.107-1.96-1.415-1.37-1.498-1.842-1.764-2.262-.213-.335-.057-.541.021-.632.305-.351.726-.894.914-1.164s.04-.679-.05-.934c-.387-1.097-.715-2.015-.981-2.55"}))),Tiktok:e=>l.createElement("svg",da({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Pe||(Pe=l.createElement("path",{fill:"currentColor",d:"M17.073 0h-4.045v16.348c0 1.948-1.556 3.548-3.492 3.548s-3.491-1.6-3.491-3.548c0-1.913 1.52-3.478 3.388-3.548V8.696C5.319 8.766 2 12.139 2 16.348 2 20.59 5.388 24 9.57 24c4.184 0 7.572-3.443 7.572-7.652V7.965A9.37 9.37 0 0 0 22.5 9.774V5.67c-3.042-.105-5.427-2.61-5.427-5.67"}))),Fb:e=>l.createElement("svg",ua({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ze||(ze=l.createElement("g",{clipPath:"url(#fb_svg__clip0_1422_1140)"},l.createElement("path",{fill:"currentColor",d:"M24 12c0-6.627-5.373-12-12-12S0 5.373 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.356c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H15.83c-1.491 0-1.956.925-1.956 1.875V12h3.328l-.532 3.469h-2.796v8.385C19.612 22.954 24 17.99 24 12"})))),Refresh:e=>l.createElement("svg",ma({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Be||(Be=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.453 12.893A8.5 8.5 0 0 1 4.638 16.25l-.25-.433m-.842-4.71A8.5 8.5 0 0 1 19.361 7.75l.25.433M3.493 18.066l.732-2.732 2.732.732m10.085-8.132 2.732.732.732-2.732"}))),File:e=>l.createElement("svg",pa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),He||(He=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 11H8m2 4H8m8-8H8m12-.2v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C20 4.28 20 5.12 20 6.8"}))),Inbox:e=>l.createElement("svg",ga({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ie||(Ie=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.5 12h3.382c.685 0 1.312.387 1.618 1s.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1s.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.334c.19.377.284.566.35.765q.09.263.128.54c.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84q.038-.277.128-.541c.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4"}))),Hourglass:e=>l.createElement("svg",ja({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ve||(Ve=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963q-.075.309-.24.579c-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72q.165.271.24.578c.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965q.075-.308.24-.578c.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2"}))),Filter:e=>l.createElement("svg",ya({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ge||(Ge=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.05 9H5.5a2.5 2.5 0 0 1 0-5h9.55m-6.1 16h9.55a2.5 2.5 0 0 0 0-5H8.95M3 17.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0m18-11a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0"}))),Heart:e=>l.createElement("svg",Ca({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ke||(Ke=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.993 5.136c-2-2.338-5.333-2.966-7.838-.826s-2.858 5.719-.89 8.25c1.635 2.105 6.585 6.544 8.207 7.98.182.162.272.242.378.274a.5.5 0 0 0 .286 0c.106-.032.197-.112.378-.273 1.623-1.437 6.573-5.876 8.208-7.98 1.967-2.532 1.658-6.133-.89-8.251s-5.84-1.512-7.839.826",clipRule:"evenodd"}))),Flag:e=>l.createElement("svg",Na({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ye||(Ye=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1v19"}))),Trash:e=>l.createElement("svg",ka({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ze||(Ze=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"}))),Share:e=>l.createElement("svg",Ea({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Je||(Je=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.791 12.607c.244-.209.366-.313.411-.438a.5.5 0 0 0 0-.338c-.045-.124-.167-.23-.41-.438L12.32 4.132c-.42-.36-.63-.54-.809-.545a.5.5 0 0 0-.4.184C11 3.91 11 4.186 11 4.74v4.296a9.666 9.666 0 0 0-8 9.516v.612a11.4 11.4 0 0 1 8-4.093v4.19c0 .554 0 .83.112.969a.5.5 0 0 0 .4.184c.178-.005.388-.185.809-.545z"}))),Link:e=>l.createElement("svg",Sa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Qe||(Qe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 9V3m0 0h-6m6 0-9 9m-2-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.72 21 17.88 21 16.2V14"}))),Lens:e=>l.createElement("svg",Ma({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Xe||(Xe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21.416 15.341a9.17 9.17 0 0 1-9.539.659M2.584 8.659a9.17 9.17 0 0 1 9.56-.648m3.23 6.113A9.17 9.17 0 0 0 19.6 5.512M8.581 9.904A9.17 9.17 0 0 0 4.4 18.488m11.128-8.351a9.17 9.17 0 0 0-5.345-7.965M8.476 13.926a9.17 9.17 0 0 0 5.342 7.902m5.253-16.9c3.905 3.906 3.905 10.238 0 14.143s-10.237 3.905-14.142 0-3.905-10.237 0-14.142 10.237-3.905 14.142 0m-4.243 4.244a4 4 0 1 1-5.656 5.656 4 4 0 0 1 5.656-5.656"}))),Clipboard:e=>l.createElement("svg",Oa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),en||(en=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 4c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C20 6.605 20 7.07 20 8v9.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V8c0-.93 0-1.395.102-1.776a3 3 0 0 1 2.122-2.122C6.605 4 7.07 4 8 4m1.6 2h4.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C16 5.24 16 4.96 16 4.4v-.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C15.24 2 14.96 2 14.4 2H9.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C8 2.76 8 3.04 8 3.6v.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C8.76 6 9.04 6 9.6 6"}))),Browser:e=>l.createElement("svg",La({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),nn||(nn=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M22 9H2m0-1.2v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8"})))},Da=({name:e,size:n=25,...t})=>{const r=Aa[e];return(0,a.jsx)(r,{width:n,height:n,...t})},Pa=require("react-spinners/MoonLoader");var za=e.n(Pa);const Ra=({color:e="light",size:n=15})=>(0,a.jsx)(za(),{size:n,color:"dark"===e?"#000000":"#fff"});function Ta({styleType:e="dark",variant:n,size:t="md",children:s,className:l,wrapperClassName:o,icon:c,trailingIcon:d,href:u,isLoading:h,iconClassName:m,disabled:p,filled:g,...f}){const v=n||("dark"===e?"primary":"secondary"),x=!!p||!!h,b=r()("ui-button w-full min-w-20 py-2 border shadow-sm rounded-md font-medium",{"bg-primary text-white border-dark hover:bg-dark/80":"primary"===v,"bg-white text-gray-700 hover:bg-gray-50":"secondary"===v,"opacity-50":x},l),j=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"ui-button-content","data-loading":!!h,children:[c&&(0,a.jsx)(Da,{className:m,size:18,name:c}),(0,a.jsx)("span",{children:s}),d&&(0,a.jsx)(Da,{size:16,name:d})]}),h&&(0,a.jsx)("span",{className:"ui-button-loader","aria-hidden":"true",children:(0,a.jsx)(Ra,{color:"primary"===v?"light":"dark"})})]});return(0,a.jsx)("div",{className:r()("flex",o),children:u?(0,a.jsx)(i(),{...f,href:u,className:b,"data-variant":v,"data-size":t,"aria-disabled":x||void 0,"aria-busy":h||void 0,tabIndex:x?-1:f.tabIndex,onClick:e=>{x?e.preventDefault():f.onClick?.(e)},children:j}):(0,a.jsx)("button",{...f,disabled:x,"aria-busy":h||void 0,className:b,"data-variant":v,"data-size":t,children:j})})}const Ba=({children:e,active:n,wrapperClassName:t,className:s,...i})=>(0,a.jsx)(Ta,{...i,styleType:"light",wrapperClassName:t,className:r()("font-semibold hover:bg-white hover:border-gray-700",n?"!text-gray-700 border-gray-700":"text-gray-400",s),children:e}),Ha=({onClick:e,icon:n,isLoading:t,href:s,target:l,disabled:o})=>{const c=(0,a.jsx)("div",{onClick:e,className:r()("flex items-center justify-center w-9 h-9 border p-2 rounded hover:bg-gray-50/70 cursor-pointer shadow-sm text-gray-600",{"pointer-events-none ":o||t,"opacity-70":o}),children:t?(0,a.jsx)(Ra,{color:"dark"}):(0,a.jsx)(Da,{name:n})});return s?(0,a.jsx)(i(),{target:l,href:s,children:c}):c},Ia=require("@headlessui/react"),$a=(0,l.forwardRef)(function(e,n){const{classes:t}=e;return(0,a.jsx)(Ia.Transition.Child,{ref:n,as:l.Fragment,enter:r()("ease-out duration-300",t?.transitionEnter),enterFrom:r()("opacity-0",t?.transitionEnterFrom),enterTo:r()("opacity-100",t?.transitionEnterTo),leave:r()("ease-in duration-200",t?.transitionLeave),leaveFrom:r()("opacity-100",t?.transitionLeaveFrom),leaveTo:r()("opacity-0",t?.transitionLeaveTo),children:(0,a.jsx)("div",{className:r()(t?.background,"fixed inset-0 bg-gray-400 bg-opacity-80 backdrop-blur transition-opacity")})})}),Fa=function(e){const{open:n=!1,onClose:t,classes:s,children:i,overlayProps:o,name:c}=e,[d,u]=(0,l.useState)(n);return(0,l.useEffect)(()=>{u(n)},[n]),d?(0,a.jsx)(Ia.Transition.Root,{show:d,as:l.Fragment,children:(0,a.jsxs)(Ia.Dialog,{as:"div",className:r()(s?.root,"relative z-40"),onClose:t,children:[(0,a.jsx)($a,{...o}),(0,a.jsx)("div",{className:r()(s?.container,"fixed inset-0 z-10 overflow-y-auto"),children:(0,a.jsx)("div",{className:r()(s?.innerContainer,"flex min-h-full justify-center p-4 text-center items-center sm:p-0"),children:(0,a.jsx)(Ia.Transition.Child,{as:l.Fragment,enter:r()("ease-out duration-300"),enterFrom:r()("opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"),enterTo:r()("opacity-100 translate-y-0 sm:scale-100"),leave:r()("ease-in duration-200"),leaveFrom:r()("opacity-100 translate-y-0 sm:scale-100"),leaveTo:r()("opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"),children:(0,a.jsxs)(Ia.Dialog.Panel,{className:r()(s?.panel,"w-full relative transform rounded-lg bg-white dark:bg-dark text-left shadow-xl ring-1 ring-onLight/50 dark:ring-onDark/50 transition-all sm:max-w-lg"),children:[(0,a.jsxs)("div",{className:"flex justify-between border-b px-6 py-3",children:[(0,a.jsx)("h4",{className:"text-2xl",children:c}),(0,a.jsx)(Da,{onClick:()=>{u(!1),t()},size:30,className:"p-1 hover:bg-gray-50 cursor-pointer rounded",name:"Close"})]}),(0,a.jsx)("div",{className:r()(s?.content,"px-4 pt-5 pb-4 sm:p-6"),children:i})]})})})})]})}):null},Wa=({children:e,onClick:n,className:t,styleType:r,type:s,action:i,Element:o=Ta,...c})=>{const[d,u]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{...c,type:"button",className:t,styleType:r,onClick:()=>{u(!0)},children:e}),(0,a.jsxs)(Fa,{name:"Confirmation",open:d,onClose:()=>u(!1),classes:{content:"space-y-10"},children:[(0,a.jsxs)("p",{className:"text-xl text-center",children:["Are you sure you want to ",(0,a.jsx)("br",{})," ",(0,a.jsx)("strong",{className:"text-secondary",children:i||e}),"?"]}),(0,a.jsxs)("div",{className:"flex space-x-6 justify-center",children:[(0,a.jsx)(Ta,{className:"sm:min-w-36",styleType:"dark",type:s||"button",onClick:e=>{n?.(e),u(!1)},children:"Yes"}),(0,a.jsx)(Ta,{className:"sm:min-w-36",type:"button",styleType:"light",onClick:()=>u(!1),children:"No"})]})]})]})},Ua=({href:e,children:n,onClick:t,disabled:s,className:o})=>{const c=e?i():"div",[d,u]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c,{onClick:n=>{e?t?.(n):u(!0)},href:e,className:r()(o,"w-full text-center text-secondary font-medium cursor-pointer hover:text-secondary/80",{"opacity-70 pointer-events-none":s}),children:n}),(0,a.jsxs)(Fa,{name:"Confirmation",open:d,onClose:()=>u(!1),classes:{content:"space-y-10"},children:[(0,a.jsxs)("p",{className:"text-xl text-center",children:["Are you sure you want to ",(0,a.jsx)("br",{})," ",(0,a.jsx)("strong",{className:"text-secondary",children:n}),"?"]}),(0,a.jsxs)("div",{className:"flex space-x-6 justify-center",children:[(0,a.jsx)(Ta,{styleType:"dark",onClick:e=>{t?.(e),u(!1)},children:"Yes"}),(0,a.jsx)(Ta,{styleType:"light",onClick:()=>u(!1),children:"No"})]})]})]})};function Va({items:e,listClassName:n,buttonClassName:t,listWrapperClassName:s,selectedClassName:i,wrapperClassName:l,variant:o="segmented",label:c,selectedIndex:d,onChange:u,keepMounted:h=!1}){const m="underline"===o;return(0,a.jsxs)(Ia.Tab.Group,{selectedIndex:d,onChange:u,className:r()(l,m?"ui-content-tabs":"ui-segmented-tabs"),children:[(0,a.jsx)("div",{className:r()(s,m?"ui-content-tabs-scroll":"ui-segmented-tabs-scroll"),children:(0,a.jsx)(Ia.Tab.List,{"aria-label":c,className:r()(n,m?"ui-content-tabs-list":"ui-segmented-tabs-list"),children:e.map(e=>(0,a.jsxs)(Ia.Tab,{className:({selected:e})=>r()(t,m?"ui-content-tab":"ui-segmented-tab",e&&i),children:[e.name,void 0!==e.count&&(0,a.jsx)("span",{className:"ui-content-tab-count",children:e.count})]},e.name))})}),(0,a.jsx)(Ia.Tab.Panels,{className:"w-full",children:e.map((e,n)=>(0,a.jsx)(Ia.Tab.Panel,{unmount:!h,children:e.panel},n))})]})}const _a=({items:e})=>(0,a.jsx)(Va,{selectedClassName:"",listClassName:"bg-gray space-x-0 !p-0 !border-2 !rounded-md !w-auto !max-w-lg !w-full divide-x divide-gray-300",buttonClassName:"shadow-none !py-2 !rounded-none px-3 focus-visible:!ring-0 focus-visible:!outline-0 focus-visible:!ring-offset-0 whitespace-nowrap",listWrapperClassName:"!justify-start",items:e}),Ga=require("react-datetime");var Ka=e.n(Ga);const Ya=({label:e,htmlFor:n,errorId:t,children:s,className:i,error:l,hideError:o,info:c,toolTipWrapperClassName:d,toolTipHeaderClassName:u,toolTipContentClassName:h})=>(0,a.jsxs)("div",{className:r()("space-y-2",i),children:[(null!=e||c)&&(0,a.jsxs)("div",{className:"flex space-x-1.5",children:[null!=e&&(0,a.jsx)("label",{htmlFor:n,className:"ui-field-label",children:e}),c&&(0,a.jsx)(tt,{size:16,anchor:"top start",children:(0,a.jsx)(gt,{title:c.title,wrapperClassName:d,headerClassName:u,children:(0,a.jsx)("div",{className:r()(h,"font-light"),children:c.toolTip})})})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[s,!o&&l&&(0,a.jsxs)("div",{id:t,role:"alert",className:"font-medium text-xs text-red-600 flex gap-1 items-start",children:[(0,a.jsx)(Da,{size:16,name:"Info",className:"shrink-0","aria-hidden":"true"}),(0,a.jsx)("span",{children:l})]})]})]}),Za=(0,l.forwardRef)(function({icon:e,className:n,label:t,wrapperClassName:s,error:i,hideError:o,id:c,...d},u){const h=(0,l.useId)(),m=c||h,p=`${m}-error`;return(0,a.jsx)(Ya,{error:i,label:t,htmlFor:m,errorId:p,className:s,hideError:o,children:(0,a.jsxs)("div",{className:"ui-input-icon-wrap",children:[e&&(0,a.jsx)(Da,{name:e,size:18,"aria-hidden":"true"}),(0,a.jsx)("input",{...d,id:m,ref:u,"aria-invalid":!!i||d["aria-invalid"],"aria-describedby":[d["aria-describedby"],i&&!o?p:""].filter(Boolean).join(" ")||void 0,className:r()("ui-input border rounded-md w-full min-h-10",e?"ui-input-with-icon":"",n)})]})})}),Ja=({label:e,date:n,className:t,onChange:r,error:s})=>{const[i,o]=(0,l.useState)(n||new Date);return(0,l.useEffect)(()=>{o(n)},[n]),(0,a.jsx)(Ka(),{renderInput:n=>(0,a.jsx)(Za,{...n,error:s,label:e,className:t,icon:"Calendar"}),initialValue:i,onChange:e=>{o(new Date(e)),r?.(new Date(e))}})},Qa=function({items:e,className:n,label:t,right:s,wrapperClassName:i,onChangeDropdown:o,defaultValue:c,unset:d,disableCloseOnClick:u,title:h,error:m,hideError:p,selectedClassName:g}){const[f,v]=(0,l.useState)(c);return(0,l.useEffect)(()=>{v(c)},[c]),(0,a.jsx)(Ya,{error:m,hideError:p,label:t,className:i,children:(0,a.jsx)(Ia.Popover,{className:r()("relative h-full w-full"),children:({open:t,close:i})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Ia.Popover.Button,{className:r()(n,"w-full group inline-flex items-center justify-between rounded-sm px-4 py-2 font-semibold focus:outline-none border-2 border-gray-200 bg-white shadow-sm",t?"":"text-gray-600"),children:[(0,a.jsx)("span",{className:"whitespace-nowrap",children:h||e[f]?.label}),(0,a.jsx)(Da,{name:"ChevronDown",className:(t?"rotate-180":"text-gray-600/70")+"\n ml-2 h-5 w-5 transition duration-150 ease-in-out","aria-hidden":"true"})]}),(0,a.jsx)(Ia.Transition,{as:l.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,a.jsx)(Ia.Popover.Panel,{className:r()("absolute z-40 mt-3 w-full sm:max-w-xs transform px-4 sm:px-0 ",s?"right-0":"left-0"),children:(0,a.jsx)("div",{className:"min-w-52",children:(0,a.jsxs)("div",{className:"relative bg-white p-3 rounded-sm shadow-lg ring-1 ring-black/5 space-y-1 max-h-72 overflow-y-scroll",children:[e.map((e,n)=>"string"!=typeof e.label?(0,a.jsx)("div",{children:e.label},e.id):(0,a.jsx)("div",{className:r()("px-4 py-3 hover:bg-gray-50 cursor-pointer rounded-sm",{"bg-gray-100":n===f},{[g]:n===f}),onClick:()=>{v(n),o?.(e),u||i()},children:e.labels?.length?(0,a.jsx)("div",{className:r()("grid",`grid-cols-${e.labels.length}`),children:e.labels.map(e=>(0,a.jsx)("div",{className:"font-medium",children:e},e))}):(0,a.jsx)("div",{className:r()("block text-gray-700 font-medium"),children:e.label})},e.id)),d&&(0,a.jsx)("div",{className:"flex justify-end",onClick:()=>{v(void 0),o?.(void 0),u||i()},children:(0,a.jsx)("span",{className:"underline hover:text-dark cursor-pointer py-1",children:"unset"})})]})})})})]})})})},Xa=({type:e,url:n,title:t})=>(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i(),{href:n||"/#",target:n?"_blank":void 0,className:r()("cursor-pointer",{"pointer-events-none opacity-50":!n}),children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-1",children:[(0,a.jsx)(Da,{name:e}),(0,a.jsx)("div",{className:"font-thin uppercase text-xs",children:t})]})})}),et=require("next/image");var nt=e.n(et);const at=({imageUrl:e,onClose:n,image:t,children:r})=>{const[s,i]=(0,l.useState)(!0);return e?(0,a.jsxs)("div",{className:"fixed top-0 right-0 left-0 bottom-0 bg-black bg-opacity-90 flex justify-center items-center z-50",children:[(0,a.jsxs)("div",{className:"relative h-full w-full flex justify-center items-center",children:[(0,a.jsx)(Da,{name:"Close",size:36,className:"absolute top-4 right-4 bg-white text-black rounded-full p-1.5 text-lg cursor-pointer hover:bg-gray-100",onClick:e=>{e.stopPropagation(),n?.()}}),s&&(0,a.jsx)("div",{className:"absolute top-0 right-0 left-0 bottom-0 flex items-center justify-center",children:(0,a.jsx)(Ra,{color:"light",size:32})}),(0,a.jsx)(nt(),{src:e,alt:"Full View",height:t?.width||1500,width:t?.height||2e3,className:"object-contain max-h-screen max-w-screen pointer-events-none",onLoad:()=>{i(!1)}})]}),r]}):null},tt=function({children:e,size:n,icon:t="Info",iconClassName:s,anchor:i="top",className:l}){return(0,a.jsx)("div",{className:"flex",children:(0,a.jsxs)(Ia.Popover,{children:[(0,a.jsx)(Ia.PopoverButton,{className:"block focus:outline-none text-gray-400 data-[active]:text-gray-300",children:"string"==typeof t?(0,a.jsx)(Da,{size:n,name:t,className:s}):t}),(0,a.jsx)(Ia.PopoverPanel,{transition:!0,anchor:i,className:r()("transition duration-200 ease-in-out [--anchor-gap:var(--spacing-5)] data-[closed]:-translate-y-1 data-[closed]:opacity-0 z-30","min-w-44 max-w-72 min-h-60 max-h-72 flex flex-col rounded-md overflow-hidden shadow-md",l),children:e})]})})};function rt({onClick:e,icon:n,isLoading:t,href:s,target:l,rel:o,disabled:c,className:d,size:u,iconClassName:h,loaderColor:m="dark",title:p,...g}){const f=!!c||!!t,v=r()("ui-icon-button border rounded bg-white",d),x=g["aria-label"]||p||n,b=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"ui-button-content","data-loading":!!t,children:(0,a.jsx)(Da,{size:u||18,name:n,className:h,"aria-hidden":"true"})}),t&&(0,a.jsx)("span",{className:"ui-button-loader","aria-hidden":"true",children:(0,a.jsx)(Ra,{color:m})})]});return s?(0,a.jsx)(i(),{...g,href:s,target:l,rel:o,title:p,"aria-label":x,"aria-disabled":f||void 0,"aria-busy":t||void 0,tabIndex:f?-1:g.tabIndex,className:v,onClick:n=>{f?n.preventDefault():e?.(n)},children:b}):(0,a.jsx)("button",{...g,type:g.type||"button",onClick:e,disabled:f,title:p,"aria-label":x,"aria-busy":t||void 0,className:v,children:b})}const st=function({href:e}){return(0,a.jsx)(i(),{href:e,className:"text-primary font-medium hover:text-gray-400",children:(0,a.jsxs)("span",{className:"inline-flex gap-x-1.5 items-center pt-4",children:["Mehr erfahren ",(0,a.jsx)(Da,{size:18,name:"ArrowRight"})]})})};var it;function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},lt.apply(null,arguments)}const ot=e=>l.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 404 404"},e),it||(it=l.createElement("g",{fill:"currentColor",clipPath:"url(#logo_svg__clip0_442_1222)"},l.createElement("path",{d:"M354.808 51.545v1.177l1.274.41c1.779.552 5.889 2.595 7.692 3.797 3.918 2.644 8.63 6.947 12.284 11.274 2.403 2.837 8.221 10.505 9.855 13.005 4.784 7.38 9.327 20.216 10.794 30.553.288 2.091.601 3.798.721 3.798.096 0 .168-14.014.168-31.13V53.3h-3.053c-7.115-.024-18.966-.793-29.038-1.923-3.438-.384-7.26-.769-8.462-.865l-2.235-.168zM326.707 51.4c-9.375 1.25-17.044 3.414-24.255 6.851-12.043 5.721-20.024 13.39-25.313 24.255-3.677 7.572-5.288 15.096-5.312 24.64 0 5.552.385 8.99 1.466 13.269 2.068 8.197 7.188 16.731 14.207 23.75 5.096 5.072 10.505 9.231 18.558 14.255l4.495 2.812h45.216c24.856 0 45.193-.072 45.193-.168 0-.385-3.967-5-6.371-7.404-4.23-4.255-9.351-8.365-15.264-12.26-4.327-2.836-15.192-9.206-27.524-16.105-19.375-10.842-26.707-15.938-32.861-22.837-7.596-8.51-10.096-16.707-8.101-26.61C313.029 64.91 321.226 55.173 330 53.13l1.731-.409v-.913c0-.865-.024-.913-.769-.89-.433 0-2.356.217-4.255.481M0 53.035c0 .12.337.337.77.48 3.004 1.058 6.297 5.554 7.932 10.842l.553 1.803.072 47.524.048 47.548h43.75l.048-47.428.072-47.404.529-1.827c1.466-5.192 4.23-9.206 7.356-10.745.625-.312 1.13-.673 1.13-.793s-12.092-.216-31.13-.216c-18.341 0-31.13.096-31.13.216M94.471 84.309c0 17.308.096 31.49.192 31.49.097 0 .313-.865.481-1.899.721-4.639 4.4-17.26 6.923-23.774 2.212-5.697 5.721-12.019 9.64-17.356 2.596-3.485 8.702-9.59 11.851-11.826 3.918-2.765 8.365-4.736 12.884-5.65l2.02-.432v-2.043H94.471zM150.144 54.79c-.12 1.755-3.293 104.038-3.269 105.769v.673h43.51l.096-.553c.096-.529 3.293-104.471 3.269-106.73v-1.13h-43.462zM218.822 53.516c-6.923 1.105-11.755 5.144-13.702 11.442-.336 1.13-.433 2.188-.408 4.808 0 2.98.072 3.581.649 5.288 1.346 4.063 3.942 7.043 8.125 9.351a24.6 24.6 0 0 0 10.072 2.98l2.043.17-.072 1.201c-.265 4.135-2.548 8.606-6.515 12.716-3.341 3.462-7.379 6.154-11.442 7.621l-1.202.432 1.082-.12c3.534-.457 8.798-2.091 12.356-3.87 6.995-3.51 13.029-9.64 16.346-16.683 2.5-5.264 3.389-9.207 3.389-15.12-.024-5.096-.456-7.187-2.356-11.058-1.033-2.115-1.538-2.836-3.173-4.47-3.101-3.15-6.538-4.592-11.418-4.785-1.394-.048-3.077 0-3.774.097M195.673 172.795c-11.178 1.225-21.514 5.024-30.529 11.225-12.284 8.438-21.058 20.842-24.639 34.784-1.395 5.409-1.683 7.933-1.683 14.664 0 6.538.216 8.557 1.563 14.014 1.033 4.207 2.211 7.428 4.326 11.707 3.198 6.538 6.803 11.49 12.188 16.706 10.336 10.073 23.149 16.106 38.053 17.933 4.11.505 13.918.361 17.788-.264 6.947-1.082 12.981-3.005 19.351-6.13 6.755-3.317 12.044-7.067 17.068-12.115 9.591-9.64 15.456-21.611 17.211-35.121.433-3.269.361-10.745-.144-14.423-1.707-12.836-7.789-25.072-17.067-34.375-9.808-9.783-22.26-16.009-36.659-18.269-2.981-.481-13.654-.697-16.827-.336m-3.365 5.673c6.033 1.634 13.629 9.375 19.879 20.264 7.164 12.428 12.933 29.111 15.553 44.832 1.827 10.913 2.068 21.322.721 29.206-1.298 7.525-4.302 13.005-8.245 14.976-2.115 1.058-3.726 1.274-6.057.794-10.529-2.188-22.933-19.399-30.77-42.693-7.716-23.028-9.519-45.625-4.663-58.557 1.947-5.145 5.312-8.582 9.038-9.207 1.491-.24 2.645-.144 4.544.385M403.005 173.155c-1.827 1.515-5.577 3.822-8.318 5.12-5.673 2.669-11.225 4.207-18.822 5.193-3.509.456-12.379.889-14.062.673l-1.226-.145-.048 39.039-.072 39.038-.89 2.548c-1.057 3.077-2.764 6.539-4.158 8.51-1.202 1.683-4.303 4.736-5.962 5.865-1.779 1.202-4.687 2.597-6.418 3.029-4.592 1.202-9.88-.096-12.933-3.173-1.707-1.707-2.692-3.389-3.654-6.25-1.49-4.495-1.442-2.452-1.61-53.389-.072-25.529-.193-46.443-.241-46.443-.024 0-.793.601-1.682 1.323-.914.721-2.765 1.971-4.135 2.788-8.63 5.144-19.495 7.644-32.332 7.38l-4.303-.072.169 37.908c.096 23.438.24 38.678.408 39.904.794 6.346 2.837 12.068 5.938 16.419 3.774 5.36 10.024 10.024 17.115 12.74 7.452 2.885 17.404 3.654 25.914 2.019 5.312-1.034 11.49-3.558 16.105-6.634 5.145-3.39 9.399-8.895 11.972-15.433l.793-2.067.024 12.668v12.692h43.004999999999995l.072-60.889c.048-33.462.072-60.89.072-60.914zM10.192 173.323c.577 2.356 33.87 103.245 34.688 105.217 2.668 6.274 6.322 10.865 10.288 12.908 5.289 2.717 12.476 3.63 26.274 3.342l7.284-.145-.144.529c-.505 1.683-2.428 6.539-3.63 9.207-1.49 3.293-3.942 7.74-5.89 10.601-3.124 4.639-8.653 10.529-12.644 13.486-7.067 5.24-15.408 8.533-25.072 9.903-6.442.938-10.48.866-14.447-.24-5.216-1.418-9.255-4.952-11.322-9.88-.385-.913-.673-1.755-.625-1.875s.6.409 1.226 1.202c2.524 3.173 6.707 5.793 10.6 6.635 2.597.553 7.26.36 9.64-.385 3.582-1.13 6.587-3.149 9.039-6.082 6.01-7.163 5.649-18.173-.818-25.072-3.63-3.894-8.197-5.865-13.653-5.865-4.231 0-6.948.745-10.169 2.812-4.567 2.933-7.428 7.164-8.605 12.717-.457 2.211-.553 3.341-.553 7.187 0 3.918.072 4.928.553 7.068 1.562 6.947 4.663 12.355 10.168 17.716 5.36 5.192 11.73 8.077 20.697 9.351 7.38 1.058 13.582-.337 19.784-4.399 2.115-1.394 6.538-5.818 8.34-8.342 4.76-6.73 9.136-15.24 14.015-27.283 4.904-12.116 16.419-43.846 35.169-96.995 7.235-20.505 8.004-22.981 8.822-28.414 1.106-7.356-.289-12.26-4.015-14.159-2.331-1.177-4.327-1.298-22.548-1.298H85.937l1.539.89c2.26 1.346 5.721 4.327 7.644 6.61 4.664 5.505 8.318 12.885 9.904 20.072 1.707 7.645 1.875 17.933.481 29.279-1.394 11.322-4.231 25.361-7.572 37.26-1.346 4.856-4.952 15.986-5.145 15.986-.096 0-8.822-24.736-19.423-55l-19.23-54.976-22.044-.073-22.043-.048zM278.414 317.722c-6.178 1.611-10.145 6.755-10.145 13.101 0 3.967 1.226 6.923 3.943 9.64 2.788 2.788 5.793 3.942 10.144 3.942 3.702 0 7.139-1.034 9.207-2.764l.745-.649v-10.048h-2.885v9.038l-.889.505c-1.899 1.033-3.438 1.37-6.082 1.37-1.947-.024-2.837-.144-3.942-.553-2.693-.961-4.664-2.572-5.986-4.856-1.923-3.341-1.827-8.317.216-11.562 3.39-5.361 11.467-6.779 16.707-2.957l1.226.914.866-.89.889-.889-.962-.866c-2.956-2.596-8.509-3.653-13.052-2.476M364.712 317.722c-2.476.649-4.496 1.803-6.178 3.486-5.241 5.24-5.193 14.159.096 19.351 2.716 2.668 5.769 3.846 10 3.846 3.774 0 6.659-.937 8.798-2.885l1.058-.937-.89-.889-.865-.89-.962.769c-4.495 3.558-11.322 3.077-15.288-1.081-3.197-3.342-3.942-8.678-1.803-12.885.649-1.274 2.692-3.437 3.942-4.183 4.159-2.428 9.616-2.139 13.101.649l.986.794.865-.89.89-.889-.673-.697c-.794-.818-2.981-2.044-4.64-2.572-.625-.193-2.404-.409-3.918-.481-2.236-.072-3.101 0-4.519.384M250.986 318.492c-.241.577-2.909 6.394-5.914 12.932s-5.505 12.092-5.577 12.308c-.12.385.048.433 1.298.433h1.443l1.562-3.438 1.539-3.413h15.096l1.514 3.365 1.491 3.366 1.562.072 1.563.072-3.51-7.644c-1.923-4.207-4.663-10.193-6.082-13.294l-2.572-5.649-1.49-.072-1.467-.072zm5.096 9.038c1.683 3.798 3.053 6.971 3.053 7.067 0 .121-2.861.193-6.346.193h-6.347l3.173-7.092c1.731-3.894 3.198-7.067 3.27-7.067s1.49 3.101 3.197 6.899M300.24 330.823v13.342h18.991v-2.404h-16.106v-9.856h13.702v-2.404h-13.702v-9.615h15.385v-2.404h-18.27zM325.962 330.823v13.342h2.644v-10.721c0-8.823.048-10.698.312-10.481.169.144 4.039 4.976 8.606 10.745l8.269 10.457h2.524v-26.683h-2.884l-.048 10.745-.072 10.745-8.534-10.745-8.51-10.745h-2.307zM379.808 317.602c0 .072 2.379 4.039 5.288 8.798l5.289 8.654v9.111h2.884v-9.279l4.832-7.933c2.668-4.351 5.048-8.269 5.312-8.702l.481-.769h-2.884l-4.544 7.428c-2.476 4.086-4.591 7.356-4.687 7.26-.096-.073-2.164-3.414-4.592-7.356l-4.399-7.212-1.49-.072c-.817-.048-1.49 0-1.49.072"})))),ct=({size:e,mode:n="black",className:t,href:s})=>{const l=(0,a.jsx)(ot,{className:r()({"text-black":"black"===n,"text-white":"white"===n},t),width:e||50,height:e||50});return s?(0,a.jsx)(i(),{href:s,className:"shrink-0",children:l}):l},dt=({tags:e,label:n})=>{const[t,s]=(0,l.useState)({});return(0,a.jsx)(Ya,{label:n,children:(0,a.jsx)("div",{className:"space-x-2 flex",children:e.map(e=>(0,a.jsx)("div",{className:r()("border-2 border-gray-200 px-4 py-3 min-w-16 rounded-full text-gray-400 cursor-pointer font-semibold",t[e.id]?"text-gray-700 border-gray-700":""),onClick:()=>s(n=>({...n,[e.id]:!n[e.id]})),children:e.name},e.id))})})},ut=({items:e,className:n})=>{const[t,s]=(0,l.useState)(0);return(0,a.jsx)("div",{className:r()(n,"flex h-12 border-2 rounded-lg divide-x-2 shadow-sm"),children:e.map((e,n)=>(0,a.jsx)("div",{className:r()(t===n?"bg-gray-100":"bg-white","w-28 whitespace-nowrap flex items-center justify-center first:rounded-l-lg last:rounded-r-lg font-semibold cursor-pointer"),onClick:()=>s(n),children:e.label},e.id))})},ht=function({children:e,className:n}){return(0,a.jsx)("p",{className:r()("text-base px-3 sm:px-3.5",n),children:e})},mt=function(e){return(0,a.jsx)("span",{className:"bg-light py-1 px-4 rounded-full bg-opacity-60 border border-light text-primary font-medium",children:e.tag})},pt=(0,l.forwardRef)(({wrapperClassName:e,error:n,label:t,className:s,id:i,...o},c)=>{const d=(0,l.useId)(),u=i||d;return(0,a.jsx)(Ya,{className:e,label:t,htmlFor:u,error:n,errorId:`${u}-error`,children:(0,a.jsx)(Ia.Textarea,{ref:c,id:u,"aria-invalid":!!n,"aria-describedby":n?`${u}-error`:void 0,...o,className:r()(s,"ui-input min-h-24 w-full rounded-md p-3")})})}),gt=({title:e,children:n,headerClassName:t,wrapperClassName:s})=>(0,a.jsxs)("div",{className:r()(s,"bg-white flex-1 flex flex-col h-full rounded-md shadow-md overflow-hidden"),children:[e&&(0,a.jsx)("div",{className:r()(t,"p-2 border bg-gray-50"),children:(0,a.jsx)("h5",{children:e})}),(0,a.jsx)("div",{className:"space-y-2 p-2 border-r border-l border-b flex-1 overflow-y-scroll",children:n})]}),ft=require("react-drag-drop-files"),vt=({onChange:e,accept:n,error:t,className:s,text:i,defaultImgUrl:o,imageClassName:c,hideClose:d,loaderColor:u="light"})=>{const[h,m]=(0,l.useState)(!1),[p,g]=(0,l.useState)(o);return(0,l.useEffect)(()=>()=>{p&&URL.revokeObjectURL(p)},[p]),(0,l.useEffect)(()=>{g(o)},[o]),(0,a.jsx)("div",{className:"space-y-2 w-full h-full",children:(0,a.jsxs)("div",{className:r()(s,"bg-dark w-full h-full rounded-lg over-flow-hidden hover:bg-dark/80 p-3 relative flex flex-col items-center justify-center ",{"outline outline-[5px] outline-secondary":t}),children:[!h&&!p&&(0,a.jsx)(ft.FileUploader,{handleChange:n=>{m(!0);const a=URL.createObjectURL(n);e?.({blob:n,url:a}),g(a)},name:"file",types:n,classes:"h-full flex w-full",children:(0,a.jsxs)("div",{className:"h-full w-full border-3 border-dashed border-light/80 flex flex-col justify-center items-center rounded-lg p-12 space-y-2",children:[(0,a.jsx)(Da,{name:"Camera",size:40}),i&&(0,a.jsx)("p",{className:"font-thin text-center",children:i})]})}),p&&(0,a.jsx)("div",{className:r()("absolute inset-0 bg-dark flex justify-center items-center overflow-hidden",{invisible:!p||h}),children:(0,a.jsxs)("div",{className:"relative w-full h-full",children:[(0,a.jsx)(nt(),{fill:!0,src:p,alt:"Uploaded Preview",className:r()(c,"max-w-full max-h-full object-contain"),onLoad:()=>m(!1)}),!d&&(0,a.jsx)(Da,{onClick:()=>{g(null),e?.(void 0)},name:"Close",size:32,className:"absolute right-3 top-3 bg-white text-gray-900 border rounded cursor-pointer hover:bg-gray-50 p-1 z-10"})]})}),h&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center ",children:(0,a.jsx)(Ra,{color:u})})]})})},xt=({onChange:e,accept:n,error:t,className:s,text:i,loaderColor:l="light",multiple:o,isLoading:c,loadingText:d})=>(0,a.jsx)("div",{className:"space-y-2 w-full h-full",children:(0,a.jsx)("div",{className:r()(s,"w-full h-full bg-gray-50 border text-gray-900 hover:bg-gray-100 rounded-lg overflow-hidden p-3 relative ",{"outline outline-[5px] outline-secondary":t}),children:(0,a.jsxs)("div",{className:"border-3 border-dashed border-light/80 w-full h-full",children:[!c&&(0,a.jsx)(ft.FileUploader,{handleChange:n=>{e?.(n)},name:"file",types:n,multiple:o,classes:"h-full flex w-full",children:(0,a.jsxs)("div",{className:"h-full w-full flex flex-col justify-center items-center p-12 space-y-2",children:[(0,a.jsx)(Da,{name:"Camera",size:40}),i&&(0,a.jsx)("p",{className:"font-thin text-center",children:i})]})}),c&&(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center space-y-2 ",children:[(0,a.jsx)(Ra,{color:l}),d&&(0,a.jsx)("p",{className:"font-thin text-center",children:d})]})]})})}),bt=(0,l.forwardRef)(({options:e,label:n,defaultValue:t,...r},s)=>(console.log(r),(0,a.jsx)(Ya,{label:n,className:"text-base !space-y-0",hideError:!0,children:(0,a.jsx)("fieldset",{children:(0,a.jsx)("div",{className:"mt-6 space-x-6 flex",children:e.map((e,n)=>(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("input",{ref:s,...r,defaultChecked:t===n,id:e.id,value:e.id,type:"radio",className:"relative size-5 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white not-checked:before:hidden checked:border-secondary checked:bg-secondary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden cursor-pointer"}),(0,a.jsx)("label",{htmlFor:e.id,className:"ml-3 block font-medium",children:e.label})]},e.id))})})}))),jt=function(){return(0,a.jsx)("div",{className:"py-2 sm:py-4 w-full border-t bg-white",children:(0,a.jsx)("div",{className:"w-full max-w-8xl mx-auto flex flex-col-reverse items-center sm:flex-row sm:justify-between px-3",children:(0,a.jsx)("span",{className:"text-gray-500 font-light",children:"© 2025 | itsyou.agency"})})})},wt=require("@tanstack/react-table"),yt=function({table:e,emptyMessage:n,onRowClicked:t,classes:s,renderAfter:i}){const o=(0,l.useCallback)(e=>()=>{t?.(e)},[t]),c=(0,l.useCallback)(e=>(0,a.jsx)(Da,{size:12,name:"asc"===e?"ArrowNarrowDown":"desc"==e?"ArrowNarrowUp":"Switch",className:"fill-current"}),[]),d=e.getRowModel().rows;return(0,a.jsxs)("div",{className:"space-y-8 l",children:[(0,a.jsx)("div",{className:"flow-root ",children:(0,a.jsx)("div",{className:"overflow-x-auto px-1",children:(0,a.jsx)("div",{className:"inline-block min-w-full py-2 align-middle",children:(0,a.jsxs)("div",{className:r()(s?.tableWrapper,"shadow ring-1 ring-black/5 rounded-md overflow-y-auto h-[300px] bg-white"),children:[(0,a.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 relative",children:[(0,a.jsx)("thead",{className:"bg-gray-50 sticky top-0 border-b",children:e.getHeaderGroups().map(e=>(0,a.jsx)("tr",{className:r()(s?.tr,s?.thr),children:e.headers.map(e=>(0,a.jsx)("th",{scope:"col",className:r()(s?.th,"px-1.5 ld:px-3 py-3 text-left text-xs font-semibold text-gray-500 whitespace-nowrap"),onClick:e.column.getToggleSortingHandler(),children:(0,a.jsxs)("div",{className:"flex items-center gap-x-1.5",children:[e.isPlaceholder?(0,a.jsx)("span",{className:r()(s?.thPlaceholder,"sr-only"),children:e.id}):(0,wt.flexRender)(e.column.columnDef.header,e.getContext()),e.column.getCanSort()&&c(e.column.getIsSorted())]})},e.id))},e.id))}),(0,a.jsx)("tbody",{className:"bg-white",children:d.map(e=>(0,a.jsx)("tr",{className:r()(s?.tr,s?.tbr),onClick:o(e.original),children:e.getVisibleCells().map(e=>(0,a.jsx)("td",{className:r()(s?.td,"whitespace-nowrap p-1.5 lg:px-3 lg:py-2 text-xs text-gray-500 ","border-b"),children:(0,wt.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id))})]}),!d.length&&(n||(0,a.jsx)("div",{className:"w-full py-12 font-semibold text-center text-xs",children:"No data to display!"}))]})})})}),i&&(0,a.jsx)("div",{children:i})]})},Ct=(e,n,a,t)=>{const r=e.getValue(n);return t({itemRank:r}),r.passed},Nt=function({data:e,columns:n,pageSize:t=1e3,renderAfter:r,...s}){const[i,o]=(0,l.useState)([]),[c,d]=(0,l.useState)([]),[u,h]=(0,l.useState)(""),[m,p]=(0,l.useState)({pageIndex:0,pageSize:t});(0,l.useEffect)(()=>{p(e=>({...e,pageSize:t}))},[t]);const g=(0,wt.useReactTable)({data:e,columns:n,filterFns:{fuzzy:Ct},state:{sorting:i,columnFilters:c,globalFilter:u,pagination:m},onSortingChange:o,onColumnFiltersChange:d,onGlobalFilterChange:h,onPaginationChange:p,globalFilterFn:Ct,getCoreRowModel:(0,wt.getCoreRowModel)(),getFilteredRowModel:(0,wt.getFilteredRowModel)(),getSortedRowModel:(0,wt.getSortedRowModel)(),getPaginationRowModel:(0,wt.getPaginationRowModel)(),getFacetedRowModel:(0,wt.getFacetedRowModel)(),getFacetedUniqueValues:(0,wt.getFacetedUniqueValues)(),getFacetedMinMaxValues:(0,wt.getFacetedMinMaxValues)()});return(0,a.jsx)(yt,{table:g,renderAfter:r?r(g):void 0,...s})},kt=function({placeholder:e,onChangeDropdown:n,items:t,queryFn:s,show:i,defaultValue:o,disabled:c,wrapperClassName:d}){const[u,h]=(0,l.useState)(t[o]),[m,p]=(0,l.useState)(""),[g,f]=(0,l.useState)(t?.slice(0,i||t?.length)||[]);return(0,l.useEffect)(()=>{""!==m&&f(s(t,m))},[m]),(0,l.useEffect)(()=>{f(t.slice(0,i||t?.length))},[t]),(0,l.useEffect)(()=>{h(t[o])},[o]),(0,a.jsx)("div",{className:r()("relative h-12",d,{"pointer-events-none opacity-70":c}),children:(0,a.jsxs)(Ia.Combobox,{value:u,onChange:e=>{n?.(e),h(e)},onClose:()=>p(""),children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(Ia.ComboboxInput,{placeholder:e,className:r()("w-full rounded-md border py-1.5 pr-8 pl-3 text-dark h-full shadow","focus:outline-none data-[focus]:outline-2 data-[focus]:-outline-offset-2 data-[focus]:outline-dark"),displayValue:e=>e?`${e?.label}`:"",onChange:e=>p(e.target.value)}),(0,a.jsx)(Ia.ComboboxButton,{className:"group absolute inset-y-0 right-0 px-2.5",children:(0,a.jsx)(Da,{name:"ChevronDown"})})]}),(0,a.jsxs)(Ia.ComboboxOptions,{className:"bg-white text-black border z-50 w-full absolute top-full left-0 shadow min-h-64 max-h-96 overflow-y-scroll divide divide-y",children:[!g.length&&(0,a.jsxs)("div",{className:"p-2 !bg-white !rounded-none !text-gray-400 space-y-3 flex flex-col items-center",children:[(0,a.jsx)(Da,{name:"Info"}),(0,a.jsx)("div",{children:"No Entries"})]}),g.map(e=>(0,a.jsx)(Ia.ComboboxOption,{value:e,children:(0,a.jsx)("div",{className:r()("grid hover:bg-gray-50 py-3 px-2 cursor-pointer",`grid-cols-${e.labels?.length||1}`),children:e.labels?.length?e.labels.map(e=>(0,a.jsx)("div",{children:e},e)):e.label})},e.id))]})]})})},Et=require("react-toastify"),St=e=>(0,Et.toast)(`Server error: ${e.response?.data?.message||e.message}`,{type:"error"}),Mt=e=>(0,Et.toast)(e,{type:"error"}),Ot=e=>(0,Et.toast)(e,{type:"success"}),Lt=e=>(0,Et.toast)(e,{type:"warning"}),qt=require("moment");var At=e.n(qt);const Dt=e=>At()(e).format("MMM DD, YYYY"),Pt=e=>At()(e).format("YYYY MMM DD HH:mm"),zt=(e,n)=>`${Pt(e)} - ${Pt(n)}`,Rt=e=>`${e.firstname} ${e.lastname}`,Tt=e=>Number(e).toFixed(2),Bt=(e,n)=>`${n?"€":""}${Number(e).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2})}`,Ht=e=>Number(e).toLocaleString("de-DE",{minimumFractionDigits:0,maximumFractionDigits:0}),It=e=>At()(e).format("MMM DD"),$t=[{label:"Headshot Front (Polas)",id:"polas_headshot_front"},{label:"Headshot Side (Polas)",id:"polas_headshot_side"},{label:"Mid-Length Shot (Polas)",id:"polas_mid_length"},{label:"Three-Quarter Shot (Polas)",id:"polas_three_quarter"},{label:"ProfileInfo Shot (Polas)",id:"polas_profile"},{label:"Full Body Shot (Polas)",id:"polas_full_body"},{label:"Portrait",id:"portrait"},{label:"Full Body",id:"full_body"},{label:"E-Com",id:"ecom"},{label:"Beauty",id:"beauty"},{label:"Sport",id:"sport"},{label:"Fashion",id:"fashion"},{label:"Miscellaneous",id:"miscellaneous"}],Ft=[{label:"Client Hostess A",id:"CLIENT_HOSTESS_A"},{label:"Client Showroom A",id:"CLIENT_SHOWROOM_A"}],Wt=[{label:"Black",id:"black"},{label:"Brown",id:"brown"},{label:"Hazel",id:"hazel"},{label:"Green",id:"green"},{label:"Blue",id:"blue"},{label:"Gray",id:"gray"},{label:"Amber",id:"amber"},{label:"Violet",id:"violet"}],Ut=[{label:"Black",id:"black"},{label:"Blonde",id:"blonde"},{label:"Brown",id:"brown"},{label:"Red",id:"red"},{label:"Auburn",id:"auburn"},{label:"Gray",id:"gray"},{label:"White",id:"white"},{label:"Blue",id:"blue"},{label:"Pink",id:"pink"},{label:"Green",id:"green"},{label:"Purple",id:"purple"},{label:"Multicolored",id:"multicolored"}],Vt=[{label:"Dienstleistervertrag Hostess Standard",id:"REQUEST_HOSTESS_A"},{label:"Dienstleistervertrag Model Standard",id:"REQUEST_MODEL_A"}],_t=[{label:"Freelance-Model Registration",id:"REGISTRATION_MODEL_A",de:"Freelance-Model Vertrag"}],Gt=[{label:"Deutschland",id:"DE"},{label:"Österreich",id:"AT"},{label:"Schweiz",id:"CH"},{label:"Italien",id:"IT"},{label:"Frankreich",id:"FR"},{label:"Spanien",id:"ES"}],Kt=[{label:"Model",id:"Model"},{label:"Hostess",id:"Hostess"},{label:"Promoter",id:"Promoter"}],Yt=[{label:"Female",id:"Female"},{label:"Male",id:"Male"}],Zt=[{label:"Model",id:"Model"},{label:"Hostess",id:"Hostess"},{label:"Promoter",id:"Promoter"}],Jt=[{label:"Berlin",id:"berlin"},{label:"Düsseldorf",id:"düsseldorf"},{label:"Hamburg",id:"hamburg"},{label:"München",id:"münchen"},{label:"Frankfurt",id:"frankfurt"},{label:"Köln",id:"köln"},{label:"Stuttgart",id:"stuttgart"},{label:"Leipzig",id:"leipzig"},{label:"Nürnberg",id:"nürnberg"},{label:"Hannover",id:"hannover"},{label:"Essen",id:"essen"},{label:"Dortmund",id:"dortmund"}],Qt=[{label:"Deutsch",id:"de"},{label:"Englisch",id:"en"},{label:"Französisch",id:"fr"},{label:"Spanisch",id:"es"},{label:"Italienisch",id:"it"},{label:"Niederländisch",id:"nl"},{label:"Polnisch",id:"pl"},{label:"Türkisch",id:"tr"},{label:"Russisch",id:"ru"},{label:"Arabisch",id:"ar"},{label:"Chinesisch",id:"zh"},{label:"Japanisch",id:"ja"},{label:"Koreanisch",id:"ko"},{label:"Griechisch",id:"el"},{label:"Portugiesisch",id:"pt"}],Xt=/^[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/,er=({nav:e,selectedPath:n,close:t})=>{const s=Object.keys(e);return(0,a.jsx)("div",{className:"py-6",children:(0,a.jsx)("div",{className:"space-y-24",children:s.map(s=>(s=>(0,a.jsx)("ul",{className:"space-y-1.5",children:e[s].map(e=>(0,a.jsx)("li",{onClick:()=>t?.(),className:r()("hover:bg-gray-50 rounded-lg",{"bg-gray-100":n===e.href}),children:(0,a.jsxs)(i(),{href:e.href,className:"flex space-x-3 items-center p-2",children:[(0,a.jsx)(Da,{name:e.icon,className:r()("text-gray-500",n===e.href?"!text-primary":"")}),(0,a.jsx)("span",{className:r()("text-gray-800 font-semibold",n===e.href?"!text-primary":""),children:e.name})]})},e.name))},s))(s))})})};function nr({children:e,open:n,setOpen:t,footer:r}){return(0,a.jsxs)(Ia.Dialog,{open:n,onClose:t,className:"relative z-50 xl:hidden",children:[(0,a.jsx)(Ia.DialogBackdrop,{transition:!0,className:"fixed inset-0 bg-white/80 transition-opacity duration-300 ease-linear data-[closed]:opacity-0"}),(0,a.jsx)("div",{className:"fixed inset-0 flex ",children:(0,a.jsxs)(Ia.DialogPanel,{transition:!0,className:"relative bg-white mr-16 flex w-full max-w-md flex-1 transform transition duration-300 ease-in-out data-[closed]:-translate-x-full",children:[(0,a.jsx)(Ia.TransitionChild,{children:(0,a.jsx)("div",{className:"absolute left-full top-0 flex w-16 h-16 justify-center duration-300 ease-in-out data-[closed]:opacity-0",children:(0,a.jsxs)("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 p-2.5",children:[(0,a.jsx)("span",{className:"sr-only",children:"Close sidebar"}),(0,a.jsx)(Da,{name:"Close","aria-hidden":"true",className:"size-6"})]})})}),(0,a.jsxs)("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto",children:[(0,a.jsx)("div",{className:"flex h-16 shrink-0 items-center p-6",children:(0,a.jsx)(ct,{})}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col px-8 pb-6",children:[(0,a.jsx)("div",{className:"flex-1",children:e}),r&&(0,a.jsx)("div",{className:"mt-auto border-t border-gray-200 pt-4",children:r})]})]})]})})]})}const ar=(e,n)=>{const a=[],t=(e,n)=>{for(const r of e)if(n===r.href||n.startsWith(r.href)&&"/"!==r.href)return a.push(r),r.children&&t(r.children,n),!0;return!1};return Object.values(e).forEach(e=>{t(e,n)}),a};function tr({children:e,nav:n,contentClassName:t,currentPath:s,sidebarFooter:i}){const[o,c]=(0,l.useState)(!1),d=ar(n,s),[u]=d;return(0,a.jsxs)("div",{className:"w-screen",children:[(0,a.jsx)(nr,{open:o,setOpen:c,footer:i,children:(0,a.jsx)(er,{close:()=>c(!1),nav:n,selectedPath:u?.href||""})}),(0,a.jsxs)("div",{className:"min-h-screen xl:max-h-screen flex flex-col",children:[(0,a.jsx)("div",{className:"w-full xl:hidden sticky top-0 left-0 right-0 z-40 h-16 border-b bg-white flex items-center gap-x-6 shrink-0 px-3",children:(0,a.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"-m-2.5 p-2.5",children:[(0,a.jsx)("span",{className:"sr-only",children:"Open sidebar"}),(0,a.jsx)(Da,{name:"Menu","aria-hidden":"true",className:"size-5"})]})}),(0,a.jsxs)("div",{className:"flex w-full xl:max-w-8xl xl:mx-auto flex-grow xl:border-r xl:border-l",children:[(0,a.jsx)("div",{className:"hidden xl:flex xl:w-1/6 xl:flex-col",children:(0,a.jsxs)("div",{className:"sticky top-0 flex h-screen flex-col gap-y-5 overflow-y-auto border-r bg-white px-6",children:[(0,a.jsx)("div",{className:"flex h-16 shrink-0 items-center",children:(0,a.jsx)(ct,{})}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,a.jsx)(er,{selectedPath:u?.href||"",nav:n}),i&&(0,a.jsx)("div",{className:"mt-auto border-t border-gray-200 pt-4 pb-6",children:i})]})]})}),(0,a.jsxs)("main",{className:"bg-white w-full xl:w-5/6 flex flex-col",children:[(0,a.jsx)("div",{className:"sticky top-0 py-3 flex items-center space-x-2 bg-white border-b px-3 md:px-6 z-30",children:(0,a.jsx)("h1",{className:"flex space-x-1.5",children:d.map((e,n)=>(0,a.jsxs)("div",{className:"flex space-x-1.5",children:[(0,a.jsx)("span",{children:e.name}),d.length-1!==n&&(0,a.jsx)("span",{children:"»"})]},e.name))})}),(0,a.jsx)("div",{className:r()(t,"w-full p-3 xl:p-6 flex-grow flex flex-col overflow-y-scroll no-scrollbar"),children:e})]})]}),(0,a.jsx)(jt,{})]})]})}const rr=({children:e,seo:n,name:t})=>(0,a.jsxs)("div",{className:"bg-white h-screen",children:[n,(0,a.jsxs)("div",{className:"py-12 lg:py-24 space-y-12 w-full sm:max-w-md mx-auto p-3",children:[(0,a.jsxs)("div",{className:"flex justify-center items-center flex-col space-y-2",children:[(0,a.jsx)(ct,{size:150}),(0,a.jsx)("div",{className:" text-lg text-white font-bold bg-black p-2 rounded-full px-3",children:t})]}),e]})]}),sr=(e,n)=>{const a=e.split(/[?#]/)[0].replace(/\/$/,"")||"/";return"/"===n?"/"===a:a===n||a.startsWith(`${n}/`)};function ir(e){const n=(e,a)=>e.flatMap(e=>[{...e,group:a},...n(e.children||[],a)]);return Object.entries(e).flatMap(([e,a])=>n(a,e))}function lr(e,n){return ir(e).filter(e=>sr(n,e.href)).sort((e,n)=>n.href.length-e.href.length)[0]}const or={navigation:"Main navigation",secondaryNavigation:"More pages",openNavigation:"Open navigation",closeNavigation:"Close navigation",skipToContent:"Skip to content",breadcrumb:"Breadcrumb",workspace:"Workspace",overview:"Overview",details:"Details",search:"Search workspace",jumpTo:"Jump to…",searchTitle:"Navigate workspace",searchInput:"Search pages",searchPlaceholder:"Where would you like to go?",closeSearch:"Close search",pages:"Pages",noResults:"No matching pages. Try a different name.",navigate:"to navigate",open:"to open",close:"to close",account:"Account menu",signOut:"Sign out"};function cr({nav:e,selectedPath:n,close:t,label:r="Main navigation",showGroupLabels:s=!0}){return(0,a.jsx)("nav",{"aria-label":r,className:"ui-nav",children:Object.entries(e).map(([e,r])=>(0,a.jsxs)("div",{className:"ui-nav-group",children:[s&&(0,a.jsx)("p",{className:"ui-nav-label",children:e}),(0,a.jsx)("ul",{children:r.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)(i(),{href:e.href,onClick:t,className:"ui-nav-link","aria-current":sr(n,e.href)?"page":void 0,children:[(0,a.jsx)(Da,{name:e.icon,size:19,"aria-hidden":"true"}),(0,a.jsx)("span",{children:e.name}),sr(n,e.href)&&(0,a.jsx)("span",{className:"ui-nav-dot"})]})},e.href))})]},e))})}function dr({nav:e,open:n,onClose:t,onNavigate:r,labels:s}){const i={...or,...s},o=(0,l.useId)(),[c,d]=(0,l.useState)(""),[u,h]=(0,l.useState)(0);(0,l.useEffect)(()=>{n&&(d(""),h(0))},[n]);const m=ir(e).filter(e=>`${e.name} ${e.group}`.toLowerCase().includes(c.trim().toLowerCase())),p=e=>{t(),r(e)};return(0,a.jsxs)(Ia.Dialog,{open:n,onClose:t,className:"ui-command-dialog",children:[(0,a.jsx)(Ia.DialogBackdrop,{className:"ui-dialog-backdrop"}),(0,a.jsx)("div",{className:"ui-command-position",children:(0,a.jsxs)(Ia.DialogPanel,{className:"ui-command-panel",children:[(0,a.jsx)(Ia.DialogTitle,{className:"sr-only",children:i.searchTitle}),(0,a.jsxs)("div",{className:"ui-command-search",children:[(0,a.jsx)(Da,{name:"Search",size:20,"aria-hidden":"true"}),(0,a.jsx)("input",{autoFocus:!0,"aria-label":i.searchInput,placeholder:i.searchPlaceholder,role:"combobox","aria-autocomplete":"list","aria-expanded":"true","aria-controls":`${o}-results`,"aria-activedescendant":m.length?`${o}-${u}`:void 0,value:c,onChange:e=>{d(e.target.value),h(0)},onKeyDown:e=>{if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();const n=(u+("ArrowDown"===e.key?1:-1)+m.length)%(m.length||1);h(n),document.getElementById(`${o}-${n}`)?.scrollIntoView({block:"nearest"})}"Enter"===e.key&&m[u]&&(e.preventDefault(),p(m[u].href))}}),(0,a.jsx)("button",{type:"button",onClick:t,"aria-label":i.closeSearch,className:"ui-icon-button",children:(0,a.jsx)(Da,{name:"Close",size:18})})]}),(0,a.jsx)("p",{className:"ui-command-label",children:i.pages}),(0,a.jsx)("ul",{id:`${o}-results`,role:"listbox","aria-label":i.pages,className:"ui-command-results",children:m.map((e,n)=>(0,a.jsxs)("li",{id:`${o}-${n}`,role:"option","aria-selected":u===n,onMouseMove:()=>h(n),onClick:()=>p(e.href),children:[(0,a.jsx)(Da,{name:e.icon,size:19,"aria-hidden":"true"}),(0,a.jsx)("span",{children:e.name}),(0,a.jsx)("small",{children:e.group}),(0,a.jsx)(Da,{name:"ArrowRight",size:16,"aria-hidden":"true"})]},e.href))}),!m.length&&(0,a.jsx)("p",{className:"ui-command-empty",children:i.noResults}),(0,a.jsxs)("div",{className:"ui-command-footer",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("kbd",{children:"↑"})," ",(0,a.jsx)("kbd",{children:"↓"})," ",i.navigate]}),(0,a.jsxs)("span",{children:[(0,a.jsx)("kbd",{children:"↵"})," ",i.open]}),(0,a.jsxs)("span",{children:[(0,a.jsx)("kbd",{children:"esc"})," ",i.close]})]})]})})]})}function ur({children:e,nav:n,currentPath:t,navigationKey:r=t,busy:s=!1,onNavigate:o,account:c,workspaceName:d,workspaceDescription:u,brand:h,brandSubtitle:m="IT’S YOU",homeHref:p="/",contentClassName:g="",sidebarFooter:f,sidebarBottomNav:v={},sidebarSignOut:x=!1,footer:b,headerActions:j,labels:w}){const y={...or,...w},[C,N]=(0,l.useState)(!1),[k,E]=(0,l.useState)(!1),S=(0,l.useId)(),M={...n};for(const[e,n]of Object.entries(v))M[e]=[...M[e]||[],...n];const O=lr(M,t),L=Object.values(v).some(e=>e.length>0),q=x&&!!c?.onSignOut,A=L||q,D=A?" ui-sidebar--with-actions":"",P=c?.name.split(" ").filter(Boolean).map(e=>e[0]).slice(0,2).join("")||"iy.";(0,l.useEffect)(()=>{const e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),N(!1),E(e=>!e))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,l.useEffect)(()=>{N(!1),E(!1)},[r]);const z=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"ui-sidebar-brand",children:h||(0,a.jsxs)(i(),{href:p,"aria-label":`IT’S YOU · ${y.overview}`,className:"ui-brand",children:[(0,a.jsx)(ct,{size:38}),(0,a.jsxs)("span",{children:["IT’S YOU",(0,a.jsx)("span",{children:m})]})]})}),(0,a.jsxs)("div",{className:"ui-sidebar-scroll",children:[(0,a.jsxs)("div",{className:"ui-workspace-label",children:[(0,a.jsx)("span",{className:"ui-workspace-mark",children:"iy."}),(0,a.jsxs)("div",{children:[d,u&&(0,a.jsx)("small",{children:u})]})]}),(0,a.jsx)(cr,{nav:n,selectedPath:t,close:()=>N(!1),label:y.navigation})]}),A?(0,a.jsxs)("div",{className:"ui-sidebar-actions",children:[f&&(0,a.jsx)("div",{className:"ui-sidebar-caption",children:f}),L&&(0,a.jsx)(cr,{nav:v,selectedPath:t,close:()=>N(!1),label:y.secondaryNavigation,showGroupLabels:!1}),q&&(0,a.jsxs)("button",{type:"button",className:"ui-nav-link ui-sidebar-sign-out",onClick:()=>{N(!1),c?.onSignOut?.()},children:[(0,a.jsx)(Da,{name:"Switch",size:19,"aria-hidden":"true"}),(0,a.jsx)("span",{children:y.signOut})]})]}):f&&(0,a.jsx)("div",{className:"ui-sidebar-bottom",children:f})]});return(0,a.jsxs)("div",{className:"ui-shell",children:[(0,a.jsx)("a",{href:`#${S}`,className:"ui-skip-link",children:y.skipToContent}),(0,a.jsx)("aside",{className:`ui-sidebar${D}`,children:z}),(0,a.jsxs)(Ia.Dialog,{open:C,onClose:N,className:"ui-mobile-dialog",children:[(0,a.jsx)(Ia.DialogBackdrop,{className:"ui-dialog-backdrop"}),(0,a.jsxs)(Ia.DialogPanel,{className:`ui-mobile-sidebar${D}`,children:[(0,a.jsx)(Ia.DialogTitle,{className:"sr-only",children:y.navigation}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button ui-mobile-close",onClick:()=>N(!1),"aria-label":y.closeNavigation,children:(0,a.jsx)(Da,{name:"Close",size:18})}),z]})]}),(0,a.jsxs)("div",{className:"ui-workspace",children:[(0,a.jsxs)("header",{className:"ui-topbar",children:[(0,a.jsx)("div",{className:"ui-update-progress","data-active":s,"aria-hidden":"true"}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button ui-menu-trigger",onClick:()=>N(!0),"aria-label":y.openNavigation,children:(0,a.jsx)(Da,{name:"Menu",size:20})}),(0,a.jsxs)("nav",{"aria-label":y.breadcrumb,className:"ui-breadcrumb",children:[(0,a.jsx)("span",{children:O?.group||y.workspace}),(0,a.jsx)("span",{"aria-hidden":"true",children:"/"}),(0,a.jsx)(i(),{href:O?.href||p,children:O?.name||y.overview}),O&&t!==O.href&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{"aria-hidden":"true",children:"/"}),(0,a.jsx)("span",{className:"ui-breadcrumb-detail",children:y.details})]})]}),(0,a.jsxs)("div",{className:"ui-topbar-actions",children:[j,(0,a.jsxs)("button",{type:"button",className:"ui-search-trigger",onClick:()=>E(!0),"aria-label":y.search,"aria-keyshortcuts":"Meta+K Control+K",children:[(0,a.jsx)(Da,{name:"Search",size:17}),(0,a.jsx)("span",{children:y.jumpTo}),(0,a.jsx)("kbd",{children:"⌘ K"})]}),c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"ui-topbar-divider"}),(0,a.jsxs)(Ia.Menu,{children:[(0,a.jsxs)(Ia.MenuButton,{className:"ui-account-button","aria-label":y.account,children:[(0,a.jsx)("span",{className:"ui-avatar",children:P}),(0,a.jsx)(Da,{name:"ChevronDown",size:14})]}),(0,a.jsxs)(Ia.MenuItems,{anchor:"bottom end",className:"ui-account-menu",children:[(0,a.jsxs)("div",{className:"ui-account-info",children:[(0,a.jsx)("strong",{children:c.name}),c.email&&(0,a.jsx)("span",{children:c.email}),c.role&&(0,a.jsx)("small",{children:c.role})]}),c.onSignOut&&(0,a.jsx)(Ia.MenuItem,{children:(0,a.jsxs)("button",{type:"button",onClick:c.onSignOut,children:[y.signOut,(0,a.jsx)(Da,{name:"ArrowRight",size:16})]})})]})]})]})]})]}),(0,a.jsx)("main",{id:S,tabIndex:-1,className:`ui-content ${g}`,children:e}),b&&(0,a.jsx)("footer",{className:"ui-footer",children:b})]}),(0,a.jsx)(dr,{nav:M,open:k,onClose:()=>E(!1),onNavigate:o,labels:y})]})}function hr({children:e,workspaceLabel:n,eyebrow:t,title:r,description:s,brand:i,formHeader:l,storyFooter:o,footer:c}){return(0,a.jsxs)("div",{className:"ui-login",children:[(0,a.jsxs)("aside",{className:"ui-login-story",children:[(0,a.jsxs)("div",{className:"ui-login-logo",children:[i||(0,a.jsx)(ct,{mode:"white",size:60}),(0,a.jsx)("span",{children:n})]}),(0,a.jsxs)("div",{className:"ui-login-message",children:[t&&(0,a.jsx)("p",{children:t}),(0,a.jsx)("h1",{children:r}),s&&(0,a.jsx)("div",{children:s})]}),o&&(0,a.jsx)("div",{className:"ui-login-story-footer",children:o})]}),(0,a.jsxs)("main",{className:"ui-login-main",children:[(0,a.jsxs)("div",{className:"ui-login-card",children:[l,e]}),c&&(0,a.jsx)("div",{className:"ui-login-footer",children:c})]})]})}function mr({label:e="Notifications",unreadCount:n,children:t}){return(0,a.jsx)(Ia.Popover,{children:({close:r})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Ia.PopoverButton,{className:"ui-icon-button ui-notification-trigger","aria-label":`${e}${n?` (${n})`:""}`,children:[(0,a.jsx)(Da,{name:"Bell",size:20}),n>0&&(0,a.jsx)("span",{"aria-hidden":"true",className:"ui-notification-count",children:n>99?"99+":n})]}),(0,a.jsx)(Ia.PopoverPanel,{anchor:"bottom end",className:"ui-notification-menu","aria-label":e,children:t(r)})]})})}function pr({title:e,subtitle:n,actions:t,onBack:r,backLabel:s="Back",eyebrow:i}){return(0,a.jsxs)("div",{className:"ui-page-header",children:[r&&(0,a.jsxs)("button",{type:"button",onClick:r,className:"ui-back-link",children:[(0,a.jsx)(Da,{name:"ArrowRight",size:16,className:"rotate-180"}),s]}),(0,a.jsxs)("div",{className:"ui-page-heading",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[i&&(0,a.jsx)("p",{className:"ui-eyebrow",children:i}),(0,a.jsx)("h1",{children:e}),n&&(0,a.jsx)("div",{className:"ui-page-description",children:n})]}),t&&(0,a.jsx)("div",{className:"ui-page-actions",children:t})]})]})}function gr({title:e,description:n,actions:t,children:s,className:i,contentClassName:o,collapsible:c,collapseLabel:d="Toggle section",defaultCollapsed:u=!1,unpadded:h=!1,...m}){const[p,g]=(0,l.useState)(u),f=(0,l.useId)();return(0,a.jsxs)("section",{...m,className:r()("ui-panel",i),children:[(e||n||t||c)&&(0,a.jsxs)("div",{className:"ui-panel-header",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:["string"==typeof e?(0,a.jsx)("h2",{children:e}):e,n&&(0,a.jsx)("p",{className:"ui-panel-description",children:n})]}),t,c&&(0,a.jsx)("button",{type:"button",className:"ui-icon-button",onClick:()=>g(e=>!e),"aria-expanded":!p,"aria-controls":f,"aria-label":d,children:(0,a.jsx)(Da,{name:"ChevronDown",size:18,className:p?"":"rotate-180"})})]}),(0,a.jsx)("div",{id:f,hidden:c&&p,className:r()(!h&&"ui-panel-content",o),children:s})]})}function fr({children:e,tone:n="neutral",dot:t=!0,className:s,...i}){return(0,a.jsxs)("span",{...i,className:r()("ui-status",s),"data-tone":n,children:[t&&(0,a.jsx)("span",{"aria-hidden":"true",className:"ui-status-dot"}),e]})}function vr({className:e,...n}){return(0,a.jsx)("div",{"aria-hidden":"true",...n,className:r()("ui-skeleton",e)})}function xr({title:e,description:n,children:t,action:s,icon:i="Inbox",loading:l,loadingLabel:o="Loading…",className:c}){return(0,a.jsx)("div",{className:r()("ui-empty-state",c),role:"status","aria-busy":l,children:l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ra,{size:24,color:"dark"}),(0,a.jsx)("p",{children:o})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"ui-empty-check",children:(0,a.jsx)(Da,{name:i,size:24,"aria-hidden":"true"})}),e&&(0,a.jsx)("strong",{children:e}),(n||t)&&(0,a.jsx)("div",{children:n||t}),s]})})}function br({children:e,action:n,className:t,tone:s="neutral"}){return(0,a.jsxs)("div",{className:r()("ui-inline-error",t),role:"error"===s?"alert":"status",children:[(0,a.jsx)("div",{children:e}),n]})}function jr({label:e="Opening your workspace…"}){return(0,a.jsxs)("div",{className:"ui-session-loading",role:"status",children:[(0,a.jsx)("span",{className:"ui-loading-mark","aria-hidden":"true",children:"iy."}),(0,a.jsx)("p",{children:e})]})}const wr="ui-input";function yr({label:e,hint:n,error:t,className:s,children:i}){const o=(0,l.useId)(),c=(0,l.isValidElement)(i)?i:null,d=c?.props.id||o,u=`${d}-message`;return(0,a.jsxs)("div",{className:r()("ui-form-field",s),children:[(0,a.jsx)("label",{htmlFor:d,className:"ui-field-label",children:e}),c?(0,l.cloneElement)(c,{id:d,"aria-invalid":!!t||c.props["aria-invalid"],"aria-describedby":[c.props["aria-describedby"],t||n?u:""].filter(Boolean).join(" ")||void 0}):i,t?(0,a.jsx)("span",{id:u,className:"ui-field-error",role:"alert",children:t}):n&&(0,a.jsx)("span",{id:u,className:"ui-field-hint",children:n})]})}const Cr=(0,l.forwardRef)(function({className:e,...n},t){return(0,a.jsx)("input",{...n,ref:t,className:r()(wr,e)})}),Nr=(0,l.forwardRef)(function({items:e,placeholder:n,className:t,...s},i){return(0,a.jsxs)("select",{...s,ref:i,className:r()(wr,t),children:[n&&(0,a.jsx)("option",{value:"",children:n}),e.map(e=>(0,a.jsx)("option",{value:e.id,children:e.label},e.id))]})});function kr({id:e,title:n,description:t,children:r}){return(0,a.jsx)(gr,{id:e,className:"ui-section-anchor",title:n,description:t,contentClassName:"ui-form-grid",children:r})}const Er={searchLabel:"Fragen und Antworten durchsuchen",searchPlaceholder:"Alle Themen durchsuchen",clearSearch:"Suche löschen",topics:"Themen",allTopics:"Alle Themen",chooseTopic:"Thema auswählen",answers:e=>`${e} ${1===e?"Antwort":"Antworten"}`,resultsFor:e=>`für „${e}“ in allen Themen`,questions:e=>`${e} ${1===e?"Frage":"Fragen"}`,emptyTitle:"Keine passende Antwort gefunden",emptyDescription:"Ein kürzeres Stichwort oder ein anderes Thema hilft.",resetSearch:"Suche zurücksetzen"},Sr=e=>e.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/ß/g,"ss"),Mr=e=>null==e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(Mr).join(" "):"object"==typeof e&&"props"in e?Mr(e.props.children):"";function Or({topics:e,eyebrow:n,title:t,subtitle:r,support:s,labels:i,initialTopic:o}){const c={...Er,...i},d=(0,l.useId)(),[u,h]=(0,l.useState)(""),[m,p]=(0,l.useState)(o||e[0]?.id||"all"),[g,f]=(0,l.useState)(null),v=(0,l.useRef)(null),x=!!u.trim(),b=e.reduce((e,n)=>e+n.items.length,0),j=(0,l.useMemo)(()=>{const n=Sr(u).trim().split(/\s+/).filter(Boolean);return e.filter(e=>n.length||"all"===m||e.id===m).map(e=>({...e,items:e.items.map((n,a)=>({...n,id:`${e.id}-${a}`})).filter(a=>{const t=Sr(`${e.title} ${a.q} ${Mr(a.a)} ${a.keywords||""}`);return n.every(e=>t.includes(e))})})).filter(e=>e.items.length)},[e,u,m]),w=j.reduce((e,n)=>e+n.items.length,0),y=x?"all":m,C=e=>{p(e),h(""),f(null)},N=()=>{h(""),f(null),v.current?.focus()};return(0,a.jsxs)("div",{className:"ui-faq",children:[(0,a.jsx)(pr,{eyebrow:n,title:t,subtitle:r}),(0,a.jsxs)("div",{className:"ui-faq-search",children:[(0,a.jsx)(Za,{ref:v,type:"search",icon:"Search","aria-label":c.searchLabel,placeholder:c.searchPlaceholder,value:u,maxLength:100,hideError:!0,onChange:e=>{h(e.target.value),f(null)},wrapperClassName:"ui-faq-search-input"}),x&&(0,a.jsx)(Ta,{type:"button",variant:"ghost",size:"sm",onClick:N,wrapperClassName:"ui-faq-search-clear",children:c.clearSearch})]}),(0,a.jsxs)("div",{className:"ui-faq-layout",children:[(0,a.jsx)("aside",{className:"ui-faq-sidebar",children:(0,a.jsxs)("nav",{"aria-label":c.topics,className:"ui-faq-topics",children:[(0,a.jsx)("h2",{children:c.topics}),(0,a.jsxs)("button",{type:"button",className:"ui-faq-topic","aria-pressed":"all"===y,onClick:()=>C("all"),children:[(0,a.jsx)(Da,{name:"Search",size:17,"aria-hidden":"true"}),(0,a.jsx)("span",{children:c.allTopics}),(0,a.jsx)("small",{children:b})]}),e.map(e=>(0,a.jsxs)("button",{type:"button",className:"ui-faq-topic","aria-pressed":y===e.id,onClick:()=>C(e.id),children:[(0,a.jsx)(Da,{name:e.icon||"Help",size:17,"aria-hidden":"true"}),(0,a.jsx)("span",{children:e.title}),(0,a.jsx)("small",{children:e.items.length})]},e.id))]})}),(0,a.jsxs)("div",{className:"ui-faq-content",children:[(0,a.jsxs)("div",{className:"ui-faq-mobile-topic",children:[(0,a.jsx)("label",{htmlFor:`${d}-topic`,children:c.chooseTopic}),(0,a.jsx)(Nr,{id:`${d}-topic`,value:y,onChange:e=>C(e.target.value),items:[{id:"all",label:c.allTopics},...e.map(e=>({id:e.id,label:e.title}))]})]}),x&&(0,a.jsxs)("div",{className:"ui-faq-results",role:"status","aria-live":"polite",children:[(0,a.jsx)("strong",{children:c.answers(w)}),(0,a.jsx)("span",{children:c.resultsFor(u.trim())})]}),j.length?j.map(e=>(0,a.jsxs)("section",{"aria-labelledby":`${d}-${e.id}-title`,className:"ui-faq-section",children:[(0,a.jsxs)("div",{className:"ui-faq-section-header",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{id:`${d}-${e.id}-title`,children:e.title}),(0,a.jsx)("p",{children:e.intro})]}),(0,a.jsx)("span",{children:c.questions(e.items.length)})]}),(0,a.jsx)(gr,{unpadded:!0,children:e.items.map(e=>{const n=g===e.id;return(0,a.jsxs)("div",{className:"ui-faq-question","data-open":n,children:[(0,a.jsx)("h3",{children:(0,a.jsxs)("button",{type:"button",id:`${d}-trigger-${e.id}`,"aria-expanded":n,"aria-controls":`${d}-answer-${e.id}`,onClick:()=>f(n?null:e.id),className:"ui-faq-question-button",children:[(0,a.jsx)("span",{children:e.q}),(0,a.jsx)(Da,{name:n?"Minus":"Plus",size:18,"aria-hidden":"true"})]})}),(0,a.jsx)("div",{id:`${d}-answer-${e.id}`,role:"region","aria-labelledby":`${d}-trigger-${e.id}`,hidden:!n,className:"ui-faq-answer",children:e.a})]},e.id)})})]},e.id)):(0,a.jsx)(gr,{unpadded:!0,children:(0,a.jsx)(xr,{icon:"Search",title:c.emptyTitle,description:c.emptyDescription,action:(0,a.jsx)(Ta,{type:"button",variant:"secondary",onClick:N,children:c.resetSearch})})})]})]}),s&&(0,a.jsxs)("div",{className:"ui-faq-support",children:[(0,a.jsx)("span",{className:"ui-faq-support-icon",children:(0,a.jsx)(Da,{name:s.icon||"MessageSmile",size:21,"aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"ui-faq-support-copy",children:[(0,a.jsx)("h2",{children:s.title}),(0,a.jsx)("p",{children:s.description})]}),(0,a.jsx)("div",{className:"ui-faq-support-actions",children:s.actions})]})]})}function Lr({label:e,value:n,options:t,onChange:s,variant:i="segmented",className:l}){return(0,a.jsx)("div",{role:"group","aria-label":e,className:r()("ui-filter-tabs","underline"===i&&"ui-filter-tabs-underline",l),children:t.map(e=>(0,a.jsxs)("button",{type:"button",disabled:e.disabled,className:"ui-filter-chip","aria-pressed":n===e.value,onClick:()=>s(e.value),children:[e.label," ",void 0!==e.count&&(0,a.jsx)("span",{className:"ui-content-tab-count",children:e.count})]},e.value))})}function qr({page:e,pageSize:n,total:t,totalPages:r,onPageChange:s,disabled:i,noun:l="results",previousLabel:o="Previous page",nextLabel:c="Next page",rangeLabel:d,pageLabel:u}){const h=Math.max(1,n),m=Math.max(0,t),p=Math.max(1,r||Math.ceil(m/h)),g=Math.min(Math.max(1,e),p),f=m?(g-1)*h+1:0,v=Math.min(g*h,m);return(0,a.jsxs)("div",{className:"ui-table-pagination",children:[(0,a.jsx)("span",{children:d?d(f,v,m):`${f}–${v} of ${m} ${l}`}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{type:"button",disabled:i||g<=1,onClick:()=>s(g-1),"aria-label":o,children:(0,a.jsx)(Da,{name:"ChevronDown",size:15,className:"rotate-90"})}),(0,a.jsx)("span",{"aria-live":"polite",children:u?u(g,p):`Page ${g} of ${p}`}),(0,a.jsx)("button",{type:"button",disabled:i||g>=p,onClick:()=>s(g+1),"aria-label":c,children:(0,a.jsx)(Da,{name:"ChevronDown",size:15,className:"-rotate-90"})})]})]})}function Ar({label:e,value:n,prefix:t,description:r,icon:s,href:l,loading:o,unavailable:c,linkLabel:d}){const u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"ui-stat-top",children:[(0,a.jsx)("span",{children:e}),s&&(0,a.jsx)(Da,{name:s,size:19,"aria-hidden":"true"})]}),(0,a.jsx)("div",{className:"ui-stat-value",children:o?(0,a.jsx)(vr,{className:"ui-stat-skeleton"}):c?"—":(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)("span",{className:"ui-stat-currency",children:t}),n]})}),(0,a.jsxs)("div",{className:"ui-stat-bottom",children:[(0,a.jsx)("span",{children:r}),l&&(0,a.jsx)(Da,{name:"ArrowRight",size:16,"aria-hidden":"true"})]})]});return l?(0,a.jsx)(i(),{href:l,className:"ui-stat-card","aria-label":d,"aria-busy":o,children:u}):(0,a.jsx)("div",{className:"ui-stat-card","aria-busy":o,children:u})}function Dr({children:e,loading:n,updating:t,error:r,hasData:s,onRetry:i,skeleton:l,locale:o="en",errorTitle:c,minHeight:d=240,className:u=""}){const h="de"===o?"Erneut versuchen":"Try again",m=c||("de"===o?"Daten konnten nicht geladen werden":"Unable to load this content");return(0,a.jsxs)("div",{className:`ui-data-region ${u}`,style:{minHeight:d},"aria-busy":!!n||!!t,children:[n&&!s?(0,a.jsxs)("div",{role:"status",children:[(0,a.jsx)("span",{className:"sr-only",children:"de"===o?"Wird geladen…":"Loading…"}),l||(0,a.jsx)(Pr,{})]}):r&&!s?(0,a.jsx)(xr,{title:m,action:i&&(0,a.jsx)(Ta,{variant:"secondary",onClick:i,children:h})}):e,(0,a.jsx)("div",{className:"ui-update-progress",style:{margin:0},"data-active":!!t,"aria-hidden":"true"}),r&&s&&(0,a.jsxs)("div",{className:"ui-refresh-notice",role:"status",children:[(0,a.jsx)("span",{children:"de"===o?"Aktualisierung fehlgeschlagen. Der letzte geladene Stand bleibt sichtbar.":"Couldn’t refresh. Showing the last loaded version."}),i&&(0,a.jsx)("button",{type:"button",onClick:i,disabled:t,children:h})]})]})}function Pr({rows:e=5,rowHeight:n=80}){return(0,a.jsx)("div",{className:"ui-list-skeleton","aria-hidden":"true",children:Array.from({length:e},(e,t)=>(0,a.jsxs)("div",{className:"ui-list-skeleton-row",style:{minHeight:n},children:[(0,a.jsx)(vr,{className:"ui-list-skeleton-avatar"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(vr,{className:"ui-list-skeleton-title"}),(0,a.jsx)(vr,{className:"ui-list-skeleton-detail"})]}),(0,a.jsx)(vr,{className:"ui-list-skeleton-action"})]},t))})}function zr({value:e,label:n,description:t}){const r=Number.isFinite(e)?Math.min(100,Math.max(0,e)):0;return(0,a.jsxs)("div",{className:"ui-progress",children:[(0,a.jsxs)("div",{className:"ui-progress-label",children:[(0,a.jsx)("span",{children:n}),(0,a.jsx)("span",{children:t||`${Math.round(r)}%`})]}),(0,a.jsx)("div",{className:"ui-progress-track",role:"progressbar","aria-label":n,"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,children:(0,a.jsx)("div",{style:{width:`${r}%`}})})]})}const Rr=e=>e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase().replace(/ß/g,"ss"),Tr=e=>e.replace(/[^\p{L}\p{N}]/gu,"");function Br(e,n){const a=Rr(n).split(/\s+/).map(Tr).filter(Boolean);return a.length?e.filter(e=>{const n=[e.label,e.meta,e.description,...e.keywords||[]].filter(e=>null!=e).map(e=>Tr(Rr(String(e))));return a.every(e=>n.some(n=>n.includes(e)))}):e}const Hr=(0,l.forwardRef)(function({options:e,value:n,onChange:t,onBlur:s,label:i,name:o,id:c,hint:d,error:u,placeholder:h="Search or select…",emptyMessage:m="No options available.",noResultsMessage:p="No matches. Try a different search.",loadingMessage:g="Loading…",loading:f,disabled:v,required:x,className:b,toggleLabel:j="Show options"},w){const y=(0,l.useId)(),C=c||y,N=`${C}-message`,[k,E]=(0,l.useState)(""),S=e.find(e=>e.value===n)||null,M=(0,l.useMemo)(()=>Br(e,k),[e,k]),O=f?[]:M;return(0,a.jsxs)(Ia.Field,{disabled:v,className:r()("ui-search-select ui-form-field",b),children:[i?(0,a.jsxs)("label",{className:"ui-field-label",htmlFor:C,children:[i,x&&(0,a.jsx)("span",{"aria-hidden":"true",children:" *"})]}):null,o&&(0,a.jsx)("input",{type:"hidden",name:o,value:n||"",disabled:v}),(0,a.jsxs)(Ia.Combobox,{value:S,by:"value",disabled:v,invalid:!!u,immediate:!0,onChange:e=>{t(e?.value||null),E("")},onClose:()=>E(""),virtual:O.length?{options:O,disabled:e=>!!e?.disabled}:void 0,children:[(0,a.jsxs)("div",{className:"ui-search-select-control",children:[(0,a.jsx)(Da,{name:"Search",size:17,className:"ui-search-select-icon","aria-hidden":"true"}),(0,a.jsx)(Ia.ComboboxInput,{ref:w,id:C,className:"ui-input",autoComplete:"off",displayValue:e=>e?[e.label,e.meta].filter(Boolean).join(" · "):"",onChange:e=>E(e.target.value),onBlur:s,placeholder:h,"aria-label":i?void 0:h,"aria-required":x,"aria-invalid":!!u,"aria-errormessage":u?N:void 0}),(0,a.jsx)(Ia.ComboboxButton,{className:"ui-search-select-toggle","aria-label":j,children:(0,a.jsx)(Da,{name:"ChevronDown",size:16,"aria-hidden":"true"})})]}),(0,a.jsx)(Ia.ComboboxOptions,{anchor:"bottom start",className:"ui-search-select-options",modal:!1,"aria-busy":f,children:O.length?({option:e})=>e?(0,a.jsx)(Ia.ComboboxOption,{value:e,disabled:e.disabled,className:"ui-search-select-option",children:({selected:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"ui-search-select-option-copy",children:[(0,a.jsxs)("span",{className:"ui-search-select-option-title",children:[e.label,e.meta&&(0,a.jsx)("small",{children:e.meta})]}),e.description&&(0,a.jsx)("span",{className:"ui-search-select-description",children:e.description})]}),n&&(0,a.jsx)(Da,{name:"Success",size:17,"aria-hidden":"true"})]})}):null:(0,a.jsx)("div",{className:"ui-search-select-empty",role:"status",children:f?g:e.length?p:m})})]}),(u||d)&&(0,a.jsx)(Ia.Description,{as:"span",id:N,className:u?"ui-field-error":"ui-field-hint",role:u?"alert":void 0,children:u||d})]})}),Ir={title:"Contact details",email:"Email",phone:"Phone",copy:"Copy",copied:"Copied",copyError:"Could not copy. Select and copy the text.",close:"Close contact details",unavailable:"Not provided"};function $r({value:e,label:n="Copy",copiedLabel:t="Copied",errorLabel:r=Ir.copyError}){const[s,i]=(0,l.useState)("idle"),[o,c]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{i("idle")},[e]),(0,l.useEffect)(()=>{if("copied"!==s)return;const e=setTimeout(()=>i("idle"),2200);return()=>clearTimeout(e)},[s]),(0,a.jsxs)("span",{className:"ui-copy-control",children:[(0,a.jsxs)("button",{type:"button",className:"ui-copy-button",onClick:async()=>{c(!0);try{await navigator.clipboard.writeText(e),i("copied")}catch{i("error")}finally{c(!1)}},disabled:o,"aria-label":n,title:n,children:[(0,a.jsx)(Da,{name:"copied"===s?"Success":"Copy",size:15,"aria-hidden":"true"}),(0,a.jsx)("span",{children:"copied"===s?t:n.split(" ")[0]})]}),(0,a.jsx)("span",{className:"error"===s?"ui-copy-error":"sr-only",role:"status",children:"copied"===s?t:"error"===s?r:""})]})}function Fr({email:e,phone:n,labels:t,showMissing:r=!0}){const s={...Ir,...t};return(0,a.jsx)("div",{className:"ui-contact-details",children:[{label:s.email,value:e,icon:"Mail",href:e?`mailto:${e.trim()}`:void 0},{label:s.phone,value:n,icon:"Phone",href:n?`tel:${n.replace(/[^+\d]/g,"")}`:void 0}].filter(e=>r||!!e.value).map(({label:e,value:n,icon:t,href:r})=>(0,a.jsxs)("div",{className:"ui-contact-row",children:[(0,a.jsxs)("div",{className:"ui-contact-value",children:[(0,a.jsxs)("span",{className:"ui-contact-label",children:[(0,a.jsx)(Da,{name:t,size:14,"aria-hidden":"true"}),e]}),n?(0,a.jsx)("a",{href:r,children:n}):(0,a.jsx)("span",{className:"ui-contact-missing",children:s.unavailable})]}),n&&(0,a.jsx)($r,{value:n,label:`${s.copy} ${e.toLowerCase()}`,copiedLabel:s.copied,errorLabel:s.copyError})]},t))})}function Wr({name:e,email:n,phone:t,labels:r}){const s={...Ir,...r},i=(0,l.useId)();return n||t?(0,a.jsxs)(Ia.Popover,{className:"ui-contact-popover",children:[(0,a.jsxs)(Ia.PopoverButton,{className:"ui-contact-trigger","aria-label":`${s.title}${e?` · ${e}`:""}`,title:s.title,children:[n&&(0,a.jsx)(Da,{name:"Mail",size:17,"aria-hidden":"true"}),t&&(0,a.jsx)(Da,{name:"Phone",size:17,"aria-hidden":"true"}),(0,a.jsx)(Da,{name:"ChevronDown",size:12,"aria-hidden":"true"})]}),(0,a.jsx)(Ia.PopoverPanel,{anchor:"bottom end",portal:!0,focus:!0,className:"ui-contact-panel",role:"dialog","aria-labelledby":i,children:({close:r})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"ui-contact-header",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{id:i,children:s.title}),e&&(0,a.jsx)("p",{children:e})]}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button",onClick:()=>r(),"aria-label":s.close,children:(0,a.jsx)(Da,{name:"Close",size:17})})]}),(0,a.jsx)(Fr,{email:n,phone:t,labels:s})]})})]}):(0,a.jsx)("span",{className:"ui-contact-missing","aria-label":s.unavailable,children:"—"})}function Ur({open:e,onClose:n,title:t,description:r,children:s,actions:i,busy:l,closeLabel:o="Close"}){return(0,a.jsxs)(Ia.Dialog,{open:e,onClose:()=>{l||n()},className:"ui-action-dialog",children:[(0,a.jsx)(Ia.DialogBackdrop,{className:"ui-dialog-backdrop"}),(0,a.jsx)("div",{className:"ui-action-dialog-container",children:(0,a.jsxs)(Ia.DialogPanel,{className:"ui-action-dialog-panel",children:[(0,a.jsxs)("div",{className:"ui-action-dialog-header",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(Ia.DialogTitle,{children:t}),r&&(0,a.jsx)(Ia.DialogDescription,{children:r})]}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button",disabled:l,onClick:n,"aria-label":o,children:(0,a.jsx)(Da,{name:"Close",size:18})})]}),s&&(0,a.jsx)("div",{className:"ui-action-dialog-content",children:s}),i&&(0,a.jsx)("div",{className:"ui-action-dialog-actions",children:i})]})})]})}function Vr({children:e,status:n,sticky:t=!0}){return(0,a.jsxs)("div",{className:"ui-form-actions "+(t?"ui-form-actions-sticky":""),children:[(0,a.jsx)("div",{className:"ui-form-actions-status",role:"status",children:n}),(0,a.jsx)("div",{className:"ui-form-actions-buttons",children:e})]})}function _r({label:e,options:n,value:t,onChange:r,disabled:s}){return(0,a.jsx)("div",{className:"ui-choice-chips",role:"group","aria-label":e,children:n.map(e=>{const n=t.includes(e.value);return(0,a.jsxs)("button",{type:"button",disabled:s,"aria-pressed":n,className:"ui-choice-chip",onClick:()=>r(n?t.filter(n=>n!==e.value):[...t,e.value]),children:[(0,a.jsx)("span",{className:"ui-choice-chip-mark",children:n&&(0,a.jsx)(Da,{name:"Success",size:12,"aria-hidden":"true"})}),e.label]},e.value)})})}function Gr({label:e,description:n,checked:t,onChange:s,disabled:i,busy:o,className:c}){const d=(0,l.useId)();return(0,a.jsxs)("div",{className:r()("ui-setting-toggle",c),children:[(0,a.jsxs)("div",{className:"ui-setting-toggle-copy",children:[(0,a.jsx)("label",{id:`${d}-label`,htmlFor:d,children:e}),n&&(0,a.jsx)("p",{id:`${d}-description`,children:n})]}),(0,a.jsx)("button",{id:d,type:"button",role:"switch","aria-checked":t,"aria-labelledby":`${d}-label`,"aria-describedby":n?`${d}-description`:void 0,"aria-busy":o||void 0,disabled:i||o,className:"ui-switch",onClick:()=>s(!t),children:(0,a.jsx)("span",{className:"ui-switch-track","aria-hidden":"true",children:(0,a.jsx)("span",{})})})]})}const Kr=require("dompurify");var Yr=e.n(Kr);const Zr=[{label:"Bold",text:"B",command:"bold"},{label:"Italic",text:"I",command:"italic"},{label:"Heading",text:"H2",command:"formatBlock",value:"h2"},{label:"Paragraph",text:"¶",command:"formatBlock",value:"p"},{label:"Bulleted list",text:"• List",command:"insertUnorderedList"},{label:"Numbered list",text:"1. List",command:"insertOrderedList"},{label:"Undo",text:"↶",command:"undo"},{label:"Redo",text:"↷",command:"redo"}],Jr=(0,l.forwardRef)(function({value:e,onChange:n,label:t="Contract content",disabled:s},i){const[o,c]=(0,l.useState)("visual"),d=(0,l.useRef)(null),u=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(0,l.useRef)();(0,l.useEffect)(()=>{"visual"===o&&d.current&&m.current!==e&&(d.current.innerHTML=function(e){const n=Yr()(window);return n.addHook("uponSanitizeAttribute",(e,n)=>{"src"!==n.attrName||/^data:image\/(png|jpeg|gif|webp);base64,/.test(n.attrValue)||(n.keepAttr=!1)}),n.sanitize(e,{FORBID_TAGS:["style","script","iframe","form","input","button","textarea","select","video","audio","svg","math"],FORBID_ATTR:["style","id"]})}(e),m.current=e)},[e,o]);const p=()=>{const e=window.getSelection();e?.rangeCount&&d.current?.contains(e.anchorNode)&&(h.current=e.getRangeAt(0).cloneRange())},g=()=>{d.current&&(m.current=d.current.innerHTML,n(m.current),p())},f=(e,n)=>{if(s)return;d.current?.focus();const a=window.getSelection();h.current&&d.current?.contains(h.current.commonAncestorContainer)&&(a?.removeAllRanges(),a?.addRange(h.current)),document.execCommand(e,!1,n),g()};return(0,l.useImperativeHandle)(i,()=>({insertField(a){const t=`{{${a}}}`;if("html"===o&&u.current){const{selectionStart:a,selectionEnd:r}=u.current;n(e.slice(0,a)+t+e.slice(r)),u.current.focus()}else f("insertText",t)}})),(0,a.jsxs)("div",{className:r()("ui-document-editor",s&&"opacity-60"),children:[(0,a.jsxs)("div",{className:"ui-document-editor-bar",children:[(0,a.jsx)(Lr,{label:"Editor mode",value:o,onChange:e=>{m.current=void 0,h.current=null,c(e)},options:[{value:"visual",label:"Write"},{value:"html",label:"HTML"}]}),(0,a.jsx)("span",{className:"ui-document-editor-hint",children:"Insert fields from the sidebar"})]}),"visual"===o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"ui-document-toolbar",role:"toolbar","aria-label":"Text formatting",children:Zr.map(e=>(0,a.jsx)("button",{type:"button",title:e.label,"aria-label":e.label,disabled:s,onMouseDown:e=>e.preventDefault(),onClick:()=>f(e.command,e.value),children:e.text},e.label))}),(0,a.jsx)("div",{ref:d,role:"textbox","aria-label":t,"aria-multiline":"true","aria-disabled":s||void 0,contentEditable:!s,suppressContentEditableWarning:!0,className:"ui-document-content",onInput:g,onKeyUp:p,onMouseUp:p,onBlur:p,onPaste:e=>{e.preventDefault(),f("insertText",e.clipboardData.getData("text/plain"))},onDrop:e=>e.preventDefault()})]}):(0,a.jsx)("textarea",{ref:u,value:e,onChange:e=>n(e.target.value),disabled:s,"aria-label":`${t} HTML`,spellCheck:!1,className:"ui-document-source"})]})});function Qr({html:e,title:n="Document preview",className:t}){const r=(0,l.useId)();return(0,a.jsx)("iframe",{id:r,title:n,sandbox:"",referrerPolicy:"no-referrer",className:t||"ui-document-preview",srcDoc:e.replace(/<head\b[^>]*>/i,e=>`${e}<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src data:; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'">`)})}function Xr({fields:e,values:n,onChange:t,disabled:r}){return e.length?(0,a.jsx)("div",{className:"grid sm:grid-cols-2 gap-4",children:e.map(e=>(0,a.jsx)(yr,{label:`${e.label}${e.required?" *":""}`,className:"multiline"===e.type?"sm:col-span-2":"",children:"multiline"===e.type?(0,a.jsx)("textarea",{className:"ui-input min-h-24",required:e.required,disabled:r,maxLength:4e3,value:n[e.key]??e.defaultValue??"",onChange:a=>t({...n,[e.key]:a.target.value})}):(0,a.jsx)(Cr,{type:e.type,step:"number"===e.type?"any":void 0,required:e.required,disabled:r,maxLength:4e3,value:n[e.key]??e.defaultValue??"",onChange:a=>t({...n,[e.key]:a.target.value})})},e.key))}):null}function es({label:e,options:n,value:t,onChange:r,placeholder:s="Any",noResultsMessage:i="No matching options.",toggleLabel:o}){const c=(0,l.useId)(),[d,u]=(0,l.useState)(""),h=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),m=(0,l.useMemo)(()=>n.filter(e=>h(`${e.label} ${e.id}`).includes(h(d))),[n,d]);return(0,a.jsxs)("div",{className:"ui-form-field min-w-0",children:[(0,a.jsx)("label",{htmlFor:c,className:"ui-field-label",children:e}),(0,a.jsxs)(Ia.Combobox,{multiple:!0,value:t,onChange:e=>{r(e),u("")},onClose:()=>u(""),immediate:!0,children:[(0,a.jsxs)("div",{className:"ui-search-select-control",children:[(0,a.jsx)(Ia.ComboboxInput,{id:c,className:"ui-input !pl-3 !pr-9",autoComplete:"off",placeholder:s,"aria-label":e,displayValue:e=>{const a=e.map(e=>n.find(n=>n.id===e)?.label||e);return a.length>1?`${a[0]} +${a.length-1}`:a[0]||""},onChange:e=>u(e.target.value)}),(0,a.jsx)(Ia.ComboboxButton,{className:"ui-search-select-toggle","aria-label":o||`Choose ${e.toLowerCase()}`,children:(0,a.jsx)(Da,{name:"ChevronDown",size:16,"aria-hidden":"true"})})]}),(0,a.jsxs)(Ia.ComboboxOptions,{anchor:"bottom start",className:"ui-search-select-options",modal:!1,children:[m.map(e=>(0,a.jsx)(Ia.ComboboxOption,{value:e.id,className:"ui-search-select-option text-sm",children:({selected:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("span",{"aria-hidden":"true",className:"flex h-5 w-5 items-center justify-center rounded border text-xs "+(n?"bg-dark border-dark text-white":"border-gray-300"),children:n?"✓":""})]})},e.id)),!m.length&&(0,a.jsx)("p",{className:"ui-search-select-empty",role:"status",children:i})]})]})]})}function ns({url:e,fileName:n,label:t="Herunterladen"}){const[r,s]=(0,l.useState)(!1),[i,o]=(0,l.useState)("");return(0,a.jsxs)("div",{className:"ui-request-download",children:[(0,a.jsx)(Ta,{variant:"secondary",size:"sm",icon:"Download",isLoading:r,onClick:async()=>{s(!0),o("");try{const a=await fetch(e,{credentials:"include",cache:"no-store"});if(!a.ok){const e=await a.json().catch(()=>null);throw new Error(e?.message||"Download fehlgeschlagen. Bitte erneut versuchen.")}const t=URL.createObjectURL(await a.blob()),r=document.createElement("a");r.href=t,r.download=n,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(t),6e4)}catch(e){o(e instanceof Error?e.message:"Download fehlgeschlagen.")}finally{s(!1)}},children:t}),i&&(0,a.jsx)("p",{role:"alert",children:i})]})}const as=(e,n)=>`${e.replace(/\/$/,"")}/request-files/${n}`;async function ts(e,n,a){const t=n instanceof FormData,r=await fetch(e,{credentials:"include",cache:"no-store",signal:a,method:n?"POST":"GET",...n?{headers:t?{"X-Requested-With":"XMLHttpRequest"}:{"Content-Type":"application/json"},body:t?n:JSON.stringify(n)}:{}});if(!r.ok){const e=await r.json().catch(()=>null);throw new Error(e?.message||"Die Dateien konnten nicht geladen werden. Bitte versuchen Sie es erneut.")}return r.json()}function rs(e,n){const[a,t]=(0,l.useState)(null),[r,s]=(0,l.useState)(""),[i,o]=(0,l.useState)(0);return(0,l.useEffect)(()=>{t(null),s("")},[e]),(0,l.useEffect)(()=>{if(!n)return;const a=new AbortController;let r=!1;async function i(){if(!r){r=!0;try{const n=await ts(e,void 0,a.signal);a.signal.aborted||(t(n),s(""))}catch(e){a.signal.aborted||s(e instanceof Error?e.message:"Bitte erneut versuchen.")}finally{r=!1}}}i();const l=setInterval(()=>{document.hidden||i()},3e4);return()=>{a.abort(),clearInterval(l)}},[e,n,i]),{data:a,error:r,refresh:()=>o(e=>e+1)}}function ss(e){return e<1048576?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/1048576).toLocaleString("de-DE",{maximumFractionDigits:1})} MB`}function is({url:e,fields:n,onClose:t,onSaved:r,resource:s=!1,editing:i}){const o=(0,l.useId)(),[c,d]=(0,l.useState)(null),[u,h]=(0,l.useState)(""),[m,p]=(0,l.useState)(i?.label||""),[g,f]=(0,l.useState)(i?.description||""),[v,x]=(0,l.useState)(""),[b,j]=(0,l.useState)(!1),w=e=>{e&&(x(""),d(null),(s?["application/pdf","image/jpeg","image/png","image/webp"]:["application/pdf"]).includes(e.type)?!e.size||e.size>20971520?x("Die Datei darf maximal 20 MB groß sein."):(d(e),h(crypto.randomUUID()),s&&!m&&p(e.name.replace(/\.[^.]+$/,"").slice(0,100))):x(s?"Bitte wählen Sie ein PDF, JPG, PNG oder WebP.":"Bitte wählen Sie einen PDF-Vertrag."))};return(0,a.jsx)(Ur,{open:!0,onClose:t,busy:b,closeLabel:"Schließen",title:i?"Ressource bearbeiten":s?"Ressource hochladen":"Unterschriebenen Vertrag hochladen",description:s?"Briefings, Ablaufpläne und Referenzen für Ihr Projekt. Zugewiesene Models können diese Dateien herunterladen.":"Laden Sie die unterschriebene Fassung Ihres Auftragsvertrags als PDF hoch.",actions:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ta,{variant:"secondary",disabled:b,onClick:t,children:"Abbrechen"}),(0,a.jsx)(Ta,{type:"submit",form:o,isLoading:b,icon:i?void 0:"Upload",children:i?"Speichern":b?"Wird hochgeladen…":"Hochladen"})]}),children:(0,a.jsxs)("form",{id:o,onSubmit:async a=>{if(a.preventDefault(),i||c)if(!s||m.trim()){j(!0),x("");try{if(i)await ts(e,{...n,label:m.trim(),description:g.trim()});else{const a=new FormData;Object.entries(n).forEach(([e,n])=>a.set(e,n)),a.set("file",c),a.set("uploadKey",u),s&&(a.set("label",m.trim()),a.set("description",g.trim())),await ts(e,a)}r()}catch(e){x(e instanceof Error?e.message:"Upload fehlgeschlagen. Bitte erneut versuchen.")}finally{j(!1)}}else x("Bitte geben Sie eine Bezeichnung ein.");else x("Bitte wählen Sie eine Datei aus.")},className:"ui-request-upload-form",children:[!i&&(0,a.jsxs)("label",{className:"ui-request-file-drop",onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),b||w(e.dataTransfer.files[0])},children:[(0,a.jsx)("input",{type:"file","aria-label":"Datei auswählen",disabled:b,accept:s?".pdf,.jpg,.jpeg,.png,.webp":".pdf",onChange:e=>w(e.target.files?.[0])}),(0,a.jsx)(Da,{name:c?"application/pdf"===c.type?"File":"Camera":"Upload",size:28}),(0,a.jsx)("strong",{children:c?c.name:"Datei auswählen oder hier ablegen"}),(0,a.jsx)("span",{children:c?`${ss(c.size)} · Klicken zum Ändern`:(s?"PDF, JPG, PNG oder WebP":"PDF")+" · Maximal 20 MB"})]}),s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Za,{label:"Bezeichnung",value:m,onChange:e=>{p(e.target.value),h(crypto.randomUUID())},required:!0,maxLength:100,placeholder:"z. B. Shooting-Briefing",disabled:b,hideError:!0}),(0,a.jsx)(pt,{label:"Beschreibung (optional)",value:g,onChange:e=>{f(e.target.value),h(crypto.randomUUID())},maxLength:2e3,placeholder:"Was soll das Team zu dieser Datei wissen?",disabled:b,rows:3})]}),v&&(0,a.jsx)(br,{tone:"error",children:v})]})})}function ls({apiBaseUrl:e,clientRequestId:n,canManage:t=!1,active:r=!0}){const s=as(e,"resources"),{data:i,error:o,refresh:c}=rs(`${s}?clientRequestId=${encodeURIComponent(n)}`,r),[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)(null),[p,g]=(0,l.useState)(null),[f,v]=(0,l.useState)(!1),[x,b]=(0,l.useState)(""),[j,w]=(0,l.useState)(""),y=(i||[]).filter(e=>[e.label,e.description,e.fileName].join(" ").toLocaleLowerCase("de").includes(d.trim().toLocaleLowerCase("de")));return(0,a.jsxs)("div",{className:"ui-request-files",children:[(0,a.jsxs)("div",{className:"ui-request-files-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{children:"Ressourcen"}),(0,a.jsx)("p",{children:t?"Briefings, Ablaufpläne und Bildreferenzen – geteilt mit Ihren zugewiesenen Models.":"Alle Unterlagen und Referenzen für deinen Auftrag."})]}),t&&(0,a.jsx)(Ta,{icon:"Upload",onClick:()=>m("new"),children:"Datei hochladen"})]}),j&&(0,a.jsx)(br,{children:j}),o&&(0,a.jsx)(br,{tone:"error",action:(0,a.jsx)(Ta,{size:"sm",variant:"secondary",onClick:c,children:"Erneut versuchen"}),children:o}),i||o?i&&!i.length?(0,a.jsx)(xr,{icon:"File",title:"Noch keine Ressourcen",description:t?"Laden Sie ein Briefing, einen Ablaufplan oder Referenzbilder für das Team hoch.":"Sobald Unterlagen zu diesem Auftrag geteilt werden, kannst du sie hier herunterladen."}):i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Za,{type:"search",hideError:!0,icon:"Search","aria-label":"Ressourcen suchen",placeholder:"Bezeichnung, Beschreibung oder Dateiname suchen",value:d,onChange:e=>u(e.target.value)}),y.length?(0,a.jsx)("div",{className:"ui-request-resource-list",children:y.map(e=>(0,a.jsxs)("article",{className:"ui-request-resource",children:[(0,a.jsx)("span",{className:"ui-request-file-icon",children:(0,a.jsx)(Da,{name:"application/pdf"===e.contentType?"File":"Camera",size:24})}),(0,a.jsxs)("div",{className:"ui-request-resource-copy",children:[(0,a.jsx)("h3",{children:e.label}),e.description&&(0,a.jsx)("p",{children:e.description}),(0,a.jsxs)("div",{className:"ui-request-file-meta",children:[(0,a.jsx)("span",{children:e.fileName}),(0,a.jsx)("span",{children:ss(e.size)}),(0,a.jsx)("time",{dateTime:e.createdAt,children:new Date(e.createdAt).toLocaleDateString("de-DE")})]})]}),(0,a.jsxs)("div",{className:"ui-request-file-actions",children:[(0,a.jsx)(ns,{url:`${s}/download?id=${e.id}`,fileName:e.fileName}),t&&(0,a.jsxs)("div",{className:"ui-request-file-edit",children:[(0,a.jsx)(Ta,{variant:"ghost",size:"sm",icon:"Pen","aria-label":`${e.label} bearbeiten`,onClick:()=>m(e),children:"Bearbeiten"}),(0,a.jsx)(Ta,{variant:"ghost",size:"sm",icon:"Trash","aria-label":`${e.label} entfernen`,onClick:()=>{b(""),g(e)},children:"Entfernen"})]})]})]},e.id))}):(0,a.jsx)(xr,{icon:"Search",title:"Keine passenden Ressourcen",description:"Versuchen Sie einen anderen Suchbegriff."}),(0,a.jsxs)("p",{className:"ui-request-file-count","aria-live":"polite",children:[y.length," ",1===y.length?"Datei":"Dateien"]})]}):(0,a.jsx)(vr,{className:"h-48"}),h&&(0,a.jsx)(is,{resource:!0,url:"new"===h?s:`${s}/update`,fields:"new"===h?{clientRequestId:n}:{id:h.id},editing:"new"===h?void 0:h,onClose:()=>m(null),onSaved:()=>{w("new"===h?"":"Ressource aktualisiert."),m(null),c()}}),(0,a.jsx)(Ur,{open:!!p,onClose:()=>g(null),busy:f,closeLabel:"Schließen",title:"Ressource entfernen?",description:`„${p?.label||""}“ wird aus dieser Anfrage entfernt und ist für Models nicht mehr verfügbar.`,actions:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ta,{variant:"secondary",disabled:f,onClick:()=>g(null),children:"Abbrechen"}),(0,a.jsx)(Ta,{isLoading:f,onClick:async()=>{if(p){v(!0),b("");try{await ts(`${s}/remove`,{id:p.id}),g(null),c(),w("Ressource entfernt.")}catch(e){b(e instanceof Error?e.message:"Bitte erneut versuchen.")}finally{v(!1)}}},children:"Entfernen"})]}),children:x&&(0,a.jsx)(br,{tone:"error",children:x})})]})}function os({apiBaseUrl:e,clientRequestId:n,active:t=!0}){const r=as(e,"contracts"),{data:s,error:i,refresh:o}=rs(`${r}?clientRequestId=${encodeURIComponent(n)}`,t),[c,d]=(0,l.useState)(null),[u,h]=(0,l.useState)("");return(0,a.jsxs)("div",{className:"ui-request-files",children:[(0,a.jsx)("div",{className:"ui-request-files-heading",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{children:"Verträge"}),(0,a.jsx)("p",{children:"Ihre Auftragsverträge und unterschriebenen Unterlagen an einem Ort."})]})}),u&&(0,a.jsx)(br,{children:u}),i&&(0,a.jsx)(br,{tone:"error",action:(0,a.jsx)(Ta,{size:"sm",variant:"secondary",onClick:o,children:"Erneut versuchen"}),children:i}),s||i?s&&!s.length?(0,a.jsx)(xr,{icon:"File",title:"Noch kein Vertrag verfügbar",description:"Sobald die Agentur einen Auftragsvertrag für diese Anfrage erstellt hat, können Sie ihn hier herunterladen."}):s?.map(e=>(0,a.jsxs)("section",{className:"ui-request-contract",children:[(0,a.jsxs)("div",{className:"ui-request-contract-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:"AUFTRAGSVERTRAG"}),(0,a.jsx)("h3",{children:e.project})]}),(0,a.jsx)(fr,{tone:e.signed?"complete":e.canUpload?"pending":"neutral",children:e.signed?"Unterschrieben":e.canUpload?"Unterschrift offen":"Keine Unterschrift erforderlich"})]}),(0,a.jsxs)("div",{className:"ui-request-document-row",children:[(0,a.jsx)(Da,{name:"File",size:23}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{children:"Originalvertrag"}),(0,a.jsxs)("p",{children:["Von der Agentur bereitgestellt ·"," ",new Date(e.createdAt).toLocaleDateString("de-DE")]})]}),(0,a.jsx)(ns,{url:`${r}/download?id=${e.id}`,fileName:"Auftragsvertrag.pdf"})]}),(0,a.jsxs)("div",{className:"ui-request-document-row",children:[(0,a.jsx)(Da,{name:e.signed?"FileCheck":"Pen",size:23}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{children:"Unterschriebene Fassung"}),(0,a.jsx)("p",{children:e.signed?"Ihr unterschriebener Vertrag ist hinterlegt.":"Vertrag herunterladen, unterschreiben und als PDF hochladen."})]}),e.signed?(0,a.jsx)(ns,{url:`${r}/download?id=${e.id}&version=signed`,fileName:"Vertrag-unterschrieben.pdf"}):e.canUpload&&(0,a.jsx)(Ta,{size:"sm",icon:"Upload",onClick:()=>d(e),children:"PDF hochladen"})]})]},e.id)):(0,a.jsx)(vr,{className:"h-48"}),c&&(0,a.jsx)(is,{url:`${r}/upload`,fields:{contractId:c.id},onClose:()=>d(null),onSaved:()=>{d(null),h("Ihr unterschriebener Vertrag wurde erfolgreich hinterlegt."),o()}})]})}const cs="itsyou:notifications-changed";async function ds(e,n,a){const t=await fetch(e,{credentials:"include",cache:"no-store",signal:n,...a?{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}:{}});if(!t.ok)throw new Error("Notification request failed");return t.json()}function us(e,n,a){const[t,r]=(0,l.useState)(null),[s,i]=(0,l.useState)(!1),[o,c]=(0,l.useState)(!1),[d,u]=(0,l.useState)(null),[h,m]=(0,l.useState)(!1),[p,g]=(0,l.useState)(1),[f,v]=(0,l.useState)(0),x=(0,l.useCallback)(()=>v(e=>e+1),[]);return(0,l.useEffect)(()=>{r(null),g(1),i(!1),c(!1)},[e,n]),(0,l.useEffect)(()=>{g(1),i(!1)},[a]),(0,l.useEffect)(()=>{if(!n)return;const t=new AbortController;let s=!1;async function l(){if(!s){s=!0,m(!0);try{let n=null;for(let r=0;r<p;r++){const r=n?.nextCursor||null,s=await ds(`${e}?filter=${a}${r?`&cursor=${r}`:""}`,t.signal);if(n=n?{...n,items:[...n.items,...s.items],nextCursor:s.nextCursor}:s,!s.nextCursor)break}t.signal.aborted||(r(n),i(!1))}catch{t.signal.aborted||i(!0)}finally{s=!1,t.signal.aborted||m(!1)}}}l();const o=n=>{n.detail===e&&x()},c=()=>{document.hidden||l()},d=setInterval(c,3e4);return window.addEventListener(cs,o),window.addEventListener("focus",c),document.addEventListener("visibilitychange",c),()=>{t.abort(),clearInterval(d),window.removeEventListener(cs,o),window.removeEventListener("focus",c),document.removeEventListener("visibilitychange",c)}},[e,n,a,p,f,x]),{feed:t,error:s,actionError:o,busy:d,loading:h,refresh:x,more:()=>g(e=>e+1),act:async(n,a)=>{if(!d){u("id"in a?a.id:"all"),c(!1);try{await ds(`${e}/${n}`,void 0,a),window.dispatchEvent(new CustomEvent(cs,{detail:e}))}catch{c(!0)}finally{u(null)}}}}}const hs={en:{title:"Notifications",inbox:"Inbox",eyebrow:"YOUR WORKSPACE",subtitle:"Client requests, model responses and documents, together in one inbox.",empty:"You’re all caught up",emptyHint:"New activity will appear here.",unread:"Unread",all:"All",open:"Open",done:"Done",read:"Mark as read",readAll:"Mark all as read",view:"Open details",portfolio:"View portfolio",complete:"Mark done",more:"Load earlier notifications",allItems:"Open inbox",error:"Notifications could not be loaded.",actionError:"The change could not be saved. Please try again.",retry:"Try again",loading:"Loading notifications"},de:{title:"Benachrichtigungen",inbox:"Posteingang",eyebrow:"DEIN POSTEINGANG",subtitle:"Anfragen, Verträge und Unterlagen – alle Neuigkeiten an einem Ort.",empty:"Alles auf dem neuesten Stand",emptyHint:"Neue Mitteilungen erscheinen hier.",unread:"Ungelesen",all:"Alle",open:"Offen",done:"Erledigt",read:"Als gelesen markieren",readAll:"Alle als gelesen markieren",view:"Details öffnen",portfolio:"Portfolio ansehen",complete:"Erledigen",more:"Ältere Benachrichtigungen laden",allItems:"Alle Benachrichtigungen",error:"Benachrichtigungen konnten nicht geladen werden.",actionError:"Die Änderung konnte nicht gespeichert werden. Bitte erneut versuchen.",retry:"Erneut versuchen",loading:"Benachrichtigungen werden geladen"}};function ms({item:e,labels:n,locale:t,admin:r,busy:s,onRead:l,onDone:o,onNavigate:c,pitchUrl:d}){return(0,a.jsxs)("li",{className:"ui-notification-row","data-unread":!e.read,children:[(0,a.jsx)("span",{className:"ui-notification-event-icon",children:(0,a.jsx)(Da,{name:(u=e.kind,u.startsWith("ORDER_REVIEW_")?"Star":u.includes("CONTRACT")||"MODEL_SIGNED"===u?"FileCheck":"RESOURCE_AVAILABLE"===u?"File":u.startsWith("PROFILE_")||u.startsWith("MODEL_")?"User":"PITCH_CREATED"===u?"UserCard":"Inbox"),size:19})}),(0,a.jsxs)("div",{className:"ui-notification-copy",children:[(0,a.jsx)(i(),{href:e.href,onClick:()=>{e.read||l(),c?.()},className:"ui-notification-title",children:e.title}),e.description&&(0,a.jsx)("p",{className:"ui-notification-description",children:e.description}),(0,a.jsxs)("div",{className:"ui-notification-meta",children:[(0,a.jsx)("time",{dateTime:e.createdAt,children:new Intl.DateTimeFormat("de"===t?"de-AT":"en-GB",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"}).format(new Date(e.createdAt))}),r&&e.resolved&&(0,a.jsx)(fr,{children:n.done})]}),(0,a.jsxs)("div",{className:"ui-notification-row-actions",children:[e.pitchId&&d&&(0,a.jsxs)("a",{href:d(e.pitchId),target:"_blank",rel:"noopener noreferrer",onClick:()=>{e.read||l()},children:[n.portfolio,(0,a.jsx)("span",{className:"sr-only",children:" ↗"})]}),!e.read&&(0,a.jsx)("button",{type:"button",disabled:s,onClick:l,children:n.read}),r&&!e.resolved&&(0,a.jsx)("button",{type:"button",disabled:s,onClick:o,children:n.complete})]})]}),!e.read&&(0,a.jsx)("span",{className:"ui-notification-unread-dot","aria-label":n.unread})]});var u}function ps({state:e,props:n,labels:t,compact:r=!1,onNavigate:s}){const{feed:i}=e;return(0,a.jsxs)(a.Fragment,{children:[e.actionError&&(0,a.jsx)("div",{className:"ui-notification-notice",children:(0,a.jsx)(br,{tone:"error",children:t.actionError})}),(0,a.jsx)(Dr,{loading:!i&&!e.error,updating:e.loading,error:e.error,hasData:!!i,onRetry:e.refresh,locale:n.locale||"en",errorTitle:t.error,minHeight:r?240:400,skeleton:(0,a.jsx)(Pr,{rows:r?3:5}),children:i&&!i.items.length?(0,a.jsx)(xr,{icon:"Bell",title:t.empty,description:n.emptyHint||t.emptyHint}):i&&(0,a.jsx)("ul",{className:"ui-notification-list",children:(r?i.items.slice(0,5):i.items).map(r=>(0,a.jsx)(ms,{item:r,labels:t,locale:n.locale||"en",admin:"admin"===n.audience,busy:!!e.busy,onRead:()=>{e.act("read",{id:r.id})},onDone:()=>{e.act("resolve",{id:r.id})},onNavigate:s,pitchUrl:n.pitchUrl},r.id))})})]})}function gs(e){const n=hs[e.locale||"en"],t=us(`${e.apiBaseUrl.replace(/\/$/,"")}/notifications/${e.audience}`,e.identity,"admin"===e.audience?"open":"all");return(0,a.jsx)(mr,{label:n.title,unreadCount:t.feed?.unreadCount||0,children:r=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"ui-notification-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{children:"admin"===e.audience?n.inbox:n.title}),(0,a.jsxs)("p",{children:[t.feed?.unreadCount||0," ",n.unread.toLocaleLowerCase()]})]}),!!t.feed?.unreadCount&&(0,a.jsx)("button",{type:"button",disabled:!!t.busy||!t.feed?.unreadCount,onClick:()=>{t.act("read",{before:t.feed.asOf})},children:n.readAll})]}),(0,a.jsx)(ps,{state:t,props:e,labels:n,compact:!0,onNavigate:r}),(0,a.jsxs)(i(),{className:"ui-notification-footer",href:e.inboxHref||"/notifications",onClick:()=>r(),children:[n.allItems,(0,a.jsx)(Da,{name:"ArrowRight",size:16})]})]})})}function fs(e){const n=hs[e.locale||"en"],t="admin"===e.audience,[r,s]=(0,l.useState)(t?"open":"all"),i=us(`${e.apiBaseUrl.replace(/\/$/,"")}/notifications/${e.audience}`,e.identity,r),o=t?[{value:"open",label:n.open,count:i.feed?.openCount},{value:"unread",label:n.unread,count:i.feed?.unreadCount},{value:"all",label:n.all},{value:"done",label:n.done}]:[{value:"all",label:n.all},{value:"unread",label:n.unread,count:i.feed?.unreadCount}];return(0,a.jsxs)("div",{className:"ui-notification-inbox",children:[(0,a.jsx)(pr,{eyebrow:"client"===e.audience&&"de"===e.locale?"IHR POSTEINGANG":n.eyebrow,title:t?n.inbox:n.title,subtitle:n.subtitle,actions:(0,a.jsx)(Ta,{variant:"secondary",isLoading:"all"===i.busy,disabled:!!i.busy||!i.feed?.unreadCount,onClick:()=>{i.act("read",{before:i.feed.asOf})},children:n.readAll})}),(0,a.jsx)(Lr,{label:n.title,value:r,onChange:s,options:o,variant:"underline"}),(0,a.jsxs)(gr,{unpadded:!0,children:[(0,a.jsx)(ps,{state:i,props:e,labels:n}),i.feed?.nextCursor&&(0,a.jsx)("div",{className:"ui-notification-load",children:(0,a.jsx)(Ta,{variant:"secondary",size:"sm",isLoading:i.loading,onClick:i.more,children:n.more})})]})]})}class vs extends Error{status;constructor(e,n){super(e),this.status=n}}function xs(e){async function n(n,a,t,r){const s=new URLSearchParams;Object.entries(a||{}).forEach(([e,n])=>{void 0!==n&&s.set(e,String(n))});const i=await fetch(`${e.replace(/\/$/,"")}/chats${n}${s.size?`?${s}`:""}`,{method:void 0===t?"GET":"POST",credentials:"include",cache:"no-store",signal:r,...void 0===t?{}:{headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}});if(!i.ok){const e=await i.json().catch(()=>null);throw new vs(e?.message||"Unable to load chat. Please try again.",i.status)}return i.json()}return{list:(e,a,t,r,s=!1)=>n("",{q:e,cursor:a,clientRequestId:r,archived:String(s)},void 0,t),detail:(e,a)=>n("/detail",{id:e},void 0,a),directory:(e,a,t,r)=>n("/participants",{q:e,role:a,cursor:t},void 0,r),requests:(e,a,t)=>n("/requests",{q:e,cursor:a},void 0,t),requestDraft:(e,a)=>n("/request-draft",{clientRequestId:e},void 0,a),create:e=>n("",void 0,e),update:(e,a,t)=>n("/update",void 0,{...t,id:e,revision:a}),messages:(e,a={},t)=>n("/messages",{chatId:e,...a},void 0,t),send:(e,a,t)=>n("/messages",void 0,{chatId:e,body:a,clientMessageId:t}),read:(e,a)=>n("/read",void 0,{chatId:e,sequence:a}),archive:(e,a)=>n("/archive",void 0,{chatId:e,archived:a}),edit:(e,a,t,r)=>n("/messages/edit",void 0,{chatId:e,messageId:a,body:t,editSequence:r}),edits:(e,a,t)=>n("/message-edits",{chatId:e,after:a},void 0,t)}}const bs={en:{subtitle:"The right people. One conversation.",newChat:"New group chat",requestCreateHint:"Models with signed request contracts, client accounts, and you are preselected. Review the participants before creating the group.",missingClientAccount:"This client has no portal account yet. Add a client account to include them in the conversation.",missingModelAccounts:"models with signed request contracts have no login account and could not be preselected.",requestChatHint:"Conversations with the team for this request.",noRequestChats:"No conversations for this request yet",noRequestChatsHint:"The agency will add you to a group chat for this request.",chats:"Conversations",search:"Search chats, requests, or clients",request:"Request",general:"General",generalChat:"General chat",agencyTeam:"IT’S YOU team",generalHint:"Your direct conversation with the agency team.",generalFirstMessage:"How can we help?",generalFirstMessageHint:"Send a message to start your conversation with the IT’S YOU team.",generalDetails:"Conversation details",generalPrivate:"This conversation is visible to you and all agency admins and team members.",staffInboxHint:"General chats are started by clients and models. All agency admins and team members can reply.",noRequest:"No request assigned",selectRequest:"Choose a request",changeRequest:"Change request",searchRequests:"Search requests or clients",noRequests:"No matching requests",requestHint:"Link this conversation to a request and its client.",all:"All",unread:"Unread",archived:"Archived",archive:"Archive chat",restore:"Restore chat",archiveHint:"Archived for you. New messages return this chat to your inbox.",archiveError:"Could not update the archive. Please try again.",noArchived:"No archived conversations",noArchivedHint:"Chats you archive appear here. You can restore them at any time.",edited:"Edited",editMessage:"Edit message",editHint:"Everyone in this conversation will see the updated message and an Edited label.",editError:"Your changes could not be saved. Your draft is still here; try again.",editConflict:"This message changed in another tab. Close and reopen the editor to load the latest version.",noChats:"Your conversations start here",noChatsHint:"The agency will add you to a group when there is something to discuss.",noChatsAdmin:"Bring models, clients, and your team together in a group chat.",noResults:"No conversations found",noResultsHint:"Try another search or switch to all conversations.",choose:"A shared space to stay connected",chooseHint:"Choose a conversation to catch up with your team.",participants:"Participants",manage:"Manage group",back:"Back to conversations",send:"Send",sending:"Sending…",placeholder:"Write a message…",composer:"Message",hint:"Enter to send · Shift + Enter for a new line",firstMessage:"Start the conversation",firstMessageHint:"Say hello or share an update with the group.",more:"Load more",older:"Load earlier messages",loading:"Loading…",retry:"Try again",error:"Unable to load chat. Please try again.",reconnect:"Connection interrupted. Reconnecting…",sendError:"Message not sent. Your draft is saved; try sending again.",you:"You",today:"Today",yesterday:"Yesterday",details:"Group details",groupName:"Group name",groupNamePlaceholder:"e.g. Vienna campaign · Production",description:"Description (optional)",descriptionPlaceholder:"What is this group working on?",searchPeople:"Search names, email, or company",allRoles:"All roles",admin:"Admin",member:"Team member",client:"Client",model:"Model",removed:"Removed account",selected:"selected",create:"Create group",save:"Save changes",cancel:"Cancel",close:"Close",createHint:"Choose the people who should be part of this conversation.",historyHint:"Added participants can see the full message history. Removed participants lose access.",selfHint:"You are included as a group manager.",choosePeople:"Add at least one other participant (up to 200 total).",noPeople:"No matching accounts",remove:"Remove",private:"Only assigned participants can access this conversation.",newMessages:"New messages",readOnly:"Your access to this chat has changed.",saved:"Group saved"},de:{subtitle:"Die richtigen Menschen. Ein gemeinsamer Chat.",newChat:"Neuer Gruppenchat",requestCreateHint:"Models mit unterschriebenem Vertrag, Kundenkonten und du sind vorausgewählt. Prüfe die Teilnehmenden vor dem Erstellen.",missingClientAccount:"Dieser Kunde hat noch kein Portalkonto. Lege ein Kundenkonto an, um ihn zum Chat hinzuzufügen.",missingModelAccounts:"Models mit unterschriebenem Vertrag haben kein Benutzerkonto und konnten nicht vorausgewählt werden.",requestChatHint:"Unterhaltungen mit dem Team zu dieser Anfrage.",noRequestChats:"Noch keine Unterhaltungen zu dieser Anfrage",noRequestChatsHint:"Die Agentur fügt dich zu einem Gruppenchat für diese Anfrage hinzu.",chats:"Unterhaltungen",search:"Chats, Anfragen oder Kunden suchen",request:"Anfrage",general:"Allgemein",generalChat:"Allgemeiner Chat",agencyTeam:"IT’S YOU Team",generalHint:"Dein direkter Kontakt zum Agenturteam.",generalFirstMessage:"Wie können wir dir helfen?",generalFirstMessageHint:"Schreib eine Nachricht, um deine Unterhaltung mit dem IT’S YOU Team zu starten.",generalDetails:"Details zur Unterhaltung",generalPrivate:"Diese Unterhaltung ist für dich und alle Admins und Teammitglieder der Agentur sichtbar.",staffInboxHint:"Allgemeine Chats werden von Kunden und Models gestartet. Alle Admins und Teammitglieder der Agentur können antworten.",noRequest:"Keine Anfrage zugewiesen",selectRequest:"Anfrage auswählen",changeRequest:"Anfrage ändern",searchRequests:"Anfragen oder Kunden suchen",noRequests:"Keine passenden Anfragen",requestHint:"Verknüpfe diesen Chat mit einer Anfrage und ihrem Kunden.",all:"Alle",unread:"Ungelesen",archived:"Archiviert",archive:"Chat archivieren",restore:"Chat wiederherstellen",archiveHint:"Für dich archiviert. Neue Nachrichten bringen diesen Chat zurück in deinen Posteingang.",archiveError:"Das Archiv konnte nicht aktualisiert werden. Bitte erneut versuchen.",noArchived:"Keine archivierten Unterhaltungen",noArchivedHint:"Archivierte Chats erscheinen hier. Du kannst sie jederzeit wiederherstellen.",edited:"Bearbeitet",editMessage:"Nachricht bearbeiten",editHint:"Alle Teilnehmenden sehen die aktualisierte Nachricht und den Hinweis „Bearbeitet“.",editError:"Deine Änderungen konnten nicht gespeichert werden. Dein Entwurf bleibt erhalten. Bitte erneut versuchen.",editConflict:"Diese Nachricht wurde in einem anderen Tab geändert. Schließe und öffne die Bearbeitung erneut, um die aktuelle Version zu laden.",noChats:"Hier beginnen die Unterhaltungen",noChatsHint:"Die Agentur fügt dich zu einer Gruppe hinzu, sobald es etwas zu besprechen gibt.",noChatsAdmin:"Models, Kunden und das Team in einem Gruppenchat zusammenbringen.",noResults:"Keine Unterhaltungen gefunden",noResultsHint:"Versuche eine andere Suche oder zeige alle Unterhaltungen an.",choose:"Gemeinsam in Verbindung bleiben",chooseHint:"Wähle eine Unterhaltung, um dich mit dem Team auszutauschen.",participants:"Teilnehmende",manage:"Gruppe verwalten",back:"Zurück zu Unterhaltungen",send:"Senden",sending:"Wird gesendet…",placeholder:"Nachricht schreiben…",composer:"Nachricht",hint:"Enter zum Senden · Shift + Enter für eine neue Zeile",firstMessage:"Die Unterhaltung beginnt hier",firstMessageHint:"Sag Hallo oder teile Neuigkeiten mit der Gruppe.",more:"Mehr laden",older:"Ältere Nachrichten laden",loading:"Wird geladen…",retry:"Erneut versuchen",error:"Chat konnte nicht geladen werden. Bitte erneut versuchen.",reconnect:"Verbindung unterbrochen. Wird erneut verbunden…",sendError:"Nachricht nicht gesendet. Dein Entwurf bleibt erhalten. Bitte erneut senden.",you:"Du",today:"Heute",yesterday:"Gestern",details:"Gruppendetails",groupName:"Gruppenname",groupNamePlaceholder:"z. B. Wien Kampagne · Produktion",description:"Beschreibung (optional)",descriptionPlaceholder:"Worum geht es in dieser Gruppe?",searchPeople:"Name, E-Mail oder Firma suchen",allRoles:"Alle Rollen",admin:"Admin",member:"Teammitglied",client:"Kunde",model:"Model",removed:"Entferntes Konto",selected:"ausgewählt",create:"Gruppe erstellen",save:"Änderungen speichern",cancel:"Abbrechen",close:"Schließen",createHint:"Wähle die Personen für diese Unterhaltung aus.",historyHint:"Neue Teilnehmende sehen den gesamten Verlauf. Entfernte Teilnehmende verlieren den Zugriff.",selfHint:"Du bist als Gruppenverwaltung dabei.",choosePeople:"Mindestens eine weitere Person hinzufügen (maximal 200 insgesamt).",noPeople:"Keine passenden Konten",remove:"Entfernen",private:"Nur zugewiesene Teilnehmende haben Zugriff auf diese Unterhaltung.",newMessages:"Neue Nachrichten",readOnly:"Dein Zugriff auf diesen Chat hat sich geändert.",saved:"Gruppe gespeichert"}};function js(e,n){return{ADMIN:n.admin,MEMBER:n.member,CLIENT:n.client,USER:n.model,REMOVED:n.removed}[e]}const ws=e=>e.trim().split(/\s+/).slice(0,2).map(e=>e[0]).join("").toUpperCase();function ys(e,n){const a=new Map(e.map(e=>[e.id,e]));for(const e of n){const n=a.get(e.id);(!n||(e.editSequence||0)>=(n.editSequence||0))&&a.set(e.id,e)}return[...a.values()].sort((e,n)=>e.sequence-n.sequence)}function Cs({api:e,value:n,onChange:t,disabled:r,labels:s}){const i=(0,l.useId)(),[o,c]=(0,l.useState)(!1),[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)([]),[p,g]=(0,l.useState)(1),[f,v]=(0,l.useState)(!1),[x,b]=(0,l.useState)(!1),[j,w]=(0,l.useState)(!1),[y,C]=(0,l.useState)(0);function N(e){t(e),c(!1)}return(0,l.useEffect)(()=>{if(!o)return;const n=new AbortController;b(!0),w(!1);const a=setTimeout(async()=>{try{let a;const t=[];for(let r=0;r<p;r++){const r=await e.requests(d,a,n.signal);if(n.signal.aborted)return;if(t.push(...r.items),a=r.nextCursor||void 0,!a)break}m([...new Map(t.map(e=>[e.id,e])).values()]),v(!!a)}catch{n.signal.aborted||w(!0)}finally{n.signal.aborted||b(!1)}},200);return()=>{clearTimeout(a),n.abort()}},[e,o,d,p,y]),(0,a.jsxs)("div",{className:"ui-chat-request-picker",children:[(0,a.jsx)("div",{className:"ui-chat-section-label",children:(0,a.jsx)("strong",{id:`${i}-label`,children:s.request})}),(0,a.jsxs)("button",{type:"button",className:"ui-chat-request-value",disabled:r,"aria-labelledby":`${i}-label ${i}-value`,"aria-expanded":o,"aria-controls":`${i}-options`,onClick:()=>c(e=>!e),children:[(0,a.jsx)(Da,{name:"Inbox",size:18}),(0,a.jsxs)("span",{id:`${i}-value`,children:[(0,a.jsx)("strong",{children:n?.project||s.general}),(0,a.jsx)("small",{children:n?.client.name||s.noRequest})]}),(0,a.jsx)("span",{className:"ui-chat-help",children:n?s.changeRequest:s.selectRequest}),(0,a.jsx)(Da,{name:"ChevronDown",size:14})]}),(0,a.jsx)("p",{className:"ui-chat-help",children:s.requestHint}),o&&(0,a.jsxs)("div",{id:`${i}-options`,className:"ui-chat-request-options",children:[(0,a.jsx)(Za,{icon:"Search","aria-label":s.searchRequests,placeholder:s.searchRequests,value:d,maxLength:120,disabled:r,onChange:e=>{u(e.target.value),g(1),m([])}}),(0,a.jsxs)("div",{className:"ui-chat-request-results","aria-busy":x,children:[(0,a.jsxs)("button",{type:"button",className:"ui-chat-request-option",disabled:r,"aria-pressed":!n,onClick:()=>N(null),children:[(0,a.jsx)("strong",{children:s.general}),(0,a.jsx)("small",{children:s.noRequest})]}),h.map(e=>(0,a.jsxs)("button",{type:"button",className:"ui-chat-request-option",disabled:r,"aria-pressed":n?.id===e.id,onClick:()=>N(e),children:[(0,a.jsx)("strong",{children:e.project}),(0,a.jsx)("small",{children:e.client.name})]},e.id)),x&&(0,a.jsx)("p",{className:"ui-chat-help",role:"status",children:s.loading}),!x&&!j&&!h.length&&(0,a.jsx)("p",{className:"ui-chat-help",children:s.noRequests}),j&&(0,a.jsxs)("div",{role:"alert",children:[(0,a.jsx)("p",{className:"ui-chat-help",children:s.error}),(0,a.jsx)(Ta,{size:"sm",variant:"ghost",onClick:()=>C(e=>e+1),children:s.retry})]}),!x&&f&&(0,a.jsx)(Ta,{size:"sm",variant:"ghost",onClick:()=>g(e=>e+1),children:s.more})]})]})]})}function Ns({api:e,viewer:n,chat:t,initialValues:r,presentation:s="dialog",lockRequest:i=!1,labels:o,onClose:c,onSaved:d}){const[u,h]=(0,l.useState)(t?.title||r?.title||""),[m,p]=(0,l.useState)(t?.request||r?.request||null),[g,f]=(0,l.useState)(t?.description||r?.description||""),[v,x]=(0,l.useState)(t?.participants||r?.participants||[n]),[b,j]=(0,l.useState)(""),[w,y]=(0,l.useState)(""),[C,N]=(0,l.useState)([]),[k,E]=(0,l.useState)(null),[S,M]=(0,l.useState)(!0),[O,L]=(0,l.useState)(!1),[q,A]=(0,l.useState)(""),[D,P]=(0,l.useState)(!1),[z,R]=(0,l.useState)(0);(0,l.useEffect)(()=>{const n=new AbortController;M(!0),P(!1),N([]),E(null);const a=setTimeout(()=>{e.directory(b,w||void 0,void 0,n.signal).then(e=>{N(e.items),E(e.nextCursor)}).catch(()=>{n.signal.aborted||P(!0)}).finally(()=>{n.signal.aborted||M(!1)})},250);return()=>{clearTimeout(a),n.abort()}},[e,b,w,z]);const[T,B]=(0,l.useState)(null);function H(e){e.id!==n.id&&x(n=>n.some(n=>n.id===e.id)?n.filter(n=>n.id!==e.id):[...n,e])}(0,l.useEffect)(()=>{if(!T)return;const n=new AbortController;return M(!0),e.directory(b,w||void 0,T,n.signal).then(e=>{N(n=>[...new Map([...n,...e.items].map(e=>[e.id,e])).values()]),E(e.nextCursor)}).catch(()=>{n.signal.aborted||P(!0)}).finally(()=>{n.signal.aborted||(M(!1),B(null))}),()=>n.abort()},[e,T,b,w]);const I=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ta,{variant:"secondary",disabled:O,onClick:c,children:o.cancel}),(0,a.jsx)(Ta,{icon:"Chat",isLoading:O,disabled:!u.trim()||v.length<2||v.length>200,onClick:()=>{!async function(){L(!0),A("");try{const n={title:u,description:g,participantIds:v.map(e=>e.id),clientRequestId:m?.id||null},a=t?await e.update(t.id,t.revision,n):await e.create(n);d(a)}catch(e){A(e instanceof Error?e.message:o.error)}finally{L(!1)}}()},children:t?o.save:o.create})]}),$=(0,a.jsxs)("div",{className:"ui-chat-group-form",children:[q&&(0,a.jsx)(br,{tone:"error",children:q}),i&&m?(0,a.jsxs)("div",{className:"ui-chat-request-context",children:[(0,a.jsx)(Da,{name:"Inbox",size:22}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:o.request}),(0,a.jsx)("strong",{children:m.project}),(0,a.jsx)("small",{children:m.client.name})]})]}):(0,a.jsx)(Cs,{api:e,value:m,onChange:p,disabled:O,labels:o}),(0,a.jsx)(Za,{label:o.groupName,placeholder:o.groupNamePlaceholder,value:u,onChange:e=>h(e.target.value),maxLength:120,disabled:O,autoFocus:!0}),(0,a.jsx)(pt,{label:o.description,placeholder:o.descriptionPlaceholder,value:g,onChange:e=>f(e.target.value),maxLength:1e3,rows:2,disabled:O}),(0,a.jsxs)("div",{className:"ui-chat-section-label",children:[(0,a.jsx)("strong",{children:o.participants}),(0,a.jsxs)("span",{children:[v.length,"/200 ",o.selected]})]}),(0,a.jsx)("div",{className:"ui-chat-selected","aria-label":o.participants,children:v.map(e=>(0,a.jsxs)("span",{className:"ui-chat-chip",children:[e.name,e.id===n.id?` (${o.you})`:(0,a.jsx)("button",{type:"button",disabled:O,"aria-label":`${o.remove} ${e.name}`,onClick:()=>H(e),children:(0,a.jsx)(Da,{name:"Close",size:13})})]},e.id))}),(0,a.jsx)("p",{className:"ui-chat-help",children:o.selfHint}),(0,a.jsxs)("div",{className:"ui-chat-directory-filters",children:[(0,a.jsx)(Za,{icon:"Search","aria-label":o.searchPeople,placeholder:o.searchPeople,value:b,maxLength:120,onChange:e=>{B(null),j(e.target.value)}}),(0,a.jsxs)("select",{className:"ui-input","aria-label":o.allRoles,value:w,onChange:e=>{B(null),y(e.target.value)},children:[(0,a.jsx)("option",{value:"",children:o.allRoles}),["ADMIN","MEMBER","CLIENT","USER"].map(e=>(0,a.jsx)("option",{value:e,children:js(e,o)},e))]})]}),(0,a.jsxs)("div",{className:"ui-chat-directory","aria-busy":S,children:[C.map(e=>(0,a.jsxs)("label",{className:"ui-chat-person-option",children:[(0,a.jsx)("input",{type:"checkbox",checked:v.some(n=>n.id===e.id),disabled:O||e.id===n.id||v.length>=200&&!v.some(n=>n.id===e.id),onChange:()=>H(e)}),(0,a.jsx)("span",{className:"ui-chat-avatar","data-role":e.role,children:ws(e.name)}),(0,a.jsxs)("span",{className:"ui-chat-person-name",children:[(0,a.jsx)("strong",{children:e.name}),(0,a.jsx)("small",{children:[e.email,e.client?.name].filter(Boolean).join(" · ")})]}),(0,a.jsx)("span",{className:"ui-chat-role",children:js(e.role,o)})]},e.id)),S&&(0,a.jsx)("p",{className:"ui-chat-help",role:"status",children:o.loading}),!S&&!C.length&&!D&&(0,a.jsx)("p",{className:"ui-chat-help",children:o.noPeople}),D&&(0,a.jsx)(Ta,{variant:"ghost",onClick:()=>{B(null),R(e=>e+1)},children:o.retry}),k&&!S&&(0,a.jsx)(Ta,{variant:"ghost",size:"sm",onClick:()=>B(k),children:o.more})]}),(0,a.jsx)("p",{className:"ui-chat-help",children:v.length<2?o.choosePeople:o.historyHint})]});return"page"===s?(0,a.jsxs)("div",{className:"ui-chat-create-card",children:[$,(0,a.jsx)("div",{className:"ui-chat-create-actions",children:I})]}):(0,a.jsx)(Ur,{open:!0,onClose:c,title:t?o.manage:o.newChat,description:o.createHint,busy:O,closeLabel:o.close,actions:I,children:$})}function ks({api:e,chatId:n,message:t,labels:r,onClose:s,onSaved:i}){const o=(0,l.useId)(),[c,d]=(0,l.useState)(t.body),[u,h]=(0,l.useState)(!1),[m,p]=(0,l.useState)("");return(0,a.jsx)(Ur,{open:!0,onClose:s,title:r.editMessage,description:r.editHint,busy:u,closeLabel:r.close,actions:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ta,{variant:"secondary",disabled:u,onClick:s,children:r.cancel}),(0,a.jsx)(Ta,{type:"submit",form:o,isLoading:u,disabled:!c.trim()||c.trim()===t.body,children:r.save})]}),children:(0,a.jsxs)("form",{id:o,className:"ui-chat-edit-form",onSubmit:a=>{a.preventDefault(),async function(){if(!(u||!c.trim()||c.length>5e3)){h(!0),p("");try{const a=await e.edit(n,t.id,c.trim(),t.editSequence||0);i(a)}catch(e){p(e instanceof vs&&409===e.status?r.editConflict:r.editError)}finally{h(!1)}}}()},children:[(0,a.jsx)(pt,{autoFocus:!0,label:r.composer,value:c,maxLength:5e3,rows:5,disabled:u,onChange:e=>d(e.target.value)}),(0,a.jsxs)("span",{className:"ui-chat-help",children:[c.length.toLocaleString(),"/5,000"]}),m&&(0,a.jsx)(br,{tone:"error",children:m})]})})}function Es({api:e,id:n,viewer:t,canManage:r,locale:s,labels:i,draft:o,onDraft:c,onBack:d,onManage:u,onRead:h,sendDraft:m,sendingInBackground:p,refresh:g,onChanged:f,onArchived:v}){const[x,b]=(0,l.useState)(null),j="GENERAL"===x?.kind,w=j&&!t.canManage?i.generalChat:x?.title,y=j?i.generalDetails:i.details,C=r&&!j,[N,k]=(0,l.useState)([]),[E,S]=(0,l.useState)(!0),[M,O]=(0,l.useState)(!1),[L,q]=(0,l.useState)(!1),[A,D]=(0,l.useState)(""),[P,z]=(0,l.useState)(!1),[R,T]=(0,l.useState)(!1),[B,H]=(0,l.useState)(!1),[I,$]=(0,l.useState)(!1),[F,W]=(0,l.useState)(null),[U,V]=(0,l.useState)(!1),[_,G]=(0,l.useState)(!1),[K,Y]=(0,l.useState)(!1),[Z,J]=(0,l.useState)(0),Q=(0,l.useRef)(null),X=(0,l.useRef)(null),ee=(0,l.useRef)(!0),ne=(0,l.useRef)(0),ae=(0,l.useRef)(0),te=(0,l.useRef)(new Map),re=(0,l.useRef)(!1),se=(0,l.useRef)(0),ie=(0,l.useRef)(0),le=(0,l.useRef)(!1),oe=(0,l.useRef)(!1),ce=(0,l.useRef)(!0),de=(0,l.useRef)(null),ue=(0,l.useRef)(null),he=(0,l.useCallback)(e=>!!(e instanceof vs&&[401,403,404].includes(e.status))&&(z(!0),b(null),k([]),$(!1),W(null),re.current=!1,ne.current=0,ae.current=0,te.current.clear(),ie.current=0,!0),[]),me=(0,l.useCallback)(async()=>{const a=ie.current,t=Q.current?.getBoundingClientRect();if(!(!ee.current||!t||!t.height||t.bottom>window.innerHeight||t.bottom<=0||t.right<=0||t.left>=window.innerWidth||document.hidden||!document.hasFocus()||a<=se.current||le.current)){le.current=!0;try{await e.read(n,a),ce.current&&(se.current=a,h(n,a))}catch(e){ce.current&&he(e)}finally{le.current=!1}}},[e,n,h,he]);async function pe(){const e=o.trim();if(!(!e||e.length>5e3||oe.current||p||E||P)&&x){oe.current=!0,H(!0),T(!1);try{const a=await m(n,e);if(!ce.current)return;ee.current=!0,k(e=>ys(e,[a])),ie.current=Math.max(ie.current,a.sequence),se.current=a.sequence,h(n,a.sequence)}catch(e){ce.current&&(he(e),T(!0))}finally{oe.current=!1,ce.current&&(H(!1),setTimeout(()=>X.current?.focus(),0))}}}function ge(e){const n=new Date(e),a=new Date,t=new Date;return t.setDate(a.getDate()-1),n.toDateString()===a.toDateString()?i.today:n.toDateString()===t.toDateString()?i.yesterday:n.toLocaleDateString(s,{day:"numeric",month:"long",year:"numeric"})}return(0,l.useEffect)(()=>{const e=()=>{me()};return window.addEventListener("scroll",e,{capture:!0,passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[me]),(0,l.useEffect)(()=>(ce.current=!0,()=>{ce.current=!1,de.current?.abort()}),[]),(0,l.useEffect)(()=>{const a=new AbortController;let t=!1;async function r(){if(!t&&!document.hidden){t=!0;try{const t=await e.detail(n,a.signal);if(a.signal.aborted)return;if(b(t),se.current=Math.max(se.current,t.lastReadSequence),re.current){let t=!0;for(;t&&!a.signal.aborted;){const r=await e.messages(n,{after:ne.current},a.signal);if(a.signal.aborted)return;r.items.length&&(k(e=>ys(e,r.items)),ne.current=r.items.at(-1).sequence,ie.current=Math.max(ie.current,ne.current),ee.current||Y(!0)),t=r.hasMore&&r.items.length>0}}else{ae.current=t.editSequence||0;const r=await e.messages(n,{},a.signal);if(a.signal.aborted)return;k(r.items),O(r.hasMore),ne.current=r.items.at(-1)?.sequence||0,ie.current=ne.current,re.current=!0}if((t.editSequence||0)>ae.current){let t=!0;for(;t&&!a.signal.aborted;){const r=await e.edits(n,ae.current,a.signal);if(a.signal.aborted)return;for(const e of r.items){const n=te.current.get(e.id);(!n||(e.editSequence||0)>=(n.editSequence||0))&&te.current.set(e.id,e)}k(e=>{const n=new Set(e.map(e=>e.id));return ys(e,r.items.filter(e=>n.has(e.id)))}),r.items.length&&(ae.current=r.items.at(-1).editSequence||ae.current),t=r.hasMore&&r.items.length>0}}D(""),z(!1),me()}catch(e){a.signal.aborted||he(e)||D(re.current?i.reconnect:i.error)}finally{t=!1,a.signal.aborted||S(!1)}}}r();const s=setInterval(()=>{r()},3e3),l=()=>{r(),me()};return window.addEventListener("focus",l),document.addEventListener("visibilitychange",l),()=>{a.abort(),clearInterval(s),window.removeEventListener("focus",l),document.removeEventListener("visibilitychange",l)}},[e,n,Z,g,me,he,i]),(0,l.useLayoutEffect)(()=>{const e=Q.current;e&&(ue.current?(e.scrollTop=ue.current.top+e.scrollHeight-ue.current.height,ue.current=null):ee.current&&(e.scrollTop=e.scrollHeight),me())},[N,E,me]),P?(0,a.jsx)("div",{className:"ui-chat-thread",children:(0,a.jsx)(xr,{icon:"Chat",title:i.readOnly,action:(0,a.jsx)(Ta,{variant:"secondary",onClick:d,children:i.back})})}):(0,a.jsxs)("section",{className:"ui-chat-thread","aria-label":w||i.chats,children:[(0,a.jsxs)("header",{className:"ui-chat-thread-header",children:[(0,a.jsx)("button",{type:"button",className:"ui-icon-button ui-chat-mobile-back",onClick:d,"aria-label":i.back,children:(0,a.jsx)(Da,{name:"ArrowRight",className:"ui-chat-arrow-back",size:18})}),(0,a.jsx)("span",{className:"ui-chat-avatar ui-chat-group-avatar",children:(0,a.jsx)(Da,{name:j?"Chat":"Users",size:21})}),(0,a.jsxs)("div",{className:"ui-chat-thread-title",children:[(0,a.jsx)("h2",{children:w||i.loading}),(0,a.jsx)("button",{type:"button",onClick:()=>$(!0),disabled:!x,children:x?j?t.canManage?`${i.generalChat} · ${js(x.owner?.role||"REMOVED",i)}`:i.agencyTeam:`${x.participantCount} ${i.participants}`:i.loading})]}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button","aria-label":y,onClick:()=>$(!0),disabled:!x,children:(0,a.jsx)(Da,{name:"Info",size:19})}),C&&x&&(0,a.jsx)("button",{type:"button",className:"ui-icon-button","aria-label":i.manage,onClick:()=>u(x),children:(0,a.jsx)(Da,{name:"Settings",size:19})}),x&&!x.isUnstarted&&(0,a.jsx)("button",{type:"button",className:"ui-icon-button",disabled:U,"aria-busy":U,"aria-label":x.archived?i.restore:i.archive,title:x.archived?i.restore:i.archive,onClick:()=>{!async function(){if(x&&!x.isUnstarted&&!U){V(!0),G(!1);try{const a=await e.archive(n,!x.archived);ce.current&&(b(a),v(a))}catch(e){ce.current&&!he(e)&&G(!0)}finally{ce.current&&V(!1)}}}()},children:(0,a.jsx)(Da,{name:x.archived?"ArrowNarrowUp":"Archive",size:19})})]}),_&&(0,a.jsx)(br,{tone:"error",children:i.archiveError}),x?.archived&&(0,a.jsxs)("div",{className:"ui-chat-archived-notice",role:"status",children:[(0,a.jsx)(Da,{name:"Archive",size:15,"aria-hidden":"true"}),(0,a.jsx)("span",{children:i.archiveHint})]}),A&&(0,a.jsx)(br,{tone:"error",action:(0,a.jsx)("button",{type:"button",onClick:()=>J(e=>e+1),children:i.retry}),children:A}),(0,a.jsx)("div",{ref:Q,className:"ui-chat-messages",role:"log","aria-label":i.chats,"aria-live":"polite","aria-relevant":"additions text","aria-busy":E,onScroll:()=>{const e=Q.current;ee.current=e.scrollHeight-e.scrollTop-e.clientHeight<70,ee.current&&(Y(!1),me())},children:E?(0,a.jsx)(xr,{loading:!0,loadingLabel:i.loading}):(0,a.jsxs)(a.Fragment,{children:[M&&(0,a.jsx)("div",{className:"ui-chat-load-older",children:(0,a.jsx)(Ta,{variant:"ghost",size:"sm",isLoading:L,onClick:()=>{!async function(){if(L||!N.length)return;const a=new AbortController;de.current=a,q(!0);try{const t=await e.messages(n,{before:N[0].sequence},a.signal);if(a.signal.aborted)return;const r=Q.current;r&&(ue.current={height:r.scrollHeight,top:r.scrollTop}),ee.current=!1,k(e=>{const n=t.items.flatMap(e=>{const n=te.current.get(e.id);return n?[n]:[]});return ys(ys(e,t.items),n)}),O(t.hasMore),D("")}catch(e){a.signal.aborted||he(e)||D(i.error)}finally{a.signal.aborted||q(!1)}}()},children:i.older})}),!N.length&&!A&&(0,a.jsx)(xr,{icon:"Chat",title:j?i.generalFirstMessage:i.firstMessage,description:j?i.generalFirstMessageHint:i.firstMessageHint}),N.map((e,n)=>{const r=e.senderId===t.id,o=ge(e.createdAt),c=0===n||ge(N[n-1].createdAt)!==o,d=!c&&N[n-1].senderId===e.senderId&&new Date(e.createdAt).getTime()-new Date(N[n-1].createdAt).getTime()<3e5;return(0,a.jsxs)(l.Fragment,{children:[c&&(0,a.jsx)("div",{className:"ui-chat-date",children:(0,a.jsx)("span",{children:o})}),(0,a.jsxs)("article",{className:"ui-chat-message","data-own":r,"data-grouped":d,children:[!r&&(0,a.jsx)("span",{className:"ui-chat-avatar ui-chat-message-avatar","data-role":e.senderRole,"aria-hidden":"true",children:!d&&ws(e.senderName)}),(0,a.jsxs)("div",{className:"ui-chat-message-content",children:[!d&&(0,a.jsxs)("div",{className:"ui-chat-sender",children:[(0,a.jsx)("strong",{children:r?i.you:e.senderName}),(0,a.jsx)("span",{children:js(e.senderRole,i)})]}),(0,a.jsxs)("div",{className:"ui-chat-bubble",children:[(0,a.jsx)("p",{dir:"auto",children:e.body}),(0,a.jsxs)("div",{className:"ui-chat-message-meta",children:[r&&(0,a.jsx)("button",{type:"button",className:"ui-chat-edit-message","aria-label":i.editMessage,title:i.editMessage,onClick:()=>W(e),children:(0,a.jsx)(Da,{name:"Pen",size:14,"aria-hidden":"true"})}),(0,a.jsxs)("time",{dateTime:e.createdAt,title:new Date(e.createdAt).toLocaleString(s),children:[e.editedAt&&(0,a.jsxs)("span",{title:new Date(e.editedAt).toLocaleString(s),children:[i.edited," ·"," "]}),new Date(e.createdAt).toLocaleTimeString(s,{hour:"2-digit",minute:"2-digit"}),r&&(0,a.jsx)(Da,{name:"Success",size:12,"aria-hidden":"true"})]})]})]})]})]})]},e.id)})]})}),K&&(0,a.jsxs)("button",{type:"button",className:"ui-chat-new-messages",onClick:()=>{ee.current=!0,Q.current?.scrollTo({top:Q.current.scrollHeight,behavior:"smooth"}),Y(!1),me()},children:[i.newMessages,(0,a.jsx)(Da,{name:"ArrowNarrowDown",size:15})]}),(0,a.jsxs)("form",{className:"ui-chat-composer",onSubmit:e=>{e.preventDefault(),pe()},children:[R&&(0,a.jsx)("p",{role:"alert",className:"ui-chat-send-error",children:i.sendError}),(0,a.jsxs)("div",{className:"ui-chat-composer-field",children:[(0,a.jsx)("textarea",{ref:X,"aria-label":i.composer,placeholder:i.placeholder,rows:2,maxLength:5e3,value:o,disabled:B||p||E||!x,onChange:e=>c(n,e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),pe())}}),(0,a.jsx)("button",{type:"submit",className:"ui-chat-send","aria-label":B||p?i.sending:i.send,disabled:B||p||E||!o.trim()||!x,children:(0,a.jsx)(Da,{name:B||p?"Hourglass":"Send",size:19})})]}),(0,a.jsxs)("div",{className:"ui-chat-composer-help",children:[(0,a.jsx)("span",{children:i.hint}),(0,a.jsxs)("span",{children:[o.length.toLocaleString(s),"/5,000"]})]})]}),I&&x&&(0,a.jsx)(Ur,{open:!0,onClose:()=>$(!1),title:y,description:w,closeLabel:i.close,children:(0,a.jsxs)("div",{className:"ui-chat-details",children:[x.description&&(0,a.jsx)("p",{className:"ui-chat-description",children:x.description}),(0,a.jsxs)("div",{className:"ui-chat-section-label",children:[(0,a.jsx)("strong",{children:i.participants}),(0,a.jsx)("span",{children:x.participantCount})]}),(0,a.jsx)("div",{className:"ui-chat-participants",children:x.participants.map(e=>(0,a.jsxs)("div",{className:"ui-chat-person-option",children:[(0,a.jsx)("span",{className:"ui-chat-avatar","data-role":e.role,children:ws(e.name)}),(0,a.jsx)("span",{className:"ui-chat-person-name",children:(0,a.jsxs)("strong",{children:[e.name,e.id===t.id?` (${i.you})`:""]})}),(0,a.jsx)("span",{className:"ui-chat-role",children:js(e.role,i)})]},e.id))}),(0,a.jsx)("p",{className:"ui-chat-help",children:j?i.generalPrivate:i.private}),C&&(0,a.jsx)(Ta,{variant:"secondary",icon:"Settings",onClick:()=>{$(!1),u(x)},children:i.manage})]})}),F&&(0,a.jsx)(ks,{api:e,chatId:n,message:F,labels:i,onClose:()=>W(null),onSaved:e=>{te.current.set(e.id,e),k(n=>ys(n,[e])),W(null),f()}})]})}function Ss(e){const n=new Map;for(const a of e){const e=a.request?.client||(a.owner?.client?.id?{id:a.owner.client.id,name:a.owner.client.name}:null),t=e?.id||"general";let r=n.get(t);r||(r={id:t,client:e,chats:[]},n.set(t,r)),r.chats.push(a)}return[...n.values()]}function Ms({label:e,kind:n,children:t,chats:r,selected:s,search:i}){const o=(0,l.useId)(),[c,d]=(0,l.useState)(!0),u=r.some(e=>e.id===s);(0,l.useEffect)(()=>{(u||i)&&d(!0)},[u,s,i]);const h=r.reduce((e,n)=>e+n.unreadCount,0);return(0,a.jsxs)("section",{className:"ui-chat-conversation-group","data-kind":n,children:[(0,a.jsxs)("button",{type:"button",className:"ui-chat-group-heading","aria-expanded":c,"aria-controls":o,onClick:()=>d(e=>!e),children:[(0,a.jsx)(Da,{name:"ChevronDown",size:13,className:c?"":"ui-chat-group-collapsed"}),(0,a.jsx)(Da,{name:"client"===n?"Company":"Chat",size:15}),(0,a.jsx)("span",{title:e,children:e}),h>0&&(0,a.jsx)("span",{className:"ui-chat-count",children:h>99?"99+":h})]}),(0,a.jsx)("div",{id:o,className:"ui-chat-group-content",hidden:!c,children:t})]})}function Os({chats:e,grouping:n,selected:t,onSelect:r,locale:s,labels:i,search:l}){function o(e){const n=new Date(e);return n.toDateString()===(new Date).toDateString()?n.toLocaleTimeString(s,{hour:"2-digit",minute:"2-digit"}):n.toLocaleDateString(s,{day:"numeric",month:"short"})}function c(e){const n="GENERAL"===e.kind,s=n&&"general"===e.id;return(0,a.jsxs)("button",{type:"button",className:"ui-chat-list-item","data-active":t===e.id,"aria-current":t===e.id?"true":void 0,onClick:()=>r(e.id),children:[(0,a.jsx)("span",{className:"ui-chat-avatar ui-chat-group-avatar",children:(0,a.jsx)(Da,{name:n?"Chat":"Users",size:18})}),(0,a.jsxs)("span",{className:"ui-chat-list-content",children:[(0,a.jsxs)("span",{className:"ui-chat-list-title",children:[(0,a.jsx)("strong",{children:s?i.generalChat:e.title}),e.updatedAt&&(0,a.jsx)("time",{dateTime:e.updatedAt,children:o(e.updatedAt)})]}),(0,a.jsxs)("span",{className:"ui-chat-list-preview",children:[(0,a.jsx)("span",{children:e.lastMessage?`${e.lastMessage.senderName}: ${e.lastMessage.body}`:n?i.generalHint:e.description||`${e.participantCount} ${i.participants}`}),e.unreadCount>0&&(0,a.jsx)("span",{className:"ui-chat-count","aria-label":`${e.unreadCount} ${i.unread}`,children:e.unreadCount>99?"99+":e.unreadCount})]}),(0,a.jsx)("span",{className:"ui-chat-list-meta",children:n?s?i.agencyTeam:`${i.generalChat} · ${js(e.owner?.role||"REMOVED",i)}`:`${e.participantCount} ${i.participants}`})]})]},e.id)}return(0,a.jsx)(a.Fragment,{children:"none"===n?e.map(c):Ss(e).map(e=>(0,a.jsx)(Ms,{label:e.client?.name||i.general,kind:e.client?"client":"general",chats:e.chats,selected:t,search:l,children:e.chats.map(c)},e.id))})}function Ls({apiBaseUrl:e,locale:n="en",allowManagement:t=!1,grouping:r="none",clientRequestId:s,embedded:i=!1,selectedChatId:o,onSelectChat:c}){const d=(0,l.useMemo)(()=>xs(e),[e]),u=bs[n],[h,m]=(0,l.useState)(null),[p,g]=(0,l.useState)([]),[f,v]=(0,l.useState)(""),[x,b]=(0,l.useState)(!1),[j,w]=(0,l.useState)(!1),[y,C]=(0,l.useState)(0),[N,k]=(0,l.useState)(1),[E,S]=(0,l.useState)(!1),[M,O]=(0,l.useState)(!0),[L,q]=(0,l.useState)(!1),[A,D]=(0,l.useState)(o),P=(0,l.useRef)(!1),[z,R]=(0,l.useState)(null),[T,B]=(0,l.useState)(0),[H,I]=(0,l.useState)({}),$=t&&!!h?.canManage,[F,W]=(0,l.useState)({}),U=(0,l.useRef)(new Map);(0,l.useEffect)(()=>{D(o)},[o]);const V=(0,l.useCallback)((e,n)=>I(a=>({...a,[e]:n})),[]),_=(0,l.useCallback)(()=>B(e=>e+1),[]),G=(0,l.useCallback)((e,n)=>{const a=U.current.get(e);if(a?.promise)return a.promise;const t=a?.body===n?a:{body:n,key:crypto.randomUUID(),promise:void 0};return U.current.set(e,t),W(n=>({...n,[e]:!0})),t.promise=d.send(e,n,t.key).then(a=>(I(a=>a[e]?.trim()===n?{...a,[e]:""}:a),U.current.delete(e),_(),a)).finally(()=>{t.promise=void 0,W(n=>({...n,[e]:!1}))}),t.promise},[d,_]),K=(0,l.useCallback)((e,n)=>{g(a=>a.map(a=>a.id===e?{...a,lastReadSequence:Math.max(n,a.lastReadSequence),unreadCount:Math.max(0,a.messageSequence-Math.max(n,a.lastReadSequence))}:a))},[]);function Y(e){D(e),c?.(e)}function Z(e,n=!1){w(e),b(n),k(1),e!==j&&(g([]),O(!0),Y(void 0))}(0,l.useEffect)(()=>{const e=new AbortController;let n=!1;async function a(){if(!n&&!document.hidden){n=!0;try{let n;const a=[];for(let t=0;t<N;t++){const r=await d.list(f,n,e.signal,s,j);if(e.signal.aborted)return;if(m(r.viewer),C(r.archivedCount||0),0===t&&r.generalChat&&!s&&!i){const e=f.trim().toLocaleLowerCase();e&&!`${u.generalChat} ${u.agencyTeam}`.toLocaleLowerCase().includes(e)||a.push(r.generalChat),P.current||j||(P.current=!0,D(e=>e||r.generalChat.id))}if(a.push(...r.items),n=r.nextCursor||void 0,!n)break}g([...new Map(a.map(e=>[e.id,e])).values()]),i&&D(e=>!P.current&&a.length?(P.current=!0,a[0].id):e&&!a.some(n=>n.id===e)?void 0:e),S(!!n),q(!1)}catch(n){e.signal.aborted||(q(!0),n instanceof vs&&[401,403].includes(n.status)&&(g([]),m(null),R(null)))}finally{n=!1,e.signal.aborted||O(!1)}}}const t=setTimeout(()=>{a()},200),r=setInterval(()=>{a()},8e3),l=()=>{a()};return window.addEventListener("focus",l),document.addEventListener("visibilitychange",l),()=>{e.abort(),clearTimeout(t),clearInterval(r),window.removeEventListener("focus",l),document.removeEventListener("visibilitychange",l)}},[d,f,N,T,s,i,u,j]);const J=p.filter(e=>!x||e.unreadCount>0||e.id===A),Q=p.reduce((e,n)=>e+n.unreadCount,0),X=i&&!p.some(e=>e.id===A)?void 0:A;return!i||M||L||p.length||f||j||y?(0,a.jsxs)("div",{className:"ui-chat-workspace","data-manage":$,"data-embedded":i,children:[i?(0,a.jsxs)("div",{className:"ui-request-chat-heading",children:[(0,a.jsx)("h2",{children:"Chat"}),(0,a.jsx)("p",{children:u.requestChatHint})]}):(0,a.jsx)(pr,{eyebrow:"de"===n?"NACHRICHTEN":"MESSAGES",title:"Chat",subtitle:u.subtitle,actions:$&&(0,a.jsx)(Ta,{icon:"Plus",onClick:()=>R("new"),children:u.newChat})}),(0,a.jsxs)("div",{className:"ui-chat","data-selected":!!X&&!!h,children:[(0,a.jsxs)("aside",{className:"ui-chat-sidebar","aria-label":u.chats,children:[(0,a.jsxs)("div",{className:"ui-chat-sidebar-heading",children:[(0,a.jsx)("h2",{children:u.chats}),Q>0&&(0,a.jsx)("span",{className:"ui-chat-count",children:Q>99?"99+":Q})]}),(0,a.jsx)("div",{className:"ui-chat-search",children:(0,a.jsx)(Za,{icon:"Search",placeholder:u.search,"aria-label":u.search,maxLength:120,value:f,onChange:e=>{v(e.target.value),k(1),O(!0)}})}),(0,a.jsxs)("div",{className:"ui-chat-filters",role:"group","aria-label":u.chats,children:[(0,a.jsx)("button",{type:"button","aria-pressed":!x&&!j,onClick:()=>Z(!1),children:u.all}),(0,a.jsx)("button",{type:"button","aria-pressed":x&&!j,onClick:()=>Z(!1,!0),children:u.unread}),(0,a.jsxs)("button",{type:"button","aria-pressed":j,onClick:()=>Z(!0),children:[u.archived,y>0?` (${y})`:""]})]}),L&&(0,a.jsx)(br,{tone:"error",action:(0,a.jsx)("button",{type:"button",onClick:_,children:u.retry}),children:u.error}),(0,a.jsx)("div",{className:"ui-chat-list","aria-busy":M,children:M&&!p.length?(0,a.jsx)(xr,{loading:!0,loadingLabel:u.loading}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Os,{chats:J,grouping:r,selected:A,onSelect:Y,locale:n,labels:u,search:f}),!J.length&&!L&&(0,a.jsx)(xr,{icon:"Chat",title:j&&!f?u.noArchived:f||x?u.noResults:u.noChats,description:j&&!f?u.noArchivedHint:f||x?u.noResultsHint:$?u.noChatsAdmin:u.noChatsHint}),E&&(0,a.jsx)("div",{className:"ui-chat-load-older",children:(0,a.jsx)(Ta,{variant:"ghost",size:"sm",isLoading:M,onClick:()=>{k(e=>e+1),O(!0)},children:u.more})})]})}),(0,a.jsxs)("div",{className:"ui-chat-sidebar-footer",children:[(0,a.jsx)(Da,{name:"UsersCheck",size:15}),(0,a.jsx)("span",{children:"IT’S YOU AGENCY"})]})]}),X&&h?(0,a.jsx)(Es,{api:d,id:X,viewer:h,canManage:$,locale:n,labels:u,draft:H[X]||"",onDraft:V,onBack:()=>Y(void 0),onManage:R,onRead:K,sendDraft:G,sendingInBackground:!!F[X],refresh:T,onChanged:_,onArchived:e=>{O(!0),C(n=>Math.max(0,n+(e.archived?1:-1))),g(n=>n.filter(n=>n.id!==e.id)),Y(void 0),_()}},X):(0,a.jsxs)("div",{className:"ui-chat-welcome",children:[(0,a.jsx)("div",{className:"ui-chat-welcome-icon",children:(0,a.jsx)(Da,{name:"Chat",size:36})}),(0,a.jsx)("h2",{children:u.choose}),(0,a.jsx)("p",{children:u.chooseHint}),(0,a.jsx)("span",{className:"ui-chat-help",children:$?u.staffInboxHint:u.generalHint}),$&&(0,a.jsx)(Ta,{variant:"secondary",icon:"Plus",onClick:()=>R("new"),children:u.newChat})]})]}),z&&h&&$&&(0,a.jsx)(Ns,{api:d,viewer:h,chat:"new"===z?void 0:z,labels:u,onClose:()=>R(null),onSaved:e=>{R(null),g(n=>[e,...n.filter(n=>n.id!==e.id)]),v(""),b(!1),w(!1),Y(e.id),_()}})]}):(0,a.jsxs)("section",{className:"ui-request-chat-empty","aria-label":"Chat",children:[(0,a.jsx)("h2",{children:"Chat"}),(0,a.jsx)(xr,{icon:"Chat",title:u.noRequestChats,description:u.noRequestChatsHint})]})}function qs({apiBaseUrl:e,clientRequestId:n,locale:t="en",onCancel:r,onCreated:s}){const i=(0,l.useMemo)(()=>xs(e),[e]),o=bs[t],[c,d]=(0,l.useState)(null),[u,h]=(0,l.useState)(!1),[m,p]=(0,l.useState)(0);return(0,l.useEffect)(()=>{const e=new AbortController;return d(null),h(!1),i.requestDraft(n,e.signal).then(n=>{e.signal.aborted||d(n)}).catch(()=>{e.signal.aborted||h(!0)}),()=>e.abort()},[i,n,m]),(0,a.jsxs)("div",{className:"ui-chat-create-page",children:[(0,a.jsx)(pr,{title:o.newChat,subtitle:o.requestCreateHint,onBack:r,backLabel:o.request}),u?(0,a.jsx)(xr,{title:o.error,action:(0,a.jsx)(Ta,{onClick:()=>p(e=>e+1),children:o.retry})}):c?(0,a.jsxs)(a.Fragment,{children:[(c.missingClientAccount||c.missingModelAccounts>0)&&(0,a.jsxs)(br,{tone:"neutral",children:[c.missingClientAccount&&(0,a.jsx)("p",{children:o.missingClientAccount}),c.missingModelAccounts>0&&(0,a.jsxs)("p",{children:[c.missingModelAccounts," ",o.missingModelAccounts]})]}),(0,a.jsx)(Ns,{api:i,viewer:c.viewer,initialValues:c.draft,presentation:"page",lockRequest:!0,labels:o,onClose:r,onSaved:s},n)]}):(0,a.jsx)(xr,{loading:!0,loadingLabel:o.loading})]})}function As({apiBaseUrl:e,clientRequestId:n,locale:t="en"}){return(0,a.jsx)(Ls,{apiBaseUrl:e,clientRequestId:n,locale:t,embedded:!0},n)}function Ds({value:e,onChange:n,disabled:t,label:r,locale:s="de"}){const i=(0,l.useId)(),o=e=>"de"===s?`${e} von 5 Sternen`:`${e} out of 5 stars`;return n?(0,a.jsxs)("fieldset",{className:"ui-star-rating-field",disabled:t,children:[(0,a.jsx)("legend",{className:"ui-field-label",children:r}),(0,a.jsxs)("div",{className:"ui-star-rating",role:"radiogroup","aria-label":r,children:[[1,2,3,4,5].map(t=>(0,a.jsxs)("label",{className:"ui-star-choice","data-selected":t<=e,children:[(0,a.jsx)("input",{type:"radio",name:i,value:t,checked:e===t,onChange:()=>n(t),"aria-label":o(t),required:!0}),(0,a.jsx)(Da,{name:"Star",size:29,fill:t<=e?"currentColor":"none","aria-hidden":"true"})]},t)),(0,a.jsx)("span",{className:"ui-rating-value","aria-live":"polite",children:e?`${e} / 5`:"— / 5"})]})]}):(0,a.jsx)("span",{className:"ui-star-rating",role:"img","aria-label":o(e),children:[1,2,3,4,5].map(n=>(0,a.jsx)(Da,{name:"Star",size:22,fill:n<=e?"currentColor":"none","aria-hidden":"true"},n))})}const Ps={de:{loading:"Bewertungen werden geladen",error:"Bewertungen konnten nicht geladen werden.",retry:"Erneut versuchen",empty:"Noch keine Bewertungen",emptyDescription:"Sobald die Rechnung für den Auftrag erstellt wurde, werden die gebuchten Models und der Kunde zur Bewertung eingeladen.",clientTitle:"Wie war die Zusammenarbeit?",modelTitle:"Wie war dein Auftrag?",staffTitle:"Feedback zum Auftrag",clientDescription:"Bewerten Sie jedes gebuchte Model einzeln. Ihre Erfahrung hilft uns bei künftigen Buchungen.",modelDescription:"Bewerte die Zusammenarbeit mit dem Kunden und deine Erfahrung bei diesem Auftrag.",staffDescription:"Bewertungen der gebuchten Models und des Kunden, an einem Ort.",privacy:"Nur du und das Agenturteam können deine Bewertung und deinen Text lesen.",clientPrivacy:"Nur Sie und das Agenturteam können Ihre Bewertung und Ihren Text lesen.",rating:"Ihre Bewertung",modelRating:"Deine Bewertung",note:"Feedback (optional)",placeholder:"Was lief gut? Was könnte besser sein?",save:"Bewertung abgeben",saved:"Bewertung abgegeben",pending:"Noch offen",teamSaved:"Bereits von Ihrem Team bewertet. Der Inhalt ist nur für die bewertende Person und die Agentur sichtbar.",noComment:"Kein Text hinzugefügt.",clientToModel:"Kunde → Model",modelToClient:"Model → Kunde / Auftrag",completed:"abgegeben",of:"von",scale:"1 = sehr schlecht · 5 = ausgezeichnet",submitError:"Die Bewertung konnte nicht gespeichert werden. Bitte versuche es erneut."},en:{loading:"Loading reviews",error:"Reviews could not be loaded.",retry:"Try again",empty:"No reviews yet",emptyDescription:"Creating the order invoice invites the booked models and the client to leave their feedback.",clientTitle:"How was the collaboration?",modelTitle:"How was your job?",staffTitle:"Order feedback",clientDescription:"Rate each booked model individually. Your experience helps with future bookings.",modelDescription:"Rate working with the client and your experience on this job.",staffDescription:"Feedback from the booked models and the client, in one place.",privacy:"Only you and the agency team can read your rating and feedback.",clientPrivacy:"Only you and the agency team can read your rating and feedback.",rating:"Your rating",modelRating:"Your rating",note:"Feedback (optional)",placeholder:"What went well? What could be better?",save:"Submit review",saved:"Review submitted",pending:"Awaiting review",teamSaved:"Already reviewed by your team. Only the reviewer and the agency can read the feedback.",noComment:"No written feedback.",clientToModel:"Client → model",modelToClient:"Model → client / job",completed:"submitted",of:"of",scale:"1 = very poor · 5 = excellent",submitError:"Your review could not be saved. Please try again."}};async function zs(e,n,a,t){const r=await fetch(e,{credentials:"include",cache:"no-store",signal:t,...a?{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}:{}}),s=await r.json().catch(()=>null);if(!r.ok)throw new Error(s?.message||n);return s}function Rs({review:e,data:n,url:t,onSaved:r,locale:s}){const i=Ps[s],[o,c]=(0,l.useState)(0),[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)(!1),[p,g]=(0,l.useState)(""),f="staff"===n.audience,v="model"===n.audience,x=v?n.order.clientName:e.modelName;return(0,a.jsxs)("article",{className:"ui-review-card",children:[(0,a.jsxs)("header",{className:"ui-review-card-header",children:[(0,a.jsx)("span",{className:"ui-review-avatar","aria-hidden":"true",children:v?(0,a.jsx)(Da,{name:"Company",size:22}):e.modelName.split(" ").slice(0,2).map(e=>e[0]).join("")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{children:x}),(0,a.jsx)("p",{children:f?"CLIENT_TO_MODEL"===e.direction?i.clientToModel:i.modelToClient:n.order.project})]}),(0,a.jsx)(fr,{tone:e.submittedAt?"complete":"neutral",children:e.submittedAt?i.saved:i.pending})]}),e.submittedAt?(0,a.jsx)("div",{className:"ui-review-result",role:"status",children:e.stars?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"ui-review-score",children:[(0,a.jsx)(Ds,{value:e.stars,label:i.rating,locale:s}),(0,a.jsxs)("strong",{children:[e.stars," / 5"]})]}),(0,a.jsx)("p",{className:"ui-review-comment",children:e.comment||i.noComment}),(0,a.jsx)("time",{dateTime:e.submittedAt,children:new Date(e.submittedAt).toLocaleDateString("de"===s?"de-DE":"en-GB",{day:"numeric",month:"short",year:"numeric"})})]}):(0,a.jsx)("p",{children:i.teamSaved})}):e.canSubmit?(0,a.jsxs)("form",{onSubmit:async a=>{if(a.preventDefault(),o&&!h){m(!0),g("");try{r(await zs(t,i.submitError,{orderId:n.order.id,reviewId:e.id,stars:o,comment:d})),window.dispatchEvent(new CustomEvent("itsyou:notifications-changed",{detail:`${t.replace(/\/order-reviews$/,"")}/notifications/${n.audience}`}))}catch(e){g(e instanceof Error?e.message:i.submitError)}finally{m(!1)}}},className:"ui-review-form",children:[(0,a.jsx)(Ds,{value:o,onChange:c,disabled:h,label:v?i.modelRating:i.rating,locale:s}),(0,a.jsx)("p",{className:"ui-review-scale",children:i.scale}),(0,a.jsx)(yr,{label:i.note,hint:`${d.length} / 2.000`,children:(0,a.jsx)("textarea",{className:"ui-input",rows:3,value:d,onChange:e=>u(e.target.value),maxLength:2e3,placeholder:i.placeholder,disabled:h})}),p&&(0,a.jsx)(br,{tone:"error",children:p}),(0,a.jsx)("div",{className:"ui-review-submit",children:(0,a.jsx)(Ta,{type:"submit",disabled:!o,isLoading:h,children:i.save})})]}):(0,a.jsx)("p",{className:"ui-review-awaiting",children:i.pending})]})}function Ts({apiBaseUrl:e,orderId:n,locale:t="de",active:r=!0}){return(0,a.jsx)(Bs,{apiBaseUrl:e,orderId:n,locale:t,active:r},`${e}:${n}`)}function Bs({apiBaseUrl:e,orderId:n,locale:t,active:r}){const s=Ps[t],i=`${e.replace(/\/$/,"")}/order-reviews`,[o,c]=(0,l.useState)(null),[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)(0);if((0,l.useEffect)(()=>{if(!r)return;const e=new AbortController;return zs(`${i}?orderId=${encodeURIComponent(n)}`,s.error,void 0,e.signal).then(n=>{e.signal.aborted||(c(n),u(""))}).catch(n=>{e.signal.aborted||u(n.message||s.error)}),()=>e.abort()},[i,n,h,r,s.error]),!o)return d?(0,a.jsx)(xr,{icon:"Star",title:d,action:(0,a.jsx)(Ta,{onClick:()=>m(e=>e+1),children:s.retry})}):(0,a.jsxs)("div",{role:"status","aria-label":s.loading,className:"ui-reviews-loading",children:[(0,a.jsx)(vr,{className:"h-28"}),(0,a.jsx)(vr,{className:"h-80"})]});if(!o.reviews.length)return(0,a.jsx)(xr,{icon:"Star",title:s.empty,description:s.emptyDescription});const p="staff"===o.audience,g="model"===o.audience,f=o.reviews.filter(e=>e.submittedAt).length;return(0,a.jsxs)("section",{className:"ui-order-reviews",children:[(0,a.jsxs)("header",{className:"ui-reviews-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"ui-reviews-eyebrow",children:o.order.project}),(0,a.jsx)("h2",{children:p?s.staffTitle:g?s.modelTitle:s.clientTitle}),(0,a.jsx)("p",{children:p?s.staffDescription:g?s.modelDescription:s.clientDescription})]}),(0,a.jsxs)("span",{className:"ui-review-progress",children:[f," ",s.of," ",o.reviews.length," ",s.completed]})]}),!p&&(0,a.jsxs)("div",{className:"ui-review-privacy",children:[(0,a.jsx)(Da,{name:"Info",size:18}),(0,a.jsx)("p",{children:g?s.privacy:s.clientPrivacy})]}),d&&(0,a.jsx)(br,{tone:"error",children:d}),(0,a.jsx)("div",{className:"ui-review-grid",children:o.reviews.map(e=>(0,a.jsx)(Rs,{review:e,data:o,url:i,onSaved:c,locale:t},e.id))})]})}return n})());
1
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["@itsyou/ui"]=n():e["@itsyou/ui"]=n()}(Object("undefined"!=typeof self?self:this),()=>(()=>{"use strict";var e={n:n=>{var a=n&&n.__esModule?()=>n.default:()=>n;return e.d(a,{a}),a},d:(n,a)=>{for(var t in a)e.o(a,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:a[t]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{ActionDialog:()=>Ur,ActiveButton:()=>Ba,AutoCompleteDropdown:()=>kt,Badge:()=>fr,Button:()=>Ra,ButtonIcon:()=>Ha,ButtonSubmit:()=>Wa,ButtonText:()=>Ua,CLIENT_CONTRACT_TYPES:()=>Ft,COUNTRIES:()=>Gt,ChatApiError:()=>vs,ChatCreatePage:()=>qs,ChatWorkspace:()=>Ls,ChoiceChips:()=>_r,CommandMenu:()=>dr,ContactDetails:()=>Fr,ContactPopover:()=>Wr,ContractFields:()=>Xr,CopyButton:()=>$r,DashboardLayout:()=>tr,DashboardTabs:()=>_a,DataRegion:()=>Dr,DatePicker:()=>Ja,DocumentEditor:()=>Jr,DocumentPreview:()=>Qr,Dropdown:()=>Qa,EYE_COLORS:()=>Wt,EmptyState:()=>xr,FaqCenter:()=>Or,FileDownloadButton:()=>ns,FileIconLink:()=>Xa,FileMultiUploadDrag:()=>xt,FileUploadDrag:()=>vt,FilterTabs:()=>Lr,FooterMini:()=>jt,FormActions:()=>Vr,FormCard:()=>kr,FormField:()=>yr,GENDERS:()=>Yt,HAIR_COLORS:()=>Ut,Icon:()=>Da,IconButton:()=>rt,ImageFullView:()=>at,InfoTooltip:()=>tt,InlineNotice:()=>br,Input:()=>Za,InputWrapper:()=>Ya,JOB_TYPES:()=>Zt,LANGUAGES:()=>Qt,LOCATIONS:()=>Jt,LearnMoreButton:()=>st,ListSkeleton:()=>Pr,Loader:()=>Ta,Logo:()=>ct,LogoLayout:()=>rr,MatchableSortableTable:()=>Nt,MetricCard:()=>Ar,Modal:()=>Fa,MultiSelectTags:()=>dt,NotificationBell:()=>gs,NotificationInbox:()=>fs,NotificationMenu:()=>mr,OptionButtons:()=>ut,OrderReviews:()=>Rs,Overlay:()=>$a,PERSONAL_TYPES:()=>Kt,PHOTO_TYPES:()=>$t,PageHeader:()=>pr,Pagination:()=>qr,Panel:()=>gr,Paragraph:()=>ht,Progress:()=>zr,REGISTRATION_CONTRACTS:()=>_t,REQUEST_CONTRACTS:()=>Vt,RadioGroup:()=>bt,RequestChat:()=>As,RequestContracts:()=>os,RequestResources:()=>ls,SearchMultiSelect:()=>es,SearchSelect:()=>Hr,Select:()=>Nr,SettingToggle:()=>Gr,Skeleton:()=>vr,StarRating:()=>Ds,Tabs:()=>Va,Tag:()=>mt,TextArea:()=>pt,TextInput:()=>Cr,ToastContainer:()=>Et.ToastContainer,Tooltip:()=>gt,WorkspaceAuthLayout:()=>hr,WorkspaceLayout:()=>ur,WorkspaceLoading:()=>jr,WorkspaceNav:()=>cr,createChatApi:()=>xs,emailReg:()=>Xt,filterSelectOptions:()=>Br,findActiveRoute:()=>lr,flattenNavigation:()=>ir,formatDate:()=>Dt,formatDateRange:()=>zt,formatDateShort:()=>It,formatDateTime:()=>Pt,formatName:()=>Tt,formatNumber:()=>Rt,formatPriceReadable:()=>Bt,formatPriceRounded:()=>Ht,inputClass:()=>wr,isActiveRoute:()=>sr,toasterError:()=>Mt,toasterErrorApi:()=>St,toasterSuccess:()=>Ot,toasterWarning:()=>Lt});const a=require("react/jsx-runtime"),t=require("classnames/dedupe");var r=e.n(t);const s=require("next/link");var i=e.n(s);const l=require("react");var o,c,d,u,h,m,p,g,f,v,x,b,j,w,y,C,N,k,E,S,M,O,L,q,A,D,P,z,T,R,B,H,I,$,F,W,U,V,_,G,K,Y,Z,J,Q,X,ee,ne,ae,te,re,se,ie,le,oe,ce,de,ue,he,me,pe,ge,fe,ve,xe,be,je,we,ye,Ce,Ne,ke,Ee,Se,Me,Oe,Le,qe,Ae,De,Pe,ze,Te,Re,Be,He,Ie,$e,Fe,We,Ue,Ve,_e,Ge,Ke,Ye,Ze,Je,Qe,Xe,en,nn,an;function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},tn.apply(null,arguments)}function rn(){return rn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},rn.apply(null,arguments)}function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},sn.apply(null,arguments)}function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ln.apply(null,arguments)}function on(){return on=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},on.apply(null,arguments)}function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},cn.apply(null,arguments)}function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},dn.apply(null,arguments)}function un(){return un=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},un.apply(null,arguments)}function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},hn.apply(null,arguments)}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},mn.apply(null,arguments)}function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},pn.apply(null,arguments)}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},gn.apply(null,arguments)}function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},fn.apply(null,arguments)}function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},vn.apply(null,arguments)}function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},xn.apply(null,arguments)}function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},bn.apply(null,arguments)}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},jn.apply(null,arguments)}function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},wn.apply(null,arguments)}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},yn.apply(null,arguments)}function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Cn.apply(null,arguments)}function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Nn.apply(null,arguments)}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},kn.apply(null,arguments)}function En(){return En=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},En.apply(null,arguments)}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Sn.apply(null,arguments)}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Mn.apply(null,arguments)}function On(){return On=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},On.apply(null,arguments)}function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Ln.apply(null,arguments)}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},qn.apply(null,arguments)}function An(){return An=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},An.apply(null,arguments)}function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Dn.apply(null,arguments)}function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Pn.apply(null,arguments)}function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},zn.apply(null,arguments)}function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Tn.apply(null,arguments)}function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Rn.apply(null,arguments)}function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Bn.apply(null,arguments)}function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Hn.apply(null,arguments)}function In(){return In=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},In.apply(null,arguments)}function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},$n.apply(null,arguments)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Fn.apply(null,arguments)}function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Wn.apply(null,arguments)}function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Un.apply(null,arguments)}function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Vn.apply(null,arguments)}function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},_n.apply(null,arguments)}function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Gn.apply(null,arguments)}function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Kn.apply(null,arguments)}function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Yn.apply(null,arguments)}function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Zn.apply(null,arguments)}function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Jn.apply(null,arguments)}function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Qn.apply(null,arguments)}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Xn.apply(null,arguments)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ea.apply(null,arguments)}function na(){return na=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},na.apply(null,arguments)}function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},aa.apply(null,arguments)}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ta.apply(null,arguments)}function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ra.apply(null,arguments)}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},sa.apply(null,arguments)}function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ia.apply(null,arguments)}function la(){return la=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},la.apply(null,arguments)}function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},oa.apply(null,arguments)}function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ca.apply(null,arguments)}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},da.apply(null,arguments)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ua.apply(null,arguments)}function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ha.apply(null,arguments)}function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ma.apply(null,arguments)}function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},pa.apply(null,arguments)}function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ga.apply(null,arguments)}function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},fa.apply(null,arguments)}function va(){return va=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},va.apply(null,arguments)}function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},xa.apply(null,arguments)}function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ba.apply(null,arguments)}function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ja.apply(null,arguments)}function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},wa.apply(null,arguments)}function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ya.apply(null,arguments)}function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Ca.apply(null,arguments)}function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Na.apply(null,arguments)}function ka(){return ka=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},ka.apply(null,arguments)}function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Ea.apply(null,arguments)}function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Sa.apply(null,arguments)}function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Ma.apply(null,arguments)}function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},Oa.apply(null,arguments)}function La(){return La=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},La.apply(null,arguments)}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},qa.apply(null,arguments)}const Aa={Archive:e=>l.createElement("svg",qa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),an||(an=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8v11a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V8M9 12h6M3 4h18v4H3z"}))),Upload:e=>l.createElement("svg",aa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ce||(Ce=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"}))),Download:e=>l.createElement("svg",wa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),_e||(_e=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}))),User:e=>l.createElement("svg",ba({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ue||(Ue=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0"}))),Copy:e=>l.createElement("svg",xa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),We||(We=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.5 2.003c-.675.009-1.08.048-1.408.215a2 2 0 0 0-.874.874c-.167.328-.206.733-.215 1.408M19.5 2.003c.675.009 1.08.048 1.408.215a2 2 0 0 1 .874.874c.167.328.206.733.215 1.408m0 9c-.009.675-.048 1.08-.215 1.408a2 2 0 0 1-.874.874c-.328.167-.733.206-1.408.215M22 8v2m-8-8h2M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22"}))),Invoice:e=>l.createElement("svg",fa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),$e||($e=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V8z"}))),Send:e=>l.createElement("svg",va({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Fe||(Fe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.5 13.5 21 3M10.627 13.828l2.628 6.758c.232.596.347.893.514.98a.5.5 0 0 0 .462 0c.167-.086.283-.384.515-.979L21.336 3.7c.21-.537.315-.805.258-.977a.5.5 0 0 0-.316-.316c-.172-.057-.44.048-.978.257L3.413 9.253c-.595.233-.893.349-.98.516a.5.5 0 0 0 0 .461c.087.167.385.283.98.515l6.759 2.628c.12.047.18.07.232.106a.5.5 0 0 1 .116.117c.037.051.06.111.107.232"}))),Camera:e=>l.createElement("svg",ha({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Te||(Te=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 3 5.12 3 6.8 3h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 5.28 22 6.12 22 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"})),Re||(Re=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8"}))),Eye:e=>l.createElement("svg",ra({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ke||(ke=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.2 1.2 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287"})),Ee||(Ee=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"}))),ChevronDown:e=>l.createElement("svg",tn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m6 9 6 6 6-6"}))),Close:e=>l.createElement("svg",rn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),c||(c=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"}))),Menu:e=>l.createElement("svg",sn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),d||(d=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"}))),Bell:e=>l.createElement("svg",ln({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),u||(u=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.354 21c.705.622 1.632 1 2.646 1s1.94-.378 2.646-1M18 8A6 6 0 1 0 6 8c0 3.09-.78 5.206-1.65 6.605-.735 1.18-1.102 1.771-1.089 1.936.015.182.054.252.2.36.133.099.732.099 1.928.099H18.61c1.196 0 1.795 0 1.927-.098.147-.11.186-.179.2-.361.014-.165-.353-.755-1.088-1.936C18.78 13.206 18 11.09 18 8"}))),Search:e=>l.createElement("svg",In({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),J||(J=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0"}))),Marker:e=>l.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),p||(p=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6"})),g||(g=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 22c4-4 8-7.582 8-12a8 8 0 1 0-16 0c0 4.418 4 8 8 12"}))),Play:e=>l.createElement("svg",dn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),f||(f=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 4.99c0-.972 0-1.457.202-1.725a1 1 0 0 1 .738-.395c.335-.02.74.25 1.548.788l10.515 7.01c.668.446 1.002.668 1.118.949a1 1 0 0 1 0 .766c-.116.28-.45.503-1.118.948l-10.515 7.01c-.809.54-1.213.809-1.548.789a1 1 0 0 1-.738-.395C5 20.467 5 19.98 5 19.01z"}))),PlayCircle:e=>l.createElement("svg",fn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),y||(y=l.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"})),C||(C=l.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.5 8.965c0-.477 0-.716.1-.849a.5.5 0 0 1 .364-.199c.166-.012.367.117.769.375l4.72 3.035c.349.224.523.336.583.478a.5.5 0 0 1 0 .39c-.06.142-.234.254-.583.478l-4.72 3.035c-.402.258-.603.387-.769.375a.5.5 0 0 1-.364-.2c-.1-.132-.1-.371-.1-.848z"}))),Pause:e=>l.createElement("svg",un({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"currentColor",strokeWidth:0,"aria-hidden":"true",viewBox:"0 0 20 20"},e),v||(v=l.createElement("path",{stroke:"none",d:"M5.75 3a.75.75 0 0 0-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 0 0 .75-.75V3.75A.75.75 0 0 0 7.25 3zm7 0a.75.75 0 0 0-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 0 0 .75-.75V3.75a.75.75 0 0 0-.75-.75z"}))),Company:e=>l.createElement("svg",gn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),w||(w=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7.5 7h2.75M7.5 11h2.75M7.5 15h2.75m3.5-8h2.75m-2.75 4h2.75m-2.75 4h2.75m3.5 6V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C18.48 3 17.92 3 16.8 3H7.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C4 4.52 4 5.08 4 6.2V21m18 0H2"}))),ArrowRight:e=>l.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),N||(N=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 12h16m0 0-6-6m6 6-6 6"}))),Star:e=>l.createElement("svg",pn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),j||(j=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.283 3.453c.23-.467.345-.7.502-.775a.5.5 0 0 1 .43 0c.157.075.272.308.502.775l2.187 4.43c.068.138.102.207.152.26a.5.5 0 0 0 .155.114c.067.03.143.042.295.064l4.891.715c.515.075.773.113.892.238a.5.5 0 0 1 .133.41c-.023.172-.21.353-.582.716L17.3 13.846c-.11.108-.165.162-.2.226a.5.5 0 0 0-.06.183c-.009.072.004.148.03.3l.835 4.867c.088.514.132.77.05.922a.5.5 0 0 1-.349.253c-.17.032-.4-.09-.862-.332l-4.373-2.3c-.136-.07-.204-.107-.276-.12a.5.5 0 0 0-.192 0c-.072.013-.14.05-.276.12l-4.373 2.3c-.461.243-.692.364-.862.332a.5.5 0 0 1-.348-.253c-.083-.152-.039-.409.05-.922l.834-4.867c.026-.152.039-.228.03-.3a.5.5 0 0 0-.06-.184c-.035-.063-.09-.117-.2-.225L3.16 10.4c-.373-.363-.56-.544-.582-.716a.5.5 0 0 1 .132-.41c.12-.125.377-.163.892-.238l4.891-.715c.152-.022.228-.034.295-.064a.5.5 0 0 0 .155-.113c.05-.054.084-.123.152-.26z"}))),Clock:e=>l.createElement("svg",hn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),x||(x=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}))),Euro:e=>l.createElement("svg",mn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),b||(b=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.333 8.273a5 5 0 1 0 0 7.454M6 13.5h5m-5-3h5M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}))),QuestionMark:e=>l.createElement("svg",xn({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 512 512"},e),k||(k=l.createElement("path",{stroke:"none",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248M262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102M256 338c-25.365 0-46 20.635-46 46s20.635 46 46 46 46-20.636 46-46-20.635-46-46-46"}))),Product:e=>l.createElement("svg",bn({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",fillRule:"evenodd",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 1024 1024"},e),E||(E=l.createElement("path",{stroke:"none",d:"M464 144c8.837 0 16 7.163 16 16v304c0 8.836-7.163 16-16 16H160c-8.837 0-16-7.164-16-16V160c0-8.837 7.163-16 16-16zm-52 68H212v200h200zm493.333 87.686c6.248 6.248 6.248 16.379 0 22.627l-181.02 181.02c-6.248 6.248-16.378 6.248-22.627 0l-181.019-181.02c-6.248-6.248-6.248-16.379 0-22.627l181.02-181.02c6.248-6.248 16.378-6.248 22.627 0zm-84.853 11.313L713 203.52 605.52 311 713 418.48zM464 544c8.837 0 16 7.164 16 16v304c0 8.837-7.163 16-16 16H160c-8.837 0-16-7.163-16-16V560c0-8.836 7.163-16 16-16zm-52 68H212v200h200zm452-68c8.837 0 16 7.164 16 16v304c0 8.837-7.163 16-16 16H560c-8.837 0-16-7.163-16-16V560c0-8.836 7.163-16 16-16zm-52 68H612v200h200z"}))),HeartHand:e=>l.createElement("svg",jn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),S||(S=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 20.087h2.61c.34 0 .679.04 1.009.122l2.758.67c.598.146 1.222.16 1.826.042l3.05-.593a4.2 4.2 0 0 0 2.127-1.107l2.158-2.1a1.503 1.503 0 0 0 0-2.168 1.61 1.61 0 0 0-2.06-.143l-2.515 1.835c-.36.263-.799.405-1.25.405h-2.427 1.545c.871 0 1.577-.687 1.577-1.534v-.307c0-.703-.492-1.317-1.194-1.487l-2.385-.58A5 5 0 0 0 11.643 13c-.965 0-2.711.799-2.711.799L6 15.025M2 14.6v5.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C2.76 22 3.04 22 3.6 22h.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C6 21.24 6 20.96 6 20.4v-5.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C5.24 13 4.96 13 4.4 13h-.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C2 13.76 2 14.04 2 14.6M17.191 3.592c-.596-1.249-1.972-1.91-3.31-1.272-1.339.639-1.909 2.153-1.348 3.483.346.821 1.338 2.417 2.045 3.516.261.406.392.61.583.728.164.102.369.157.561.15.225-.007.44-.118.87-.339 1.161-.598 2.818-1.483 3.529-2.022a2.66 2.66 0 0 0 .574-3.69c-.861-1.217-2.362-1.337-3.504-.554"}))),Section:e=>l.createElement("svg",wn({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 16 16"},e),M||(M=l.createElement("path",{stroke:"none",d:"M7.749 16c-.771 0-1.424-.225-1.939-.669-.519-.447-.782-.969-.782-1.552a.98.98 0 0 1 .307-.726c.207-.202.465-.309.748-.309.281 0 .534.1.732.29.195.187.294.435.294.736q0 .267-.086.58a1.5 1.5 0 0 0-.068.364c0 .058.014.126.121.199.199.138.439.204.732.204.353 0 .667-.123.962-.375.29-.249.431-.505.431-.782 0-.308-.082-.575-.252-.816-.287-.402-.826-.874-1.603-1.401-1.248-.835-2.079-1.559-2.54-2.211-.358-.511-.539-1.061-.539-1.636 0-.579.19-1.155.564-1.713.32-.477.794-.908 1.41-1.283q-.496-.534-.736-.995a2.57 2.57 0 0 1-.303-1.189c0-.747.295-1.393.878-1.92S7.39.001 8.241.001c.783 0 1.441.22 1.956.654.521.439.785.952.785 1.524q0 .44-.324.776l-.004.004c-.125.124-.353.271-.735.271-.299 0-.561-.098-.758-.283a.88.88 0 0 1-.296-.656c0-.108.027-.272.084-.515q.042-.173.042-.316a.48.48 0 0 0-.183-.39C8.679.962 8.494.909 8.243.909c-.389 0-.708.118-.975.361s-.399.533-.399.883q0 .474.212.771c.267.374.731.778 1.378 1.201 1.315.853 2.233 1.636 2.727 2.325.365.518.549 1.068.549 1.637 0 .572-.186 1.148-.552 1.714-.316.487-.793.926-1.42 1.308.347.367.591.688.743.977.189.359.284.751.284 1.165 0 .776-.296 1.435-.879 1.96s-1.31.79-2.161.79zM6.975 5.568c-.753.452-1.12.972-1.12 1.583 0 .356.102.674.31.973.311.436.926.97 1.825 1.583q.572.39 1.025.751c.767-.461 1.14-.974 1.14-1.565q0-.485-.378-1.03c-.263-.378-.826-.872-1.674-1.467a21 21 0 0 1-1.128-.827z"}))),SearchCircle:e=>l.createElement("svg",on({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 36 36"},e),h||(h=l.createElement("rect",{width:33,height:33,x:1.5,y:1.5,stroke:"currentColor",strokeWidth:3,rx:16.5})),m||(m=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m27 27-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0"}))),ZapFast:e=>l.createElement("svg",yn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),O||(O=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 17.5H3.5m3-5.5H2m7-5.5H4M17 3l-6.596 9.235c-.292.409-.438.613-.432.784a.5.5 0 0 0 .194.377c.135.104.386.104.889.104H16L15 21l6.596-9.235c.292-.409.438-.613.432-.784a.5.5 0 0 0-.194-.377c-.135-.104-.386-.104-.889-.104H16z"}))),Free:e=>l.createElement("svg",Cn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),L||(L=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.901 4.999c.206.498.601.893 1.1 1.1l1.744.723a2.033 2.033 0 0 1 1.1 2.656l-.722 1.744a2.03 2.03 0 0 0 0 1.556l.722 1.744a2.033 2.033 0 0 1-1.1 2.656L19 17.902A2.03 2.03 0 0 0 17.9 19l-.723 1.745a2.03 2.03 0 0 1-2.656 1.1l-1.744-.722a2.03 2.03 0 0 0-1.555 0l-1.745.723a2.033 2.033 0 0 1-2.654-1.1L6.1 19.001A2.03 2.03 0 0 0 5 17.9l-1.744-.723a2.033 2.033 0 0 1-1.1-2.654l.721-1.745a2.03 2.03 0 0 0 0-1.555l-.722-1.746a2.033 2.033 0 0 1 1.1-2.657L5 6.098c.498-.206.893-.6 1.1-1.098l.723-1.745a2.033 2.033 0 0 1 2.656-1.1l1.744.722a2.03 2.03 0 0 0 1.555-.001l1.746-.72a2.03 2.03 0 0 1 2.655 1.1l.723 1.746z"})),q||(q=l.createElement("mask",{id:"free_svg__a",width:15.556,height:15.556,x:3.586,y:3.686,fill:"currentColor",maskUnits:"userSpaceOnUse"},l.createElement("path",{fill:"#fff",d:"M3.586 3.686h15.556v15.556H3.586z"}),l.createElement("path",{d:"M8.519 18.035a.35.35 0 0 1-.242.106.35.35 0 0 1-.242-.106l-2.793-2.793a.33.33 0 0 1-.102-.237q0-.146.102-.247l1.931-1.931a.31.31 0 0 1 .242-.097q.136 0 .237.102a.34.34 0 0 1 .102.237.31.31 0 0 1-.097.242L5.968 15l.833.832 1.287-1.287a.31.31 0 0 1 .242-.097.35.35 0 0 1 .242.107.325.325 0 0 1 0 .474l-1.287 1.288 1.234 1.234q.101.102.101.247 0 .135-.101.237M11.636 14.908a.33.33 0 0 1-.232.097.3.3 0 0 1-.228-.083l-1.96-1.96a.32.32 0 0 1-.097-.232.34.34 0 0 1 .334-.334.3.3 0 0 1 .237.092l.146.145q-.15-.624.26-1.036.247-.246.49-.218a.7.7 0 0 1 .435.213l.145.146a.317.317 0 0 1 0 .455q-.116.115-.242.106a.37.37 0 0 1-.217-.111l-.063-.063q-.078-.078-.184.029-.087.087-.116.29a1.4 1.4 0 0 0 0 .368q.024.227.116.387.097.155.27.33l.916.924a.3.3 0 0 1 .082.227.32.32 0 0 1-.092.228M14.589 11.955q-.344.344-.765.474-.42.122-.847.005a1.84 1.84 0 0 1-.803-.493 1.84 1.84 0 0 1-.446-.717 1.65 1.65 0 0 1-.063-.837q.083-.421.402-.74.295-.296.624-.383.33-.097.6-.039.271.059.402.189.063.063.083.16a.5.5 0 0 1-.01.213l-.552 2.042a.67.67 0 0 0 .47-.005q.255-.09.47-.304a.9.9 0 0 0 .27-.688q0-.154.082-.237a.3.3 0 0 1 .223-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.204q.015.284-.107.62-.12.323-.343.546m-1.433-2.12a.5.5 0 0 0-.315.015.8.8 0 0 0-.304.198.9.9 0 0 0-.276.653q.005.373.251.678.063.082.165.184zM17.305 9.239q-.344.344-.765.474-.42.12-.847.005a1.84 1.84 0 0 1-.803-.494 1.84 1.84 0 0 1-.446-.716 1.65 1.65 0 0 1-.062-.837q.082-.422.401-.74.295-.297.625-.383.33-.098.6-.039.27.058.402.189.062.063.082.16a.5.5 0 0 1-.01.212l-.552 2.043a.67.67 0 0 0 .47-.005q.255-.092.47-.305a.9.9 0 0 0 .27-.687q0-.155.083-.237a.3.3 0 0 1 .222-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.203q.014.285-.106.62-.122.324-.344.547m-1.433-2.12a.5.5 0 0 0-.314.014.8.8 0 0 0-.305.199.9.9 0 0 0-.276.653q.004.373.252.678.062.082.164.184z"}))),A||(A=l.createElement("path",{fill:"currentColor",d:"M8.519 18.035a.35.35 0 0 1-.242.106.35.35 0 0 1-.242-.106l-2.793-2.793a.33.33 0 0 1-.102-.237q0-.146.102-.247l1.931-1.931a.31.31 0 0 1 .242-.097q.136 0 .237.102a.34.34 0 0 1 .102.237.31.31 0 0 1-.097.242L5.968 15l.833.832 1.287-1.287a.31.31 0 0 1 .242-.097.35.35 0 0 1 .242.107.325.325 0 0 1 0 .474l-1.287 1.288 1.234 1.234q.101.102.101.247 0 .135-.101.237M11.636 14.908a.33.33 0 0 1-.232.097.3.3 0 0 1-.228-.083l-1.96-1.96a.32.32 0 0 1-.097-.232.34.34 0 0 1 .334-.334.3.3 0 0 1 .237.092l.146.145q-.15-.624.26-1.036.247-.246.49-.218a.7.7 0 0 1 .435.213l.145.146a.317.317 0 0 1 0 .455q-.116.115-.242.106a.37.37 0 0 1-.217-.111l-.063-.063q-.078-.078-.184.029-.087.087-.116.29a1.4 1.4 0 0 0 0 .368q.024.227.116.387.097.155.27.33l.916.924a.3.3 0 0 1 .082.227.32.32 0 0 1-.092.228M14.589 11.955q-.344.344-.765.474-.42.122-.847.005a1.84 1.84 0 0 1-.803-.493 1.84 1.84 0 0 1-.446-.717 1.65 1.65 0 0 1-.063-.837q.083-.421.402-.74.295-.296.624-.383.33-.097.6-.039.271.059.402.189.063.063.083.16a.5.5 0 0 1-.01.213l-.552 2.042a.67.67 0 0 0 .47-.005q.255-.09.47-.304a.9.9 0 0 0 .27-.688q0-.154.082-.237a.3.3 0 0 1 .223-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.204q.015.284-.107.62-.12.323-.343.546m-1.433-2.12a.5.5 0 0 0-.315.015.8.8 0 0 0-.304.198.9.9 0 0 0-.276.653q.005.373.251.678.063.082.165.184zM17.305 9.239q-.344.344-.765.474-.42.12-.847.005a1.84 1.84 0 0 1-.803-.494 1.84 1.84 0 0 1-.446-.716 1.65 1.65 0 0 1-.062-.837q.082-.422.401-.74.295-.297.625-.383.33-.098.6-.039.27.058.402.189.062.063.082.16a.5.5 0 0 1-.01.212l-.552 2.043a.67.67 0 0 0 .47-.005q.255-.092.47-.305a.9.9 0 0 0 .27-.687q0-.155.083-.237a.3.3 0 0 1 .222-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.203q.014.285-.106.62-.122.324-.344.547m-1.433-2.12a.5.5 0 0 0-.314.014.8.8 0 0 0-.305.199.9.9 0 0 0-.276.653q.004.373.252.678.062.082.164.184z"})),D||(D=l.createElement("path",{stroke:"currentColor",strokeWidth:.4,d:"M8.519 18.035a.35.35 0 0 1-.242.106.35.35 0 0 1-.242-.106l-2.793-2.793a.33.33 0 0 1-.102-.237q0-.146.102-.247l1.931-1.931a.31.31 0 0 1 .242-.097q.136 0 .237.102a.34.34 0 0 1 .102.237.31.31 0 0 1-.097.242L5.968 15l.833.832 1.287-1.287a.31.31 0 0 1 .242-.097.35.35 0 0 1 .242.107.325.325 0 0 1 0 .474l-1.287 1.288 1.234 1.234q.101.102.101.247 0 .135-.101.237ZM11.636 14.908a.33.33 0 0 1-.232.097.3.3 0 0 1-.228-.083l-1.96-1.96a.32.32 0 0 1-.097-.232.34.34 0 0 1 .334-.334.3.3 0 0 1 .237.092l.146.145q-.15-.624.26-1.036.247-.246.49-.218a.7.7 0 0 1 .435.213l.145.146a.317.317 0 0 1 0 .455q-.116.115-.242.106a.37.37 0 0 1-.217-.111l-.063-.063q-.078-.078-.184.029-.087.087-.116.29a1.4 1.4 0 0 0 0 .368q.024.227.116.387.097.155.27.33l.916.924a.3.3 0 0 1 .082.227.32.32 0 0 1-.092.228ZM14.589 11.955q-.344.344-.765.474-.42.122-.847.005a1.84 1.84 0 0 1-.803-.493 1.84 1.84 0 0 1-.446-.717 1.65 1.65 0 0 1-.063-.837q.083-.421.402-.74.295-.296.624-.383.33-.097.6-.039.271.059.402.189.063.063.083.16a.5.5 0 0 1-.01.213l-.552 2.042a.67.67 0 0 0 .47-.005q.255-.09.47-.304a.9.9 0 0 0 .27-.688q0-.154.082-.237a.3.3 0 0 1 .223-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.204q.015.284-.107.62-.12.323-.343.546Zm-1.433-2.12a.5.5 0 0 0-.315.015.8.8 0 0 0-.304.198.9.9 0 0 0-.276.653q.005.373.251.678.063.082.165.184zM17.305 9.239q-.344.344-.765.474-.42.12-.847.005a1.84 1.84 0 0 1-.803-.494 1.84 1.84 0 0 1-.446-.716 1.65 1.65 0 0 1-.062-.837q.082-.422.401-.74.295-.297.625-.383.33-.098.6-.039.27.058.402.189.062.063.082.16a.5.5 0 0 1-.01.212l-.552 2.043a.67.67 0 0 0 .47-.005q.255-.092.47-.305a.9.9 0 0 0 .27-.687q0-.155.083-.237a.3.3 0 0 1 .222-.097.29.29 0 0 1 .223.087.3.3 0 0 1 .087.203q.014.285-.106.62-.122.324-.344.547Zm-1.433-2.12a.5.5 0 0 0-.314.014.8.8 0 0 0-.305.199.9.9 0 0 0-.276.653q.004.373.252.678.062.082.164.184z",mask:"url(#free_svg__a)"}))),Google:e=>l.createElement("svg",Nn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24"},e),P||(P=l.createElement("g",{clipPath:"url(#google_svg__a)"},l.createElement("path",{fill:"#4285F4",d:"M24.266 12.277c0-.816-.066-1.636-.207-2.439H12.74v4.621h6.482a5.55 5.55 0 0 1-2.399 3.647v2.998h3.867c2.271-2.09 3.576-5.177 3.576-8.827"}),l.createElement("path",{fill:"#34A853",d:"M12.74 24c3.236 0 5.966-1.062 7.954-2.896l-3.867-2.998c-1.075.731-2.464 1.146-4.083 1.146-3.13 0-5.785-2.112-6.737-4.952h-3.99v3.091a12 12 0 0 0 10.723 6.61"}),l.createElement("path",{fill:"#FBBC04",d:"M6.003 14.3a7.2 7.2 0 0 1 0-4.594V6.615H2.017a12.01 12.01 0 0 0 0 10.776z"}),l.createElement("path",{fill:"#EA4335",d:"M12.74 4.75a6.52 6.52 0 0 1 4.603 1.799l3.426-3.426A11.53 11.53 0 0 0 12.74 0 12 12 0 0 0 2.016 6.615l3.987 3.09C6.95 6.863 9.609 4.75 12.74 4.75"}))),z||(z=l.createElement("defs",null,l.createElement("clipPath",{id:"google_svg__a"},l.createElement("path",{fill:"#fff",d:"M.5 0h24v24H.5z"}))))),Monitor:e=>l.createElement("svg",kn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),T||(T=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17"}))),Chat:e=>l.createElement("svg",En({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),R||(R=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.094 11.229A8 8 0 0 1 6 10c0-4.418 3.605-8 8.053-8 4.447 0 8.052 3.582 8.052 8 0 .998-.184 1.954-.52 2.835-.07.182-.105.274-.12.345a1 1 0 0 0-.024.194c-.002.073.008.153.028.314l.403 3.27c.043.355.065.532.006.66a.5.5 0 0 1-.257.252c-.13.055-.306.03-.66-.022l-3.184-.467c-.167-.024-.25-.037-.326-.036a1 1 0 0 0-.2.021c-.074.016-.169.051-.358.122a8.174 8.174 0 0 1-4.07.42M7.632 22C10.597 22 13 19.538 13 16.5S10.597 11 7.632 11s-5.369 2.462-5.369 5.5c0 .61.097 1.198.277 1.747.075.232.113.348.126.427.013.083.015.13.01.213-.005.08-.025.17-.065.351L2 22l2.995-.409c.163-.022.245-.034.316-.033.076 0 .115.005.19.02.07.013.173.05.381.123a5.3 5.3 0 0 0 1.75.299"}))),MessageSmile:e=>l.createElement("svg",Sn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),B||(B=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 14s1.312 1.5 3.5 1.5S16 14 16 14m-.75-5h.01M9.75 9h.01m2.74 11a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20m3.25-11a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-5.5 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0"}))),Phone:e=>l.createElement("svg",Mn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),H||(H=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.38 8.853a14.6 14.6 0 0 0 2.847 4.01 14.6 14.6 0 0 0 4.01 2.847c.124.06.187.09.265.112.28.082.625.023.862-.147.067-.048.124-.105.239-.219.35-.35.524-.524.7-.639a2 2 0 0 1 2.18 0c.176.115.35.29.7.64l.195.194c.532.531.797.797.942 1.082a2 2 0 0 1 0 1.806c-.145.285-.41.551-.942 1.082l-.157.158c-.53.53-.795.794-1.155.997-.4.224-1.02.386-1.478.384-.413-.001-.695-.081-1.26-.241a19.04 19.04 0 0 1-8.283-4.874A19.04 19.04 0 0 1 3.17 7.761c-.16-.564-.24-.846-.241-1.26a3.4 3.4 0 0 1 .384-1.477c.202-.36.467-.625.997-1.155l.157-.158c.532-.53.798-.797 1.083-.941a2 2 0 0 1 1.805 0c.286.144.551.41 1.083.942l.195.194c.35.35.524.525.638.7a2 2 0 0 1 0 2.18c-.114.177-.289.352-.638.701-.115.114-.172.172-.22.238-.17.238-.228.582-.147.862.023.08.053.142.113.266"}))),Success:e=>l.createElement("svg",On({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),I||(I=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M21.499 1.549 7.175 15.373l-3.801-4.061c-.7-.66-1.8-.7-2.601-.14-.78.58-1 1.6-.52 2.42l4.501 7.322c.44.68 1.2 1.1 2.06 1.1.82 0 1.601-.42 2.041-1.1.72-.94 14.464-17.324 14.464-17.324 1.8-1.84-.38-3.461-1.82-2.061z",clipRule:"evenodd"}))),Dot:e=>l.createElement("svg",Ln({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 10"},e),$||($=l.createElement("circle",{cx:5,cy:5,r:5,fill:"currentColor"}))),Calendar:e=>l.createElement("svg",qn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),F||(F=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22"}))),FilterLines:e=>l.createElement("svg",An({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),W||(W=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 12h12M3 6h18M9 18h6"}))),Users:e=>l.createElement("svg",Dn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),U||(U=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M22 21v-2a4 4 0 0 0-3-3.874M15.5 3.291a4.001 4.001 0 0 1 0 7.418M17 21c0-1.864 0-2.796-.305-3.53a4 4 0 0 0-2.164-2.165C13.796 15 12.864 15 11 15H8c-1.864 0-2.796 0-3.53.305a4 4 0 0 0-2.166 2.164C2 18.204 2 19.136 2 21M13.5 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}))),UsersCheck:e=>l.createElement("svg",Pn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),V||(V=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m16 18 2 2 4-4m-10-1H8c-1.864 0-2.796 0-3.53.305a4 4 0 0 0-2.166 2.164C2 18.204 2 19.136 2 21M15.5 3.29a4.001 4.001 0 0 1 0 7.42M13.5 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}))),ClockRewind:e=>l.createElement("svg",zn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),_||(_=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m22.7 13.5-2-2-2 2M21 12a9 9 0 1 1-1.245-4.57M12 7v5l3 2"}))),Bookmark:e=>l.createElement("svg",Tn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),G||(G=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C7.28 3 8.12 3 9.8 3h4.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 5.28 19 6.12 19 7.8V21l-7-4-7 4z"}))),Help:e=>l.createElement("svg",Rn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),K||(K=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3m.08 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}))),Home:e=>l.createElement("svg",Bn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Y||(Y=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 17h8M11.018 2.764 4.235 8.039c-.453.353-.68.53-.843.75a2 2 0 0 0-.318.65C3 9.704 3 9.991 3 10.565V17.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-7.235c0-.574 0-.861-.074-1.126a2 2 0 0 0-.318-.65c-.163-.22-.39-.397-.843-.75l-6.783-5.275c-.351-.273-.527-.41-.72-.462a1 1 0 0 0-.523 0c-.194.052-.37.189-.721.462"}))),Profile:e=>l.createElement("svg",Hn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Z||(Z=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 21.817C4.603 22 5.416 22 6.8 22h10.4c1.384 0 2.197 0 2.8-.183m-16 0a2 2 0 0 1-.362-.144 3 3 0 0 1-1.311-1.311C2 19.72 2 18.88 2 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 4.28 22 5.12 22 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311 2 2 0 0 1-.362.144m-16 0c0-.809.005-1.237.077-1.597a4 4 0 0 1 3.143-3.143C7.606 17 8.07 17 9 17h6c.93 0 1.394 0 1.78.077a4 4 0 0 1 3.143 3.143c.072.36.077.788.077 1.597M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}))),Settings:e=>l.createElement("svg",$n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Q||(Q=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.43 2.43 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.43 2.43 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.43 2.43 0 0 1-1.47-.312 2.43 2.43 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.43 2.43 0 0 1 2.474 1.43"})),X||(X=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"}))),Rows:e=>l.createElement("svg",Fn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ee||(ee=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.8 10c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 8.48 21 7.92 21 6.8v-.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 10 5.08 10 6.2 10zM17.8 21c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 14 18.92 14 17.8 14H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 15.52 3 16.08 3 17.2v.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21z"}))),Pen:e=>l.createElement("svg",Wn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ne||(ne=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 2 4 4M2 22l1.276-4.68c.084-.305.125-.458.19-.6q.085-.19.207-.36c.092-.125.204-.237.428-.46L14.434 5.565c.198-.198.297-.297.412-.334a.5.5 0 0 1 .309 0c.114.037.213.136.41.334l2.87 2.868c.197.198.296.297.333.411.033.1.033.21 0 .31-.037.114-.136.213-.334.41L8.101 19.9c-.224.224-.336.336-.462.428a2 2 0 0 1-.358.208c-.143.064-.296.105-.6.189z"}))),Info:e=>l.createElement("svg",Un({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ae||(ae=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"}))),ArrowNarrowDown:e=>l.createElement("svg",Vn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),te||(te=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m0 0 6-6m-6 6-6-6"}))),ArrowNarrowUp:e=>l.createElement("svg",_n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),re||(re=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 20V4m0 0-6 6m6-6 6 6"}))),Switch:e=>l.createElement("svg",Gn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),se||(se=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 17H4m0 0 4-4m-4 4 4 4M4 7h16m0 0-4-4m4 4-4 4"}))),FileCheck:e=>l.createElement("svg",Kn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ie||(ie=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12.5V6.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 2 16.88 2 15.2 2H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22H12m2-11H8m2 4H8m8-8H8m6.5 12 2 2 4.5-4.5"}))),Dish:e=>l.createElement("svg",Yn({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 24 24"},e),le||(le=l.createElement("path",{stroke:"none",d:"M21 15c0-4.625-3.507-8.441-8-8.941V4h-2v2.059c-4.493.5-8 4.316-8 8.941v2h18zM5 15c0-3.859 3.141-7 7-7s7 3.141 7 7zm-3 3h20v2H2z"}))),Minus:e=>l.createElement("svg",Zn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),oe||(oe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"}))),Plus:e=>l.createElement("svg",Jn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ce||(ce=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"}))),Pdf:e=>l.createElement("svg",Qn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),de||(de=l.createElement("path",{fill:"#fff",stroke:"#D5D7DA",strokeWidth:1.5,d:"M7.75 4A3.25 3.25 0 0 1 11 .75h16c.121 0 .238.048.323.134l10.793 10.793a.46.46 0 0 1 .134.323v24A3.25 3.25 0 0 1 35 39.25H11A3.25 3.25 0 0 1 7.75 36z"})),ue||(ue=l.createElement("path",{stroke:"#D5D7DA",strokeWidth:1.5,d:"M27 .5V8a4 4 0 0 0 4 4h7.5"})),he||(he=l.createElement("rect",{width:26,height:16,x:1,y:18,fill:"#D92D20",rx:2})),me||(me=l.createElement("path",{fill:"#fff",d:"M4.832 30v-7.273h2.87q.826 0 1.41.316.582.314.887.87.31.555.31 1.279t-.313 1.278q-.313.555-.906.863-.59.309-1.427.309h-1.83V26.41h1.581q.444 0 .732-.153.29-.156.433-.43.145-.276.145-.635 0-.363-.145-.632a.97.97 0 0 0-.433-.423q-.291-.153-.74-.153H6.37V30zm9.053 0h-2.578v-7.273h2.6q1.095 0 1.889.437.791.433 1.218 1.246.43.814.43 1.947 0 1.136-.43 1.953a2.95 2.95 0 0 1-1.226 1.253q-.795.437-1.903.437m-1.04-1.317h.976q.682 0 1.147-.242.47-.244.703-.756.238-.516.238-1.328 0-.807-.238-1.318a1.54 1.54 0 0 0-.7-.753q-.465-.24-1.146-.241h-.98zM18.582 30v-7.273h4.816v1.268H20.12v1.733h2.958v1.268H20.12V30z"}))),Img:e=>l.createElement("svg",Xn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),pe||(pe=l.createElement("path",{fill:"#fff",stroke:"#D5D7DA",strokeWidth:1.5,d:"M7.75 4A3.25 3.25 0 0 1 11 .75h16c.121 0 .238.048.323.134l10.793 10.793a.46.46 0 0 1 .134.323v24A3.25 3.25 0 0 1 35 39.25H11A3.25 3.25 0 0 1 7.75 36z"})),ge||(ge=l.createElement("path",{stroke:"#D5D7DA",strokeWidth:1.5,d:"M27 .5V8a4 4 0 0 0 4 4h7.5"})),fe||(fe=l.createElement("rect",{width:26,height:16,x:1,y:18,fill:"#7F56D9",rx:2})),ve||(ve=l.createElement("path",{fill:"#fff",d:"M6.39 22.727V30H4.851v-7.273zm1.265 0H9.55l2.003 4.887h.085l2.003-4.887h1.896V30h-1.491v-4.734h-.06l-1.883 4.699H11.09l-1.883-4.716h-.06V30H7.655zm13.972 2.351a1.6 1.6 0 0 0-.21-.458q-.135-.203-.33-.34a1.4 1.4 0 0 0-.44-.218 1.9 1.9 0 0 0-.543-.074q-.558 0-.98.277-.42.277-.654.806-.234.526-.234 1.285 0 .76.23 1.293.233.533.654.813.423.277.998.277.522 0 .892-.184.373-.188.568-.53.198-.34.198-.805l.313.046h-1.875v-1.158h3.043v.916q0 .96-.405 1.648-.405.686-1.114 1.058-.71.37-1.627.37-1.022 0-1.797-.452a3.13 3.13 0 0 1-1.207-1.289q-.43-.837-.43-1.988 0-.884.256-1.577.26-.696.724-1.179.465-.483 1.083-.735a3.5 3.5 0 0 1 1.34-.252q.617 0 1.15.18.533.179.944.505.415.327.678.778.264.447.338.987z"}))),Maximize:e=>l.createElement("svg",ea({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),xe||(xe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 3h-.2c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8V8m5 13h-.2c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V16m18-8v-.2c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 3 17.88 3 16.2 3H16m5 13v.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H16"}))),Csv:e=>l.createElement("svg",na({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),be||(be=l.createElement("path",{fill:"#fff",stroke:"#D5D7DA",strokeWidth:1.5,d:"M7.75 4A3.25 3.25 0 0 1 11 .75h16c.121 0 .238.048.323.134l10.793 10.793a.46.46 0 0 1 .134.323v24A3.25 3.25 0 0 1 35 39.25H11A3.25 3.25 0 0 1 7.75 36z"})),je||(je=l.createElement("path",{stroke:"#D5D7DA",strokeWidth:1.5,d:"M27 .5V8a4 4 0 0 0 4 4h7.5"})),we||(we=l.createElement("rect",{width:28,height:16,x:1,y:18,fill:"#099250",rx:2})),ye||(ye=l.createElement("path",{fill:"#fff",d:"M11.273 25.273H9.717a1.5 1.5 0 0 0-.174-.536 1.4 1.4 0 0 0-.337-.405 1.5 1.5 0 0 0-.476-.255 1.8 1.8 0 0 0-.579-.09q-.564 0-.983.282-.42.276-.65.81-.231.528-.231 1.285 0 .777.23 1.306.236.53.654.8.42.27.97.27.309 0 .571-.082.267-.082.473-.238a1.4 1.4 0 0 0 .34-.387q.14-.228.192-.519l1.556.007q-.06.501-.302.966a2.9 2.9 0 0 1-.643.828 3 3 0 0 1-.959.575q-.554.21-1.253.21-.973 0-1.74-.44a3.13 3.13 0 0 1-1.208-1.276q-.44-.834-.44-2.02 0-1.19.447-2.024.448-.835 1.215-1.272a3.4 3.4 0 0 1 1.726-.44q.632 0 1.172.177.543.179.962.519.42.337.682.827.265.49.34 1.122m5.048-.454a.9.9 0 0 0-.366-.668q-.324-.238-.877-.238-.377 0-.636.107a.9.9 0 0 0-.398.288.7.7 0 0 0-.135.419.6.6 0 0 0 .082.34.85.85 0 0 0 .252.253q.16.103.37.18.21.075.447.129l.653.156q.477.106.874.284.398.177.689.437.291.259.45.61.164.353.168.807-.004.667-.341 1.157-.335.487-.966.757-.63.266-1.516.266-.882 0-1.534-.27a2.25 2.25 0 0 1-1.016-.799q-.362-.533-.38-1.317h1.488q.024.366.21.61.188.242.5.366.316.12.714.12.39 0 .678-.113a1.04 1.04 0 0 0 .451-.316.73.73 0 0 0 .16-.465q0-.244-.146-.412a1.1 1.1 0 0 0-.419-.284 4 4 0 0 0-.67-.213l-.793-.199q-.92-.224-1.452-.7-.533-.475-.53-1.282-.003-.66.352-1.154.36-.493.984-.77.625-.277 1.42-.277.81 0 1.414.277.608.276.944.77.338.494.348 1.144zm3.92-2.092L22 28.253h.067l1.762-5.526h1.704L23.026 30h-1.982l-2.51-7.273z"}))),UserCard:e=>l.createElement("svg",ta({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ne||(Ne=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 21.817C4.603 22 5.416 22 6.8 22h10.4c1.384 0 2.197 0 2.8-.183m-16 0a2 2 0 0 1-.362-.144 3 3 0 0 1-1.311-1.311C2 19.72 2 18.88 2 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 4.28 22 5.12 22 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311 2 2 0 0 1-.362.144m-16 0c0-.809.005-1.237.077-1.597a4 4 0 0 1 3.143-3.143C7.606 17 8.07 17 9 17h6c.93 0 1.394 0 1.78.077a4 4 0 0 1 3.143 3.143c.072.36.077.788.077 1.597M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0"}))),Mobile:e=>l.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Se||(Se=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 2v1.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C14.24 5 13.96 5 13.4 5h-2.8c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C9 4.24 9 3.96 9 3.4V2m-.8 20h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C19 20.48 19 19.92 19 18.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C17.48 2 16.92 2 15.8 2H8.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C5 3.52 5 4.08 5 5.2v13.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C6.52 22 7.08 22 8.2 22"}))),PhoneCall:e=>l.createElement("svg",ia({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Me||(Me=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.05 6A5 5 0 0 1 18 9.95M14.05 2A9 9 0 0 1 22 9.94m-11.773 3.923a14.6 14.6 0 0 1-2.847-4.01 2 2 0 0 1-.113-.266 1.05 1.05 0 0 1 .147-.862c.048-.067.105-.124.22-.238.35-.35.524-.524.638-.7a2 2 0 0 0 0-2.18c-.114-.176-.289-.351-.638-.7l-.195-.196c-.532-.531-.797-.797-1.083-.941a2 2 0 0 0-1.805 0c-.285.144-.551.41-1.083.941l-.157.158c-.53.53-.795.794-.997 1.154-.224.4-.386 1.02-.384 1.479 0 .413.081.695.241 1.26a19.04 19.04 0 0 0 4.874 8.283 19.04 19.04 0 0 0 8.283 4.874c.565.16.847.24 1.26.241a3.4 3.4 0 0 0 1.478-.384c.36-.203.625-.468 1.155-.997l.157-.158c.532-.531.797-.797.942-1.082a2 2 0 0 0 0-1.806c-.145-.285-.41-.55-.942-1.082l-.195-.195c-.35-.35-.524-.524-.7-.639a2 2 0 0 0-2.18 0c-.176.114-.35.29-.7.639-.115.114-.172.171-.239.22-.237.17-.581.228-.862.146a2 2 0 0 1-.266-.113 14.6 14.6 0 0 1-4.01-2.846"}))),Mail:e=>l.createElement("svg",la({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Oe||(Oe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m13.744 2.634 7.528 4.893c.266.173.399.26.495.374a1 1 0 0 1 .189.348c.044.143.044.302.044.62V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2V8.868c0-.317 0-.476.044-.62a1 1 0 0 1 .189-.347c.096-.115.229-.201.495-.374l7.528-4.893m3.488 0c-.631-.41-.947-.616-1.287-.696a2 2 0 0 0-.914 0c-.34.08-.656.285-1.287.696m3.488 0 6.192 4.024c.688.448 1.032.671 1.151.955a1 1 0 0 1 0 .774c-.12.284-.463.507-1.15.955l-6.193 4.024c-.631.41-.947.616-1.287.696-.3.07-.613.07-.914 0-.34-.08-.656-.285-1.287-.696L4.064 9.342c-.688-.448-1.032-.671-1.151-.955a1 1 0 0 1 0-.774c.12-.284.463-.507 1.15-.955l6.193-4.024M21.5 19l-6.643-6m-5.714 0L2.5 19"}))),Insta:e=>l.createElement("svg",oa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Le||(Le=l.createElement("g",{fill:"currentColor",clipPath:"url(#insta_svg__clip0_1422_1142)"},l.createElement("path",{d:"M12 2.16c3.206 0 3.586.015 4.847.071 1.172.052 1.805.249 2.226.413a3.7 3.7 0 0 1 1.379.895c.421.422.68.82.895 1.378.164.422.36 1.06.412 2.227.057 1.265.07 1.645.07 4.847 0 3.206-.013 3.586-.07 4.846-.051 1.172-.248 1.805-.412 2.227-.216.558-.478.961-.895 1.378a3.7 3.7 0 0 1-1.379.895c-.421.165-1.059.361-2.226.413-1.266.056-1.645.07-4.847.07-3.206 0-3.586-.014-4.847-.07-1.172-.052-1.805-.248-2.226-.413a3.7 3.7 0 0 1-1.379-.895 3.7 3.7 0 0 1-.895-1.378c-.164-.422-.36-1.06-.412-2.227-.057-1.265-.07-1.645-.07-4.846 0-3.207.013-3.586.07-4.847.051-1.172.248-1.805.412-2.227.216-.558.478-.96.895-1.378.422-.422.82-.68 1.379-.895.421-.164 1.059-.361 2.226-.413 1.261-.056 1.64-.07 4.847-.07M12 0C8.742 0 8.334.014 7.055.07 5.78.127 4.903.333 4.144.628a5.86 5.86 0 0 0-2.128 1.388A5.9 5.9 0 0 0 .628 4.139C.333 4.903.127 5.775.07 7.05.014 8.334 0 8.742 0 12s.014 3.666.07 4.945c.057 1.275.263 2.152.558 2.911.31.792.717 1.463 1.388 2.128a5.9 5.9 0 0 0 2.123 1.383c.764.296 1.636.502 2.911.558 1.28.056 1.688.07 4.945.07s3.666-.014 4.946-.07c1.275-.056 2.151-.262 2.91-.558a5.9 5.9 0 0 0 2.124-1.383 5.9 5.9 0 0 0 1.383-2.123c.295-.764.501-1.636.558-2.911.056-1.28.07-1.687.07-4.945s-.014-3.666-.07-4.946c-.057-1.275-.263-2.151-.558-2.91a5.6 5.6 0 0 0-1.374-2.133A5.9 5.9 0 0 0 19.861.633C19.097.338 18.225.13 16.95.075 15.666.015 15.258 0 12 0"}),l.createElement("path",{d:"M12 5.836A6.166 6.166 0 0 0 5.836 12 6.166 6.166 0 0 0 12 18.164 6.166 6.166 0 0 0 18.164 12 6.166 6.166 0 0 0 12 5.836m0 10.162A3.999 3.999 0 1 1 12.001 8 3.999 3.999 0 0 1 12 15.998M19.847 5.592a1.44 1.44 0 1 1-2.879 0 1.44 1.44 0 0 1 2.879 0"})))),Whatsapp:e=>l.createElement("svg",ca({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32"},e),qe||(qe=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 31c7.732 0 14-6.268 14-14S23.732 3 16 3 2 9.268 2 17c0 2.51.661 4.867 1.818 6.905L2 31l7.315-1.696A13.94 13.94 0 0 0 16 31m0-2.154c6.543 0 11.846-5.303 11.846-11.846 0-6.542-5.303-11.846-11.846-11.846C9.458 5.154 4.154 10.458 4.154 17c0 2.526.79 4.868 2.138 6.79L5.23 27.77l4.049-1.013a11.8 11.8 0 0 0 6.72 2.09",clipRule:"evenodd"})),Ae||(Ae=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 30c7.732 0 14-6.268 14-14S23.732 2 16 2 2 8.268 2 16c0 2.51.661 4.867 1.818 6.905L2 30l7.315-1.696A13.94 13.94 0 0 0 16 30m0-2.154c6.543 0 11.846-5.303 11.846-11.846 0-6.542-5.303-11.846-11.846-11.846C9.458 4.154 4.154 9.458 4.154 16c0 2.526.79 4.868 2.138 6.79L5.23 26.77l4.049-1.013a11.8 11.8 0 0 0 6.72 2.09",clipRule:"evenodd"})),De||(De=l.createElement("path",{fill:"currentColor",d:"M12.5 9.5c-.333-.669-.844-.61-1.36-.61-.921 0-2.359 1.105-2.359 3.16 0 1.684.742 3.528 3.243 6.286 2.414 2.662 5.585 4.039 8.218 3.992s3.175-2.312 3.175-3.078c0-.339-.21-.508-.356-.554-.897-.43-2.552-1.233-2.928-1.384-.377-.15-.573.054-.695.165-.342.325-1.019 1.284-1.25 1.5s-.578.106-.721.025c-.53-.213-1.964-.85-3.107-1.96-1.415-1.37-1.498-1.842-1.764-2.262-.213-.335-.057-.541.021-.632.305-.351.726-.894.914-1.164s.04-.679-.05-.934c-.387-1.097-.715-2.015-.981-2.55"}))),Tiktok:e=>l.createElement("svg",da({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Pe||(Pe=l.createElement("path",{fill:"currentColor",d:"M17.073 0h-4.045v16.348c0 1.948-1.556 3.548-3.492 3.548s-3.491-1.6-3.491-3.548c0-1.913 1.52-3.478 3.388-3.548V8.696C5.319 8.766 2 12.139 2 16.348 2 20.59 5.388 24 9.57 24c4.184 0 7.572-3.443 7.572-7.652V7.965A9.37 9.37 0 0 0 22.5 9.774V5.67c-3.042-.105-5.427-2.61-5.427-5.67"}))),Fb:e=>l.createElement("svg",ua({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ze||(ze=l.createElement("g",{clipPath:"url(#fb_svg__clip0_1422_1140)"},l.createElement("path",{fill:"currentColor",d:"M24 12c0-6.627-5.373-12-12-12S0 5.373 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.356c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H15.83c-1.491 0-1.956.925-1.956 1.875V12h3.328l-.532 3.469h-2.796v8.385C19.612 22.954 24 17.99 24 12"})))),Refresh:e=>l.createElement("svg",ma({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Be||(Be=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.453 12.893A8.5 8.5 0 0 1 4.638 16.25l-.25-.433m-.842-4.71A8.5 8.5 0 0 1 19.361 7.75l.25.433M3.493 18.066l.732-2.732 2.732.732m10.085-8.132 2.732.732.732-2.732"}))),File:e=>l.createElement("svg",pa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),He||(He=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 11H8m2 4H8m8-8H8m12-.2v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C20 4.28 20 5.12 20 6.8"}))),Inbox:e=>l.createElement("svg",ga({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ie||(Ie=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.5 12h3.382c.685 0 1.312.387 1.618 1s.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1s.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.334c.19.377.284.566.35.765q.09.263.128.54c.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84q.038-.277.128-.541c.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4"}))),Hourglass:e=>l.createElement("svg",ja({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ve||(Ve=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963q-.075.309-.24.579c-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72q.165.271.24.578c.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965q.075-.308.24-.578c.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2"}))),Filter:e=>l.createElement("svg",ya({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ge||(Ge=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.05 9H5.5a2.5 2.5 0 0 1 0-5h9.55m-6.1 16h9.55a2.5 2.5 0 0 0 0-5H8.95M3 17.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0m18-11a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0"}))),Heart:e=>l.createElement("svg",Ca({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ke||(Ke=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.993 5.136c-2-2.338-5.333-2.966-7.838-.826s-2.858 5.719-.89 8.25c1.635 2.105 6.585 6.544 8.207 7.98.182.162.272.242.378.274a.5.5 0 0 0 .286 0c.106-.032.197-.112.378-.273 1.623-1.437 6.573-5.876 8.208-7.98 1.967-2.532 1.658-6.133-.89-8.251s-5.84-1.512-7.839.826",clipRule:"evenodd"}))),Flag:e=>l.createElement("svg",Na({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ye||(Ye=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1v19"}))),Trash:e=>l.createElement("svg",ka({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ze||(Ze=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"}))),Share:e=>l.createElement("svg",Ea({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Je||(Je=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.791 12.607c.244-.209.366-.313.411-.438a.5.5 0 0 0 0-.338c-.045-.124-.167-.23-.41-.438L12.32 4.132c-.42-.36-.63-.54-.809-.545a.5.5 0 0 0-.4.184C11 3.91 11 4.186 11 4.74v4.296a9.666 9.666 0 0 0-8 9.516v.612a11.4 11.4 0 0 1 8-4.093v4.19c0 .554 0 .83.112.969a.5.5 0 0 0 .4.184c.178-.005.388-.185.809-.545z"}))),Link:e=>l.createElement("svg",Sa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Qe||(Qe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 9V3m0 0h-6m6 0-9 9m-2-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.72 21 17.88 21 16.2V14"}))),Lens:e=>l.createElement("svg",Ma({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Xe||(Xe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21.416 15.341a9.17 9.17 0 0 1-9.539.659M2.584 8.659a9.17 9.17 0 0 1 9.56-.648m3.23 6.113A9.17 9.17 0 0 0 19.6 5.512M8.581 9.904A9.17 9.17 0 0 0 4.4 18.488m11.128-8.351a9.17 9.17 0 0 0-5.345-7.965M8.476 13.926a9.17 9.17 0 0 0 5.342 7.902m5.253-16.9c3.905 3.906 3.905 10.238 0 14.143s-10.237 3.905-14.142 0-3.905-10.237 0-14.142 10.237-3.905 14.142 0m-4.243 4.244a4 4 0 1 1-5.656 5.656 4 4 0 0 1 5.656-5.656"}))),Clipboard:e=>l.createElement("svg",Oa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),en||(en=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 4c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C20 6.605 20 7.07 20 8v9.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V8c0-.93 0-1.395.102-1.776a3 3 0 0 1 2.122-2.122C6.605 4 7.07 4 8 4m1.6 2h4.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C16 5.24 16 4.96 16 4.4v-.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C15.24 2 14.96 2 14.4 2H9.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C8 2.76 8 3.04 8 3.6v.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C8.76 6 9.04 6 9.6 6"}))),Browser:e=>l.createElement("svg",La({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),nn||(nn=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M22 9H2m0-1.2v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8"})))},Da=({name:e,size:n=25,...t})=>{const r=Aa[e];return(0,a.jsx)(r,{width:n,height:n,...t})},Pa=require("react-spinners/MoonLoader");var za=e.n(Pa);const Ta=({color:e="light",size:n=15})=>(0,a.jsx)(za(),{size:n,color:"dark"===e?"#000000":"#fff"});function Ra({styleType:e="dark",variant:n,size:t="md",children:s,className:l,wrapperClassName:o,icon:c,trailingIcon:d,href:u,isLoading:h,iconClassName:m,disabled:p,filled:g,...f}){const v=n||("dark"===e?"primary":"secondary"),x=!!p||!!h,b=r()("ui-button w-full min-w-20 py-2 border shadow-sm rounded-md font-medium",{"bg-primary text-white border-dark hover:bg-dark/80":"primary"===v,"bg-white text-gray-700 hover:bg-gray-50":"secondary"===v,"opacity-50":x},l),j=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"ui-button-content","data-loading":!!h,children:[c&&(0,a.jsx)(Da,{className:m,size:18,name:c}),(0,a.jsx)("span",{children:s}),d&&(0,a.jsx)(Da,{size:16,name:d})]}),h&&(0,a.jsx)("span",{className:"ui-button-loader","aria-hidden":"true",children:(0,a.jsx)(Ta,{color:"primary"===v?"light":"dark"})})]});return(0,a.jsx)("div",{className:r()("flex",o),children:u?(0,a.jsx)(i(),{...f,href:u,className:b,"data-variant":v,"data-size":t,"aria-disabled":x||void 0,"aria-busy":h||void 0,tabIndex:x?-1:f.tabIndex,onClick:e=>{x?e.preventDefault():f.onClick?.(e)},children:j}):(0,a.jsx)("button",{...f,disabled:x,"aria-busy":h||void 0,className:b,"data-variant":v,"data-size":t,children:j})})}const Ba=({children:e,active:n,wrapperClassName:t,className:s,...i})=>(0,a.jsx)(Ra,{...i,styleType:"light",wrapperClassName:t,className:r()("font-semibold hover:bg-white hover:border-gray-700",n?"!text-gray-700 border-gray-700":"text-gray-400",s),children:e}),Ha=({onClick:e,icon:n,isLoading:t,href:s,target:l,disabled:o})=>{const c=(0,a.jsx)("div",{onClick:e,className:r()("flex items-center justify-center w-9 h-9 border p-2 rounded hover:bg-gray-50/70 cursor-pointer shadow-sm text-gray-600",{"pointer-events-none ":o||t,"opacity-70":o}),children:t?(0,a.jsx)(Ta,{color:"dark"}):(0,a.jsx)(Da,{name:n})});return s?(0,a.jsx)(i(),{target:l,href:s,children:c}):c},Ia=require("@headlessui/react"),$a=(0,l.forwardRef)(function(e,n){const{classes:t}=e;return(0,a.jsx)(Ia.Transition.Child,{ref:n,as:l.Fragment,enter:r()("ease-out duration-300",t?.transitionEnter),enterFrom:r()("opacity-0",t?.transitionEnterFrom),enterTo:r()("opacity-100",t?.transitionEnterTo),leave:r()("ease-in duration-200",t?.transitionLeave),leaveFrom:r()("opacity-100",t?.transitionLeaveFrom),leaveTo:r()("opacity-0",t?.transitionLeaveTo),children:(0,a.jsx)("div",{className:r()(t?.background,"fixed inset-0 bg-gray-400 bg-opacity-80 backdrop-blur transition-opacity")})})}),Fa=function(e){const{open:n=!1,onClose:t,classes:s,children:i,overlayProps:o,name:c}=e,[d,u]=(0,l.useState)(n);return(0,l.useEffect)(()=>{u(n)},[n]),d?(0,a.jsx)(Ia.Transition.Root,{show:d,as:l.Fragment,children:(0,a.jsxs)(Ia.Dialog,{as:"div",className:r()(s?.root,"relative z-40"),onClose:t,children:[(0,a.jsx)($a,{...o}),(0,a.jsx)("div",{className:r()(s?.container,"fixed inset-0 z-10 overflow-y-auto"),children:(0,a.jsx)("div",{className:r()(s?.innerContainer,"flex min-h-full justify-center p-4 text-center items-center sm:p-0"),children:(0,a.jsx)(Ia.Transition.Child,{as:l.Fragment,enter:r()("ease-out duration-300"),enterFrom:r()("opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"),enterTo:r()("opacity-100 translate-y-0 sm:scale-100"),leave:r()("ease-in duration-200"),leaveFrom:r()("opacity-100 translate-y-0 sm:scale-100"),leaveTo:r()("opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"),children:(0,a.jsxs)(Ia.Dialog.Panel,{className:r()(s?.panel,"w-full relative transform rounded-lg bg-white dark:bg-dark text-left shadow-xl ring-1 ring-onLight/50 dark:ring-onDark/50 transition-all sm:max-w-lg"),children:[(0,a.jsxs)("div",{className:"flex justify-between border-b px-6 py-3",children:[(0,a.jsx)("h4",{className:"text-2xl",children:c}),(0,a.jsx)(Da,{onClick:()=>{u(!1),t()},size:30,className:"p-1 hover:bg-gray-50 cursor-pointer rounded",name:"Close"})]}),(0,a.jsx)("div",{className:r()(s?.content,"px-4 pt-5 pb-4 sm:p-6"),children:i})]})})})})]})}):null},Wa=({children:e,onClick:n,className:t,styleType:r,type:s,action:i,Element:o=Ra,...c})=>{const[d,u]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{...c,type:"button",className:t,styleType:r,onClick:()=>{u(!0)},children:e}),(0,a.jsxs)(Fa,{name:"Confirmation",open:d,onClose:()=>u(!1),classes:{content:"space-y-10"},children:[(0,a.jsxs)("p",{className:"text-xl text-center",children:["Are you sure you want to ",(0,a.jsx)("br",{})," ",(0,a.jsx)("strong",{className:"text-secondary",children:i||e}),"?"]}),(0,a.jsxs)("div",{className:"flex space-x-6 justify-center",children:[(0,a.jsx)(Ra,{className:"sm:min-w-36",styleType:"dark",type:s||"button",onClick:e=>{n?.(e),u(!1)},children:"Yes"}),(0,a.jsx)(Ra,{className:"sm:min-w-36",type:"button",styleType:"light",onClick:()=>u(!1),children:"No"})]})]})]})},Ua=({href:e,children:n,onClick:t,disabled:s,className:o})=>{const c=e?i():"div",[d,u]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c,{onClick:n=>{e?t?.(n):u(!0)},href:e,className:r()(o,"w-full text-center text-secondary font-medium cursor-pointer hover:text-secondary/80",{"opacity-70 pointer-events-none":s}),children:n}),(0,a.jsxs)(Fa,{name:"Confirmation",open:d,onClose:()=>u(!1),classes:{content:"space-y-10"},children:[(0,a.jsxs)("p",{className:"text-xl text-center",children:["Are you sure you want to ",(0,a.jsx)("br",{})," ",(0,a.jsx)("strong",{className:"text-secondary",children:n}),"?"]}),(0,a.jsxs)("div",{className:"flex space-x-6 justify-center",children:[(0,a.jsx)(Ra,{styleType:"dark",onClick:e=>{t?.(e),u(!1)},children:"Yes"}),(0,a.jsx)(Ra,{styleType:"light",onClick:()=>u(!1),children:"No"})]})]})]})};function Va({items:e,listClassName:n,buttonClassName:t,listWrapperClassName:s,selectedClassName:i,wrapperClassName:l,variant:o="segmented",label:c,selectedIndex:d,onChange:u,keepMounted:h=!1}){const m="underline"===o;return(0,a.jsxs)(Ia.Tab.Group,{selectedIndex:d,onChange:u,className:r()(l,m?"ui-content-tabs":"ui-segmented-tabs"),children:[(0,a.jsx)("div",{className:r()(s,m?"ui-content-tabs-scroll":"ui-segmented-tabs-scroll"),children:(0,a.jsx)(Ia.Tab.List,{"aria-label":c,className:r()(n,m?"ui-content-tabs-list":"ui-segmented-tabs-list"),children:e.map(e=>(0,a.jsxs)(Ia.Tab,{className:({selected:e})=>r()(t,m?"ui-content-tab":"ui-segmented-tab",e&&i),children:[e.name,void 0!==e.count&&(0,a.jsx)("span",{className:"ui-content-tab-count",children:e.count})]},e.name))})}),(0,a.jsx)(Ia.Tab.Panels,{className:"w-full",children:e.map((e,n)=>(0,a.jsx)(Ia.Tab.Panel,{unmount:!h,children:e.panel},n))})]})}const _a=({items:e})=>(0,a.jsx)(Va,{selectedClassName:"",listClassName:"bg-gray space-x-0 !p-0 !border-2 !rounded-md !w-auto !max-w-lg !w-full divide-x divide-gray-300",buttonClassName:"shadow-none !py-2 !rounded-none px-3 focus-visible:!ring-0 focus-visible:!outline-0 focus-visible:!ring-offset-0 whitespace-nowrap",listWrapperClassName:"!justify-start",items:e}),Ga=require("react-datetime");var Ka=e.n(Ga);const Ya=({label:e,htmlFor:n,errorId:t,children:s,className:i,error:l,hideError:o,info:c,toolTipWrapperClassName:d,toolTipHeaderClassName:u,toolTipContentClassName:h})=>(0,a.jsxs)("div",{className:r()("space-y-2",i),children:[(null!=e||c)&&(0,a.jsxs)("div",{className:"flex space-x-1.5",children:[null!=e&&(0,a.jsx)("label",{htmlFor:n,className:"ui-field-label",children:e}),c&&(0,a.jsx)(tt,{size:16,anchor:"top start",children:(0,a.jsx)(gt,{title:c.title,wrapperClassName:d,headerClassName:u,children:(0,a.jsx)("div",{className:r()(h,"font-light"),children:c.toolTip})})})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[s,!o&&l&&(0,a.jsxs)("div",{id:t,role:"alert",className:"font-medium text-xs text-red-600 flex gap-1 items-start",children:[(0,a.jsx)(Da,{size:16,name:"Info",className:"shrink-0","aria-hidden":"true"}),(0,a.jsx)("span",{children:l})]})]})]}),Za=(0,l.forwardRef)(function({icon:e,className:n,label:t,wrapperClassName:s,error:i,hideError:o,id:c,...d},u){const h=(0,l.useId)(),m=c||h,p=`${m}-error`;return(0,a.jsx)(Ya,{error:i,label:t,htmlFor:m,errorId:p,className:s,hideError:o,children:(0,a.jsxs)("div",{className:"ui-input-icon-wrap",children:[e&&(0,a.jsx)(Da,{name:e,size:18,"aria-hidden":"true"}),(0,a.jsx)("input",{...d,id:m,ref:u,"aria-invalid":!!i||d["aria-invalid"],"aria-describedby":[d["aria-describedby"],i&&!o?p:""].filter(Boolean).join(" ")||void 0,className:r()("ui-input border rounded-md w-full min-h-10",e?"ui-input-with-icon":"",n)})]})})}),Ja=({label:e,date:n,className:t,onChange:r,error:s})=>{const[i,o]=(0,l.useState)(n||new Date);return(0,l.useEffect)(()=>{o(n)},[n]),(0,a.jsx)(Ka(),{renderInput:n=>(0,a.jsx)(Za,{...n,error:s,label:e,className:t,icon:"Calendar"}),initialValue:i,onChange:e=>{o(new Date(e)),r?.(new Date(e))}})},Qa=function({items:e,className:n,label:t,right:s,wrapperClassName:i,onChangeDropdown:o,defaultValue:c,unset:d,disableCloseOnClick:u,title:h,error:m,hideError:p,selectedClassName:g}){const[f,v]=(0,l.useState)(c);return(0,l.useEffect)(()=>{v(c)},[c]),(0,a.jsx)(Ya,{error:m,hideError:p,label:t,className:i,children:(0,a.jsx)(Ia.Popover,{className:r()("relative h-full w-full"),children:({open:t,close:i})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Ia.Popover.Button,{className:r()(n,"w-full group inline-flex items-center justify-between rounded-sm px-4 py-2 font-semibold focus:outline-none border-2 border-gray-200 bg-white shadow-sm",t?"":"text-gray-600"),children:[(0,a.jsx)("span",{className:"whitespace-nowrap",children:h||e[f]?.label}),(0,a.jsx)(Da,{name:"ChevronDown",className:(t?"rotate-180":"text-gray-600/70")+"\n ml-2 h-5 w-5 transition duration-150 ease-in-out","aria-hidden":"true"})]}),(0,a.jsx)(Ia.Transition,{as:l.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,a.jsx)(Ia.Popover.Panel,{className:r()("absolute z-40 mt-3 w-full sm:max-w-xs transform px-4 sm:px-0 ",s?"right-0":"left-0"),children:(0,a.jsx)("div",{className:"min-w-52",children:(0,a.jsxs)("div",{className:"relative bg-white p-3 rounded-sm shadow-lg ring-1 ring-black/5 space-y-1 max-h-72 overflow-y-scroll",children:[e.map((e,n)=>"string"!=typeof e.label?(0,a.jsx)("div",{children:e.label},e.id):(0,a.jsx)("div",{className:r()("px-4 py-3 hover:bg-gray-50 cursor-pointer rounded-sm",{"bg-gray-100":n===f},{[g]:n===f}),onClick:()=>{v(n),o?.(e),u||i()},children:e.labels?.length?(0,a.jsx)("div",{className:r()("grid",`grid-cols-${e.labels.length}`),children:e.labels.map(e=>(0,a.jsx)("div",{className:"font-medium",children:e},e))}):(0,a.jsx)("div",{className:r()("block text-gray-700 font-medium"),children:e.label})},e.id)),d&&(0,a.jsx)("div",{className:"flex justify-end",onClick:()=>{v(void 0),o?.(void 0),u||i()},children:(0,a.jsx)("span",{className:"underline hover:text-dark cursor-pointer py-1",children:"unset"})})]})})})})]})})})},Xa=({type:e,url:n,title:t})=>(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i(),{href:n||"/#",target:n?"_blank":void 0,className:r()("cursor-pointer",{"pointer-events-none opacity-50":!n}),children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-1",children:[(0,a.jsx)(Da,{name:e}),(0,a.jsx)("div",{className:"font-thin uppercase text-xs",children:t})]})})}),et=require("next/image");var nt=e.n(et);const at=({imageUrl:e,onClose:n,image:t,children:r})=>{const[s,i]=(0,l.useState)(!0);return e?(0,a.jsxs)("div",{className:"fixed top-0 right-0 left-0 bottom-0 bg-black bg-opacity-90 flex justify-center items-center z-50",children:[(0,a.jsxs)("div",{className:"relative h-full w-full flex justify-center items-center",children:[(0,a.jsx)(Da,{name:"Close",size:36,className:"absolute top-4 right-4 bg-white text-black rounded-full p-1.5 text-lg cursor-pointer hover:bg-gray-100",onClick:e=>{e.stopPropagation(),n?.()}}),s&&(0,a.jsx)("div",{className:"absolute top-0 right-0 left-0 bottom-0 flex items-center justify-center",children:(0,a.jsx)(Ta,{color:"light",size:32})}),(0,a.jsx)(nt(),{src:e,alt:"Full View",height:t?.width||1500,width:t?.height||2e3,className:"object-contain max-h-screen max-w-screen pointer-events-none",onLoad:()=>{i(!1)}})]}),r]}):null},tt=function({children:e,size:n,icon:t="Info",iconClassName:s,anchor:i="top",className:l}){return(0,a.jsx)("div",{className:"flex",children:(0,a.jsxs)(Ia.Popover,{children:[(0,a.jsx)(Ia.PopoverButton,{className:"block focus:outline-none text-gray-400 data-[active]:text-gray-300",children:"string"==typeof t?(0,a.jsx)(Da,{size:n,name:t,className:s}):t}),(0,a.jsx)(Ia.PopoverPanel,{transition:!0,anchor:i,className:r()("transition duration-200 ease-in-out [--anchor-gap:var(--spacing-5)] data-[closed]:-translate-y-1 data-[closed]:opacity-0 z-30","min-w-44 max-w-72 min-h-60 max-h-72 flex flex-col rounded-md overflow-hidden shadow-md",l),children:e})]})})};function rt({onClick:e,icon:n,isLoading:t,href:s,target:l,rel:o,disabled:c,className:d,size:u,iconClassName:h,loaderColor:m="dark",title:p,...g}){const f=!!c||!!t,v=r()("ui-icon-button border rounded bg-white",d),x=g["aria-label"]||p||n,b=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"ui-button-content","data-loading":!!t,children:(0,a.jsx)(Da,{size:u||18,name:n,className:h,"aria-hidden":"true"})}),t&&(0,a.jsx)("span",{className:"ui-button-loader","aria-hidden":"true",children:(0,a.jsx)(Ta,{color:m})})]});return s?(0,a.jsx)(i(),{...g,href:s,target:l,rel:o,title:p,"aria-label":x,"aria-disabled":f||void 0,"aria-busy":t||void 0,tabIndex:f?-1:g.tabIndex,className:v,onClick:n=>{f?n.preventDefault():e?.(n)},children:b}):(0,a.jsx)("button",{...g,type:g.type||"button",onClick:e,disabled:f,title:p,"aria-label":x,"aria-busy":t||void 0,className:v,children:b})}const st=function({href:e}){return(0,a.jsx)(i(),{href:e,className:"text-primary font-medium hover:text-gray-400",children:(0,a.jsxs)("span",{className:"inline-flex gap-x-1.5 items-center pt-4",children:["Mehr erfahren ",(0,a.jsx)(Da,{size:18,name:"ArrowRight"})]})})};var it;function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},lt.apply(null,arguments)}const ot=e=>l.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 404 404"},e),it||(it=l.createElement("g",{fill:"currentColor",clipPath:"url(#logo_svg__clip0_442_1222)"},l.createElement("path",{d:"M354.808 51.545v1.177l1.274.41c1.779.552 5.889 2.595 7.692 3.797 3.918 2.644 8.63 6.947 12.284 11.274 2.403 2.837 8.221 10.505 9.855 13.005 4.784 7.38 9.327 20.216 10.794 30.553.288 2.091.601 3.798.721 3.798.096 0 .168-14.014.168-31.13V53.3h-3.053c-7.115-.024-18.966-.793-29.038-1.923-3.438-.384-7.26-.769-8.462-.865l-2.235-.168zM326.707 51.4c-9.375 1.25-17.044 3.414-24.255 6.851-12.043 5.721-20.024 13.39-25.313 24.255-3.677 7.572-5.288 15.096-5.312 24.64 0 5.552.385 8.99 1.466 13.269 2.068 8.197 7.188 16.731 14.207 23.75 5.096 5.072 10.505 9.231 18.558 14.255l4.495 2.812h45.216c24.856 0 45.193-.072 45.193-.168 0-.385-3.967-5-6.371-7.404-4.23-4.255-9.351-8.365-15.264-12.26-4.327-2.836-15.192-9.206-27.524-16.105-19.375-10.842-26.707-15.938-32.861-22.837-7.596-8.51-10.096-16.707-8.101-26.61C313.029 64.91 321.226 55.173 330 53.13l1.731-.409v-.913c0-.865-.024-.913-.769-.89-.433 0-2.356.217-4.255.481M0 53.035c0 .12.337.337.77.48 3.004 1.058 6.297 5.554 7.932 10.842l.553 1.803.072 47.524.048 47.548h43.75l.048-47.428.072-47.404.529-1.827c1.466-5.192 4.23-9.206 7.356-10.745.625-.312 1.13-.673 1.13-.793s-12.092-.216-31.13-.216c-18.341 0-31.13.096-31.13.216M94.471 84.309c0 17.308.096 31.49.192 31.49.097 0 .313-.865.481-1.899.721-4.639 4.4-17.26 6.923-23.774 2.212-5.697 5.721-12.019 9.64-17.356 2.596-3.485 8.702-9.59 11.851-11.826 3.918-2.765 8.365-4.736 12.884-5.65l2.02-.432v-2.043H94.471zM150.144 54.79c-.12 1.755-3.293 104.038-3.269 105.769v.673h43.51l.096-.553c.096-.529 3.293-104.471 3.269-106.73v-1.13h-43.462zM218.822 53.516c-6.923 1.105-11.755 5.144-13.702 11.442-.336 1.13-.433 2.188-.408 4.808 0 2.98.072 3.581.649 5.288 1.346 4.063 3.942 7.043 8.125 9.351a24.6 24.6 0 0 0 10.072 2.98l2.043.17-.072 1.201c-.265 4.135-2.548 8.606-6.515 12.716-3.341 3.462-7.379 6.154-11.442 7.621l-1.202.432 1.082-.12c3.534-.457 8.798-2.091 12.356-3.87 6.995-3.51 13.029-9.64 16.346-16.683 2.5-5.264 3.389-9.207 3.389-15.12-.024-5.096-.456-7.187-2.356-11.058-1.033-2.115-1.538-2.836-3.173-4.47-3.101-3.15-6.538-4.592-11.418-4.785-1.394-.048-3.077 0-3.774.097M195.673 172.795c-11.178 1.225-21.514 5.024-30.529 11.225-12.284 8.438-21.058 20.842-24.639 34.784-1.395 5.409-1.683 7.933-1.683 14.664 0 6.538.216 8.557 1.563 14.014 1.033 4.207 2.211 7.428 4.326 11.707 3.198 6.538 6.803 11.49 12.188 16.706 10.336 10.073 23.149 16.106 38.053 17.933 4.11.505 13.918.361 17.788-.264 6.947-1.082 12.981-3.005 19.351-6.13 6.755-3.317 12.044-7.067 17.068-12.115 9.591-9.64 15.456-21.611 17.211-35.121.433-3.269.361-10.745-.144-14.423-1.707-12.836-7.789-25.072-17.067-34.375-9.808-9.783-22.26-16.009-36.659-18.269-2.981-.481-13.654-.697-16.827-.336m-3.365 5.673c6.033 1.634 13.629 9.375 19.879 20.264 7.164 12.428 12.933 29.111 15.553 44.832 1.827 10.913 2.068 21.322.721 29.206-1.298 7.525-4.302 13.005-8.245 14.976-2.115 1.058-3.726 1.274-6.057.794-10.529-2.188-22.933-19.399-30.77-42.693-7.716-23.028-9.519-45.625-4.663-58.557 1.947-5.145 5.312-8.582 9.038-9.207 1.491-.24 2.645-.144 4.544.385M403.005 173.155c-1.827 1.515-5.577 3.822-8.318 5.12-5.673 2.669-11.225 4.207-18.822 5.193-3.509.456-12.379.889-14.062.673l-1.226-.145-.048 39.039-.072 39.038-.89 2.548c-1.057 3.077-2.764 6.539-4.158 8.51-1.202 1.683-4.303 4.736-5.962 5.865-1.779 1.202-4.687 2.597-6.418 3.029-4.592 1.202-9.88-.096-12.933-3.173-1.707-1.707-2.692-3.389-3.654-6.25-1.49-4.495-1.442-2.452-1.61-53.389-.072-25.529-.193-46.443-.241-46.443-.024 0-.793.601-1.682 1.323-.914.721-2.765 1.971-4.135 2.788-8.63 5.144-19.495 7.644-32.332 7.38l-4.303-.072.169 37.908c.096 23.438.24 38.678.408 39.904.794 6.346 2.837 12.068 5.938 16.419 3.774 5.36 10.024 10.024 17.115 12.74 7.452 2.885 17.404 3.654 25.914 2.019 5.312-1.034 11.49-3.558 16.105-6.634 5.145-3.39 9.399-8.895 11.972-15.433l.793-2.067.024 12.668v12.692h43.004999999999995l.072-60.889c.048-33.462.072-60.89.072-60.914zM10.192 173.323c.577 2.356 33.87 103.245 34.688 105.217 2.668 6.274 6.322 10.865 10.288 12.908 5.289 2.717 12.476 3.63 26.274 3.342l7.284-.145-.144.529c-.505 1.683-2.428 6.539-3.63 9.207-1.49 3.293-3.942 7.74-5.89 10.601-3.124 4.639-8.653 10.529-12.644 13.486-7.067 5.24-15.408 8.533-25.072 9.903-6.442.938-10.48.866-14.447-.24-5.216-1.418-9.255-4.952-11.322-9.88-.385-.913-.673-1.755-.625-1.875s.6.409 1.226 1.202c2.524 3.173 6.707 5.793 10.6 6.635 2.597.553 7.26.36 9.64-.385 3.582-1.13 6.587-3.149 9.039-6.082 6.01-7.163 5.649-18.173-.818-25.072-3.63-3.894-8.197-5.865-13.653-5.865-4.231 0-6.948.745-10.169 2.812-4.567 2.933-7.428 7.164-8.605 12.717-.457 2.211-.553 3.341-.553 7.187 0 3.918.072 4.928.553 7.068 1.562 6.947 4.663 12.355 10.168 17.716 5.36 5.192 11.73 8.077 20.697 9.351 7.38 1.058 13.582-.337 19.784-4.399 2.115-1.394 6.538-5.818 8.34-8.342 4.76-6.73 9.136-15.24 14.015-27.283 4.904-12.116 16.419-43.846 35.169-96.995 7.235-20.505 8.004-22.981 8.822-28.414 1.106-7.356-.289-12.26-4.015-14.159-2.331-1.177-4.327-1.298-22.548-1.298H85.937l1.539.89c2.26 1.346 5.721 4.327 7.644 6.61 4.664 5.505 8.318 12.885 9.904 20.072 1.707 7.645 1.875 17.933.481 29.279-1.394 11.322-4.231 25.361-7.572 37.26-1.346 4.856-4.952 15.986-5.145 15.986-.096 0-8.822-24.736-19.423-55l-19.23-54.976-22.044-.073-22.043-.048zM278.414 317.722c-6.178 1.611-10.145 6.755-10.145 13.101 0 3.967 1.226 6.923 3.943 9.64 2.788 2.788 5.793 3.942 10.144 3.942 3.702 0 7.139-1.034 9.207-2.764l.745-.649v-10.048h-2.885v9.038l-.889.505c-1.899 1.033-3.438 1.37-6.082 1.37-1.947-.024-2.837-.144-3.942-.553-2.693-.961-4.664-2.572-5.986-4.856-1.923-3.341-1.827-8.317.216-11.562 3.39-5.361 11.467-6.779 16.707-2.957l1.226.914.866-.89.889-.889-.962-.866c-2.956-2.596-8.509-3.653-13.052-2.476M364.712 317.722c-2.476.649-4.496 1.803-6.178 3.486-5.241 5.24-5.193 14.159.096 19.351 2.716 2.668 5.769 3.846 10 3.846 3.774 0 6.659-.937 8.798-2.885l1.058-.937-.89-.889-.865-.89-.962.769c-4.495 3.558-11.322 3.077-15.288-1.081-3.197-3.342-3.942-8.678-1.803-12.885.649-1.274 2.692-3.437 3.942-4.183 4.159-2.428 9.616-2.139 13.101.649l.986.794.865-.89.89-.889-.673-.697c-.794-.818-2.981-2.044-4.64-2.572-.625-.193-2.404-.409-3.918-.481-2.236-.072-3.101 0-4.519.384M250.986 318.492c-.241.577-2.909 6.394-5.914 12.932s-5.505 12.092-5.577 12.308c-.12.385.048.433 1.298.433h1.443l1.562-3.438 1.539-3.413h15.096l1.514 3.365 1.491 3.366 1.562.072 1.563.072-3.51-7.644c-1.923-4.207-4.663-10.193-6.082-13.294l-2.572-5.649-1.49-.072-1.467-.072zm5.096 9.038c1.683 3.798 3.053 6.971 3.053 7.067 0 .121-2.861.193-6.346.193h-6.347l3.173-7.092c1.731-3.894 3.198-7.067 3.27-7.067s1.49 3.101 3.197 6.899M300.24 330.823v13.342h18.991v-2.404h-16.106v-9.856h13.702v-2.404h-13.702v-9.615h15.385v-2.404h-18.27zM325.962 330.823v13.342h2.644v-10.721c0-8.823.048-10.698.312-10.481.169.144 4.039 4.976 8.606 10.745l8.269 10.457h2.524v-26.683h-2.884l-.048 10.745-.072 10.745-8.534-10.745-8.51-10.745h-2.307zM379.808 317.602c0 .072 2.379 4.039 5.288 8.798l5.289 8.654v9.111h2.884v-9.279l4.832-7.933c2.668-4.351 5.048-8.269 5.312-8.702l.481-.769h-2.884l-4.544 7.428c-2.476 4.086-4.591 7.356-4.687 7.26-.096-.073-2.164-3.414-4.592-7.356l-4.399-7.212-1.49-.072c-.817-.048-1.49 0-1.49.072"})))),ct=({size:e,mode:n="black",className:t,href:s})=>{const l=(0,a.jsx)(ot,{className:r()({"text-black":"black"===n,"text-white":"white"===n},t),width:e||50,height:e||50});return s?(0,a.jsx)(i(),{href:s,className:"shrink-0",children:l}):l},dt=({tags:e,label:n})=>{const[t,s]=(0,l.useState)({});return(0,a.jsx)(Ya,{label:n,children:(0,a.jsx)("div",{className:"space-x-2 flex",children:e.map(e=>(0,a.jsx)("div",{className:r()("border-2 border-gray-200 px-4 py-3 min-w-16 rounded-full text-gray-400 cursor-pointer font-semibold",t[e.id]?"text-gray-700 border-gray-700":""),onClick:()=>s(n=>({...n,[e.id]:!n[e.id]})),children:e.name},e.id))})})},ut=({items:e,className:n})=>{const[t,s]=(0,l.useState)(0);return(0,a.jsx)("div",{className:r()(n,"flex h-12 border-2 rounded-lg divide-x-2 shadow-sm"),children:e.map((e,n)=>(0,a.jsx)("div",{className:r()(t===n?"bg-gray-100":"bg-white","w-28 whitespace-nowrap flex items-center justify-center first:rounded-l-lg last:rounded-r-lg font-semibold cursor-pointer"),onClick:()=>s(n),children:e.label},e.id))})},ht=function({children:e,className:n}){return(0,a.jsx)("p",{className:r()("text-base px-3 sm:px-3.5",n),children:e})},mt=function(e){return(0,a.jsx)("span",{className:"bg-light py-1 px-4 rounded-full bg-opacity-60 border border-light text-primary font-medium",children:e.tag})},pt=(0,l.forwardRef)(({wrapperClassName:e,error:n,label:t,className:s,id:i,...o},c)=>{const d=(0,l.useId)(),u=i||d;return(0,a.jsx)(Ya,{className:e,label:t,htmlFor:u,error:n,errorId:`${u}-error`,children:(0,a.jsx)(Ia.Textarea,{ref:c,id:u,"aria-invalid":!!n,"aria-describedby":n?`${u}-error`:void 0,...o,className:r()(s,"ui-input min-h-24 w-full rounded-md p-3")})})}),gt=({title:e,children:n,headerClassName:t,wrapperClassName:s})=>(0,a.jsxs)("div",{className:r()(s,"bg-white flex-1 flex flex-col h-full rounded-md shadow-md overflow-hidden"),children:[e&&(0,a.jsx)("div",{className:r()(t,"p-2 border bg-gray-50"),children:(0,a.jsx)("h5",{children:e})}),(0,a.jsx)("div",{className:"space-y-2 p-2 border-r border-l border-b flex-1 overflow-y-scroll",children:n})]}),ft=require("react-drag-drop-files"),vt=({onChange:e,accept:n,error:t,className:s,text:i,defaultImgUrl:o,imageClassName:c,hideClose:d,loaderColor:u="light"})=>{const[h,m]=(0,l.useState)(!1),[p,g]=(0,l.useState)(o);return(0,l.useEffect)(()=>()=>{p&&URL.revokeObjectURL(p)},[p]),(0,l.useEffect)(()=>{g(o)},[o]),(0,a.jsx)("div",{className:"space-y-2 w-full h-full",children:(0,a.jsxs)("div",{className:r()(s,"bg-dark w-full h-full rounded-lg over-flow-hidden hover:bg-dark/80 p-3 relative flex flex-col items-center justify-center ",{"outline outline-[5px] outline-secondary":t}),children:[!h&&!p&&(0,a.jsx)(ft.FileUploader,{handleChange:n=>{m(!0);const a=URL.createObjectURL(n);e?.({blob:n,url:a}),g(a)},name:"file",types:n,classes:"h-full flex w-full",children:(0,a.jsxs)("div",{className:"h-full w-full border-3 border-dashed border-light/80 flex flex-col justify-center items-center rounded-lg p-12 space-y-2",children:[(0,a.jsx)(Da,{name:"Camera",size:40}),i&&(0,a.jsx)("p",{className:"font-thin text-center",children:i})]})}),p&&(0,a.jsx)("div",{className:r()("absolute inset-0 bg-dark flex justify-center items-center overflow-hidden",{invisible:!p||h}),children:(0,a.jsxs)("div",{className:"relative w-full h-full",children:[(0,a.jsx)(nt(),{fill:!0,src:p,alt:"Uploaded Preview",className:r()(c,"max-w-full max-h-full object-contain"),onLoad:()=>m(!1)}),!d&&(0,a.jsx)(Da,{onClick:()=>{g(null),e?.(void 0)},name:"Close",size:32,className:"absolute right-3 top-3 bg-white text-gray-900 border rounded cursor-pointer hover:bg-gray-50 p-1 z-10"})]})}),h&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center ",children:(0,a.jsx)(Ta,{color:u})})]})})},xt=({onChange:e,accept:n,error:t,className:s,text:i,loaderColor:l="light",multiple:o,isLoading:c,loadingText:d})=>(0,a.jsx)("div",{className:"space-y-2 w-full h-full",children:(0,a.jsx)("div",{className:r()(s,"w-full h-full bg-gray-50 border text-gray-900 hover:bg-gray-100 rounded-lg overflow-hidden p-3 relative ",{"outline outline-[5px] outline-secondary":t}),children:(0,a.jsxs)("div",{className:"border-3 border-dashed border-light/80 w-full h-full",children:[!c&&(0,a.jsx)(ft.FileUploader,{handleChange:n=>{e?.(n)},name:"file",types:n,multiple:o,classes:"h-full flex w-full",children:(0,a.jsxs)("div",{className:"h-full w-full flex flex-col justify-center items-center p-12 space-y-2",children:[(0,a.jsx)(Da,{name:"Camera",size:40}),i&&(0,a.jsx)("p",{className:"font-thin text-center",children:i})]})}),c&&(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center space-y-2 ",children:[(0,a.jsx)(Ta,{color:l}),d&&(0,a.jsx)("p",{className:"font-thin text-center",children:d})]})]})})}),bt=(0,l.forwardRef)(({options:e,label:n,defaultValue:t,...r},s)=>(console.log(r),(0,a.jsx)(Ya,{label:n,className:"text-base !space-y-0",hideError:!0,children:(0,a.jsx)("fieldset",{children:(0,a.jsx)("div",{className:"mt-6 space-x-6 flex",children:e.map((e,n)=>(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("input",{ref:s,...r,defaultChecked:t===n,id:e.id,value:e.id,type:"radio",className:"relative size-5 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white not-checked:before:hidden checked:border-secondary checked:bg-secondary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden cursor-pointer"}),(0,a.jsx)("label",{htmlFor:e.id,className:"ml-3 block font-medium",children:e.label})]},e.id))})})}))),jt=function(){return(0,a.jsx)("div",{className:"py-2 sm:py-4 w-full border-t bg-white",children:(0,a.jsx)("div",{className:"w-full max-w-8xl mx-auto flex flex-col-reverse items-center sm:flex-row sm:justify-between px-3",children:(0,a.jsx)("span",{className:"text-gray-500 font-light",children:"© 2025 | itsyou.agency"})})})},wt=require("@tanstack/react-table"),yt=function({table:e,emptyMessage:n,onRowClicked:t,classes:s,renderAfter:i}){const o=(0,l.useCallback)(e=>()=>{t?.(e)},[t]),c=(0,l.useCallback)(e=>(0,a.jsx)(Da,{size:12,name:"asc"===e?"ArrowNarrowDown":"desc"==e?"ArrowNarrowUp":"Switch",className:"fill-current"}),[]),d=e.getRowModel().rows;return(0,a.jsxs)("div",{className:"space-y-8 l",children:[(0,a.jsx)("div",{className:"flow-root ",children:(0,a.jsx)("div",{className:"overflow-x-auto px-1",children:(0,a.jsx)("div",{className:"inline-block min-w-full py-2 align-middle",children:(0,a.jsxs)("div",{className:r()(s?.tableWrapper,"shadow ring-1 ring-black/5 rounded-md overflow-y-auto h-[300px] bg-white"),children:[(0,a.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 relative",children:[(0,a.jsx)("thead",{className:"bg-gray-50 sticky top-0 border-b",children:e.getHeaderGroups().map(e=>(0,a.jsx)("tr",{className:r()(s?.tr,s?.thr),children:e.headers.map(e=>(0,a.jsx)("th",{scope:"col",className:r()(s?.th,"px-1.5 ld:px-3 py-3 text-left text-xs font-semibold text-gray-500 whitespace-nowrap"),onClick:e.column.getToggleSortingHandler(),children:(0,a.jsxs)("div",{className:"flex items-center gap-x-1.5",children:[e.isPlaceholder?(0,a.jsx)("span",{className:r()(s?.thPlaceholder,"sr-only"),children:e.id}):(0,wt.flexRender)(e.column.columnDef.header,e.getContext()),e.column.getCanSort()&&c(e.column.getIsSorted())]})},e.id))},e.id))}),(0,a.jsx)("tbody",{className:"bg-white",children:d.map(e=>(0,a.jsx)("tr",{className:r()(s?.tr,s?.tbr),onClick:o(e.original),children:e.getVisibleCells().map(e=>(0,a.jsx)("td",{className:r()(s?.td,"whitespace-nowrap p-1.5 lg:px-3 lg:py-2 text-xs text-gray-500 ","border-b"),children:(0,wt.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id))})]}),!d.length&&(n||(0,a.jsx)("div",{className:"w-full py-12 font-semibold text-center text-xs",children:"No data to display!"}))]})})})}),i&&(0,a.jsx)("div",{children:i})]})},Ct=(e,n,a,t)=>{const r=e.getValue(n);return t({itemRank:r}),r.passed},Nt=function({data:e,columns:n,pageSize:t=1e3,renderAfter:r,...s}){const[i,o]=(0,l.useState)([]),[c,d]=(0,l.useState)([]),[u,h]=(0,l.useState)(""),[m,p]=(0,l.useState)({pageIndex:0,pageSize:t});(0,l.useEffect)(()=>{p(e=>({...e,pageSize:t}))},[t]);const g=(0,wt.useReactTable)({data:e,columns:n,filterFns:{fuzzy:Ct},state:{sorting:i,columnFilters:c,globalFilter:u,pagination:m},onSortingChange:o,onColumnFiltersChange:d,onGlobalFilterChange:h,onPaginationChange:p,globalFilterFn:Ct,getCoreRowModel:(0,wt.getCoreRowModel)(),getFilteredRowModel:(0,wt.getFilteredRowModel)(),getSortedRowModel:(0,wt.getSortedRowModel)(),getPaginationRowModel:(0,wt.getPaginationRowModel)(),getFacetedRowModel:(0,wt.getFacetedRowModel)(),getFacetedUniqueValues:(0,wt.getFacetedUniqueValues)(),getFacetedMinMaxValues:(0,wt.getFacetedMinMaxValues)()});return(0,a.jsx)(yt,{table:g,renderAfter:r?r(g):void 0,...s})},kt=function({placeholder:e,onChangeDropdown:n,items:t,queryFn:s,show:i,defaultValue:o,disabled:c,wrapperClassName:d}){const[u,h]=(0,l.useState)(t[o]),[m,p]=(0,l.useState)(""),[g,f]=(0,l.useState)(t?.slice(0,i||t?.length)||[]);return(0,l.useEffect)(()=>{""!==m&&f(s(t,m))},[m]),(0,l.useEffect)(()=>{f(t.slice(0,i||t?.length))},[t]),(0,l.useEffect)(()=>{h(t[o])},[o]),(0,a.jsx)("div",{className:r()("relative h-12",d,{"pointer-events-none opacity-70":c}),children:(0,a.jsxs)(Ia.Combobox,{value:u,onChange:e=>{n?.(e),h(e)},onClose:()=>p(""),children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(Ia.ComboboxInput,{placeholder:e,className:r()("w-full rounded-md border py-1.5 pr-8 pl-3 text-dark h-full shadow","focus:outline-none data-[focus]:outline-2 data-[focus]:-outline-offset-2 data-[focus]:outline-dark"),displayValue:e=>e?`${e?.label}`:"",onChange:e=>p(e.target.value)}),(0,a.jsx)(Ia.ComboboxButton,{className:"group absolute inset-y-0 right-0 px-2.5",children:(0,a.jsx)(Da,{name:"ChevronDown"})})]}),(0,a.jsxs)(Ia.ComboboxOptions,{className:"bg-white text-black border z-50 w-full absolute top-full left-0 shadow min-h-64 max-h-96 overflow-y-scroll divide divide-y",children:[!g.length&&(0,a.jsxs)("div",{className:"p-2 !bg-white !rounded-none !text-gray-400 space-y-3 flex flex-col items-center",children:[(0,a.jsx)(Da,{name:"Info"}),(0,a.jsx)("div",{children:"No Entries"})]}),g.map(e=>(0,a.jsx)(Ia.ComboboxOption,{value:e,children:(0,a.jsx)("div",{className:r()("grid hover:bg-gray-50 py-3 px-2 cursor-pointer",`grid-cols-${e.labels?.length||1}`),children:e.labels?.length?e.labels.map(e=>(0,a.jsx)("div",{children:e},e)):e.label})},e.id))]})]})})},Et=require("react-toastify"),St=e=>(0,Et.toast)(`Server error: ${e.response?.data?.message||e.message}`,{type:"error"}),Mt=e=>(0,Et.toast)(e,{type:"error"}),Ot=e=>(0,Et.toast)(e,{type:"success"}),Lt=e=>(0,Et.toast)(e,{type:"warning"}),qt=require("moment");var At=e.n(qt);const Dt=e=>At()(e).format("MMM DD, YYYY"),Pt=e=>At()(e).format("YYYY MMM DD HH:mm"),zt=(e,n)=>`${Pt(e)} - ${Pt(n)}`,Tt=e=>`${e.firstname} ${e.lastname}`,Rt=e=>Number(e).toFixed(2),Bt=(e,n)=>`${n?"€":""}${Number(e).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2})}`,Ht=e=>Number(e).toLocaleString("de-DE",{minimumFractionDigits:0,maximumFractionDigits:0}),It=e=>At()(e).format("MMM DD"),$t=[{label:"Headshot Front (Polas)",id:"polas_headshot_front"},{label:"Headshot Side (Polas)",id:"polas_headshot_side"},{label:"Mid-Length Shot (Polas)",id:"polas_mid_length"},{label:"Three-Quarter Shot (Polas)",id:"polas_three_quarter"},{label:"ProfileInfo Shot (Polas)",id:"polas_profile"},{label:"Full Body Shot (Polas)",id:"polas_full_body"},{label:"Portrait",id:"portrait"},{label:"Full Body",id:"full_body"},{label:"E-Com",id:"ecom"},{label:"Beauty",id:"beauty"},{label:"Sport",id:"sport"},{label:"Fashion",id:"fashion"},{label:"Miscellaneous",id:"miscellaneous"}],Ft=[{label:"Client Hostess A",id:"CLIENT_HOSTESS_A"},{label:"Client Showroom A",id:"CLIENT_SHOWROOM_A"}],Wt=[{label:"Black",id:"black"},{label:"Brown",id:"brown"},{label:"Hazel",id:"hazel"},{label:"Green",id:"green"},{label:"Blue",id:"blue"},{label:"Gray",id:"gray"},{label:"Amber",id:"amber"},{label:"Violet",id:"violet"}],Ut=[{label:"Black",id:"black"},{label:"Blonde",id:"blonde"},{label:"Brown",id:"brown"},{label:"Red",id:"red"},{label:"Auburn",id:"auburn"},{label:"Gray",id:"gray"},{label:"White",id:"white"},{label:"Blue",id:"blue"},{label:"Pink",id:"pink"},{label:"Green",id:"green"},{label:"Purple",id:"purple"},{label:"Multicolored",id:"multicolored"}],Vt=[{label:"Dienstleistervertrag Hostess Standard",id:"REQUEST_HOSTESS_A"},{label:"Dienstleistervertrag Model Standard",id:"REQUEST_MODEL_A"}],_t=[{label:"Freelance-Model Registration",id:"REGISTRATION_MODEL_A",de:"Freelance-Model Vertrag"}],Gt=[{label:"Deutschland",id:"DE"},{label:"Österreich",id:"AT"},{label:"Schweiz",id:"CH"},{label:"Italien",id:"IT"},{label:"Frankreich",id:"FR"},{label:"Spanien",id:"ES"}],Kt=[{label:"Model",id:"Model"},{label:"Hostess",id:"Hostess"},{label:"Promoter",id:"Promoter"}],Yt=[{label:"Female",id:"Female"},{label:"Male",id:"Male"}],Zt=[{label:"Model",id:"Model"},{label:"Hostess",id:"Hostess"},{label:"Promoter",id:"Promoter"}],Jt=[{label:"Berlin",id:"berlin"},{label:"Düsseldorf",id:"düsseldorf"},{label:"Hamburg",id:"hamburg"},{label:"München",id:"münchen"},{label:"Frankfurt",id:"frankfurt"},{label:"Köln",id:"köln"},{label:"Stuttgart",id:"stuttgart"},{label:"Leipzig",id:"leipzig"},{label:"Nürnberg",id:"nürnberg"},{label:"Hannover",id:"hannover"},{label:"Essen",id:"essen"},{label:"Dortmund",id:"dortmund"}],Qt=[{label:"Deutsch",id:"de"},{label:"Englisch",id:"en"},{label:"Französisch",id:"fr"},{label:"Spanisch",id:"es"},{label:"Italienisch",id:"it"},{label:"Niederländisch",id:"nl"},{label:"Polnisch",id:"pl"},{label:"Türkisch",id:"tr"},{label:"Russisch",id:"ru"},{label:"Arabisch",id:"ar"},{label:"Chinesisch",id:"zh"},{label:"Japanisch",id:"ja"},{label:"Koreanisch",id:"ko"},{label:"Griechisch",id:"el"},{label:"Portugiesisch",id:"pt"}],Xt=/^[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/,er=({nav:e,selectedPath:n,close:t})=>{const s=Object.keys(e);return(0,a.jsx)("div",{className:"py-6",children:(0,a.jsx)("div",{className:"space-y-24",children:s.map(s=>(s=>(0,a.jsx)("ul",{className:"space-y-1.5",children:e[s].map(e=>(0,a.jsx)("li",{onClick:()=>t?.(),className:r()("hover:bg-gray-50 rounded-lg",{"bg-gray-100":n===e.href}),children:(0,a.jsxs)(i(),{href:e.href,className:"flex space-x-3 items-center p-2",children:[(0,a.jsx)(Da,{name:e.icon,className:r()("text-gray-500",n===e.href?"!text-primary":"")}),(0,a.jsx)("span",{className:r()("text-gray-800 font-semibold",n===e.href?"!text-primary":""),children:e.name})]})},e.name))},s))(s))})})};function nr({children:e,open:n,setOpen:t,footer:r}){return(0,a.jsxs)(Ia.Dialog,{open:n,onClose:t,className:"relative z-50 xl:hidden",children:[(0,a.jsx)(Ia.DialogBackdrop,{transition:!0,className:"fixed inset-0 bg-white/80 transition-opacity duration-300 ease-linear data-[closed]:opacity-0"}),(0,a.jsx)("div",{className:"fixed inset-0 flex ",children:(0,a.jsxs)(Ia.DialogPanel,{transition:!0,className:"relative bg-white mr-16 flex w-full max-w-md flex-1 transform transition duration-300 ease-in-out data-[closed]:-translate-x-full",children:[(0,a.jsx)(Ia.TransitionChild,{children:(0,a.jsx)("div",{className:"absolute left-full top-0 flex w-16 h-16 justify-center duration-300 ease-in-out data-[closed]:opacity-0",children:(0,a.jsxs)("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 p-2.5",children:[(0,a.jsx)("span",{className:"sr-only",children:"Close sidebar"}),(0,a.jsx)(Da,{name:"Close","aria-hidden":"true",className:"size-6"})]})})}),(0,a.jsxs)("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto",children:[(0,a.jsx)("div",{className:"flex h-16 shrink-0 items-center p-6",children:(0,a.jsx)(ct,{})}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col px-8 pb-6",children:[(0,a.jsx)("div",{className:"flex-1",children:e}),r&&(0,a.jsx)("div",{className:"mt-auto border-t border-gray-200 pt-4",children:r})]})]})]})})]})}const ar=(e,n)=>{const a=[],t=(e,n)=>{for(const r of e)if(n===r.href||n.startsWith(r.href)&&"/"!==r.href)return a.push(r),r.children&&t(r.children,n),!0;return!1};return Object.values(e).forEach(e=>{t(e,n)}),a};function tr({children:e,nav:n,contentClassName:t,currentPath:s,sidebarFooter:i}){const[o,c]=(0,l.useState)(!1),d=ar(n,s),[u]=d;return(0,a.jsxs)("div",{className:"w-screen",children:[(0,a.jsx)(nr,{open:o,setOpen:c,footer:i,children:(0,a.jsx)(er,{close:()=>c(!1),nav:n,selectedPath:u?.href||""})}),(0,a.jsxs)("div",{className:"min-h-screen xl:max-h-screen flex flex-col",children:[(0,a.jsx)("div",{className:"w-full xl:hidden sticky top-0 left-0 right-0 z-40 h-16 border-b bg-white flex items-center gap-x-6 shrink-0 px-3",children:(0,a.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"-m-2.5 p-2.5",children:[(0,a.jsx)("span",{className:"sr-only",children:"Open sidebar"}),(0,a.jsx)(Da,{name:"Menu","aria-hidden":"true",className:"size-5"})]})}),(0,a.jsxs)("div",{className:"flex w-full xl:max-w-8xl xl:mx-auto flex-grow xl:border-r xl:border-l",children:[(0,a.jsx)("div",{className:"hidden xl:flex xl:w-1/6 xl:flex-col",children:(0,a.jsxs)("div",{className:"sticky top-0 flex h-screen flex-col gap-y-5 overflow-y-auto border-r bg-white px-6",children:[(0,a.jsx)("div",{className:"flex h-16 shrink-0 items-center",children:(0,a.jsx)(ct,{})}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,a.jsx)(er,{selectedPath:u?.href||"",nav:n}),i&&(0,a.jsx)("div",{className:"mt-auto border-t border-gray-200 pt-4 pb-6",children:i})]})]})}),(0,a.jsxs)("main",{className:"bg-white w-full xl:w-5/6 flex flex-col",children:[(0,a.jsx)("div",{className:"sticky top-0 py-3 flex items-center space-x-2 bg-white border-b px-3 md:px-6 z-30",children:(0,a.jsx)("h1",{className:"flex space-x-1.5",children:d.map((e,n)=>(0,a.jsxs)("div",{className:"flex space-x-1.5",children:[(0,a.jsx)("span",{children:e.name}),d.length-1!==n&&(0,a.jsx)("span",{children:"»"})]},e.name))})}),(0,a.jsx)("div",{className:r()(t,"w-full p-3 xl:p-6 flex-grow flex flex-col overflow-y-scroll no-scrollbar"),children:e})]})]}),(0,a.jsx)(jt,{})]})]})}const rr=({children:e,seo:n,name:t})=>(0,a.jsxs)("div",{className:"bg-white h-screen",children:[n,(0,a.jsxs)("div",{className:"py-12 lg:py-24 space-y-12 w-full sm:max-w-md mx-auto p-3",children:[(0,a.jsxs)("div",{className:"flex justify-center items-center flex-col space-y-2",children:[(0,a.jsx)(ct,{size:150}),(0,a.jsx)("div",{className:" text-lg text-white font-bold bg-black p-2 rounded-full px-3",children:t})]}),e]})]}),sr=(e,n)=>{const a=e.split(/[?#]/)[0].replace(/\/$/,"")||"/";return"/"===n?"/"===a:a===n||a.startsWith(`${n}/`)};function ir(e){const n=(e,a)=>e.flatMap(e=>[{...e,group:a},...n(e.children||[],a)]);return Object.entries(e).flatMap(([e,a])=>n(a,e))}function lr(e,n){return ir(e).filter(e=>sr(n,e.href)).sort((e,n)=>n.href.length-e.href.length)[0]}const or={navigation:"Main navigation",secondaryNavigation:"More pages",openNavigation:"Open navigation",closeNavigation:"Close navigation",skipToContent:"Skip to content",breadcrumb:"Breadcrumb",workspace:"Workspace",overview:"Overview",details:"Details",search:"Search workspace",jumpTo:"Jump to…",searchTitle:"Navigate workspace",searchInput:"Search pages",searchPlaceholder:"Where would you like to go?",closeSearch:"Close search",pages:"Pages",noResults:"No matching pages. Try a different name.",navigate:"to navigate",open:"to open",close:"to close",account:"Account menu",signOut:"Sign out"};function cr({nav:e,selectedPath:n,close:t,label:r="Main navigation",showGroupLabels:s=!0}){return(0,a.jsx)("nav",{"aria-label":r,className:"ui-nav",children:Object.entries(e).map(([e,r])=>(0,a.jsxs)("div",{className:"ui-nav-group",children:[s&&(0,a.jsx)("p",{className:"ui-nav-label",children:e}),(0,a.jsx)("ul",{children:r.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)(i(),{href:e.href,onClick:t,className:"ui-nav-link","aria-current":sr(n,e.href)?"page":void 0,children:[(0,a.jsx)(Da,{name:e.icon,size:19,"aria-hidden":"true"}),(0,a.jsx)("span",{children:e.name}),sr(n,e.href)&&(0,a.jsx)("span",{className:"ui-nav-dot"})]})},e.href))})]},e))})}function dr({nav:e,open:n,onClose:t,onNavigate:r,labels:s}){const i={...or,...s},o=(0,l.useId)(),[c,d]=(0,l.useState)(""),[u,h]=(0,l.useState)(0);(0,l.useEffect)(()=>{n&&(d(""),h(0))},[n]);const m=ir(e).filter(e=>`${e.name} ${e.group}`.toLowerCase().includes(c.trim().toLowerCase())),p=e=>{t(),r(e)};return(0,a.jsxs)(Ia.Dialog,{open:n,onClose:t,className:"ui-command-dialog",children:[(0,a.jsx)(Ia.DialogBackdrop,{className:"ui-dialog-backdrop"}),(0,a.jsx)("div",{className:"ui-command-position",children:(0,a.jsxs)(Ia.DialogPanel,{className:"ui-command-panel",children:[(0,a.jsx)(Ia.DialogTitle,{className:"sr-only",children:i.searchTitle}),(0,a.jsxs)("div",{className:"ui-command-search",children:[(0,a.jsx)(Da,{name:"Search",size:20,"aria-hidden":"true"}),(0,a.jsx)("input",{autoFocus:!0,"aria-label":i.searchInput,placeholder:i.searchPlaceholder,role:"combobox","aria-autocomplete":"list","aria-expanded":"true","aria-controls":`${o}-results`,"aria-activedescendant":m.length?`${o}-${u}`:void 0,value:c,onChange:e=>{d(e.target.value),h(0)},onKeyDown:e=>{if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();const n=(u+("ArrowDown"===e.key?1:-1)+m.length)%(m.length||1);h(n),document.getElementById(`${o}-${n}`)?.scrollIntoView({block:"nearest"})}"Enter"===e.key&&m[u]&&(e.preventDefault(),p(m[u].href))}}),(0,a.jsx)("button",{type:"button",onClick:t,"aria-label":i.closeSearch,className:"ui-icon-button",children:(0,a.jsx)(Da,{name:"Close",size:18})})]}),(0,a.jsx)("p",{className:"ui-command-label",children:i.pages}),(0,a.jsx)("ul",{id:`${o}-results`,role:"listbox","aria-label":i.pages,className:"ui-command-results",children:m.map((e,n)=>(0,a.jsxs)("li",{id:`${o}-${n}`,role:"option","aria-selected":u===n,onMouseMove:()=>h(n),onClick:()=>p(e.href),children:[(0,a.jsx)(Da,{name:e.icon,size:19,"aria-hidden":"true"}),(0,a.jsx)("span",{children:e.name}),(0,a.jsx)("small",{children:e.group}),(0,a.jsx)(Da,{name:"ArrowRight",size:16,"aria-hidden":"true"})]},e.href))}),!m.length&&(0,a.jsx)("p",{className:"ui-command-empty",children:i.noResults}),(0,a.jsxs)("div",{className:"ui-command-footer",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("kbd",{children:"↑"})," ",(0,a.jsx)("kbd",{children:"↓"})," ",i.navigate]}),(0,a.jsxs)("span",{children:[(0,a.jsx)("kbd",{children:"↵"})," ",i.open]}),(0,a.jsxs)("span",{children:[(0,a.jsx)("kbd",{children:"esc"})," ",i.close]})]})]})})]})}function ur({children:e,nav:n,currentPath:t,navigationKey:r=t,busy:s=!1,onNavigate:o,account:c,workspaceName:d,workspaceDescription:u,brand:h,brandSubtitle:m="IT’S YOU",homeHref:p="/",contentClassName:g="",sidebarFooter:f,sidebarBottomNav:v={},sidebarSignOut:x=!1,footer:b,headerActions:j,labels:w}){const y={...or,...w},[C,N]=(0,l.useState)(!1),[k,E]=(0,l.useState)(!1),S=(0,l.useId)(),M={...n};for(const[e,n]of Object.entries(v))M[e]=[...M[e]||[],...n];const O=lr(M,t),L=Object.values(v).some(e=>e.length>0),q=x&&!!c?.onSignOut,A=L||q,D=A?" ui-sidebar--with-actions":"",P=c?.name.split(" ").filter(Boolean).map(e=>e[0]).slice(0,2).join("")||"iy.";(0,l.useEffect)(()=>{const e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),N(!1),E(e=>!e))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,l.useEffect)(()=>{N(!1),E(!1)},[r]);const z=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"ui-sidebar-brand",children:h||(0,a.jsxs)(i(),{href:p,"aria-label":`IT’S YOU · ${y.overview}`,className:"ui-brand",children:[(0,a.jsx)(ct,{size:38}),(0,a.jsxs)("span",{children:["IT’S YOU",(0,a.jsx)("span",{children:m})]})]})}),(0,a.jsxs)("div",{className:"ui-sidebar-scroll",children:[(0,a.jsxs)("div",{className:"ui-workspace-label",children:[(0,a.jsx)("span",{className:"ui-workspace-mark",children:"iy."}),(0,a.jsxs)("div",{children:[d,u&&(0,a.jsx)("small",{children:u})]})]}),(0,a.jsx)(cr,{nav:n,selectedPath:t,close:()=>N(!1),label:y.navigation})]}),A?(0,a.jsxs)("div",{className:"ui-sidebar-actions",children:[f&&(0,a.jsx)("div",{className:"ui-sidebar-caption",children:f}),L&&(0,a.jsx)(cr,{nav:v,selectedPath:t,close:()=>N(!1),label:y.secondaryNavigation,showGroupLabels:!1}),q&&(0,a.jsxs)("button",{type:"button",className:"ui-nav-link ui-sidebar-sign-out",onClick:()=>{N(!1),c?.onSignOut?.()},children:[(0,a.jsx)(Da,{name:"Switch",size:19,"aria-hidden":"true"}),(0,a.jsx)("span",{children:y.signOut})]})]}):f&&(0,a.jsx)("div",{className:"ui-sidebar-bottom",children:f})]});return(0,a.jsxs)("div",{className:"ui-shell",children:[(0,a.jsx)("a",{href:`#${S}`,className:"ui-skip-link",children:y.skipToContent}),(0,a.jsx)("aside",{className:`ui-sidebar${D}`,children:z}),(0,a.jsxs)(Ia.Dialog,{open:C,onClose:N,className:"ui-mobile-dialog",children:[(0,a.jsx)(Ia.DialogBackdrop,{className:"ui-dialog-backdrop"}),(0,a.jsxs)(Ia.DialogPanel,{className:`ui-mobile-sidebar${D}`,children:[(0,a.jsx)(Ia.DialogTitle,{className:"sr-only",children:y.navigation}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button ui-mobile-close",onClick:()=>N(!1),"aria-label":y.closeNavigation,children:(0,a.jsx)(Da,{name:"Close",size:18})}),z]})]}),(0,a.jsxs)("div",{className:"ui-workspace",children:[(0,a.jsxs)("header",{className:"ui-topbar",children:[(0,a.jsx)("div",{className:"ui-update-progress","data-active":s,"aria-hidden":"true"}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button ui-menu-trigger",onClick:()=>N(!0),"aria-label":y.openNavigation,children:(0,a.jsx)(Da,{name:"Menu",size:20})}),(0,a.jsxs)("nav",{"aria-label":y.breadcrumb,className:"ui-breadcrumb",children:[(0,a.jsx)("span",{children:O?.group||y.workspace}),(0,a.jsx)("span",{"aria-hidden":"true",children:"/"}),(0,a.jsx)(i(),{href:O?.href||p,children:O?.name||y.overview}),O&&t!==O.href&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{"aria-hidden":"true",children:"/"}),(0,a.jsx)("span",{className:"ui-breadcrumb-detail",children:y.details})]})]}),(0,a.jsxs)("div",{className:"ui-topbar-actions",children:[j,(0,a.jsxs)("button",{type:"button",className:"ui-search-trigger",onClick:()=>E(!0),"aria-label":y.search,"aria-keyshortcuts":"Meta+K Control+K",children:[(0,a.jsx)(Da,{name:"Search",size:17}),(0,a.jsx)("span",{children:y.jumpTo}),(0,a.jsx)("kbd",{children:"⌘ K"})]}),c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"ui-topbar-divider"}),(0,a.jsxs)(Ia.Menu,{children:[(0,a.jsxs)(Ia.MenuButton,{className:"ui-account-button","aria-label":y.account,children:[(0,a.jsx)("span",{className:"ui-avatar",children:P}),(0,a.jsx)(Da,{name:"ChevronDown",size:14})]}),(0,a.jsxs)(Ia.MenuItems,{anchor:"bottom end",className:"ui-account-menu",children:[(0,a.jsxs)("div",{className:"ui-account-info",children:[(0,a.jsx)("strong",{children:c.name}),c.email&&(0,a.jsx)("span",{children:c.email}),c.role&&(0,a.jsx)("small",{children:c.role})]}),c.onSignOut&&(0,a.jsx)(Ia.MenuItem,{children:(0,a.jsxs)("button",{type:"button",onClick:c.onSignOut,children:[y.signOut,(0,a.jsx)(Da,{name:"ArrowRight",size:16})]})})]})]})]})]})]}),(0,a.jsx)("main",{id:S,tabIndex:-1,className:`ui-content ${g}`,children:e}),b&&(0,a.jsx)("footer",{className:"ui-footer",children:b})]}),(0,a.jsx)(dr,{nav:M,open:k,onClose:()=>E(!1),onNavigate:o,labels:y})]})}function hr({children:e,workspaceLabel:n,eyebrow:t,title:r,description:s,brand:i,formHeader:l,storyFooter:o,footer:c}){return(0,a.jsxs)("div",{className:"ui-login",children:[(0,a.jsxs)("aside",{className:"ui-login-story",children:[(0,a.jsxs)("div",{className:"ui-login-logo",children:[i||(0,a.jsx)(ct,{mode:"white",size:60}),(0,a.jsx)("span",{children:n})]}),(0,a.jsxs)("div",{className:"ui-login-message",children:[t&&(0,a.jsx)("p",{children:t}),(0,a.jsx)("h1",{children:r}),s&&(0,a.jsx)("div",{children:s})]}),o&&(0,a.jsx)("div",{className:"ui-login-story-footer",children:o})]}),(0,a.jsxs)("main",{className:"ui-login-main",children:[(0,a.jsxs)("div",{className:"ui-login-card",children:[l,e]}),c&&(0,a.jsx)("div",{className:"ui-login-footer",children:c})]})]})}function mr({label:e="Notifications",unreadCount:n,children:t}){return(0,a.jsx)(Ia.Popover,{children:({close:r})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Ia.PopoverButton,{className:"ui-icon-button ui-notification-trigger","aria-label":`${e}${n?` (${n})`:""}`,children:[(0,a.jsx)(Da,{name:"Bell",size:20}),n>0&&(0,a.jsx)("span",{"aria-hidden":"true",className:"ui-notification-count",children:n>99?"99+":n})]}),(0,a.jsx)(Ia.PopoverPanel,{anchor:"bottom end",className:"ui-notification-menu","aria-label":e,children:t(r)})]})})}function pr({title:e,subtitle:n,actions:t,onBack:r,backLabel:s="Back",eyebrow:i}){return(0,a.jsxs)("div",{className:"ui-page-header",children:[r&&(0,a.jsxs)("button",{type:"button",onClick:r,className:"ui-back-link",children:[(0,a.jsx)(Da,{name:"ArrowRight",size:16,className:"rotate-180"}),s]}),(0,a.jsxs)("div",{className:"ui-page-heading",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[i&&(0,a.jsx)("p",{className:"ui-eyebrow",children:i}),(0,a.jsx)("h1",{children:e}),n&&(0,a.jsx)("div",{className:"ui-page-description",children:n})]}),t&&(0,a.jsx)("div",{className:"ui-page-actions",children:t})]})]})}function gr({title:e,description:n,actions:t,children:s,className:i,contentClassName:o,collapsible:c,collapseLabel:d="Toggle section",defaultCollapsed:u=!1,unpadded:h=!1,...m}){const[p,g]=(0,l.useState)(u),f=(0,l.useId)();return(0,a.jsxs)("section",{...m,className:r()("ui-panel",i),children:[(e||n||t||c)&&(0,a.jsxs)("div",{className:"ui-panel-header",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:["string"==typeof e?(0,a.jsx)("h2",{children:e}):e,n&&(0,a.jsx)("p",{className:"ui-panel-description",children:n})]}),t,c&&(0,a.jsx)("button",{type:"button",className:"ui-icon-button",onClick:()=>g(e=>!e),"aria-expanded":!p,"aria-controls":f,"aria-label":d,children:(0,a.jsx)(Da,{name:"ChevronDown",size:18,className:p?"":"rotate-180"})})]}),(0,a.jsx)("div",{id:f,hidden:c&&p,className:r()(!h&&"ui-panel-content",o),children:s})]})}function fr({children:e,tone:n="neutral",dot:t=!0,className:s,...i}){return(0,a.jsxs)("span",{...i,className:r()("ui-status",s),"data-tone":n,children:[t&&(0,a.jsx)("span",{"aria-hidden":"true",className:"ui-status-dot"}),e]})}function vr({className:e,...n}){return(0,a.jsx)("div",{"aria-hidden":"true",...n,className:r()("ui-skeleton",e)})}function xr({title:e,description:n,children:t,action:s,icon:i="Inbox",loading:l,loadingLabel:o="Loading…",className:c}){return(0,a.jsx)("div",{className:r()("ui-empty-state",c),role:"status","aria-busy":l,children:l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ta,{size:24,color:"dark"}),(0,a.jsx)("p",{children:o})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"ui-empty-check",children:(0,a.jsx)(Da,{name:i,size:24,"aria-hidden":"true"})}),e&&(0,a.jsx)("strong",{children:e}),(n||t)&&(0,a.jsx)("div",{children:n||t}),s]})})}function br({children:e,action:n,className:t,tone:s="neutral"}){return(0,a.jsxs)("div",{className:r()("ui-inline-error",t),role:"error"===s?"alert":"status",children:[(0,a.jsx)("div",{children:e}),n]})}function jr({label:e="Opening your workspace…"}){return(0,a.jsxs)("div",{className:"ui-session-loading",role:"status",children:[(0,a.jsx)("span",{className:"ui-loading-mark","aria-hidden":"true",children:"iy."}),(0,a.jsx)("p",{children:e})]})}const wr="ui-input";function yr({label:e,hint:n,error:t,className:s,children:i}){const o=(0,l.useId)(),c=(0,l.isValidElement)(i)?i:null,d=c?.props.id||o,u=`${d}-message`;return(0,a.jsxs)("div",{className:r()("ui-form-field",s),children:[(0,a.jsx)("label",{htmlFor:d,className:"ui-field-label",children:e}),c?(0,l.cloneElement)(c,{id:d,"aria-invalid":!!t||c.props["aria-invalid"],"aria-describedby":[c.props["aria-describedby"],t||n?u:""].filter(Boolean).join(" ")||void 0}):i,t?(0,a.jsx)("span",{id:u,className:"ui-field-error",role:"alert",children:t}):n&&(0,a.jsx)("span",{id:u,className:"ui-field-hint",children:n})]})}const Cr=(0,l.forwardRef)(function({className:e,...n},t){return(0,a.jsx)("input",{...n,ref:t,className:r()(wr,e)})}),Nr=(0,l.forwardRef)(function({items:e,placeholder:n,className:t,...s},i){return(0,a.jsxs)("select",{...s,ref:i,className:r()(wr,t),children:[n&&(0,a.jsx)("option",{value:"",children:n}),e.map(e=>(0,a.jsx)("option",{value:e.id,children:e.label},e.id))]})});function kr({id:e,title:n,description:t,children:r}){return(0,a.jsx)(gr,{id:e,className:"ui-section-anchor",title:n,description:t,contentClassName:"ui-form-grid",children:r})}const Er={searchLabel:"Fragen und Antworten durchsuchen",searchPlaceholder:"Alle Themen durchsuchen",clearSearch:"Suche löschen",topics:"Themen",allTopics:"Alle Themen",chooseTopic:"Thema auswählen",answers:e=>`${e} ${1===e?"Antwort":"Antworten"}`,resultsFor:e=>`für „${e}“ in allen Themen`,questions:e=>`${e} ${1===e?"Frage":"Fragen"}`,emptyTitle:"Keine passende Antwort gefunden",emptyDescription:"Ein kürzeres Stichwort oder ein anderes Thema hilft.",resetSearch:"Suche zurücksetzen"},Sr=e=>e.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/ß/g,"ss"),Mr=e=>null==e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(Mr).join(" "):"object"==typeof e&&"props"in e?Mr(e.props.children):"";function Or({topics:e,eyebrow:n,title:t,subtitle:r,support:s,labels:i,initialTopic:o}){const c={...Er,...i},d=(0,l.useId)(),[u,h]=(0,l.useState)(""),[m,p]=(0,l.useState)(o||e[0]?.id||"all"),[g,f]=(0,l.useState)(null),v=(0,l.useRef)(null),x=!!u.trim(),b=e.reduce((e,n)=>e+n.items.length,0),j=(0,l.useMemo)(()=>{const n=Sr(u).trim().split(/\s+/).filter(Boolean);return e.filter(e=>n.length||"all"===m||e.id===m).map(e=>({...e,items:e.items.map((n,a)=>({...n,id:`${e.id}-${a}`})).filter(a=>{const t=Sr(`${e.title} ${a.q} ${Mr(a.a)} ${a.keywords||""}`);return n.every(e=>t.includes(e))})})).filter(e=>e.items.length)},[e,u,m]),w=j.reduce((e,n)=>e+n.items.length,0),y=x?"all":m,C=e=>{p(e),h(""),f(null)},N=()=>{h(""),f(null),v.current?.focus()};return(0,a.jsxs)("div",{className:"ui-faq",children:[(0,a.jsx)(pr,{eyebrow:n,title:t,subtitle:r}),(0,a.jsxs)("div",{className:"ui-faq-search",children:[(0,a.jsx)(Za,{ref:v,type:"search",icon:"Search","aria-label":c.searchLabel,placeholder:c.searchPlaceholder,value:u,maxLength:100,hideError:!0,onChange:e=>{h(e.target.value),f(null)},wrapperClassName:"ui-faq-search-input"}),x&&(0,a.jsx)(Ra,{type:"button",variant:"ghost",size:"sm",onClick:N,wrapperClassName:"ui-faq-search-clear",children:c.clearSearch})]}),(0,a.jsxs)("div",{className:"ui-faq-layout",children:[(0,a.jsx)("aside",{className:"ui-faq-sidebar",children:(0,a.jsxs)("nav",{"aria-label":c.topics,className:"ui-faq-topics",children:[(0,a.jsx)("h2",{children:c.topics}),(0,a.jsxs)("button",{type:"button",className:"ui-faq-topic","aria-pressed":"all"===y,onClick:()=>C("all"),children:[(0,a.jsx)(Da,{name:"Search",size:17,"aria-hidden":"true"}),(0,a.jsx)("span",{children:c.allTopics}),(0,a.jsx)("small",{children:b})]}),e.map(e=>(0,a.jsxs)("button",{type:"button",className:"ui-faq-topic","aria-pressed":y===e.id,onClick:()=>C(e.id),children:[(0,a.jsx)(Da,{name:e.icon||"Help",size:17,"aria-hidden":"true"}),(0,a.jsx)("span",{children:e.title}),(0,a.jsx)("small",{children:e.items.length})]},e.id))]})}),(0,a.jsxs)("div",{className:"ui-faq-content",children:[(0,a.jsxs)("div",{className:"ui-faq-mobile-topic",children:[(0,a.jsx)("label",{htmlFor:`${d}-topic`,children:c.chooseTopic}),(0,a.jsx)(Nr,{id:`${d}-topic`,value:y,onChange:e=>C(e.target.value),items:[{id:"all",label:c.allTopics},...e.map(e=>({id:e.id,label:e.title}))]})]}),x&&(0,a.jsxs)("div",{className:"ui-faq-results",role:"status","aria-live":"polite",children:[(0,a.jsx)("strong",{children:c.answers(w)}),(0,a.jsx)("span",{children:c.resultsFor(u.trim())})]}),j.length?j.map(e=>(0,a.jsxs)("section",{"aria-labelledby":`${d}-${e.id}-title`,className:"ui-faq-section",children:[(0,a.jsxs)("div",{className:"ui-faq-section-header",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{id:`${d}-${e.id}-title`,children:e.title}),(0,a.jsx)("p",{children:e.intro})]}),(0,a.jsx)("span",{children:c.questions(e.items.length)})]}),(0,a.jsx)(gr,{unpadded:!0,children:e.items.map(e=>{const n=g===e.id;return(0,a.jsxs)("div",{className:"ui-faq-question","data-open":n,children:[(0,a.jsx)("h3",{children:(0,a.jsxs)("button",{type:"button",id:`${d}-trigger-${e.id}`,"aria-expanded":n,"aria-controls":`${d}-answer-${e.id}`,onClick:()=>f(n?null:e.id),className:"ui-faq-question-button",children:[(0,a.jsx)("span",{children:e.q}),(0,a.jsx)(Da,{name:n?"Minus":"Plus",size:18,"aria-hidden":"true"})]})}),(0,a.jsx)("div",{id:`${d}-answer-${e.id}`,role:"region","aria-labelledby":`${d}-trigger-${e.id}`,hidden:!n,className:"ui-faq-answer",children:e.a})]},e.id)})})]},e.id)):(0,a.jsx)(gr,{unpadded:!0,children:(0,a.jsx)(xr,{icon:"Search",title:c.emptyTitle,description:c.emptyDescription,action:(0,a.jsx)(Ra,{type:"button",variant:"secondary",onClick:N,children:c.resetSearch})})})]})]}),s&&(0,a.jsxs)("div",{className:"ui-faq-support",children:[(0,a.jsx)("span",{className:"ui-faq-support-icon",children:(0,a.jsx)(Da,{name:s.icon||"MessageSmile",size:21,"aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"ui-faq-support-copy",children:[(0,a.jsx)("h2",{children:s.title}),(0,a.jsx)("p",{children:s.description})]}),(0,a.jsx)("div",{className:"ui-faq-support-actions",children:s.actions})]})]})}function Lr({label:e,value:n,options:t,onChange:s,variant:i="segmented",className:l}){return(0,a.jsx)("div",{role:"group","aria-label":e,className:r()("ui-filter-tabs","underline"===i&&"ui-filter-tabs-underline",l),children:t.map(e=>(0,a.jsxs)("button",{type:"button",disabled:e.disabled,className:"ui-filter-chip","aria-pressed":n===e.value,onClick:()=>s(e.value),children:[e.label," ",void 0!==e.count&&(0,a.jsx)("span",{className:"ui-content-tab-count",children:e.count})]},e.value))})}function qr({page:e,pageSize:n,total:t,totalPages:r,onPageChange:s,disabled:i,noun:l="results",previousLabel:o="Previous page",nextLabel:c="Next page",rangeLabel:d,pageLabel:u}){const h=Math.max(1,n),m=Math.max(0,t),p=Math.max(1,r||Math.ceil(m/h)),g=Math.min(Math.max(1,e),p),f=m?(g-1)*h+1:0,v=Math.min(g*h,m);return(0,a.jsxs)("div",{className:"ui-table-pagination",children:[(0,a.jsx)("span",{children:d?d(f,v,m):`${f}–${v} of ${m} ${l}`}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{type:"button",disabled:i||g<=1,onClick:()=>s(g-1),"aria-label":o,children:(0,a.jsx)(Da,{name:"ChevronDown",size:15,className:"rotate-90"})}),(0,a.jsx)("span",{"aria-live":"polite",children:u?u(g,p):`Page ${g} of ${p}`}),(0,a.jsx)("button",{type:"button",disabled:i||g>=p,onClick:()=>s(g+1),"aria-label":c,children:(0,a.jsx)(Da,{name:"ChevronDown",size:15,className:"-rotate-90"})})]})]})}function Ar({label:e,value:n,prefix:t,description:r,icon:s,href:l,loading:o,unavailable:c,linkLabel:d}){const u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"ui-stat-top",children:[(0,a.jsx)("span",{children:e}),s&&(0,a.jsx)(Da,{name:s,size:19,"aria-hidden":"true"})]}),(0,a.jsx)("div",{className:"ui-stat-value",children:o?(0,a.jsx)(vr,{className:"ui-stat-skeleton"}):c?"—":(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)("span",{className:"ui-stat-currency",children:t}),n]})}),(0,a.jsxs)("div",{className:"ui-stat-bottom",children:[(0,a.jsx)("span",{children:r}),l&&(0,a.jsx)(Da,{name:"ArrowRight",size:16,"aria-hidden":"true"})]})]});return l?(0,a.jsx)(i(),{href:l,className:"ui-stat-card","aria-label":d,"aria-busy":o,children:u}):(0,a.jsx)("div",{className:"ui-stat-card","aria-busy":o,children:u})}function Dr({children:e,loading:n,updating:t,error:r,hasData:s,onRetry:i,skeleton:l,locale:o="en",errorTitle:c,minHeight:d=240,className:u=""}){const h="de"===o?"Erneut versuchen":"Try again",m=c||("de"===o?"Daten konnten nicht geladen werden":"Unable to load this content");return(0,a.jsxs)("div",{className:`ui-data-region ${u}`,style:{minHeight:d},"aria-busy":!!n||!!t,children:[n&&!s?(0,a.jsxs)("div",{role:"status",children:[(0,a.jsx)("span",{className:"sr-only",children:"de"===o?"Wird geladen…":"Loading…"}),l||(0,a.jsx)(Pr,{})]}):r&&!s?(0,a.jsx)(xr,{title:m,action:i&&(0,a.jsx)(Ra,{variant:"secondary",onClick:i,children:h})}):e,(0,a.jsx)("div",{className:"ui-update-progress",style:{margin:0},"data-active":!!t,"aria-hidden":"true"}),r&&s&&(0,a.jsxs)("div",{className:"ui-refresh-notice",role:"status",children:[(0,a.jsx)("span",{children:"de"===o?"Aktualisierung fehlgeschlagen. Der letzte geladene Stand bleibt sichtbar.":"Couldn’t refresh. Showing the last loaded version."}),i&&(0,a.jsx)("button",{type:"button",onClick:i,disabled:t,children:h})]})]})}function Pr({rows:e=5,rowHeight:n=80}){return(0,a.jsx)("div",{className:"ui-list-skeleton","aria-hidden":"true",children:Array.from({length:e},(e,t)=>(0,a.jsxs)("div",{className:"ui-list-skeleton-row",style:{minHeight:n},children:[(0,a.jsx)(vr,{className:"ui-list-skeleton-avatar"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(vr,{className:"ui-list-skeleton-title"}),(0,a.jsx)(vr,{className:"ui-list-skeleton-detail"})]}),(0,a.jsx)(vr,{className:"ui-list-skeleton-action"})]},t))})}function zr({value:e,label:n,description:t}){const r=Number.isFinite(e)?Math.min(100,Math.max(0,e)):0;return(0,a.jsxs)("div",{className:"ui-progress",children:[(0,a.jsxs)("div",{className:"ui-progress-label",children:[(0,a.jsx)("span",{children:n}),(0,a.jsx)("span",{children:t||`${Math.round(r)}%`})]}),(0,a.jsx)("div",{className:"ui-progress-track",role:"progressbar","aria-label":n,"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,children:(0,a.jsx)("div",{style:{width:`${r}%`}})})]})}const Tr=e=>e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLocaleLowerCase().replace(/ß/g,"ss"),Rr=e=>e.replace(/[^\p{L}\p{N}]/gu,"");function Br(e,n){const a=Tr(n).split(/\s+/).map(Rr).filter(Boolean);return a.length?e.filter(e=>{const n=[e.label,e.meta,e.description,...e.keywords||[]].filter(e=>null!=e).map(e=>Rr(Tr(String(e))));return a.every(e=>n.some(n=>n.includes(e)))}):e}const Hr=(0,l.forwardRef)(function({options:e,value:n,onChange:t,onBlur:s,label:i,name:o,id:c,hint:d,error:u,placeholder:h="Search or select…",emptyMessage:m="No options available.",noResultsMessage:p="No matches. Try a different search.",loadingMessage:g="Loading…",loading:f,disabled:v,required:x,className:b,toggleLabel:j="Show options"},w){const y=(0,l.useId)(),C=c||y,N=`${C}-message`,[k,E]=(0,l.useState)(""),S=e.find(e=>e.value===n)||null,M=(0,l.useMemo)(()=>Br(e,k),[e,k]),O=f?[]:M;return(0,a.jsxs)(Ia.Field,{disabled:v,className:r()("ui-search-select ui-form-field",b),children:[i?(0,a.jsxs)("label",{className:"ui-field-label",htmlFor:C,children:[i,x&&(0,a.jsx)("span",{"aria-hidden":"true",children:" *"})]}):null,o&&(0,a.jsx)("input",{type:"hidden",name:o,value:n||"",disabled:v}),(0,a.jsxs)(Ia.Combobox,{value:S,by:"value",disabled:v,invalid:!!u,immediate:!0,onChange:e=>{t(e?.value||null),E("")},onClose:()=>E(""),virtual:O.length?{options:O,disabled:e=>!!e?.disabled}:void 0,children:[(0,a.jsxs)("div",{className:"ui-search-select-control",children:[(0,a.jsx)(Da,{name:"Search",size:17,className:"ui-search-select-icon","aria-hidden":"true"}),(0,a.jsx)(Ia.ComboboxInput,{ref:w,id:C,className:"ui-input",autoComplete:"off",displayValue:e=>e?[e.label,e.meta].filter(Boolean).join(" · "):"",onChange:e=>E(e.target.value),onBlur:s,placeholder:h,"aria-label":i?void 0:h,"aria-required":x,"aria-invalid":!!u,"aria-errormessage":u?N:void 0}),(0,a.jsx)(Ia.ComboboxButton,{className:"ui-search-select-toggle","aria-label":j,children:(0,a.jsx)(Da,{name:"ChevronDown",size:16,"aria-hidden":"true"})})]}),(0,a.jsx)(Ia.ComboboxOptions,{anchor:"bottom start",className:"ui-search-select-options",modal:!1,"aria-busy":f,children:O.length?({option:e})=>e?(0,a.jsx)(Ia.ComboboxOption,{value:e,disabled:e.disabled,className:"ui-search-select-option",children:({selected:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"ui-search-select-option-copy",children:[(0,a.jsxs)("span",{className:"ui-search-select-option-title",children:[e.label,e.meta&&(0,a.jsx)("small",{children:e.meta})]}),e.description&&(0,a.jsx)("span",{className:"ui-search-select-description",children:e.description})]}),n&&(0,a.jsx)(Da,{name:"Success",size:17,"aria-hidden":"true"})]})}):null:(0,a.jsx)("div",{className:"ui-search-select-empty",role:"status",children:f?g:e.length?p:m})})]}),(u||d)&&(0,a.jsx)(Ia.Description,{as:"span",id:N,className:u?"ui-field-error":"ui-field-hint",role:u?"alert":void 0,children:u||d})]})}),Ir={title:"Contact details",email:"Email",phone:"Phone",copy:"Copy",copied:"Copied",copyError:"Could not copy. Select and copy the text.",close:"Close contact details",unavailable:"Not provided"};function $r({value:e,label:n="Copy",copiedLabel:t="Copied",errorLabel:r=Ir.copyError}){const[s,i]=(0,l.useState)("idle"),[o,c]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{i("idle")},[e]),(0,l.useEffect)(()=>{if("copied"!==s)return;const e=setTimeout(()=>i("idle"),2200);return()=>clearTimeout(e)},[s]),(0,a.jsxs)("span",{className:"ui-copy-control",children:[(0,a.jsxs)("button",{type:"button",className:"ui-copy-button",onClick:async()=>{c(!0);try{await navigator.clipboard.writeText(e),i("copied")}catch{i("error")}finally{c(!1)}},disabled:o,"aria-label":n,title:n,children:[(0,a.jsx)(Da,{name:"copied"===s?"Success":"Copy",size:15,"aria-hidden":"true"}),(0,a.jsx)("span",{children:"copied"===s?t:n.split(" ")[0]})]}),(0,a.jsx)("span",{className:"error"===s?"ui-copy-error":"sr-only",role:"status",children:"copied"===s?t:"error"===s?r:""})]})}function Fr({email:e,phone:n,labels:t,showMissing:r=!0}){const s={...Ir,...t};return(0,a.jsx)("div",{className:"ui-contact-details",children:[{label:s.email,value:e,icon:"Mail",href:e?`mailto:${e.trim()}`:void 0},{label:s.phone,value:n,icon:"Phone",href:n?`tel:${n.replace(/[^+\d]/g,"")}`:void 0}].filter(e=>r||!!e.value).map(({label:e,value:n,icon:t,href:r})=>(0,a.jsxs)("div",{className:"ui-contact-row",children:[(0,a.jsxs)("div",{className:"ui-contact-value",children:[(0,a.jsxs)("span",{className:"ui-contact-label",children:[(0,a.jsx)(Da,{name:t,size:14,"aria-hidden":"true"}),e]}),n?(0,a.jsx)("a",{href:r,children:n}):(0,a.jsx)("span",{className:"ui-contact-missing",children:s.unavailable})]}),n&&(0,a.jsx)($r,{value:n,label:`${s.copy} ${e.toLowerCase()}`,copiedLabel:s.copied,errorLabel:s.copyError})]},t))})}function Wr({name:e,email:n,phone:t,labels:r}){const s={...Ir,...r},i=(0,l.useId)();return n||t?(0,a.jsxs)(Ia.Popover,{className:"ui-contact-popover",children:[(0,a.jsxs)(Ia.PopoverButton,{className:"ui-contact-trigger","aria-label":`${s.title}${e?` · ${e}`:""}`,title:s.title,children:[n&&(0,a.jsx)(Da,{name:"Mail",size:17,"aria-hidden":"true"}),t&&(0,a.jsx)(Da,{name:"Phone",size:17,"aria-hidden":"true"}),(0,a.jsx)(Da,{name:"ChevronDown",size:12,"aria-hidden":"true"})]}),(0,a.jsx)(Ia.PopoverPanel,{anchor:"bottom end",portal:!0,focus:!0,className:"ui-contact-panel",role:"dialog","aria-labelledby":i,children:({close:r})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"ui-contact-header",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{id:i,children:s.title}),e&&(0,a.jsx)("p",{children:e})]}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button",onClick:()=>r(),"aria-label":s.close,children:(0,a.jsx)(Da,{name:"Close",size:17})})]}),(0,a.jsx)(Fr,{email:n,phone:t,labels:s})]})})]}):(0,a.jsx)("span",{className:"ui-contact-missing","aria-label":s.unavailable,children:"—"})}function Ur({open:e,onClose:n,title:t,description:r,children:s,actions:i,busy:l,closeLabel:o="Close"}){return(0,a.jsxs)(Ia.Dialog,{open:e,onClose:()=>{l||n()},className:"ui-action-dialog",children:[(0,a.jsx)(Ia.DialogBackdrop,{className:"ui-dialog-backdrop"}),(0,a.jsx)("div",{className:"ui-action-dialog-container",children:(0,a.jsxs)(Ia.DialogPanel,{className:"ui-action-dialog-panel",children:[(0,a.jsxs)("div",{className:"ui-action-dialog-header",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(Ia.DialogTitle,{children:t}),r&&(0,a.jsx)(Ia.DialogDescription,{children:r})]}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button",disabled:l,onClick:n,"aria-label":o,children:(0,a.jsx)(Da,{name:"Close",size:18})})]}),s&&(0,a.jsx)("div",{className:"ui-action-dialog-content",children:s}),i&&(0,a.jsx)("div",{className:"ui-action-dialog-actions",children:i})]})})]})}function Vr({children:e,status:n,sticky:t=!0}){return(0,a.jsxs)("div",{className:"ui-form-actions "+(t?"ui-form-actions-sticky":""),children:[(0,a.jsx)("div",{className:"ui-form-actions-status",role:"status",children:n}),(0,a.jsx)("div",{className:"ui-form-actions-buttons",children:e})]})}function _r({label:e,options:n,value:t,onChange:r,disabled:s}){return(0,a.jsx)("div",{className:"ui-choice-chips",role:"group","aria-label":e,children:n.map(e=>{const n=t.includes(e.value);return(0,a.jsxs)("button",{type:"button",disabled:s,"aria-pressed":n,className:"ui-choice-chip",onClick:()=>r(n?t.filter(n=>n!==e.value):[...t,e.value]),children:[(0,a.jsx)("span",{className:"ui-choice-chip-mark",children:n&&(0,a.jsx)(Da,{name:"Success",size:12,"aria-hidden":"true"})}),e.label]},e.value)})})}function Gr({label:e,description:n,checked:t,onChange:s,disabled:i,busy:o,className:c}){const d=(0,l.useId)();return(0,a.jsxs)("div",{className:r()("ui-setting-toggle",c),children:[(0,a.jsxs)("div",{className:"ui-setting-toggle-copy",children:[(0,a.jsx)("label",{id:`${d}-label`,htmlFor:d,children:e}),n&&(0,a.jsx)("p",{id:`${d}-description`,children:n})]}),(0,a.jsx)("button",{id:d,type:"button",role:"switch","aria-checked":t,"aria-labelledby":`${d}-label`,"aria-describedby":n?`${d}-description`:void 0,"aria-busy":o||void 0,disabled:i||o,className:"ui-switch",onClick:()=>s(!t),children:(0,a.jsx)("span",{className:"ui-switch-track","aria-hidden":"true",children:(0,a.jsx)("span",{})})})]})}const Kr=require("dompurify");var Yr=e.n(Kr);const Zr=[{label:"Bold",text:"B",command:"bold"},{label:"Italic",text:"I",command:"italic"},{label:"Heading",text:"H2",command:"formatBlock",value:"h2"},{label:"Paragraph",text:"¶",command:"formatBlock",value:"p"},{label:"Bulleted list",text:"• List",command:"insertUnorderedList"},{label:"Numbered list",text:"1. List",command:"insertOrderedList"},{label:"Undo",text:"↶",command:"undo"},{label:"Redo",text:"↷",command:"redo"}],Jr=(0,l.forwardRef)(function({value:e,onChange:n,label:t="Contract content",disabled:s},i){const[o,c]=(0,l.useState)("visual"),d=(0,l.useRef)(null),u=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(0,l.useRef)();(0,l.useEffect)(()=>{"visual"===o&&d.current&&m.current!==e&&(d.current.innerHTML=function(e){const n=Yr()(window);return n.addHook("uponSanitizeAttribute",(e,n)=>{"src"!==n.attrName||/^data:image\/(png|jpeg|gif|webp);base64,/.test(n.attrValue)||(n.keepAttr=!1)}),n.sanitize(e,{FORBID_TAGS:["style","script","iframe","form","input","button","textarea","select","video","audio","svg","math"],FORBID_ATTR:["style","id"]})}(e),m.current=e)},[e,o]);const p=()=>{const e=window.getSelection();e?.rangeCount&&d.current?.contains(e.anchorNode)&&(h.current=e.getRangeAt(0).cloneRange())},g=()=>{d.current&&(m.current=d.current.innerHTML,n(m.current),p())},f=(e,n)=>{if(s)return;d.current?.focus();const a=window.getSelection();h.current&&d.current?.contains(h.current.commonAncestorContainer)&&(a?.removeAllRanges(),a?.addRange(h.current)),document.execCommand(e,!1,n),g()};return(0,l.useImperativeHandle)(i,()=>({insertField(a){const t=`{{${a}}}`;if("html"===o&&u.current){const{selectionStart:a,selectionEnd:r}=u.current;n(e.slice(0,a)+t+e.slice(r)),u.current.focus()}else f("insertText",t)}})),(0,a.jsxs)("div",{className:r()("ui-document-editor",s&&"opacity-60"),children:[(0,a.jsxs)("div",{className:"ui-document-editor-bar",children:[(0,a.jsx)(Lr,{label:"Editor mode",value:o,onChange:e=>{m.current=void 0,h.current=null,c(e)},options:[{value:"visual",label:"Write"},{value:"html",label:"HTML"}]}),(0,a.jsx)("span",{className:"ui-document-editor-hint",children:"Insert fields from the sidebar"})]}),"visual"===o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"ui-document-toolbar",role:"toolbar","aria-label":"Text formatting",children:Zr.map(e=>(0,a.jsx)("button",{type:"button",title:e.label,"aria-label":e.label,disabled:s,onMouseDown:e=>e.preventDefault(),onClick:()=>f(e.command,e.value),children:e.text},e.label))}),(0,a.jsx)("div",{ref:d,role:"textbox","aria-label":t,"aria-multiline":"true","aria-disabled":s||void 0,contentEditable:!s,suppressContentEditableWarning:!0,className:"ui-document-content",onInput:g,onKeyUp:p,onMouseUp:p,onBlur:p,onPaste:e=>{e.preventDefault(),f("insertText",e.clipboardData.getData("text/plain"))},onDrop:e=>e.preventDefault()})]}):(0,a.jsx)("textarea",{ref:u,value:e,onChange:e=>n(e.target.value),disabled:s,"aria-label":`${t} HTML`,spellCheck:!1,className:"ui-document-source"})]})});function Qr({html:e,title:n="Document preview",className:t}){const r=(0,l.useId)();return(0,a.jsx)("iframe",{id:r,title:n,sandbox:"",referrerPolicy:"no-referrer",className:t||"ui-document-preview",srcDoc:e.replace(/<head\b[^>]*>/i,e=>`${e}<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src data:; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'">`)})}function Xr({fields:e,values:n,onChange:t,disabled:r}){return e.length?(0,a.jsx)("div",{className:"grid sm:grid-cols-2 gap-4",children:e.map(e=>(0,a.jsx)(yr,{label:`${e.label}${e.required?" *":""}`,className:"multiline"===e.type?"sm:col-span-2":"",children:"multiline"===e.type?(0,a.jsx)("textarea",{className:"ui-input min-h-24",required:e.required,disabled:r,maxLength:4e3,value:n[e.key]??e.defaultValue??"",onChange:a=>t({...n,[e.key]:a.target.value})}):(0,a.jsx)(Cr,{type:e.type,step:"number"===e.type?"any":void 0,required:e.required,disabled:r,maxLength:4e3,value:n[e.key]??e.defaultValue??"",onChange:a=>t({...n,[e.key]:a.target.value})})},e.key))}):null}function es({label:e,options:n,value:t,onChange:r,placeholder:s="Any",noResultsMessage:i="No matching options.",toggleLabel:o}){const c=(0,l.useId)(),[d,u]=(0,l.useState)(""),h=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),m=(0,l.useMemo)(()=>n.filter(e=>h(`${e.label} ${e.id}`).includes(h(d))),[n,d]);return(0,a.jsxs)("div",{className:"ui-form-field min-w-0",children:[(0,a.jsx)("label",{htmlFor:c,className:"ui-field-label",children:e}),(0,a.jsxs)(Ia.Combobox,{multiple:!0,value:t,onChange:e=>{r(e),u("")},onClose:()=>u(""),immediate:!0,children:[(0,a.jsxs)("div",{className:"ui-search-select-control",children:[(0,a.jsx)(Ia.ComboboxInput,{id:c,className:"ui-input !pl-3 !pr-9",autoComplete:"off",placeholder:s,"aria-label":e,displayValue:e=>{const a=e.map(e=>n.find(n=>n.id===e)?.label||e);return a.length>1?`${a[0]} +${a.length-1}`:a[0]||""},onChange:e=>u(e.target.value)}),(0,a.jsx)(Ia.ComboboxButton,{className:"ui-search-select-toggle","aria-label":o||`Choose ${e.toLowerCase()}`,children:(0,a.jsx)(Da,{name:"ChevronDown",size:16,"aria-hidden":"true"})})]}),(0,a.jsxs)(Ia.ComboboxOptions,{anchor:"bottom start",className:"ui-search-select-options",modal:!1,children:[m.map(e=>(0,a.jsx)(Ia.ComboboxOption,{value:e.id,className:"ui-search-select-option text-sm",children:({selected:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("span",{"aria-hidden":"true",className:"flex h-5 w-5 items-center justify-center rounded border text-xs "+(n?"bg-dark border-dark text-white":"border-gray-300"),children:n?"✓":""})]})},e.id)),!m.length&&(0,a.jsx)("p",{className:"ui-search-select-empty",role:"status",children:i})]})]})]})}function ns({url:e,fileName:n,label:t="Herunterladen"}){const[r,s]=(0,l.useState)(!1),[i,o]=(0,l.useState)("");return(0,a.jsxs)("div",{className:"ui-request-download",children:[(0,a.jsx)(Ra,{variant:"secondary",size:"sm",icon:"Download",isLoading:r,onClick:async()=>{s(!0),o("");try{const a=await fetch(e,{credentials:"include",cache:"no-store"});if(!a.ok){const e=await a.json().catch(()=>null);throw new Error(e?.message||"Download fehlgeschlagen. Bitte erneut versuchen.")}const t=URL.createObjectURL(await a.blob()),r=document.createElement("a");r.href=t,r.download=n,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(t),6e4)}catch(e){o(e instanceof Error?e.message:"Download fehlgeschlagen.")}finally{s(!1)}},children:t}),i&&(0,a.jsx)("p",{role:"alert",children:i})]})}const as=(e,n)=>`${e.replace(/\/$/,"")}/request-files/${n}`;async function ts(e,n,a){const t=n instanceof FormData,r=await fetch(e,{credentials:"include",cache:"no-store",signal:a,method:n?"POST":"GET",...n?{headers:t?{"X-Requested-With":"XMLHttpRequest"}:{"Content-Type":"application/json"},body:t?n:JSON.stringify(n)}:{}});if(!r.ok){const e=await r.json().catch(()=>null);throw new Error(e?.message||"Die Dateien konnten nicht geladen werden. Bitte versuchen Sie es erneut.")}return r.json()}function rs(e,n){const[a,t]=(0,l.useState)(null),[r,s]=(0,l.useState)(""),[i,o]=(0,l.useState)(0);return(0,l.useEffect)(()=>{t(null),s("")},[e]),(0,l.useEffect)(()=>{if(!n)return;const a=new AbortController;let r=!1;async function i(){if(!r){r=!0;try{const n=await ts(e,void 0,a.signal);a.signal.aborted||(t(n),s(""))}catch(e){a.signal.aborted||s(e instanceof Error?e.message:"Bitte erneut versuchen.")}finally{r=!1}}}i();const l=setInterval(()=>{document.hidden||i()},3e4);return()=>{a.abort(),clearInterval(l)}},[e,n,i]),{data:a,error:r,refresh:()=>o(e=>e+1)}}function ss(e){return e<1048576?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/1048576).toLocaleString("de-DE",{maximumFractionDigits:1})} MB`}function is({url:e,fields:n,onClose:t,onSaved:r,resource:s=!1,editing:i}){const o=(0,l.useId)(),[c,d]=(0,l.useState)(null),[u,h]=(0,l.useState)(""),[m,p]=(0,l.useState)(i?.label||""),[g,f]=(0,l.useState)(i?.description||""),[v,x]=(0,l.useState)(""),[b,j]=(0,l.useState)(!1),w=e=>{e&&(x(""),d(null),(s?["application/pdf","image/jpeg","image/png","image/webp"]:["application/pdf"]).includes(e.type)?!e.size||e.size>20971520?x("Die Datei darf maximal 20 MB groß sein."):(d(e),h(crypto.randomUUID()),s&&!m&&p(e.name.replace(/\.[^.]+$/,"").slice(0,100))):x(s?"Bitte wählen Sie ein PDF, JPG, PNG oder WebP.":"Bitte wählen Sie einen PDF-Vertrag."))};return(0,a.jsx)(Ur,{open:!0,onClose:t,busy:b,closeLabel:"Schließen",title:i?"Ressource bearbeiten":s?"Ressource hochladen":"Unterschriebenen Vertrag hochladen",description:s?"Briefings, Ablaufpläne und Referenzen für Ihr Projekt. Zugewiesene Models können diese Dateien herunterladen.":"Laden Sie die unterschriebene Fassung Ihres Auftragsvertrags als PDF hoch.",actions:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ra,{variant:"secondary",disabled:b,onClick:t,children:"Abbrechen"}),(0,a.jsx)(Ra,{type:"submit",form:o,isLoading:b,icon:i?void 0:"Upload",children:i?"Speichern":b?"Wird hochgeladen…":"Hochladen"})]}),children:(0,a.jsxs)("form",{id:o,onSubmit:async a=>{if(a.preventDefault(),i||c)if(!s||m.trim()){j(!0),x("");try{if(i)await ts(e,{...n,label:m.trim(),description:g.trim()});else{const a=new FormData;Object.entries(n).forEach(([e,n])=>a.set(e,n)),a.set("file",c),a.set("uploadKey",u),s&&(a.set("label",m.trim()),a.set("description",g.trim())),await ts(e,a)}r()}catch(e){x(e instanceof Error?e.message:"Upload fehlgeschlagen. Bitte erneut versuchen.")}finally{j(!1)}}else x("Bitte geben Sie eine Bezeichnung ein.");else x("Bitte wählen Sie eine Datei aus.")},className:"ui-request-upload-form",children:[!i&&(0,a.jsxs)("label",{className:"ui-request-file-drop",onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),b||w(e.dataTransfer.files[0])},children:[(0,a.jsx)("input",{type:"file","aria-label":"Datei auswählen",disabled:b,accept:s?".pdf,.jpg,.jpeg,.png,.webp":".pdf",onChange:e=>w(e.target.files?.[0])}),(0,a.jsx)(Da,{name:c?"application/pdf"===c.type?"File":"Camera":"Upload",size:28}),(0,a.jsx)("strong",{children:c?c.name:"Datei auswählen oder hier ablegen"}),(0,a.jsx)("span",{children:c?`${ss(c.size)} · Klicken zum Ändern`:(s?"PDF, JPG, PNG oder WebP":"PDF")+" · Maximal 20 MB"})]}),s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Za,{label:"Bezeichnung",value:m,onChange:e=>{p(e.target.value),h(crypto.randomUUID())},required:!0,maxLength:100,placeholder:"z. B. Shooting-Briefing",disabled:b,hideError:!0}),(0,a.jsx)(pt,{label:"Beschreibung (optional)",value:g,onChange:e=>{f(e.target.value),h(crypto.randomUUID())},maxLength:2e3,placeholder:"Was soll das Team zu dieser Datei wissen?",disabled:b,rows:3})]}),v&&(0,a.jsx)(br,{tone:"error",children:v})]})})}function ls({apiBaseUrl:e,clientRequestId:n,canManage:t=!1,active:r=!0}){const s=as(e,"resources"),{data:i,error:o,refresh:c}=rs(`${s}?clientRequestId=${encodeURIComponent(n)}`,r),[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)(null),[p,g]=(0,l.useState)(null),[f,v]=(0,l.useState)(!1),[x,b]=(0,l.useState)(""),[j,w]=(0,l.useState)(""),y=(i||[]).filter(e=>[e.label,e.description,e.fileName].join(" ").toLocaleLowerCase("de").includes(d.trim().toLocaleLowerCase("de")));return(0,a.jsxs)("div",{className:"ui-request-files",children:[(0,a.jsxs)("div",{className:"ui-request-files-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{children:"Ressourcen"}),(0,a.jsx)("p",{children:t?"Briefings, Ablaufpläne und Bildreferenzen – geteilt mit Ihren zugewiesenen Models.":"Alle Unterlagen und Referenzen für deinen Auftrag."})]}),t&&(0,a.jsx)(Ra,{icon:"Upload",onClick:()=>m("new"),children:"Datei hochladen"})]}),j&&(0,a.jsx)(br,{children:j}),o&&(0,a.jsx)(br,{tone:"error",action:(0,a.jsx)(Ra,{size:"sm",variant:"secondary",onClick:c,children:"Erneut versuchen"}),children:o}),i||o?i&&!i.length?(0,a.jsx)(xr,{icon:"File",title:"Noch keine Ressourcen",description:t?"Laden Sie ein Briefing, einen Ablaufplan oder Referenzbilder für das Team hoch.":"Sobald Unterlagen zu diesem Auftrag geteilt werden, kannst du sie hier herunterladen."}):i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Za,{type:"search",hideError:!0,icon:"Search","aria-label":"Ressourcen suchen",placeholder:"Bezeichnung, Beschreibung oder Dateiname suchen",value:d,onChange:e=>u(e.target.value)}),y.length?(0,a.jsx)("div",{className:"ui-request-resource-list",children:y.map(e=>(0,a.jsxs)("article",{className:"ui-request-resource",children:[(0,a.jsx)("span",{className:"ui-request-file-icon",children:(0,a.jsx)(Da,{name:"application/pdf"===e.contentType?"File":"Camera",size:24})}),(0,a.jsxs)("div",{className:"ui-request-resource-copy",children:[(0,a.jsx)("h3",{children:e.label}),e.description&&(0,a.jsx)("p",{children:e.description}),(0,a.jsxs)("div",{className:"ui-request-file-meta",children:[(0,a.jsx)("span",{children:e.fileName}),(0,a.jsx)("span",{children:ss(e.size)}),(0,a.jsx)("time",{dateTime:e.createdAt,children:new Date(e.createdAt).toLocaleDateString("de-DE")})]})]}),(0,a.jsxs)("div",{className:"ui-request-file-actions",children:[(0,a.jsx)(ns,{url:`${s}/download?id=${e.id}`,fileName:e.fileName}),t&&(0,a.jsxs)("div",{className:"ui-request-file-edit",children:[(0,a.jsx)(Ra,{variant:"ghost",size:"sm",icon:"Pen","aria-label":`${e.label} bearbeiten`,onClick:()=>m(e),children:"Bearbeiten"}),(0,a.jsx)(Ra,{variant:"ghost",size:"sm",icon:"Trash","aria-label":`${e.label} entfernen`,onClick:()=>{b(""),g(e)},children:"Entfernen"})]})]})]},e.id))}):(0,a.jsx)(xr,{icon:"Search",title:"Keine passenden Ressourcen",description:"Versuchen Sie einen anderen Suchbegriff."}),(0,a.jsxs)("p",{className:"ui-request-file-count","aria-live":"polite",children:[y.length," ",1===y.length?"Datei":"Dateien"]})]}):(0,a.jsx)(vr,{className:"h-48"}),h&&(0,a.jsx)(is,{resource:!0,url:"new"===h?s:`${s}/update`,fields:"new"===h?{clientRequestId:n}:{id:h.id},editing:"new"===h?void 0:h,onClose:()=>m(null),onSaved:()=>{w("new"===h?"":"Ressource aktualisiert."),m(null),c()}}),(0,a.jsx)(Ur,{open:!!p,onClose:()=>g(null),busy:f,closeLabel:"Schließen",title:"Ressource entfernen?",description:`„${p?.label||""}“ wird aus dieser Anfrage entfernt und ist für Models nicht mehr verfügbar.`,actions:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ra,{variant:"secondary",disabled:f,onClick:()=>g(null),children:"Abbrechen"}),(0,a.jsx)(Ra,{isLoading:f,onClick:async()=>{if(p){v(!0),b("");try{await ts(`${s}/remove`,{id:p.id}),g(null),c(),w("Ressource entfernt.")}catch(e){b(e instanceof Error?e.message:"Bitte erneut versuchen.")}finally{v(!1)}}},children:"Entfernen"})]}),children:x&&(0,a.jsx)(br,{tone:"error",children:x})})]})}function os({apiBaseUrl:e,clientRequestId:n,active:t=!0}){const r=as(e,"contracts"),{data:s,error:i,refresh:o}=rs(`${r}?clientRequestId=${encodeURIComponent(n)}`,t),[c,d]=(0,l.useState)(null),[u,h]=(0,l.useState)("");return(0,a.jsxs)("div",{className:"ui-request-files",children:[(0,a.jsx)("div",{className:"ui-request-files-heading",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{children:"Verträge"}),(0,a.jsx)("p",{children:"Ihre Auftragsverträge und unterschriebenen Unterlagen an einem Ort."})]})}),u&&(0,a.jsx)(br,{children:u}),i&&(0,a.jsx)(br,{tone:"error",action:(0,a.jsx)(Ra,{size:"sm",variant:"secondary",onClick:o,children:"Erneut versuchen"}),children:i}),s||i?s&&!s.length?(0,a.jsx)(xr,{icon:"File",title:"Noch kein Vertrag verfügbar",description:"Sobald die Agentur einen Auftragsvertrag für diese Anfrage erstellt hat, können Sie ihn hier herunterladen."}):s?.map(e=>(0,a.jsxs)("section",{className:"ui-request-contract",children:[(0,a.jsxs)("div",{className:"ui-request-contract-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:"AUFTRAGSVERTRAG"}),(0,a.jsx)("h3",{children:e.project})]}),(0,a.jsx)(fr,{tone:e.signed?"complete":e.canUpload?"pending":"neutral",children:e.signed?"Unterschrieben":e.canUpload?"Unterschrift offen":"Keine Unterschrift erforderlich"})]}),(0,a.jsxs)("div",{className:"ui-request-document-row",children:[(0,a.jsx)(Da,{name:"File",size:23}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{children:"Originalvertrag"}),(0,a.jsxs)("p",{children:["Von der Agentur bereitgestellt ·"," ",new Date(e.createdAt).toLocaleDateString("de-DE")]})]}),(0,a.jsx)(ns,{url:`${r}/download?id=${e.id}`,fileName:"Auftragsvertrag.pdf"})]}),(0,a.jsxs)("div",{className:"ui-request-document-row",children:[(0,a.jsx)(Da,{name:e.signed?"FileCheck":"Pen",size:23}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{children:"Unterschriebene Fassung"}),(0,a.jsx)("p",{children:e.signed?"Ihr unterschriebener Vertrag ist hinterlegt.":"Vertrag herunterladen, unterschreiben und als PDF hochladen."})]}),e.signed?(0,a.jsx)(ns,{url:`${r}/download?id=${e.id}&version=signed`,fileName:"Vertrag-unterschrieben.pdf"}):e.canUpload&&(0,a.jsx)(Ra,{size:"sm",icon:"Upload",onClick:()=>d(e),children:"PDF hochladen"})]})]},e.id)):(0,a.jsx)(vr,{className:"h-48"}),c&&(0,a.jsx)(is,{url:`${r}/upload`,fields:{contractId:c.id},onClose:()=>d(null),onSaved:()=>{d(null),h("Ihr unterschriebener Vertrag wurde erfolgreich hinterlegt."),o()}})]})}const cs="itsyou:notifications-changed";async function ds(e,n,a){const t=await fetch(e,{credentials:"include",cache:"no-store",signal:n,...a?{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}:{}});if(!t.ok)throw new Error("Notification request failed");return t.json()}function us(e,n,a){const[t,r]=(0,l.useState)(null),[s,i]=(0,l.useState)(!1),[o,c]=(0,l.useState)(!1),[d,u]=(0,l.useState)(null),[h,m]=(0,l.useState)(!1),[p,g]=(0,l.useState)(1),[f,v]=(0,l.useState)(0),x=(0,l.useCallback)(()=>v(e=>e+1),[]);return(0,l.useEffect)(()=>{r(null),g(1),i(!1),c(!1)},[e,n]),(0,l.useEffect)(()=>{g(1),i(!1)},[a]),(0,l.useEffect)(()=>{if(!n)return;const t=new AbortController;let s=!1;async function l(){if(!s){s=!0,m(!0);try{let n=null;for(let r=0;r<p;r++){const r=n?.nextCursor||null,s=await ds(`${e}?filter=${a}${r?`&cursor=${r}`:""}`,t.signal);if(n=n?{...n,items:[...n.items,...s.items],nextCursor:s.nextCursor}:s,!s.nextCursor)break}t.signal.aborted||(r(n),i(!1))}catch{t.signal.aborted||i(!0)}finally{s=!1,t.signal.aborted||m(!1)}}}l();const o=n=>{n.detail===e&&x()},c=()=>{document.hidden||l()},d=setInterval(c,3e4);return window.addEventListener(cs,o),window.addEventListener("focus",c),document.addEventListener("visibilitychange",c),()=>{t.abort(),clearInterval(d),window.removeEventListener(cs,o),window.removeEventListener("focus",c),document.removeEventListener("visibilitychange",c)}},[e,n,a,p,f,x]),{feed:t,error:s,actionError:o,busy:d,loading:h,refresh:x,more:()=>g(e=>e+1),act:async(n,a)=>{if(!d){u("id"in a?a.id:"all"),c(!1);try{await ds(`${e}/${n}`,void 0,a),window.dispatchEvent(new CustomEvent(cs,{detail:e}))}catch{c(!0)}finally{u(null)}}}}}const hs={en:{title:"Notifications",inbox:"Inbox",eyebrow:"YOUR WORKSPACE",subtitle:"Client requests, model responses and documents, together in one inbox.",empty:"You’re all caught up",emptyHint:"New activity will appear here.",unread:"Unread",all:"All",open:"Open",done:"Done",read:"Mark as read",readAll:"Mark all as read",view:"Open details",portfolio:"View portfolio",complete:"Mark done",more:"Load earlier notifications",allItems:"Open inbox",error:"Notifications could not be loaded.",actionError:"The change could not be saved. Please try again.",retry:"Try again",loading:"Loading notifications"},de:{title:"Benachrichtigungen",inbox:"Posteingang",eyebrow:"DEIN POSTEINGANG",subtitle:"Anfragen, Verträge und Unterlagen – alle Neuigkeiten an einem Ort.",empty:"Alles auf dem neuesten Stand",emptyHint:"Neue Mitteilungen erscheinen hier.",unread:"Ungelesen",all:"Alle",open:"Offen",done:"Erledigt",read:"Als gelesen markieren",readAll:"Alle als gelesen markieren",view:"Details öffnen",portfolio:"Portfolio ansehen",complete:"Erledigen",more:"Ältere Benachrichtigungen laden",allItems:"Alle Benachrichtigungen",error:"Benachrichtigungen konnten nicht geladen werden.",actionError:"Die Änderung konnte nicht gespeichert werden. Bitte erneut versuchen.",retry:"Erneut versuchen",loading:"Benachrichtigungen werden geladen"}};function ms({item:e,labels:n,locale:t,admin:r,busy:s,onRead:l,onDone:o,onNavigate:c,pitchUrl:d}){return(0,a.jsxs)("li",{className:"ui-notification-row","data-unread":!e.read,children:[(0,a.jsx)("span",{className:"ui-notification-event-icon",children:(0,a.jsx)(Da,{name:(u=e.kind,u.startsWith("ORDER_REVIEW_")?"Star":u.includes("CONTRACT")||"MODEL_SIGNED"===u?"FileCheck":"RESOURCE_AVAILABLE"===u||"INVOICE_READY"===u||"COST_ESTIMATE_READY"===u?"File":"CONTACT_MESSAGE"===u?"Inbox":"APPLICATION"===u?"UserCard":u.startsWith("PROFILE_")||u.startsWith("MODEL_")?"User":"PITCH_CREATED"===u?"UserCard":"Inbox"),size:19})}),(0,a.jsxs)("div",{className:"ui-notification-copy",children:[(0,a.jsx)(i(),{href:e.href,onClick:()=>{e.read||l(),c?.()},className:"ui-notification-title",children:e.title}),e.description&&(0,a.jsx)("p",{className:"ui-notification-description",children:e.description}),(0,a.jsxs)("div",{className:"ui-notification-meta",children:[(0,a.jsx)("time",{dateTime:e.createdAt,children:new Intl.DateTimeFormat("de"===t?"de-AT":"en-GB",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"}).format(new Date(e.createdAt))}),r&&e.resolved&&(0,a.jsx)(fr,{children:n.done})]}),(0,a.jsxs)("div",{className:"ui-notification-row-actions",children:[e.pitchId&&d&&(0,a.jsxs)("a",{href:d(e.pitchId),target:"_blank",rel:"noopener noreferrer",onClick:()=>{e.read||l()},children:[n.portfolio,(0,a.jsx)("span",{className:"sr-only",children:" ↗"})]}),!e.read&&(0,a.jsx)("button",{type:"button",disabled:s,onClick:l,children:n.read}),r&&!e.resolved&&(0,a.jsx)("button",{type:"button",disabled:s,onClick:o,children:n.complete})]})]}),!e.read&&(0,a.jsx)("span",{className:"ui-notification-unread-dot","aria-label":n.unread})]});var u}function ps({state:e,props:n,labels:t,compact:r=!1,onNavigate:s}){const{feed:i}=e;return(0,a.jsxs)(a.Fragment,{children:[e.actionError&&(0,a.jsx)("div",{className:"ui-notification-notice",children:(0,a.jsx)(br,{tone:"error",children:t.actionError})}),(0,a.jsx)(Dr,{loading:!i&&!e.error,updating:e.loading,error:e.error,hasData:!!i,onRetry:e.refresh,locale:n.locale||"en",errorTitle:t.error,minHeight:r?240:400,skeleton:(0,a.jsx)(Pr,{rows:r?3:5}),children:i&&!i.items.length?(0,a.jsx)(xr,{icon:"Bell",title:t.empty,description:n.emptyHint||t.emptyHint}):i&&(0,a.jsx)("ul",{className:"ui-notification-list",children:(r?i.items.slice(0,5):i.items).map(r=>(0,a.jsx)(ms,{item:r,labels:t,locale:n.locale||"en",admin:"admin"===n.audience,busy:!!e.busy,onRead:()=>{e.act("read",{id:r.id})},onDone:()=>{e.act("resolve",{id:r.id})},onNavigate:s,pitchUrl:n.pitchUrl},r.id))})})]})}function gs(e){const n=hs[e.locale||"en"],t=us(`${e.apiBaseUrl.replace(/\/$/,"")}/notifications/${e.audience}`,e.identity,"admin"===e.audience?"open":"all");return(0,a.jsx)(mr,{label:n.title,unreadCount:t.feed?.unreadCount||0,children:r=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"ui-notification-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{children:"admin"===e.audience?n.inbox:n.title}),(0,a.jsxs)("p",{children:[t.feed?.unreadCount||0," ",n.unread.toLocaleLowerCase()]})]}),!!t.feed?.unreadCount&&(0,a.jsx)("button",{type:"button",disabled:!!t.busy||!t.feed?.unreadCount,onClick:()=>{t.act("read",{before:t.feed.asOf})},children:n.readAll})]}),(0,a.jsx)(ps,{state:t,props:e,labels:n,compact:!0,onNavigate:r}),(0,a.jsxs)(i(),{className:"ui-notification-footer",href:e.inboxHref||"/notifications",onClick:()=>r(),children:[n.allItems,(0,a.jsx)(Da,{name:"ArrowRight",size:16})]})]})})}function fs(e){const n=hs[e.locale||"en"],t="admin"===e.audience,[r,s]=(0,l.useState)(t?"open":"all"),i=us(`${e.apiBaseUrl.replace(/\/$/,"")}/notifications/${e.audience}`,e.identity,r),o=t?[{value:"open",label:n.open,count:i.feed?.openCount},{value:"unread",label:n.unread,count:i.feed?.unreadCount},{value:"all",label:n.all},{value:"done",label:n.done}]:[{value:"all",label:n.all},{value:"unread",label:n.unread,count:i.feed?.unreadCount}];return(0,a.jsxs)("div",{className:"ui-notification-inbox",children:[(0,a.jsx)(pr,{eyebrow:"client"===e.audience&&"de"===e.locale?"IHR POSTEINGANG":n.eyebrow,title:t?n.inbox:n.title,subtitle:n.subtitle,actions:(0,a.jsx)(Ra,{variant:"secondary",isLoading:"all"===i.busy,disabled:!!i.busy||!i.feed?.unreadCount,onClick:()=>{i.act("read",{before:i.feed.asOf})},children:n.readAll})}),(0,a.jsx)(Lr,{label:n.title,value:r,onChange:s,options:o,variant:"underline"}),(0,a.jsxs)(gr,{unpadded:!0,children:[(0,a.jsx)(ps,{state:i,props:e,labels:n}),i.feed?.nextCursor&&(0,a.jsx)("div",{className:"ui-notification-load",children:(0,a.jsx)(Ra,{variant:"secondary",size:"sm",isLoading:i.loading,onClick:i.more,children:n.more})})]})]})}class vs extends Error{status;constructor(e,n){super(e),this.status=n}}function xs(e){async function n(n,a,t,r){const s=new URLSearchParams;Object.entries(a||{}).forEach(([e,n])=>{void 0!==n&&s.set(e,String(n))});const i=await fetch(`${e.replace(/\/$/,"")}/chats${n}${s.size?`?${s}`:""}`,{method:void 0===t?"GET":"POST",credentials:"include",cache:"no-store",signal:r,...void 0===t?{}:{headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}});if(!i.ok){const e=await i.json().catch(()=>null);throw new vs(e?.message||"Unable to load chat. Please try again.",i.status)}return i.json()}return{list:(e,a,t,r,s=!1)=>n("",{q:e,cursor:a,clientRequestId:r,archived:String(s)},void 0,t),detail:(e,a)=>n("/detail",{id:e},void 0,a),directory:(e,a,t,r)=>n("/participants",{q:e,role:a,cursor:t},void 0,r),requests:(e,a,t)=>n("/requests",{q:e,cursor:a},void 0,t),requestDraft:(e,a)=>n("/request-draft",{clientRequestId:e},void 0,a),create:e=>n("",void 0,e),update:(e,a,t)=>n("/update",void 0,{...t,id:e,revision:a}),messages:(e,a={},t)=>n("/messages",{chatId:e,...a},void 0,t),send:(e,a,t)=>n("/messages",void 0,{chatId:e,body:a,clientMessageId:t}),read:(e,a)=>n("/read",void 0,{chatId:e,sequence:a}),archive:(e,a)=>n("/archive",void 0,{chatId:e,archived:a}),edit:(e,a,t,r)=>n("/messages/edit",void 0,{chatId:e,messageId:a,body:t,editSequence:r}),edits:(e,a,t)=>n("/message-edits",{chatId:e,after:a},void 0,t)}}const bs={en:{subtitle:"The right people. One conversation.",newChat:"New group chat",requestCreateHint:"Models with signed request contracts, client accounts, and you are preselected. Review the participants before creating the group.",missingClientAccount:"This client has no portal account yet. Add a client account to include them in the conversation.",missingModelAccounts:"models with signed request contracts have no login account and could not be preselected.",requestChatHint:"Conversations with the team for this request.",noRequestChats:"No conversations for this request yet",noRequestChatsHint:"The agency will add you to a group chat for this request.",chats:"Conversations",search:"Search chats, requests, or clients",request:"Request",general:"General",generalChat:"General chat",agencyTeam:"IT’S YOU team",generalHint:"Your direct conversation with the agency team.",generalFirstMessage:"How can we help?",generalFirstMessageHint:"Send a message to start your conversation with the IT’S YOU team.",generalDetails:"Conversation details",generalPrivate:"This conversation is visible to you and all agency admins and team members.",staffInboxHint:"General chats are started by clients and models. All agency admins and team members can reply.",noRequest:"No request assigned",selectRequest:"Choose a request",changeRequest:"Change request",searchRequests:"Search requests or clients",noRequests:"No matching requests",requestHint:"Link this conversation to a request and its client.",all:"All",unread:"Unread",archived:"Archived",archive:"Archive chat",restore:"Restore chat",archiveHint:"Archived for you. New messages return this chat to your inbox.",archiveError:"Could not update the archive. Please try again.",noArchived:"No archived conversations",noArchivedHint:"Chats you archive appear here. You can restore them at any time.",edited:"Edited",editMessage:"Edit message",editHint:"Everyone in this conversation will see the updated message and an Edited label.",editError:"Your changes could not be saved. Your draft is still here; try again.",editConflict:"This message changed in another tab. Close and reopen the editor to load the latest version.",noChats:"Your conversations start here",noChatsHint:"The agency will add you to a group when there is something to discuss.",noChatsAdmin:"Bring models, clients, and your team together in a group chat.",noResults:"No conversations found",noResultsHint:"Try another search or switch to all conversations.",choose:"A shared space to stay connected",chooseHint:"Choose a conversation to catch up with your team.",participants:"Participants",manage:"Manage group",back:"Back to conversations",send:"Send",sending:"Sending…",placeholder:"Write a message…",composer:"Message",hint:"Enter to send · Shift + Enter for a new line",firstMessage:"Start the conversation",firstMessageHint:"Say hello or share an update with the group.",more:"Load more",older:"Load earlier messages",loading:"Loading…",retry:"Try again",error:"Unable to load chat. Please try again.",reconnect:"Connection interrupted. Reconnecting…",sendError:"Message not sent. Your draft is saved; try sending again.",you:"You",today:"Today",yesterday:"Yesterday",details:"Group details",groupName:"Group name",groupNamePlaceholder:"e.g. Vienna campaign · Production",description:"Description (optional)",descriptionPlaceholder:"What is this group working on?",searchPeople:"Search names, email, or company",allRoles:"All roles",admin:"Admin",member:"Team member",client:"Client",model:"Model",removed:"Removed account",selected:"selected",create:"Create group",save:"Save changes",cancel:"Cancel",close:"Close",createHint:"Choose the people who should be part of this conversation.",historyHint:"Added participants can see the full message history. Removed participants lose access.",selfHint:"You are included as a group manager.",choosePeople:"Add at least one other participant (up to 200 total).",noPeople:"No matching accounts",remove:"Remove",private:"Only assigned participants can access this conversation.",newMessages:"New messages",readOnly:"Your access to this chat has changed.",saved:"Group saved"},de:{subtitle:"Die richtigen Menschen. Ein gemeinsamer Chat.",newChat:"Neuer Gruppenchat",requestCreateHint:"Models mit unterschriebenem Vertrag, Kundenkonten und du sind vorausgewählt. Prüfe die Teilnehmenden vor dem Erstellen.",missingClientAccount:"Dieser Kunde hat noch kein Portalkonto. Lege ein Kundenkonto an, um ihn zum Chat hinzuzufügen.",missingModelAccounts:"Models mit unterschriebenem Vertrag haben kein Benutzerkonto und konnten nicht vorausgewählt werden.",requestChatHint:"Unterhaltungen mit dem Team zu dieser Anfrage.",noRequestChats:"Noch keine Unterhaltungen zu dieser Anfrage",noRequestChatsHint:"Die Agentur fügt dich zu einem Gruppenchat für diese Anfrage hinzu.",chats:"Unterhaltungen",search:"Chats, Anfragen oder Kunden suchen",request:"Anfrage",general:"Allgemein",generalChat:"Allgemeiner Chat",agencyTeam:"IT’S YOU Team",generalHint:"Dein direkter Kontakt zum Agenturteam.",generalFirstMessage:"Wie können wir dir helfen?",generalFirstMessageHint:"Schreib eine Nachricht, um deine Unterhaltung mit dem IT’S YOU Team zu starten.",generalDetails:"Details zur Unterhaltung",generalPrivate:"Diese Unterhaltung ist für dich und alle Admins und Teammitglieder der Agentur sichtbar.",staffInboxHint:"Allgemeine Chats werden von Kunden und Models gestartet. Alle Admins und Teammitglieder der Agentur können antworten.",noRequest:"Keine Anfrage zugewiesen",selectRequest:"Anfrage auswählen",changeRequest:"Anfrage ändern",searchRequests:"Anfragen oder Kunden suchen",noRequests:"Keine passenden Anfragen",requestHint:"Verknüpfe diesen Chat mit einer Anfrage und ihrem Kunden.",all:"Alle",unread:"Ungelesen",archived:"Archiviert",archive:"Chat archivieren",restore:"Chat wiederherstellen",archiveHint:"Für dich archiviert. Neue Nachrichten bringen diesen Chat zurück in deinen Posteingang.",archiveError:"Das Archiv konnte nicht aktualisiert werden. Bitte erneut versuchen.",noArchived:"Keine archivierten Unterhaltungen",noArchivedHint:"Archivierte Chats erscheinen hier. Du kannst sie jederzeit wiederherstellen.",edited:"Bearbeitet",editMessage:"Nachricht bearbeiten",editHint:"Alle Teilnehmenden sehen die aktualisierte Nachricht und den Hinweis „Bearbeitet“.",editError:"Deine Änderungen konnten nicht gespeichert werden. Dein Entwurf bleibt erhalten. Bitte erneut versuchen.",editConflict:"Diese Nachricht wurde in einem anderen Tab geändert. Schließe und öffne die Bearbeitung erneut, um die aktuelle Version zu laden.",noChats:"Hier beginnen die Unterhaltungen",noChatsHint:"Die Agentur fügt dich zu einer Gruppe hinzu, sobald es etwas zu besprechen gibt.",noChatsAdmin:"Models, Kunden und das Team in einem Gruppenchat zusammenbringen.",noResults:"Keine Unterhaltungen gefunden",noResultsHint:"Versuche eine andere Suche oder zeige alle Unterhaltungen an.",choose:"Gemeinsam in Verbindung bleiben",chooseHint:"Wähle eine Unterhaltung, um dich mit dem Team auszutauschen.",participants:"Teilnehmende",manage:"Gruppe verwalten",back:"Zurück zu Unterhaltungen",send:"Senden",sending:"Wird gesendet…",placeholder:"Nachricht schreiben…",composer:"Nachricht",hint:"Enter zum Senden · Shift + Enter für eine neue Zeile",firstMessage:"Die Unterhaltung beginnt hier",firstMessageHint:"Sag Hallo oder teile Neuigkeiten mit der Gruppe.",more:"Mehr laden",older:"Ältere Nachrichten laden",loading:"Wird geladen…",retry:"Erneut versuchen",error:"Chat konnte nicht geladen werden. Bitte erneut versuchen.",reconnect:"Verbindung unterbrochen. Wird erneut verbunden…",sendError:"Nachricht nicht gesendet. Dein Entwurf bleibt erhalten. Bitte erneut senden.",you:"Du",today:"Heute",yesterday:"Gestern",details:"Gruppendetails",groupName:"Gruppenname",groupNamePlaceholder:"z. B. Wien Kampagne · Produktion",description:"Beschreibung (optional)",descriptionPlaceholder:"Worum geht es in dieser Gruppe?",searchPeople:"Name, E-Mail oder Firma suchen",allRoles:"Alle Rollen",admin:"Admin",member:"Teammitglied",client:"Kunde",model:"Model",removed:"Entferntes Konto",selected:"ausgewählt",create:"Gruppe erstellen",save:"Änderungen speichern",cancel:"Abbrechen",close:"Schließen",createHint:"Wähle die Personen für diese Unterhaltung aus.",historyHint:"Neue Teilnehmende sehen den gesamten Verlauf. Entfernte Teilnehmende verlieren den Zugriff.",selfHint:"Du bist als Gruppenverwaltung dabei.",choosePeople:"Mindestens eine weitere Person hinzufügen (maximal 200 insgesamt).",noPeople:"Keine passenden Konten",remove:"Entfernen",private:"Nur zugewiesene Teilnehmende haben Zugriff auf diese Unterhaltung.",newMessages:"Neue Nachrichten",readOnly:"Dein Zugriff auf diesen Chat hat sich geändert.",saved:"Gruppe gespeichert"}};function js(e,n){return{ADMIN:n.admin,MEMBER:n.member,CLIENT:n.client,USER:n.model,REMOVED:n.removed}[e]}const ws=e=>e.trim().split(/\s+/).slice(0,2).map(e=>e[0]).join("").toUpperCase();function ys(e,n){const a=new Map(e.map(e=>[e.id,e]));for(const e of n){const n=a.get(e.id);(!n||(e.editSequence||0)>=(n.editSequence||0))&&a.set(e.id,e)}return[...a.values()].sort((e,n)=>e.sequence-n.sequence)}function Cs({api:e,value:n,onChange:t,disabled:r,labels:s}){const i=(0,l.useId)(),[o,c]=(0,l.useState)(!1),[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)([]),[p,g]=(0,l.useState)(1),[f,v]=(0,l.useState)(!1),[x,b]=(0,l.useState)(!1),[j,w]=(0,l.useState)(!1),[y,C]=(0,l.useState)(0);function N(e){t(e),c(!1)}return(0,l.useEffect)(()=>{if(!o)return;const n=new AbortController;b(!0),w(!1);const a=setTimeout(async()=>{try{let a;const t=[];for(let r=0;r<p;r++){const r=await e.requests(d,a,n.signal);if(n.signal.aborted)return;if(t.push(...r.items),a=r.nextCursor||void 0,!a)break}m([...new Map(t.map(e=>[e.id,e])).values()]),v(!!a)}catch{n.signal.aborted||w(!0)}finally{n.signal.aborted||b(!1)}},200);return()=>{clearTimeout(a),n.abort()}},[e,o,d,p,y]),(0,a.jsxs)("div",{className:"ui-chat-request-picker",children:[(0,a.jsx)("div",{className:"ui-chat-section-label",children:(0,a.jsx)("strong",{id:`${i}-label`,children:s.request})}),(0,a.jsxs)("button",{type:"button",className:"ui-chat-request-value",disabled:r,"aria-labelledby":`${i}-label ${i}-value`,"aria-expanded":o,"aria-controls":`${i}-options`,onClick:()=>c(e=>!e),children:[(0,a.jsx)(Da,{name:"Inbox",size:18}),(0,a.jsxs)("span",{id:`${i}-value`,children:[(0,a.jsx)("strong",{children:n?.project||s.general}),(0,a.jsx)("small",{children:n?.client.name||s.noRequest})]}),(0,a.jsx)("span",{className:"ui-chat-help",children:n?s.changeRequest:s.selectRequest}),(0,a.jsx)(Da,{name:"ChevronDown",size:14})]}),(0,a.jsx)("p",{className:"ui-chat-help",children:s.requestHint}),o&&(0,a.jsxs)("div",{id:`${i}-options`,className:"ui-chat-request-options",children:[(0,a.jsx)(Za,{icon:"Search","aria-label":s.searchRequests,placeholder:s.searchRequests,value:d,maxLength:120,disabled:r,onChange:e=>{u(e.target.value),g(1),m([])}}),(0,a.jsxs)("div",{className:"ui-chat-request-results","aria-busy":x,children:[(0,a.jsxs)("button",{type:"button",className:"ui-chat-request-option",disabled:r,"aria-pressed":!n,onClick:()=>N(null),children:[(0,a.jsx)("strong",{children:s.general}),(0,a.jsx)("small",{children:s.noRequest})]}),h.map(e=>(0,a.jsxs)("button",{type:"button",className:"ui-chat-request-option",disabled:r,"aria-pressed":n?.id===e.id,onClick:()=>N(e),children:[(0,a.jsx)("strong",{children:e.project}),(0,a.jsx)("small",{children:e.client.name})]},e.id)),x&&(0,a.jsx)("p",{className:"ui-chat-help",role:"status",children:s.loading}),!x&&!j&&!h.length&&(0,a.jsx)("p",{className:"ui-chat-help",children:s.noRequests}),j&&(0,a.jsxs)("div",{role:"alert",children:[(0,a.jsx)("p",{className:"ui-chat-help",children:s.error}),(0,a.jsx)(Ra,{size:"sm",variant:"ghost",onClick:()=>C(e=>e+1),children:s.retry})]}),!x&&f&&(0,a.jsx)(Ra,{size:"sm",variant:"ghost",onClick:()=>g(e=>e+1),children:s.more})]})]})]})}function Ns({api:e,viewer:n,chat:t,initialValues:r,presentation:s="dialog",lockRequest:i=!1,labels:o,onClose:c,onSaved:d}){const[u,h]=(0,l.useState)(t?.title||r?.title||""),[m,p]=(0,l.useState)(t?.request||r?.request||null),[g,f]=(0,l.useState)(t?.description||r?.description||""),[v,x]=(0,l.useState)(t?.participants||r?.participants||[n]),[b,j]=(0,l.useState)(""),[w,y]=(0,l.useState)(""),[C,N]=(0,l.useState)([]),[k,E]=(0,l.useState)(null),[S,M]=(0,l.useState)(!0),[O,L]=(0,l.useState)(!1),[q,A]=(0,l.useState)(""),[D,P]=(0,l.useState)(!1),[z,T]=(0,l.useState)(0);(0,l.useEffect)(()=>{const n=new AbortController;M(!0),P(!1),N([]),E(null);const a=setTimeout(()=>{e.directory(b,w||void 0,void 0,n.signal).then(e=>{N(e.items),E(e.nextCursor)}).catch(()=>{n.signal.aborted||P(!0)}).finally(()=>{n.signal.aborted||M(!1)})},250);return()=>{clearTimeout(a),n.abort()}},[e,b,w,z]);const[R,B]=(0,l.useState)(null);function H(e){e.id!==n.id&&x(n=>n.some(n=>n.id===e.id)?n.filter(n=>n.id!==e.id):[...n,e])}(0,l.useEffect)(()=>{if(!R)return;const n=new AbortController;return M(!0),e.directory(b,w||void 0,R,n.signal).then(e=>{N(n=>[...new Map([...n,...e.items].map(e=>[e.id,e])).values()]),E(e.nextCursor)}).catch(()=>{n.signal.aborted||P(!0)}).finally(()=>{n.signal.aborted||(M(!1),B(null))}),()=>n.abort()},[e,R,b,w]);const I=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ra,{variant:"secondary",disabled:O,onClick:c,children:o.cancel}),(0,a.jsx)(Ra,{icon:"Chat",isLoading:O,disabled:!u.trim()||v.length<2||v.length>200,onClick:()=>{!async function(){L(!0),A("");try{const n={title:u,description:g,participantIds:v.map(e=>e.id),clientRequestId:m?.id||null},a=t?await e.update(t.id,t.revision,n):await e.create(n);d(a)}catch(e){A(e instanceof Error?e.message:o.error)}finally{L(!1)}}()},children:t?o.save:o.create})]}),$=(0,a.jsxs)("div",{className:"ui-chat-group-form",children:[q&&(0,a.jsx)(br,{tone:"error",children:q}),i&&m?(0,a.jsxs)("div",{className:"ui-chat-request-context",children:[(0,a.jsx)(Da,{name:"Inbox",size:22}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:o.request}),(0,a.jsx)("strong",{children:m.project}),(0,a.jsx)("small",{children:m.client.name})]})]}):(0,a.jsx)(Cs,{api:e,value:m,onChange:p,disabled:O,labels:o}),(0,a.jsx)(Za,{label:o.groupName,placeholder:o.groupNamePlaceholder,value:u,onChange:e=>h(e.target.value),maxLength:120,disabled:O,autoFocus:!0}),(0,a.jsx)(pt,{label:o.description,placeholder:o.descriptionPlaceholder,value:g,onChange:e=>f(e.target.value),maxLength:1e3,rows:2,disabled:O}),(0,a.jsxs)("div",{className:"ui-chat-section-label",children:[(0,a.jsx)("strong",{children:o.participants}),(0,a.jsxs)("span",{children:[v.length,"/200 ",o.selected]})]}),(0,a.jsx)("div",{className:"ui-chat-selected","aria-label":o.participants,children:v.map(e=>(0,a.jsxs)("span",{className:"ui-chat-chip",children:[e.name,e.id===n.id?` (${o.you})`:(0,a.jsx)("button",{type:"button",disabled:O,"aria-label":`${o.remove} ${e.name}`,onClick:()=>H(e),children:(0,a.jsx)(Da,{name:"Close",size:13})})]},e.id))}),(0,a.jsx)("p",{className:"ui-chat-help",children:o.selfHint}),(0,a.jsxs)("div",{className:"ui-chat-directory-filters",children:[(0,a.jsx)(Za,{icon:"Search","aria-label":o.searchPeople,placeholder:o.searchPeople,value:b,maxLength:120,onChange:e=>{B(null),j(e.target.value)}}),(0,a.jsxs)("select",{className:"ui-input","aria-label":o.allRoles,value:w,onChange:e=>{B(null),y(e.target.value)},children:[(0,a.jsx)("option",{value:"",children:o.allRoles}),["ADMIN","MEMBER","CLIENT","USER"].map(e=>(0,a.jsx)("option",{value:e,children:js(e,o)},e))]})]}),(0,a.jsxs)("div",{className:"ui-chat-directory","aria-busy":S,children:[C.map(e=>(0,a.jsxs)("label",{className:"ui-chat-person-option",children:[(0,a.jsx)("input",{type:"checkbox",checked:v.some(n=>n.id===e.id),disabled:O||e.id===n.id||v.length>=200&&!v.some(n=>n.id===e.id),onChange:()=>H(e)}),(0,a.jsx)("span",{className:"ui-chat-avatar","data-role":e.role,children:ws(e.name)}),(0,a.jsxs)("span",{className:"ui-chat-person-name",children:[(0,a.jsx)("strong",{children:e.name}),(0,a.jsx)("small",{children:[e.email,e.client?.name].filter(Boolean).join(" · ")})]}),(0,a.jsx)("span",{className:"ui-chat-role",children:js(e.role,o)})]},e.id)),S&&(0,a.jsx)("p",{className:"ui-chat-help",role:"status",children:o.loading}),!S&&!C.length&&!D&&(0,a.jsx)("p",{className:"ui-chat-help",children:o.noPeople}),D&&(0,a.jsx)(Ra,{variant:"ghost",onClick:()=>{B(null),T(e=>e+1)},children:o.retry}),k&&!S&&(0,a.jsx)(Ra,{variant:"ghost",size:"sm",onClick:()=>B(k),children:o.more})]}),(0,a.jsx)("p",{className:"ui-chat-help",children:v.length<2?o.choosePeople:o.historyHint})]});return"page"===s?(0,a.jsxs)("div",{className:"ui-chat-create-card",children:[$,(0,a.jsx)("div",{className:"ui-chat-create-actions",children:I})]}):(0,a.jsx)(Ur,{open:!0,onClose:c,title:t?o.manage:o.newChat,description:o.createHint,busy:O,closeLabel:o.close,actions:I,children:$})}function ks({api:e,chatId:n,message:t,labels:r,onClose:s,onSaved:i}){const o=(0,l.useId)(),[c,d]=(0,l.useState)(t.body),[u,h]=(0,l.useState)(!1),[m,p]=(0,l.useState)("");return(0,a.jsx)(Ur,{open:!0,onClose:s,title:r.editMessage,description:r.editHint,busy:u,closeLabel:r.close,actions:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ra,{variant:"secondary",disabled:u,onClick:s,children:r.cancel}),(0,a.jsx)(Ra,{type:"submit",form:o,isLoading:u,disabled:!c.trim()||c.trim()===t.body,children:r.save})]}),children:(0,a.jsxs)("form",{id:o,className:"ui-chat-edit-form",onSubmit:a=>{a.preventDefault(),async function(){if(!(u||!c.trim()||c.length>5e3)){h(!0),p("");try{const a=await e.edit(n,t.id,c.trim(),t.editSequence||0);i(a)}catch(e){p(e instanceof vs&&409===e.status?r.editConflict:r.editError)}finally{h(!1)}}}()},children:[(0,a.jsx)(pt,{autoFocus:!0,label:r.composer,value:c,maxLength:5e3,rows:5,disabled:u,onChange:e=>d(e.target.value)}),(0,a.jsxs)("span",{className:"ui-chat-help",children:[c.length.toLocaleString(),"/5,000"]}),m&&(0,a.jsx)(br,{tone:"error",children:m})]})})}function Es({api:e,id:n,viewer:t,canManage:r,locale:s,labels:i,draft:o,onDraft:c,onBack:d,onManage:u,onRead:h,sendDraft:m,sendingInBackground:p,refresh:g,onChanged:f,onArchived:v}){const[x,b]=(0,l.useState)(null),j="GENERAL"===x?.kind,w=j&&!t.canManage?i.generalChat:x?.title,y=j?i.generalDetails:i.details,C=r&&!j,[N,k]=(0,l.useState)([]),[E,S]=(0,l.useState)(!0),[M,O]=(0,l.useState)(!1),[L,q]=(0,l.useState)(!1),[A,D]=(0,l.useState)(""),[P,z]=(0,l.useState)(!1),[T,R]=(0,l.useState)(!1),[B,H]=(0,l.useState)(!1),[I,$]=(0,l.useState)(!1),[F,W]=(0,l.useState)(null),[U,V]=(0,l.useState)(!1),[_,G]=(0,l.useState)(!1),[K,Y]=(0,l.useState)(!1),[Z,J]=(0,l.useState)(0),Q=(0,l.useRef)(null),X=(0,l.useRef)(null),ee=(0,l.useRef)(!0),ne=(0,l.useRef)(0),ae=(0,l.useRef)(0),te=(0,l.useRef)(new Map),re=(0,l.useRef)(!1),se=(0,l.useRef)(0),ie=(0,l.useRef)(0),le=(0,l.useRef)(!1),oe=(0,l.useRef)(!1),ce=(0,l.useRef)(!0),de=(0,l.useRef)(null),ue=(0,l.useRef)(null),he=(0,l.useCallback)(e=>!!(e instanceof vs&&[401,403,404].includes(e.status))&&(z(!0),b(null),k([]),$(!1),W(null),re.current=!1,ne.current=0,ae.current=0,te.current.clear(),ie.current=0,!0),[]),me=(0,l.useCallback)(async()=>{const a=ie.current,t=Q.current?.getBoundingClientRect();if(!(!ee.current||!t||!t.height||t.bottom>window.innerHeight||t.bottom<=0||t.right<=0||t.left>=window.innerWidth||document.hidden||!document.hasFocus()||a<=se.current||le.current)){le.current=!0;try{await e.read(n,a),ce.current&&(se.current=a,h(n,a))}catch(e){ce.current&&he(e)}finally{le.current=!1}}},[e,n,h,he]);async function pe(){const e=o.trim();if(!(!e||e.length>5e3||oe.current||p||E||P)&&x){oe.current=!0,H(!0),R(!1);try{const a=await m(n,e);if(!ce.current)return;ee.current=!0,k(e=>ys(e,[a])),ie.current=Math.max(ie.current,a.sequence),se.current=a.sequence,h(n,a.sequence)}catch(e){ce.current&&(he(e),R(!0))}finally{oe.current=!1,ce.current&&(H(!1),setTimeout(()=>X.current?.focus(),0))}}}function ge(e){const n=new Date(e),a=new Date,t=new Date;return t.setDate(a.getDate()-1),n.toDateString()===a.toDateString()?i.today:n.toDateString()===t.toDateString()?i.yesterday:n.toLocaleDateString(s,{day:"numeric",month:"long",year:"numeric"})}return(0,l.useEffect)(()=>{const e=()=>{me()};return window.addEventListener("scroll",e,{capture:!0,passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[me]),(0,l.useEffect)(()=>(ce.current=!0,()=>{ce.current=!1,de.current?.abort()}),[]),(0,l.useEffect)(()=>{const a=new AbortController;let t=!1;async function r(){if(!t&&!document.hidden){t=!0;try{const t=await e.detail(n,a.signal);if(a.signal.aborted)return;if(b(t),se.current=Math.max(se.current,t.lastReadSequence),re.current){let t=!0;for(;t&&!a.signal.aborted;){const r=await e.messages(n,{after:ne.current},a.signal);if(a.signal.aborted)return;r.items.length&&(k(e=>ys(e,r.items)),ne.current=r.items.at(-1).sequence,ie.current=Math.max(ie.current,ne.current),ee.current||Y(!0)),t=r.hasMore&&r.items.length>0}}else{ae.current=t.editSequence||0;const r=await e.messages(n,{},a.signal);if(a.signal.aborted)return;k(r.items),O(r.hasMore),ne.current=r.items.at(-1)?.sequence||0,ie.current=ne.current,re.current=!0}if((t.editSequence||0)>ae.current){let t=!0;for(;t&&!a.signal.aborted;){const r=await e.edits(n,ae.current,a.signal);if(a.signal.aborted)return;for(const e of r.items){const n=te.current.get(e.id);(!n||(e.editSequence||0)>=(n.editSequence||0))&&te.current.set(e.id,e)}k(e=>{const n=new Set(e.map(e=>e.id));return ys(e,r.items.filter(e=>n.has(e.id)))}),r.items.length&&(ae.current=r.items.at(-1).editSequence||ae.current),t=r.hasMore&&r.items.length>0}}D(""),z(!1),me()}catch(e){a.signal.aborted||he(e)||D(re.current?i.reconnect:i.error)}finally{t=!1,a.signal.aborted||S(!1)}}}r();const s=setInterval(()=>{r()},3e3),l=()=>{r(),me()};return window.addEventListener("focus",l),document.addEventListener("visibilitychange",l),()=>{a.abort(),clearInterval(s),window.removeEventListener("focus",l),document.removeEventListener("visibilitychange",l)}},[e,n,Z,g,me,he,i]),(0,l.useLayoutEffect)(()=>{const e=Q.current;e&&(ue.current?(e.scrollTop=ue.current.top+e.scrollHeight-ue.current.height,ue.current=null):ee.current&&(e.scrollTop=e.scrollHeight),me())},[N,E,me]),P?(0,a.jsx)("div",{className:"ui-chat-thread",children:(0,a.jsx)(xr,{icon:"Chat",title:i.readOnly,action:(0,a.jsx)(Ra,{variant:"secondary",onClick:d,children:i.back})})}):(0,a.jsxs)("section",{className:"ui-chat-thread","aria-label":w||i.chats,children:[(0,a.jsxs)("header",{className:"ui-chat-thread-header",children:[(0,a.jsx)("button",{type:"button",className:"ui-icon-button ui-chat-mobile-back",onClick:d,"aria-label":i.back,children:(0,a.jsx)(Da,{name:"ArrowRight",className:"ui-chat-arrow-back",size:18})}),(0,a.jsx)("span",{className:"ui-chat-avatar ui-chat-group-avatar",children:(0,a.jsx)(Da,{name:j?"Chat":"Users",size:21})}),(0,a.jsxs)("div",{className:"ui-chat-thread-title",children:[(0,a.jsx)("h2",{children:w||i.loading}),(0,a.jsx)("button",{type:"button",onClick:()=>$(!0),disabled:!x,children:x?j?t.canManage?`${i.generalChat} · ${js(x.owner?.role||"REMOVED",i)}`:i.agencyTeam:`${x.participantCount} ${i.participants}`:i.loading})]}),(0,a.jsx)("button",{type:"button",className:"ui-icon-button","aria-label":y,onClick:()=>$(!0),disabled:!x,children:(0,a.jsx)(Da,{name:"Info",size:19})}),C&&x&&(0,a.jsx)("button",{type:"button",className:"ui-icon-button","aria-label":i.manage,onClick:()=>u(x),children:(0,a.jsx)(Da,{name:"Settings",size:19})}),x&&!x.isUnstarted&&(0,a.jsx)("button",{type:"button",className:"ui-icon-button",disabled:U,"aria-busy":U,"aria-label":x.archived?i.restore:i.archive,title:x.archived?i.restore:i.archive,onClick:()=>{!async function(){if(x&&!x.isUnstarted&&!U){V(!0),G(!1);try{const a=await e.archive(n,!x.archived);ce.current&&(b(a),v(a))}catch(e){ce.current&&!he(e)&&G(!0)}finally{ce.current&&V(!1)}}}()},children:(0,a.jsx)(Da,{name:x.archived?"ArrowNarrowUp":"Archive",size:19})})]}),_&&(0,a.jsx)(br,{tone:"error",children:i.archiveError}),x?.archived&&(0,a.jsxs)("div",{className:"ui-chat-archived-notice",role:"status",children:[(0,a.jsx)(Da,{name:"Archive",size:15,"aria-hidden":"true"}),(0,a.jsx)("span",{children:i.archiveHint})]}),A&&(0,a.jsx)(br,{tone:"error",action:(0,a.jsx)("button",{type:"button",onClick:()=>J(e=>e+1),children:i.retry}),children:A}),(0,a.jsx)("div",{ref:Q,className:"ui-chat-messages",role:"log","aria-label":i.chats,"aria-live":"polite","aria-relevant":"additions text","aria-busy":E,onScroll:()=>{const e=Q.current;ee.current=e.scrollHeight-e.scrollTop-e.clientHeight<70,ee.current&&(Y(!1),me())},children:E?(0,a.jsx)(xr,{loading:!0,loadingLabel:i.loading}):(0,a.jsxs)(a.Fragment,{children:[M&&(0,a.jsx)("div",{className:"ui-chat-load-older",children:(0,a.jsx)(Ra,{variant:"ghost",size:"sm",isLoading:L,onClick:()=>{!async function(){if(L||!N.length)return;const a=new AbortController;de.current=a,q(!0);try{const t=await e.messages(n,{before:N[0].sequence},a.signal);if(a.signal.aborted)return;const r=Q.current;r&&(ue.current={height:r.scrollHeight,top:r.scrollTop}),ee.current=!1,k(e=>{const n=t.items.flatMap(e=>{const n=te.current.get(e.id);return n?[n]:[]});return ys(ys(e,t.items),n)}),O(t.hasMore),D("")}catch(e){a.signal.aborted||he(e)||D(i.error)}finally{a.signal.aborted||q(!1)}}()},children:i.older})}),!N.length&&!A&&(0,a.jsx)(xr,{icon:"Chat",title:j?i.generalFirstMessage:i.firstMessage,description:j?i.generalFirstMessageHint:i.firstMessageHint}),N.map((e,n)=>{const r=e.senderId===t.id,o=ge(e.createdAt),c=0===n||ge(N[n-1].createdAt)!==o,d=!c&&N[n-1].senderId===e.senderId&&new Date(e.createdAt).getTime()-new Date(N[n-1].createdAt).getTime()<3e5;return(0,a.jsxs)(l.Fragment,{children:[c&&(0,a.jsx)("div",{className:"ui-chat-date",children:(0,a.jsx)("span",{children:o})}),(0,a.jsxs)("article",{className:"ui-chat-message","data-own":r,"data-grouped":d,children:[!r&&(0,a.jsx)("span",{className:"ui-chat-avatar ui-chat-message-avatar","data-role":e.senderRole,"aria-hidden":"true",children:!d&&ws(e.senderName)}),(0,a.jsxs)("div",{className:"ui-chat-message-content",children:[!d&&(0,a.jsxs)("div",{className:"ui-chat-sender",children:[(0,a.jsx)("strong",{children:r?i.you:e.senderName}),(0,a.jsx)("span",{children:js(e.senderRole,i)})]}),(0,a.jsxs)("div",{className:"ui-chat-bubble",children:[(0,a.jsx)("p",{dir:"auto",children:e.body}),(0,a.jsxs)("div",{className:"ui-chat-message-meta",children:[r&&(0,a.jsx)("button",{type:"button",className:"ui-chat-edit-message","aria-label":i.editMessage,title:i.editMessage,onClick:()=>W(e),children:(0,a.jsx)(Da,{name:"Pen",size:14,"aria-hidden":"true"})}),(0,a.jsxs)("time",{dateTime:e.createdAt,title:new Date(e.createdAt).toLocaleString(s),children:[e.editedAt&&(0,a.jsxs)("span",{title:new Date(e.editedAt).toLocaleString(s),children:[i.edited," ·"," "]}),new Date(e.createdAt).toLocaleTimeString(s,{hour:"2-digit",minute:"2-digit"}),r&&(0,a.jsx)(Da,{name:"Success",size:12,"aria-hidden":"true"})]})]})]})]})]})]},e.id)})]})}),K&&(0,a.jsxs)("button",{type:"button",className:"ui-chat-new-messages",onClick:()=>{ee.current=!0,Q.current?.scrollTo({top:Q.current.scrollHeight,behavior:"smooth"}),Y(!1),me()},children:[i.newMessages,(0,a.jsx)(Da,{name:"ArrowNarrowDown",size:15})]}),(0,a.jsxs)("form",{className:"ui-chat-composer",onSubmit:e=>{e.preventDefault(),pe()},children:[T&&(0,a.jsx)("p",{role:"alert",className:"ui-chat-send-error",children:i.sendError}),(0,a.jsxs)("div",{className:"ui-chat-composer-field",children:[(0,a.jsx)("textarea",{ref:X,"aria-label":i.composer,placeholder:i.placeholder,rows:2,maxLength:5e3,value:o,disabled:B||p||E||!x,onChange:e=>c(n,e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),pe())}}),(0,a.jsx)("button",{type:"submit",className:"ui-chat-send","aria-label":B||p?i.sending:i.send,disabled:B||p||E||!o.trim()||!x,children:(0,a.jsx)(Da,{name:B||p?"Hourglass":"Send",size:19})})]}),(0,a.jsxs)("div",{className:"ui-chat-composer-help",children:[(0,a.jsx)("span",{children:i.hint}),(0,a.jsxs)("span",{children:[o.length.toLocaleString(s),"/5,000"]})]})]}),I&&x&&(0,a.jsx)(Ur,{open:!0,onClose:()=>$(!1),title:y,description:w,closeLabel:i.close,children:(0,a.jsxs)("div",{className:"ui-chat-details",children:[x.description&&(0,a.jsx)("p",{className:"ui-chat-description",children:x.description}),(0,a.jsxs)("div",{className:"ui-chat-section-label",children:[(0,a.jsx)("strong",{children:i.participants}),(0,a.jsx)("span",{children:x.participantCount})]}),(0,a.jsx)("div",{className:"ui-chat-participants",children:x.participants.map(e=>(0,a.jsxs)("div",{className:"ui-chat-person-option",children:[(0,a.jsx)("span",{className:"ui-chat-avatar","data-role":e.role,children:ws(e.name)}),(0,a.jsx)("span",{className:"ui-chat-person-name",children:(0,a.jsxs)("strong",{children:[e.name,e.id===t.id?` (${i.you})`:""]})}),(0,a.jsx)("span",{className:"ui-chat-role",children:js(e.role,i)})]},e.id))}),(0,a.jsx)("p",{className:"ui-chat-help",children:j?i.generalPrivate:i.private}),C&&(0,a.jsx)(Ra,{variant:"secondary",icon:"Settings",onClick:()=>{$(!1),u(x)},children:i.manage})]})}),F&&(0,a.jsx)(ks,{api:e,chatId:n,message:F,labels:i,onClose:()=>W(null),onSaved:e=>{te.current.set(e.id,e),k(n=>ys(n,[e])),W(null),f()}})]})}function Ss(e){const n=new Map;for(const a of e){const e=a.request?.client||(a.owner?.client?.id?{id:a.owner.client.id,name:a.owner.client.name}:null),t=e?.id||"general";let r=n.get(t);r||(r={id:t,client:e,chats:[]},n.set(t,r)),r.chats.push(a)}return[...n.values()]}function Ms({label:e,kind:n,children:t,chats:r,selected:s,search:i}){const o=(0,l.useId)(),[c,d]=(0,l.useState)(!0),u=r.some(e=>e.id===s);(0,l.useEffect)(()=>{(u||i)&&d(!0)},[u,s,i]);const h=r.reduce((e,n)=>e+n.unreadCount,0);return(0,a.jsxs)("section",{className:"ui-chat-conversation-group","data-kind":n,children:[(0,a.jsxs)("button",{type:"button",className:"ui-chat-group-heading","aria-expanded":c,"aria-controls":o,onClick:()=>d(e=>!e),children:[(0,a.jsx)(Da,{name:"ChevronDown",size:13,className:c?"":"ui-chat-group-collapsed"}),(0,a.jsx)(Da,{name:"client"===n?"Company":"Chat",size:15}),(0,a.jsx)("span",{title:e,children:e}),h>0&&(0,a.jsx)("span",{className:"ui-chat-count",children:h>99?"99+":h})]}),(0,a.jsx)("div",{id:o,className:"ui-chat-group-content",hidden:!c,children:t})]})}function Os({chats:e,grouping:n,selected:t,onSelect:r,locale:s,labels:i,search:l}){function o(e){const n=new Date(e);return n.toDateString()===(new Date).toDateString()?n.toLocaleTimeString(s,{hour:"2-digit",minute:"2-digit"}):n.toLocaleDateString(s,{day:"numeric",month:"short"})}function c(e){const n="GENERAL"===e.kind,s=n&&"general"===e.id;return(0,a.jsxs)("button",{type:"button",className:"ui-chat-list-item","data-active":t===e.id,"aria-current":t===e.id?"true":void 0,onClick:()=>r(e.id),children:[(0,a.jsx)("span",{className:"ui-chat-avatar ui-chat-group-avatar",children:(0,a.jsx)(Da,{name:n?"Chat":"Users",size:18})}),(0,a.jsxs)("span",{className:"ui-chat-list-content",children:[(0,a.jsxs)("span",{className:"ui-chat-list-title",children:[(0,a.jsx)("strong",{children:s?i.generalChat:e.title}),e.updatedAt&&(0,a.jsx)("time",{dateTime:e.updatedAt,children:o(e.updatedAt)})]}),(0,a.jsxs)("span",{className:"ui-chat-list-preview",children:[(0,a.jsx)("span",{children:e.lastMessage?`${e.lastMessage.senderName}: ${e.lastMessage.body}`:n?i.generalHint:e.description||`${e.participantCount} ${i.participants}`}),e.unreadCount>0&&(0,a.jsx)("span",{className:"ui-chat-count","aria-label":`${e.unreadCount} ${i.unread}`,children:e.unreadCount>99?"99+":e.unreadCount})]}),(0,a.jsx)("span",{className:"ui-chat-list-meta",children:n?s?i.agencyTeam:`${i.generalChat} · ${js(e.owner?.role||"REMOVED",i)}`:`${e.participantCount} ${i.participants}`})]})]},e.id)}return(0,a.jsx)(a.Fragment,{children:"none"===n?e.map(c):Ss(e).map(e=>(0,a.jsx)(Ms,{label:e.client?.name||i.general,kind:e.client?"client":"general",chats:e.chats,selected:t,search:l,children:e.chats.map(c)},e.id))})}function Ls({apiBaseUrl:e,locale:n="en",allowManagement:t=!1,grouping:r="none",clientRequestId:s,embedded:i=!1,selectedChatId:o,onSelectChat:c}){const d=(0,l.useMemo)(()=>xs(e),[e]),u=bs[n],[h,m]=(0,l.useState)(null),[p,g]=(0,l.useState)([]),[f,v]=(0,l.useState)(""),[x,b]=(0,l.useState)(!1),[j,w]=(0,l.useState)(!1),[y,C]=(0,l.useState)(0),[N,k]=(0,l.useState)(1),[E,S]=(0,l.useState)(!1),[M,O]=(0,l.useState)(!0),[L,q]=(0,l.useState)(!1),[A,D]=(0,l.useState)(o),P=(0,l.useRef)(!1),[z,T]=(0,l.useState)(null),[R,B]=(0,l.useState)(0),[H,I]=(0,l.useState)({}),$=t&&!!h?.canManage,[F,W]=(0,l.useState)({}),U=(0,l.useRef)(new Map);(0,l.useEffect)(()=>{D(o)},[o]);const V=(0,l.useCallback)((e,n)=>I(a=>({...a,[e]:n})),[]),_=(0,l.useCallback)(()=>B(e=>e+1),[]),G=(0,l.useCallback)((e,n)=>{const a=U.current.get(e);if(a?.promise)return a.promise;const t=a?.body===n?a:{body:n,key:crypto.randomUUID(),promise:void 0};return U.current.set(e,t),W(n=>({...n,[e]:!0})),t.promise=d.send(e,n,t.key).then(a=>(I(a=>a[e]?.trim()===n?{...a,[e]:""}:a),U.current.delete(e),_(),a)).finally(()=>{t.promise=void 0,W(n=>({...n,[e]:!1}))}),t.promise},[d,_]),K=(0,l.useCallback)((e,n)=>{g(a=>a.map(a=>a.id===e?{...a,lastReadSequence:Math.max(n,a.lastReadSequence),unreadCount:Math.max(0,a.messageSequence-Math.max(n,a.lastReadSequence))}:a))},[]);function Y(e){D(e),c?.(e)}function Z(e,n=!1){w(e),b(n),k(1),e!==j&&(g([]),O(!0),Y(void 0))}(0,l.useEffect)(()=>{const e=new AbortController;let n=!1;async function a(){if(!n&&!document.hidden){n=!0;try{let n;const a=[];for(let t=0;t<N;t++){const r=await d.list(f,n,e.signal,s,j);if(e.signal.aborted)return;if(m(r.viewer),C(r.archivedCount||0),0===t&&r.generalChat&&!s&&!i){const e=f.trim().toLocaleLowerCase();e&&!`${u.generalChat} ${u.agencyTeam}`.toLocaleLowerCase().includes(e)||a.push(r.generalChat),P.current||j||(P.current=!0,D(e=>e||r.generalChat.id))}if(a.push(...r.items),n=r.nextCursor||void 0,!n)break}g([...new Map(a.map(e=>[e.id,e])).values()]),i&&D(e=>!P.current&&a.length?(P.current=!0,a[0].id):e&&!a.some(n=>n.id===e)?void 0:e),S(!!n),q(!1)}catch(n){e.signal.aborted||(q(!0),n instanceof vs&&[401,403].includes(n.status)&&(g([]),m(null),T(null)))}finally{n=!1,e.signal.aborted||O(!1)}}}const t=setTimeout(()=>{a()},200),r=setInterval(()=>{a()},8e3),l=()=>{a()};return window.addEventListener("focus",l),document.addEventListener("visibilitychange",l),()=>{e.abort(),clearTimeout(t),clearInterval(r),window.removeEventListener("focus",l),document.removeEventListener("visibilitychange",l)}},[d,f,N,R,s,i,u,j]);const J=p.filter(e=>!x||e.unreadCount>0||e.id===A),Q=p.reduce((e,n)=>e+n.unreadCount,0),X=i&&!p.some(e=>e.id===A)?void 0:A;return!i||M||L||p.length||f||j||y?(0,a.jsxs)("div",{className:"ui-chat-workspace","data-manage":$,"data-embedded":i,children:[i?(0,a.jsxs)("div",{className:"ui-request-chat-heading",children:[(0,a.jsx)("h2",{children:"Chat"}),(0,a.jsx)("p",{children:u.requestChatHint})]}):(0,a.jsx)(pr,{eyebrow:"de"===n?"NACHRICHTEN":"MESSAGES",title:"Chat",subtitle:u.subtitle,actions:$&&(0,a.jsx)(Ra,{icon:"Plus",onClick:()=>T("new"),children:u.newChat})}),(0,a.jsxs)("div",{className:"ui-chat","data-selected":!!X&&!!h,children:[(0,a.jsxs)("aside",{className:"ui-chat-sidebar","aria-label":u.chats,children:[(0,a.jsxs)("div",{className:"ui-chat-sidebar-heading",children:[(0,a.jsx)("h2",{children:u.chats}),Q>0&&(0,a.jsx)("span",{className:"ui-chat-count",children:Q>99?"99+":Q})]}),(0,a.jsx)("div",{className:"ui-chat-search",children:(0,a.jsx)(Za,{icon:"Search",placeholder:u.search,"aria-label":u.search,maxLength:120,value:f,onChange:e=>{v(e.target.value),k(1),O(!0)}})}),(0,a.jsxs)("div",{className:"ui-chat-filters",role:"group","aria-label":u.chats,children:[(0,a.jsx)("button",{type:"button","aria-pressed":!x&&!j,onClick:()=>Z(!1),children:u.all}),(0,a.jsx)("button",{type:"button","aria-pressed":x&&!j,onClick:()=>Z(!1,!0),children:u.unread}),(0,a.jsxs)("button",{type:"button","aria-pressed":j,onClick:()=>Z(!0),children:[u.archived,y>0?` (${y})`:""]})]}),L&&(0,a.jsx)(br,{tone:"error",action:(0,a.jsx)("button",{type:"button",onClick:_,children:u.retry}),children:u.error}),(0,a.jsx)("div",{className:"ui-chat-list","aria-busy":M,children:M&&!p.length?(0,a.jsx)(xr,{loading:!0,loadingLabel:u.loading}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Os,{chats:J,grouping:r,selected:A,onSelect:Y,locale:n,labels:u,search:f}),!J.length&&!L&&(0,a.jsx)(xr,{icon:"Chat",title:j&&!f?u.noArchived:f||x?u.noResults:u.noChats,description:j&&!f?u.noArchivedHint:f||x?u.noResultsHint:$?u.noChatsAdmin:u.noChatsHint}),E&&(0,a.jsx)("div",{className:"ui-chat-load-older",children:(0,a.jsx)(Ra,{variant:"ghost",size:"sm",isLoading:M,onClick:()=>{k(e=>e+1),O(!0)},children:u.more})})]})}),(0,a.jsxs)("div",{className:"ui-chat-sidebar-footer",children:[(0,a.jsx)(Da,{name:"UsersCheck",size:15}),(0,a.jsx)("span",{children:"IT’S YOU AGENCY"})]})]}),X&&h?(0,a.jsx)(Es,{api:d,id:X,viewer:h,canManage:$,locale:n,labels:u,draft:H[X]||"",onDraft:V,onBack:()=>Y(void 0),onManage:T,onRead:K,sendDraft:G,sendingInBackground:!!F[X],refresh:R,onChanged:_,onArchived:e=>{O(!0),C(n=>Math.max(0,n+(e.archived?1:-1))),g(n=>n.filter(n=>n.id!==e.id)),Y(void 0),_()}},X):(0,a.jsxs)("div",{className:"ui-chat-welcome",children:[(0,a.jsx)("div",{className:"ui-chat-welcome-icon",children:(0,a.jsx)(Da,{name:"Chat",size:36})}),(0,a.jsx)("h2",{children:u.choose}),(0,a.jsx)("p",{children:u.chooseHint}),(0,a.jsx)("span",{className:"ui-chat-help",children:$?u.staffInboxHint:u.generalHint}),$&&(0,a.jsx)(Ra,{variant:"secondary",icon:"Plus",onClick:()=>T("new"),children:u.newChat})]})]}),z&&h&&$&&(0,a.jsx)(Ns,{api:d,viewer:h,chat:"new"===z?void 0:z,labels:u,onClose:()=>T(null),onSaved:e=>{T(null),g(n=>[e,...n.filter(n=>n.id!==e.id)]),v(""),b(!1),w(!1),Y(e.id),_()}})]}):(0,a.jsxs)("section",{className:"ui-request-chat-empty","aria-label":"Chat",children:[(0,a.jsx)("h2",{children:"Chat"}),(0,a.jsx)(xr,{icon:"Chat",title:u.noRequestChats,description:u.noRequestChatsHint})]})}function qs({apiBaseUrl:e,clientRequestId:n,locale:t="en",onCancel:r,onCreated:s}){const i=(0,l.useMemo)(()=>xs(e),[e]),o=bs[t],[c,d]=(0,l.useState)(null),[u,h]=(0,l.useState)(!1),[m,p]=(0,l.useState)(0);return(0,l.useEffect)(()=>{const e=new AbortController;return d(null),h(!1),i.requestDraft(n,e.signal).then(n=>{e.signal.aborted||d(n)}).catch(()=>{e.signal.aborted||h(!0)}),()=>e.abort()},[i,n,m]),(0,a.jsxs)("div",{className:"ui-chat-create-page",children:[(0,a.jsx)(pr,{title:o.newChat,subtitle:o.requestCreateHint,onBack:r,backLabel:o.request}),u?(0,a.jsx)(xr,{title:o.error,action:(0,a.jsx)(Ra,{onClick:()=>p(e=>e+1),children:o.retry})}):c?(0,a.jsxs)(a.Fragment,{children:[(c.missingClientAccount||c.missingModelAccounts>0)&&(0,a.jsxs)(br,{tone:"neutral",children:[c.missingClientAccount&&(0,a.jsx)("p",{children:o.missingClientAccount}),c.missingModelAccounts>0&&(0,a.jsxs)("p",{children:[c.missingModelAccounts," ",o.missingModelAccounts]})]}),(0,a.jsx)(Ns,{api:i,viewer:c.viewer,initialValues:c.draft,presentation:"page",lockRequest:!0,labels:o,onClose:r,onSaved:s},n)]}):(0,a.jsx)(xr,{loading:!0,loadingLabel:o.loading})]})}function As({apiBaseUrl:e,clientRequestId:n,locale:t="en"}){return(0,a.jsx)(Ls,{apiBaseUrl:e,clientRequestId:n,locale:t,embedded:!0},n)}function Ds({value:e,onChange:n,disabled:t,label:r,locale:s="de"}){const i=(0,l.useId)(),o=e=>"de"===s?`${e} von 5 Sternen`:`${e} out of 5 stars`;return n?(0,a.jsxs)("fieldset",{className:"ui-star-rating-field",disabled:t,children:[(0,a.jsx)("legend",{className:"ui-field-label",children:r}),(0,a.jsxs)("div",{className:"ui-star-rating",role:"radiogroup","aria-label":r,children:[[1,2,3,4,5].map(t=>(0,a.jsxs)("label",{className:"ui-star-choice","data-selected":t<=e,children:[(0,a.jsx)("input",{type:"radio",name:i,value:t,checked:e===t,onChange:()=>n(t),"aria-label":o(t),required:!0}),(0,a.jsx)(Da,{name:"Star",size:29,fill:t<=e?"currentColor":"none","aria-hidden":"true"})]},t)),(0,a.jsx)("span",{className:"ui-rating-value","aria-live":"polite",children:e?`${e} / 5`:"— / 5"})]})]}):(0,a.jsx)("span",{className:"ui-star-rating",role:"img","aria-label":o(e),children:[1,2,3,4,5].map(n=>(0,a.jsx)(Da,{name:"Star",size:22,fill:n<=e?"currentColor":"none","aria-hidden":"true"},n))})}const Ps={de:{loading:"Bewertungen werden geladen",error:"Bewertungen konnten nicht geladen werden.",retry:"Erneut versuchen",empty:"Noch keine Bewertungen",emptyDescription:"Sobald die Rechnung für den Auftrag erstellt wurde, werden die gebuchten Models und der Kunde zur Bewertung eingeladen.",clientTitle:"Wie war die Zusammenarbeit?",modelTitle:"Wie war dein Auftrag?",staffTitle:"Feedback zum Auftrag",clientDescription:"Bewerten Sie jedes gebuchte Model einzeln. Ihre Erfahrung hilft uns bei künftigen Buchungen.",modelDescription:"Bewerte die Zusammenarbeit mit dem Kunden und deine Erfahrung bei diesem Auftrag.",staffDescription:"Bewertungen der gebuchten Models und des Kunden, an einem Ort.",privacy:"Nur du und das Agenturteam können deine Bewertung und deinen Text lesen.",clientPrivacy:"Nur Sie und das Agenturteam können Ihre Bewertung und Ihren Text lesen.",rating:"Ihre Bewertung",modelRating:"Deine Bewertung",note:"Feedback (optional)",placeholder:"Was lief gut? Was könnte besser sein?",save:"Bewertung abgeben",saved:"Bewertung abgegeben",pending:"Noch offen",teamSaved:"Bereits von Ihrem Team bewertet. Der Inhalt ist nur für die bewertende Person und die Agentur sichtbar.",noComment:"Kein Text hinzugefügt.",clientToModel:"Kunde → Model",modelToClient:"Model → Kunde / Auftrag",completed:"abgegeben",of:"von",scale:"1 = sehr schlecht · 5 = ausgezeichnet",submitError:"Die Bewertung konnte nicht gespeichert werden. Bitte versuche es erneut."},en:{loading:"Loading reviews",error:"Reviews could not be loaded.",retry:"Try again",empty:"No reviews yet",emptyDescription:"Creating the order invoice invites the booked models and the client to leave their feedback.",clientTitle:"How was the collaboration?",modelTitle:"How was your job?",staffTitle:"Order feedback",clientDescription:"Rate each booked model individually. Your experience helps with future bookings.",modelDescription:"Rate working with the client and your experience on this job.",staffDescription:"Feedback from the booked models and the client, in one place.",privacy:"Only you and the agency team can read your rating and feedback.",clientPrivacy:"Only you and the agency team can read your rating and feedback.",rating:"Your rating",modelRating:"Your rating",note:"Feedback (optional)",placeholder:"What went well? What could be better?",save:"Submit review",saved:"Review submitted",pending:"Awaiting review",teamSaved:"Already reviewed by your team. Only the reviewer and the agency can read the feedback.",noComment:"No written feedback.",clientToModel:"Client → model",modelToClient:"Model → client / job",completed:"submitted",of:"of",scale:"1 = very poor · 5 = excellent",submitError:"Your review could not be saved. Please try again."}};async function zs(e,n,a,t){const r=await fetch(e,{credentials:"include",cache:"no-store",signal:t,...a?{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}:{}}),s=await r.json().catch(()=>null);if(!r.ok)throw new Error(s?.message||n);return s}function Ts({review:e,data:n,url:t,onSaved:r,locale:s}){const i=Ps[s],[o,c]=(0,l.useState)(0),[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)(!1),[p,g]=(0,l.useState)(""),f="staff"===n.audience,v="model"===n.audience,x=v?n.order.clientName:e.modelName;return(0,a.jsxs)("article",{className:"ui-review-card",children:[(0,a.jsxs)("header",{className:"ui-review-card-header",children:[(0,a.jsx)("span",{className:"ui-review-avatar","aria-hidden":"true",children:v?(0,a.jsx)(Da,{name:"Company",size:22}):e.modelName.split(" ").slice(0,2).map(e=>e[0]).join("")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{children:x}),(0,a.jsx)("p",{children:f?"CLIENT_TO_MODEL"===e.direction?i.clientToModel:i.modelToClient:n.order.project})]}),(0,a.jsx)(fr,{tone:e.submittedAt?"complete":"neutral",children:e.submittedAt?i.saved:i.pending})]}),e.submittedAt?(0,a.jsx)("div",{className:"ui-review-result",role:"status",children:e.stars?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"ui-review-score",children:[(0,a.jsx)(Ds,{value:e.stars,label:i.rating,locale:s}),(0,a.jsxs)("strong",{children:[e.stars," / 5"]})]}),(0,a.jsx)("p",{className:"ui-review-comment",children:e.comment||i.noComment}),(0,a.jsx)("time",{dateTime:e.submittedAt,children:new Date(e.submittedAt).toLocaleDateString("de"===s?"de-DE":"en-GB",{day:"numeric",month:"short",year:"numeric"})})]}):(0,a.jsx)("p",{children:i.teamSaved})}):e.canSubmit?(0,a.jsxs)("form",{onSubmit:async a=>{if(a.preventDefault(),o&&!h){m(!0),g("");try{r(await zs(t,i.submitError,{orderId:n.order.id,reviewId:e.id,stars:o,comment:d})),window.dispatchEvent(new CustomEvent("itsyou:notifications-changed",{detail:`${t.replace(/\/order-reviews$/,"")}/notifications/${n.audience}`}))}catch(e){g(e instanceof Error?e.message:i.submitError)}finally{m(!1)}}},className:"ui-review-form",children:[(0,a.jsx)(Ds,{value:o,onChange:c,disabled:h,label:v?i.modelRating:i.rating,locale:s}),(0,a.jsx)("p",{className:"ui-review-scale",children:i.scale}),(0,a.jsx)(yr,{label:i.note,hint:`${d.length} / 2.000`,children:(0,a.jsx)("textarea",{className:"ui-input",rows:3,value:d,onChange:e=>u(e.target.value),maxLength:2e3,placeholder:i.placeholder,disabled:h})}),p&&(0,a.jsx)(br,{tone:"error",children:p}),(0,a.jsx)("div",{className:"ui-review-submit",children:(0,a.jsx)(Ra,{type:"submit",disabled:!o,isLoading:h,children:i.save})})]}):(0,a.jsx)("p",{className:"ui-review-awaiting",children:i.pending})]})}function Rs({apiBaseUrl:e,orderId:n,locale:t="de",active:r=!0}){return(0,a.jsx)(Bs,{apiBaseUrl:e,orderId:n,locale:t,active:r},`${e}:${n}`)}function Bs({apiBaseUrl:e,orderId:n,locale:t,active:r}){const s=Ps[t],i=`${e.replace(/\/$/,"")}/order-reviews`,[o,c]=(0,l.useState)(null),[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)(0);if((0,l.useEffect)(()=>{if(!r)return;const e=new AbortController;return zs(`${i}?orderId=${encodeURIComponent(n)}`,s.error,void 0,e.signal).then(n=>{e.signal.aborted||(c(n),u(""))}).catch(n=>{e.signal.aborted||u(n.message||s.error)}),()=>e.abort()},[i,n,h,r,s.error]),!o)return d?(0,a.jsx)(xr,{icon:"Star",title:d,action:(0,a.jsx)(Ra,{onClick:()=>m(e=>e+1),children:s.retry})}):(0,a.jsxs)("div",{role:"status","aria-label":s.loading,className:"ui-reviews-loading",children:[(0,a.jsx)(vr,{className:"h-28"}),(0,a.jsx)(vr,{className:"h-80"})]});if(!o.reviews.length)return(0,a.jsx)(xr,{icon:"Star",title:s.empty,description:s.emptyDescription});const p="staff"===o.audience,g="model"===o.audience,f=o.reviews.filter(e=>e.submittedAt).length;return(0,a.jsxs)("section",{className:"ui-order-reviews",children:[(0,a.jsxs)("header",{className:"ui-reviews-heading",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"ui-reviews-eyebrow",children:o.order.project}),(0,a.jsx)("h2",{children:p?s.staffTitle:g?s.modelTitle:s.clientTitle}),(0,a.jsx)("p",{children:p?s.staffDescription:g?s.modelDescription:s.clientDescription})]}),(0,a.jsxs)("span",{className:"ui-review-progress",children:[f," ",s.of," ",o.reviews.length," ",s.completed]})]}),!p&&(0,a.jsxs)("div",{className:"ui-review-privacy",children:[(0,a.jsx)(Da,{name:"Info",size:18}),(0,a.jsx)("p",{children:g?s.privacy:s.clientPrivacy})]}),d&&(0,a.jsx)(br,{tone:"error",children:d}),(0,a.jsx)("div",{className:"ui-review-grid",children:o.reviews.map(e=>(0,a.jsx)(Ts,{review:e,data:o,url:i,onSaved:c,locale:t},e.id))})]})}return n})());