@murabei-data-science/pumpwood-ui 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -340,6 +340,7 @@ interface INavigationSidebarProps {
340
340
  onLogout: () => void | Promise<void>;
341
341
  logoutIcon?: LucideIcon;
342
342
  logoutLabel?: string;
343
+ footerActions?: ReactNode;
343
344
  LinkComponent?: ComponentType<{
344
345
  href: any;
345
346
  className?: string;
@@ -357,7 +358,7 @@ interface INavigationSidebarProps {
357
358
  /**
358
359
  * Configurable navigation sidebar with collapse, groups and logout.
359
360
  */
360
- declare function NavigationSidebar({ links, iconMap, pathname, isSidebarCollapsedFromQuery, logo, onLogout, logoutIcon, logoutLabel, LinkComponent, ImageComponent, }: INavigationSidebarProps): react_jsx_runtime.JSX.Element;
361
+ declare function NavigationSidebar({ links, iconMap, pathname, isSidebarCollapsedFromQuery, logo, onLogout, logoutIcon, logoutLabel, footerActions, LinkComponent, ImageComponent, }: INavigationSidebarProps): react_jsx_runtime.JSX.Element;
361
362
 
362
363
  export { AuthenticatedView, AutoDetailContent, AutoFormContent, CombinedFilterTable, CreatedByUserFilter, CustomBreadcrumb, DateRangeFilter, DetailPage, FULL_WIDTH_DETAIL_FIELDS, FilePreview, KeyValueContent, LoginCard, LoginCardSSO, NavigationSidebar, NotAuthenticatedView, formatDetailLabel, formatDetailValue, getDetailFieldValue };
363
364
  export type { FileTypeCategory, IAuthenticatedViewProps, IAutoDetailContentProps, IAutoFormContentProps, IDetailFieldConfig, IDetailPageProps, IDetailPageSection, IDetailSection, IFormField, IFormSection, IFormatDetailValueOptions, ILoginCardProps, ILoginCardSSOProps, INavigationSidebarLink, INavigationSidebarLogo, INavigationSidebarProps, INavigationSidebarSubLink, INotAuthenticatedViewProps };
@@ -1,26 +1,26 @@
1
- import{forwardRef as e,createElement as t,useState as r,useEffect as n,Fragment as o}from"react";import{Calendar as a}from"@murabei-data-science/pumpwood-ui/components";import{Popover as i,PopoverTrigger as s,PopoverContent as l}from"@murabei-data-science/pumpwood-ui/components";import{jsx as c,jsxs as d,Fragment as u}from"react/jsx-runtime";import{FKSelect as m}from"@murabei-data-science/pumpwood-ui/components";import{PumpwoodTable as h}from"@murabei-data-science/pumpwood-ui/components";import{EmptyContainer as p}from"@murabei-data-science/pumpwood-ui/components";import{Button as f}from"@murabei-data-science/pumpwood-ui/components";import{Stack as g,Loading as b}from"@murabei-data-science/pumpwood-ui/components";import{AlertWithIcon as w}from"@murabei-data-science/pumpwood-ui/components";import{Card as y,CardHeader as x,CardContent as v,CardFooter as k}from"@murabei-data-science/pumpwood-ui/components";import{Input as N}from"@murabei-data-science/pumpwood-ui/components";import{Label as C}from"@murabei-data-science/pumpwood-ui/components";import{Spinner as M}from"@murabei-data-science/pumpwood-ui/components";import{Accordion as S,AccordionItem as z,AccordionTrigger as j,AccordionContent as P}from"@murabei-data-science/pumpwood-ui/components";import{Checkbox as _}from"@murabei-data-science/pumpwood-ui/components";import{Select as D}from"@murabei-data-science/pumpwood-ui/components";import{Textarea as L}from"@murabei-data-science/pumpwood-ui/components";import{Breadcrumb as W,BreadcrumbList as O,BreadcrumbItem as q,BreadcrumbPage as E,BreadcrumbSeparator as T}from"@murabei-data-science/pumpwood-ui/components";import{Sidebar as F}from"@murabei-data-science/pumpwood-ui/components";import{useSidebarCollapse as H}from"@murabei-data-science/pumpwood-ui/components";
1
+ import{RangePicker as e}from"@murabei-data-science/pumpwood-ui/components";import{jsx as t,jsxs as r,Fragment as n}from"react/jsx-runtime";import{FKSelect as o}from"@murabei-data-science/pumpwood-ui/components";import{useState as a,useEffect as i,forwardRef as s,createElement as l,Fragment as c}from"react";import{PumpwoodTable as d}from"@murabei-data-science/pumpwood-ui/components";import{EmptyContainer as u}from"@murabei-data-science/pumpwood-ui/components";import{Button as m}from"@murabei-data-science/pumpwood-ui/components";import{Stack as h,Loading as p}from"@murabei-data-science/pumpwood-ui/components";import{AlertWithIcon as f}from"@murabei-data-science/pumpwood-ui/components";import{Card as g,CardHeader as b,CardContent as w,CardFooter as y}from"@murabei-data-science/pumpwood-ui/components";import{Input as x}from"@murabei-data-science/pumpwood-ui/components";import{Label as v}from"@murabei-data-science/pumpwood-ui/components";import{Spinner as k}from"@murabei-data-science/pumpwood-ui/components";import{Accordion as N,AccordionItem as C,AccordionTrigger as M,AccordionContent as S}from"@murabei-data-science/pumpwood-ui/components";import{Checkbox as z}from"@murabei-data-science/pumpwood-ui/components";import{Select as j}from"@murabei-data-science/pumpwood-ui/components";import{Textarea as P}from"@murabei-data-science/pumpwood-ui/components";import{Breadcrumb as _,BreadcrumbList as D,BreadcrumbItem as L,BreadcrumbPage as W,BreadcrumbSeparator as O}from"@murabei-data-science/pumpwood-ui/components";import{Sidebar as T}from"@murabei-data-science/pumpwood-ui/components";import{useSidebarCollapse as q}from"@murabei-data-science/pumpwood-ui/components";function E(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=E(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const F=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),H="-",A=[],G=e=>{const t=$(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Y(e);const r=e.split(H),n=""===r[0]&&r.length>1?1:0;return I(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||A}return r[e]||A}}},I=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=I(e,t+1,o);if(r)return r}const a=r.validators;if(null===a)return;const i=0===t?e.join(H):e.slice(t).join(H),s=a.length;for(let e=0;e<s;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},Y=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),$=e=>{const{theme:t,classGroups:r}=e;return B(r,t)},B=(e,t)=>{const r=F();for(const n in e){const o=e[n];V(o,r,n,t)}return r},V=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];Q(o,t,r,n)}},Q=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?X(e,t,r,n):U(e,t,r,n):R(e,t,r)},R=(e,t,r)=>{(""===e?t:J(t,e)).classGroupId=r},U=(e,t,r,n)=>{K(e)?V(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},X=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];V(i,J(t,a),r,n)}},J=(e,t)=>{let r=e;const n=t.split(H),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=F(),r.nextPart.set(t,o)),r=o}return r},K=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,Z=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,a)=>{r[o]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},ee=[],te=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),re=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,a=0;const i=e.length;for(let s=0;s<i;s++){const i=e[s];if(0===n&&0===o){if(":"===i){t.push(e.slice(a,s)),a=s+1;continue}if("/"===i){r=s;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return te(t,c,l,r&&r>a?r-a:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):te(ee,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},ne=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},oe=/\s+/,ae=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ae(e[n]))&&(r&&(r+=" "),r+=t);return r},ie=(e,...t)=>{let r,n,o,a;const i=e=>{const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(oe);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:d,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:h}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!h,f=n(p?m.substring(0,h):m);if(!f){if(!p){l=t+(l.length>0?" "+l:l);continue}if(f=n(m),!f){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=0===d.length?"":1===d.length?d[0]:a(d).join(":"),b=u?g+"!":g,w=b+f;if(i.indexOf(w)>-1)continue;i.push(w);const y=o(f,p);for(let e=0;e<y.length;++e){const t=y[e];i.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:Z(e.cacheSize),parseClassName:re(e),sortModifiers:ne(e),...G(e)}))(l),n=r.cache.get,o=r.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=ae(t))&&(o&&(o+=" "),o+=r);return o})(...e))},se=[],le=e=>{const t=t=>t[e]||se;return t.isThemeGetter=!0,t},ce=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,de=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ue=/^\d+\/\d+$/,me=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,he=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ge=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,be=e=>ue.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),ye=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&we(e.slice(0,-1)),ve=e=>me.test(e),ke=()=>!0,Ne=e=>he.test(e)&&!pe.test(e),Ce=()=>!1,Me=e=>fe.test(e),Se=e=>ge.test(e),ze=e=>!Pe(e)&&!Te(e),je=e=>Ie(e,Ve,Ce),Pe=e=>ce.test(e),_e=e=>Ie(e,Qe,Ne),De=e=>Ie(e,Re,we),Le=e=>Ie(e,$e,Ce),We=e=>Ie(e,Be,Se),Oe=e=>Ie(e,Xe,Me),Te=e=>de.test(e),qe=e=>Ye(e,Qe),Ee=e=>Ye(e,Ue),Fe=e=>Ye(e,$e),He=e=>Ye(e,Ve),Ae=e=>Ye(e,Be),Ge=e=>Ye(e,Xe,!0),Ie=(e,t,r)=>{const n=ce.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Ye=(e,t,r=!1)=>{const n=de.exec(e);return!!n&&(n[1]?t(n[1]):r)},$e=e=>"position"===e||"percentage"===e,Be=e=>"image"===e||"url"===e,Ve=e=>"length"===e||"size"===e||"bg-size"===e,Qe=e=>"length"===e,Re=e=>"number"===e,Ue=e=>"family-name"===e,Xe=e=>"shadow"===e,Je=ie(()=>{const e=le("color"),t=le("font"),r=le("text"),n=le("font-weight"),o=le("tracking"),a=le("leading"),i=le("breakpoint"),s=le("container"),l=le("spacing"),c=le("radius"),d=le("shadow"),u=le("inset-shadow"),m=le("text-shadow"),h=le("drop-shadow"),p=le("blur"),f=le("perspective"),g=le("aspect"),b=le("ease"),w=le("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Te,Pe],x=()=>[Te,Pe,l],v=()=>[be,"full","auto",...x()],k=()=>[ye,"none","subgrid",Te,Pe],N=()=>["auto",{span:["full",ye,Te,Pe]},ye,Te,Pe],C=()=>[ye,"auto",Te,Pe],M=()=>["auto","min","max","fr",Te,Pe],S=()=>["auto",...x()],z=()=>[be,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],j=()=>[e,Te,Pe],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Fe,Le,{position:[Te,Pe]}],_=()=>["auto","cover","contain",He,je,{size:[Te,Pe]}],D=()=>[xe,qe,_e],L=()=>["","none","full",c,Te,Pe],W=()=>["",we,qe,_e],O=()=>[we,xe,Fe,Le],T=()=>["","none",p,Te,Pe],q=()=>["none",we,Te,Pe],E=()=>["none",we,Te,Pe],F=()=>[we,Te,Pe],H=()=>[be,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ve],breakpoint:[ve],color:[ke],container:[ve],"drop-shadow":[ve],ease:["in","out","in-out"],font:[ze],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ve],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ve],shadow:[ve],spacing:["px",we],text:[ve],"text-shadow":[ve],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",be,Pe,Te,g]}],container:["container"],columns:[{columns:[we,Pe,Te,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{start:v()}],end:[{end:v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:["visible","invisible","collapse"],z:[{z:[ye,"auto",Te,Pe]}],basis:[{basis:[be,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,be,"auto","initial","none",Pe]}],grow:[{grow:["",we,Te,Pe]}],shrink:[{shrink:["",we,Te,Pe]}],order:[{order:[ye,"first","last","none",Te,Pe]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[s,"screen",...z()]}],"min-w":[{"min-w":[s,"screen","none",...z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",r,qe,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Te,De]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,Pe]}],"font-family":[{font:[Ee,Pe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Te,Pe]}],"line-clamp":[{"line-clamp":[we,"none",Te,De]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":["none",Te,Pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,Pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",Te,_e]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[we,"auto",Te,Pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ye,Te,Pe],radial:["",Te,Pe],conic:[ye,Te,Pe]},Ae,We]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[we,Te,Pe]}],"outline-w":[{outline:["",we,qe,_e]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",d,Ge,Oe]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",u,Ge,Oe]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[we,_e]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",m,Ge,Oe]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[we,Te,Pe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Te,Pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,Pe]}],filter:[{filter:["","none",Te,Pe]}],blur:[{blur:T()}],brightness:[{brightness:[we,Te,Pe]}],contrast:[{contrast:[we,Te,Pe]}],"drop-shadow":[{"drop-shadow":["","none",h,Ge,Oe]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",we,Te,Pe]}],"hue-rotate":[{"hue-rotate":[we,Te,Pe]}],invert:[{invert:["",we,Te,Pe]}],saturate:[{saturate:[we,Te,Pe]}],sepia:[{sepia:["",we,Te,Pe]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,Pe]}],"backdrop-blur":[{"backdrop-blur":T()}],"backdrop-brightness":[{"backdrop-brightness":[we,Te,Pe]}],"backdrop-contrast":[{"backdrop-contrast":[we,Te,Pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,Te,Pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,Te,Pe]}],"backdrop-invert":[{"backdrop-invert":["",we,Te,Pe]}],"backdrop-opacity":[{"backdrop-opacity":[we,Te,Pe]}],"backdrop-saturate":[{"backdrop-saturate":[we,Te,Pe]}],"backdrop-sepia":[{"backdrop-sepia":["",we,Te,Pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,Pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",Te,Pe]}],ease:[{ease:["linear","initial",b,Te,Pe]}],delay:[{delay:[we,Te,Pe]}],animate:[{animate:["none",w,Te,Pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Te,Pe]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:E()}],"scale-x":[{"scale-x":E()}],"scale-y":[{"scale-y":E()}],"scale-z":[{"scale-z":E()}],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[Te,Pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te,Pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te,Pe]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[we,qe,_e,De]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ke(...e){return Je(function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=E(e))&&(n&&(n+=" "),n+=t);return n}(e))}const Ze=e=>e?e.toISOString():"",et=e=>{if(!e.trim())return;const t=new Date(e);return Number.isNaN(t.getTime())?void 0:t},tt=({startDate:r,endDate:n,onStartDateChange:o,onEndDateChange:a,startLabel:i="Start date",endLabel:s="End date",className:l})=>{const c="{start} - {end}".replace("{start}",i).replace("{end}",s);return t("div",{className:Ke("flex flex-col gap-2",l),children:t(e,{className:"w-[280px]",placeholder:c,fromValue:Ze(r),toValue:Ze(n),onFromChange:e=>o(et(e)),onToChange:e=>a(et(e))})})},rt=({value:e,onChange:r,fetcher:n,className:a})=>t(o,{fetcher:n,modelClass:"User",className:Ke("max-w-36 h-10",a),placeholder:"Creator user",emptyMessage:"No user found",labelName:"username",value:e,onChange:r}),nt=6048e5,ot=Symbol.for("constructDateFrom");function at(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ot in e?e[ot](t):e instanceof Date?new e.constructor(t):new Date(t)}function it(e,t){return at(t||e,e)}let st={};function lt(){return st}function ct(e,t){const r=lt(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=it(e,t?.in),a=o.getDay(),i=(a<n?7:0)+a-n;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function dt(e,t){return ct(e,{...t,weekStartsOn:1})}function ut(e,t){const r=it(e,t?.in),n=r.getFullYear(),o=at(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=dt(o),i=at(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=dt(i);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function mt(e){const t=it(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ht(e,t){const r=it(e,t?.in);return r.setHours(0,0,0,0),r}function pt(e,t,r){const[n,o]=function(e,...t){const r=at.bind(null,t.find(e=>"object"==typeof e));return t.map(r)}(0,e,t),a=ht(n),i=ht(o),s=+a-mt(a),l=+i-mt(i);return Math.round((s-l)/864e5)}function ft(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+it(e)));var t}const gt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function bt(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const wt={date:bt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:bt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:bt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},yt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function xt(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function vt(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(i)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var kt;const Nt={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=gt[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:wt,formatRelative:(e,t,r,n)=>yt[e],localize:{ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:xt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:xt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:xt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:xt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:xt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(kt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(kt.matchPattern);if(!r)return null;const n=r[0],o=e.match(kt.parsePattern);if(!o)return null;let a=kt.valueCallback?kt.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(n.length)}}),era:vt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:vt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:vt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:vt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:vt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ct(e,t){const r=it(e,t?.in),n=pt(r,function(e,t){const r=it(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return n+1}function Mt(e,t){const r=it(e,t?.in),n=+dt(r)-+function(e,t){const r=ut(e,t),n=at(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),dt(n)}(r);return Math.round(n/nt)+1}function St(e,t){const r=it(e,t?.in),n=r.getFullYear(),o=lt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=at(t?.in||e,0);i.setFullYear(n+1,0,a),i.setHours(0,0,0,0);const s=ct(i,t),l=at(t?.in||e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=ct(l,t);return+r>=+s?n+1:+r>=+c?n:n-1}function zt(e,t){const r=it(e,t?.in),n=+ct(r,t)-+function(e,t){const r=lt(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=St(e,t),a=at(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),ct(a,t)}(r,t);return Math.round(n/nt)+1}function jt(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Pt={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return jt("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):jt(r+1,2)},d:(e,t)=>jt(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>jt(e.getHours()%12||12,t.length),H:(e,t)=>jt(e.getHours(),t.length),m:(e,t)=>jt(e.getMinutes(),t.length),s:(e,t)=>jt(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return jt(Math.trunc(n*Math.pow(10,r-3)),t.length)}},_t="midnight",Dt="noon",Lt="morning",Wt="afternoon",Ot="evening",Tt="night",qt={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return Pt.y(e,t)},Y:function(e,t,r,n){const o=St(e,n),a=o>0?o:1-o;if("YY"===t){return jt(a%100,2)}return"Yo"===t?r.ordinalNumber(a,{unit:"year"}):jt(a,t.length)},R:function(e,t){return jt(ut(e),t.length)},u:function(e,t){return jt(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return jt(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return jt(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Pt.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return jt(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=zt(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):jt(o,t.length)},I:function(e,t,r){const n=Mt(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):jt(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Pt.d(e,t)},D:function(e,t,r){const n=Ct(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):jt(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return jt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return jt(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return jt(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(o=12===n?Dt:0===n?_t:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(o=n>=17?Ot:n>=12?Wt:n>=4?Lt:Tt,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return Pt.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Pt.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):jt(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):jt(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Pt.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Pt.s(e,t)},S:function(e,t){return Pt.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Ft(n);case"XXXX":case"XX":return Ht(n);default:return Ht(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Ft(n);case"xxxx":case"xx":return Ht(n);default:return Ht(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Et(n,":");default:return"GMT"+Ht(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Et(n,":");default:return"GMT"+Ht(n,":")}},t:function(e,t,r){return jt(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return jt(+e,t.length)}};function Et(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return 0===a?r+String(o):r+String(o)+t+jt(a,2)}function Ft(e,t){if(e%60==0){return(e>0?"-":"+")+jt(Math.abs(e)/60,2)}return Ht(e,t)}function Ht(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+jt(Math.trunc(n/60),2)+t+jt(n%60,2)}const At=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Gt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},It={p:Gt,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return At(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",At(n,t)).replace("{{time}}",Gt(o,t))}},Yt=/^D+$/,$t=/^Y+$/,Bt=["D","DD","YY","YYYY"];const Vt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Rt=/^'([^]*?)'?$/,Ut=/''/g,Xt=/[a-zA-Z]/;function Jt(e,t,r){const n=lt(),o=n.locale??Nt,a=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=it(e,r?.in);if(!ft(s))throw new RangeError("Invalid time value");let l=t.match(Qt).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,It[t])(e,o.formatLong)}return e}).join("").match(Vt).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Kt(e)};if(qt[t])return{isToken:!0,value:e};if(t.match(Xt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(r=>{if(!r.isToken)return r.value;const n=r.value;(function(e){return $t.test(e)}(n)||function(e){return Yt.test(e)}(n))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),Bt.includes(e))throw new RangeError(n)}(n,t,String(e));return(0,qt[n[0]])(s,n,o.localize,c)}).join("")}function Kt(e){const t=e.match(Rt);return t?t[1].replace(Ut,"'"):e}const Zt=()=>{const[e,n]=a(),[o,i]=a(),[s,l]=a(null),c=[{pk:1,description:"Maintenance Task A",created_at:"2023-10-01",status:"Open",user_id:1,username:"admin"},{pk:2,description:"Inspection B",created_at:"2023-10-05",status:"Closed",user_id:2,username:"jdoe"},{pk:3,description:"Repair C",created_at:"2023-10-10",status:"In Progress",user_id:1,username:"admin"},{pk:4,description:"Log Analysis",created_at:"2023-10-15",status:"Open",user_id:3,username:"guest"},{pk:5,description:"System Update",created_at:"2023-11-01",status:"Pending",user_id:2,username:"jdoe"}],h=c.filter(t=>{let r=!0;const n=new Date(t.created_at);return e&&n<e&&(r=!1),o&&n>o&&(r=!1),s&&t.user_id!==Number(s)&&(r=!1),r});return r("div",{className:"flex flex-col gap-6 p-4 border rounded-lg bg-white",children:[t("h2",{className:"text-xl font-bold",children:"Combined Filter & Table Demo"}),r("div",{className:"flex flex-wrap gap-4 items-end",children:[t(tt,{startDate:e,endDate:o,onStartDateChange:n,onEndDateChange:i}),t(rt,{fetcher:async({search:e,modelClass:t,limit:r,offset:n})=>{await new Promise(e=>setTimeout(e,300));const o=[{pk:1,username:"admin"},{pk:2,username:"jdoe"},{pk:3,username:"guest"}];return e?o.filter(t=>t.username.toLowerCase().includes(e.toLowerCase())):o},value:s,onChange:e=>l(e)}),t(m,{variant:"outline",className:"h-full",onClick:()=>{n(void 0),i(void 0),l(null)},children:"Clear Filters"})]}),t("div",{className:"border rounded-md overflow-hidden",children:r(d.Root,{children:[t(d.Header,{children:r(d.Row,{children:[t(d.Head,{children:"ID"}),t(d.Head,{children:"Description"}),t(d.Head,{children:"Created At"}),t(d.Head,{children:"Created By"}),t(d.Head,{children:"Status"})]})}),t(d.Body,{children:h.length>0?h.map(e=>r(d.Row,{children:[t(d.Cell,{children:e.pk}),t(d.Cell,{children:e.description}),t(d.Cell,{children:Jt(new Date(e.created_at),"PPP")}),t(d.Cell,{children:e.username}),t(d.Cell,{children:e.status})]},e.pk)):t(d.Row,{children:t(d.Cell,{colSpan:5,children:t(u,{title:"No results found",description:"No data was found for the selected filters."})})})})]})}),r("div",{className:"text-xs text-gray-400",children:["Showing ",h.length," of ",c.length," records."]})]})};function er({data:e}){return t(h,{direction:"row",gap:2,className:"flex-wrap",children:Object.entries(e).map(([e,n])=>t(h,{direction:"row",gap:1,className:"bg-muted px-3 py-1.5 rounded-md text-sm",children:r("span",{className:"font-medium text-foreground",children:[e," : ",String(n)]})},e))})}const tr=({href:e,className:r,children:n})=>t("a",{href:e,className:r,children:n});function rr({onLogin:e,onSuccess:n,onError:o,sessionExpired:i=!1,sessionExpiredAlert:s,forgotPasswordHref:l="/",forgotPasswordLabel:c="Esqueci a senha",usernameLabel:d="Usuario",passwordLabel:u="Senha",submitLabel:p="Entrar",loginErrorMessage:k="Login error!",LinkComponent:N=tr,className:C}){const[M,S]=a(""),[z,j]=a(""),[P,_]=a(!1);return r(h,{gap:4,children:[i&&s?.icon&&t(f,{variant:"destructive",icon:s.icon,title:s.title??"Sessão expirada",description:s.description??"Faça login novamente para continuar"}),r(g,{className:C??"w-[400px] h-[457px] rounded-[30px] shadow-lg bg-card text-card-foreground border-border",children:[t(b,{className:"items-center"}),t(w,{children:t("form",{onSubmit:e=>e.preventDefault(),children:r("div",{className:"grid w-full items-center gap-4 mt-6",children:[r(h,{gap:4,children:[t(v,{className:"text-foreground",htmlFor:"username",children:d}),t(x,{id:"username",type:"text",placeholder:"Seu nome de usuário",value:M,onChange:e=>S(e.target.value)})]}),r(h,{gap:4,children:[t(v,{className:"text-foreground",htmlFor:"password",children:u}),t(x,{id:"password",type:"password",placeholder:"Sua senha de acesso",value:z,onChange:e=>j(e.target.value)})]})]})})}),t(y,{className:"justify-center items-center",children:r(h,{gap:4,className:"justify-center items-center mt-10",children:[t(m,{className:"w-full",onClick:async()=>{_(!0);try{const{error:t}=await e({username:M,password:z});if(t)return void o?.(k,String(t));n?.()}finally{_(!1)}},disabled:P,children:p}),t(N,{href:l,className:"text-muted-foreground hover:text-foreground text-xs",children:c})]})})]})]})}const nr=({href:e,className:r,children:n})=>t("a",{href:e,className:r,children:n});function or({onLoginSSO:e,onRedirect:n,onError:o,sessionExpired:i=!1,sessionExpiredAlert:s,forgotPasswordHref:l="/",forgotPasswordLabel:c="Esqueci a senha",emailLabel:d="Email",submitLabel:u="Entrar com SSO",unauthorizedMessage:p="Usuario nao autorizado",genericErrorMessage:k="Erro ao fazer login",LinkComponent:N=nr,className:C}){const[M,S]=a(""),[z,j]=a(!1);return r(h,{gap:4,children:[i&&s?.icon&&t(f,{variant:"destructive",icon:s.icon,title:s.title??"Sessão expirada",description:s.description??"Faça login novamente para continuar"}),r(g,{className:C??"w-[400px] h-[457px] rounded-[30px] shadow-lg bg-card text-card-foreground border-border",children:[t(b,{className:"items-center mt-4"}),t(w,{children:t("form",{onSubmit:async t=>{t.preventDefault(),j(!0);try{const{redirect_url:t,error:r}=await e(M);if(t)return void n?.(t);const a=r?.includes("401")?p:k;o?.(a,String(r))}finally{j(!1)}},children:r("div",{className:"grid w-full items-center gap-4 mt-6",children:[r(h,{gap:4,children:[t(v,{className:"text-foreground",htmlFor:"email",children:d}),t(x,{id:"email",type:"email",placeholder:"Seu email de acesso",value:M,onChange:e=>S(e.target.value),pattern:"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$",required:!0})]}),t(m,{className:"w-full",type:"submit",disabled:z,children:u})]})})}),t(y,{className:"flex-col justify-center items-center",children:t(h,{gap:4,className:"justify-start items-center mb-7",children:t(N,{href:l,className:"text-muted-foreground hover:text-foreground text-xs",children:c})})})]})]})}const ar=({href:e,className:r,children:n})=>t("a",{href:e,className:r,children:n});function ir({redirectHref:e,redirectDelayMs:n=3e3,onRedirect:o,title:a="Autenticado com sucesso! Redirecionado automaticamente",fallbackLinkLabel:s="Caso nao seja redirecionado automaticamente, clique aqui",LinkComponent:l=ar,className:c}){return i(()=>{const t=setTimeout(()=>{o?.(e)},n);return()=>clearTimeout(t)},[e,n,o]),t("div",{className:"flex justify-center items-center h-screen",children:r(g,{className:c??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[t(b,{className:"items-center mt-4"}),r(w,{className:"flex flex-col gap-4",children:[t(k,{}),t("h4",{className:"text-center",children:a}),t(l,{href:e,className:"w-full text-sm underline text-accent text-center",children:s})]})]})})}
2
2
  /**
3
3
  * @license lucide-react v0.562.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
- */const A=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},G=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),I=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
7
+ */const sr=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},lr=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),cr=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
8
8
  /**
9
9
  * @license lucide-react v0.562.0 - ISC
10
10
  *
11
11
  * This source code is licensed under the ISC license.
12
12
  * See the LICENSE file in the root directory of this source tree.
13
13
  */
14
- var Y={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
14
+ var dr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
15
15
  /**
16
16
  * @license lucide-react v0.562.0 - ISC
17
17
  *
18
18
  * This source code is licensed under the ISC license.
19
19
  * See the LICENSE file in the root directory of this source tree.
20
- */const $=e(({color:e="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:a="",children:i,iconNode:s,...l},c)=>t("svg",{ref:c,...Y,width:r,height:r,stroke:e,strokeWidth:o?24*Number(n)/Number(r):n,className:G("lucide",a),...!i&&!I(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,r])=>t(e,r)),...Array.isArray(i)?i:[i]])),B=(r,n)=>{const o=e(({className:e,...o},a)=>{return t($,{ref:a,iconNode:n,className:G(`lucide-${i=A(r),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${r}`,e),...o});var i});return o.displayName=A(r),o},V=B("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Q=B("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),R=B("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),U=B("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),X=B("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]),J=B("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),K=B("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),Z=B("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),ee=B("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),te=B("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),re=6048e5,ne=Symbol.for("constructDateFrom");
20
+ */const ur=s(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},c)=>l("svg",{ref:c,...dr,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:lr("lucide",o),...!a&&!cr(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,t])=>l(e,t)),...Array.isArray(a)?a:[a]])),mr=(e,t)=>{const r=s(({className:r,...n},o)=>{return l(ur,{ref:o,iconNode:t,className:lr(`lucide-${a=sr(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...n});var a});return r.displayName=sr(e),r},hr=mr("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),pr=mr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),fr=mr("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),gr=mr("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]),br=mr("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),wr=mr("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),yr=mr("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),xr=mr("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),vr=mr("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),kr=({href:e,className:r,children:n})=>t("a",{href:e,className:r,children:n});
21
21
  /**
22
22
  * @license lucide-react v0.562.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */function oe(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ne in e?e[ne](t):e instanceof Date?new e.constructor(t):new Date(t)}function ae(e,t){return oe(t||e,e)}let ie={};function se(){return ie}function le(e,t){const r=se(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=ae(e,t?.in),a=o.getDay(),i=(a<n?7:0)+a-n;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function ce(e,t){return le(e,{...t,weekStartsOn:1})}function de(e,t){const r=ae(e,t?.in),n=r.getFullYear(),o=oe(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=ce(o),i=oe(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=ce(i);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function ue(e){const t=ae(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function me(e,t){const r=ae(e,t?.in);return r.setHours(0,0,0,0),r}function he(e,t,r){const[n,o]=function(e,...t){const r=oe.bind(null,t.find(e=>"object"==typeof e));return t.map(r)}(0,e,t),a=me(n),i=me(o),s=+a-ue(a),l=+i-ue(i);return Math.round((s-l)/864e5)}function pe(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+ae(e)));var t}const fe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ge(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const be={date:ge({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ge({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ge({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},we={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ye(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function xe(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(i)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var ve;const ke={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=fe[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:be,formatRelative:(e,t,r,n)=>we[e],localize:{ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:ye({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ye({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ye({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ye({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ye({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(ve={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(ve.matchPattern);if(!r)return null;const n=r[0],o=e.match(ve.parsePattern);if(!o)return null;let a=ve.valueCallback?ve.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(n.length)}}),era:xe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:xe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:xe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:xe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:xe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ne(e,t){const r=ae(e,t?.in),n=he(r,function(e,t){const r=ae(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return n+1}function Ce(e,t){const r=ae(e,t?.in),n=+ce(r)-+function(e,t){const r=de(e,t),n=oe(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),ce(n)}(r);return Math.round(n/re)+1}function Me(e,t){const r=ae(e,t?.in),n=r.getFullYear(),o=se(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=oe(t?.in||e,0);i.setFullYear(n+1,0,a),i.setHours(0,0,0,0);const s=le(i,t),l=oe(t?.in||e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=le(l,t);return+r>=+s?n+1:+r>=+c?n:n-1}function Se(e,t){const r=ae(e,t?.in),n=+le(r,t)-+function(e,t){const r=se(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Me(e,t),a=oe(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),le(a,t)}(r,t);return Math.round(n/re)+1}function ze(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const je={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ze("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):ze(r+1,2)},d:(e,t)=>ze(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>ze(e.getHours()%12||12,t.length),H:(e,t)=>ze(e.getHours(),t.length),m:(e,t)=>ze(e.getMinutes(),t.length),s:(e,t)=>ze(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return ze(Math.trunc(n*Math.pow(10,r-3)),t.length)}},Pe="midnight",_e="noon",De="morning",Le="afternoon",We="evening",Oe="night",qe={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return je.y(e,t)},Y:function(e,t,r,n){const o=Me(e,n),a=o>0?o:1-o;if("YY"===t){return ze(a%100,2)}return"Yo"===t?r.ordinalNumber(a,{unit:"year"}):ze(a,t.length)},R:function(e,t){return ze(de(e),t.length)},u:function(e,t){return ze(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ze(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ze(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return je.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ze(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=Se(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):ze(o,t.length)},I:function(e,t,r){const n=Ce(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):ze(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):je.d(e,t)},D:function(e,t,r){const n=Ne(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):ze(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ze(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ze(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return ze(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(o=12===n?_e:0===n?Pe:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(o=n>=17?We:n>=12?Le:n>=4?De:Oe,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return je.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):je.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):ze(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):ze(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):je.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):je.s(e,t)},S:function(e,t){return je.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Te(n);case"XXXX":case"XX":return Fe(n);default:return Fe(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Te(n);case"xxxx":case"xx":return Fe(n);default:return Fe(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ee(n,":");default:return"GMT"+Fe(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ee(n,":");default:return"GMT"+Fe(n,":")}},t:function(e,t,r){return ze(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return ze(+e,t.length)}};function Ee(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return 0===a?r+String(o):r+String(o)+t+ze(a,2)}function Te(e,t){if(e%60==0){return(e>0?"-":"+")+ze(Math.abs(e)/60,2)}return Fe(e,t)}function Fe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+ze(Math.trunc(n/60),2)+t+ze(n%60,2)}const He=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Ae=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ge={p:Ae,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return He(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",He(n,t)).replace("{{time}}",Ae(o,t))}},Ie=/^D+$/,Ye=/^Y+$/,$e=["D","DD","YY","YYYY"];const Be=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qe=/^'([^]*?)'?$/,Re=/''/g,Ue=/[a-zA-Z]/;function Xe(e,t,r){const n=se(),o=n.locale??ke,a=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=ae(e,r?.in);if(!pe(s))throw new RangeError("Invalid time value");let l=t.match(Ve).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Ge[t])(e,o.formatLong)}return e}).join("").match(Be).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Je(e)};if(qe[t])return{isToken:!0,value:e};if(t.match(Ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(r=>{if(!r.isToken)return r.value;const n=r.value;(function(e){return Ye.test(e)}(n)||function(e){return Ie.test(e)}(n))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),$e.includes(e))throw new RangeError(n)}(n,t,String(e));return(0,qe[n[0]])(s,n,o.localize,c)}).join("")}function Je(e){const t=e.match(Qe);return t?t[1].replace(Re,"'"):e}const Ke="flex h-10 w-full items-center rounded-md border border-input bg-background px-3 text-sm font-normal shadow-none hover:bg-[hsl(var(--hover-ring))] hover:border-[hsl(var(--focus-ring))] focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",Ze="text-muted-foreground",et="size-4 shrink-0 text-muted-foreground opacity-50";function tt(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=tt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const rt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),nt="-",ot=[],at=e=>{const t=lt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return st(e);const r=e.split(nt),n=""===r[0]&&r.length>1?1:0;return it(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||ot}return r[e]||ot}}},it=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=it(e,t+1,o);if(r)return r}const a=r.validators;if(null===a)return;const i=0===t?e.join(nt):e.slice(t).join(nt),s=a.length;for(let e=0;e<s;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},st=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),lt=e=>{const{theme:t,classGroups:r}=e;return ct(r,t)},ct=(e,t)=>{const r=rt();for(const n in e){const o=e[n];dt(o,r,n,t)}return r},dt=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];ut(o,t,r,n)}},ut=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?pt(e,t,r,n):ht(e,t,r,n):mt(e,t,r)},mt=(e,t,r)=>{(""===e?t:ft(t,e)).classGroupId=r},ht=(e,t,r,n)=>{gt(e)?dt(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},pt=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];dt(i,ft(t,a),r,n)}},ft=(e,t)=>{let r=e;const n=t.split(nt),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=rt(),r.nextPart.set(t,o)),r=o}return r},gt=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,a)=>{r[o]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},wt=[],yt=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),xt=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,a=0;const i=e.length;for(let s=0;s<i;s++){const i=e[s];if(0===n&&0===o){if(":"===i){t.push(e.slice(a,s)),a=s+1;continue}if("/"===i){r=s;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return yt(t,c,l,r&&r>a?r-a:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):yt(wt,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},vt=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},kt=/\s+/,Nt=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Nt(e[n]))&&(r&&(r+=" "),r+=t);return r},Ct=(e,...t)=>{let r,n,o,a;const i=e=>{const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(kt);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:d,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:h}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!h,f=n(p?m.substring(0,h):m);if(!f){if(!p){l=t+(l.length>0?" "+l:l);continue}if(f=n(m),!f){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=0===d.length?"":1===d.length?d[0]:a(d).join(":"),b=u?g+"!":g,w=b+f;if(i.indexOf(w)>-1)continue;i.push(w);const y=o(f,p);for(let e=0;e<y.length;++e){const t=y[e];i.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:bt(e.cacheSize),parseClassName:xt(e),sortModifiers:vt(e),...at(e)}))(l),n=r.cache.get,o=r.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=Nt(t))&&(o&&(o+=" "),o+=r);return o})(...e))},Mt=[],St=e=>{const t=t=>t[e]||Mt;return t.isThemeGetter=!0,t},zt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Pt=/^\d+\/\d+$/,_t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Wt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ot=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qt=e=>Pt.test(e),Et=e=>!!e&&!Number.isNaN(Number(e)),Tt=e=>!!e&&Number.isInteger(Number(e)),Ft=e=>e.endsWith("%")&&Et(e.slice(0,-1)),Ht=e=>_t.test(e),At=()=>!0,Gt=e=>Dt.test(e)&&!Lt.test(e),It=()=>!1,Yt=e=>Wt.test(e),$t=e=>Ot.test(e),Bt=e=>!Qt(e)&&!Zt(e),Vt=e=>ir(e,dr,It),Qt=e=>zt.test(e),Rt=e=>ir(e,ur,Gt),Ut=e=>ir(e,mr,Et),Xt=e=>ir(e,lr,It),Jt=e=>ir(e,cr,$t),Kt=e=>ir(e,pr,Yt),Zt=e=>jt.test(e),er=e=>sr(e,ur),tr=e=>sr(e,hr),rr=e=>sr(e,lr),nr=e=>sr(e,dr),or=e=>sr(e,cr),ar=e=>sr(e,pr,!0),ir=(e,t,r)=>{const n=zt.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},sr=(e,t,r=!1)=>{const n=jt.exec(e);return!!n&&(n[1]?t(n[1]):r)},lr=e=>"position"===e||"percentage"===e,cr=e=>"image"===e||"url"===e,dr=e=>"length"===e||"size"===e||"bg-size"===e,ur=e=>"length"===e,mr=e=>"number"===e,hr=e=>"family-name"===e,pr=e=>"shadow"===e,fr=Ct(()=>{const e=St("color"),t=St("font"),r=St("text"),n=St("font-weight"),o=St("tracking"),a=St("leading"),i=St("breakpoint"),s=St("container"),l=St("spacing"),c=St("radius"),d=St("shadow"),u=St("inset-shadow"),m=St("text-shadow"),h=St("drop-shadow"),p=St("blur"),f=St("perspective"),g=St("aspect"),b=St("ease"),w=St("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Zt,Qt],x=()=>[Zt,Qt,l],v=()=>[qt,"full","auto",...x()],k=()=>[Tt,"none","subgrid",Zt,Qt],N=()=>["auto",{span:["full",Tt,Zt,Qt]},Tt,Zt,Qt],C=()=>[Tt,"auto",Zt,Qt],M=()=>["auto","min","max","fr",Zt,Qt],S=()=>["auto",...x()],z=()=>[qt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],j=()=>[e,Zt,Qt],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",rr,Xt,{position:[Zt,Qt]}],_=()=>["auto","cover","contain",nr,Vt,{size:[Zt,Qt]}],D=()=>[Ft,er,Rt],L=()=>["","none","full",c,Zt,Qt],W=()=>["",Et,er,Rt],O=()=>[Et,Ft,rr,Xt],q=()=>["","none",p,Zt,Qt],E=()=>["none",Et,Zt,Qt],T=()=>["none",Et,Zt,Qt],F=()=>[Et,Zt,Qt],H=()=>[qt,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ht],breakpoint:[Ht],color:[At],container:[Ht],"drop-shadow":[Ht],ease:["in","out","in-out"],font:[Bt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ht],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ht],shadow:[Ht],spacing:["px",Et],text:[Ht],"text-shadow":[Ht],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qt,Qt,Zt,g]}],container:["container"],columns:[{columns:[Et,Qt,Zt,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{start:v()}],end:[{end:v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:["visible","invisible","collapse"],z:[{z:[Tt,"auto",Zt,Qt]}],basis:[{basis:[qt,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Et,qt,"auto","initial","none",Qt]}],grow:[{grow:["",Et,Zt,Qt]}],shrink:[{shrink:["",Et,Zt,Qt]}],order:[{order:[Tt,"first","last","none",Zt,Qt]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[s,"screen",...z()]}],"min-w":[{"min-w":[s,"screen","none",...z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",r,er,Rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Zt,Ut]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ft,Qt]}],"font-family":[{font:[tr,Qt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Zt,Qt]}],"line-clamp":[{"line-clamp":[Et,"none",Zt,Ut]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":["none",Zt,Qt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Zt,Qt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Et,"from-font","auto",Zt,Rt]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Et,"auto",Zt,Qt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Zt,Qt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Zt,Qt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Tt,Zt,Qt],radial:["",Zt,Qt],conic:[Tt,Zt,Qt]},or,Jt]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Et,Zt,Qt]}],"outline-w":[{outline:["",Et,er,Rt]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",d,ar,Kt]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",u,ar,Kt]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Et,Rt]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",m,ar,Kt]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Et,Zt,Qt]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Et]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Zt,Qt]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Et]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Zt,Qt]}],filter:[{filter:["","none",Zt,Qt]}],blur:[{blur:q()}],brightness:[{brightness:[Et,Zt,Qt]}],contrast:[{contrast:[Et,Zt,Qt]}],"drop-shadow":[{"drop-shadow":["","none",h,ar,Kt]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Et,Zt,Qt]}],"hue-rotate":[{"hue-rotate":[Et,Zt,Qt]}],invert:[{invert:["",Et,Zt,Qt]}],saturate:[{saturate:[Et,Zt,Qt]}],sepia:[{sepia:["",Et,Zt,Qt]}],"backdrop-filter":[{"backdrop-filter":["","none",Zt,Qt]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[Et,Zt,Qt]}],"backdrop-contrast":[{"backdrop-contrast":[Et,Zt,Qt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Et,Zt,Qt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Et,Zt,Qt]}],"backdrop-invert":[{"backdrop-invert":["",Et,Zt,Qt]}],"backdrop-opacity":[{"backdrop-opacity":[Et,Zt,Qt]}],"backdrop-saturate":[{"backdrop-saturate":[Et,Zt,Qt]}],"backdrop-sepia":[{"backdrop-sepia":["",Et,Zt,Qt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Zt,Qt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Et,"initial",Zt,Qt]}],ease:[{ease:["linear","initial",b,Zt,Qt]}],delay:[{delay:[Et,Zt,Qt]}],animate:[{animate:["none",w,Zt,Qt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Zt,Qt]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:E()}],"rotate-x":[{"rotate-x":E()}],"rotate-y":[{"rotate-y":E()}],"rotate-z":[{"rotate-z":E()}],scale:[{scale:T()}],"scale-x":[{"scale-x":T()}],"scale-y":[{"scale-y":T()}],"scale-z":[{"scale-z":T()}],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[Zt,Qt,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Zt,Qt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Zt,Qt]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Et,er,Rt,Ut]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function gr(...e){return fr(function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=tt(e))&&(n&&(n+=" "),n+=t);return n}(e))}const br=({startDate:e,endDate:t,onStartDateChange:r,onEndDateChange:n,startLabel:o="Start date",endLabel:u="End date",className:m})=>c("div",{className:gr("flex flex-col gap-2",m),children:d("div",{className:"flex flex-row gap-2 items-center",children:[d(i,{children:[c(s,{asChild:!0,children:d("button",{type:"button",className:gr(Ke,"justify-start text-left w-[240px]",!e&&Ze),children:[c(Q,{className:gr("mr-2",et)}),e?Xe(e,"PPP"):o]})}),c(l,{className:"w-fit p-0",align:"start",children:c(a,{mode:"single",selected:e,onSelect:r,initialFocus:!0})})]}),d(i,{children:[c(s,{asChild:!0,children:d("button",{type:"button",className:gr(Ke,"justify-start text-left w-[240px]",!t&&Ze),children:[c(Q,{className:gr("mr-2",et)}),t?Xe(t,"PPP"):u]})}),c(l,{className:"w-fit p-0",align:"start",children:c(a,{mode:"single",selected:t,onSelect:n,initialFocus:!0})})]})]})}),wr=({value:e,onChange:t,fetcher:r,className:n})=>c(m,{fetcher:r,modelClass:"User",className:gr("max-w-36 h-10",n),placeholder:"Creator user",emptyMessage:"No user found",labelName:"username",value:e,onChange:t}),yr=()=>{const[e,t]=r(),[n,o]=r(),[a,i]=r(null),s=[{pk:1,description:"Maintenance Task A",created_at:"2023-10-01",status:"Open",user_id:1,username:"admin"},{pk:2,description:"Inspection B",created_at:"2023-10-05",status:"Closed",user_id:2,username:"jdoe"},{pk:3,description:"Repair C",created_at:"2023-10-10",status:"In Progress",user_id:1,username:"admin"},{pk:4,description:"Log Analysis",created_at:"2023-10-15",status:"Open",user_id:3,username:"guest"},{pk:5,description:"System Update",created_at:"2023-11-01",status:"Pending",user_id:2,username:"jdoe"}],l=s.filter(t=>{let r=!0;const o=new Date(t.created_at);return e&&o<e&&(r=!1),n&&o>n&&(r=!1),a&&t.user_id!==Number(a)&&(r=!1),r});return d("div",{className:"flex flex-col gap-6 p-4 border rounded-lg bg-white",children:[c("h2",{className:"text-xl font-bold",children:"Combined Filter & Table Demo"}),d("div",{className:"flex flex-wrap gap-4 items-end",children:[c(br,{startDate:e,endDate:n,onStartDateChange:t,onEndDateChange:o}),c(wr,{fetcher:async({search:e,modelClass:t,limit:r,offset:n})=>{await new Promise(e=>setTimeout(e,300));const o=[{pk:1,username:"admin"},{pk:2,username:"jdoe"},{pk:3,username:"guest"}];return e?o.filter(t=>t.username.toLowerCase().includes(e.toLowerCase())):o},value:a,onChange:e=>i(e)}),c(f,{variant:"outline",className:"h-full",onClick:()=>{t(void 0),o(void 0),i(null)},children:"Clear Filters"})]}),c("div",{className:"border rounded-md overflow-hidden",children:d(h.Root,{children:[c(h.Header,{children:d(h.Row,{children:[c(h.Head,{children:"ID"}),c(h.Head,{children:"Description"}),c(h.Head,{children:"Created At"}),c(h.Head,{children:"Created By"}),c(h.Head,{children:"Status"})]})}),c(h.Body,{children:l.length>0?l.map(e=>d(h.Row,{children:[c(h.Cell,{children:e.pk}),c(h.Cell,{children:e.description}),c(h.Cell,{children:Xe(new Date(e.created_at),"PPP")}),c(h.Cell,{children:e.username}),c(h.Cell,{children:e.status})]},e.pk)):c(h.Row,{children:c(h.Cell,{colSpan:5,children:c(p,{title:"No results found",description:"No data was found for the selected filters."})})})})]})}),d("div",{className:"text-xs text-gray-400",children:["Showing ",l.length," of ",s.length," records."]})]})};function xr({data:e}){return c(g,{direction:"row",gap:2,className:"flex-wrap",children:Object.entries(e).map(([e,t])=>c(g,{direction:"row",gap:1,className:"bg-muted px-3 py-1.5 rounded-md text-sm",children:d("span",{className:"font-medium text-foreground",children:[e," : ",String(t)]})},e))})}const vr=({href:e,className:t,children:r})=>c("a",{href:e,className:t,children:r});function kr({onLogin:e,onSuccess:t,onError:n,sessionExpired:o=!1,sessionExpiredAlert:a,forgotPasswordHref:i="/",forgotPasswordLabel:s="Esqueci a senha",usernameLabel:l="Usuario",passwordLabel:u="Senha",submitLabel:m="Entrar",loginErrorMessage:h="Login error!",LinkComponent:p=vr,className:b}){const[M,S]=r(""),[z,j]=r(""),[P,_]=r(!1);return d(g,{gap:4,children:[o&&a?.icon&&c(w,{variant:"destructive",icon:a.icon,title:a.title??"Sessão expirada",description:a.description??"Faça login novamente para continuar"}),d(y,{className:b??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[c(x,{className:"items-center"}),c(v,{children:c("form",{onSubmit:e=>e.preventDefault(),children:d("div",{className:"grid w-full items-center gap-4 mt-6",children:[d(g,{gap:4,children:[c(C,{className:"text-primary",htmlFor:"username",children:l}),c(N,{id:"username",type:"text",placeholder:"Seu nome de usuário",value:M,onChange:e=>S(e.target.value)})]}),d(g,{gap:4,children:[c(C,{className:"text-primary",htmlFor:"password",children:u}),c(N,{id:"password",type:"password",placeholder:"Sua senha de acesso",value:z,onChange:e=>j(e.target.value)})]})]})})}),c(k,{className:"justify-center items-center",children:d(g,{gap:4,className:"justify-center items-center mt-10",children:[c(f,{className:"w-full",onClick:async()=>{_(!0);try{const{error:r}=await e({username:M,password:z});if(r)return void n?.(h,String(r));t?.()}finally{_(!1)}},disabled:P,children:m}),c(p,{href:i,className:"text-primary text-xs",children:s})]})})]})]})}const Nr=({href:e,className:t,children:r})=>c("a",{href:e,className:t,children:r});function Cr({onLoginSSO:e,onRedirect:t,onError:n,sessionExpired:o=!1,sessionExpiredAlert:a,forgotPasswordHref:i="/",forgotPasswordLabel:s="Esqueci a senha",emailLabel:l="Email",submitLabel:u="Entrar com SSO",unauthorizedMessage:m="Usuario nao autorizado",genericErrorMessage:h="Erro ao fazer login",LinkComponent:p=Nr,className:b}){const[M,S]=r(""),[z,j]=r(!1);return d(g,{gap:4,children:[o&&a?.icon&&c(w,{variant:"destructive",icon:a.icon,title:a.title??"Sessão expirada",description:a.description??"Faça login novamente para continuar"}),d(y,{className:b??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[c(x,{className:"items-center mt-4"}),c(v,{children:c("form",{onSubmit:async r=>{r.preventDefault(),j(!0);try{const{redirect_url:r,error:o}=await e(M);if(r)return void t?.(r);const a=o?.includes("401")?m:h;n?.(a,String(o))}finally{j(!1)}},children:d("div",{className:"grid w-full items-center gap-4 mt-6",children:[d(g,{gap:4,children:[c(C,{className:"text-primary",htmlFor:"email",children:l}),c(N,{id:"email",type:"email",placeholder:"Seu email de acesso",value:M,onChange:e=>S(e.target.value),pattern:"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$",required:!0})]}),c(f,{className:"w-full",type:"submit",disabled:z,children:u})]})})}),c(k,{className:"flex-col justify-center items-center",children:c(g,{gap:4,className:"justify-start items-center mb-7",children:c(p,{href:i,className:"text-primary text-xs",children:s})})})]})]})}const Mr=({href:e,className:t,children:r})=>c("a",{href:e,className:t,children:r});function Sr({redirectHref:e,redirectDelayMs:t=3e3,onRedirect:r,title:o="Autenticado com sucesso! Redirecionado automaticamente",fallbackLinkLabel:a="Caso nao seja redirecionado automaticamente, clique aqui",LinkComponent:i=Mr,className:s}){return n(()=>{const n=setTimeout(()=>{r?.(e)},t);return()=>clearTimeout(n)},[e,t,r]),c("div",{className:"flex justify-center items-center h-screen",children:d(y,{className:s??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[c(x,{className:"items-center mt-4"}),d(v,{className:"flex flex-col gap-4",children:[c(M,{}),c("h4",{className:"text-center",children:o}),c(i,{href:e,className:"w-full text-sm underline text-accent text-center",children:a})]})]})})}const zr=({href:e,className:t,children:r})=>c("a",{href:e,className:t,children:r});function jr({error:e,loginHref:t,title:n="Erro ao autenticar!",description:o="Verifique suas informações de SSO ou converse com o administrador do sistema.",fallbackLinkLabel:a="Caso não seja redirecionado automaticamente, clique aqui",errorDetailsLabel:i="Detalhes para os Nerds",copyLabel:s="Copiar",copiedLabel:l="Copiado!",LinkComponent:m=zr,className:h}){const[p,f]=r(!1),b="string"==typeof e?e:JSON.stringify(e,null,2);return c(g,{className:"justify-center items-center h-screen",children:d(y,{className:h??"w-[400px] h-[457px] rounded-[30px] shadow-lg bg-red-50",children:[c(x,{className:"items-center"}),d(v,{className:"flex flex-col items-center gap-2",children:[c(U,{size:48,className:"text-red-700"}),c("h4",{className:"text-center",children:n}),c("p",{className:"text-sm text-center",children:o}),c(m,{href:t,className:"w-full text-sm underline text-accent text-center",children:a}),c(S,{type:"single",collapsible:!0,className:"w-full",children:d(z,{value:"error-details",children:[c(j,{children:i}),d(P,{className:"max-w-80",children:[c("div",{className:"flex justify-end mb-1",children:c("button",{type:"button",onClick:async()=>{if(e)try{await navigator.clipboard.writeText("string"==typeof e?e:JSON.stringify(e,null,2)),f(!0),setTimeout(()=>f(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},className:"text-xs text-accent hover:underline flex items-center gap-1",children:d(u,p?{children:[c(R,{size:14,className:"text-green-600"})," ",l]}:{children:[c(X,{size:14})," ",s]})})}),c("div",{className:"max-h-24 overflow-y-auto overflow-x-hidden",children:c("pre",{className:"bg-gray-100 p-4 rounded-md",children:c("code",{className:"text-sm text-red-600 dark:text-red-400 whitespace-pre-wrap break-words",children:b})})})]})]})})]})]})})}const Pr={created_at:"Criado em",start_processing_at:"Início do Processamento",finished_processing_at:"Fim do Processamento",field_delimiter:"Delimitador de Campo",decimal_delimiter:"Delimitador Decimal",ignore_locked:"Ignorar Bloqueados",lock_data:"Bloquear Dados",origin:"Origem",format_type:"Tipo de Formato",process_status:"Status",description:"Descrição",row_permission:"Row Permission",created_by:"Created By",modeling_unit:"Modeling Unit",attribute:"Attribute",geoarea:"Geoarea"},_r=e=>{if(!e)return"";return new Date(e).toLocaleString("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})},Dr=(e,t)=>({...Pr,...t}[e]||e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")),Lr=(e,t,r={})=>{if(null==e||""===e)return"N/A";if("process_status"===t&&r.statusLabels)return r.statusLabels[String(e)]??String(e);if(t.endsWith("_at")||t.includes("date")||t.includes("_time")){return(r.formatDate??_r)(String(e))||"N/A"}if("boolean"==typeof e){const t=r.booleanLabels??{true:"Sim",false:"Não"};return e?t.true:t.false}return"object"==typeof e?"N/A":String(e)},Wr=(e,t)=>{const r=e[t];return r&&"object"==typeof r&&null!==r&&"__display_field__"in r?r.__display_field__:r},Or=["description","notes"],qr={default:"",card:"rounded-lg border p-4"};function Er(e="default",t,r){return gr(qr[e],t,r)}const Tr=[{title:"Informações Gerais",fields:["description","row_permission","origin","created_by","process_status","msg"],cols:4},{title:"Datas de Processamento",fields:["created_at","start_processing_at","finished_processing_at"],cols:3},{title:"Proteção dos Dados",fields:["ignore_locked","lock_data"],cols:4},{title:"Carregamento Manual",fields:["format_type","field_delimiter","decimal_delimiter","modeling_unit","attribute","geoarea"],cols:4}];function Fr({data:e,config:t,className:r,sectionVariant:n="default",sectionClassName:o,formatters:a,wrapperElements:i,statusLabels:s,formatDate:l}){const u=t?.sections||Tr,m={statusLabels:s,formatDate:l},h=(e,t,r,a)=>d(g,{direction:"col",gap:3,className:Er(n,o,a),children:[c("h3",{className:"text-sm font-semibold text-foreground",children:t}),r]},e),p=(r,n)=>{if(!(r in e))return null;const o=t?.labels?.[r]||Dr(r,t?.labels),s=(a||[]).find(e=>e.key===r)?.formatter||t?.formatters?.[r],l=Wr(e,r),u=s?s(l):Lr(l,r,m),h=function(e,t){return void 0!==t?.fullWidthFields?t.fullWidthFields.includes(e):Or.includes(e)}(r,n),p=i?.find(e=>e.keys.includes(r));if(p?.element){const t=p.element({key:r,label:o,fieldValue:l,isFullWidth:h,data:e});return c(g,{direction:"col",className:h?"col-span-full min-w-0":"min-w-0",children:t},r)}return d(g,{direction:"col",className:h?"col-span-full min-w-0":"min-w-0",children:[c("p",{className:"text-sm font-medium text-muted-foreground",children:o}),c("p",{className:"text-base break-words whitespace-pre-wrap",children:u})]},r)},f=e.results;return d(g,{direction:"col",gap:6,className:r,children:[u.map(t=>{const r=t.fields.filter(t=>t in e);if(0===r.length)return null;const n=function(e){if(e.isFullWidth)return"grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-1 xl:grid-cols-1 gap-x-6 gap-y-4";switch(e.cols){case 2:return"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-4";case 3:return"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4";default:return"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-4"}}(t);return h(t.title,t.title,c("div",{className:n,children:r.map(e=>p(e,t))}),t.className)}),Boolean(e.dimensions&&"object"==typeof e.dimensions&&Object.keys(e.dimensions).length>0)&&h("tags","Tags",c(xr,{data:e.dimensions})),Boolean(e.extra_info&&"object"==typeof e.extra_info&&Object.keys(e.extra_info).length>0)&&h("extra-info","Informações Extras",c(xr,{data:e.extra_info})),f?.processing_results&&c(g,{direction:"col",gap:3,className:Er(n,o),children:c(S,{type:"single",collapsible:!0,children:d(z,{value:"processing-results",className:"border-b-0",children:[c(j,{className:"text-sm font-semibold text-foreground hover:no-underline py-2",children:"Resultados do Processamento"}),c(P,{children:d(g,{direction:"col",gap:4,children:[c("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[{label:"Adicionados",value:f.processing_results.count__added,color:"text-green-600"},{label:"Atualizados",value:f.processing_results.count__updated,color:"text-blue-600"},{label:"Sem Alteração",value:f.processing_results.count__no_change,color:"text-gray-600"}].map(e=>d(g,{direction:"col",children:[c("p",{className:"text-sm font-medium text-muted-foreground",children:e.label}),c("p",{className:`text-2xl font-bold ${e.color}`,children:e.value})]},e.label))}),f.processing_results.details&&f.processing_results.details.length>0&&d(g,{direction:"col",gap:2,children:[c("p",{className:"text-sm font-medium text-muted-foreground",children:"Detalhes"}),c(g,{direction:"col",gap:2,children:f.processing_results.details.map((e,r)=>{const n=`detail-${r}-${Object.values(e).join("-")}`;return c(g,{className:"border rounded-lg p-3",children:c(g,{className:"grid grid-cols-4 gap-2",children:Object.entries(e).map(([e,r])=>d(g,{direction:"col",children:[c("p",{className:"text-xs text-muted-foreground",children:Dr(e,t?.labels)}),c("p",{className:"text-sm font-medium",children:Lr(r,e,m)})]},e))})},n)})})]})]})})]})})})]})}function Hr({title:e,titleAddon:t,isLoading:r=!1,error:n=null,onBack:o,actions:a,sections:i=[],children:s,loadingComponent:l,errorComponent:u,backButtonLabel:m="Voltar"}){return r?l??c(g,{className:"justify-center items-center p-8",children:c(M,{})}):n?u??c(g,{className:"justify-center items-center p-8",children:c("p",{className:"text-destructive",children:n.message})}):d(g,{direction:"col",gap:4,children:[d(g,{direction:"row",gap:4,className:"justify-between items-center",children:[d(g,{direction:"row",gap:4,className:"items-center",children:[o&&c(f,{variant:"ghost",size:"icon",onClick:o,title:m,children:c(V,{className:"size-4"})}),c("h1",{className:"text-2xl font-semibold text-surface-secondary",children:e}),t]}),a&&c(g,{direction:"row",gap:2,children:a})]}),i.map((e,t)=>{const r=e.id??`section-${t}`;return c(S,{type:"single",collapsible:!0,defaultValue:e.defaultOpen?r:void 0,className:"w-full",children:d(z,{value:r,className:"border-b",children:[c(j,{className:"hover:no-underline text-base font-normal text-surface-secondary",children:e.title}),c(P,{className:"pt-4",children:e.content})]})},r)}),s]})}const Ar={description:"Descrição",code:"Código",notes:"Notas",force_temperature:"Temperatura Forçada",dimensions:"Tags",extra_info:"Informações extras"},Gr=(e,t)=>t?.[e]?t[e]:Ar[e]?Ar[e]:e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");function Ir({value:e={},onChange:t,name:n,placeholderKey:o="Chave",placeholderValue:a="Valor",disabled:i=!1}){const[s,l]=r({key:"",value:""});return d(g,{direction:"col",gap:2,children:[d("div",{className:"flex gap-2",children:[c(N,{type:"text",name:`${n}_key`,placeholder:o,value:s.key,disabled:i,onChange:e=>l(t=>({...t,key:e.target.value})),className:"flex-1"}),c(N,{type:"text",name:`${n}_value`,placeholder:a,value:s.value,disabled:i,onChange:e=>l(t=>({...t,value:e.target.value})),className:"flex-1"}),c(f,{type:"button",variant:"default",className:"px-4 py-2 shrink-0",id:`${n}_add`,onClick:()=>{const e=s.key.trim(),r=s.value.trim();e&&(t(t=>({...t&&"object"==typeof t?t:{},[e]:r})),l({key:"",value:""}))},disabled:i||!s.key.trim(),children:"Adicionar"})]}),Object.entries(e).length>0&&c(g,{direction:"row",gap:2,className:"flex-wrap",children:Object.entries(e).map(([e,r])=>d(g,{direction:"row",gap:1,className:"bg-muted px-3 py-1.5 rounded-md text-sm",children:[d("span",{className:"font-medium text-foreground",children:[e," : ",String(r)]}),!i&&c("button",{type:"button",onClick:()=>{return r=e,void t(e=>{const t={...e&&"object"==typeof e?e:{}};return delete t[r],t});var r},className:"rounded-full p-0 hover:bg-muted-foreground/20 hover:text-destructive hover:backgro transition-colors",children:"×"})]},e))})]})}function Yr({fields:e,values:t,defaultValue:o={},onChange:a,errors:i={},config:s,customFields:l}){const[m,h]=r(o),p=t??m,f=(e,t)=>{a?a(r=>{const n=r&&"object"==typeof r?r:p,o=n[e],a="function"==typeof t?t(o):t;return{...n,[e]:a}}):h(r=>{const n=r[e],o="function"==typeof t?t(n):t;return{...r,[e]:o}})};n(()=>{Object.keys(o).length>0&&0===Object.keys(p).length&&h(o)},[o,p]);const b=Object.keys(e).filter(e=>!s?.exclude?.includes(e)),w=(e,t)=>{const r=p[e]??"",n=i[e],o=t.disabled;if(l?.[e])return l[e]({value:r,onChange:t=>f(e,t),error:n,disabled:o,fieldKey:e});switch(t.type){case"textarea":return c(L,{id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>f(e,t.target.value),required:t.required,disabled:o,className:gr("min-h-[120px] w-full",n&&"border-destructive")});case"checkbox":return d("div",{className:"flex items-center gap-2 py-2",children:[c(_,{id:e,name:e,checked:!!r,onCheckedChange:t=>f(e,!!t),disabled:o}),c("label",{htmlFor:e,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:Gr(e,s?.labels)})]});case"select":return c(D,{id:e,name:e,placeholder:t.placeholder||"Selecione...",options:t.options??[],value:null!=r?String(r):"",onValueChange:t=>f(e,t),required:t.required});case"key-value":return d(u,{children:[c(Ir,{value:r||{},name:e,onChange:t=>f(e,t),placeholderKey:"Chave",placeholderValue:"Valor",disabled:o}),c("input",{type:"hidden",name:e,value:JSON.stringify(r||{})})]});case"number":return c(N,{type:"number",id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>{const r=""===t.target.value?"":Number(t.target.value);f(e,r)},required:t.required,disabled:o,className:gr("w-full",n&&"border-destructive")});case"date":return c(N,{type:"date",id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>f(e,t.target.value),required:t.required,disabled:o,className:gr("w-full",n&&"border-destructive")});default:return c(N,{type:t.type,id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>f(e,t.target.value),required:t.required,disabled:o,className:gr("w-full",n&&"border-destructive")})}};return c(g,{direction:"col",gap:6,className:"w-full",children:(s?.sections||[{title:"Dados do Formulário",fields:b,cols:1}]).map(t=>{const r=t.fields.filter(t=>t in e&&!s?.exclude?.includes(t));if(0===r.length)return null;const n=1===t.cols?"grid-cols-1":2===t.cols?"grid-cols-1 sm:grid-cols-2":3===t.cols?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4";return d(g,{direction:"col",gap:3,className:"w-full",children:[c("h3",{className:"text-sm font-semibold text-foreground",children:t.title}),c("div",{className:gr("grid gap-x-6 gap-y-4 w-full",n),children:r.map(r=>{const n=e[r],o=t.isFullWidth||"textarea"===n.type||"key-value"===n.type||4===n.cols,a=i[r],l="checkbox"!==n.type;return d(g,{direction:"col",gap:1.5,className:gr(o?"col-span-full":"",n.className),children:[l&&d("label",{htmlFor:r,className:"text-fontcolor-secondary font-bold text-sm",children:[Gr(r,s?.labels),n.required&&c("span",{className:"text-destructive ml-0.5",children:"*"})]}),w(r,n),a&&c("span",{className:"text-xs text-destructive font-medium mt-0.5",children:a})]},r)})})]},t.title)})})}function $r({label:e,steps:t=[]}){return c(W,{className:"mb-6",children:d(O,{children:[c(q,{children:c(E,{className:"text-primary font-medium",children:e})}),t.map(e=>d(o,{children:[c(T,{}),c(q,{children:c(E,{className:"text-muted-foreground",children:e})})]},`step-fragment-${e}`))]})})}const Br=(e,t)=>{const r=document.createElement("a");r.href=e,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)},Vr=({fileUrl:e,fileName:t,isLoading:r=!1,getFileType:n,ImageComponent:o})=>{if(r)return c(g,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] items-center justify-center",children:c(b,{})});if(!e||!t)return d(g,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] items-center justify-center",children:[c(ee,{className:"w-16 h-16 text-muted-foreground"}),c("p",{className:"text-sm text-muted-foreground mt-4",children:"No file available"})]});const a=n(t);return c(g,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] h-full overflow-hidden relative",children:(()=>{switch(a){case"image":return c(g,{direction:"col",className:"w-full h-full items-center justify-center relative",children:o?c(o,{src:e,alt:t,fill:!0,className:"object-contain"}):c("img",{src:e,alt:t,className:"max-w-full max-h-full object-contain"})});case"video":return c(g,{direction:"col",className:"w-full h-full items-center justify-center relative",children:d("video",{src:e,controls:!0,className:"w-full h-full object-contain",children:[c("track",{kind:"captions"}),"Your browser does not support the video tag."]})});case"pdf":return c(g,{direction:"col",className:"w-full h-full items-center justify-center relative",children:c("iframe",{src:e,className:"w-full h-full border-0",title:t})});case"doc":case"excel":case"ppt":return d(g,{direction:"col",gap:4,className:"items-center justify-center h-full p-8",children:[c(K,{className:"w-20 h-20 text-muted-foreground"}),d(g,{direction:"col",gap:1,className:"text-center",children:[c("p",{className:"text-sm font-medium text-foreground",children:t}),d("p",{className:"text-xs text-muted-foreground uppercase",children:[a," Document"]})]}),d(f,{variant:"outline",size:"default",className:"mt-4",onClick:()=>Br(e,t),children:[c(J,{className:"w-4 h-4 mr-2"}),"Download"]})]});default:return d(g,{direction:"col",gap:4,className:"items-center justify-center h-full p-8",children:[c(Z,{className:"w-16 h-16 text-muted-foreground"}),c("p",{className:"text-sm text-muted-foreground",children:t}),d(f,{variant:"outline",size:"sm",onClick:()=>Br(e,t),children:[c(J,{className:"w-4 h-4 mr-2"}),"Download"]})]})}})()})};function Qr({links:e,iconMap:t,pathname:r,isSidebarCollapsedFromQuery:o=!1,logo:a,onLogout:i,logoutIcon:s=te,logoutLabel:l="Logout",LinkComponent:u,ImageComponent:m}){const h=r.split("/")[2]??"",{isCollapsed:p,isCollapsing:f,expandedItems:b,setExpandedItems:w,toggleCollapse:y,toggleExpanded:x,handleTransitionEnd:v,setExpandedOnCollapse:k}=H({initialCollapsed:o,onPersist:e=>{const t=new URLSearchParams;t.set("sidebar-collapsed",String(e)),window.history.replaceState({},"",`${window.location.pathname}?${t}`)}});n(()=>{if(!o){const t={};e.forEach(e=>{if(e.subItems){e.subItems.some(e=>r===e.href)&&(t[e.title]=!0)}}),w(t)}},[o,e,r,w]);return d(F.Root,{isCollapsed:p,isCollapsing:f,onToggleCollapse:()=>{p||k(),y()},onTransitionEnd:v,className:"h-full",children:[d(g,{className:"w-full shrink-0 items-center gap-1 mb-2",children:[c(F.Toggle,{}),c(F.Logo,{src:a.src,width:a.width,height:a.height,collapsedWidth:a.collapsedWidth,collapsedHeight:a.collapsedHeight,alt:a.alt,ImageComponent:m})]}),c(F.Content,{className:"mt-6",children:e.map(e=>{const n=t[e.icon];if(!!e.subItems?.length){const t=e.subItems?.some(e=>r===e.href||h===e.href.split("/")[2]);return c(F.NavGroup,{icon:n,title:e.title,isExpanded:!!b[e.title],isActive:!!t,onToggle:()=>x(e.title),children:e.subItems?.map(e=>{const t=r===e.href;return c(F.NavSubLink,{title:e.title,href:{pathname:e.href,query:{"sidebar-collapsed":p}},active:t,LinkComponent:u},e.href)})},e.title)}const o=e.href?.split("/")[2]??"";return c(F.Link,{icon:n,href:{pathname:e.href,query:{"sidebar-collapsed":p}},active:h===o,LinkComponent:u,children:e.title},e.href)})}),c(F.Footer,{children:c(F.Action,{icon:s,label:l,onClick:async()=>{await i()}})})]})}export{Sr as AuthenticatedView,Fr as AutoDetailContent,Yr as AutoFormContent,yr as CombinedFilterTable,wr as CreatedByUserFilter,$r as CustomBreadcrumb,br as DateRangeFilter,Hr as DetailPage,Or as FULL_WIDTH_DETAIL_FIELDS,Vr as FilePreview,xr as KeyValueContent,kr as LoginCard,Cr as LoginCardSSO,Qr as NavigationSidebar,jr as NotAuthenticatedView,Dr as formatDetailLabel,Lr as formatDetailValue,Wr as getDetailFieldValue};
26
+ */function Nr({error:e,loginHref:o,title:i="Erro ao autenticar!",description:s="Verifique suas informações de SSO ou converse com o administrador do sistema.",fallbackLinkLabel:l="Caso não seja redirecionado automaticamente, clique aqui",errorDetailsLabel:c="Detalhes para os Nerds",copyLabel:d="Copiar",copiedLabel:u="Copiado!",LinkComponent:m=kr,className:p}){const[f,y]=a(!1),x="string"==typeof e?e:JSON.stringify(e,null,2);return t(h,{className:"justify-center items-center h-screen",children:r(g,{className:p??"w-[400px] h-[457px] rounded-[30px] shadow-lg bg-red-50",children:[t(b,{className:"items-center"}),r(w,{className:"flex flex-col items-center gap-2",children:[t(fr,{size:48,className:"text-red-700"}),t("h4",{className:"text-center",children:i}),t("p",{className:"text-sm text-center",children:s}),t(m,{href:o,className:"w-full text-sm underline text-accent text-center",children:l}),t(N,{type:"single",collapsible:!0,className:"w-full",children:r(C,{value:"error-details",children:[t(M,{children:c}),r(S,{className:"max-w-80",children:[t("div",{className:"flex justify-end mb-1",children:t("button",{type:"button",onClick:async()=>{if(e)try{await navigator.clipboard.writeText("string"==typeof e?e:JSON.stringify(e,null,2)),y(!0),setTimeout(()=>y(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},className:"text-xs text-accent hover:underline flex items-center gap-1",children:r(n,f?{children:[t(pr,{size:14,className:"text-green-600"})," ",u]}:{children:[t(gr,{size:14})," ",d]})})}),t("div",{className:"max-h-24 overflow-y-auto overflow-x-hidden",children:t("pre",{className:"bg-gray-100 p-4 rounded-md",children:t("code",{className:"text-sm text-red-600 dark:text-red-400 whitespace-pre-wrap break-words",children:x})})})]})]})})]})]})})}const Cr={created_at:"Criado em",start_processing_at:"Início do Processamento",finished_processing_at:"Fim do Processamento",field_delimiter:"Delimitador de Campo",decimal_delimiter:"Delimitador Decimal",ignore_locked:"Ignorar Bloqueados",lock_data:"Bloquear Dados",origin:"Origem",format_type:"Tipo de Formato",process_status:"Status",description:"Descrição",row_permission:"Row Permission",created_by:"Created By",modeling_unit:"Modeling Unit",attribute:"Attribute",geoarea:"Geoarea"},Mr=e=>{if(!e)return"";return new Date(e).toLocaleString("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})},Sr=(e,t)=>({...Cr,...t}[e]||e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")),zr=(e,t,r={})=>{if(null==e||""===e)return"N/A";if("process_status"===t&&r.statusLabels)return r.statusLabels[String(e)]??String(e);if(t.endsWith("_at")||t.includes("date")||t.includes("_time")){return(r.formatDate??Mr)(String(e))||"N/A"}if("boolean"==typeof e){const t=r.booleanLabels??{true:"Sim",false:"Não"};return e?t.true:t.false}return"object"==typeof e?"N/A":String(e)},jr=(e,t)=>{const r=e[t];return r&&"object"==typeof r&&null!==r&&"__display_field__"in r?r.__display_field__:r},Pr=["description","notes"],_r={default:"",card:"rounded-lg border p-4"};function Dr(e="default",t,r){return Ke(_r[e],t,r)}const Lr=[{title:"Informações Gerais",fields:["description","row_permission","origin","created_by","process_status","msg"],cols:4},{title:"Datas de Processamento",fields:["created_at","start_processing_at","finished_processing_at"],cols:3},{title:"Proteção dos Dados",fields:["ignore_locked","lock_data"],cols:4},{title:"Carregamento Manual",fields:["format_type","field_delimiter","decimal_delimiter","modeling_unit","attribute","geoarea"],cols:4}];function Wr({data:e,config:n,className:o,sectionVariant:a="default",sectionClassName:i,formatters:s,wrapperElements:l,statusLabels:c,formatDate:d}){const u=n?.sections||Lr,m={statusLabels:c,formatDate:d},p=(e,n,o,s)=>r(h,{direction:"col",gap:3,className:Dr(a,i,s),children:[t("h3",{className:"text-sm font-semibold text-foreground",children:n}),o]},e),f=(o,a)=>{if(!(o in e))return null;const i=n?.labels?.[o]||Sr(o,n?.labels),c=(s||[]).find(e=>e.key===o)?.formatter||n?.formatters?.[o],d=jr(e,o),u=c?c(d):zr(d,o,m),p=function(e,t){return void 0!==t?.fullWidthFields?t.fullWidthFields.includes(e):Pr.includes(e)}(o,a),f=l?.find(e=>e.keys.includes(o));if(f?.element){const r=f.element({key:o,label:i,fieldValue:d,isFullWidth:p,data:e});return t(h,{direction:"col",className:p?"col-span-full min-w-0":"min-w-0",children:r},o)}return r(h,{direction:"col",className:p?"col-span-full min-w-0":"min-w-0",children:[t("p",{className:"text-sm font-medium text-muted-foreground",children:i}),t("p",{className:"text-base break-words whitespace-pre-wrap",children:u})]},o)},g=e.results;return r(h,{direction:"col",gap:6,className:o,children:[u.map(r=>{const n=r.fields.filter(t=>t in e);if(0===n.length)return null;const o=function(e){if(e.isFullWidth)return"grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-1 xl:grid-cols-1 gap-x-6 gap-y-4";switch(e.cols){case 2:return"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-4";case 3:return"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4";default:return"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-4"}}(r);return p(r.title,r.title,t("div",{className:o,children:n.map(e=>f(e,r))}),r.className)}),Boolean(e.dimensions&&"object"==typeof e.dimensions&&Object.keys(e.dimensions).length>0)&&p("tags","Tags",t(er,{data:e.dimensions})),Boolean(e.extra_info&&"object"==typeof e.extra_info&&Object.keys(e.extra_info).length>0)&&p("extra-info","Informações Extras",t(er,{data:e.extra_info})),g?.processing_results&&t(h,{direction:"col",gap:3,className:Dr(a,i),children:t(N,{type:"single",collapsible:!0,children:r(C,{value:"processing-results",className:"border-b-0",children:[t(M,{className:"text-sm font-semibold text-foreground hover:no-underline py-2",children:"Resultados do Processamento"}),t(S,{children:r(h,{direction:"col",gap:4,children:[t("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[{label:"Adicionados",value:g.processing_results.count__added,color:"text-green-600"},{label:"Atualizados",value:g.processing_results.count__updated,color:"text-blue-600"},{label:"Sem Alteração",value:g.processing_results.count__no_change,color:"text-gray-600"}].map(e=>r(h,{direction:"col",children:[t("p",{className:"text-sm font-medium text-muted-foreground",children:e.label}),t("p",{className:`text-2xl font-bold ${e.color}`,children:e.value})]},e.label))}),g.processing_results.details&&g.processing_results.details.length>0&&r(h,{direction:"col",gap:2,children:[t("p",{className:"text-sm font-medium text-muted-foreground",children:"Detalhes"}),t(h,{direction:"col",gap:2,children:g.processing_results.details.map((e,o)=>{const a=`detail-${o}-${Object.values(e).join("-")}`;return t(h,{className:"border rounded-lg p-3",children:t(h,{className:"grid grid-cols-4 gap-2",children:Object.entries(e).map(([e,o])=>r(h,{direction:"col",children:[t("p",{className:"text-xs text-muted-foreground",children:Sr(e,n?.labels)}),t("p",{className:"text-sm font-medium",children:zr(o,e,m)})]},e))})},a)})})]})]})})]})})})]})}function Or({title:e,titleAddon:n,isLoading:o=!1,error:a=null,onBack:i,actions:s,sections:l=[],children:c,loadingComponent:d,errorComponent:u,backButtonLabel:p="Voltar"}){return o?d??t(h,{className:"justify-center items-center p-8",children:t(k,{})}):a?u??t(h,{className:"justify-center items-center p-8",children:t("p",{className:"text-destructive",children:a.message})}):r(h,{direction:"col",gap:4,children:[r(h,{direction:"row",gap:4,className:"justify-between items-center",children:[r(h,{direction:"row",gap:4,className:"items-center",children:[i&&t(m,{variant:"ghost",size:"icon",onClick:i,title:p,children:t(hr,{className:"size-4"})}),t("h1",{className:"text-2xl font-semibold text-surface-secondary",children:e}),n]}),s&&t(h,{direction:"row",gap:2,children:s})]}),l.map((e,n)=>{const o=e.id??`section-${n}`;return t(N,{type:"single",collapsible:!0,defaultValue:e.defaultOpen?o:void 0,className:"w-full",children:r(C,{value:o,className:"border-b",children:[t(M,{className:"hover:no-underline text-base font-normal text-surface-secondary",children:e.title}),t(S,{className:"pt-4",children:e.content})]})},o)}),c]})}const Tr={description:"Descrição",code:"Código",notes:"Notas",force_temperature:"Temperatura Forçada",dimensions:"Tags",extra_info:"Informações extras"},qr=(e,t)=>t?.[e]?t[e]:Tr[e]?Tr[e]:e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");function Er({value:e={},onChange:n,name:o,placeholderKey:i="Chave",placeholderValue:s="Valor",disabled:l=!1}){const[c,d]=a({key:"",value:""});return r(h,{direction:"col",gap:2,children:[r("div",{className:"flex gap-2",children:[t(x,{type:"text",name:`${o}_key`,placeholder:i,value:c.key,disabled:l,onChange:e=>d(t=>({...t,key:e.target.value})),className:"flex-1"}),t(x,{type:"text",name:`${o}_value`,placeholder:s,value:c.value,disabled:l,onChange:e=>d(t=>({...t,value:e.target.value})),className:"flex-1"}),t(m,{type:"button",variant:"default",className:"px-4 py-2 shrink-0",id:`${o}_add`,onClick:()=>{const e=c.key.trim(),t=c.value.trim();e&&(n(r=>({...r&&"object"==typeof r?r:{},[e]:t})),d({key:"",value:""}))},disabled:l||!c.key.trim(),children:"Adicionar"})]}),Object.entries(e).length>0&&t(h,{direction:"row",gap:2,className:"flex-wrap",children:Object.entries(e).map(([e,o])=>r(h,{direction:"row",gap:1,className:"bg-muted px-3 py-1.5 rounded-md text-sm",children:[r("span",{className:"font-medium text-foreground",children:[e," : ",String(o)]}),!l&&t("button",{type:"button",onClick:()=>{return t=e,void n(e=>{const r={...e&&"object"==typeof e?e:{}};return delete r[t],r});var t},className:"rounded-full p-0 hover:bg-muted-foreground/20 hover:text-destructive hover:backgro transition-colors",children:"×"})]},e))})]})}function Fr({fields:e,values:o,defaultValue:s={},onChange:l,errors:c={},config:d,customFields:u}){const[m,p]=a(s),f=o??m,g=(e,t)=>{l?l(r=>{const n=r&&"object"==typeof r?r:f,o=n[e],a="function"==typeof t?t(o):t;return{...n,[e]:a}}):p(r=>{const n=r[e],o="function"==typeof t?t(n):t;return{...r,[e]:o}})};i(()=>{Object.keys(s).length>0&&0===Object.keys(f).length&&p(s)},[s,f]);const b=Object.keys(e).filter(e=>!d?.exclude?.includes(e)),w=(e,o)=>{const a=f[e]??"",i=c[e],s=o.disabled;if(u?.[e])return u[e]({value:a,onChange:t=>g(e,t),error:i,disabled:s,fieldKey:e});switch(o.type){case"textarea":return t(P,{id:e,name:e,placeholder:o.placeholder,value:a,onChange:t=>g(e,t.target.value),required:o.required,disabled:s,className:Ke("min-h-[120px] w-full",i&&"border-destructive")});case"checkbox":return r("div",{className:"flex items-center gap-2 py-2",children:[t(z,{id:e,name:e,checked:!!a,onCheckedChange:t=>g(e,!!t),disabled:s}),t("label",{htmlFor:e,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:qr(e,d?.labels)})]});case"select":return t(j,{id:e,name:e,placeholder:o.placeholder||"Selecione...",options:o.options??[],value:null!=a?String(a):"",onValueChange:t=>g(e,t),required:o.required});case"key-value":return r(n,{children:[t(Er,{value:a||{},name:e,onChange:t=>g(e,t),placeholderKey:"Chave",placeholderValue:"Valor",disabled:s}),t("input",{type:"hidden",name:e,value:JSON.stringify(a||{})})]});case"number":return t(x,{type:"number",id:e,name:e,placeholder:o.placeholder,value:a,onChange:t=>{const r=""===t.target.value?"":Number(t.target.value);g(e,r)},required:o.required,disabled:s,className:Ke("w-full",i&&"border-destructive")});case"date":return t(x,{type:"date",id:e,name:e,placeholder:o.placeholder,value:a,onChange:t=>g(e,t.target.value),required:o.required,disabled:s,className:Ke("w-full",i&&"border-destructive")});default:return t(x,{type:o.type,id:e,name:e,placeholder:o.placeholder,value:a,onChange:t=>g(e,t.target.value),required:o.required,disabled:s,className:Ke("w-full",i&&"border-destructive")})}};return t(h,{direction:"col",gap:6,className:"w-full",children:(d?.sections||[{title:"Dados do Formulário",fields:b,cols:1}]).map(n=>{const o=n.fields.filter(t=>t in e&&!d?.exclude?.includes(t));if(0===o.length)return null;const a=1===n.cols?"grid-cols-1":2===n.cols?"grid-cols-1 sm:grid-cols-2":3===n.cols?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4";return r(h,{direction:"col",gap:3,className:"w-full",children:[t("h3",{className:"text-sm font-semibold text-foreground",children:n.title}),t("div",{className:Ke("grid gap-x-6 gap-y-4 w-full",a),children:o.map(o=>{const a=e[o],i=n.isFullWidth||"textarea"===a.type||"key-value"===a.type||4===a.cols,s=c[o],l="checkbox"!==a.type;return r(h,{direction:"col",gap:1.5,className:Ke(i?"col-span-full":"",a.className),children:[l&&r("label",{htmlFor:o,className:"text-fontcolor-secondary font-bold text-sm",children:[qr(o,d?.labels),a.required&&t("span",{className:"text-destructive ml-0.5",children:"*"})]}),w(o,a),s&&t("span",{className:"text-xs text-destructive font-medium mt-0.5",children:s})]},o)})})]},n.title)})})}function Hr({label:e,steps:n=[]}){return t(_,{className:"mb-6",children:r(D,{children:[t(L,{children:t(W,{className:"text-primary font-medium",children:e})}),n.map(e=>r(c,{children:[t(O,{}),t(L,{children:t(W,{className:"text-muted-foreground",children:e})})]},`step-fragment-${e}`))]})})}const Ar=(e,t)=>{const r=document.createElement("a");r.href=e,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)},Gr=({fileUrl:e,fileName:n,isLoading:o=!1,getFileType:a,ImageComponent:i})=>{if(o)return t(h,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] items-center justify-center",children:t(p,{})});if(!e||!n)return r(h,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] items-center justify-center",children:[t(xr,{className:"w-16 h-16 text-muted-foreground"}),t("p",{className:"text-sm text-muted-foreground mt-4",children:"No file available"})]});const s=a(n);return t(h,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] h-full overflow-hidden relative",children:(()=>{switch(s){case"image":return t(h,{direction:"col",className:"w-full h-full items-center justify-center relative",children:i?t(i,{src:e,alt:n,fill:!0,className:"object-contain"}):t("img",{src:e,alt:n,className:"max-w-full max-h-full object-contain"})});case"video":return t(h,{direction:"col",className:"w-full h-full items-center justify-center relative",children:r("video",{src:e,controls:!0,className:"w-full h-full object-contain",children:[t("track",{kind:"captions"}),"Your browser does not support the video tag."]})});case"pdf":return t(h,{direction:"col",className:"w-full h-full items-center justify-center relative",children:t("iframe",{src:e,className:"w-full h-full border-0",title:n})});case"doc":case"excel":case"ppt":return r(h,{direction:"col",gap:4,className:"items-center justify-center h-full p-8",children:[t(wr,{className:"w-20 h-20 text-muted-foreground"}),r(h,{direction:"col",gap:1,className:"text-center",children:[t("p",{className:"text-sm font-medium text-foreground",children:n}),r("p",{className:"text-xs text-muted-foreground uppercase",children:[s," Document"]})]}),r(m,{variant:"outline",size:"default",className:"mt-4",onClick:()=>Ar(e,n),children:[t(br,{className:"w-4 h-4 mr-2"}),"Download"]})]});default:return r(h,{direction:"col",gap:4,className:"items-center justify-center h-full p-8",children:[t(yr,{className:"w-16 h-16 text-muted-foreground"}),t("p",{className:"text-sm text-muted-foreground",children:n}),r(m,{variant:"outline",size:"sm",onClick:()=>Ar(e,n),children:[t(br,{className:"w-4 h-4 mr-2"}),"Download"]})]})}})()})};function Ir({links:e,iconMap:n,pathname:o,isSidebarCollapsedFromQuery:a=!1,logo:s,onLogout:l,logoutIcon:c=vr,logoutLabel:d="Logout",footerActions:u,LinkComponent:m,ImageComponent:p}){const f=o.split("/")[2]??"",{isCollapsed:g,isCollapsing:b,expandedItems:w,setExpandedItems:y,toggleCollapse:x,toggleExpanded:v,handleTransitionEnd:k,setExpandedOnCollapse:N}=q({initialCollapsed:a,onPersist:e=>{const t=new URLSearchParams;t.set("sidebar-collapsed",String(e)),window.history.replaceState({},"",`${window.location.pathname}?${t}`)}});i(()=>{if(!a){const t={};e.forEach(e=>{if(e.subItems){e.subItems.some(e=>o===e.href)&&(t[e.title]=!0)}}),y(t)}},[a,e,o,y]);return r(T.Root,{isCollapsed:g,isCollapsing:b,onToggleCollapse:()=>{g||N(),x()},onTransitionEnd:k,className:"h-full",children:[r(h,{className:"w-full shrink-0 items-center gap-1 mb-2",children:[t(T.Toggle,{}),t(T.Logo,{src:s.src,width:s.width,height:s.height,collapsedWidth:s.collapsedWidth,collapsedHeight:s.collapsedHeight,alt:s.alt,ImageComponent:p})]}),t(T.Content,{className:"mt-6",children:e.map(e=>{const r=n[e.icon];if(!!e.subItems?.length){const n=e.subItems?.some(e=>o===e.href||f===e.href.split("/")[2]);return t(T.NavGroup,{icon:r,title:e.title,isExpanded:!!w[e.title],isActive:!!n,onToggle:()=>v(e.title),children:e.subItems?.map(e=>{const r=o===e.href;return t(T.NavSubLink,{title:e.title,href:{pathname:e.href,query:{"sidebar-collapsed":g}},active:r,LinkComponent:m},e.href)})},e.title)}const a=e.href?.split("/")[2]??"";return t(T.Link,{icon:r,href:{pathname:e.href,query:{"sidebar-collapsed":g}},active:f===a,LinkComponent:m,children:e.title},e.href)})}),r(T.Footer,{children:[u,t(T.Action,{icon:c,label:d,onClick:async()=>{await l()}})]})]})}export{ir as AuthenticatedView,Wr as AutoDetailContent,Fr as AutoFormContent,Zt as CombinedFilterTable,rt as CreatedByUserFilter,Hr as CustomBreadcrumb,tt as DateRangeFilter,Or as DetailPage,Pr as FULL_WIDTH_DETAIL_FIELDS,Gr as FilePreview,er as KeyValueContent,rr as LoginCard,or as LoginCardSSO,Ir as NavigationSidebar,Nr as NotAuthenticatedView,Sr as formatDetailLabel,zr as formatDetailValue,jr as getDetailFieldValue};