@dhasdk/simple-ui 0.0.19 → 0.0.21

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
@@ -35,9 +35,13 @@ This library was generated with [Nx](https://nx.dev) on React 18.x.
35
35
 
36
36
  1. From the terminal run the following command:
37
37
 
38
- **`npm install @dha-sdk/simple-ui`**
38
+ - **`npm install @dha-sdk/simple-ui`**
39
39
 
40
- 2. Open the page that you are going to place the **dha-sdk/simple-ui** component, and do the following:
40
+ 2. Integrate simple-ui into your local tailwind configuration
41
+
42
+ - Add **`node_modules/@dhasdk/**/*.{js,jsx}`** (or similar) to the **content** block inside your **`tailwind.config.ts`** file.
43
+
44
+ 3. Open the page that you are going to place the **dha-sdk/simple-ui** component, and do the following:
41
45
 
42
46
  - At the top of the file, import your desired component from **'@dha-sdk'**, i.e. if you are using the **Badge** component, then:
43
47
  - **`import { Badge } from '@dhasdk/simple-ui';`**
package/index.js CHANGED
@@ -1,33 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),v=require("react");require("react-dom");function kt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const M=kt(v),ze="-",Nt=e=>{const t=St(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ze);return i[0]===""&&i.length!==1&&i.shift(),Qe(i,t)||jt(l)},getConflictingClassGroupIds:(l,i)=>{const f=r[l]||[];return i&&n[l]?[...f,...n[l]]:f}}},Qe=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?Qe(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(ze);return(l=t.validators.find(({validator:i})=>i(o)))==null?void 0:l.classGroupId},He=/^\[(.+)\]$/,jt=e=>{if(He.test(e)){const t=He.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},St=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Mt(Object.entries(e.classGroups),r).forEach(([o,l])=>{_e(l,n,o,t)}),n},_e=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Fe(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(Et(s)){_e(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,l])=>{_e(l,Fe(t,o),r,n)})})},Fe=(e,t)=>{let r=e;return t.split(ze).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Et=e=>e.isThemeGetter,Mt=(e,t)=>t?e.map(([r,n])=>{const s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,i])=>[t+l,i])):o);return[r,s]}):e,$t=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,l)=>{r.set(o,l),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let l=r.get(o);if(l!==void 0)return l;if((l=n.get(o))!==void 0)return s(o,l),l},set(o,l){r.has(o)?r.set(o,l):s(o,l)}}},et="!",Dt=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,l=i=>{const f=[];let c=0,m=0,p;for(let x=0;x<i.length;x++){let E=i[x];if(c===0){if(E===s&&(n||i.slice(x,x+o)===t)){f.push(i.slice(m,x)),m=x+o;continue}if(E==="/"){p=x;continue}}E==="["?c++:E==="]"&&c--}const g=f.length===0?i:i.substring(m),w=g.startsWith(et),d=w?g.substring(1):g,u=p&&p>m?p-m:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:d,maybePostfixModifierPosition:u}};return r?i=>r({className:i,parseClassName:l}):l},Lt=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Rt=e=>({cache:$t(e.cacheSize),parseClassName:Dt(e),...Nt(e)}),_t=/\s+/,Ot=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],l=e.trim().split(_t);let i="";for(let f=l.length-1;f>=0;f-=1){const c=l[f],{modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:w}=r(c);let d=!!w,u=n(d?g.substring(0,w):g);if(!u){if(!d){i=c+(i.length>0?" "+i:i);continue}if(u=n(g),!u){i=c+(i.length>0?" "+i:i);continue}d=!1}const x=Lt(m).join(":"),E=p?x+et:x,j=E+u;if(o.includes(j))continue;o.push(j);const R=s(u,d);for(let D=0;D<R.length;++D){const z=R[D];o.push(E+z)}i=c+(i.length>0?" "+i:i)}return i};function Vt(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=tt(t))&&(n&&(n+=" "),n+=r);return n}const tt=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=tt(e[n]))&&(r&&(r+=" "),r+=t);return r};function It(e,...t){let r,n,s,o=l;function l(f){const c=t.reduce((m,p)=>p(m),e());return r=Rt(c),n=r.cache.get,s=r.cache.set,o=i,i(f)}function i(f){const c=n(f);if(c)return c;const m=Ot(f,r);return s(f,m),m}return function(){return o(Vt.apply(null,arguments))}}const A=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,zt=/^\d+\/\d+$/,At=new Set(["px","full","screen"]),Tt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pt=/\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$/,Bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ut=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,q=e=>oe(e)||At.has(e)||zt.test(e),Q=e=>le(e,"length",Jt),oe=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>le(e,"number",oe),me=e=>!!e&&Number.isInteger(Number(e)),Ht=e=>e.endsWith("%")&&oe(e.slice(0,-1)),O=e=>rt.test(e),ee=e=>Tt.test(e),Ft=new Set(["length","size","percentage"]),Wt=e=>le(e,Ft,nt),Gt=e=>le(e,"position",nt),Kt=new Set(["image","url"]),Zt=e=>le(e,Kt,Qt),qt=e=>le(e,"",Xt),he=()=>!0,le=(e,t,r)=>{const n=rt.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Jt=e=>Pt.test(e)&&!Bt.test(e),nt=()=>!1,Xt=e=>Ut.test(e),Qt=e=>Yt.test(e),er=()=>{const e=A("colors"),t=A("spacing"),r=A("blur"),n=A("brightness"),s=A("borderColor"),o=A("borderRadius"),l=A("borderSpacing"),i=A("borderWidth"),f=A("contrast"),c=A("grayscale"),m=A("hueRotate"),p=A("invert"),g=A("gap"),w=A("gradientColorStops"),d=A("gradientColorStopPositions"),u=A("inset"),x=A("margin"),E=A("opacity"),j=A("padding"),R=A("saturate"),D=A("scale"),z=A("sepia"),T=A("skew"),G=A("space"),F=A("translate"),Y=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",O,t],V=()=>[O,t],K=()=>["",q,Q],y=()=>["auto",oe,O],b=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],h=()=>["solid","dashed","dotted","double","none"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",O],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[oe,O];return{cacheSize:500,separator:":",theme:{colors:[he],spacing:[q,Q],blur:["none","",ee,O],brightness:I(),borderColor:[e],borderRadius:["none","","full",ee,O],borderSpacing:V(),borderWidth:K(),contrast:I(),grayscale:L(),hueRotate:I(),invert:L(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[Ht,Q],inset:k(),margin:k(),opacity:I(),padding:V(),saturate:I(),scale:I(),sepia:L(),skew:I(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[ee]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:[...b(),O]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",me,O]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",me,O]}],"grid-cols":[{"grid-cols":[he]}],"col-start-end":[{col:["auto",{span:["full",me,O]},O]}],"col-start":[{"col-start":y()}],"col-end":[{"col-end":y()}],"grid-rows":[{"grid-rows":[he]}],"row-start-end":[{row:["auto",{span:[me,O]},O]}],"row-start":[{"row-start":y()}],"row-end":[{"row-end":y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[G]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[G]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[ee]},ee]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ee,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ee]}],"font-family":[{font:[he]}],"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",O]}],"line-clamp":[{"line-clamp":["none",oe,Ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",q,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...h(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",q,Q]}],"underline-offset":[{"underline-offset":["auto",q,O]}],"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:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],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",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...b(),Gt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Zt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[d]}],"gradient-via-pos":[{via:[d]}],"gradient-to-pos":[{to:[d]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...h(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:h()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...h()]}],"outline-offset":[{"outline-offset":[q,O]}],"outline-w":[{outline:[q,Q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[q,Q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ee,qt]}],"shadow-color":[{shadow:[he]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...N(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",ee,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[R]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[me,O]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],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",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[q,Q,Ee]}],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"]}}},S=It(er),tr="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",rr="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",nr="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",sr="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",or="mt-[-0.5rem]",ar="flex justify-between items-center w-full p-1 px-4 text-left border border-gray-300 mt-2",ir="px-4 py-1 border border-t-0 border-gray-300",lr={},cr={},dr=v.forwardRef(({variant:e="default",label:t,className:r,chevron:n=!0,iconAccordionOpened:s,iconAccordionClosed:o,rounded:l=!1,headingClasses:i,contentClasses:f,onExpand:c,singleOpen:m,index:p,children:g,...w},d)=>{const[u,x]=v.useState(!1),E=`accordion-${p??t.replace(/\s+/g,"-").toLowerCase()}`,j=()=>{c&&m&&c(x),x(!u)},R=D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),j(),console.log("key pressed, event.key === '"+D.key+"', index: "+p+", label: "+t))};return a.jsxs("div",{ref:d,className:r,children:[a.jsxs("button",{className:S(ar,lr.variant,i,l&&(u?"rounded-t-md":"rounded-md")),"aria-controls":`${E}-content`,"aria-expanded":u,id:`${E}-header`,onClick:j,onKeyDown:R,...w,children:[a.jsx("span",{children:t}),a.jsx("span",{children:u?s||a.jsx("img",{src:n?sr:rr,alt:"Close Icon"}):o||a.jsx("img",{src:n?nr:tr,alt:"Open Icon"})})]}),u&&a.jsx("div",{className:S(ir,cr.variant,f,l&&"rounded-b-md"),id:`${E}-content`,role:"region","aria-labelledby":`${E}-header`,children:g})]})}),ur=v.forwardRef(({children:e,variant:t="default",chevron:r,iconAccordionOpened:n,iconAccordionClosed:s,rounded:o,className:l,singleOpen:i=!0,childHeadingClassName:f,childContentClassName:c,...m},p)=>{const[g,w]=v.useState(null),d=u=>{g&&g(!1),w(()=>u)};return a.jsx("div",{ref:p,...m,className:S(or,l),children:v.Children.map(e,(u,x)=>v.isValidElement(u)?v.cloneElement(u,{...u.props,variant:t,chevron:r,iconAccordionOpened:n,iconAccordionClosed:s,rounded:o,headingClasses:S(f,u.props.headingClasses),contentClasses:S(c,u.props.contentClasses),index:x,singleOpen:i,onExpand:E=>d(E)}):u)})}),fr="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",mr="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",hr="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",pr="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",We=[{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"}],gr=v.forwardRef(({variant:e="default",subVariant:t="default",className:r,svgClasses:n="size-1.5 fill-yellow-400",imagePath:s,imageAlt:o,imageClasses:l,children:i,...f},c)=>{const[m,p]=v.useState(),[g,w]=v.useState(),[d,u]=v.useState(mr),x=()=>{p(S(m,"hidden"))};return v.useEffect(()=>{var R,D;const E=t==="custom"?"default":t,j=(R=We.find(z=>z.variant===e&&z.subVariant===E))==null?void 0:R.classes;if(e==="icon"){const z=(D=We.find(T=>T.variant===e&&T.subVariant===E))==null?void 0:D.svgClasses;w(t==="custom"?S(z,n):z)}e==="hazard"?u(hr):e==="go"&&u(fr),p(S(j,r))},[t,r,e,n]),a.jsxs(a.Fragment,{children:[e==="default"&&a.jsx("div",{className:m,...f,ref:c,children:i}),(e==="warning"||e==="hazard"||e==="go")&&a.jsxs("div",{className:m,children:[a.jsx("div",{className:"size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative",children:a.jsx("div",{className:"left-0 top-0 absolute",children:a.jsx("img",{className:"size-6",src:d,alt:`${e} icon`})})}),a.jsx("div",{className:"grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]",children:i}),a.jsx("button",{onClick:x,className:"size-3 py-px justify-center items-center gap-2.5 flex","aria-label":"Close modal",children:a.jsx("img",{src:pr,alt:"close alert icon"})})]}),e==="icon"&&a.jsxs("div",{className:m,...f,ref:c,children:[a.jsx("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:g,role:"img",children:a.jsx("circle",{r:3,cx:3,cy:3})}),i]}),e==="media"&&a.jsxs("div",{className:m,...f,ref:c,children:[a.jsx("div",{className:"col-start-1 col-span-2",children:a.jsx("img",{className:S("h-full",l),src:s,alt:o})}),a.jsx("div",{className:"w-full ml-2 col-start-3 col-span-3",children:i})]})]})}),br="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] ",Me={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:""}},xr=v.forwardRef(({label:e,onClick:t,className:r,icon:n,iconPosition:s,variant:o="default",type:l="button",children:i,selected:f=!1,selectedClasses:c,...m},p)=>{const[g,w]=v.useState("");return v.useEffect(()=>{let d=Me[o].normal||Me.default.normal;f&&!c?d=S(d,Me[o].selected):f&&c&&(d=S(d,c)),w(S(br,d,r))},[r,f,c,o]),a.jsxs("button",{type:l,onClick:t,className:`${s==="iconOnly"?S(g,"px-[12px] md:px-[14px] lg:px-[16px] py-[12px] md:py-[14px] lg:py-[16px]"):g}`,ref:p,...m,children:[s==="left"&&n&&a.jsx("span",{className:"icon-left mr-3 size-6",children:n}),s==="iconOnly"&&n?a.jsx("span",{className:"size-6",children:n}):a.jsx("span",{className:"button-text",children:i||e}),s==="right"&&n&&a.jsx("span",{className:"icon-right ml-3 size-6",children:n})]})});/**
2
- * @remix-run/router v1.22.0
3
- *
4
- * Copyright (c) Remix Software Inc.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE.md file in the root directory of this source tree.
8
- *
9
- * @license MIT
10
- */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(this,arguments)}var Ge;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ge||(Ge={}));function B(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function be(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ve(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function st(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Ke;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ke||(Ke={}));function Ze(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=vr(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let o=s[0],l=o.replace(/(.)\/+$/,"$1"),i=s.slice(1);return{params:n.reduce((c,m,p)=>{let{paramName:g,isOptional:w}=m;if(g==="*"){let u=i[p]||"";l=o.slice(0,o.length-u.length).replace(/(.)\/+$/,"$1")}const d=i[p];return w&&!d?c[g]=void 0:c[g]=(d||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:l,pattern:e}}function vr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),be(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,f)=>(n.push({paramName:i,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function ae(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function wr(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?st(e):e;return{pathname:r?r.startsWith("/")?r:yr(r,t):t,search:kr(n),hash:Nr(s)}}function yr(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function $e(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Cr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ot(e,t){let r=Cr(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function at(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=st(e):(s=Oe({},e),B(!s.pathname||!s.pathname.includes("?"),$e("?","pathname","search",s)),B(!s.pathname||!s.pathname.includes("#"),$e("#","pathname","hash",s)),B(!s.search||!s.search.includes("#"),$e("#","search","hash",s)));let o=e===""||s.pathname==="",l=o?"/":s.pathname,i;if(l==null)i=r;else{let p=t.length-1;if(!n&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),p-=1;s.pathname=g.join("/")}i=p>=0?t[p]:"/"}let f=wr(s,i),c=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(c||m)&&(f.pathname+="/"),f}const Ae=e=>e.join("/").replace(/\/\/+/g,"/"),kr=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Nr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,it=["post","put","patch","delete"];new Set(it);const jr=["get",...it];new Set(jr);/**
11
- * React Router v6.29.0
12
- *
13
- * Copyright (c) Remix Software Inc.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE.md file in the root directory of this source tree.
17
- *
18
- * @license MIT
19
- */function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ie.apply(this,arguments)}const je=M.createContext(null);process.env.NODE_ENV!=="production"&&(je.displayName="DataRouter");const lt=M.createContext(null);process.env.NODE_ENV!=="production"&&(lt.displayName="DataRouterState");const Sr=M.createContext(null);process.env.NODE_ENV!=="production"&&(Sr.displayName="Await");const J=M.createContext(null);process.env.NODE_ENV!=="production"&&(J.displayName="Navigation");const Te=M.createContext(null);process.env.NODE_ENV!=="production"&&(Te.displayName="Location");const ce=M.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(ce.displayName="Route");const Er=M.createContext(null);process.env.NODE_ENV!=="production"&&(Er.displayName="RouteError");function Mr(e,t){let{relative:r}=t===void 0?{}:t;Pe()||(process.env.NODE_ENV!=="production"?B(!1,"useHref() may be used only in the context of a <Router> component."):B(!1));let{basename:n,navigator:s}=M.useContext(J),{hash:o,pathname:l,search:i}=xe(e,{relative:r}),f=l;return n!=="/"&&(f=l==="/"?n:Ae([n,l])),s.createHref({pathname:f,search:i,hash:o})}function Pe(){return M.useContext(Te)!=null}function de(){return Pe()||(process.env.NODE_ENV!=="production"?B(!1,"useLocation() may be used only in the context of a <Router> component."):B(!1)),M.useContext(Te).location}const ct="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function dt(e){M.useContext(J).static||M.useLayoutEffect(e)}function $r(){let{isDataRoute:e}=M.useContext(ce);return e?Or():Dr()}function Dr(){Pe()||(process.env.NODE_ENV!=="production"?B(!1,"useNavigate() may be used only in the context of a <Router> component."):B(!1));let e=M.useContext(je),{basename:t,future:r,navigator:n}=M.useContext(J),{matches:s}=M.useContext(ce),{pathname:o}=de(),l=JSON.stringify(ot(s,r.v7_relativeSplatPath)),i=M.useRef(!1);return dt(()=>{i.current=!0}),M.useCallback(function(c,m){if(m===void 0&&(m={}),process.env.NODE_ENV!=="production"&&be(i.current,ct),!i.current)return;if(typeof c=="number"){n.go(c);return}let p=at(c,JSON.parse(l),o,m.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ae([t,p.pathname])),(m.replace?n.replace:n.push)(p,m.state,m)},[t,n,l,o,e])}function xe(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=M.useContext(J),{matches:s}=M.useContext(ce),{pathname:o}=de(),l=JSON.stringify(ot(s,n.v7_relativeSplatPath));return M.useMemo(()=>at(e,JSON.parse(l),o,r==="path"),[e,l,o,r])}var ut=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ut||{}),Be=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Be||{});function ft(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Lr(e){let t=M.useContext(je);return t||(process.env.NODE_ENV!=="production"?B(!1,ft(e)):B(!1)),t}function Rr(e){let t=M.useContext(ce);return t||(process.env.NODE_ENV!=="production"?B(!1,ft(e)):B(!1)),t}function mt(e){let t=Rr(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?B(!1,e+' can only be used on routes that contain a unique "id"'):B(!1)),r.route.id}function _r(){return mt(Be.UseRouteId)}function Or(){let{router:e}=Lr(ut.UseNavigateStable),t=mt(Be.UseNavigateStable),r=M.useRef(!1);return dt(()=>{r.current=!0}),M.useCallback(function(s,o){o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&be(r.current,ct),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ie({fromRouteId:t},o)))},[e,t])}new Promise(()=>{});/**
20
- * React Router DOM v6.29.0
21
- *
22
- * Copyright (c) Remix Software Inc.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE.md file in the root directory of this source tree.
26
- *
27
- * @license MIT
28
- */function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ie.apply(this,arguments)}function Ue(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,o;for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}const Ce="get",ke="application/x-www-form-urlencoded";function Se(e){return e!=null&&typeof e.tagName=="string"}function Vr(e){return Se(e)&&e.tagName.toLowerCase()==="button"}function Ir(e){return Se(e)&&e.tagName.toLowerCase()==="form"}function zr(e){return Se(e)&&e.tagName.toLowerCase()==="input"}function Ar(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tr(e,t){return e.button===0&&(!t||t==="_self")&&!Ar(e)}let we=null;function Pr(){if(we===null)try{new FormData(document.createElement("form"),0),we=!1}catch{we=!0}return we}const Br=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function De(e){return e!=null&&!Br.has(e)?(process.env.NODE_ENV!=="production"&&be(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+ke+'"')),null):e}function Ur(e,t){let r,n,s,o,l;if(Ir(e)){let i=e.getAttribute("action");n=i?ae(i,t):null,r=e.getAttribute("method")||Ce,s=De(e.getAttribute("enctype"))||ke,o=new FormData(e)}else if(Vr(e)||zr(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||i.getAttribute("action");if(n=f?ae(f,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||Ce,s=De(e.getAttribute("formenctype"))||De(i.getAttribute("enctype"))||ke,o=new FormData(i,e),!Pr()){let{name:c,type:m,value:p}=e;if(m==="image"){let g=c?c+".":"";o.append(g+"x","0"),o.append(g+"y","0")}else c&&o.append(c,p)}}else{if(Se(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ce,n=null,s=ke,l=e}return o&&s==="text/plain"&&(l=o,o=void 0),{action:n,method:r.toLowerCase(),encType:s,formData:o,body:l}}const Yr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Hr=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Fr=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],Wr="6";try{window.__reactRouterVersion=Wr}catch{}const ht=M.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(ht.displayName="ViewTransition");const Gr=M.createContext(new Map);process.env.NODE_ENV!=="production"&&(Gr.displayName="Fetchers");process.env.NODE_ENV;const Kr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ge=M.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:o,replace:l,state:i,target:f,to:c,preventScrollReset:m,viewTransition:p}=t,g=Ue(t,Yr),{basename:w}=M.useContext(J),d,u=!1;if(typeof c=="string"&&Zr.test(c)&&(d=c,Kr))try{let R=new URL(window.location.href),D=c.startsWith("//")?new URL(R.protocol+c):new URL(c),z=ae(D.pathname,w);D.origin===R.origin&&z!=null?c=z+D.search+D.hash:u=!0}catch{process.env.NODE_ENV!=="production"&&be(!1,'<Link to="'+c+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let x=Mr(c,{relative:s}),E=Xr(c,{replace:l,state:i,target:f,preventScrollReset:m,relative:s,viewTransition:p});function j(R){n&&n(R),R.defaultPrevented||E(R)}return M.createElement("a",ie({},g,{href:d||x,onClick:u||o?n:j,ref:r,target:f}))});process.env.NODE_ENV!=="production"&&(ge.displayName="Link");const pt=M.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:s=!1,className:o="",end:l=!1,style:i,to:f,viewTransition:c,children:m}=t,p=Ue(t,Hr),g=xe(f,{relative:p.relative}),w=de(),d=M.useContext(lt),{navigator:u,basename:x}=M.useContext(J),E=d!=null&&sn(g)&&c===!0,j=u.encodeLocation?u.encodeLocation(g).pathname:g.pathname,R=w.pathname,D=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;s||(R=R.toLowerCase(),D=D?D.toLowerCase():null,j=j.toLowerCase()),D&&x&&(D=ae(D,x)||D);const z=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let T=R===j||!l&&R.startsWith(j)&&R.charAt(z)==="/",G=D!=null&&(D===j||!l&&D.startsWith(j)&&D.charAt(j.length)==="/"),F={isActive:T,isPending:G,isTransitioning:E},Y=T?n:void 0,$;typeof o=="function"?$=o(F):$=[o,T?"active":null,G?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let k=typeof i=="function"?i(F):i;return M.createElement(ge,ie({},p,{"aria-current":Y,className:$,ref:r,style:k,to:f,viewTransition:c}),typeof m=="function"?m(F):m)});process.env.NODE_ENV!=="production"&&(pt.displayName="NavLink");const qr=M.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:s,replace:o,state:l,method:i=Ce,action:f,onSubmit:c,relative:m,preventScrollReset:p,viewTransition:g}=e,w=Ue(e,Fr),d=rn(),u=nn(f,{relative:m}),x=i.toLowerCase()==="get"?"get":"post",E=j=>{if(c&&c(j),j.defaultPrevented)return;j.preventDefault();let R=j.nativeEvent.submitter,D=(R==null?void 0:R.getAttribute("formmethod"))||i;d(R||j.currentTarget,{fetcherKey:r,method:D,navigate:n,replace:o,state:l,relative:m,preventScrollReset:p,viewTransition:g})};return M.createElement("form",ie({ref:t,method:x,action:u,onSubmit:s?c:E},w))});process.env.NODE_ENV!=="production"&&(qr.displayName="Form");process.env.NODE_ENV;var Ne;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ne||(Ne={}));var qe;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qe||(qe={}));function Jr(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function gt(e){let t=M.useContext(je);return t||(process.env.NODE_ENV!=="production"?B(!1,Jr(e)):B(!1)),t}function Xr(e,t){let{target:r,replace:n,state:s,preventScrollReset:o,relative:l,viewTransition:i}=t===void 0?{}:t,f=$r(),c=de(),m=xe(e,{relative:l});return M.useCallback(p=>{if(Tr(p,r)){p.preventDefault();let g=n!==void 0?n:Ve(c)===Ve(m);f(e,{replace:g,state:s,preventScrollReset:o,relative:l,viewTransition:i})}},[c,f,m,n,s,r,e,o,l,i])}function Qr(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let en=0,tn=()=>"__"+String(++en)+"__";function rn(){let{router:e}=gt(Ne.UseSubmit),{basename:t}=M.useContext(J),r=_r();return M.useCallback(function(n,s){s===void 0&&(s={}),Qr();let{action:o,method:l,encType:i,formData:f,body:c}=Ur(n,t);if(s.navigate===!1){let m=s.fetcherKey||tn();e.fetch(m,r,s.action||o,{preventScrollReset:s.preventScrollReset,formData:f,body:c,formMethod:s.method||l,formEncType:s.encType||i,flushSync:s.flushSync})}else e.navigate(s.action||o,{preventScrollReset:s.preventScrollReset,formData:f,body:c,formMethod:s.method||l,formEncType:s.encType||i,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,r])}function nn(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=M.useContext(J),s=M.useContext(ce);s||(process.env.NODE_ENV!=="production"?B(!1,"useFormAction must be used inside a RouteContext"):B(!1));let[o]=s.matches.slice(-1),l=ie({},xe(e||".",{relative:r})),i=de();if(e==null){l.search=i.search;let f=new URLSearchParams(l.search),c=f.getAll("index");if(c.some(p=>p==="")){f.delete("index"),c.filter(g=>g).forEach(g=>f.append("index",g));let p=f.toString();l.search=p?"?"+p:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ae([n,l.pathname])),Ve(l)}function sn(e,t){t===void 0&&(t={});let r=M.useContext(ht);r==null&&(process.env.NODE_ENV!=="production"?B(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):B(!1));let{basename:n}=gt(Ne.useViewTransitionState),s=xe(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=ae(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=ae(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ze(s.pathname,l)!=null||Ze(s.pathname,o)!=null}const on="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",an="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",ln={default:"",bold:"font-bold"},cn=M.forwardRef(({containerClassName:e,className:t,variant:r="default",auto:n=!0,separator:s=on,...o},l)=>{const i=de().pathname.split("/").filter(f=>f!=="");return a.jsx("nav",{className:S(ln[r],e),...o,ref:l,"aria-label":"Breadcrumbs",children:a.jsxs("ol",{className:"flex list-none",children:[a.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[a.jsx(ge,{to:"/",className:S("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2 hidden md:inline-flex",t),children:"Homepage"}),a.jsx(ge,{to:"/",className:S("capitalize me-2 inline-flex md:hidden",t),children:a.jsx("img",{src:an,alt:"home icon"})}),i.length>1?a.jsx("span",{className:S("me-2",t),children:a.jsx("img",{src:s,alt:"vector"})}):""]}),i.map((f,c)=>{const m="/"+i.slice(0,c+1).join("/");return a.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[c===i.length-1?a.jsx("span",{className:"text-black font-bold capitalize","aria-current":"page",children:decodeURIComponent(f).replace(/-/g," ")}):a.jsx(ge,{to:m,className:S("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2",t),children:decodeURIComponent(f).replace(/-/g," ")}),c<i.length-1&&a.jsx("span",{className:S("me-2",t),children:a.jsx("img",{src:s,alt:"vector"})})]},c)})]})})}),dn={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"},un={default:"bg-white overflow-hidden rounded-lg",outline:"bg-white overflow-hidden rounded-lg shadow-md border border-slate-300"},fn="px-4 my-2",mn="px-2 my-2",bt=M.forwardRef(({className:e,variant:t="default",variantStyle:r="default",imagePath:n,imageClassname:s="w-full h-full",imageInset:o=!1,alt:l,ariaLabel:i="card component",children:f,...c},m)=>a.jsxs("div",{className:S("flex ",un[r],dn[t],e),"aria-label":i,ref:m,...c,children:[a.jsx("div",{className:S("flex-initial items-center justify-center w-full",o&&(t==="default"||t==="imageBottom"?fn:mn)),children:n&&a.jsx("img",{src:n,alt:l,className:s})}),a.jsx("div",{className:"flex-auto px-4 my-2",children:f})]}));bt.displayName="Card";const hn=({className:e="",messageClassName:t="",overLimitMessageClassName:r="",maxCharacters:n,children:s,altRemainingMessageText:o,altOverageMessageText:l})=>{const[i,f]=v.useState(`${n} characters allowed`),[c,m]=v.useState(!1),p=g=>{const d=g.target.value.length;if(m(d>n),d===0)f(`${n} characters allowed`);else if(d<=n){const u=" "+(o??"remaining");f(`${n-d}${u}`)}else{const u=" "+(l??"characters too many");f(`${d-n}${u}`)}};return a.jsxs("div",{className:e,children:[a.jsx("div",{onInput:p,className:"mb-2",children:s}),a.jsx("div",{className:S(t,c&&"text-red-500",c&&r),children:i})," "]})};var pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xt={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pn,function(){var r=1e3,n=6e4,s=36e5,o="millisecond",l="second",i="minute",f="hour",c="day",m="week",p="month",g="quarter",w="year",d="date",u="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,j={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(y){var b=["th","st","nd","rd"],h=y%100;return"["+y+(b[(h-20)%10]||b[h]||b[0])+"]"}},R=function(y,b,h){var N=String(y);return!N||N.length>=b?y:""+Array(b+1-N.length).join(h)+y},D={s:R,z:function(y){var b=-y.utcOffset(),h=Math.abs(b),N=Math.floor(h/60),C=h%60;return(b<=0?"+":"-")+R(N,2,"0")+":"+R(C,2,"0")},m:function y(b,h){if(b.date()<h.date())return-y(h,b);var N=12*(h.year()-b.year())+(h.month()-b.month()),C=b.clone().add(N,p),L=h-C<0,_=b.clone().add(N+(L?-1:1),p);return+(-(N+(h-C)/(L?C-_:_-C))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:p,y:w,w:m,d:c,D:d,h:f,m:i,s:l,ms:o,Q:g}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},z="en",T={};T[z]=j;var G="$isDayjsObject",F=function(y){return y instanceof V||!(!y||!y[G])},Y=function y(b,h,N){var C;if(!b)return z;if(typeof b=="string"){var L=b.toLowerCase();T[L]&&(C=L),h&&(T[L]=h,C=L);var _=b.split("-");if(!C&&_.length>1)return y(_[0])}else{var I=b.name;T[I]=b,C=I}return!N&&C&&(z=C),C||!N&&z},$=function(y,b){if(F(y))return y.clone();var h=typeof b=="object"?b:{};return h.date=y,h.args=arguments,new V(h)},k=D;k.l=Y,k.i=F,k.w=function(y,b){return $(y,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var V=function(){function y(h){this.$L=Y(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[G]=!0}var b=y.prototype;return b.parse=function(h){this.$d=function(N){var C=N.date,L=N.utc;if(C===null)return new Date(NaN);if(k.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var _=C.match(x);if(_){var I=_[2]-1||0,P=(_[7]||"0").substring(0,3);return L?new Date(Date.UTC(_[1],I,_[3]||1,_[4]||0,_[5]||0,_[6]||0,P)):new Date(_[1],I,_[3]||1,_[4]||0,_[5]||0,_[6]||0,P)}}return new Date(C)}(h),this.init()},b.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},b.$utils=function(){return k},b.isValid=function(){return this.$d.toString()!==u},b.isSame=function(h,N){var C=$(h);return this.startOf(N)<=C&&C<=this.endOf(N)},b.isAfter=function(h,N){return $(h)<this.startOf(N)},b.isBefore=function(h,N){return this.endOf(N)<$(h)},b.$g=function(h,N,C){return k.u(h)?this[N]:this.set(C,h)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(h,N){var C=this,L=!!k.u(N)||N,_=k.p(h),I=function(re,W){var X=k.w(C.$u?Date.UTC(C.$y,W,re):new Date(C.$y,W,re),C);return L?X:X.endOf(c)},P=function(re,W){return k.w(C.toDate()[re].apply(C.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(W)),C)},U=this.$W,H=this.$M,Z=this.$D,se="set"+(this.$u?"UTC":"");switch(_){case w:return L?I(1,0):I(31,11);case p:return L?I(1,H):I(0,H+1);case m:var te=this.$locale().weekStart||0,ue=(U<te?U+7:U)-te;return I(L?Z-ue:Z+(6-ue),H);case c:case d:return P(se+"Hours",0);case f:return P(se+"Minutes",1);case i:return P(se+"Seconds",2);case l:return P(se+"Milliseconds",3);default:return this.clone()}},b.endOf=function(h){return this.startOf(h,!1)},b.$set=function(h,N){var C,L=k.p(h),_="set"+(this.$u?"UTC":""),I=(C={},C[c]=_+"Date",C[d]=_+"Date",C[p]=_+"Month",C[w]=_+"FullYear",C[f]=_+"Hours",C[i]=_+"Minutes",C[l]=_+"Seconds",C[o]=_+"Milliseconds",C)[L],P=L===c?this.$D+(N-this.$W):N;if(L===p||L===w){var U=this.clone().set(d,1);U.$d[I](P),U.init(),this.$d=U.set(d,Math.min(this.$D,U.daysInMonth())).$d}else I&&this.$d[I](P);return this.init(),this},b.set=function(h,N){return this.clone().$set(h,N)},b.get=function(h){return this[k.p(h)]()},b.add=function(h,N){var C,L=this;h=Number(h);var _=k.p(N),I=function(H){var Z=$(L);return k.w(Z.date(Z.date()+Math.round(H*h)),L)};if(_===p)return this.set(p,this.$M+h);if(_===w)return this.set(w,this.$y+h);if(_===c)return I(1);if(_===m)return I(7);var P=(C={},C[i]=n,C[f]=s,C[l]=r,C)[_]||1,U=this.$d.getTime()+h*P;return k.w(U,this)},b.subtract=function(h,N){return this.add(-1*h,N)},b.format=function(h){var N=this,C=this.$locale();if(!this.isValid())return C.invalidDate||u;var L=h||"YYYY-MM-DDTHH:mm:ssZ",_=k.z(this),I=this.$H,P=this.$m,U=this.$M,H=C.weekdays,Z=C.months,se=C.meridiem,te=function(W,X,fe,ve){return W&&(W[X]||W(N,L))||fe[X].slice(0,ve)},ue=function(W){return k.s(I%12||12,W,"0")},re=se||function(W,X,fe){var ve=W<12?"AM":"PM";return fe?ve.toLowerCase():ve};return L.replace(E,function(W,X){return X||function(fe){switch(fe){case"YY":return String(N.$y).slice(-2);case"YYYY":return k.s(N.$y,4,"0");case"M":return U+1;case"MM":return k.s(U+1,2,"0");case"MMM":return te(C.monthsShort,U,Z,3);case"MMMM":return te(Z,U);case"D":return N.$D;case"DD":return k.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return te(C.weekdaysMin,N.$W,H,2);case"ddd":return te(C.weekdaysShort,N.$W,H,3);case"dddd":return H[N.$W];case"H":return String(I);case"HH":return k.s(I,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return re(I,P,!0);case"A":return re(I,P,!1);case"m":return String(P);case"mm":return k.s(P,2,"0");case"s":return String(N.$s);case"ss":return k.s(N.$s,2,"0");case"SSS":return k.s(N.$ms,3,"0");case"Z":return _}return null}(W)||_.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(h,N,C){var L,_=this,I=k.p(N),P=$(h),U=(P.utcOffset()-this.utcOffset())*n,H=this-P,Z=function(){return k.m(_,P)};switch(I){case w:L=Z()/12;break;case p:L=Z();break;case g:L=Z()/3;break;case m:L=(H-U)/6048e5;break;case c:L=(H-U)/864e5;break;case f:L=H/s;break;case i:L=H/n;break;case l:L=H/r;break;default:L=H}return C?L:k.a(L)},b.daysInMonth=function(){return this.endOf(p).$D},b.$locale=function(){return T[this.$L]},b.locale=function(h,N){if(!h)return this.$L;var C=this.clone(),L=Y(h,N,!0);return L&&(C.$L=L),C},b.clone=function(){return k.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},y}(),K=V.prototype;return $.prototype=K,[["$ms",o],["$s",l],["$m",i],["$H",f],["$W",c],["$M",p],["$y",w],["$D",d]].forEach(function(y){K[y[1]]=function(b){return this.$g(b,y[0],y[1])}}),$.extend=function(y,b){return y.$i||(y(b,V,$),y.$i=!0),$},$.locale=Y,$.isDayjs=F,$.unix=function(y){return $(1e3*y)},$.en=T[z],$.Ls=T,$.p={},$})})(xt);var bn=xt.exports;const pe=gn(bn),xn="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",vn=({id:e,label:t,value:r,onChange:n})=>{const[s,o]=v.useState(!1),[l,i]=v.useState(r),[f,c]=v.useState(!0),[m,p]=v.useState(!!r),[g,w]=v.useState(pe(r,"MM-DD-YYYY",!0).isValid()?pe(r,"MM-DD-YYYY",!0):null),d=v.useRef(null),u=v.useRef(null),x=v.useRef(null),E=(g==null?void 0:g.daysInMonth())||30,j=(g==null?void 0:g.startOf("month").day())||0;v.useEffect(()=>{l||(r=pe().format("MM-DD-YYYY"),p(!1)),i(r);const $=pe(r,"MM-DD-YYYY",!0);w($.isValid()?$:null),c($.isValid()&&r!=="")},[r]),v.useEffect(()=>{function $(k){d.current&&(d.current.contains(k.target)||o(!1))}if(s&&x.current){const k=x.current.querySelector('[role="button"]:not([disabled])');k==null||k.focus(),document.addEventListener("mousedown",$)}return()=>{document.removeEventListener("mousedown",$)}},[s]);const R=$=>{var V;const k=$.format("MM-DD-YYYY");p(!0),w($),i(k),c(!0),n(k),o(!1),(V=u.current)==null||V.focus()},D=($,k)=>{$.key==="Enter"&&R(k)},z=$=>{const k=$.target.value;if(i(k),p(!0),!/^\d{1,2}-\d{2}-\d{4}$/.test(k)){c(!1),n(k);return}const K=pe(k,"MM-DD-YYYY",!0);K.isValid()?(console.log("MAYBEDATE IS VALID"),w(K),c(!0),n(k)):(console.log("MAYBEDATE IS --NOT-- VALID"),c(!1),n(k))},T=()=>{o($=>!$)},G=()=>{g&&w(g.subtract(1,"month"))},F=()=>{g&&w(g.add(1,"month"))},Y=()=>{if(!g)return null;const $=[];for(let k=0;k<j;k++)$.push(a.jsx("div",{className:"w-8 h-8"},`empty-${k}`));for(let k=1;k<=E;k++){const V=g.date(k);$.push(a.jsx("button",{role:"presentation",tabIndex:0,onClick:()=>R(V),onKeyDown:K=>D(K,V),className:`w-8 h-8 ${V.isSame(g,"date")?"bg-blue-500 text-white":""} hover:bg-blue-100 focus:ring`,"aria-label":V.format("MMMM D, YYYY"),children:k},k))}return $};return a.jsxs("div",{className:"relative",ref:d,children:[a.jsx("label",{htmlFor:e,id:"date-picker-input",className:"block text-sm font-medium text-gray-700",children:t}),a.jsxs("div",{className:"flex items-center mt-1",children:[a.jsx("input",{id:e,type:"text","aria-labelledby":"date-picker-input",ref:u,value:m?l:"",onChange:z,placeholder:"MM-DD-YYYY",className:`block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
29
- focus:border-blue-500 pl-1 focus:outline-none`}),a.jsx("button",{type:"button",onClick:T,className:`px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
30
- focus:outline-none focus:border-blue-500`,"aria-label":"Open calendar","aria-haspopup":"dialog","aria-expanded":s,"aria-controls":`${e}-dialog`,children:a.jsx("img",{src:xn,alt:"calendar icon",className:"size-6"})})]}),s&&a.jsxs("div",{ref:x,id:`${e}-dialog`,role:"dialog","aria-label":"Calendar",className:"absolute z-10 bg-white shadow-lg rounded-md p-1",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsx("button",{onClick:G,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:"<"}),a.jsx("div",{className:"text-lg font-semibold",children:g==null?void 0:g.format("MMMM YYYY")}),a.jsx("button",{onClick:F,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:">"})]}),a.jsxs("div",{className:"grid grid-cols-7 gap-1 p-1",children:[a.jsx("p",{className:"pl-1",children:"Su"}),a.jsx("p",{className:"pl-1",children:"Mo"}),a.jsx("p",{className:"pl-1",children:"Tu"}),a.jsx("p",{className:"pl-1",children:"We"}),a.jsx("p",{className:"pl-1",children:"Th"}),a.jsx("p",{className:"pl-2",children:"Fr"}),a.jsx("p",{className:"pl-1",children:"Sa"}),Y()]})]}),!f&&a.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]",wn=[{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]"}],vt=v.forwardRef(({className:e,variant:t="default",label:r,labelClassName:n,labelBaseColor:s="#fff",textShadow:o=!1,...l},i)=>{const[f,c]=v.useState(),[m,p]=v.useState(Je),[g,w]=v.useState(!1),d=v.useRef(null);if(v.useEffect(()=>{var u;t&&p(S(Je,(u=wn.find(x=>x.variant===t))==null?void 0:u.classes,e))},[e,t,g]),v.useEffect(()=>{const u=d.current;if(!u)return;const x=E=>{const j=getComputedStyle(u);c(j.backgroundColor),w(E)};return x(!0),u.addEventListener("mouseover",()=>x(!0)),u.addEventListener("mouseout",()=>x(!1)),()=>{u.removeEventListener("mouseover",()=>x),u.removeEventListener("mouseout",()=>x)}},[s,g]),!["default","Outline","nonHover","MedCard"].includes(t))throw new Error(`Invalid variant: "${t}". Valid variants are: "default", "Outline", "nonHover", "MedCard".`);return a.jsxs("span",{className:"group relative",children:[a.jsxs("span",{className:S("absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto",n),style:{background:`linear-gradient(to bottom, ${s} 0%, ${s} 50%, ${f} 60%, ${f} 100%)`,textShadow:o?`1px 1px 2px ${s}, 0 0 1em ${s}, 0 0 0.2em ${s}`:""},children:[l.required&&a.jsx("span",{className:"text-red-500",children:"*"}),r]}),a.jsx("input",{className:m,"aria-label":r,ref:u=>{typeof i=="function"?i(u):i&&(i.current=u),d.current=u},...l})]})});vt.displayName="Input";const wt=({items:e,header:t,className:r="",itemClassName:n="",children:s,withDividers:o=!1,dividerColorClass:l="",isDecimal:i=!1,isDisc:f=!1})=>a.jsxs("div",{className:"p-0 m-0",children:[a.jsx("p",{children:t}),a.jsxs("ul",{className:S("pl-10 list-none w-full",i?"list-decimal":"",f?"list-disc":"",r),children:[e&&e.map((c,m)=>a.jsx(Ye,{className:S("w-full",o&&m!==e.length-1?"border-b":"",l!==""&&m!==e.length-1?"border-"+l:"",n),children:c.children},m)),s&&M.Children.map(s,(c,m)=>M.isValidElement(c)?M.cloneElement(c,{className:S(c.props.className,"w-full",o&&m!==M.Children.count(s)-1?"border-b":"",l!==""&&m!==M.Children.count(s)-1?"border-"+l:"")}):c)]})]}),Ye=({className:e,children:t})=>a.jsx("li",{className:S(e),children:t}),ne={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"}},yn=({isOpen:e,variant:t="default",onClose:r,title:n,className:s,clickOutsideCloses:o=!1,displayClosingX:l=!0,closeButtonText:i="Close",continueButton:f=!1,continueButtonHandler:c,continueButtonText:m="Continue",children:p})=>{const g=v.useRef(null),w=v.useRef(null);if(v.useEffect(()=>{if(o){const u=x=>{g.current&&!g.current.contains(x.target)&&r()};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}}},[r]),v.useEffect(()=>{var E;const u=j=>{j.key==="Escape"&&e&&r()},x=j=>{var T;const R=(T=g.current)==null?void 0:T.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),D=R==null?void 0:R[0],z=R==null?void 0:R[R.length-1];j.key==="Tab"&&R&&(j.shiftKey&&document.activeElement===D?(j.preventDefault(),z==null||z.focus()):!j.shiftKey&&document.activeElement===z&&(j.preventDefault(),D==null||D.focus()))};return e?(document.body.style.overflow="hidden",window.addEventListener("keydown",u),window.addEventListener("keydown",x),(E=w.current)==null||E.focus()):document.body.style.overflow="auto",()=>{window.removeEventListener("keydown",u),window.removeEventListener("keydown",x),document.body.style.overflow="auto"}},[e,r]),!e)return null;const d=()=>{c&&c(),r()};return a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",id:"backdrop",children:a.jsxs("div",{className:S(ne[t].container,s),ref:g,"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[a.jsxs("div",{className:S(ne[t].title),children:[a.jsx("h2",{id:"modal-title",className:S("text-lg font-medium text-gray-900",ne[t].titleHeading),children:n}),l&&a.jsx("button",{onClick:r,className:S("text-xl mt-[-1em] text-gray-500 hover:text-gray-700 focus:outline-none focus:ring",ne[t].titleHeading),"aria-label":"Close modal",children:"×"})]}),a.jsx("div",{className:S(ne[t].body),children:p}),a.jsxs("div",{className:"mt-4 flex justify-end",children:[a.jsx("button",{ref:w,onClick:r,className:S(ne[t].button),children:i}),f&&a.jsx("button",{onClick:d,className:S(ne[t].button,"ms-4"),children:m})]})]})})},Cn=v.forwardRef(({className:e="",iconLeft:t,iconLeftSelected:r,iconRight:n,iconRightSelected:s,children:o,onClick:l,selected:i=!1,...f},c)=>{const[m,p]=v.useState(),[g,w]=v.useState(),[d,u]=v.useState("bg-white");return v.useEffect(()=>{const x="text-lg font-normal font-['Arial'] leading-normal ";w(t&&n?x:t?x+"mr-6":n?x+"ml-6":x+"ml-6 mr-6")},[t,n,o]),v.useEffect(()=>{u(i?"bg-[#092068] focus:bg-[#092068] text-white":"bg-white"),p(S("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",d,e))},[e,d,i]),a.jsxs("button",{onClick:l,className:m,ref:c,...f,children:[t&&a.jsx("span",{className:"ml-6 mr-2.5 size-6",children:i&&r?r:t}),a.jsx("div",{className:g,children:o}),n&&a.jsx("span",{className:"ml-2.5 mr-6 size-6",children:i&&s?s:n})]})}),kn=v.forwardRef(({className:e="",iconLeft:t,iconRight:r,underline:n=!1,subHeader:s=!1,children:o,...l},i)=>{const[f,c]=v.useState(""),m="px-2 justify-start items-start gap-4 inline-flex w-full";return v.useEffect(()=>{c(S(m,n?"border-b-2 border-black":"",e))},[e,n]),a.jsxs("div",{className:f,children:[a.jsxs("div",{className:"grow shrink basis-0 justify-start items-start gap-2 flex",children:[t&&t,a.jsxs("div",{className:"flex-col justify-start items-start inline-flex w-full",children:[a.jsx("div",{className:"self-stretch text-[#07192d] text-[40px] font-normal font-['Arial'] leading-[48px] pb-1",children:o}),s&&a.jsx("div",{className:"text-[#07192d] text-xl font-normal font-['Arial'] leading-[30px]",children:s})]})]}),r&&r]})}),Nn="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]",Xe={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"},jn=({className:e,label:t,options:r,optionsLabel:n,disabled:s=!1,variant:o="default",setSelectedOption:l,error:i=!1,width:f="",...c})=>{const m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),[w,d]=v.useState(!1),[u,x]=v.useState(!1),[E,j]=v.useState(n||"Options"),[R,D]=v.useState(null),z=v.useRef("bottom-[60px]"),[T,G]=v.useState("");v.useEffect(()=>{if(p.current){const y=p.current.getBoundingClientRect(),b=Math.floor(y.height)+2;z.current="bottom-["+b+"px]",console.log("button height: ",z.current)}},[p.current]);const F=()=>{if(m.current&&g.current){const y=m.current.getBoundingClientRect(),b=g.current.offsetHeight;console.log("dropdownHeight: ",b);const h=window.innerHeight,N=document.body.offsetHeight,C=h>N?N:h;console.log("windowHeight: ",h),console.log("documentHeight: ",N),console.log("calculated containerHeight: ",C),console.log("buttonRect.bottom: ",y.bottom),C-y.bottom<b&&y.top>b?x(!0):x(!1)}},Y=v.useRef([]);v.useEffect(()=>{Y.current=Y.current.slice(0,r.length)},[r]);const[$,k]=v.useState(0),V=()=>{d(!w),k(0)};v.useEffect(()=>{G(i?"border-2 border-[#ff0004]":"")},[i]),v.useEffect(()=>{function y(N){w&&m.current&&!m.current.contains(N.target)&&d(!1)}function b(N){w&&N.key==="Escape"&&d(!1)}function h(N){w&&m.current&&!m.current.contains(N.target)&&d(!1)}return document.addEventListener("mousedown",y),document.addEventListener("touchend",y),document.addEventListener("keydown",b),document.addEventListener("focusin",h),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("touchend",y),document.removeEventListener("keydown",b),document.removeEventListener("focusin",h)}},[w]),v.useEffect(()=>{w&&F()},[w]),v.useEffect(()=>{var y;w&&((y=Y.current[$])==null||y.focus())},[$,w]);const K=y=>{if(w)switch(y.key){case"ArrowDown":y.preventDefault(),k(b=>{const h=(b+1)%r.length;return D(h),h});break;case"ArrowUp":y.preventDefault(),k(b=>{const h=(b-1+r.length)%r.length;return D(h),h});break;case"Home":y.preventDefault(),k(0);break;case"End":y.preventDefault(),k(r.length-1);break}};return a.jsxs("div",{className:S("relative inline-block text-left"),ref:m,...c,"aria-disabled":s,children:[t?a.jsx("p",{className:"text-[#092068] mb-2",children:t}):"",a.jsxs("button",{onClick:V,ref:p,className:S(Nn,Xe[o]||Xe.default,T,e,f,w&&u&&"rounded-b-lg"||w&&!u&&"rounded-t-lg"||"rounded-lg"),"aria-label":"Select options - "+E,"aria-disabled":s,"aria-expanded":w,"aria-haspopup":"listbox",disabled:s,tabIndex:0,children:[E,a.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:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),w&&a.jsx("div",{role:"listbox",ref:g,"aria-label":"Select option",onKeyDown:K,className:S("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",f,w&&u&&"rounded-t-lg pt-1"||w&&!u&&"rounded-b-lg pb-1",u&&z.current),children:r.map((y,b)=>a.jsx("button",{ref:h=>Y.current[b]=h,className:`block w-full px-4 py-2 text-left text-sm text-gray-700
31
- hover:bg-[#092068]/20 focus:outline-none focus:bg-[#092068]/20`,role:"option","aria-selected":R===b,"aria-label":"option "+y.name,onClick:()=>{D(b),j(y.name),l(y.value||y.name),d(!1)},onKeyDown:h=>{h.key==="Enter"||h.code==="Enter"||h.key===" "?(D(b),j(y.name),l(y.value||y.name),d(!1)):h.key==="Escape"&&d(!1)},children:y.name},y.name))})]})},Sn={default:" h-48 w-56 pt-2",custom:" h-48 w-56 pt-2"},yt=M.forwardRef(({className:e,variant:t="default",children:r,...n},s)=>a.jsx("div",{className:S("flex flex-row flex-wrap animate-pulse",Sn[t],e),"aria-label":"Skeleton Component",role:"status",ref:s,...n,children:r}));yt.displayName="Card";const En=({className:e="",inline:t=!1})=>t?a.jsx("div",{role:"presentation",className:S("rounded-full bg-slate-300 h-6 w-6 inline-block mx-2 me-1 my-1",e)}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"basis-full h-0"}),a.jsx("div",{role:"presentation",className:S("rounded-full bg-slate-300 h-6 w-6 mx-2 my-1 me-0",e)}),a.jsx("div",{className:"basis-full h-0"})]}),Mn=({className:e="",inline:t=!1})=>t?a.jsx("div",{role:"presentation",className:S("rounded-lg bg-slate-300 h-6 inline-block mx-2 my-1 grow",e)}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"basis-full h-0"}),a.jsx("div",{role:"presentation",className:S("rounded-lg bg-slate-300 h-6 mx-2 my-1 grow",e)}),a.jsx("div",{className:"basis-full h-0"})]}),$n=({className:e=""})=>a.jsx("div",{role:"presentation",className:S("rounded-lg bg-slate-300 grow h-24 my-1 mx-2",e)}),Dn=({className:e=""})=>a.jsx("div",{role:"presentation",className:"basis-full h-0"}),Ln="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",Rn="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",_n="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",Le=[{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`]"}],On=v.forwardRef(({variant:e="available",className:t,image:r,childClasses:n,imageClasses:s,children:o,...l},i)=>{const[f,c]=v.useState(),[m,p]=v.useState(),[g,w]=v.useState();return v.useEffect(()=>{var d,u,x;c(S((d=Le.find(E=>E.variant===e))==null?void 0:d.classes,t)),w(S((u=Le.find(E=>E.variant===e))==null?void 0:u.childClasses,n)),p(S((x=Le.find(E=>E.variant===e))==null?void 0:x.imgDivClasses,s))},[e,t,n,s]),a.jsxs("div",{className:f,ref:i,children:[a.jsx("div",{className:m,children:r||(e==="available"?a.jsx("img",{src:Rn,alt:"check mark"}):e==="inProgress"?a.jsx("img",{src:Ln,alt:"clock"}):a.jsx("img",{src:_n,alt:"close"}))}),a.jsx("div",{className:g,children:o})]})}),Re={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 Ct=(e=>(e.Right="right",e.Left="left",e.IconOnly="iconOnly",e.None="undefined",e))(Ct||{});const Vn=({variant:e="default",tabs:t,className:r,containerClassName:n})=>{const[s,o]=v.useState(0),[l,i]=v.useState(!1),[f,c]=v.useState(""),m=v.useRef([]);e===""&&(e="default");const p=v.useCallback(d=>{var u;(u=m.current[d])==null||u.focus()},[]),g=v.useCallback((d,u)=>{if(d.key==="ArrowRight"){const x=(u+1)%t.length;o(x),p(x)}else if(d.key==="ArrowLeft"){const x=(u-1+t.length)%t.length;o(x),p(x)}else d.key==="Home"?(o(0),p(0)):d.key==="End"&&(o(t.length-1),p(t.length-1))},[t.length,p]),w=d=>{i(!0),c(d)};return a.jsxs("div",{className:S("w-full",n),children:[a.jsx("div",{role:"tablist","aria-label":"Tabs",className:S(Re[e].container,r),children:t.map((d,u)=>a.jsxs("button",{role:"tab",id:`tab-${d.id}`,onMouseEnter:()=>w(d.id),onMouseLeave:()=>i(!1),"aria-selected":s===u,"aria-controls":`panel-${d.id}`,tabIndex:s===u?0:-1,ref:x=>m.current[u]=x,className:`flex px-4 py-2 focus:outline-none ${e==="outline"?`border-[#092068] ${u===0?"border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md":u===t.length-1?"border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md":"border-t-2 border-b-2"}`:""} ${S(s===u?Re[e].active:Re[e].inactive)}`,onClick:()=>o(u),onKeyDown:x=>g(x,u),children:[d.iconPosition==="left"&&d.activeIcon&&a.jsx("span",{className:"icon-left mr-3 size-6",children:s===u?l&&f===d.id?d.inactiveIcon:d.activeIcon:d.inactiveIcon}),d.iconPosition==="iconOnly"&&d.activeIcon?a.jsx("span",{className:"size-6",children:s===u?l&&f===d.id?d.inactiveIcon:d.activeIcon:d.inactiveIcon}):a.jsx("span",{className:"button-text",children:d.label}),d.iconPosition==="right"&&d.activeIcon&&a.jsx("span",{className:"icon-right ml-3 size-6",children:s===u?l&&f===d.id?d.inactiveIcon:d.activeIcon:d.inactiveIcon})]},d.id))}),t.map((d,u)=>a.jsx("div",{role:"tabpanel",id:`panel-${d.id}`,"aria-labelledby":`tab-${d.id}`,hidden:s!==u,className:"p-4",children:d.content},d.id))]})},In="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",zn="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",ye=[{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"}],An=v.forwardRef(({defaultChecked:e=!1,disabled:t=!1,onCheckedChange:r,label:n,className:s,classNameButton:o,variant:l="default",type:i="button",children:f,...c},m)=>{var d,u,x,E;const[p,g]=v.useState(e),w=()=>{const j=!p;g(j),r&&r(j)};return a.jsx("button",{onClick:w,disabled:t,role:"switch","aria-checked":p,"aria-disabled":t,...c,ref:m,"aria-label":n||`Toggle ${p?"on":"off"}`,className:S(`${In}
32
- ${p?(d=ye.find(j=>j.variant===l))==null?void 0:d.toggledClasses:(u=ye.find(j=>j.variant===l))==null?void 0:u.classes}`,s),children:a.jsx("div",{className:S(`${zn}
33
- ${p?(x=ye.find(j=>j.variant===l))==null?void 0:x.toggledButtonClasses:(E=ye.find(j=>j.variant===l))==null?void 0:E.buttonClasses}`,o)})})}),Tn=v.forwardRef(({className:e,appName:t,image:r,imageClassname:n="",clickOutsideCloses:s,menu:o=!1,menuClassName:l="",version:i,menuItems:f,children:c,...m},p)=>{const g=v.useRef(null),[w,d]=v.useState(!1);return v.useEffect(()=>{if(s){const u=x=>{g.current&&!g.current.contains(x.target)&&d(!1)};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}}},[d]),console.log("menu: ",o),console.log("showMenu: ",w),a.jsxs(a.Fragment,{children:[o&&a.jsx("button",{className:S("size-8 mb-4",l),onClick:()=>d(!w),children:a.jsx(Pn,{classes:"fill-slate-500 hover:fill-black size-8"})}),a.jsxs("div",{ref:g,className:S("relative w-56 h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto",o&&"fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300",o&&w&&"translate-x-0",e),children:[a.jsx("div",{className:"w-16 h-16 mx-auto",children:a.jsx("img",{src:r,className:S("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1",n),alt:"application icon"})}),a.jsx("div",{className:"text-center mt-2",children:t}),a.jsx("div",{className:"[204px] mt-3 h-px bg-[#d9d9d9]"}),a.jsx(wt,{className:"pl-6 mt-6",children:f.map((u,x)=>a.jsx(Ye,{className:"pb-4",children:u.target&&a.jsx(pt,{to:u.target,children:u.children})},x))}),a.jsx("div",{className:"align-bottom mt-auto text-right right-2 bottom-1",children:i})]})]})}),Pn=({classes:e="fill-green-600"})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",className:e,children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})]});exports.Accordion=dr;exports.AccordionParent=ur;exports.Badge=gr;exports.BreadCrumbs=cn;exports.Button=xr;exports.Card=bt;exports.CharacterCounter=hn;exports.DatePicker=vn;exports.IconPosition=Ct;exports.Input=vt;exports.List=wt;exports.ListItem=Ye;exports.Modal=yn;exports.Pill=Cn;exports.SectionHeader=kn;exports.Select=jn;exports.SideBarNav=Tn;exports.SkelCircle=En;exports.SkelLine=Mn;exports.SkelRow=Dn;exports.SkelSection=$n;exports.Skeleton=yt;exports.Status=On;exports.Tabs=Vn;exports.Toggle=An;
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
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;