@murabei-data-science/pumpwood-ui 1.3.0 → 1.3.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.
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),t=require("pumpwood-ui-components/components"),r=require("pumpwood-ui-components/components"),n=require("react/jsx-runtime"),o=require("pumpwood-ui-components/components"),a=require("pumpwood-ui-components/components"),s=require("pumpwood-ui-components/components"),i=require("pumpwood-ui-components/components"),l=require("pumpwood-ui-components/components"),c=require("pumpwood-ui-components/components"),d=require("pumpwood-ui-components/components"),u=require("pumpwood-ui-components/components"),m=require("pumpwood-ui-components/components"),h=require("pumpwood-ui-components/components"),p=require("pumpwood-ui-components/components"),f=require("pumpwood-ui-components/components"),g=require("pumpwood-ui-components/components"),b=require("pumpwood-ui-components/components"),x=require("swr"),w=require("pumpwood-ui-components/components"),y=require("pumpwood-ui-components/components"),k=require("pumpwood-ui-components/components"),v=require("pumpwood-ui-components/components"),j=require("pumpwood-ui-components/components"),N=require("pumpwood-ui-components/components"),C=require("pumpwood-ui-components/components");
1
+ "use strict";var e=require("react"),t=require("@murabei-data-science/pumpwood-ui/components"),r=require("@murabei-data-science/pumpwood-ui/components"),a=require("react/jsx-runtime"),n=require("@murabei-data-science/pumpwood-ui/components"),o=require("@murabei-data-science/pumpwood-ui/components"),s=require("@murabei-data-science/pumpwood-ui/components"),i=require("@murabei-data-science/pumpwood-ui/components"),l=require("@murabei-data-science/pumpwood-ui/components"),c=require("@murabei-data-science/pumpwood-ui/components"),d=require("@murabei-data-science/pumpwood-ui/components"),u=require("@murabei-data-science/pumpwood-ui/components"),m=require("@murabei-data-science/pumpwood-ui/components"),h=require("@murabei-data-science/pumpwood-ui/components"),p=require("@murabei-data-science/pumpwood-ui/components"),f=require("@murabei-data-science/pumpwood-ui/components"),g=require("@murabei-data-science/pumpwood-ui/components"),b=require("@murabei-data-science/pumpwood-ui/components"),x=require("swr"),w=require("@murabei-data-science/pumpwood-ui/components"),y=require("@murabei-data-science/pumpwood-ui/components"),k=require("@murabei-data-science/pumpwood-ui/components"),v=require("@murabei-data-science/pumpwood-ui/components"),j=require("@murabei-data-science/pumpwood-ui/components"),N=require("@murabei-data-science/pumpwood-ui/components"),C=require("@murabei-data-science/pumpwood-ui/components");
2
2
  /**
3
3
  * @license lucide-react v0.562.0 - ISC
4
4
  *
@@ -18,10 +18,10 @@ var z={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const D=e.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:a="",children:s,iconNode:i,...l},c)=>e.createElement("svg",{ref:c,...z,width:r,height:r,stroke:t,strokeWidth:o?24*Number(n)/Number(r):n,className:M("lucide",a),...!s&&!P(l)&&{"aria-hidden":"true"},...l},[...i.map(([t,r])=>e.createElement(t,r)),...Array.isArray(s)?s:[s]])),T=(t,r)=>{const n=e.forwardRef(({className:n,...o},a)=>{return e.createElement(D,{ref:a,iconNode:r,className:M(`lucide-${s=S(t),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,n),...o});var s});return n.displayName=S(t),n},_=T("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),L=T("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"}]]),q=T("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),F=T("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"}]]),A=T("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"}]]),E=T("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"}]]),O=T("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"}]]),W=T("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"}]]),I=T("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"}]]),H=T("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"}]]),B=T("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),G=6048e5,$=Symbol.for("constructDateFrom");
21
+ */const D=e.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:i,...l},c)=>e.createElement("svg",{ref:c,...z,width:r,height:r,stroke:t,strokeWidth:n?24*Number(a)/Number(r):a,className:M("lucide",o),...!s&&!P(l)&&{"aria-hidden":"true"},...l},[...i.map(([t,r])=>e.createElement(t,r)),...Array.isArray(s)?s:[s]])),T=(t,r)=>{const a=e.forwardRef(({className:a,...n},o)=>{return e.createElement(D,{ref:o,iconNode:r,className:M(`lucide-${s=S(t),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,a),...n});var s});return a.displayName=S(t),a},_=T("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),L=T("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"}]]),q=T("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),F=T("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"}]]),A=T("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"}]]),E=T("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"}]]),O=T("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"}]]),W=T("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"}]]),I=T("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"}]]),H=T("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"}]]),B=T("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),G=6048e5,$=Symbol.for("constructDateFrom");
22
22
  /**
23
23
  * @license lucide-react v0.562.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */function Y(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&$ in e?e[$](t):e instanceof Date?new e.constructor(t):new Date(t)}function R(e,t){return Y(t||e,e)}let V={};function Q(){return V}function U(e,t){const r=Q(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=R(e,t?.in),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function X(e,t){return U(e,{...t,weekStartsOn:1})}function J(e,t){const r=R(e,t?.in),n=r.getFullYear(),o=Y(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=X(o),s=Y(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const i=X(s);return r.getTime()>=a.getTime()?n+1:r.getTime()>=i.getTime()?n:n-1}function K(e){const t=R(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 Z(e,t){const r=R(e,t?.in);return r.setHours(0,0,0,0),r}function ee(e,t,r){const[n,o]=function(e,...t){const r=Y.bind(null,t.find(e=>"object"==typeof e));return t.map(r)}(0,e,t),a=Z(n),s=Z(o),i=+a-K(a),l=+s-K(s);return Math.round((i-l)/864e5)}function te(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+R(e)));var t}const re={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 ne(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const oe={date:ne({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ne({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:ne({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function se(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]}}const ie={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:se({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:se({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:se({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:se({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:se({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"})};function le(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 s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(i,e=>e.test(s)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(i,e=>e.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(s.length)}}}const ce={ordinalNumber:(de={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(de.matchPattern);if(!r)return null;const n=r[0],o=e.match(de.parsePattern);if(!o)return null;let a=de.valueCallback?de.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(n.length)}}),era:le({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:le({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:le({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:le({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:le({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"})};var de;const ue={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=re[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:oe,formatRelative:(e,t,r,n)=>ae[e],localize:ie,match:ce,options:{weekStartsOn:0,firstWeekContainsDate:1}};function me(e,t){const r=R(e,t?.in),n=ee(r,function(e,t){const r=R(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return n+1}function he(e,t){const r=R(e,t?.in),n=+X(r)-+function(e,t){const r=J(e,t),n=Y(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),X(n)}(r);return Math.round(n/G)+1}function pe(e,t){const r=R(e,t?.in),n=r.getFullYear(),o=Q(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=Y(t?.in||e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=U(s,t),l=Y(t?.in||e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=U(l,t);return+r>=+i?n+1:+r>=+c?n:n-1}function fe(e,t){const r=R(e,t?.in),n=+U(r,t)-+function(e,t){const r=Q(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=pe(e,t),a=Y(t?.in||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),U(a,t)}(r,t);return Math.round(n/G)+1}function ge(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const be={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ge("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):ge(r+1,2)},d:(e,t)=>ge(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)=>ge(e.getHours()%12||12,t.length),H:(e,t)=>ge(e.getHours(),t.length),m:(e,t)=>ge(e.getMinutes(),t.length),s:(e,t)=>ge(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return ge(Math.trunc(n*Math.pow(10,r-3)),t.length)}},xe="midnight",we="noon",ye="morning",ke="afternoon",ve="evening",je="night",Ne={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 be.y(e,t)},Y:function(e,t,r,n){const o=pe(e,n),a=o>0?o:1-o;if("YY"===t){return ge(a%100,2)}return"Yo"===t?r.ordinalNumber(a,{unit:"year"}):ge(a,t.length)},R:function(e,t){return ge(J(e),t.length)},u:function(e,t){return ge(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 ge(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 ge(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 be.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 ge(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=fe(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):ge(o,t.length)},I:function(e,t,r){const n=he(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):ge(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){const n=me(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):ge(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 ge(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 ge(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 ge(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?we:0===n?xe: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?ve:n>=12?ke:n>=4?ye:je,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 be.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):ge(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):ge(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Se(n);case"XXXX":case"XX":return Me(n);default:return Me(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Se(n);case"xxxx":case"xx":return Me(n);default:return Me(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ce(n,":");default:return"GMT"+Me(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ce(n,":");default:return"GMT"+Me(n,":")}},t:function(e,t,r){return ge(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return ge(+e,t.length)}};function Ce(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+ge(a,2)}function Se(e,t){if(e%60==0){return(e>0?"-":"+")+ge(Math.abs(e)/60,2)}return Me(e,t)}function Me(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+ge(Math.trunc(n/60),2)+t+ge(n%60,2)}const Pe=(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"})}},ze=(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"})}},De={p:ze,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Pe(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}}",Pe(n,t)).replace("{{time}}",ze(o,t))}},Te=/^D+$/,_e=/^Y+$/,Le=["D","DD","YY","YYYY"];const qe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ae=/^'([^]*?)'?$/,Ee=/''/g,Oe=/[a-zA-Z]/;function We(e,t,r){const n=Q(),o=n.locale??ue,a=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=R(e,r?.in);if(!te(i))throw new RangeError("Invalid time value");let l=t.match(Fe).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,De[t])(e,o.formatLong)}return e}).join("").match(qe).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ie(e)};if(Ne[t])return{isToken:!0,value:e};if(t.match(Oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(r=>{if(!r.isToken)return r.value;const n=r.value;(function(e){return _e.test(e)}(n)||function(e){return Te.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),Le.includes(e))throw new RangeError(n)}(n,t,String(e));return(0,Ne[n[0]])(i,n,o.localize,c)}).join("")}function Ie(e){const t=e.match(Ae);return t?t[1].replace(Ee,"'"):e}const He="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",Be="text-muted-foreground",Ge="size-4 shrink-0 text-muted-foreground opacity-50";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 Ye=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Re="-",Ve=[],Qe=e=>{const t=Je(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Xe(e);const r=e.split(Re),n=""===r[0]&&r.length>1?1:0;return Ue(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||Ve}return r[e]||Ve}}},Ue=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=Ue(e,t+1,o);if(r)return r}const a=r.validators;if(null===a)return;const s=0===t?e.join(Re):e.slice(t).join(Re),i=a.length;for(let e=0;e<i;e++){const t=a[e];if(t.validator(s))return t.classGroupId}},Xe=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})(),Je=e=>{const{theme:t,classGroups:r}=e;return Ke(r,t)},Ke=(e,t)=>{const r=Ye();for(const n in e){const o=e[n];Ze(o,r,n,t)}return r},Ze=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];et(o,t,r,n)}},et=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?nt(e,t,r,n):rt(e,t,r,n):tt(e,t,r)},tt=(e,t,r)=>{(""===e?t:ot(t,e)).classGroupId=r},rt=(e,t,r,n)=>{at(e)?Ze(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},nt=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,s]=o[e];Ze(s,ot(t,a),r,n)}},ot=(e,t)=>{let r=e;const n=t.split(Re),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=Ye(),r.nextPart.set(t,o)),r=o}return r},at=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,st=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)}}},it=[],lt=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),ct=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,a=0;const s=e.length;for(let i=0;i<s;i++){const s=e[i];if(0===n&&0===o){if(":"===s){t.push(e.slice(a,i)),a=i+1;continue}if("/"===s){r=i;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}const i=0===t.length?e:e.slice(a);let l=i,c=!1;i.endsWith("!")?(l=i.slice(0,-1),c=!0):i.startsWith("!")&&(l=i.slice(1),c=!0);return lt(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)):lt(it,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},dt=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],s="["===a[0],i=t.has(a);s||i?(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}},ut=/\s+/,mt=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=mt(e[n]))&&(r&&(r+=" "),r+=t);return r},ht=(e,...t)=>{let r,n,o,a;const s=e=>{const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(ut);let l="";for(let e=i.length-1;e>=0;e-=1){const t=i[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,x=b+f;if(s.indexOf(x)>-1)continue;s.push(x);const w=o(f,p);for(let e=0;e<w.length;++e){const t=w[e];s.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,a),a};return a=i=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:st(e.cacheSize),parseClassName:ct(e),sortModifiers:dt(e),...Qe(e)}))(l),n=r.cache.get,o=r.cache.set,a=s,s(i)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=mt(t))&&(o&&(o+=" "),o+=r);return o})(...e))},pt=[],ft=e=>{const t=t=>t[e]||pt;return t.isThemeGetter=!0,t},gt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+\/\d+$/,wt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yt=/\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$/,kt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nt=e=>xt.test(e),Ct=e=>!!e&&!Number.isNaN(Number(e)),St=e=>!!e&&Number.isInteger(Number(e)),Mt=e=>e.endsWith("%")&&Ct(e.slice(0,-1)),Pt=e=>wt.test(e),zt=()=>!0,Dt=e=>yt.test(e)&&!kt.test(e),Tt=()=>!1,_t=e=>vt.test(e),Lt=e=>jt.test(e),qt=e=>!At(e)&&!Bt(e),Ft=e=>Ut(e,Zt,Tt),At=e=>gt.test(e),Et=e=>Ut(e,er,Dt),Ot=e=>Ut(e,tr,Ct),Wt=e=>Ut(e,Jt,Tt),It=e=>Ut(e,Kt,Lt),Ht=e=>Ut(e,nr,_t),Bt=e=>bt.test(e),Gt=e=>Xt(e,er),$t=e=>Xt(e,rr),Yt=e=>Xt(e,Jt),Rt=e=>Xt(e,Zt),Vt=e=>Xt(e,Kt),Qt=e=>Xt(e,nr,!0),Ut=(e,t,r)=>{const n=gt.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Xt=(e,t,r=!1)=>{const n=bt.exec(e);return!!n&&(n[1]?t(n[1]):r)},Jt=e=>"position"===e||"percentage"===e,Kt=e=>"image"===e||"url"===e,Zt=e=>"length"===e||"size"===e||"bg-size"===e,er=e=>"length"===e,tr=e=>"number"===e,rr=e=>"family-name"===e,nr=e=>"shadow"===e,or=ht(()=>{const e=ft("color"),t=ft("font"),r=ft("text"),n=ft("font-weight"),o=ft("tracking"),a=ft("leading"),s=ft("breakpoint"),i=ft("container"),l=ft("spacing"),c=ft("radius"),d=ft("shadow"),u=ft("inset-shadow"),m=ft("text-shadow"),h=ft("drop-shadow"),p=ft("blur"),f=ft("perspective"),g=ft("aspect"),b=ft("ease"),x=ft("animate"),w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Bt,At],y=()=>[Bt,At,l],k=()=>[Nt,"full","auto",...y()],v=()=>[St,"none","subgrid",Bt,At],j=()=>["auto",{span:["full",St,Bt,At]},St,Bt,At],N=()=>[St,"auto",Bt,At],C=()=>["auto","min","max","fr",Bt,At],S=()=>["auto",...y()],M=()=>[Nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],P=()=>[e,Bt,At],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Yt,Wt,{position:[Bt,At]}],D=()=>["auto","cover","contain",Rt,Ft,{size:[Bt,At]}],T=()=>[Mt,Gt,Et],_=()=>["","none","full",c,Bt,At],L=()=>["",Ct,Gt,Et],q=()=>[Ct,Mt,Yt,Wt],F=()=>["","none",p,Bt,At],A=()=>["none",Ct,Bt,At],E=()=>["none",Ct,Bt,At],O=()=>[Ct,Bt,At],W=()=>[Nt,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pt],breakpoint:[Pt],color:[zt],container:[Pt],"drop-shadow":[Pt],ease:["in","out","in-out"],font:[qt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pt],shadow:[Pt],spacing:["px",Ct],text:[Pt],"text-shadow":[Pt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nt,At,Bt,g]}],container:["container"],columns:[{columns:[Ct,At,Bt,i]}],"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:w()}],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:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[St,"auto",Bt,At]}],basis:[{basis:[Nt,"full","auto",i,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ct,Nt,"auto","initial","none",At]}],grow:[{grow:["",Ct,Bt,At]}],shrink:[{shrink:["",Ct,Bt,At]}],order:[{order:[St,"first","last","none",Bt,At]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"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:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],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":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[i,"screen",...M()]}],"min-w":[{"min-w":[i,"screen","none",...M()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",r,Gt,Et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Bt,Ot]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mt,At]}],"font-family":[{font:[$t,At,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,Bt,At]}],"line-clamp":[{"line-clamp":[Ct,"none",Bt,Ot]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":["none",Bt,At]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Bt,At]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Ct,"from-font","auto",Bt,Et]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Ct,"auto",Bt,At]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Bt,At]}],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",Bt,At]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},St,Bt,At],radial:["",Bt,At],conic:[St,Bt,At]},Vt,It]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Ct,Bt,At]}],"outline-w":[{outline:["",Ct,Gt,Et]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",d,Qt,Ht]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",u,Qt,Ht]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Ct,Et]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",m,Qt,Ht]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Ct,Bt,At]}],"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":[Ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Bt,At]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":[Ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Bt,At]}],filter:[{filter:["","none",Bt,At]}],blur:[{blur:F()}],brightness:[{brightness:[Ct,Bt,At]}],contrast:[{contrast:[Ct,Bt,At]}],"drop-shadow":[{"drop-shadow":["","none",h,Qt,Ht]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Ct,Bt,At]}],"hue-rotate":[{"hue-rotate":[Ct,Bt,At]}],invert:[{invert:["",Ct,Bt,At]}],saturate:[{saturate:[Ct,Bt,At]}],sepia:[{sepia:["",Ct,Bt,At]}],"backdrop-filter":[{"backdrop-filter":["","none",Bt,At]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[Ct,Bt,At]}],"backdrop-contrast":[{"backdrop-contrast":[Ct,Bt,At]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ct,Bt,At]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ct,Bt,At]}],"backdrop-invert":[{"backdrop-invert":["",Ct,Bt,At]}],"backdrop-opacity":[{"backdrop-opacity":[Ct,Bt,At]}],"backdrop-saturate":[{"backdrop-saturate":[Ct,Bt,At]}],"backdrop-sepia":[{"backdrop-sepia":["",Ct,Bt,At]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Bt,At]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ct,"initial",Bt,At]}],ease:[{ease:["linear","initial",b,Bt,At]}],delay:[{delay:[Ct,Bt,At]}],animate:[{animate:["none",x,Bt,At]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Bt,At]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:A()}],"rotate-x":[{"rotate-x":A()}],"rotate-y":[{"rotate-y":A()}],"rotate-z":[{"rotate-z":A()}],scale:[{scale:E()}],"scale-x":[{"scale-x":E()}],"scale-y":[{"scale-y":E()}],"scale-z":[{"scale-z":E()}],"scale-3d":["scale-3d"],skew:[{skew:O()}],"skew-x":[{"skew-x":O()}],"skew-y":[{"skew-y":O()}],transform:[{transform:[Bt,At,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:W()}],"translate-x":[{"translate-x":W()}],"translate-y":[{"translate-y":W()}],"translate-z":[{"translate-z":W()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",Bt,At]}],"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":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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",Bt,At]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Ct,Gt,Et,Ot]}],stroke:[{stroke:["none",...P()]}],"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 ar(...e){return or(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 sr=({startDate:e,endDate:o,onStartDateChange:a,onEndDateChange:s,startLabel:i="Start date",endLabel:l="End date",className:c})=>n.jsx("div",{className:ar("flex flex-col gap-2",c),children:n.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[n.jsxs(r.Popover,{children:[n.jsx(r.PopoverTrigger,{asChild:!0,children:n.jsxs("button",{type:"button",className:ar(He,"justify-start text-left w-[240px]",!e&&Be),children:[n.jsx(L,{className:ar("mr-2",Ge)}),e?We(e,"PPP"):i]})}),n.jsx(r.PopoverContent,{className:"w-fit p-0",align:"start",children:n.jsx(t.Calendar,{mode:"single",selected:e,onSelect:a,initialFocus:!0})})]}),n.jsxs(r.Popover,{children:[n.jsx(r.PopoverTrigger,{asChild:!0,children:n.jsxs("button",{type:"button",className:ar(He,"justify-start text-left w-[240px]",!o&&Be),children:[n.jsx(L,{className:ar("mr-2",Ge)}),o?We(o,"PPP"):l]})}),n.jsx(r.PopoverContent,{className:"w-fit p-0",align:"start",children:n.jsx(t.Calendar,{mode:"single",selected:o,onSelect:s,initialFocus:!0})})]})]})}),ir=({value:e,onChange:t,fetcher:r,className:a})=>n.jsx(o.FKSelect,{fetcher:r,modelClass:"User",className:ar("max-w-36 h-10",a),placeholder:"Creator user",emptyMessage:"No user found",labelName:"username",value:e,onChange:t});function lr({data:e}){return n.jsx(l.Stack,{direction:"row",gap:2,className:"flex-wrap",children:Object.entries(e).map(([e,t])=>n.jsx(l.Stack,{direction:"row",gap:1,className:"bg-muted px-3 py-1.5 rounded-md text-sm",children:n.jsxs("span",{className:"font-medium text-foreground",children:[e," : ",String(t)]})},e))})}const cr=({href:e,className:t,children:r})=>n.jsx("a",{href:e,className:t,children:r});const dr=({href:e,className:t,children:r})=>n.jsx("a",{href:e,className:t,children:r});const ur=({href:e,className:t,children:r})=>n.jsx("a",{href:e,className:t,children:r});const mr=({href:e,className:t,children:r})=>n.jsx("a",{href:e,className:t,children:r});const hr={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"},pr=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"})},fr=(e,t)=>({...hr,...t}[e]||e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")),gr=(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??pr)(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)},br=(e,t)=>{const r=e[t];return r&&"object"==typeof r&&null!==r&&"__display_field__"in r?r.__display_field__:r},xr=["description","notes"],wr=[{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}];const yr=g.Select,kr={description:"Descrição",code:"Código",notes:"Notas",force_temperature:"Temperatura Forçada",dimensions:"Tags",extra_info:"Informações extras"},vr=(e,t)=>t?.[e]?t[e]:kr[e]?kr[e]:e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");function jr({value:t={},onChange:r,name:o,placeholderKey:a="Chave",placeholderValue:s="Valor",disabled:c=!1}){const[d,m]=e.useState({key:"",value:""});return n.jsxs(l.Stack,{direction:"col",gap:2,children:[n.jsxs("div",{className:"flex gap-2",children:[n.jsx(u.Input,{type:"text",name:`${o}_key`,placeholder:a,value:d.key,disabled:c,onChange:e=>m(t=>({...t,key:e.target.value})),className:"flex-1"}),n.jsx(u.Input,{type:"text",name:`${o}_value`,placeholder:s,value:d.value,disabled:c,onChange:e=>m(t=>({...t,value:e.target.value})),className:"flex-1"}),n.jsx(i.Button,{type:"button",variant:"default",className:"px-4 py-2 shrink-0",id:`${o}_add`,onClick:()=>{const e=d.key.trim(),t=d.value.trim();e&&(r(r=>({...r&&"object"==typeof r?r:{},[e]:t})),m({key:"",value:""}))},disabled:c||!d.key.trim(),children:"Adicionar"})]}),Object.entries(t).length>0&&n.jsx(l.Stack,{direction:"row",gap:2,className:"flex-wrap",children:Object.entries(t).map(([e,t])=>n.jsxs(l.Stack,{direction:"row",gap:1,className:"bg-muted px-3 py-1.5 rounded-md text-sm",children:[n.jsxs("span",{className:"font-medium text-foreground",children:[e," : ",String(t)]}),!c&&n.jsx("button",{type:"button",onClick:()=>{return t=e,void r(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))})]})}const Nr=({open:t,onOpenChange:r,targetModelClass:a,relationName:s,handleCreateNew:c,mutate:d,fkFetcher:u})=>{const[m,h]=e.useState("");return n.jsx(w.Dialog,{open:t,onOpenChange:r,children:n.jsx(w.DialogContent,{className:"max-w-3xl centered p-0 border-none bg-transparent shadow-none",children:n.jsx(l.Stack,{gap:3,direction:"row",className:"w-full items-center justify-center",children:n.jsxs("div",{className:"flex flex-col gap-4 p-6 border border-gray-200 bg-white rounded-lg shadow-sm",children:[n.jsx(o.FKSelect,{fetcher:u,modelClass:a,labelName:"description",placeholder:`Selecione um(a) ${s.toLocaleLowerCase()}`,emptyMessage:`Nenhum(a) ${s.toLocaleLowerCase()} encontrado(a)`,value:m,onChange:e=>{h(String(e))}}),n.jsx(i.Button,{onClick:async()=>{await c(m),r(!1),h(""),d()},children:"Salvar"}),n.jsx(i.Button,{variant:"secondary",onClick:()=>{r(!1),h("")},children:"Cancelar"})]})})})})};const Cr=(e,t)=>{const r=document.createElement("a");r.href=e,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)};exports.AuthenticatedView=function({redirectHref:t,redirectDelayMs:r=3e3,onRedirect:o,title:a="Autenticado com sucesso! Redirecionado automaticamente",fallbackLinkLabel:s="Caso nao seja redirecionado automaticamente, clique aqui",LinkComponent:i=ur,className:l}){return e.useEffect(()=>{const e=setTimeout(()=>{o?.(t)},r);return()=>clearTimeout(e)},[t,r,o]),n.jsx("div",{className:"flex justify-center items-center h-screen",children:n.jsxs(d.Card,{className:l??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[n.jsx(d.CardHeader,{className:"items-center mt-4"}),n.jsxs(d.CardContent,{className:"flex flex-col gap-4",children:[n.jsx(h.Spinner,{}),n.jsx("h4",{className:"text-center",children:a}),n.jsx(i,{href:t,className:"w-full text-sm underline text-accent text-center",children:s})]})]})})},exports.AutoDetailContent=function({data:e,config:t,formatters:r,wrapperElements:o,statusLabels:a,formatDate:s}){const i=t?.sections||wr,c={statusLabels:a,formatDate:s},d=a=>{if(!(a in e))return null;const s=t?.labels?.[a]||fr(a,t?.labels),i=(r||[]).find(e=>e.key===a)?.formatter||t?.formatters?.[a],d=br(e,a),u=i?i(d):gr(d,a,c),m=xr.includes(a),h=o?.find(e=>e.keys.includes(a));if(h?.element){const t=h.element({key:a,label:s,fieldValue:d,isFullWidth:m,data:e});return n.jsx(l.Stack,{direction:"col",className:m?"col-span-full min-w-0":"min-w-0",children:t},a)}return n.jsxs(l.Stack,{direction:"col",className:m?"col-span-full min-w-0":"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:s}),n.jsx("p",{className:"text-base break-words whitespace-pre-wrap",children:u})]},a)},u=e.results;return n.jsxs(l.Stack,{direction:"col",gap:6,children:[i.map(t=>{const r=t.fields.filter(t=>t in e);return 0===r.length?null:t.isFullWidth?n.jsxs(l.Stack,{direction:"col",gap:3,children:[n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:t.title}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-1 xl:grid-cols-1 gap-x-6 gap-y-4",children:r.map(e=>d(e))})]},t.title):n.jsxs(l.Stack,{direction:"col",gap:3,children:[n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:t.title}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-4",children:r.map(e=>d(e))})]},t.title)}),Boolean(e.dimensions&&"object"==typeof e.dimensions&&Object.keys(e.dimensions).length>0)&&n.jsxs(l.Stack,{direction:"col",gap:3,children:[n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Tags"}),n.jsx(lr,{data:e.dimensions})]}),Boolean(e.extra_info&&"object"==typeof e.extra_info&&Object.keys(e.extra_info).length>0)&&n.jsxs(l.Stack,{direction:"col",gap:3,children:[n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Informações Extras"}),n.jsx(lr,{data:e.extra_info})]}),u?.processing_results&&n.jsx(p.Accordion,{type:"single",collapsible:!0,children:n.jsxs(p.AccordionItem,{value:"processing-results",className:"border-b-0",children:[n.jsx(p.AccordionTrigger,{className:"text-sm font-semibold text-foreground hover:no-underline py-2",children:"Resultados do Processamento"}),n.jsx(p.AccordionContent,{children:n.jsxs(l.Stack,{direction:"col",gap:4,children:[n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[{label:"Adicionados",value:u.processing_results.count__added,color:"text-green-600"},{label:"Atualizados",value:u.processing_results.count__updated,color:"text-blue-600"},{label:"Sem Alteração",value:u.processing_results.count__no_change,color:"text-gray-600"}].map(e=>n.jsxs(l.Stack,{direction:"col",children:[n.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:e.label}),n.jsx("p",{className:`text-2xl font-bold ${e.color}`,children:e.value})]},e.label))}),u.processing_results.details&&u.processing_results.details.length>0&&n.jsxs(l.Stack,{direction:"col",gap:2,children:[n.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Detalhes"}),n.jsx(l.Stack,{direction:"col",gap:2,children:u.processing_results.details.map((e,r)=>{const o=`detail-${r}-${Object.values(e).join("-")}`;return n.jsx(l.Stack,{className:"border rounded-lg p-3",children:n.jsx(l.Stack,{className:"grid grid-cols-4 gap-2",children:Object.entries(e).map(([e,r])=>n.jsxs(l.Stack,{direction:"col",children:[n.jsx("p",{className:"text-xs text-muted-foreground",children:fr(e,t?.labels)}),n.jsx("p",{className:"text-sm font-medium",children:gr(r,e,c)})]},e))})},o)})})]})]})})]})})]})},exports.AutoFormContent=function({fields:t,values:r,defaultValue:o={},onChange:a,errors:s={},config:i,customFields:c}){const[d,m]=e.useState(o),h=r??d,p=(e,t)=>{a?a(r=>{const n=r&&"object"==typeof r?r:h,o=n[e],a="function"==typeof t?t(o):t;return{...n,[e]:a}}):m(r=>{const n=r[e],o="function"==typeof t?t(n):t;return{...r,[e]:o}})};e.useEffect(()=>{Object.keys(o).length>0&&0===Object.keys(h).length&&m(o)},[o,h]);const x=Object.keys(t).filter(e=>!i?.exclude?.includes(e)),w=i?.sections||[{title:"Dados do Formulário",fields:x,cols:1}],y=(e,t)=>{const r=h[e]??"",o=s[e],a=t.disabled;if(c?.[e])return c[e]({value:r,onChange:t=>p(e,t),error:o,disabled:a,fieldKey:e});switch(t.type){case"textarea":return n.jsx(b.Textarea,{id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>p(e,t.target.value),required:t.required,disabled:a,className:ar("min-h-[120px] w-full",o&&"border-destructive")});case"checkbox":return n.jsxs("div",{className:"flex items-center gap-2 py-2",children:[n.jsx(f.Checkbox,{id:e,name:e,checked:!!r,onCheckedChange:t=>p(e,!!t),disabled:a}),n.jsx("label",{htmlFor:e,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:vr(e,i?.labels)})]});case"select":return n.jsxs(yr,{name:e,value:r,onValueChange:t=>p(e,t),disabled:a,children:[n.jsx(g.SelectTrigger,{"data-testid":`${e}-select-trigger`,children:n.jsx(g.SelectValue,{placeholder:t.placeholder||"Selecione..."})}),n.jsx(g.SelectContent,{children:t.options?.map(t=>n.jsx(g.SelectItem,{"data-testid":`${e}-select-item-${t.value}`,value:t.value,children:t.label},t.value))})]},r?"loaded":"empty");case"key-value":return n.jsxs(n.Fragment,{children:[n.jsx(jr,{value:r||{},name:e,onChange:t=>p(e,t),placeholderKey:"Chave",placeholderValue:"Valor",disabled:a}),n.jsx("input",{type:"hidden",name:e,value:JSON.stringify(r||{})})]});case"number":return n.jsx(u.Input,{type:"number",id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>{const r=""===t.target.value?"":Number(t.target.value);p(e,r)},required:t.required,disabled:a,className:ar("w-full",o&&"border-destructive")});case"date":return n.jsx(u.Input,{type:"date",id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>p(e,t.target.value),required:t.required,disabled:a,className:ar("w-full",o&&"border-destructive")});default:return n.jsx(u.Input,{type:t.type,id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>p(e,t.target.value),required:t.required,disabled:a,className:ar("w-full",o&&"border-destructive")})}};return n.jsx(l.Stack,{direction:"col",gap:6,className:"w-full",children:w.map(e=>{const r=e.fields.filter(e=>e in t&&!i?.exclude?.includes(e));if(0===r.length)return null;const o=1===e.cols?"grid-cols-1":2===e.cols?"grid-cols-1 sm:grid-cols-2":3===e.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 n.jsxs(l.Stack,{direction:"col",gap:3,className:"w-full",children:[n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:e.title}),n.jsx("div",{className:ar("grid gap-x-6 gap-y-4 w-full",o),children:r.map(r=>{const o=t[r],a=e.isFullWidth||"textarea"===o.type||"key-value"===o.type||4===o.cols,c=s[r],d="checkbox"!==o.type;return n.jsxs(l.Stack,{direction:"col",gap:1.5,className:ar(a?"col-span-full":"",o.className),children:[d&&n.jsxs("label",{htmlFor:r,className:"text-fontcolor-secondary font-bold text-sm",children:[vr(r,i?.labels),o.required&&n.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}),y(r,o),c&&n.jsx("span",{className:"text-xs text-destructive font-medium mt-0.5",children:c})]},r)})})]},e.title)})})},exports.CombinedFilterTable=()=>{const[t,r]=e.useState(),[o,l]=e.useState(),[c,d]=e.useState(null),u=[{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"}],m=u.filter(e=>{let r=!0;const n=new Date(e.created_at);return t&&n<t&&(r=!1),o&&n>o&&(r=!1),c&&e.user_id!==Number(c)&&(r=!1),r});return n.jsxs("div",{className:"flex flex-col gap-6 p-4 border rounded-lg bg-white",children:[n.jsx("h2",{className:"text-xl font-bold",children:"Combined Filter & Table Demo"}),n.jsxs("div",{className:"flex flex-wrap gap-4 items-end",children:[n.jsx(sr,{startDate:t,endDate:o,onStartDateChange:r,onEndDateChange:l}),n.jsx(ir,{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:c,onChange:e=>d(e)}),n.jsx(i.Button,{variant:"outline",className:"h-full",onClick:()=>{r(void 0),l(void 0),d(null)},children:"Clear Filters"})]}),n.jsx("div",{className:"border rounded-md overflow-hidden",children:n.jsxs(a.PumpwoodTable.Root,{children:[n.jsx(a.PumpwoodTable.Header,{children:n.jsxs(a.PumpwoodTable.Row,{children:[n.jsx(a.PumpwoodTable.Head,{children:"ID"}),n.jsx(a.PumpwoodTable.Head,{children:"Description"}),n.jsx(a.PumpwoodTable.Head,{children:"Created At"}),n.jsx(a.PumpwoodTable.Head,{children:"Created By"}),n.jsx(a.PumpwoodTable.Head,{children:"Status"})]})}),n.jsx(a.PumpwoodTable.Body,{children:m.length>0?m.map(e=>n.jsxs(a.PumpwoodTable.Row,{children:[n.jsx(a.PumpwoodTable.Cell,{children:e.pk}),n.jsx(a.PumpwoodTable.Cell,{children:e.description}),n.jsx(a.PumpwoodTable.Cell,{children:We(new Date(e.created_at),"PPP")}),n.jsx(a.PumpwoodTable.Cell,{children:e.username}),n.jsx(a.PumpwoodTable.Cell,{children:e.status})]},e.pk)):n.jsx(a.PumpwoodTable.Row,{children:n.jsx(a.PumpwoodTable.Cell,{colSpan:5,children:n.jsx(s.EmptyContainer,{title:"No results found",description:"No data was found for the selected filters."})})})})]})}),n.jsxs("div",{className:"text-xs text-gray-400",children:["Showing ",m.length," of ",u.length," records."]})]})},exports.CreatedByUserFilter=ir,exports.CustomBreadcrumb=function({label:t,steps:r=[]}){return n.jsx(j.Breadcrumb,{className:"mb-6",children:n.jsxs(j.BreadcrumbList,{children:[n.jsx(j.BreadcrumbItem,{children:n.jsx(j.BreadcrumbPage,{className:"text-primary font-medium",children:t})}),r.map(t=>n.jsxs(e.Fragment,{children:[n.jsx(j.BreadcrumbSeparator,{}),n.jsx(j.BreadcrumbItem,{children:n.jsx(j.BreadcrumbPage,{className:"text-muted-foreground",children:t})})]},`step-fragment-${t}`))]})})},exports.DateRangeFilter=sr,exports.DetailPage=function({title:e,titleAddon:t,isLoading:r=!1,error:o=null,onBack:a,actions:s,sections:c=[],children:d,loadingComponent:u,errorComponent:m,backButtonLabel:f="Voltar"}){return r?u??n.jsx(l.Stack,{className:"justify-center items-center p-8",children:n.jsx(h.Spinner,{})}):o?m??n.jsx(l.Stack,{className:"justify-center items-center p-8",children:n.jsx("p",{className:"text-destructive",children:o.message})}):n.jsxs(l.Stack,{direction:"col",gap:4,children:[n.jsxs(l.Stack,{direction:"row",gap:4,className:"justify-between items-center",children:[n.jsxs(l.Stack,{direction:"row",gap:4,className:"items-center",children:[a&&n.jsx(i.Button,{variant:"ghost",size:"icon",onClick:a,title:f,children:n.jsx(_,{className:"size-4"})}),n.jsx("h1",{className:"text-2xl font-semibold text-surface-secondary",children:e}),t]}),s&&n.jsx(l.Stack,{direction:"row",gap:2,children:s})]}),c.map((e,t)=>{const r=e.id??`section-${t}`;return n.jsx(p.Accordion,{type:"single",collapsible:!0,defaultValue:e.defaultOpen?r:void 0,className:"w-full",children:n.jsxs(p.AccordionItem,{value:r,className:"border-b",children:[n.jsx(p.AccordionTrigger,{className:"hover:no-underline text-base font-normal text-surface-secondary",children:e.title}),n.jsx(p.AccordionContent,{className:"pt-4",children:e.content})]})},r)}),d]})},exports.FULL_WIDTH_DETAIL_FIELDS=xr,exports.FilePreview=({fileUrl:e,fileName:t,isLoading:r=!1,getFileType:o,ImageComponent:a})=>{if(r)return n.jsx(l.Stack,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] items-center justify-center",children:n.jsx(l.Loading,{})});if(!e||!t)return n.jsxs(l.Stack,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] items-center justify-center",children:[n.jsx(I,{className:"w-16 h-16 text-muted-foreground"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-4",children:"No file available"})]});const s=o(t);return n.jsx(l.Stack,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] h-full overflow-hidden relative",children:(()=>{switch(s){case"image":return n.jsx(l.Stack,{direction:"col",className:"w-full h-full items-center justify-center relative",children:a?n.jsx(a,{src:e,alt:t,fill:!0,className:"object-contain"}):n.jsx("img",{src:e,alt:t,className:"max-w-full max-h-full object-contain"})});case"video":return n.jsx(l.Stack,{direction:"col",className:"w-full h-full items-center justify-center relative",children:n.jsxs("video",{src:e,controls:!0,className:"w-full h-full object-contain",children:[n.jsx("track",{kind:"captions"}),"Your browser does not support the video tag."]})});case"pdf":return n.jsx(l.Stack,{direction:"col",className:"w-full h-full items-center justify-center relative",children:n.jsx("iframe",{src:e,className:"w-full h-full border-0",title:t})});case"doc":case"excel":case"ppt":return n.jsxs(l.Stack,{direction:"col",gap:4,className:"items-center justify-center h-full p-8",children:[n.jsx(O,{className:"w-20 h-20 text-muted-foreground"}),n.jsxs(l.Stack,{direction:"col",gap:1,className:"text-center",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t}),n.jsxs("p",{className:"text-xs text-muted-foreground uppercase",children:[s," Document"]})]}),n.jsxs(i.Button,{variant:"outline",size:"default",className:"mt-4",onClick:()=>Cr(e,t),children:[n.jsx(E,{className:"w-4 h-4 mr-2"}),"Download"]})]});default:return n.jsxs(l.Stack,{direction:"col",gap:4,className:"items-center justify-center h-full p-8",children:[n.jsx(W,{className:"w-16 h-16 text-muted-foreground"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:t}),n.jsxs(i.Button,{variant:"outline",size:"sm",onClick:()=>Cr(e,t),children:[n.jsx(E,{className:"w-4 h-4 mr-2"}),"Download"]})]})}})()})},exports.KeyValueContent=lr,exports.LoginCard=function({onLogin:t,onSuccess:r,onError:o,sessionExpired:a=!1,sessionExpiredAlert:s,forgotPasswordHref:h="/",forgotPasswordLabel:p="Esqueci a senha",usernameLabel:f="Usuario",passwordLabel:g="Senha",submitLabel:b="Entrar",loginErrorMessage:x="Login error!",LinkComponent:w=cr,className:y}){const[k,v]=e.useState(""),[j,N]=e.useState(""),[C,S]=e.useState(!1);return n.jsxs(l.Stack,{gap:4,children:[a&&s?.icon&&n.jsx(c.AlertWithIcon,{variant:"destructive",icon:s.icon,title:s.title??"Sessão expirada",description:s.description??"Faça login novamente para continuar"}),n.jsxs(d.Card,{className:y??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[n.jsx(d.CardHeader,{className:"items-center"}),n.jsx(d.CardContent,{children:n.jsx("form",{onSubmit:e=>e.preventDefault(),children:n.jsxs("div",{className:"grid w-full items-center gap-4 mt-6",children:[n.jsxs(l.Stack,{gap:4,children:[n.jsx(m.Label,{className:"text-primary",htmlFor:"username",children:f}),n.jsx(u.Input,{id:"username",type:"text",placeholder:"Seu nome de usuário",value:k,onChange:e=>v(e.target.value)})]}),n.jsxs(l.Stack,{gap:4,children:[n.jsx(m.Label,{className:"text-primary",htmlFor:"password",children:g}),n.jsx(u.Input,{id:"password",type:"password",placeholder:"Sua senha de acesso",value:j,onChange:e=>N(e.target.value)})]})]})})}),n.jsx(d.CardFooter,{className:"justify-center items-center",children:n.jsxs(l.Stack,{gap:4,className:"justify-center items-center mt-10",children:[n.jsx(i.Button,{className:"w-full",onClick:async()=>{S(!0);try{const{error:e}=await t({username:k,password:j});if(e)return void o?.(x,String(e));r?.()}finally{S(!1)}},disabled:C,children:b}),n.jsx(w,{href:h,className:"text-primary text-xs",children:p})]})})]})]})},exports.LoginCardSSO=function({onLoginSSO:t,onRedirect:r,onError:o,sessionExpired:a=!1,sessionExpiredAlert:s,forgotPasswordHref:h="/",forgotPasswordLabel:p="Esqueci a senha",emailLabel:f="Email",submitLabel:g="Entrar com SSO",unauthorizedMessage:b="Usuario nao autorizado",genericErrorMessage:x="Erro ao fazer login",LinkComponent:w=dr,className:y}){const[k,v]=e.useState(""),[j,N]=e.useState(!1);return n.jsxs(l.Stack,{gap:4,children:[a&&s?.icon&&n.jsx(c.AlertWithIcon,{variant:"destructive",icon:s.icon,title:s.title??"Sessão expirada",description:s.description??"Faça login novamente para continuar"}),n.jsxs(d.Card,{className:y??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[n.jsx(d.CardHeader,{className:"items-center mt-4"}),n.jsx(d.CardContent,{children:n.jsx("form",{onSubmit:async e=>{e.preventDefault(),N(!0);try{const{redirect_url:e,error:n}=await t(k);if(e)return void r?.(e);const a=n?.includes("401")?b:x;o?.(a,String(n))}finally{N(!1)}},children:n.jsxs("div",{className:"grid w-full items-center gap-4 mt-6",children:[n.jsxs(l.Stack,{gap:4,children:[n.jsx(m.Label,{className:"text-primary",htmlFor:"email",children:f}),n.jsx(u.Input,{id:"email",type:"email",placeholder:"Seu email de acesso",value:k,onChange:e=>v(e.target.value),pattern:"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$",required:!0})]}),n.jsx(i.Button,{className:"w-full",type:"submit",disabled:j,children:g})]})})}),n.jsx(d.CardFooter,{className:"flex-col justify-center items-center",children:n.jsx(l.Stack,{gap:4,className:"justify-start items-center mb-7",children:n.jsx(w,{href:h,className:"text-primary text-xs",children:p})})})]})]})},exports.M2MCreateDialog=Nr,exports.M2MTable=({modelClass:t,targetModelClass:r,targetField:o,filterDict:a,relationName:s,fields:c,displayFields:d,handleCreateNew:u,handleDeleteItem:m,listFn:h,fkFetcher:f})=>{const[g,b]=e.useState(!1),[w,j]=e.useState(!1),N=t?{modelClass:t,filterDict:a,fields:c}:null,{data:C,error:S,mutate:M}=x(N,async({modelClass:e,fields:t})=>{const[r,n]=await h(e,a,[...t,"pk"]);if(n&&console.error("==> ERROR m2m table: ",n),o&&Array.isArray(r)&&r.length>0){return r?.map(e=>({...e[o],m2m:e.pk}))??[]}return[]},{revalidateOnFocus:!1,revalidateOnReconnect:!0,errorRetryCount:3,errorRetryInterval:1e3}),[P,z]=e.useState(null);return n.jsxs(l.ErrorBoundary,{hasError:!!S,children:[n.jsx(p.Accordion,{type:"multiple",className:"w-full",children:n.jsxs(p.AccordionItem,{value:"details",className:"border-b",children:[n.jsxs(p.AccordionTrigger,{className:"text-base font-normal text-surface-secondary hover:no-underline",children:[s," (",C?.length||0,")"]}),n.jsxs(p.AccordionContent,{className:"px-4 pt-4",children:[n.jsx(l.Stack,{direction:"row",className:"justify-end mb-4",children:n.jsxs(i.Button,{onClick:()=>b(!0),children:["Adicionar ",s.toLowerCase()]})}),C&&C.length>0?n.jsxs(y.Table,{className:"table-auto w-full",children:[n.jsx(y.TableHeader,{className:"sticky top-0 bg-primary text-white z-10",children:n.jsxs(y.TableRow,{children:[n.jsx(y.TableHead,{className:"px-2 py-4",children:"Id"},"pk"),d.map(e=>n.jsx(y.TableHead,{className:"px-2 py-2",children:e.name},e.field)),n.jsx(y.TableHead,{className:"px-2 py-4 text-end",children:n.jsx("div",{className:"mr-6",children:"Opções"})})]})}),n.jsxs(y.TableBody,{children:[C?.map((e,t)=>n.jsxs(y.TableRow,{className:"cursor-pointer hover:bg-secondary",children:[n.jsx(y.TableCell,{className:"px-2",children:e.pk??"N/A"},"pk"),d.map(t=>n.jsx(y.TableCell,{className:"px-2",children:e[t.field]??"N/A"},t.field)),n.jsx(y.TableCell,{className:"px-2 justify-end flex",children:n.jsx(i.Button,{variant:"ghost",size:"icon",className:"border text-muted-foreground mr-6",onClick:()=>{z(e.m2m),j(!0)},children:n.jsx(B,{className:"size-4"})})})]},t)),n.jsx(y.TableRow,{children:n.jsx(y.TableCell,{colSpan:d.length,className:"text-center py-6"})})]})]}):n.jsx(v.NoResult,{})]})]})}),n.jsx(Nr,{open:g,onOpenChange:b,targetModelClass:r,relationName:s,handleCreateNew:u,mutate:M,fkFetcher:f}),n.jsx(k.DeleteDialog,{handleDelete:async()=>{P&&(await m(P),j(!1),z(null),M())},openDialog:w,setOpenDialog:j,count:1})]})},exports.NavigationSidebar=function({links:t,iconMap:r,pathname:o,isSidebarCollapsedFromQuery:a=!1,logo:s,onLogout:i,logoutIcon:c=H,logoutLabel:d="Logout",LinkComponent:u,ImageComponent:m}){const h=o.split("/")[2]??"",{isCollapsed:p,isCollapsing:f,expandedItems:g,setExpandedItems:b,toggleCollapse:x,toggleExpanded:w,handleTransitionEnd:y,setExpandedOnCollapse:k}=C.useSidebarCollapse({initialCollapsed:a,onPersist:e=>{const t=new URLSearchParams;t.set("sidebar-collapsed",String(e)),window.history.replaceState({},"",`${window.location.pathname}?${t}`)}});return e.useEffect(()=>{if(!a){const e={};t.forEach(t=>{if(t.subItems){t.subItems.some(e=>o===e.href)&&(e[t.title]=!0)}}),b(e)}},[a,t,o,b]),n.jsxs(N.Sidebar.Root,{isCollapsed:p,isCollapsing:f,onToggleCollapse:()=>{p||k(),x()},onTransitionEnd:y,className:"h-full",children:[n.jsxs(l.Stack,{className:"w-full shrink-0 items-center gap-1 mb-2",children:[n.jsx(N.Sidebar.Toggle,{}),n.jsx(N.Sidebar.Logo,{src:s.src,width:s.width,height:s.height,collapsedWidth:s.collapsedWidth,collapsedHeight:s.collapsedHeight,alt:s.alt,ImageComponent:m})]}),n.jsx(N.Sidebar.Content,{className:"mt-6",children:t.map(e=>{const t=r[e.icon];if(!!e.subItems?.length){const r=e.subItems?.some(e=>o===e.href||h===e.href.split("/")[2]);return n.jsx(N.Sidebar.NavGroup,{icon:t,title:e.title,isExpanded:!!g[e.title],isActive:!!r,onToggle:()=>w(e.title),children:e.subItems?.map(e=>{const t=o===e.href;return n.jsx(N.Sidebar.NavSubLink,{title:e.title,href:{pathname:e.href,query:{"sidebar-collapsed":p}},active:t,LinkComponent:u},e.href)})},e.title)}const a=e.href?.split("/")[2]??"";return n.jsx(N.Sidebar.Link,{icon:t,href:{pathname:e.href,query:{"sidebar-collapsed":p}},active:h===a,LinkComponent:u,children:e.title},e.href)})}),n.jsx(N.Sidebar.Footer,{children:n.jsx(N.Sidebar.Action,{icon:c,label:d,onClick:async()=>{await i()}})})]})},exports.NotAuthenticatedView=function({error:t,loginHref:r,title:o="Erro ao autenticar!",description:a="Verifique suas informações de SSO ou converse com o administrador do sistema.",fallbackLinkLabel:s="Caso não seja redirecionado automaticamente, clique aqui",errorDetailsLabel:i="Detalhes para os Nerds",copyLabel:c="Copiar",copiedLabel:u="Copiado!",LinkComponent:m=mr,className:h}){const[f,g]=e.useState(!1),b="string"==typeof t?t:JSON.stringify(t,null,2);return n.jsx(l.Stack,{className:"justify-center items-center h-screen",children:n.jsxs(d.Card,{className:h??"w-[400px] h-[457px] rounded-[30px] shadow-lg bg-red-50",children:[n.jsx(d.CardHeader,{className:"items-center"}),n.jsxs(d.CardContent,{className:"flex flex-col items-center gap-2",children:[n.jsx(F,{size:48,className:"text-red-700"}),n.jsx("h4",{className:"text-center",children:o}),n.jsx("p",{className:"text-sm text-center",children:a}),n.jsx(m,{href:r,className:"w-full text-sm underline text-accent text-center",children:s}),n.jsx(p.Accordion,{type:"single",collapsible:!0,className:"w-full",children:n.jsxs(p.AccordionItem,{value:"error-details",children:[n.jsx(p.AccordionTrigger,{children:i}),n.jsxs(p.AccordionContent,{className:"max-w-80",children:[n.jsx("div",{className:"flex justify-end mb-1",children:n.jsx("button",{type:"button",onClick:async()=>{if(t)try{await navigator.clipboard.writeText("string"==typeof t?t:JSON.stringify(t,null,2)),g(!0),setTimeout(()=>g(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},className:"text-xs text-accent hover:underline flex items-center gap-1",children:f?n.jsxs(n.Fragment,{children:[n.jsx(q,{size:14,className:"text-green-600"})," ",u]}):n.jsxs(n.Fragment,{children:[n.jsx(A,{size:14})," ",c]})})}),n.jsx("div",{className:"max-h-24 overflow-y-auto overflow-x-hidden",children:n.jsx("pre",{className:"bg-gray-100 p-4 rounded-md",children:n.jsx("code",{className:"text-sm text-red-600 dark:text-red-400 whitespace-pre-wrap break-words",children:b})})})]})]})})]})]})})},exports.formatDetailLabel=fr,exports.formatDetailValue=gr,exports.getDetailFieldValue=br;
27
+ */function Y(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&$ in e?e[$](t):e instanceof Date?new e.constructor(t):new Date(t)}function R(e,t){return Y(t||e,e)}let V={};function Q(){return V}function U(e,t){const r=Q(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=R(e,t?.in),o=n.getDay(),s=(o<a?7:0)+o-a;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function X(e,t){return U(e,{...t,weekStartsOn:1})}function J(e,t){const r=R(e,t?.in),a=r.getFullYear(),n=Y(r,0);n.setFullYear(a+1,0,4),n.setHours(0,0,0,0);const o=X(n),s=Y(r,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);const i=X(s);return r.getTime()>=o.getTime()?a+1:r.getTime()>=i.getTime()?a:a-1}function K(e){const t=R(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 Z(e,t){const r=R(e,t?.in);return r.setHours(0,0,0,0),r}function ee(e,t,r){const[a,n]=function(e,...t){const r=Y.bind(null,t.find(e=>"object"==typeof e));return t.map(r)}(0,e,t),o=Z(a),s=Z(n),i=+o-K(o),l=+s-K(s);return Math.round((i-l)/864e5)}function te(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+R(e)));var t}const re={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 ae(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const ne={date:ae({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ae({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:ae({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},oe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function se(e){return(t,r)=>{let a;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,n=r?.width?String(r.width):t;a=e.formattingValues[n]||e.formattingValues[t]}else{const t=e.defaultWidth,n=r?.width?String(r.width):e.defaultWidth;a=e.values[n]||e.values[t]}return a[e.argumentCallback?e.argumentCallback(t):t]}}const ie={ordinalNumber:(e,t)=>{const r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:se({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:se({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:se({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:se({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:se({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"})};function le(e){return(t,r={})=>{const a=r.width,n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(n);if(!o)return null;const s=o[0],i=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(i,e=>e.test(s)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(i,e=>e.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(s.length)}}}const ce={ordinalNumber:(de={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(de.matchPattern);if(!r)return null;const a=r[0],n=e.match(de.parsePattern);if(!n)return null;let o=de.valueCallback?de.valueCallback(n[0]):n[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(a.length)}}),era:le({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:le({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:le({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:le({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:le({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"})};var de;const ue={code:"en-US",formatDistance:(e,t,r)=>{let a;const n=re[e];return a="string"==typeof n?n:1===t?n.one:n.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a},formatLong:ne,formatRelative:(e,t,r,a)=>oe[e],localize:ie,match:ce,options:{weekStartsOn:0,firstWeekContainsDate:1}};function me(e,t){const r=R(e,t?.in),a=ee(r,function(e,t){const r=R(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return a+1}function he(e,t){const r=R(e,t?.in),a=+X(r)-+function(e,t){const r=J(e,t),a=Y(e,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),X(a)}(r);return Math.round(a/G)+1}function pe(e,t){const r=R(e,t?.in),a=r.getFullYear(),n=Q(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=Y(t?.in||e,0);s.setFullYear(a+1,0,o),s.setHours(0,0,0,0);const i=U(s,t),l=Y(t?.in||e,0);l.setFullYear(a,0,o),l.setHours(0,0,0,0);const c=U(l,t);return+r>=+i?a+1:+r>=+c?a:a-1}function fe(e,t){const r=R(e,t?.in),a=+U(r,t)-+function(e,t){const r=Q(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=pe(e,t),o=Y(t?.in||e,0);return o.setFullYear(n,0,a),o.setHours(0,0,0,0),U(o,t)}(r,t);return Math.round(a/G)+1}function ge(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const be={y(e,t){const r=e.getFullYear(),a=r>0?r:1-r;return ge("yy"===t?a%100:a,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):ge(r+1,2)},d:(e,t)=>ge(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)=>ge(e.getHours()%12||12,t.length),H:(e,t)=>ge(e.getHours(),t.length),m:(e,t)=>ge(e.getMinutes(),t.length),s:(e,t)=>ge(e.getSeconds(),t.length),S(e,t){const r=t.length,a=e.getMilliseconds();return ge(Math.trunc(a*Math.pow(10,r-3)),t.length)}},xe="midnight",we="noon",ye="morning",ke="afternoon",ve="evening",je="night",Ne={G:function(e,t,r){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),a=t>0?t:1-t;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,a){const n=pe(e,a),o=n>0?n:1-n;if("YY"===t){return ge(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):ge(o,t.length)},R:function(e,t){return ge(J(e),t.length)},u:function(e,t){return ge(e.getFullYear(),t.length)},Q:function(e,t,r){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return ge(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return ge(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){const a=e.getMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return ge(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){const n=fe(e,a);return"wo"===t?r.ordinalNumber(n,{unit:"week"}):ge(n,t.length)},I:function(e,t,r){const a=he(e);return"Io"===t?r.ordinalNumber(a,{unit:"week"}):ge(a,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){const a=me(e);return"Do"===t?r.ordinalNumber(a,{unit:"dayOfYear"}):ge(a,t.length)},E:function(e,t,r){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){const n=e.getDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ge(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});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"})}},c:function(e,t,r,a){const n=e.getDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ge(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){const a=e.getDay(),n=0===a?7:a;switch(t){case"i":return String(n);case"ii":return ge(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const a=e.getHours();let n;switch(n=12===a?we:0===a?xe:a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){const a=e.getHours();let n;switch(n=a>=17?ve:a>=12?ke:a>=4?ye:je,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{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 be.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){const a=e.getHours()%12;return"Ko"===t?r.ordinalNumber(a,{unit:"hour"}):ge(a,t.length)},k:function(e,t,r){let a=e.getHours();return 0===a&&(a=24),"ko"===t?r.ordinalNumber(a,{unit:"hour"}):ge(a,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r){const a=e.getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return Se(a);case"XXXX":case"XX":return Me(a);default:return Me(a,":")}},x:function(e,t,r){const a=e.getTimezoneOffset();switch(t){case"x":return Se(a);case"xxxx":case"xx":return Me(a);default:return Me(a,":")}},O:function(e,t,r){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ce(a,":");default:return"GMT"+Me(a,":")}},z:function(e,t,r){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ce(a,":");default:return"GMT"+Me(a,":")}},t:function(e,t,r){return ge(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return ge(+e,t.length)}};function Ce(e,t=""){const r=e>0?"-":"+",a=Math.abs(e),n=Math.trunc(a/60),o=a%60;return 0===o?r+String(n):r+String(n)+t+ge(o,2)}function Se(e,t){if(e%60==0){return(e>0?"-":"+")+ge(Math.abs(e)/60,2)}return Me(e,t)}function Me(e,t=""){const r=e>0?"-":"+",a=Math.abs(e);return r+ge(Math.trunc(a/60),2)+t+ge(a%60,2)}const Pe=(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"})}},ze=(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"})}},De={p:ze,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],a=r[1],n=r[2];if(!n)return Pe(e,t);let o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Pe(a,t)).replace("{{time}}",ze(n,t))}},Te=/^D+$/,_e=/^Y+$/,Le=["D","DD","YY","YYYY"];const qe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ae=/^'([^]*?)'?$/,Ee=/''/g,Oe=/[a-zA-Z]/;function We(e,t,r){const a=Q(),n=a.locale??ue,o=a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=a.weekStartsOn??a.locale?.options?.weekStartsOn??0,i=R(e,r?.in);if(!te(i))throw new RangeError("Invalid time value");let l=t.match(Fe).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,De[t])(e,n.formatLong)}return e}).join("").match(qe).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ie(e)};if(Ne[t])return{isToken:!0,value:e};if(t.match(Oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});n.localize.preprocessor&&(l=n.localize.preprocessor(i,l));const c={firstWeekContainsDate:o,weekStartsOn:s,locale:n};return l.map(r=>{if(!r.isToken)return r.value;const a=r.value;(function(e){return _e.test(e)}(a)||function(e){return Te.test(e)}(a))&&function(e,t,r){const a=function(e,t,r){const a="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(a),Le.includes(e))throw new RangeError(a)}(a,t,String(e));return(0,Ne[a[0]])(i,a,n.localize,c)}).join("")}function Ie(e){const t=e.match(Ae);return t?t[1].replace(Ee,"'"):e}const He="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",Be="text-muted-foreground",Ge="size-4 shrink-0 text-muted-foreground opacity-50";function $e(e){var t,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=$e(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}const Ye=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Re="-",Ve=[],Qe=e=>{const t=Je(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Xe(e);const r=e.split(Re),a=""===r[0]&&r.length>1?1:0;return Ue(r,a,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=a[e],n=r[e];return t?n?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let a=0;a<t.length;a++)r[e.length+a]=t[a];return r})(n,t):t:n||Ve}return r[e]||Ve}}},Ue=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const a=e[t],n=r.nextPart.get(a);if(n){const r=Ue(e,t+1,n);if(r)return r}const o=r.validators;if(null===o)return;const s=0===t?e.join(Re):e.slice(t).join(Re),i=o.length;for(let e=0;e<i;e++){const t=o[e];if(t.validator(s))return t.classGroupId}},Xe=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?"arbitrary.."+a:void 0})(),Je=e=>{const{theme:t,classGroups:r}=e;return Ke(r,t)},Ke=(e,t)=>{const r=Ye();for(const a in e){const n=e[a];Ze(n,r,a,t)}return r},Ze=(e,t,r,a)=>{const n=e.length;for(let o=0;o<n;o++){const n=e[o];et(n,t,r,a)}},et=(e,t,r,a)=>{"string"!=typeof e?"function"!=typeof e?at(e,t,r,a):rt(e,t,r,a):tt(e,t,r)},tt=(e,t,r)=>{(""===e?t:nt(t,e)).classGroupId=r},rt=(e,t,r,a)=>{ot(e)?Ze(e(a),t,r,a):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},at=(e,t,r,a)=>{const n=Object.entries(e),o=n.length;for(let e=0;e<o;e++){const[o,s]=n[e];Ze(s,nt(t,o),r,a)}},nt=(e,t)=>{let r=e;const a=t.split(Re),n=a.length;for(let e=0;e<n;e++){const t=a[e];let n=r.nextPart.get(t);n||(n=Ye(),r.nextPart.set(t,n)),r=n}return r},ot=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,st=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null);const n=(n,o)=>{r[n]=o,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=a[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}},it=[],lt=(e,t,r,a,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:n}),ct=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=e=>{const t=[];let r,a=0,n=0,o=0;const s=e.length;for(let i=0;i<s;i++){const s=e[i];if(0===a&&0===n){if(":"===s){t.push(e.slice(o,i)),o=i+1;continue}if("/"===s){r=i;continue}}"["===s?a++:"]"===s?a--:"("===s?n++:")"===s&&n--}const i=0===t.length?e:e.slice(o);let l=i,c=!1;i.endsWith("!")?(l=i.slice(0,-1),c=!0):i.startsWith("!")&&(l=i.slice(1),c=!0);return lt(t,c,l,r&&r>o?r-o:void 0)};if(t){const e=t+":",r=a;a=t=>t.startsWith(e)?r(t.slice(e.length)):lt(it,!1,t,void 0,!0)}if(r){const e=a;a=t=>r({className:t,parseClassName:e})}return a},dt=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let a=[];for(let n=0;n<e.length;n++){const o=e[n],s="["===o[0],i=t.has(o);s||i?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(o)):a.push(o)}return a.length>0&&(a.sort(),r.push(...a)),r}},ut=/\s+/,mt=e=>{if("string"==typeof e)return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=mt(e[a]))&&(r&&(r+=" "),r+=t);return r},ht=(e,...t)=>{let r,a,n,o;const s=e=>{const t=a(e);if(t)return t;const o=((e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:o}=t,s=[],i=e.trim().split(ut);let l="";for(let e=i.length-1;e>=0;e-=1){const t=i[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=a(p?m.substring(0,h):m);if(!f){if(!p){l=t+(l.length>0?" "+l:l);continue}if(f=a(m),!f){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=0===d.length?"":1===d.length?d[0]:o(d).join(":"),b=u?g+"!":g,x=b+f;if(s.indexOf(x)>-1)continue;s.push(x);const w=n(f,p);for(let e=0;e<w.length;++e){const t=w[e];s.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return n(e,o),o};return o=i=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:st(e.cacheSize),parseClassName:ct(e),sortModifiers:dt(e),...Qe(e)}))(l),a=r.cache.get,n=r.cache.set,o=s,s(i)},(...e)=>o(((...e)=>{let t,r,a=0,n="";for(;a<e.length;)(t=e[a++])&&(r=mt(t))&&(n&&(n+=" "),n+=r);return n})(...e))},pt=[],ft=e=>{const t=t=>t[e]||pt;return t.isThemeGetter=!0,t},gt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+\/\d+$/,wt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yt=/\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$/,kt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nt=e=>xt.test(e),Ct=e=>!!e&&!Number.isNaN(Number(e)),St=e=>!!e&&Number.isInteger(Number(e)),Mt=e=>e.endsWith("%")&&Ct(e.slice(0,-1)),Pt=e=>wt.test(e),zt=()=>!0,Dt=e=>yt.test(e)&&!kt.test(e),Tt=()=>!1,_t=e=>vt.test(e),Lt=e=>jt.test(e),qt=e=>!At(e)&&!Bt(e),Ft=e=>Ut(e,Zt,Tt),At=e=>gt.test(e),Et=e=>Ut(e,er,Dt),Ot=e=>Ut(e,tr,Ct),Wt=e=>Ut(e,Jt,Tt),It=e=>Ut(e,Kt,Lt),Ht=e=>Ut(e,ar,_t),Bt=e=>bt.test(e),Gt=e=>Xt(e,er),$t=e=>Xt(e,rr),Yt=e=>Xt(e,Jt),Rt=e=>Xt(e,Zt),Vt=e=>Xt(e,Kt),Qt=e=>Xt(e,ar,!0),Ut=(e,t,r)=>{const a=gt.exec(e);return!!a&&(a[1]?t(a[1]):r(a[2]))},Xt=(e,t,r=!1)=>{const a=bt.exec(e);return!!a&&(a[1]?t(a[1]):r)},Jt=e=>"position"===e||"percentage"===e,Kt=e=>"image"===e||"url"===e,Zt=e=>"length"===e||"size"===e||"bg-size"===e,er=e=>"length"===e,tr=e=>"number"===e,rr=e=>"family-name"===e,ar=e=>"shadow"===e,nr=ht(()=>{const e=ft("color"),t=ft("font"),r=ft("text"),a=ft("font-weight"),n=ft("tracking"),o=ft("leading"),s=ft("breakpoint"),i=ft("container"),l=ft("spacing"),c=ft("radius"),d=ft("shadow"),u=ft("inset-shadow"),m=ft("text-shadow"),h=ft("drop-shadow"),p=ft("blur"),f=ft("perspective"),g=ft("aspect"),b=ft("ease"),x=ft("animate"),w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Bt,At],y=()=>[Bt,At,l],k=()=>[Nt,"full","auto",...y()],v=()=>[St,"none","subgrid",Bt,At],j=()=>["auto",{span:["full",St,Bt,At]},St,Bt,At],N=()=>[St,"auto",Bt,At],C=()=>["auto","min","max","fr",Bt,At],S=()=>["auto",...y()],M=()=>[Nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],P=()=>[e,Bt,At],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Yt,Wt,{position:[Bt,At]}],D=()=>["auto","cover","contain",Rt,Ft,{size:[Bt,At]}],T=()=>[Mt,Gt,Et],_=()=>["","none","full",c,Bt,At],L=()=>["",Ct,Gt,Et],q=()=>[Ct,Mt,Yt,Wt],F=()=>["","none",p,Bt,At],A=()=>["none",Ct,Bt,At],E=()=>["none",Ct,Bt,At],O=()=>[Ct,Bt,At],W=()=>[Nt,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pt],breakpoint:[Pt],color:[zt],container:[Pt],"drop-shadow":[Pt],ease:["in","out","in-out"],font:[qt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pt],shadow:[Pt],spacing:["px",Ct],text:[Pt],"text-shadow":[Pt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nt,At,Bt,g]}],container:["container"],columns:[{columns:[Ct,At,Bt,i]}],"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:w()}],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:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[St,"auto",Bt,At]}],basis:[{basis:[Nt,"full","auto",i,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ct,Nt,"auto","initial","none",At]}],grow:[{grow:["",Ct,Bt,At]}],shrink:[{shrink:["",Ct,Bt,At]}],order:[{order:[St,"first","last","none",Bt,At]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"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:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],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":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[i,"screen",...M()]}],"min-w":[{"min-w":[i,"screen","none",...M()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",r,Gt,Et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Bt,Ot]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mt,At]}],"font-family":[{font:[$t,At,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:[n,Bt,At]}],"line-clamp":[{"line-clamp":[Ct,"none",Bt,Ot]}],leading:[{leading:[o,...y()]}],"list-image":[{"list-image":["none",Bt,At]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Bt,At]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Ct,"from-font","auto",Bt,Et]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Ct,"auto",Bt,At]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Bt,At]}],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",Bt,At]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},St,Bt,At],radial:["",Bt,At],conic:[St,Bt,At]},Vt,It]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Ct,Bt,At]}],"outline-w":[{outline:["",Ct,Gt,Et]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",d,Qt,Ht]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",u,Qt,Ht]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Ct,Et]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",m,Qt,Ht]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Ct,Bt,At]}],"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":[Ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Bt,At]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":[Ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Bt,At]}],filter:[{filter:["","none",Bt,At]}],blur:[{blur:F()}],brightness:[{brightness:[Ct,Bt,At]}],contrast:[{contrast:[Ct,Bt,At]}],"drop-shadow":[{"drop-shadow":["","none",h,Qt,Ht]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Ct,Bt,At]}],"hue-rotate":[{"hue-rotate":[Ct,Bt,At]}],invert:[{invert:["",Ct,Bt,At]}],saturate:[{saturate:[Ct,Bt,At]}],sepia:[{sepia:["",Ct,Bt,At]}],"backdrop-filter":[{"backdrop-filter":["","none",Bt,At]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[Ct,Bt,At]}],"backdrop-contrast":[{"backdrop-contrast":[Ct,Bt,At]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ct,Bt,At]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ct,Bt,At]}],"backdrop-invert":[{"backdrop-invert":["",Ct,Bt,At]}],"backdrop-opacity":[{"backdrop-opacity":[Ct,Bt,At]}],"backdrop-saturate":[{"backdrop-saturate":[Ct,Bt,At]}],"backdrop-sepia":[{"backdrop-sepia":["",Ct,Bt,At]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Bt,At]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ct,"initial",Bt,At]}],ease:[{ease:["linear","initial",b,Bt,At]}],delay:[{delay:[Ct,Bt,At]}],animate:[{animate:["none",x,Bt,At]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Bt,At]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:A()}],"rotate-x":[{"rotate-x":A()}],"rotate-y":[{"rotate-y":A()}],"rotate-z":[{"rotate-z":A()}],scale:[{scale:E()}],"scale-x":[{"scale-x":E()}],"scale-y":[{"scale-y":E()}],"scale-z":[{"scale-z":E()}],"scale-3d":["scale-3d"],skew:[{skew:O()}],"skew-x":[{"skew-x":O()}],"skew-y":[{"skew-y":O()}],transform:[{transform:[Bt,At,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:W()}],"translate-x":[{"translate-x":W()}],"translate-y":[{"translate-y":W()}],"translate-z":[{"translate-z":W()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",Bt,At]}],"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":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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",Bt,At]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Ct,Gt,Et,Ot]}],stroke:[{stroke:["none",...P()]}],"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 or(...e){return nr(function(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=$e(e))&&(a&&(a+=" "),a+=t);return a}(e))}const sr=({startDate:e,endDate:n,onStartDateChange:o,onEndDateChange:s,startLabel:i="Start date",endLabel:l="End date",className:c})=>a.jsx("div",{className:or("flex flex-col gap-2",c),children:a.jsxs("div",{className:"flex flex-row gap-2 items-center",children:[a.jsxs(r.Popover,{children:[a.jsx(r.PopoverTrigger,{asChild:!0,children:a.jsxs("button",{type:"button",className:or(He,"justify-start text-left w-[240px]",!e&&Be),children:[a.jsx(L,{className:or("mr-2",Ge)}),e?We(e,"PPP"):i]})}),a.jsx(r.PopoverContent,{className:"w-fit p-0",align:"start",children:a.jsx(t.Calendar,{mode:"single",selected:e,onSelect:o,initialFocus:!0})})]}),a.jsxs(r.Popover,{children:[a.jsx(r.PopoverTrigger,{asChild:!0,children:a.jsxs("button",{type:"button",className:or(He,"justify-start text-left w-[240px]",!n&&Be),children:[a.jsx(L,{className:or("mr-2",Ge)}),n?We(n,"PPP"):l]})}),a.jsx(r.PopoverContent,{className:"w-fit p-0",align:"start",children:a.jsx(t.Calendar,{mode:"single",selected:n,onSelect:s,initialFocus:!0})})]})]})}),ir=({value:e,onChange:t,fetcher:r,className:o})=>a.jsx(n.FKSelect,{fetcher:r,modelClass:"User",className:or("max-w-36 h-10",o),placeholder:"Creator user",emptyMessage:"No user found",labelName:"username",value:e,onChange:t});function lr({data:e}){return a.jsx(l.Stack,{direction:"row",gap:2,className:"flex-wrap",children:Object.entries(e).map(([e,t])=>a.jsx(l.Stack,{direction:"row",gap:1,className:"bg-muted px-3 py-1.5 rounded-md text-sm",children:a.jsxs("span",{className:"font-medium text-foreground",children:[e," : ",String(t)]})},e))})}const cr=({href:e,className:t,children:r})=>a.jsx("a",{href:e,className:t,children:r});const dr=({href:e,className:t,children:r})=>a.jsx("a",{href:e,className:t,children:r});const ur=({href:e,className:t,children:r})=>a.jsx("a",{href:e,className:t,children:r});const mr=({href:e,className:t,children:r})=>a.jsx("a",{href:e,className:t,children:r});const hr={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"},pr=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"})},fr=(e,t)=>({...hr,...t}[e]||e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")),gr=(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??pr)(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)},br=(e,t)=>{const r=e[t];return r&&"object"==typeof r&&null!==r&&"__display_field__"in r?r.__display_field__:r},xr=["description","notes"],wr=[{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}];const yr=g.Select,kr={description:"Descrição",code:"Código",notes:"Notas",force_temperature:"Temperatura Forçada",dimensions:"Tags",extra_info:"Informações extras"},vr=(e,t)=>t?.[e]?t[e]:kr[e]?kr[e]:e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");function jr({value:t={},onChange:r,name:n,placeholderKey:o="Chave",placeholderValue:s="Valor",disabled:c=!1}){const[d,m]=e.useState({key:"",value:""});return a.jsxs(l.Stack,{direction:"col",gap:2,children:[a.jsxs("div",{className:"flex gap-2",children:[a.jsx(u.Input,{type:"text",name:`${n}_key`,placeholder:o,value:d.key,disabled:c,onChange:e=>m(t=>({...t,key:e.target.value})),className:"flex-1"}),a.jsx(u.Input,{type:"text",name:`${n}_value`,placeholder:s,value:d.value,disabled:c,onChange:e=>m(t=>({...t,value:e.target.value})),className:"flex-1"}),a.jsx(i.Button,{type:"button",variant:"default",className:"px-4 py-2 shrink-0",id:`${n}_add`,onClick:()=>{const e=d.key.trim(),t=d.value.trim();e&&(r(r=>({...r&&"object"==typeof r?r:{},[e]:t})),m({key:"",value:""}))},disabled:c||!d.key.trim(),children:"Adicionar"})]}),Object.entries(t).length>0&&a.jsx(l.Stack,{direction:"row",gap:2,className:"flex-wrap",children:Object.entries(t).map(([e,t])=>a.jsxs(l.Stack,{direction:"row",gap:1,className:"bg-muted px-3 py-1.5 rounded-md text-sm",children:[a.jsxs("span",{className:"font-medium text-foreground",children:[e," : ",String(t)]}),!c&&a.jsx("button",{type:"button",onClick:()=>{return t=e,void r(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))})]})}const Nr=({open:t,onOpenChange:r,targetModelClass:o,relationName:s,handleCreateNew:c,mutate:d,fkFetcher:u})=>{const[m,h]=e.useState("");return a.jsx(w.Dialog,{open:t,onOpenChange:r,children:a.jsx(w.DialogContent,{className:"max-w-3xl centered p-0 border-none bg-transparent shadow-none",children:a.jsx(l.Stack,{gap:3,direction:"row",className:"w-full items-center justify-center",children:a.jsxs("div",{className:"flex flex-col gap-4 p-6 border border-gray-200 bg-white rounded-lg shadow-sm",children:[a.jsx(n.FKSelect,{fetcher:u,modelClass:o,labelName:"description",placeholder:`Selecione um(a) ${s.toLocaleLowerCase()}`,emptyMessage:`Nenhum(a) ${s.toLocaleLowerCase()} encontrado(a)`,value:m,onChange:e=>{h(String(e))}}),a.jsx(i.Button,{onClick:async()=>{await c(m),r(!1),h(""),d()},children:"Salvar"}),a.jsx(i.Button,{variant:"secondary",onClick:()=>{r(!1),h("")},children:"Cancelar"})]})})})})};const Cr=(e,t)=>{const r=document.createElement("a");r.href=e,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)};exports.AuthenticatedView=function({redirectHref:t,redirectDelayMs:r=3e3,onRedirect:n,title:o="Autenticado com sucesso! Redirecionado automaticamente",fallbackLinkLabel:s="Caso nao seja redirecionado automaticamente, clique aqui",LinkComponent:i=ur,className:l}){return e.useEffect(()=>{const e=setTimeout(()=>{n?.(t)},r);return()=>clearTimeout(e)},[t,r,n]),a.jsx("div",{className:"flex justify-center items-center h-screen",children:a.jsxs(d.Card,{className:l??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[a.jsx(d.CardHeader,{className:"items-center mt-4"}),a.jsxs(d.CardContent,{className:"flex flex-col gap-4",children:[a.jsx(h.Spinner,{}),a.jsx("h4",{className:"text-center",children:o}),a.jsx(i,{href:t,className:"w-full text-sm underline text-accent text-center",children:s})]})]})})},exports.AutoDetailContent=function({data:e,config:t,formatters:r,wrapperElements:n,statusLabels:o,formatDate:s}){const i=t?.sections||wr,c={statusLabels:o,formatDate:s},d=o=>{if(!(o in e))return null;const s=t?.labels?.[o]||fr(o,t?.labels),i=(r||[]).find(e=>e.key===o)?.formatter||t?.formatters?.[o],d=br(e,o),u=i?i(d):gr(d,o,c),m=xr.includes(o),h=n?.find(e=>e.keys.includes(o));if(h?.element){const t=h.element({key:o,label:s,fieldValue:d,isFullWidth:m,data:e});return a.jsx(l.Stack,{direction:"col",className:m?"col-span-full min-w-0":"min-w-0",children:t},o)}return a.jsxs(l.Stack,{direction:"col",className:m?"col-span-full min-w-0":"min-w-0",children:[a.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:s}),a.jsx("p",{className:"text-base break-words whitespace-pre-wrap",children:u})]},o)},u=e.results;return a.jsxs(l.Stack,{direction:"col",gap:6,children:[i.map(t=>{const r=t.fields.filter(t=>t in e);return 0===r.length?null:t.isFullWidth?a.jsxs(l.Stack,{direction:"col",gap:3,children:[a.jsx("h3",{className:"text-sm font-semibold text-foreground",children:t.title}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-1 xl:grid-cols-1 gap-x-6 gap-y-4",children:r.map(e=>d(e))})]},t.title):a.jsxs(l.Stack,{direction:"col",gap:3,children:[a.jsx("h3",{className:"text-sm font-semibold text-foreground",children:t.title}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-4",children:r.map(e=>d(e))})]},t.title)}),Boolean(e.dimensions&&"object"==typeof e.dimensions&&Object.keys(e.dimensions).length>0)&&a.jsxs(l.Stack,{direction:"col",gap:3,children:[a.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Tags"}),a.jsx(lr,{data:e.dimensions})]}),Boolean(e.extra_info&&"object"==typeof e.extra_info&&Object.keys(e.extra_info).length>0)&&a.jsxs(l.Stack,{direction:"col",gap:3,children:[a.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Informações Extras"}),a.jsx(lr,{data:e.extra_info})]}),u?.processing_results&&a.jsx(p.Accordion,{type:"single",collapsible:!0,children:a.jsxs(p.AccordionItem,{value:"processing-results",className:"border-b-0",children:[a.jsx(p.AccordionTrigger,{className:"text-sm font-semibold text-foreground hover:no-underline py-2",children:"Resultados do Processamento"}),a.jsx(p.AccordionContent,{children:a.jsxs(l.Stack,{direction:"col",gap:4,children:[a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[{label:"Adicionados",value:u.processing_results.count__added,color:"text-green-600"},{label:"Atualizados",value:u.processing_results.count__updated,color:"text-blue-600"},{label:"Sem Alteração",value:u.processing_results.count__no_change,color:"text-gray-600"}].map(e=>a.jsxs(l.Stack,{direction:"col",children:[a.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:e.label}),a.jsx("p",{className:`text-2xl font-bold ${e.color}`,children:e.value})]},e.label))}),u.processing_results.details&&u.processing_results.details.length>0&&a.jsxs(l.Stack,{direction:"col",gap:2,children:[a.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Detalhes"}),a.jsx(l.Stack,{direction:"col",gap:2,children:u.processing_results.details.map((e,r)=>{const n=`detail-${r}-${Object.values(e).join("-")}`;return a.jsx(l.Stack,{className:"border rounded-lg p-3",children:a.jsx(l.Stack,{className:"grid grid-cols-4 gap-2",children:Object.entries(e).map(([e,r])=>a.jsxs(l.Stack,{direction:"col",children:[a.jsx("p",{className:"text-xs text-muted-foreground",children:fr(e,t?.labels)}),a.jsx("p",{className:"text-sm font-medium",children:gr(r,e,c)})]},e))})},n)})})]})]})})]})})]})},exports.AutoFormContent=function({fields:t,values:r,defaultValue:n={},onChange:o,errors:s={},config:i,customFields:c}){const[d,m]=e.useState(n),h=r??d,p=(e,t)=>{o?o(r=>{const a=r&&"object"==typeof r?r:h,n=a[e],o="function"==typeof t?t(n):t;return{...a,[e]:o}}):m(r=>{const a=r[e],n="function"==typeof t?t(a):t;return{...r,[e]:n}})};e.useEffect(()=>{Object.keys(n).length>0&&0===Object.keys(h).length&&m(n)},[n,h]);const x=Object.keys(t).filter(e=>!i?.exclude?.includes(e)),w=i?.sections||[{title:"Dados do Formulário",fields:x,cols:1}],y=(e,t)=>{const r=h[e]??"",n=s[e],o=t.disabled;if(c?.[e])return c[e]({value:r,onChange:t=>p(e,t),error:n,disabled:o,fieldKey:e});switch(t.type){case"textarea":return a.jsx(b.Textarea,{id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>p(e,t.target.value),required:t.required,disabled:o,className:or("min-h-[120px] w-full",n&&"border-destructive")});case"checkbox":return a.jsxs("div",{className:"flex items-center gap-2 py-2",children:[a.jsx(f.Checkbox,{id:e,name:e,checked:!!r,onCheckedChange:t=>p(e,!!t),disabled:o}),a.jsx("label",{htmlFor:e,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:vr(e,i?.labels)})]});case"select":return a.jsxs(yr,{name:e,value:r,onValueChange:t=>p(e,t),disabled:o,children:[a.jsx(g.SelectTrigger,{"data-testid":`${e}-select-trigger`,children:a.jsx(g.SelectValue,{placeholder:t.placeholder||"Selecione..."})}),a.jsx(g.SelectContent,{children:t.options?.map(t=>a.jsx(g.SelectItem,{"data-testid":`${e}-select-item-${t.value}`,value:t.value,children:t.label},t.value))})]},r?"loaded":"empty");case"key-value":return a.jsxs(a.Fragment,{children:[a.jsx(jr,{value:r||{},name:e,onChange:t=>p(e,t),placeholderKey:"Chave",placeholderValue:"Valor",disabled:o}),a.jsx("input",{type:"hidden",name:e,value:JSON.stringify(r||{})})]});case"number":return a.jsx(u.Input,{type:"number",id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>{const r=""===t.target.value?"":Number(t.target.value);p(e,r)},required:t.required,disabled:o,className:or("w-full",n&&"border-destructive")});case"date":return a.jsx(u.Input,{type:"date",id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>p(e,t.target.value),required:t.required,disabled:o,className:or("w-full",n&&"border-destructive")});default:return a.jsx(u.Input,{type:t.type,id:e,name:e,placeholder:t.placeholder,value:r,onChange:t=>p(e,t.target.value),required:t.required,disabled:o,className:or("w-full",n&&"border-destructive")})}};return a.jsx(l.Stack,{direction:"col",gap:6,className:"w-full",children:w.map(e=>{const r=e.fields.filter(e=>e in t&&!i?.exclude?.includes(e));if(0===r.length)return null;const n=1===e.cols?"grid-cols-1":2===e.cols?"grid-cols-1 sm:grid-cols-2":3===e.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 a.jsxs(l.Stack,{direction:"col",gap:3,className:"w-full",children:[a.jsx("h3",{className:"text-sm font-semibold text-foreground",children:e.title}),a.jsx("div",{className:or("grid gap-x-6 gap-y-4 w-full",n),children:r.map(r=>{const n=t[r],o=e.isFullWidth||"textarea"===n.type||"key-value"===n.type||4===n.cols,c=s[r],d="checkbox"!==n.type;return a.jsxs(l.Stack,{direction:"col",gap:1.5,className:or(o?"col-span-full":"",n.className),children:[d&&a.jsxs("label",{htmlFor:r,className:"text-fontcolor-secondary font-bold text-sm",children:[vr(r,i?.labels),n.required&&a.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}),y(r,n),c&&a.jsx("span",{className:"text-xs text-destructive font-medium mt-0.5",children:c})]},r)})})]},e.title)})})},exports.CombinedFilterTable=()=>{const[t,r]=e.useState(),[n,l]=e.useState(),[c,d]=e.useState(null),u=[{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"}],m=u.filter(e=>{let r=!0;const a=new Date(e.created_at);return t&&a<t&&(r=!1),n&&a>n&&(r=!1),c&&e.user_id!==Number(c)&&(r=!1),r});return a.jsxs("div",{className:"flex flex-col gap-6 p-4 border rounded-lg bg-white",children:[a.jsx("h2",{className:"text-xl font-bold",children:"Combined Filter & Table Demo"}),a.jsxs("div",{className:"flex flex-wrap gap-4 items-end",children:[a.jsx(sr,{startDate:t,endDate:n,onStartDateChange:r,onEndDateChange:l}),a.jsx(ir,{fetcher:async({search:e,modelClass:t,limit:r,offset:a})=>{await new Promise(e=>setTimeout(e,300));const n=[{pk:1,username:"admin"},{pk:2,username:"jdoe"},{pk:3,username:"guest"}];return e?n.filter(t=>t.username.toLowerCase().includes(e.toLowerCase())):n},value:c,onChange:e=>d(e)}),a.jsx(i.Button,{variant:"outline",className:"h-full",onClick:()=>{r(void 0),l(void 0),d(null)},children:"Clear Filters"})]}),a.jsx("div",{className:"border rounded-md overflow-hidden",children:a.jsxs(o.PumpwoodTable.Root,{children:[a.jsx(o.PumpwoodTable.Header,{children:a.jsxs(o.PumpwoodTable.Row,{children:[a.jsx(o.PumpwoodTable.Head,{children:"ID"}),a.jsx(o.PumpwoodTable.Head,{children:"Description"}),a.jsx(o.PumpwoodTable.Head,{children:"Created At"}),a.jsx(o.PumpwoodTable.Head,{children:"Created By"}),a.jsx(o.PumpwoodTable.Head,{children:"Status"})]})}),a.jsx(o.PumpwoodTable.Body,{children:m.length>0?m.map(e=>a.jsxs(o.PumpwoodTable.Row,{children:[a.jsx(o.PumpwoodTable.Cell,{children:e.pk}),a.jsx(o.PumpwoodTable.Cell,{children:e.description}),a.jsx(o.PumpwoodTable.Cell,{children:We(new Date(e.created_at),"PPP")}),a.jsx(o.PumpwoodTable.Cell,{children:e.username}),a.jsx(o.PumpwoodTable.Cell,{children:e.status})]},e.pk)):a.jsx(o.PumpwoodTable.Row,{children:a.jsx(o.PumpwoodTable.Cell,{colSpan:5,children:a.jsx(s.EmptyContainer,{title:"No results found",description:"No data was found for the selected filters."})})})})]})}),a.jsxs("div",{className:"text-xs text-gray-400",children:["Showing ",m.length," of ",u.length," records."]})]})},exports.CreatedByUserFilter=ir,exports.CustomBreadcrumb=function({label:t,steps:r=[]}){return a.jsx(j.Breadcrumb,{className:"mb-6",children:a.jsxs(j.BreadcrumbList,{children:[a.jsx(j.BreadcrumbItem,{children:a.jsx(j.BreadcrumbPage,{className:"text-primary font-medium",children:t})}),r.map(t=>a.jsxs(e.Fragment,{children:[a.jsx(j.BreadcrumbSeparator,{}),a.jsx(j.BreadcrumbItem,{children:a.jsx(j.BreadcrumbPage,{className:"text-muted-foreground",children:t})})]},`step-fragment-${t}`))]})})},exports.DateRangeFilter=sr,exports.DetailPage=function({title:e,titleAddon:t,isLoading:r=!1,error:n=null,onBack:o,actions:s,sections:c=[],children:d,loadingComponent:u,errorComponent:m,backButtonLabel:f="Voltar"}){return r?u??a.jsx(l.Stack,{className:"justify-center items-center p-8",children:a.jsx(h.Spinner,{})}):n?m??a.jsx(l.Stack,{className:"justify-center items-center p-8",children:a.jsx("p",{className:"text-destructive",children:n.message})}):a.jsxs(l.Stack,{direction:"col",gap:4,children:[a.jsxs(l.Stack,{direction:"row",gap:4,className:"justify-between items-center",children:[a.jsxs(l.Stack,{direction:"row",gap:4,className:"items-center",children:[o&&a.jsx(i.Button,{variant:"ghost",size:"icon",onClick:o,title:f,children:a.jsx(_,{className:"size-4"})}),a.jsx("h1",{className:"text-2xl font-semibold text-surface-secondary",children:e}),t]}),s&&a.jsx(l.Stack,{direction:"row",gap:2,children:s})]}),c.map((e,t)=>{const r=e.id??`section-${t}`;return a.jsx(p.Accordion,{type:"single",collapsible:!0,defaultValue:e.defaultOpen?r:void 0,className:"w-full",children:a.jsxs(p.AccordionItem,{value:r,className:"border-b",children:[a.jsx(p.AccordionTrigger,{className:"hover:no-underline text-base font-normal text-surface-secondary",children:e.title}),a.jsx(p.AccordionContent,{className:"pt-4",children:e.content})]})},r)}),d]})},exports.FULL_WIDTH_DETAIL_FIELDS=xr,exports.FilePreview=({fileUrl:e,fileName:t,isLoading:r=!1,getFileType:n,ImageComponent:o})=>{if(r)return a.jsx(l.Stack,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] items-center justify-center",children:a.jsx(l.Loading,{})});if(!e||!t)return a.jsxs(l.Stack,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] items-center justify-center",children:[a.jsx(I,{className:"w-16 h-16 text-muted-foreground"}),a.jsx("p",{className:"text-sm text-muted-foreground mt-4",children:"No file available"})]});const s=n(t);return a.jsx(l.Stack,{direction:"col",className:"bg-secondary border border-border rounded-lg min-h-[600px] h-full overflow-hidden relative",children:(()=>{switch(s){case"image":return a.jsx(l.Stack,{direction:"col",className:"w-full h-full items-center justify-center relative",children:o?a.jsx(o,{src:e,alt:t,fill:!0,className:"object-contain"}):a.jsx("img",{src:e,alt:t,className:"max-w-full max-h-full object-contain"})});case"video":return a.jsx(l.Stack,{direction:"col",className:"w-full h-full items-center justify-center relative",children:a.jsxs("video",{src:e,controls:!0,className:"w-full h-full object-contain",children:[a.jsx("track",{kind:"captions"}),"Your browser does not support the video tag."]})});case"pdf":return a.jsx(l.Stack,{direction:"col",className:"w-full h-full items-center justify-center relative",children:a.jsx("iframe",{src:e,className:"w-full h-full border-0",title:t})});case"doc":case"excel":case"ppt":return a.jsxs(l.Stack,{direction:"col",gap:4,className:"items-center justify-center h-full p-8",children:[a.jsx(O,{className:"w-20 h-20 text-muted-foreground"}),a.jsxs(l.Stack,{direction:"col",gap:1,className:"text-center",children:[a.jsx("p",{className:"text-sm font-medium text-foreground",children:t}),a.jsxs("p",{className:"text-xs text-muted-foreground uppercase",children:[s," Document"]})]}),a.jsxs(i.Button,{variant:"outline",size:"default",className:"mt-4",onClick:()=>Cr(e,t),children:[a.jsx(E,{className:"w-4 h-4 mr-2"}),"Download"]})]});default:return a.jsxs(l.Stack,{direction:"col",gap:4,className:"items-center justify-center h-full p-8",children:[a.jsx(W,{className:"w-16 h-16 text-muted-foreground"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:t}),a.jsxs(i.Button,{variant:"outline",size:"sm",onClick:()=>Cr(e,t),children:[a.jsx(E,{className:"w-4 h-4 mr-2"}),"Download"]})]})}})()})},exports.KeyValueContent=lr,exports.LoginCard=function({onLogin:t,onSuccess:r,onError:n,sessionExpired:o=!1,sessionExpiredAlert:s,forgotPasswordHref:h="/",forgotPasswordLabel:p="Esqueci a senha",usernameLabel:f="Usuario",passwordLabel:g="Senha",submitLabel:b="Entrar",loginErrorMessage:x="Login error!",LinkComponent:w=cr,className:y}){const[k,v]=e.useState(""),[j,N]=e.useState(""),[C,S]=e.useState(!1);return a.jsxs(l.Stack,{gap:4,children:[o&&s?.icon&&a.jsx(c.AlertWithIcon,{variant:"destructive",icon:s.icon,title:s.title??"Sessão expirada",description:s.description??"Faça login novamente para continuar"}),a.jsxs(d.Card,{className:y??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[a.jsx(d.CardHeader,{className:"items-center"}),a.jsx(d.CardContent,{children:a.jsx("form",{onSubmit:e=>e.preventDefault(),children:a.jsxs("div",{className:"grid w-full items-center gap-4 mt-6",children:[a.jsxs(l.Stack,{gap:4,children:[a.jsx(m.Label,{className:"text-primary",htmlFor:"username",children:f}),a.jsx(u.Input,{id:"username",type:"text",placeholder:"Seu nome de usuário",value:k,onChange:e=>v(e.target.value)})]}),a.jsxs(l.Stack,{gap:4,children:[a.jsx(m.Label,{className:"text-primary",htmlFor:"password",children:g}),a.jsx(u.Input,{id:"password",type:"password",placeholder:"Sua senha de acesso",value:j,onChange:e=>N(e.target.value)})]})]})})}),a.jsx(d.CardFooter,{className:"justify-center items-center",children:a.jsxs(l.Stack,{gap:4,className:"justify-center items-center mt-10",children:[a.jsx(i.Button,{className:"w-full",onClick:async()=>{S(!0);try{const{error:e}=await t({username:k,password:j});if(e)return void n?.(x,String(e));r?.()}finally{S(!1)}},disabled:C,children:b}),a.jsx(w,{href:h,className:"text-primary text-xs",children:p})]})})]})]})},exports.LoginCardSSO=function({onLoginSSO:t,onRedirect:r,onError:n,sessionExpired:o=!1,sessionExpiredAlert:s,forgotPasswordHref:h="/",forgotPasswordLabel:p="Esqueci a senha",emailLabel:f="Email",submitLabel:g="Entrar com SSO",unauthorizedMessage:b="Usuario nao autorizado",genericErrorMessage:x="Erro ao fazer login",LinkComponent:w=dr,className:y}){const[k,v]=e.useState(""),[j,N]=e.useState(!1);return a.jsxs(l.Stack,{gap:4,children:[o&&s?.icon&&a.jsx(c.AlertWithIcon,{variant:"destructive",icon:s.icon,title:s.title??"Sessão expirada",description:s.description??"Faça login novamente para continuar"}),a.jsxs(d.Card,{className:y??"bg-white w-[400px] h-[457px] rounded-[30px] shadow-lg",children:[a.jsx(d.CardHeader,{className:"items-center mt-4"}),a.jsx(d.CardContent,{children:a.jsx("form",{onSubmit:async e=>{e.preventDefault(),N(!0);try{const{redirect_url:e,error:a}=await t(k);if(e)return void r?.(e);const o=a?.includes("401")?b:x;n?.(o,String(a))}finally{N(!1)}},children:a.jsxs("div",{className:"grid w-full items-center gap-4 mt-6",children:[a.jsxs(l.Stack,{gap:4,children:[a.jsx(m.Label,{className:"text-primary",htmlFor:"email",children:f}),a.jsx(u.Input,{id:"email",type:"email",placeholder:"Seu email de acesso",value:k,onChange:e=>v(e.target.value),pattern:"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$",required:!0})]}),a.jsx(i.Button,{className:"w-full",type:"submit",disabled:j,children:g})]})})}),a.jsx(d.CardFooter,{className:"flex-col justify-center items-center",children:a.jsx(l.Stack,{gap:4,className:"justify-start items-center mb-7",children:a.jsx(w,{href:h,className:"text-primary text-xs",children:p})})})]})]})},exports.M2MCreateDialog=Nr,exports.M2MTable=({modelClass:t,targetModelClass:r,targetField:n,filterDict:o,relationName:s,fields:c,displayFields:d,handleCreateNew:u,handleDeleteItem:m,listFn:h,fkFetcher:f})=>{const[g,b]=e.useState(!1),[w,j]=e.useState(!1),N=t?{modelClass:t,filterDict:o,fields:c}:null,{data:C,error:S,mutate:M}=x(N,async({modelClass:e,fields:t})=>{const[r,a]=await h(e,o,[...t,"pk"]);if(a&&console.error("==> ERROR m2m table: ",a),n&&Array.isArray(r)&&r.length>0){return r?.map(e=>({...e[n],m2m:e.pk}))??[]}return[]},{revalidateOnFocus:!1,revalidateOnReconnect:!0,errorRetryCount:3,errorRetryInterval:1e3}),[P,z]=e.useState(null);return a.jsxs(l.ErrorBoundary,{hasError:!!S,children:[a.jsx(p.Accordion,{type:"multiple",className:"w-full",children:a.jsxs(p.AccordionItem,{value:"details",className:"border-b",children:[a.jsxs(p.AccordionTrigger,{className:"text-base font-normal text-surface-secondary hover:no-underline",children:[s," (",C?.length||0,")"]}),a.jsxs(p.AccordionContent,{className:"px-4 pt-4",children:[a.jsx(l.Stack,{direction:"row",className:"justify-end mb-4",children:a.jsxs(i.Button,{onClick:()=>b(!0),children:["Adicionar ",s.toLowerCase()]})}),C&&C.length>0?a.jsxs(y.Table,{className:"table-auto w-full",children:[a.jsx(y.TableHeader,{className:"sticky top-0 bg-primary text-white z-10",children:a.jsxs(y.TableRow,{children:[a.jsx(y.TableHead,{className:"px-2 py-4",children:"Id"},"pk"),d.map(e=>a.jsx(y.TableHead,{className:"px-2 py-2",children:e.name},e.field)),a.jsx(y.TableHead,{className:"px-2 py-4 text-end",children:a.jsx("div",{className:"mr-6",children:"Opções"})})]})}),a.jsxs(y.TableBody,{children:[C?.map((e,t)=>a.jsxs(y.TableRow,{className:"cursor-pointer hover:bg-secondary",children:[a.jsx(y.TableCell,{className:"px-2",children:e.pk??"N/A"},"pk"),d.map(t=>a.jsx(y.TableCell,{className:"px-2",children:e[t.field]??"N/A"},t.field)),a.jsx(y.TableCell,{className:"px-2 justify-end flex",children:a.jsx(i.Button,{variant:"ghost",size:"icon",className:"border text-muted-foreground mr-6",onClick:()=>{z(e.m2m),j(!0)},children:a.jsx(B,{className:"size-4"})})})]},t)),a.jsx(y.TableRow,{children:a.jsx(y.TableCell,{colSpan:d.length,className:"text-center py-6"})})]})]}):a.jsx(v.NoResult,{})]})]})}),a.jsx(Nr,{open:g,onOpenChange:b,targetModelClass:r,relationName:s,handleCreateNew:u,mutate:M,fkFetcher:f}),a.jsx(k.DeleteDialog,{handleDelete:async()=>{P&&(await m(P),j(!1),z(null),M())},openDialog:w,setOpenDialog:j,count:1})]})},exports.NavigationSidebar=function({links:t,iconMap:r,pathname:n,isSidebarCollapsedFromQuery:o=!1,logo:s,onLogout:i,logoutIcon:c=H,logoutLabel:d="Logout",LinkComponent:u,ImageComponent:m}){const h=n.split("/")[2]??"",{isCollapsed:p,isCollapsing:f,expandedItems:g,setExpandedItems:b,toggleCollapse:x,toggleExpanded:w,handleTransitionEnd:y,setExpandedOnCollapse:k}=C.useSidebarCollapse({initialCollapsed:o,onPersist:e=>{const t=new URLSearchParams;t.set("sidebar-collapsed",String(e)),window.history.replaceState({},"",`${window.location.pathname}?${t}`)}});return e.useEffect(()=>{if(!o){const e={};t.forEach(t=>{if(t.subItems){t.subItems.some(e=>n===e.href)&&(e[t.title]=!0)}}),b(e)}},[o,t,n,b]),a.jsxs(N.Sidebar.Root,{isCollapsed:p,isCollapsing:f,onToggleCollapse:()=>{p||k(),x()},onTransitionEnd:y,className:"h-full",children:[a.jsxs(l.Stack,{className:"w-full shrink-0 items-center gap-1 mb-2",children:[a.jsx(N.Sidebar.Toggle,{}),a.jsx(N.Sidebar.Logo,{src:s.src,width:s.width,height:s.height,collapsedWidth:s.collapsedWidth,collapsedHeight:s.collapsedHeight,alt:s.alt,ImageComponent:m})]}),a.jsx(N.Sidebar.Content,{className:"mt-6",children:t.map(e=>{const t=r[e.icon];if(!!e.subItems?.length){const r=e.subItems?.some(e=>n===e.href||h===e.href.split("/")[2]);return a.jsx(N.Sidebar.NavGroup,{icon:t,title:e.title,isExpanded:!!g[e.title],isActive:!!r,onToggle:()=>w(e.title),children:e.subItems?.map(e=>{const t=n===e.href;return a.jsx(N.Sidebar.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 a.jsx(N.Sidebar.Link,{icon:t,href:{pathname:e.href,query:{"sidebar-collapsed":p}},active:h===o,LinkComponent:u,children:e.title},e.href)})}),a.jsx(N.Sidebar.Footer,{children:a.jsx(N.Sidebar.Action,{icon:c,label:d,onClick:async()=>{await i()}})})]})},exports.NotAuthenticatedView=function({error:t,loginHref:r,title:n="Erro ao autenticar!",description:o="Verifique suas informações de SSO ou converse com o administrador do sistema.",fallbackLinkLabel:s="Caso não seja redirecionado automaticamente, clique aqui",errorDetailsLabel:i="Detalhes para os Nerds",copyLabel:c="Copiar",copiedLabel:u="Copiado!",LinkComponent:m=mr,className:h}){const[f,g]=e.useState(!1),b="string"==typeof t?t:JSON.stringify(t,null,2);return a.jsx(l.Stack,{className:"justify-center items-center h-screen",children:a.jsxs(d.Card,{className:h??"w-[400px] h-[457px] rounded-[30px] shadow-lg bg-red-50",children:[a.jsx(d.CardHeader,{className:"items-center"}),a.jsxs(d.CardContent,{className:"flex flex-col items-center gap-2",children:[a.jsx(F,{size:48,className:"text-red-700"}),a.jsx("h4",{className:"text-center",children:n}),a.jsx("p",{className:"text-sm text-center",children:o}),a.jsx(m,{href:r,className:"w-full text-sm underline text-accent text-center",children:s}),a.jsx(p.Accordion,{type:"single",collapsible:!0,className:"w-full",children:a.jsxs(p.AccordionItem,{value:"error-details",children:[a.jsx(p.AccordionTrigger,{children:i}),a.jsxs(p.AccordionContent,{className:"max-w-80",children:[a.jsx("div",{className:"flex justify-end mb-1",children:a.jsx("button",{type:"button",onClick:async()=>{if(t)try{await navigator.clipboard.writeText("string"==typeof t?t:JSON.stringify(t,null,2)),g(!0),setTimeout(()=>g(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},className:"text-xs text-accent hover:underline flex items-center gap-1",children:f?a.jsxs(a.Fragment,{children:[a.jsx(q,{size:14,className:"text-green-600"})," ",u]}):a.jsxs(a.Fragment,{children:[a.jsx(A,{size:14})," ",c]})})}),a.jsx("div",{className:"max-h-24 overflow-y-auto overflow-x-hidden",children:a.jsx("pre",{className:"bg-gray-100 p-4 rounded-md",children:a.jsx("code",{className:"text-sm text-red-600 dark:text-red-400 whitespace-pre-wrap break-words",children:b})})})]})]})})]})]})})},exports.formatDetailLabel=fr,exports.formatDetailValue=gr,exports.getDetailFieldValue=br;
@@ -22,7 +22,7 @@ export { DatePicker, type IDatePickerProps } from "./DatePicker";
22
22
  export { Calendar } from "./ui/calendar";
23
23
  export { Popover, PopoverContent, PopoverTrigger, } from "./ui/popover";
24
24
  export { Combobox, type ComboboxItem } from "./ui/combobox";
25
- export { Table, type ITableProps, type ITableColumn, } from "./Table";
25
+ export { Table, PumpwoodTable, type ITableProps, type ITableColumn, } from "./Table";
26
26
  export { TableSkeleton } from "./TableSkeleton";
27
27
  export { NoResult } from "./NoResult";
28
28
  export { Skeleton } from "./ui/skeleton";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.0",
6
+ "version": "1.3.2",
7
7
  "description": "",
8
8
  "main": "dist/components.js",
9
9
  "module": "dist/components.esm.js",