@dhasdk/simple-ui 0.0.30 → 0.0.31
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/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),de=require("react-router-dom");function Ae(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const Q=Ae(g),xe="-",Oe=e=>{const r=Te(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const a=d.split(xe);return a[0]===""&&a.length!==1&&a.shift(),Se(a,r)||He(d)},getConflictingClassGroupIds:(d,a)=>{const x=n[d]||[];return a&&s[d]?[...x,...s[d]]:x}}},Se=(e,r)=>{var d;if(e.length===0)return r.classGroupId;const n=e[0],s=r.nextPart.get(n),i=s?Se(e.slice(1),s):void 0;if(i)return i;if(r.validators.length===0)return;const l=e.join(xe);return(d=r.validators.find(({validator:a})=>a(l)))==null?void 0:d.classGroupId},we=/^\[(.+)\]$/,He=e=>{if(we.test(e)){const r=we.exec(e)[1],n=r==null?void 0:r.substring(0,r.indexOf(":"));if(n)return"arbitrary.."+n}},Te=e=>{const{theme:r,prefix:n}=e,s={nextPart:new Map,validators:[]};return Be(Object.entries(e.classGroups),n).forEach(([l,d])=>{he(d,s,l,r)}),s},he=(e,r,n,s)=>{e.forEach(i=>{if(typeof i=="string"){const l=i===""?r:ye(r,i);l.classGroupId=n;return}if(typeof i=="function"){if(Ye(i)){he(i(s),r,n,s);return}r.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([l,d])=>{he(d,ye(r,l),n,s)})})},ye=(e,r)=>{let n=e;return r.split(xe).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},Ye=e=>e.isThemeGetter,Be=(e,r)=>r?e.map(([n,s])=>{const i=s.map(l=>typeof l=="string"?r+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([d,a])=>[r+d,a])):l);return[n,i]}):e,Pe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,n=new Map,s=new Map;const i=(l,d)=>{n.set(l,d),r++,r>e&&(r=0,s=n,n=new Map)};return{get(l){let d=n.get(l);if(d!==void 0)return d;if((d=s.get(l))!==void 0)return i(l,d),d},set(l,d){n.has(l)?n.set(l,d):i(l,d)}}},Me="!",Ge=e=>{const{separator:r,experimentalParseClassName:n}=e,s=r.length===1,i=r[0],l=r.length,d=a=>{const x=[];let b=0,w=0,v;for(let p=0;p<a.length;p++){let S=a[p];if(b===0){if(S===i&&(s||a.slice(p,p+l)===r)){x.push(a.slice(w,p)),w=p+l;continue}if(S==="/"){v=p;continue}}S==="["?b++:S==="]"&&b--}const y=x.length===0?a:a.substring(w),C=y.startsWith(Me),o=C?y.substring(1):y,c=v&&v>w?v-w:void 0;return{modifiers:x,hasImportantModifier:C,baseClassName:o,maybePostfixModifierPosition:c}};return n?a=>n({className:a,parseClassName:d}):d},Fe=e=>{if(e.length<=1)return e;const r=[];let n=[];return e.forEach(s=>{s[0]==="["?(r.push(...n.sort(),s),n=[]):n.push(s)}),r.push(...n.sort()),r},Ue=e=>({cache:Pe(e.cacheSize),parseClassName:Ge(e),...Oe(e)}),We=/\s+/,Ze=(e,r)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i}=r,l=[],d=e.trim().split(We);let a="";for(let x=d.length-1;x>=0;x-=1){const b=d[x],{modifiers:w,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:C}=n(b);let o=!!C,c=s(o?y.substring(0,C):y);if(!c){if(!o){a=b+(a.length>0?" "+a:a);continue}if(c=s(y),!c){a=b+(a.length>0?" "+a:a);continue}o=!1}const p=Fe(w).join(":"),S=v?p+Me:p,L=S+c;if(l.includes(L))continue;l.push(L);const V=i(c,o);for(let I=0;I<V.length;++I){const R=V[I];l.push(S+R)}a=b+(a.length>0?" "+a:a)}return a};function Ke(){let e=0,r,n,s="";for(;e<arguments.length;)(r=arguments[e++])&&(n=Ne(r))&&(s&&(s+=" "),s+=n);return s}const Ne=e=>{if(typeof e=="string")return e;let r,n="";for(let s=0;s<e.length;s++)e[s]&&(r=Ne(e[s]))&&(n&&(n+=" "),n+=r);return n};function qe(e,...r){let n,s,i,l=d;function d(x){const b=r.reduce((w,v)=>v(w),e());return n=Ue(b),s=n.cache.get,i=n.cache.set,l=a,a(x)}function a(x){const b=s(x);if(b)return b;const w=Ze(x,n);return i(x,w),w}return function(){return l(Ke.apply(null,arguments))}}const A=e=>{const r=n=>n[e]||[];return r.isThemeGetter=!0,r},$e=/^\[(?:([a-z-]+):)?(.+)\]$/i,Je=/^\d+\/\d+$/,Qe=new Set(["px","full","screen"]),Xe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,st=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>se(e)||Qe.has(e)||Je.test(e),q=e=>ne(e,"length",ut),se=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>ne(e,"number",se),le=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith("%")&&se(e.slice(0,-1)),_=e=>$e.test(e),J=e=>Xe.test(e),ot=new Set(["length","size","percentage"]),at=e=>ne(e,ot,De),lt=e=>ne(e,"position",De),it=new Set(["image","url"]),ct=e=>ne(e,it,gt),dt=e=>ne(e,"",ft),ie=()=>!0,ne=(e,r,n)=>{const s=$e.exec(e);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):n(s[2]):!1},ut=e=>et.test(e)&&!tt.test(e),De=()=>!1,ft=e=>rt.test(e),gt=e=>st.test(e),bt=()=>{const e=A("colors"),r=A("spacing"),n=A("blur"),s=A("brightness"),i=A("borderColor"),l=A("borderRadius"),d=A("borderSpacing"),a=A("borderWidth"),x=A("contrast"),b=A("grayscale"),w=A("hueRotate"),v=A("invert"),y=A("gap"),C=A("gradientColorStops"),o=A("gradientColorStopPositions"),c=A("inset"),p=A("margin"),S=A("opacity"),L=A("padding"),V=A("saturate"),I=A("scale"),R=A("sepia"),O=A("skew"),P=A("space"),W=A("translate"),G=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",_,r],z=()=>[_,r],F=()=>["",Z,q],M=()=>["auto",se,_],u=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],f=()=>["solid","dashed","dotted","double","none"],h=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],m=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",_],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[se,_];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[Z,q],blur:["none","",J,_],brightness:E(),borderColor:[e],borderRadius:["none","","full",J,_],borderSpacing:z(),borderWidth:F(),contrast:E(),grayscale:N(),hueRotate:E(),invert:N(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[nt,q],inset:j(),margin:j(),opacity:E(),padding:z(),saturate:E(),scale:E(),sepia:N(),skew:E(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...u(),_]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[c]}],"inset-x":[{"inset-x":[c]}],"inset-y":[{"inset-y":[c]}],start:[{start:[c]}],end:[{end:[c]}],top:[{top:[c]}],right:[{right:[c]}],bottom:[{bottom:[c]}],left:[{left:[c]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le,_]}],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",_]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",le,_]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",le,_]},_]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[le,_]},_]}],"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",_]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...m()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...m(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...m(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_,r]}],"min-w":[{"min-w":[_,r,"min","max","fit"]}],"max-w":[{"max-w":[_,r,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[_,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_,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",_]}],"line-clamp":[{"line-clamp":["none",se,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Z,_]}],"list-image":[{"list-image":["none",_]}],"list-style-type":[{list:["none","disc","decimal",_]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...f(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Z,q]}],"underline-offset":[{"underline-offset":["auto",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:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_]}],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",_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...u(),lt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",at]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ct]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[o]}],"gradient-via-pos":[{via:[o]}],"gradient-to-pos":[{to:[o]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...f(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:f()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...f()]}],"outline-offset":[{"outline-offset":[Z,_]}],"outline-w":[{outline:[Z,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[Z,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,dt]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...h(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":h()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",J,_]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[v]}],saturate:[{saturate:[V]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",_]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",_]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[le,_]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_]}],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",_]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",_]}],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"]}}},k=qe(bt),mt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-plus'%3e%3cpath%20d='M5%2012h14'/%3e%3cpath%20d='M12%205v14'/%3e%3c/svg%3e",pt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-minus'%3e%3cpath%20d='M5%2012h14'/%3e%3c/svg%3e",ht="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-down'%3e%3cpath%20d='m6%209%206%206%206-6'/%3e%3c/svg%3e",xt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-up'%3e%3cpath%20d='m18%2015-6-6-6%206'/%3e%3c/svg%3e",vt="mt-[-0.5rem]",wt="flex justify-between items-center w-full p-1 px-4 text-left border border-gray-300 mt-2",yt="px-4 py-1 border border-t-0 border-gray-300",kt={},jt={},Ct=g.forwardRef(({variant:e="default",label:r,classNameContainer:n="",chevron:s=!0,iconAccordionOpened:i,iconAccordionClosed:l,rounded:d=!1,classNameHeading:a="",classNameContent:x="",onExpand:b,singleOpen:w,index:v,children:y,...C},o)=>{const[c,p]=g.useState(!1),S=`accordion-${v??r.replace(/\s+/g,"-").toLowerCase()}`,L=()=>{b&&w&&b(p),p(!c)},V=I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),L(),console.log("key pressed, event.key === '"+I.key+"', index: "+v+", label: "+r))};return t.jsxs("div",{ref:o,className:n,children:[t.jsxs("button",{className:k(wt,kt.variant,a,d&&(c?"rounded-t-md":"rounded-md")),"aria-controls":`${S}-content`,"aria-expanded":c,id:`${S}-header`,onClick:L,onKeyDown:V,...C,children:[t.jsx("span",{children:r}),t.jsx("span",{children:c?i||t.jsx("img",{src:s?xt:pt,alt:"Close Icon"}):l||t.jsx("img",{src:s?ht:mt,alt:"Open Icon"})})]}),c&&t.jsx("div",{className:k(yt,jt.variant,x,d&&"rounded-b-md"),id:`${S}-content`,role:"region","aria-labelledby":`${S}-header`,children:y})]})}),St=g.forwardRef(({children:e,variant:r="default",chevron:n,iconAccordionOpened:s,iconAccordionClosed:i,rounded:l,classNameContainer:d,singleOpen:a=!0,classNameChildHeading:x,classNameChildContent:b,...w},v)=>{const[y,C]=g.useState(null),o=c=>{y&&y(!1),C(()=>c)};return t.jsx("div",{ref:v,...w,className:k(vt,d),children:g.Children.map(e,(c,p)=>g.isValidElement(c)?g.cloneElement(c,{...c.props,variant:r,chevron:n,iconAccordionOpened:s,iconAccordionClosed:i,rounded:l,classNameHeading:k(x,c.props.classNameHeading),classNameContent:k(b,c.props.classNameContent),index:p,singleOpen:a,onExpand:S=>o(S)}):c)})}),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",Nt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_311_2053'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='red'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_311_2053)'%3e%3cpath%20id='warning_2'%20d='M1%2021L12%202L23%2021H1ZM12%2018C12.2833%2018%2012.5208%2017.9042%2012.7125%2017.7125C12.9042%2017.5208%2013%2017.2833%2013%2017C13%2016.7167%2012.9042%2016.4792%2012.7125%2016.2875C12.5208%2016.0958%2012.2833%2016%2012%2016C11.7167%2016%2011.4792%2016.0958%2011.2875%2016.2875C11.0958%2016.4792%2011%2016.7167%2011%2017C11%2017.2833%2011.0958%2017.5208%2011.2875%2017.7125C11.4792%2017.9042%2011.7167%2018%2012%2018ZM11%2015H13V10H11V15Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$t="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='emergency_home'%3e%3cmask%20id='mask0_320_1821'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_320_1821)'%3e%3cpath%20id='emergency_home_2'%20d='M11.9996%2022.0251C11.7329%2022.0251%2011.4788%2021.9751%2011.2371%2021.8751C10.9954%2021.7751%2010.7746%2021.6334%2010.5746%2021.4501L2.54961%2013.4251C2.36628%2013.2251%202.22461%2013.0043%202.12461%2012.7626C2.02461%2012.5209%201.97461%2012.2668%201.97461%2012.0001C1.97461%2011.7334%202.02461%2011.4751%202.12461%2011.2251C2.22461%2010.9751%202.36628%2010.7584%202.54961%2010.5751L10.5746%202.5501C10.7746%202.3501%2010.9954%202.20426%2011.2371%202.1126C11.4788%202.02093%2011.7329%201.9751%2011.9996%201.9751C12.2663%201.9751%2012.5246%202.02093%2012.7746%202.1126C13.0246%202.20426%2013.2413%202.3501%2013.4246%202.5501L21.4496%2010.5751C21.6496%2010.7584%2021.7954%2010.9751%2021.8871%2011.2251C21.9788%2011.4751%2022.0246%2011.7334%2022.0246%2012.0001C22.0246%2012.2668%2021.9788%2012.5209%2021.8871%2012.7626C21.7954%2013.0043%2021.6496%2013.2251%2021.4496%2013.4251L13.4246%2021.4501C13.2413%2021.6334%2013.0246%2021.7751%2012.7746%2021.8751C12.5246%2021.9751%2012.2663%2022.0251%2011.9996%2022.0251ZM10.9996%2013.0001H12.9996V7.0001H10.9996V13.0001ZM11.9996%2016.0001C12.2829%2016.0001%2012.5204%2015.9043%2012.7121%2015.7126C12.9038%2015.5209%2012.9996%2015.2834%2012.9996%2015.0001C12.9996%2014.7168%2012.9038%2014.4793%2012.7121%2014.2876C12.5204%2014.0959%2012.2829%2014.0001%2011.9996%2014.0001C11.7163%2014.0001%2011.4788%2014.0959%2011.2871%2014.2876C11.0954%2014.4793%2010.9996%2014.7168%2010.9996%2015.0001C10.9996%2015.2834%2011.0954%2015.5209%2011.2871%2015.7126C11.4788%2015.9043%2011.7163%2016.0001%2011.9996%2016.0001Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Dt="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='close_small'%20d='M1.40349%2010L0%208.60349L3.60898%204.98753L0%201.39651L1.40349%200L5.01247%203.60623L8.59651%200L10%201.39651L6.39102%204.98753L10%208.60349L8.59651%2010L5.01247%206.39377L1.40349%2010Z'%20fill='black'/%3e%3c/svg%3e",ke=[{variant:"default",subVariant:"default",classes:"mx-2 inline-flex items-center rounded-md bg-gray-500/10 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-400/20"},{variant:"default",subVariant:"gray",classes:"mx-2 inline-flex items-center rounded-md bg-gray-500/10 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-400/20"},{variant:"default",subVariant:"red",classes:"mx-2 inline-flex items-center rounded-md bg-red-500/10 px-2 py-1 text-xs font-medium text-red-700 ring-1 ring-inset ring-red-400/20"},{variant:"default",subVariant:"yellow",classes:"mx-2 inline-flex items-center rounded-md bg-yellow-500/10 px-2 py-1 text-xs font-medium text-yellow-700 ring-1 ring-inset ring-yellow-400/20"},{variant:"default",subVariant:"green",classes:"mx-2 inline-flex items-center rounded-md bg-green-500/10 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-500/20"},{variant:"default",subVariant:"blue",classes:"mx-2 inline-flex items-center rounded-md bg-blue-400/10 px-2 py-1 text-xs font-medium text-blue-400 ring-1 ring-inset ring-blue-400/30"},{variant:"warning",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#fff1be] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"warning",subVariant:"full",classes:"flex flex-row w-full bg-[#fff1be] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex"},{variant:"hazard",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#f4c2c2] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"hazard",subVariant:"full",classes:'flex flex-row w-full bg-[#f4c2c2] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"go",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#d6f4d5] border-[#40bf40] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"go",subVariant:"full",classes:'flex flex-row w-full bg-[#d6f4d5] border-[#40bf40] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"icon",subVariant:"default",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-gray-500 px-2 py-1 text-xs font-medium text-gray-700",classNameSvg:"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",classNameSvg:"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",classNameSvg:"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",classNameSvg:"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",classNameSvg:"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",classNameSvg:"size-1.5 fill-blue-400"},{variant:"media",subVariant:"default",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-gray-400 ring-1 ring-inset ring-gray-400/20 overflow-hidden"},{variant:"media",subVariant:"gray",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-400/20 overflow-hidden"},{variant:"media",subVariant:"green",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-400/20 overflow-hidden"}],Lt=g.forwardRef(({variant:e="default",subVariant:r="default",className:n,classNameSvg:s="size-1.5 fill-yellow-400",imagePath:i,imageAlt:l,classNameImage:d,children:a,...x},b)=>{const[w,v]=g.useState(),[y,C]=g.useState(),[o,c]=g.useState(Nt),p=()=>{v(k(w,"hidden"))};return g.useEffect(()=>{var V,I;const S=r==="custom"?"default":r,L=(V=ke.find(R=>R.variant===e&&R.subVariant===S))==null?void 0:V.classes;if(e==="icon"){const R=(I=ke.find(O=>O.variant===e&&O.subVariant===S))==null?void 0:I.classNameSvg;C(r==="custom"?k(R,s):R)}e==="hazard"?c($t):e==="go"&&c(Mt),v(k(L,n))},[r,n,e,s]),t.jsxs(t.Fragment,{children:[e==="default"&&t.jsx("div",{className:w,...x,ref:b,children:a}),(e==="warning"||e==="hazard"||e==="go")&&t.jsxs("div",{className:w,children:[t.jsx("div",{className:"size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative",children:t.jsx("div",{className:"left-0 top-0 absolute",children:t.jsx("img",{className:"size-6",src:o,alt:`${e} icon`})})}),t.jsx("div",{className:"grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]",children:a}),t.jsx("button",{onClick:p,className:"size-3 py-px justify-center items-center gap-2.5 flex","aria-label":"Close modal",children:t.jsx("img",{src:Dt,alt:"close alert icon"})})]}),e==="icon"&&t.jsxs("div",{className:w,...x,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})}),a]}),e==="media"&&t.jsxs("div",{className:w,...x,ref:b,children:[t.jsx("div",{className:"col-start-1 col-span-2",children:t.jsx("img",{className:k("h-full",d),src:i,alt:l})}),t.jsx("div",{className:"w-full ml-2 col-start-3 col-span-3",children:a})]})]})}),zt="inline-flex items-center justify-center whitespace-nowrap rounded-md ring-offset-background transition-colors focus-visible:outline-none font-[`Arial`] disabled:pointer-events-none text-sm md:text-base lg:text-lg disabled:opacity-50 px-6 py-[12px] md:py-[14px] lg:py-[16px] ",be={default:{normal:"border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-lg hover:text-white hover:border-slate-600 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 py-0 md:py-0 lg:py-0 h-[48px] mt-1",selected:"bg-gray-500 text-white"},filled:{normal:"rounded-md bg-[#092068] hover:bg-[#0c2c8e] text-white text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] active:bg-[#092068]/80 disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] disabled:border-2 lg:h-14",selected:""},outline:{normal:"rounded-md border-[#092068] bg-white border-2 text-[#092068] text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] lg:h-14 text-lg",selected:""},transparent:{normal:"rounded-md text-lg text-[#092068] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] disabled:text-[#939194] w-[157px] md:w-[163px] lg:w-[169px] h-12 md:h-[52px] lg:h-14",selected:""}},_t=g.forwardRef(({label:e,onClick:r,className:n,icon:s,iconPosition:i,variant:l="default",type:d="button",children:a,selected:x=!1,classNameSelected:b,...w},v)=>{const[y,C]=g.useState("");return g.useEffect(()=>{let o=be[l].normal||be.default.normal;x&&!b?o=k(o,be[l].selected):x&&b&&(o=k(o,b)),C(k(zt,o))},[x,b,l]),t.jsxs("button",{type:d,onClick:r,className:`${i==="iconOnly"?k(y,"px-[12px] md:px-[14px] lg:px-[16px] py-[12px] md:py-[14px] lg:py-[16px]",n):k(y,n)}`,ref:v,...w,children:[i==="left"&&s&&t.jsx("span",{className:"icon-left mr-3 size-6",children:s}),i==="iconOnly"&&s?t.jsx("span",{className:"size-6",children:s}):t.jsx("span",{className:"button-text",children:a||e}),i==="right"&&s&&t.jsx("span",{className:"icon-right ml-3 size-6",children:s})]})}),Et="data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%201'%20d='M1%201L5%205.5L1%2010'%20stroke='%23747476'%20stroke-width='2'/%3e%3c/svg%3e",It="data:image/svg+xml,%3csvg%20width='12'%20height='15'%20viewBox='0%200%2012%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Exclude'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%200.5L0%205.75V14.5H4.28571V10.125H7.71429V14.5H12V5.75L6%200.5Z'%20fill='%23747476'/%3e%3c/svg%3e",Vt={default:"",bold:"font-bold"},Rt=Q.forwardRef(({classNameContainer:e,className:r,variant:n="default",auto:s=!0,separator:i=Et,...l},d)=>{const a=de.useLocation().pathname.split("/").filter(x=>x!=="");return t.jsx("nav",{className:k(Vt[n],e),...l,ref:d,"aria-label":"Breadcrumbs",children:t.jsxs("ol",{className:"flex list-none",children:[t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[t.jsx(de.Link,{to:"/",className:k("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2 hidden md:inline-flex",r),children:"Homepage"}),t.jsx(de.Link,{to:"/",className:k("capitalize me-2 inline-flex md:hidden",r),children:t.jsx("img",{src:It,alt:"home icon"})}),a.length>1?t.jsx("span",{className:k("me-2",r),children:t.jsx("img",{src:i,alt:"vector"})}):""]}),a.map((x,b)=>{const w="/"+a.slice(0,b+1).join("/");return t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[b===a.length-1?t.jsx("span",{className:"text-black font-bold capitalize","aria-current":"page",children:decodeURIComponent(x).replace(/-/g," ")}):t.jsx(de.Link,{to:w,className:k("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2",r),children:decodeURIComponent(x).replace(/-/g," ")}),b<a.length-1&&t.jsx("span",{className:k("me-2",r),children:t.jsx("img",{src:i,alt:"vector"})})]},b)})]})})}),At={default:"flex flex-col w-64 max-w-64",imageBottom:"flex flex-col-reverse w-64 mx-w-64",imageLeft:"flex flex-row h-auto max-w-lg min-w-96",imageRight:"flex flex-row-reverse h-auto max-w-lg min-w-96"},Ot={default:"bg-white overflow-hidden rounded-lg",outline:"bg-white overflow-hidden rounded-lg shadow-md border border-slate-300"},Ht="px-4 my-2",Tt="px-2 my-2",Le=Q.forwardRef(({className:e,variant:r="default",variantStyle:n="default",imagePath:s,classNameImage:i="w-full h-full",imageInset:l=!1,alt:d,ariaLabel:a="card component",children:x,...b},w)=>t.jsxs("div",{className:k("flex ",Ot[n],At[r],e),"aria-label":a,ref:w,...b,children:[t.jsx("div",{className:k("flex-initial items-center justify-center w-full",l&&(r==="default"||r==="imageBottom"?Ht:Tt)),children:s&&t.jsx("img",{src:s,alt:d,className:i})}),t.jsx("div",{className:"flex-auto px-4 my-2",children:x})]}));Le.displayName="Card";const Yt=({className:e="",classNameMessage:r="",classNameOverLimitMessage:n="",maxCharacters:s,children:i,altRemainingMessageText:l,altOverageMessageText:d})=>{const[a,x]=g.useState(`${s} characters allowed`),[b,w]=g.useState(!1),v=y=>{const o=y.target.value.length;if(w(o>s),o===0)x(`${s} characters allowed`);else if(o<=s){const c=" "+(l??"remaining");x(`${s-o}${c}`)}else{const c=" "+(d??"characters too many");x(`${o-s}${c}`)}};return t.jsxs("div",{className:e,children:[t.jsx("div",{onInput:v,className:"mb-2",children:i}),t.jsx("div",{className:k(r,b&&"text-red-500",b&&n),children:a})," "]})};var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}};(function(e,r){(function(n,s){e.exports=s()})(Bt,function(){var n=1e3,s=6e4,i=36e5,l="millisecond",d="second",a="minute",x="hour",b="day",w="week",v="month",y="quarter",C="year",o="date",c="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,L={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 u=["th","st","nd","rd"],f=M%100;return"["+M+(u[(f-20)%10]||u[f]||u[0])+"]"}},V=function(M,u,f){var h=String(M);return!h||h.length>=u?M:""+Array(u+1-h.length).join(f)+M},I={s:V,z:function(M){var u=-M.utcOffset(),f=Math.abs(u),h=Math.floor(f/60),m=f%60;return(u<=0?"+":"-")+V(h,2,"0")+":"+V(m,2,"0")},m:function M(u,f){if(u.date()<f.date())return-M(f,u);var h=12*(f.year()-u.year())+(f.month()-u.month()),m=u.clone().add(h,v),N=f-m<0,D=u.clone().add(h+(N?-1:1),v);return+(-(h+(f-m)/(N?m-D:D-m))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:v,y:C,w,d:b,D:o,h:x,m:a,s:d,ms:l,Q:y}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},R="en",O={};O[R]=L;var P="$isDayjsObject",W=function(M){return M instanceof z||!(!M||!M[P])},G=function M(u,f,h){var m;if(!u)return R;if(typeof u=="string"){var N=u.toLowerCase();O[N]&&(m=N),f&&(O[N]=f,m=N);var D=u.split("-");if(!m&&D.length>1)return M(D[0])}else{var E=u.name;O[E]=u,m=E}return!h&&m&&(R=m),m||!h&&R},$=function(M,u){if(W(M))return M.clone();var f=typeof u=="object"?u:{};return f.date=M,f.args=arguments,new z(f)},j=I;j.l=G,j.i=W,j.w=function(M,u){return $(M,{locale:u.$L,utc:u.$u,x:u.$x,$offset:u.$offset})};var z=function(){function M(f){this.$L=G(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[P]=!0}var u=M.prototype;return u.parse=function(f){this.$d=function(h){var m=h.date,N=h.utc;if(m===null)return new Date(NaN);if(j.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var D=m.match(p);if(D){var E=D[2]-1||0,H=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],E,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)):new Date(D[1],E,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)}}return new Date(m)}(f),this.init()},u.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},u.$utils=function(){return j},u.isValid=function(){return this.$d.toString()!==c},u.isSame=function(f,h){var m=$(f);return this.startOf(h)<=m&&m<=this.endOf(h)},u.isAfter=function(f,h){return $(f)<this.startOf(h)},u.isBefore=function(f,h){return this.endOf(h)<$(f)},u.$g=function(f,h,m){return j.u(f)?this[h]:this.set(m,f)},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this.$d.getTime()},u.startOf=function(f,h){var m=this,N=!!j.u(h)||h,D=j.p(f),E=function(ee,B){var K=j.w(m.$u?Date.UTC(m.$y,B,ee):new Date(m.$y,B,ee),m);return N?K:K.endOf(b)},H=function(ee,B){return j.w(m.toDate()[ee].apply(m.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(B)),m)},T=this.$W,Y=this.$M,U=this.$D,re="set"+(this.$u?"UTC":"");switch(D){case C:return N?E(1,0):E(31,11);case v:return N?E(1,Y):E(0,Y+1);case w:var X=this.$locale().weekStart||0,oe=(T<X?T+7:T)-X;return E(N?U-oe:U+(6-oe),Y);case b:case o:return H(re+"Hours",0);case x:return H(re+"Minutes",1);case a:return H(re+"Seconds",2);case d:return H(re+"Milliseconds",3);default:return this.clone()}},u.endOf=function(f){return this.startOf(f,!1)},u.$set=function(f,h){var m,N=j.p(f),D="set"+(this.$u?"UTC":""),E=(m={},m[b]=D+"Date",m[o]=D+"Date",m[v]=D+"Month",m[C]=D+"FullYear",m[x]=D+"Hours",m[a]=D+"Minutes",m[d]=D+"Seconds",m[l]=D+"Milliseconds",m)[N],H=N===b?this.$D+(h-this.$W):h;if(N===v||N===C){var T=this.clone().set(o,1);T.$d[E](H),T.init(),this.$d=T.set(o,Math.min(this.$D,T.daysInMonth())).$d}else E&&this.$d[E](H);return this.init(),this},u.set=function(f,h){return this.clone().$set(f,h)},u.get=function(f){return this[j.p(f)]()},u.add=function(f,h){var m,N=this;f=Number(f);var D=j.p(h),E=function(Y){var U=$(N);return j.w(U.date(U.date()+Math.round(Y*f)),N)};if(D===v)return this.set(v,this.$M+f);if(D===C)return this.set(C,this.$y+f);if(D===b)return E(1);if(D===w)return E(7);var H=(m={},m[a]=s,m[x]=i,m[d]=n,m)[D]||1,T=this.$d.getTime()+f*H;return j.w(T,this)},u.subtract=function(f,h){return this.add(-1*f,h)},u.format=function(f){var h=this,m=this.$locale();if(!this.isValid())return m.invalidDate||c;var N=f||"YYYY-MM-DDTHH:mm:ssZ",D=j.z(this),E=this.$H,H=this.$m,T=this.$M,Y=m.weekdays,U=m.months,re=m.meridiem,X=function(B,K,ae,ue){return B&&(B[K]||B(h,N))||ae[K].slice(0,ue)},oe=function(B){return j.s(E%12||12,B,"0")},ee=re||function(B,K,ae){var ue=B<12?"AM":"PM";return ae?ue.toLowerCase():ue};return N.replace(S,function(B,K){return K||function(ae){switch(ae){case"YY":return String(h.$y).slice(-2);case"YYYY":return j.s(h.$y,4,"0");case"M":return T+1;case"MM":return j.s(T+1,2,"0");case"MMM":return X(m.monthsShort,T,U,3);case"MMMM":return X(U,T);case"D":return h.$D;case"DD":return j.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return X(m.weekdaysMin,h.$W,Y,2);case"ddd":return X(m.weekdaysShort,h.$W,Y,3);case"dddd":return Y[h.$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,H,!0);case"A":return ee(E,H,!1);case"m":return String(H);case"mm":return j.s(H,2,"0");case"s":return String(h.$s);case"ss":return j.s(h.$s,2,"0");case"SSS":return j.s(h.$ms,3,"0");case"Z":return D}return null}(B)||D.replace(":","")})},u.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},u.diff=function(f,h,m){var N,D=this,E=j.p(h),H=$(f),T=(H.utcOffset()-this.utcOffset())*s,Y=this-H,U=function(){return j.m(D,H)};switch(E){case C:N=U()/12;break;case v:N=U();break;case y:N=U()/3;break;case w:N=(Y-T)/6048e5;break;case b:N=(Y-T)/864e5;break;case x:N=Y/i;break;case a:N=Y/s;break;case d:N=Y/n;break;default:N=Y}return m?N:j.a(N)},u.daysInMonth=function(){return this.endOf(v).$D},u.$locale=function(){return O[this.$L]},u.locale=function(f,h){if(!f)return this.$L;var m=this.clone(),N=G(f,h,!0);return N&&(m.$L=N),m},u.clone=function(){return j.w(this.$d,this)},u.toDate=function(){return new Date(this.valueOf())},u.toJSON=function(){return this.isValid()?this.toISOString():null},u.toISOString=function(){return this.$d.toISOString()},u.toString=function(){return this.$d.toUTCString()},M}(),F=z.prototype;return $.prototype=F,[["$ms",l],["$s",d],["$m",a],["$H",x],["$W",b],["$M",v],["$y",C],["$D",o]].forEach(function(M){F[M[1]]=function(u){return this.$g(u,M[0],M[1])}}),$.extend=function(M,u){return M.$i||(M(u,z,$),M.$i=!0),$},$.locale=G,$.isDayjs=W,$.unix=function(M){return $(1e3*M)},$.en=O[R],$.Ls=O,$.p={},$})})(ze);var Gt=ze.exports;const ce=Pt(Gt),Ft="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%200%2024%2024'%20width='24px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e",Ut=({id:e,label:r,value:n,onChange:s})=>{const[i,l]=g.useState(!1),[d,a]=g.useState(n),[x,b]=g.useState(!0),[w,v]=g.useState(!!n),[y,C]=g.useState(ce(n,"MM-DD-YYYY",!0).isValid()?ce(n,"MM-DD-YYYY",!0):null),o=g.useRef(null),c=g.useRef(null),p=g.useRef(null),S=(y==null?void 0:y.daysInMonth())||30,L=(y==null?void 0:y.startOf("month").day())||0;g.useEffect(()=>{d||(n=ce().format("MM-DD-YYYY"),v(!1)),a(n);const $=ce(n,"MM-DD-YYYY",!0);C($.isValid()?$:null),b($.isValid()&&n!=="")},[n]),g.useEffect(()=>{function $(j){o.current&&(o.current.contains(j.target)||l(!1))}if(i&&p.current){const j=p.current.querySelector('[role="button"]:not([disabled])');j==null||j.focus(),document.addEventListener("mousedown",$)}return()=>{document.removeEventListener("mousedown",$)}},[i]);const V=$=>{var z;const j=$.format("MM-DD-YYYY");v(!0),C($),a(j),b(!0),s(j),l(!1),(z=c.current)==null||z.focus()},I=($,j)=>{$.key==="Enter"&&V(j)},R=$=>{const j=$.target.value;if(a(j),v(!0),!/^\d{1,2}-\d{2}-\d{4}$/.test(j)){b(!1),s(j);return}const F=ce(j,"MM-DD-YYYY",!0);F.isValid()?(console.log("MAYBEDATE IS VALID"),C(F),b(!0),s(j)):(console.log("MAYBEDATE IS --NOT-- VALID"),b(!1),s(j))},O=()=>{l($=>!$)},P=()=>{y&&C(y.subtract(1,"month"))},W=()=>{y&&C(y.add(1,"month"))},G=()=>{if(!y)return null;const $=[];for(let j=0;j<L;j++)$.push(t.jsx("div",{className:"w-8 h-8"},`empty-${j}`));for(let j=1;j<=S;j++){const z=y.date(j);$.push(t.jsx("button",{role:"presentation",tabIndex:0,onClick:()=>V(z),onKeyDown:F=>I(F,z),className:`w-8 h-8 ${z.isSame(y,"date")?"bg-blue-500 text-white":""} hover:bg-blue-100 focus:ring`,"aria-label":z.format("MMMM D, YYYY"),children:j},j))}return $};return t.jsxs("div",{className:"relative",ref:o,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:c,value:w?d:"",onChange:R,placeholder:"MM-DD-YYYY",className:`block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),g=require("react"),de=require("react-router-dom");function Ae(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const Q=Ae(g),xe="-",Oe=e=>{const r=Te(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const a=d.split(xe);return a[0]===""&&a.length!==1&&a.shift(),Se(a,r)||He(d)},getConflictingClassGroupIds:(d,a)=>{const x=n[d]||[];return a&&s[d]?[...x,...s[d]]:x}}},Se=(e,r)=>{var d;if(e.length===0)return r.classGroupId;const n=e[0],s=r.nextPart.get(n),i=s?Se(e.slice(1),s):void 0;if(i)return i;if(r.validators.length===0)return;const l=e.join(xe);return(d=r.validators.find(({validator:a})=>a(l)))==null?void 0:d.classGroupId},we=/^\[(.+)\]$/,He=e=>{if(we.test(e)){const r=we.exec(e)[1],n=r==null?void 0:r.substring(0,r.indexOf(":"));if(n)return"arbitrary.."+n}},Te=e=>{const{theme:r,prefix:n}=e,s={nextPart:new Map,validators:[]};return Be(Object.entries(e.classGroups),n).forEach(([l,d])=>{he(d,s,l,r)}),s},he=(e,r,n,s)=>{e.forEach(i=>{if(typeof i=="string"){const l=i===""?r:ye(r,i);l.classGroupId=n;return}if(typeof i=="function"){if(Ye(i)){he(i(s),r,n,s);return}r.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([l,d])=>{he(d,ye(r,l),n,s)})})},ye=(e,r)=>{let n=e;return r.split(xe).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},Ye=e=>e.isThemeGetter,Be=(e,r)=>r?e.map(([n,s])=>{const i=s.map(l=>typeof l=="string"?r+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([d,a])=>[r+d,a])):l);return[n,i]}):e,Pe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,n=new Map,s=new Map;const i=(l,d)=>{n.set(l,d),r++,r>e&&(r=0,s=n,n=new Map)};return{get(l){let d=n.get(l);if(d!==void 0)return d;if((d=s.get(l))!==void 0)return i(l,d),d},set(l,d){n.has(l)?n.set(l,d):i(l,d)}}},Me="!",Ge=e=>{const{separator:r,experimentalParseClassName:n}=e,s=r.length===1,i=r[0],l=r.length,d=a=>{const x=[];let b=0,w=0,v;for(let p=0;p<a.length;p++){let S=a[p];if(b===0){if(S===i&&(s||a.slice(p,p+l)===r)){x.push(a.slice(w,p)),w=p+l;continue}if(S==="/"){v=p;continue}}S==="["?b++:S==="]"&&b--}const y=x.length===0?a:a.substring(w),C=y.startsWith(Me),o=C?y.substring(1):y,c=v&&v>w?v-w:void 0;return{modifiers:x,hasImportantModifier:C,baseClassName:o,maybePostfixModifierPosition:c}};return n?a=>n({className:a,parseClassName:d}):d},Fe=e=>{if(e.length<=1)return e;const r=[];let n=[];return e.forEach(s=>{s[0]==="["?(r.push(...n.sort(),s),n=[]):n.push(s)}),r.push(...n.sort()),r},Ue=e=>({cache:Pe(e.cacheSize),parseClassName:Ge(e),...Oe(e)}),We=/\s+/,Ze=(e,r)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i}=r,l=[],d=e.trim().split(We);let a="";for(let x=d.length-1;x>=0;x-=1){const b=d[x],{modifiers:w,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:C}=n(b);let o=!!C,c=s(o?y.substring(0,C):y);if(!c){if(!o){a=b+(a.length>0?" "+a:a);continue}if(c=s(y),!c){a=b+(a.length>0?" "+a:a);continue}o=!1}const p=Fe(w).join(":"),S=v?p+Me:p,L=S+c;if(l.includes(L))continue;l.push(L);const V=i(c,o);for(let I=0;I<V.length;++I){const R=V[I];l.push(S+R)}a=b+(a.length>0?" "+a:a)}return a};function Ke(){let e=0,r,n,s="";for(;e<arguments.length;)(r=arguments[e++])&&(n=Ne(r))&&(s&&(s+=" "),s+=n);return s}const Ne=e=>{if(typeof e=="string")return e;let r,n="";for(let s=0;s<e.length;s++)e[s]&&(r=Ne(e[s]))&&(n&&(n+=" "),n+=r);return n};function qe(e,...r){let n,s,i,l=d;function d(x){const b=r.reduce((w,v)=>v(w),e());return n=Ue(b),s=n.cache.get,i=n.cache.set,l=a,a(x)}function a(x){const b=s(x);if(b)return b;const w=Ze(x,n);return i(x,w),w}return function(){return l(Ke.apply(null,arguments))}}const A=e=>{const r=n=>n[e]||[];return r.isThemeGetter=!0,r},$e=/^\[(?:([a-z-]+):)?(.+)\]$/i,Je=/^\d+\/\d+$/,Qe=new Set(["px","full","screen"]),Xe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,st=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>se(e)||Qe.has(e)||Je.test(e),q=e=>ne(e,"length",ut),se=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>ne(e,"number",se),le=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith("%")&&se(e.slice(0,-1)),_=e=>$e.test(e),J=e=>Xe.test(e),ot=new Set(["length","size","percentage"]),at=e=>ne(e,ot,De),lt=e=>ne(e,"position",De),it=new Set(["image","url"]),ct=e=>ne(e,it,gt),dt=e=>ne(e,"",ft),ie=()=>!0,ne=(e,r,n)=>{const s=$e.exec(e);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):n(s[2]):!1},ut=e=>et.test(e)&&!tt.test(e),De=()=>!1,ft=e=>rt.test(e),gt=e=>st.test(e),bt=()=>{const e=A("colors"),r=A("spacing"),n=A("blur"),s=A("brightness"),i=A("borderColor"),l=A("borderRadius"),d=A("borderSpacing"),a=A("borderWidth"),x=A("contrast"),b=A("grayscale"),w=A("hueRotate"),v=A("invert"),y=A("gap"),C=A("gradientColorStops"),o=A("gradientColorStopPositions"),c=A("inset"),p=A("margin"),S=A("opacity"),L=A("padding"),V=A("saturate"),I=A("scale"),R=A("sepia"),O=A("skew"),P=A("space"),W=A("translate"),G=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",_,r],z=()=>[_,r],F=()=>["",Z,q],M=()=>["auto",se,_],u=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],f=()=>["solid","dashed","dotted","double","none"],h=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],m=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",_],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[se,_];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[Z,q],blur:["none","",J,_],brightness:E(),borderColor:[e],borderRadius:["none","","full",J,_],borderSpacing:z(),borderWidth:F(),contrast:E(),grayscale:N(),hueRotate:E(),invert:N(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[nt,q],inset:j(),margin:j(),opacity:E(),padding:z(),saturate:E(),scale:E(),sepia:N(),skew:E(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...u(),_]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[c]}],"inset-x":[{"inset-x":[c]}],"inset-y":[{"inset-y":[c]}],start:[{start:[c]}],end:[{end:[c]}],top:[{top:[c]}],right:[{right:[c]}],bottom:[{bottom:[c]}],left:[{left:[c]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le,_]}],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",_]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",le,_]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",le,_]},_]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[le,_]},_]}],"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",_]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...m()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...m(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...m(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_,r]}],"min-w":[{"min-w":[_,r,"min","max","fit"]}],"max-w":[{"max-w":[_,r,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[_,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_,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",_]}],"line-clamp":[{"line-clamp":["none",se,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Z,_]}],"list-image":[{"list-image":["none",_]}],"list-style-type":[{list:["none","disc","decimal",_]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...f(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Z,q]}],"underline-offset":[{"underline-offset":["auto",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:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_]}],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",_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...u(),lt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",at]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ct]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[o]}],"gradient-via-pos":[{via:[o]}],"gradient-to-pos":[{to:[o]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...f(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:f()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...f()]}],"outline-offset":[{"outline-offset":[Z,_]}],"outline-w":[{outline:[Z,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[Z,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,dt]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...h(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":h()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",J,_]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[v]}],saturate:[{saturate:[V]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",_]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",_]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[le,_]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_]}],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",_]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",_]}],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"]}}},k=qe(bt),mt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-plus'%3e%3cpath%20d='M5%2012h14'/%3e%3cpath%20d='M12%205v14'/%3e%3c/svg%3e",pt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-minus'%3e%3cpath%20d='M5%2012h14'/%3e%3c/svg%3e",ht="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-down'%3e%3cpath%20d='m6%209%206%206%206-6'/%3e%3c/svg%3e",xt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-up'%3e%3cpath%20d='m18%2015-6-6-6%206'/%3e%3c/svg%3e",vt="mt-[-0.5rem]",wt="flex justify-between items-center w-full p-1 px-4 text-left border border-gray-300 mt-2",yt="px-4 py-1 border border-t-0 border-gray-300",kt={},jt={},Ct=g.forwardRef(({variant:e="default",label:r,classNameContainer:n="",chevron:s=!0,iconAccordionOpened:i,iconAccordionClosed:l,rounded:d=!1,classNameHeading:a="",classNameContent:x="",onExpand:b,singleOpen:w,index:v,children:y,...C},o)=>{const[c,p]=g.useState(!1),S=`accordion-${v??r.replace(/\s+/g,"-").toLowerCase()}`,L=()=>{b&&w&&b(p),p(!c)},V=I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),L(),console.log("key pressed, event.key === '"+I.key+"', index: "+v+", label: "+r))};return t.jsxs("div",{ref:o,className:n,children:[t.jsxs("button",{className:k(wt,kt.variant,a,d&&(c?"rounded-t-md":"rounded-md")),"aria-controls":`${S}-content`,"aria-expanded":c,id:`${S}-header`,onClick:L,onKeyDown:V,...C,children:[t.jsx("span",{children:r}),t.jsx("span",{children:c?i||t.jsx("img",{src:s?xt:pt,alt:"Close Icon"}):l||t.jsx("img",{src:s?ht:mt,alt:"Open Icon"})})]}),c&&t.jsx("div",{className:k(yt,jt.variant,x,d&&"rounded-b-md"),id:`${S}-content`,role:"region","aria-labelledby":`${S}-header`,children:y})]})}),St=g.forwardRef(({children:e,variant:r="default",chevron:n,iconAccordionOpened:s,iconAccordionClosed:i,rounded:l,classNameContainer:d,singleOpen:a=!0,classNameChildHeading:x,classNameChildContent:b,...w},v)=>{const[y,C]=g.useState(null),o=c=>{y&&y(!1),C(()=>c)};return t.jsx("div",{ref:v,...w,className:k(vt,d),children:g.Children.map(e,(c,p)=>g.isValidElement(c)?g.cloneElement(c,{...c.props,variant:r,chevron:n,iconAccordionOpened:s,iconAccordionClosed:i,rounded:l,classNameHeading:k(x,c.props.classNameHeading),classNameContent:k(b,c.props.classNameContent),index:p,singleOpen:a,onExpand:S=>o(S)}):c)})}),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",Nt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_311_2053'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='red'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_311_2053)'%3e%3cpath%20id='warning_2'%20d='M1%2021L12%202L23%2021H1ZM12%2018C12.2833%2018%2012.5208%2017.9042%2012.7125%2017.7125C12.9042%2017.5208%2013%2017.2833%2013%2017C13%2016.7167%2012.9042%2016.4792%2012.7125%2016.2875C12.5208%2016.0958%2012.2833%2016%2012%2016C11.7167%2016%2011.4792%2016.0958%2011.2875%2016.2875C11.0958%2016.4792%2011%2016.7167%2011%2017C11%2017.2833%2011.0958%2017.5208%2011.2875%2017.7125C11.4792%2017.9042%2011.7167%2018%2012%2018ZM11%2015H13V10H11V15Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$t="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='emergency_home'%3e%3cmask%20id='mask0_320_1821'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_320_1821)'%3e%3cpath%20id='emergency_home_2'%20d='M11.9996%2022.0251C11.7329%2022.0251%2011.4788%2021.9751%2011.2371%2021.8751C10.9954%2021.7751%2010.7746%2021.6334%2010.5746%2021.4501L2.54961%2013.4251C2.36628%2013.2251%202.22461%2013.0043%202.12461%2012.7626C2.02461%2012.5209%201.97461%2012.2668%201.97461%2012.0001C1.97461%2011.7334%202.02461%2011.4751%202.12461%2011.2251C2.22461%2010.9751%202.36628%2010.7584%202.54961%2010.5751L10.5746%202.5501C10.7746%202.3501%2010.9954%202.20426%2011.2371%202.1126C11.4788%202.02093%2011.7329%201.9751%2011.9996%201.9751C12.2663%201.9751%2012.5246%202.02093%2012.7746%202.1126C13.0246%202.20426%2013.2413%202.3501%2013.4246%202.5501L21.4496%2010.5751C21.6496%2010.7584%2021.7954%2010.9751%2021.8871%2011.2251C21.9788%2011.4751%2022.0246%2011.7334%2022.0246%2012.0001C22.0246%2012.2668%2021.9788%2012.5209%2021.8871%2012.7626C21.7954%2013.0043%2021.6496%2013.2251%2021.4496%2013.4251L13.4246%2021.4501C13.2413%2021.6334%2013.0246%2021.7751%2012.7746%2021.8751C12.5246%2021.9751%2012.2663%2022.0251%2011.9996%2022.0251ZM10.9996%2013.0001H12.9996V7.0001H10.9996V13.0001ZM11.9996%2016.0001C12.2829%2016.0001%2012.5204%2015.9043%2012.7121%2015.7126C12.9038%2015.5209%2012.9996%2015.2834%2012.9996%2015.0001C12.9996%2014.7168%2012.9038%2014.4793%2012.7121%2014.2876C12.5204%2014.0959%2012.2829%2014.0001%2011.9996%2014.0001C11.7163%2014.0001%2011.4788%2014.0959%2011.2871%2014.2876C11.0954%2014.4793%2010.9996%2014.7168%2010.9996%2015.0001C10.9996%2015.2834%2011.0954%2015.5209%2011.2871%2015.7126C11.4788%2015.9043%2011.7163%2016.0001%2011.9996%2016.0001Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Dt="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='close_small'%20d='M1.40349%2010L0%208.60349L3.60898%204.98753L0%201.39651L1.40349%200L5.01247%203.60623L8.59651%200L10%201.39651L6.39102%204.98753L10%208.60349L8.59651%2010L5.01247%206.39377L1.40349%2010Z'%20fill='black'/%3e%3c/svg%3e",ke=[{variant:"default",subVariant:"default",classes:"mx-2 inline-flex items-center rounded-md bg-gray-500/10 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-400/20"},{variant:"default",subVariant:"gray",classes:"mx-2 inline-flex items-center rounded-md bg-gray-500/10 px-2 py-1 text-xs font-medium text-gray-700 ring-1 ring-inset ring-gray-400/20"},{variant:"default",subVariant:"red",classes:"mx-2 inline-flex items-center rounded-md bg-red-500/10 px-2 py-1 text-xs font-medium text-red-700 ring-1 ring-inset ring-red-400/20"},{variant:"default",subVariant:"yellow",classes:"mx-2 inline-flex items-center rounded-md bg-yellow-500/10 px-2 py-1 text-xs font-medium text-yellow-700 ring-1 ring-inset ring-yellow-400/20"},{variant:"default",subVariant:"green",classes:"mx-2 inline-flex items-center rounded-md bg-green-500/10 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-500/20"},{variant:"default",subVariant:"blue",classes:"mx-2 inline-flex items-center rounded-md bg-blue-400/10 px-2 py-1 text-xs font-medium text-blue-400 ring-1 ring-inset ring-blue-400/30"},{variant:"warning",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#fff1be] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"warning",subVariant:"full",classes:"flex flex-row w-full bg-[#fff1be] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex"},{variant:"hazard",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#f4c2c2] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"hazard",subVariant:"full",classes:'flex flex-row w-full bg-[#f4c2c2] border-[#efbd1f] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"go",subVariant:"half",classes:'flex flex-row w-1/2 bg-[#d6f4d5] border-[#40bf40] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"go",subVariant:"full",classes:'flex flex-row w-full bg-[#d6f4d5] border-[#40bf40] p-2 rounded-md border justify-center items-start gap-2.5 inline-flex">'},{variant:"icon",subVariant:"default",classes:"inline-flex items-center gap-x-1.5 rounded-full bg-gray-500 px-2 py-1 text-xs font-medium text-gray-700",classNameSvg:"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",classNameSvg:"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",classNameSvg:"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",classNameSvg:"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",classNameSvg:"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",classNameSvg:"size-1.5 fill-blue-400"},{variant:"media",subVariant:"default",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-gray-400 ring-1 ring-inset ring-gray-400/20 overflow-hidden"},{variant:"media",subVariant:"gray",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-400/20 overflow-hidden"},{variant:"media",subVariant:"green",classes:"w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-400/20 overflow-hidden"}],Lt=g.forwardRef(({variant:e="default",subVariant:r="default",className:n,classNameSvg:s="size-1.5 fill-yellow-400",imagePath:i,imageAlt:l,classNameImage:d,children:a,...x},b)=>{const[w,v]=g.useState(),[y,C]=g.useState(),[o,c]=g.useState(Nt),p=()=>{v(k(w,"hidden"))};return g.useEffect(()=>{var V,I;const S=r==="custom"?"default":r,L=(V=ke.find(R=>R.variant===e&&R.subVariant===S))==null?void 0:V.classes;if(e==="icon"){const R=(I=ke.find(O=>O.variant===e&&O.subVariant===S))==null?void 0:I.classNameSvg;C(r==="custom"?k(R,s):R)}e==="hazard"?c($t):e==="go"&&c(Mt),v(k(L,n))},[r,n,e,s]),t.jsxs(t.Fragment,{children:[e==="default"&&t.jsx("div",{className:w,...x,ref:b,children:a}),(e==="warning"||e==="hazard"||e==="go")&&t.jsxs("div",{className:w,children:[t.jsx("div",{className:"size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative",children:t.jsx("div",{className:"left-0 top-0 absolute",children:t.jsx("img",{className:"size-6",src:o,alt:`${e} icon`})})}),t.jsx("div",{className:"grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]",children:a}),t.jsx("button",{onClick:p,className:"size-3 py-px justify-center items-center gap-2.5 flex","aria-label":"Close modal",children:t.jsx("img",{src:Dt,alt:"close alert icon"})})]}),e==="icon"&&t.jsxs("div",{className:w,...x,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})}),a]}),e==="media"&&t.jsxs("div",{className:w,...x,ref:b,children:[t.jsx("div",{className:"col-start-1 col-span-2",children:t.jsx("img",{className:k("h-full",d),src:i,alt:l})}),t.jsx("div",{className:"w-full ml-2 col-start-3 col-span-3",children:a})]})]})}),zt="inline-flex items-center justify-center whitespace-nowrap rounded-md ring-offset-background transition-colors focus-visible:outline-none font-[`Arial`] disabled:pointer-events-none text-sm md:text-base lg:text-lg disabled:opacity-50 px-6 py-[12px] md:py-[14px] lg:py-[16px] ",be={default:{normal:"border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-lg hover:text-white hover:border-slate-600 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 py-0 md:py-0 lg:py-0 h-[48px] mt-1",selected:"bg-gray-500 text-white"},filled:{normal:"rounded-md bg-[#092068] hover:bg-[#0c2c8e] text-white text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] active:bg-[#092068]/80 disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] disabled:border-2 lg:h-14",selected:""},outline:{normal:"rounded-md border-[#092068] bg-white border-2 text-[#092068] text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] lg:h-14 text-lg",selected:""},transparent:{normal:"rounded-md text-lg text-[#092068] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] disabled:text-[#939194] w-[157px] md:w-[163px] lg:w-[169px] h-12 md:h-[52px] lg:h-14",selected:""}},_t=g.forwardRef(({label:e,onClick:r,className:n,icon:s,iconPosition:i,variant:l="default",type:d="button",children:a,selected:x=!1,classNameSelected:b,...w},v)=>{const[y,C]=g.useState("");return g.useEffect(()=>{let o=be[l].normal||be.default.normal;x&&!b?o=k(o,be[l].selected):x&&b&&(o=k(o,b)),C(k(zt,o))},[x,b,l]),t.jsxs("button",{type:d,onClick:r,className:`${i==="iconOnly"?k(y,"px-[12px] md:px-[14px] lg:px-[16px] py-[12px] md:py-[14px] lg:py-[16px]",n):k(y,n)}`,ref:v,...w,children:[i==="left"&&s&&t.jsx("span",{className:"icon-left mr-3 size-6",children:s}),i==="iconOnly"&&s?t.jsx("span",{className:"size-6",children:s}):t.jsx("span",{className:"button-text",children:a||e}),i==="right"&&s&&t.jsx("span",{className:"icon-right ml-3 size-6",children:s})]})}),Et="data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%201'%20d='M1%201L5%205.5L1%2010'%20stroke='%23747476'%20stroke-width='2'/%3e%3c/svg%3e",It="data:image/svg+xml,%3csvg%20width='12'%20height='15'%20viewBox='0%200%2012%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Exclude'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%200.5L0%205.75V14.5H4.28571V10.125H7.71429V14.5H12V5.75L6%200.5Z'%20fill='%23747476'/%3e%3c/svg%3e",Vt={default:"",bold:"font-bold"},Rt=Q.forwardRef(({classNameContainer:e,className:r,variant:n="default",auto:s=!0,separator:i=Et,...l},d)=>{const a=de.useLocation().pathname.split("/").filter(x=>x!=="");return t.jsx("nav",{className:k(Vt[n],e),...l,ref:d,"aria-label":"Breadcrumbs",children:t.jsxs("ol",{className:"flex list-none",children:[t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[t.jsx(de.Link,{to:"/",className:k("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2 hidden md:inline-flex",r),children:"Homepage"}),t.jsx(de.Link,{to:"/",className:k("capitalize me-2 inline-flex md:hidden",r),children:t.jsx("img",{src:It,alt:"home icon"})}),a.length>0?t.jsx("span",{className:k("me-2",r),children:t.jsx("img",{src:i,alt:"vector"})}):""]}),a.map((x,b)=>{const w="/"+a.slice(0,b+1).join("/");return t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[b===a.length-1?t.jsx("span",{className:"text-black font-bold capitalize","aria-current":"page",children:decodeURIComponent(x).replace(/-/g," ")}):t.jsx(de.Link,{to:w,className:k("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2",r),children:decodeURIComponent(x).replace(/-/g," ")}),b<a.length-1&&t.jsx("span",{className:k("me-2",r),children:t.jsx("img",{src:i,alt:"vector"})})]},b)})]})})}),At={default:"flex flex-col w-64 max-w-64",imageBottom:"flex flex-col-reverse w-64 mx-w-64",imageLeft:"flex flex-row h-auto max-w-lg min-w-96",imageRight:"flex flex-row-reverse h-auto max-w-lg min-w-96"},Ot={default:"bg-white overflow-hidden rounded-lg",outline:"bg-white overflow-hidden rounded-lg shadow-md border border-slate-300"},Ht="px-4 my-2",Tt="px-2 my-2",Le=Q.forwardRef(({className:e,variant:r="default",variantStyle:n="default",imagePath:s,classNameImage:i="w-full h-full",imageInset:l=!1,alt:d,ariaLabel:a="card component",children:x,...b},w)=>t.jsxs("div",{className:k("flex ",Ot[n],At[r],e),"aria-label":a,ref:w,...b,children:[t.jsx("div",{className:k("flex-initial items-center justify-center w-full",l&&(r==="default"||r==="imageBottom"?Ht:Tt)),children:s&&t.jsx("img",{src:s,alt:d,className:i})}),t.jsx("div",{className:"flex-auto px-4 my-2",children:x})]}));Le.displayName="Card";const Yt=({className:e="",classNameMessage:r="",classNameOverLimitMessage:n="",maxCharacters:s,children:i,altRemainingMessageText:l,altOverageMessageText:d})=>{const[a,x]=g.useState(`${s} characters allowed`),[b,w]=g.useState(!1),v=y=>{const o=y.target.value.length;if(w(o>s),o===0)x(`${s} characters allowed`);else if(o<=s){const c=" "+(l??"remaining");x(`${s-o}${c}`)}else{const c=" "+(d??"characters too many");x(`${o-s}${c}`)}};return t.jsxs("div",{className:e,children:[t.jsx("div",{onInput:v,className:"mb-2",children:i}),t.jsx("div",{className:k(r,b&&"text-red-500",b&&n),children:a})," "]})};var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}};(function(e,r){(function(n,s){e.exports=s()})(Bt,function(){var n=1e3,s=6e4,i=36e5,l="millisecond",d="second",a="minute",x="hour",b="day",w="week",v="month",y="quarter",C="year",o="date",c="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,L={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 u=["th","st","nd","rd"],f=M%100;return"["+M+(u[(f-20)%10]||u[f]||u[0])+"]"}},V=function(M,u,f){var h=String(M);return!h||h.length>=u?M:""+Array(u+1-h.length).join(f)+M},I={s:V,z:function(M){var u=-M.utcOffset(),f=Math.abs(u),h=Math.floor(f/60),m=f%60;return(u<=0?"+":"-")+V(h,2,"0")+":"+V(m,2,"0")},m:function M(u,f){if(u.date()<f.date())return-M(f,u);var h=12*(f.year()-u.year())+(f.month()-u.month()),m=u.clone().add(h,v),N=f-m<0,D=u.clone().add(h+(N?-1:1),v);return+(-(h+(f-m)/(N?m-D:D-m))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:v,y:C,w,d:b,D:o,h:x,m:a,s:d,ms:l,Q:y}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},R="en",O={};O[R]=L;var P="$isDayjsObject",W=function(M){return M instanceof z||!(!M||!M[P])},G=function M(u,f,h){var m;if(!u)return R;if(typeof u=="string"){var N=u.toLowerCase();O[N]&&(m=N),f&&(O[N]=f,m=N);var D=u.split("-");if(!m&&D.length>1)return M(D[0])}else{var E=u.name;O[E]=u,m=E}return!h&&m&&(R=m),m||!h&&R},$=function(M,u){if(W(M))return M.clone();var f=typeof u=="object"?u:{};return f.date=M,f.args=arguments,new z(f)},j=I;j.l=G,j.i=W,j.w=function(M,u){return $(M,{locale:u.$L,utc:u.$u,x:u.$x,$offset:u.$offset})};var z=function(){function M(f){this.$L=G(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[P]=!0}var u=M.prototype;return u.parse=function(f){this.$d=function(h){var m=h.date,N=h.utc;if(m===null)return new Date(NaN);if(j.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var D=m.match(p);if(D){var E=D[2]-1||0,H=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],E,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)):new Date(D[1],E,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)}}return new Date(m)}(f),this.init()},u.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},u.$utils=function(){return j},u.isValid=function(){return this.$d.toString()!==c},u.isSame=function(f,h){var m=$(f);return this.startOf(h)<=m&&m<=this.endOf(h)},u.isAfter=function(f,h){return $(f)<this.startOf(h)},u.isBefore=function(f,h){return this.endOf(h)<$(f)},u.$g=function(f,h,m){return j.u(f)?this[h]:this.set(m,f)},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this.$d.getTime()},u.startOf=function(f,h){var m=this,N=!!j.u(h)||h,D=j.p(f),E=function(ee,B){var K=j.w(m.$u?Date.UTC(m.$y,B,ee):new Date(m.$y,B,ee),m);return N?K:K.endOf(b)},H=function(ee,B){return j.w(m.toDate()[ee].apply(m.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(B)),m)},T=this.$W,Y=this.$M,U=this.$D,re="set"+(this.$u?"UTC":"");switch(D){case C:return N?E(1,0):E(31,11);case v:return N?E(1,Y):E(0,Y+1);case w:var X=this.$locale().weekStart||0,oe=(T<X?T+7:T)-X;return E(N?U-oe:U+(6-oe),Y);case b:case o:return H(re+"Hours",0);case x:return H(re+"Minutes",1);case a:return H(re+"Seconds",2);case d:return H(re+"Milliseconds",3);default:return this.clone()}},u.endOf=function(f){return this.startOf(f,!1)},u.$set=function(f,h){var m,N=j.p(f),D="set"+(this.$u?"UTC":""),E=(m={},m[b]=D+"Date",m[o]=D+"Date",m[v]=D+"Month",m[C]=D+"FullYear",m[x]=D+"Hours",m[a]=D+"Minutes",m[d]=D+"Seconds",m[l]=D+"Milliseconds",m)[N],H=N===b?this.$D+(h-this.$W):h;if(N===v||N===C){var T=this.clone().set(o,1);T.$d[E](H),T.init(),this.$d=T.set(o,Math.min(this.$D,T.daysInMonth())).$d}else E&&this.$d[E](H);return this.init(),this},u.set=function(f,h){return this.clone().$set(f,h)},u.get=function(f){return this[j.p(f)]()},u.add=function(f,h){var m,N=this;f=Number(f);var D=j.p(h),E=function(Y){var U=$(N);return j.w(U.date(U.date()+Math.round(Y*f)),N)};if(D===v)return this.set(v,this.$M+f);if(D===C)return this.set(C,this.$y+f);if(D===b)return E(1);if(D===w)return E(7);var H=(m={},m[a]=s,m[x]=i,m[d]=n,m)[D]||1,T=this.$d.getTime()+f*H;return j.w(T,this)},u.subtract=function(f,h){return this.add(-1*f,h)},u.format=function(f){var h=this,m=this.$locale();if(!this.isValid())return m.invalidDate||c;var N=f||"YYYY-MM-DDTHH:mm:ssZ",D=j.z(this),E=this.$H,H=this.$m,T=this.$M,Y=m.weekdays,U=m.months,re=m.meridiem,X=function(B,K,ae,ue){return B&&(B[K]||B(h,N))||ae[K].slice(0,ue)},oe=function(B){return j.s(E%12||12,B,"0")},ee=re||function(B,K,ae){var ue=B<12?"AM":"PM";return ae?ue.toLowerCase():ue};return N.replace(S,function(B,K){return K||function(ae){switch(ae){case"YY":return String(h.$y).slice(-2);case"YYYY":return j.s(h.$y,4,"0");case"M":return T+1;case"MM":return j.s(T+1,2,"0");case"MMM":return X(m.monthsShort,T,U,3);case"MMMM":return X(U,T);case"D":return h.$D;case"DD":return j.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return X(m.weekdaysMin,h.$W,Y,2);case"ddd":return X(m.weekdaysShort,h.$W,Y,3);case"dddd":return Y[h.$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,H,!0);case"A":return ee(E,H,!1);case"m":return String(H);case"mm":return j.s(H,2,"0");case"s":return String(h.$s);case"ss":return j.s(h.$s,2,"0");case"SSS":return j.s(h.$ms,3,"0");case"Z":return D}return null}(B)||D.replace(":","")})},u.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},u.diff=function(f,h,m){var N,D=this,E=j.p(h),H=$(f),T=(H.utcOffset()-this.utcOffset())*s,Y=this-H,U=function(){return j.m(D,H)};switch(E){case C:N=U()/12;break;case v:N=U();break;case y:N=U()/3;break;case w:N=(Y-T)/6048e5;break;case b:N=(Y-T)/864e5;break;case x:N=Y/i;break;case a:N=Y/s;break;case d:N=Y/n;break;default:N=Y}return m?N:j.a(N)},u.daysInMonth=function(){return this.endOf(v).$D},u.$locale=function(){return O[this.$L]},u.locale=function(f,h){if(!f)return this.$L;var m=this.clone(),N=G(f,h,!0);return N&&(m.$L=N),m},u.clone=function(){return j.w(this.$d,this)},u.toDate=function(){return new Date(this.valueOf())},u.toJSON=function(){return this.isValid()?this.toISOString():null},u.toISOString=function(){return this.$d.toISOString()},u.toString=function(){return this.$d.toUTCString()},M}(),F=z.prototype;return $.prototype=F,[["$ms",l],["$s",d],["$m",a],["$H",x],["$W",b],["$M",v],["$y",C],["$D",o]].forEach(function(M){F[M[1]]=function(u){return this.$g(u,M[0],M[1])}}),$.extend=function(M,u){return M.$i||(M(u,z,$),M.$i=!0),$},$.locale=G,$.isDayjs=W,$.unix=function(M){return $(1e3*M)},$.en=O[R],$.Ls=O,$.p={},$})})(ze);var Gt=ze.exports;const ce=Pt(Gt),Ft="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%200%2024%2024'%20width='24px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e",Ut=({id:e,label:r,value:n,onChange:s})=>{const[i,l]=g.useState(!1),[d,a]=g.useState(n),[x,b]=g.useState(!0),[w,v]=g.useState(!!n),[y,C]=g.useState(ce(n,"MM-DD-YYYY",!0).isValid()?ce(n,"MM-DD-YYYY",!0):null),o=g.useRef(null),c=g.useRef(null),p=g.useRef(null),S=(y==null?void 0:y.daysInMonth())||30,L=(y==null?void 0:y.startOf("month").day())||0;g.useEffect(()=>{d||(n=ce().format("MM-DD-YYYY"),v(!1)),a(n);const $=ce(n,"MM-DD-YYYY",!0);C($.isValid()?$:null),b($.isValid()&&n!=="")},[n]),g.useEffect(()=>{function $(j){o.current&&(o.current.contains(j.target)||l(!1))}if(i&&p.current){const j=p.current.querySelector('[role="button"]:not([disabled])');j==null||j.focus(),document.addEventListener("mousedown",$)}return()=>{document.removeEventListener("mousedown",$)}},[i]);const V=$=>{var z;const j=$.format("MM-DD-YYYY");v(!0),C($),a(j),b(!0),s(j),l(!1),(z=c.current)==null||z.focus()},I=($,j)=>{$.key==="Enter"&&V(j)},R=$=>{const j=$.target.value;if(a(j),v(!0),!/^\d{1,2}-\d{2}-\d{4}$/.test(j)){b(!1),s(j);return}const F=ce(j,"MM-DD-YYYY",!0);F.isValid()?(console.log("MAYBEDATE IS VALID"),C(F),b(!0),s(j)):(console.log("MAYBEDATE IS --NOT-- VALID"),b(!1),s(j))},O=()=>{l($=>!$)},P=()=>{y&&C(y.subtract(1,"month"))},W=()=>{y&&C(y.add(1,"month"))},G=()=>{if(!y)return null;const $=[];for(let j=0;j<L;j++)$.push(t.jsx("div",{className:"w-8 h-8"},`empty-${j}`));for(let j=1;j<=S;j++){const z=y.date(j);$.push(t.jsx("button",{role:"presentation",tabIndex:0,onClick:()=>V(z),onKeyDown:F=>I(F,z),className:`w-8 h-8 ${z.isSame(y,"date")?"bg-blue-500 text-white":""} hover:bg-blue-100 focus:ring`,"aria-label":z.format("MMMM D, YYYY"),children:j},j))}return $};return t.jsxs("div",{className:"relative",ref:o,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:c,value:w?d:"",onChange:R,placeholder:"MM-DD-YYYY",className:`block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
|
|
2
2
|
focus:border-blue-500 pl-1 focus:outline-none`}),t.jsx("button",{type:"button",onClick:O,className:`px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
|
|
3
3
|
focus:outline-none focus:border-blue-500`,"aria-label":"Open calendar","aria-haspopup":"dialog","aria-expanded":i,"aria-controls":`${e}-dialog`,children:t.jsx("img",{src:Ft,alt:"calendar icon",className:"size-6"})})]}),i&&t.jsxs("div",{ref:p,id:`${e}-dialog`,role:"dialog","aria-label":"Calendar",className:"absolute z-10 bg-white shadow-lg rounded-md p-1",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("button",{onClick:P,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"}),G()]})]}),!x&&t.jsx("p",{className:"text-red-600",children:"Please enter a valid date 'MM-DD-YYYY'"})]})},me={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 _e=(e=>(e.Right="right",e.Left="left",e.IconOnly="iconOnly",e.None="undefined",e))(_e||{});const Wt=({variant:e="default",tabs:r,className:n,classNameContainer:s})=>{const[i,l]=g.useState(0),[d,a]=g.useState(!1),[x,b]=g.useState(""),w=g.useRef([]);e===""&&(e="default");const v=g.useCallback(o=>{var c;(c=w.current[o])==null||c.focus()},[]),y=g.useCallback((o,c)=>{if(o.key==="ArrowRight"){const p=(c+1)%r.length;l(p),v(p)}else if(o.key==="ArrowLeft"){const p=(c-1+r.length)%r.length;l(p),v(p)}else o.key==="Home"?(l(0),v(0)):o.key==="End"&&(l(r.length-1),v(r.length-1))},[r.length,v]),C=o=>{a(!0),b(o)};return t.jsxs("div",{className:k("w-full",s),children:[t.jsx("div",{role:"tablist","aria-label":"Tabs",className:k(me[e].container,n),children:r.map((o,c)=>t.jsxs("button",{role:"tab",id:`tab-${o.id}`,onMouseEnter:()=>C(o.id),onMouseLeave:()=>a(!1),"aria-selected":i===c,"aria-controls":`panel-${o.id}`,tabIndex:i===c?0:-1,ref:p=>w.current[c]=p,className:`flex px-4 py-2 focus:outline-none ${e==="outline"?`border-[#092068] ${c===0?"border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md":c===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"}`:""} ${k(i===c?me[e].active:me[e].inactive)}`,onClick:()=>l(c),onKeyDown:p=>y(p,c),children:[o.iconPosition==="left"&&o.activeIcon&&t.jsx("span",{className:"icon-left mr-3 size-6",children:i===c?d&&x===o.id?o.inactiveIcon:o.activeIcon:o.inactiveIcon}),o.iconPosition==="iconOnly"&&o.activeIcon?t.jsx("span",{className:"size-6",children:i===c?d&&x===o.id?o.inactiveIcon:o.activeIcon:o.inactiveIcon}):t.jsx("span",{className:"button-text",children:o.label}),o.iconPosition==="right"&&o.activeIcon&&t.jsx("span",{className:"icon-right ml-3 size-6",children:i===c?d&&x===o.id?o.inactiveIcon:o.activeIcon:o.inactiveIcon})]},o.id))}),r.map((o,c)=>t.jsx("div",{role:"tabpanel",id:`panel-${o.id}`,"aria-labelledby":`tab-${o.id}`,hidden:i!==c,className:"p-4",children:o.content},o.id))]})},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]",Zt=[{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]"}],Ee=g.forwardRef(({className:e,variant:r="default",label:n,classNameLabel:s,labelBaseColor:i="#fff",textShadow:l=!1,...d},a)=>{const[x,b]=g.useState(),[w,v]=g.useState(je),[y,C]=g.useState(!1),o=g.useRef(null);if(g.useEffect(()=>{var c;r&&v(k(je,(c=Zt.find(p=>p.variant===r))==null?void 0:c.classes,e))},[e,r,y]),g.useEffect(()=>{const c=o.current;if(!c)return;const p=S=>{const L=getComputedStyle(c);b(L.backgroundColor),C(S)};return p(!0),c.addEventListener("mouseover",()=>p(!0)),c.addEventListener("mouseout",()=>p(!1)),()=>{c.removeEventListener("mouseover",()=>p),c.removeEventListener("mouseout",()=>p)}},[i,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:k("absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto",s),style:{background:`linear-gradient(to bottom, ${i} 0%, ${i} 50%, ${x} 60%, ${x} 100%)`,textShadow:l?`1px 1px 2px ${i}, 0 0 1em ${i}, 0 0 0.2em ${i}`:""},children:[d.required&&t.jsx("span",{className:"text-red-500",children:"*"}),n]}),t.jsx("input",{className:w,"aria-label":n,ref:c=>{typeof a=="function"?a(c):a&&(a.current=c),o.current=c},...d})]})});Ee.displayName="Input";const Ie=({items:e,header:r,className:n="",classNameItem:s="",children:i,withDividers:l=!1,classNameDividerColor:d="",isDecimal:a=!1,isDisc:x=!1})=>t.jsxs("div",{className:"p-0 m-0",children:[t.jsx("p",{children:r}),t.jsxs("ul",{className:k("pl-6 list-none w-full",a?"list-decimal":"",x?"list-disc":"",n),children:[e&&e.map((b,w)=>t.jsx(ve,{className:k("w-full",l&&w!==e.length-1?"border-b":"",d!==""&&w!==e.length-1?"border-"+d:"",s),children:b.children},w)),i&&Q.Children.map(i,(b,w)=>Q.isValidElement(b)?Q.cloneElement(b,{className:k(b.props.className,"w-full",l&&w!==Q.Children.count(i)-1?"border-b":"",d!==""&&w!==Q.Children.count(i)-1?"border-"+d:"")}):b)]})]}),ve=({className:e,children:r})=>t.jsx("li",{className:k(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"}},Kt=({isOpen:e,variant:r="default",onClose:n,title:s,className:i,closeButton:l=!0,clickOutsideCloses:d=!1,displayClosingX:a=!0,closeButtonText:x="Close",continueButton:b=!1,continueButtonHandler:w,continueButtonText:v="Continue",children:y})=>{const C=g.useRef(null),o=g.useRef(null);if(g.useEffect(()=>{if(d){const p=S=>{C.current&&!C.current.contains(S.target)&&n()};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}}},[n]),g.useEffect(()=>{var L;const p=V=>{V.key==="Escape"&&e&&n()},S=V=>{var P;const I=(P=C.current)==null?void 0:P.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),R=I==null?void 0:I[0],O=I==null?void 0:I[I.length-1];V.key==="Tab"&&I&&(V.shiftKey&&document.activeElement===R?(V.preventDefault(),O==null||O.focus()):!V.shiftKey&&document.activeElement===O&&(V.preventDefault(),R==null||R.focus()))};return e?(document.body.style.overflow="hidden",window.addEventListener("keydown",p),window.addEventListener("keydown",S),(L=o.current)==null||L.focus()):document.body.style.overflow="auto",()=>{window.removeEventListener("keydown",p),window.removeEventListener("keydown",S),document.body.style.overflow="auto"}},[e,n]),!e)return null;const c=()=>{w&&w(),n()};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:k(te[r].container,i),ref:C,"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[t.jsxs("div",{className:k(te[r].title),children:[t.jsx("h2",{id:"modal-title",className:k("text-lg font-medium text-gray-900",te[r].titleHeading),children:s}),a&&t.jsx("button",{onClick:n,className:k("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:k(te[r].body),children:y}),t.jsxs("div",{className:"mt-4 flex justify-end",children:[l&&t.jsx("button",{ref:o,onClick:n,className:k(te[r].button),children:x}),b&&t.jsx("button",{onClick:c,className:k(te[r].button,"ms-4"),children:v})]})]})})},qt=g.forwardRef(({className:e="",iconLeft:r,iconLeftSelected:n,iconRight:s,iconRightSelected:i,children:l,onClick:d,selected:a=!1,...x},b)=>{const[w,v]=g.useState(),[y,C]=g.useState(),[o,c]=g.useState("bg-white");return g.useEffect(()=>{const p="text-lg font-normal font-['Arial'] leading-normal ";C(r&&s?p:r?p+"mr-6":s?p+"ml-6":p+"ml-6 mr-6")},[r,s,l]),g.useEffect(()=>{c(a?"bg-[#092068] focus:bg-[#092068] text-white":"bg-white"),v(k("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",o,e))},[e,o,a]),t.jsxs("button",{onClick:d,className:w,ref:b,...x,children:[r&&t.jsx("span",{className:"ml-6 mr-2.5 size-6",children:a&&n?n:r}),t.jsx("div",{className:y,children:l}),s&&t.jsx("span",{className:"ml-2.5 mr-6 size-6",children:a&&i?i:s})]})}),Jt=g.forwardRef(({className:e="",classNameChildren:r="",classNameSubHeader:n="",iconLeft:s,iconRight:i,underline:l=!1,subHeader:d=!1,children:a,...x},b)=>{const[w,v]=g.useState(""),y="justify-start items-start gap-4 inline-flex w-full";return g.useEffect(()=>{v(k(y,l?"border-b-2 border-black":"",e))},[e,l]),t.jsxs("div",{className:k(w,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:k("self-stretch text-[#07192d] text-[40px] font-normal font-['Arial'] leading-[48px] pb-1",r),children:a}),d&&t.jsx("div",{className:k("text-[#07192d] text-xl font-normal font-['Arial'] leading-[30px]",n),children:d})]})]}),i&&i]})}),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"},Xt=({className:e,classNameContainer:r="",label:n,options:s,optionsLabel:i,disabled:l=!1,variant:d="default",setSelectedOption:a,error:x=!1,width:b="",...w})=>{const v=g.useRef(null),y=g.useRef(null),C=g.useRef(null),[o,c]=g.useState(!1),[p,S]=g.useState(!1),[L,V]=g.useState(i||"Options"),[I,R]=g.useState(null),O=g.useRef("bottom-[60px]"),[P,W]=g.useState("");g.useEffect(()=>{if(y.current){const u=y.current.getBoundingClientRect(),f=Math.floor(u.height)+2;O.current="bottom-["+f+"px]",console.log("button height: ",O.current)}},[y.current]);const G=()=>{if(v.current&&C.current){const u=v.current.getBoundingClientRect(),f=C.current.offsetHeight;console.log("dropdownHeight: ",f);const h=window.innerHeight,m=document.body.offsetHeight,N=h>m?m:h;console.log("windowHeight: ",h),console.log("documentHeight: ",m),console.log("calculated containerHeight: ",N),console.log("buttonRect.bottom: ",u.bottom),N-u.bottom<f&&u.top>f?S(!0):S(!1)}},$=g.useRef([]);g.useEffect(()=>{$.current=$.current.slice(0,s.length)},[s]);const[j,z]=g.useState(0),F=()=>{c(!o),z(0)};g.useEffect(()=>{W(x?"border-2 border-[#ff0004]":"")},[x]),g.useEffect(()=>{function u(m){o&&v.current&&!v.current.contains(m.target)&&c(!1)}function f(m){o&&m.key==="Escape"&&c(!1)}function h(m){o&&v.current&&!v.current.contains(m.target)&&c(!1)}return document.addEventListener("mousedown",u),document.addEventListener("touchend",u),document.addEventListener("keydown",f),document.addEventListener("focusin",h),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("touchend",u),document.removeEventListener("keydown",f),document.removeEventListener("focusin",h)}},[o]),g.useEffect(()=>{o&&G()},[o]),g.useEffect(()=>{var u;o&&((u=$.current[j])==null||u.focus())},[j,o]);const M=u=>{if(o)switch(u.key){case"ArrowDown":u.preventDefault(),z(f=>{const h=(f+1)%s.length;return R(h),h});break;case"ArrowUp":u.preventDefault(),z(f=>{const h=(f-1+s.length)%s.length;return R(h),h});break;case"Home":u.preventDefault(),z(0);break;case"End":u.preventDefault(),z(s.length-1);break}};return t.jsxs("div",{className:k("relative inline-block text-left",r),ref:v,...w,"aria-disabled":l,children:[n?t.jsx("p",{className:"text-[#092068] mb-2",children:n}):"",t.jsxs("button",{onClick:F,ref:y,className:k(Qt,Ce[d]||Ce.default,P,e,b,o&&p&&"rounded-b-lg"||o&&!p&&"rounded-t-lg"||"rounded-lg"),"aria-label":"Select options - "+L,"aria-disabled":l,"aria-expanded":o,"aria-haspopup":"listbox",disabled:l,tabIndex:0,children:[L,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"})})]}),o&&t.jsx("div",{role:"listbox",ref:C,"aria-label":"Select option",onKeyDown:M,className:k("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",b,o&&p&&"rounded-t-lg pt-1"||o&&!p&&"rounded-b-lg pb-1",p&&O.current),children:s.map((u,f)=>t.jsx("button",{ref:h=>$.current[f]=h,className:`block w-full px-4 py-2 text-left text-sm text-gray-700
|
|
4
4
|
hover:bg-[#092068]/20 focus:outline-none focus:bg-[#092068]/20`,role:"option","aria-selected":I===f,"aria-label":"option "+u.name,onClick:()=>{R(f),V(u.name),a(u.value||u.name),c(!1)},onKeyDown:h=>{h.key==="Enter"||h.code==="Enter"||h.key===" "?(R(f),V(u.name),a(u.value||u.name),c(!1)):h.key==="Escape"&&c(!1)},children:u.name},u.name))})]})},er=g.forwardRef(({className:e,appName:r,image:n,classNameImage:s="",clickOutsideCloses:i,classNameImageContainer:l="",menu:d=!1,classNameMenu:a="",classNameMenuContainer:x="",version:b,menuItems:w,children:v,...y},C)=>{const o=g.useRef(null),[c,p]=g.useState(!1);return g.useEffect(()=>{if(i){const S=L=>{o.current&&!o.current.contains(L.target)&&p(!1)};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}}},[p]),console.log("menu: ",d),console.log("showMenu: ",c),t.jsxs(t.Fragment,{children:[d&&t.jsx("button",{className:k("size-8 mb-4",x),onClick:()=>p(!c),children:t.jsx(tr,{classes:k("fill-slate-500 hover:fill-black size-8",a)})}),t.jsxs("div",{ref:o,className:k("relative w-56 h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto",d&&"fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300",d&&c&&"translate-x-0",e),children:[t.jsx("div",{className:k("w-16 h-16 mx-auto",l),children:t.jsx("img",{src:n,className:k("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1",s),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(Ie,{className:"pl-6 mt-6",children:w.map((S,L)=>t.jsx(ve,{className:"pb-4",children:S.target&&t.jsx(de.NavLink,{to:S.target,children:S.children})},L))}),t.jsx("div",{className:"align-bottom mt-auto text-right right-2 bottom-1",children:b})]})]})}),tr=({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"})]}),rr={default:" h-48 w-56 pt-2",custom:" h-48 w-56 pt-2"},Ve=Q.forwardRef(({className:e,variant:r="default",cssColorClass:n="",children:s,...i},l)=>t.jsx("div",{className:k("flex flex-row flex-wrap animate-pulse",rr[r],e),"aria-label":"Skeleton Component",role:"status",ref:l,...i,children:s}));Ve.displayName="Card";const sr=({className:e="",inline:r=!1})=>r?t.jsx("div",{role:"presentation",className:k("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:k("rounded-full bg-slate-300 h-6 w-6 mx-2 my-1 me-0",e)}),t.jsx("div",{className:"basis-full h-0"})]}),nr=({className:e="",inline:r=!1})=>r?t.jsx("div",{role:"presentation",className:k("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:k("rounded-lg bg-slate-300 h-6 mx-2 my-1 grow",e)}),t.jsx("div",{className:"basis-full h-0"})]}),or=({className:e=""})=>t.jsx("div",{role:"presentation",className:k("rounded-lg bg-slate-300 grow h-24 my-1 mx-2",e)}),ar=({className:e=""})=>t.jsx("div",{role:"presentation",className:"basis-full h-0"}),Re=({className:e,children:r,skipTo:n})=>{let s=null;const i=l=>{l.preventDefault();const d=document.querySelector(n);d&&(d.tabIndex=-1,d.focus(),s=setTimeout(()=>d.removeAttribute("tabindex"),1e3))};return g.useEffect(()=>()=>{s&&clearTimeout(s)},[s]),g.cloneElement(r,{onClick:i,className:e})};Re.defaultProps={className:"skip-link",skipTo:"main:first-of-type"};const lr="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",ir="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",cr="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",pe=[{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`]"}],dr=g.forwardRef(({variant:e="available",className:r,image:n,classNameChild:s,classNameImage:i,children:l,...d},a)=>{const[x,b]=g.useState(),[w,v]=g.useState(),[y,C]=g.useState();return g.useEffect(()=>{var o,c,p;b(k((o=pe.find(S=>S.variant===e))==null?void 0:o.classes,r)),C(k((c=pe.find(S=>S.variant===e))==null?void 0:c.childClasses,s)),v(k((p=pe.find(S=>S.variant===e))==null?void 0:p.imgDivClasses,i))},[e,r,s,i]),t.jsxs("div",{className:x,ref:a,children:[t.jsx("div",{className:w,children:n||(e==="available"?t.jsx("img",{src:ir,alt:"check mark"}):e==="inProgress"?t.jsx("img",{src:lr,alt:"clock"}):t.jsx("img",{src:cr,alt:"close"}))}),t.jsx("div",{className:y,children:l})]})}),ur="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",fr="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"}],gr=g.forwardRef(({defaultChecked:e=!1,disabled:r=!1,onCheckedChange:n,label:s,className:i,classNameButton:l,variant:d="default",type:a="button",children:x,...b},w)=>{var o,c,p,S;const[v,y]=g.useState(e),C=()=>{const L=!v;y(L),n&&n(L)};return t.jsx("button",{onClick:C,disabled:r,role:"switch","aria-checked":v,"aria-disabled":r,...b,ref:w,"aria-label":s||`Toggle ${v?"on":"off"}`,className:k(`${ur}
|
package/index.mjs
CHANGED
|
@@ -2618,7 +2618,7 @@ const O = (e) => {
|
|
|
2618
2618
|
children: /* @__PURE__ */ s("img", { src: At, alt: "home icon" })
|
|
2619
2619
|
}
|
|
2620
2620
|
),
|
|
2621
|
-
a.length >
|
|
2621
|
+
a.length > 0 ? /* @__PURE__ */ s("span", { className: y("me-2", t), children: /* @__PURE__ */ s("img", { src: i, alt: "vector" }) }) : ""
|
|
2622
2622
|
] }),
|
|
2623
2623
|
a.map((h, f) => {
|
|
2624
2624
|
const v = "/" + a.slice(0, f + 1).join("/");
|