@xjur-ui/react 4.0.2 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/accordion/accordion-tab-header.js +1 -1
  3. package/dist/components/accordion/accordion-trigger.js +1 -1
  4. package/dist/components/accordion/index.js +1 -1
  5. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  6. package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
  7. package/dist/components/breadcrumb/index.js +1 -1
  8. package/dist/components/carousel/carousel-action.js +1 -1
  9. package/dist/components/carousel/index.js +1 -1
  10. package/dist/components/chip/chip-close.js +1 -1
  11. package/dist/components/chip/chip-icon.js +1 -1
  12. package/dist/components/chip/index.js +1 -1
  13. package/dist/components/controls/calendar.js +1 -1
  14. package/dist/components/controls/checkbox.js +1 -1
  15. package/dist/components/controls/date-picker/date-picker-icon.js +1 -1
  16. package/dist/components/controls/date-picker/index.js +1 -1
  17. package/dist/components/controls/input/index.js +1 -1
  18. package/dist/components/controls/input/input-icon.js +1 -1
  19. package/dist/components/controls/input/input-numeric-stepper.js +1 -1
  20. package/dist/components/controls/rating.js +1 -1
  21. package/dist/components/controls/search-selector.js +1 -1
  22. package/dist/components/controls/select/index.d.ts +1 -0
  23. package/dist/components/controls/select/index.js +1 -1
  24. package/dist/components/controls/select/select-icon.js +1 -1
  25. package/dist/components/controls/select/select-option.d.ts +2 -1
  26. package/dist/components/controls/select/select-option.js +1 -1
  27. package/dist/components/controls/text-area/index.js +1 -1
  28. package/dist/components/controls/text-area/text-area-caption.js +1 -1
  29. package/dist/components/controls/text-area/text-area-content.js +1 -1
  30. package/dist/components/controls/text-area/text-area-editor.js +1 -1
  31. package/dist/components/controls/text-area/text-area-fullscreen-button.js +1 -1
  32. package/dist/components/controls/text-area/text-area-heading-button.js +1 -1
  33. package/dist/components/controls/text-area/text-area-root.js +1 -1
  34. package/dist/components/controls/text-area/text-area-toggle-button.js +1 -1
  35. package/dist/components/controls/text-area/text-area-toolbar.js +1 -1
  36. package/dist/components/custom/andamento-timeline/andamento-timeline.js +1 -1
  37. package/dist/components/custom/andamento-timeline/index.js +1 -1
  38. package/dist/components/custom/centro-custo/centro-custo-add-button.js +1 -1
  39. package/dist/components/custom/centro-custo/centro-custo-body.js +1 -1
  40. package/dist/components/custom/centro-custo/centro-custo-close-button.js +1 -1
  41. package/dist/components/custom/centro-custo/centro-custo-content.js +1 -1
  42. package/dist/components/custom/centro-custo/centro-custo-footer.js +1 -1
  43. package/dist/components/custom/centro-custo/centro-custo-header.js +1 -1
  44. package/dist/components/custom/centro-custo/centro-custo-trigger.js +1 -1
  45. package/dist/components/custom/centro-custo/centro-custo.js +1 -1
  46. package/dist/components/custom/centro-custo/index.js +1 -1
  47. package/dist/components/custom/empresa/empresa-add-button.js +1 -1
  48. package/dist/components/custom/empresa/empresa-body.js +1 -1
  49. package/dist/components/custom/empresa/empresa-close-button.js +1 -1
  50. package/dist/components/custom/empresa/empresa-content.js +1 -1
  51. package/dist/components/custom/empresa/empresa-footer.js +1 -1
  52. package/dist/components/custom/empresa/empresa-header.js +1 -1
  53. package/dist/components/custom/empresa/empresa-table.js +1 -1
  54. package/dist/components/custom/empresa/empresa-trigger.js +1 -1
  55. package/dist/components/custom/empresa/empresa.js +1 -1
  56. package/dist/components/custom/empresa/index.js +1 -1
  57. package/dist/components/custom/lista-nivelada/hierarchical-navigation.js +1 -1
  58. package/dist/components/custom/lista-nivelada/index.js +1 -1
  59. package/dist/components/custom/lista-nivelada/lista-nivelada-body.js +1 -1
  60. package/dist/components/custom/lista-nivelada/lista-nivelada-close-button.js +1 -1
  61. package/dist/components/custom/lista-nivelada/lista-nivelada-content.js +1 -1
  62. package/dist/components/custom/lista-nivelada/lista-nivelada-footer.js +1 -1
  63. package/dist/components/custom/lista-nivelada/lista-nivelada-header.js +1 -1
  64. package/dist/components/custom/lista-nivelada/lista-nivelada-trigger.js +1 -1
  65. package/dist/components/custom/lista-nivelada/lista-nivelada.js +1 -1
  66. package/dist/components/custom/lista-nivelada/navigation-button.js +1 -1
  67. package/dist/components/custom/lista-nivelada/navigation-grid.js +1 -1
  68. package/dist/components/custom/lista-nivelada/radio-selection.js +1 -1
  69. package/dist/components/custom/pessoa/index.js +1 -1
  70. package/dist/components/custom/pessoa/pessoa-add-button.js +1 -1
  71. package/dist/components/custom/pessoa/pessoa-body.js +1 -1
  72. package/dist/components/custom/pessoa/pessoa-close-button.js +1 -1
  73. package/dist/components/custom/pessoa/pessoa-content.js +1 -1
  74. package/dist/components/custom/pessoa/pessoa-footer.js +1 -1
  75. package/dist/components/custom/pessoa/pessoa-header.js +1 -1
  76. package/dist/components/custom/pessoa/pessoa-trigger.js +1 -1
  77. package/dist/components/custom/pessoa/pessoa.js +1 -1
  78. package/dist/components/dialog/delete-dialog.js +1 -1
  79. package/dist/components/dialog/dialog-content.js +1 -1
  80. package/dist/components/dialog/index.js +1 -1
  81. package/dist/components/full-calendar/calendar-add-event.js +1 -1
  82. package/dist/components/full-calendar/calendar-cell.js +1 -1
  83. package/dist/components/full-calendar/calendar-day-view.js +1 -1
  84. package/dist/components/full-calendar/calendar-month-view.js +1 -1
  85. package/dist/components/full-calendar/calendar-navigator.js +1 -1
  86. package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
  87. package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
  88. package/dist/components/full-calendar/calendar-week-view.js +1 -1
  89. package/dist/components/full-calendar/index.js +1 -1
  90. package/dist/components/icon/components/agenda.d.ts +1 -0
  91. package/dist/components/icon/components/agenda.js +1 -0
  92. package/dist/components/icon/components/compliance.d.ts +1 -0
  93. package/dist/components/icon/components/compliance.js +1 -0
  94. package/dist/components/icon/components/consultivo.d.ts +1 -0
  95. package/dist/components/icon/components/consultivo.js +1 -0
  96. package/dist/components/icon/components/contencioso.d.ts +1 -0
  97. package/dist/components/icon/components/contencioso.js +1 -0
  98. package/dist/components/icon/components/contrato.d.ts +1 -0
  99. package/dist/components/icon/components/contrato.js +1 -0
  100. package/dist/components/icon/components/custom-icon.d.ts +4 -0
  101. package/dist/components/icon/components/custom-icon.js +1 -0
  102. package/dist/components/icon/components/email-reset-senha-icon.d.ts +1 -0
  103. package/dist/components/icon/components/email-reset-senha-icon.js +1 -0
  104. package/dist/components/icon/components/ged.d.ts +1 -0
  105. package/dist/components/icon/components/ged.js +1 -0
  106. package/dist/components/icon/components/imobiliario.d.ts +1 -0
  107. package/dist/components/icon/components/imobiliario.js +1 -0
  108. package/dist/components/icon/components/marcas-e-patentes.d.ts +1 -0
  109. package/dist/components/icon/components/marcas-e-patentes.js +1 -0
  110. package/dist/components/icon/components/procuracao.d.ts +1 -0
  111. package/dist/components/icon/components/procuracao.js +1 -0
  112. package/dist/components/icon/components/regulatorio.d.ts +1 -0
  113. package/dist/components/icon/components/regulatorio.js +1 -0
  114. package/dist/components/icon/components/xpay.d.ts +1 -0
  115. package/dist/components/icon/components/xpay.js +1 -0
  116. package/dist/components/icon/components/xsigner.d.ts +1 -0
  117. package/dist/components/icon/components/xsigner.js +1 -0
  118. package/dist/components/icon/index.d.ts +1 -1
  119. package/dist/components/icon/index.js +1 -1
  120. package/dist/components/message/index.js +1 -1
  121. package/dist/components/message/message-close.js +1 -1
  122. package/dist/components/message/message-icon.js +1 -1
  123. package/dist/components/selection-bar/index.js +1 -1
  124. package/dist/components/selection-bar/selection-bar-close.js +1 -1
  125. package/dist/components/sheet/index.js +1 -1
  126. package/dist/components/sheet/sheet-close.js +1 -1
  127. package/dist/components/steps/index.js +1 -1
  128. package/dist/components/steps/step.js +1 -1
  129. package/dist/components/steps/steps-action.js +1 -1
  130. package/dist/components/steps/steps-context.js +1 -1
  131. package/dist/components/steps/steps-navigation.js +1 -1
  132. package/dist/components/steps/steps-root.js +1 -1
  133. package/dist/components/table/index.js +1 -1
  134. package/dist/components/table/table-row.js +1 -1
  135. package/dist/components/table/table-sort.js +1 -1
  136. package/dist/components/tag/index.js +1 -1
  137. package/dist/components/tag/tag-close.js +1 -1
  138. package/dist/components/tag/tag-icon.js +1 -1
  139. package/dist/components/timeline-card/index.js +1 -1
  140. package/dist/components/timeline-card/timeline-card.js +1 -1
  141. package/dist/components/toast/index.js +1 -1
  142. package/dist/components/toast/toast-component.js +1 -1
  143. package/dist/components/toast/toast.js +1 -1
  144. package/dist/components/upload/index.js +1 -1
  145. package/dist/components/upload/upload-icon.js +1 -1
  146. package/dist/resources/icons.d.ts +2 -1
  147. package/dist/resources/icons.js +1 -1
  148. package/package.json +3 -3
@@ -1 +1 @@
1
- import{useCallback as Ft,useMemo as pr}from"react";var Nt=Math.pow(10,8)*24*60*60*1e3,gr=-Nt,C=6048e5,K=864e5;var qt=3600;var U=qt*24,yr=U*7,Vt=U*365.2425,Ht=Vt/12,br=Ht*3,V=Symbol.for("constructDateFrom");function u(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&V in t?t[V](e):t instanceof Date?new t.constructor(e):new Date(e)}function d(t,e){return u(e||t,t)}function P(t,e,r){let a=d(t,r?.in);return isNaN(e)?u(r?.in||t,NaN):(e&&a.setDate(a.getDate()+e),a)}function _(t,e,r){let a=d(t,r?.in);if(isNaN(e))return u(r?.in||t,NaN);if(!e)return a;let n=a.getDate(),o=u(r?.in||t,a.getTime());o.setMonth(a.getMonth()+e+1,0);let i=o.getDate();return n>=i?o:(a.setFullYear(o.getFullYear(),o.getMonth(),n),a)}var Rt={};function b(){return Rt}function p(t,e){let r=b(),a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=d(t,e?.in),o=n.getDay(),i=(o<a?7:0)+o-a;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function x(t,e){return p(t,{...e,weekStartsOn:1})}function T(t,e){let r=d(t,e?.in),a=r.getFullYear(),n=u(r,0);n.setFullYear(a+1,0,4),n.setHours(0,0,0,0);let o=x(n),i=u(r,0);i.setFullYear(a,0,4),i.setHours(0,0,0,0);let c=x(i);return r.getTime()>=o.getTime()?a+1:r.getTime()>=c.getTime()?a:a-1}function H(t){let e=d(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function Z(t,...e){let r=u.bind(null,t||e.find(a=>typeof a=="object"));return e.map(r)}function R(t,e){let r=d(t,e?.in);return r.setHours(0,0,0,0),r}function tt(t,e,r){let[a,n]=Z(r?.in,t,e),o=R(a),i=R(n),c=+o-H(o),f=+i-H(i);return Math.round((c-f)/K)}function et(t,e){let r=T(t,e),a=u(e?.in||t,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),x(a)}function S(t,e,r){return P(t,e*7,r)}function rt(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function at(t){return!(!rt(t)&&typeof t!="number"||isNaN(+d(t)))}function nt(t,e){let r=d(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function ot(t,e){let r=b(),a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=d(t,e?.in),o=n.getDay(),i=(o<a?-7:0)+6-(o-a);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}var Lt={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"}},it=(t,e,r)=>{let a,n=Lt[t];return typeof n=="string"?a=n:e===1?a=n.one:a=n.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function v(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var jt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},At={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},st={date:v({formats:jt,defaultWidth:"full"}),time:v({formats:At,defaultWidth:"full"}),dateTime:v({formats:Qt,defaultWidth:"full"})};var Xt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dt=(t,e,r,a)=>Xt[t];function h(t){return(e,r)=>{let a=r?.context?String(r.context):"standalone",n;if(a==="formatting"&&t.formattingValues){let i=t.defaultFormattingWidth||t.defaultWidth,c=r?.width?String(r.width):i;n=t.formattingValues[c]||t.formattingValues[i]}else{let i=t.defaultWidth,c=r?.width?String(r.width):t.defaultWidth;n=t.values[c]||t.values[i]}let o=t.argumentCallback?t.argumentCallback(e):e;return n[o]}}var Bt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Gt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$t={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"]},Jt={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"]},Kt={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"}},Ut={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"}},Zt=(t,e)=>{let r=Number(t),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"},ct={ordinalNumber:Zt,era:h({values:Bt,defaultWidth:"wide"}),quarter:h({values:Gt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:h({values:$t,defaultWidth:"wide"}),day:h({values:Jt,defaultWidth:"wide"}),dayPeriod:h({values:Kt,defaultWidth:"wide",formattingValues:Ut,defaultFormattingWidth:"wide"})};function g(t){return(e,r={})=>{let a=r.width,n=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=e.match(n);if(!o)return null;let i=o[0],c=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(c)?ee(c,m=>m.test(i)):te(c,m=>m.test(i)),y;y=t.valueCallback?t.valueCallback(f):f,y=r.valueCallback?r.valueCallback(y):y;let l=e.slice(i.length);return{value:y,rest:l}}}function te(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function ee(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function E(t){return(e,r={})=>{let a=e.match(t.matchPattern);if(!a)return null;let n=a[0],o=e.match(t.parsePattern);if(!o)return null;let i=t.valueCallback?t.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;let c=e.slice(n.length);return{value:i,rest:c}}}var re=/^(\d+)(th|st|nd|rd)?/i,ae=/\d+/i,ne={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},oe={any:[/^b/i,/^(a|c)/i]},ie={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},se={any:[/1/i,/2/i,/3/i,/4/i]},de={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},ce={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]},ue={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},me={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]},le={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},fe={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}},ut={ordinalNumber:E({matchPattern:re,parsePattern:ae,valueCallback:t=>parseInt(t,10)}),era:g({matchPatterns:ne,defaultMatchWidth:"wide",parsePatterns:oe,defaultParseWidth:"any"}),quarter:g({matchPatterns:ie,defaultMatchWidth:"wide",parsePatterns:se,defaultParseWidth:"any",valueCallback:t=>t+1}),month:g({matchPatterns:de,defaultMatchWidth:"wide",parsePatterns:ce,defaultParseWidth:"any"}),day:g({matchPatterns:ue,defaultMatchWidth:"wide",parsePatterns:me,defaultParseWidth:"any"}),dayPeriod:g({matchPatterns:le,defaultMatchWidth:"any",parsePatterns:fe,defaultParseWidth:"any"})};var L={code:"en-US",formatDistance:it,formatLong:st,formatRelative:dt,localize:ct,match:ut,options:{weekStartsOn:0,firstWeekContainsDate:1}};function mt(t,e){let r=d(t,e?.in);return tt(r,nt(r))+1}function lt(t,e){let r=d(t,e?.in),a=+x(r)-+et(r);return Math.round(a/C)+1}function I(t,e){let r=d(t,e?.in),a=r.getFullYear(),n=b(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=u(e?.in||t,0);i.setFullYear(a+1,0,o),i.setHours(0,0,0,0);let c=p(i,e),f=u(e?.in||t,0);f.setFullYear(a,0,o),f.setHours(0,0,0,0);let y=p(f,e);return+r>=+c?a+1:+r>=+y?a:a-1}function ft(t,e){let r=b(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=I(t,e),o=u(e?.in||t,0);return o.setFullYear(n,0,a),o.setHours(0,0,0,0),p(o,e)}function pt(t,e){let r=d(t,e?.in),a=+p(r,e)-+ft(r,e);return Math.round(a/C)+1}function s(t,e){let r=t<0?"-":"",a=Math.abs(t).toString().padStart(e,"0");return r+a}var w={y(t,e){let r=t.getFullYear(),a=r>0?r:1-r;return s(e==="yy"?a%100:a,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):s(r+1,2)},d(t,e){return s(t.getDate(),e.length)},a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return s(t.getHours()%12||12,e.length)},H(t,e){return s(t.getHours(),e.length)},m(t,e){return s(t.getMinutes(),e.length)},s(t,e){return s(t.getSeconds(),e.length)},S(t,e){let r=e.length,a=t.getMilliseconds(),n=Math.trunc(a*Math.pow(10,r-3));return s(n,e.length)}};var k={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},j={G:function(t,e,r){let a=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){let a=t.getFullYear(),n=a>0?a:1-a;return r.ordinalNumber(n,{unit:"year"})}return w.y(t,e)},Y:function(t,e,r,a){let n=I(t,a),o=n>0?n:1-n;if(e==="YY"){let i=o%100;return s(i,2)}return e==="Yo"?r.ordinalNumber(o,{unit:"year"}):s(o,e.length)},R:function(t,e){let r=T(t);return s(r,e.length)},u:function(t,e){let r=t.getFullYear();return s(r,e.length)},Q:function(t,e,r){let a=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return s(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"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,e,r){let a=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return s(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"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,e,r){let a=t.getMonth();switch(e){case"M":case"MM":return w.M(t,e);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"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,r){let a=t.getMonth();switch(e){case"L":return String(a+1);case"LL":return s(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"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,e,r,a){let n=pt(t,a);return e==="wo"?r.ordinalNumber(n,{unit:"week"}):s(n,e.length)},I:function(t,e,r){let a=lt(t);return e==="Io"?r.ordinalNumber(a,{unit:"week"}):s(a,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):w.d(t,e)},D:function(t,e,r){let a=mt(t);return e==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):s(a,e.length)},E:function(t,e,r){let a=t.getDay();switch(e){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"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,e,r,a){let n=t.getDay(),o=(n-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return s(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"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,r,a){let n=t.getDay(),o=(n-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return s(o,e.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"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,r){let a=t.getDay(),n=a===0?7:a;switch(e){case"i":return String(n);case"ii":return s(n,e.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"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,e,r){let n=t.getHours()/12>=1?"pm":"am";switch(e){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"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){let a=t.getHours(),n;switch(a===12?n=k.noon:a===0?n=k.midnight:n=a/12>=1?"pm":"am",e){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"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){let a=t.getHours(),n;switch(a>=17?n=k.evening:a>=12?n=k.afternoon:a>=4?n=k.morning:n=k.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let a=t.getHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return w.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):w.H(t,e)},K:function(t,e,r){let a=t.getHours()%12;return e==="Ko"?r.ordinalNumber(a,{unit:"hour"}):s(a,e.length)},k:function(t,e,r){let a=t.getHours();return a===0&&(a=24),e==="ko"?r.ordinalNumber(a,{unit:"hour"}):s(a,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):w.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):w.s(t,e)},S:function(t,e){return w.S(t,e)},X:function(t,e,r){let a=t.getTimezoneOffset();if(a===0)return"Z";switch(e){case"X":return gt(a);case"XXXX":case"XX":return D(a);case"XXXXX":case"XXX":default:return D(a,":")}},x:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"x":return gt(a);case"xxxx":case"xx":return D(a);case"xxxxx":case"xxx":default:return D(a,":")}},O:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ht(a,":");case"OOOO":default:return"GMT"+D(a,":")}},z:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ht(a,":");case"zzzz":default:return"GMT"+D(a,":")}},t:function(t,e,r){let a=Math.trunc(+t/1e3);return s(a,e.length)},T:function(t,e,r){return s(+t,e.length)}};function ht(t,e=""){let r=t>0?"-":"+",a=Math.abs(t),n=Math.trunc(a/60),o=a%60;return o===0?r+String(n):r+String(n)+e+s(o,2)}function gt(t,e){return t%60===0?(t>0?"-":"+")+s(Math.abs(t)/60,2):D(t,e)}function D(t,e=""){let r=t>0?"-":"+",a=Math.abs(t),n=s(Math.trunc(a/60),2),o=s(a%60,2);return r+n+e+o}var yt=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},bt=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},pe=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],a=r[1],n=r[2];if(!n)return yt(t,e);let o;switch(a){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",yt(a,e)).replace("{{time}}",bt(n,e))},wt={p:bt,P:pe};var he=/^D+$/,ge=/^Y+$/,ye=["D","DD","YY","YYYY"];function vt(t){return he.test(t)}function xt(t){return ge.test(t)}function Dt(t,e,r){let a=be(t,e,r);if(console.warn(a),ye.includes(t))throw new RangeError(a)}function be(t,e,r){let a=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${a} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var we=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xe=/^'([^]*?)'?$/,De=/''/g,Pe=/[a-zA-Z]/;function M(t,e,r){let a=b(),n=r?.locale??a.locale??L,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,c=d(t,r?.in);if(!at(c))throw new RangeError("Invalid time value");let f=e.match(ve).map(l=>{let m=l[0];if(m==="p"||m==="P"){let q=wt[m];return q(l,n.formatLong)}return l}).join("").match(we).map(l=>{if(l==="''")return{isToken:!1,value:"'"};let m=l[0];if(m==="'")return{isToken:!1,value:ke(l)};if(j[m])return{isToken:!0,value:l};if(m.match(Pe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:l}});n.localize.preprocessor&&(f=n.localize.preprocessor(c,f));let y={firstWeekContainsDate:o,weekStartsOn:i,locale:n};return f.map(l=>{if(!l.isToken)return l.value;let m=l.value;(!r?.useAdditionalWeekYearTokens&&xt(m)||!r?.useAdditionalDayOfYearTokens&&vt(m))&&Dt(m,e,String(t));let q=j[m[0]];return q(c,m,n.localize,y)}).join("")}function ke(t){let e=t.match(xe);return e?e[1].replace(De,"'"):t}function Pt(t,e,r){return P(t,-e,r)}function A(t,e,r){return _(t,-e,r)}function kt(t,e,r){return S(t,-e,r)}var Me={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xEAs",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xEAs",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Mt=(t,e,r)=>{let a,n=Me[t];return typeof n=="string"?a=n:e===1?a=n.one:a=n.other.replace("{{count}}",String(e)),r?.addSuffix?r.comparison&&r.comparison>0?"em "+a:"h\xE1 "+a:a};var Oe={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},We={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ce={full:"{{date}} '\xE0s' {{time}}",long:"{{date}} '\xE0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ot={date:v({formats:Oe,defaultWidth:"full"}),time:v({formats:We,defaultWidth:"full"}),dateTime:v({formats:Ce,defaultWidth:"full"})};var _e={lastWeek:t=>{let e=t.getDay();return"'"+(e===0||e===6?"\xFAltimo":"\xFAltima")+"' eeee '\xE0s' p"},yesterday:"'ontem \xE0s' p",today:"'hoje \xE0s' p",tomorrow:"'amanh\xE3 \xE0s' p",nextWeek:"eeee '\xE0s' p",other:"P"},Wt=(t,e,r,a)=>{let n=_e[t];return typeof n=="function"?n(e):n};var Te={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Se={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xBA trimestre","2\xBA trimestre","3\xBA trimestre","4\xBA trimestre"]},Ee={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Ie={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xE7a","quarta","quinta","sexta","s\xE1bado"],wide:["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"]},Ye={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"}},Fe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},ze=(t,e)=>{let r=Number(t);return e?.unit==="week"?r+"\xAA":r+"\xBA"},Ct={ordinalNumber:ze,era:h({values:Te,defaultWidth:"wide"}),quarter:h({values:Se,defaultWidth:"wide",argumentCallback:t=>t-1}),month:h({values:Ee,defaultWidth:"wide"}),day:h({values:Ie,defaultWidth:"wide"}),dayPeriod:h({values:Ye,defaultWidth:"wide",formattingValues:Fe,defaultFormattingWidth:"wide"})};var Ne=/^(\d+)[ºªo]?/i,qe=/\d+/i,Ve={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},He={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Re={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Le={any:[/1/i,/2/i,/3/i,/4/i]},je={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},Ae={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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},Qe={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Xe={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},Be={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Ge={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},_t={ordinalNumber:E({matchPattern:Ne,parsePattern:qe,valueCallback:t=>parseInt(t,10)}),era:g({matchPatterns:Ve,defaultMatchWidth:"wide",parsePatterns:He,defaultParseWidth:"any"}),quarter:g({matchPatterns:Re,defaultMatchWidth:"wide",parsePatterns:Le,defaultParseWidth:"any",valueCallback:t=>t+1}),month:g({matchPatterns:je,defaultMatchWidth:"wide",parsePatterns:Ae,defaultParseWidth:"any"}),day:g({matchPatterns:Qe,defaultMatchWidth:"wide",parsePatterns:Xe,defaultParseWidth:"any"}),dayPeriod:g({matchPatterns:Be,defaultMatchWidth:"any",parsePatterns:Ge,defaultParseWidth:"any"})};var O={code:"pt-BR",formatDistance:Mt,formatLong:Ot,formatRelative:Wt,localize:Ct,match:_t,options:{weekStartsOn:0,firstWeekContainsDate:1}};import{capitalize as hr}from"@xjur-ui/util";import{Slot as Ue}from"@radix-ui/react-slot";import{cva as Ze}from"@xjur-ui/util";import{memo as Et,useState as tr}from"react";import*as Y from"@radix-ui/react-tooltip";import{jsx as Q}from"react/jsx-runtime";function $e({delayDuration:t=0,...e}){return Q(Y.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function X({...t}){return Q($e,{children:Q(Y.Root,{"data-slot":"tooltip",...t})})}import*as Tt from"@radix-ui/react-tooltip";import{jsx as Je}from"react/jsx-runtime";function B({...t}){return Je(Tt.Trigger,{"data-slot":"tooltip-trigger",...t})}import*as F from"@radix-ui/react-tooltip";import{cx as Ke}from"@xjur-ui/util";import{jsx as St}from"react/jsx-runtime";function G({className:t,sideOffset:e=1,variant:r="simple",children:a,...n}){return St(F.Portal,{children:St(F.Content,{className:Ke("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",t),"data-slot":"tooltip-content","data-variant":r,sideOffset:e,...n,children:a})})}import{jsx as z,jsxs as ar}from"react/jsx-runtime";var er=Ze("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),N=Et(({variant:t,size:e,weight:r,asChild:a,className:n,children:o,...i})=>z(a?Ue:"span",{className:er({variant:t,size:e,weight:r,className:n}),...i,children:o}));N.displayName="Typography";var rr=Et(({children:t,...e})=>{let[r,a]=tr(!1);return ar(X,{children:[z(B,{asChild:!0,children:z(N,{onMouseEnter:({currentTarget:o})=>{let i=o.scrollWidth>o.clientWidth;a(i),i?o.style.cursor="pointer":o.style.cursor="text"},...e,children:t})}),r&&z(G,{children:t})]})});rr.displayName="TruncatedTypography";import{Slot as nr}from"@radix-ui/react-slot";import{cva as or,cx as ir}from"@xjur-ui/util";import{jsx as dr}from"react/jsx-runtime";var sr=or(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function $({asChild:t,className:e,variant:r="primary",size:a="md",appearance:n="solid",...o}){return dr(t?nr:"button",{className:ir(sr({variant:r,appearance:n,size:a}),e),...o})}import{cx as cr}from"@xjur-ui/util";import{jsx as ur}from"react/jsx-runtime";function J({className:t,filled:e=!1,name:r,...a}){return ur("span",{...a,className:cr("material-symbols-outlined","text-size-body-lg select-none",t),style:{fontVariationSettings:`'FILL' ${e?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...a.style},children:r})}import{createContext as mr,use as lr,useCallback as Do,useMemo as Po,useState as ko}from"react";import{DndContext as Oo,closestCenter as Wo,useSensor as Co,useSensors as _o,PointerSensor as To,KeyboardSensor as So,MouseSensor as Eo}from"@dnd-kit/core";import{sortableKeyboardCoordinates as Yo}from"@dnd-kit/sortable";import{jsx as zo}from"react/jsx-runtime";var fr=mr({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function It(){let t=lr(fr);if(!t)throw new Error("useFullCalendar must be used within a CalendarRoot");return t}var Ao=Array.from({length:16},(t,e)=>{let r=e+8;return{hour:r,label:`${r.toString().padStart(2,"0")}:00`}});function Yt(t){let e=p(t,{weekStartsOn:0}),r=ot(t,{weekStartsOn:0});return{start:e,end:r}}import{jsx as W,jsxs as zt}from"react/jsx-runtime";function ei(){let{selectedDate:t,calendarView:e,setSelectedDate:r}=It(),a=pr(()=>{if(e==="month")return hr(M(t,"MMMM 'de' yyyy",{locale:O}));if(e==="week"){let{start:i,end:c}=Yt(t),f=M(c,"MMMM",{locale:O}),y=M(c,"yyyy",{locale:O});return`${i.getDate()} - ${c.getDate()} de ${f} de ${y}`}return M(t,"dd 'de' MMMM 'de' yyyy",{locale:O})},[t,e]),n=Ft(()=>{if(e==="month"){r(_(t,1));return}if(e==="week"){let c=p(S(t,1));r(c);return}let i=P(t,1);r(i)},[t,r,e]),o=Ft(()=>{if(e==="month"){r(A(t,1));return}e==="week"&&r(kt(t,1)),r(Pt(t,1))},[t,r,e]);return zt("div",{className:"gap-large flex items-center",children:[W(N,{className:"text-title-neutral",size:"lg",variant:"title",children:a}),zt("div",{className:"gap-small flex items-center",children:[W($,{size:"icon_md",variant:"tertiary",onClick:o,children:W(J,{className:"text-icon-neutral-3",name:"chevron_left"})}),W($,{size:"icon_md",variant:"tertiary",onClick:n,children:W(J,{className:"text-icon-neutral-3",name:"chevron_right"})})]})]})}export{ei as CalendarNavigator};
1
+ import{useCallback as ge,useMemo as Ur}from"react";var we=Math.pow(10,8)*24*60*60*1e3,eo=-we,j=6048e5,Ct=864e5;var ke=3600;var xt=ke*24,ro=xt*7,be=xt*365.2425,ve=be/12,oo=ve*3,K=Symbol.for("constructDateFrom");function l(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&K in t?t[K](e):t instanceof Date?new t.constructor(e):new Date(e)}function d(t,e){return l(e||t,t)}function T(t,e,r){let o=d(t,r?.in);return isNaN(e)?l(r?.in||t,NaN):(e&&o.setDate(o.getDate()+e),o)}function z(t,e,r){let o=d(t,r?.in);if(isNaN(e))return l(r?.in||t,NaN);if(!e)return o;let n=o.getDate(),a=l(r?.in||t,o.getTime());a.setMonth(o.getMonth()+e+1,0);let i=a.getDate();return n>=i?a:(o.setFullYear(a.getFullYear(),a.getMonth(),n),o)}var Ce={};function C(){return Ce}function p(t,e){let r=C(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=d(t,e?.in),a=n.getDay(),i=(a<o?7:0)+a-o;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function L(t,e){return p(t,{...e,weekStartsOn:1})}function N(t,e){let r=d(t,e?.in),o=r.getFullYear(),n=l(r,0);n.setFullYear(o+1,0,4),n.setHours(0,0,0,0);let a=L(n),i=l(r,0);i.setFullYear(o,0,4),i.setHours(0,0,0,0);let c=L(i);return r.getTime()>=a.getTime()?o+1:r.getTime()>=c.getTime()?o:o-1}function U(t){let e=d(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function Dt(t,...e){let r=l.bind(null,t||e.find(o=>typeof o=="object"));return e.map(r)}function tt(t,e){let r=d(t,e?.in);return r.setHours(0,0,0,0),r}function Mt(t,e,r){let[o,n]=Dt(r?.in,t,e),a=tt(o),i=tt(n),c=+a-U(a),f=+i-U(i);return Math.round((c-f)/Ct)}function Pt(t,e){let r=N(t,e),o=l(e?.in||t,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),L(o)}function q(t,e,r){return T(t,e*7,r)}function Lt(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function _t(t){return!(!Lt(t)&&typeof t!="number"||isNaN(+d(t)))}function Wt(t,e){let r=d(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Ot(t,e){let r=C(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=d(t,e?.in),a=n.getDay(),i=(a<o?-7:0)+6-(a-o);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}var xe={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"}},Tt=(t,e,r)=>{let o,n=xe[t];return typeof n=="string"?o=n:e===1?o=n.one:o=n.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function M(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var De={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Me={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},St={date:M({formats:De,defaultWidth:"full"}),time:M({formats:Me,defaultWidth:"full"}),dateTime:M({formats:Pe,defaultWidth:"full"})};var Le={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},It=(t,e,r,o)=>Le[t];function g(t){return(e,r)=>{let o=r?.context?String(r.context):"standalone",n;if(o==="formatting"&&t.formattingValues){let i=t.defaultFormattingWidth||t.defaultWidth,c=r?.width?String(r.width):i;n=t.formattingValues[c]||t.formattingValues[i]}else{let i=t.defaultWidth,c=r?.width?String(r.width):t.defaultWidth;n=t.values[c]||t.values[i]}let a=t.argumentCallback?t.argumentCallback(e):e;return n[a]}}var _e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},We={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Oe={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"]},Te={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"]},Se={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"}},Ie={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"}},Ee=(t,e)=>{let r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Et={ordinalNumber:Ee,era:g({values:_e,defaultWidth:"wide"}),quarter:g({values:We,defaultWidth:"wide",argumentCallback:t=>t-1}),month:g({values:Oe,defaultWidth:"wide"}),day:g({values:Te,defaultWidth:"wide"}),dayPeriod:g({values:Se,defaultWidth:"wide",formattingValues:Ie,defaultFormattingWidth:"wide"})};function y(t){return(e,r={})=>{let o=r.width,n=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],a=e.match(n);if(!a)return null;let i=a[0],c=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(c)?Ve(c,u=>u.test(i)):He(c,u=>u.test(i)),b;b=t.valueCallback?t.valueCallback(f):f,b=r.valueCallback?r.valueCallback(b):b;let m=e.slice(i.length);return{value:b,rest:m}}}function He(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function Ve(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function B(t){return(e,r={})=>{let o=e.match(t.matchPattern);if(!o)return null;let n=o[0],a=e.match(t.parsePattern);if(!a)return null;let i=t.valueCallback?t.valueCallback(a[0]):a[0];i=r.valueCallback?r.valueCallback(i):i;let c=e.slice(n.length);return{value:i,rest:c}}}var Fe=/^(\d+)(th|st|nd|rd)?/i,Ye=/\d+/i,je={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},ze={any:[/^b/i,/^(a|c)/i]},Ne={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},qe={any:[/1/i,/2/i,/3/i,/4/i]},Be={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},Re={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]},Ae={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},Ze={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]},Xe={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},Qe={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}},Ht={ordinalNumber:B({matchPattern:Fe,parsePattern:Ye,valueCallback:t=>parseInt(t,10)}),era:y({matchPatterns:je,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),quarter:y({matchPatterns:Ne,defaultMatchWidth:"wide",parsePatterns:qe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:y({matchPatterns:Be,defaultMatchWidth:"wide",parsePatterns:Re,defaultParseWidth:"any"}),day:y({matchPatterns:Ae,defaultMatchWidth:"wide",parsePatterns:Ze,defaultParseWidth:"any"}),dayPeriod:y({matchPatterns:Xe,defaultMatchWidth:"any",parsePatterns:Qe,defaultParseWidth:"any"})};var et={code:"en-US",formatDistance:Tt,formatLong:St,formatRelative:It,localize:Et,match:Ht,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Vt(t,e){let r=d(t,e?.in);return Mt(r,Wt(r))+1}function Ft(t,e){let r=d(t,e?.in),o=+L(r)-+Pt(r);return Math.round(o/j)+1}function R(t,e){let r=d(t,e?.in),o=r.getFullYear(),n=C(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=l(e?.in||t,0);i.setFullYear(o+1,0,a),i.setHours(0,0,0,0);let c=p(i,e),f=l(e?.in||t,0);f.setFullYear(o,0,a),f.setHours(0,0,0,0);let b=p(f,e);return+r>=+c?o+1:+r>=+b?o:o-1}function Yt(t,e){let r=C(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=R(t,e),a=l(e?.in||t,0);return a.setFullYear(n,0,o),a.setHours(0,0,0,0),p(a,e)}function jt(t,e){let r=d(t,e?.in),o=+p(r,e)-+Yt(r,e);return Math.round(o/j)+1}function s(t,e){let r=t<0?"-":"",o=Math.abs(t).toString().padStart(e,"0");return r+o}var D={y(t,e){let r=t.getFullYear(),o=r>0?r:1-r;return s(e==="yy"?o%100:o,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):s(r+1,2)},d(t,e){return s(t.getDate(),e.length)},a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return s(t.getHours()%12||12,e.length)},H(t,e){return s(t.getHours(),e.length)},m(t,e){return s(t.getMinutes(),e.length)},s(t,e){return s(t.getSeconds(),e.length)},S(t,e){let r=e.length,o=t.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return s(n,e.length)}};var S={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rt={G:function(t,e,r){let o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){let o=t.getFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return D.y(t,e)},Y:function(t,e,r,o){let n=R(t,o),a=n>0?n:1-n;if(e==="YY"){let i=a%100;return s(i,2)}return e==="Yo"?r.ordinalNumber(a,{unit:"year"}):s(a,e.length)},R:function(t,e){let r=N(t);return s(r,e.length)},u:function(t,e){let r=t.getFullYear();return s(r,e.length)},Q:function(t,e,r){let o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return s(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,r){let o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return s(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,r){let o=t.getMonth();switch(e){case"M":case"MM":return D.M(t,e);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,r){let o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return s(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,r,o){let n=jt(t,o);return e==="wo"?r.ordinalNumber(n,{unit:"week"}):s(n,e.length)},I:function(t,e,r){let o=Ft(t);return e==="Io"?r.ordinalNumber(o,{unit:"week"}):s(o,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):D.d(t,e)},D:function(t,e,r){let o=Vt(t);return e==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):s(o,e.length)},E:function(t,e,r){let o=t.getDay();switch(e){case"E":case"EE":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"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,r,o){let n=t.getDay(),a=(n-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return s(a,2);case"eo":return r.ordinalNumber(a,{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"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,r,o){let n=t.getDay(),a=(n-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return s(a,e.length);case"co":return r.ordinalNumber(a,{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"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,r){let o=t.getDay(),n=o===0?7:o;switch(e){case"i":return String(n);case"ii":return s(n,e.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,r){let n=t.getHours()/12>=1?"pm":"am";switch(e){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"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){let o=t.getHours(),n;switch(o===12?n=S.noon:o===0?n=S.midnight:n=o/12>=1?"pm":"am",e){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"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){let o=t.getHours(),n;switch(o>=17?n=S.evening:o>=12?n=S.afternoon:o>=4?n=S.morning:n=S.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let o=t.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return D.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):D.H(t,e)},K:function(t,e,r){let o=t.getHours()%12;return e==="Ko"?r.ordinalNumber(o,{unit:"hour"}):s(o,e.length)},k:function(t,e,r){let o=t.getHours();return o===0&&(o=24),e==="ko"?r.ordinalNumber(o,{unit:"hour"}):s(o,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):D.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):D.s(t,e)},S:function(t,e){return D.S(t,e)},X:function(t,e,r){let o=t.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Nt(o);case"XXXX":case"XX":return _(o);case"XXXXX":case"XXX":default:return _(o,":")}},x:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"x":return Nt(o);case"xxxx":case"xx":return _(o);case"xxxxx":case"xxx":default:return _(o,":")}},O:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+zt(o,":");case"OOOO":default:return"GMT"+_(o,":")}},z:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+zt(o,":");case"zzzz":default:return"GMT"+_(o,":")}},t:function(t,e,r){let o=Math.trunc(+t/1e3);return s(o,e.length)},T:function(t,e,r){return s(+t,e.length)}};function zt(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=Math.trunc(o/60),a=o%60;return a===0?r+String(n):r+String(n)+e+s(a,2)}function Nt(t,e){return t%60===0?(t>0?"-":"+")+s(Math.abs(t)/60,2):_(t,e)}function _(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=s(Math.trunc(o/60),2),a=s(o%60,2);return r+n+e+a}var qt=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Bt=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Ge=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return qt(t,e);let a;switch(o){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",qt(o,e)).replace("{{time}}",Bt(n,e))},Rt={p:Bt,P:Ge};var $e=/^D+$/,Je=/^Y+$/,Ke=["D","DD","YY","YYYY"];function At(t){return $e.test(t)}function Zt(t){return Je.test(t)}function Xt(t,e,r){let o=Ue(t,e,r);if(console.warn(o),Ke.includes(t))throw new RangeError(o)}function Ue(t,e,r){let o=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var tr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,er=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rr=/^'([^]*?)'?$/,or=/''/g,nr=/[a-zA-Z]/;function H(t,e,r){let o=C(),n=r?.locale??o.locale??et,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=d(t,r?.in);if(!_t(c))throw new RangeError("Invalid time value");let f=e.match(er).map(m=>{let u=m[0];if(u==="p"||u==="P"){let J=Rt[u];return J(m,n.formatLong)}return m}).join("").match(tr).map(m=>{if(m==="''")return{isToken:!1,value:"'"};let u=m[0];if(u==="'")return{isToken:!1,value:ar(m)};if(rt[u])return{isToken:!0,value:m};if(u.match(nr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:m}});n.localize.preprocessor&&(f=n.localize.preprocessor(c,f));let b={firstWeekContainsDate:a,weekStartsOn:i,locale:n};return f.map(m=>{if(!m.isToken)return m.value;let u=m.value;(!r?.useAdditionalWeekYearTokens&&Zt(u)||!r?.useAdditionalDayOfYearTokens&&At(u))&&Xt(u,e,String(t));let J=rt[u[0]];return J(c,u,n.localize,b)}).join("")}function ar(t){let e=t.match(rr);return e?e[1].replace(or,"'"):t}function Qt(t,e,r){return T(t,-e,r)}function ot(t,e,r){return z(t,-e,r)}function Gt(t,e,r){return q(t,-e,r)}var ir={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xEAs",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xEAs",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},$t=(t,e,r)=>{let o,n=ir[t];return typeof n=="string"?o=n:e===1?o=n.one:o=n.other.replace("{{count}}",String(e)),r?.addSuffix?r.comparison&&r.comparison>0?"em "+o:"h\xE1 "+o:o};var sr={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},dr={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},cr={full:"{{date}} '\xE0s' {{time}}",long:"{{date}} '\xE0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jt={date:M({formats:sr,defaultWidth:"full"}),time:M({formats:dr,defaultWidth:"full"}),dateTime:M({formats:cr,defaultWidth:"full"})};var lr={lastWeek:t=>{let e=t.getDay();return"'"+(e===0||e===6?"\xFAltimo":"\xFAltima")+"' eeee '\xE0s' p"},yesterday:"'ontem \xE0s' p",today:"'hoje \xE0s' p",tomorrow:"'amanh\xE3 \xE0s' p",nextWeek:"eeee '\xE0s' p",other:"P"},Kt=(t,e,r,o)=>{let n=lr[t];return typeof n=="function"?n(e):n};var ur={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},mr={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xBA trimestre","2\xBA trimestre","3\xBA trimestre","4\xBA trimestre"]},fr={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},pr={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xE7a","quarta","quinta","sexta","s\xE1bado"],wide:["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"]},hr={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"tarde",night:"noite"}},gr={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},yr=(t,e)=>{let r=Number(t);return e?.unit==="week"?r+"\xAA":r+"\xBA"},Ut={ordinalNumber:yr,era:g({values:ur,defaultWidth:"wide"}),quarter:g({values:mr,defaultWidth:"wide",argumentCallback:t=>t-1}),month:g({values:fr,defaultWidth:"wide"}),day:g({values:pr,defaultWidth:"wide"}),dayPeriod:g({values:hr,defaultWidth:"wide",formattingValues:gr,defaultFormattingWidth:"wide"})};var wr=/^(\d+)[ºªo]?/i,kr=/\d+/i,br={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},vr={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Cr={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},xr={any:[/1/i,/2/i,/3/i,/4/i]},Dr={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},Mr={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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},Pr={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Lr={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},_r={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Wr={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},te={ordinalNumber:B({matchPattern:wr,parsePattern:kr,valueCallback:t=>parseInt(t,10)}),era:y({matchPatterns:br,defaultMatchWidth:"wide",parsePatterns:vr,defaultParseWidth:"any"}),quarter:y({matchPatterns:Cr,defaultMatchWidth:"wide",parsePatterns:xr,defaultParseWidth:"any",valueCallback:t=>t+1}),month:y({matchPatterns:Dr,defaultMatchWidth:"wide",parsePatterns:Mr,defaultParseWidth:"any"}),day:y({matchPatterns:Pr,defaultMatchWidth:"wide",parsePatterns:Lr,defaultParseWidth:"any"}),dayPeriod:y({matchPatterns:_r,defaultMatchWidth:"any",parsePatterns:Wr,defaultParseWidth:"any"})};var V={code:"pt-BR",formatDistance:$t,formatLong:Jt,formatRelative:Kt,localize:Ut,match:te,options:{weekStartsOn:0,firstWeekContainsDate:1}};import{capitalize as to}from"@xjur-ui/util";import{Slot as Ir}from"@radix-ui/react-slot";import{cva as Er}from"@xjur-ui/util";import{memo as oe,useState as Hr}from"react";import*as A from"@radix-ui/react-tooltip";import{jsx as nt}from"react/jsx-runtime";function Or({delayDuration:t=0,...e}){return nt(A.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function at({...t}){return nt(Or,{children:nt(A.Root,{"data-slot":"tooltip",...t})})}import*as ee from"@radix-ui/react-tooltip";import{jsx as Tr}from"react/jsx-runtime";function it({...t}){return Tr(ee.Trigger,{"data-slot":"tooltip-trigger",...t})}import*as Z from"@radix-ui/react-tooltip";import{cx as Sr}from"@xjur-ui/util";import{jsx as re}from"react/jsx-runtime";function st({className:t,sideOffset:e=1,variant:r="simple",children:o,...n}){return re(Z.Portal,{children:re(Z.Content,{className:Sr("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",t),"data-slot":"tooltip-content","data-variant":r,sideOffset:e,...n,children:o})})}import{jsx as X,jsxs as Yr}from"react/jsx-runtime";var Vr=Er("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),Q=oe(({variant:t,size:e,weight:r,asChild:o,className:n,children:a,...i})=>X(o?Ir:"span",{className:Vr({variant:t,size:e,weight:r,className:n}),...i,children:a}));Q.displayName="Typography";var Fr=oe(({children:t,...e})=>{let[r,o]=Hr(!1);return Yr(at,{children:[X(it,{asChild:!0,children:X(Q,{onMouseEnter:({currentTarget:a})=>{let i=a.scrollWidth>a.clientWidth;o(i),i?a.style.cursor="pointer":a.style.cursor="text"},...e,children:t})}),r&&X(st,{children:t})]})});Fr.displayName="TruncatedTypography";import{Slot as jr}from"@radix-ui/react-slot";import{cva as zr,cx as Nr}from"@xjur-ui/util";import{jsx as Br}from"react/jsx-runtime";var qr=zr(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function dt({asChild:t,className:e,variant:r="primary",size:o="md",appearance:n="solid",...a}){return Br(t?jr:"button",{className:Nr(qr({variant:r,appearance:n,size:o}),e),...a})}import{cx as Gr}from"@xjur-ui/util";var ne=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as w,jsxs as Rr}from"react/jsx-runtime";function ct(){return Rr("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[w("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),w("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),w("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),w("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),w("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),w("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),w("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),w("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),w("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),w("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),w("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),w("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as v,jsxs as ae}from"react/jsx-runtime";function lt(){return ae("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ae("g",{clipPath:"url(#clip0_19548_42822)",children:[v("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),v("defs",{children:v("clipPath",{id:"clip0_19548_42822",children:v("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as G,jsxs as Ar}from"react/jsx-runtime";function ut(){return Ar("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[G("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),G("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),G("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),G("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as h,jsxs as ie}from"react/jsx-runtime";function mt(){return ie("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ie("g",{clipPath:"url(#clip0_19548_42667)",children:[h("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),h("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),h("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),h("defs",{children:h("clipPath",{id:"clip0_19548_42667",children:h("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as W,jsxs as Zr}from"react/jsx-runtime";function ft(){return Zr("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[W("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),W("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),W("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),W("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),W("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),W("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),W("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as I,jsxs as se}from"react/jsx-runtime";function pt(){return se("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[se("g",{clipPath:"url(#clip0_19548_42803)",children:[I("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),I("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),I("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),I("defs",{children:I("clipPath",{id:"clip0_19548_42803",children:I("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as O,jsxs as de}from"react/jsx-runtime";function ht(){return de("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[de("g",{clipPath:"url(#clip0_19548_42782)",children:[O("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),O("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),O("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),O("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),O("defs",{children:O("clipPath",{id:"clip0_19548_42782",children:O("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as $,jsxs as Xr}from"react/jsx-runtime";function gt(){return Xr("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[$("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),$("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),$("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),$("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as P,jsxs as ce}from"react/jsx-runtime";function yt(){return ce("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ce("g",{clipPath:"url(#clip0_19548_42757)",children:[P("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),P("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),P("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),P("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),P("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),P("defs",{children:P("clipPath",{id:"clip0_19548_42757",children:P("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as E,jsxs as le}from"react/jsx-runtime";function wt(){return le("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[le("g",{clipPath:"url(#clip0_19548_42810)",children:[E("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),E("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),E("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),E("defs",{children:E("clipPath",{id:"clip0_19548_42810",children:E("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as x,jsxs as ue}from"react/jsx-runtime";function kt(){return ue("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ue("g",{clipPath:"url(#clip0_21377_57335)",children:[x("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),x("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),x("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),x("defs",{children:x("clipPath",{id:"clip0_21377_57335",children:x("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as F,jsxs as Qr}from"react/jsx-runtime";function bt(){return Qr("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[F("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),F("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),F("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),F("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),F("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as k}from"react/jsx-runtime";function me({name:t}){switch(t){case"agenda":return k(ct,{});case"contencioso":return k(mt,{});case"contrato":return k(ft,{});case"consultivo":return k(ut,{});case"xsigner":return k(bt,{});case"procuracao":return k(yt,{});case"xpay":return k(kt,{});case"imobiliario":return k(ht,{});case"marcasepatentes":return k(gt,{});case"ged":return k(pt,{});case"regulatorio":return k(wt,{});case"compliance":return k(lt,{});default:return null}}import{jsx as fe}from"react/jsx-runtime";function vt({className:t,filled:e=!1,name:r,...o}){return ne.includes(r)?fe(me,{name:r}):fe("span",{...o,className:Gr("material-symbols-outlined","text-size-body-lg select-none",t),style:{fontVariationSettings:`'FILL' ${e?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:r})}import{createContext as $r,use as Jr,useCallback as Xi,useMemo as Qi,useState as Gi}from"react";import{DndContext as Ji,closestCenter as Ki,useSensor as Ui,useSensors as ts,PointerSensor as es,KeyboardSensor as rs,MouseSensor as os}from"@dnd-kit/core";import{sortableKeyboardCoordinates as as}from"@dnd-kit/sortable";import{jsx as ss}from"react/jsx-runtime";var Kr=$r({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function pe(){let t=Jr(Kr);if(!t)throw new Error("useFullCalendar must be used within a CalendarRoot");return t}var hs=Array.from({length:16},(t,e)=>{let r=e+8;return{hour:r,label:`${r.toString().padStart(2,"0")}:00`}});function he(t){let e=p(t,{weekStartsOn:0}),r=Ot(t,{weekStartsOn:0});return{start:e,end:r}}import{jsx as Y,jsxs as ye}from"react/jsx-runtime";function Ps(){let{selectedDate:t,calendarView:e,setSelectedDate:r}=pe(),o=Ur(()=>{if(e==="month")return to(H(t,"MMMM 'de' yyyy",{locale:V}));if(e==="week"){let{start:i,end:c}=he(t),f=H(c,"MMMM",{locale:V}),b=H(c,"yyyy",{locale:V});return`${i.getDate()} - ${c.getDate()} de ${f} de ${b}`}return H(t,"dd 'de' MMMM 'de' yyyy",{locale:V})},[t,e]),n=ge(()=>{if(e==="month"){r(z(t,1));return}if(e==="week"){let c=p(q(t,1));r(c);return}let i=T(t,1);r(i)},[t,r,e]),a=ge(()=>{if(e==="month"){r(ot(t,1));return}e==="week"&&r(Gt(t,1)),r(Qt(t,1))},[t,r,e]);return ye("div",{className:"gap-large flex items-center",children:[Y(Q,{className:"text-title-neutral",size:"lg",variant:"title",children:o}),ye("div",{className:"gap-small flex items-center",children:[Y(dt,{size:"icon_md",variant:"tertiary",onClick:a,children:Y(vt,{className:"text-icon-neutral-3",name:"chevron_left"})}),Y(dt,{size:"icon_md",variant:"tertiary",onClick:n,children:Y(vt,{className:"text-icon-neutral-3",name:"chevron_right"})})]})]})}export{Ps as CalendarNavigator};
@@ -1 +1 @@
1
- import*as $ from"@radix-ui/react-popover";import{createContext as te,useContext as oe}from"react";var h=te({state:"normal",variant:"normal",customMask:void 0,mask:void 0});function l(){let e=oe(h);if(!e)throw new Error("useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.");return e}import{tv as re}from"@xjur-ui/util";var s=re({slots:{wrapper:"group flex flex-col gap-small-2x",trigger:["h-large-4x w-auto inline-flex cursor-pointer relative","items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-idle border border-border-layer-2","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:["group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)] group-data-[state=open]:rotate-180 transition-transform duration-200"],icon:"size-large text-icon-neutral-3 flex items-center justify-center",slotText:"size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder",caption:"!text-size-body-sm font-normal"},variants:{state:{normal:{trigger:"hover:border-border-layer-3 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}});import{jsx as C}from"react/jsx-runtime";var{wrapper:ae}=s();function w({className:e,state:t="normal",defaultOpen:o,variant:r="normal",modal:n,open:a,onOpenChange:i,...p}){return C($.Root,{defaultOpen:o,modal:n,open:a,onOpenChange:i,children:C(h.Provider,{value:{state:t,variant:r},children:C("div",{className:ae({className:e,state:t}),...p})})})}import{tv as ne,twMerge as ie}from"@xjur-ui/util";import*as q from"@radix-ui/react-popover";import{jsx as se}from"react/jsx-runtime";var{trigger:le}=s();function P({className:e,...t}){let{state:o,variant:r}=l(),n=ne({base:["group bg-layer-2-idle"],variants:{state:{normal:["border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle"],error:["border-danger-idle hover:border-danger-idle"],disabled:["border border-border-layer-2 opacity-60"]}}}),a=ie(le({state:o,className:e}),r==="filter"&&n({state:o,className:e}));return se(q.Trigger,{className:a,disabled:o==="disabled",...t})}import{cx as pe}from"@xjur-ui/util";import{jsx as me}from"react/jsx-runtime";function B({className:e,filled:t=!1,name:o,...r}){return me("span",{...r,className:pe("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}import{jsx as G}from"react/jsx-runtime";var{icon:de}=s();function _({className:e,name:t,orientation:o="left",...r}){let{state:n}=l();return G("div",{className:de({className:e,state:n}),"data-slot":`control-${o}-slot`,...r,children:G(B,{name:t})})}import{twJoin as Ce}from"@xjur-ui/util";import{useMemo as we}from"react";import{Slot as ve}from"@radix-ui/react-slot";import{cva as ge}from"@xjur-ui/util";import{memo as J,useState as xe}from"react";import*as v from"@radix-ui/react-tooltip";import{jsx as T}from"react/jsx-runtime";function ce({delayDuration:e=0,...t}){return T(v.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function S({...e}){return T(ce,{children:T(v.Root,{"data-slot":"tooltip",...e})})}import*as K from"@radix-ui/react-tooltip";import{jsx as ue}from"react/jsx-runtime";function z({...e}){return ue(K.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as g from"@radix-ui/react-tooltip";import{cx as fe}from"@xjur-ui/util";import{jsx as W}from"react/jsx-runtime";function V({className:e,sideOffset:t=1,variant:o="simple",children:r,...n}){return W(g.Portal,{children:W(g.Content,{className:fe("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...n,children:r})})}import{jsx as x,jsxs as be}from"react/jsx-runtime";var ye=ge("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),d=J(({variant:e,size:t,weight:o,asChild:r,className:n,children:a,...i})=>x(r?ve:"span",{className:ye({variant:e,size:t,weight:o,className:n}),...i,children:a}));d.displayName="Typography";var R=J(({children:e,...t})=>{let[o,r]=xe(!1);return be(S,{children:[x(z,{asChild:!0,children:x(d,{onMouseEnter:({currentTarget:a})=>{let i=a.scrollWidth>a.clientWidth;r(i),i?a.style.cursor="pointer":a.style.cursor="text"},...t,children:e})}),o&&x(V,{children:e})]})});R.displayName="TruncatedTypography";import{tv as he}from"@xjur-ui/util";import{jsx as Y}from"react/jsx-runtime";function k({className:e,htmlFor:t,children:o,...r}){let{state:n}=l(),a=he({base:["group inline-block max-w-full truncate text-left","ease animate-in left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2 transition-all duration-250","text-size-body-md","group-focus-within:-top-[3px]","group-data-[state=open]:-top-[3px]","group-focus-within:text-size-label-sm-1x group-focus-within:font-medium","group-data-[state=open]:text-size-label-sm-1x group-data-[state=open]:font-medium","group-has-[input:not(:placeholder-shown)]:-top-[3px]","group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x","group-has-[input:not(:placeholder-shown)]:font-medium","group-has-[div[data-slot=control-left-slot]]:left-large-4x","group-has-[div[data-slot=control-left-slot]]:group-focus-within:left-small","group-has-[div[data-slot=control-left-slot]]:group-has-[input:not(:placeholder-shown)]:left-small","group-has-[div[data-slot=control-left-slot]]:group-data-[state=open]:left-small","group-focus-within:animate-in","group-has-[input:not(:placeholder-shown)]:animate-out","data-[disabled=true]:hidden"],variants:{state:{normal:["group-focus-within:!text-primary-idle group-data-[state=open]:!text-primary-idle","group-has-[input:not(:placeholder-shown)]:!text-primary-idle"],error:["group-focus-within:!text-danger-label-active group-data-[state=open]:!text-danger-label-active","group-has-[input:not(:placeholder-shown)]:!text-danger-label-active"],disabled:[]}}});return Y("label",{className:a({className:e,state:n}),htmlFor:t,...r,children:Y("span",{className:"rounded-small-1x bg-layer-2-idle max-w-full",children:o})})}import{jsx as y,jsxs as Pe}from"react/jsx-runtime";function D({className:e,value:t,placeholder:o,renderValue:r,...n}){let{variant:a}=l(),i=we(()=>{let p=r?r(t??""):typeof t=="object"?t?.label:t;return a==="filter"?p:p||o},[t,o,a,r]);return Pe("div",{className:"grid w-full items-center",children:[o&&a==="filter"&&y(k,{children:o}),o&&a==="filter"&&y(d,{className:"invisible col-start-1 row-start-1 self-center",children:o}),y(d,{className:"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left",children:i}),y("input",{...n,"aria-readonly":!0,className:Ce("pointer-events-none",e),hidden:!0,placeholder:" ",readOnly:!0,value:typeof t=="object"?t?.value??"":t??""})]})}import{twMerge as Wt}from"@xjur-ui/util";import{Fragment as Yt,useMemo as Qt}from"react";import{jsx as eo,jsxs as to}from"react/jsx-runtime";import*as b from"@radix-ui/react-popover";import{Slot as Te}from"@radix-ui/react-slot";import{cx as Se}from"@xjur-ui/util";import{useVirtualizer as ze}from"@tanstack/react-virtual";import{useRef as Ve}from"react";import{createContext as _e}from"react";var f=_e({virtualizer:null,enabled:!1});import{jsx as Q}from"react/jsx-runtime";function N({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:n=0,estimateSize:a=()=>48,overscan:i=5,...p}){let u=t?Te:"div",m=Ve(null),ee=ze({count:n,getScrollElement:()=>m.current,estimateSize:a,overscan:i,enabled:r});return Q(f.Provider,{value:{virtualizer:ee,enabled:r},children:Q(u,{...p,className:Se(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:m,children:o})})}import{Slot as fo}from"@radix-ui/react-slot";import{cx as go}from"@xjur-ui/util";import{jsx as yo}from"react/jsx-runtime";import{cx as Co}from"@xjur-ui/util";import{jsx as _o}from"react/jsx-runtime";import{Slot as Re}from"@radix-ui/react-slot";import{cx as U}from"@xjur-ui/util";import{useContext as ke}from"react";import{jsx as I}from"react/jsx-runtime";function E({className:e,asChild:t,children:o,renderItem:r,...n}){let a=t?Re:"ul",{virtualizer:i,enabled:p}=ke(f);if(p&&i&&r){let u=i.getVirtualItems();return I(a,{...n,className:U("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:u.map(m=>I("div",{className:"absolute top-0 left-0 w-full","data-index":m.index,ref:i.measureElement,style:{transform:`translateY(${m.start}px)`},children:r(m.index)},m.key))})}return I(a,{...n,className:U("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as De}from"@radix-ui/react-slot";import{cx as Ne,cva as Ie}from"@xjur-ui/util";import{jsx as Le}from"react/jsx-runtime";var Ee=Ie(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});function L({className:e,size:t,isActive:o,asChild:r,...n}){return Le(r?De:"li",{...n,className:Ne(Ee({size:t,isActive:o}),e)})}import{jsx as F}from"react/jsx-runtime";var{content:Me}=s();function O({className:e,sideOffset:t=5,side:o="bottom",align:r="start",children:n,virtualized:a=!1,overscan:i=5,estimateSize:p=()=>32,...u}){let{state:m}=l();return F(b.Portal,{children:F(b.Content,{align:r,className:Me({className:e,state:m}),side:o,sideOffset:t,...u,children:F(N,{estimateSize:p,overscan:i,virtualized:a,children:n})})})}import{jsx as Zo}from"react/jsx-runtime";var{caption:Uo}=s();import{jsx as ar}from"react/jsx-runtime";var{slotText:or}=s();import{jsx as He}from"react/jsx-runtime";function M(e){return He(E,{...e})}import{twMerge as Ae}from"@xjur-ui/util";import{jsx as $e}from"react/jsx-runtime";function H({className:e,value:t,...o}){return $e(L,{className:Ae(e,"cursor-pointer"),value:typeof t=="object"?t?.value:t,...o})}import{twMerge as qe}from"@xjur-ui/util";import{jsx as Be}from"react/jsx-runtime";function A({className:e,...t}){return Be(R,{className:qe(e,"truncate"),...t})}import{jsx as br}from"react/jsx-runtime";import{jsx as Pr}from"react/jsx-runtime";import{createContext as Ge,use as Ke,useCallback as Wr,useMemo as Jr,useState as Yr}from"react";import{DndContext as Ur,closestCenter as Xr,useSensor as Zr,useSensors as jr,PointerSensor as ea,KeyboardSensor as ta,MouseSensor as oa}from"@dnd-kit/core";import{sortableKeyboardCoordinates as aa}from"@dnd-kit/sortable";import{jsx as ia}from"react/jsx-runtime";var We=Ge({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function X(){let e=Ke(We);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{jsx as c,jsxs as j}from"react/jsx-runtime";var Z=[{name:"M\xEAs",value:"month"},{name:"Semana",value:"week"},{name:"Dia",value:"day"}];function ma(){let{calendarView:e,handleChangeView:t}=X();return c("div",{className:"w-[94px]",children:j(w,{children:[j(P,{children:[c(D,{name:"calendar-toggle-view",renderValue:o=>Z.find(r=>r.value===o)?.name??"",value:e}),c(_,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})]}),c(O,{children:c(M,{children:Z.map(o=>c(H,{isActive:e===o.value,value:o.value,onClick:()=>t(o.value),children:c(A,{children:o.name})},o.value))})})]})})}export{ma as CalendarToggleView};
1
+ import*as me from"@radix-ui/react-popover";import{createContext as Fe,useContext as Ze}from"react";var H=Fe({state:"normal",variant:"normal",customMask:void 0,mask:void 0});function l(){let e=Ze(H);if(!e)throw new Error("useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.");return e}import{tv as Be}from"@xjur-ui/util";var p=Be({slots:{wrapper:"group flex flex-col gap-small-2x",trigger:["h-large-4x w-auto inline-flex cursor-pointer relative","items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-idle border border-border-layer-2","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:["group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)] group-data-[state=open]:rotate-180 transition-transform duration-200"],icon:"size-large text-icon-neutral-3 flex items-center justify-center",slotText:"size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder",caption:"!text-size-body-sm font-normal"},variants:{state:{normal:{trigger:"hover:border-border-layer-3 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}});import{jsx as I}from"react/jsx-runtime";var{wrapper:Oe}=p();function R({className:e,state:o="normal",defaultOpen:t,variant:r="normal",modal:i,open:n,onOpenChange:a,...m}){return I(me.Root,{defaultOpen:t,modal:i,open:n,onOpenChange:a,children:I(H.Provider,{value:{state:o,variant:r},children:I("div",{className:Oe({className:e,state:o}),...m})})})}import{tv as Ae,twMerge as je}from"@xjur-ui/util";import*as ue from"@radix-ui/react-popover";import{jsx as Ge}from"react/jsx-runtime";var{trigger:We}=p();function E({className:e,...o}){let{state:t,variant:r}=l(),i=Ae({base:["group bg-layer-2-idle"],variants:{state:{normal:["border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle"],error:["border-danger-idle hover:border-danger-idle"],disabled:["border border-border-layer-2 opacity-60"]}}}),n=je(We({state:t,className:e}),r==="filter"&&i({state:t,className:e}));return Ge(ue.Trigger,{className:n,disabled:t==="disabled",...o})}import{cx as Ye}from"@xjur-ui/util";var fe=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as d,jsxs as Xe}from"react/jsx-runtime";function N(){return Xe("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),d("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),d("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),d("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),d("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),d("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),d("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),d("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),d("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),d("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),d("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),d("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as u,jsxs as Ce}from"react/jsx-runtime";function F(){return Ce("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ce("g",{clipPath:"url(#clip0_19548_42822)",children:[u("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),u("defs",{children:u("clipPath",{id:"clip0_19548_42822",children:u("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as P,jsxs as $e}from"react/jsx-runtime";function Z(){return $e("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[P("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),P("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),P("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),P("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as s,jsxs as he}from"react/jsx-runtime";function B(){return he("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[he("g",{clipPath:"url(#clip0_19548_42667)",children:[s("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),s("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),s("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),s("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),s("defs",{children:s("clipPath",{id:"clip0_19548_42667",children:s("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as g,jsxs as qe}from"react/jsx-runtime";function O(){return qe("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[g("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),g("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),g("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as y,jsxs as ge}from"react/jsx-runtime";function A(){return ge("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ge("g",{clipPath:"url(#clip0_19548_42803)",children:[y("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),y("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),y("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),y("defs",{children:y("clipPath",{id:"clip0_19548_42803",children:y("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as v,jsxs as ve}from"react/jsx-runtime";function j(){return ve("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ve("g",{clipPath:"url(#clip0_19548_42782)",children:[v("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),v("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),v("defs",{children:v("clipPath",{id:"clip0_19548_42782",children:v("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as D,jsxs as Ke}from"react/jsx-runtime";function W(){return Ke("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[D("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),D("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),D("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),D("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as h,jsxs as xe}from"react/jsx-runtime";function G(){return xe("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[xe("g",{clipPath:"url(#clip0_19548_42757)",children:[h("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),h("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),h("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),h("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),h("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),h("defs",{children:h("clipPath",{id:"clip0_19548_42757",children:h("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as w,jsxs as ke}from"react/jsx-runtime";function X(){return ke("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ke("g",{clipPath:"url(#clip0_19548_42810)",children:[w("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),w("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),w("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),w("defs",{children:w("clipPath",{id:"clip0_19548_42810",children:w("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as f,jsxs as ye}from"react/jsx-runtime";function $(){return ye("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ye("g",{clipPath:"url(#clip0_21377_57335)",children:[f("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),f("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),f("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),f("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),f("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),f("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),f("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),f("defs",{children:f("clipPath",{id:"clip0_21377_57335",children:f("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as L,jsxs as Je}from"react/jsx-runtime";function q(){return Je("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[L("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),L("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),L("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),L("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),L("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as c}from"react/jsx-runtime";function we({name:e}){switch(e){case"agenda":return c(N,{});case"contencioso":return c(B,{});case"contrato":return c(O,{});case"consultivo":return c(Z,{});case"xsigner":return c(q,{});case"procuracao":return c(G,{});case"xpay":return c($,{});case"imobiliario":return c(j,{});case"marcasepatentes":return c(W,{});case"ged":return c(A,{});case"regulatorio":return c(X,{});case"compliance":return c(F,{});default:return null}}import{jsx as be}from"react/jsx-runtime";function Le({className:e,filled:o=!1,name:t,...r}){return fe.includes(t)?be(we,{name:t}):be("span",{...r,className:Ye("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${o?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:t})}import{jsx as Me}from"react/jsx-runtime";var{icon:Qe}=p();function K({className:e,name:o,orientation:t="left",...r}){let{state:i}=l();return Me("div",{className:Qe({className:e,state:i}),"data-slot":`control-${t}-slot`,...r,children:Me(Le,{name:o})})}import{twJoin as st}from"@xjur-ui/util";import{useMemo as pt}from"react";import{Slot as ot}from"@radix-ui/react-slot";import{cva as rt}from"@xjur-ui/util";import{memo as _e,useState as it}from"react";import*as _ from"@radix-ui/react-tooltip";import{jsx as J}from"react/jsx-runtime";function Ue({delayDuration:e=0,...o}){return J(_.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...o})}function Y({...e}){return J(Ue,{children:J(_.Root,{"data-slot":"tooltip",...e})})}import*as Pe from"@radix-ui/react-tooltip";import{jsx as et}from"react/jsx-runtime";function Q({...e}){return et(Pe.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as V from"@radix-ui/react-tooltip";import{cx as tt}from"@xjur-ui/util";import{jsx as De}from"react/jsx-runtime";function U({className:e,sideOffset:o=1,variant:t="simple",children:r,...i}){return De(V.Portal,{children:De(V.Content,{className:tt("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":t,sideOffset:o,...i,children:r})})}import{jsx as T,jsxs as at}from"react/jsx-runtime";var nt=rt("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),x=_e(({variant:e,size:o,weight:t,asChild:r,className:i,children:n,...a})=>T(r?ot:"span",{className:nt({variant:e,size:o,weight:t,className:i}),...a,children:n}));x.displayName="Typography";var ee=_e(({children:e,...o})=>{let[t,r]=it(!1);return at(Y,{children:[T(Q,{asChild:!0,children:T(x,{onMouseEnter:({currentTarget:n})=>{let a=n.scrollWidth>n.clientWidth;r(a),a?n.style.cursor="pointer":n.style.cursor="text"},...o,children:e})}),t&&T(U,{children:e})]})});ee.displayName="TruncatedTypography";import{tv as lt}from"@xjur-ui/util";import{jsx as Ve}from"react/jsx-runtime";function te({className:e,htmlFor:o,children:t,...r}){let{state:i}=l(),n=lt({base:["group inline-block max-w-full truncate text-left","ease animate-in left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2 transition-all duration-250","text-size-body-md","group-focus-within:-top-[3px]","group-data-[state=open]:-top-[3px]","group-focus-within:text-size-label-sm-1x group-focus-within:font-medium","group-data-[state=open]:text-size-label-sm-1x group-data-[state=open]:font-medium","group-has-[input:not(:placeholder-shown)]:-top-[3px]","group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x","group-has-[input:not(:placeholder-shown)]:font-medium","group-has-[div[data-slot=control-left-slot]]:left-large-4x","group-has-[div[data-slot=control-left-slot]]:group-focus-within:left-small","group-has-[div[data-slot=control-left-slot]]:group-has-[input:not(:placeholder-shown)]:left-small","group-has-[div[data-slot=control-left-slot]]:group-data-[state=open]:left-small","group-focus-within:animate-in","group-has-[input:not(:placeholder-shown)]:animate-out","data-[disabled=true]:hidden"],variants:{state:{normal:["group-focus-within:!text-primary-idle group-data-[state=open]:!text-primary-idle","group-has-[input:not(:placeholder-shown)]:!text-primary-idle"],error:["group-focus-within:!text-danger-label-active group-data-[state=open]:!text-danger-label-active","group-has-[input:not(:placeholder-shown)]:!text-danger-label-active"],disabled:[]}}});return Ve("label",{className:n({className:e,state:i}),htmlFor:o,...r,children:Ve("span",{className:"rounded-small-1x bg-layer-2-idle max-w-full",children:t})})}import{jsx as S,jsxs as dt}from"react/jsx-runtime";function oe({className:e,value:o,placeholder:t,renderValue:r,...i}){let{variant:n}=l(),a=pt(()=>{let m=r?r(o??""):typeof o=="object"?o?.label:o;return n==="filter"?m:m||t},[o,t,n,r]);return dt("div",{className:"grid w-full items-center",children:[t&&n==="filter"&&S(te,{children:t}),t&&n==="filter"&&S(x,{className:"invisible col-start-1 row-start-1 self-center",children:t}),S(x,{className:"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left",children:a}),S("input",{...i,"aria-readonly":!0,className:st("pointer-events-none",e),hidden:!0,placeholder:" ",readOnly:!0,value:typeof o=="object"?o?.value??"":o??""})]})}import{twMerge as xr}from"@xjur-ui/util";import{Fragment as yr,useMemo as wr}from"react";import{jsx as Dr,jsxs as _r}from"react/jsx-runtime";import*as z from"@radix-ui/react-popover";import{Slot as mt}from"@radix-ui/react-slot";import{cx as ut}from"@xjur-ui/util";import{useVirtualizer as ft}from"@tanstack/react-virtual";import{useRef as Ct}from"react";import{createContext as ct}from"react";var M=ct({virtualizer:null,enabled:!1});import{jsx as Te}from"react/jsx-runtime";function re({className:e,asChild:o,children:t,virtualized:r=!1,itemCount:i=0,estimateSize:n=()=>48,overscan:a=5,...m}){let b=o?mt:"div",C=Ct(null),Ne=ft({count:i,getScrollElement:()=>C.current,estimateSize:n,overscan:a,enabled:r});return Te(M.Provider,{value:{virtualizer:Ne,enabled:r},children:Te(b,{...m,className:ut(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:C,children:t})})}import{Slot as Br}from"@radix-ui/react-slot";import{cx as Ar}from"@xjur-ui/util";import{jsx as Wr}from"react/jsx-runtime";import{cx as $r}from"@xjur-ui/util";import{jsx as Jr}from"react/jsx-runtime";import{Slot as ht}from"@radix-ui/react-slot";import{cx as Se}from"@xjur-ui/util";import{useContext as gt}from"react";import{jsx as ie}from"react/jsx-runtime";function ne({className:e,asChild:o,children:t,renderItem:r,...i}){let n=o?ht:"ul",{virtualizer:a,enabled:m}=gt(M);if(m&&a&&r){let b=a.getVirtualItems();return ie(n,{...i,className:Se("p-small relative flex flex-col",e),style:{height:`${a.getTotalSize()}px`},children:b.map(C=>ie("div",{className:"absolute top-0 left-0 w-full","data-index":C.index,ref:a.measureElement,style:{transform:`translateY(${C.start}px)`},children:r(C.index)},C.key))})}return ie(n,{...i,className:Se("gap-small-1x p-small flex flex-col",e),children:t})}import{Slot as vt}from"@radix-ui/react-slot";import{cx as xt,cva as kt}from"@xjur-ui/util";import{jsx as wt}from"react/jsx-runtime";var yt=kt(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});function ae({className:e,size:o,isActive:t,asChild:r,...i}){return wt(r?vt:"li",{...i,className:xt(yt({size:o,isActive:t}),e)})}import{jsx as le}from"react/jsx-runtime";var{content:Mt}=p();function se({className:e,sideOffset:o=5,side:t="bottom",align:r="start",children:i,virtualized:n=!1,overscan:a=5,estimateSize:m=()=>32,...b}){let{state:C}=l();return le(z.Portal,{children:le(z.Content,{align:r,className:Mt({className:e,state:C}),side:t,sideOffset:o,...b,children:le(re,{estimateSize:m,overscan:a,virtualized:n,children:i})})})}import{jsx as L1}from"react/jsx-runtime";var{caption:w1}=p();import{jsx as T1}from"react/jsx-runtime";var{slotText:_1}=p();import{jsx as Pt}from"react/jsx-runtime";function pe(e){return Pt(ne,{...e})}import{twMerge as Dt}from"@xjur-ui/util";import*as He from"@radix-ui/react-popover";import{jsx as ze}from"react/jsx-runtime";function de({className:e,value:o,closeOnSelect:t=!0,...r}){let i=ze(ae,{className:Dt(e,"cursor-pointer"),value:typeof o=="object"?o?.value:o,...r});return t?ze(He.Close,{asChild:!0,children:i}):i}import{twMerge as _t}from"@xjur-ui/util";import{jsx as Vt}from"react/jsx-runtime";function ce({className:e,...o}){return Vt(ee,{className:_t(e,"truncate"),...o})}import{jsx as G1}from"react/jsx-runtime";import{jsx as K1}from"react/jsx-runtime";import{Close as gi}from"@radix-ui/react-popover";import{createContext as Tt,use as St,useCallback as ki,useMemo as yi,useState as wi}from"react";import{DndContext as Li,closestCenter as Mi,useSensor as Pi,useSensors as Di,PointerSensor as _i,KeyboardSensor as Vi,MouseSensor as Ti}from"@dnd-kit/core";import{sortableKeyboardCoordinates as zi}from"@dnd-kit/sortable";import{jsx as Ii}from"react/jsx-runtime";var zt=Tt({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function Ie(){let e=St(zt);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{jsx as k,jsxs as Ee}from"react/jsx-runtime";var Re=[{name:"M\xEAs",value:"month"},{name:"Semana",value:"week"},{name:"Dia",value:"day"}];function Fi(){let{calendarView:e,handleChangeView:o}=Ie();return k("div",{className:"w-[94px]",children:Ee(R,{children:[Ee(E,{children:[k(oe,{name:"calendar-toggle-view",renderValue:t=>Re.find(r=>r.value===t)?.name??"",value:e}),k(K,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})]}),k(se,{children:k(pe,{children:Re.map(t=>k(de,{isActive:e===t.value,value:t.value,onClick:()=>o(t.value),children:k(ce,{children:t.name})},t.value))})})]})})}export{Fi as CalendarToggleView};
@@ -1 +1 @@
1
- import{createContext as $e,use as Qe,useCallback as $t,useMemo as Qt,useState as qt}from"react";import{DndContext as Gt,closestCenter as Jt,useSensor as Xt,useSensors as Zt,PointerSensor as jt,KeyboardSensor as er,MouseSensor as tr}from"@dnd-kit/core";import{sortableKeyboardCoordinates as or}from"@dnd-kit/sortable";import{jsx as nr}from"react/jsx-runtime";var qe=$e({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function c(){let e=Qe(qe);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{useCallback as Ht,useMemo as Ft}from"react";import{cx as Re}from"@xjur-ui/util";import{Slot as Xe}from"@radix-ui/react-slot";import{cva as Ze}from"@xjur-ui/util";import{memo as fe,useState as je}from"react";import*as M from"@radix-ui/react-tooltip";import{jsx as K}from"react/jsx-runtime";function Ue({delayDuration:e=0,...t}){return K(M.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function $({...e}){return K(Ue,{children:K(M.Root,{"data-slot":"tooltip",...e})})}import*as ce from"@radix-ui/react-tooltip";import{jsx as Ge}from"react/jsx-runtime";function Q({...e}){return Ge(ce.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as z from"@radix-ui/react-tooltip";import{cx as Je}from"@xjur-ui/util";import{jsx as ue}from"react/jsx-runtime";function q({className:e,sideOffset:t=1,variant:r="simple",children:o,...a}){return ue(z.Portal,{children:ue(z.Content,{className:Je("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":r,sideOffset:t,...a,children:o})})}import{jsx as S,jsxs as rt}from"react/jsx-runtime";var et=Ze("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),d=fe(({variant:e,size:t,weight:r,asChild:o,className:a,children:n,...i})=>S(o?Xe:"span",{className:et({variant:e,size:t,weight:r,className:a}),...i,children:n}));d.displayName="Typography";var tt=fe(({children:e,...t})=>{let[r,o]=je(!1);return rt($,{children:[S(Q,{asChild:!0,children:S(d,{onMouseEnter:({currentTarget:n})=>{let i=n.scrollWidth>n.clientWidth;o(i),i?n.style.cursor="pointer":n.style.cursor="text"},...t,children:e})}),r&&S(q,{children:e})]})});tt.displayName="TruncatedTypography";var ot=Math.pow(10,8)*24*60*60*1e3,_r=-ot;var at=3600;var ye=at*24,Pr=ye*7,nt=ye*365.2425,it=nt/12,kr=it*3,U=Symbol.for("constructDateFrom");function m(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&U in e?e[U](t):e instanceof Date?new e.constructor(t):new Date(t)}function l(e,t){return m(t||e,e)}function ve(e,t,r){let o=l(e,r?.in);if(isNaN(t))return m(r?.in||e,NaN);if(!t)return o;let a=o.getDate(),n=m(r?.in||e,o.getTime());n.setMonth(o.getMonth()+t+1,0);let i=n.getDate();return a>=i?n:(o.setFullYear(n.getFullYear(),n.getMonth(),a),o)}var st={};function E(){return st}function xe(e,t){let r=E(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=l(e,t?.in),n=a.getDay(),i=(n<o?7:0)+n-o;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function N(e,...t){let r=m.bind(null,e||t.find(o=>typeof o=="object"));return t.map(r)}function G(e,t){let r=l(e,t?.in);return r.setHours(0,0,0,0),r}function ge(e){return m(e,Date.now())}function P(e,t,r){let[o,a]=N(r?.in,e,t);return+G(o)==+G(a)}function J(e,t){let r=l(e,t?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(23,59,59,999),r}function he(e,t){let[r,o]=N(e,t.start,t.end);return{start:r,end:o}}function be(e,t){let{start:r,end:o}=he(t?.in,e),a=+r>+o,n=a?+r:+o,i=a?o:r;i.setHours(0,0,0,0);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,a=!a);let p=[];for(;+i<=n;)p.push(m(r,i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return a?p.reverse():p}function Ce(e,t){let r=l(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function De(e,t){let r=E(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=l(e,t?.in),n=a.getDay(),i=(n<o?-7:0)+6-(n-o);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}function we(e){return+l(e)<Date.now()}function _e(e,t){return P(m(t?.in||e,e),ge(t?.in||e))}function O(e,t,r){let o=l(e,r?.in);return o.setHours(t),o}function Pe(e,t,r){return ve(e,-t,r)}function X(e){return Array.from({length:e},(t,r)=>r)}var k=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],V=Array.from({length:16},(e,t)=>{let r=t+8;return{hour:r,label:`${r.toString().padStart(2,"0")}:00`}});function ke(e){let t=e.getFullYear(),r=e.getMonth(),o=Ce(e).getDay(),a=J(Pe(e,1)).getDate(),n=J(e).getDate(),i=X(o).map(y=>{y+=1;let h=r-1,b=a-o+y,_=new Date(t,h,b);return{dayOfWeekNumber:_.getDay(),date:_,type:"month"}}),s=X(n).map(y=>{let h=y+1,v=new Date(t,r,h);return{dayOfWeekNumber:v.getDay(),date:v,type:"month"}}),p=7,u=o+n,w=p-u%p%p,Y=X(w).map(y=>{let h=y+1,v=new Date(t,r+1,h);return{dayOfWeekNumber:v.getDay(),date:v,type:"month"}});return[...i,...s,...Y]}function Ie(e,t){return e.filter(r=>P(r.eventDate,t))}function I(e){return _e(e)}function Te(e){let t=xe(e,{weekStartsOn:0}),r=De(e,{weekStartsOn:0}),o=be({start:t,end:r}),a=t.getDay(),n=k[a];return o.map(i=>({date:i,dayOfWeekNumber:a,dayOfWeekName:n,fullDate:i,type:"week"}))}function R(e,t,r){return e.filter(o=>P(o.eventDate,t)&&o.eventDate.getHours()===r)}import{Fragment as Et,useMemo as ie}from"react";import{useDroppable as Nt}from"@dnd-kit/core";import{cx as Ot,tv as Vt}from"@xjur-ui/util";import{Slot as lt}from"@radix-ui/react-slot";import{cva as dt,cx as pt}from"@xjur-ui/util";import{jsx as ct}from"react/jsx-runtime";var mt=dt(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function H({asChild:e,className:t,variant:r="primary",size:o="md",appearance:a="solid",...n}){return ct(e?lt:"button",{className:pt(mt({variant:r,appearance:a,size:o}),t),...n})}import{cx as ut}from"@xjur-ui/util";import{jsx as ft}from"react/jsx-runtime";function Me({className:e,filled:t=!1,name:r,...o}){return ft("span",{...o,className:ut("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:r})}import{Fragment as St}from"react/jsx-runtime";import"react";import*as ze from"@radix-ui/react-dropdown-menu";import{jsx as yt}from"react/jsx-runtime";function Z({...e}){return yt(ze.Root,{"data-slot":"dropdown-menu",...e})}import*as Se from"@radix-ui/react-dropdown-menu";import{jsx as vt}from"react/jsx-runtime";function j({...e}){return vt(Se.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as F from"@radix-ui/react-dropdown-menu";import{cx as Tt}from"@xjur-ui/util";import{Slot as gt}from"@radix-ui/react-slot";import{cx as ht}from"@xjur-ui/util";import{useVirtualizer as bt}from"@tanstack/react-virtual";import{useRef as Ct}from"react";import{createContext as xt}from"react";var T=xt({virtualizer:null,enabled:!1});import{jsx as Ee}from"react/jsx-runtime";function ee({className:e,asChild:t,children:r,virtualized:o=!1,itemCount:a=0,estimateSize:n=()=>48,overscan:i=5,...s}){let p=t?gt:"div",u=Ct(null),w=bt({count:a,getScrollElement:()=>u.current,estimateSize:n,overscan:i,enabled:o});return Ee(T.Provider,{value:{virtualizer:w,enabled:o},children:Ee(p,{...s,className:ht(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:u,children:r})})}import{Slot as Ko}from"@radix-ui/react-slot";import{cx as Qo}from"@xjur-ui/util";import{jsx as Uo}from"react/jsx-runtime";import{cx as Xo}from"@xjur-ui/util";import{jsx as ea}from"react/jsx-runtime";import{Slot as Dt}from"@radix-ui/react-slot";import{cx as Ne}from"@xjur-ui/util";import{useContext as wt}from"react";import{jsx as te}from"react/jsx-runtime";function re({className:e,asChild:t,children:r,renderItem:o,...a}){let n=t?Dt:"ul",{virtualizer:i,enabled:s}=wt(T);if(s&&i&&o){let p=i.getVirtualItems();return te(n,{...a,className:Ne("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:p.map(u=>te("div",{className:"absolute top-0 left-0 w-full","data-index":u.index,ref:i.measureElement,style:{transform:`translateY(${u.start}px)`},children:o(u.index)},u.key))})}return te(n,{...a,className:Ne("gap-small-1x p-small flex flex-col",e),children:r})}import{Slot as da}from"@radix-ui/react-slot";import{cx as ma,cva as _t}from"@xjur-ui/util";import{jsx as fa}from"react/jsx-runtime";var ca=_t(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as oe}from"react/jsx-runtime";function ae({className:e,sideOffset:t=4,align:r="start",side:o="bottom",children:a,...n}){return oe(F.Portal,{children:oe(F.Content,{align:r,className:Tt("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:o,sideOffset:t,...n,children:oe(ee,{children:a})})})}import{jsx as Mt}from"react/jsx-runtime";function ne({...e}){return Mt(re,{...e})}import{jsx as Ea}from"react/jsx-runtime";import{cx as Ya}from"@xjur-ui/util";import"react";import*as zt from"@radix-ui/react-separator";import{cx as Ra}from"@xjur-ui/util";import{jsx as Fa}from"react/jsx-runtime";import{jsx as qa}from"react/jsx-runtime";import{jsx as W,jsxs as Oe}from"react/jsx-runtime";function Ve({events:e}){let{renderEvent:t}=c();return Oe(Z,{children:[W(j,{asChild:!0,children:Oe(H,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),W(ae,{className:"w-[240px]",children:W(ne,{children:e.map(r=>W(St,{children:t?.(r)},r.eventDate.toISOString()))})})]})}import{jsx as f,jsxs as se}from"react/jsx-runtime";var Rt=Vt({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function C({cell:e,events:t}){let{date:r,type:o}=e,{renderEvent:a,activeEventId:n,onAddEvent:i,disableEventCreationInPast:s}=c(),p=ie(()=>t.slice(0,2),[t]),u=t.length>=3,{isOver:w,setNodeRef:Y}=Nt({id:`calendar-cell-${o}-${r.toISOString()}`,data:{date:r,type:o}}),y=ie(()=>{let b=t.find(B=>B.id===n);if(!b)return!1;let _=B=>B.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),Be=_(r),Ke=_(b.eventDate);return Be===Ke},[n,r,t]),h=Rt({type:o}),v=ie(()=>s&&we(r)&&!I(r),[s,r]);return se("div",{className:h,"data-slot":"calendar-cell",ref:Y,children:[o==="month"&&f("div",{className:"flex items-center justify-center",children:f("div",{className:Ot("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",I(r)&&"bg-primary-idle text-neutral-label"),children:f(d,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),se("div",{className:"gap-small-1x flex flex-col",children:[p.map(b=>f(Et,{children:a(b)},b.id)),w&&p.length<2&&!y&&f("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),se("div",{className:"mt-auto flex items-center justify-between",children:[u&&f(Ve,{events:t.slice(2)}),i&&!v&&f("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:f(H,{size:"icon_sm",variant:"outlined",onClick:()=>i(r),children:f(Me,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as D,jsxs as Wt}from"react/jsx-runtime";function le(){let{selectedDate:e,events:t}=c(),r=Ft(()=>ke(e),[e]),o=Ht(a=>Ie(t,a.date),[t]);return Wt("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[D("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:k.map(a=>D("div",{className:Re("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:D(d,{size:"sm",variant:"label",weight:"medium",children:a})},a))}),D("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:r.map((a,n)=>{let i=(n+1)%7===0,s=(n+1)%7===1;return D("div",{className:Re("border-border-layer-2 border-t border-r",i&&"pr-small-2x border-r-0",s&&"pl-small-2x"),children:D(C,{cell:a,events:o(a)})},`${a.date.toISOString()}-${n}`)})})]})}import{useCallback as He,useMemo as At}from"react";import{cx as Fe}from"@xjur-ui/util";import{cx as de}from"@xjur-ui/util";import{jsx as pe,jsxs as Lt}from"react/jsx-runtime";function L({date:e,className:t,...r}){let o=I(e),a=e.getDate();return Lt("div",{className:de("p-small gap-small-1x flex w-full flex-1 flex-col items-center",t),"data-slot":"week-day",...r,children:[pe(d,{size:"sm",variant:"label",weight:"medium",children:k[e.getDay()]}),pe("div",{className:de("size-large-2x rounded-circle flex items-center justify-center",o&&"bg-primary-idle"),children:pe(d,{className:de(o&&"text-neutral-label"),size:"sm-1x",variant:"label",weight:"medium",children:a})})]},e.toISOString())}import{jsx as x,jsxs as We}from"react/jsx-runtime";function Le(){let{selectedDate:e,events:t}=c(),r=At(()=>Te(e),[e]),o=He((n,i)=>R(t,n,i),[t]),a=He((n,i)=>({...n,date:O(n.date,i)}),[]);return x("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:We("div",{className:"flex flex-1 flex-col",children:[x("div",{className:Fe("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:r.map((n,i)=>x(L,{date:n.date,style:{gridColumnStart:i+2}},n.date.getDay()))}),x("div",{className:"overflow-hidden",children:V.map(({hour:n,label:i})=>We("div",{className:"flex items-start",children:[x("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:x(d,{size:"sm-1x",variant:"label",weight:"medium",children:i})}),x("div",{className:Fe("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:r.map(s=>x(C,{cell:a(s,n),events:o(s.date,n)},s.date.toISOString()))})]},n))})]})})}import{useCallback as Ae}from"react";import{cx as Yt}from"@xjur-ui/util";import{jsx as g,jsxs as me}from"react/jsx-runtime";function Ye(){let{selectedDate:e,events:t}=c(),r=Ae((a,n)=>R(t,a,n),[t]),o=Ae((a,n)=>({...a,date:O(a.date,n)}),[]);return g("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:me("div",{className:"flex flex-1 flex-col",children:[me("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[g("div",{className:"w-[64px]"}),g(L,{className:"border-border-layer-2 items-start border-l",date:e})]}),g("div",{className:"overflow-hidden",children:V.map(({hour:a,label:n})=>me("div",{className:"flex items-start",children:[g("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:g(d,{size:"sm-1x",variant:"label",weight:"medium",children:n})}),g("div",{className:Yt("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:g(C,{cell:o({date:e,type:"day"},a),events:r(e,a)})})]},a))})]})})}import{jsx as A}from"react/jsx-runtime";function di(){let{calendarView:e}=c();switch(e){case"month":return A(le,{});case"week":return A(Le,{});case"day":return A(Ye,{});default:return A(le,{})}}export{di as CalendarViewRenderer};
1
+ import{createContext as Lt,use as _t,useCallback as Ho,useMemo as To,useState as Eo}from"react";import{DndContext as So,closestCenter as No,useSensor as Ro,useSensors as Oo,PointerSensor as Fo,KeyboardSensor as Wo,MouseSensor as Bo}from"@dnd-kit/core";import{sortableKeyboardCoordinates as Ao}from"@dnd-kit/sortable";import{jsx as Yo}from"react/jsx-runtime";var It=Lt({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function u(){let e=_t(It);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{useCallback as wo,useMemo as bo}from"react";import{cx as vt}from"@xjur-ui/util";import{Slot as Tt}from"@radix-ui/react-slot";import{cva as Et}from"@xjur-ui/util";import{memo as Fe,useState as zt}from"react";import*as W from"@radix-ui/react-tooltip";import{jsx as re}from"react/jsx-runtime";function Pt({delayDuration:e=0,...t}){return re(W.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function ne({...e}){return re(Pt,{children:re(W.Root,{"data-slot":"tooltip",...e})})}import*as Re from"@radix-ui/react-tooltip";import{jsx as Vt}from"react/jsx-runtime";function ae({...e}){return Vt(Re.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as B from"@radix-ui/react-tooltip";import{cx as Ht}from"@xjur-ui/util";import{jsx as Oe}from"react/jsx-runtime";function ie({className:e,sideOffset:t=1,variant:o="simple",children:r,...n}){return Oe(B.Portal,{children:Oe(B.Content,{className:Ht("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...n,children:r})})}import{jsx as Z,jsxs as Rt}from"react/jsx-runtime";var St=Et("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),d=Fe(({variant:e,size:t,weight:o,asChild:r,className:n,children:a,...i})=>Z(r?Tt:"span",{className:St({variant:e,size:t,weight:o,className:n}),...i,children:a}));d.displayName="Typography";var Nt=Fe(({children:e,...t})=>{let[o,r]=zt(!1);return Rt(ne,{children:[Z(ae,{asChild:!0,children:Z(d,{onMouseEnter:({currentTarget:a})=>{let i=a.scrollWidth>a.clientWidth;r(i),i?a.style.cursor="pointer":a.style.cursor="text"},...t,children:e})}),o&&Z(ie,{children:e})]})});Nt.displayName="TruncatedTypography";var Ot=Math.pow(10,8)*24*60*60*1e3,pr=-Ot;var Ft=3600;var We=Ft*24,mr=We*7,Wt=We*365.2425,Bt=Wt/12,cr=Bt*3,se=Symbol.for("constructDateFrom");function m(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&se in e?e[se](t):e instanceof Date?new e.constructor(t):new Date(t)}function l(e,t){return m(t||e,e)}function Be(e,t,o){let r=l(e,o?.in);if(isNaN(t))return m(o?.in||e,NaN);if(!t)return r;let n=r.getDate(),a=m(o?.in||e,r.getTime());a.setMonth(r.getMonth()+t+1,0);let i=a.getDate();return n>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),n),r)}var Zt={};function A(){return Zt}function Ze(e,t){let o=A(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=l(e,t?.in),a=n.getDay(),i=(a<r?7:0)+a-r;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function j(e,...t){let o=m.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function le(e,t){let o=l(e,t?.in);return o.setHours(0,0,0,0),o}function Ae(e){return m(e,Date.now())}function S(e,t,o){let[r,n]=j(o?.in,e,t);return+le(r)==+le(n)}function de(e,t){let o=l(e,t?.in),r=o.getMonth();return o.setFullYear(o.getFullYear(),r+1,0),o.setHours(23,59,59,999),o}function je(e,t){let[o,r]=j(e,t.start,t.end);return{start:o,end:r}}function Ye(e,t){let{start:o,end:r}=je(t?.in,e),n=+o>+r,a=n?+o:+r,i=n?r:o;i.setHours(0,0,0,0);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,n=!n);let p=[];for(;+i<=a;)p.push(m(o,i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return n?p.reverse():p}function Ke(e,t){let o=l(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function $e(e,t){let o=A(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,n=l(e,t?.in),a=n.getDay(),i=(a<r?-7:0)+6-(a-r);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function Ge(e){return+l(e)<Date.now()}function Qe(e,t){return S(m(t?.in||e,e),Ae(t?.in||e))}function Y(e,t,o){let r=l(e,o?.in);return r.setHours(t),r}function Xe(e,t,o){return Be(e,-t,o)}function pe(e){return Array.from({length:e},(t,o)=>o)}var N=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],K=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function qe(e){let t=e.getFullYear(),o=e.getMonth(),r=Ke(e).getDay(),n=de(Xe(e,1)).getDate(),a=de(e).getDate(),i=pe(r).map(x=>{x+=1;let M=o-1,L=n-r+x,z=new Date(t,M,L);return{dayOfWeekNumber:z.getDay(),date:z,type:"month"}}),s=pe(a).map(x=>{let M=x+1,k=new Date(t,o,M);return{dayOfWeekNumber:k.getDay(),date:k,type:"month"}}),p=7,C=r+a,E=p-C%p%p,te=pe(E).map(x=>{let M=x+1,k=new Date(t,o+1,M);return{dayOfWeekNumber:k.getDay(),date:k,type:"month"}});return[...i,...s,...te]}function Ue(e,t){return e.filter(o=>S(o.eventDate,t))}function R(e){return Qe(e)}function Je(e){let t=Ze(e,{weekStartsOn:0}),o=$e(e,{weekStartsOn:0}),r=Ye({start:t,end:o}),n=t.getDay(),a=N[n];return r.map(i=>({date:i,dayOfWeekNumber:n,dayOfWeekName:a,fullDate:i,type:"week"}))}function $(e,t,o){return e.filter(r=>S(r.eventDate,t)&&r.eventDate.getHours()===o)}import{Fragment as go,useMemo as He}from"react";import{useDroppable as yo}from"@dnd-kit/core";import{cx as xo,tv as ko}from"@xjur-ui/util";import{Slot as At}from"@radix-ui/react-slot";import{cva as jt,cx as Yt}from"@xjur-ui/util";import{jsx as $t}from"react/jsx-runtime";var Kt=jt(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function G({asChild:e,className:t,variant:o="primary",size:r="md",appearance:n="solid",...a}){return $t(e?At:"button",{className:Yt(Kt({variant:o,appearance:n,size:r}),t),...a})}import{cx as Jt}from"@xjur-ui/util";var et=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as f,jsxs as Gt}from"react/jsx-runtime";function me(){return Gt("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[f("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),f("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),f("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),f("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),f("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),f("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),f("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),f("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),f("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),f("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),f("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),f("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as v,jsxs as tt}from"react/jsx-runtime";function ce(){return tt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[tt("g",{clipPath:"url(#clip0_19548_42822)",children:[v("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),v("defs",{children:v("clipPath",{id:"clip0_19548_42822",children:v("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as Q,jsxs as Qt}from"react/jsx-runtime";function ue(){return Qt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Q("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),Q("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),Q("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),Q("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as c,jsxs as ot}from"react/jsx-runtime";function fe(){return ot("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ot("g",{clipPath:"url(#clip0_19548_42667)",children:[c("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),c("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),c("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),c("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),c("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),c("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),c("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),c("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),c("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),c("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),c("defs",{children:c("clipPath",{id:"clip0_19548_42667",children:c("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as _,jsxs as Xt}from"react/jsx-runtime";function he(){return Xt("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[_("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),_("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),_("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as P,jsxs as rt}from"react/jsx-runtime";function Ce(){return rt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[rt("g",{clipPath:"url(#clip0_19548_42803)",children:[P("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),P("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),P("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),P("defs",{children:P("clipPath",{id:"clip0_19548_42803",children:P("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as I,jsxs as nt}from"react/jsx-runtime";function ve(){return nt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[nt("g",{clipPath:"url(#clip0_19548_42782)",children:[I("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),I("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),I("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),I("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),I("defs",{children:I("clipPath",{id:"clip0_19548_42782",children:I("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as X,jsxs as qt}from"react/jsx-runtime";function ge(){return qt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[X("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),X("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),X("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),X("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as D,jsxs as at}from"react/jsx-runtime";function ye(){return at("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[at("g",{clipPath:"url(#clip0_19548_42757)",children:[D("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),D("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),D("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),D("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),D("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),D("defs",{children:D("clipPath",{id:"clip0_19548_42757",children:D("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as V,jsxs as it}from"react/jsx-runtime";function xe(){return it("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[it("g",{clipPath:"url(#clip0_19548_42810)",children:[V("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),V("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),V("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),V("defs",{children:V("clipPath",{id:"clip0_19548_42810",children:V("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as g,jsxs as st}from"react/jsx-runtime";function ke(){return st("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[st("g",{clipPath:"url(#clip0_21377_57335)",children:[g("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),g("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),g("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),g("defs",{children:g("clipPath",{id:"clip0_21377_57335",children:g("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as O,jsxs as Ut}from"react/jsx-runtime";function De(){return Ut("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[O("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),O("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),O("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),O("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),O("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as h}from"react/jsx-runtime";function lt({name:e}){switch(e){case"agenda":return h(me,{});case"contencioso":return h(fe,{});case"contrato":return h(he,{});case"consultivo":return h(ue,{});case"xsigner":return h(De,{});case"procuracao":return h(ye,{});case"xpay":return h(ke,{});case"imobiliario":return h(ve,{});case"marcasepatentes":return h(ge,{});case"ged":return h(Ce,{});case"regulatorio":return h(xe,{});case"compliance":return h(ce,{});default:return null}}import{jsx as dt}from"react/jsx-runtime";function pt({className:e,filled:t=!1,name:o,...r}){return et.includes(o)?dt(lt,{name:o}):dt("span",{...r,className:Jt("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}import{Fragment as vo}from"react/jsx-runtime";import"react";import*as mt from"@radix-ui/react-dropdown-menu";import{jsx as eo}from"react/jsx-runtime";function we({...e}){return eo(mt.Root,{"data-slot":"dropdown-menu",...e})}import*as ct from"@radix-ui/react-dropdown-menu";import{jsx as to}from"react/jsx-runtime";function be({...e}){return to(ct.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as q from"@radix-ui/react-dropdown-menu";import{cx as fo}from"@xjur-ui/util";import{Slot as ro}from"@radix-ui/react-slot";import{cx as no}from"@xjur-ui/util";import{useVirtualizer as ao}from"@tanstack/react-virtual";import{useRef as io}from"react";import{createContext as oo}from"react";var F=oo({virtualizer:null,enabled:!1});import{jsx as ut}from"react/jsx-runtime";function Me({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:n=0,estimateSize:a=()=>48,overscan:i=5,...s}){let p=t?ro:"div",C=io(null),E=ao({count:n,getScrollElement:()=>C.current,estimateSize:a,overscan:i,enabled:r});return ut(F.Provider,{value:{virtualizer:E,enabled:r},children:ut(p,{...s,className:no(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:C,children:o})})}import{Slot as Ca}from"@radix-ui/react-slot";import{cx as ga}from"@xjur-ui/util";import{jsx as xa}from"react/jsx-runtime";import{cx as wa}from"@xjur-ui/util";import{jsx as La}from"react/jsx-runtime";import{Slot as so}from"@radix-ui/react-slot";import{cx as ft}from"@xjur-ui/util";import{useContext as lo}from"react";import{jsx as Le}from"react/jsx-runtime";function _e({className:e,asChild:t,children:o,renderItem:r,...n}){let a=t?so:"ul",{virtualizer:i,enabled:s}=lo(F);if(s&&i&&r){let p=i.getVirtualItems();return Le(a,{...n,className:ft("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:p.map(C=>Le("div",{className:"absolute top-0 left-0 w-full","data-index":C.index,ref:i.measureElement,style:{transform:`translateY(${C.start}px)`},children:r(C.index)},C.key))})}return Le(a,{...n,className:ft("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as Sa}from"@radix-ui/react-slot";import{cx as Ra,cva as po}from"@xjur-ui/util";import{jsx as Wa}from"react/jsx-runtime";var Oa=po(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as Ie}from"react/jsx-runtime";function Pe({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:n,...a}){return Ie(q.Portal,{children:Ie(q.Content,{align:o,className:fo("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:r,sideOffset:t,...a,children:Ie(Me,{children:n})})})}import{jsx as ho}from"react/jsx-runtime";function Ve({...e}){return ho(_e,{...e})}import{jsx as ni}from"react/jsx-runtime";import{cx as fi}from"@xjur-ui/util";import"react";import*as Co from"@radix-ui/react-separator";import{cx as li}from"@xjur-ui/util";import{jsx as pi}from"react/jsx-runtime";import{jsx as yi}from"react/jsx-runtime";import{jsx as U,jsxs as ht}from"react/jsx-runtime";function Ct({events:e}){let{renderEvent:t}=u();return ht(we,{children:[U(be,{asChild:!0,children:ht(G,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),U(Pe,{className:"w-[240px]",children:U(Ve,{children:e.map(o=>U(vo,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as y,jsxs as Te}from"react/jsx-runtime";var Do=ko({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function H({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:n,activeEventId:a,onAddEvent:i,disableEventCreationInPast:s}=u(),p=He(()=>t.slice(0,2),[t]),C=t.length>=3,{isOver:E,setNodeRef:te}=yo({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),x=He(()=>{let L=t.find(oe=>oe.id===a);if(!L)return!1;let z=oe=>oe.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),bt=z(o),Mt=z(L.eventDate);return bt===Mt},[a,o,t]),M=Do({type:r}),k=He(()=>s&&Ge(o)&&!R(o),[s,o]);return Te("div",{className:M,"data-slot":"calendar-cell",ref:te,children:[r==="month"&&y("div",{className:"flex items-center justify-center",children:y("div",{className:xo("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",R(o)&&"bg-primary-idle text-neutral-label"),children:y(d,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),Te("div",{className:"gap-small-1x flex flex-col",children:[p.map(L=>y(go,{children:n(L)},L.id)),E&&p.length<2&&!x&&y("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),Te("div",{className:"mt-auto flex items-center justify-between",children:[C&&y(Ct,{events:t.slice(2)}),i&&!k&&y("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:y(G,{size:"icon_sm",variant:"outlined",onClick:()=>i(o),children:y(pt,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as T,jsxs as Mo}from"react/jsx-runtime";function Ee(){let{selectedDate:e,events:t}=u(),o=bo(()=>qe(e),[e]),r=wo(n=>Ue(t,n.date),[t]);return Mo("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[T("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:N.map(n=>T("div",{className:vt("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:T(d,{size:"sm",variant:"label",weight:"medium",children:n})},n))}),T("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:o.map((n,a)=>{let i=(a+1)%7===0,s=(a+1)%7===1;return T("div",{className:vt("border-border-layer-2 border-t border-r",i&&"pr-small-2x border-r-0",s&&"pl-small-2x"),children:T(H,{cell:n,events:r(n)})},`${n.date.toISOString()}-${a}`)})})]})}import{useCallback as gt,useMemo as _o}from"react";import{cx as yt}from"@xjur-ui/util";import{cx as ze}from"@xjur-ui/util";import{jsx as Se,jsxs as Lo}from"react/jsx-runtime";function J({date:e,className:t,...o}){let r=R(e),n=e.getDate();return Lo("div",{className:ze("p-small gap-small-1x flex w-full flex-1 flex-col items-center",t),"data-slot":"week-day",...o,children:[Se(d,{size:"sm",variant:"label",weight:"medium",children:N[e.getDay()]}),Se("div",{className:ze("size-large-2x rounded-circle flex items-center justify-center",r&&"bg-primary-idle"),children:Se(d,{className:ze(r&&"text-neutral-label"),size:"sm-1x",variant:"label",weight:"medium",children:n})})]},e.toISOString())}import{jsx as w,jsxs as xt}from"react/jsx-runtime";function kt(){let{selectedDate:e,events:t}=u(),o=_o(()=>Je(e),[e]),r=gt((a,i)=>$(t,a,i),[t]),n=gt((a,i)=>({...a,date:Y(a.date,i)}),[]);return w("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:xt("div",{className:"flex flex-1 flex-col",children:[w("div",{className:yt("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:o.map((a,i)=>w(J,{date:a.date,style:{gridColumnStart:i+2}},a.date.getDay()))}),w("div",{className:"overflow-hidden",children:K.map(({hour:a,label:i})=>xt("div",{className:"flex items-start",children:[w("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:w(d,{size:"sm-1x",variant:"label",weight:"medium",children:i})}),w("div",{className:yt("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:o.map(s=>w(H,{cell:n(s,a),events:r(s.date,a)},s.date.toISOString()))})]},a))})]})})}import{useCallback as Dt}from"react";import{cx as Io}from"@xjur-ui/util";import{jsx as b,jsxs as Ne}from"react/jsx-runtime";function wt(){let{selectedDate:e,events:t}=u(),o=Dt((n,a)=>$(t,n,a),[t]),r=Dt((n,a)=>({...n,date:Y(n.date,a)}),[]);return b("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:Ne("div",{className:"flex flex-1 flex-col",children:[Ne("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[b("div",{className:"w-[64px]"}),b(J,{className:"border-border-layer-2 items-start border-l",date:e})]}),b("div",{className:"overflow-hidden",children:K.map(({hour:n,label:a})=>Ne("div",{className:"flex items-start",children:[b("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:b(d,{size:"sm-1x",variant:"label",weight:"medium",children:a})}),b("div",{className:Io("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:b(H,{cell:r({date:e,type:"day"},n),events:o(e,n)})})]},n))})]})})}import{jsx as ee}from"react/jsx-runtime";function z1(){let{calendarView:e}=u();switch(e){case"month":return ee(Ee,{});case"week":return ee(kt,{});case"day":return ee(wt,{});default:return ee(Ee,{})}}export{z1 as CalendarViewRenderer};