tharaday 0.7.2 → 0.7.3
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/.storybook/main.ts +1 -1
- package/.storybook/preview.ts +0 -2
- package/.storybook/vitest.setup.ts +2 -0
- package/dist/ds.css +1 -1
- package/dist/ds.js +873 -805
- package/dist/ds.umd.cjs +1 -1
- package/dist/src/components/Tree/Tree.d.ts +1 -1
- package/dist/src/components/Tree/Tree.stories.d.ts +1 -1
- package/dist/src/components/Tree/TreeItem.d.ts +1 -1
- package/dist/src/components/Tree/TreeItem.types.d.ts +6 -0
- package/package.json +8 -1
- package/src/components/Accordion/Accordion.test.tsx +82 -0
- package/src/components/Avatar/Avatar.test.tsx +36 -0
- package/src/components/Badge/Badge.test.tsx +15 -0
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +96 -0
- package/src/components/Checkbox/Checkbox.module.css +7 -7
- package/src/components/Checkbox/Checkbox.test.tsx +68 -0
- package/src/components/Dropdown/Dropdown.test.tsx +104 -0
- package/src/components/Input/Input.test.tsx +61 -0
- package/src/components/List/List.module.css +12 -12
- package/src/components/List/List.test.tsx +46 -0
- package/src/components/Modal/Modal.module.css +5 -5
- package/src/components/Modal/Modal.test.tsx +86 -0
- package/src/components/NavBar/NavBar.module.css +3 -3
- package/src/components/Notification/Notification.module.css +6 -6
- package/src/components/Notification/Notification.test.tsx +38 -0
- package/src/components/Pagination/Pagination.test.tsx +70 -0
- package/src/components/ProgressBar/ProgressBar.test.tsx +58 -0
- package/src/components/RadioButton/RadioButton.test.tsx +51 -0
- package/src/components/Select/Select.test.tsx +64 -0
- package/src/components/Slider/Slider.test.tsx +49 -0
- package/src/components/Stepper/Step.module.css +2 -2
- package/src/components/Stepper/Stepper.test.tsx +51 -0
- package/src/components/Switch/Switch.test.tsx +53 -0
- package/src/components/Table/Table.test.tsx +78 -0
- package/src/components/Tabs/Tabs.test.tsx +83 -0
- package/src/components/Textarea/Textarea.test.tsx +56 -0
- package/src/components/Tree/Tree.test.tsx +116 -0
- package/src/components/Tree/Tree.tsx +65 -1
- package/src/components/Tree/TreeItem.module.css +20 -26
- package/src/components/Tree/TreeItem.tsx +144 -79
- package/src/components/Tree/TreeItem.types.ts +6 -0
- package/src/styles/semantic.css +3 -0
- package/src/styles/tokens.css +15 -0
package/dist/ds.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react/jsx-runtime`),require(`react-dom`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.DesignSystem={},e.React,e.jsxRuntime,e.ReactDOM))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function i(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function a(){for(var e,t,n=0,r=``,a=arguments.length;n<a;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=` `),r+=t);return r}var o={root:`_root_1f38q_1`,default:`_default_1f38q_8`,bordered:`_bordered_1f38q_14`,item:`_item_1f38q_14`,separated:`_separated_1f38q_24`,ghost:`_ghost_1f38q_34`,header:`_header_1f38q_34`,sm:`_sm_1f38q_65`,md:`_md_1f38q_70`,lg:`_lg_1f38q_75`,icon:`_icon_1f38q_97`,iconExpanded:`_iconExpanded_1f38q_102`,contentWrapper:`_contentWrapper_1f38q_106`,contentExpanded:`_contentExpanded_1f38q_113`,content:`_content_1f38q_106`,contentBody:`_contentBody_1f38q_121`,contentBodyExpanded:`_contentBodyExpanded_1f38q_134`},s=({items:e,allowMultiple:r=!1,defaultExpanded:i=[],variant:s=`default`,size:c=`md`,className:l,id:u})=>{let d=(0,t.useId)(),f=u??`ds-accordion-${d}`,[p,m]=(0,t.useState)(i),h=e=>{m(t=>t.includes(e)?t.filter(t=>t!==e):r?[...t,e]:[e])};return(0,n.jsx)(`div`,{id:f,className:a(o.root,o[s],o[c],l),children:e.map(e=>{let t=p.includes(e.id);return(0,n.jsxs)(`div`,{className:o.item,children:[(0,n.jsxs)(`button`,{type:`button`,id:`${f}-header-${e.id}`,className:o.header,onClick:()=>h(e.id),disabled:e.isDisabled,"aria-expanded":t,"aria-controls":`${f}-content-${e.id}`,children:[(0,n.jsx)(`span`,{children:e.title}),(0,n.jsx)(`span`,{className:a(o.icon,t&&o.iconExpanded),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,children:(0,n.jsx)(`path`,{d:`M2.5 4.5L6 8L9.5 4.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),(0,n.jsx)(`div`,{id:`${f}-content-${e.id}`,role:`region`,"aria-labelledby":`${f}-header-${e.id}`,className:a(o.contentWrapper,t&&o.contentExpanded),children:(0,n.jsx)(`div`,{className:o.content,children:(0,n.jsx)(`div`,{className:a(o.contentBody,t&&o.contentBodyExpanded),children:e.content})})})]},e.id)})})},c={root:`_root_17k2j_1`,image:`_image_17k2j_14`,defaultIcon:`_defaultIcon_17k2j_20`,fallback:`_fallback_17k2j_24`,xs:`_xs_17k2j_34`,sm:`_sm_17k2j_39`,md:`_md_17k2j_44`,lg:`_lg_17k2j_49`,xl:`_xl_17k2j_54`},l=({src:e,alt:r,name:i,size:o=`md`,fallback:s,className:l,...u})=>{let[d,f]=(0,t.useState)(!1),p=r??i,m=e=>e.split(` `).map(e=>e[0]).slice(0,2).join(``),h=()=>e&&!d?(0,n.jsx)(`img`,{src:e,alt:p||``,className:c.image,onError:()=>f(!0)}):s?(0,n.jsx)(`span`,{className:c.fallback,children:s}):i?(0,n.jsx)(`span`,{className:c.fallback,children:m(i)}):(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:a(c.image,c.defaultIcon),"aria-hidden":`true`,focusable:`false`,children:(0,n.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})});return(0,n.jsx)(`div`,{className:a(c.root,c[o],l),...u,children:h()})},u={root:`_root_13wyx_1`,sm:`_sm_13wyx_12`,md:`_md_13wyx_18`,lg:`_lg_13wyx_24`,solid:`_solid_13wyx_31`,neutral:`_neutral_13wyx_31`,success:`_success_13wyx_35`,warning:`_warning_13wyx_39`,danger:`_danger_13wyx_43`,info:`_info_13wyx_47`,subtle:`_subtle_13wyx_53`,outline:`_outline_13wyx_75`},d=({variant:e=`solid`,size:t=`md`,intent:r=`neutral`,className:i,children:o,...s})=>(0,n.jsx)(`span`,{className:a(u.root,u[e],u[t],u[r],i),...s,children:o}),f=`_box_ynnco_1`,p=`_fullWidth_ynnco_5`,m=`_border_ynnco_683`,h=`_borderBottom_ynnco_686`,g={box:f,fullWidth:p,"display-block":`_display-block_ynnco_10`,"display-flex":`_display-flex_ynnco_13`,"display-inline-flex":`_display-inline-flex_ynnco_16`,"display-grid":`_display-grid_ynnco_19`,"display-inline-block":`_display-inline-block_ynnco_22`,"display-none":`_display-none_ynnco_25`,"flexDirection-row":`_flexDirection-row_ynnco_30`,"flexDirection-column":`_flexDirection-column_ynnco_33`,"flexDirection-row-reverse":`_flexDirection-row-reverse_ynnco_36`,"flexDirection-column-reverse":`_flexDirection-column-reverse_ynnco_39`,"alignItems-stretch":`_alignItems-stretch_ynnco_44`,"alignItems-flex-start":`_alignItems-flex-start_ynnco_47`,"alignItems-center":`_alignItems-center_ynnco_50`,"alignItems-flex-end":`_alignItems-flex-end_ynnco_53`,"alignItems-baseline":`_alignItems-baseline_ynnco_56`,"justifyContent-flex-start":`_justifyContent-flex-start_ynnco_61`,"justifyContent-center":`_justifyContent-center_ynnco_64`,"justifyContent-flex-end":`_justifyContent-flex-end_ynnco_67`,"justifyContent-space-between":`_justifyContent-space-between_ynnco_70`,"justifyContent-space-around":`_justifyContent-space-around_ynnco_73`,"justifyContent-space-evenly":`_justifyContent-space-evenly_ynnco_76`,"flexWrap-nowrap":`_flexWrap-nowrap_ynnco_81`,"flexWrap-wrap":`_flexWrap-wrap_ynnco_84`,"flexWrap-wrap-reverse":`_flexWrap-wrap-reverse_ynnco_87`,"textAlign-left":`_textAlign-left_ynnco_92`,"textAlign-center":`_textAlign-center_ynnco_95`,"textAlign-right":`_textAlign-right_ynnco_98`,"textAlign-justify":`_textAlign-justify_ynnco_101`,"p-0":`_p-0_ynnco_106`,"p-1":`_p-1_ynnco_109`,"p-2":`_p-2_ynnco_112`,"p-3":`_p-3_ynnco_115`,"p-4":`_p-4_ynnco_118`,"p-5":`_p-5_ynnco_121`,"p-6":`_p-6_ynnco_124`,"p-8":`_p-8_ynnco_127`,"p-10":`_p-10_ynnco_130`,"p-12":`_p-12_ynnco_133`,"p-14":`_p-14_ynnco_136`,"px-0":`_px-0_ynnco_140`,"px-1":`_px-1_ynnco_144`,"px-2":`_px-2_ynnco_148`,"px-3":`_px-3_ynnco_152`,"px-4":`_px-4_ynnco_156`,"px-5":`_px-5_ynnco_160`,"px-6":`_px-6_ynnco_164`,"px-8":`_px-8_ynnco_168`,"px-10":`_px-10_ynnco_172`,"px-12":`_px-12_ynnco_176`,"px-14":`_px-14_ynnco_180`,"py-0":`_py-0_ynnco_185`,"py-1":`_py-1_ynnco_189`,"py-2":`_py-2_ynnco_193`,"py-3":`_py-3_ynnco_197`,"py-4":`_py-4_ynnco_201`,"py-5":`_py-5_ynnco_205`,"py-6":`_py-6_ynnco_209`,"py-8":`_py-8_ynnco_213`,"py-10":`_py-10_ynnco_217`,"py-12":`_py-12_ynnco_221`,"py-14":`_py-14_ynnco_225`,"pt-0":`_pt-0_ynnco_230`,"pt-1":`_pt-1_ynnco_233`,"pt-2":`_pt-2_ynnco_236`,"pt-3":`_pt-3_ynnco_239`,"pt-4":`_pt-4_ynnco_242`,"pt-5":`_pt-5_ynnco_245`,"pt-6":`_pt-6_ynnco_248`,"pt-8":`_pt-8_ynnco_251`,"pt-10":`_pt-10_ynnco_254`,"pt-12":`_pt-12_ynnco_257`,"pt-14":`_pt-14_ynnco_260`,"pb-0":`_pb-0_ynnco_264`,"pb-1":`_pb-1_ynnco_267`,"pb-2":`_pb-2_ynnco_270`,"pb-3":`_pb-3_ynnco_273`,"pb-4":`_pb-4_ynnco_276`,"pb-5":`_pb-5_ynnco_279`,"pb-6":`_pb-6_ynnco_282`,"pb-8":`_pb-8_ynnco_285`,"pb-10":`_pb-10_ynnco_288`,"pb-12":`_pb-12_ynnco_291`,"pb-14":`_pb-14_ynnco_294`,"pl-0":`_pl-0_ynnco_298`,"pl-1":`_pl-1_ynnco_301`,"pl-2":`_pl-2_ynnco_304`,"pl-3":`_pl-3_ynnco_307`,"pl-4":`_pl-4_ynnco_310`,"pl-5":`_pl-5_ynnco_313`,"pl-6":`_pl-6_ynnco_316`,"pl-8":`_pl-8_ynnco_319`,"pl-10":`_pl-10_ynnco_322`,"pl-12":`_pl-12_ynnco_325`,"pl-14":`_pl-14_ynnco_328`,"pr-0":`_pr-0_ynnco_332`,"pr-1":`_pr-1_ynnco_335`,"pr-2":`_pr-2_ynnco_338`,"pr-3":`_pr-3_ynnco_341`,"pr-4":`_pr-4_ynnco_344`,"pr-5":`_pr-5_ynnco_347`,"pr-6":`_pr-6_ynnco_350`,"pr-8":`_pr-8_ynnco_353`,"pr-10":`_pr-10_ynnco_356`,"pr-12":`_pr-12_ynnco_359`,"pr-14":`_pr-14_ynnco_362`,"gap-0":`_gap-0_ynnco_367`,"gap-1":`_gap-1_ynnco_370`,"gap-2":`_gap-2_ynnco_373`,"gap-3":`_gap-3_ynnco_376`,"gap-4":`_gap-4_ynnco_379`,"gap-5":`_gap-5_ynnco_382`,"gap-6":`_gap-6_ynnco_385`,"gap-8":`_gap-8_ynnco_388`,"gap-10":`_gap-10_ynnco_391`,"gap-12":`_gap-12_ynnco_394`,"gap-14":`_gap-14_ynnco_397`,"m-0":`_m-0_ynnco_402`,"m-1":`_m-1_ynnco_405`,"m-2":`_m-2_ynnco_408`,"m-3":`_m-3_ynnco_411`,"m-4":`_m-4_ynnco_414`,"m-5":`_m-5_ynnco_417`,"m-6":`_m-6_ynnco_420`,"m-8":`_m-8_ynnco_423`,"m-10":`_m-10_ynnco_426`,"m-12":`_m-12_ynnco_429`,"m-14":`_m-14_ynnco_432`,"mx-0":`_mx-0_ynnco_436`,"mx-1":`_mx-1_ynnco_440`,"mx-2":`_mx-2_ynnco_444`,"mx-3":`_mx-3_ynnco_448`,"mx-4":`_mx-4_ynnco_452`,"mx-5":`_mx-5_ynnco_456`,"mx-6":`_mx-6_ynnco_460`,"mx-8":`_mx-8_ynnco_464`,"mx-10":`_mx-10_ynnco_468`,"mx-12":`_mx-12_ynnco_472`,"mx-14":`_mx-14_ynnco_476`,"my-0":`_my-0_ynnco_481`,"my-1":`_my-1_ynnco_485`,"my-2":`_my-2_ynnco_489`,"my-3":`_my-3_ynnco_493`,"my-4":`_my-4_ynnco_497`,"my-5":`_my-5_ynnco_501`,"my-6":`_my-6_ynnco_505`,"my-8":`_my-8_ynnco_509`,"my-10":`_my-10_ynnco_513`,"my-12":`_my-12_ynnco_517`,"my-14":`_my-14_ynnco_521`,"mt-0":`_mt-0_ynnco_526`,"mt-1":`_mt-1_ynnco_529`,"mt-2":`_mt-2_ynnco_532`,"mt-3":`_mt-3_ynnco_535`,"mt-4":`_mt-4_ynnco_538`,"mt-5":`_mt-5_ynnco_541`,"mt-6":`_mt-6_ynnco_544`,"mt-8":`_mt-8_ynnco_547`,"mt-10":`_mt-10_ynnco_550`,"mt-12":`_mt-12_ynnco_553`,"mt-14":`_mt-14_ynnco_556`,"mb-0":`_mb-0_ynnco_560`,"mb-1":`_mb-1_ynnco_563`,"mb-2":`_mb-2_ynnco_566`,"mb-3":`_mb-3_ynnco_569`,"mb-4":`_mb-4_ynnco_572`,"mb-5":`_mb-5_ynnco_575`,"mb-6":`_mb-6_ynnco_578`,"mb-8":`_mb-8_ynnco_581`,"mb-10":`_mb-10_ynnco_584`,"mb-12":`_mb-12_ynnco_587`,"mb-14":`_mb-14_ynnco_590`,"ml-0":`_ml-0_ynnco_594`,"ml-1":`_ml-1_ynnco_597`,"ml-2":`_ml-2_ynnco_600`,"ml-3":`_ml-3_ynnco_603`,"ml-4":`_ml-4_ynnco_606`,"ml-5":`_ml-5_ynnco_609`,"ml-6":`_ml-6_ynnco_612`,"ml-8":`_ml-8_ynnco_615`,"ml-10":`_ml-10_ynnco_618`,"ml-12":`_ml-12_ynnco_621`,"ml-14":`_ml-14_ynnco_624`,"mr-0":`_mr-0_ynnco_628`,"mr-1":`_mr-1_ynnco_631`,"mr-2":`_mr-2_ynnco_634`,"mr-3":`_mr-3_ynnco_637`,"mr-4":`_mr-4_ynnco_640`,"mr-5":`_mr-5_ynnco_643`,"mr-6":`_mr-6_ynnco_646`,"mr-8":`_mr-8_ynnco_649`,"mr-10":`_mr-10_ynnco_652`,"mr-12":`_mr-12_ynnco_655`,"mr-14":`_mr-14_ynnco_658`,"bg-main":`_bg-main_ynnco_663`,"bg-subtle":`_bg-subtle_ynnco_666`,"bg-info-subtle":`_bg-info-subtle_ynnco_669`,"bg-success-subtle":`_bg-success-subtle_ynnco_672`,"bg-warning-subtle":`_bg-warning-subtle_ynnco_675`,"bg-danger-subtle":`_bg-danger-subtle_ynnco_678`,border:m,borderBottom:h,"borderColor-main":`_borderColor-main_ynnco_691`,"borderColor-subtle":`_borderColor-subtle_ynnco_694`,"borderColor-danger":`_borderColor-danger_ynnco_697`,"backgroundColor-none":`_backgroundColor-none_ynnco_702`,"backgroundColor-subtle":`_backgroundColor-subtle_ynnco_705`,"backgroundColor-danger-subtle":`_backgroundColor-danger-subtle_ynnco_708`,"backgroundColor-success-subtle":`_backgroundColor-success-subtle_ynnco_711`,"backgroundColor-warning-subtle":`_backgroundColor-warning-subtle_ynnco_714`,"backgroundColor-info-subtle":`_backgroundColor-info-subtle_ynnco_717`,"borderRadius-none":`_borderRadius-none_ynnco_722`,"borderRadius-sm":`_borderRadius-sm_ynnco_725`,"borderRadius-md":`_borderRadius-md_ynnco_728`,"borderRadius-lg":`_borderRadius-lg_ynnco_731`,"borderRadius-full":`_borderRadius-full_ynnco_734`},_=(e,t,n,r,i,a,o,s)=>{let c={};return typeof t==`string`&&(c[e]=t),typeof i==`string`&&(c[`${e}Top`]=i),typeof a==`string`&&(c[`${e}Bottom`]=a),typeof o==`string`&&(c[`${e}Left`]=o),typeof s==`string`&&(c[`${e}Right`]=s),typeof n==`string`&&(c[`${e}Left`]=n,c[`${e}Right`]=n),typeof r==`string`&&(c[`${e}Top`]=r,c[`${e}Bottom`]=r),c},v=({children:e,as:t=`div`,display:r,padding:i,paddingX:o,paddingY:s,paddingTop:c,paddingBottom:l,paddingLeft:u,paddingRight:d,margin:f,marginX:p,marginY:m,marginTop:h,marginBottom:v,marginLeft:y,marginRight:b,gap:x,flexDirection:S,alignItems:C,justifyContent:w,flexWrap:T,flexGrow:E,flexShrink:D,flex:O,fullWidth:ee,textAlign:k,width:te,height:A,maxWidth:j,gridTemplateColumns:ne,backgroundColor:M,border:re,borderBottom:ie,borderColor:N,borderRadius:ae,className:oe,style:se,...ce})=>{let P={...se,flexGrow:E,flexShrink:D,flex:O,width:te,height:A,maxWidth:j,gridTemplateColumns:ne,gap:typeof x==`string`?x:void 0,..._(`padding`,i,o,s,c,l,u,d),..._(`margin`,f,p,m,h,v,y,b)};return(0,n.jsx)(t,{className:a(g.box,r&&g[`display-${r}`],k&&g[`textAlign-${k}`],typeof i==`number`&&g[`p-${i}`],typeof o==`number`&&g[`px-${o}`],typeof s==`number`&&g[`py-${s}`],typeof c==`number`&&g[`pt-${c}`],typeof l==`number`&&g[`pb-${l}`],typeof u==`number`&&g[`pl-${u}`],typeof d==`number`&&g[`pr-${d}`],typeof f==`number`&&g[`margin-${f}`],typeof p==`number`&&g[`marginX-${p}`],typeof m==`number`&&g[`marginY-${m}`],typeof h==`number`&&g[`marginTop-${h}`],typeof v==`number`&&g[`marginBottom-${v}`],typeof y==`number`&&g[`marginLeft-${y}`],typeof b==`number`&&g[`marginRight-${b}`],typeof x==`number`&&g[`gap-${x}`],S&&g[`flexDirection-${S}`],C&&g[`alignItems-${C}`],w&&g[`justifyContent-${w}`],T&&g[`flexWrap-${T}`],M&&g[`bg-${M}`],re&&g.border,ie&&g.borderBottom,N&&g[`borderColor-${N}`],ae&&g[`borderRadius-${ae}`],ee&&g.fullWidth,oe),style:P,...ce,children:e})},y={root:`_root_10ujs_1`,list:`_list_10ujs_6`,item:`_item_10ujs_16`,link:`_link_10ujs_21`,current:`_current_10ujs_27`,separator:`_separator_10ujs_38`},b=({href:e,isCurrent:t,children:r,className:i,...o})=>{let s=e&&!t?`a`:`span`;return(0,n.jsx)(`li`,{className:y.item,children:(0,n.jsx)(s,{href:e,className:a(y.link,t&&y.current,i),"aria-current":t?`page`:void 0,...o,children:r})})},x=({children:e,separator:r=`/`,className:i,...o})=>{let s=t.Children.toArray(e);return(0,n.jsx)(`nav`,{"aria-label":`Breadcrumbs`,className:a(y.root,i),...o,children:(0,n.jsx)(`ol`,{className:y.list,children:s.map((e,i)=>(0,n.jsxs)(t.Fragment,{children:[e,i<s.length-1&&(0,n.jsx)(`li`,{className:y.separator,"aria-hidden":`true`,children:r})]},i))})})},S={root:`_root_1vhu8_1`,xs:`_xs_1vhu8_31`,sm:`_sm_1vhu8_39`,md:`_md_1vhu8_46`,lg:`_lg_1vhu8_53`,xl:`_xl_1vhu8_60`,solid:`_solid_1vhu8_70`,success:`_success_1vhu8_82`,warning:`_warning_1vhu8_92`,danger:`_danger_1vhu8_102`,info:`_info_1vhu8_112`,outline:`_outline_1vhu8_123`,subtle:`_subtle_1vhu8_192`,fullWidth:`_fullWidth_1vhu8_245`,loading:`_loading_1vhu8_249`,spinner:`_spinner_1vhu8_253`,spin:`_spin_1vhu8_253`},C=({size:e=`md`,variant:t=`outline`,intent:r=`neutral`,fullWidth:i=!1,isLoading:o=!1,className:s,children:c,disabled:l,...u})=>(0,n.jsxs)(`button`,{type:`button`,className:a(S.root,S[e],S[t],S[r],i&&S.fullWidth,o&&S.loading,s),disabled:l||o,"aria-busy":o||void 0,...u,children:[o&&(0,n.jsx)(`svg`,{className:S.spinner,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,stroke:`currentColor`,strokeWidth:`2`,strokeDasharray:`28`,strokeDashoffset:`10`})}),c]}),w=`_root_1k781_1`,T=`_bordered_1k781_9`,E=`_shadowNone_1k781_14`,D=`_shadowSm_1k781_17`,O=`_shadowMd_1k781_20`,ee=`_pNone_1k781_65`,k=`_pSm_1k781_68`,te=`_pMd_1k781_71`,A=`_pLg_1k781_74`,j=`_header_1k781_79`,ne=`_title_1k781_85`,M=`_subtitle_1k781_93`,re=`_content_1k781_100`,ie=`_footer_1k781_104`,N={root:w,bordered:T,shadowNone:E,shadowSm:D,shadowMd:O,"borderColor-main":`_borderColor-main_1k781_25`,"borderColor-subtle":`_borderColor-subtle_1k781_28`,"borderColor-danger":`_borderColor-danger_1k781_31`,"borderColor-success":`_borderColor-success_1k781_34`,"borderColor-info":`_borderColor-info_1k781_37`,"borderColor-warning":`_borderColor-warning_1k781_40`,"backgroundColor-none":`_backgroundColor-none_1k781_45`,"backgroundColor-subtle":`_backgroundColor-subtle_1k781_48`,"backgroundColor-danger-subtle":`_backgroundColor-danger-subtle_1k781_51`,"backgroundColor-success-subtle":`_backgroundColor-success-subtle_1k781_54`,"backgroundColor-warning-subtle":`_backgroundColor-warning-subtle_1k781_57`,"backgroundColor-info-subtle":`_backgroundColor-info-subtle_1k781_60`,pNone:ee,pSm:k,pMd:te,pLg:A,header:j,title:ne,subtitle:M,content:re,footer:ie},ae=({padding:e=`md`,shadow:t=`sm`,bordered:r=!0,borderColor:i,backgroundColor:o,className:s,children:c,...l})=>{let u={none:N.pNone,sm:N.pSm,md:N.pMd,lg:N.pLg}[e],d={none:N.shadowNone,sm:N.shadowSm,md:N.shadowMd}[t];return(0,n.jsx)(`div`,{className:a(N.root,u,d,r&&N.bordered,i&&N[`borderColor-${i}`],o&&N[`backgroundColor-${o}`],s),...l,children:c})},oe=({title:e,subtitle:t,className:r,children:i,...o})=>(0,n.jsxs)(`div`,{className:a(N.header,r),...o,children:[e&&(0,n.jsx)(`h3`,{className:N.title,children:e}),t&&(0,n.jsx)(`p`,{className:N.subtitle,children:t}),i]}),se=({className:e,children:t,...r})=>(0,n.jsx)(`div`,{className:a(N.content,e),...r,children:t}),ce=({className:e,children:t,...r})=>(0,n.jsx)(`div`,{className:a(N.footer,e),...r,children:t}),P={wrapper:`_wrapper_1mupt_1`,container:`_container_1mupt_7`,disabled:`_disabled_1mupt_15`,input:`_input_1mupt_20`,control:`_control_1mupt_28`,checkmark:`_checkmark_1mupt_57`,label:`_label_1mupt_68`,error:`_error_1mupt_75`,helperText:`_helperText_1mupt_79`,errorText:`_errorText_1mupt_86`},le=({label:e,error:r,helperText:i,className:o,disabled:s,id:c,...l})=>{let u=(0,t.useId)(),d=c??`ds-checkbox-${u}`,f=i?`${d}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(P.wrapper,o),children:[(0,n.jsxs)(`label`,{htmlFor:d,className:a(P.container,s&&P.disabled,r&&P.error),children:[(0,n.jsx)(`input`,{type:`checkbox`,id:d,disabled:s,className:P.input,"aria-describedby":f,"aria-invalid":r||void 0,...l}),(0,n.jsx)(`span`,{className:P.control,children:(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`,strokeLinejoin:`round`,className:P.checkmark,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),e&&(0,n.jsx)(`span`,{className:P.label,children:e})]}),i&&(0,n.jsx)(`span`,{id:f,className:a(P.helperText,r&&P.errorText),children:i})]})},F={wrapper:`_wrapper_qhe61_1`,fullWidth:`_fullWidth_qhe61_9`,label:`_label_qhe61_13`,container:`_container_qhe61_19`,trigger:`_trigger_qhe61_23`,error:`_error_qhe61_54`,sm:`_sm_qhe61_58`,lg:`_lg_qhe61_63`,icon:`_icon_qhe61_68`,isOpen:`_isOpen_qhe61_74`,menu:`_menu_qhe61_78`,option:`_option_qhe61_95`,optionFocused:`_optionFocused_qhe61_104`,optionSelected:`_optionSelected_qhe61_108`,optionDisabled:`_optionDisabled_qhe61_118`,optionLabel:`_optionLabel_qhe61_124`,optionDescription:`_optionDescription_qhe61_128`,helperText:`_helperText_qhe61_133`,errorText:`_errorText_qhe61_138`},ue=({options:e,value:r,defaultValue:i,onChange:o,placeholder:s=`Select an option`,label:c,helperText:l,error:u,disabled:d,size:f=`md`,className:p,id:m,fullWidth:h=!1})=>{let g=(0,t.useId)(),_=m??`ds-dropdown-${g}`,v=l?`${_}-help`:void 0,[y,b]=(0,t.useState)(!1),[x,S]=(0,t.useState)(i),[C,w]=(0,t.useState)(-1),T=(0,t.useRef)(null),E=(0,t.useRef)(null),D=r===void 0?x:r,O=e.find(e=>e.value===D),ee=C>=0?`${_}-opt-${C}`:void 0,k=()=>{if(!d){let t=!y;if(b(t),t){if(C===-1){let t=e.findIndex(e=>e.value===D);w(t>=0?t:0)}}else w(-1)}},te=(e,t)=>{e.disabled||(r===void 0&&S(e.value),o?.(e.value),b(!1),w(t),E.current?.focus())};return(0,t.useEffect)(()=>{y&&C>=0&&document.getElementById(`${_}-opt-${C}`)?.scrollIntoView({block:`nearest`})},[C,y,_]),(0,t.useEffect)(()=>{let e=e=>{T.current&&!T.current.contains(e.target)&&(b(!1),w(-1))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,n.jsxs)(`div`,{className:a(F.wrapper,F[f],h&&F.fullWidth,u&&F.error,p),ref:T,children:[c&&(0,n.jsx)(`label`,{htmlFor:_,className:F.label,children:c}),(0,n.jsxs)(`div`,{className:F.container,children:[(0,n.jsxs)(`button`,{id:_,ref:E,type:`button`,className:a(F.trigger,y&&F.isOpen),onClick:k,onKeyDown:t=>{if(!d)switch(t.key){case`ArrowDown`:t.preventDefault(),y?w(t=>t<e.length-1?t+1:t):(b(!0),w(e.findIndex(e=>e.value===D)||0));break;case`ArrowUp`:t.preventDefault(),y?w(e=>e>0?e-1:e):(b(!0),w(e.findIndex(e=>e.value===D)||e.length-1));break;case`Enter`:case` `:t.preventDefault(),y?C>=0&&te(e[C],C):(b(!0),w(e.findIndex(e=>e.value===D)||0));break;case`Escape`:y&&(t.preventDefault(),b(!1),w(-1),E.current?.focus());break;case`Tab`:y&&(b(!1),w(-1));break;case`Home`:y&&(t.preventDefault(),w(0));break;case`End`:y&&(t.preventDefault(),w(e.length-1));break;default:break}},disabled:d,"aria-haspopup":`listbox`,"aria-expanded":y,"aria-describedby":v,"aria-invalid":u||void 0,"aria-controls":y?`${_}-menu`:void 0,"aria-activedescendant":y?ee:void 0,children:[(0,n.jsx)(`span`,{className:F.selectedLabel,children:O?O.label:s}),(0,n.jsx)(`span`,{className:F.icon,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M2.5 4.5L6 8L9.5 4.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),y&&(0,n.jsx)(`ul`,{id:`${_}-menu`,className:F.menu,role:`listbox`,"aria-labelledby":c?void 0:_,children:e.map((e,t)=>{let r=e.value===D,i=t===C;return(0,n.jsxs)(`li`,{id:`${_}-opt-${t}`,role:`option`,"aria-selected":r,className:a(F.option,r&&F.optionSelected,i&&F.optionFocused,e.disabled&&F.optionDisabled),onClick:()=>te(e,t),onMouseEnter:()=>!e.disabled&&w(t),children:[(0,n.jsx)(`span`,{className:F.optionLabel,children:e.label}),e.description&&(0,n.jsx)(`span`,{className:F.optionDescription,children:e.description})]},e.value)})})]}),l&&(0,n.jsx)(`span`,{id:v,className:a(F.helperText,u&&F.errorText),children:l})]})},de={root:`_root_1one2_1`,horizontal:`_horizontal_1one2_13`,vertical:`_vertical_1one2_21`},fe=e=>typeof e==`number`?`${e}px`:e,pe=({orientation:e=`horizontal`,thickness:t,length:r,spacing:i,inset:o,className:s,style:c,...l})=>{let u={...c,"--divider-thickness":fe(t),"--divider-length":fe(r),"--divider-spacing":fe(i),"--divider-inset":fe(o)};return e===`vertical`?(0,n.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:a(de.root,de.vertical,s),style:u,...l}):(0,n.jsx)(`hr`,{className:a(de.root,de.horizontal,s),style:u,...l})},I={root:`_root_1ujj3_1`,container:`_container_1ujj3_8`,sideContainer:`_sideContainer_1ujj3_18`,leftSide:`_leftSide_1ujj3_24`,rightSide:`_rightSide_1ujj3_28`,actions:`_actions_1ujj3_32`,title:`_title_1ujj3_44`,welcome:`_welcome_1ujj3_52`},me=({id:e,logo:t,title:r,user:i,onLogin:o,onLogout:s,onCreateAccount:c,className:l,maxWidth:u})=>{let d={size:`sm`,intent:`info`};return(0,n.jsx)(`header`,{id:e,className:a(I.root,l),children:(0,n.jsxs)(`div`,{className:I.container,style:{maxWidth:u},children:[(0,n.jsxs)(`div`,{className:a(I.sideContainer,I.leftSide),children:[t,r?(0,n.jsx)(`h1`,{className:I.title,children:r}):null]}),(0,n.jsx)(`div`,{className:a(I.sideContainer,I.rightSide),children:i?(0,n.jsxs)(`div`,{className:I.actions,children:[(0,n.jsxs)(`span`,{className:I.welcome,children:[`Welcome, `,(0,n.jsx)(`strong`,{children:i.name}),`!`]}),(0,n.jsx)(C,{...d,onClick:s,children:`Log out`})]}):(0,n.jsxs)(`div`,{className:I.actions,children:[o?(0,n.jsx)(C,{...d,onClick:o,children:`Log in`}):null,c?(0,n.jsx)(C,{size:`sm`,intent:`info`,variant:`solid`,onClick:c,children:`Sign up`}):null]})})]})})},L={root:`_root_140uy_1`,container:`_container_140uy_7`,leftSection:`_leftSection_140uy_16`,nav:`_nav_140uy_22`,navList:`_navList_140uy_28`,navItem:`_navItem_140uy_36`,navLink:`_navLink_140uy_41`,disabled:`_disabled_140uy_59`,active:`_active_140uy_63`,rightSection:`_rightSection_140uy_73`},he=({id:e,items:t,activeId:r,logo:i,actions:o,onItemClick:s,className:c,maxWidth:l})=>(0,n.jsx)(`nav`,{id:e,className:a(L.root,c),children:(0,n.jsxs)(`div`,{className:L.container,style:{maxWidth:l},children:[i&&(0,n.jsx)(`div`,{className:L.leftSection,children:i}),(0,n.jsx)(`div`,{className:L.nav,children:(0,n.jsx)(`ul`,{className:L.navList,children:t.map(e=>(0,n.jsx)(`li`,{className:L.navItem,children:(0,n.jsx)(`button`,{type:`button`,className:a(L.navLink,r===e.id&&L.active,e.disabled&&L.disabled),onClick:()=>!e.disabled&&s?.(e.id),disabled:e.disabled,"aria-current":r===e.id?`page`:void 0,children:e.label})},e.id))})}),o&&(0,n.jsx)(`div`,{className:L.rightSection,children:o})]})}),R={wrapper:`_wrapper_15ibj_1`,fullWidth:`_fullWidth_15ibj_8`,label:`_label_15ibj_13`,inputRoot:`_inputRoot_15ibj_20`,sm:`_sm_15ibj_56`,md:`_md_15ibj_62`,lg:`_lg_15ibj_72`,error:`_error_15ibj_79`,helperText:`_helperText_15ibj_88`,errorText:`_errorText_15ibj_94`},ge=({size:e=`md`,error:r,label:i,helperText:o,fullWidth:s=!1,className:c,id:l,...u})=>{let d=(0,t.useId)(),f=l??`ds-input-${d}`,p=o?`${f}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(R.wrapper,s&&R.fullWidth,c),children:[i&&(0,n.jsx)(`label`,{htmlFor:f,className:R.label,children:i}),(0,n.jsx)(`input`,{id:f,className:a(R.inputRoot,R[e],r&&R.error),"aria-describedby":p,"aria-invalid":r||void 0,...u}),o&&(0,n.jsx)(`span`,{id:p,className:a(R.helperText,r&&R.errorText),children:o})]})},_e={loader:`_loader_wvz8q_1`,spin:`_spin_wvz8q_1`,neutral:`_neutral_wvz8q_10`,info:`_info_wvz8q_13`,success:`_success_wvz8q_16`,warning:`_warning_wvz8q_19`,danger:`_danger_wvz8q_22`,sm:`_sm_wvz8q_27`,md:`_md_wvz8q_33`,lg:`_lg_wvz8q_39`},ve=({id:e,size:t=`md`,intent:r=`neutral`,className:i})=>(0,n.jsx)(`div`,{id:e,className:a(_e.loader,_e[t],_e[r],i),role:`status`,"aria-label":`Loading`}),ye=`_root_iia7b_1`,be=`_unordered_iia7b_6`,xe=`_ordered_iia7b_11`,Se=`_none_iia7b_16`,Ce=`_flex_iia7b_57`,z={root:ye,unordered:be,ordered:xe,none:Se,"gap-0":`_gap-0_iia7b_21`,"gap-1":`_gap-1_iia7b_24`,"gap-2":`_gap-2_iia7b_27`,"gap-3":`_gap-3_iia7b_30`,"gap-4":`_gap-4_iia7b_33`,"gap-5":`_gap-5_iia7b_36`,"gap-6":`_gap-6_iia7b_39`,"gap-8":`_gap-8_iia7b_42`,"gap-10":`_gap-10_iia7b_45`,"gap-12":`_gap-12_iia7b_48`,"gap-14":`_gap-14_iia7b_51`,flex:Ce},we={item:`_item_1x04p_1`,iconWrapper:`_iconWrapper_1x04p_6`},Te=({children:e,icon:t,className:r,...i})=>(0,n.jsxs)(`li`,{className:a(we.item,r),...i,children:[t&&(0,n.jsx)(`span`,{className:we.iconWrapper,children:t}),(0,n.jsx)(`div`,{className:we.content,children:e})]}),Ee=({children:e,variant:t=`unordered`,spacing:r=0,className:i,margin:o,marginX:s,marginY:c,marginTop:l,marginBottom:u,marginLeft:d,marginRight:f,padding:p,paddingX:m,paddingY:h,paddingTop:g,paddingBottom:v,paddingLeft:y,paddingRight:b,style:x,...S})=>{let C=t===`ordered`?`ol`:`ul`,w={...x,..._(`padding`,p,m,h,g,v,y,b),..._(`margin`,o,s,c,l,u,d,f),"--list-spacing":typeof r==`number`?`${r*.25}rem`:r};return(0,n.jsx)(C,{className:a(z.root,z[t],typeof r==`number`&&z[`gap-${r}`],(t===`none`||typeof r==`number`&&r>0||typeof r==`string`)&&z.flex,typeof p==`number`&&z[`p-${p}`],typeof m==`number`&&z[`px-${m}`],typeof h==`number`&&z[`py-${h}`],typeof g==`number`&&z[`pt-${g}`],typeof v==`number`&&z[`pb-${v}`],typeof y==`number`&&z[`pl-${y}`],typeof b==`number`&&z[`pr-${b}`],typeof o==`number`&&z[`margin-${o}`],typeof s==`number`&&z[`marginX-${s}`],typeof c==`number`&&z[`marginY-${c}`],typeof l==`number`&&z[`marginTop-${l}`],typeof u==`number`&&z[`marginBottom-${u}`],typeof d==`number`&&z[`marginLeft-${d}`],typeof f==`number`&&z[`marginRight-${f}`],i),style:w,...S,children:e})};Ee.Item=Te;var B={overlay:`_overlay_dxcrq_1`,modal:`_modal_dxcrq_15`,header:`_header_dxcrq_27`,title:`_title_dxcrq_35`,closeButton:`_closeButton_dxcrq_43`,content:`_content_dxcrq_55`,footer:`_footer_dxcrq_61`,sm:`_sm_dxcrq_72`,md:`_md_dxcrq_75`,lg:`_lg_dxcrq_78`,xl:`_xl_dxcrq_81`,full:`_full_dxcrq_84`,loading:`_loading_dxcrq_89`},De=({isOpen:e,onClose:i,title:o,children:s,footer:c,size:l=`md`,isLoading:u=!1,className:d,id:f})=>{let p=(0,t.useRef)(null),m=(0,t.useRef)(null),h=(0,t.useRef)(i),g=(0,t.useId)(),_=f??`ds-modal-${g}`,v=`${_}-title`;return(0,t.useEffect)(()=>{h.current=i},[i]),(0,t.useEffect)(()=>{let t=e=>{if(e.key===`Escape`&&!u){h.current();return}if(e.key===`Tab`&&p.current){let t=p.current.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`),n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(r.focus(),e.preventDefault()):document.activeElement===r&&(n.focus(),e.preventDefault())}};return e&&(m.current=document.activeElement,document.body.style.overflow=`hidden`,window.addEventListener(`keydown`,t),requestAnimationFrame(()=>{let e=p.current?.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);e&&e.length>0&&e[0].focus()})),()=>{document.body.style.overflow=`unset`,window.removeEventListener(`keydown`,t),m.current?.focus()}},[e,u]),e?(0,r.createPortal)((0,n.jsx)(`div`,{className:B.overlay,onClick:()=>!u&&i(),children:(0,n.jsxs)(`div`,{id:_,className:a(B.modal,B[l],u&&B.loading,d),onClick:e=>e.stopPropagation(),role:`dialog`,"aria-modal":`true`,"aria-labelledby":o?v:void 0,ref:p,children:[(0,n.jsxs)(`div`,{className:B.header,children:[o&&(0,n.jsx)(`h2`,{id:v,className:B.title,children:o}),(0,n.jsx)(C,{variant:`subtle`,size:`sm`,onClick:i,className:B.closeButton,"aria-label":`Close modal`,disabled:u,children:(0,n.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 10 10`,fill:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M1 1L9 9M9 1L1 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})})})]}),(0,n.jsx)(`div`,{className:B.content,children:s}),c&&(0,n.jsx)(`div`,{className:B.footer,children:c})]})}),document.body):null},Oe={root:`_root_1x0nr_1`,content:`_content_1x0nr_13`,title:`_title_1x0nr_17`,message:`_message_1x0nr_23`,closeButton:`_closeButton_1x0nr_28`,neutral:`_neutral_1x0nr_44`,info:`_info_1x0nr_50`,success:`_success_1x0nr_56`,warning:`_warning_1x0nr_62`,danger:`_danger_1x0nr_68`},ke=({intent:e=`neutral`,title:t,children:r,onClose:i,className:o,...s})=>(0,n.jsxs)(`div`,{className:a(Oe.root,Oe[e],o),role:`alert`,...s,children:[(0,n.jsxs)(`div`,{className:Oe.content,children:[t&&(0,n.jsx)(`div`,{className:Oe.title,children:t}),(0,n.jsx)(`div`,{className:Oe.message,children:r})]}),i&&(0,n.jsx)(C,{variant:`subtle`,size:`xs`,onClick:i,className:Oe.closeButton,"aria-label":`Close notification`,children:(0,n.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 10 10`,fill:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M1 1L9 9M9 1L1 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})})})]}),V={root:`_root_o4mj7_1`,list:`_list_o4mj7_6`,item:`_item_o4mj7_15`,ellipsis:`_ellipsis_o4mj7_19`,pageButton:`_pageButton_o4mj7_29`},Ae=(e,t,n)=>Math.min(Math.max(e,t),n),je=(e,t)=>{let n=[];for(let r=e;r<=t;r+=1)n.push(r);return n},Me=(e,t,n,r,i)=>{if(e<=0)return[];if(!i||e<=n*2+1+r*2+2)return je(1,e);let a=je(1,Math.min(r,e)),o=je(Math.max(e-r+1,r+1),e),s=Math.max(t-n,r+2),c=Math.min(t+n,e-r-1),l=s>r+2,u=c<e-r-1,d=[...a],f=l?s:r+1,p=u?c:e-r;return l&&d.push(`ellipsis`),f<=p&&d.push(...je(f,p)),u&&d.push(`ellipsis`),d.push(...o),d},Ne=({id:e,count:r,page:i,defaultPage:o=1,onPageChange:s,onFirstClick:c,onLastClick:l,onNextClick:u,onPrevClick:d,siblingCount:f=1,boundaryCount:p=1,showFirstLast:m=!0,showPrevNext:h=!0,showEllipsis:g=!0,disabled:_=!1,size:v=`sm`,variant:y=`outline`,intent:b=`neutral`,activeVariant:x=`solid`,activeIntent:S,labels:w,ariaLabel:T=`Pagination`,getPageLabel:E,className:D})=>{let O=(0,t.useId)(),ee=e??`ds-pagination-${O}`,[k,te]=(0,t.useState)(o),A=Math.max(0,r),j=Ae(i??k,1,Math.max(1,A)),ne=(0,t.useMemo)(()=>Me(A,j,f,p,g),[A,j,f,p,g]),M=e=>{_||e===j||(i===void 0&&te(e),s?.(e))},re=()=>{M(1),c?.(1)},ie=()=>{let e=A;M(e),l?.(e)},N=()=>{let e=Math.max(1,j-1);M(e),d?.(e)},ae=()=>{let e=Math.min(A,j+1);M(e),u?.(e)};return A<=0?null:(0,n.jsx)(`nav`,{id:ee,"aria-label":T,className:a(V.root,D),children:(0,n.jsxs)(`ul`,{className:V.list,children:[m&&(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:y,intent:b,className:V.pageButton,onClick:re,disabled:_||j===1,"aria-label":`Go to first page`,children:w?.first??`First`})}),h&&(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:y,intent:b,className:V.pageButton,onClick:N,disabled:_||j===1,"aria-label":`Go to previous page`,children:w?.prev??`Prev`})}),ne.map((e,t)=>{if(e===`ellipsis`)return(0,n.jsx)(`li`,{className:V.item,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:V.ellipsis,children:`…`})},`ellipsis-${t}`);let r=e===j,i=E?.(e,r)??`Page ${e}${r?`, current page`:``}`;return(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:r?x:y,intent:r?S??b:b,className:V.pageButton,onClick:()=>M(e),disabled:_,"aria-current":r?`page`:void 0,"aria-label":i,children:e})},e)}),h&&(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:y,intent:b,className:V.pageButton,onClick:ae,disabled:_||j===A,"aria-label":`Go to next page`,children:w?.next??`Next`})}),m&&(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:y,intent:b,className:V.pageButton,onClick:ie,disabled:_||j===A,"aria-label":`Go to last page`,children:w?.last??`Last`})})]})})},H={wrapper:`_wrapper_16yvn_1`,labelWrapper:`_labelWrapper_16yvn_8`,label:`_label_16yvn_8`,percentage:`_percentage_16yvn_21`,progressRoot:`_progressRoot_16yvn_27`,indicator:`_indicator_16yvn_34`,sm:`_sm_16yvn_40`,md:`_md_16yvn_44`,lg:`_lg_16yvn_48`,info:`_info_16yvn_53`,success:`_success_16yvn_57`,warning:`_warning_16yvn_61`,danger:`_danger_16yvn_65`},Pe=({value:e,max:r=100,size:i=`md`,intent:o=`info`,showLabel:s=!1,label:c,className:l,id:u})=>{let d=(0,t.useId)(),f=u??`ds-progressbar-${d}`,p=r>0?r:0,m=Math.min(Math.max(0,e),p),h=p>0?Math.min(Math.max(0,m/p*100),100):0,g=c?`${f}-label`:void 0;return(0,n.jsxs)(`div`,{id:f,className:a(H.wrapper,H[i],H[o],l),children:[(c||s)&&(0,n.jsxs)(`div`,{className:H.labelWrapper,children:[c&&(0,n.jsx)(`span`,{id:g,className:H.label,children:c}),s&&(0,n.jsxs)(`span`,{className:H.percentage,children:[Math.round(h),`%`]})]}),(0,n.jsx)(`div`,{className:H.progressRoot,role:`progressbar`,"aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":r,"aria-labelledby":g,"aria-label":c?void 0:`Progress`,children:(0,n.jsx)(`div`,{className:H.indicator,style:{width:`${h}%`}})})]})},U={wrapper:`_wrapper_92sko_1`,fullWidth:`_fullWidth_92sko_8`,header:`_header_92sko_13`,label:`_label_92sko_20`,value:`_value_92sko_27`,sliderRoot:`_sliderRoot_92sko_33`,track:`_track_92sko_46`,activeTrack:`_activeTrack_92sko_57`,inputRoot:`_inputRoot_92sko_66`,disabled:`_disabled_92sko_80`,inputStart:`_inputStart_92sko_150`,inputEnd:`_inputEnd_92sko_154`,sm:`_sm_92sko_158`,md:`_md_92sko_163`,lg:`_lg_92sko_168`,helperText:`_helperText_92sko_173`,inputsRow:`_inputsRow_92sko_179`,singleInputRow:`_singleInputRow_92sko_187`,separator:`_separator_92sko_191`},W=(e,t)=>{if(e==null)return t;let n=typeof e==`number`?e:Number(e);return Number.isNaN(n)?t:n},Fe=(e,t,n)=>Math.min(Math.max(e,t),n),Ie=(e,t,n,r)=>Fe(r==null||r===`any`||r<=0?e:t+Math.round((e-t)/r)*r,t,n),Le=(e,t,n)=>{if(Array.isArray(e)){let r=Fe(W(e[0],t),t,n),i=Fe(W(e[1],n),t,n);return r<=i?[r,i]:[i,r]}let r=Fe(W(e,t),t,n);return[r,r]},Re=({size:e=`md`,label:r,helperText:i,fullWidth:o=!1,showValue:s=!1,showInputs:c=!1,className:l,id:u,value:d,defaultValue:f,onValueChange:p,...m})=>{let h=(0,t.useId)(),g=u??`ds-slider-${h}`,_=i?`${g}-help`:void 0,v=W(m.min,0),y=W(m.max,100),b=m.step===`any`?`any`:W(m.step,1),x=Array.isArray(d)||Array.isArray(f),[S,C]=(0,t.useState)((0,t.useMemo)(()=>Le(f??d,v,y),[f,y,v,d])),[w,T]=d==null?S:Le(d,v,y),E=x?`${w} - ${T}`:String(w),D=Math.max(y-v,1),O=(w-v)/D*100,ee=(T-v)/D*100,k=e=>{d??C(e),p?.(x?e:e[0])},te=e=>{if(!e.trim())return;let t=Number(e);Number.isNaN(t)||k([Ie(t,v,x?T:y,b),T])},A=e=>{if(!e.trim())return;let t=Number(e);Number.isNaN(t)||k([w,Ie(t,w,y,b)])};return(0,n.jsxs)(`div`,{className:a(U.wrapper,o&&U.fullWidth,l),children:[(r||s)&&(0,n.jsxs)(`div`,{className:U.header,children:[r&&(0,n.jsx)(`label`,{htmlFor:g,className:U.label,children:r}),s&&(0,n.jsx)(`span`,{className:U.value,children:E})]}),(0,n.jsxs)(`div`,{className:a(U.sliderRoot,U[e],m.disabled&&U.disabled),children:[(0,n.jsx)(`div`,{className:U.track}),(0,n.jsx)(`div`,{className:U.activeTrack,style:{left:`${x?O:0}%`,width:`${x?ee-O:O}%`}}),(0,n.jsx)(`input`,{id:g,type:`range`,className:a(U.inputRoot,x&&U.inputStart),"aria-describedby":_,"aria-label":r?void 0:x?`Slider minimum`:`Slider`,"aria-valuetext":s?E:void 0,...m,min:v,max:y,step:b,value:w,onChange:e=>{k([Ie(W(e.target.value,v),v,T,b),T])}}),x&&(0,n.jsx)(`input`,{id:`${g}-end`,type:`range`,className:a(U.inputRoot,U.inputEnd),"aria-describedby":_,"aria-label":r?`${r} maximum`:`Slider maximum`,...m,min:v,max:y,step:b,value:T,onChange:e=>{k([w,Ie(W(e.target.value,y),w,y,b)])}})]}),c&&(0,n.jsxs)(`div`,{className:a(U.inputsRow,!x&&U.singleInputRow),children:[(0,n.jsx)(ge,{type:`number`,inputMode:`decimal`,size:e,defaultValue:w,min:v,max:x?T:y,step:b,"aria-label":r?`${r} minimum input`:x?`Slider minimum input`:`Slider input`,fullWidth:!0,onBlur:e=>{te(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&te(e.currentTarget.value)}},`slider-start-${w}-${T}`),x&&(0,n.jsx)(`span`,{className:U.separator,children:`-`}),x&&(0,n.jsx)(ge,{type:`number`,inputMode:`decimal`,size:e,defaultValue:T,min:w,max:y,step:b,"aria-label":r?`${r} maximum input`:`Slider maximum input`,fullWidth:!0,onBlur:e=>{A(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&A(e.currentTarget.value)}},`slider-end-${w}-${T}`)]}),i&&(0,n.jsx)(`span`,{id:_,className:U.helperText,children:i})]})},G={wrapper:`_wrapper_4v5ks_1`,label:`_label_4v5ks_7`,sm:`_sm_4v5ks_17`,md:`_md_4v5ks_20`,lg:`_lg_4v5ks_23`,inputWrapper:`_inputWrapper_4v5ks_27`,radioRoot:`_radioRoot_4v5ks_34`,checkmark:`_checkmark_4v5ks_44`,labelText:`_labelText_4v5ks_127`,error:`_error_4v5ks_133`,helperText:`_helperText_4v5ks_142`,errorText:`_errorText_4v5ks_156`},ze=({size:e=`md`,label:r,helperText:i,error:o,className:s,id:c,...l})=>{let u=(0,t.useId)(),d=c??`ds-radio-${u}`,f=i?`${d}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(G.wrapper,s),children:[(0,n.jsxs)(`label`,{htmlFor:d,className:a(G.label,G[e]),children:[(0,n.jsxs)(`div`,{className:G.inputWrapper,children:[(0,n.jsx)(`input`,{type:`radio`,id:d,className:a(G.radioRoot,G[e],o&&G.error),"aria-describedby":f,"aria-invalid":o||void 0,...l}),(0,n.jsx)(`span`,{className:G.checkmark})]}),r&&(0,n.jsx)(`span`,{className:G.labelText,children:r})]}),i&&(0,n.jsx)(`span`,{id:f,className:a(G.helperText,o&&G.errorText),children:i})]})},Be={root:`_root_1qfdr_1`,text:`_text_1qfdr_6`,rectangular:`_rectangular_1qfdr_15`,rounded:`_rounded_1qfdr_19`,circular:`_circular_1qfdr_23`,pulse:`_pulse_1qfdr_28`,wave:`_wave_1qfdr_44`},Ve=({variant:e=`rectangular`,width:t,height:r,animation:i=`pulse`,className:o,style:s,"aria-hidden":c,...l})=>(0,n.jsx)(v,{className:a(Be.root,Be[e],i!==`none`&&Be[i],o),width:t,height:r,style:s,"aria-hidden":c??!0,...l}),He=`_step_1z90u_1`,Ue=`_stepRow_1z90u_18`,We=`_interactive_1z90u_28`,Ge=`_marker_1z90u_48`,Ke=`_text_1z90u_67`,qe=`_label_1z90u_74`,Je=`_description_1z90u_83`,Ye=`_connector_1z90u_92`,Xe=`_completed_1z90u_110`,Ze=`_current_1z90u_124`,Qe=`_error_1z90u_138`,$e=`_upcoming_1z90u_152`,et=`_disabled_1z90u_156`,K={step:He,stepRow:Ue,interactive:We,marker:Ge,text:Ke,label:qe,description:Je,connector:Ye,completed:Xe,"connector-completed":`_connector-completed_1z90u_120`,current:Ze,"connector-current":`_connector-current_1z90u_134`,error:Qe,"connector-error":`_connector-error_1z90u_148`,upcoming:$e,disabled:et},tt=({step:e,index:t,status:r,isInteractive:i,onStepClick:o,isLast:s,id:c,className:l})=>{let u=!!e.disabled,d=i?`button`:`div`,f=r===`error`?`!`:String(t+1);return(0,n.jsxs)(`li`,{className:a(K.step,K[r],u&&K.disabled,l),children:[(0,n.jsxs)(d,{id:c,type:i?`button`:void 0,className:a(K.stepRow,i&&K.interactive),onClick:()=>{i&&!u&&o?.(e,t)},onKeyDown:n=>{i&&!u&&(n.key===`Enter`||n.key===` `)&&(n.preventDefault(),o?.(e,t))},"aria-current":r===`current`?`step`:void 0,"aria-disabled":u?!0:void 0,disabled:i&&u?!0:void 0,tabIndex:i&&!u?0:void 0,children:[(0,n.jsx)(`span`,{className:K.marker,"aria-hidden":`true`,children:f}),(0,n.jsxs)(`span`,{className:K.text,children:[(0,n.jsx)(`span`,{className:K.label,children:e.label}),e.description&&(0,n.jsx)(`span`,{className:K.description,children:e.description})]})]}),!s&&(0,n.jsx)(`span`,{className:a(K.connector,K[`connector-${r}`]),"aria-hidden":`true`})]})},nt={root:`_root_cxvk2_1`,sm:`_sm_cxvk2_15`,lg:`_lg_cxvk2_22`,horizontal:`_horizontal_cxvk2_29`,vertical:`_vertical_cxvk2_35`},rt=(e,t)=>Number.isNaN(e)||t<=0?-1:Math.min(Math.max(e,0),t-1),it=(e,t)=>typeof e==`number`?rt(e,t.length):typeof e==`string`?t.findIndex(t=>t.id===e):t.findIndex(e=>e.status===`current`),at=(e,t,n)=>n||(t===-1?`upcoming`:e<t?`completed`:e===t?`current`:`upcoming`),ot=({steps:e,currentStep:r,orientation:i=`horizontal`,size:o=`md`,onStepClick:s,ariaLabel:c,className:l,id:u,...d})=>{let f=(0,t.useId)(),p=u??`ds-stepper-${f}`,m=it(r,e),h=c??`Progress`;return(0,n.jsx)(`ol`,{id:p,className:a(nt.root,nt[i],nt[o],l),"aria-label":h,"data-orientation":i,...d,children:e.map((t,r)=>(0,n.jsx)(tt,{id:`${p}-step-${t.id}`,step:t,index:r,status:at(r,m,t.status),isInteractive:!!s,onStepClick:s,isLast:r===e.length-1},t.id))})},q={wrapper:`_wrapper_vo2yb_1`,fullWidth:`_fullWidth_vo2yb_8`,label:`_label_vo2yb_13`,selectRoot:`_selectRoot_vo2yb_20`,sm:`_sm_vo2yb_58`,md:`_md_vo2yb_65`,lg:`_lg_vo2yb_72`,error:`_error_vo2yb_80`,helperText:`_helperText_vo2yb_89`,errorText:`_errorText_vo2yb_95`},st=({size:e=`md`,error:r,label:i,helperText:o,fullWidth:s=!1,className:c,id:l,options:u,children:d,...f})=>{let p=(0,t.useId)(),m=l??`ds-select-${p}`,h=o?`${m}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(q.wrapper,s&&q.fullWidth,c),children:[i&&(0,n.jsx)(`label`,{htmlFor:m,className:q.label,children:i}),(0,n.jsx)(`select`,{id:m,className:a(q.selectRoot,q[e],r&&q.error),"aria-describedby":h,"aria-invalid":r||void 0,...f,children:u?u.map(e=>(0,n.jsx)(`option`,{value:e.value,disabled:e.disabled,children:e.label},e.value)):d}),o&&(0,n.jsx)(`span`,{id:h,className:a(q.helperText,r&&q.errorText),children:o})]})},J={wrapper:`_wrapper_196po_1`,container:`_container_196po_7`,disabled:`_disabled_196po_15`,input:`_input_196po_20`,track:`_track_196po_27`,thumb:`_thumb_196po_46`,label:`_label_196po_62`,helperText:`_helperText_196po_69`},ct=({label:e,helperText:r,className:i,disabled:o,id:s,...c})=>{let l=(0,t.useId)(),u=s??`ds-switch-${l}`,d=r?`${u}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(J.wrapper,i),children:[(0,n.jsxs)(`label`,{htmlFor:u,className:a(J.container,o&&J.disabled),children:[(0,n.jsx)(`input`,{type:`checkbox`,id:u,role:`switch`,disabled:o,className:J.input,"aria-describedby":d,...c}),(0,n.jsx)(`span`,{className:J.track,children:(0,n.jsx)(`span`,{className:J.thumb})}),e&&(0,n.jsx)(`span`,{className:J.label,children:e})]}),r&&(0,n.jsx)(`span`,{id:d,className:J.helperText,children:r})]})},lt=`_wrapper_1w3cj_1`,ut=`_table_1w3cj_8`,dt=`_thead_1w3cj_17`,ft=`_tbody_1w3cj_22`,pt=`_tr_1w3cj_22`,mt=`_th_1w3cj_17`,ht=`_td_1w3cj_40`,gt=`_striped_1w3cj_46`,_t=`_hoverable_1w3cj_50`,vt=`_dense_1w3cj_54`,yt=`_loading_1w3cj_75`,Y={wrapper:lt,table:ut,thead:dt,tbody:ft,tr:pt,th:mt,td:ht,striped:gt,hoverable:_t,dense:vt,"align-left":`_align-left_1w3cj_62`,"align-center":`_align-center_1w3cj_65`,"align-right":`_align-right_1w3cj_68`,"align-justify":`_align-justify_1w3cj_71`,loading:yt},bt=({children:e,className:t,striped:r,hoverable:i,dense:o,isLoading:s,...c})=>(0,n.jsx)(`div`,{className:a(Y.wrapper,s&&Y.loading,t),children:(0,n.jsx)(`table`,{className:a(Y.table,r&&Y.striped,i&&Y.hoverable,o&&Y.dense),"aria-busy":s||void 0,...c,children:e})}),xt=({children:e,className:t,...r})=>(0,n.jsx)(`thead`,{className:a(Y.thead,t),...r,children:e}),St=({children:e,className:t,...r})=>(0,n.jsx)(`tbody`,{className:a(Y.tbody,t),...r,children:e}),Ct=({children:e,className:t,...r})=>(0,n.jsx)(`tfoot`,{className:a(Y.tfoot,t),...r,children:e}),wt=({children:e,className:t,...r})=>(0,n.jsx)(`tr`,{className:a(Y.tr,t),...r,children:e}),Tt=({children:e,className:t,align:r,...i})=>(0,n.jsx)(`th`,{className:a(Y.th,r&&Y[`align-${r}`],t),...i,children:e}),Et=({children:e,className:t,align:r,...i})=>(0,n.jsx)(`td`,{className:a(Y.td,r&&Y[`align-${r}`],t),...i,children:e}),X={root:`_root_1luck_1`,tabList:`_tabList_1luck_8`,tabItem:`_tabItem_1luck_16`,disabled:`_disabled_1luck_27`,active:`_active_1luck_27`,pillList:`_pillList_1luck_52`,pillItem:`_pillItem_1luck_60`,tabPanel:`_tabPanel_1luck_72`},Dt=({items:e,defaultActiveId:r,activeId:i,onChange:o,className:s,variant:c=`line`,id:l})=>{let u=(0,t.useId)(),d=l??`ds-tabs-${u}`,[f,p]=(0,t.useState)(r||(e.length>0?e[0].id:``)),m=i===void 0?f:i,h=(0,t.useRef)(null),g=(e,t)=>{t||(i===void 0&&p(e),o?.(e))},_=t=>{let n=e.filter(e=>!e.disabled),r=n.findIndex(e=>e.id===m),i=-1;if(t.key===`ArrowRight`||t.key===`ArrowDown`?i=(r+1)%n.length:t.key===`ArrowLeft`||t.key===`ArrowUp`?i=(r-1+n.length)%n.length:t.key===`Home`?i=0:t.key===`End`&&(i=n.length-1),i!==-1){t.preventDefault();let e=n[i].id;g(e);let r=h.current?.querySelectorAll(`[role="tab"]`);Array.from(r||[]).find(t=>t.getAttribute(`data-id`)===e)?.focus()}},v=e.find(e=>e.id===m);return(0,n.jsxs)(`div`,{id:d,className:a(X.root,s),children:[(0,n.jsx)(`div`,{role:`tablist`,ref:h,className:a(X.tabList,c===`pill`&&X.pillList),onKeyDown:_,children:e.map(e=>{let t=e.id===m,r=!!e.disabled,i=r?-1:t?0:-1;return(0,n.jsx)(`button`,{role:`tab`,id:`${d}-tab-${e.id}`,"aria-selected":t,"aria-controls":`${d}-panel-${e.id}`,"aria-disabled":r,tabIndex:i,disabled:r,"data-id":e.id,className:a(X.tabItem,c===`pill`&&X.pillItem,t&&X.active,r&&X.disabled),onClick:()=>g(e.id,r),children:e.label},e.id)})}),(0,n.jsx)(`div`,{role:`tabpanel`,id:`${d}-panel-${m}`,"aria-labelledby":`${d}-tab-${m}`,className:X.tabPanel,tabIndex:0,children:v?.content})]})},Ot=`_root_1onf5_1`,kt=`_h1_1onf5_9`,At=`_h2_1onf5_15`,jt=`_h3_1onf5_21`,Mt=`_h4_1onf5_27`,Nt=`_h5_1onf5_32`,Pt=`_h6_1onf5_37`,Ft=`_label_1onf5_54`,It=`_code_1onf5_61`,Lt=`_left_1onf5_70`,Rt=`_center_1onf5_73`,zt=`_right_1onf5_76`,Bt=`_justify_1onf5_79`,Vt=`_regular_1onf5_84`,Ht=`_medium_1onf5_87`,Ut=`_bold_1onf5_90`,Wt=`_noWrap_1onf5_121`,Z={root:Ot,h1:kt,h2:At,h3:jt,h4:Mt,h5:Nt,h6:Pt,"body-lg":`_body-lg_1onf5_42`,"body-md":`_body-md_1onf5_46`,"body-sm":`_body-sm_1onf5_50`,label:Ft,code:It,left:Lt,center:Rt,right:zt,justify:Bt,regular:Vt,medium:Ht,bold:Ut,"color-main":`_color-main_1onf5_95`,"color-subtle":`_color-subtle_1onf5_98`,"color-on-brand":`_color-on-brand_1onf5_104`,"color-danger":`_color-danger_1onf5_107`,"color-success":`_color-success_1onf5_110`,"color-warning":`_color-warning_1onf5_113`,"color-info":`_color-info_1onf5_116`,noWrap:Wt,"p-0":`_p-0_1onf5_128`,"p-1":`_p-1_1onf5_131`,"p-2":`_p-2_1onf5_134`,"p-3":`_p-3_1onf5_137`,"p-4":`_p-4_1onf5_140`,"p-5":`_p-5_1onf5_143`,"p-6":`_p-6_1onf5_146`,"p-8":`_p-8_1onf5_149`,"p-10":`_p-10_1onf5_152`,"p-12":`_p-12_1onf5_155`,"p-14":`_p-14_1onf5_158`,"px-0":`_px-0_1onf5_162`,"px-1":`_px-1_1onf5_166`,"px-2":`_px-2_1onf5_170`,"px-3":`_px-3_1onf5_174`,"px-4":`_px-4_1onf5_178`,"px-5":`_px-5_1onf5_182`,"px-6":`_px-6_1onf5_186`,"px-8":`_px-8_1onf5_190`,"px-10":`_px-10_1onf5_194`,"px-12":`_px-12_1onf5_198`,"px-14":`_px-14_1onf5_202`,"py-0":`_py-0_1onf5_207`,"py-1":`_py-1_1onf5_211`,"py-2":`_py-2_1onf5_215`,"py-3":`_py-3_1onf5_219`,"py-4":`_py-4_1onf5_223`,"py-5":`_py-5_1onf5_227`,"py-6":`_py-6_1onf5_231`,"py-8":`_py-8_1onf5_235`,"py-10":`_py-10_1onf5_239`,"py-12":`_py-12_1onf5_243`,"py-14":`_py-14_1onf5_247`,"pt-0":`_pt-0_1onf5_252`,"pt-1":`_pt-1_1onf5_255`,"pt-2":`_pt-2_1onf5_258`,"pt-3":`_pt-3_1onf5_261`,"pt-4":`_pt-4_1onf5_264`,"pt-5":`_pt-5_1onf5_267`,"pt-6":`_pt-6_1onf5_270`,"pt-8":`_pt-8_1onf5_273`,"pt-10":`_pt-10_1onf5_276`,"pt-12":`_pt-12_1onf5_279`,"pt-14":`_pt-14_1onf5_282`,"pb-0":`_pb-0_1onf5_286`,"pb-1":`_pb-1_1onf5_289`,"pb-2":`_pb-2_1onf5_292`,"pb-3":`_pb-3_1onf5_295`,"pb-4":`_pb-4_1onf5_298`,"pb-5":`_pb-5_1onf5_301`,"pb-6":`_pb-6_1onf5_304`,"pb-8":`_pb-8_1onf5_307`,"pb-10":`_pb-10_1onf5_310`,"pb-12":`_pb-12_1onf5_313`,"pb-14":`_pb-14_1onf5_316`,"pl-0":`_pl-0_1onf5_320`,"pl-1":`_pl-1_1onf5_323`,"pl-2":`_pl-2_1onf5_326`,"pl-3":`_pl-3_1onf5_329`,"pl-4":`_pl-4_1onf5_332`,"pl-5":`_pl-5_1onf5_335`,"pl-6":`_pl-6_1onf5_338`,"pl-8":`_pl-8_1onf5_341`,"pl-10":`_pl-10_1onf5_344`,"pl-12":`_pl-12_1onf5_347`,"pl-14":`_pl-14_1onf5_350`,"pr-0":`_pr-0_1onf5_354`,"pr-1":`_pr-1_1onf5_357`,"pr-2":`_pr-2_1onf5_360`,"pr-3":`_pr-3_1onf5_363`,"pr-4":`_pr-4_1onf5_366`,"pr-5":`_pr-5_1onf5_369`,"pr-6":`_pr-6_1onf5_372`,"pr-8":`_pr-8_1onf5_375`,"pr-10":`_pr-10_1onf5_378`,"pr-12":`_pr-12_1onf5_381`,"pr-14":`_pr-14_1onf5_384`,"gap-0":`_gap-0_1onf5_389`,"gap-1":`_gap-1_1onf5_392`,"gap-2":`_gap-2_1onf5_395`,"gap-3":`_gap-3_1onf5_398`,"gap-4":`_gap-4_1onf5_401`,"gap-5":`_gap-5_1onf5_404`,"gap-6":`_gap-6_1onf5_407`,"gap-8":`_gap-8_1onf5_410`,"gap-10":`_gap-10_1onf5_413`,"gap-12":`_gap-12_1onf5_416`,"gap-14":`_gap-14_1onf5_419`,"m-0":`_m-0_1onf5_424`,"m-1":`_m-1_1onf5_427`,"m-2":`_m-2_1onf5_430`,"m-3":`_m-3_1onf5_433`,"m-4":`_m-4_1onf5_436`,"m-5":`_m-5_1onf5_439`,"m-6":`_m-6_1onf5_442`,"m-8":`_m-8_1onf5_445`,"m-10":`_m-10_1onf5_448`,"m-12":`_m-12_1onf5_451`,"m-14":`_m-14_1onf5_454`,"mx-0":`_mx-0_1onf5_458`,"mx-1":`_mx-1_1onf5_462`,"mx-2":`_mx-2_1onf5_466`,"mx-3":`_mx-3_1onf5_470`,"mx-4":`_mx-4_1onf5_474`,"mx-5":`_mx-5_1onf5_478`,"mx-6":`_mx-6_1onf5_482`,"mx-8":`_mx-8_1onf5_486`,"mx-10":`_mx-10_1onf5_490`,"mx-12":`_mx-12_1onf5_494`,"mx-14":`_mx-14_1onf5_498`,"my-0":`_my-0_1onf5_503`,"my-1":`_my-1_1onf5_507`,"my-2":`_my-2_1onf5_511`,"my-3":`_my-3_1onf5_515`,"my-4":`_my-4_1onf5_519`,"my-5":`_my-5_1onf5_523`,"my-6":`_my-6_1onf5_527`,"my-8":`_my-8_1onf5_531`,"my-10":`_my-10_1onf5_535`,"my-12":`_my-12_1onf5_539`,"my-14":`_my-14_1onf5_543`,"mt-0":`_mt-0_1onf5_548`,"mt-1":`_mt-1_1onf5_551`,"mt-2":`_mt-2_1onf5_554`,"mt-3":`_mt-3_1onf5_557`,"mt-4":`_mt-4_1onf5_560`,"mt-5":`_mt-5_1onf5_563`,"mt-6":`_mt-6_1onf5_566`,"mt-8":`_mt-8_1onf5_569`,"mt-10":`_mt-10_1onf5_572`,"mt-12":`_mt-12_1onf5_575`,"mt-14":`_mt-14_1onf5_578`,"mb-0":`_mb-0_1onf5_582`,"mb-1":`_mb-1_1onf5_585`,"mb-2":`_mb-2_1onf5_588`,"mb-3":`_mb-3_1onf5_591`,"mb-4":`_mb-4_1onf5_594`,"mb-5":`_mb-5_1onf5_597`,"mb-6":`_mb-6_1onf5_600`,"mb-8":`_mb-8_1onf5_603`,"mb-10":`_mb-10_1onf5_606`,"mb-12":`_mb-12_1onf5_609`,"mb-14":`_mb-14_1onf5_612`,"ml-0":`_ml-0_1onf5_616`,"ml-1":`_ml-1_1onf5_619`,"ml-2":`_ml-2_1onf5_622`,"ml-3":`_ml-3_1onf5_625`,"ml-4":`_ml-4_1onf5_628`,"ml-5":`_ml-5_1onf5_631`,"ml-6":`_ml-6_1onf5_634`,"ml-8":`_ml-8_1onf5_637`,"ml-10":`_ml-10_1onf5_640`,"ml-12":`_ml-12_1onf5_643`,"ml-14":`_ml-14_1onf5_646`,"mr-0":`_mr-0_1onf5_650`,"mr-1":`_mr-1_1onf5_653`,"mr-2":`_mr-2_1onf5_656`,"mr-3":`_mr-3_1onf5_659`,"mr-4":`_mr-4_1onf5_662`,"mr-5":`_mr-5_1onf5_665`,"mr-6":`_mr-6_1onf5_668`,"mr-8":`_mr-8_1onf5_671`,"mr-10":`_mr-10_1onf5_674`,"mr-12":`_mr-12_1onf5_677`,"mr-14":`_mr-14_1onf5_680`},Gt={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,"body-lg":`p`,"body-md":`p`,"body-sm":`p`,label:`span`,code:`code`},Kt=({children:e,variant:t=`body-md`,as:r,align:i,weight:o,color:s,noWrap:c,className:l,padding:u,paddingX:d,paddingY:f,paddingTop:p,paddingBottom:m,paddingLeft:h,paddingRight:g,margin:_,marginX:v,marginY:y,marginTop:b,marginBottom:x,marginLeft:S,marginRight:C,...w})=>(0,n.jsx)(r||Gt[t]||`span`,{className:a(Z.root,Z[t],i&&Z[i],o&&Z[o],s&&Z[`color-${s}`],c&&Z.noWrap,u!==void 0&&Z[`p-${u}`],d!==void 0&&Z[`px-${d}`],f!==void 0&&Z[`py-${f}`],p!==void 0&&Z[`pt-${p}`],m!==void 0&&Z[`pb-${m}`],h!==void 0&&Z[`pl-${h}`],g!==void 0&&Z[`pr-${g}`],_!==void 0&&Z[`margin-${_}`],v!==void 0&&Z[`marginX-${v}`],y!==void 0&&Z[`marginY-${y}`],b!==void 0&&Z[`marginTop-${b}`],x!==void 0&&Z[`marginBottom-${x}`],S!==void 0&&Z[`marginLeft-${S}`],C!==void 0&&Z[`marginRight-${C}`],l),...w,children:e}),Q={wrapper:`_wrapper_idhh9_1`,fullWidth:`_fullWidth_idhh9_8`,label:`_label_idhh9_13`,textareaRoot:`_textareaRoot_idhh9_20`,sm:`_sm_idhh9_58`,md:`_md_idhh9_63`,lg:`_lg_idhh9_68`,error:`_error_idhh9_74`,helperText:`_helperText_idhh9_83`,errorText:`_errorText_idhh9_89`},qt=({size:e=`md`,error:r,label:i,helperText:o,fullWidth:s=!1,className:c,id:l,rows:u=4,...d})=>{let f=(0,t.useId)(),p=l??`ds-textarea-${f}`,m=o?`${p}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(Q.wrapper,s&&Q.fullWidth,c),children:[i&&(0,n.jsx)(`label`,{htmlFor:p,className:Q.label,children:i}),(0,n.jsx)(`textarea`,{id:p,rows:u,className:a(Q.textareaRoot,Q[e],r&&Q.error),"aria-describedby":m,"aria-invalid":r||void 0,...d}),o&&(0,n.jsx)(`span`,{id:m,className:a(Q.helperText,r&&Q.errorText),children:o})]})},Jt={root:`_root_1kghr_1`,trigger:`_trigger_1kghr_6`,tooltip:`_tooltip_1kghr_10`,dark:`_dark_1kghr_22`,light:`_light_1kghr_27`,visible:`_visible_1kghr_34`,top:`_top_1kghr_39`,bottom:`_bottom_1kghr_45`,left:`_left_1kghr_51`,right:`_right_1kghr_57`},Yt=({content:e,children:r,position:i=`top`,variant:o=`dark`,delay:s=200,className:c,id:l})=>{let[u,d]=(0,t.useState)(!1),f=(0,t.useRef)(null),p=(0,t.useId)(),m=l??`ds-tooltip-${p}`,h=`${m}-content`,g=()=>{f.current=window.setTimeout(()=>{d(!0)},s)},_=()=>{f.current&&window.clearTimeout(f.current),d(!1)},v=e=>{e.key===`Escape`&&_()},y=(0,t.isValidElement)(r)?(()=>{let e=r;return(0,t.cloneElement)(e,{"aria-describedby":[e.props[`aria-describedby`],h].filter(Boolean).join(` `)})})():r;return(0,n.jsxs)(`div`,{id:m,className:a(Jt.root,c),onMouseEnter:g,onMouseLeave:_,onFocus:g,onBlur:_,onKeyDown:v,children:[(0,n.jsx)(`div`,{className:Jt.trigger,children:y}),(0,n.jsx)(`div`,{className:a(Jt.tooltip,Jt[i],Jt[o],u&&Jt.visible),id:h,role:`tooltip`,children:e})]})},Xt={root:`_root_kcagb_1`},$={list:`_list_1vf6b_1`,item:`_item_1vf6b_7`,itemHeader:`_itemHeader_1vf6b_11`,toggleButton:`_toggleButton_1vf6b_17`,key:`_key_1vf6b_37`,value:`_value_1vf6b_42`,empty:`_empty_1vf6b_47`,collapsibleContent:`_collapsibleContent_1vf6b_53`,expanded:`_expanded_1vf6b_57`,rootList:`_rootList_1vf6b_61`},Zt=({data:e,label:r,defaultExpanded:i,expandIcon:o,collapseIcon:s,isRoot:c})=>{let[l,u]=(0,t.useState)(c?!0:i??!1),d=typeof e==`object`&&!!e&&(Array.isArray(e)?e.length>0:Object.keys(e).length>0),f=()=>u(!l),p=(0,n.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`9 18 15 12 9 6`})}),m=(0,n.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`6 9 12 15 18 9`})}),h=()=>e===void 0?(0,n.jsx)(`span`,{className:$.empty,children:`undefined`}):e===null?(0,n.jsx)(`span`,{className:$.empty,children:`null`}):typeof e==`object`?Array.isArray(e)?e.length===0?(0,n.jsx)(`span`,{className:$.empty,children:`[]`}):(0,n.jsx)(`ul`,{className:a($.list,$.collapsibleContent,l&&$.expanded,c&&$.rootList),children:e.map((e,t)=>(0,n.jsx)(`li`,{className:$.item,children:(0,n.jsx)(Zt,{data:e,defaultExpanded:i,expandIcon:o,collapseIcon:s})},t))}):Object.keys(e).length===0?(0,n.jsx)(`span`,{className:$.empty}):(0,n.jsx)(`ul`,{className:a($.list,$.collapsibleContent,l&&$.expanded,c&&$.rootList),children:Object.entries(e).map(([e,t])=>(0,n.jsx)(`li`,{className:$.item,children:(0,n.jsx)(Zt,{label:e,data:t,defaultExpanded:i,expandIcon:o,collapseIcon:s})},e))}):(0,n.jsx)(`span`,{className:$.value,children:String(e)});return(0,n.jsxs)(`div`,{children:[!c&&(0,n.jsxs)(`div`,{className:$.itemHeader,children:[d?(0,n.jsx)(`button`,{type:`button`,className:$.toggleButton,onClick:f,"aria-expanded":l,children:l?s??m:o??p}):(0,n.jsx)(`div`,{className:$.toggleButton,"aria-hidden":`true`}),r&&(0,n.jsxs)(`span`,{className:$.key,children:[r,`:`]}),!d&&h()]}),d&&h(),c&&!d&&(0,n.jsx)(`div`,{className:$.itemHeader,children:h()})]})},Qt=({data:e,className:t,defaultExpanded:r,expandIcon:i,collapseIcon:o,...s})=>(0,n.jsx)(`div`,{className:a(Xt.root,t),...s,children:(0,n.jsx)(Zt,{data:e,defaultExpanded:r,expandIcon:i,collapseIcon:o,isRoot:!0})});Qt.Item=Zt;var $t={root:`_root_1931n_1`,main:`_main_1931n_8`,container:`_container_1931n_13`},en=({header:e,navbar:t,children:r,className:i,maxWidth:o=`75rem`})=>(0,n.jsxs)(`div`,{className:a($t.root,i),children:[e,t,(0,n.jsx)(`main`,{className:$t.main,children:(0,n.jsx)(v,{className:$t.container,maxWidth:o,children:r})})]}),tn={root:`_root_416o7_1`,card:`_card_416o7_11`,header:`_header_416o7_21`,logo:`_logo_416o7_26`,title:`_title_416o7_32`,description:`_description_416o7_39`,content:`_content_416o7_45`},nn=({logo:e,title:t,description:r,children:i,className:o})=>(0,n.jsx)(v,{className:a(tn.root,o),children:(0,n.jsxs)(v,{className:tn.card,children:[(0,n.jsxs)(v,{className:tn.header,children:[e&&(0,n.jsx)(v,{className:tn.logo,children:e}),t&&(0,n.jsx)(Kt,{variant:`h3`,as:`h1`,className:tn.title,children:t}),r&&(0,n.jsx)(Kt,{variant:`body-sm`,color:`subtle`,className:tn.description,children:r})]}),(0,n.jsx)(v,{className:tn.content,children:i})]})}),rn={root:`_root_1vwxr_1`,main:`_main_1vwxr_7`,container:`_container_1vwxr_11`,topBar:`_topBar_1vwxr_20`,stats:`_stats_1vwxr_27`,content:`_content_1vwxr_33`},an=({header:e,breadcrumbs:t,actions:r,stats:i,children:o,className:s})=>(0,n.jsxs)(`div`,{className:a(rn.root,s),children:[e,(0,n.jsx)(`main`,{className:rn.main,children:(0,n.jsxs)(`div`,{className:rn.container,children:[(t||r)&&(0,n.jsxs)(`div`,{className:rn.topBar,children:[(0,n.jsx)(`div`,{className:rn.breadcrumbs,children:t}),(0,n.jsx)(`div`,{className:rn.actions,children:r})]}),i&&(0,n.jsx)(`div`,{className:rn.stats,children:i}),(0,n.jsx)(`div`,{className:rn.content,children:o})]})})]}),on={root:`_root_o4vai_1`,main:`_main_o4vai_7`,container:`_container_o4vai_11`,layoutBody:`_layoutBody_o4vai_20`,sidebar:`_sidebar_o4vai_26`,content:`_content_o4vai_34`};e.Accordion=s,e.AppLayout=en,e.AuthLayout=nn,e.Avatar=l,e.Badge=d,e.Box=v,e.BreadcrumbItem=b,e.Breadcrumbs=x,e.Button=C,e.Card=ae,e.CardContent=se,e.CardFooter=ce,e.CardHeader=oe,e.Checkbox=le,e.DashboardLayout=an,e.Divider=pe,e.Dropdown=ue,e.Header=me,e.Input=ge,e.List=Ee,e.ListItem=Te,e.Loader=ve,e.Modal=De,e.NavBar=he,e.Notification=ke,e.Pagination=Ne,e.ProgressBar=Pe,e.RadioButton=ze,e.Select=st,e.SettingsLayout=({header:e,breadcrumbs:t,sidebar:r,children:i,className:o})=>(0,n.jsxs)(`div`,{className:a(on.root,o),children:[e,(0,n.jsx)(`main`,{className:on.main,children:(0,n.jsxs)(`div`,{className:on.container,children:[t&&(0,n.jsx)(`div`,{className:on.breadcrumbs,children:t}),(0,n.jsxs)(`div`,{className:on.layoutBody,children:[r&&(0,n.jsx)(`aside`,{className:on.sidebar,children:r}),(0,n.jsx)(`section`,{className:on.content,children:i})]})]})})]}),e.Skeleton=Ve,e.Slider=Re,e.Stepper=ot,e.Switch=ct,e.Table=bt,e.TableBody=St,e.TableCell=Et,e.TableFooter=Ct,e.TableHead=Tt,e.TableHeader=xt,e.TableRow=wt,e.Tabs=Dt,e.Text=Kt,e.Textarea=qt,e.Tooltip=Yt,e.Tree=Qt,e.TreeItem=Zt});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react/jsx-runtime`),require(`react-dom`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.DesignSystem={},e.React,e.jsxRuntime,e.ReactDOM))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function i(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function a(){for(var e,t,n=0,r=``,a=arguments.length;n<a;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=` `),r+=t);return r}var o={root:`_root_1f38q_1`,default:`_default_1f38q_8`,bordered:`_bordered_1f38q_14`,item:`_item_1f38q_14`,separated:`_separated_1f38q_24`,ghost:`_ghost_1f38q_34`,header:`_header_1f38q_34`,sm:`_sm_1f38q_65`,md:`_md_1f38q_70`,lg:`_lg_1f38q_75`,icon:`_icon_1f38q_97`,iconExpanded:`_iconExpanded_1f38q_102`,contentWrapper:`_contentWrapper_1f38q_106`,contentExpanded:`_contentExpanded_1f38q_113`,content:`_content_1f38q_106`,contentBody:`_contentBody_1f38q_121`,contentBodyExpanded:`_contentBodyExpanded_1f38q_134`},s=({items:e,allowMultiple:r=!1,defaultExpanded:i=[],variant:s=`default`,size:c=`md`,className:l,id:u})=>{let d=(0,t.useId)(),f=u??`ds-accordion-${d}`,[p,m]=(0,t.useState)(i),h=e=>{m(t=>t.includes(e)?t.filter(t=>t!==e):r?[...t,e]:[e])};return(0,n.jsx)(`div`,{id:f,className:a(o.root,o[s],o[c],l),children:e.map(e=>{let t=p.includes(e.id);return(0,n.jsxs)(`div`,{className:o.item,children:[(0,n.jsxs)(`button`,{type:`button`,id:`${f}-header-${e.id}`,className:o.header,onClick:()=>h(e.id),disabled:e.isDisabled,"aria-expanded":t,"aria-controls":`${f}-content-${e.id}`,children:[(0,n.jsx)(`span`,{children:e.title}),(0,n.jsx)(`span`,{className:a(o.icon,t&&o.iconExpanded),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,children:(0,n.jsx)(`path`,{d:`M2.5 4.5L6 8L9.5 4.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),(0,n.jsx)(`div`,{id:`${f}-content-${e.id}`,role:`region`,"aria-labelledby":`${f}-header-${e.id}`,className:a(o.contentWrapper,t&&o.contentExpanded),children:(0,n.jsx)(`div`,{className:o.content,children:(0,n.jsx)(`div`,{className:a(o.contentBody,t&&o.contentBodyExpanded),children:e.content})})})]},e.id)})})},c={root:`_root_17k2j_1`,image:`_image_17k2j_14`,defaultIcon:`_defaultIcon_17k2j_20`,fallback:`_fallback_17k2j_24`,xs:`_xs_17k2j_34`,sm:`_sm_17k2j_39`,md:`_md_17k2j_44`,lg:`_lg_17k2j_49`,xl:`_xl_17k2j_54`},l=({src:e,alt:r,name:i,size:o=`md`,fallback:s,className:l,...u})=>{let[d,f]=(0,t.useState)(!1),p=r??i,m=e=>e.split(` `).map(e=>e[0]).slice(0,2).join(``),h=()=>e&&!d?(0,n.jsx)(`img`,{src:e,alt:p||``,className:c.image,onError:()=>f(!0)}):s?(0,n.jsx)(`span`,{className:c.fallback,children:s}):i?(0,n.jsx)(`span`,{className:c.fallback,children:m(i)}):(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,className:a(c.image,c.defaultIcon),"aria-hidden":`true`,focusable:`false`,children:(0,n.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})});return(0,n.jsx)(`div`,{className:a(c.root,c[o],l),...u,children:h()})},u={root:`_root_13wyx_1`,sm:`_sm_13wyx_12`,md:`_md_13wyx_18`,lg:`_lg_13wyx_24`,solid:`_solid_13wyx_31`,neutral:`_neutral_13wyx_31`,success:`_success_13wyx_35`,warning:`_warning_13wyx_39`,danger:`_danger_13wyx_43`,info:`_info_13wyx_47`,subtle:`_subtle_13wyx_53`,outline:`_outline_13wyx_75`},d=({variant:e=`solid`,size:t=`md`,intent:r=`neutral`,className:i,children:o,...s})=>(0,n.jsx)(`span`,{className:a(u.root,u[e],u[t],u[r],i),...s,children:o}),f=`_box_ynnco_1`,p=`_fullWidth_ynnco_5`,m=`_border_ynnco_683`,h=`_borderBottom_ynnco_686`,g={box:f,fullWidth:p,"display-block":`_display-block_ynnco_10`,"display-flex":`_display-flex_ynnco_13`,"display-inline-flex":`_display-inline-flex_ynnco_16`,"display-grid":`_display-grid_ynnco_19`,"display-inline-block":`_display-inline-block_ynnco_22`,"display-none":`_display-none_ynnco_25`,"flexDirection-row":`_flexDirection-row_ynnco_30`,"flexDirection-column":`_flexDirection-column_ynnco_33`,"flexDirection-row-reverse":`_flexDirection-row-reverse_ynnco_36`,"flexDirection-column-reverse":`_flexDirection-column-reverse_ynnco_39`,"alignItems-stretch":`_alignItems-stretch_ynnco_44`,"alignItems-flex-start":`_alignItems-flex-start_ynnco_47`,"alignItems-center":`_alignItems-center_ynnco_50`,"alignItems-flex-end":`_alignItems-flex-end_ynnco_53`,"alignItems-baseline":`_alignItems-baseline_ynnco_56`,"justifyContent-flex-start":`_justifyContent-flex-start_ynnco_61`,"justifyContent-center":`_justifyContent-center_ynnco_64`,"justifyContent-flex-end":`_justifyContent-flex-end_ynnco_67`,"justifyContent-space-between":`_justifyContent-space-between_ynnco_70`,"justifyContent-space-around":`_justifyContent-space-around_ynnco_73`,"justifyContent-space-evenly":`_justifyContent-space-evenly_ynnco_76`,"flexWrap-nowrap":`_flexWrap-nowrap_ynnco_81`,"flexWrap-wrap":`_flexWrap-wrap_ynnco_84`,"flexWrap-wrap-reverse":`_flexWrap-wrap-reverse_ynnco_87`,"textAlign-left":`_textAlign-left_ynnco_92`,"textAlign-center":`_textAlign-center_ynnco_95`,"textAlign-right":`_textAlign-right_ynnco_98`,"textAlign-justify":`_textAlign-justify_ynnco_101`,"p-0":`_p-0_ynnco_106`,"p-1":`_p-1_ynnco_109`,"p-2":`_p-2_ynnco_112`,"p-3":`_p-3_ynnco_115`,"p-4":`_p-4_ynnco_118`,"p-5":`_p-5_ynnco_121`,"p-6":`_p-6_ynnco_124`,"p-8":`_p-8_ynnco_127`,"p-10":`_p-10_ynnco_130`,"p-12":`_p-12_ynnco_133`,"p-14":`_p-14_ynnco_136`,"px-0":`_px-0_ynnco_140`,"px-1":`_px-1_ynnco_144`,"px-2":`_px-2_ynnco_148`,"px-3":`_px-3_ynnco_152`,"px-4":`_px-4_ynnco_156`,"px-5":`_px-5_ynnco_160`,"px-6":`_px-6_ynnco_164`,"px-8":`_px-8_ynnco_168`,"px-10":`_px-10_ynnco_172`,"px-12":`_px-12_ynnco_176`,"px-14":`_px-14_ynnco_180`,"py-0":`_py-0_ynnco_185`,"py-1":`_py-1_ynnco_189`,"py-2":`_py-2_ynnco_193`,"py-3":`_py-3_ynnco_197`,"py-4":`_py-4_ynnco_201`,"py-5":`_py-5_ynnco_205`,"py-6":`_py-6_ynnco_209`,"py-8":`_py-8_ynnco_213`,"py-10":`_py-10_ynnco_217`,"py-12":`_py-12_ynnco_221`,"py-14":`_py-14_ynnco_225`,"pt-0":`_pt-0_ynnco_230`,"pt-1":`_pt-1_ynnco_233`,"pt-2":`_pt-2_ynnco_236`,"pt-3":`_pt-3_ynnco_239`,"pt-4":`_pt-4_ynnco_242`,"pt-5":`_pt-5_ynnco_245`,"pt-6":`_pt-6_ynnco_248`,"pt-8":`_pt-8_ynnco_251`,"pt-10":`_pt-10_ynnco_254`,"pt-12":`_pt-12_ynnco_257`,"pt-14":`_pt-14_ynnco_260`,"pb-0":`_pb-0_ynnco_264`,"pb-1":`_pb-1_ynnco_267`,"pb-2":`_pb-2_ynnco_270`,"pb-3":`_pb-3_ynnco_273`,"pb-4":`_pb-4_ynnco_276`,"pb-5":`_pb-5_ynnco_279`,"pb-6":`_pb-6_ynnco_282`,"pb-8":`_pb-8_ynnco_285`,"pb-10":`_pb-10_ynnco_288`,"pb-12":`_pb-12_ynnco_291`,"pb-14":`_pb-14_ynnco_294`,"pl-0":`_pl-0_ynnco_298`,"pl-1":`_pl-1_ynnco_301`,"pl-2":`_pl-2_ynnco_304`,"pl-3":`_pl-3_ynnco_307`,"pl-4":`_pl-4_ynnco_310`,"pl-5":`_pl-5_ynnco_313`,"pl-6":`_pl-6_ynnco_316`,"pl-8":`_pl-8_ynnco_319`,"pl-10":`_pl-10_ynnco_322`,"pl-12":`_pl-12_ynnco_325`,"pl-14":`_pl-14_ynnco_328`,"pr-0":`_pr-0_ynnco_332`,"pr-1":`_pr-1_ynnco_335`,"pr-2":`_pr-2_ynnco_338`,"pr-3":`_pr-3_ynnco_341`,"pr-4":`_pr-4_ynnco_344`,"pr-5":`_pr-5_ynnco_347`,"pr-6":`_pr-6_ynnco_350`,"pr-8":`_pr-8_ynnco_353`,"pr-10":`_pr-10_ynnco_356`,"pr-12":`_pr-12_ynnco_359`,"pr-14":`_pr-14_ynnco_362`,"gap-0":`_gap-0_ynnco_367`,"gap-1":`_gap-1_ynnco_370`,"gap-2":`_gap-2_ynnco_373`,"gap-3":`_gap-3_ynnco_376`,"gap-4":`_gap-4_ynnco_379`,"gap-5":`_gap-5_ynnco_382`,"gap-6":`_gap-6_ynnco_385`,"gap-8":`_gap-8_ynnco_388`,"gap-10":`_gap-10_ynnco_391`,"gap-12":`_gap-12_ynnco_394`,"gap-14":`_gap-14_ynnco_397`,"m-0":`_m-0_ynnco_402`,"m-1":`_m-1_ynnco_405`,"m-2":`_m-2_ynnco_408`,"m-3":`_m-3_ynnco_411`,"m-4":`_m-4_ynnco_414`,"m-5":`_m-5_ynnco_417`,"m-6":`_m-6_ynnco_420`,"m-8":`_m-8_ynnco_423`,"m-10":`_m-10_ynnco_426`,"m-12":`_m-12_ynnco_429`,"m-14":`_m-14_ynnco_432`,"mx-0":`_mx-0_ynnco_436`,"mx-1":`_mx-1_ynnco_440`,"mx-2":`_mx-2_ynnco_444`,"mx-3":`_mx-3_ynnco_448`,"mx-4":`_mx-4_ynnco_452`,"mx-5":`_mx-5_ynnco_456`,"mx-6":`_mx-6_ynnco_460`,"mx-8":`_mx-8_ynnco_464`,"mx-10":`_mx-10_ynnco_468`,"mx-12":`_mx-12_ynnco_472`,"mx-14":`_mx-14_ynnco_476`,"my-0":`_my-0_ynnco_481`,"my-1":`_my-1_ynnco_485`,"my-2":`_my-2_ynnco_489`,"my-3":`_my-3_ynnco_493`,"my-4":`_my-4_ynnco_497`,"my-5":`_my-5_ynnco_501`,"my-6":`_my-6_ynnco_505`,"my-8":`_my-8_ynnco_509`,"my-10":`_my-10_ynnco_513`,"my-12":`_my-12_ynnco_517`,"my-14":`_my-14_ynnco_521`,"mt-0":`_mt-0_ynnco_526`,"mt-1":`_mt-1_ynnco_529`,"mt-2":`_mt-2_ynnco_532`,"mt-3":`_mt-3_ynnco_535`,"mt-4":`_mt-4_ynnco_538`,"mt-5":`_mt-5_ynnco_541`,"mt-6":`_mt-6_ynnco_544`,"mt-8":`_mt-8_ynnco_547`,"mt-10":`_mt-10_ynnco_550`,"mt-12":`_mt-12_ynnco_553`,"mt-14":`_mt-14_ynnco_556`,"mb-0":`_mb-0_ynnco_560`,"mb-1":`_mb-1_ynnco_563`,"mb-2":`_mb-2_ynnco_566`,"mb-3":`_mb-3_ynnco_569`,"mb-4":`_mb-4_ynnco_572`,"mb-5":`_mb-5_ynnco_575`,"mb-6":`_mb-6_ynnco_578`,"mb-8":`_mb-8_ynnco_581`,"mb-10":`_mb-10_ynnco_584`,"mb-12":`_mb-12_ynnco_587`,"mb-14":`_mb-14_ynnco_590`,"ml-0":`_ml-0_ynnco_594`,"ml-1":`_ml-1_ynnco_597`,"ml-2":`_ml-2_ynnco_600`,"ml-3":`_ml-3_ynnco_603`,"ml-4":`_ml-4_ynnco_606`,"ml-5":`_ml-5_ynnco_609`,"ml-6":`_ml-6_ynnco_612`,"ml-8":`_ml-8_ynnco_615`,"ml-10":`_ml-10_ynnco_618`,"ml-12":`_ml-12_ynnco_621`,"ml-14":`_ml-14_ynnco_624`,"mr-0":`_mr-0_ynnco_628`,"mr-1":`_mr-1_ynnco_631`,"mr-2":`_mr-2_ynnco_634`,"mr-3":`_mr-3_ynnco_637`,"mr-4":`_mr-4_ynnco_640`,"mr-5":`_mr-5_ynnco_643`,"mr-6":`_mr-6_ynnco_646`,"mr-8":`_mr-8_ynnco_649`,"mr-10":`_mr-10_ynnco_652`,"mr-12":`_mr-12_ynnco_655`,"mr-14":`_mr-14_ynnco_658`,"bg-main":`_bg-main_ynnco_663`,"bg-subtle":`_bg-subtle_ynnco_666`,"bg-info-subtle":`_bg-info-subtle_ynnco_669`,"bg-success-subtle":`_bg-success-subtle_ynnco_672`,"bg-warning-subtle":`_bg-warning-subtle_ynnco_675`,"bg-danger-subtle":`_bg-danger-subtle_ynnco_678`,border:m,borderBottom:h,"borderColor-main":`_borderColor-main_ynnco_691`,"borderColor-subtle":`_borderColor-subtle_ynnco_694`,"borderColor-danger":`_borderColor-danger_ynnco_697`,"backgroundColor-none":`_backgroundColor-none_ynnco_702`,"backgroundColor-subtle":`_backgroundColor-subtle_ynnco_705`,"backgroundColor-danger-subtle":`_backgroundColor-danger-subtle_ynnco_708`,"backgroundColor-success-subtle":`_backgroundColor-success-subtle_ynnco_711`,"backgroundColor-warning-subtle":`_backgroundColor-warning-subtle_ynnco_714`,"backgroundColor-info-subtle":`_backgroundColor-info-subtle_ynnco_717`,"borderRadius-none":`_borderRadius-none_ynnco_722`,"borderRadius-sm":`_borderRadius-sm_ynnco_725`,"borderRadius-md":`_borderRadius-md_ynnco_728`,"borderRadius-lg":`_borderRadius-lg_ynnco_731`,"borderRadius-full":`_borderRadius-full_ynnco_734`},_=(e,t,n,r,i,a,o,s)=>{let c={};return typeof t==`string`&&(c[e]=t),typeof i==`string`&&(c[`${e}Top`]=i),typeof a==`string`&&(c[`${e}Bottom`]=a),typeof o==`string`&&(c[`${e}Left`]=o),typeof s==`string`&&(c[`${e}Right`]=s),typeof n==`string`&&(c[`${e}Left`]=n,c[`${e}Right`]=n),typeof r==`string`&&(c[`${e}Top`]=r,c[`${e}Bottom`]=r),c},v=({children:e,as:t=`div`,display:r,padding:i,paddingX:o,paddingY:s,paddingTop:c,paddingBottom:l,paddingLeft:u,paddingRight:d,margin:f,marginX:p,marginY:m,marginTop:h,marginBottom:v,marginLeft:y,marginRight:b,gap:x,flexDirection:S,alignItems:C,justifyContent:w,flexWrap:T,flexGrow:E,flexShrink:D,flex:O,fullWidth:ee,textAlign:k,width:te,height:A,maxWidth:j,gridTemplateColumns:ne,backgroundColor:M,border:re,borderBottom:ie,borderColor:N,borderRadius:ae,className:oe,style:se,...ce})=>{let P={...se,flexGrow:E,flexShrink:D,flex:O,width:te,height:A,maxWidth:j,gridTemplateColumns:ne,gap:typeof x==`string`?x:void 0,..._(`padding`,i,o,s,c,l,u,d),..._(`margin`,f,p,m,h,v,y,b)};return(0,n.jsx)(t,{className:a(g.box,r&&g[`display-${r}`],k&&g[`textAlign-${k}`],typeof i==`number`&&g[`p-${i}`],typeof o==`number`&&g[`px-${o}`],typeof s==`number`&&g[`py-${s}`],typeof c==`number`&&g[`pt-${c}`],typeof l==`number`&&g[`pb-${l}`],typeof u==`number`&&g[`pl-${u}`],typeof d==`number`&&g[`pr-${d}`],typeof f==`number`&&g[`margin-${f}`],typeof p==`number`&&g[`marginX-${p}`],typeof m==`number`&&g[`marginY-${m}`],typeof h==`number`&&g[`marginTop-${h}`],typeof v==`number`&&g[`marginBottom-${v}`],typeof y==`number`&&g[`marginLeft-${y}`],typeof b==`number`&&g[`marginRight-${b}`],typeof x==`number`&&g[`gap-${x}`],S&&g[`flexDirection-${S}`],C&&g[`alignItems-${C}`],w&&g[`justifyContent-${w}`],T&&g[`flexWrap-${T}`],M&&g[`bg-${M}`],re&&g.border,ie&&g.borderBottom,N&&g[`borderColor-${N}`],ae&&g[`borderRadius-${ae}`],ee&&g.fullWidth,oe),style:P,...ce,children:e})},y={root:`_root_10ujs_1`,list:`_list_10ujs_6`,item:`_item_10ujs_16`,link:`_link_10ujs_21`,current:`_current_10ujs_27`,separator:`_separator_10ujs_38`},b=({href:e,isCurrent:t,children:r,className:i,...o})=>{let s=e&&!t?`a`:`span`;return(0,n.jsx)(`li`,{className:y.item,children:(0,n.jsx)(s,{href:e,className:a(y.link,t&&y.current,i),"aria-current":t?`page`:void 0,...o,children:r})})},x=({children:e,separator:r=`/`,className:i,...o})=>{let s=t.Children.toArray(e);return(0,n.jsx)(`nav`,{"aria-label":`Breadcrumbs`,className:a(y.root,i),...o,children:(0,n.jsx)(`ol`,{className:y.list,children:s.map((e,i)=>(0,n.jsxs)(t.Fragment,{children:[e,i<s.length-1&&(0,n.jsx)(`li`,{className:y.separator,"aria-hidden":`true`,children:r})]},i))})})},S={root:`_root_1vhu8_1`,xs:`_xs_1vhu8_31`,sm:`_sm_1vhu8_39`,md:`_md_1vhu8_46`,lg:`_lg_1vhu8_53`,xl:`_xl_1vhu8_60`,solid:`_solid_1vhu8_70`,success:`_success_1vhu8_82`,warning:`_warning_1vhu8_92`,danger:`_danger_1vhu8_102`,info:`_info_1vhu8_112`,outline:`_outline_1vhu8_123`,subtle:`_subtle_1vhu8_192`,fullWidth:`_fullWidth_1vhu8_245`,loading:`_loading_1vhu8_249`,spinner:`_spinner_1vhu8_253`,spin:`_spin_1vhu8_253`},C=({size:e=`md`,variant:t=`outline`,intent:r=`neutral`,fullWidth:i=!1,isLoading:o=!1,className:s,children:c,disabled:l,...u})=>(0,n.jsxs)(`button`,{type:`button`,className:a(S.root,S[e],S[t],S[r],i&&S.fullWidth,o&&S.loading,s),disabled:l||o,"aria-busy":o||void 0,...u,children:[o&&(0,n.jsx)(`svg`,{className:S.spinner,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,stroke:`currentColor`,strokeWidth:`2`,strokeDasharray:`28`,strokeDashoffset:`10`})}),c]}),w=`_root_1k781_1`,T=`_bordered_1k781_9`,E=`_shadowNone_1k781_14`,D=`_shadowSm_1k781_17`,O=`_shadowMd_1k781_20`,ee=`_pNone_1k781_65`,k=`_pSm_1k781_68`,te=`_pMd_1k781_71`,A=`_pLg_1k781_74`,j=`_header_1k781_79`,ne=`_title_1k781_85`,M=`_subtitle_1k781_93`,re=`_content_1k781_100`,ie=`_footer_1k781_104`,N={root:w,bordered:T,shadowNone:E,shadowSm:D,shadowMd:O,"borderColor-main":`_borderColor-main_1k781_25`,"borderColor-subtle":`_borderColor-subtle_1k781_28`,"borderColor-danger":`_borderColor-danger_1k781_31`,"borderColor-success":`_borderColor-success_1k781_34`,"borderColor-info":`_borderColor-info_1k781_37`,"borderColor-warning":`_borderColor-warning_1k781_40`,"backgroundColor-none":`_backgroundColor-none_1k781_45`,"backgroundColor-subtle":`_backgroundColor-subtle_1k781_48`,"backgroundColor-danger-subtle":`_backgroundColor-danger-subtle_1k781_51`,"backgroundColor-success-subtle":`_backgroundColor-success-subtle_1k781_54`,"backgroundColor-warning-subtle":`_backgroundColor-warning-subtle_1k781_57`,"backgroundColor-info-subtle":`_backgroundColor-info-subtle_1k781_60`,pNone:ee,pSm:k,pMd:te,pLg:A,header:j,title:ne,subtitle:M,content:re,footer:ie},ae=({padding:e=`md`,shadow:t=`sm`,bordered:r=!0,borderColor:i,backgroundColor:o,className:s,children:c,...l})=>{let u={none:N.pNone,sm:N.pSm,md:N.pMd,lg:N.pLg}[e],d={none:N.shadowNone,sm:N.shadowSm,md:N.shadowMd}[t];return(0,n.jsx)(`div`,{className:a(N.root,u,d,r&&N.bordered,i&&N[`borderColor-${i}`],o&&N[`backgroundColor-${o}`],s),...l,children:c})},oe=({title:e,subtitle:t,className:r,children:i,...o})=>(0,n.jsxs)(`div`,{className:a(N.header,r),...o,children:[e&&(0,n.jsx)(`h3`,{className:N.title,children:e}),t&&(0,n.jsx)(`p`,{className:N.subtitle,children:t}),i]}),se=({className:e,children:t,...r})=>(0,n.jsx)(`div`,{className:a(N.content,e),...r,children:t}),ce=({className:e,children:t,...r})=>(0,n.jsx)(`div`,{className:a(N.footer,e),...r,children:t}),P={wrapper:`_wrapper_mfefa_1`,container:`_container_mfefa_7`,disabled:`_disabled_mfefa_15`,input:`_input_mfefa_20`,control:`_control_mfefa_28`,checkmark:`_checkmark_mfefa_57`,label:`_label_mfefa_68`,error:`_error_mfefa_75`,helperText:`_helperText_mfefa_79`,errorText:`_errorText_mfefa_86`},le=({label:e,error:r,helperText:i,className:o,disabled:s,id:c,...l})=>{let u=(0,t.useId)(),d=c??`ds-checkbox-${u}`,f=i?`${d}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(P.wrapper,o),children:[(0,n.jsxs)(`label`,{htmlFor:d,className:a(P.container,s&&P.disabled,r&&P.error),children:[(0,n.jsx)(`input`,{type:`checkbox`,id:d,disabled:s,className:P.input,"aria-describedby":f,"aria-invalid":r||void 0,...l}),(0,n.jsx)(`span`,{className:P.control,children:(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`,strokeLinejoin:`round`,className:P.checkmark,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),e&&(0,n.jsx)(`span`,{className:P.label,children:e})]}),i&&(0,n.jsx)(`span`,{id:f,className:a(P.helperText,r&&P.errorText),children:i})]})},F={wrapper:`_wrapper_qhe61_1`,fullWidth:`_fullWidth_qhe61_9`,label:`_label_qhe61_13`,container:`_container_qhe61_19`,trigger:`_trigger_qhe61_23`,error:`_error_qhe61_54`,sm:`_sm_qhe61_58`,lg:`_lg_qhe61_63`,icon:`_icon_qhe61_68`,isOpen:`_isOpen_qhe61_74`,menu:`_menu_qhe61_78`,option:`_option_qhe61_95`,optionFocused:`_optionFocused_qhe61_104`,optionSelected:`_optionSelected_qhe61_108`,optionDisabled:`_optionDisabled_qhe61_118`,optionLabel:`_optionLabel_qhe61_124`,optionDescription:`_optionDescription_qhe61_128`,helperText:`_helperText_qhe61_133`,errorText:`_errorText_qhe61_138`},ue=({options:e,value:r,defaultValue:i,onChange:o,placeholder:s=`Select an option`,label:c,helperText:l,error:u,disabled:d,size:f=`md`,className:p,id:m,fullWidth:h=!1})=>{let g=(0,t.useId)(),_=m??`ds-dropdown-${g}`,v=l?`${_}-help`:void 0,[y,b]=(0,t.useState)(!1),[x,S]=(0,t.useState)(i),[C,w]=(0,t.useState)(-1),T=(0,t.useRef)(null),E=(0,t.useRef)(null),D=r===void 0?x:r,O=e.find(e=>e.value===D),ee=C>=0?`${_}-opt-${C}`:void 0,k=()=>{if(!d){let t=!y;if(b(t),t){if(C===-1){let t=e.findIndex(e=>e.value===D);w(t>=0?t:0)}}else w(-1)}},te=(e,t)=>{e.disabled||(r===void 0&&S(e.value),o?.(e.value),b(!1),w(t),E.current?.focus())};return(0,t.useEffect)(()=>{y&&C>=0&&document.getElementById(`${_}-opt-${C}`)?.scrollIntoView({block:`nearest`})},[C,y,_]),(0,t.useEffect)(()=>{let e=e=>{T.current&&!T.current.contains(e.target)&&(b(!1),w(-1))};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,n.jsxs)(`div`,{className:a(F.wrapper,F[f],h&&F.fullWidth,u&&F.error,p),ref:T,children:[c&&(0,n.jsx)(`label`,{htmlFor:_,className:F.label,children:c}),(0,n.jsxs)(`div`,{className:F.container,children:[(0,n.jsxs)(`button`,{id:_,ref:E,type:`button`,className:a(F.trigger,y&&F.isOpen),onClick:k,onKeyDown:t=>{if(!d)switch(t.key){case`ArrowDown`:t.preventDefault(),y?w(t=>t<e.length-1?t+1:t):(b(!0),w(e.findIndex(e=>e.value===D)||0));break;case`ArrowUp`:t.preventDefault(),y?w(e=>e>0?e-1:e):(b(!0),w(e.findIndex(e=>e.value===D)||e.length-1));break;case`Enter`:case` `:t.preventDefault(),y?C>=0&&te(e[C],C):(b(!0),w(e.findIndex(e=>e.value===D)||0));break;case`Escape`:y&&(t.preventDefault(),b(!1),w(-1),E.current?.focus());break;case`Tab`:y&&(b(!1),w(-1));break;case`Home`:y&&(t.preventDefault(),w(0));break;case`End`:y&&(t.preventDefault(),w(e.length-1));break;default:break}},disabled:d,"aria-haspopup":`listbox`,"aria-expanded":y,"aria-describedby":v,"aria-invalid":u||void 0,"aria-controls":y?`${_}-menu`:void 0,"aria-activedescendant":y?ee:void 0,children:[(0,n.jsx)(`span`,{className:F.selectedLabel,children:O?O.label:s}),(0,n.jsx)(`span`,{className:F.icon,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M2.5 4.5L6 8L9.5 4.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),y&&(0,n.jsx)(`ul`,{id:`${_}-menu`,className:F.menu,role:`listbox`,"aria-labelledby":c?void 0:_,children:e.map((e,t)=>{let r=e.value===D,i=t===C;return(0,n.jsxs)(`li`,{id:`${_}-opt-${t}`,role:`option`,"aria-selected":r,className:a(F.option,r&&F.optionSelected,i&&F.optionFocused,e.disabled&&F.optionDisabled),onClick:()=>te(e,t),onMouseEnter:()=>!e.disabled&&w(t),children:[(0,n.jsx)(`span`,{className:F.optionLabel,children:e.label}),e.description&&(0,n.jsx)(`span`,{className:F.optionDescription,children:e.description})]},e.value)})})]}),l&&(0,n.jsx)(`span`,{id:v,className:a(F.helperText,u&&F.errorText),children:l})]})},de={root:`_root_1one2_1`,horizontal:`_horizontal_1one2_13`,vertical:`_vertical_1one2_21`},fe=e=>typeof e==`number`?`${e}px`:e,pe=({orientation:e=`horizontal`,thickness:t,length:r,spacing:i,inset:o,className:s,style:c,...l})=>{let u={...c,"--divider-thickness":fe(t),"--divider-length":fe(r),"--divider-spacing":fe(i),"--divider-inset":fe(o)};return e===`vertical`?(0,n.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:a(de.root,de.vertical,s),style:u,...l}):(0,n.jsx)(`hr`,{className:a(de.root,de.horizontal,s),style:u,...l})},I={root:`_root_1ujj3_1`,container:`_container_1ujj3_8`,sideContainer:`_sideContainer_1ujj3_18`,leftSide:`_leftSide_1ujj3_24`,rightSide:`_rightSide_1ujj3_28`,actions:`_actions_1ujj3_32`,title:`_title_1ujj3_44`,welcome:`_welcome_1ujj3_52`},me=({id:e,logo:t,title:r,user:i,onLogin:o,onLogout:s,onCreateAccount:c,className:l,maxWidth:u})=>{let d={size:`sm`,intent:`info`};return(0,n.jsx)(`header`,{id:e,className:a(I.root,l),children:(0,n.jsxs)(`div`,{className:I.container,style:{maxWidth:u},children:[(0,n.jsxs)(`div`,{className:a(I.sideContainer,I.leftSide),children:[t,r?(0,n.jsx)(`h1`,{className:I.title,children:r}):null]}),(0,n.jsx)(`div`,{className:a(I.sideContainer,I.rightSide),children:i?(0,n.jsxs)(`div`,{className:I.actions,children:[(0,n.jsxs)(`span`,{className:I.welcome,children:[`Welcome, `,(0,n.jsx)(`strong`,{children:i.name}),`!`]}),(0,n.jsx)(C,{...d,onClick:s,children:`Log out`})]}):(0,n.jsxs)(`div`,{className:I.actions,children:[o?(0,n.jsx)(C,{...d,onClick:o,children:`Log in`}):null,c?(0,n.jsx)(C,{size:`sm`,intent:`info`,variant:`solid`,onClick:c,children:`Sign up`}):null]})})]})})},L={root:`_root_1eu6u_1`,container:`_container_1eu6u_7`,leftSection:`_leftSection_1eu6u_16`,nav:`_nav_1eu6u_22`,navList:`_navList_1eu6u_28`,navItem:`_navItem_1eu6u_36`,navLink:`_navLink_1eu6u_41`,disabled:`_disabled_1eu6u_59`,active:`_active_1eu6u_63`,rightSection:`_rightSection_1eu6u_73`},he=({id:e,items:t,activeId:r,logo:i,actions:o,onItemClick:s,className:c,maxWidth:l})=>(0,n.jsx)(`nav`,{id:e,className:a(L.root,c),children:(0,n.jsxs)(`div`,{className:L.container,style:{maxWidth:l},children:[i&&(0,n.jsx)(`div`,{className:L.leftSection,children:i}),(0,n.jsx)(`div`,{className:L.nav,children:(0,n.jsx)(`ul`,{className:L.navList,children:t.map(e=>(0,n.jsx)(`li`,{className:L.navItem,children:(0,n.jsx)(`button`,{type:`button`,className:a(L.navLink,r===e.id&&L.active,e.disabled&&L.disabled),onClick:()=>!e.disabled&&s?.(e.id),disabled:e.disabled,"aria-current":r===e.id?`page`:void 0,children:e.label})},e.id))})}),o&&(0,n.jsx)(`div`,{className:L.rightSection,children:o})]})}),R={wrapper:`_wrapper_15ibj_1`,fullWidth:`_fullWidth_15ibj_8`,label:`_label_15ibj_13`,inputRoot:`_inputRoot_15ibj_20`,sm:`_sm_15ibj_56`,md:`_md_15ibj_62`,lg:`_lg_15ibj_72`,error:`_error_15ibj_79`,helperText:`_helperText_15ibj_88`,errorText:`_errorText_15ibj_94`},ge=({size:e=`md`,error:r,label:i,helperText:o,fullWidth:s=!1,className:c,id:l,...u})=>{let d=(0,t.useId)(),f=l??`ds-input-${d}`,p=o?`${f}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(R.wrapper,s&&R.fullWidth,c),children:[i&&(0,n.jsx)(`label`,{htmlFor:f,className:R.label,children:i}),(0,n.jsx)(`input`,{id:f,className:a(R.inputRoot,R[e],r&&R.error),"aria-describedby":p,"aria-invalid":r||void 0,...u}),o&&(0,n.jsx)(`span`,{id:p,className:a(R.helperText,r&&R.errorText),children:o})]})},_e={loader:`_loader_wvz8q_1`,spin:`_spin_wvz8q_1`,neutral:`_neutral_wvz8q_10`,info:`_info_wvz8q_13`,success:`_success_wvz8q_16`,warning:`_warning_wvz8q_19`,danger:`_danger_wvz8q_22`,sm:`_sm_wvz8q_27`,md:`_md_wvz8q_33`,lg:`_lg_wvz8q_39`},ve=({id:e,size:t=`md`,intent:r=`neutral`,className:i})=>(0,n.jsx)(`div`,{id:e,className:a(_e.loader,_e[t],_e[r],i),role:`status`,"aria-label":`Loading`}),ye=`_root_16t5p_1`,be=`_unordered_16t5p_6`,xe=`_ordered_16t5p_11`,Se=`_none_16t5p_16`,Ce=`_flex_16t5p_57`,z={root:ye,unordered:be,ordered:xe,none:Se,"gap-0":`_gap-0_16t5p_21`,"gap-1":`_gap-1_16t5p_24`,"gap-2":`_gap-2_16t5p_27`,"gap-3":`_gap-3_16t5p_30`,"gap-4":`_gap-4_16t5p_33`,"gap-5":`_gap-5_16t5p_36`,"gap-6":`_gap-6_16t5p_39`,"gap-8":`_gap-8_16t5p_42`,"gap-10":`_gap-10_16t5p_45`,"gap-12":`_gap-12_16t5p_48`,"gap-14":`_gap-14_16t5p_51`,flex:Ce},we={item:`_item_1x04p_1`,iconWrapper:`_iconWrapper_1x04p_6`},Te=({children:e,icon:t,className:r,...i})=>(0,n.jsxs)(`li`,{className:a(we.item,r),...i,children:[t&&(0,n.jsx)(`span`,{className:we.iconWrapper,children:t}),(0,n.jsx)(`div`,{className:we.content,children:e})]}),Ee=({children:e,variant:t=`unordered`,spacing:r=0,className:i,margin:o,marginX:s,marginY:c,marginTop:l,marginBottom:u,marginLeft:d,marginRight:f,padding:p,paddingX:m,paddingY:h,paddingTop:g,paddingBottom:v,paddingLeft:y,paddingRight:b,style:x,...S})=>{let C=t===`ordered`?`ol`:`ul`,w={...x,..._(`padding`,p,m,h,g,v,y,b),..._(`margin`,o,s,c,l,u,d,f),"--list-spacing":typeof r==`number`?`${r*.25}rem`:r};return(0,n.jsx)(C,{className:a(z.root,z[t],typeof r==`number`&&z[`gap-${r}`],(t===`none`||typeof r==`number`&&r>0||typeof r==`string`)&&z.flex,typeof p==`number`&&z[`p-${p}`],typeof m==`number`&&z[`px-${m}`],typeof h==`number`&&z[`py-${h}`],typeof g==`number`&&z[`pt-${g}`],typeof v==`number`&&z[`pb-${v}`],typeof y==`number`&&z[`pl-${y}`],typeof b==`number`&&z[`pr-${b}`],typeof o==`number`&&z[`margin-${o}`],typeof s==`number`&&z[`marginX-${s}`],typeof c==`number`&&z[`marginY-${c}`],typeof l==`number`&&z[`marginTop-${l}`],typeof u==`number`&&z[`marginBottom-${u}`],typeof d==`number`&&z[`marginLeft-${d}`],typeof f==`number`&&z[`marginRight-${f}`],i),style:w,...S,children:e})};Ee.Item=Te;var B={overlay:`_overlay_ay3tu_1`,modal:`_modal_ay3tu_15`,header:`_header_ay3tu_27`,title:`_title_ay3tu_35`,closeButton:`_closeButton_ay3tu_43`,content:`_content_ay3tu_55`,footer:`_footer_ay3tu_61`,sm:`_sm_ay3tu_72`,md:`_md_ay3tu_75`,lg:`_lg_ay3tu_78`,xl:`_xl_ay3tu_81`,full:`_full_ay3tu_84`,loading:`_loading_ay3tu_89`},De=({isOpen:e,onClose:i,title:o,children:s,footer:c,size:l=`md`,isLoading:u=!1,className:d,id:f})=>{let p=(0,t.useRef)(null),m=(0,t.useRef)(null),h=(0,t.useRef)(i),g=(0,t.useId)(),_=f??`ds-modal-${g}`,v=`${_}-title`;return(0,t.useEffect)(()=>{h.current=i},[i]),(0,t.useEffect)(()=>{let t=e=>{if(e.key===`Escape`&&!u){h.current();return}if(e.key===`Tab`&&p.current){let t=p.current.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`),n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(r.focus(),e.preventDefault()):document.activeElement===r&&(n.focus(),e.preventDefault())}};return e&&(m.current=document.activeElement,document.body.style.overflow=`hidden`,window.addEventListener(`keydown`,t),requestAnimationFrame(()=>{let e=p.current?.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);e&&e.length>0&&e[0].focus()})),()=>{document.body.style.overflow=`unset`,window.removeEventListener(`keydown`,t),m.current?.focus()}},[e,u]),e?(0,r.createPortal)((0,n.jsx)(`div`,{className:B.overlay,onClick:()=>!u&&i(),children:(0,n.jsxs)(`div`,{id:_,className:a(B.modal,B[l],u&&B.loading,d),onClick:e=>e.stopPropagation(),role:`dialog`,"aria-modal":`true`,"aria-labelledby":o?v:void 0,ref:p,children:[(0,n.jsxs)(`div`,{className:B.header,children:[o&&(0,n.jsx)(`h2`,{id:v,className:B.title,children:o}),(0,n.jsx)(C,{variant:`subtle`,size:`sm`,onClick:i,className:B.closeButton,"aria-label":`Close modal`,disabled:u,children:(0,n.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 10 10`,fill:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M1 1L9 9M9 1L1 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})})})]}),(0,n.jsx)(`div`,{className:B.content,children:s}),c&&(0,n.jsx)(`div`,{className:B.footer,children:c})]})}),document.body):null},Oe={root:`_root_1bwyw_1`,content:`_content_1bwyw_13`,title:`_title_1bwyw_17`,message:`_message_1bwyw_23`,closeButton:`_closeButton_1bwyw_29`,neutral:`_neutral_1bwyw_44`,info:`_info_1bwyw_50`,success:`_success_1bwyw_56`,warning:`_warning_1bwyw_62`,danger:`_danger_1bwyw_68`},ke=({intent:e=`neutral`,title:t,children:r,onClose:i,className:o,...s})=>(0,n.jsxs)(`div`,{className:a(Oe.root,Oe[e],o),role:`alert`,...s,children:[(0,n.jsxs)(`div`,{className:Oe.content,children:[t&&(0,n.jsx)(`div`,{className:Oe.title,children:t}),(0,n.jsx)(`div`,{className:Oe.message,children:r})]}),i&&(0,n.jsx)(C,{variant:`subtle`,size:`xs`,onClick:i,className:Oe.closeButton,"aria-label":`Close notification`,children:(0,n.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 10 10`,fill:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M1 1L9 9M9 1L1 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})})})]}),V={root:`_root_o4mj7_1`,list:`_list_o4mj7_6`,item:`_item_o4mj7_15`,ellipsis:`_ellipsis_o4mj7_19`,pageButton:`_pageButton_o4mj7_29`},Ae=(e,t,n)=>Math.min(Math.max(e,t),n),je=(e,t)=>{let n=[];for(let r=e;r<=t;r+=1)n.push(r);return n},Me=(e,t,n,r,i)=>{if(e<=0)return[];if(!i||e<=n*2+1+r*2+2)return je(1,e);let a=je(1,Math.min(r,e)),o=je(Math.max(e-r+1,r+1),e),s=Math.max(t-n,r+2),c=Math.min(t+n,e-r-1),l=s>r+2,u=c<e-r-1,d=[...a],f=l?s:r+1,p=u?c:e-r;return l&&d.push(`ellipsis`),f<=p&&d.push(...je(f,p)),u&&d.push(`ellipsis`),d.push(...o),d},Ne=({id:e,count:r,page:i,defaultPage:o=1,onPageChange:s,onFirstClick:c,onLastClick:l,onNextClick:u,onPrevClick:d,siblingCount:f=1,boundaryCount:p=1,showFirstLast:m=!0,showPrevNext:h=!0,showEllipsis:g=!0,disabled:_=!1,size:v=`sm`,variant:y=`outline`,intent:b=`neutral`,activeVariant:x=`solid`,activeIntent:S,labels:w,ariaLabel:T=`Pagination`,getPageLabel:E,className:D})=>{let O=(0,t.useId)(),ee=e??`ds-pagination-${O}`,[k,te]=(0,t.useState)(o),A=Math.max(0,r),j=Ae(i??k,1,Math.max(1,A)),ne=(0,t.useMemo)(()=>Me(A,j,f,p,g),[A,j,f,p,g]),M=e=>{_||e===j||(i===void 0&&te(e),s?.(e))},re=()=>{M(1),c?.(1)},ie=()=>{let e=A;M(e),l?.(e)},N=()=>{let e=Math.max(1,j-1);M(e),d?.(e)},ae=()=>{let e=Math.min(A,j+1);M(e),u?.(e)};return A<=0?null:(0,n.jsx)(`nav`,{id:ee,"aria-label":T,className:a(V.root,D),children:(0,n.jsxs)(`ul`,{className:V.list,children:[m&&(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:y,intent:b,className:V.pageButton,onClick:re,disabled:_||j===1,"aria-label":`Go to first page`,children:w?.first??`First`})}),h&&(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:y,intent:b,className:V.pageButton,onClick:N,disabled:_||j===1,"aria-label":`Go to previous page`,children:w?.prev??`Prev`})}),ne.map((e,t)=>{if(e===`ellipsis`)return(0,n.jsx)(`li`,{className:V.item,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:V.ellipsis,children:`…`})},`ellipsis-${t}`);let r=e===j,i=E?.(e,r)??`Page ${e}${r?`, current page`:``}`;return(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:r?x:y,intent:r?S??b:b,className:V.pageButton,onClick:()=>M(e),disabled:_,"aria-current":r?`page`:void 0,"aria-label":i,children:e})},e)}),h&&(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:y,intent:b,className:V.pageButton,onClick:ae,disabled:_||j===A,"aria-label":`Go to next page`,children:w?.next??`Next`})}),m&&(0,n.jsx)(`li`,{className:V.item,children:(0,n.jsx)(C,{size:v,variant:y,intent:b,className:V.pageButton,onClick:ie,disabled:_||j===A,"aria-label":`Go to last page`,children:w?.last??`Last`})})]})})},H={wrapper:`_wrapper_16yvn_1`,labelWrapper:`_labelWrapper_16yvn_8`,label:`_label_16yvn_8`,percentage:`_percentage_16yvn_21`,progressRoot:`_progressRoot_16yvn_27`,indicator:`_indicator_16yvn_34`,sm:`_sm_16yvn_40`,md:`_md_16yvn_44`,lg:`_lg_16yvn_48`,info:`_info_16yvn_53`,success:`_success_16yvn_57`,warning:`_warning_16yvn_61`,danger:`_danger_16yvn_65`},Pe=({value:e,max:r=100,size:i=`md`,intent:o=`info`,showLabel:s=!1,label:c,className:l,id:u})=>{let d=(0,t.useId)(),f=u??`ds-progressbar-${d}`,p=r>0?r:0,m=Math.min(Math.max(0,e),p),h=p>0?Math.min(Math.max(0,m/p*100),100):0,g=c?`${f}-label`:void 0;return(0,n.jsxs)(`div`,{id:f,className:a(H.wrapper,H[i],H[o],l),children:[(c||s)&&(0,n.jsxs)(`div`,{className:H.labelWrapper,children:[c&&(0,n.jsx)(`span`,{id:g,className:H.label,children:c}),s&&(0,n.jsxs)(`span`,{className:H.percentage,children:[Math.round(h),`%`]})]}),(0,n.jsx)(`div`,{className:H.progressRoot,role:`progressbar`,"aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":r,"aria-labelledby":g,"aria-label":c?void 0:`Progress`,children:(0,n.jsx)(`div`,{className:H.indicator,style:{width:`${h}%`}})})]})},U={wrapper:`_wrapper_92sko_1`,fullWidth:`_fullWidth_92sko_8`,header:`_header_92sko_13`,label:`_label_92sko_20`,value:`_value_92sko_27`,sliderRoot:`_sliderRoot_92sko_33`,track:`_track_92sko_46`,activeTrack:`_activeTrack_92sko_57`,inputRoot:`_inputRoot_92sko_66`,disabled:`_disabled_92sko_80`,inputStart:`_inputStart_92sko_150`,inputEnd:`_inputEnd_92sko_154`,sm:`_sm_92sko_158`,md:`_md_92sko_163`,lg:`_lg_92sko_168`,helperText:`_helperText_92sko_173`,inputsRow:`_inputsRow_92sko_179`,singleInputRow:`_singleInputRow_92sko_187`,separator:`_separator_92sko_191`},W=(e,t)=>{if(e==null)return t;let n=typeof e==`number`?e:Number(e);return Number.isNaN(n)?t:n},Fe=(e,t,n)=>Math.min(Math.max(e,t),n),Ie=(e,t,n,r)=>Fe(r==null||r===`any`||r<=0?e:t+Math.round((e-t)/r)*r,t,n),Le=(e,t,n)=>{if(Array.isArray(e)){let r=Fe(W(e[0],t),t,n),i=Fe(W(e[1],n),t,n);return r<=i?[r,i]:[i,r]}let r=Fe(W(e,t),t,n);return[r,r]},Re=({size:e=`md`,label:r,helperText:i,fullWidth:o=!1,showValue:s=!1,showInputs:c=!1,className:l,id:u,value:d,defaultValue:f,onValueChange:p,...m})=>{let h=(0,t.useId)(),g=u??`ds-slider-${h}`,_=i?`${g}-help`:void 0,v=W(m.min,0),y=W(m.max,100),b=m.step===`any`?`any`:W(m.step,1),x=Array.isArray(d)||Array.isArray(f),[S,C]=(0,t.useState)((0,t.useMemo)(()=>Le(f??d,v,y),[f,y,v,d])),[w,T]=d==null?S:Le(d,v,y),E=x?`${w} - ${T}`:String(w),D=Math.max(y-v,1),O=(w-v)/D*100,ee=(T-v)/D*100,k=e=>{d??C(e),p?.(x?e:e[0])},te=e=>{if(!e.trim())return;let t=Number(e);Number.isNaN(t)||k([Ie(t,v,x?T:y,b),T])},A=e=>{if(!e.trim())return;let t=Number(e);Number.isNaN(t)||k([w,Ie(t,w,y,b)])};return(0,n.jsxs)(`div`,{className:a(U.wrapper,o&&U.fullWidth,l),children:[(r||s)&&(0,n.jsxs)(`div`,{className:U.header,children:[r&&(0,n.jsx)(`label`,{htmlFor:g,className:U.label,children:r}),s&&(0,n.jsx)(`span`,{className:U.value,children:E})]}),(0,n.jsxs)(`div`,{className:a(U.sliderRoot,U[e],m.disabled&&U.disabled),children:[(0,n.jsx)(`div`,{className:U.track}),(0,n.jsx)(`div`,{className:U.activeTrack,style:{left:`${x?O:0}%`,width:`${x?ee-O:O}%`}}),(0,n.jsx)(`input`,{id:g,type:`range`,className:a(U.inputRoot,x&&U.inputStart),"aria-describedby":_,"aria-label":r?void 0:x?`Slider minimum`:`Slider`,"aria-valuetext":s?E:void 0,...m,min:v,max:y,step:b,value:w,onChange:e=>{k([Ie(W(e.target.value,v),v,T,b),T])}}),x&&(0,n.jsx)(`input`,{id:`${g}-end`,type:`range`,className:a(U.inputRoot,U.inputEnd),"aria-describedby":_,"aria-label":r?`${r} maximum`:`Slider maximum`,...m,min:v,max:y,step:b,value:T,onChange:e=>{k([w,Ie(W(e.target.value,y),w,y,b)])}})]}),c&&(0,n.jsxs)(`div`,{className:a(U.inputsRow,!x&&U.singleInputRow),children:[(0,n.jsx)(ge,{type:`number`,inputMode:`decimal`,size:e,defaultValue:w,min:v,max:x?T:y,step:b,"aria-label":r?`${r} minimum input`:x?`Slider minimum input`:`Slider input`,fullWidth:!0,onBlur:e=>{te(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&te(e.currentTarget.value)}},`slider-start-${w}-${T}`),x&&(0,n.jsx)(`span`,{className:U.separator,children:`-`}),x&&(0,n.jsx)(ge,{type:`number`,inputMode:`decimal`,size:e,defaultValue:T,min:w,max:y,step:b,"aria-label":r?`${r} maximum input`:`Slider maximum input`,fullWidth:!0,onBlur:e=>{A(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&A(e.currentTarget.value)}},`slider-end-${w}-${T}`)]}),i&&(0,n.jsx)(`span`,{id:_,className:U.helperText,children:i})]})},G={wrapper:`_wrapper_4v5ks_1`,label:`_label_4v5ks_7`,sm:`_sm_4v5ks_17`,md:`_md_4v5ks_20`,lg:`_lg_4v5ks_23`,inputWrapper:`_inputWrapper_4v5ks_27`,radioRoot:`_radioRoot_4v5ks_34`,checkmark:`_checkmark_4v5ks_44`,labelText:`_labelText_4v5ks_127`,error:`_error_4v5ks_133`,helperText:`_helperText_4v5ks_142`,errorText:`_errorText_4v5ks_156`},ze=({size:e=`md`,label:r,helperText:i,error:o,className:s,id:c,...l})=>{let u=(0,t.useId)(),d=c??`ds-radio-${u}`,f=i?`${d}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(G.wrapper,s),children:[(0,n.jsxs)(`label`,{htmlFor:d,className:a(G.label,G[e]),children:[(0,n.jsxs)(`div`,{className:G.inputWrapper,children:[(0,n.jsx)(`input`,{type:`radio`,id:d,className:a(G.radioRoot,G[e],o&&G.error),"aria-describedby":f,"aria-invalid":o||void 0,...l}),(0,n.jsx)(`span`,{className:G.checkmark})]}),r&&(0,n.jsx)(`span`,{className:G.labelText,children:r})]}),i&&(0,n.jsx)(`span`,{id:f,className:a(G.helperText,o&&G.errorText),children:i})]})},Be={root:`_root_1qfdr_1`,text:`_text_1qfdr_6`,rectangular:`_rectangular_1qfdr_15`,rounded:`_rounded_1qfdr_19`,circular:`_circular_1qfdr_23`,pulse:`_pulse_1qfdr_28`,wave:`_wave_1qfdr_44`},Ve=({variant:e=`rectangular`,width:t,height:r,animation:i=`pulse`,className:o,style:s,"aria-hidden":c,...l})=>(0,n.jsx)(v,{className:a(Be.root,Be[e],i!==`none`&&Be[i],o),width:t,height:r,style:s,"aria-hidden":c??!0,...l}),He=`_step_69ymb_1`,Ue=`_stepRow_69ymb_18`,We=`_interactive_69ymb_28`,Ge=`_marker_69ymb_48`,Ke=`_text_69ymb_67`,qe=`_label_69ymb_74`,Je=`_description_69ymb_83`,Ye=`_connector_69ymb_92`,Xe=`_completed_69ymb_110`,Ze=`_current_69ymb_124`,Qe=`_error_69ymb_138`,$e=`_upcoming_69ymb_152`,et=`_disabled_69ymb_156`,K={step:He,stepRow:Ue,interactive:We,marker:Ge,text:Ke,label:qe,description:Je,connector:Ye,completed:Xe,"connector-completed":`_connector-completed_69ymb_120`,current:Ze,"connector-current":`_connector-current_69ymb_134`,error:Qe,"connector-error":`_connector-error_69ymb_148`,upcoming:$e,disabled:et},tt=({step:e,index:t,status:r,isInteractive:i,onStepClick:o,isLast:s,id:c,className:l})=>{let u=!!e.disabled,d=i?`button`:`div`,f=r===`error`?`!`:String(t+1);return(0,n.jsxs)(`li`,{className:a(K.step,K[r],u&&K.disabled,l),children:[(0,n.jsxs)(d,{id:c,type:i?`button`:void 0,className:a(K.stepRow,i&&K.interactive),onClick:()=>{i&&!u&&o?.(e,t)},onKeyDown:n=>{i&&!u&&(n.key===`Enter`||n.key===` `)&&(n.preventDefault(),o?.(e,t))},"aria-current":r===`current`?`step`:void 0,"aria-disabled":u?!0:void 0,disabled:i&&u?!0:void 0,tabIndex:i&&!u?0:void 0,children:[(0,n.jsx)(`span`,{className:K.marker,"aria-hidden":`true`,children:f}),(0,n.jsxs)(`span`,{className:K.text,children:[(0,n.jsx)(`span`,{className:K.label,children:e.label}),e.description&&(0,n.jsx)(`span`,{className:K.description,children:e.description})]})]}),!s&&(0,n.jsx)(`span`,{className:a(K.connector,K[`connector-${r}`]),"aria-hidden":`true`})]})},nt={root:`_root_cxvk2_1`,sm:`_sm_cxvk2_15`,lg:`_lg_cxvk2_22`,horizontal:`_horizontal_cxvk2_29`,vertical:`_vertical_cxvk2_35`},rt=(e,t)=>Number.isNaN(e)||t<=0?-1:Math.min(Math.max(e,0),t-1),it=(e,t)=>typeof e==`number`?rt(e,t.length):typeof e==`string`?t.findIndex(t=>t.id===e):t.findIndex(e=>e.status===`current`),at=(e,t,n)=>n||(t===-1?`upcoming`:e<t?`completed`:e===t?`current`:`upcoming`),ot=({steps:e,currentStep:r,orientation:i=`horizontal`,size:o=`md`,onStepClick:s,ariaLabel:c,className:l,id:u,...d})=>{let f=(0,t.useId)(),p=u??`ds-stepper-${f}`,m=it(r,e),h=c??`Progress`;return(0,n.jsx)(`ol`,{id:p,className:a(nt.root,nt[i],nt[o],l),"aria-label":h,"data-orientation":i,...d,children:e.map((t,r)=>(0,n.jsx)(tt,{id:`${p}-step-${t.id}`,step:t,index:r,status:at(r,m,t.status),isInteractive:!!s,onStepClick:s,isLast:r===e.length-1},t.id))})},q={wrapper:`_wrapper_vo2yb_1`,fullWidth:`_fullWidth_vo2yb_8`,label:`_label_vo2yb_13`,selectRoot:`_selectRoot_vo2yb_20`,sm:`_sm_vo2yb_58`,md:`_md_vo2yb_65`,lg:`_lg_vo2yb_72`,error:`_error_vo2yb_80`,helperText:`_helperText_vo2yb_89`,errorText:`_errorText_vo2yb_95`},st=({size:e=`md`,error:r,label:i,helperText:o,fullWidth:s=!1,className:c,id:l,options:u,children:d,...f})=>{let p=(0,t.useId)(),m=l??`ds-select-${p}`,h=o?`${m}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(q.wrapper,s&&q.fullWidth,c),children:[i&&(0,n.jsx)(`label`,{htmlFor:m,className:q.label,children:i}),(0,n.jsx)(`select`,{id:m,className:a(q.selectRoot,q[e],r&&q.error),"aria-describedby":h,"aria-invalid":r||void 0,...f,children:u?u.map(e=>(0,n.jsx)(`option`,{value:e.value,disabled:e.disabled,children:e.label},e.value)):d}),o&&(0,n.jsx)(`span`,{id:h,className:a(q.helperText,r&&q.errorText),children:o})]})},J={wrapper:`_wrapper_196po_1`,container:`_container_196po_7`,disabled:`_disabled_196po_15`,input:`_input_196po_20`,track:`_track_196po_27`,thumb:`_thumb_196po_46`,label:`_label_196po_62`,helperText:`_helperText_196po_69`},ct=({label:e,helperText:r,className:i,disabled:o,id:s,...c})=>{let l=(0,t.useId)(),u=s??`ds-switch-${l}`,d=r?`${u}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(J.wrapper,i),children:[(0,n.jsxs)(`label`,{htmlFor:u,className:a(J.container,o&&J.disabled),children:[(0,n.jsx)(`input`,{type:`checkbox`,id:u,role:`switch`,disabled:o,className:J.input,"aria-describedby":d,...c}),(0,n.jsx)(`span`,{className:J.track,children:(0,n.jsx)(`span`,{className:J.thumb})}),e&&(0,n.jsx)(`span`,{className:J.label,children:e})]}),r&&(0,n.jsx)(`span`,{id:d,className:J.helperText,children:r})]})},lt=`_wrapper_1w3cj_1`,ut=`_table_1w3cj_8`,dt=`_thead_1w3cj_17`,ft=`_tbody_1w3cj_22`,pt=`_tr_1w3cj_22`,mt=`_th_1w3cj_17`,ht=`_td_1w3cj_40`,gt=`_striped_1w3cj_46`,_t=`_hoverable_1w3cj_50`,vt=`_dense_1w3cj_54`,yt=`_loading_1w3cj_75`,Y={wrapper:lt,table:ut,thead:dt,tbody:ft,tr:pt,th:mt,td:ht,striped:gt,hoverable:_t,dense:vt,"align-left":`_align-left_1w3cj_62`,"align-center":`_align-center_1w3cj_65`,"align-right":`_align-right_1w3cj_68`,"align-justify":`_align-justify_1w3cj_71`,loading:yt},bt=({children:e,className:t,striped:r,hoverable:i,dense:o,isLoading:s,...c})=>(0,n.jsx)(`div`,{className:a(Y.wrapper,s&&Y.loading,t),children:(0,n.jsx)(`table`,{className:a(Y.table,r&&Y.striped,i&&Y.hoverable,o&&Y.dense),"aria-busy":s||void 0,...c,children:e})}),xt=({children:e,className:t,...r})=>(0,n.jsx)(`thead`,{className:a(Y.thead,t),...r,children:e}),St=({children:e,className:t,...r})=>(0,n.jsx)(`tbody`,{className:a(Y.tbody,t),...r,children:e}),Ct=({children:e,className:t,...r})=>(0,n.jsx)(`tfoot`,{className:a(Y.tfoot,t),...r,children:e}),wt=({children:e,className:t,...r})=>(0,n.jsx)(`tr`,{className:a(Y.tr,t),...r,children:e}),Tt=({children:e,className:t,align:r,...i})=>(0,n.jsx)(`th`,{className:a(Y.th,r&&Y[`align-${r}`],t),...i,children:e}),Et=({children:e,className:t,align:r,...i})=>(0,n.jsx)(`td`,{className:a(Y.td,r&&Y[`align-${r}`],t),...i,children:e}),X={root:`_root_1luck_1`,tabList:`_tabList_1luck_8`,tabItem:`_tabItem_1luck_16`,disabled:`_disabled_1luck_27`,active:`_active_1luck_27`,pillList:`_pillList_1luck_52`,pillItem:`_pillItem_1luck_60`,tabPanel:`_tabPanel_1luck_72`},Dt=({items:e,defaultActiveId:r,activeId:i,onChange:o,className:s,variant:c=`line`,id:l})=>{let u=(0,t.useId)(),d=l??`ds-tabs-${u}`,[f,p]=(0,t.useState)(r||(e.length>0?e[0].id:``)),m=i===void 0?f:i,h=(0,t.useRef)(null),g=(e,t)=>{t||(i===void 0&&p(e),o?.(e))},_=t=>{let n=e.filter(e=>!e.disabled),r=n.findIndex(e=>e.id===m),i=-1;if(t.key===`ArrowRight`||t.key===`ArrowDown`?i=(r+1)%n.length:t.key===`ArrowLeft`||t.key===`ArrowUp`?i=(r-1+n.length)%n.length:t.key===`Home`?i=0:t.key===`End`&&(i=n.length-1),i!==-1){t.preventDefault();let e=n[i].id;g(e);let r=h.current?.querySelectorAll(`[role="tab"]`);Array.from(r||[]).find(t=>t.getAttribute(`data-id`)===e)?.focus()}},v=e.find(e=>e.id===m);return(0,n.jsxs)(`div`,{id:d,className:a(X.root,s),children:[(0,n.jsx)(`div`,{role:`tablist`,ref:h,className:a(X.tabList,c===`pill`&&X.pillList),onKeyDown:_,children:e.map(e=>{let t=e.id===m,r=!!e.disabled,i=r?-1:t?0:-1;return(0,n.jsx)(`button`,{role:`tab`,id:`${d}-tab-${e.id}`,"aria-selected":t,"aria-controls":`${d}-panel-${e.id}`,"aria-disabled":r,tabIndex:i,disabled:r,"data-id":e.id,className:a(X.tabItem,c===`pill`&&X.pillItem,t&&X.active,r&&X.disabled),onClick:()=>g(e.id,r),children:e.label},e.id)})}),(0,n.jsx)(`div`,{role:`tabpanel`,id:`${d}-panel-${m}`,"aria-labelledby":`${d}-tab-${m}`,className:X.tabPanel,tabIndex:0,children:v?.content})]})},Ot=`_root_1onf5_1`,kt=`_h1_1onf5_9`,At=`_h2_1onf5_15`,jt=`_h3_1onf5_21`,Mt=`_h4_1onf5_27`,Nt=`_h5_1onf5_32`,Pt=`_h6_1onf5_37`,Ft=`_label_1onf5_54`,It=`_code_1onf5_61`,Lt=`_left_1onf5_70`,Rt=`_center_1onf5_73`,zt=`_right_1onf5_76`,Bt=`_justify_1onf5_79`,Vt=`_regular_1onf5_84`,Ht=`_medium_1onf5_87`,Ut=`_bold_1onf5_90`,Wt=`_noWrap_1onf5_121`,Z={root:Ot,h1:kt,h2:At,h3:jt,h4:Mt,h5:Nt,h6:Pt,"body-lg":`_body-lg_1onf5_42`,"body-md":`_body-md_1onf5_46`,"body-sm":`_body-sm_1onf5_50`,label:Ft,code:It,left:Lt,center:Rt,right:zt,justify:Bt,regular:Vt,medium:Ht,bold:Ut,"color-main":`_color-main_1onf5_95`,"color-subtle":`_color-subtle_1onf5_98`,"color-on-brand":`_color-on-brand_1onf5_104`,"color-danger":`_color-danger_1onf5_107`,"color-success":`_color-success_1onf5_110`,"color-warning":`_color-warning_1onf5_113`,"color-info":`_color-info_1onf5_116`,noWrap:Wt,"p-0":`_p-0_1onf5_128`,"p-1":`_p-1_1onf5_131`,"p-2":`_p-2_1onf5_134`,"p-3":`_p-3_1onf5_137`,"p-4":`_p-4_1onf5_140`,"p-5":`_p-5_1onf5_143`,"p-6":`_p-6_1onf5_146`,"p-8":`_p-8_1onf5_149`,"p-10":`_p-10_1onf5_152`,"p-12":`_p-12_1onf5_155`,"p-14":`_p-14_1onf5_158`,"px-0":`_px-0_1onf5_162`,"px-1":`_px-1_1onf5_166`,"px-2":`_px-2_1onf5_170`,"px-3":`_px-3_1onf5_174`,"px-4":`_px-4_1onf5_178`,"px-5":`_px-5_1onf5_182`,"px-6":`_px-6_1onf5_186`,"px-8":`_px-8_1onf5_190`,"px-10":`_px-10_1onf5_194`,"px-12":`_px-12_1onf5_198`,"px-14":`_px-14_1onf5_202`,"py-0":`_py-0_1onf5_207`,"py-1":`_py-1_1onf5_211`,"py-2":`_py-2_1onf5_215`,"py-3":`_py-3_1onf5_219`,"py-4":`_py-4_1onf5_223`,"py-5":`_py-5_1onf5_227`,"py-6":`_py-6_1onf5_231`,"py-8":`_py-8_1onf5_235`,"py-10":`_py-10_1onf5_239`,"py-12":`_py-12_1onf5_243`,"py-14":`_py-14_1onf5_247`,"pt-0":`_pt-0_1onf5_252`,"pt-1":`_pt-1_1onf5_255`,"pt-2":`_pt-2_1onf5_258`,"pt-3":`_pt-3_1onf5_261`,"pt-4":`_pt-4_1onf5_264`,"pt-5":`_pt-5_1onf5_267`,"pt-6":`_pt-6_1onf5_270`,"pt-8":`_pt-8_1onf5_273`,"pt-10":`_pt-10_1onf5_276`,"pt-12":`_pt-12_1onf5_279`,"pt-14":`_pt-14_1onf5_282`,"pb-0":`_pb-0_1onf5_286`,"pb-1":`_pb-1_1onf5_289`,"pb-2":`_pb-2_1onf5_292`,"pb-3":`_pb-3_1onf5_295`,"pb-4":`_pb-4_1onf5_298`,"pb-5":`_pb-5_1onf5_301`,"pb-6":`_pb-6_1onf5_304`,"pb-8":`_pb-8_1onf5_307`,"pb-10":`_pb-10_1onf5_310`,"pb-12":`_pb-12_1onf5_313`,"pb-14":`_pb-14_1onf5_316`,"pl-0":`_pl-0_1onf5_320`,"pl-1":`_pl-1_1onf5_323`,"pl-2":`_pl-2_1onf5_326`,"pl-3":`_pl-3_1onf5_329`,"pl-4":`_pl-4_1onf5_332`,"pl-5":`_pl-5_1onf5_335`,"pl-6":`_pl-6_1onf5_338`,"pl-8":`_pl-8_1onf5_341`,"pl-10":`_pl-10_1onf5_344`,"pl-12":`_pl-12_1onf5_347`,"pl-14":`_pl-14_1onf5_350`,"pr-0":`_pr-0_1onf5_354`,"pr-1":`_pr-1_1onf5_357`,"pr-2":`_pr-2_1onf5_360`,"pr-3":`_pr-3_1onf5_363`,"pr-4":`_pr-4_1onf5_366`,"pr-5":`_pr-5_1onf5_369`,"pr-6":`_pr-6_1onf5_372`,"pr-8":`_pr-8_1onf5_375`,"pr-10":`_pr-10_1onf5_378`,"pr-12":`_pr-12_1onf5_381`,"pr-14":`_pr-14_1onf5_384`,"gap-0":`_gap-0_1onf5_389`,"gap-1":`_gap-1_1onf5_392`,"gap-2":`_gap-2_1onf5_395`,"gap-3":`_gap-3_1onf5_398`,"gap-4":`_gap-4_1onf5_401`,"gap-5":`_gap-5_1onf5_404`,"gap-6":`_gap-6_1onf5_407`,"gap-8":`_gap-8_1onf5_410`,"gap-10":`_gap-10_1onf5_413`,"gap-12":`_gap-12_1onf5_416`,"gap-14":`_gap-14_1onf5_419`,"m-0":`_m-0_1onf5_424`,"m-1":`_m-1_1onf5_427`,"m-2":`_m-2_1onf5_430`,"m-3":`_m-3_1onf5_433`,"m-4":`_m-4_1onf5_436`,"m-5":`_m-5_1onf5_439`,"m-6":`_m-6_1onf5_442`,"m-8":`_m-8_1onf5_445`,"m-10":`_m-10_1onf5_448`,"m-12":`_m-12_1onf5_451`,"m-14":`_m-14_1onf5_454`,"mx-0":`_mx-0_1onf5_458`,"mx-1":`_mx-1_1onf5_462`,"mx-2":`_mx-2_1onf5_466`,"mx-3":`_mx-3_1onf5_470`,"mx-4":`_mx-4_1onf5_474`,"mx-5":`_mx-5_1onf5_478`,"mx-6":`_mx-6_1onf5_482`,"mx-8":`_mx-8_1onf5_486`,"mx-10":`_mx-10_1onf5_490`,"mx-12":`_mx-12_1onf5_494`,"mx-14":`_mx-14_1onf5_498`,"my-0":`_my-0_1onf5_503`,"my-1":`_my-1_1onf5_507`,"my-2":`_my-2_1onf5_511`,"my-3":`_my-3_1onf5_515`,"my-4":`_my-4_1onf5_519`,"my-5":`_my-5_1onf5_523`,"my-6":`_my-6_1onf5_527`,"my-8":`_my-8_1onf5_531`,"my-10":`_my-10_1onf5_535`,"my-12":`_my-12_1onf5_539`,"my-14":`_my-14_1onf5_543`,"mt-0":`_mt-0_1onf5_548`,"mt-1":`_mt-1_1onf5_551`,"mt-2":`_mt-2_1onf5_554`,"mt-3":`_mt-3_1onf5_557`,"mt-4":`_mt-4_1onf5_560`,"mt-5":`_mt-5_1onf5_563`,"mt-6":`_mt-6_1onf5_566`,"mt-8":`_mt-8_1onf5_569`,"mt-10":`_mt-10_1onf5_572`,"mt-12":`_mt-12_1onf5_575`,"mt-14":`_mt-14_1onf5_578`,"mb-0":`_mb-0_1onf5_582`,"mb-1":`_mb-1_1onf5_585`,"mb-2":`_mb-2_1onf5_588`,"mb-3":`_mb-3_1onf5_591`,"mb-4":`_mb-4_1onf5_594`,"mb-5":`_mb-5_1onf5_597`,"mb-6":`_mb-6_1onf5_600`,"mb-8":`_mb-8_1onf5_603`,"mb-10":`_mb-10_1onf5_606`,"mb-12":`_mb-12_1onf5_609`,"mb-14":`_mb-14_1onf5_612`,"ml-0":`_ml-0_1onf5_616`,"ml-1":`_ml-1_1onf5_619`,"ml-2":`_ml-2_1onf5_622`,"ml-3":`_ml-3_1onf5_625`,"ml-4":`_ml-4_1onf5_628`,"ml-5":`_ml-5_1onf5_631`,"ml-6":`_ml-6_1onf5_634`,"ml-8":`_ml-8_1onf5_637`,"ml-10":`_ml-10_1onf5_640`,"ml-12":`_ml-12_1onf5_643`,"ml-14":`_ml-14_1onf5_646`,"mr-0":`_mr-0_1onf5_650`,"mr-1":`_mr-1_1onf5_653`,"mr-2":`_mr-2_1onf5_656`,"mr-3":`_mr-3_1onf5_659`,"mr-4":`_mr-4_1onf5_662`,"mr-5":`_mr-5_1onf5_665`,"mr-6":`_mr-6_1onf5_668`,"mr-8":`_mr-8_1onf5_671`,"mr-10":`_mr-10_1onf5_674`,"mr-12":`_mr-12_1onf5_677`,"mr-14":`_mr-14_1onf5_680`},Gt={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,"body-lg":`p`,"body-md":`p`,"body-sm":`p`,label:`span`,code:`code`},Kt=({children:e,variant:t=`body-md`,as:r,align:i,weight:o,color:s,noWrap:c,className:l,padding:u,paddingX:d,paddingY:f,paddingTop:p,paddingBottom:m,paddingLeft:h,paddingRight:g,margin:_,marginX:v,marginY:y,marginTop:b,marginBottom:x,marginLeft:S,marginRight:C,...w})=>(0,n.jsx)(r||Gt[t]||`span`,{className:a(Z.root,Z[t],i&&Z[i],o&&Z[o],s&&Z[`color-${s}`],c&&Z.noWrap,u!==void 0&&Z[`p-${u}`],d!==void 0&&Z[`px-${d}`],f!==void 0&&Z[`py-${f}`],p!==void 0&&Z[`pt-${p}`],m!==void 0&&Z[`pb-${m}`],h!==void 0&&Z[`pl-${h}`],g!==void 0&&Z[`pr-${g}`],_!==void 0&&Z[`margin-${_}`],v!==void 0&&Z[`marginX-${v}`],y!==void 0&&Z[`marginY-${y}`],b!==void 0&&Z[`marginTop-${b}`],x!==void 0&&Z[`marginBottom-${x}`],S!==void 0&&Z[`marginLeft-${S}`],C!==void 0&&Z[`marginRight-${C}`],l),...w,children:e}),Q={wrapper:`_wrapper_idhh9_1`,fullWidth:`_fullWidth_idhh9_8`,label:`_label_idhh9_13`,textareaRoot:`_textareaRoot_idhh9_20`,sm:`_sm_idhh9_58`,md:`_md_idhh9_63`,lg:`_lg_idhh9_68`,error:`_error_idhh9_74`,helperText:`_helperText_idhh9_83`,errorText:`_errorText_idhh9_89`},qt=({size:e=`md`,error:r,label:i,helperText:o,fullWidth:s=!1,className:c,id:l,rows:u=4,...d})=>{let f=(0,t.useId)(),p=l??`ds-textarea-${f}`,m=o?`${p}-help`:void 0;return(0,n.jsxs)(`div`,{className:a(Q.wrapper,s&&Q.fullWidth,c),children:[i&&(0,n.jsx)(`label`,{htmlFor:p,className:Q.label,children:i}),(0,n.jsx)(`textarea`,{id:p,rows:u,className:a(Q.textareaRoot,Q[e],r&&Q.error),"aria-describedby":m,"aria-invalid":r||void 0,...d}),o&&(0,n.jsx)(`span`,{id:m,className:a(Q.helperText,r&&Q.errorText),children:o})]})},Jt={root:`_root_1kghr_1`,trigger:`_trigger_1kghr_6`,tooltip:`_tooltip_1kghr_10`,dark:`_dark_1kghr_22`,light:`_light_1kghr_27`,visible:`_visible_1kghr_34`,top:`_top_1kghr_39`,bottom:`_bottom_1kghr_45`,left:`_left_1kghr_51`,right:`_right_1kghr_57`},Yt=({content:e,children:r,position:i=`top`,variant:o=`dark`,delay:s=200,className:c,id:l})=>{let[u,d]=(0,t.useState)(!1),f=(0,t.useRef)(null),p=(0,t.useId)(),m=l??`ds-tooltip-${p}`,h=`${m}-content`,g=()=>{f.current=window.setTimeout(()=>{d(!0)},s)},_=()=>{f.current&&window.clearTimeout(f.current),d(!1)},v=e=>{e.key===`Escape`&&_()},y=(0,t.isValidElement)(r)?(()=>{let e=r;return(0,t.cloneElement)(e,{"aria-describedby":[e.props[`aria-describedby`],h].filter(Boolean).join(` `)})})():r;return(0,n.jsxs)(`div`,{id:m,className:a(Jt.root,c),onMouseEnter:g,onMouseLeave:_,onFocus:g,onBlur:_,onKeyDown:v,children:[(0,n.jsx)(`div`,{className:Jt.trigger,children:y}),(0,n.jsx)(`div`,{className:a(Jt.tooltip,Jt[i],Jt[o],u&&Jt.visible),id:h,role:`tooltip`,children:e})]})},Xt={root:`_root_kcagb_1`},$={item:`_item_m6oh9_1`,itemHeader:`_itemHeader_m6oh9_5`,branch:`_branch_m6oh9_21`,toggleIcon:`_toggleIcon_m6oh9_29`,key:`_key_m6oh9_39`,value:`_value_m6oh9_44`,empty:`_empty_m6oh9_49`,childGroup:`_childGroup_m6oh9_55`};function Zt(e){let t=e.closest(`[role="tree"]`);t&&(t.querySelectorAll(`[role="treeitem"]`).forEach(e=>{e.tabIndex=-1}),e.tabIndex=0,e.focus())}var Qt=({data:e,label:r,defaultExpanded:i,expandIcon:o,collapseIcon:s,isRoot:c,level:l,setSize:u,posInSet:d})=>{let[f,p]=(0,t.useState)(c?!0:i??!1),m=(0,t.useRef)(null),h=typeof e==`object`&&!!e,g=h&&(Array.isArray(e)?e.length>0:Object.keys(e).length>0),_=c?l:l+1,v=h?Array.isArray(e)?e.map((e,t)=>({key:String(t),value:e})):Object.entries(e).map(([e,t])=>({key:e,value:t})):[],y=e=>{e.stopPropagation(),g&&p(e=>!e),m.current&&Zt(m.current)},b=e=>{if(e.stopPropagation(),!m.current)return;let t=m.current.closest(`[role="tree"]`);t&&(t.querySelectorAll(`[role="treeitem"]`).forEach(e=>{e.tabIndex=-1}),m.current.tabIndex=0)},x=e=>{switch(e.key){case`Enter`:case` `:e.preventDefault(),g&&p(e=>!e);break;case`ArrowRight`:if(e.preventDefault(),e.stopPropagation(),g&&!f)p(!0);else if(g&&f){let e=m.current?.querySelector(`[role="treeitem"]`);e&&Zt(e)}break;case`ArrowLeft`:if(e.preventDefault(),e.stopPropagation(),g&&f)p(!1);else{let e=m.current?.parentElement?.closest(`[role="treeitem"]`);e&&Zt(e)}break}},S=(0,n.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`9 18 15 12 9 6`})}),C=(0,n.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`6 9 12 15 18 9`})}),w=()=>e===void 0?(0,n.jsx)(`span`,{className:$.empty,children:`undefined`}):e===null?(0,n.jsx)(`span`,{className:$.empty,children:`null`}):typeof e==`object`?Array.isArray(e)&&e.length===0?(0,n.jsx)(`span`,{className:$.empty,children:`[]`}):!Array.isArray(e)&&Object.keys(e).length===0?(0,n.jsx)(`span`,{className:$.empty,children:`{}`}):null:(0,n.jsx)(`span`,{className:$.value,children:String(e)}),T=v.map((t,r)=>(0,n.jsx)(Qt,{label:Array.isArray(e)?void 0:t.key,data:t.value,defaultExpanded:i,expandIcon:o,collapseIcon:s,level:_,setSize:v.length,posInSet:r+1},t.key));return c?g?(0,n.jsx)(n.Fragment,{children:T}):(0,n.jsx)(n.Fragment,{children:w()}):(0,n.jsxs)(`div`,{ref:m,role:`treeitem`,"aria-expanded":g?f:void 0,"aria-level":l,"aria-setsize":u,"aria-posinset":d,tabIndex:-1,className:a($.item,g&&$.branch),onClick:y,onFocus:b,onKeyDown:x,children:[(0,n.jsxs)(`div`,{className:$.itemHeader,children:[(0,n.jsx)(`span`,{className:$.toggleIcon,"aria-hidden":`true`,children:g?f?s??C:o??S:null}),r!==void 0&&(0,n.jsxs)(`span`,{className:$.key,children:[r,`:`]}),!g&&w()]}),g&&f&&(0,n.jsx)(`div`,{role:`group`,className:$.childGroup,children:T})]})},$t=({data:e,className:r,defaultExpanded:i,expandIcon:o,collapseIcon:s,...c})=>{let l=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let e=l.current?.querySelector(`[role="treeitem"]`);e&&(e.tabIndex=0)},[]),(0,n.jsx)(`div`,{ref:l,role:`tree`,className:a(Xt.root,r),onKeyDown:e=>{let t=l.current;if(!t)return;let n=Array.from(t.querySelectorAll(`[role="treeitem"]`));if(n.length===0)return;let r=n.find(e=>e.tabIndex===0)??n[0],i=n.indexOf(r);switch(e.key){case`ArrowDown`:e.preventDefault(),i<n.length-1&&(r.tabIndex=-1,n[i+1].tabIndex=0,n[i+1].focus());break;case`ArrowUp`:e.preventDefault(),i>0&&(r.tabIndex=-1,n[i-1].tabIndex=0,n[i-1].focus());break;case`Home`:e.preventDefault(),r.tabIndex=-1,n[0].tabIndex=0,n[0].focus();break;case`End`:e.preventDefault(),r.tabIndex=-1,n[n.length-1].tabIndex=0,n[n.length-1].focus();break}},...c,children:(0,n.jsx)(Qt,{data:e,defaultExpanded:i,expandIcon:o,collapseIcon:s,isRoot:!0,level:1,setSize:1,posInSet:1})})};$t.Item=Qt;var en={root:`_root_1931n_1`,main:`_main_1931n_8`,container:`_container_1931n_13`},tn=({header:e,navbar:t,children:r,className:i,maxWidth:o=`75rem`})=>(0,n.jsxs)(`div`,{className:a(en.root,i),children:[e,t,(0,n.jsx)(`main`,{className:en.main,children:(0,n.jsx)(v,{className:en.container,maxWidth:o,children:r})})]}),nn={root:`_root_416o7_1`,card:`_card_416o7_11`,header:`_header_416o7_21`,logo:`_logo_416o7_26`,title:`_title_416o7_32`,description:`_description_416o7_39`,content:`_content_416o7_45`},rn=({logo:e,title:t,description:r,children:i,className:o})=>(0,n.jsx)(v,{className:a(nn.root,o),children:(0,n.jsxs)(v,{className:nn.card,children:[(0,n.jsxs)(v,{className:nn.header,children:[e&&(0,n.jsx)(v,{className:nn.logo,children:e}),t&&(0,n.jsx)(Kt,{variant:`h3`,as:`h1`,className:nn.title,children:t}),r&&(0,n.jsx)(Kt,{variant:`body-sm`,color:`subtle`,className:nn.description,children:r})]}),(0,n.jsx)(v,{className:nn.content,children:i})]})}),an={root:`_root_1vwxr_1`,main:`_main_1vwxr_7`,container:`_container_1vwxr_11`,topBar:`_topBar_1vwxr_20`,stats:`_stats_1vwxr_27`,content:`_content_1vwxr_33`},on=({header:e,breadcrumbs:t,actions:r,stats:i,children:o,className:s})=>(0,n.jsxs)(`div`,{className:a(an.root,s),children:[e,(0,n.jsx)(`main`,{className:an.main,children:(0,n.jsxs)(`div`,{className:an.container,children:[(t||r)&&(0,n.jsxs)(`div`,{className:an.topBar,children:[(0,n.jsx)(`div`,{className:an.breadcrumbs,children:t}),(0,n.jsx)(`div`,{className:an.actions,children:r})]}),i&&(0,n.jsx)(`div`,{className:an.stats,children:i}),(0,n.jsx)(`div`,{className:an.content,children:o})]})})]}),sn={root:`_root_o4vai_1`,main:`_main_o4vai_7`,container:`_container_o4vai_11`,layoutBody:`_layoutBody_o4vai_20`,sidebar:`_sidebar_o4vai_26`,content:`_content_o4vai_34`};e.Accordion=s,e.AppLayout=tn,e.AuthLayout=rn,e.Avatar=l,e.Badge=d,e.Box=v,e.BreadcrumbItem=b,e.Breadcrumbs=x,e.Button=C,e.Card=ae,e.CardContent=se,e.CardFooter=ce,e.CardHeader=oe,e.Checkbox=le,e.DashboardLayout=on,e.Divider=pe,e.Dropdown=ue,e.Header=me,e.Input=ge,e.List=Ee,e.ListItem=Te,e.Loader=ve,e.Modal=De,e.NavBar=he,e.Notification=ke,e.Pagination=Ne,e.ProgressBar=Pe,e.RadioButton=ze,e.Select=st,e.SettingsLayout=({header:e,breadcrumbs:t,sidebar:r,children:i,className:o})=>(0,n.jsxs)(`div`,{className:a(sn.root,o),children:[e,(0,n.jsx)(`main`,{className:sn.main,children:(0,n.jsxs)(`div`,{className:sn.container,children:[t&&(0,n.jsx)(`div`,{className:sn.breadcrumbs,children:t}),(0,n.jsxs)(`div`,{className:sn.layoutBody,children:[r&&(0,n.jsx)(`aside`,{className:sn.sidebar,children:r}),(0,n.jsx)(`section`,{className:sn.content,children:i})]})]})})]}),e.Skeleton=Ve,e.Slider=Re,e.Stepper=ot,e.Switch=ct,e.Table=bt,e.TableBody=St,e.TableCell=Et,e.TableFooter=Ct,e.TableHead=Tt,e.TableHeader=xt,e.TableRow=wt,e.Tabs=Dt,e.Text=Kt,e.Textarea=qt,e.Tooltip=Yt,e.Tree=$t,e.TreeItem=Qt});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeProps } from './Tree.types';
|
|
2
2
|
export declare const Tree: {
|
|
3
3
|
({ data, className, defaultExpanded, expandIcon, collapseIcon, ...props }: TreeProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
Item: ({ data, label, defaultExpanded, expandIcon, collapseIcon, isRoot, }: import('./TreeItem.types').TreeItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Item: ({ data, label, defaultExpanded, expandIcon, collapseIcon, isRoot, level, setSize, posInSet, }: import('./TreeItem.types').TreeItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
};
|
|
@@ -3,7 +3,7 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: {
|
|
5
5
|
({ data, className, defaultExpanded, expandIcon, collapseIcon, ...props }: import('./Tree.types').TreeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
Item: ({ data, label, defaultExpanded, expandIcon, collapseIcon, isRoot, }: import('./TreeItem.types').TreeItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
Item: ({ data, label, defaultExpanded, expandIcon, collapseIcon, isRoot, level, setSize, posInSet, }: import('./TreeItem.types').TreeItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
tags: string[];
|
|
9
9
|
parameters: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TreeItemProps } from './TreeItem.types';
|
|
2
|
-
export declare const TreeItem: ({ data, label, defaultExpanded, expandIcon, collapseIcon, isRoot, }: TreeItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TreeItem: ({ data, label, defaultExpanded, expandIcon, collapseIcon, isRoot, level, setSize, posInSet, }: TreeItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,4 +12,10 @@ export interface TreeItemProps {
|
|
|
12
12
|
collapseIcon?: ReactNode;
|
|
13
13
|
/** Whether the tree item is a root element */
|
|
14
14
|
isRoot?: boolean;
|
|
15
|
+
/** ARIA level (depth in the tree, 1-based) */
|
|
16
|
+
level: number;
|
|
17
|
+
/** Total number of siblings at this level */
|
|
18
|
+
setSize: number;
|
|
19
|
+
/** 1-based position among siblings */
|
|
20
|
+
posInSet: number;
|
|
15
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tharaday",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"author": "Ania Wyroba",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsc -b && vite build",
|
|
55
55
|
"test": "vitest run",
|
|
56
|
+
"test:unit": "vitest run --project=unit",
|
|
57
|
+
"test:storybook": "vitest run --project=storybook",
|
|
58
|
+
"test:coverage": "vitest run --project=unit --coverage",
|
|
56
59
|
"test:watch": "vitest",
|
|
57
60
|
"lint": "eslint .",
|
|
58
61
|
"lint:fix": "eslint . --fix",
|
|
@@ -79,6 +82,7 @@
|
|
|
79
82
|
"@release-it/conventional-changelog": "^10.0.6",
|
|
80
83
|
"@storybook/addon-a11y": "^10.3.3",
|
|
81
84
|
"@storybook/addon-docs": "^10.3.3",
|
|
85
|
+
"@storybook/addon-vitest": "^10.3.3",
|
|
82
86
|
"@storybook/react-vite": "^10.3.3",
|
|
83
87
|
"@testing-library/dom": "^10.4.0",
|
|
84
88
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -87,6 +91,8 @@
|
|
|
87
91
|
"@types/node": "^25.5.0",
|
|
88
92
|
"@types/react": "^19.2.14",
|
|
89
93
|
"@types/react-dom": "^19.2.3",
|
|
94
|
+
"@vitest/browser-playwright": "^4.1.2",
|
|
95
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
90
96
|
"eslint": "^10.1.0",
|
|
91
97
|
"eslint-config-prettier": "^10.1.8",
|
|
92
98
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -94,6 +100,7 @@
|
|
|
94
100
|
"globals": "^17.4.0",
|
|
95
101
|
"husky": "^9.1.7",
|
|
96
102
|
"jsdom": "^29.0.1",
|
|
103
|
+
"playwright": "^1.58.2",
|
|
97
104
|
"prettier": "^3.8.1",
|
|
98
105
|
"release-it": "^19.2.4",
|
|
99
106
|
"storybook": "^10.3.3",
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import userEvent from '@testing-library/user-event';
|
|
3
|
+
|
|
4
|
+
import { Accordion } from './Accordion.tsx';
|
|
5
|
+
|
|
6
|
+
const items = [
|
|
7
|
+
{ id: 'a', title: 'First', content: 'Content A' },
|
|
8
|
+
{ id: 'b', title: 'Second', content: 'Content B' },
|
|
9
|
+
{ id: 'c', title: 'Third', content: 'Content C', isDisabled: true },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
describe('Accordion', () => {
|
|
13
|
+
it('renders all item headers', () => {
|
|
14
|
+
render(<Accordion items={items} />);
|
|
15
|
+
expect(screen.getByRole('button', { name: 'First' })).toBeInTheDocument();
|
|
16
|
+
expect(screen.getByRole('button', { name: 'Second' })).toBeInTheDocument();
|
|
17
|
+
expect(screen.getByRole('button', { name: 'Third' })).toBeInTheDocument();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('collapses all items by default', () => {
|
|
21
|
+
render(<Accordion items={items} />);
|
|
22
|
+
expect(screen.getByRole('button', { name: 'First' })).toHaveAttribute('aria-expanded', 'false');
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('expands defaultExpanded items on mount', () => {
|
|
26
|
+
render(<Accordion items={items} defaultExpanded={['a']} />);
|
|
27
|
+
expect(screen.getByRole('button', { name: 'First' })).toHaveAttribute('aria-expanded', 'true');
|
|
28
|
+
expect(screen.getByRole('button', { name: 'Second' })).toHaveAttribute(
|
|
29
|
+
'aria-expanded',
|
|
30
|
+
'false'
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it('expands an item on click', async () => {
|
|
35
|
+
render(<Accordion items={items} />);
|
|
36
|
+
await userEvent.click(screen.getByRole('button', { name: 'First' }));
|
|
37
|
+
expect(screen.getByRole('button', { name: 'First' })).toHaveAttribute('aria-expanded', 'true');
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('collapses an expanded item on click', async () => {
|
|
41
|
+
render(<Accordion items={items} defaultExpanded={['a']} />);
|
|
42
|
+
await userEvent.click(screen.getByRole('button', { name: 'First' }));
|
|
43
|
+
expect(screen.getByRole('button', { name: 'First' })).toHaveAttribute('aria-expanded', 'false');
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it('closes previously open item when allowMultiple is false', async () => {
|
|
47
|
+
render(<Accordion items={items} />);
|
|
48
|
+
await userEvent.click(screen.getByRole('button', { name: 'First' }));
|
|
49
|
+
await userEvent.click(screen.getByRole('button', { name: 'Second' }));
|
|
50
|
+
expect(screen.getByRole('button', { name: 'First' })).toHaveAttribute('aria-expanded', 'false');
|
|
51
|
+
expect(screen.getByRole('button', { name: 'Second' })).toHaveAttribute('aria-expanded', 'true');
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it('allows multiple expanded items when allowMultiple is true', async () => {
|
|
55
|
+
render(<Accordion items={items} allowMultiple />);
|
|
56
|
+
await userEvent.click(screen.getByRole('button', { name: 'First' }));
|
|
57
|
+
await userEvent.click(screen.getByRole('button', { name: 'Second' }));
|
|
58
|
+
expect(screen.getByRole('button', { name: 'First' })).toHaveAttribute('aria-expanded', 'true');
|
|
59
|
+
expect(screen.getByRole('button', { name: 'Second' })).toHaveAttribute('aria-expanded', 'true');
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it('does not expand a disabled item', async () => {
|
|
63
|
+
render(<Accordion items={items} />);
|
|
64
|
+
expect(screen.getByRole('button', { name: 'Third' })).toBeDisabled();
|
|
65
|
+
await userEvent.click(screen.getByRole('button', { name: 'Third' }));
|
|
66
|
+
expect(screen.getByRole('button', { name: 'Third' })).toHaveAttribute('aria-expanded', 'false');
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('sets aria-controls pointing to the content region', () => {
|
|
70
|
+
render(<Accordion items={items} id="acc" />);
|
|
71
|
+
const btn = screen.getByRole('button', { name: 'First' });
|
|
72
|
+
const contentId = btn.getAttribute('aria-controls');
|
|
73
|
+
expect(document.getElementById(contentId!)).toBeInTheDocument();
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
it('sets aria-labelledby on the content region pointing to the button', () => {
|
|
77
|
+
render(<Accordion items={items} id="acc" />);
|
|
78
|
+
const btn = screen.getByRole('button', { name: 'First' });
|
|
79
|
+
const region = document.getElementById(btn.getAttribute('aria-controls')!);
|
|
80
|
+
expect(region).toHaveAttribute('aria-labelledby', btn.id);
|
|
81
|
+
});
|
|
82
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { render, screen, fireEvent } from '@testing-library/react';
|
|
2
|
+
|
|
3
|
+
import { Avatar } from './Avatar.tsx';
|
|
4
|
+
|
|
5
|
+
describe('Avatar', () => {
|
|
6
|
+
it('renders an image when src is provided', () => {
|
|
7
|
+
render(<Avatar src="photo.jpg" alt="Alice" />);
|
|
8
|
+
expect(screen.getByRole('img', { name: 'Alice' })).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('shows initials from name when no src', () => {
|
|
12
|
+
render(<Avatar name="Alice Doe" />);
|
|
13
|
+
expect(screen.getByText('AD')).toBeInTheDocument();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('shows only two initials for multi-word names', () => {
|
|
17
|
+
render(<Avatar name="First Middle Last" />);
|
|
18
|
+
expect(screen.getByText('FM')).toBeInTheDocument();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('renders custom fallback when provided', () => {
|
|
22
|
+
render(<Avatar fallback="AB" />);
|
|
23
|
+
expect(screen.getByText('AB')).toBeInTheDocument();
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('renders a default icon svg when no src, name, or fallback', () => {
|
|
27
|
+
const { container } = render(<Avatar />);
|
|
28
|
+
expect(container.querySelector('svg')).toBeInTheDocument();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('falls back to initials when image fails to load', () => {
|
|
32
|
+
render(<Avatar src="broken.jpg" name="Bob Smith" />);
|
|
33
|
+
fireEvent.error(screen.getByRole('img'));
|
|
34
|
+
expect(screen.getByText('BS')).toBeInTheDocument();
|
|
35
|
+
});
|
|
36
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
|
|
3
|
+
import { Badge } from './Badge.tsx';
|
|
4
|
+
|
|
5
|
+
describe('Badge', () => {
|
|
6
|
+
it('renders children', () => {
|
|
7
|
+
render(<Badge>New</Badge>);
|
|
8
|
+
expect(screen.getByText('New')).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('forwards extra props', () => {
|
|
12
|
+
render(<Badge data-testid="badge">Label</Badge>);
|
|
13
|
+
expect(screen.getByTestId('badge')).toBeInTheDocument();
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
|
|
3
|
+
import { Breadcrumbs, BreadcrumbItem } from './Breadcrumbs.tsx';
|
|
4
|
+
|
|
5
|
+
describe('Breadcrumbs', () => {
|
|
6
|
+
it('renders a navigation landmark with label "Breadcrumbs"', () => {
|
|
7
|
+
render(
|
|
8
|
+
<Breadcrumbs>
|
|
9
|
+
<BreadcrumbItem href="/home">Home</BreadcrumbItem>
|
|
10
|
+
</Breadcrumbs>
|
|
11
|
+
);
|
|
12
|
+
expect(screen.getByRole('navigation', { name: 'Breadcrumbs' })).toBeInTheDocument();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('renders an ordered list', () => {
|
|
16
|
+
render(
|
|
17
|
+
<Breadcrumbs>
|
|
18
|
+
<BreadcrumbItem>Home</BreadcrumbItem>
|
|
19
|
+
</Breadcrumbs>
|
|
20
|
+
);
|
|
21
|
+
expect(screen.getByRole('list')).toBeInTheDocument();
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it('renders all items', () => {
|
|
25
|
+
render(
|
|
26
|
+
<Breadcrumbs>
|
|
27
|
+
<BreadcrumbItem href="/home">Home</BreadcrumbItem>
|
|
28
|
+
<BreadcrumbItem href="/blog">Blog</BreadcrumbItem>
|
|
29
|
+
<BreadcrumbItem isCurrent>Post</BreadcrumbItem>
|
|
30
|
+
</Breadcrumbs>
|
|
31
|
+
);
|
|
32
|
+
expect(screen.getByText('Home')).toBeInTheDocument();
|
|
33
|
+
expect(screen.getByText('Blog')).toBeInTheDocument();
|
|
34
|
+
expect(screen.getByText('Post')).toBeInTheDocument();
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('renders a link for items with href', () => {
|
|
38
|
+
render(
|
|
39
|
+
<Breadcrumbs>
|
|
40
|
+
<BreadcrumbItem href="/home">Home</BreadcrumbItem>
|
|
41
|
+
</Breadcrumbs>
|
|
42
|
+
);
|
|
43
|
+
expect(screen.getByRole('link', { name: 'Home' })).toHaveAttribute('href', '/home');
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it('renders a span (not a link) for the current item', () => {
|
|
47
|
+
render(
|
|
48
|
+
<Breadcrumbs>
|
|
49
|
+
<BreadcrumbItem href="/page" isCurrent>
|
|
50
|
+
Current
|
|
51
|
+
</BreadcrumbItem>
|
|
52
|
+
</Breadcrumbs>
|
|
53
|
+
);
|
|
54
|
+
expect(screen.queryByRole('link', { name: 'Current' })).not.toBeInTheDocument();
|
|
55
|
+
expect(screen.getByText('Current')).toBeInTheDocument();
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it('sets aria-current="page" on the current item', () => {
|
|
59
|
+
render(
|
|
60
|
+
<Breadcrumbs>
|
|
61
|
+
<BreadcrumbItem isCurrent>Now</BreadcrumbItem>
|
|
62
|
+
</Breadcrumbs>
|
|
63
|
+
);
|
|
64
|
+
expect(screen.getByText('Now')).toHaveAttribute('aria-current', 'page');
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it('renders default separator between items', () => {
|
|
68
|
+
render(
|
|
69
|
+
<Breadcrumbs>
|
|
70
|
+
<BreadcrumbItem>A</BreadcrumbItem>
|
|
71
|
+
<BreadcrumbItem>B</BreadcrumbItem>
|
|
72
|
+
</Breadcrumbs>
|
|
73
|
+
);
|
|
74
|
+
expect(screen.getByText('/')).toBeInTheDocument();
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it('renders custom separator', () => {
|
|
78
|
+
render(
|
|
79
|
+
<Breadcrumbs separator=">">
|
|
80
|
+
<BreadcrumbItem>A</BreadcrumbItem>
|
|
81
|
+
<BreadcrumbItem>B</BreadcrumbItem>
|
|
82
|
+
</Breadcrumbs>
|
|
83
|
+
);
|
|
84
|
+
expect(screen.getByText('>')).toBeInTheDocument();
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it('does not render a separator after the last item', () => {
|
|
88
|
+
render(
|
|
89
|
+
<Breadcrumbs>
|
|
90
|
+
<BreadcrumbItem>A</BreadcrumbItem>
|
|
91
|
+
<BreadcrumbItem>B</BreadcrumbItem>
|
|
92
|
+
</Breadcrumbs>
|
|
93
|
+
);
|
|
94
|
+
expect(screen.getAllByText('/')).toHaveLength(1);
|
|
95
|
+
});
|
|
96
|
+
});
|