@dhasdk/simple-ui 0.0.22 → 0.0.24

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.
package/README.md CHANGED
@@ -9,7 +9,7 @@ This library was generated with [Nx](https://nx.dev) on React 18.x.
9
9
  - [Installation](#installation-and-setup)
10
10
  - [Accordion](#accordion)
11
11
  - [Badge](#badge)
12
- - [BreadCrumbs](#breadcrumbs)
12
+ - [Breadcrumbs](#breadcrumbs)
13
13
  - [Button](#button)
14
14
  - [Card](#card)
15
15
  - [CharacterCounter](#charactercounter)
@@ -71,8 +71,8 @@ Finally, if Accordion props are specified inside the parent component, those val
71
71
  | children | ReactNode | No | undefined | This is intended to contain the child **Accordion** components |
72
72
  | chevron | boolean | Yes | undefined | If true, displays chevron icons for open/closed status, otherwise displays plus and minus icons. |
73
73
  | iconAccordionOpened & iconAccordionClosed | ReactNode | Yes | N/A | custom icons to display for opened and closed state. See usage example above for a demonstration. |
74
- | childHeadingClassName | string | Yes | CSS classes to apply to the child Accordion component headings. These can be overridden on an individual basis using the same prop on the Accordion component. |
75
- | childContentClassName | string | No | N/A | CSS classes to apply to the child Accordion component content body. These can be overridden on an individual basis using the same prop on the Accordion component. |
74
+ | classNameChildHeading | string | Yes | CSS classes to apply to the child Accordion component headings. These can be overridden on an individual basis using the same prop on the Accordion component. |
75
+ | classNameChildContent | string | No | N/A | CSS classes to apply to the child Accordion component content body. These can be overridden on an individual basis using the same prop on the Accordion component. |
76
76
  | className | string | Yes | undefined | CSS classes applied to the container div for the **AccordionParent** component. |
77
77
  | ...props | string | No | | takes additional props that are not specifically defined in the component, i.e. aria-label |
78
78
  | rounded | boolean | Yes | false | This boolean value indicates whether to display rounded corners or not. By using this prop vs custom classes, only the top of the heading is rounded in an opened state, and only the bottom of the content block is rounded also. |
@@ -86,8 +86,8 @@ Finally, if Accordion props are specified inside the parent component, those val
86
86
  | children | ReactNode | No | undefined | This contains the body of the **Accordion** content. |
87
87
  | chevron | boolean | Yes | undefined | If true, displays chevron icons for open/closed status, otherwise displays plus and minus icons. |
88
88
  | iconAccordionOpened & iconAccordionClosed | ReactNode | Yes | N/A | custom icons to display for opened and closed state. See usage example above for a demonstration. |
89
- | childHeadingClassName | string | Yes | CSS classes to apply to the child Accordion component headings. These can be overridden on an individual basis using the same prop on the Accordion component. |
90
- | childContentClassName | string | No | N/A | CSS classes to apply to the child Accordion component content body. These can be overridden on an individual basis using the same prop on the Accordion component. |
89
+ | classNameChildHeading | string | Yes | CSS classes to apply to the child Accordion component headings. These can be overridden on an individual basis using the same prop on the Accordion component. |
90
+ | classNameChildContent | string | No | N/A | CSS classes to apply to the child Accordion component content body. These can be overridden on an individual basis using the same prop on the Accordion component. |
91
91
  | className | string | Yes | undefined | CSS classes applied to the container div for the **Accordion** component. |
92
92
  | ...props | string | No | | takes additional props that are not specifically defined in the component, i.e. aria-label |
93
93
  | rounded | boolean | Yes | false | This boolean value indicates whether to display rounded corners or not. By using this prop vs custom classes, only the top of the heading is rounded in an opened state, and only the bottom of the content block is rounded also. |
@@ -100,8 +100,8 @@ Finally, if Accordion props are specified inside the parent component, those val
100
100
 
101
101
  ```jsx
102
102
  <AccordionParent
103
- childHeadingClassName='bg-white'
104
- childContentClassName='bg-white'>
103
+ classNameChildHeading='bg-white'
104
+ classNameChildContent='bg-white'>
105
105
  <Accordion label='First Example'>
106
106
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed ...
107
107
  </Accordion>
@@ -221,11 +221,11 @@ go Variant
221
221
 
222
222
  <!-- B R E A D C R U M B S ------------------------------------------------------------------------------ -->
223
223
 
224
- ## BreadCrumbs
224
+ ## Breadcrumbs
225
225
 
226
- BreadCrumbs allow users to quickly and easily see their current location in an app or sites heirarchy, as well as quickly navigate to previous levels, enabling quick navigation back to those sections.
226
+ Breadcrumbs allow users to quickly and easily see their current location in an app or sites heirarchy, as well as quickly navigate to previous levels, enabling quick navigation back to those sections.
227
227
 
228
- The BreadCrumbs component takes in various props (`className`, `containerClassName`, `variant`, `auto`, and `separator`), in addition to any other html attributes a normal NAV element would use.
228
+ The Breadrcumbs component takes in various props (`className`, `containerClassName`, `variant`, `auto`, and `separator`), in addition to any other html attributes a normal NAV element would use.
229
229
 
230
230
  A `ref` can also be created and assigned to the button component, and the component will point the reference to the html nav element.
231
231
 
@@ -255,7 +255,7 @@ Full list of props below
255
255
  Default Variant
256
256
 
257
257
  ```jsx
258
- <BreadCrumbs />
258
+ <Breadrcumbs />
259
259
  ```
260
260
 
261
261
 
package/index.d.ts CHANGED
@@ -2,8 +2,8 @@ export { Accordion, AccordionParent } from './lib/Accordion';
2
2
  export type { AccordionProps, AccordionParentProps } from './lib/Accordion';
3
3
  export { Badge } from './lib/Badge';
4
4
  export { Button } from './lib/Button';
5
- export { BreadCrumbs } from './lib/BreadCrumbs';
6
- export type { BreadCrumbsProps } from './lib/BreadCrumbs';
5
+ export { Breadcrumbs } from './lib/Breadcrumbs';
6
+ export type { BreadcrumbsProps } from './lib/Breadcrumbs';
7
7
  export { Card } from './lib/Card';
8
8
  export { CharacterCounter } from './lib/CharacterCounter';
9
9
  export type { CharacterCounterProps } from './lib/CharacterCounter';
@@ -28,3 +28,4 @@ export { IconPosition } from './lib/Tabs';
28
28
  export { Toggle } from './lib/Toggle';
29
29
  export type { ToggleProps } from './lib/Toggle';
30
30
  export { SideBarNav } from './lib/SideBarNav';
31
+ export { SkipLink } from './lib/SkipLink';
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),de=require("react-router-dom");function Re(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const Q=Re(g),xe="-",Ae=e=>{const r=He(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:u=>{const o=u.split(xe);return o[0]===""&&o.length!==1&&o.shift(),Me(o,r)||Oe(u)},getConflictingClassGroupIds:(u,o)=>{const p=s[u]||[];return o&&n[u]?[...p,...n[u]]:p}}},Me=(e,r)=>{var u;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),l=n?Me(e.slice(1),n):void 0;if(l)return l;if(r.validators.length===0)return;const i=e.join(xe);return(u=r.validators.find(({validator:o})=>o(i)))==null?void 0:u.classGroupId},we=/^\[(.+)\]$/,Oe=e=>{if(we.test(e)){const r=we.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},He=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return Ye(Object.entries(e.classGroups),s).forEach(([i,u])=>{pe(u,n,i,r)}),n},pe=(e,r,s,n)=>{e.forEach(l=>{if(typeof l=="string"){const i=l===""?r:ye(r,l);i.classGroupId=s;return}if(typeof l=="function"){if(Te(l)){pe(l(n),r,s,n);return}r.validators.push({validator:l,classGroupId:s});return}Object.entries(l).forEach(([i,u])=>{pe(u,ye(r,i),s,n)})})},ye=(e,r)=>{let s=e;return r.split(xe).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},Te=e=>e.isThemeGetter,Ye=(e,r)=>r?e.map(([s,n])=>{const l=n.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([u,o])=>[r+u,o])):i);return[s,l]}):e,Be=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const l=(i,u)=>{s.set(i,u),r++,r>e&&(r=0,n=s,s=new Map)};return{get(i){let u=s.get(i);if(u!==void 0)return u;if((u=n.get(i))!==void 0)return l(i,u),u},set(i,u){s.has(i)?s.set(i,u):l(i,u)}}},Se="!",Pe=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.length===1,l=r[0],i=r.length,u=o=>{const p=[];let b=0,v=0,k;for(let h=0;h<o.length;h++){let N=o[h];if(b===0){if(N===l&&(n||o.slice(h,h+i)===r)){p.push(o.slice(v,h)),v=h+i;continue}if(N==="/"){k=h;continue}}N==="["?b++:N==="]"&&b--}const y=p.length===0?o:o.substring(v),w=y.startsWith(Se),c=w?y.substring(1):y,a=k&&k>v?k-v:void 0;return{modifiers:p,hasImportantModifier:w,baseClassName:c,maybePostfixModifierPosition:a}};return s?o=>s({className:o,parseClassName:u}):u},Ge=e=>{if(e.length<=1)return e;const r=[];let s=[];return e.forEach(n=>{n[0]==="["?(r.push(...s.sort(),n),s=[]):s.push(n)}),r.push(...s.sort()),r},Fe=e=>({cache:Be(e.cacheSize),parseClassName:Pe(e),...Ae(e)}),Ue=/\s+/,We=(e,r)=>{const{parseClassName:s,getClassGroupId:n,getConflictingClassGroupIds:l}=r,i=[],u=e.trim().split(Ue);let o="";for(let p=u.length-1;p>=0;p-=1){const b=u[p],{modifiers:v,hasImportantModifier:k,baseClassName:y,maybePostfixModifierPosition:w}=s(b);let c=!!w,a=n(c?y.substring(0,w):y);if(!a){if(!c){o=b+(o.length>0?" "+o:o);continue}if(a=n(y),!a){o=b+(o.length>0?" "+o:o);continue}c=!1}const h=Ge(v).join(":"),N=k?h+Se:h,$=N+a;if(i.includes($))continue;i.push($);const V=l(a,c);for(let I=0;I<V.length;++I){const R=V[I];i.push(N+R)}o=b+(o.length>0?" "+o:o)}return o};function Ze(){let e=0,r,s,n="";for(;e<arguments.length;)(r=arguments[e++])&&(s=Ne(r))&&(n&&(n+=" "),n+=s);return n}const Ne=e=>{if(typeof e=="string")return e;let r,s="";for(let n=0;n<e.length;n++)e[n]&&(r=Ne(e[n]))&&(s&&(s+=" "),s+=r);return s};function Ke(e,...r){let s,n,l,i=u;function u(p){const b=r.reduce((v,k)=>k(v),e());return s=Fe(b),n=s.cache.get,l=s.cache.set,i=o,o(p)}function o(p){const b=n(p);if(b)return b;const v=We(p,s);return l(p,v),v}return function(){return i(Ze.apply(null,arguments))}}const A=e=>{const r=s=>s[e]||[];return r.isThemeGetter=!0,r},$e=/^\[(?:([a-z-]+):)?(.+)\]$/i,qe=/^\d+\/\d+$/,Je=new Set(["px","full","screen"]),Qe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>se(e)||Je.has(e)||qe.test(e),q=e=>ne(e,"length",dt),se=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>ne(e,"number",se),le=e=>!!e&&Number.isInteger(Number(e)),st=e=>e.endsWith("%")&&se(e.slice(0,-1)),z=e=>$e.test(e),J=e=>Qe.test(e),nt=new Set(["length","size","percentage"]),ot=e=>ne(e,nt,De),at=e=>ne(e,"position",De),lt=new Set(["image","url"]),it=e=>ne(e,lt,ft),ct=e=>ne(e,"",ut),ie=()=>!0,ne=(e,r,s)=>{const n=$e.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):s(n[2]):!1},dt=e=>Xe.test(e)&&!et.test(e),De=()=>!1,ut=e=>tt.test(e),ft=e=>rt.test(e),gt=()=>{const e=A("colors"),r=A("spacing"),s=A("blur"),n=A("brightness"),l=A("borderColor"),i=A("borderRadius"),u=A("borderSpacing"),o=A("borderWidth"),p=A("contrast"),b=A("grayscale"),v=A("hueRotate"),k=A("invert"),y=A("gap"),w=A("gradientColorStops"),c=A("gradientColorStopPositions"),a=A("inset"),h=A("margin"),N=A("opacity"),$=A("padding"),V=A("saturate"),I=A("scale"),R=A("sepia"),H=A("skew"),U=A("space"),W=A("translate"),B=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",z,r],_=()=>[z,r],G=()=>["",Z,q],m=()=>["auto",se,z],f=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],d=()=>["solid","dashed","dotted","double","none"],C=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],x=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",z],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[se,z];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[Z,q],blur:["none","",J,z],brightness:E(),borderColor:[e],borderRadius:["none","","full",J,z],borderSpacing:_(),borderWidth:G(),contrast:E(),grayscale:S(),hueRotate:E(),invert:S(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[st,q],inset:j(),margin:j(),opacity:E(),padding:_(),saturate:E(),scale:E(),sepia:S(),skew:E(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...f(),z]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[a]}],"inset-x":[{"inset-x":[a]}],"inset-y":[{"inset-y":[a]}],start:[{start:[a]}],end:[{end:[a]}],top:[{top:[a]}],right:[{right:[a]}],bottom:[{bottom:[a]}],left:[{left:[a]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le,z]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",le,z]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",le,z]},z]}],"col-start":[{"col-start":m()}],"col-end":[{"col-end":m()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[le,z]},z]}],"row-start":[{"row-start":m()}],"row-end":[{"row-end":m()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...x()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...x(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...x(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$]}],px:[{px:[$]}],py:[{py:[$]}],ps:[{ps:[$]}],pe:[{pe:[$]}],pt:[{pt:[$]}],pr:[{pr:[$]}],pb:[{pb:[$]}],pl:[{pl:[$]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,r]}],"min-w":[{"min-w":[z,r,"min","max","fit"]}],"max-w":[{"max-w":[z,r,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[z,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,r,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ge]}],"font-family":[{font:[ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",se,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Z,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...d(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Z,q]}],"underline-offset":[{"underline-offset":["auto",Z,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...f(),at]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ot]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},it]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[c]}],"gradient-via-pos":[{via:[c]}],"gradient-to-pos":[{to:[c]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...d(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:d()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...d()]}],"outline-offset":[{"outline-offset":[Z,z]}],"outline-w":[{outline:[Z,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[Z,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,ct]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...C(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":C()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[n]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",J,z]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[k]}],saturate:[{saturate:[V]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[le,z]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Z,q,ge]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},M=Ke(gt),bt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-plus'%3e%3cpath%20d='M5%2012h14'/%3e%3cpath%20d='M12%205v14'/%3e%3c/svg%3e",mt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-minus'%3e%3cpath%20d='M5%2012h14'/%3e%3c/svg%3e",ht="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-down'%3e%3cpath%20d='m6%209%206%206%206-6'/%3e%3c/svg%3e",pt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-up'%3e%3cpath%20d='m18%2015-6-6-6%206'/%3e%3c/svg%3e",xt="mt-[-0.5rem]",vt="flex justify-between items-center w-full p-1 px-4 text-left border border-gray-300 mt-2",wt="px-4 py-1 border border-t-0 border-gray-300",yt={},kt={},jt=g.forwardRef(({variant:e="default",label:r,className:s,chevron:n=!0,iconAccordionOpened:l,iconAccordionClosed:i,rounded:u=!1,headingClasses:o,contentClasses:p,onExpand:b,singleOpen:v,index:k,children:y,...w},c)=>{const[a,h]=g.useState(!1),N=`accordion-${k??r.replace(/\s+/g,"-").toLowerCase()}`,$=()=>{b&&v&&b(h),h(!a)},V=I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),$(),console.log("key pressed, event.key === '"+I.key+"', index: "+k+", label: "+r))};return t.jsxs("div",{ref:c,className:s,children:[t.jsxs("button",{className:M(vt,yt.variant,o,u&&(a?"rounded-t-md":"rounded-md")),"aria-controls":`${N}-content`,"aria-expanded":a,id:`${N}-header`,onClick:$,onKeyDown:V,...w,children:[t.jsx("span",{children:r}),t.jsx("span",{children:a?l||t.jsx("img",{src:n?pt:mt,alt:"Close Icon"}):i||t.jsx("img",{src:n?ht:bt,alt:"Open Icon"})})]}),a&&t.jsx("div",{className:M(wt,kt.variant,p,u&&"rounded-b-md"),id:`${N}-content`,role:"region","aria-labelledby":`${N}-header`,children:y})]})}),Ct=g.forwardRef(({children:e,variant:r="default",chevron:s,iconAccordionOpened:n,iconAccordionClosed:l,rounded:i,className:u,singleOpen:o=!0,childHeadingClassName:p,childContentClassName:b,...v},k)=>{const[y,w]=g.useState(null),c=a=>{y&&y(!1),w(()=>a)};return t.jsx("div",{ref:k,...v,className:M(xt,u),children:g.Children.map(e,(a,h)=>g.isValidElement(a)?g.cloneElement(a,{...a.props,variant:r,chevron:s,iconAccordionOpened:n,iconAccordionClosed:l,rounded:i,headingClasses:M(p,a.props.headingClasses),contentClasses:M(b,a.props.contentClasses),index:h,singleOpen:o,onExpand:N=>c(N)}):a)})}),Mt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='thumb_up'%3e%3cmask%20id='mask0_320_1845'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_320_1845)'%3e%3cpath%20id='thumb_up_2'%20d='M18%2021H8V8L15%201L16.25%202.25C16.3667%202.36667%2016.4625%202.525%2016.5375%202.725C16.6125%202.925%2016.65%203.11667%2016.65%203.3V3.65L15.55%208H21C21.5333%208%2022%208.2%2022.4%208.6C22.8%209%2023%209.46667%2023%2010V12C23%2012.1167%2022.9875%2012.2417%2022.9625%2012.375C22.9375%2012.5083%2022.9%2012.6333%2022.85%2012.75L19.85%2019.8C19.7%2020.1333%2019.45%2020.4167%2019.1%2020.65C18.75%2020.8833%2018.3833%2021%2018%2021ZM6%208V21H2V8H6Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",St="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_311_2053'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='red'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_311_2053)'%3e%3cpath%20id='warning_2'%20d='M1%2021L12%202L23%2021H1ZM12%2018C12.2833%2018%2012.5208%2017.9042%2012.7125%2017.7125C12.9042%2017.5208%2013%2017.2833%2013%2017C13%2016.7167%2012.9042%2016.4792%2012.7125%2016.2875C12.5208%2016.0958%2012.2833%2016%2012%2016C11.7167%2016%2011.4792%2016.0958%2011.2875%2016.2875C11.0958%2016.4792%2011%2016.7167%2011%2017C11%2017.2833%2011.0958%2017.5208%2011.2875%2017.7125C11.4792%2017.9042%2011.7167%2018%2012%2018ZM11%2015H13V10H11V15Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Nt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='emergency_home'%3e%3cmask%20id='mask0_320_1821'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_320_1821)'%3e%3cpath%20id='emergency_home_2'%20d='M11.9996%2022.0251C11.7329%2022.0251%2011.4788%2021.9751%2011.2371%2021.8751C10.9954%2021.7751%2010.7746%2021.6334%2010.5746%2021.4501L2.54961%2013.4251C2.36628%2013.2251%202.22461%2013.0043%202.12461%2012.7626C2.02461%2012.5209%201.97461%2012.2668%201.97461%2012.0001C1.97461%2011.7334%202.02461%2011.4751%202.12461%2011.2251C2.22461%2010.9751%202.36628%2010.7584%202.54961%2010.5751L10.5746%202.5501C10.7746%202.3501%2010.9954%202.20426%2011.2371%202.1126C11.4788%202.02093%2011.7329%201.9751%2011.9996%201.9751C12.2663%201.9751%2012.5246%202.02093%2012.7746%202.1126C13.0246%202.20426%2013.2413%202.3501%2013.4246%202.5501L21.4496%2010.5751C21.6496%2010.7584%2021.7954%2010.9751%2021.8871%2011.2251C21.9788%2011.4751%2022.0246%2011.7334%2022.0246%2012.0001C22.0246%2012.2668%2021.9788%2012.5209%2021.8871%2012.7626C21.7954%2013.0043%2021.6496%2013.2251%2021.4496%2013.4251L13.4246%2021.4501C13.2413%2021.6334%2013.0246%2021.7751%2012.7746%2021.8751C12.5246%2021.9751%2012.2663%2022.0251%2011.9996%2022.0251ZM10.9996%2013.0001H12.9996V7.0001H10.9996V13.0001ZM11.9996%2016.0001C12.2829%2016.0001%2012.5204%2015.9043%2012.7121%2015.7126C12.9038%2015.5209%2012.9996%2015.2834%2012.9996%2015.0001C12.9996%2014.7168%2012.9038%2014.4793%2012.7121%2014.2876C12.5204%2014.0959%2012.2829%2014.0001%2011.9996%2014.0001C11.7163%2014.0001%2011.4788%2014.0959%2011.2871%2014.2876C11.0954%2014.4793%2010.9996%2014.7168%2010.9996%2015.0001C10.9996%2015.2834%2011.0954%2015.5209%2011.2871%2015.7126C11.4788%2015.9043%2011.7163%2016.0001%2011.9996%2016.0001Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$t="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='close_small'%20d='M1.40349%2010L0%208.60349L3.60898%204.98753L0%201.39651L1.40349%200L5.01247%203.60623L8.59651%200L10%201.39651L6.39102%204.98753L10%208.60349L8.59651%2010L5.01247%206.39377L1.40349%2010Z'%20fill='black'/%3e%3c/svg%3e",ke=[{variant:"default",subVariant:"default",classes:"mx-2 inline-flex items-center rounded-md bg-gray-500/10 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-400/20"},{variant:"default",subVariant:"gray",classes:"mx-2 inline-flex items-center rounded-md bg-gray-500/10 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-400/20"},{variant:"default",subVariant:"red",classes:"mx-2 inline-flex items-center rounded-md bg-red-500/10 px-2 py-1 text-xs font-medium text-red-700 ring-1 ring-inset ring-red-400/20"},{variant:"default",subVariant:"yellow",classes:"mx-2 inline-flex items-center rounded-md bg-yellow-500/10 px-2 py-1 text-xs font-medium text-yellow-700 ring-1 ring-inset ring-yellow-400/20"},{variant:"default",subVariant:"green",classes:"mx-2 inline-flex items-center rounded-md bg-green-500/10 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-500/20"},{variant:"default",subVariant:"blue",classes:"mx-2 inline-flex items-center rounded-md bg-blue-400/10 px-2 py-1 text-xs font-medium text-blue-400 ring-1 ring-inset ring-blue-400/30"},{variant:"warning",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#fff1be] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"warning",subVariant:"full",classes:"flex flex-row w-full bg-[#fff1be] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex"},{variant:"hazard",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#f4c2c2] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"hazard",subVariant:"full",classes:'flex flex-row w-full bg-[#f4c2c2] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"go",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#d6f4d5] border-[#40bf40] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"go",subVariant:"full",classes:'flex flex-row w-full bg-[#d6f4d5] border-[#40bf40] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"icon",subVariant:"default",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-gray-500 px-2 py-1 text-xs font-medium text-gray-700",svgClasses:"size-1.5 fill-gray-400"},{variant:"icon",subVariant:"gray",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-gray-100 px-2 py-1 text-xs font-medium text-gray-700",svgClasses:"size-1.5 fill-gray-400"},{variant:"icon",subVariant:"red",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-red-100 px-2 py-1 text-xs font-medium text-red-700",svgClasses:"size-1.5 fill-red-400"},{variant:"icon",subVariant:"yellow",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-yellow-100 px-2 py-1 text-xs font-medium text-yellow-700",svgClasses:"size-1.5 fill-yellow-400"},{variant:"icon",subVariant:"green",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-green-100 px-2 py-1 text-xs font-medium text-green-700",svgClasses:"size-1.5 fill-green-400"},{variant:"icon",subVariant:"blue",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-blue-100 px-2 py-1 text-xs font-medium text-blue-700",svgClasses:"size-1.5 fill-blue-400"},{variant:"media",subVariant:"default",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-gray-400 ring-1 ring-inset ring-gray-400/20 overflow-hidden"},{variant:"media",subVariant:"gray",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-400/20 overflow-hidden"},{variant:"media",subVariant:"green",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-400/20 overflow-hidden"}],Dt=g.forwardRef(({variant:e="default",subVariant:r="default",className:s,svgClasses:n="size-1.5 fill-yellow-400",imagePath:l,imageAlt:i,imageClasses:u,children:o,...p},b)=>{const[v,k]=g.useState(),[y,w]=g.useState(),[c,a]=g.useState(St),h=()=>{k(M(v,"hidden"))};return g.useEffect(()=>{var V,I;const N=r==="custom"?"default":r,$=(V=ke.find(R=>R.variant===e&&R.subVariant===N))==null?void 0:V.classes;if(e==="icon"){const R=(I=ke.find(H=>H.variant===e&&H.subVariant===N))==null?void 0:I.svgClasses;w(r==="custom"?M(R,n):R)}e==="hazard"?a(Nt):e==="go"&&a(Mt),k(M($,s))},[r,s,e,n]),t.jsxs(t.Fragment,{children:[e==="default"&&t.jsx("div",{className:v,...p,ref:b,children:o}),(e==="warning"||e==="hazard"||e==="go")&&t.jsxs("div",{className:v,children:[t.jsx("div",{className:"size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative",children:t.jsx("div",{className:"left-0 top-0 absolute",children:t.jsx("img",{className:"size-6",src:c,alt:`${e} icon`})})}),t.jsx("div",{className:"grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]",children:o}),t.jsx("button",{onClick:h,className:"size-3 py-px justify-center items-center gap-2.5 flex","aria-label":"Close modal",children:t.jsx("img",{src:$t,alt:"close alert icon"})})]}),e==="icon"&&t.jsxs("div",{className:v,...p,ref:b,children:[t.jsx("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:y,role:"img",children:t.jsx("circle",{r:3,cx:3,cy:3})}),o]}),e==="media"&&t.jsxs("div",{className:v,...p,ref:b,children:[t.jsx("div",{className:"col-start-1 col-span-2",children:t.jsx("img",{className:M("h-full",u),src:l,alt:i})}),t.jsx("div",{className:"w-full ml-2 col-start-3 col-span-3",children:o})]})]})}),Lt="inline-flex items-center justify-center whitespace-nowrap rounded-md ring-offset-background transition-colors focus-visible:outline-none font-[`Arial`] disabled:pointer-events-none text-sm md:text-base lg:text-lg disabled:opacity-50 px-6 py-[12px] md:py-[14px] lg:py-[16px] ",be={default:{normal:"border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-lg hover:text-white hover:border-slate-600 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 py-0 md:py-0 lg:py-0 h-[48px] mt-1",selected:"bg-gray-500 text-white"},filled:{normal:"rounded-md bg-[#092068] hover:bg-[#0c2c8e] text-white text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] active:bg-[#092068]/80 disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] disabled:border-2 lg:h-14",selected:""},outline:{normal:"rounded-md border-[#092068] bg-white border-2 text-[#092068] text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] lg:h-14 text-lg",selected:""},transparent:{normal:"rounded-md text-lg text-[#092068] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] disabled:text-[#939194] w-[157px] md:w-[163px] lg:w-[169px] h-12 md:h-[52px] lg:h-14",selected:""}},zt=g.forwardRef(({label:e,onClick:r,className:s,icon:n,iconPosition:l,variant:i="default",type:u="button",children:o,selected:p=!1,selectedClasses:b,...v},k)=>{const[y,w]=g.useState("");return g.useEffect(()=>{let c=be[i].normal||be.default.normal;p&&!b?c=M(c,be[i].selected):p&&b&&(c=M(c,b)),w(M(Lt,c,s))},[s,p,b,i]),t.jsxs("button",{type:u,onClick:r,className:`${l==="iconOnly"?M(y,"px-[12px] md:px-[14px] lg:px-[16px] py-[12px] md:py-[14px] lg:py-[16px]"):y}`,ref:k,...v,children:[l==="left"&&n&&t.jsx("span",{className:"icon-left mr-3 size-6",children:n}),l==="iconOnly"&&n?t.jsx("span",{className:"size-6",children:n}):t.jsx("span",{className:"button-text",children:o||e}),l==="right"&&n&&t.jsx("span",{className:"icon-right ml-3 size-6",children:n})]})}),_t="data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%201'%20d='M1%201L5%205.5L1%2010'%20stroke='%23747476'%20stroke-width='2'/%3e%3c/svg%3e",Et="data:image/svg+xml,%3csvg%20width='12'%20height='15'%20viewBox='0%200%2012%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Exclude'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%200.5L0%205.75V14.5H4.28571V10.125H7.71429V14.5H12V5.75L6%200.5Z'%20fill='%23747476'/%3e%3c/svg%3e",It={default:"",bold:"font-bold"},Vt=Q.forwardRef(({containerClassName:e,className:r,variant:s="default",auto:n=!0,separator:l=_t,...i},u)=>{const o=de.useLocation().pathname.split("/").filter(p=>p!=="");return t.jsx("nav",{className:M(It[s],e),...i,ref:u,"aria-label":"Breadcrumbs",children:t.jsxs("ol",{className:"flex list-none",children:[t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[t.jsx(de.Link,{to:"/",className:M("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2 hidden md:inline-flex",r),children:"Homepage"}),t.jsx(de.Link,{to:"/",className:M("capitalize me-2 inline-flex md:hidden",r),children:t.jsx("img",{src:Et,alt:"home icon"})}),o.length>1?t.jsx("span",{className:M("me-2",r),children:t.jsx("img",{src:l,alt:"vector"})}):""]}),o.map((p,b)=>{const v="/"+o.slice(0,b+1).join("/");return t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[b===o.length-1?t.jsx("span",{className:"text-black font-bold capitalize","aria-current":"page",children:decodeURIComponent(p).replace(/-/g," ")}):t.jsx(de.Link,{to:v,className:M("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2",r),children:decodeURIComponent(p).replace(/-/g," ")}),b<o.length-1&&t.jsx("span",{className:M("me-2",r),children:t.jsx("img",{src:l,alt:"vector"})})]},b)})]})})}),Rt={default:"flex flex-col w-64 max-w-64",imageBottom:"flex flex-col-reverse w-64 mx-w-64",imageLeft:"flex flex-row h-auto max-w-lg min-w-96",imageRight:"flex flex-row-reverse h-auto max-w-lg min-w-96"},At={default:"bg-white overflow-hidden rounded-lg",outline:"bg-white overflow-hidden rounded-lg shadow-md border border-slate-300"},Ot="px-4 my-2",Ht="px-2 my-2",Le=Q.forwardRef(({className:e,variant:r="default",variantStyle:s="default",imagePath:n,imageClassname:l="w-full h-full",imageInset:i=!1,alt:u,ariaLabel:o="card component",children:p,...b},v)=>t.jsxs("div",{className:M("flex ",At[s],Rt[r],e),"aria-label":o,ref:v,...b,children:[t.jsx("div",{className:M("flex-initial items-center justify-center w-full",i&&(r==="default"||r==="imageBottom"?Ot:Ht)),children:n&&t.jsx("img",{src:n,alt:u,className:l})}),t.jsx("div",{className:"flex-auto px-4 my-2",children:p})]}));Le.displayName="Card";const Tt=({className:e="",messageClassName:r="",overLimitMessageClassName:s="",maxCharacters:n,children:l,altRemainingMessageText:i,altOverageMessageText:u})=>{const[o,p]=g.useState(`${n} characters allowed`),[b,v]=g.useState(!1),k=y=>{const c=y.target.value.length;if(v(c>n),c===0)p(`${n} characters allowed`);else if(c<=n){const a=" "+(i??"remaining");p(`${n-c}${a}`)}else{const a=" "+(u??"characters too many");p(`${c-n}${a}`)}};return t.jsxs("div",{className:e,children:[t.jsx("div",{onInput:k,className:"mb-2",children:l}),t.jsx("div",{className:M(r,b&&"text-red-500",b&&s),children:o})," "]})};var Yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}};(function(e,r){(function(s,n){e.exports=n()})(Yt,function(){var s=1e3,n=6e4,l=36e5,i="millisecond",u="second",o="minute",p="hour",b="day",v="week",k="month",y="quarter",w="year",c="date",a="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(m){var f=["th","st","nd","rd"],d=m%100;return"["+m+(f[(d-20)%10]||f[d]||f[0])+"]"}},V=function(m,f,d){var C=String(m);return!C||C.length>=f?m:""+Array(f+1-C.length).join(d)+m},I={s:V,z:function(m){var f=-m.utcOffset(),d=Math.abs(f),C=Math.floor(d/60),x=d%60;return(f<=0?"+":"-")+V(C,2,"0")+":"+V(x,2,"0")},m:function m(f,d){if(f.date()<d.date())return-m(d,f);var C=12*(d.year()-f.year())+(d.month()-f.month()),x=f.clone().add(C,k),S=d-x<0,L=f.clone().add(C+(S?-1:1),k);return+(-(C+(d-x)/(S?x-L:L-x))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:k,y:w,w:v,d:b,D:c,h:p,m:o,s:u,ms:i,Q:y}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},R="en",H={};H[R]=$;var U="$isDayjsObject",W=function(m){return m instanceof _||!(!m||!m[U])},B=function m(f,d,C){var x;if(!f)return R;if(typeof f=="string"){var S=f.toLowerCase();H[S]&&(x=S),d&&(H[S]=d,x=S);var L=f.split("-");if(!x&&L.length>1)return m(L[0])}else{var E=f.name;H[E]=f,x=E}return!C&&x&&(R=x),x||!C&&R},D=function(m,f){if(W(m))return m.clone();var d=typeof f=="object"?f:{};return d.date=m,d.args=arguments,new _(d)},j=I;j.l=B,j.i=W,j.w=function(m,f){return D(m,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var _=function(){function m(d){this.$L=B(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[U]=!0}var f=m.prototype;return f.parse=function(d){this.$d=function(C){var x=C.date,S=C.utc;if(x===null)return new Date(NaN);if(j.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var L=x.match(h);if(L){var E=L[2]-1||0,O=(L[7]||"0").substring(0,3);return S?new Date(Date.UTC(L[1],E,L[3]||1,L[4]||0,L[5]||0,L[6]||0,O)):new Date(L[1],E,L[3]||1,L[4]||0,L[5]||0,L[6]||0,O)}}return new Date(x)}(d),this.init()},f.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},f.$utils=function(){return j},f.isValid=function(){return this.$d.toString()!==a},f.isSame=function(d,C){var x=D(d);return this.startOf(C)<=x&&x<=this.endOf(C)},f.isAfter=function(d,C){return D(d)<this.startOf(C)},f.isBefore=function(d,C){return this.endOf(C)<D(d)},f.$g=function(d,C,x){return j.u(d)?this[C]:this.set(x,d)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(d,C){var x=this,S=!!j.u(C)||C,L=j.p(d),E=function(ee,P){var K=j.w(x.$u?Date.UTC(x.$y,P,ee):new Date(x.$y,P,ee),x);return S?K:K.endOf(b)},O=function(ee,P){return j.w(x.toDate()[ee].apply(x.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(P)),x)},T=this.$W,Y=this.$M,F=this.$D,re="set"+(this.$u?"UTC":"");switch(L){case w:return S?E(1,0):E(31,11);case k:return S?E(1,Y):E(0,Y+1);case v:var X=this.$locale().weekStart||0,oe=(T<X?T+7:T)-X;return E(S?F-oe:F+(6-oe),Y);case b:case c:return O(re+"Hours",0);case p:return O(re+"Minutes",1);case o:return O(re+"Seconds",2);case u:return O(re+"Milliseconds",3);default:return this.clone()}},f.endOf=function(d){return this.startOf(d,!1)},f.$set=function(d,C){var x,S=j.p(d),L="set"+(this.$u?"UTC":""),E=(x={},x[b]=L+"Date",x[c]=L+"Date",x[k]=L+"Month",x[w]=L+"FullYear",x[p]=L+"Hours",x[o]=L+"Minutes",x[u]=L+"Seconds",x[i]=L+"Milliseconds",x)[S],O=S===b?this.$D+(C-this.$W):C;if(S===k||S===w){var T=this.clone().set(c,1);T.$d[E](O),T.init(),this.$d=T.set(c,Math.min(this.$D,T.daysInMonth())).$d}else E&&this.$d[E](O);return this.init(),this},f.set=function(d,C){return this.clone().$set(d,C)},f.get=function(d){return this[j.p(d)]()},f.add=function(d,C){var x,S=this;d=Number(d);var L=j.p(C),E=function(Y){var F=D(S);return j.w(F.date(F.date()+Math.round(Y*d)),S)};if(L===k)return this.set(k,this.$M+d);if(L===w)return this.set(w,this.$y+d);if(L===b)return E(1);if(L===v)return E(7);var O=(x={},x[o]=n,x[p]=l,x[u]=s,x)[L]||1,T=this.$d.getTime()+d*O;return j.w(T,this)},f.subtract=function(d,C){return this.add(-1*d,C)},f.format=function(d){var C=this,x=this.$locale();if(!this.isValid())return x.invalidDate||a;var S=d||"YYYY-MM-DDTHH:mm:ssZ",L=j.z(this),E=this.$H,O=this.$m,T=this.$M,Y=x.weekdays,F=x.months,re=x.meridiem,X=function(P,K,ae,ue){return P&&(P[K]||P(C,S))||ae[K].slice(0,ue)},oe=function(P){return j.s(E%12||12,P,"0")},ee=re||function(P,K,ae){var ue=P<12?"AM":"PM";return ae?ue.toLowerCase():ue};return S.replace(N,function(P,K){return K||function(ae){switch(ae){case"YY":return String(C.$y).slice(-2);case"YYYY":return j.s(C.$y,4,"0");case"M":return T+1;case"MM":return j.s(T+1,2,"0");case"MMM":return X(x.monthsShort,T,F,3);case"MMMM":return X(F,T);case"D":return C.$D;case"DD":return j.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return X(x.weekdaysMin,C.$W,Y,2);case"ddd":return X(x.weekdaysShort,C.$W,Y,3);case"dddd":return Y[C.$W];case"H":return String(E);case"HH":return j.s(E,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ee(E,O,!0);case"A":return ee(E,O,!1);case"m":return String(O);case"mm":return j.s(O,2,"0");case"s":return String(C.$s);case"ss":return j.s(C.$s,2,"0");case"SSS":return j.s(C.$ms,3,"0");case"Z":return L}return null}(P)||L.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(d,C,x){var S,L=this,E=j.p(C),O=D(d),T=(O.utcOffset()-this.utcOffset())*n,Y=this-O,F=function(){return j.m(L,O)};switch(E){case w:S=F()/12;break;case k:S=F();break;case y:S=F()/3;break;case v:S=(Y-T)/6048e5;break;case b:S=(Y-T)/864e5;break;case p:S=Y/l;break;case o:S=Y/n;break;case u:S=Y/s;break;default:S=Y}return x?S:j.a(S)},f.daysInMonth=function(){return this.endOf(k).$D},f.$locale=function(){return H[this.$L]},f.locale=function(d,C){if(!d)return this.$L;var x=this.clone(),S=B(d,C,!0);return S&&(x.$L=S),x},f.clone=function(){return j.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},m}(),G=_.prototype;return D.prototype=G,[["$ms",i],["$s",u],["$m",o],["$H",p],["$W",b],["$M",k],["$y",w],["$D",c]].forEach(function(m){G[m[1]]=function(f){return this.$g(f,m[0],m[1])}}),D.extend=function(m,f){return m.$i||(m(f,_,D),m.$i=!0),D},D.locale=B,D.isDayjs=W,D.unix=function(m){return D(1e3*m)},D.en=H[R],D.Ls=H,D.p={},D})})(ze);var Pt=ze.exports;const ce=Bt(Pt),Gt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%200%2024%2024'%20width='24px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e",Ft=({id:e,label:r,value:s,onChange:n})=>{const[l,i]=g.useState(!1),[u,o]=g.useState(s),[p,b]=g.useState(!0),[v,k]=g.useState(!!s),[y,w]=g.useState(ce(s,"MM-DD-YYYY",!0).isValid()?ce(s,"MM-DD-YYYY",!0):null),c=g.useRef(null),a=g.useRef(null),h=g.useRef(null),N=(y==null?void 0:y.daysInMonth())||30,$=(y==null?void 0:y.startOf("month").day())||0;g.useEffect(()=>{u||(s=ce().format("MM-DD-YYYY"),k(!1)),o(s);const D=ce(s,"MM-DD-YYYY",!0);w(D.isValid()?D:null),b(D.isValid()&&s!=="")},[s]),g.useEffect(()=>{function D(j){c.current&&(c.current.contains(j.target)||i(!1))}if(l&&h.current){const j=h.current.querySelector('[role="button"]:not([disabled])');j==null||j.focus(),document.addEventListener("mousedown",D)}return()=>{document.removeEventListener("mousedown",D)}},[l]);const V=D=>{var _;const j=D.format("MM-DD-YYYY");k(!0),w(D),o(j),b(!0),n(j),i(!1),(_=a.current)==null||_.focus()},I=(D,j)=>{D.key==="Enter"&&V(j)},R=D=>{const j=D.target.value;if(o(j),k(!0),!/^\d{1,2}-\d{2}-\d{4}$/.test(j)){b(!1),n(j);return}const G=ce(j,"MM-DD-YYYY",!0);G.isValid()?(console.log("MAYBEDATE IS VALID"),w(G),b(!0),n(j)):(console.log("MAYBEDATE IS --NOT-- VALID"),b(!1),n(j))},H=()=>{i(D=>!D)},U=()=>{y&&w(y.subtract(1,"month"))},W=()=>{y&&w(y.add(1,"month"))},B=()=>{if(!y)return null;const D=[];for(let j=0;j<$;j++)D.push(t.jsx("div",{className:"w-8 h-8"},`empty-${j}`));for(let j=1;j<=N;j++){const _=y.date(j);D.push(t.jsx("button",{role:"presentation",tabIndex:0,onClick:()=>V(_),onKeyDown:G=>I(G,_),className:`w-8 h-8 ${_.isSame(y,"date")?"bg-blue-500 text-white":""} hover:bg-blue-100 focus:ring`,"aria-label":_.format("MMMM D, YYYY"),children:j},j))}return D};return t.jsxs("div",{className:"relative",ref:c,children:[t.jsx("label",{htmlFor:e,id:"date-picker-input",className:"block text-sm font-medium text-gray-700",children:r}),t.jsxs("div",{className:"flex items-center mt-1",children:[t.jsx("input",{id:e,type:"text","aria-labelledby":"date-picker-input",ref:a,value:v?u:"",onChange:R,placeholder:"MM-DD-YYYY",className:`block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),de=require("react-router-dom");function Ae(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const Q=Ae(g),xe="-",Oe=e=>{const r=Te(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:d=>{const o=d.split(xe);return o[0]===""&&o.length!==1&&o.shift(),Me(o,r)||He(d)},getConflictingClassGroupIds:(d,o)=>{const h=s[d]||[];return o&&n[d]?[...h,...n[d]]:h}}},Me=(e,r)=>{var d;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),l=n?Me(e.slice(1),n):void 0;if(l)return l;if(r.validators.length===0)return;const i=e.join(xe);return(d=r.validators.find(({validator:o})=>o(i)))==null?void 0:d.classGroupId},we=/^\[(.+)\]$/,He=e=>{if(we.test(e)){const r=we.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},Te=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return Be(Object.entries(e.classGroups),s).forEach(([i,d])=>{he(d,n,i,r)}),n},he=(e,r,s,n)=>{e.forEach(l=>{if(typeof l=="string"){const i=l===""?r:ye(r,l);i.classGroupId=s;return}if(typeof l=="function"){if(Ye(l)){he(l(n),r,s,n);return}r.validators.push({validator:l,classGroupId:s});return}Object.entries(l).forEach(([i,d])=>{he(d,ye(r,i),s,n)})})},ye=(e,r)=>{let s=e;return r.split(xe).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},Ye=e=>e.isThemeGetter,Be=(e,r)=>r?e.map(([s,n])=>{const l=n.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,o])=>[r+d,o])):i);return[s,l]}):e,Pe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const l=(i,d)=>{s.set(i,d),r++,r>e&&(r=0,n=s,s=new Map)};return{get(i){let d=s.get(i);if(d!==void 0)return d;if((d=n.get(i))!==void 0)return l(i,d),d},set(i,d){s.has(i)?s.set(i,d):l(i,d)}}},Se="!",Ge=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.length===1,l=r[0],i=r.length,d=o=>{const h=[];let b=0,w=0,k;for(let p=0;p<o.length;p++){let N=o[p];if(b===0){if(N===l&&(n||o.slice(p,p+i)===r)){h.push(o.slice(w,p)),w=p+i;continue}if(N==="/"){k=p;continue}}N==="["?b++:N==="]"&&b--}const y=h.length===0?o:o.substring(w),v=y.startsWith(Se),c=v?y.substring(1):y,a=k&&k>w?k-w:void 0;return{modifiers:h,hasImportantModifier:v,baseClassName:c,maybePostfixModifierPosition:a}};return s?o=>s({className:o,parseClassName:d}):d},Fe=e=>{if(e.length<=1)return e;const r=[];let s=[];return e.forEach(n=>{n[0]==="["?(r.push(...s.sort(),n),s=[]):s.push(n)}),r.push(...s.sort()),r},Ue=e=>({cache:Pe(e.cacheSize),parseClassName:Ge(e),...Oe(e)}),We=/\s+/,Ze=(e,r)=>{const{parseClassName:s,getClassGroupId:n,getConflictingClassGroupIds:l}=r,i=[],d=e.trim().split(We);let o="";for(let h=d.length-1;h>=0;h-=1){const b=d[h],{modifiers:w,hasImportantModifier:k,baseClassName:y,maybePostfixModifierPosition:v}=s(b);let c=!!v,a=n(c?y.substring(0,v):y);if(!a){if(!c){o=b+(o.length>0?" "+o:o);continue}if(a=n(y),!a){o=b+(o.length>0?" "+o:o);continue}c=!1}const p=Fe(w).join(":"),N=k?p+Se:p,$=N+a;if(i.includes($))continue;i.push($);const V=l(a,c);for(let I=0;I<V.length;++I){const R=V[I];i.push(N+R)}o=b+(o.length>0?" "+o:o)}return o};function Ke(){let e=0,r,s,n="";for(;e<arguments.length;)(r=arguments[e++])&&(s=Ne(r))&&(n&&(n+=" "),n+=s);return n}const Ne=e=>{if(typeof e=="string")return e;let r,s="";for(let n=0;n<e.length;n++)e[n]&&(r=Ne(e[n]))&&(s&&(s+=" "),s+=r);return s};function qe(e,...r){let s,n,l,i=d;function d(h){const b=r.reduce((w,k)=>k(w),e());return s=Ue(b),n=s.cache.get,l=s.cache.set,i=o,o(h)}function o(h){const b=n(h);if(b)return b;const w=Ze(h,s);return l(h,w),w}return function(){return i(Ke.apply(null,arguments))}}const A=e=>{const r=s=>s[e]||[];return r.isThemeGetter=!0,r},$e=/^\[(?:([a-z-]+):)?(.+)\]$/i,Je=/^\d+\/\d+$/,Qe=new Set(["px","full","screen"]),Xe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,st=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>se(e)||Qe.has(e)||Je.test(e),q=e=>ne(e,"length",ut),se=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>ne(e,"number",se),le=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith("%")&&se(e.slice(0,-1)),z=e=>$e.test(e),J=e=>Xe.test(e),ot=new Set(["length","size","percentage"]),at=e=>ne(e,ot,De),lt=e=>ne(e,"position",De),it=new Set(["image","url"]),ct=e=>ne(e,it,gt),dt=e=>ne(e,"",ft),ie=()=>!0,ne=(e,r,s)=>{const n=$e.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):s(n[2]):!1},ut=e=>et.test(e)&&!tt.test(e),De=()=>!1,ft=e=>rt.test(e),gt=e=>st.test(e),bt=()=>{const e=A("colors"),r=A("spacing"),s=A("blur"),n=A("brightness"),l=A("borderColor"),i=A("borderRadius"),d=A("borderSpacing"),o=A("borderWidth"),h=A("contrast"),b=A("grayscale"),w=A("hueRotate"),k=A("invert"),y=A("gap"),v=A("gradientColorStops"),c=A("gradientColorStopPositions"),a=A("inset"),p=A("margin"),N=A("opacity"),$=A("padding"),V=A("saturate"),I=A("scale"),R=A("sepia"),H=A("skew"),U=A("space"),W=A("translate"),B=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",z,r],_=()=>[z,r],G=()=>["",Z,q],m=()=>["auto",se,z],f=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],u=()=>["solid","dashed","dotted","double","none"],C=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],x=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",z],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[se,z];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[Z,q],blur:["none","",J,z],brightness:E(),borderColor:[e],borderRadius:["none","","full",J,z],borderSpacing:_(),borderWidth:G(),contrast:E(),grayscale:S(),hueRotate:E(),invert:S(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[nt,q],inset:j(),margin:j(),opacity:E(),padding:_(),saturate:E(),scale:E(),sepia:S(),skew:E(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...f(),z]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[a]}],"inset-x":[{"inset-x":[a]}],"inset-y":[{"inset-y":[a]}],start:[{start:[a]}],end:[{end:[a]}],top:[{top:[a]}],right:[{right:[a]}],bottom:[{bottom:[a]}],left:[{left:[a]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le,z]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",le,z]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",le,z]},z]}],"col-start":[{"col-start":m()}],"col-end":[{"col-end":m()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[le,z]},z]}],"row-start":[{"row-start":m()}],"row-end":[{"row-end":m()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...x()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...x(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...x(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$]}],px:[{px:[$]}],py:[{py:[$]}],ps:[{ps:[$]}],pe:[{pe:[$]}],pt:[{pt:[$]}],pr:[{pr:[$]}],pb:[{pb:[$]}],pl:[{pl:[$]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,r]}],"min-w":[{"min-w":[z,r,"min","max","fit"]}],"max-w":[{"max-w":[z,r,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[z,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,r,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ge]}],"font-family":[{font:[ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",se,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Z,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...u(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Z,q]}],"underline-offset":[{"underline-offset":["auto",Z,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...f(),lt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",at]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ct]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[c]}],"gradient-via-pos":[{via:[c]}],"gradient-to-pos":[{to:[c]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...u(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:u()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...u()]}],"outline-offset":[{"outline-offset":[Z,z]}],"outline-w":[{outline:[Z,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[Z,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,dt]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...C(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":C()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[n]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",J,z]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[k]}],saturate:[{saturate:[V]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[le,z]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Z,q,ge]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},M=qe(bt),mt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-plus'%3e%3cpath%20d='M5%2012h14'/%3e%3cpath%20d='M12%205v14'/%3e%3c/svg%3e",pt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-minus'%3e%3cpath%20d='M5%2012h14'/%3e%3c/svg%3e",ht="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-down'%3e%3cpath%20d='m6%209%206%206%206-6'/%3e%3c/svg%3e",xt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-up'%3e%3cpath%20d='m18%2015-6-6-6%206'/%3e%3c/svg%3e",vt="mt-[-0.5rem]",wt="flex justify-between items-center w-full p-1 px-4 text-left border border-gray-300 mt-2",yt="px-4 py-1 border border-t-0 border-gray-300",kt={},jt={},Ct=g.forwardRef(({variant:e="default",label:r,classNameContainer:s="",chevron:n=!0,iconAccordionOpened:l,iconAccordionClosed:i,rounded:d=!1,classNameHeading:o="",classNameContent:h="",onExpand:b,singleOpen:w,index:k,children:y,...v},c)=>{const[a,p]=g.useState(!1),N=`accordion-${k??r.replace(/\s+/g,"-").toLowerCase()}`,$=()=>{b&&w&&b(p),p(!a)},V=I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),$(),console.log("key pressed, event.key === '"+I.key+"', index: "+k+", label: "+r))};return t.jsxs("div",{ref:c,className:s,children:[t.jsxs("button",{className:M(wt,kt.variant,o,d&&(a?"rounded-t-md":"rounded-md")),"aria-controls":`${N}-content`,"aria-expanded":a,id:`${N}-header`,onClick:$,onKeyDown:V,...v,children:[t.jsx("span",{children:r}),t.jsx("span",{children:a?l||t.jsx("img",{src:n?xt:pt,alt:"Close Icon"}):i||t.jsx("img",{src:n?ht:mt,alt:"Open Icon"})})]}),a&&t.jsx("div",{className:M(yt,jt.variant,h,d&&"rounded-b-md"),id:`${N}-content`,role:"region","aria-labelledby":`${N}-header`,children:y})]})}),Mt=g.forwardRef(({children:e,variant:r="default",chevron:s,iconAccordionOpened:n,iconAccordionClosed:l,rounded:i,classNameContainer:d,singleOpen:o=!0,classNameChildHeading:h,classNameChildContent:b,...w},k)=>{const[y,v]=g.useState(null),c=a=>{y&&y(!1),v(()=>a)};return t.jsx("div",{ref:k,...w,className:M(vt,d),children:g.Children.map(e,(a,p)=>g.isValidElement(a)?g.cloneElement(a,{...a.props,variant:r,chevron:s,iconAccordionOpened:n,iconAccordionClosed:l,rounded:i,classNameHeading:M(h,a.props.classNameHeading),classNameContent:M(b,a.props.classNameContent),index:p,singleOpen:o,onExpand:N=>c(N)}):a)})}),St="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='thumb_up'%3e%3cmask%20id='mask0_320_1845'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_320_1845)'%3e%3cpath%20id='thumb_up_2'%20d='M18%2021H8V8L15%201L16.25%202.25C16.3667%202.36667%2016.4625%202.525%2016.5375%202.725C16.6125%202.925%2016.65%203.11667%2016.65%203.3V3.65L15.55%208H21C21.5333%208%2022%208.2%2022.4%208.6C22.8%209%2023%209.46667%2023%2010V12C23%2012.1167%2022.9875%2012.2417%2022.9625%2012.375C22.9375%2012.5083%2022.9%2012.6333%2022.85%2012.75L19.85%2019.8C19.7%2020.1333%2019.45%2020.4167%2019.1%2020.65C18.75%2020.8833%2018.3833%2021%2018%2021ZM6%208V21H2V8H6Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Nt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_311_2053'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='red'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_311_2053)'%3e%3cpath%20id='warning_2'%20d='M1%2021L12%202L23%2021H1ZM12%2018C12.2833%2018%2012.5208%2017.9042%2012.7125%2017.7125C12.9042%2017.5208%2013%2017.2833%2013%2017C13%2016.7167%2012.9042%2016.4792%2012.7125%2016.2875C12.5208%2016.0958%2012.2833%2016%2012%2016C11.7167%2016%2011.4792%2016.0958%2011.2875%2016.2875C11.0958%2016.4792%2011%2016.7167%2011%2017C11%2017.2833%2011.0958%2017.5208%2011.2875%2017.7125C11.4792%2017.9042%2011.7167%2018%2012%2018ZM11%2015H13V10H11V15Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$t="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='emergency_home'%3e%3cmask%20id='mask0_320_1821'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_320_1821)'%3e%3cpath%20id='emergency_home_2'%20d='M11.9996%2022.0251C11.7329%2022.0251%2011.4788%2021.9751%2011.2371%2021.8751C10.9954%2021.7751%2010.7746%2021.6334%2010.5746%2021.4501L2.54961%2013.4251C2.36628%2013.2251%202.22461%2013.0043%202.12461%2012.7626C2.02461%2012.5209%201.97461%2012.2668%201.97461%2012.0001C1.97461%2011.7334%202.02461%2011.4751%202.12461%2011.2251C2.22461%2010.9751%202.36628%2010.7584%202.54961%2010.5751L10.5746%202.5501C10.7746%202.3501%2010.9954%202.20426%2011.2371%202.1126C11.4788%202.02093%2011.7329%201.9751%2011.9996%201.9751C12.2663%201.9751%2012.5246%202.02093%2012.7746%202.1126C13.0246%202.20426%2013.2413%202.3501%2013.4246%202.5501L21.4496%2010.5751C21.6496%2010.7584%2021.7954%2010.9751%2021.8871%2011.2251C21.9788%2011.4751%2022.0246%2011.7334%2022.0246%2012.0001C22.0246%2012.2668%2021.9788%2012.5209%2021.8871%2012.7626C21.7954%2013.0043%2021.6496%2013.2251%2021.4496%2013.4251L13.4246%2021.4501C13.2413%2021.6334%2013.0246%2021.7751%2012.7746%2021.8751C12.5246%2021.9751%2012.2663%2022.0251%2011.9996%2022.0251ZM10.9996%2013.0001H12.9996V7.0001H10.9996V13.0001ZM11.9996%2016.0001C12.2829%2016.0001%2012.5204%2015.9043%2012.7121%2015.7126C12.9038%2015.5209%2012.9996%2015.2834%2012.9996%2015.0001C12.9996%2014.7168%2012.9038%2014.4793%2012.7121%2014.2876C12.5204%2014.0959%2012.2829%2014.0001%2011.9996%2014.0001C11.7163%2014.0001%2011.4788%2014.0959%2011.2871%2014.2876C11.0954%2014.4793%2010.9996%2014.7168%2010.9996%2015.0001C10.9996%2015.2834%2011.0954%2015.5209%2011.2871%2015.7126C11.4788%2015.9043%2011.7163%2016.0001%2011.9996%2016.0001Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Dt="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='close_small'%20d='M1.40349%2010L0%208.60349L3.60898%204.98753L0%201.39651L1.40349%200L5.01247%203.60623L8.59651%200L10%201.39651L6.39102%204.98753L10%208.60349L8.59651%2010L5.01247%206.39377L1.40349%2010Z'%20fill='black'/%3e%3c/svg%3e",ke=[{variant:"default",subVariant:"default",classes:"mx-2 inline-flex items-center rounded-md bg-gray-500/10 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-400/20"},{variant:"default",subVariant:"gray",classes:"mx-2 inline-flex items-center rounded-md bg-gray-500/10 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-400/20"},{variant:"default",subVariant:"red",classes:"mx-2 inline-flex items-center rounded-md bg-red-500/10 px-2 py-1 text-xs font-medium text-red-700 ring-1 ring-inset ring-red-400/20"},{variant:"default",subVariant:"yellow",classes:"mx-2 inline-flex items-center rounded-md bg-yellow-500/10 px-2 py-1 text-xs font-medium text-yellow-700 ring-1 ring-inset ring-yellow-400/20"},{variant:"default",subVariant:"green",classes:"mx-2 inline-flex items-center rounded-md bg-green-500/10 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-500/20"},{variant:"default",subVariant:"blue",classes:"mx-2 inline-flex items-center rounded-md bg-blue-400/10 px-2 py-1 text-xs font-medium text-blue-400 ring-1 ring-inset ring-blue-400/30"},{variant:"warning",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#fff1be] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"warning",subVariant:"full",classes:"flex flex-row w-full bg-[#fff1be] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex"},{variant:"hazard",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#f4c2c2] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"hazard",subVariant:"full",classes:'flex flex-row w-full bg-[#f4c2c2] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"go",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#d6f4d5] border-[#40bf40] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"go",subVariant:"full",classes:'flex flex-row w-full bg-[#d6f4d5] border-[#40bf40] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"icon",subVariant:"default",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-gray-500 px-2 py-1 text-xs font-medium text-gray-700",svgClasses:"size-1.5 fill-gray-400"},{variant:"icon",subVariant:"gray",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-gray-100 px-2 py-1 text-xs font-medium text-gray-700",svgClasses:"size-1.5 fill-gray-400"},{variant:"icon",subVariant:"red",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-red-100 px-2 py-1 text-xs font-medium text-red-700",svgClasses:"size-1.5 fill-red-400"},{variant:"icon",subVariant:"yellow",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-yellow-100 px-2 py-1 text-xs font-medium text-yellow-700",svgClasses:"size-1.5 fill-yellow-400"},{variant:"icon",subVariant:"green",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-green-100 px-2 py-1 text-xs font-medium text-green-700",svgClasses:"size-1.5 fill-green-400"},{variant:"icon",subVariant:"blue",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-blue-100 px-2 py-1 text-xs font-medium text-blue-700",svgClasses:"size-1.5 fill-blue-400"},{variant:"media",subVariant:"default",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-gray-400 ring-1 ring-inset ring-gray-400/20 overflow-hidden"},{variant:"media",subVariant:"gray",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-400/20 overflow-hidden"},{variant:"media",subVariant:"green",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-400/20 overflow-hidden"}],Lt=g.forwardRef(({variant:e="default",subVariant:r="default",className:s,svgClasses:n="size-1.5 fill-yellow-400",imagePath:l,imageAlt:i,classNameImage:d,children:o,...h},b)=>{const[w,k]=g.useState(),[y,v]=g.useState(),[c,a]=g.useState(Nt),p=()=>{k(M(w,"hidden"))};return g.useEffect(()=>{var V,I;const N=r==="custom"?"default":r,$=(V=ke.find(R=>R.variant===e&&R.subVariant===N))==null?void 0:V.classes;if(e==="icon"){const R=(I=ke.find(H=>H.variant===e&&H.subVariant===N))==null?void 0:I.svgClasses;v(r==="custom"?M(R,n):R)}e==="hazard"?a($t):e==="go"&&a(St),k(M($,s))},[r,s,e,n]),t.jsxs(t.Fragment,{children:[e==="default"&&t.jsx("div",{className:w,...h,ref:b,children:o}),(e==="warning"||e==="hazard"||e==="go")&&t.jsxs("div",{className:w,children:[t.jsx("div",{className:"size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative",children:t.jsx("div",{className:"left-0 top-0 absolute",children:t.jsx("img",{className:"size-6",src:c,alt:`${e} icon`})})}),t.jsx("div",{className:"grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]",children:o}),t.jsx("button",{onClick:p,className:"size-3 py-px justify-center items-center gap-2.5 flex","aria-label":"Close modal",children:t.jsx("img",{src:Dt,alt:"close alert icon"})})]}),e==="icon"&&t.jsxs("div",{className:w,...h,ref:b,children:[t.jsx("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:y,role:"img",children:t.jsx("circle",{r:3,cx:3,cy:3})}),o]}),e==="media"&&t.jsxs("div",{className:w,...h,ref:b,children:[t.jsx("div",{className:"col-start-1 col-span-2",children:t.jsx("img",{className:M("h-full",d),src:l,alt:i})}),t.jsx("div",{className:"w-full ml-2 col-start-3 col-span-3",children:o})]})]})}),zt="inline-flex items-center justify-center whitespace-nowrap rounded-md ring-offset-background transition-colors focus-visible:outline-none font-[`Arial`] disabled:pointer-events-none text-sm md:text-base lg:text-lg disabled:opacity-50 px-6 py-[12px] md:py-[14px] lg:py-[16px] ",be={default:{normal:"border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-lg hover:text-white hover:border-slate-600 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 py-0 md:py-0 lg:py-0 h-[48px] mt-1",selected:"bg-gray-500 text-white"},filled:{normal:"rounded-md bg-[#092068] hover:bg-[#0c2c8e] text-white text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] active:bg-[#092068]/80 disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] disabled:border-2 lg:h-14",selected:""},outline:{normal:"rounded-md border-[#092068] bg-white border-2 text-[#092068] text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] lg:h-14 text-lg",selected:""},transparent:{normal:"rounded-md text-lg text-[#092068] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] disabled:text-[#939194] w-[157px] md:w-[163px] lg:w-[169px] h-12 md:h-[52px] lg:h-14",selected:""}},_t=g.forwardRef(({label:e,onClick:r,className:s,icon:n,iconPosition:l,variant:i="default",type:d="button",children:o,selected:h=!1,classNameSelected:b,...w},k)=>{const[y,v]=g.useState("");return g.useEffect(()=>{let c=be[i].normal||be.default.normal;h&&!b?c=M(c,be[i].selected):h&&b&&(c=M(c,b)),v(M(zt,c,s))},[s,h,b,i]),t.jsxs("button",{type:d,onClick:r,className:`${l==="iconOnly"?M(y,"px-[12px] md:px-[14px] lg:px-[16px] py-[12px] md:py-[14px] lg:py-[16px]"):y}`,ref:k,...w,children:[l==="left"&&n&&t.jsx("span",{className:"icon-left mr-3 size-6",children:n}),l==="iconOnly"&&n?t.jsx("span",{className:"size-6",children:n}):t.jsx("span",{className:"button-text",children:o||e}),l==="right"&&n&&t.jsx("span",{className:"icon-right ml-3 size-6",children:n})]})}),Et="data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%201'%20d='M1%201L5%205.5L1%2010'%20stroke='%23747476'%20stroke-width='2'/%3e%3c/svg%3e",It="data:image/svg+xml,%3csvg%20width='12'%20height='15'%20viewBox='0%200%2012%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Exclude'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%200.5L0%205.75V14.5H4.28571V10.125H7.71429V14.5H12V5.75L6%200.5Z'%20fill='%23747476'/%3e%3c/svg%3e",Vt={default:"",bold:"font-bold"},Rt=Q.forwardRef(({classNameContainer:e,className:r,variant:s="default",auto:n=!0,separator:l=Et,...i},d)=>{const o=de.useLocation().pathname.split("/").filter(h=>h!=="");return t.jsx("nav",{className:M(Vt[s],e),...i,ref:d,"aria-label":"Breadcrumbs",children:t.jsxs("ol",{className:"flex list-none",children:[t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[t.jsx(de.Link,{to:"/",className:M("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2 hidden md:inline-flex",r),children:"Homepage"}),t.jsx(de.Link,{to:"/",className:M("capitalize me-2 inline-flex md:hidden",r),children:t.jsx("img",{src:It,alt:"home icon"})}),o.length>1?t.jsx("span",{className:M("me-2",r),children:t.jsx("img",{src:l,alt:"vector"})}):""]}),o.map((h,b)=>{const w="/"+o.slice(0,b+1).join("/");return t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[b===o.length-1?t.jsx("span",{className:"text-black font-bold capitalize","aria-current":"page",children:decodeURIComponent(h).replace(/-/g," ")}):t.jsx(de.Link,{to:w,className:M("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2",r),children:decodeURIComponent(h).replace(/-/g," ")}),b<o.length-1&&t.jsx("span",{className:M("me-2",r),children:t.jsx("img",{src:l,alt:"vector"})})]},b)})]})})}),At={default:"flex flex-col w-64 max-w-64",imageBottom:"flex flex-col-reverse w-64 mx-w-64",imageLeft:"flex flex-row h-auto max-w-lg min-w-96",imageRight:"flex flex-row-reverse h-auto max-w-lg min-w-96"},Ot={default:"bg-white overflow-hidden rounded-lg",outline:"bg-white overflow-hidden rounded-lg shadow-md border border-slate-300"},Ht="px-4 my-2",Tt="px-2 my-2",Le=Q.forwardRef(({className:e,variant:r="default",variantStyle:s="default",imagePath:n,classNameImage:l="w-full h-full",imageInset:i=!1,alt:d,ariaLabel:o="card component",children:h,...b},w)=>t.jsxs("div",{className:M("flex ",Ot[s],At[r],e),"aria-label":o,ref:w,...b,children:[t.jsx("div",{className:M("flex-initial items-center justify-center w-full",i&&(r==="default"||r==="imageBottom"?Ht:Tt)),children:n&&t.jsx("img",{src:n,alt:d,className:l})}),t.jsx("div",{className:"flex-auto px-4 my-2",children:h})]}));Le.displayName="Card";const Yt=({className:e="",classNameMessage:r="",classNameOverLimitMessage:s="",maxCharacters:n,children:l,altRemainingMessageText:i,altOverageMessageText:d})=>{const[o,h]=g.useState(`${n} characters allowed`),[b,w]=g.useState(!1),k=y=>{const c=y.target.value.length;if(w(c>n),c===0)h(`${n} characters allowed`);else if(c<=n){const a=" "+(i??"remaining");h(`${n-c}${a}`)}else{const a=" "+(d??"characters too many");h(`${c-n}${a}`)}};return t.jsxs("div",{className:e,children:[t.jsx("div",{onInput:k,className:"mb-2",children:l}),t.jsx("div",{className:M(r,b&&"text-red-500",b&&s),children:o})," "]})};var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}};(function(e,r){(function(s,n){e.exports=n()})(Bt,function(){var s=1e3,n=6e4,l=36e5,i="millisecond",d="second",o="minute",h="hour",b="day",w="week",k="month",y="quarter",v="year",c="date",a="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(m){var f=["th","st","nd","rd"],u=m%100;return"["+m+(f[(u-20)%10]||f[u]||f[0])+"]"}},V=function(m,f,u){var C=String(m);return!C||C.length>=f?m:""+Array(f+1-C.length).join(u)+m},I={s:V,z:function(m){var f=-m.utcOffset(),u=Math.abs(f),C=Math.floor(u/60),x=u%60;return(f<=0?"+":"-")+V(C,2,"0")+":"+V(x,2,"0")},m:function m(f,u){if(f.date()<u.date())return-m(u,f);var C=12*(u.year()-f.year())+(u.month()-f.month()),x=f.clone().add(C,k),S=u-x<0,L=f.clone().add(C+(S?-1:1),k);return+(-(C+(u-x)/(S?x-L:L-x))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:k,y:v,w,d:b,D:c,h,m:o,s:d,ms:i,Q:y}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},R="en",H={};H[R]=$;var U="$isDayjsObject",W=function(m){return m instanceof _||!(!m||!m[U])},B=function m(f,u,C){var x;if(!f)return R;if(typeof f=="string"){var S=f.toLowerCase();H[S]&&(x=S),u&&(H[S]=u,x=S);var L=f.split("-");if(!x&&L.length>1)return m(L[0])}else{var E=f.name;H[E]=f,x=E}return!C&&x&&(R=x),x||!C&&R},D=function(m,f){if(W(m))return m.clone();var u=typeof f=="object"?f:{};return u.date=m,u.args=arguments,new _(u)},j=I;j.l=B,j.i=W,j.w=function(m,f){return D(m,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var _=function(){function m(u){this.$L=B(u.locale,null,!0),this.parse(u),this.$x=this.$x||u.x||{},this[U]=!0}var f=m.prototype;return f.parse=function(u){this.$d=function(C){var x=C.date,S=C.utc;if(x===null)return new Date(NaN);if(j.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var L=x.match(p);if(L){var E=L[2]-1||0,O=(L[7]||"0").substring(0,3);return S?new Date(Date.UTC(L[1],E,L[3]||1,L[4]||0,L[5]||0,L[6]||0,O)):new Date(L[1],E,L[3]||1,L[4]||0,L[5]||0,L[6]||0,O)}}return new Date(x)}(u),this.init()},f.init=function(){var u=this.$d;this.$y=u.getFullYear(),this.$M=u.getMonth(),this.$D=u.getDate(),this.$W=u.getDay(),this.$H=u.getHours(),this.$m=u.getMinutes(),this.$s=u.getSeconds(),this.$ms=u.getMilliseconds()},f.$utils=function(){return j},f.isValid=function(){return this.$d.toString()!==a},f.isSame=function(u,C){var x=D(u);return this.startOf(C)<=x&&x<=this.endOf(C)},f.isAfter=function(u,C){return D(u)<this.startOf(C)},f.isBefore=function(u,C){return this.endOf(C)<D(u)},f.$g=function(u,C,x){return j.u(u)?this[C]:this.set(x,u)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(u,C){var x=this,S=!!j.u(C)||C,L=j.p(u),E=function(ee,P){var K=j.w(x.$u?Date.UTC(x.$y,P,ee):new Date(x.$y,P,ee),x);return S?K:K.endOf(b)},O=function(ee,P){return j.w(x.toDate()[ee].apply(x.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(P)),x)},T=this.$W,Y=this.$M,F=this.$D,re="set"+(this.$u?"UTC":"");switch(L){case v:return S?E(1,0):E(31,11);case k:return S?E(1,Y):E(0,Y+1);case w:var X=this.$locale().weekStart||0,oe=(T<X?T+7:T)-X;return E(S?F-oe:F+(6-oe),Y);case b:case c:return O(re+"Hours",0);case h:return O(re+"Minutes",1);case o:return O(re+"Seconds",2);case d:return O(re+"Milliseconds",3);default:return this.clone()}},f.endOf=function(u){return this.startOf(u,!1)},f.$set=function(u,C){var x,S=j.p(u),L="set"+(this.$u?"UTC":""),E=(x={},x[b]=L+"Date",x[c]=L+"Date",x[k]=L+"Month",x[v]=L+"FullYear",x[h]=L+"Hours",x[o]=L+"Minutes",x[d]=L+"Seconds",x[i]=L+"Milliseconds",x)[S],O=S===b?this.$D+(C-this.$W):C;if(S===k||S===v){var T=this.clone().set(c,1);T.$d[E](O),T.init(),this.$d=T.set(c,Math.min(this.$D,T.daysInMonth())).$d}else E&&this.$d[E](O);return this.init(),this},f.set=function(u,C){return this.clone().$set(u,C)},f.get=function(u){return this[j.p(u)]()},f.add=function(u,C){var x,S=this;u=Number(u);var L=j.p(C),E=function(Y){var F=D(S);return j.w(F.date(F.date()+Math.round(Y*u)),S)};if(L===k)return this.set(k,this.$M+u);if(L===v)return this.set(v,this.$y+u);if(L===b)return E(1);if(L===w)return E(7);var O=(x={},x[o]=n,x[h]=l,x[d]=s,x)[L]||1,T=this.$d.getTime()+u*O;return j.w(T,this)},f.subtract=function(u,C){return this.add(-1*u,C)},f.format=function(u){var C=this,x=this.$locale();if(!this.isValid())return x.invalidDate||a;var S=u||"YYYY-MM-DDTHH:mm:ssZ",L=j.z(this),E=this.$H,O=this.$m,T=this.$M,Y=x.weekdays,F=x.months,re=x.meridiem,X=function(P,K,ae,ue){return P&&(P[K]||P(C,S))||ae[K].slice(0,ue)},oe=function(P){return j.s(E%12||12,P,"0")},ee=re||function(P,K,ae){var ue=P<12?"AM":"PM";return ae?ue.toLowerCase():ue};return S.replace(N,function(P,K){return K||function(ae){switch(ae){case"YY":return String(C.$y).slice(-2);case"YYYY":return j.s(C.$y,4,"0");case"M":return T+1;case"MM":return j.s(T+1,2,"0");case"MMM":return X(x.monthsShort,T,F,3);case"MMMM":return X(F,T);case"D":return C.$D;case"DD":return j.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return X(x.weekdaysMin,C.$W,Y,2);case"ddd":return X(x.weekdaysShort,C.$W,Y,3);case"dddd":return Y[C.$W];case"H":return String(E);case"HH":return j.s(E,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ee(E,O,!0);case"A":return ee(E,O,!1);case"m":return String(O);case"mm":return j.s(O,2,"0");case"s":return String(C.$s);case"ss":return j.s(C.$s,2,"0");case"SSS":return j.s(C.$ms,3,"0");case"Z":return L}return null}(P)||L.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(u,C,x){var S,L=this,E=j.p(C),O=D(u),T=(O.utcOffset()-this.utcOffset())*n,Y=this-O,F=function(){return j.m(L,O)};switch(E){case v:S=F()/12;break;case k:S=F();break;case y:S=F()/3;break;case w:S=(Y-T)/6048e5;break;case b:S=(Y-T)/864e5;break;case h:S=Y/l;break;case o:S=Y/n;break;case d:S=Y/s;break;default:S=Y}return x?S:j.a(S)},f.daysInMonth=function(){return this.endOf(k).$D},f.$locale=function(){return H[this.$L]},f.locale=function(u,C){if(!u)return this.$L;var x=this.clone(),S=B(u,C,!0);return S&&(x.$L=S),x},f.clone=function(){return j.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},m}(),G=_.prototype;return D.prototype=G,[["$ms",i],["$s",d],["$m",o],["$H",h],["$W",b],["$M",k],["$y",v],["$D",c]].forEach(function(m){G[m[1]]=function(f){return this.$g(f,m[0],m[1])}}),D.extend=function(m,f){return m.$i||(m(f,_,D),m.$i=!0),D},D.locale=B,D.isDayjs=W,D.unix=function(m){return D(1e3*m)},D.en=H[R],D.Ls=H,D.p={},D})})(ze);var Gt=ze.exports;const ce=Pt(Gt),Ft="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%200%2024%2024'%20width='24px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e",Ut=({id:e,label:r,value:s,onChange:n})=>{const[l,i]=g.useState(!1),[d,o]=g.useState(s),[h,b]=g.useState(!0),[w,k]=g.useState(!!s),[y,v]=g.useState(ce(s,"MM-DD-YYYY",!0).isValid()?ce(s,"MM-DD-YYYY",!0):null),c=g.useRef(null),a=g.useRef(null),p=g.useRef(null),N=(y==null?void 0:y.daysInMonth())||30,$=(y==null?void 0:y.startOf("month").day())||0;g.useEffect(()=>{d||(s=ce().format("MM-DD-YYYY"),k(!1)),o(s);const D=ce(s,"MM-DD-YYYY",!0);v(D.isValid()?D:null),b(D.isValid()&&s!=="")},[s]),g.useEffect(()=>{function D(j){c.current&&(c.current.contains(j.target)||i(!1))}if(l&&p.current){const j=p.current.querySelector('[role="button"]:not([disabled])');j==null||j.focus(),document.addEventListener("mousedown",D)}return()=>{document.removeEventListener("mousedown",D)}},[l]);const V=D=>{var _;const j=D.format("MM-DD-YYYY");k(!0),v(D),o(j),b(!0),n(j),i(!1),(_=a.current)==null||_.focus()},I=(D,j)=>{D.key==="Enter"&&V(j)},R=D=>{const j=D.target.value;if(o(j),k(!0),!/^\d{1,2}-\d{2}-\d{4}$/.test(j)){b(!1),n(j);return}const G=ce(j,"MM-DD-YYYY",!0);G.isValid()?(console.log("MAYBEDATE IS VALID"),v(G),b(!0),n(j)):(console.log("MAYBEDATE IS --NOT-- VALID"),b(!1),n(j))},H=()=>{i(D=>!D)},U=()=>{y&&v(y.subtract(1,"month"))},W=()=>{y&&v(y.add(1,"month"))},B=()=>{if(!y)return null;const D=[];for(let j=0;j<$;j++)D.push(t.jsx("div",{className:"w-8 h-8"},`empty-${j}`));for(let j=1;j<=N;j++){const _=y.date(j);D.push(t.jsx("button",{role:"presentation",tabIndex:0,onClick:()=>V(_),onKeyDown:G=>I(G,_),className:`w-8 h-8 ${_.isSame(y,"date")?"bg-blue-500 text-white":""} hover:bg-blue-100 focus:ring`,"aria-label":_.format("MMMM D, YYYY"),children:j},j))}return D};return t.jsxs("div",{className:"relative",ref:c,children:[t.jsx("label",{htmlFor:e,id:"date-picker-input",className:"block text-sm font-medium text-gray-700",children:r}),t.jsxs("div",{className:"flex items-center mt-1",children:[t.jsx("input",{id:e,type:"text","aria-labelledby":"date-picker-input",ref:a,value:w?d:"",onChange:R,placeholder:"MM-DD-YYYY",className:`block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
2
2
  focus:border-blue-500 pl-1 focus:outline-none`}),t.jsx("button",{type:"button",onClick:H,className:`px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
3
- focus:outline-none focus:border-blue-500`,"aria-label":"Open calendar","aria-haspopup":"dialog","aria-expanded":l,"aria-controls":`${e}-dialog`,children:t.jsx("img",{src:Gt,alt:"calendar icon",className:"size-6"})})]}),l&&t.jsxs("div",{ref:h,id:`${e}-dialog`,role:"dialog","aria-label":"Calendar",className:"absolute z-10 bg-white shadow-lg rounded-md p-1",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("button",{onClick:U,className:"px-3 py-2 bg-gray-100 border border-gray-300 rounded-md hover:bg-gray-200 focus:outline-none focus:ring","aria-label":"Previous month",children:"<"}),t.jsx("div",{className:"text-lg font-semibold",children:y==null?void 0:y.format("MMMM YYYY")}),t.jsx("button",{onClick:W,className:"px-3 py-2 bg-gray-100 border border-gray-300 rounded-md hover:bg-gray-200 focus:outline-none focus:ring","aria-label":"Next month",children:">"})]}),t.jsxs("div",{className:"grid grid-cols-7 gap-1 p-1",children:[t.jsx("p",{className:"pl-1",children:"Su"}),t.jsx("p",{className:"pl-1",children:"Mo"}),t.jsx("p",{className:"pl-1",children:"Tu"}),t.jsx("p",{className:"pl-1",children:"We"}),t.jsx("p",{className:"pl-1",children:"Th"}),t.jsx("p",{className:"pl-2",children:"Fr"}),t.jsx("p",{className:"pl-1",children:"Sa"}),B()]})]}),!p&&t.jsx("p",{className:"text-red-600",children:"Please enter a valid date 'MM-DD-YYYY'"})]})},je="h-10 px-4 py-2 arial rounded-sm border-2 border-[#c6c6c6] p-1 ps-2 mx-2 bg-white hover:outline-[#c6c6c6] focus:outline-[#0256ab] active:outline-[#0256ab]",Ut=[{variant:"default",classes:"rounded-xl hover:bg-dha-mc-pale-blue text-black hover:dha-mc-primary-text hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]"},{variant:"Outline",classes:"rounded-lg border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive w-[35vw] min-w-min sm:max-w-[15em]"},{variant:"nonHover",classes:"rounded-xl text-black disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]"},{variant:"MedCard",classes:"rounded-sm text-black hover:dha-mc-primary-text hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[15em]"}],_e=g.forwardRef(({className:e,variant:r="default",label:s,labelClassName:n,labelBaseColor:l="#fff",textShadow:i=!1,...u},o)=>{const[p,b]=g.useState(),[v,k]=g.useState(je),[y,w]=g.useState(!1),c=g.useRef(null);if(g.useEffect(()=>{var a;r&&k(M(je,(a=Ut.find(h=>h.variant===r))==null?void 0:a.classes,e))},[e,r,y]),g.useEffect(()=>{const a=c.current;if(!a)return;const h=N=>{const $=getComputedStyle(a);b($.backgroundColor),w(N)};return h(!0),a.addEventListener("mouseover",()=>h(!0)),a.addEventListener("mouseout",()=>h(!1)),()=>{a.removeEventListener("mouseover",()=>h),a.removeEventListener("mouseout",()=>h)}},[l,y]),!["default","Outline","nonHover","MedCard"].includes(r))throw new Error(`Invalid variant: "${r}". Valid variants are: "default", "Outline", "nonHover", "MedCard".`);return t.jsxs("span",{className:"group relative",children:[t.jsxs("span",{className:M("absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto",n),style:{background:`linear-gradient(to bottom, ${l} 0%, ${l} 50%, ${p} 60%, ${p} 100%)`,textShadow:i?`1px 1px 2px ${l}, 0 0 1em ${l}, 0 0 0.2em ${l}`:""},children:[u.required&&t.jsx("span",{className:"text-red-500",children:"*"}),s]}),t.jsx("input",{className:v,"aria-label":s,ref:a=>{typeof o=="function"?o(a):o&&(o.current=a),c.current=a},...u})]})});_e.displayName="Input";const Ee=({items:e,header:r,className:s="",itemClassName:n="",children:l,withDividers:i=!1,dividerColorClass:u="",isDecimal:o=!1,isDisc:p=!1})=>t.jsxs("div",{className:"p-0 m-0",children:[t.jsx("p",{children:r}),t.jsxs("ul",{className:M("pl-10 list-none w-full",o?"list-decimal":"",p?"list-disc":"",s),children:[e&&e.map((b,v)=>t.jsx(ve,{className:M("w-full",i&&v!==e.length-1?"border-b":"",u!==""&&v!==e.length-1?"border-"+u:"",n),children:b.children},v)),l&&Q.Children.map(l,(b,v)=>Q.isValidElement(b)?Q.cloneElement(b,{className:M(b.props.className,"w-full",i&&v!==Q.Children.count(l)-1?"border-b":"",u!==""&&v!==Q.Children.count(l)-1?"border-"+u:"")}):b)]})]}),ve=({className:e,children:r})=>t.jsx("li",{className:M(e),children:r}),te={default:{container:"bg-white rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none ",title:"flex justify-between items-center mb-4",titleHeading:"text-black",body:"",button:"px-4 py-2 bg-gray-500 text-white rounded hover:bg-gray-600 focus:outline-none focus:ring ring-gray-700"},darker:{container:"bg-slate-600 rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none text-slate-200 ",title:"flex justify-between items-center mb-4",titleHeading:"text-slate-200",body:"",button:"px-4 py-2 bg-slate-100 text-gray-700 rounded hover:bg-slate-300 focus:outline-none focus:ring ring-gray-400"},dark:{container:"bg-zinc-800 rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none text-slate-200 ",title:"flex justify-between items-center mb-4",titleHeading:"text-slate-200",body:"",button:"px-4 py-2 bg-slate-200 text-gray-700 rounded hover:bg-slate-400 focus:outline-none focus:ring ring-slate-500"},medcard:{container:"bg-white rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none ",title:"flex justify-between items-center mb-4",titleHeading:"text-black focus:ring-2",body:"",button:"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 focus:outline-none focus:ring ring-blue-400"}},Wt=({isOpen:e,variant:r="default",onClose:s,title:n,className:l,clickOutsideCloses:i=!1,displayClosingX:u=!0,closeButtonText:o="Close",continueButton:p=!1,continueButtonHandler:b,continueButtonText:v="Continue",children:k})=>{const y=g.useRef(null),w=g.useRef(null);if(g.useEffect(()=>{if(i){const a=h=>{y.current&&!y.current.contains(h.target)&&s()};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}}},[s]),g.useEffect(()=>{var N;const a=$=>{$.key==="Escape"&&e&&s()},h=$=>{var H;const V=(H=y.current)==null?void 0:H.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),I=V==null?void 0:V[0],R=V==null?void 0:V[V.length-1];$.key==="Tab"&&V&&($.shiftKey&&document.activeElement===I?($.preventDefault(),R==null||R.focus()):!$.shiftKey&&document.activeElement===R&&($.preventDefault(),I==null||I.focus()))};return e?(document.body.style.overflow="hidden",window.addEventListener("keydown",a),window.addEventListener("keydown",h),(N=w.current)==null||N.focus()):document.body.style.overflow="auto",()=>{window.removeEventListener("keydown",a),window.removeEventListener("keydown",h),document.body.style.overflow="auto"}},[e,s]),!e)return null;const c=()=>{b&&b(),s()};return t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",id:"backdrop",children:t.jsxs("div",{className:M(te[r].container,l),ref:y,"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[t.jsxs("div",{className:M(te[r].title),children:[t.jsx("h2",{id:"modal-title",className:M("text-lg font-medium text-gray-900",te[r].titleHeading),children:n}),u&&t.jsx("button",{onClick:s,className:M("text-xl mt-[-1em] text-gray-500 hover:text-gray-700 focus:outline-none focus:ring",te[r].titleHeading),"aria-label":"Close modal",children:"×"})]}),t.jsx("div",{className:M(te[r].body),children:k}),t.jsxs("div",{className:"mt-4 flex justify-end",children:[t.jsx("button",{ref:w,onClick:s,className:M(te[r].button),children:o}),p&&t.jsx("button",{onClick:c,className:M(te[r].button,"ms-4"),children:v})]})]})})},Zt=g.forwardRef(({className:e="",iconLeft:r,iconLeftSelected:s,iconRight:n,iconRightSelected:l,children:i,onClick:u,selected:o=!1,...p},b)=>{const[v,k]=g.useState(),[y,w]=g.useState(),[c,a]=g.useState("bg-white");return g.useEffect(()=>{const h="text-lg font-normal font-['Arial'] leading-normal ";w(r&&n?h:r?h+"mr-6":n?h+"ml-6":h+"ml-6 mr-6")},[r,n,i]),g.useEffect(()=>{a(o?"bg-[#092068] focus:bg-[#092068] text-white":"bg-white"),k(M("relative inline-flex items-center justify-center whitespace-nowrap rounded-3xl transition-colors focus-visible:outline-none font-[`Arial`] disabled:pointer-events-none disabled:opacity-50 border-2 border-[#092068] text-[#092068] text-lg focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] bg-white hover:bg-[#D1DBFB] active:bg-[#9fc5f0] focus:bg-white disabled:bg-[#939194] disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 h-[48px] mt-1",c,e))},[e,c,o]),t.jsxs("button",{onClick:u,className:v,ref:b,...p,children:[r&&t.jsx("span",{className:"ml-6 mr-2.5 size-6",children:o&&s?s:r}),t.jsx("div",{className:y,children:i}),n&&t.jsx("span",{className:"ml-2.5 mr-6 size-6",children:o&&l?l:n})]})}),Kt=g.forwardRef(({className:e="",classNameChildren:r="",iconLeft:s,iconRight:n,underline:l=!1,subHeader:i=!1,children:u,...o},p)=>{const[b,v]=g.useState(""),k="px-2 justify-start items-start gap-4 inline-flex w-full";return g.useEffect(()=>{v(M(k,l?"border-b-2 border-black":"",e))},[e,l]),t.jsxs("div",{className:M(b,e),children:[t.jsxs("div",{className:"grow shrink basis-0 justify-start items-start gap-2 flex",children:[s&&s,t.jsxs("div",{className:"flex-col justify-start items-start inline-flex w-full",children:[t.jsx("div",{className:M("self-stretch text-[#07192d] text-[40px] font-normal font-['Arial'] leading-[48px] pb-1",r),children:u}),i&&t.jsx("div",{className:"text-[#07192d] text-xl font-normal font-['Arial'] leading-[30px]",children:i})]})]}),n&&n]})}),qt="outline-none outline-offset-0 flex justify-between items-center w-[292px] md:w-[343px] lg:w-[600px] h-14 border focus:outline-4 focus:outline-[#fa89f1] shadow-sm px-4 py-2 bg-white text-lg font-medium text-gray-700 hover:bg-gray-50 border-[#b3b3b3]",Ce={default:"hover:bg-gray-200 text-blackhover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive h-12 mt-1 disabled:border-dha-mc-secondary-border disabled:border-2",fill:"hover:bg-[#0c2c8e] text-base text-white bg-[#092068] hover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive h-12 mt-1 disabled:border-dha-mc-secondary-border disabled:border-2 py-3 pl-[15px] pr-[9px] ",outline:"border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive"},Jt=({className:e,label:r,options:s,optionsLabel:n,disabled:l=!1,variant:i="default",setSelectedOption:u,error:o=!1,width:p="",...b})=>{const v=g.useRef(null),k=g.useRef(null),y=g.useRef(null),[w,c]=g.useState(!1),[a,h]=g.useState(!1),[N,$]=g.useState(n||"Options"),[V,I]=g.useState(null),R=g.useRef("bottom-[60px]"),[H,U]=g.useState("");g.useEffect(()=>{if(k.current){const m=k.current.getBoundingClientRect(),f=Math.floor(m.height)+2;R.current="bottom-["+f+"px]",console.log("button height: ",R.current)}},[k.current]);const W=()=>{if(v.current&&y.current){const m=v.current.getBoundingClientRect(),f=y.current.offsetHeight;console.log("dropdownHeight: ",f);const d=window.innerHeight,C=document.body.offsetHeight,x=d>C?C:d;console.log("windowHeight: ",d),console.log("documentHeight: ",C),console.log("calculated containerHeight: ",x),console.log("buttonRect.bottom: ",m.bottom),x-m.bottom<f&&m.top>f?h(!0):h(!1)}},B=g.useRef([]);g.useEffect(()=>{B.current=B.current.slice(0,s.length)},[s]);const[D,j]=g.useState(0),_=()=>{c(!w),j(0)};g.useEffect(()=>{U(o?"border-2 border-[#ff0004]":"")},[o]),g.useEffect(()=>{function m(C){w&&v.current&&!v.current.contains(C.target)&&c(!1)}function f(C){w&&C.key==="Escape"&&c(!1)}function d(C){w&&v.current&&!v.current.contains(C.target)&&c(!1)}return document.addEventListener("mousedown",m),document.addEventListener("touchend",m),document.addEventListener("keydown",f),document.addEventListener("focusin",d),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("touchend",m),document.removeEventListener("keydown",f),document.removeEventListener("focusin",d)}},[w]),g.useEffect(()=>{w&&W()},[w]),g.useEffect(()=>{var m;w&&((m=B.current[D])==null||m.focus())},[D,w]);const G=m=>{if(w)switch(m.key){case"ArrowDown":m.preventDefault(),j(f=>{const d=(f+1)%s.length;return I(d),d});break;case"ArrowUp":m.preventDefault(),j(f=>{const d=(f-1+s.length)%s.length;return I(d),d});break;case"Home":m.preventDefault(),j(0);break;case"End":m.preventDefault(),j(s.length-1);break}};return t.jsxs("div",{className:M("relative inline-block text-left"),ref:v,...b,"aria-disabled":l,children:[r?t.jsx("p",{className:"text-[#092068] mb-2",children:r}):"",t.jsxs("button",{onClick:_,ref:k,className:M(qt,Ce[i]||Ce.default,H,e,p,w&&a&&"rounded-b-lg"||w&&!a&&"rounded-t-lg"||"rounded-lg"),"aria-label":"Select options - "+N,"aria-disabled":l,"aria-expanded":w,"aria-haspopup":"listbox",disabled:l,tabIndex:0,children:[N,t.jsx("svg",{className:"ml-2 -mr-1 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),w&&t.jsx("div",{role:"listbox",ref:y,"aria-label":"Select option",onKeyDown:G,className:M("absolute w-[292px] md:w-[343px] lg:w-[600px] shadow-lg bg-white ring-1 ring-white ring-opacity-5 focus:outline-none z-10",p,w&&a&&"rounded-t-lg pt-1"||w&&!a&&"rounded-b-lg pb-1",a&&R.current),children:s.map((m,f)=>t.jsx("button",{ref:d=>B.current[f]=d,className:`block w-full px-4 py-2 text-left text-sm text-gray-700
4
- hover:bg-[#092068]/20 focus:outline-none focus:bg-[#092068]/20`,role:"option","aria-selected":V===f,"aria-label":"option "+m.name,onClick:()=>{I(f),$(m.name),u(m.value||m.name),c(!1)},onKeyDown:d=>{d.key==="Enter"||d.code==="Enter"||d.key===" "?(I(f),$(m.name),u(m.value||m.name),c(!1)):d.key==="Escape"&&c(!1)},children:m.name},m.name))})]})},Qt={default:" h-48 w-56 pt-2",custom:" h-48 w-56 pt-2"},Ie=Q.forwardRef(({className:e,variant:r="default",children:s,...n},l)=>t.jsx("div",{className:M("flex flex-row flex-wrap animate-pulse",Qt[r],e),"aria-label":"Skeleton Component",role:"status",ref:l,...n,children:s}));Ie.displayName="Card";const Xt=({className:e="",inline:r=!1})=>r?t.jsx("div",{role:"presentation",className:M("rounded-full bg-slate-300 h-6 w-6 inline-block mx-2 me-1 my-1",e)}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"basis-full h-0"}),t.jsx("div",{role:"presentation",className:M("rounded-full bg-slate-300 h-6 w-6 mx-2 my-1 me-0",e)}),t.jsx("div",{className:"basis-full h-0"})]}),er=({className:e="",inline:r=!1})=>r?t.jsx("div",{role:"presentation",className:M("rounded-lg bg-slate-300 h-6 inline-block mx-2 my-1 grow",e)}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"basis-full h-0"}),t.jsx("div",{role:"presentation",className:M("rounded-lg bg-slate-300 h-6 mx-2 my-1 grow",e)}),t.jsx("div",{className:"basis-full h-0"})]}),tr=({className:e=""})=>t.jsx("div",{role:"presentation",className:M("rounded-lg bg-slate-300 grow h-24 my-1 mx-2",e)}),rr=({className:e=""})=>t.jsx("div",{role:"presentation",className:"basis-full h-0"}),sr="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='clock'%3e%3cpath%20id='Vector'%20d='M16.0413%2010.5C16.0413%2013.8367%2013.3364%2016.5416%209.99967%2016.5416C6.66295%2016.5416%203.95801%2013.8367%203.95801%2010.5C3.95801%207.16326%206.66295%204.45831%209.99967%204.45831C13.3364%204.45831%2016.0413%207.16326%2016.0413%2010.5Z'%20stroke='%23713F12'%20stroke-width='1.5'/%3e%3cpath%20id='Vector_2'%20d='M10%207.16669V10.5L11.6667%2012.1667'%20stroke='%23713F12'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",nr="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='check'%3e%3cpath%20id='Vector%2051'%20d='M4.16699%2011.3333L8.33366%2015.5L15.8337%205.5'%20stroke='%2314532D'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",or="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M14.375%206.125L5.625%2014.875'%20stroke='%237F1D1D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M5.625%206.125L14.375%2014.875'%20stroke='%237F1D1D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",me=[{variant:"available",classes:"h-[45px] px-4 py-3 bg-green-50 rounded-[100px] border border-green-700 justify-center items-center gap-2 inline-flex",imgDivClasses:"w-5 h-5 relative overflow-hidden",childClasses:"text-green-900 text-lg font-normal font-[`Arial`]"},{variant:"inProgress",classes:"h-[45px] px-4 py-3 bg-yellow-50 rounded-[100px] border border-yellow-600 justify-center items-center gap-2 inline-flex",imgDivClasses:"w-5 h-5 relative overflow-hidden",childClasses:"text-yellow-900 text-lg font-normal font-[`Arial`]"},{variant:"notAvailable",classes:"h-[45px] px-4 py-3 bg-red-50 rounded-[100px] border border-red-600 justify-center items-center gap-2 inline-flex",imgDivClasses:"w-5 h-5 relative overflow-hidden",childClasses:"text-red-900 text-lg font-normal font-[`Arial`]"}],ar=g.forwardRef(({variant:e="available",className:r,image:s,childClasses:n,imageClasses:l,children:i,...u},o)=>{const[p,b]=g.useState(),[v,k]=g.useState(),[y,w]=g.useState();return g.useEffect(()=>{var c,a,h;b(M((c=me.find(N=>N.variant===e))==null?void 0:c.classes,r)),w(M((a=me.find(N=>N.variant===e))==null?void 0:a.childClasses,n)),k(M((h=me.find(N=>N.variant===e))==null?void 0:h.imgDivClasses,l))},[e,r,n,l]),t.jsxs("div",{className:p,ref:o,children:[t.jsx("div",{className:v,children:s||(e==="available"?t.jsx("img",{src:nr,alt:"check mark"}):e==="inProgress"?t.jsx("img",{src:sr,alt:"clock"}):t.jsx("img",{src:or,alt:"close"}))}),t.jsx("div",{className:y,children:i})]})}),he={default:{container:"flex border-b border-gray-200",tab:"text-[#092068]",title:"",active:"border-b-2 border-[#092068] hover:border-b-2 hover:border-[#7392f3] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] focus:rounded-md",inactive:"hover:border-b-2 hover:border-[#7392f3] hover:font-bold"},outline:{container:"flex border-b border-gray-200",tab:"border-2 border-blue-500 text-blue-500",title:"",active:"border-2 bg-[#092068] text-white hover:bg-[#d1dbfb] hover:text-[#092068] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1)]",inactive:"text-[#092068] hover:bg-[#d1dbfb] hover:font-bold"},transparent:{container:"flex border-b border-gray-200",tab:"text-[#092068]",title:"",active:"border-b-2 border-[#092068] hover:border-b-2 hover:border-[#7392f3] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] focus:rounded-md",inactive:"hover:border-b-2 hover:border-[#7392f3] hover:font-bold"}};var Ve=(e=>(e.Right="right",e.Left="left",e.IconOnly="iconOnly",e.None="undefined",e))(Ve||{});const lr=({variant:e="default",tabs:r,className:s,containerClassName:n})=>{const[l,i]=g.useState(0),[u,o]=g.useState(!1),[p,b]=g.useState(""),v=g.useRef([]);e===""&&(e="default");const k=g.useCallback(c=>{var a;(a=v.current[c])==null||a.focus()},[]),y=g.useCallback((c,a)=>{if(c.key==="ArrowRight"){const h=(a+1)%r.length;i(h),k(h)}else if(c.key==="ArrowLeft"){const h=(a-1+r.length)%r.length;i(h),k(h)}else c.key==="Home"?(i(0),k(0)):c.key==="End"&&(i(r.length-1),k(r.length-1))},[r.length,k]),w=c=>{o(!0),b(c)};return t.jsxs("div",{className:M("w-full",n),children:[t.jsx("div",{role:"tablist","aria-label":"Tabs",className:M(he[e].container,s),children:r.map((c,a)=>t.jsxs("button",{role:"tab",id:`tab-${c.id}`,onMouseEnter:()=>w(c.id),onMouseLeave:()=>o(!1),"aria-selected":l===a,"aria-controls":`panel-${c.id}`,tabIndex:l===a?0:-1,ref:h=>v.current[a]=h,className:`flex px-4 py-2 focus:outline-none ${e==="outline"?`border-[#092068] ${a===0?"border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md":a===r.length-1?"border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md":"border-t-2 border-b-2"}`:""} ${M(l===a?he[e].active:he[e].inactive)}`,onClick:()=>i(a),onKeyDown:h=>y(h,a),children:[c.iconPosition==="left"&&c.activeIcon&&t.jsx("span",{className:"icon-left mr-3 size-6",children:l===a?u&&p===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon}),c.iconPosition==="iconOnly"&&c.activeIcon?t.jsx("span",{className:"size-6",children:l===a?u&&p===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon}):t.jsx("span",{className:"button-text",children:c.label}),c.iconPosition==="right"&&c.activeIcon&&t.jsx("span",{className:"icon-right ml-3 size-6",children:l===a?u&&p===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon})]},c.id))}),r.map((c,a)=>t.jsx("div",{role:"tabpanel",id:`panel-${c.id}`,"aria-labelledby":`tab-${c.id}`,hidden:l!==a,className:"p-4",children:c.content},c.id))]})},ir="w-16 h-8 flex lg:w-[49.74px] lg:!h-[24.87px] lg:p-[3.1px] items-center p-1 rounded-2xl cursor-pointer transition-colors duration-300",cr="bg-white w-6 h-6 lg:w-[18.65px] lg:!h-[18.65px] rounded-full shadow-[0px_4px_4.900000095367432px_0px_rgba(0,0,0,0.12)] transform transition-transform duration-300",fe=[{variant:"default",classes:"bg-[#d0cfd1] hover:bg-[#bbbabc]",toggledClasses:"bg-[#053ea6] hover:bg-[#0752dc]",buttonClasses:"translate-x-0",toggledButtonClasses:"translate-x-8 lg:translate-x-6"},{variant:"outlined",classes:"bg-slate-300 border border-black hover:bg-[#abb5c2]",toggledClasses:"bg-blue-500/50 hover:bg-blue-400 border border-black",buttonClasses:"translate-x-0",toggledButtonClasses:"translate-x-8 lg:translate-x-6"}],dr=g.forwardRef(({defaultChecked:e=!1,disabled:r=!1,onCheckedChange:s,label:n,className:l,classNameButton:i,variant:u="default",type:o="button",children:p,...b},v)=>{var c,a,h,N;const[k,y]=g.useState(e),w=()=>{const $=!k;y($),s&&s($)};return t.jsx("button",{onClick:w,disabled:r,role:"switch","aria-checked":k,"aria-disabled":r,...b,ref:v,"aria-label":n||`Toggle ${k?"on":"off"}`,className:M(`${ir}
5
- ${k?(c=fe.find($=>$.variant===u))==null?void 0:c.toggledClasses:(a=fe.find($=>$.variant===u))==null?void 0:a.classes}`,l),children:t.jsx("div",{className:M(`${cr}
6
- ${k?(h=fe.find($=>$.variant===u))==null?void 0:h.toggledButtonClasses:(N=fe.find($=>$.variant===u))==null?void 0:N.buttonClasses}`,i)})})}),ur=g.forwardRef(({className:e,appName:r,image:s,imageClassname:n="",clickOutsideCloses:l,menu:i=!1,menuClassName:u="",version:o,menuItems:p,children:b,...v},k)=>{const y=g.useRef(null),[w,c]=g.useState(!1);return g.useEffect(()=>{if(l){const a=h=>{y.current&&!y.current.contains(h.target)&&c(!1)};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}}},[c]),console.log("menu: ",i),console.log("showMenu: ",w),t.jsxs(t.Fragment,{children:[i&&t.jsx("button",{className:M("size-8 mb-4",u),onClick:()=>c(!w),children:t.jsx(fr,{classes:"fill-slate-500 hover:fill-black size-8"})}),t.jsxs("div",{ref:y,className:M("relative w-56 h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto",i&&"fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300",i&&w&&"translate-x-0",e),children:[t.jsx("div",{className:"w-16 h-16 mx-auto",children:t.jsx("img",{src:s,className:M("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1",n),alt:"application icon"})}),t.jsx("div",{className:"text-center mt-2",children:r}),t.jsx("div",{className:"[204px] mt-3 h-px bg-[#d9d9d9]"}),t.jsx(Ee,{className:"pl-6 mt-6",children:p.map((a,h)=>t.jsx(ve,{className:"pb-4",children:a.target&&t.jsx(de.NavLink,{to:a.target,children:a.children})},h))}),t.jsx("div",{className:"align-bottom mt-auto text-right right-2 bottom-1",children:o})]})]})}),fr=({classes:e="fill-green-600"})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",className:e,children:[t.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),t.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})]});exports.Accordion=jt;exports.AccordionParent=Ct;exports.Badge=Dt;exports.BreadCrumbs=Vt;exports.Button=zt;exports.Card=Le;exports.CharacterCounter=Tt;exports.DatePicker=Ft;exports.IconPosition=Ve;exports.Input=_e;exports.List=Ee;exports.ListItem=ve;exports.Modal=Wt;exports.Pill=Zt;exports.SectionHeader=Kt;exports.Select=Jt;exports.SideBarNav=ur;exports.SkelCircle=Xt;exports.SkelLine=er;exports.SkelRow=rr;exports.SkelSection=tr;exports.Skeleton=Ie;exports.Status=ar;exports.Tabs=lr;exports.Toggle=dr;
3
+ focus:outline-none focus:border-blue-500`,"aria-label":"Open calendar","aria-haspopup":"dialog","aria-expanded":l,"aria-controls":`${e}-dialog`,children:t.jsx("img",{src:Ft,alt:"calendar icon",className:"size-6"})})]}),l&&t.jsxs("div",{ref:p,id:`${e}-dialog`,role:"dialog","aria-label":"Calendar",className:"absolute z-10 bg-white shadow-lg rounded-md p-1",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("button",{onClick:U,className:"px-3 py-2 bg-gray-100 border border-gray-300 rounded-md hover:bg-gray-200 focus:outline-none focus:ring","aria-label":"Previous month",children:"<"}),t.jsx("div",{className:"text-lg font-semibold",children:y==null?void 0:y.format("MMMM YYYY")}),t.jsx("button",{onClick:W,className:"px-3 py-2 bg-gray-100 border border-gray-300 rounded-md hover:bg-gray-200 focus:outline-none focus:ring","aria-label":"Next month",children:">"})]}),t.jsxs("div",{className:"grid grid-cols-7 gap-1 p-1",children:[t.jsx("p",{className:"pl-1",children:"Su"}),t.jsx("p",{className:"pl-1",children:"Mo"}),t.jsx("p",{className:"pl-1",children:"Tu"}),t.jsx("p",{className:"pl-1",children:"We"}),t.jsx("p",{className:"pl-1",children:"Th"}),t.jsx("p",{className:"pl-2",children:"Fr"}),t.jsx("p",{className:"pl-1",children:"Sa"}),B()]})]}),!h&&t.jsx("p",{className:"text-red-600",children:"Please enter a valid date 'MM-DD-YYYY'"})]})},je="h-10 px-4 py-2 arial rounded-sm border-2 border-[#c6c6c6] p-1 ps-2 mx-2 bg-white hover:outline-[#c6c6c6] focus:outline-[#0256ab] active:outline-[#0256ab]",Wt=[{variant:"default",classes:"rounded-xl hover:bg-dha-mc-pale-blue text-black hover:dha-mc-primary-text hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]"},{variant:"Outline",classes:"rounded-lg border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive w-[35vw] min-w-min sm:max-w-[15em]"},{variant:"nonHover",classes:"rounded-xl text-black disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]"},{variant:"MedCard",classes:"rounded-sm text-black hover:dha-mc-primary-text hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[15em]"}],_e=g.forwardRef(({className:e,variant:r="default",label:s,classNameLabel:n,labelBaseColor:l="#fff",textShadow:i=!1,...d},o)=>{const[h,b]=g.useState(),[w,k]=g.useState(je),[y,v]=g.useState(!1),c=g.useRef(null);if(g.useEffect(()=>{var a;r&&k(M(je,(a=Wt.find(p=>p.variant===r))==null?void 0:a.classes,e))},[e,r,y]),g.useEffect(()=>{const a=c.current;if(!a)return;const p=N=>{const $=getComputedStyle(a);b($.backgroundColor),v(N)};return p(!0),a.addEventListener("mouseover",()=>p(!0)),a.addEventListener("mouseout",()=>p(!1)),()=>{a.removeEventListener("mouseover",()=>p),a.removeEventListener("mouseout",()=>p)}},[l,y]),!["default","Outline","nonHover","MedCard"].includes(r))throw new Error(`Invalid variant: "${r}". Valid variants are: "default", "Outline", "nonHover", "MedCard".`);return t.jsxs("span",{className:"group relative",children:[t.jsxs("span",{className:M("absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto",n),style:{background:`linear-gradient(to bottom, ${l} 0%, ${l} 50%, ${h} 60%, ${h} 100%)`,textShadow:i?`1px 1px 2px ${l}, 0 0 1em ${l}, 0 0 0.2em ${l}`:""},children:[d.required&&t.jsx("span",{className:"text-red-500",children:"*"}),s]}),t.jsx("input",{className:w,"aria-label":s,ref:a=>{typeof o=="function"?o(a):o&&(o.current=a),c.current=a},...d})]})});_e.displayName="Input";const Ee=({items:e,header:r,className:s="",classNameItem:n="",children:l,withDividers:i=!1,classNameDividerColor:d="",isDecimal:o=!1,isDisc:h=!1})=>t.jsxs("div",{className:"p-0 m-0",children:[t.jsx("p",{children:r}),t.jsxs("ul",{className:M("pl-10 list-none w-full",o?"list-decimal":"",h?"list-disc":"",s),children:[e&&e.map((b,w)=>t.jsx(ve,{className:M("w-full",i&&w!==e.length-1?"border-b":"",d!==""&&w!==e.length-1?"border-"+d:"",n),children:b.children},w)),l&&Q.Children.map(l,(b,w)=>Q.isValidElement(b)?Q.cloneElement(b,{className:M(b.props.className,"w-full",i&&w!==Q.Children.count(l)-1?"border-b":"",d!==""&&w!==Q.Children.count(l)-1?"border-"+d:"")}):b)]})]}),ve=({className:e,children:r})=>t.jsx("li",{className:M(e),children:r}),te={default:{container:"bg-white rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none ",title:"flex justify-between items-center mb-4",titleHeading:"text-black",body:"",button:"px-4 py-2 bg-gray-500 text-white rounded hover:bg-gray-600 focus:outline-none focus:ring ring-gray-700"},darker:{container:"bg-slate-600 rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none text-slate-200 ",title:"flex justify-between items-center mb-4",titleHeading:"text-slate-200",body:"",button:"px-4 py-2 bg-slate-100 text-gray-700 rounded hover:bg-slate-300 focus:outline-none focus:ring ring-gray-400"},dark:{container:"bg-zinc-800 rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none text-slate-200 ",title:"flex justify-between items-center mb-4",titleHeading:"text-slate-200",body:"",button:"px-4 py-2 bg-slate-200 text-gray-700 rounded hover:bg-slate-400 focus:outline-none focus:ring ring-slate-500"},medcard:{container:"bg-white rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none ",title:"flex justify-between items-center mb-4",titleHeading:"text-black focus:ring-2",body:"",button:"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 focus:outline-none focus:ring ring-blue-400"}},Zt=({isOpen:e,variant:r="default",onClose:s,title:n,className:l,clickOutsideCloses:i=!1,displayClosingX:d=!0,closeButtonText:o="Close",continueButton:h=!1,continueButtonHandler:b,continueButtonText:w="Continue",children:k})=>{const y=g.useRef(null),v=g.useRef(null);if(g.useEffect(()=>{if(i){const a=p=>{y.current&&!y.current.contains(p.target)&&s()};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}}},[s]),g.useEffect(()=>{var N;const a=$=>{$.key==="Escape"&&e&&s()},p=$=>{var H;const V=(H=y.current)==null?void 0:H.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),I=V==null?void 0:V[0],R=V==null?void 0:V[V.length-1];$.key==="Tab"&&V&&($.shiftKey&&document.activeElement===I?($.preventDefault(),R==null||R.focus()):!$.shiftKey&&document.activeElement===R&&($.preventDefault(),I==null||I.focus()))};return e?(document.body.style.overflow="hidden",window.addEventListener("keydown",a),window.addEventListener("keydown",p),(N=v.current)==null||N.focus()):document.body.style.overflow="auto",()=>{window.removeEventListener("keydown",a),window.removeEventListener("keydown",p),document.body.style.overflow="auto"}},[e,s]),!e)return null;const c=()=>{b&&b(),s()};return t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",id:"backdrop",children:t.jsxs("div",{className:M(te[r].container,l),ref:y,"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[t.jsxs("div",{className:M(te[r].title),children:[t.jsx("h2",{id:"modal-title",className:M("text-lg font-medium text-gray-900",te[r].titleHeading),children:n}),d&&t.jsx("button",{onClick:s,className:M("text-xl mt-[-1em] text-gray-500 hover:text-gray-700 focus:outline-none focus:ring",te[r].titleHeading),"aria-label":"Close modal",children:"×"})]}),t.jsx("div",{className:M(te[r].body),children:k}),t.jsxs("div",{className:"mt-4 flex justify-end",children:[t.jsx("button",{ref:v,onClick:s,className:M(te[r].button),children:o}),h&&t.jsx("button",{onClick:c,className:M(te[r].button,"ms-4"),children:w})]})]})})},Kt=g.forwardRef(({className:e="",iconLeft:r,iconLeftSelected:s,iconRight:n,iconRightSelected:l,children:i,onClick:d,selected:o=!1,...h},b)=>{const[w,k]=g.useState(),[y,v]=g.useState(),[c,a]=g.useState("bg-white");return g.useEffect(()=>{const p="text-lg font-normal font-['Arial'] leading-normal ";v(r&&n?p:r?p+"mr-6":n?p+"ml-6":p+"ml-6 mr-6")},[r,n,i]),g.useEffect(()=>{a(o?"bg-[#092068] focus:bg-[#092068] text-white":"bg-white"),k(M("relative inline-flex items-center justify-center whitespace-nowrap rounded-3xl transition-colors focus-visible:outline-none font-[`Arial`] disabled:pointer-events-none disabled:opacity-50 border-2 border-[#092068] text-[#092068] text-lg focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] bg-white hover:bg-[#D1DBFB] active:bg-[#9fc5f0] focus:bg-white disabled:bg-[#939194] disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 h-[48px] mt-1",c,e))},[e,c,o]),t.jsxs("button",{onClick:d,className:w,ref:b,...h,children:[r&&t.jsx("span",{className:"ml-6 mr-2.5 size-6",children:o&&s?s:r}),t.jsx("div",{className:y,children:i}),n&&t.jsx("span",{className:"ml-2.5 mr-6 size-6",children:o&&l?l:n})]})}),qt=g.forwardRef(({className:e="",classNameChildren:r="",classNameSubHeader:s="",iconLeft:n,iconRight:l,underline:i=!1,subHeader:d=!1,children:o,...h},b)=>{const[w,k]=g.useState(""),y="px-2 justify-start items-start gap-4 inline-flex w-full";return g.useEffect(()=>{k(M(y,i?"border-b-2 border-black":"",e))},[e,i]),t.jsxs("div",{className:M(w,e),children:[t.jsxs("div",{className:"grow shrink basis-0 justify-start items-start gap-2 flex",children:[n&&n,t.jsxs("div",{className:"flex-col justify-start items-start inline-flex w-full",children:[t.jsx("div",{className:M("self-stretch text-[#07192d] text-[40px] font-normal font-['Arial'] leading-[48px] pb-1",r),children:o}),d&&t.jsx("div",{className:M("text-[#07192d] text-xl font-normal font-['Arial'] leading-[30px]",s),children:d})]})]}),l&&l]})}),Jt="outline-none outline-offset-0 flex justify-between items-center w-[292px] md:w-[343px] lg:w-[600px] h-14 border focus:outline-4 focus:outline-[#fa89f1] shadow-sm px-4 py-2 bg-white text-lg font-medium text-gray-700 hover:bg-gray-50 border-[#b3b3b3]",Ce={default:"hover:bg-gray-200 text-blackhover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive h-12 mt-1 disabled:border-dha-mc-secondary-border disabled:border-2",fill:"hover:bg-[#0c2c8e] text-base text-white bg-[#092068] hover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive h-12 mt-1 disabled:border-dha-mc-secondary-border disabled:border-2 py-3 pl-[15px] pr-[9px] ",outline:"border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive"},Qt=({className:e,label:r,options:s,optionsLabel:n,disabled:l=!1,variant:i="default",setSelectedOption:d,error:o=!1,width:h="",...b})=>{const w=g.useRef(null),k=g.useRef(null),y=g.useRef(null),[v,c]=g.useState(!1),[a,p]=g.useState(!1),[N,$]=g.useState(n||"Options"),[V,I]=g.useState(null),R=g.useRef("bottom-[60px]"),[H,U]=g.useState("");g.useEffect(()=>{if(k.current){const m=k.current.getBoundingClientRect(),f=Math.floor(m.height)+2;R.current="bottom-["+f+"px]",console.log("button height: ",R.current)}},[k.current]);const W=()=>{if(w.current&&y.current){const m=w.current.getBoundingClientRect(),f=y.current.offsetHeight;console.log("dropdownHeight: ",f);const u=window.innerHeight,C=document.body.offsetHeight,x=u>C?C:u;console.log("windowHeight: ",u),console.log("documentHeight: ",C),console.log("calculated containerHeight: ",x),console.log("buttonRect.bottom: ",m.bottom),x-m.bottom<f&&m.top>f?p(!0):p(!1)}},B=g.useRef([]);g.useEffect(()=>{B.current=B.current.slice(0,s.length)},[s]);const[D,j]=g.useState(0),_=()=>{c(!v),j(0)};g.useEffect(()=>{U(o?"border-2 border-[#ff0004]":"")},[o]),g.useEffect(()=>{function m(C){v&&w.current&&!w.current.contains(C.target)&&c(!1)}function f(C){v&&C.key==="Escape"&&c(!1)}function u(C){v&&w.current&&!w.current.contains(C.target)&&c(!1)}return document.addEventListener("mousedown",m),document.addEventListener("touchend",m),document.addEventListener("keydown",f),document.addEventListener("focusin",u),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("touchend",m),document.removeEventListener("keydown",f),document.removeEventListener("focusin",u)}},[v]),g.useEffect(()=>{v&&W()},[v]),g.useEffect(()=>{var m;v&&((m=B.current[D])==null||m.focus())},[D,v]);const G=m=>{if(v)switch(m.key){case"ArrowDown":m.preventDefault(),j(f=>{const u=(f+1)%s.length;return I(u),u});break;case"ArrowUp":m.preventDefault(),j(f=>{const u=(f-1+s.length)%s.length;return I(u),u});break;case"Home":m.preventDefault(),j(0);break;case"End":m.preventDefault(),j(s.length-1);break}};return t.jsxs("div",{className:M("relative inline-block text-left"),ref:w,...b,"aria-disabled":l,children:[r?t.jsx("p",{className:"text-[#092068] mb-2",children:r}):"",t.jsxs("button",{onClick:_,ref:k,className:M(Jt,Ce[i]||Ce.default,H,e,h,v&&a&&"rounded-b-lg"||v&&!a&&"rounded-t-lg"||"rounded-lg"),"aria-label":"Select options - "+N,"aria-disabled":l,"aria-expanded":v,"aria-haspopup":"listbox",disabled:l,tabIndex:0,children:[N,t.jsx("svg",{className:"ml-2 -mr-1 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),v&&t.jsx("div",{role:"listbox",ref:y,"aria-label":"Select option",onKeyDown:G,className:M("absolute w-[292px] md:w-[343px] lg:w-[600px] shadow-lg bg-white ring-1 ring-white ring-opacity-5 focus:outline-none z-10",h,v&&a&&"rounded-t-lg pt-1"||v&&!a&&"rounded-b-lg pb-1",a&&R.current),children:s.map((m,f)=>t.jsx("button",{ref:u=>B.current[f]=u,className:`block w-full px-4 py-2 text-left text-sm text-gray-700
4
+ hover:bg-[#092068]/20 focus:outline-none focus:bg-[#092068]/20`,role:"option","aria-selected":V===f,"aria-label":"option "+m.name,onClick:()=>{I(f),$(m.name),d(m.value||m.name),c(!1)},onKeyDown:u=>{u.key==="Enter"||u.code==="Enter"||u.key===" "?(I(f),$(m.name),d(m.value||m.name),c(!1)):u.key==="Escape"&&c(!1)},children:m.name},m.name))})]})},Xt={default:" h-48 w-56 pt-2",custom:" h-48 w-56 pt-2"},Ie=Q.forwardRef(({className:e,variant:r="default",children:s,...n},l)=>t.jsx("div",{className:M("flex flex-row flex-wrap animate-pulse",Xt[r],e),"aria-label":"Skeleton Component",role:"status",ref:l,...n,children:s}));Ie.displayName="Card";const er=({className:e="",inline:r=!1})=>r?t.jsx("div",{role:"presentation",className:M("rounded-full bg-slate-300 h-6 w-6 inline-block mx-2 me-1 my-1",e)}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"basis-full h-0"}),t.jsx("div",{role:"presentation",className:M("rounded-full bg-slate-300 h-6 w-6 mx-2 my-1 me-0",e)}),t.jsx("div",{className:"basis-full h-0"})]}),tr=({className:e="",inline:r=!1})=>r?t.jsx("div",{role:"presentation",className:M("rounded-lg bg-slate-300 h-6 inline-block mx-2 my-1 grow",e)}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"basis-full h-0"}),t.jsx("div",{role:"presentation",className:M("rounded-lg bg-slate-300 h-6 mx-2 my-1 grow",e)}),t.jsx("div",{className:"basis-full h-0"})]}),rr=({className:e=""})=>t.jsx("div",{role:"presentation",className:M("rounded-lg bg-slate-300 grow h-24 my-1 mx-2",e)}),sr=({className:e=""})=>t.jsx("div",{role:"presentation",className:"basis-full h-0"}),nr="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='clock'%3e%3cpath%20id='Vector'%20d='M16.0413%2010.5C16.0413%2013.8367%2013.3364%2016.5416%209.99967%2016.5416C6.66295%2016.5416%203.95801%2013.8367%203.95801%2010.5C3.95801%207.16326%206.66295%204.45831%209.99967%204.45831C13.3364%204.45831%2016.0413%207.16326%2016.0413%2010.5Z'%20stroke='%23713F12'%20stroke-width='1.5'/%3e%3cpath%20id='Vector_2'%20d='M10%207.16669V10.5L11.6667%2012.1667'%20stroke='%23713F12'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",or="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='check'%3e%3cpath%20id='Vector%2051'%20d='M4.16699%2011.3333L8.33366%2015.5L15.8337%205.5'%20stroke='%2314532D'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",ar="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M14.375%206.125L5.625%2014.875'%20stroke='%237F1D1D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M5.625%206.125L14.375%2014.875'%20stroke='%237F1D1D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",me=[{variant:"available",classes:"h-[45px] px-4 py-3 bg-green-50 rounded-[100px] border border-green-700 justify-center items-center gap-2 inline-flex",imgDivClasses:"w-5 h-5 relative overflow-hidden",childClasses:"text-green-900 text-lg font-normal font-[`Arial`]"},{variant:"inProgress",classes:"h-[45px] px-4 py-3 bg-yellow-50 rounded-[100px] border border-yellow-600 justify-center items-center gap-2 inline-flex",imgDivClasses:"w-5 h-5 relative overflow-hidden",childClasses:"text-yellow-900 text-lg font-normal font-[`Arial`]"},{variant:"notAvailable",classes:"h-[45px] px-4 py-3 bg-red-50 rounded-[100px] border border-red-600 justify-center items-center gap-2 inline-flex",imgDivClasses:"w-5 h-5 relative overflow-hidden",childClasses:"text-red-900 text-lg font-normal font-[`Arial`]"}],lr=g.forwardRef(({variant:e="available",className:r,image:s,classNameChild:n,classNameImage:l,children:i,...d},o)=>{const[h,b]=g.useState(),[w,k]=g.useState(),[y,v]=g.useState();return g.useEffect(()=>{var c,a,p;b(M((c=me.find(N=>N.variant===e))==null?void 0:c.classes,r)),v(M((a=me.find(N=>N.variant===e))==null?void 0:a.childClasses,n)),k(M((p=me.find(N=>N.variant===e))==null?void 0:p.imgDivClasses,l))},[e,r,n,l]),t.jsxs("div",{className:h,ref:o,children:[t.jsx("div",{className:w,children:s||(e==="available"?t.jsx("img",{src:or,alt:"check mark"}):e==="inProgress"?t.jsx("img",{src:nr,alt:"clock"}):t.jsx("img",{src:ar,alt:"close"}))}),t.jsx("div",{className:y,children:i})]})}),pe={default:{container:"flex border-b border-gray-200",tab:"text-[#092068]",title:"",active:"border-b-2 border-[#092068] hover:border-b-2 hover:border-[#7392f3] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] focus:rounded-md",inactive:"hover:border-b-2 hover:border-[#7392f3] hover:font-bold"},outline:{container:"flex border-b border-gray-200",tab:"border-2 border-blue-500 text-blue-500",title:"",active:"border-2 bg-[#092068] text-white hover:bg-[#d1dbfb] hover:text-[#092068] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1)]",inactive:"text-[#092068] hover:bg-[#d1dbfb] hover:font-bold"},transparent:{container:"flex border-b border-gray-200",tab:"text-[#092068]",title:"",active:"border-b-2 border-[#092068] hover:border-b-2 hover:border-[#7392f3] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] focus:rounded-md",inactive:"hover:border-b-2 hover:border-[#7392f3] hover:font-bold"}};var Ve=(e=>(e.Right="right",e.Left="left",e.IconOnly="iconOnly",e.None="undefined",e))(Ve||{});const ir=({variant:e="default",tabs:r,className:s,classNameContainer:n})=>{const[l,i]=g.useState(0),[d,o]=g.useState(!1),[h,b]=g.useState(""),w=g.useRef([]);e===""&&(e="default");const k=g.useCallback(c=>{var a;(a=w.current[c])==null||a.focus()},[]),y=g.useCallback((c,a)=>{if(c.key==="ArrowRight"){const p=(a+1)%r.length;i(p),k(p)}else if(c.key==="ArrowLeft"){const p=(a-1+r.length)%r.length;i(p),k(p)}else c.key==="Home"?(i(0),k(0)):c.key==="End"&&(i(r.length-1),k(r.length-1))},[r.length,k]),v=c=>{o(!0),b(c)};return t.jsxs("div",{className:M("w-full",n),children:[t.jsx("div",{role:"tablist","aria-label":"Tabs",className:M(pe[e].container,s),children:r.map((c,a)=>t.jsxs("button",{role:"tab",id:`tab-${c.id}`,onMouseEnter:()=>v(c.id),onMouseLeave:()=>o(!1),"aria-selected":l===a,"aria-controls":`panel-${c.id}`,tabIndex:l===a?0:-1,ref:p=>w.current[a]=p,className:`flex px-4 py-2 focus:outline-none ${e==="outline"?`border-[#092068] ${a===0?"border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md":a===r.length-1?"border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md":"border-t-2 border-b-2"}`:""} ${M(l===a?pe[e].active:pe[e].inactive)}`,onClick:()=>i(a),onKeyDown:p=>y(p,a),children:[c.iconPosition==="left"&&c.activeIcon&&t.jsx("span",{className:"icon-left mr-3 size-6",children:l===a?d&&h===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon}),c.iconPosition==="iconOnly"&&c.activeIcon?t.jsx("span",{className:"size-6",children:l===a?d&&h===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon}):t.jsx("span",{className:"button-text",children:c.label}),c.iconPosition==="right"&&c.activeIcon&&t.jsx("span",{className:"icon-right ml-3 size-6",children:l===a?d&&h===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon})]},c.id))}),r.map((c,a)=>t.jsx("div",{role:"tabpanel",id:`panel-${c.id}`,"aria-labelledby":`tab-${c.id}`,hidden:l!==a,className:"p-4",children:c.content},c.id))]})},cr="w-16 h-8 flex lg:w-[49.74px] lg:!h-[24.87px] lg:p-[3.1px] items-center p-1 rounded-2xl cursor-pointer transition-colors duration-300",dr="bg-white w-6 h-6 lg:w-[18.65px] lg:!h-[18.65px] rounded-full shadow-[0px_4px_4.900000095367432px_0px_rgba(0,0,0,0.12)] transform transition-transform duration-300",fe=[{variant:"default",classes:"bg-[#d0cfd1] hover:bg-[#bbbabc]",toggledClasses:"bg-[#053ea6] hover:bg-[#0752dc]",buttonClasses:"translate-x-0",toggledButtonClasses:"translate-x-8 lg:translate-x-6"},{variant:"outlined",classes:"bg-slate-300 border border-black hover:bg-[#abb5c2]",toggledClasses:"bg-blue-500/50 hover:bg-blue-400 border border-black",buttonClasses:"translate-x-0",toggledButtonClasses:"translate-x-8 lg:translate-x-6"}],ur=g.forwardRef(({defaultChecked:e=!1,disabled:r=!1,onCheckedChange:s,label:n,className:l,classNameButton:i,variant:d="default",type:o="button",children:h,...b},w)=>{var c,a,p,N;const[k,y]=g.useState(e),v=()=>{const $=!k;y($),s&&s($)};return t.jsx("button",{onClick:v,disabled:r,role:"switch","aria-checked":k,"aria-disabled":r,...b,ref:w,"aria-label":n||`Toggle ${k?"on":"off"}`,className:M(`${cr}
5
+ ${k?(c=fe.find($=>$.variant===d))==null?void 0:c.toggledClasses:(a=fe.find($=>$.variant===d))==null?void 0:a.classes}`,l),children:t.jsx("div",{className:M(`${dr}
6
+ ${k?(p=fe.find($=>$.variant===d))==null?void 0:p.toggledButtonClasses:(N=fe.find($=>$.variant===d))==null?void 0:N.buttonClasses}`,i)})})}),fr=g.forwardRef(({className:e,appName:r,image:s,classNameImage:n="",clickOutsideCloses:l,menu:i=!1,classNameMenu:d="",version:o,menuItems:h,children:b,...w},k)=>{const y=g.useRef(null),[v,c]=g.useState(!1);return g.useEffect(()=>{if(l){const a=p=>{y.current&&!y.current.contains(p.target)&&c(!1)};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}}},[c]),console.log("menu: ",i),console.log("showMenu: ",v),t.jsxs(t.Fragment,{children:[i&&t.jsx("button",{className:M("size-8 mb-4",d),onClick:()=>c(!v),children:t.jsx(gr,{classes:"fill-slate-500 hover:fill-black size-8"})}),t.jsxs("div",{ref:y,className:M("relative w-56 h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto",i&&"fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300",i&&v&&"translate-x-0",e),children:[t.jsx("div",{className:"w-16 h-16 mx-auto",children:t.jsx("img",{src:s,className:M("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1",n),alt:"application icon"})}),t.jsx("div",{className:"text-center mt-2",children:r}),t.jsx("div",{className:"[204px] mt-3 h-px bg-[#d9d9d9]"}),t.jsx(Ee,{className:"pl-6 mt-6",children:h.map((a,p)=>t.jsx(ve,{className:"pb-4",children:a.target&&t.jsx(de.NavLink,{to:a.target,children:a.children})},p))}),t.jsx("div",{className:"align-bottom mt-auto text-right right-2 bottom-1",children:o})]})]})}),gr=({classes:e="fill-green-600"})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",className:e,children:[t.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),t.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})]}),Re=({className:e,children:r,skipTo:s})=>{let n=null;const l=i=>{i.preventDefault();const d=document.querySelector(s);d&&(d.tabIndex=-1,d.focus(),n=setTimeout(()=>d.removeAttribute("tabindex"),1e3))};return g.useEffect(()=>()=>{n&&clearTimeout(n)},[n]),g.cloneElement(r,{onClick:l,className:e})};Re.defaultProps={className:"skip-link",skipTo:"main:first-of-type"};exports.Accordion=Ct;exports.AccordionParent=Mt;exports.Badge=Lt;exports.Breadcrumbs=Rt;exports.Button=_t;exports.Card=Le;exports.CharacterCounter=Yt;exports.DatePicker=Ut;exports.IconPosition=Ve;exports.Input=_e;exports.List=Ee;exports.ListItem=ve;exports.Modal=Zt;exports.Pill=Kt;exports.SectionHeader=qt;exports.Select=Qt;exports.SideBarNav=fr;exports.SkelCircle=er;exports.SkelLine=tr;exports.SkelRow=sr;exports.SkelSection=rr;exports.Skeleton=Ie;exports.SkipLink=Re;exports.Status=lr;exports.Tabs=ir;exports.Toggle=ur;