@dhasdk/simple-ui 1.0.0 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -36
- package/index.d.ts +6 -0
- package/index.js +27 -6
- package/index.mjs +1792 -1432
- package/lib/AppointmentPicker.d.ts +21 -0
- package/lib/Breadcrumbs.d.ts +5 -1
- package/lib/ButtonGroup.d.ts +1 -0
- package/lib/Input.d.ts +1 -0
- package/lib/RadioGroup.d.ts +14 -0
- package/lib/Search.d.ts +30 -0
- package/lib/SearchContent.d.ts +6 -0
- package/lib/SectionHeader.d.ts +6 -1
- package/package.json +4 -2
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("react"),de=require("react-router-dom");function Qe(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const W=Qe(i),ke="-",Xe=e=>{const s=tt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(ke);return a[0]===""&&a.length!==1&&a.shift(),Ve(a,s)||et(o)},getConflictingClassGroupIds:(o,a)=>{const p=r[o]||[];return a&&n[o]?[...p,...n[o]]:p}}},Ve=(e,s)=>{var o;if(e.length===0)return s.classGroupId;const r=e[0],n=s.nextPart.get(r),d=n?Ve(e.slice(1),n):void 0;if(d)return d;if(s.validators.length===0)return;const c=e.join(ke);return(o=s.validators.find(({validator:a})=>a(c)))==null?void 0:o.classGroupId},Se=/^\[(.+)\]$/,et=e=>{if(Se.test(e)){const s=Se.exec(e)[1],r=s==null?void 0:s.substring(0,s.indexOf(":"));if(r)return"arbitrary.."+r}},tt=e=>{const{theme:s,prefix:r}=e,n={nextPart:new Map,validators:[]};return rt(Object.entries(e.classGroups),r).forEach(([c,o])=>{Ce(o,n,c,s)}),n},Ce=(e,s,r,n)=>{e.forEach(d=>{if(typeof d=="string"){const c=d===""?s:Ne(s,d);c.classGroupId=r;return}if(typeof d=="function"){if(st(d)){Ce(d(n),s,r,n);return}s.validators.push({validator:d,classGroupId:r});return}Object.entries(d).forEach(([c,o])=>{Ce(o,Ne(s,c),r,n)})})},Ne=(e,s)=>{let r=e;return s.split(ke).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},st=e=>e.isThemeGetter,rt=(e,s)=>s?e.map(([r,n])=>{const d=n.map(c=>typeof c=="string"?s+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([o,a])=>[s+o,a])):c);return[r,d]}):e,nt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,r=new Map,n=new Map;const d=(c,o)=>{r.set(c,o),s++,s>e&&(s=0,n=r,r=new Map)};return{get(c){let o=r.get(c);if(o!==void 0)return o;if((o=n.get(c))!==void 0)return d(c,o),o},set(c,o){r.has(c)?r.set(c,o):d(c,o)}}},Ee="!",ot=e=>{const{separator:s,experimentalParseClassName:r}=e,n=s.length===1,d=s[0],c=s.length,o=a=>{const p=[];let g=0,S=0,w;for(let j=0;j<a.length;j++){let M=a[j];if(g===0){if(M===d&&(n||a.slice(j,j+c)===s)){p.push(a.slice(S,j)),S=j+c;continue}if(M==="/"){w=j;continue}}M==="["?g++:M==="]"&&g--}const x=p.length===0?a:a.substring(S),k=x.startsWith(Ee),l=k?x.substring(1):x,h=w&&w>S?w-S:void 0;return{modifiers:p,hasImportantModifier:k,baseClassName:l,maybePostfixModifierPosition:h}};return r?a=>r({className:a,parseClassName:o}):o},at=e=>{if(e.length<=1)return e;const s=[];let r=[];return e.forEach(n=>{n[0]==="["?(s.push(...r.sort(),n),r=[]):r.push(n)}),s.push(...r.sort()),s},lt=e=>({cache:nt(e.cacheSize),parseClassName:ot(e),...Xe(e)}),it=/\s+/,ct=(e,s)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:d}=s,c=[],o=e.trim().split(it);let a="";for(let p=o.length-1;p>=0;p-=1){const g=o[p],{modifiers:S,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:k}=r(g);let l=!!k,h=n(l?x.substring(0,k):x);if(!h){if(!l){a=g+(a.length>0?" "+a:a);continue}if(h=n(x),!h){a=g+(a.length>0?" "+a:a);continue}l=!1}const j=at(S).join(":"),M=w?j+Ee:j,D=M+h;if(c.includes(D))continue;c.push(D);const H=d(h,l);for(let I=0;I<H.length;++I){const V=H[I];c.push(M+V)}a=g+(a.length>0?" "+a:a)}return a};function dt(){let e=0,s,r,n="";for(;e<arguments.length;)(s=arguments[e++])&&(r=Ie(s))&&(n&&(n+=" "),n+=r);return n}const Ie=e=>{if(typeof e=="string")return e;let s,r="";for(let n=0;n<e.length;n++)e[n]&&(s=Ie(e[n]))&&(r&&(r+=" "),r+=s);return r};function ut(e,...s){let r,n,d,c=o;function o(p){const g=s.reduce((S,w)=>w(S),e());return r=lt(g),n=r.cache.get,d=r.cache.set,c=a,a(p)}function a(p){const g=n(p);if(g)return g;const S=ct(p,r);return d(p,S),S}return function(){return c(dt.apply(null,arguments))}}const T=e=>{const s=r=>r[e]||[];return s.isThemeGetter=!0,s},Ae=/^\[(?:([a-z-]+):)?(.+)\]$/i,ft=/^\d+\/\d+$/,gt=new Set(["px","full","screen"]),mt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ht=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>re(e)||gt.has(e)||ft.test(e),J=e=>ne(e,"length",Nt),re=e=>!!e&&!Number.isNaN(Number(e)),me=e=>ne(e,"number",re),le=e=>!!e&&Number.isInteger(Number(e)),wt=e=>e.endsWith("%")&&re(e.slice(0,-1)),_=e=>Ae.test(e),Q=e=>mt.test(e),vt=new Set(["length","size","percentage"]),yt=e=>ne(e,vt,He),Ct=e=>ne(e,"position",He),kt=new Set(["image","url"]),jt=e=>ne(e,kt,$t),St=e=>ne(e,"",Mt),ie=()=>!0,ne=(e,s,r)=>{const n=Ae.exec(e);return n?n[1]?typeof s=="string"?n[1]===s:s.has(n[1]):r(n[2]):!1},Nt=e=>pt.test(e)&&!bt.test(e),He=()=>!1,Mt=e=>ht.test(e),$t=e=>xt.test(e),Dt=()=>{const e=T("colors"),s=T("spacing"),r=T("blur"),n=T("brightness"),d=T("borderColor"),c=T("borderRadius"),o=T("borderSpacing"),a=T("borderWidth"),p=T("contrast"),g=T("grayscale"),S=T("hueRotate"),w=T("invert"),x=T("gap"),k=T("gradientColorStops"),l=T("gradientColorStopPositions"),h=T("inset"),j=T("margin"),M=T("opacity"),D=T("padding"),H=T("saturate"),I=T("scale"),V=T("sepia"),A=T("skew"),B=T("space"),R=T("translate"),O=()=>["auto","contain","none"],m=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto",_,s],N=()=>[_,s],P=()=>["",K,J],$=()=>["auto",re,_],u=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],f=()=>["solid","dashed","dotted","double","none"],C=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],y=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",_],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[re,_];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[K,J],blur:["none","",Q,_],brightness:E(),borderColor:[e],borderRadius:["none","","full",Q,_],borderSpacing:N(),borderWidth:P(),contrast:E(),grayscale:L(),hueRotate:E(),invert:L(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[wt,J],inset:b(),margin:b(),opacity:E(),padding:N(),saturate:E(),scale:E(),sepia:L(),skew:E(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[Q]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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:m()}],"overflow-x":[{"overflow-x":m()}],"overflow-y":[{"overflow-y":m()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le,_]}],basis:[{basis:b()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",le,_]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",le,_]},_]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[le,_]},_]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"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:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_,s]}],"min-w":[{"min-w":[_,s,"min","max","fit"]}],"max-w":[{"max-w":[_,s,"none","full","min","max","fit","prose",{screen:[Q]},Q]}],h:[{h:[_,s,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_,s,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_,s,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_,s,"auto","min","max","fit"]}],"font-size":[{text:["base",Q,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"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",re,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",K,_]}],"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":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...f(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",K,J]}],"underline-offset":[{"underline-offset":["auto",K,_]}],"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:N()}],"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":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...u(),Ct]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[l]}],"gradient-via-pos":[{via:[l]}],"gradient-to-pos":[{to:[l]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"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":[M]}],"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":[M]}],"divide-style":[{divide:f()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...f()]}],"outline-offset":[{"outline-offset":[K,_]}],"outline-w":[{outline:[K,J]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[K,J]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Q,St]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...C(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":C()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Q,_]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[w]}],saturate:[{saturate:[H]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"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":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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:[K,J,me]}],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"]}}},v=ut(Dt),Lt="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='Frame'%3e%3cpath%20id='Vector'%20d='M11%2019.25V13H4.75V11H11V4.75H13V11H19.25V13H13V19.25H11Z'%20fill='%2371767A'/%3e%3c/g%3e%3c/svg%3e",zt="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='Frame'%3e%3cpath%20id='Vector'%20d='M4.75%2013V11H19.25V13H4.75Z'%20fill='%2371767A'/%3e%3c/g%3e%3c/svg%3e",Te="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",Re="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",_t="mt-[-0.5rem]",pe='flex justify-between items-center w-full py-2 px-4 text-left bg-white rounded border border-[#dfe1e2] mt-2 text-[#71767a] text-lg font-bold font-["Arial"]',be='px-4 py-2 border border-t-0 border-[#dfe1e2] text-[#71767a] bg-white text-lg font-normal font-["Arial"]',Vt={},Et={},It=i.forwardRef(({variant:e="default",label:s,classNameContainer:r="",chevron:n=!1,iconAccordionOpened:d,iconAccordionClosed:c,hr:o=!0,classNameHeading:a="",classNameContent:p="",onExpand:g,singleOpen:S,classNameHr:w="",useBackground:x=!0,index:k,children:l,...h},j)=>{const[M,D]=i.useState(!1),[H,I]=i.useState(be),[V,A]=i.useState(pe),[B,R]=i.useState("border-[#dfe1e2] -mt-2 pt-0 mb-3"),O=`accordion-${k??s.replace(/\s+/g,"-").toLowerCase()}`,m=()=>{g&&S&&g(D),D(!M)},b=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),m())};return i.useEffect(()=>{R(v("border-[#dfe1e2] -mt-2 pt-0 mb-3",w))},[w]),i.useEffect(()=>{I(x?be:v(be,"bg-transparent border-0"))},[x]),i.useEffect(()=>{A(M&&x?v(pe,"border-b-0 rounded-t rounded-b-none"):pe)},[M,x]),t.jsxs("div",{ref:j,className:r,children:[t.jsxs("button",{className:v(V,Vt.variant,a),"aria-controls":`${O}-content`,"aria-expanded":M,id:`${O}-header`,onClick:m,onKeyDown:b,...h,children:[t.jsx("span",{children:s}),t.jsx("span",{children:M?d||t.jsx("img",{src:n?Re:zt,className:"size-5",alt:"Close Icon"}):c||t.jsx("img",{src:n?Te:Lt,className:"size-5",alt:"Open Icon"})})]}),M&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:v(H,Et.variant,p,x&&"rounded-b-md","relative"),id:`${O}-content`,role:"region","aria-labelledby":`${O}-header`,children:[x&&o&&t.jsx("hr",{className:B}),l]})})]})}),At=i.forwardRef(({children:e,variant:s="default",chevron:r,iconAccordionOpened:n,iconAccordionClosed:d,classNameContainer:c,singleOpen:o=!0,classNameChildHeading:a,classNameChildContent:p,hr:g,classNameHr:S,useBackground:w,...x},k)=>{const[l,h]=i.useState(null),j=M=>{l&&l(!1),h(()=>M)};return t.jsx("div",{ref:k,...x,className:v(_t,c),children:i.Children.map(e,(M,D)=>i.isValidElement(M)?i.cloneElement(M,{...M.props,variant:s,chevron:r,iconAccordionOpened:n,iconAccordionClosed:d,classNameHeading:v(a,M.props.classNameHeading),classNameContent:v(p,M.props.classNameContent),singleOpen:o,onExpand:H=>j(H),hr:M.props.hr===!1?!1:g,classNameHr:v(S,M.props.classNameHr),useBackground:M.props.useBackground===!1?!1:w,index:D}):M)})}),Ht="data:image/svg+xml,%3csvg%20viewBox='2%202%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_3326_3783'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='20'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3326_3783)'%3e%3cpath%20id='warning_2'%20d='M2.5959%2013.4861C2.47923%2013.4861%202.37854%2013.4605%202.29382%2013.4094C2.20921%2013.3582%202.14341%2013.2907%202.09642%2013.2069C2.04226%2013.125%202.01824%2013.0324%202.02437%2012.9292C2.03051%2012.8259%202.05991%2012.7266%202.11257%2012.6313L8.02281%202.8132C8.07559%202.71783%208.14463%202.65035%208.22993%202.61077C8.31523%202.57118%208.40539%202.55139%208.50041%202.55139C8.59532%202.55139%208.68531%202.57118%208.77038%202.61077C8.85533%202.65035%208.9242%202.71783%208.97698%202.8132L14.8872%2012.6313C14.9399%2012.7266%2014.9693%2012.8259%2014.9754%2012.9292C14.9815%2013.0324%2014.9575%2013.125%2014.9034%2013.2069C14.8514%2013.2896%2014.7843%2013.3568%2014.7022%2013.4085C14.62%2013.4602%2014.5206%2013.4861%2014.4039%2013.4861H2.5959ZM3.20476%2012.5833H13.795L8.49989%203.76389L3.20476%2012.5833ZM8.49625%2011.6165C8.63444%2011.6165%208.75151%2011.5697%208.84746%2011.4762C8.94341%2011.3827%208.99139%2011.2668%208.99139%2011.1286C8.99139%2010.9905%208.94463%2010.8734%208.85111%2010.7774C8.75759%2010.6815%208.64173%2010.6335%208.50354%2010.6335C8.36535%2010.6335%208.24827%2010.6803%208.15233%2010.7738C8.05638%2010.8673%208.0084%2010.9832%208.0084%2011.1214C8.0084%2011.2596%208.05516%2011.3766%208.14868%2011.4726C8.2422%2011.5685%208.35805%2011.6165%208.49625%2011.6165ZM8.49642%209.80018C8.62339%209.80018%208.73091%209.75695%208.81899%209.67049C8.90719%209.58392%208.95128%209.47668%208.95128%209.34879V6.91823C8.95128%206.79034%208.90834%206.68316%208.82246%206.5967C8.73658%206.51013%208.63022%206.46684%208.50337%206.46684C8.3764%206.46684%208.26888%206.51013%208.1808%206.5967C8.0926%206.68316%208.04851%206.79034%208.04851%206.91823V9.34879C8.04851%209.47668%208.09145%209.58392%208.17733%209.67049C8.26321%209.75695%208.36957%209.80018%208.49642%209.80018Z'%20fill='%23387740'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Tt="data:image/svg+xml,%3csvg%20viewBox='2%202%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_3326_3783'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='20'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3326_3783)'%3e%3cpath%20id='warning_2'%20d='M2.5959%2013.4861C2.47923%2013.4861%202.37854%2013.4605%202.29382%2013.4094C2.20921%2013.3582%202.14341%2013.2907%202.09642%2013.2069C2.04226%2013.125%202.01824%2013.0324%202.02437%2012.9292C2.03051%2012.8259%202.05991%2012.7266%202.11257%2012.6313L8.02281%202.8132C8.07559%202.71783%208.14463%202.65035%208.22993%202.61077C8.31523%202.57118%208.40539%202.55139%208.50041%202.55139C8.59532%202.55139%208.68531%202.57118%208.77038%202.61077C8.85533%202.65035%208.9242%202.71783%208.97698%202.8132L14.8872%2012.6313C14.9399%2012.7266%2014.9693%2012.8259%2014.9754%2012.9292C14.9815%2013.0324%2014.9575%2013.125%2014.9034%2013.2069C14.8514%2013.2896%2014.7843%2013.3568%2014.7022%2013.4085C14.62%2013.4602%2014.5206%2013.4861%2014.4039%2013.4861H2.5959ZM3.20476%2012.5833H13.795L8.49989%203.76389L3.20476%2012.5833ZM8.49625%2011.6165C8.63444%2011.6165%208.75151%2011.5697%208.84746%2011.4762C8.94341%2011.3827%208.99139%2011.2668%208.99139%2011.1286C8.99139%2010.9905%208.94463%2010.8734%208.85111%2010.7774C8.75759%2010.6815%208.64173%2010.6335%208.50354%2010.6335C8.36535%2010.6335%208.24827%2010.6803%208.15233%2010.7738C8.05638%2010.8673%208.0084%2010.9832%208.0084%2011.1214C8.0084%2011.2596%208.05516%2011.3766%208.14868%2011.4726C8.2422%2011.5685%208.35805%2011.6165%208.49625%2011.6165ZM8.49642%209.80018C8.62339%209.80018%208.73091%209.75695%208.81899%209.67049C8.90719%209.58392%208.95128%209.47668%208.95128%209.34879V6.91823C8.95128%206.79034%208.90834%206.68316%208.82246%206.5967C8.73658%206.51013%208.63022%206.46684%208.50337%206.46684C8.3764%206.46684%208.26888%206.51013%208.1808%206.5967C8.0926%206.68316%208.04851%206.79034%208.04851%206.91823V9.34879C8.04851%209.47668%208.09145%209.58392%208.17733%209.67049C8.26321%209.75695%208.36957%209.80018%208.49642%209.80018Z'%20fill='%23A32C24'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Rt="data:image/svg+xml,%3csvg%20viewBox='2%202%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_3326_3783'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='20'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='20'%20height='20'%20fill='%23966222'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3326_3783)'%3e%3cpath%20id='warning_2'%20d='M2.5959%2013.4861C2.47923%2013.4861%202.37854%2013.4605%202.29382%2013.4094C2.20921%2013.3582%202.14341%2013.2907%202.09642%2013.2069C2.04226%2013.125%202.01824%2013.0324%202.02437%2012.9292C2.03051%2012.8259%202.05991%2012.7266%202.11257%2012.6313L8.02281%202.8132C8.07559%202.71783%208.14463%202.65035%208.22993%202.61077C8.31523%202.57118%208.40539%202.55139%208.50041%202.55139C8.59532%202.55139%208.68531%202.57118%208.77038%202.61077C8.85533%202.65035%208.9242%202.71783%208.97698%202.8132L14.8872%2012.6313C14.9399%2012.7266%2014.9693%2012.8259%2014.9754%2012.9292C14.9815%2013.0324%2014.9575%2013.125%2014.9034%2013.2069C14.8514%2013.2896%2014.7843%2013.3568%2014.7022%2013.4085C14.62%2013.4602%2014.5206%2013.4861%2014.4039%2013.4861H2.5959ZM3.20476%2012.5833H13.795L8.49989%203.76389L3.20476%2012.5833ZM8.49625%2011.6165C8.63444%2011.6165%208.75151%2011.5697%208.84746%2011.4762C8.94341%2011.3827%208.99139%2011.2668%208.99139%2011.1286C8.99139%2010.9905%208.94463%2010.8734%208.85111%2010.7774C8.75759%2010.6815%208.64173%2010.6335%208.50354%2010.6335C8.36535%2010.6335%208.24827%2010.6803%208.15233%2010.7738C8.05638%2010.8673%208.0084%2010.9832%208.0084%2011.1214C8.0084%2011.2596%208.05516%2011.3766%208.14868%2011.4726C8.2422%2011.5685%208.35805%2011.6165%208.49625%2011.6165ZM8.49642%209.80018C8.62339%209.80018%208.73091%209.75695%208.81899%209.67049C8.90719%209.58392%208.95128%209.47668%208.95128%209.34879V6.91823C8.95128%206.79034%208.90834%206.68316%208.82246%206.5967C8.73658%206.51013%208.63022%206.46684%208.50337%206.46684C8.3764%206.46684%208.26888%206.51013%208.1808%206.5967C8.0926%206.68316%208.04851%206.79034%208.04851%206.91823V9.34879C8.04851%209.47668%208.09145%209.58392%208.17733%209.67049C8.26321%209.75695%208.36957%209.80018%208.49642%209.80018Z'%20fill='%23966222'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ot="data:image/svg+xml,%3csvg%20viewBox='2%202%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_3326_3783'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='20'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='20'%20height='20'%20fill='%23394150'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3326_3783)'%3e%3cpath%20id='warning_2'%20d='M2.5959%2013.4861C2.47923%2013.4861%202.37854%2013.4605%202.29382%2013.4094C2.20921%2013.3582%202.14341%2013.2907%202.09642%2013.2069C2.04226%2013.125%202.01824%2013.0324%202.02437%2012.9292C2.03051%2012.8259%202.05991%2012.7266%202.11257%2012.6313L8.02281%202.8132C8.07559%202.71783%208.14463%202.65035%208.22993%202.61077C8.31523%202.57118%208.40539%202.55139%208.50041%202.55139C8.59532%202.55139%208.68531%202.57118%208.77038%202.61077C8.85533%202.65035%208.9242%202.71783%208.97698%202.8132L14.8872%2012.6313C14.9399%2012.7266%2014.9693%2012.8259%2014.9754%2012.9292C14.9815%2013.0324%2014.9575%2013.125%2014.9034%2013.2069C14.8514%2013.2896%2014.7843%2013.3568%2014.7022%2013.4085C14.62%2013.4602%2014.5206%2013.4861%2014.4039%2013.4861H2.5959ZM3.20476%2012.5833H13.795L8.49989%203.76389L3.20476%2012.5833ZM8.49625%2011.6165C8.63444%2011.6165%208.75151%2011.5697%208.84746%2011.4762C8.94341%2011.3827%208.99139%2011.2668%208.99139%2011.1286C8.99139%2010.9905%208.94463%2010.8734%208.85111%2010.7774C8.75759%2010.6815%208.64173%2010.6335%208.50354%2010.6335C8.36535%2010.6335%208.24827%2010.6803%208.15233%2010.7738C8.05638%2010.8673%208.0084%2010.9832%208.0084%2011.1214C8.0084%2011.2596%208.05516%2011.3766%208.14868%2011.4726C8.2422%2011.5685%208.35805%2011.6165%208.49625%2011.6165ZM8.49642%209.80018C8.62339%209.80018%208.73091%209.75695%208.81899%209.67049C8.90719%209.58392%208.95128%209.47668%208.95128%209.34879V6.91823C8.95128%206.79034%208.90834%206.68316%208.82246%206.5967C8.73658%206.51013%208.63022%206.46684%208.50337%206.46684C8.3764%206.46684%208.26888%206.51013%208.1808%206.5967C8.0926%206.68316%208.04851%206.79034%208.04851%206.91823V9.34879C8.04851%209.47668%208.09145%209.58392%208.17733%209.67049C8.26321%209.75695%208.36957%209.80018%208.49642%209.80018Z'%20fill='%23394150'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",fe={success:{className:"w-[79px] h-[26px] px-3 py-1 bg-[#d6f4d5] rounded-[40px] outline outline-1 outline-offset-[-1px] outline-[#387740] inline-flex justify-center items-center gap-0 md:w-[113px] md:h-[36px] md:px-5 md:py-1.5 md:gap-0.5 lg:w-[133px] lg:h-[43px] lg:px-6 lg:py-2 lg:gap-0",classNameImage:"relative size-2.5 mb-0.5 me-1.5 md:size-3.5 md:me-2 lg:size-4 lg:mb-0.5 lg:me-2.5 lg:ms-1",classNameChildren:"text-[#387740] text-xs font-normal font-['Arial'] leading-[18px] md:text-md md:leading-normal lg:text-lg lg:leading-[27px]"},caution:{className:"w-[79px] h-[26px] px-3 py-1 bg-[#fff1be] rounded-[40px] outline outline-1 outline-offset-[-1px] outline-[#966121] inline-flex justify-center items-center gap-0 md:w-[113px] md:h-[36px] md:px-5 md:py-1.5 md:gap-0.5 lg:w-[133px] lg:h-[43px] lg:px-6 lg:py-2 lg:gap-0",classNameImage:"relative size-2.5 mb-0.5 me-1.5 md:size-3.5 md:me-2 lg:size-4 lg:mb-0.5 lg:me-2.5 lg:ms-1",classNameChildren:"text-[#966222] text-xs font-normal font-['Arial'] leading-[18px] md:text-base md:leading-normal lg:text-lg lg:leading-[27px]"},danger:{className:"w-[79px] h-[26px] px-3 py-1 bg-[#f4c2c2] rounded-[40px] outline outline-1 outline-offset-[-1px] outline-[#a22b23] inline-flex justify-center items-center gap-0 md:w-[113px] md:h-[36px] md:px-5 md:py-1.5 md:gap-0.5 lg:w-[133px] lg:h-[43px] lg:px-6 lg:py-2 lg:gap-0",classNameImage:"relative size-2.5 mb-0.5 me-1.5 md:size-3.5 md:me-2 lg:size-4 lg:mb-0.5 lg:me-2.5 lg:ms-1",classNameChildren:"text-[#A32C24] text-xs font-normal font-['Arial'] leading-[18px] md:text-base md:leading-normal lg:text-lg lg:leading-[27px]"},disabled:{className:"w-[79px] h-[26px] px-3 py-1 rounded-[40px] outline outline-1 outline-offset-[-1px] outline-[#394150] inline-flex justify-center items-center gap-0 md:w-[113px] md:h-[36px] md:px-5 md:py-1.5 md:gap-0.5 lg:w-[133px] lg:h-[43px] lg:px-6 lg:py-2 lg:gap-0",classNameImage:"relative size-2.5 mb-0.5 me-1.5 md:size-3.5 md:me-2 lg:size-4 lg:mb-0.5 lg:me-2.5 lg:ms-1",classNameChildren:"text-[#394150] text-xs font-normal font-['Arial'] leading-[18px] md:text-md md:leading-normal lg:text-lg lg:leading-[27px]"}},Bt={success:Ht,caution:Rt,danger:Tt,disabled:Ot},Yt=i.forwardRef(({variant:e="success",className:s="",classNameImage:r="",classNameChildren:n="",icon:d,children:c,...o},a)=>{const p=Bt[e];return t.jsxs("div",{className:v(fe[e].className,s),ref:a,...o,children:[d?t.jsx("span",{className:v(fe[e].classNameImage,r),children:d}):t.jsx("img",{className:v(fe[e].classNameImage,r),src:p,alt:"warning"}),t.jsx("div",{className:v(fe[e].classNameChildren,n),children:c})]})}),Pt='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-[8px] md:py-[12px] lg:py-[16px] h-[40px] md:h-[48px] lg:h-[56px] ',he={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-bottom-nav-background 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(238,131,255,1.00)] active:bg-[#0F37B3] disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] ",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(238,131,255,1.00)] 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]",selected:""}},Oe=i.forwardRef(({label:e,onClick:s,className:r,icon:n,iconPosition:d,variant:c="default",type:o="button",children:a,selected:p=!1,classNameSelected:g,classNameGroup:S="",...w},x)=>{const[k,l]=i.useState("");return i.useEffect(()=>{let h=he[c].normal||he.default.normal;p&&!g?h=v(h,he[c].selected):p&&g&&(h=v(h,g)),l(v(Pt,h))},[p,g,c]),t.jsxs("button",{type:o,onClick:s,className:`${d==="iconOnly"?v(k,"px-[12px] md:px-[14px] lg:px-[16px] py-[8px] md:py-[12px] lg:py-[16px]",S,r):v(k,S,r)}`,ref:x,...w,children:[d==="left"&&n&&t.jsx("span",{className:"icon-left mr-3 size-6",children:n}),d==="iconOnly"&&n?t.jsx("span",{className:"size-6",children:n}):t.jsx("span",{className:"button-text",children:a||e}),d==="right"&&n&&t.jsx("span",{className:"icon-right ml-3 size-6",children:n})]})});Oe.displayName="SDK Button";const Be=i.forwardRef(({className:e,children:s,classNameButtons:r,...n},d)=>{const c=i.Children.map(s,o=>{if(i.isValidElement(o)){const a=o,p=o.props.classNameGroup||"";return i.cloneElement(a,{classNameGroup:v(p,r)})}return o});return t.jsx("div",{className:v("",e),ref:d,children:c})});Be.displayName="SDK ButtonGroup";const Ft="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",Zt="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",Gt={default:"",bold:"font-bold"},Ut=W.forwardRef(({classNameContainer:e,className:s,variant:r="default",auto:n=!0,separator:d=Ft,...c},o)=>{const a=de.useLocation().pathname.split("/").filter(p=>p!=="");return t.jsx("nav",{className:v(Gt[r],e),...c,ref:o,"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:v("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2 hidden md:inline-flex",s),children:"Homepage"}),t.jsx(de.Link,{to:"/",className:v("capitalize me-2 inline-flex md:hidden",s),children:t.jsx("img",{src:Zt,alt:"home icon"})}),a.length>0?t.jsx("span",{className:v("me-2",s),children:t.jsx("img",{src:d,alt:"vector"})}):""]}),a.map((p,g)=>{const S="/"+a.slice(0,g+1).join("/");return t.jsxs("li",{className:"breadcrumb-item inline-flex items-center",children:[g===a.length-1?t.jsx("span",{className:"text-black font-bold capitalize","aria-current":"page",children:decodeURIComponent(p).replace(/-/g," ")}):t.jsx(de.Link,{to:S,className:v("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2",s),children:decodeURIComponent(p).replace(/-/g," ")}),g<a.length-1&&t.jsx("span",{className:v("me-2",s),children:t.jsx("img",{src:d,alt:"vector"})})]},g)})]})})}),Wt={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"},Kt={default:"bg-white overflow-hidden rounded-lg",outline:"bg-white overflow-hidden rounded-lg shadow-md border border-slate-300"},qt="px-4 my-2",Jt="px-2 my-2",Ye=W.forwardRef(({className:e,variant:s="default",variantStyle:r="default",imagePath:n,classNameImage:d="w-full h-full",imageInset:c=!1,alt:o,ariaLabel:a="card component",children:p,...g},S)=>t.jsxs("div",{className:v("flex ",Kt[r],Wt[s],e),"aria-label":a,ref:S,...g,children:[t.jsx("div",{className:v("flex-initial items-center justify-center w-full",c&&(s==="default"||s==="imageBottom"?qt:Jt)),children:n&&t.jsx("img",{src:n,alt:o,className:d})}),t.jsx("div",{className:"flex-auto px-4 my-2",children:p})]}));Ye.displayName="Card";const Qt=({className:e="",classNameMessage:s="",classNameOverLimitMessage:r="",maxCharacters:n,children:d,altRemainingMessageText:c,altOverageMessageText:o})=>{const[a,p]=i.useState(`${n} characters allowed`),[g,S]=i.useState(!1),w=x=>{const l=x.target.value.length;if(S(l>n),l===0)p(`${n} characters allowed`);else if(l<=n){const h=" "+(c??"remaining");p(`${n-l}${h}`)}else{const h=" "+(o??"characters too many");p(`${l-n}${h}`)}};return t.jsxs("div",{className:e,children:[t.jsx("div",{onInput:w,className:"mb-2",children:d}),t.jsx("div",{className:v(s,g&&"text-red-500",g&&r),children:a})," "]})};var Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function es(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={exports:{}};(function(e,s){(function(r,n){e.exports=n()})(Xt,function(){var r=1e3,n=6e4,d=36e5,c="millisecond",o="second",a="minute",p="hour",g="day",S="week",w="month",x="quarter",k="year",l="date",h="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|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,D={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($){var u=["th","st","nd","rd"],f=$%100;return"["+$+(u[(f-20)%10]||u[f]||u[0])+"]"}},H=function($,u,f){var C=String($);return!C||C.length>=u?$:""+Array(u+1-C.length).join(f)+$},I={s:H,z:function($){var u=-$.utcOffset(),f=Math.abs(u),C=Math.floor(f/60),y=f%60;return(u<=0?"+":"-")+H(C,2,"0")+":"+H(y,2,"0")},m:function $(u,f){if(u.date()<f.date())return-$(f,u);var C=12*(f.year()-u.year())+(f.month()-u.month()),y=u.clone().add(C,w),L=f-y<0,z=u.clone().add(C+(L?-1:1),w);return+(-(C+(f-y)/(L?y-z:z-y))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:w,y:k,w:S,d:g,D:l,h:p,m:a,s:o,ms:c,Q:x}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},V="en",A={};A[V]=D;var B="$isDayjsObject",R=function($){return $ instanceof N||!(!$||!$[B])},O=function $(u,f,C){var y;if(!u)return V;if(typeof u=="string"){var L=u.toLowerCase();A[L]&&(y=L),f&&(A[L]=f,y=L);var z=u.split("-");if(!y&&z.length>1)return $(z[0])}else{var E=u.name;A[E]=u,y=E}return!C&&y&&(V=y),y||!C&&V},m=function($,u){if(R($))return $.clone();var f=typeof u=="object"?u:{};return f.date=$,f.args=arguments,new N(f)},b=I;b.l=O,b.i=R,b.w=function($,u){return m($,{locale:u.$L,utc:u.$u,x:u.$x,$offset:u.$offset})};var N=function(){function $(f){this.$L=O(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[B]=!0}var u=$.prototype;return u.parse=function(f){this.$d=function(C){var y=C.date,L=C.utc;if(y===null)return new Date(NaN);if(b.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var z=y.match(j);if(z){var E=z[2]-1||0,Y=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],E,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)):new Date(z[1],E,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Y)}}return new Date(y)}(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 b},u.isValid=function(){return this.$d.toString()!==h},u.isSame=function(f,C){var y=m(f);return this.startOf(C)<=y&&y<=this.endOf(C)},u.isAfter=function(f,C){return m(f)<this.startOf(C)},u.isBefore=function(f,C){return this.endOf(C)<m(f)},u.$g=function(f,C,y){return b.u(f)?this[C]:this.set(y,f)},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this.$d.getTime()},u.startOf=function(f,C){var y=this,L=!!b.u(C)||C,z=b.p(f),E=function(ee,G){var q=b.w(y.$u?Date.UTC(y.$y,G,ee):new Date(y.$y,G,ee),y);return L?q:q.endOf(g)},Y=function(ee,G){return b.w(y.toDate()[ee].apply(y.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(G)),y)},F=this.$W,Z=this.$M,U=this.$D,se="set"+(this.$u?"UTC":"");switch(z){case k:return L?E(1,0):E(31,11);case w:return L?E(1,Z):E(0,Z+1);case S:var X=this.$locale().weekStart||0,oe=(F<X?F+7:F)-X;return E(L?U-oe:U+(6-oe),Z);case g:case l:return Y(se+"Hours",0);case p:return Y(se+"Minutes",1);case a:return Y(se+"Seconds",2);case o:return Y(se+"Milliseconds",3);default:return this.clone()}},u.endOf=function(f){return this.startOf(f,!1)},u.$set=function(f,C){var y,L=b.p(f),z="set"+(this.$u?"UTC":""),E=(y={},y[g]=z+"Date",y[l]=z+"Date",y[w]=z+"Month",y[k]=z+"FullYear",y[p]=z+"Hours",y[a]=z+"Minutes",y[o]=z+"Seconds",y[c]=z+"Milliseconds",y)[L],Y=L===g?this.$D+(C-this.$W):C;if(L===w||L===k){var F=this.clone().set(l,1);F.$d[E](Y),F.init(),this.$d=F.set(l,Math.min(this.$D,F.daysInMonth())).$d}else E&&this.$d[E](Y);return this.init(),this},u.set=function(f,C){return this.clone().$set(f,C)},u.get=function(f){return this[b.p(f)]()},u.add=function(f,C){var y,L=this;f=Number(f);var z=b.p(C),E=function(Z){var U=m(L);return b.w(U.date(U.date()+Math.round(Z*f)),L)};if(z===w)return this.set(w,this.$M+f);if(z===k)return this.set(k,this.$y+f);if(z===g)return E(1);if(z===S)return E(7);var Y=(y={},y[a]=n,y[p]=d,y[o]=r,y)[z]||1,F=this.$d.getTime()+f*Y;return b.w(F,this)},u.subtract=function(f,C){return this.add(-1*f,C)},u.format=function(f){var C=this,y=this.$locale();if(!this.isValid())return y.invalidDate||h;var L=f||"YYYY-MM-DDTHH:mm:ssZ",z=b.z(this),E=this.$H,Y=this.$m,F=this.$M,Z=y.weekdays,U=y.months,se=y.meridiem,X=function(G,q,ae,ue){return G&&(G[q]||G(C,L))||ae[q].slice(0,ue)},oe=function(G){return b.s(E%12||12,G,"0")},ee=se||function(G,q,ae){var ue=G<12?"AM":"PM";return ae?ue.toLowerCase():ue};return L.replace(M,function(G,q){return q||function(ae){switch(ae){case"YY":return String(C.$y).slice(-2);case"YYYY":return b.s(C.$y,4,"0");case"M":return F+1;case"MM":return b.s(F+1,2,"0");case"MMM":return X(y.monthsShort,F,U,3);case"MMMM":return X(U,F);case"D":return C.$D;case"DD":return b.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return X(y.weekdaysMin,C.$W,Z,2);case"ddd":return X(y.weekdaysShort,C.$W,Z,3);case"dddd":return Z[C.$W];case"H":return String(E);case"HH":return b.s(E,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ee(E,Y,!0);case"A":return ee(E,Y,!1);case"m":return String(Y);case"mm":return b.s(Y,2,"0");case"s":return String(C.$s);case"ss":return b.s(C.$s,2,"0");case"SSS":return b.s(C.$ms,3,"0");case"Z":return z}return null}(G)||z.replace(":","")})},u.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},u.diff=function(f,C,y){var L,z=this,E=b.p(C),Y=m(f),F=(Y.utcOffset()-this.utcOffset())*n,Z=this-Y,U=function(){return b.m(z,Y)};switch(E){case k:L=U()/12;break;case w:L=U();break;case x:L=U()/3;break;case S:L=(Z-F)/6048e5;break;case g:L=(Z-F)/864e5;break;case p:L=Z/d;break;case a:L=Z/n;break;case o:L=Z/r;break;default:L=Z}return y?L:b.a(L)},u.daysInMonth=function(){return this.endOf(w).$D},u.$locale=function(){return A[this.$L]},u.locale=function(f,C){if(!f)return this.$L;var y=this.clone(),L=O(f,C,!0);return L&&(y.$L=L),y},u.clone=function(){return b.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()},$}(),P=N.prototype;return m.prototype=P,[["$ms",c],["$s",o],["$m",a],["$H",p],["$W",g],["$M",w],["$y",k],["$D",l]].forEach(function($){P[$[1]]=function(u){return this.$g(u,$[0],$[1])}}),m.extend=function($,u){return $.$i||($(u,N,m),$.$i=!0),m},m.locale=O,m.isDayjs=R,m.unix=function($){return m(1e3*$)},m.en=A[V],m.Ls=A,m.p={},m})})(Pe);var ts=Pe.exports;const ce=es(ts),ss="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",rs=({id:e,label:s,value:r,onChange:n})=>{const[d,c]=i.useState(!1),[o,a]=i.useState(r),[p,g]=i.useState(!0),[S,w]=i.useState(!!r),[x,k]=i.useState(ce(r,"MM-DD-YYYY",!0).isValid()?ce(r,"MM-DD-YYYY",!0):null),l=i.useRef(null),h=i.useRef(null),j=i.useRef(null),M=(x==null?void 0:x.daysInMonth())||30,D=(x==null?void 0:x.startOf("month").day())||0;i.useEffect(()=>{o||(r=ce().format("MM-DD-YYYY"),w(!1)),a(r);const m=ce(r,"MM-DD-YYYY",!0);k(m.isValid()?m:null),g(m.isValid()&&r!=="")},[r]),i.useEffect(()=>{function m(b){l.current&&(l.current.contains(b.target)||c(!1))}if(d&&j.current){const b=j.current.querySelector('[role="button"]:not([disabled])');b==null||b.focus(),document.addEventListener("mousedown",m)}return()=>{document.removeEventListener("mousedown",m)}},[d]);const H=m=>{var N;const b=m.format("MM-DD-YYYY");w(!0),k(m),a(b),g(!0),n(b),c(!1),(N=h.current)==null||N.focus()},I=(m,b)=>{m.key==="Enter"&&H(b)},V=m=>{const b=m.target.value;if(a(b),w(!0),!/^\d{1,2}-\d{2}-\d{4}$/.test(b)){g(!1),n(b);return}const P=ce(b,"MM-DD-YYYY",!0);P.isValid()?(console.log("MAYBEDATE IS VALID"),k(P),g(!0),n(b)):(console.log("MAYBEDATE IS --NOT-- VALID"),g(!1),n(b))},A=()=>{c(m=>!m)},B=()=>{x&&k(x.subtract(1,"month"))},R=()=>{x&&k(x.add(1,"month"))},O=()=>{if(!x)return null;const m=[];for(let b=0;b<D;b++)m.push(t.jsx("div",{className:"w-8 h-8"},`empty-${b}`));for(let b=1;b<=M;b++){const N=x.date(b);m.push(t.jsx("button",{role:"presentation",tabIndex:0,onClick:()=>H(N),onKeyDown:P=>I(P,N),className:`w-8 h-8 ${N.isSame(x,"date")?"bg-blue-500 text-white":""} hover:bg-blue-100 focus:ring`,"aria-label":N.format("MMMM D, YYYY"),children:b},b))}return m};return t.jsxs("div",{className:"relative",ref:l,children:[t.jsx("label",{htmlFor:e,id:"date-picker-input",className:"block text-sm font-medium text-gray-700",children:s}),t.jsxs("div",{className:"flex items-center mt-1",children:[t.jsx("input",{id:e,type:"text","aria-labelledby":"date-picker-input",ref:h,value:S?o:"",onChange:V,placeholder:"MM-DD-YYYY",className:`block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
|
|
2
|
-
focus:border-blue-500 pl-1 focus:outline-none`}),t.jsx("button",{type:"button",onClick:A,className:`px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
|
|
3
|
-
focus:outline-none focus:border-blue-500`,"aria-label":"Open calendar","aria-haspopup":"dialog","aria-expanded":d,"aria-controls":`${e}-dialog`,children:t.jsx("img",{src:ss,alt:"calendar icon",className:"size-6"})})]}),d&&t.jsxs("div",{ref:j,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:B,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:x==null?void 0:x.format("MMMM YYYY")}),t.jsx("button",{onClick:R,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"}),O()]})]}),!p&&t.jsx("p",{className:"text-red-600",children:"Please enter a valid date 'MM-DD-YYYY'"})]})},xe={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 Fe=(e=>(e.Right="right",e.Left="left",e.IconOnly="iconOnly",e.None="undefined",e))(Fe||{});const ns=({variant:e="default",tabs:s,className:r,classNameContainer:n})=>{const[d,c]=i.useState(0),[o,a]=i.useState(!1),[p,g]=i.useState(""),S=i.useRef([]);e===""&&(e="default");const w=i.useCallback(l=>{var h;(h=S.current[l])==null||h.focus()},[]),x=i.useCallback((l,h)=>{if(l.key==="ArrowRight"){const j=(h+1)%s.length;c(j),w(j)}else if(l.key==="ArrowLeft"){const j=(h-1+s.length)%s.length;c(j),w(j)}else l.key==="Home"?(c(0),w(0)):l.key==="End"&&(c(s.length-1),w(s.length-1))},[s.length,w]),k=l=>{a(!0),g(l)};return t.jsxs("div",{className:v("w-full",n),children:[t.jsx("div",{role:"tablist","aria-label":"Tabs",className:v(xe[e].container,r),children:s.map((l,h)=>t.jsxs("button",{role:"tab",id:`tab-${l.id}`,onMouseEnter:()=>k(l.id),onMouseLeave:()=>a(!1),"aria-selected":d===h,"aria-controls":`panel-${l.id}`,tabIndex:d===h?0:-1,ref:j=>S.current[h]=j,className:`flex px-4 py-2 focus:outline-none ${e==="outline"?`border-[#092068] ${h===0?"border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md":h===s.length-1?"border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md":"border-t-2 border-b-2"}`:""} ${v(d===h?xe[e].active:xe[e].inactive)}`,onClick:()=>c(h),onKeyDown:j=>x(j,h),children:[l.iconPosition==="left"&&l.activeIcon&&t.jsx("span",{className:"icon-left mr-3 size-6",children:d===h?o&&p===l.id?l.inactiveIcon:l.activeIcon:l.inactiveIcon}),l.iconPosition==="iconOnly"&&l.activeIcon?t.jsx("span",{className:"size-6",children:d===h?o&&p===l.id?l.inactiveIcon:l.activeIcon:l.inactiveIcon}):t.jsx("span",{className:"button-text",children:l.label}),l.iconPosition==="right"&&l.activeIcon&&t.jsx("span",{className:"icon-right ml-3 size-6",children:d===h?o&&p===l.id?l.inactiveIcon:l.activeIcon:l.inactiveIcon})]},l.id))}),s.map((l,h)=>t.jsx("div",{role:"tabpanel",id:`panel-${l.id}`,"aria-labelledby":`tab-${l.id}`,hidden:d!==h,className:"p-4",children:l.content},l.id))]})};function Me(e){return!!"0123456789".includes(e)}function $e(e){const s=e.charCodeAt(0);return s>=65&&s<=90||s>=97&&s<=122}function De(e,s){for(let r=s;r<e.length;r++){if(e[r]==="@")return"@";if(e[r]==="#")return"#"}return""}const Le="h-10 px-4 py-2 arial rounded-lg border-2 border-[#c6c6c6] p-1 ps-2 mx-2 bg-white hover:outline-[#c6c6c6] active:outline-[#0256ab] focus:outline-4 focus:outline-[#fa89f1]",we=[{variant:"default",classes:"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]",labelClasses:"ms-2.5 text-base",insetLabelClasses:"absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto"},{variant:"outline",classes:"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]",labelClasses:"ms-2.5 text-base",insetLabelClasses:"absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto"},{variant:"nonHover",classes:"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]",labelClasses:"ms-2.5 text-base",insetLabelClasses:"absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto"}],Ze=i.forwardRef(({className:e,variant:s="default",label:r,insetLabel:n=!1,classNameLabel:d="",classNameRequired:c="",labelBaseColor:o="#fff",error:a=!1,textShadow:p=!1,mask:g,...S},w)=>{const[x,k]=i.useState(),[l,h]=i.useState(Le),[j,M]=i.useState(""),[D,H]=i.useState(!1),I=i.useRef(null),[V,A]=i.useState(""),B="border-red-500 border",R=m=>{const b=m.target.value;A(g?O(b):b)};function O(m){let b="",N=0;if(g)for(;m.length>0&&N<g.length;)g[N]!=="#"&&g[N]!=="@"?g[N]===m[0]?(b+=m[0],m=m.slice(1),N++):(($e(m[0])&&De(g,N)==="@"||Me(m[0])&&De(g,N)==="#")&&(b+=g[N]),N++):g[N]==="#"&&Me(m[0])||g[N]==="@"&&$e(m[0])?(b+=m[0],m=m.slice(1),N++):m=m.slice(1);return b}if(i.useEffect(()=>{var m,b,N;s&&(h(v(Le,(m=we.find(P=>P.variant===s))==null?void 0:m.classes,a&&B,e)),M(v(n?(b=we.find(P=>P.variant===s))==null?void 0:b.insetLabelClasses:(N=we.find(P=>P.variant===s))==null?void 0:N.labelClasses,d)))},[e,s,D,n,a]),i.useEffect(()=>{if(n){const m=I.current;if(!m)return;const b=N=>{const P=getComputedStyle(m);k(P.backgroundColor),H(N)};return b(!0),m.addEventListener("mouseover",()=>b(!0)),m.addEventListener("mouseout",()=>b(!1)),()=>{m.removeEventListener("mouseover",()=>b),m.removeEventListener("mouseout",()=>b)}}},[o,n,D]),!["default","outline","nonHover"].includes(s))throw new Error(`Invalid variant: "${s}". Valid variants are: "default", "outline", and "nonHover".`);return t.jsxs("span",{className:"group relative",children:[t.jsxs("div",{className:j,style:n?{background:`linear-gradient(to bottom, ${o} 0%, ${o} 50%, ${x} 60%, ${x} 100%)`,textShadow:p?`1px 1px 2px ${o}, 0 0 1em ${o}, 0 0 0.2em ${o}`:""}:{textShadow:p?`1px 1px 2px ${o}, 0 0 1em ${o}, 0 0 0.2em ${o}`:""},children:[r,S.required&&t.jsx("span",{className:v("absolute text-red-500 ms-0.5 -mt-1",c),children:"*"})]}),t.jsx("input",{className:l,"aria-label":r,value:V,onChange:R,ref:m=>{typeof w=="function"?w(m):w&&(w.current=m),I.current=m},...S})]})});Ze.displayName="Input";const Ge=({items:e,header:s,className:r="",classNameItem:n="",children:d,withDividers:c=!1,classNameDividerColor:o="",isDecimal:a=!1,isDisc:p=!1,isAlphabetical:g=!1,isRomanNumeral:S=!1,isInline:w=!1})=>t.jsxs("div",{className:"p-0 m-0",children:[t.jsx("p",{children:s}),t.jsxs("ul",{className:v("pl-6 list-none w-full",a?"list-decimal":"",p?"list-disc":"",r),children:[e&&e.map((x,k)=>t.jsxs(je,{className:v("w-full",c&&(w?k!==e.length:k!==e.length-1)?"border-b":"",o!==""&&(w?k!==e.length:k!==e.length-1)?o:"",w&&"inline mr-2",n),children:[S&&t.jsxs("span",{className:"flex flex-col w-6",children:[String.fromCharCode(8560+k),". "]}),g&&t.jsxs("span",{children:[String.fromCharCode(97+k),". "]}),S?t.jsx("span",{className:"flex flex-col w-6",children:x.children}):x.children]},k)),d&&W.Children.map(d,(x,k)=>W.isValidElement(x)?W.cloneElement(x,{className:v(w&&"inline mr-2",n,x.props.className,"w-full",c&&(w?k!==W.Children.count(d):k!==W.Children.count(d)-1)?"border-b":"",o!==""&&(w?k!==W.Children.count(d):k!==W.Children.count(d)-1)?o:""),children:t.jsxs(t.Fragment,{children:[S&&t.jsxs("div",{className:"flex flex-row",children:[t.jsxs("span",{className:" w-6",children:[String.fromCharCode(8560+k),". "]}),x.props.children]}),g&&t.jsxs("span",{children:[String.fromCharCode(97+k),". "]}),!S&&x.props.children]})}):x)]})]}),je=({className:e,children:s})=>t.jsx("li",{className:v(e),children:s}),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"}},os=({isOpen:e,variant:s="default",onClose:r,title:n,className:d,closeButton:c=!0,clickOutsideCloses:o=!1,displayClosingX:a=!0,closeButtonText:p="Close",continueButton:g=!1,continueButtonHandler:S,continueButtonText:w="Continue",blurLevel:x,children:k})=>{const l=i.useRef(null),h=i.useRef(null),j="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",[M,D]=i.useState("");if(i.useEffect(()=>{if(x){const I="backdrop-blur-"+x;D(v(j,I))}else D(j)},[x]),i.useEffect(()=>{if(o){const I=V=>{l.current&&!l.current.contains(V.target)&&r()};return document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}}},[r]),i.useEffect(()=>{var A;const I=B=>{B.key==="Escape"&&e&&r()},V=B=>{var b;const R=(b=l.current)==null?void 0:b.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),O=R==null?void 0:R[0],m=R==null?void 0:R[R.length-1];B.key==="Tab"&&R&&(B.shiftKey&&document.activeElement===O?(B.preventDefault(),m==null||m.focus()):!B.shiftKey&&document.activeElement===m&&(B.preventDefault(),O==null||O.focus()))};return e?(document.body.style.overflow="hidden",window.addEventListener("keydown",I),window.addEventListener("keydown",V),(A=h.current)==null||A.focus()):document.body.style.overflow="auto",()=>{window.removeEventListener("keydown",I),window.removeEventListener("keydown",V),document.body.style.overflow="auto"}},[e,r]),!e)return null;const H=()=>{S&&S(),r()};return t.jsx("div",{className:M,id:"backdrop",children:t.jsxs("div",{className:v(te[s].container,d),ref:l,"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[t.jsxs("div",{className:v(te[s].title),children:[t.jsx("h2",{id:"modal-title",className:v("text-lg font-medium text-gray-900",te[s].titleHeading),children:n}),a&&t.jsx("button",{onClick:r,className:v("text-xl mt-[-1em] text-gray-500 hover:text-gray-700 focus:outline-none focus:ring",te[s].titleHeading),"aria-label":"Close modal",children:"×"})]}),t.jsx("div",{className:v(te[s].body),children:k}),t.jsxs("div",{className:"mt-4 flex justify-end",children:[c&&t.jsx("button",{ref:h,onClick:r,className:v(te[s].button),children:p}),g&&t.jsx("button",{onClick:H,className:v(te[s].button,"ms-4"),children:w})]})]})})},as=i.forwardRef(({className:e="",iconLeft:s,iconLeftSelected:r,iconRight:n,iconRightSelected:d,children:c,onClick:o,selected:a=!1,...p},g)=>{const[S,w]=i.useState(),[x,k]=i.useState(),[l,h]=i.useState("bg-white");return i.useEffect(()=>{const j="text-lg font-normal font-['Arial'] leading-normal ";k(s&&n?j:s?j+"mr-6":n?j+"ml-6":j+"ml-6 mr-6")},[s,n,c]),i.useEffect(()=>{h(a?"bg-[#092068] focus:bg-[#092068] text-white":"bg-white"),w(v("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",l,e))},[e,l,a]),t.jsxs("button",{onClick:o,className:S,ref:g,...p,children:[s&&t.jsx("span",{className:"ml-6 mr-2.5 size-6",children:a&&r?r:s}),t.jsx("div",{className:x,children:c}),n&&t.jsx("span",{className:"ml-2.5 mr-6 size-6",children:a&&d?d:n})]})}),ls=i.forwardRef(({className:e="",classNameChildren:s="",classNameSubHeader:r="",iconLeft:n,iconRight:d,underline:c=!1,subHeader:o=!1,childButton:a,fill:p=!1,children:g,...S},w)=>{const[x,k]=i.useState(""),[l,h]=i.useState(""),[j,M]=i.useState(""),D="pl-6 pr-2 pt-4 pb-2 justify-start items-start gap-4 inline-flex w-full";return i.useEffect(()=>{k(v(D,c?"border-b-2 border-black":"",p?"bg-[#092068] text-[#f0f0f0]":"bg-transparent text-[#07192d]",e))},[e,c,p]),console.log("outerClasses: ",x),i.useEffect(()=>{h(v('self-stretch text-[40px] font-normal font-["Arial"] leading-[48px] pb-1',s))},[s]),i.useEffect(()=>{M(v('text-xl font-normal font-["Arial"] leading-[30px]',r))},[r]),t.jsx("div",{className:v(x,e),children:t.jsxs("div",{className:"grow shrink basis-0 justify-start items-center gap-2 flex",children:[n&&n,t.jsxs("div",{className:"flex-col justify-start items-start inline-flex w-full",children:[t.jsx("div",{className:l,children:g}),o&&t.jsx("div",{className:j,children:o})]}),d&&d,a&&a]})})}),is='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:mb-2 focus:outline-[#fa89f1] shadow-sm pl-4 pr-2 py-2 bg-white text-base md:text-lg font-medium text-gray-700 hover:bg-gray-50 border-[#b3b3b3] h-12 mt-1 font-["Arial"] ',ze={default:"hover:bg-gray-200 text-blackhover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2",fill:"hover:bg-[#0c2c8e] text-white bg-[#092068] hover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 py-3",outline:"bg-white text-[#808080] disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive"},cs=({className:e,classNameContainer:s="",label:r,options:n,optionsLabel:d,disabled:c=!1,variant:o="default",setSelectedOption:a,error:p=!1,width:g="",...S})=>{const w=i.useRef(null),x=i.useRef(null),k=i.useRef(null),[l,h]=i.useState(!1),[j,M]=i.useState(!1),[D,H]=i.useState(d||"Options"),[I,V]=i.useState(null),A=i.useRef("bottom-[60px]"),[B,R]=i.useState("");i.useEffect(()=>{if(x.current){const u=x.current.getBoundingClientRect(),f=Math.floor(u.height)+2;A.current="bottom-["+f+"px]"}},[x.current]);const O=()=>{if(w.current&&k.current){const u=w.current.getBoundingClientRect(),f=k.current.offsetHeight,C=window.innerHeight,y=document.body.offsetHeight;(C>y?y:C)-u.bottom<f&&u.top>f?M(!0):M(!1)}},m=i.useRef([]);i.useEffect(()=>{m.current=m.current.slice(0,n.length)},[n]);const[b,N]=i.useState(0),P=()=>{h(!l),N(0)};i.useEffect(()=>{R(p?"border-2 border-[#ff0004] pl-[15px]":"")},[p]),i.useEffect(()=>{function u(y){l&&w.current&&!w.current.contains(y.target)&&h(!1)}function f(y){l&&y.key==="Escape"&&h(!1)}function C(y){l&&w.current&&!w.current.contains(y.target)&&h(!1)}return document.addEventListener("mousedown",u),document.addEventListener("touchend",u),document.addEventListener("keydown",f),document.addEventListener("focusin",C),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("touchend",u),document.removeEventListener("keydown",f),document.removeEventListener("focusin",C)}},[l]),i.useEffect(()=>{l&&O()},[l]),i.useEffect(()=>{var u;l&&((u=m.current[b])==null||u.focus())},[b,l]);const $=u=>{if(l)switch(u.key){case"ArrowDown":u.preventDefault(),N(f=>{const C=(f+1)%n.length;return V(C),C});break;case"ArrowUp":u.preventDefault(),N(f=>{const C=(f-1+n.length)%n.length;return V(C),C});break;case"Home":u.preventDefault(),N(0);break;case"End":u.preventDefault(),N(n.length-1);break}};return t.jsxs("div",{className:v("relative inline-block text-left",s),ref:w,...S,"aria-disabled":c,children:[r?t.jsx("p",{className:"text-black mb-2 text-base font-['Arial']",children:r}):"",t.jsxs("button",{onClick:P,ref:x,className:v(is,ze[o]||ze.default,B,e,g,l&&j&&"rounded-b-lg"||l&&!j&&"rounded-t-lg"||"rounded-lg"),"aria-label":"Select options - "+D,"aria-disabled":c,"aria-expanded":l,"aria-haspopup":"listbox",disabled:c,tabIndex:0,children:[D,l?t.jsx("img",{src:Re,alt:"chevron up"}):t.jsx("img",{src:Te,alt:"chevron down"})]}),l&&t.jsx("div",{role:"listbox",ref:k,"aria-label":"Select option",onKeyDown:$,className:v("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",g,l&&j&&"rounded-t-lg pt-1"||l&&!j&&"rounded-b-lg pb-1",j&&A.current),children:n.map((u,f)=>t.jsx("button",{ref:C=>m.current[f]=C,className:`block w-full px-4 py-2 text-left text-base text-gray-700
|
|
4
|
-
hover:bg-[#092068]/20 focus:outline-none focus:bg-[#092068]/20`,role:"option","aria-selected":I===f,"aria-label":"option "+u.name,onClick:()=>{V(f),H(u.name),a(u.value||u.name),h(!1)},onKeyDown:C=>{C.key==="Enter"||C.code==="Enter"||C.key===" "?(V(f),H(u.name),a(u.value||u.name),h(!1)):C.key==="Escape"&&h(!1)},children:u.name},u.name))})]})},ds="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",us="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",fs="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",gs="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",_e=[{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"}],ms=i.forwardRef(({variant:e="default",subVariant:s="default",className:r,classNameSvg:n="size-1.5 fill-yellow-400",imagePath:d,imageAlt:c,classNameImage:o,children:a,...p},g)=>{const[S,w]=i.useState(),[x,k]=i.useState(),[l,h]=i.useState(us),j=()=>{w(v(S,"hidden"))};return i.useEffect(()=>{var H,I;const M=s==="custom"?"default":s,D=(H=_e.find(V=>V.variant===e&&V.subVariant===M))==null?void 0:H.classes;if(e==="icon"){const V=(I=_e.find(A=>A.variant===e&&A.subVariant===M))==null?void 0:I.classNameSvg;k(s==="custom"?v(V,n):V)}e==="hazard"?h(fs):e==="go"&&h(ds),w(v(D,r))},[s,r,e,n]),t.jsxs(t.Fragment,{children:[e==="default"&&t.jsx("div",{className:S,...p,ref:g,children:a}),(e==="warning"||e==="hazard"||e==="go")&&t.jsxs("div",{className:S,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:l,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:j,className:"size-3 py-px justify-center items-center gap-2.5 flex","aria-label":"Close modal",children:t.jsx("img",{src:gs,alt:"close alert icon"})})]}),e==="icon"&&t.jsxs("div",{className:S,...p,ref:g,children:[t.jsx("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:x,role:"img",children:t.jsx("circle",{r:3,cx:3,cy:3})}),a]}),e==="media"&&t.jsxs("div",{className:S,...p,ref:g,children:[t.jsx("div",{className:"col-start-1 col-span-2",children:t.jsx("img",{className:v("h-full",o),src:d,alt:c})}),t.jsx("div",{className:"w-full ml-2 col-start-3 col-span-3",children:a})]})]})}),ve="pb-4",ps=i.forwardRef(({className:e,appName:s,image:r,classNameImage:n="",clickOutsideCloses:d,classNameImageContainer:c="",menu:o=!1,classNameMenu:a="",classNameMenuItem:p="",classNameMenuContainer:g="",version:S,menuItems:w,right:x=!1,children:k,...l},h)=>{const j=i.useRef(null),[M,D]=i.useState(!1),[H,I]=i.useState(ve);return i.useEffect(()=>{I(v(x?ve+" text-right pe-2":ve,p))},[x,H,p]),i.useEffect(()=>{if(d){const V=A=>{j.current&&!j.current.contains(A.target)&&D(!1)};return document.addEventListener("mousedown",V),()=>{document.removeEventListener("mousedown",V)}}},[D]),t.jsxs(t.Fragment,{children:[o&&t.jsx("button",{className:v("size-8 mb-4",g),onClick:()=>D(!M),children:t.jsx(bs,{classes:v("fill-slate-500 hover:fill-black size-8",a)})}),t.jsxs("div",{ref:j,className:v("relative w-56 h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto",o&&"fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300",o&&M&&"translate-x-0",e),children:[t.jsx("div",{className:v("w-16 h-16 mx-auto",c),children:t.jsx("img",{src:r,className:v("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1",n),alt:"application icon"})}),t.jsx("div",{className:"text-center mt-2",children:s}),t.jsx("div",{className:"[204px] mt-3 h-px bg-[#d9d9d9]"}),t.jsx(Ge,{className:"pl-6 mt-6",children:w.map((V,A)=>t.jsx(je,{className:H,children:V.target&&t.jsx(de.NavLink,{to:V.target,children:V.children})},A))}),t.jsx("div",{className:"align-bottom mt-auto text-right right-2 bottom-1",children:S})]})]})}),bs=({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"})]}),hs={default:" h-48 w-56 pt-2",custom:" h-48 w-56 pt-2"},Ue=W.forwardRef(({className:e,variant:s="default",children:r,...n},d)=>t.jsx("div",{className:v("flex flex-row flex-wrap animate-pulse",hs[s],e),"aria-label":"Skeleton Component",role:"status",ref:d,...n,children:r}));Ue.displayName="Card";const xs=({className:e="",inline:s=!1})=>s?t.jsx("div",{role:"presentation",className:v("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:v("rounded-full bg-slate-300 h-6 w-6 mx-2 my-1 me-0",e)}),t.jsx("div",{className:"basis-full h-0"})]}),ws=({className:e="",inline:s=!1})=>s?t.jsx("div",{role:"presentation",className:v("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:v("rounded-lg bg-slate-300 h-6 mx-2 my-1 grow",e)}),t.jsx("div",{className:"basis-full h-0"})]}),vs=({className:e=""})=>t.jsx("div",{role:"presentation",className:v("rounded-lg bg-slate-300 grow h-24 my-1 mx-2",e)}),ys=({className:e=""})=>t.jsx("div",{role:"presentation",className:"basis-full h-0"}),We=({className:e,children:s,skipTo:r})=>{let n=null;const d=c=>{c.preventDefault();const o=document.querySelector(r);o&&(o.tabIndex=-1,o.focus(),n=setTimeout(()=>o.removeAttribute("tabindex"),1e3))};return i.useEffect(()=>()=>{n&&clearTimeout(n)},[n]),i.cloneElement(s,{onClick:d,className:e})};We.defaultProps={className:"skip-link",skipTo:"main:first-of-type"};const Cs="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",ks="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",js="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",ye=[{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]"}],Ss=i.forwardRef(({variant:e="available",className:s,image:r,classNameChild:n,classNameImage:d,children:c,...o},a)=>{const[p,g]=i.useState(),[S,w]=i.useState(),[x,k]=i.useState();return i.useEffect(()=>{var l,h,j;g(v((l=ye.find(M=>M.variant===e))==null?void 0:l.classes,s)),k(v((h=ye.find(M=>M.variant===e))==null?void 0:h.childClasses,n)),w(v((j=ye.find(M=>M.variant===e))==null?void 0:j.imgDivClasses,d))},[e,s,n,d]),t.jsxs("div",{className:p,ref:a,children:[t.jsx("div",{className:S,children:r||(e==="available"?t.jsx("img",{src:ks,alt:"check mark"}):e==="inProgress"?t.jsx("img",{src:Cs,alt:"clock"}):t.jsx("img",{src:js,alt:"close"}))}),t.jsx("div",{className:x,children:c})]})}),Ns="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",Ms="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",ge=[{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"}],$s=i.forwardRef(({defaultChecked:e=!1,disabled:s=!1,onCheckedChange:r,label:n,className:d,classNameButton:c,variant:o="default",type:a="button",children:p,...g},S)=>{var l,h,j,M;const[w,x]=i.useState(e),k=()=>{const D=!w;x(D),r&&r(D)};return t.jsx("button",{onClick:k,disabled:s,role:"switch","aria-checked":w,"aria-disabled":s,...g,ref:S,"aria-label":n||`Toggle ${w?"on":"off"}`,className:v(`${Ns}
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),de=require("react-router-dom");function rt(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const W=rt(a),je="-",nt=e=>{const s=at(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(je);return l[0]===""&&l.length!==1&&l.shift(),Ae(l,s)||ot(o)},getConflictingClassGroupIds:(o,l)=>{const g=r[o]||[];return l&&n[o]?[...g,...n[o]]:g}}},Ae=(e,s)=>{var o;if(e.length===0)return s.classGroupId;const r=e[0],n=s.nextPart.get(r),d=n?Ae(e.slice(1),n):void 0;if(d)return d;if(s.validators.length===0)return;const i=e.join(je);return(o=s.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},Me=/^\[(.+)\]$/,ot=e=>{if(Me.test(e)){const s=Me.exec(e)[1],r=s==null?void 0:s.substring(0,s.indexOf(":"));if(r)return"arbitrary.."+r}},at=e=>{const{theme:s,prefix:r}=e,n={nextPart:new Map,validators:[]};return it(Object.entries(e.classGroups),r).forEach(([i,o])=>{ke(o,n,i,s)}),n},ke=(e,s,r,n)=>{e.forEach(d=>{if(typeof d=="string"){const i=d===""?s:$e(s,d);i.classGroupId=r;return}if(typeof d=="function"){if(lt(d)){ke(d(n),s,r,n);return}s.validators.push({validator:d,classGroupId:r});return}Object.entries(d).forEach(([i,o])=>{ke(o,$e(s,i),r,n)})})},$e=(e,s)=>{let r=e;return s.split(je).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},lt=e=>e.isThemeGetter,it=(e,s)=>s?e.map(([r,n])=>{const d=n.map(i=>typeof i=="string"?s+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[s+o,l])):i);return[r,d]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,r=new Map,n=new Map;const d=(i,o)=>{r.set(i,o),s++,s>e&&(s=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return d(i,o),o},set(i,o){r.has(i)?r.set(i,o):d(i,o)}}},Te="!",dt=e=>{const{separator:s,experimentalParseClassName:r}=e,n=s.length===1,d=s[0],i=s.length,o=l=>{const g=[];let m=0,v=0,f;for(let C=0;C<l.length;C++){let $=l[C];if(m===0){if($===d&&(n||l.slice(C,C+i)===s)){g.push(l.slice(v,C)),v=C+i;continue}if($==="/"){f=C;continue}}$==="["?m++:$==="]"&&m--}const b=g.length===0?l:l.substring(v),y=b.startsWith(Te),c=y?b.substring(1):b,w=f&&f>v?f-v:void 0;return{modifiers:g,hasImportantModifier:y,baseClassName:c,maybePostfixModifierPosition:w}};return r?l=>r({className:l,parseClassName:o}):o},ut=e=>{if(e.length<=1)return e;const s=[];let r=[];return e.forEach(n=>{n[0]==="["?(s.push(...r.sort(),n),r=[]):r.push(n)}),s.push(...r.sort()),s},ft=e=>({cache:ct(e.cacheSize),parseClassName:dt(e),...nt(e)}),gt=/\s+/,mt=(e,s)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:d}=s,i=[],o=e.trim().split(gt);let l="";for(let g=o.length-1;g>=0;g-=1){const m=o[g],{modifiers:v,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:y}=r(m);let c=!!y,w=n(c?b.substring(0,y):b);if(!w){if(!c){l=m+(l.length>0?" "+l:l);continue}if(w=n(b),!w){l=m+(l.length>0?" "+l:l);continue}c=!1}const C=ut(v).join(":"),$=f?C+Te:C,M=$+w;if(i.includes(M))continue;i.push(M);const V=d(w,c);for(let I=0;I<V.length;++I){const _=V[I];i.push($+_)}l=m+(l.length>0?" "+l:l)}return l};function pt(){let e=0,s,r,n="";for(;e<arguments.length;)(s=arguments[e++])&&(r=Re(s))&&(n&&(n+=" "),n+=r);return n}const Re=e=>{if(typeof e=="string")return e;let s,r="";for(let n=0;n<e.length;n++)e[n]&&(s=Re(e[n]))&&(r&&(r+=" "),r+=s);return r};function ht(e,...s){let r,n,d,i=o;function o(g){const m=s.reduce((v,f)=>f(v),e());return r=ft(m),n=r.cache.get,d=r.cache.set,i=l,l(g)}function l(g){const m=n(g);if(m)return m;const v=mt(g,r);return d(g,v),v}return function(){return i(pt.apply(null,arguments))}}const Y=e=>{const s=r=>r[e]||[];return s.isThemeGetter=!0,s},He=/^\[(?:([a-z-]+):)?(.+)\]$/i,bt=/^\d+\/\d+$/,xt=new Set(["px","full","screen"]),wt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vt=/\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$/,yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ct=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>re(e)||xt.has(e)||bt.test(e),J=e=>ne(e,"length",_t),re=e=>!!e&&!Number.isNaN(Number(e)),pe=e=>ne(e,"number",re),le=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith("%")&&re(e.slice(0,-1)),E=e=>He.test(e),X=e=>wt.test(e),St=new Set(["length","size","percentage"]),Nt=e=>ne(e,St,Oe),Mt=e=>ne(e,"position",Oe),$t=new Set(["image","url"]),Dt=e=>ne(e,$t,zt),Lt=e=>ne(e,"",Vt),ie=()=>!0,ne=(e,s,r)=>{const n=He.exec(e);return n?n[1]?typeof s=="string"?n[1]===s:s.has(n[1]):r(n[2]):!1},_t=e=>vt.test(e)&&!yt.test(e),Oe=()=>!1,Vt=e=>Ct.test(e),zt=e=>kt.test(e),Et=()=>{const e=Y("colors"),s=Y("spacing"),r=Y("blur"),n=Y("brightness"),d=Y("borderColor"),i=Y("borderRadius"),o=Y("borderSpacing"),l=Y("borderWidth"),g=Y("contrast"),m=Y("grayscale"),v=Y("hueRotate"),f=Y("invert"),b=Y("gap"),y=Y("gradientColorStops"),c=Y("gradientColorStopPositions"),w=Y("inset"),C=Y("margin"),$=Y("opacity"),M=Y("padding"),V=Y("saturate"),I=Y("scale"),_=Y("sepia"),R=Y("skew"),B=Y("space"),H=Y("translate"),O=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],u=()=>["auto",E,s],S=()=>[E,s],A=()=>["",K,J],D=()=>["auto",re,E],p=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],h=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",E],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[re,E];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[K,J],blur:["none","",X,E],brightness:T(),borderColor:[e],borderRadius:["none","","full",X,E],borderSpacing:S(),borderWidth:A(),contrast:T(),grayscale:L(),hueRotate:T(),invert:L(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[jt,J],inset:u(),margin:u(),opacity:T(),padding:S(),saturate:T(),scale:T(),sepia:L(),skew:T(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[X]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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:[...p(),E]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le,E]}],basis:[{basis:u()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",le,E]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",le,E]},E]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[le,E]},E]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",E,s]}],"min-w":[{"min-w":[E,s,"min","max","fit"]}],"max-w":[{"max-w":[E,s,"none","full","min","max","fit","prose",{screen:[X]},X]}],h:[{h:[E,s,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[E,s,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[E,s,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[E,s,"auto","min","max","fit"]}],"font-size":[{text:["base",X,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pe]}],"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",E]}],"line-clamp":[{"line-clamp":["none",re,pe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",K,E]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...h(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",K,J]}],"underline-offset":[{"underline-offset":["auto",K,E]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E]}],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",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...p(),Mt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Dt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[c]}],"gradient-via-pos":[{via:[c]}],"gradient-to-pos":[{to:[c]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[...h(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:h()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...h()]}],"outline-offset":[{"outline-offset":[K,E]}],"outline-w":[{outline:[K,J]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[K,J]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",X,Lt]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",X,E]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[f]}],saturate:[{saturate:[V]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[le,E]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],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",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[K,J,pe]}],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"]}}},x=ht(Et),It="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='%2371767A'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M11%2019.25V13H4.75V11H11V4.75H13V11H19.25V13H13V19.25H11Z'%20fill='%2371767A'/%3e%3c/g%3e%3c/svg%3e",At="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='%2371767A'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M4.75%2013V11H19.25V13H4.75Z'%20fill='%2371767A'/%3e%3c/g%3e%3c/svg%3e",Be="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",Ye="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",Tt="mt-[-0.5rem]",he='flex justify-between items-center w-full py-4 px-5 text-left bg-white rounded border border-[#dfe1e2] mt-2 text-[#71767a] text-lg font-bold font-["Arial"]',be='px-6 py-4 border border-t-0 border-[#dfe1e2] text-[#71767a] bg-white text-lg font-normal font-["Arial"]',Rt={},Ht={},Ot=a.forwardRef(({variant:e="default",label:s,classNameContainer:r="",chevron:n=!1,iconAccordionOpened:d,iconAccordionClosed:i,hr:o=!0,classNameHeading:l="",classNameContent:g="",onExpand:m,singleOpen:v,classNameHr:f="",useBackground:b=!0,index:y,children:c,...w},C)=>{const[$,M]=a.useState(!1),[V,I]=a.useState(be),[_,R]=a.useState(he),[B,H]=a.useState(""),O=`accordion-${y??s.replace(/\s+/g,"-").toLowerCase()}`,N=()=>{m&&v&&m(M),M(!$)},u=S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),N())};return a.useEffect(()=>{H(x("border-[#dfe1e2] -mt-4 pt-0 mb-3",f))},[f]),a.useEffect(()=>{I(b?be:x(be,"bg-transparent border-0"))},[b]),a.useEffect(()=>{R($&&b?x(he,"border-b-0 rounded-t rounded-b-none"):he)},[$,b]),t.jsxs("div",{ref:C,className:r,children:[t.jsxs("button",{className:x(_,Rt.variant,l),"aria-controls":`${O}-content`,"aria-expanded":$,id:`${O}-header`,onClick:N,onKeyDown:u,...w,children:[t.jsx("span",{children:s}),t.jsx("span",{children:$?d||t.jsx("img",{src:n?Ye:At,alt:"Close Icon"}):i||t.jsx("img",{src:n?Be:It,alt:"Open Icon"})})]}),$&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:x(V,Ht.variant,g,b&&"rounded-b-md","relative"),id:`${O}-content`,role:"region","aria-labelledby":`${O}-header`,children:[b&&o&&t.jsx("hr",{className:B}),c]})})]})}),Bt=a.forwardRef(({children:e,variant:s="default",chevron:r,iconAccordionOpened:n,iconAccordionClosed:d,classNameContainer:i,singleOpen:o=!0,classNameChildHeading:l,classNameChildContent:g,hr:m,classNameHr:v,useBackground:f,...b},y)=>{const[c,w]=a.useState(null),C=$=>{c&&c(!1),w(()=>$)};return t.jsx("div",{ref:y,...b,className:x(Tt,i),children:a.Children.map(e,($,M)=>a.isValidElement($)?a.cloneElement($,{...$.props,variant:s,chevron:r,iconAccordionOpened:n,iconAccordionClosed:d,classNameHeading:x(l,$.props.classNameHeading),classNameContent:x(g,$.props.classNameContent),singleOpen:o,onExpand:V=>C(V),hr:$.props.hr===!1?!1:m,classNameHr:x(v,$.props.classNameHr),useBackground:$.props.useBackground===!1?!1:f,index:M}):$)})}),Yt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%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",Ft="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%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",Pt='outline-none outline-offset-0 flex justify-between items-center w-full h-14 border focus:outline-4 focus:mb-2 focus:outline-[#fa89f1] shadow-sm pl-4 pr-2 py-2 bg-white text-base md:text-lg font-medium text-gray-700 hover:bg-gray-50 border-[#b3b3b3] h-12 mt-1 font-["Arial"] ',De={default:"hover:bg-gray-200 text-blackhover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2",fill:"hover:bg-[#0c2c8e] text-white bg-[#092068] hover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 py-3",outline:"bg-white text-[#808080] disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive"},Fe=({className:e,classNameContainer:s="",label:r,options:n,optionsLabel:d,disabled:i=!1,variant:o="default",setSelectedOption:l,error:g=!1,width:m="",...v})=>{const f=a.useRef(null),b=a.useRef(null),y=a.useRef(null),[c,w]=a.useState(!1),[C,$]=a.useState(!1),[M,V]=a.useState(d||"Options"),[I,_]=a.useState(null),R=a.useRef("bottom-[60px]"),[B,H]=a.useState("");a.useEffect(()=>{if(b.current){const p=b.current.getBoundingClientRect(),h=Math.floor(p.height)+2;R.current="bottom-["+h+"px]"}},[b.current]);const O=()=>{if(f.current&&y.current){const p=f.current.getBoundingClientRect(),h=y.current.offsetHeight,j=window.innerHeight,k=document.body.offsetHeight;(j>k?k:j)-p.bottom<h&&p.top>h?$(!0):$(!1)}},N=a.useRef([]);a.useEffect(()=>{N.current=N.current.slice(0,n.length)},[n]);const[u,S]=a.useState(0),A=()=>{w(!c),S(0)};a.useEffect(()=>{H(g?"border-2 border-[#ff0004] pl-[15px]":"")},[g]),a.useEffect(()=>{function p(k){c&&f.current&&!f.current.contains(k.target)&&w(!1)}function h(k){c&&k.key==="Escape"&&w(!1)}function j(k){c&&f.current&&!f.current.contains(k.target)&&w(!1)}return document.addEventListener("mousedown",p),document.addEventListener("touchend",p),document.addEventListener("keydown",h),document.addEventListener("focusin",j),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("touchend",p),document.removeEventListener("keydown",h),document.removeEventListener("focusin",j)}},[c]),a.useEffect(()=>{c&&O()},[c]),a.useEffect(()=>{var p;c&&((p=N.current[u])==null||p.focus())},[u,c]);const D=p=>{if(c)switch(p.key){case"ArrowDown":p.preventDefault(),S(h=>{const j=(h+1)%n.length;return _(j),j});break;case"ArrowUp":p.preventDefault(),S(h=>{const j=(h-1+n.length)%n.length;return _(j),j});break;case"Home":p.preventDefault(),S(0);break;case"End":p.preventDefault(),S(n.length-1);break}};return t.jsxs("div",{className:x("relative inline-block text-left w-[292px] md:w-[343px] lg:w-[600px] max-w-full",s),ref:f,...v,"aria-disabled":i,children:[r?t.jsx("p",{className:"text-black mb-2 text-base font-['Arial']",children:r}):"",t.jsxs("button",{onClick:A,ref:b,className:x(Pt,De[o]||De.default,B,e,c&&C&&"rounded-b-lg"||c&&!C&&"rounded-t-lg"||"rounded-lg"),"aria-label":"Select options - "+M,"aria-disabled":i,"aria-expanded":c,"aria-haspopup":"listbox",disabled:i,tabIndex:0,children:[M,c?o==="fill"?t.jsx("img",{src:Ft,alt:"chevron up"}):t.jsx("img",{src:Ye,alt:"chevron up"}):o==="fill"?t.jsx("img",{src:Yt,alt:"chevron down"}):t.jsx("img",{src:Be,alt:"chevron down"})]}),c&&t.jsx("div",{role:"listbox",ref:y,"aria-label":"Select option",onKeyDown:D,className:x("absolute w-full shadow-lg bg-white ring-1 ring-white ring-opacity-5 focus:outline-none z-10 ",c&&C&&"rounded-t-lg pt-1"||c&&!C&&"rounded-b-lg pb-1",C&&R.current),children:n.map((p,h)=>t.jsx("button",{ref:j=>N.current[h]=j,className:`block w-full px-4 py-2 text-left text-base text-gray-700
|
|
2
|
+
hover:bg-[#092068]/20 focus:outline-none focus:bg-[#092068]/20`,role:"option","aria-selected":I===h,"aria-label":"option "+p.name,onClick:()=>{_(h),V(p.name),l(p.value||p.name),w(!1)},onKeyDown:j=>{j.key==="Enter"||j.code==="Enter"||j.key===" "?(_(h),V(p.name),l(p.value||p.name),w(!1)):j.key==="Escape"&&w(!1)},children:p.name},p.name))})]})},Ut={hour:60,"half-hour":30,"quarter-hour":15},Zt=(e,s,r)=>{const n=Ut[e??"half-hour"],d=[];for(let i=0;i<24*60;i+=n){const o=Math.floor(i/60),l=i%60;if(r&&(o<r[0]||o>r[1]))continue;let g;if(s==="12hr"){const v=o<12?"AM":"PM";g=`${o%12===0?12:o%12}:${l.toString().padStart(2,"0")} ${v}`}else g=`${o.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`;const m=`${o.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`;d.push({name:g,value:m})}return d},Gt=({className:e,classNameContainer:s="",interval:r="hour",timeFormat:n="24hr",hourRange:d,label:i,optionsLabel:o="Select a time",variant:l="default",setSelectedOption:g,width:m="",...v})=>{const f=Zt(r,n,d);return console.log(r),console.log(f),t.jsx(Fe,{className:e,classNameContainer:s,label:i,optionsLabel:o,options:f,variant:l,width:m,setSelectedOption:()=>g})},Wt="data:image/svg+xml,%3csvg%20viewBox='2%202%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_3326_3783'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='20'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3326_3783)'%3e%3cpath%20id='warning_2'%20d='M2.5959%2013.4861C2.47923%2013.4861%202.37854%2013.4605%202.29382%2013.4094C2.20921%2013.3582%202.14341%2013.2907%202.09642%2013.2069C2.04226%2013.125%202.01824%2013.0324%202.02437%2012.9292C2.03051%2012.8259%202.05991%2012.7266%202.11257%2012.6313L8.02281%202.8132C8.07559%202.71783%208.14463%202.65035%208.22993%202.61077C8.31523%202.57118%208.40539%202.55139%208.50041%202.55139C8.59532%202.55139%208.68531%202.57118%208.77038%202.61077C8.85533%202.65035%208.9242%202.71783%208.97698%202.8132L14.8872%2012.6313C14.9399%2012.7266%2014.9693%2012.8259%2014.9754%2012.9292C14.9815%2013.0324%2014.9575%2013.125%2014.9034%2013.2069C14.8514%2013.2896%2014.7843%2013.3568%2014.7022%2013.4085C14.62%2013.4602%2014.5206%2013.4861%2014.4039%2013.4861H2.5959ZM3.20476%2012.5833H13.795L8.49989%203.76389L3.20476%2012.5833ZM8.49625%2011.6165C8.63444%2011.6165%208.75151%2011.5697%208.84746%2011.4762C8.94341%2011.3827%208.99139%2011.2668%208.99139%2011.1286C8.99139%2010.9905%208.94463%2010.8734%208.85111%2010.7774C8.75759%2010.6815%208.64173%2010.6335%208.50354%2010.6335C8.36535%2010.6335%208.24827%2010.6803%208.15233%2010.7738C8.05638%2010.8673%208.0084%2010.9832%208.0084%2011.1214C8.0084%2011.2596%208.05516%2011.3766%208.14868%2011.4726C8.2422%2011.5685%208.35805%2011.6165%208.49625%2011.6165ZM8.49642%209.80018C8.62339%209.80018%208.73091%209.75695%208.81899%209.67049C8.90719%209.58392%208.95128%209.47668%208.95128%209.34879V6.91823C8.95128%206.79034%208.90834%206.68316%208.82246%206.5967C8.73658%206.51013%208.63022%206.46684%208.50337%206.46684C8.3764%206.46684%208.26888%206.51013%208.1808%206.5967C8.0926%206.68316%208.04851%206.79034%208.04851%206.91823V9.34879C8.04851%209.47668%208.09145%209.58392%208.17733%209.67049C8.26321%209.75695%208.36957%209.80018%208.49642%209.80018Z'%20fill='%23387740'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Kt="data:image/svg+xml,%3csvg%20viewBox='2%202%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_3326_3783'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='20'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3326_3783)'%3e%3cpath%20id='warning_2'%20d='M2.5959%2013.4861C2.47923%2013.4861%202.37854%2013.4605%202.29382%2013.4094C2.20921%2013.3582%202.14341%2013.2907%202.09642%2013.2069C2.04226%2013.125%202.01824%2013.0324%202.02437%2012.9292C2.03051%2012.8259%202.05991%2012.7266%202.11257%2012.6313L8.02281%202.8132C8.07559%202.71783%208.14463%202.65035%208.22993%202.61077C8.31523%202.57118%208.40539%202.55139%208.50041%202.55139C8.59532%202.55139%208.68531%202.57118%208.77038%202.61077C8.85533%202.65035%208.9242%202.71783%208.97698%202.8132L14.8872%2012.6313C14.9399%2012.7266%2014.9693%2012.8259%2014.9754%2012.9292C14.9815%2013.0324%2014.9575%2013.125%2014.9034%2013.2069C14.8514%2013.2896%2014.7843%2013.3568%2014.7022%2013.4085C14.62%2013.4602%2014.5206%2013.4861%2014.4039%2013.4861H2.5959ZM3.20476%2012.5833H13.795L8.49989%203.76389L3.20476%2012.5833ZM8.49625%2011.6165C8.63444%2011.6165%208.75151%2011.5697%208.84746%2011.4762C8.94341%2011.3827%208.99139%2011.2668%208.99139%2011.1286C8.99139%2010.9905%208.94463%2010.8734%208.85111%2010.7774C8.75759%2010.6815%208.64173%2010.6335%208.50354%2010.6335C8.36535%2010.6335%208.24827%2010.6803%208.15233%2010.7738C8.05638%2010.8673%208.0084%2010.9832%208.0084%2011.1214C8.0084%2011.2596%208.05516%2011.3766%208.14868%2011.4726C8.2422%2011.5685%208.35805%2011.6165%208.49625%2011.6165ZM8.49642%209.80018C8.62339%209.80018%208.73091%209.75695%208.81899%209.67049C8.90719%209.58392%208.95128%209.47668%208.95128%209.34879V6.91823C8.95128%206.79034%208.90834%206.68316%208.82246%206.5967C8.73658%206.51013%208.63022%206.46684%208.50337%206.46684C8.3764%206.46684%208.26888%206.51013%208.1808%206.5967C8.0926%206.68316%208.04851%206.79034%208.04851%206.91823V9.34879C8.04851%209.47668%208.09145%209.58392%208.17733%209.67049C8.26321%209.75695%208.36957%209.80018%208.49642%209.80018Z'%20fill='%23A32C24'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qt="data:image/svg+xml,%3csvg%20viewBox='2%202%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_3326_3783'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='20'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='20'%20height='20'%20fill='%23966222'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3326_3783)'%3e%3cpath%20id='warning_2'%20d='M2.5959%2013.4861C2.47923%2013.4861%202.37854%2013.4605%202.29382%2013.4094C2.20921%2013.3582%202.14341%2013.2907%202.09642%2013.2069C2.04226%2013.125%202.01824%2013.0324%202.02437%2012.9292C2.03051%2012.8259%202.05991%2012.7266%202.11257%2012.6313L8.02281%202.8132C8.07559%202.71783%208.14463%202.65035%208.22993%202.61077C8.31523%202.57118%208.40539%202.55139%208.50041%202.55139C8.59532%202.55139%208.68531%202.57118%208.77038%202.61077C8.85533%202.65035%208.9242%202.71783%208.97698%202.8132L14.8872%2012.6313C14.9399%2012.7266%2014.9693%2012.8259%2014.9754%2012.9292C14.9815%2013.0324%2014.9575%2013.125%2014.9034%2013.2069C14.8514%2013.2896%2014.7843%2013.3568%2014.7022%2013.4085C14.62%2013.4602%2014.5206%2013.4861%2014.4039%2013.4861H2.5959ZM3.20476%2012.5833H13.795L8.49989%203.76389L3.20476%2012.5833ZM8.49625%2011.6165C8.63444%2011.6165%208.75151%2011.5697%208.84746%2011.4762C8.94341%2011.3827%208.99139%2011.2668%208.99139%2011.1286C8.99139%2010.9905%208.94463%2010.8734%208.85111%2010.7774C8.75759%2010.6815%208.64173%2010.6335%208.50354%2010.6335C8.36535%2010.6335%208.24827%2010.6803%208.15233%2010.7738C8.05638%2010.8673%208.0084%2010.9832%208.0084%2011.1214C8.0084%2011.2596%208.05516%2011.3766%208.14868%2011.4726C8.2422%2011.5685%208.35805%2011.6165%208.49625%2011.6165ZM8.49642%209.80018C8.62339%209.80018%208.73091%209.75695%208.81899%209.67049C8.90719%209.58392%208.95128%209.47668%208.95128%209.34879V6.91823C8.95128%206.79034%208.90834%206.68316%208.82246%206.5967C8.73658%206.51013%208.63022%206.46684%208.50337%206.46684C8.3764%206.46684%208.26888%206.51013%208.1808%206.5967C8.0926%206.68316%208.04851%206.79034%208.04851%206.91823V9.34879C8.04851%209.47668%208.09145%209.58392%208.17733%209.67049C8.26321%209.75695%208.36957%209.80018%208.49642%209.80018Z'%20fill='%23966222'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Jt="data:image/svg+xml,%3csvg%20viewBox='2%202%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_3326_3783'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='21'%20height='20'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='20'%20height='20'%20fill='%23394150'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3326_3783)'%3e%3cpath%20id='warning_2'%20d='M2.5959%2013.4861C2.47923%2013.4861%202.37854%2013.4605%202.29382%2013.4094C2.20921%2013.3582%202.14341%2013.2907%202.09642%2013.2069C2.04226%2013.125%202.01824%2013.0324%202.02437%2012.9292C2.03051%2012.8259%202.05991%2012.7266%202.11257%2012.6313L8.02281%202.8132C8.07559%202.71783%208.14463%202.65035%208.22993%202.61077C8.31523%202.57118%208.40539%202.55139%208.50041%202.55139C8.59532%202.55139%208.68531%202.57118%208.77038%202.61077C8.85533%202.65035%208.9242%202.71783%208.97698%202.8132L14.8872%2012.6313C14.9399%2012.7266%2014.9693%2012.8259%2014.9754%2012.9292C14.9815%2013.0324%2014.9575%2013.125%2014.9034%2013.2069C14.8514%2013.2896%2014.7843%2013.3568%2014.7022%2013.4085C14.62%2013.4602%2014.5206%2013.4861%2014.4039%2013.4861H2.5959ZM3.20476%2012.5833H13.795L8.49989%203.76389L3.20476%2012.5833ZM8.49625%2011.6165C8.63444%2011.6165%208.75151%2011.5697%208.84746%2011.4762C8.94341%2011.3827%208.99139%2011.2668%208.99139%2011.1286C8.99139%2010.9905%208.94463%2010.8734%208.85111%2010.7774C8.75759%2010.6815%208.64173%2010.6335%208.50354%2010.6335C8.36535%2010.6335%208.24827%2010.6803%208.15233%2010.7738C8.05638%2010.8673%208.0084%2010.9832%208.0084%2011.1214C8.0084%2011.2596%208.05516%2011.3766%208.14868%2011.4726C8.2422%2011.5685%208.35805%2011.6165%208.49625%2011.6165ZM8.49642%209.80018C8.62339%209.80018%208.73091%209.75695%208.81899%209.67049C8.90719%209.58392%208.95128%209.47668%208.95128%209.34879V6.91823C8.95128%206.79034%208.90834%206.68316%208.82246%206.5967C8.73658%206.51013%208.63022%206.46684%208.50337%206.46684C8.3764%206.46684%208.26888%206.51013%208.1808%206.5967C8.0926%206.68316%208.04851%206.79034%208.04851%206.91823V9.34879C8.04851%209.47668%208.09145%209.58392%208.17733%209.67049C8.26321%209.75695%208.36957%209.80018%208.49642%209.80018Z'%20fill='%23394150'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",fe={success:{className:"w-[79px] h-[26px] px-3 py-1 bg-[#d6f4d5] rounded-[40px] outline outline-1 outline-offset-[-1px] outline-[#387740] inline-flex justify-center items-center gap-0 md:w-[113px] md:h-[36px] md:px-5 md:py-1.5 md:gap-0.5 lg:w-[133px] lg:h-[43px] lg:px-6 lg:py-2 lg:gap-0",classNameImage:"relative size-2.5 mb-0.5 me-1.5 md:size-3.5 md:me-2 lg:size-4 lg:mb-0.5 lg:me-2.5 lg:ms-1",classNameChildren:"text-[#387740] text-xs font-normal font-['Arial'] leading-[18px] md:text-md md:leading-normal lg:text-lg lg:leading-[27px]"},caution:{className:"w-[79px] h-[26px] px-3 py-1 bg-[#fff1be] rounded-[40px] outline outline-1 outline-offset-[-1px] outline-[#966121] inline-flex justify-center items-center gap-0 md:w-[113px] md:h-[36px] md:px-5 md:py-1.5 md:gap-0.5 lg:w-[133px] lg:h-[43px] lg:px-6 lg:py-2 lg:gap-0",classNameImage:"relative size-2.5 mb-0.5 me-1.5 md:size-3.5 md:me-2 lg:size-4 lg:mb-0.5 lg:me-2.5 lg:ms-1",classNameChildren:"text-[#966222] text-xs font-normal font-['Arial'] leading-[18px] md:text-base md:leading-normal lg:text-lg lg:leading-[27px]"},danger:{className:"w-[79px] h-[26px] px-3 py-1 bg-[#f4c2c2] rounded-[40px] outline outline-1 outline-offset-[-1px] outline-[#a22b23] inline-flex justify-center items-center gap-0 md:w-[113px] md:h-[36px] md:px-5 md:py-1.5 md:gap-0.5 lg:w-[133px] lg:h-[43px] lg:px-6 lg:py-2 lg:gap-0",classNameImage:"relative size-2.5 mb-0.5 me-1.5 md:size-3.5 md:me-2 lg:size-4 lg:mb-0.5 lg:me-2.5 lg:ms-1",classNameChildren:"text-[#A32C24] text-xs font-normal font-['Arial'] leading-[18px] md:text-base md:leading-normal lg:text-lg lg:leading-[27px]"},disabled:{className:"w-[79px] h-[26px] px-3 py-1 rounded-[40px] outline outline-1 outline-offset-[-1px] outline-[#394150] inline-flex justify-center items-center gap-0 md:w-[113px] md:h-[36px] md:px-5 md:py-1.5 md:gap-0.5 lg:w-[133px] lg:h-[43px] lg:px-6 lg:py-2 lg:gap-0",classNameImage:"relative size-2.5 mb-0.5 me-1.5 md:size-3.5 md:me-2 lg:size-4 lg:mb-0.5 lg:me-2.5 lg:ms-1",classNameChildren:"text-[#394150] text-xs font-normal font-['Arial'] leading-[18px] md:text-md md:leading-normal lg:text-lg lg:leading-[27px]"}},Xt={success:Wt,caution:qt,danger:Kt,disabled:Jt},Qt=a.forwardRef(({variant:e="success",className:s="",classNameImage:r="",classNameChildren:n="",icon:d,children:i,...o},l)=>{const g=Xt[e];return t.jsxs("div",{className:x(fe[e].className,s),ref:l,...o,children:[d?t.jsx("span",{className:x(fe[e].classNameImage,r),children:d}):t.jsx("img",{className:x(fe[e].classNameImage,r),src:g,alt:"warning"}),t.jsx("div",{className:x(fe[e].classNameChildren,n),children:i})]})}),es='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-[8px] md:py-[12px] lg:py-[16px] h-[40px] md:h-[48px] lg:h-[56px] ',xe={default:{normal:"border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-sm md:text-base lg: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-bottom-nav-background 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-sm md:text-base lg:text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] active:bg-[#0F37B3] disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] ",selected:""},outline:{normal:"rounded-md border-[#092068] bg-white border-2 text-[#092068] text-sm md:text-base lg:text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] ",selected:""},transparent:{normal:"rounded-md text-sm md:text-base lg: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]",selected:""}},Se=a.forwardRef(({label:e,onClick:s,className:r,icon:n,iconPosition:d,variant:i="default",type:o="button",children:l,selected:g=!1,classNameSelected:m,classNameGroup:v="",...f},b)=>{const[y,c]=a.useState("");return a.useEffect(()=>{let w=xe[i].normal||xe.default.normal;g&&!m?w=x(w,xe[i].selected):g&&m&&(w=x(w,m)),c(x(es,w))},[g,m,i]),t.jsxs("button",{type:o,onClick:s,className:`${d==="iconOnly"?x(y,"px-[12px] md:px-[14px] lg:px-[16px] py-[8px] md:py-[12px] lg:py-[16px]",v,r):x(y,v,r)}`,ref:b,...f,children:[d==="left"&&n&&t.jsx("span",{className:"icon-left mr-3 size-6",children:n}),d==="iconOnly"&&n?t.jsx("span",{className:"size-6",children:n}):t.jsx("span",{className:"button-text",children:l||e}),d==="right"&&n&&t.jsx("span",{className:"icon-right ml-3 size-6",children:n})]})});Se.displayName="SDK Button";const ge={default:{container:"flex gap-4 w-full md:gap-8 lg:gap-12",button:"w-[150px]"},column:{container:"flex flex-col gap-3 w-full md:gap-4 lg:gap-6",button:"w-[150px]"},custom:{container:"",button:""}},Pe=a.forwardRef(({className:e,children:s,classNameButtons:r,variant:n="default",...d},i)=>{let o=0;const l=a.Children.map(s,f=>{if(a.isValidElement(f)){++o;const b=f,y=f.props.classNameGroup||"";return a.cloneElement(b,{classNameGroup:x(y,ge[n].button,r)})}return f}),g=o===3&&n==="default",m=l==null?void 0:l.slice(0,2),v=l==null?void 0:l.slice(2);return g?t.jsxs("div",{className:"inline-flex flex-col gap-1",children:[t.jsx("div",{className:x(ge[n].container,e),children:m}),t.jsx("div",{className:x(ge[n].container,"justify-center",e),children:v})]}):t.jsx("div",{className:x("",ge[n].container,e),ref:i,children:l})});Pe.displayName="SDK ButtonGroup";const ts="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",ss="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";function rs(e){return e.replace(/-/g," ").replace(/\b\w/g,s=>s.toUpperCase())}const ns={default:"overflow-x-auto w-full text-base md:text-lg",bold:"overflow-x-auto font-bold w-full text-base md:text-lg"},os=W.forwardRef(({classNameContainer:e,className:s,routes:r,variant:n="default",separator:d=ts,...i},o)=>{const l=a.useRef(null),g=a.useRef(null),[m,v]=a.useState(!1),[f,b]=a.useState(),[y,c]=a.useState(0),{pathname:w}=de.useLocation(),C=a.useMemo(()=>r&&r.length>0?r:w.split("/").filter(Boolean).map((V,I,_)=>({name:rs(decodeURIComponent(V)),route:"/"+_.slice(0,I+1).join("/")})),[r,w]);a.useEffect(()=>{const M=l.current;M&&c(M.offsetWidth)},[]);const $=()=>{const M=l.current;(M&&!f||M&&f&&Date.now()>f+200)&&(m?M.clientWidth>y&&v(!1):M.scrollWidth>M.clientWidth&&v(!0),b(Date.now()))};return a.useEffect(()=>{const M=l.current;if(!M)return;$();const V=new ResizeObserver($);return V.observe(M),()=>{V.disconnect()}},[f,C]),t.jsx("nav",{className:x(ns[n],e),...i,ref:o,"aria-label":"Breadcrumbs",children:t.jsxs("div",{ref:l,className:"flex list-none flex-nowrap text-clip overflow-hidden text-nowrap w-full",children:[t.jsxs("span",{className:"breadcrumb-item inline-flex items-center flex-shrink-0",children:[t.jsx(de.Link,{to:"/",className:x("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2 hidden md:inline-flex",s),children:"Homepage"}),t.jsx(de.Link,{to:"/",className:x("capitalize me-2 inline-flex md:hidden",s),children:t.jsx("img",{src:ss,ref:g,alt:"home icon"})}),C.length>0?t.jsx("span",{className:x("me-2",s),children:t.jsx("img",{src:d,alt:"vector"})}):""]}),t.jsx("span",{className:"",children:C.map((M,V)=>m?t.jsx("span",{className:"inline-flex items-center flex-shrink-0 text-nowrap",children:V===C.length-1?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-nowrap me-3",children:"..."}),t.jsx("span",{className:x("me-3",s),children:t.jsx("img",{src:d,alt:"vector"})}),t.jsx("span",{className:"text-black font-bold capitalize text-nowrap","aria-current":"page",children:decodeURIComponent(M.name).replace(/-/g," ")})]}):""},V):t.jsxs("span",{className:"breadcrumb-item inline-flex items-center flex-shrink-0",children:[V===C.length-1?t.jsx("span",{className:"text-black font-bold capitalize","aria-current":"page",children:decodeURIComponent(M.name).replace(/-/g," ")}):t.jsx(de.Link,{to:M.route,className:x("text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-3",s),children:decodeURIComponent(M.name).replace(/-/g," ")}),V<C.length-1&&t.jsx("span",{className:x("me-3",s),children:t.jsx("img",{src:d,alt:"vector"})})]},V))})]})})}),as={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"},ls={default:"bg-white overflow-hidden rounded-lg",outline:"bg-white overflow-hidden rounded-lg shadow-md border border-slate-300"},is="px-4 my-2",cs="px-2 my-2",Ue=W.forwardRef(({className:e,variant:s="default",variantStyle:r="default",imagePath:n,classNameImage:d="w-full h-full",imageInset:i=!1,alt:o,ariaLabel:l="card component",children:g,...m},v)=>t.jsxs("div",{className:x("flex ",ls[r],as[s],e),"aria-label":l,ref:v,...m,children:[t.jsx("div",{className:x("flex-initial items-center justify-center w-full",i&&(s==="default"||s==="imageBottom"?is:cs)),children:n&&t.jsx("img",{src:n,alt:o,className:d})}),t.jsx("div",{className:"flex-auto px-2 py-3",children:g})]}));Ue.displayName="Card";const ds=({className:e="",classNameMessage:s="",classNameOverLimitMessage:r="",maxCharacters:n,children:d,altRemainingMessageText:i,altOverageMessageText:o})=>{const[l,g]=a.useState(`${n} characters allowed`),[m,v]=a.useState(!1),f=b=>{const c=b.target.value.length;if(v(c>n),c===0)g(`${n} characters allowed`);else if(c<=n){const w=" "+(i??"remaining");g(`${n-c}${w}`)}else{const w=" "+(o??"characters too many");g(`${c-n}${w}`)}};return t.jsxs("div",{className:e,children:[t.jsx("div",{onInput:f,className:"mb-2",children:d}),t.jsx("div",{className:x(s,m&&"text-red-500",m&&r),children:l})," "]})};var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ze={exports:{}};(function(e,s){(function(r,n){e.exports=n()})(us,function(){var r=1e3,n=6e4,d=36e5,i="millisecond",o="second",l="minute",g="hour",m="day",v="week",f="month",b="quarter",y="year",c="date",w="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,M={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(D){var p=["th","st","nd","rd"],h=D%100;return"["+D+(p[(h-20)%10]||p[h]||p[0])+"]"}},V=function(D,p,h){var j=String(D);return!j||j.length>=p?D:""+Array(p+1-j.length).join(h)+D},I={s:V,z:function(D){var p=-D.utcOffset(),h=Math.abs(p),j=Math.floor(h/60),k=h%60;return(p<=0?"+":"-")+V(j,2,"0")+":"+V(k,2,"0")},m:function D(p,h){if(p.date()<h.date())return-D(h,p);var j=12*(h.year()-p.year())+(h.month()-p.month()),k=p.clone().add(j,f),L=h-k<0,z=p.clone().add(j+(L?-1:1),f);return+(-(j+(h-k)/(L?k-z:z-k))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y,w:v,d:m,D:c,h:g,m:l,s:o,ms:i,Q:b}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",R={};R[_]=M;var B="$isDayjsObject",H=function(D){return D instanceof S||!(!D||!D[B])},O=function D(p,h,j){var k;if(!p)return _;if(typeof p=="string"){var L=p.toLowerCase();R[L]&&(k=L),h&&(R[L]=h,k=L);var z=p.split("-");if(!k&&z.length>1)return D(z[0])}else{var T=p.name;R[T]=p,k=T}return!j&&k&&(_=k),k||!j&&_},N=function(D,p){if(H(D))return D.clone();var h=typeof p=="object"?p:{};return h.date=D,h.args=arguments,new S(h)},u=I;u.l=O,u.i=H,u.w=function(D,p){return N(D,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var S=function(){function D(h){this.$L=O(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[B]=!0}var p=D.prototype;return p.parse=function(h){this.$d=function(j){var k=j.date,L=j.utc;if(k===null)return new Date(NaN);if(u.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var z=k.match(C);if(z){var T=z[2]-1||0,F=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],T,z[3]||1,z[4]||0,z[5]||0,z[6]||0,F)):new Date(z[1],T,z[3]||1,z[4]||0,z[5]||0,z[6]||0,F)}}return new Date(k)}(h),this.init()},p.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},p.$utils=function(){return u},p.isValid=function(){return this.$d.toString()!==w},p.isSame=function(h,j){var k=N(h);return this.startOf(j)<=k&&k<=this.endOf(j)},p.isAfter=function(h,j){return N(h)<this.startOf(j)},p.isBefore=function(h,j){return this.endOf(j)<N(h)},p.$g=function(h,j,k){return u.u(h)?this[j]:this.set(k,h)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(h,j){var k=this,L=!!u.u(j)||j,z=u.p(h),T=function(ee,Z){var q=u.w(k.$u?Date.UTC(k.$y,Z,ee):new Date(k.$y,Z,ee),k);return L?q:q.endOf(m)},F=function(ee,Z){return u.w(k.toDate()[ee].apply(k.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(Z)),k)},P=this.$W,U=this.$M,G=this.$D,se="set"+(this.$u?"UTC":"");switch(z){case y:return L?T(1,0):T(31,11);case f:return L?T(1,U):T(0,U+1);case v:var Q=this.$locale().weekStart||0,oe=(P<Q?P+7:P)-Q;return T(L?G-oe:G+(6-oe),U);case m:case c:return F(se+"Hours",0);case g:return F(se+"Minutes",1);case l:return F(se+"Seconds",2);case o:return F(se+"Milliseconds",3);default:return this.clone()}},p.endOf=function(h){return this.startOf(h,!1)},p.$set=function(h,j){var k,L=u.p(h),z="set"+(this.$u?"UTC":""),T=(k={},k[m]=z+"Date",k[c]=z+"Date",k[f]=z+"Month",k[y]=z+"FullYear",k[g]=z+"Hours",k[l]=z+"Minutes",k[o]=z+"Seconds",k[i]=z+"Milliseconds",k)[L],F=L===m?this.$D+(j-this.$W):j;if(L===f||L===y){var P=this.clone().set(c,1);P.$d[T](F),P.init(),this.$d=P.set(c,Math.min(this.$D,P.daysInMonth())).$d}else T&&this.$d[T](F);return this.init(),this},p.set=function(h,j){return this.clone().$set(h,j)},p.get=function(h){return this[u.p(h)]()},p.add=function(h,j){var k,L=this;h=Number(h);var z=u.p(j),T=function(U){var G=N(L);return u.w(G.date(G.date()+Math.round(U*h)),L)};if(z===f)return this.set(f,this.$M+h);if(z===y)return this.set(y,this.$y+h);if(z===m)return T(1);if(z===v)return T(7);var F=(k={},k[l]=n,k[g]=d,k[o]=r,k)[z]||1,P=this.$d.getTime()+h*F;return u.w(P,this)},p.subtract=function(h,j){return this.add(-1*h,j)},p.format=function(h){var j=this,k=this.$locale();if(!this.isValid())return k.invalidDate||w;var L=h||"YYYY-MM-DDTHH:mm:ssZ",z=u.z(this),T=this.$H,F=this.$m,P=this.$M,U=k.weekdays,G=k.months,se=k.meridiem,Q=function(Z,q,ae,ue){return Z&&(Z[q]||Z(j,L))||ae[q].slice(0,ue)},oe=function(Z){return u.s(T%12||12,Z,"0")},ee=se||function(Z,q,ae){var ue=Z<12?"AM":"PM";return ae?ue.toLowerCase():ue};return L.replace($,function(Z,q){return q||function(ae){switch(ae){case"YY":return String(j.$y).slice(-2);case"YYYY":return u.s(j.$y,4,"0");case"M":return P+1;case"MM":return u.s(P+1,2,"0");case"MMM":return Q(k.monthsShort,P,G,3);case"MMMM":return Q(G,P);case"D":return j.$D;case"DD":return u.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Q(k.weekdaysMin,j.$W,U,2);case"ddd":return Q(k.weekdaysShort,j.$W,U,3);case"dddd":return U[j.$W];case"H":return String(T);case"HH":return u.s(T,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ee(T,F,!0);case"A":return ee(T,F,!1);case"m":return String(F);case"mm":return u.s(F,2,"0");case"s":return String(j.$s);case"ss":return u.s(j.$s,2,"0");case"SSS":return u.s(j.$ms,3,"0");case"Z":return z}return null}(Z)||z.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(h,j,k){var L,z=this,T=u.p(j),F=N(h),P=(F.utcOffset()-this.utcOffset())*n,U=this-F,G=function(){return u.m(z,F)};switch(T){case y:L=G()/12;break;case f:L=G();break;case b:L=G()/3;break;case v:L=(U-P)/6048e5;break;case m:L=(U-P)/864e5;break;case g:L=U/d;break;case l:L=U/n;break;case o:L=U/r;break;default:L=U}return k?L:u.a(L)},p.daysInMonth=function(){return this.endOf(f).$D},p.$locale=function(){return R[this.$L]},p.locale=function(h,j){if(!h)return this.$L;var k=this.clone(),L=O(h,j,!0);return L&&(k.$L=L),k},p.clone=function(){return u.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},D}(),A=S.prototype;return N.prototype=A,[["$ms",i],["$s",o],["$m",l],["$H",g],["$W",m],["$M",f],["$y",y],["$D",c]].forEach(function(D){A[D[1]]=function(p){return this.$g(p,D[0],D[1])}}),N.extend=function(D,p){return D.$i||(D(p,S,N),D.$i=!0),N},N.locale=O,N.isDayjs=H,N.unix=function(D){return N(1e3*D)},N.en=R[_],N.Ls=R,N.p={},N})})(Ze);var gs=Ze.exports;const ce=fs(gs),ms="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",ps=({id:e,label:s,value:r,onChange:n})=>{const[d,i]=a.useState(!1),[o,l]=a.useState(r),[g,m]=a.useState(!0),[v,f]=a.useState(!!r),[b,y]=a.useState(ce(r,"MM-DD-YYYY",!0).isValid()?ce(r,"MM-DD-YYYY",!0):null),c=a.useRef(null),w=a.useRef(null),C=a.useRef(null),$=(b==null?void 0:b.daysInMonth())||30,M=(b==null?void 0:b.startOf("month").day())||0;a.useEffect(()=>{o||(r=ce().format("MM-DD-YYYY"),f(!1)),l(r);const N=ce(r,"MM-DD-YYYY",!0);y(N.isValid()?N:null),m(N.isValid()&&r!=="")},[r]),a.useEffect(()=>{function N(u){c.current&&(c.current.contains(u.target)||i(!1))}if(d&&C.current){const u=C.current.querySelector('[role="button"]:not([disabled])');u==null||u.focus(),document.addEventListener("mousedown",N)}return()=>{document.removeEventListener("mousedown",N)}},[d]);const V=N=>{var S;const u=N.format("MM-DD-YYYY");f(!0),y(N),l(u),m(!0),n(u),i(!1),(S=w.current)==null||S.focus()},I=(N,u)=>{N.key==="Enter"&&V(u)},_=N=>{const u=N.target.value;if(l(u),f(!0),!/^\d{1,2}-\d{2}-\d{4}$/.test(u)){m(!1),n(u);return}const A=ce(u,"MM-DD-YYYY",!0);A.isValid()?(console.log("MAYBEDATE IS VALID"),y(A),m(!0),n(u)):(console.log("MAYBEDATE IS --NOT-- VALID"),m(!1),n(u))},R=()=>{i(N=>!N)},B=()=>{b&&y(b.subtract(1,"month"))},H=()=>{b&&y(b.add(1,"month"))},O=()=>{if(!b)return null;const N=[];for(let u=0;u<M;u++)N.push(t.jsx("div",{className:"w-8 h-8"},`empty-${u}`));for(let u=1;u<=$;u++){const S=b.date(u);N.push(t.jsx("button",{role:"presentation",tabIndex:0,onClick:()=>V(S),onKeyDown:A=>I(A,S),className:`w-8 h-8 ${S.isSame(b,"date")?"bg-blue-500 text-white":""} hover:bg-blue-100 focus:ring`,"aria-label":S.format("MMMM D, YYYY"),children:u},u))}return N};return t.jsxs("div",{className:"relative",ref:c,children:[t.jsx("label",{htmlFor:e,id:"date-picker-input",className:"block text-sm font-medium text-gray-700",children:s}),t.jsxs("div",{className:"flex items-center mt-1",children:[t.jsx("input",{id:e,type:"text","aria-labelledby":"date-picker-input",ref:w,value:v?o:"",onChange:_,placeholder:"MM-DD-YYYY",className:`block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
|
|
3
|
+
focus:border-blue-500 pl-1 focus:outline-none`}),t.jsx("button",{type:"button",onClick:R,className:`px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
|
|
4
|
+
focus:outline-none focus:border-blue-500`,"aria-label":"Open calendar","aria-haspopup":"dialog","aria-expanded":d,"aria-controls":`${e}-dialog`,children:t.jsx("img",{src:ms,alt:"calendar icon",className:"size-6"})})]}),d&&t.jsxs("div",{ref:C,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:B,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:b==null?void 0:b.format("MMMM YYYY")}),t.jsx("button",{onClick:H,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"}),O()]})]}),!g&&t.jsx("p",{className:"text-red-600",children:"Please enter a valid date 'MM-DD-YYYY'"})]})},we={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 Ge=(e=>(e.Right="right",e.Left="left",e.IconOnly="iconOnly",e.None="undefined",e))(Ge||{});const hs=({variant:e="default",tabs:s,className:r,classNameContainer:n})=>{const[d,i]=a.useState(0),[o,l]=a.useState(!1),[g,m]=a.useState(""),v=a.useRef([]);e===""&&(e="default");const f=a.useCallback(c=>{var w;(w=v.current[c])==null||w.focus()},[]),b=a.useCallback((c,w)=>{if(c.key==="ArrowRight"){const C=(w+1)%s.length;i(C),f(C)}else if(c.key==="ArrowLeft"){const C=(w-1+s.length)%s.length;i(C),f(C)}else c.key==="Home"?(i(0),f(0)):c.key==="End"&&(i(s.length-1),f(s.length-1))},[s.length,f]),y=c=>{l(!0),m(c)};return t.jsxs("div",{className:x("w-full",n),children:[t.jsx("div",{role:"tablist","aria-label":"Tabs",className:x(we[e].container,r),children:s.map((c,w)=>t.jsxs("button",{role:"tab",id:`tab-${c.id}`,onMouseEnter:()=>y(c.id),onMouseLeave:()=>l(!1),"aria-selected":d===w,"aria-controls":`panel-${c.id}`,tabIndex:d===w?0:-1,ref:C=>v.current[w]=C,className:`flex px-6 py-3 md:py-[14px] lg:py-4 focus:outline-none ${e==="outline"?`border-[#092068] ${w===0?"border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md":w===s.length-1?"border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md":"border-t-2 border-b-2"}`:""} ${x(d===w?we[e].active:we[e].inactive)}`,onClick:()=>i(w),onKeyDown:C=>b(C,w),children:[c.iconPosition==="left"&&c.activeIcon&&t.jsx("span",{className:"icon-left mr-3 size-6 lg:mt-0.5",children:d===w?o&&g===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon}),c.iconPosition==="iconOnly"&&c.activeIcon?t.jsx("span",{className:"size-6 lg:mt-0.5",children:d===w?o&&g===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon}):t.jsx("span",{className:"text-sm md:text-base lg:text-lg mt-0.5 md:mt-0",children:c.label}),c.iconPosition==="right"&&c.activeIcon&&t.jsx("span",{className:"icon-right ml-3 size-6 lg:mt-0.5",children:d===w?o&&g===c.id?c.inactiveIcon:c.activeIcon:c.inactiveIcon})]},c.id))}),s.map((c,w)=>t.jsx("div",{role:"tabpanel",id:`panel-${c.id}`,"aria-labelledby":`tab-${c.id}`,hidden:d!==w,className:"p-4",children:c.content},c.id))]})};function Le(e){return!!"0123456789".includes(e)}function _e(e){const s=e.charCodeAt(0);return s>=65&&s<=90||s>=97&&s<=122}function Ve(e,s){for(let r=s;r<e.length;r++){if(e[r]==="@")return"@";if(e[r]==="#")return"#"}return""}const ze="px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hover:outline-[#c6c6c6] active:outline-[#0256ab] focus:outline-4 focus:outline-[#fa89f1] text-base md:text-lg",ve=[{variant:"default",classes:"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-[#F2F2F2] disabled:border w-[90vw] lg:max-w-[25em]",labelClasses:"ms-2.5 text-base",insetLabelClasses:"absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto"},{variant:"outline",classes:"border-dha-mc-true-blue bg-white border text-dha-mc-true-blue disabled:border-[#F2F2F2] disabled:text-dha-mc-checkbox-inactive w-[35vw] min-w-min sm:max-w-[15em]",labelClasses:"ms-2.5 text-base",insetLabelClasses:"absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto"},{variant:"nonHover",classes:"text-black disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-[#F2F2F2] disabled:border w-[90vw] lg:max-w-[25em]",labelClasses:"ms-2.5 text-base",insetLabelClasses:"absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto"}],We=a.forwardRef(({className:e,variant:s="default",label:r,insetLabel:n=!1,classNameLabel:d="",classNameRequired:i="",labelBaseColor:o="#fff",error:l=!1,textShadow:g=!1,mask:m,disabled:v,...f},b)=>{const[y,c]=a.useState(),[w,C]=a.useState(ze),[$,M]=a.useState(""),[V,I]=a.useState(!1),_=a.useRef(null),[R,B]=a.useState(""),H="border-[#D54309] border",O=u=>{const S=u.target.value;B(m?N(S):S)};function N(u){let S="",A=0;if(m)for(;u.length>0&&A<m.length;)m[A]!=="#"&&m[A]!=="@"?m[A]===u[0]?(S+=u[0],u=u.slice(1),A++):((_e(u[0])&&Ve(m,A)==="@"||Le(u[0])&&Ve(m,A)==="#")&&(S+=m[A]),A++):m[A]==="#"&&Le(u[0])||m[A]==="@"&&_e(u[0])?(S+=u[0],u=u.slice(1),A++):u=u.slice(1);return S}if(a.useEffect(()=>{var u,S,A;s&&(C(x(ze,(u=ve.find(D=>D.variant===s))==null?void 0:u.classes,l&&H,e)),M(x(n?(S=ve.find(D=>D.variant===s))==null?void 0:S.insetLabelClasses:(A=ve.find(D=>D.variant===s))==null?void 0:A.labelClasses,d)))},[e,s,V,n,l]),a.useEffect(()=>{if(n){const u=_.current;if(!u)return;const S=A=>{const D=getComputedStyle(u);c(D.backgroundColor),I(A)};return S(!0),u.addEventListener("mouseover",()=>S(!0)),u.addEventListener("mouseout",()=>S(!1)),()=>{u.removeEventListener("mouseover",()=>S),u.removeEventListener("mouseout",()=>S)}}},[o,n,V,v]),!["default","outline","nonHover"].includes(s))throw new Error(`Invalid variant: "${s}". Valid variants are: "default", "outline", and "nonHover".`);return t.jsxs("span",{className:"group relative",children:[t.jsxs("div",{className:x("pb-2",$),style:n?{background:`linear-gradient(to bottom, ${o} 0%, ${o} 50%, ${y} 60%, ${y} 100%)`,textShadow:g?`1px 1px 2px ${o}, 0 0 1em ${o}, 0 0 0.2em ${o}`:""}:{textShadow:g?`1px 1px 2px ${o}, 0 0 1em ${o}, 0 0 0.2em ${o}`:""},children:[r,f.required&&t.jsx("span",{className:x("absolute text-red-500 ms-0.5 -mt-1",i),children:"*"})]}),t.jsx("input",{className:w,"aria-label":r,value:R,onChange:O,disabled:v,ref:u=>{typeof b=="function"?b(u):b&&(b.current=u),_.current=u},...f})]})});We.displayName="Input";const Ke=({items:e,header:s,className:r="",classNameItem:n="",children:d,withDividers:i=!1,classNameDividerColor:o="",isDecimal:l=!1,isDisc:g=!1,isAlphabetical:m=!1,isRomanNumeral:v=!1,isInline:f=!1})=>t.jsxs("div",{className:"p-0 m-0",children:[t.jsx("p",{children:s}),t.jsxs("ul",{className:x("pl-6 list-none w-full",l?"list-decimal":"",g?"list-disc":"",r),children:[e&&e.map((b,y)=>t.jsxs(Ne,{className:x("w-full text-base md:text:lg py-2",i&&(f?y!==e.length:y!==e.length-1)?"border-b":"",o!==""&&(f?y!==e.length:y!==e.length-1)?o:"",f&&"inline mr-2",n),children:[v&&t.jsxs("span",{className:"flex flex-col w-6",children:[String.fromCharCode(8560+y),". "]}),m&&t.jsxs("span",{children:[String.fromCharCode(97+y),". "]}),v?t.jsx("span",{className:"flex flex-col w-6",children:b.children}):b.children]},y)),d&&W.Children.map(d,(b,y)=>W.isValidElement(b)?W.cloneElement(b,{className:x(f&&"inline mr-2",n,b.props.className,"w-full",i&&(f?y!==W.Children.count(d):y!==W.Children.count(d)-1)?"border-b":"",o!==""&&(f?y!==W.Children.count(d):y!==W.Children.count(d)-1)?o:""),children:t.jsxs(t.Fragment,{children:[v&&t.jsxs("div",{className:"flex flex-row",children:[t.jsxs("span",{className:"w-6",children:[String.fromCharCode(8560+y),". "]}),b.props.children]}),m&&t.jsxs("span",{children:[String.fromCharCode(97+y),". "]}),!v&&b.props.children]})}):b)]})]}),Ne=({className:e,children:s})=>t.jsx("li",{className:x("py-2 text-base md:text:lg",e),children:s}),bs="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='close'%3e%3cmask%20id='mask0_4303_6570'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4303_6570)'%3e%3cpath%20id='Icon'%20d='M12.4995%2013.0537L7.42652%2018.127C7.28802%2018.2653%207.11394%2018.3362%206.90427%2018.3395C6.69477%2018.3427%206.51752%2018.2718%206.37252%2018.127C6.22769%2017.982%206.15527%2017.8063%206.15527%2017.6C6.15527%2017.3937%206.22769%2017.218%206.37252%2017.073L11.4458%2012L6.37252%206.927C6.23419%206.7885%206.16336%206.61441%206.16002%206.40475C6.15686%206.19525%206.22769%206.018%206.37252%205.873C6.51752%205.72816%206.69319%205.65575%206.89952%205.65575C7.10586%205.65575%207.28152%205.72816%207.42652%205.873L12.4995%2010.9462L17.5725%205.873C17.711%205.73466%2017.8851%205.66383%2018.0948%205.6605C18.3043%205.65733%2018.4815%205.72816%2018.6265%205.873C18.7714%206.018%2018.8438%206.19366%2018.8438%206.4C18.8438%206.60633%2018.7714%206.782%2018.6265%206.927L13.5533%2012L18.6265%2017.073C18.7649%2017.2115%2018.8357%2017.3856%2018.839%2017.5952C18.8422%2017.8047%2018.7714%2017.982%2018.6265%2018.127C18.4815%2018.2718%2018.3059%2018.3442%2018.0995%2018.3442C17.8932%2018.3442%2017.7175%2018.2718%2017.5725%2018.127L12.4995%2013.0537Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",te={default:{container:"mx-8 md:mx-32 lg:mx-64 bg-white rounded shadow-lg w-full max-w-lg px-2 pt-2 pb-4 md:pb-6 lg:pb-7 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:"mx-8 md:mx-32 lg:mx-64 bg-slate-600 rounded shadow-lg w-full max-w-lg px-2 pt-2 pb-4 md:pb-6 lg:pb-7 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:"mx-8 md:mx-32 lg:mx-64 bg-zinc-800 rounded shadow-lg w-full max-w-lg px-2 pt-2 pb-4 md:pb-6 lg:pb-7 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"}},xs=({isOpen:e,variant:s="default",onClose:r,title:n,className:d,closeButton:i=!0,clickOutsideCloses:o=!1,displayClosingX:l=!0,closeButtonText:g="Close",continueButton:m=!1,continueButtonHandler:v,continueButtonText:f="Continue",blurLevel:b,children:y})=>{const c=a.useRef(null),w=a.useRef(null),C="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",[$,M]=a.useState("");if(a.useEffect(()=>{if(b){const I="backdrop-blur-"+b;M(x(C,I))}else M(C)},[b]),a.useEffect(()=>{if(o){const I=_=>{c.current&&!c.current.contains(_.target)&&r()};return document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}}},[r]),a.useEffect(()=>{var R;const I=B=>{B.key==="Escape"&&e&&r()},_=B=>{var u;const H=(u=c.current)==null?void 0:u.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),O=H==null?void 0:H[0],N=H==null?void 0:H[H.length-1];B.key==="Tab"&&H&&(B.shiftKey&&document.activeElement===O?(B.preventDefault(),N==null||N.focus()):!B.shiftKey&&document.activeElement===N&&(B.preventDefault(),O==null||O.focus()))};return e?(document.body.style.overflow="hidden",window.addEventListener("keydown",I),window.addEventListener("keydown",_),(R=w.current)==null||R.focus()):document.body.style.overflow="auto",()=>{window.removeEventListener("keydown",I),window.removeEventListener("keydown",_),document.body.style.overflow="auto"}},[e,r]),!e)return null;const V=()=>{v&&v(),r()};return t.jsx("div",{className:$,id:"backdrop",children:t.jsxs("div",{className:x(te[s].container,d),ref:c,"aria-label":"modal-title",role:"dialog","aria-modal":"true",children:[t.jsx("div",{className:"flex flex-col items-end",children:l&&t.jsx("button",{onClick:r,className:x("text-xl text-gray-500 hover:text-gray-700 focus:outline-none focus:ring",te[s].titleHeading),"aria-label":"Close modal",children:t.jsx("img",{src:bs,alt:"close icon"})})}),t.jsx("div",{className:x(te[s].title),children:t.jsx("h2",{id:"modal-title",className:x("text-[20px] md:text-[24px] lg:text-[32px] font-medium text-gray-900 text-center w-full",te[s].titleHeading),children:n})}),t.jsx("div",{className:x("text-center lg:text-[18px] px-2",te[s].body),children:y}),m||i?t.jsxs("div",{className:"mt-4 flex justify-end px-4",children:[i&&t.jsx("button",{ref:w,onClick:r,className:x(te[s].button),children:g}),m&&t.jsx("button",{onClick:V,className:x(te[s].button,"ms-4"),children:f})]}):""]})})},ws=a.forwardRef(({className:e="",iconLeft:s,iconLeftSelected:r,iconRight:n,iconRightSelected:d,children:i,onClick:o,selected:l=!1,...g},m)=>{const[v,f]=a.useState(),[b,y]=a.useState(),[c,w]=a.useState("bg-white");return a.useEffect(()=>{const C="text-lg font-normal font-['Arial'] leading-normal ";y(s&&n?C:s?C+"mr-6":n?C+"ml-6":C+"ml-6 mr-6")},[s,n,i]),a.useEffect(()=>{w(l?"bg-[#092068] focus:bg-[#092068] text-white":"bg-white"),f(x("relative inline-flex items-center justify-center whitespace-nowrap rounded-3xl transition-colors focus-visible:outline-none font-[`Arial`] disabled:pointer-events-none disabled:opacity-50 border-2 border-[#092068] text-[#092068] text-lg focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] bg-white hover:bg-[#D1DBFB] active:bg-[#9fc5f0] focus:bg-white disabled:bg-[#939194] disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 h-[48px] mt-1",c,e))},[e,c,l]),t.jsxs("button",{onClick:o,className:v,ref:m,...g,children:[s&&t.jsx("span",{className:"ml-6 mr-2.5 size-6",children:l&&r?r:s}),t.jsx("div",{className:b,children:i}),n&&t.jsx("span",{className:"ml-2.5 mr-6 size-6",children:l&&d?d:n})]})}),Ee=[{path:"http://localhost:4200/mobile_apps/sdk-component-demo/",title:"SDK Component Demo Site",content:`The SDK will act as a single source of truth for components. Developers, UX designers, and other stakeholders can view and interact with components without needing to set up the full application, improving feedback loops and collaboration.
|
|
5
|
+
If you have feedback on this demo site or any of the DHA SDK components, please email us at: b04eb4d0.chenega.onmicrosoft.com@amer.teams.ms
|
|
6
|
+
For installation instructions for the simple-ui package, please visit install instructions`},{path:"http://localhost:4200/mobile_apps/sdk-component-demo/buttons",title:"Button Component",content:`Buttons allow users to interact and make choices within an app with a simple touch. Our Button comes with several variants: default, outlined, and text.
|
|
7
|
+
The button component as built takes in various props in addition to any other html attributes a normal html button would use, for example an aria-label tag.
|
|
8
|
+
A ref can also be created and assigned to the button component, and the component will point the reference to the html button.
|
|
9
|
+
The className prop takes a list of alternate CSS classes the developer would like applied to the component. These are applied using the tailwind twMerge function, and will safely overwrite any conflicting classes ensuring proper styling.
|
|
10
|
+
If you would like the button to display a toggled or selected status as the Usage, Code, and Docs buttons above (changing background color when clicked), the selected and optionally the classNameSelected props can be used, explained below.
|
|
11
|
+
`},{path:"http://localhost:4200/mobile_apps/sdk-component-demo/input",title:"Input Component",content:`The input component as built takes seven optional props (className, classNameLabel, required, label, labelBaseColor, labelInputcolor, mask, and textShadow), in addition to any other html attributes a normal html form input would use, for example an aria tag.
|
|
12
|
+
The mask prop allows the developer to specify an input mask prop such as (###) ###-### that gaurantees formatting for input data. See usage examples in the drop-down, usage examples, as well as notes in the documentation. Note that the mask is not a placeholder, that is a separate mechanism built into html input elements.
|
|
13
|
+
A reference can also be created and passed to the input component, and the component will point the reference to the input
|
|
14
|
+
The input component as built takes seven optional props in addition to any other html attributes a normal html form input would use, for example an aria tag.
|
|
15
|
+
A reference can also be created and passed to the input component, and the component will point the reference to the input.
|
|
16
|
+
`},{path:"http://localhost:4200/mobile_apps/sdk-component-demo/select",title:"Select Component",content:`Select components or drop-downs allow a user to make a single selection from multiple choices while preserving space on the form. Our Select component comes with several variants: default, fill, and outline.
|
|
17
|
+
The Select component takes two required props (options and setSelectedOption) as well as multiple optional props in addition to any other html attributes a normal html element would use, for example an aria-tag.
|
|
18
|
+
`},{path:"http://localhost:4200/mobile_apps/sdk-component-demo/toggle",title:"Toggle Component",content:`A Toggle is an element that allows the user to make a choice between two mutually exclusive states. Our Toggle comes with two variants: default and outlined
|
|
19
|
+
The Toggle component takes a variant prop used to indicate pre-defined styles, an optional click handler, and various other optional props described below and uses those to display a Toggle button. The variant prop currently takes one of two values, those possible values currently being 'default' and 'outlined'.
|
|
20
|
+
As with the button component, Toggle takes any other additional html attributes and passes them to the parent <button> tag. This div is styled using the tailwind twMerge() utility, so custom classes can be added via the classNames prop as and applied as well.
|
|
21
|
+
`}],vs="h-10 px-4 py-2 arial rounded-lg border border-[#B3B3B3] p-1 ps-2 mx-2 bg-white hover:outline-[#c6c6c6] active:outline-[#0256ab] focus:outline-4 focus:outline-[#fa89f1] text-base lg:text-lg",qe=a.forwardRef(({className:e,variant:s="default",label:r="Search",insetLabel:n=!1,classNameLabel:d="",classNameRequired:i="",labelBaseColor:o="#fff",error:l=!1,textShadow:g=!1,mask:m,disabled:v,setSearchResults:f,...b},y)=>{const[c,w]=a.useState(vs),C=a.useRef(null),$=a.useRef(null),[M,V]=a.useState(""),[I,_]=a.useState(),[R,B]=a.useState();function H(N){const u=N.toLowerCase(),S=[];return Ee.forEach((A,D)=>{const p=[];let h=A.content.toLowerCase().indexOf(u);for(;h!==-1;){const j=A.content.substring(h+u.length,h+u.length+15);p.push({characters:j,index:D}),h=A.content.toLowerCase().indexOf(u,h+1)}p.length&&S.push({title:A.title,results:p})}),{input:N,pages:S}}const O=N=>{const u=N.target.value;if(V(u),!u){f==null||f({input:"",pages:[]}),_(void 0);return}const S=H(u);f==null||f(S),_(S)};return t.jsxs("span",{className:"group relative",children:[t.jsx("input",{className:c,"aria-label":r,value:M,onChange:O,ref:N=>{typeof y=="function"?y(N):y&&(y.current=N),C.current=N},...b}),I&&t.jsx("div",{role:"listbox",ref:$,"aria-label":"Select option",className:`absolute w-[292px] md:w-[343px] lg:w-[600px] shadow-lg ring-1
|
|
22
|
+
ring-white ring-opacity-5 focus:outline-none z-10
|
|
23
|
+
bg-[#e5eaea] border-2 border-slate-300 rounded-md ms-2`,children:I.pages.map((N,u)=>t.jsxs("div",{className:"ms-4",children:[t.jsx("div",{className:"font-bold text-sm",children:t.jsx("a",{role:"option",href:Ee[u].path,className:"text-blue-700 underline",children:N.title&&N.title})}),N.results.map((S,A)=>t.jsxs("div",{className:"ms-4",children:[t.jsx("strong",{children:I.input}),S.characters]}))]},u))})]})});qe.displayName="Search";const ys=({classNameLabel:e,classNameInput:s,classNameContainer:r,options:n})=>{const[d,i]=a.useState(""),o=g=>{i(g),console.log(g)},l=d;return t.jsx("fieldset",{role:"radiogroup",className:r,children:n.map(({label:g,value:m,disabled:v})=>t.jsxs("label",{className:x(`flex items-center gap-1 cursor-pointer ${v?"opacity-50 cursor-not-allowed":""}`,e),children:[t.jsx("input",{className:x(`appearance-none w-4 h-4 rounded-[50%] border border-black bg-clip-content checked:bg-[#000] checked:p-[2.5px] checked:border-[#000]
|
|
24
|
+
${v?"opacity-50 cursor-not-allowed":""}`,s),type:"radio",value:m,disabled:v,checked:l===m,onChange:()=>o(m)})," ",g]},m))})},Cs="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-right'%3e%3cpath%20d='m9%2018%206-6-6-6'/%3e%3c/svg%3e",ks="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23f0f0f0'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-right'%3e%3cpath%20d='m9%2018%206-6-6-6'/%3e%3c/svg%3e",js=a.forwardRef(({className:e="",classNameChildren:s="",classNameSubHeader:r="",iconLeft:n,iconRight:d,underline:i=!1,subHeader:o=!1,fill:l=!1,type:g="page",padLeft:m=!0,padRight:v=!0,button:f,buttonOnClick:b,buttonContent:y="Click Me",children:c,...w},C)=>{const[$,M]=a.useState(""),[V,I]=a.useState(""),[_,R]=a.useState(""),B=`${g==="page"?"pt-4 pb-2":"py-2"} flex pl-6 pr-2 justify-start items-center gap-4 inline-flex w-full`;return a.useEffect(()=>{M(x(B,i?"border-b-2 border-[#07192D]":"",l?"bg-[#092068] text-[#f0f0f0]":"bg-transparent text-[#07192d]",m&&v?"mx-4 ":m?"ms-4":v?"me-4":"",e))},[e,i,l,B,m,v]),a.useEffect(()=>{I(x(`self-stretch ${g==="page"?"text-[40px]":g==="section"?" text-[32px]":"text-2xl"} font-normal font-["Arial"] leading-[48px]`,s))},[s,g]),a.useEffect(()=>{R(x(`${g==="page"?"text-xl":"text-lg"} font-normal font-["Arial"] leading-[30px]`,r))},[r,g]),t.jsx("div",{className:x($,e),children:t.jsxs("div",{className:"grow shrink basis-0 justify-start items-center gap-4 flex flex-row",children:[n&&n,t.jsxs("div",{className:"flex-col justify-start items-start inline-flex w-full",children:[t.jsx("div",{className:V,children:c}),o&&t.jsx("div",{className:_,children:o})]}),d&&d,f&&t.jsx(Se,{variant:"transparent",className:`h-[48px] ${l&&"text-[#f0f0f0]"}
|
|
25
|
+
${g==="page"?"text-base":"text-sm"} }`,icon:t.jsx("img",{src:l?ks:Cs,alt:"right chevron"}),iconPosition:"right",onClick:b,children:y})]})})}),Ss="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",Ns="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",Ms="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",$s="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",Ie=[{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"}],Ds=a.forwardRef(({variant:e="default",subVariant:s="default",className:r,classNameSvg:n="size-1.5 fill-yellow-400",imagePath:d,imageAlt:i,classNameImage:o,children:l,...g},m)=>{const[v,f]=a.useState(),[b,y]=a.useState(),[c,w]=a.useState(Ns),C=()=>{f(x(v,"hidden"))};return a.useEffect(()=>{var V,I;const $=s==="custom"?"default":s,M=(V=Ie.find(_=>_.variant===e&&_.subVariant===$))==null?void 0:V.classes;if(e==="icon"){const _=(I=Ie.find(R=>R.variant===e&&R.subVariant===$))==null?void 0:I.classNameSvg;y(s==="custom"?x(_,n):_)}e==="hazard"?w(Ms):e==="go"&&w(Ss),f(x(M,r))},[s,r,e,n]),t.jsxs(t.Fragment,{children:[e==="default"&&t.jsx("div",{className:v,...g,ref:m,children:l}),(e==="warning"||e==="hazard"||e==="go")&&t.jsxs("div",{className:v,children:[t.jsx("div",{className:"size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative",children:t.jsx("div",{className:"left-0 top-0 absolute",children:t.jsx("img",{className:"size-6",src:c,alt:`${e} icon`})})}),t.jsx("div",{className:"grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]",children:l}),t.jsx("button",{onClick:C,className:"size-3 py-px justify-center items-center gap-2.5 flex","aria-label":"Close modal",children:t.jsx("img",{src:$s,alt:"close alert icon"})})]}),e==="icon"&&t.jsxs("div",{className:v,...g,ref:m,children:[t.jsx("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:b,role:"img",children:t.jsx("circle",{r:3,cx:3,cy:3})}),l]}),e==="media"&&t.jsxs("div",{className:v,...g,ref:m,children:[t.jsx("div",{className:"col-start-1 col-span-2",children:t.jsx("img",{className:x("h-full",o),src:d,alt:i})}),t.jsx("div",{className:"w-full ml-2 col-start-3 col-span-3",children:l})]})]})}),Ls="data:image/svg+xml,%3csvg%20width='41'%20height='40'%20viewBox='0%200%2041%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='IconGroup'%3e%3cmask%20id='mask0_4332_8062'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='41'%20height='40'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='40'%20height='40'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4332_8062)'%3e%3cpath%20id='Icon'%20d='M28.9808%2021.0021H9.04708C8.74514%2021.0021%208.49514%2020.9031%208.29708%2020.705C8.09903%2020.507%208%2020.257%208%2019.955C8%2019.6531%208.09903%2019.4031%208.29708%2019.205C8.49514%2019.0072%208.74514%2018.9083%209.04708%2018.9083H28.9808L22.8054%2012.7329C22.599%2012.5263%2022.4974%2012.2832%2022.5004%2012.0038C22.5038%2011.7243%2022.6111%2011.476%2022.8225%2011.2588C23.0328%2011.0485%2023.2782%2010.9419%2023.5587%2010.9392C23.8393%2010.9364%2024.0847%2011.0436%2024.295%2011.2608L32.0867%2019.0417C32.2239%2019.1864%2032.3236%2019.3321%2032.3858%2019.4788C32.4478%2019.6254%2032.4788%2019.7842%2032.4788%2019.955C32.4788%2020.1331%2032.4478%2020.2956%2032.3858%2020.4425C32.3236%2020.5892%2032.2239%2020.7313%2032.0867%2020.8688L24.3225%2028.6433C24.1161%2028.8497%2023.8717%2028.9542%2023.5892%2028.9567C23.3067%2028.9592%2023.0568%2028.8518%2022.8396%2028.6346C22.6282%2028.4174%2022.5211%2028.1688%2022.5183%2027.8888C22.5153%2027.609%2022.6224%2027.3606%2022.8396%2027.1433L28.9808%2021.0021Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ye="pb-4",_s=a.forwardRef(({className:e,appName:s,image:r,classNameImage:n="",clickOutsideCloses:d,classNameImageContainer:i="",menu:o=!1,classNameMenu:l="",classNameMenuItem:g="",classNameMenuContainer:m="",version:v,menuItems:f,right:b=!1,children:y,...c},w)=>{const C=a.useRef(null),[$,M]=a.useState(!1),[V,I]=a.useState(ye);return a.useEffect(()=>{I(x(b?ye+" text-right pe-2":ye,g))},[b,V,g]),a.useEffect(()=>{if(d){const _=R=>{C.current&&!C.current.contains(R.target)&&M(!1)};return document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}}},[M]),t.jsxs(t.Fragment,{children:[o&&t.jsx("button",{"data-testid":"hamburgerMenu",className:x("size-8 mb-4",m),onClick:()=>M(!$),children:t.jsx(Vs,{classes:x("fill-slate-500 hover:fill-black size-8",l)})}),t.jsxs("div",{ref:C,className:x("relative w-56 md:w-[328px] lg:w-[432px] h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto",o&&"fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300",o&&$&&"translate-x-0",e),children:[t.jsx("button",{className:x("-mt-8 w-full flex justify-end"),onClick:()=>M(!$),children:t.jsx("img",{className:x("fill-slate-500 hover:fill-black"),src:Ls,alt:"back arrow"})}),t.jsx("p",{className:"w-full flex justify-end pr-0.5 -mb-8",children:"Back"}),t.jsx("div",{className:x("w-16 h-16 mx-auto",i),children:t.jsx("img",{src:r,className:x("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1",n),alt:"application icon"})}),t.jsx("div",{className:"text-center text-xl mt-2",children:s}),t.jsx("div",{className:"[204px] mt-3 h-2 border-[0.5px] border-[#D9D9D9] bg-[#D9D9D9]"}),t.jsx(Ke,{className:"pl-4 lg:pl-6 mt-6",children:f.map((_,R)=>t.jsx(Ne,{className:V,children:_.target&&t.jsx(de.NavLink,{to:_.target,children:_.children})},R))}),t.jsxs("div",{className:"align-bottom mt-auto text-right right-2 bottom-1",children:["Version ",v]})]})]})}),Vs=({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"})]}),zs={default:" h-48 w-56 pt-2",custom:" h-48 w-56 pt-2"},Je=W.forwardRef(({className:e,variant:s="default",children:r,...n},d)=>t.jsx("div",{className:x("flex flex-row flex-wrap animate-pulse",zs[s],e),"aria-label":"Skeleton Component",role:"status",ref:d,...n,children:r}));Je.displayName="Card";const Es=({className:e="",inline:s=!1})=>s?t.jsx("div",{role:"presentation",className:x("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:x("rounded-full bg-slate-300 h-6 w-6 mx-2 my-1 me-0",e)}),t.jsx("div",{className:"basis-full h-0"})]}),Is=({className:e="",inline:s=!1})=>s?t.jsx("div",{role:"presentation",className:x("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:x("rounded-lg bg-slate-300 h-6 mx-2 my-1 grow",e)}),t.jsx("div",{className:"basis-full h-0"})]}),As=({className:e=""})=>t.jsx("div",{role:"presentation",className:x("rounded-lg bg-slate-300 grow h-24 my-1 mx-2",e)}),Ts=({className:e=""})=>t.jsx("div",{role:"presentation",className:"basis-full h-0"}),Xe=({className:e,children:s,skipTo:r})=>{let n=null;const d=i=>{i.preventDefault();const o=document.querySelector(r);o&&(o.tabIndex=-1,o.focus(),n=setTimeout(()=>o.removeAttribute("tabindex"),1e3))};return a.useEffect(()=>()=>{n&&clearTimeout(n)},[n]),a.cloneElement(s,{onClick:d,className:e})};Xe.defaultProps={className:"skip-link",skipTo:"main:first-of-type"};const Rs="_slider_87un4_28",Hs={slider:Rs},Os={default:{css:"w-full block mb-2",labelCss:"block mb-2"}},Qe=a.forwardRef(({className:e,classNameLabel:s,variant:r="default",startValue:n=50,changeHandler:d,id:i,label:o,...l},g)=>{const[m,v]=a.useState(n),f=a.useRef(null);a.useImperativeHandle(g,()=>f.current),a.useEffect(()=>{v(n)},[]);const b=y=>{const c=Number(y.target.value);v(Number(c)),d&&d(c)};return t.jsxs(t.Fragment,{children:[i&&o&&t.jsx("label",{htmlFor:i,className:x(Os[r].labelCss,s),children:o}),t.jsx("input",{ref:f,type:"range",id:i,className:x(Hs.slider,e),value:m,onChange:b,...l})]})});Qe.displayName="SDK Slider";const Bs="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",Ys="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",Fs="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",Ce=[{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]"}],Ps=a.forwardRef(({variant:e="available",className:s,image:r,classNameChild:n,classNameImage:d,children:i,...o},l)=>{const[g,m]=a.useState(),[v,f]=a.useState(),[b,y]=a.useState();return a.useEffect(()=>{var c,w,C;m(x((c=Ce.find($=>$.variant===e))==null?void 0:c.classes,s)),y(x((w=Ce.find($=>$.variant===e))==null?void 0:w.childClasses,n)),f(x((C=Ce.find($=>$.variant===e))==null?void 0:C.imgDivClasses,d))},[e,s,n,d]),t.jsxs("div",{className:g,ref:l,children:[t.jsx("div",{className:v,children:r||(e==="available"?t.jsx("img",{src:Ys,alt:"check mark"}):e==="inProgress"?t.jsx("img",{src:Bs,alt:"clock"}):t.jsx("img",{src:Fs,alt:"close"}))}),t.jsx("div",{className:b,children:i})]})}),Us="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",Zs="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",me=[{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"}],Gs=a.forwardRef(({defaultChecked:e=!1,disabled:s=!1,onCheckedChange:r,label:n,className:d,classNameButton:i,variant:o="default",type:l="button",children:g,...m},v)=>{var c,w,C,$;const[f,b]=a.useState(e),y=()=>{const M=!f;b(M),r&&r(M)};return t.jsx("button",{onClick:y,disabled:s,role:"switch","aria-checked":f,"aria-disabled":s,...m,ref:v,"aria-label":n||`Toggle ${f?"on":"off"}`,className:x(`${Us}
|
|
26
|
+
${f?(c=me.find(M=>M.variant===o))==null?void 0:c.toggledClasses:(w=me.find(M=>M.variant===o))==null?void 0:w.classes}`,d),children:t.jsx("div",{className:x(`${Zs}
|
|
27
|
+
${f?(C=me.find(M=>M.variant===o))==null?void 0:C.toggledButtonClasses:($=me.find(M=>M.variant===o))==null?void 0:$.buttonClasses}`,i)})})}),et=a.createContext(void 0),tt=a.forwardRef(({children:e,delay:s=0,className:r,id:n="tooltip-content",...d},i)=>{const[o,l]=a.useState(!1);let g;const m=a.useCallback(()=>{g=setTimeout(()=>l(!0),s)},[s]),v=a.useCallback(()=>{clearTimeout(g),l(!1)},[]),f=a.Children.toArray(e),b=f.find(c=>{if(a.isValidElement(c))return c.type.displayName!=="TooltipContent"}),y=f.find(c=>{if(a.isValidElement(c))return c.type.displayName==="TooltipContent"});return t.jsx(et.Provider,{value:{id:n},children:t.jsxs("div",{ref:i,className:x("relative inline-block",r),onMouseEnter:m,onMouseLeave:v,"aria-describedby":n,onFocus:m,onBlur:v,...d,children:[b,o&&y]})})});tt.displayName="Tooltip";const st=a.forwardRef(({children:e,className:s,position:r,...n},d)=>{const[i,o]=a.useState("mt-2"),l=a.useContext(et);if(!l)throw new Error("TooltipContent must be used within a tooltip");const{id:g}=l;return a.useEffect(()=>{r==="s"?o("left-1/2 -translate-x-1/2 top-full mt-2"):r==="n"?o("left-1/2 -translate-x-1/2 -top-1 -translate-y-full "):r==="nw"?o("left-0 -top-1 -translate-y-full"):r==="ne"?o("right-0 -top-1 -translate-y-full"):r==="se"?o("right-0 top-full mt-2"):r==="w"?o("-translate-x-full -left-2 -translate-y-1/2 top-1/2"):r==="e"?o("-right-2 translate-x-full -translate-y-1/2 top-1/2"):r==="c"&&o("left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2")},[r,s]),t.jsx("div",{ref:d,id:g,role:"tooltip",className:x("absolute z-10 px-4 py-2 origin-center bg-slate-800 text-slate-100 border border-slate-500 text-sm rounded shadow-md",i,s),...n,children:e})});st.displayName="TooltipContent";exports.Accordion=Ot;exports.AccordionParent=Bt;exports.AppointmentPicker=Gt;exports.Badge=Qt;exports.Breadcrumbs=os;exports.Button=Se;exports.ButtonGroup=Pe;exports.Card=Ue;exports.CharacterCounter=ds;exports.DatePicker=ps;exports.IconPosition=Ge;exports.Input=We;exports.List=Ke;exports.ListItem=Ne;exports.Modal=xs;exports.Pill=ws;exports.RadioGroup=ys;exports.Search=qe;exports.SectionHeader=js;exports.Select=Fe;exports.Shield=Ds;exports.SideBarNav=_s;exports.SkelCircle=Es;exports.SkelLine=Is;exports.SkelRow=Ts;exports.SkelSection=As;exports.Skeleton=Je;exports.SkipLink=Xe;exports.Slider=Qe;exports.Status=Ps;exports.Tabs=hs;exports.Toggle=Gs;exports.Tooltip=tt;exports.TooltipContent=st;
|