tharaday 0.5.11 → 0.6.0
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/dist/components/List/List.d.ts +5 -0
- package/dist/components/List/List.stories.d.ts +25 -0
- package/dist/components/List/List.types.d.ts +42 -0
- package/dist/components/List/ListItem.d.ts +2 -0
- package/dist/components/List/ListItem.types.d.ts +9 -0
- package/dist/components/Slider/Slider.d.ts +1 -1
- package/dist/components/Slider/Slider.stories.d.ts +2 -1
- package/dist/components/Slider/Slider.types.d.ts +1 -0
- package/dist/components/Tree/Tree.d.ts +5 -0
- package/dist/components/Tree/Tree.stories.d.ts +20 -0
- package/dist/components/Tree/Tree.types.d.ts +14 -0
- package/dist/components/Tree/TreeItem.d.ts +2 -0
- package/dist/components/Tree/TreeItem.types.d.ts +15 -0
- package/dist/ds.css +1 -1
- package/dist/ds.js +1557 -1254
- package/dist/ds.umd.cjs +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +3 -3
- package/src/components/List/List.module.css +85 -0
- package/src/components/List/List.stories.tsx +92 -0
- package/src/components/List/List.tsx +93 -0
- package/src/components/List/List.types.ts +45 -0
- package/src/components/List/ListItem.module.css +12 -0
- package/src/components/List/ListItem.tsx +12 -0
- package/src/components/List/ListItem.types.ts +10 -0
- package/src/components/Slider/Slider.module.css +19 -0
- package/src/components/Slider/Slider.stories.tsx +19 -0
- package/src/components/Slider/Slider.tsx +101 -2
- package/src/components/Slider/Slider.types.ts +1 -0
- package/src/components/Tree/Tree.module.css +5 -0
- package/src/components/Tree/Tree.stories.tsx +113 -0
- package/src/components/Tree/Tree.tsx +27 -0
- package/src/components/Tree/Tree.types.ts +16 -0
- package/src/components/Tree/TreeItem.module.css +63 -0
- package/src/components/Tree/TreeItem.tsx +146 -0
- package/src/components/Tree/TreeItem.types.ts +16 -0
- package/src/index.ts +8 -0
package/dist/ds.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(h,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],n):(h=typeof globalThis<"u"?globalThis:h||self,n(h.DesignSystem={},h.jsxRuntime,h.React,h.ReactDOM))})(this,(function(h,n,g,Dn){"use strict";function En(o){var e,t,_="";if(typeof o=="string"||typeof o=="number")_+=o;else if(typeof o=="object")if(Array.isArray(o)){var s=o.length;for(e=0;e<s;e++)o[e]&&(t=En(o[e]))&&(_&&(_+=" "),_+=t)}else for(t in o)o[t]&&(_&&(_+=" "),_+=t);return _}function l(){for(var o,e,t=0,_="",s=arguments.length;t<s;t++)(o=arguments[t])&&(e=En(o))&&(_&&(_+=" "),_+=e);return _}const F={root:"_root_1s3bz_1",default:"_default_1s3bz_8",bordered:"_bordered_1s3bz_14",item:"_item_1s3bz_14",separated:"_separated_1s3bz_24",ghost:"_ghost_1s3bz_34",header:"_header_1s3bz_34",sm:"_sm_1s3bz_65",md:"_md_1s3bz_70",lg:"_lg_1s3bz_75",icon:"_icon_1s3bz_97",iconExpanded:"_iconExpanded_1s3bz_102",contentWrapper:"_contentWrapper_1s3bz_106",contentExpanded:"_contentExpanded_1s3bz_113",content:"_content_1s3bz_106",contentBody:"_contentBody_1s3bz_121",contentBodyExpanded:"_contentBodyExpanded_1s3bz_134"},Mn=({items:o,allowMultiple:e=!1,defaultExpanded:t=[],variant:_="default",size:s="md",className:c,id:a})=>{const i=g.useId(),r=a??`ds-accordion-${i}`,[p,f]=g.useState(t),u=m=>{f(b=>b.includes(m)?b.filter(y=>y!==m):e?[...b,m]:[m])};return n.jsx("div",{id:r,className:l(F.root,F[_],F[s],c),children:o.map(m=>{const b=p.includes(m.id);return n.jsxs("div",{className:F.item,children:[n.jsxs("button",{type:"button",id:`${r}-header-${m.id}`,className:F.header,onClick:()=>u(m.id),disabled:m.isDisabled,"aria-expanded":b,"aria-controls":`${r}-content-${m.id}`,children:[n.jsx("span",{children:m.title}),n.jsx("span",{className:l(F.icon,b&&F.iconExpanded),children:"▼"})]}),n.jsx("div",{id:`${r}-content-${m.id}`,role:"region","aria-labelledby":`${r}-header-${m.id}`,className:l(F.contentWrapper,b&&F.contentExpanded),children:n.jsx("div",{className:F.content,children:n.jsx("div",{className:l(F.contentBody,b&&F.contentBodyExpanded),children:m.content})})})]},m.id)})})},cn={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"},An=({src:o,alt:e,name:t,size:_="md",fallback:s,className:c,...a})=>{const[i,r]=g.useState(!1),p=e??t,f=m=>m.split(" ").map(b=>b[0]).slice(0,2).join(""),u=()=>o&&!i?n.jsx("img",{src:o,alt:p||"",className:cn.image,onError:()=>r(!0)}):s?n.jsx("span",{className:cn.fallback,children:s}):t?n.jsx("span",{className:cn.fallback,children:f(t)}):n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:l(cn.image,cn.defaultIcon),"aria-hidden":"true",focusable:"false",children: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 n.jsx("div",{className:l(cn.root,cn[_],c),...a,children:u()})},gn={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"},Pn=({variant:o="solid",size:e="md",intent:t="neutral",className:_,children:s,...c})=>n.jsx("span",{className:l(gn.root,gn[o],gn[e],gn[t],_),...c,children:s}),I={box:"_box_ynnco_1",fullWidth:"_fullWidth_ynnco_5","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:"_border_ynnco_683",borderBottom:"_borderBottom_ynnco_686","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"},qn=(o,e,t,_,s,c,a,i)=>{const r={};return typeof e=="string"&&(r[o]=e),typeof s=="string"&&(r[`${o}Top`]=s),typeof c=="string"&&(r[`${o}Bottom`]=c),typeof a=="string"&&(r[`${o}Left`]=a),typeof i=="string"&&(r[`${o}Right`]=i),typeof t=="string"&&(r[`${o}Left`]=t,r[`${o}Right`]=t),typeof _=="string"&&(r[`${o}Top`]=_,r[`${o}Bottom`]=_),r},Z=({children:o,as:e="div",display:t,padding:_,paddingX:s,paddingY:c,paddingTop:a,paddingBottom:i,paddingLeft:r,paddingRight:p,margin:f,marginX:u,marginY:m,marginTop:b,marginBottom:y,marginLeft:v,marginRight:d,gap:$,flexDirection:j,alignItems:T,justifyContent:N,flexWrap:w,flexGrow:z,flexShrink:A,flex:P,fullWidth:J,textAlign:_n,width:sn,height:S,maxWidth:E,gridTemplateColumns:k,backgroundColor:x,border:rn,borderBottom:$n,borderColor:wn,borderRadius:Nn,className:C,style:Bn,...pn})=>{const Wn={...Bn,flexGrow:z,flexShrink:A,flex:P,width:sn,height:S,maxWidth:E,gridTemplateColumns:k,gap:typeof $=="string"?$:void 0,...qn("padding",_,s,c,a,i,r,p),...qn("margin",f,u,m,b,y,v,d)};return n.jsx(e,{className:l(I.box,t&&I[`display-${t}`],_n&&I[`textAlign-${_n}`],typeof _=="number"&&I[`p-${_}`],typeof s=="number"&&I[`px-${s}`],typeof c=="number"&&I[`py-${c}`],typeof a=="number"&&I[`pt-${a}`],typeof i=="number"&&I[`pb-${i}`],typeof r=="number"&&I[`pl-${r}`],typeof p=="number"&&I[`pr-${p}`],typeof f=="number"&&I[`margin-${f}`],typeof u=="number"&&I[`marginX-${u}`],typeof m=="number"&&I[`marginY-${m}`],typeof b=="number"&&I[`marginTop-${b}`],typeof y=="number"&&I[`marginBottom-${y}`],typeof v=="number"&&I[`marginLeft-${v}`],typeof d=="number"&&I[`marginRight-${d}`],typeof $=="number"&&I[`gap-${$}`],j&&I[`flexDirection-${j}`],T&&I[`alignItems-${T}`],N&&I[`justifyContent-${N}`],w&&I[`flexWrap-${w}`],x&&I[`bg-${x}`],rn&&I.border,$n&&I.borderBottom,wn&&I[`borderColor-${wn}`],Nn&&I[`borderRadius-${Nn}`],J&&I.fullWidth,C),style:Wn,...pn,children:o})},mn={root:"_root_10ujs_1",list:"_list_10ujs_6",item:"_item_10ujs_16",link:"_link_10ujs_21",current:"_current_10ujs_27",separator:"_separator_10ujs_38"},Fn=({href:o,isCurrent:e,children:t,className:_,...s})=>{const c=o&&!e?"a":"span";return n.jsx("li",{className:mn.item,children:n.jsx(c,{href:o,className:l(mn.link,e&&mn.current,_),"aria-current":e?"page":void 0,...s,children:t})})},On=({children:o,separator:e="/",className:t,..._})=>{const s=g.Children.toArray(o);return n.jsx("nav",{"aria-label":"Breadcrumbs",className:l(mn.root,t),..._,children:n.jsx("ol",{className:mn.list,children:s.map((c,a)=>n.jsxs(g.Fragment,{children:[c,a<s.length-1&&n.jsx("li",{className:mn.separator,"aria-hidden":"true",children:e})]},a))})})},yn={root:"_root_1flxt_1",xs:"_xs_1flxt_31",sm:"_sm_1flxt_39",md:"_md_1flxt_46",lg:"_lg_1flxt_53",xl:"_xl_1flxt_60",solid:"_solid_1flxt_70",success:"_success_1flxt_82",warning:"_warning_1flxt_92",danger:"_danger_1flxt_102",info:"_info_1flxt_112",outline:"_outline_1flxt_123",subtle:"_subtle_1flxt_192",fullWidth:"_fullWidth_1flxt_245"},O=({size:o="md",variant:e="outline",intent:t="neutral",fullWidth:_=!1,className:s,children:c,...a})=>n.jsx("button",{type:"button",className:l(yn.root,yn[o],yn[e],yn[t],_&&yn.fullWidth,s),...a,children:c}),q={root:"_root_1k781_1",bordered:"_bordered_1k781_9",shadowNone:"_shadowNone_1k781_14",shadowSm:"_shadowSm_1k781_17",shadowMd:"_shadowMd_1k781_20","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:"_pNone_1k781_65",pSm:"_pSm_1k781_68",pMd:"_pMd_1k781_71",pLg:"_pLg_1k781_74",header:"_header_1k781_79",title:"_title_1k781_85",subtitle:"_subtitle_1k781_93",content:"_content_1k781_100",footer:"_footer_1k781_104"},Hn=({padding:o="md",shadow:e="sm",bordered:t=!0,borderColor:_,backgroundColor:s,className:c,children:a,...i})=>{const r={none:q.pNone,sm:q.pSm,md:q.pMd,lg:q.pLg}[o],p={none:q.shadowNone,sm:q.shadowSm,md:q.shadowMd}[e];return n.jsx("div",{className:l(q.root,r,p,t&&q.bordered,_&&q[`borderColor-${_}`],s&&q[`backgroundColor-${s}`],c),...i,children:a})},Kn=({title:o,subtitle:e,className:t,children:_,...s})=>n.jsxs("div",{className:l(q.header,t),...s,children:[o&&n.jsx("h3",{className:q.title,children:o}),e&&n.jsx("p",{className:q.subtitle,children:e}),_]}),Vn=({className:o,children:e,...t})=>n.jsx("div",{className:l(q.content,o),...t,children:e}),Gn=({className:o,children:e,...t})=>n.jsx("div",{className:l(q.footer,o),...t,children:e}),V={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"},Un=({label:o,error:e,helperText:t,className:_,disabled:s,id:c,...a})=>{const i=g.useId(),r=c??`ds-checkbox-${i}`,p=t?`${r}-help`:void 0;return n.jsxs("div",{className:l(V.wrapper,_),children:[n.jsxs("label",{htmlFor:r,className:l(V.container,s&&V.disabled,e&&V.error),children:[n.jsx("input",{type:"checkbox",id:r,disabled:s,className:V.input,"aria-describedby":p,"aria-invalid":e||void 0,...a}),n.jsx("span",{className:V.control,children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",className:V.checkmark,children:n.jsx("polyline",{points:"20 6 9 17 4 12"})})}),o&&n.jsx("span",{className:V.label,children:o})]}),t&&n.jsx("span",{id:p,className:l(V.helperText,e&&V.errorText),children:t})]})},W={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"},Jn=({options:o,value:e,defaultValue:t,onChange:_,placeholder:s="Select an option",label:c,helperText:a,error:i,disabled:r,size:p="md",className:f,id:u,fullWidth:m=!1})=>{const b=g.useId(),y=u??`ds-dropdown-${b}`,v=a?`${y}-help`:void 0,[d,$]=g.useState(!1),[j,T]=g.useState(t),[N,w]=g.useState(-1),z=g.useRef(null),A=g.useRef(null),P=e!==void 0?e:j,J=o.find(k=>k.value===P),_n=N>=0?`${y}-opt-${N}`:void 0,sn=()=>{if(!r){const k=!d;if($(k),k){if(N===-1){const x=o.findIndex(rn=>rn.value===P);w(x>=0?x:0)}}else w(-1)}},S=(k,x)=>{k.disabled||(e===void 0&&T(k.value),_?.(k.value),$(!1),w(x),A.current?.focus())},E=k=>{if(!r)switch(k.key){case"ArrowDown":k.preventDefault(),d?w(x=>x<o.length-1?x+1:x):($(!0),w(o.findIndex(x=>x.value===P)||0));break;case"ArrowUp":k.preventDefault(),d?w(x=>x>0?x-1:x):($(!0),w(o.findIndex(x=>x.value===P)||o.length-1));break;case"Enter":case" ":k.preventDefault(),d?N>=0&&S(o[N],N):($(!0),w(o.findIndex(x=>x.value===P)||0));break;case"Escape":d&&(k.preventDefault(),$(!1),w(-1),A.current?.focus());break;case"Tab":d&&($(!1),w(-1));break;case"Home":d&&(k.preventDefault(),w(0));break;case"End":d&&(k.preventDefault(),w(o.length-1));break}};return g.useEffect(()=>{d&&N>=0&&document.getElementById(`${y}-opt-${N}`)?.scrollIntoView({block:"nearest"})},[N,d,y]),g.useEffect(()=>{const k=x=>{z.current&&!z.current.contains(x.target)&&($(!1),w(-1))};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),n.jsxs("div",{className:l(W.wrapper,W[p],m&&W.fullWidth,i&&W.error,f),ref:z,children:[c&&n.jsx("label",{htmlFor:y,className:W.label,children:c}),n.jsxs("div",{className:W.container,children:[n.jsxs("button",{id:y,ref:A,type:"button",className:l(W.trigger,d&&W.isOpen),onClick:sn,onKeyDown:E,disabled:r,"aria-haspopup":"listbox","aria-expanded":d,"aria-describedby":v,"aria-invalid":i||void 0,"aria-controls":d?`${y}-menu`:void 0,"aria-activedescendant":d?_n:void 0,children:[n.jsx("span",{className:W.selectedLabel,children:J?J.label:s}),n.jsx("span",{className:W.icon,"aria-hidden":"true",children:n.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),d&&n.jsx("ul",{id:`${y}-menu`,className:W.menu,role:"listbox","aria-labelledby":c?void 0:y,children:o.map((k,x)=>{const rn=k.value===P,$n=x===N;return n.jsxs("li",{id:`${y}-opt-${x}`,role:"option","aria-selected":rn,className:l(W.option,rn&&W.optionSelected,$n&&W.optionFocused,k.disabled&&W.optionDisabled),onClick:()=>S(k,x),onMouseEnter:()=>!k.disabled&&w(x),children:[n.jsx("span",{className:W.optionLabel,children:k.label}),k.description&&n.jsx("span",{className:W.optionDescription,children:k.description})]},k.value)})})]}),a&&n.jsx("span",{id:v,className:l(W.helperText,i&&W.errorText),children:a})]})},vn={root:"_root_1one2_1",horizontal:"_horizontal_1one2_13",vertical:"_vertical_1one2_21"},xn=o=>typeof o=="number"?`${o}px`:o,Qn=({orientation:o="horizontal",thickness:e,length:t,spacing:_,inset:s,className:c,style:a,...i})=>{const r={...a,"--divider-thickness":xn(e),"--divider-length":xn(t),"--divider-spacing":xn(_),"--divider-inset":xn(s)};return o==="vertical"?n.jsx("div",{role:"separator","aria-orientation":"vertical",className:l(vn.root,vn.vertical,c),style:r,...i}):n.jsx("hr",{className:l(vn.root,vn.horizontal,c),style:r,...i})},G={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"},kn=({id:o,logo:e,title:t,user:_,onLogin:s,onLogout:c,onCreateAccount:a,className:i,maxWidth:r})=>{const p={size:"sm",intent:"info"};return n.jsx("header",{id:o,className:l(G.root,i),children:n.jsxs("div",{className:G.container,style:{maxWidth:r},children:[n.jsxs("div",{className:l(G.sideContainer,G.leftSide),children:[e,t?n.jsx("h1",{className:G.title,children:t}):null]}),n.jsx("div",{className:l(G.sideContainer,G.rightSide),children:_?n.jsxs("div",{className:G.actions,children:[n.jsxs("span",{className:G.welcome,children:["Welcome, ",n.jsx("strong",{children:_.name}),"!"]}),n.jsx(O,{...p,onClick:c,children:"Log out"})]}):n.jsxs("div",{className:G.actions,children:[s?n.jsx(O,{...p,onClick:s,children:"Log in"}):null,a?n.jsx(O,{size:"sm",intent:"info",variant:"solid",onClick:a,children:"Sign up"}):null]})})]})})},U={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"},zn=({id:o,items:e,activeId:t,logo:_,actions:s,onItemClick:c,className:a,maxWidth:i})=>n.jsx("nav",{id:o,className:l(U.root,a),children:n.jsxs("div",{className:U.container,style:{maxWidth:i},children:[_&&n.jsx("div",{className:U.leftSection,children:_}),n.jsx("div",{className:U.nav,children:n.jsx("ul",{className:U.navList,children:e.map(r=>n.jsx("li",{className:U.navItem,children:n.jsx("button",{type:"button",className:l(U.navLink,t===r.id&&U.active,r.disabled&&U.disabled),onClick:()=>!r.disabled&&c?.(r.id),disabled:r.disabled,"aria-current":t===r.id?"page":void 0,children:r.label})},r.id))})}),s&&n.jsx("div",{className:U.rightSection,children:s})]})}),X={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"},Zn=({size:o="md",error:e,label:t,helperText:_,fullWidth:s=!1,className:c,id:a,...i})=>{const r=g.useId(),p=a??`ds-input-${r}`,f=_?`${p}-help`:void 0;return n.jsxs("div",{className:l(X.wrapper,s&&X.fullWidth,c),children:[t&&n.jsx("label",{htmlFor:p,className:X.label,children:t}),n.jsx("input",{id:p,className:l(X.inputRoot,X[o],e&&X.error),"aria-describedby":f,"aria-invalid":e||void 0,...i}),_&&n.jsx("span",{id:f,className:l(X.helperText,e&&X.errorText),children:_})]})},In={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"},Xn=({id:o,size:e="md",intent:t="neutral",className:_})=>n.jsx("div",{id:o,className:l(In.loader,In[e],In[t],_),role:"status","aria-label":"Loading"}),Q={overlay:"_overlay_tnqx3_1",modal:"_modal_tnqx3_15",header:"_header_tnqx3_27",title:"_title_tnqx3_35",closeButton:"_closeButton_tnqx3_42",content:"_content_tnqx3_56",footer:"_footer_tnqx3_62",sm:"_sm_tnqx3_73",md:"_md_tnqx3_76",lg:"_lg_tnqx3_79",xl:"_xl_tnqx3_82",full:"_full_tnqx3_85",loading:"_loading_tnqx3_90"},Yn=({isOpen:o,onClose:e,title:t,children:_,footer:s,size:c="md",isLoading:a=!1,className:i,id:r})=>{const p=g.useRef(null),f=g.useRef(null),u=g.useRef(e),m=g.useId(),b=r??`ds-modal-${m}`,y=`${b}-title`;return g.useEffect(()=>{u.current=e},[e]),g.useEffect(()=>{const v=d=>{if(d.key==="Escape"&&!a){u.current();return}if(d.key==="Tab"&&p.current){const $=p.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),j=$[0],T=$[$.length-1];d.shiftKey?document.activeElement===j&&(T.focus(),d.preventDefault()):document.activeElement===T&&(j.focus(),d.preventDefault())}};return o&&(f.current=document.activeElement,document.body.style.overflow="hidden",window.addEventListener("keydown",v),setTimeout(()=>{const d=p.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');d&&d.length>0&&d[0].focus()},0)),()=>{document.body.style.overflow="unset",window.removeEventListener("keydown",v),f.current?.focus()}},[o,a]),o?Dn.createPortal(n.jsx("div",{className:Q.overlay,onClick:()=>!a&&e(),children:n.jsxs("div",{id:b,className:l(Q.modal,Q[c],a&&Q.loading,i),onClick:v=>v.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":t?y:void 0,ref:p,children:[n.jsxs("div",{className:Q.header,children:[t&&n.jsx("h2",{id:y,className:Q.title,children:t}),n.jsx(O,{variant:"subtle",size:"sm",onClick:e,className:Q.closeButton,"aria-label":"Close modal",disabled:a,children:"✕"})]}),n.jsx("div",{className:Q.content,children:_}),s&&n.jsx("div",{className:Q.footer,children:s})]})}),document.body):null},bn={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"},Rn=({intent:o="neutral",title:e,children:t,onClose:_,className:s,...c})=>n.jsxs("div",{className:l(bn.root,bn[o],s),role:"alert",...c,children:[n.jsxs("div",{className:bn.content,children:[e&&n.jsx("div",{className:bn.title,children:e}),n.jsx("div",{className:bn.message,children:t})]}),_&&n.jsx(O,{variant:"subtle",size:"xs",onClick:_,className:bn.closeButton,"aria-label":"Close notification",children:"✕"})]}),D={root:"_root_o4mj7_1",list:"_list_o4mj7_6",item:"_item_o4mj7_15",ellipsis:"_ellipsis_o4mj7_19",pageButton:"_pageButton_o4mj7_29"},no=(o,e,t)=>Math.min(Math.max(o,e),t),hn=(o,e)=>{const t=[];for(let _=o;_<=e;_+=1)t.push(_);return t},oo=(o,e,t,_,s)=>{if(o<=0)return[];if(!s)return hn(1,o);const a=t*2+1+_*2+2;if(o<=a)return hn(1,o);const i=hn(1,Math.min(_,o)),r=hn(Math.max(o-_+1,_+1),o),p=Math.max(e-t,_+2),f=Math.min(e+t,o-_-1),u=p>_+2,m=f<o-_-1,b=[...i],y=u?p:_+1,v=m?f:o-_;return u&&b.push("ellipsis"),y<=v&&b.push(...hn(y,v)),m&&b.push("ellipsis"),b.push(...r),b},eo=({id:o,count:e,page:t,defaultPage:_=1,onPageChange:s,onFirstClick:c,onLastClick:a,onNextClick:i,onPrevClick:r,siblingCount:p=1,boundaryCount:f=1,showFirstLast:u=!0,showPrevNext:m=!0,showEllipsis:b=!0,disabled:y=!1,size:v="sm",variant:d="outline",intent:$="neutral",activeVariant:j="solid",activeIntent:T,labels:N,ariaLabel:w="Pagination",getPageLabel:z,className:A})=>{const P=g.useId(),J=o??`ds-pagination-${P}`,[_n,sn]=g.useState(_),S=Math.max(0,e),E=no(t??_n,1,Math.max(1,S)),k=g.useMemo(()=>oo(S,E,p,f,b),[S,E,p,f,b]),x=C=>{y||C===E||(t===void 0&&sn(C),s?.(C))},rn=()=>{x(1),c?.(1)},$n=()=>{const C=S;x(C),a?.(C)},wn=()=>{const C=Math.max(1,E-1);x(C),r?.(C)},Nn=()=>{const C=Math.min(S,E+1);x(C),i?.(C)};return S<=0?null:n.jsx("nav",{id:J,"aria-label":w,className:l(D.root,A),children:n.jsxs("ul",{className:D.list,children:[u&&n.jsx("li",{className:D.item,children:n.jsx(O,{size:v,variant:d,intent:$,className:D.pageButton,onClick:rn,disabled:y||E===1,"aria-label":"Go to first page",children:N?.first??"First"})}),m&&n.jsx("li",{className:D.item,children:n.jsx(O,{size:v,variant:d,intent:$,className:D.pageButton,onClick:wn,disabled:y||E===1,"aria-label":"Go to previous page",children:N?.prev??"Prev"})}),k.map((C,Bn)=>{if(C==="ellipsis")return n.jsx("li",{className:D.item,"aria-hidden":"true",children:n.jsx("span",{className:D.ellipsis,children:"…"})},`ellipsis-${Bn}`);const pn=C===E,Wn=z?.(C,pn)??`Page ${C}${pn?", current page":""}`;return n.jsx("li",{className:D.item,children:n.jsx(O,{size:v,variant:pn?j:d,intent:pn?T??$:$,className:D.pageButton,onClick:()=>x(C),disabled:y,"aria-current":pn?"page":void 0,"aria-label":Wn,children:C})},C)}),m&&n.jsx("li",{className:D.item,children:n.jsx(O,{size:v,variant:d,intent:$,className:D.pageButton,onClick:Nn,disabled:y||E===S,"aria-label":"Go to next page",children:N?.next??"Next"})}),u&&n.jsx("li",{className:D.item,children:n.jsx(O,{size:v,variant:d,intent:$,className:D.pageButton,onClick:$n,disabled:y||E===S,"aria-label":"Go to last page",children:N?.last??"Last"})})]})})},Y={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"},to=({value:o,max:e=100,size:t="md",intent:_="info",showLabel:s=!1,label:c,className:a,id:i})=>{const r=g.useId(),p=i??`ds-progressbar-${r}`,f=e>0?e:0,u=Math.min(Math.max(0,o),f),m=f>0?Math.min(Math.max(0,u/f*100),100):0,b=c?`${p}-label`:void 0;return n.jsxs("div",{id:p,className:l(Y.wrapper,Y[t],Y[_],a),children:[(c||s)&&n.jsxs("div",{className:Y.labelWrapper,children:[c&&n.jsx("span",{id:b,className:Y.label,children:c}),s&&n.jsxs("span",{className:Y.percentage,children:[Math.round(m),"%"]})]}),n.jsx("div",{className:Y.progressRoot,role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":e,"aria-labelledby":b,"aria-label":c?void 0:"Progress",children:n.jsx("div",{className:Y.indicator,style:{width:`${m}%`}})})]})},L={wrapper:"_wrapper_1mjlv_1",fullWidth:"_fullWidth_1mjlv_8",header:"_header_1mjlv_13",label:"_label_1mjlv_20",value:"_value_1mjlv_27",sliderRoot:"_sliderRoot_1mjlv_33",track:"_track_1mjlv_46",activeTrack:"_activeTrack_1mjlv_57",inputRoot:"_inputRoot_1mjlv_66",disabled:"_disabled_1mjlv_80",inputStart:"_inputStart_1mjlv_150",inputEnd:"_inputEnd_1mjlv_154",sm:"_sm_1mjlv_158",md:"_md_1mjlv_163",lg:"_lg_1mjlv_168",helperText:"_helperText_1mjlv_173"},ln=(o,e)=>{if(o==null)return e;const t=typeof o=="number"?o:Number(o);return Number.isNaN(t)?e:t},un=(o,e,t)=>Math.min(Math.max(o,e),t),Ln=(o,e,t)=>{if(Array.isArray(o)){const s=un(ln(o[0],e),e,t),c=un(ln(o[1],t),e,t);return s<=c?[s,c]:[c,s]}const _=un(ln(o,e),e,t);return[_,_]},_o=({size:o="md",label:e,helperText:t,fullWidth:_=!1,showValue:s=!1,className:c,id:a,value:i,defaultValue:r,onValueChange:p,...f})=>{const u=g.useId(),m=a??`ds-slider-${u}`,b=t?`${m}-help`:void 0,y=ln(f.min,0),v=ln(f.max,100),d=Array.isArray(i)||Array.isArray(r),$=g.useMemo(()=>Ln(r??i,y,v),[r,v,y,i]),[j,T]=g.useState($),N=i!=null?Ln(i,y,v):j,[w,z]=N,A=d?`${w} - ${z}`:String(w),P=Math.max(v-y,1),J=(w-y)/P*100,_n=(z-y)/P*100,sn=S=>{i==null&&T(S),p?.(d?S:S[0])};return n.jsxs("div",{className:l(L.wrapper,_&&L.fullWidth,c),children:[(e||s)&&n.jsxs("div",{className:L.header,children:[e&&n.jsx("label",{htmlFor:m,className:L.label,children:e}),s&&n.jsx("span",{className:L.value,children:A})]}),n.jsxs("div",{className:l(L.sliderRoot,L[o],f.disabled&&L.disabled),children:[n.jsx("div",{className:L.track}),n.jsx("div",{className:L.activeTrack,style:{left:`${d?J:0}%`,width:`${d?_n-J:J}%`}}),n.jsx("input",{id:m,type:"range",className:l(L.inputRoot,d&&L.inputStart),"aria-describedby":b,"aria-label":e?void 0:d?"Slider minimum":"Slider","aria-valuetext":s?A:void 0,...f,min:y,max:v,value:w,onChange:S=>{const E=un(ln(S.target.value,y),y,z);sn([E,z])}}),d&&n.jsx("input",{id:`${m}-end`,type:"range",className:l(L.inputRoot,L.inputEnd),"aria-describedby":b,"aria-label":e?`${e} maximum`:"Slider maximum",...f,min:y,max:v,value:z,onChange:S=>{const E=un(ln(S.target.value,v),w,v);sn([w,E])}})]}),t&&n.jsx("span",{id:b,className:L.helperText,children:t})]})},H={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"},so=({size:o="md",label:e,helperText:t,error:_,className:s,id:c,...a})=>{const i=g.useId(),r=c??`ds-radio-${i}`,p=t?`${r}-help`:void 0;return n.jsxs("div",{className:l(H.wrapper,s),children:[n.jsxs("label",{htmlFor:r,className:l(H.label,H[o]),children:[n.jsxs("div",{className:H.inputWrapper,children:[n.jsx("input",{type:"radio",id:r,className:l(H.radioRoot,H[o],_&&H.error),"aria-describedby":p,"aria-invalid":_||void 0,...a}),n.jsx("span",{className:H.checkmark})]}),e&&n.jsx("span",{className:H.labelText,children:e})]}),t&&n.jsx("span",{id:p,className:l(H.helperText,_&&H.errorText),children:t})]})},jn={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"},ro=({variant:o="rectangular",width:e,height:t,animation:_="pulse",className:s,style:c,"aria-hidden":a,...i})=>n.jsx(Z,{className:l(jn.root,jn[o],_!=="none"&&jn[_],s),width:e,height:t,style:c,"aria-hidden":a??!0,...i}),K={step:"_step_1z90u_1",stepRow:"_stepRow_1z90u_18",interactive:"_interactive_1z90u_28",marker:"_marker_1z90u_48",text:"_text_1z90u_67",label:"_label_1z90u_74",description:"_description_1z90u_83",connector:"_connector_1z90u_92",completed:"_completed_1z90u_110","connector-completed":"_connector-completed_1z90u_120",current:"_current_1z90u_124","connector-current":"_connector-current_1z90u_134",error:"_error_1z90u_138","connector-error":"_connector-error_1z90u_148",upcoming:"_upcoming_1z90u_152",disabled:"_disabled_1z90u_156"},co=({step:o,index:e,status:t,isInteractive:_,onStepClick:s,isLast:c,id:a,className:i})=>{const r=!!o.disabled,p=_?"button":"div",f=t==="error"?"!":String(e+1),u=()=>{_&&!r&&s?.(o,e)},m=b=>{_&&!r&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),s?.(o,e))};return n.jsxs("li",{className:l(K.step,K[t],r&&K.disabled,i),children:[n.jsxs(p,{id:a,type:_?"button":void 0,className:l(K.stepRow,_&&K.interactive),onClick:u,onKeyDown:m,"aria-current":t==="current"?"step":void 0,"aria-disabled":r?!0:void 0,disabled:_&&r?!0:void 0,tabIndex:_&&!r?0:void 0,children:[n.jsx("span",{className:K.marker,"aria-hidden":"true",children:f}),n.jsxs("span",{className:K.text,children:[n.jsx("span",{className:K.label,children:o.label}),o.description&&n.jsx("span",{className:K.description,children:o.description})]})]}),!c&&n.jsx("span",{className:l(K.connector,K[`connector-${t}`]),"aria-hidden":"true"})]})},Tn={root:"_root_cxvk2_1",sm:"_sm_cxvk2_15",lg:"_lg_cxvk2_22",horizontal:"_horizontal_cxvk2_29",vertical:"_vertical_cxvk2_35"},lo=(o,e)=>Number.isNaN(o)||e<=0?-1:Math.min(Math.max(o,0),e-1),ao=(o,e)=>typeof o=="number"?lo(o,e.length):typeof o=="string"?e.findIndex(t=>t.id===o):e.findIndex(t=>t.status==="current"),io=(o,e,t)=>t||(e===-1?"upcoming":o<e?"completed":o===e?"current":"upcoming"),po=({steps:o,currentStep:e,orientation:t="horizontal",size:_="md",onStepClick:s,ariaLabel:c,className:a,id:i,...r})=>{const p=g.useId(),f=i??`ds-stepper-${p}`,u=ao(e,o),m=c??"Progress";return n.jsx("ol",{id:f,className:l(Tn.root,Tn[t],Tn[_],a),"aria-label":m,"data-orientation":t,...r,children:o.map((b,y)=>n.jsx(co,{id:`${f}-step-${b.id}`,step:b,index:y,status:io(y,u,b.status),isInteractive:!!s,onStepClick:s,isLast:y===o.length-1},b.id))})},R={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"},mo=({size:o="md",error:e,label:t,helperText:_,fullWidth:s=!1,className:c,id:a,options:i,children:r,...p})=>{const f=g.useId(),u=a??`ds-select-${f}`,m=_?`${u}-help`:void 0;return n.jsxs("div",{className:l(R.wrapper,s&&R.fullWidth,c),children:[t&&n.jsx("label",{htmlFor:u,className:R.label,children:t}),n.jsx("select",{id:u,className:l(R.selectRoot,R[o],e&&R.error),"aria-describedby":m,"aria-invalid":e||void 0,...p,children:i?i.map(b=>n.jsx("option",{value:b.value,disabled:b.disabled,children:b.label},b.value)):r}),_&&n.jsx("span",{id:m,className:l(R.helperText,e&&R.errorText),children:_})]})},nn={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"},bo=({label:o,helperText:e,className:t,disabled:_,id:s,...c})=>{const a=g.useId(),i=s??`ds-switch-${a}`,r=e?`${i}-help`:void 0;return n.jsxs("div",{className:l(nn.wrapper,t),children:[n.jsxs("label",{htmlFor:i,className:l(nn.container,_&&nn.disabled),children:[n.jsx("input",{type:"checkbox",id:i,role:"switch",disabled:_,className:nn.input,"aria-describedby":r,...c}),n.jsx("span",{className:nn.track,children:n.jsx("span",{className:nn.thumb})}),o&&n.jsx("span",{className:nn.label,children:o})]}),e&&n.jsx("span",{id:r,className:nn.helperText,children:e})]})},M={wrapper:"_wrapper_1w3cj_1",table:"_table_1w3cj_8",thead:"_thead_1w3cj_17",tbody:"_tbody_1w3cj_22",tr:"_tr_1w3cj_22",th:"_th_1w3cj_17",td:"_td_1w3cj_40",striped:"_striped_1w3cj_46",hoverable:"_hoverable_1w3cj_50",dense:"_dense_1w3cj_54","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:"_loading_1w3cj_75"},fo=({children:o,className:e,striped:t,hoverable:_,dense:s,isLoading:c,...a})=>n.jsx("div",{className:l(M.wrapper,c&&M.loading,e),children:n.jsx("table",{className:l(M.table,t&&M.striped,_&&M.hoverable,s&&M.dense),"aria-busy":c||void 0,...a,children:o})}),yo=({children:o,className:e,...t})=>n.jsx("thead",{className:l(M.thead,e),...t,children:o}),ho=({children:o,className:e,...t})=>n.jsx("tbody",{className:l(M.tbody,e),...t,children:o}),uo=({children:o,className:e,...t})=>n.jsx("tfoot",{className:l(M.tfoot,e),...t,children:o}),$o=({children:o,className:e,...t})=>n.jsx("tr",{className:l(M.tr,e),...t,children:o}),go=({children:o,className:e,align:t,..._})=>n.jsx("th",{className:l(M.th,t&&M[`align-${t}`],e),..._,children:o}),vo=({children:o,className:e,align:t,..._})=>n.jsx("td",{className:l(M.td,t&&M[`align-${t}`],e),..._,children:o}),on={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"},xo=({items:o,defaultActiveId:e,activeId:t,onChange:_,className:s,variant:c="line",id:a})=>{const i=g.useId(),r=a??`ds-tabs-${i}`,[p,f]=g.useState(e||(o.length>0?o[0].id:"")),u=t!==void 0?t:p,m=g.useRef(null),b=(d,$)=>{$||(t===void 0&&f(d),_?.(d))},y=d=>{const $=o.filter(N=>!N.disabled),j=$.findIndex(N=>N.id===u);let T=-1;if(d.key==="ArrowRight"||d.key==="ArrowDown"?T=(j+1)%$.length:d.key==="ArrowLeft"||d.key==="ArrowUp"?T=(j-1+$.length)%$.length:d.key==="Home"?T=0:d.key==="End"&&(T=$.length-1),T!==-1){d.preventDefault();const N=$[T].id;b(N);const w=m.current?.querySelectorAll('[role="tab"]');Array.from(w||[]).find(A=>A.getAttribute("data-id")===N)?.focus()}},v=o.find(d=>d.id===u);return n.jsxs("div",{id:r,className:l(on.root,s),children:[n.jsx("div",{role:"tablist",ref:m,className:l(on.tabList,c==="pill"&&on.pillList),onKeyDown:y,children:o.map(d=>{const $=d.id===u,j=!!d.disabled,T=j?-1:$?0:-1;return n.jsx("button",{role:"tab",id:`${r}-tab-${d.id}`,"aria-selected":$,"aria-controls":`${r}-panel-${d.id}`,"aria-disabled":j,tabIndex:T,disabled:j,"data-id":d.id,className:l(on.tabItem,c==="pill"&&on.pillItem,$&&on.active,j&&on.disabled),onClick:()=>b(d.id,j),children:d.label},d.id)})}),n.jsx("div",{role:"tabpanel",id:`${r}-panel-${u}`,"aria-labelledby":`${r}-tab-${u}`,className:on.tabPanel,tabIndex:0,children:v?.content})]})},B={root:"_root_1onf5_1",h1:"_h1_1onf5_9",h2:"_h2_1onf5_15",h3:"_h3_1onf5_21",h4:"_h4_1onf5_27",h5:"_h5_1onf5_32",h6:"_h6_1onf5_37","body-lg":"_body-lg_1onf5_42","body-md":"_body-md_1onf5_46","body-sm":"_body-sm_1onf5_50",label:"_label_1onf5_54",code:"_code_1onf5_61",left:"_left_1onf5_70",center:"_center_1onf5_73",right:"_right_1onf5_76",justify:"_justify_1onf5_79",regular:"_regular_1onf5_84",medium:"_medium_1onf5_87",bold:"_bold_1onf5_90","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:"_noWrap_1onf5_121","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"},ko={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"},Cn=({children:o,variant:e="body-md",as:t,align:_,weight:s,color:c,noWrap:a,className:i,padding:r,paddingX:p,paddingY:f,paddingTop:u,paddingBottom:m,paddingLeft:b,paddingRight:y,margin:v,marginX:d,marginY:$,marginTop:j,marginBottom:T,marginLeft:N,marginRight:w,...z})=>{const A=t||ko[e]||"span";return n.jsx(A,{className:l(B.root,B[e],_&&B[_],s&&B[s],c&&B[`color-${c}`],a&&B.noWrap,r!==void 0&&B[`p-${r}`],p!==void 0&&B[`px-${p}`],f!==void 0&&B[`py-${f}`],u!==void 0&&B[`pt-${u}`],m!==void 0&&B[`pb-${m}`],b!==void 0&&B[`pl-${b}`],y!==void 0&&B[`pr-${y}`],v!==void 0&&B[`margin-${v}`],d!==void 0&&B[`marginX-${d}`],$!==void 0&&B[`marginY-${$}`],j!==void 0&&B[`marginTop-${j}`],T!==void 0&&B[`marginBottom-${T}`],N!==void 0&&B[`marginLeft-${N}`],w!==void 0&&B[`marginRight-${w}`],i),...z,children:o})},en={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"},wo=({size:o="md",error:e,label:t,helperText:_,fullWidth:s=!1,className:c,id:a,rows:i=4,...r})=>{const p=g.useId(),f=a??`ds-textarea-${p}`,u=_?`${f}-help`:void 0;return n.jsxs("div",{className:l(en.wrapper,s&&en.fullWidth,c),children:[t&&n.jsx("label",{htmlFor:f,className:en.label,children:t}),n.jsx("textarea",{id:f,rows:i,className:l(en.textareaRoot,en[o],e&&en.error),"aria-describedby":u,"aria-invalid":e||void 0,...r}),_&&n.jsx("span",{id:u,className:l(en.helperText,e&&en.errorText),children:_})]})},fn={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"},No=({content:o,children:e,position:t="top",variant:_="dark",delay:s=200,className:c,id:a})=>{const[i,r]=g.useState(!1),p=g.useRef(null),f=g.useId(),u=a??`ds-tooltip-${f}`,m=`${u}-content`,b=()=>{p.current=window.setTimeout(()=>{r(!0)},s)},y=()=>{p.current&&window.clearTimeout(p.current),r(!1)},v=$=>{$.key==="Escape"&&y()},d=g.isValidElement(e)?(()=>{const $=e;return g.cloneElement($,{"aria-describedby":[$.props["aria-describedby"],m].filter(Boolean).join(" ")})})():e;return n.jsxs("div",{id:u,className:l(fn.root,c),onMouseEnter:b,onMouseLeave:y,onFocus:b,onBlur:y,onKeyDown:v,children:[n.jsx("div",{className:fn.trigger,children:d}),i&&n.jsx("div",{className:l(fn.tooltip,fn[t],fn[_],i&&fn.visible),id:m,role:"tooltip",children:o})]})},Sn={root:"_root_1931n_1",main:"_main_1931n_8",container:"_container_1931n_13"},Io=({headerLogo:o,headerTitle:e,user:t,navItems:_,activeNavId:s,navActions:c,children:a,onLogin:i,onLogout:r,onCreateAccount:p,onNavItemClick:f,className:u,maxWidth:m="75rem"})=>n.jsxs("div",{className:l(Sn.root,u),children:[n.jsx(kn,{logo:o,title:e,user:t,onLogin:i,onLogout:r,onCreateAccount:p,maxWidth:m}),n.jsx(zn,{items:_,activeId:s,actions:c,onItemClick:f,maxWidth:m}),n.jsx("main",{className:Sn.main,children:n.jsx(Z,{className:Sn.container,maxWidth:m,children:a})})]}),an={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"},jo=({logo:o,title:e,description:t,children:_,className:s})=>n.jsx(Z,{className:l(an.root,s),children:n.jsxs(Z,{className:an.card,children:[n.jsxs(Z,{className:an.header,children:[o&&n.jsx(Z,{className:an.logo,children:o}),e&&n.jsx(Cn,{variant:"h3",as:"h1",className:an.title,children:e}),t&&n.jsx(Cn,{variant:"body-sm",color:"subtle",className:an.description,children:t})]}),n.jsx(Z,{className:an.content,children:_})]})}),tn={root:"_root_1vwxr_1",main:"_main_1vwxr_7",container:"_container_1vwxr_11",topBar:"_topBar_1vwxr_20",stats:"_stats_1vwxr_27",content:"_content_1vwxr_33"},To=({headerLogo:o,headerTitle:e,breadcrumbs:t,actions:_,stats:s,children:c,user:a,onLogin:i,onLogout:r,onCreateAccount:p,className:f,maxWidth:u})=>n.jsxs("div",{className:l(tn.root,f),children:[n.jsx(kn,{logo:o,title:e,user:a,onLogin:i,onLogout:r,onCreateAccount:p,maxWidth:u}),n.jsx("main",{className:tn.main,children:n.jsxs("div",{className:tn.container,children:[(t||_)&&n.jsxs("div",{className:tn.topBar,children:[n.jsx("div",{className:tn.breadcrumbs,children:t}),n.jsx("div",{className:tn.actions,children:_})]}),s&&n.jsx("div",{className:tn.stats,children:s}),n.jsx("div",{className:tn.content,children:c})]})})]}),dn={root:"_root_o4vai_1",main:"_main_o4vai_7",container:"_container_o4vai_11",layoutBody:"_layoutBody_o4vai_20",sidebar:"_sidebar_o4vai_26",content:"_content_o4vai_34"},Co=({headerLogo:o,headerTitle:e,breadcrumbs:t,sidebar:_,children:s,user:c,onLogin:a,onLogout:i,onCreateAccount:r,className:p,maxWidth:f})=>n.jsxs("div",{className:l(dn.root,p),children:[n.jsx(kn,{logo:o,title:e,user:c,onLogin:a,onLogout:i,onCreateAccount:r,maxWidth:f}),n.jsx("main",{className:dn.main,children:n.jsxs("div",{className:dn.container,children:[t&&n.jsx("div",{className:dn.breadcrumbs,children:t}),n.jsxs("div",{className:dn.layoutBody,children:[_&&n.jsx("aside",{className:dn.sidebar,children:_}),n.jsx("section",{className:dn.content,children:s})]})]})})]});h.Accordion=Mn,h.AppLayout=Io,h.AuthLayout=jo,h.Avatar=An,h.Badge=Pn,h.Box=Z,h.BreadcrumbItem=Fn,h.Breadcrumbs=On,h.Button=O,h.Card=Hn,h.CardContent=Vn,h.CardFooter=Gn,h.CardHeader=Kn,h.Checkbox=Un,h.DashboardLayout=To,h.Divider=Qn,h.Dropdown=Jn,h.Header=kn,h.Input=Zn,h.Loader=Xn,h.Modal=Yn,h.NavBar=zn,h.Notification=Rn,h.Pagination=eo,h.ProgressBar=to,h.RadioButton=so,h.Select=mo,h.SettingsLayout=Co,h.Skeleton=ro,h.Slider=_o,h.Stepper=po,h.Switch=bo,h.Table=fo,h.TableBody=ho,h.TableCell=vo,h.TableFooter=uo,h.TableHead=go,h.TableHeader=yo,h.TableRow=$o,h.Tabs=xo,h.Text=Cn,h.Textarea=wo,h.Tooltip=No,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(h,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],o):(h=typeof globalThis<"u"?globalThis:h||self,o(h.DesignSystem={},h.jsxRuntime,h.React,h.ReactDOM))})(this,(function(h,o,v,Go){"use strict";function Po(n){var e,t,_="";if(typeof n=="string"||typeof n=="number")_+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(e=0;e<s;e++)n[e]&&(t=Po(n[e]))&&(_&&(_+=" "),_+=t)}else for(t in n)n[t]&&(_&&(_+=" "),_+=t);return _}function a(){for(var n,e,t=0,_="",s=arguments.length;t<s;t++)(n=arguments[t])&&(e=Po(n))&&(_&&(_+=" "),_+=e);return _}const K={root:"_root_1s3bz_1",default:"_default_1s3bz_8",bordered:"_bordered_1s3bz_14",item:"_item_1s3bz_14",separated:"_separated_1s3bz_24",ghost:"_ghost_1s3bz_34",header:"_header_1s3bz_34",sm:"_sm_1s3bz_65",md:"_md_1s3bz_70",lg:"_lg_1s3bz_75",icon:"_icon_1s3bz_97",iconExpanded:"_iconExpanded_1s3bz_102",contentWrapper:"_contentWrapper_1s3bz_106",contentExpanded:"_contentExpanded_1s3bz_113",content:"_content_1s3bz_106",contentBody:"_contentBody_1s3bz_121",contentBodyExpanded:"_contentBodyExpanded_1s3bz_134"},Uo=({items:n,allowMultiple:e=!1,defaultExpanded:t=[],variant:_="default",size:s="md",className:c,id:l})=>{const p=v.useId(),r=l??`ds-accordion-${p}`,[d,u]=v.useState(t),b=f=>{u(m=>m.includes(f)?m.filter($=>$!==f):e?[...m,f]:[f])};return o.jsx("div",{id:r,className:a(K.root,K[_],K[s],c),children:n.map(f=>{const m=d.includes(f.id);return o.jsxs("div",{className:K.item,children:[o.jsxs("button",{type:"button",id:`${r}-header-${f.id}`,className:K.header,onClick:()=>b(f.id),disabled:f.isDisabled,"aria-expanded":m,"aria-controls":`${r}-content-${f.id}`,children:[o.jsx("span",{children:f.title}),o.jsx("span",{className:a(K.icon,m&&K.iconExpanded),children:"▼"})]}),o.jsx("div",{id:`${r}-content-${f.id}`,role:"region","aria-labelledby":`${r}-header-${f.id}`,className:a(K.contentWrapper,m&&K.contentExpanded),children:o.jsx("div",{className:K.content,children:o.jsx("div",{className:a(K.contentBody,m&&K.contentBodyExpanded),children:f.content})})})]},f.id)})})},mo={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"},Jo=({src:n,alt:e,name:t,size:_="md",fallback:s,className:c,...l})=>{const[p,r]=v.useState(!1),d=e??t,u=f=>f.split(" ").map(m=>m[0]).slice(0,2).join(""),b=()=>n&&!p?o.jsx("img",{src:n,alt:d||"",className:mo.image,onError:()=>r(!0)}):s?o.jsx("span",{className:mo.fallback,children:s}):t?o.jsx("span",{className:mo.fallback,children:u(t)}):o.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:a(mo.image,mo.defaultIcon),"aria-hidden":"true",focusable:"false",children:o.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 o.jsx("div",{className:a(mo.root,mo[_],c),...l,children:b()})},No={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"},Qo=({variant:n="solid",size:e="md",intent:t="neutral",className:_,children:s,...c})=>o.jsx("span",{className:a(No.root,No[n],No[e],No[t],_),...c,children:s}),C={box:"_box_ynnco_1",fullWidth:"_fullWidth_ynnco_5","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:"_border_ynnco_683",borderBottom:"_borderBottom_ynnco_686","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"},wo=(n,e,t,_,s,c,l,p)=>{const r={};return typeof e=="string"&&(r[n]=e),typeof s=="string"&&(r[`${n}Top`]=s),typeof c=="string"&&(r[`${n}Bottom`]=c),typeof l=="string"&&(r[`${n}Left`]=l),typeof p=="string"&&(r[`${n}Right`]=p),typeof t=="string"&&(r[`${n}Left`]=t,r[`${n}Right`]=t),typeof _=="string"&&(r[`${n}Top`]=_,r[`${n}Bottom`]=_),r},eo=({children:n,as:e="div",display:t,padding:_,paddingX:s,paddingY:c,paddingTop:l,paddingBottom:p,paddingLeft:r,paddingRight:d,margin:u,marginX:b,marginY:f,marginTop:m,marginBottom:$,marginLeft:g,marginRight:i,gap:y,flexDirection:x,alignItems:j,justifyContent:w,flexWrap:T,flexGrow:V,flexShrink:S,flex:W,fullWidth:R,textAlign:oo,width:no,height:P,maxWidth:z,gridTemplateColumns:N,backgroundColor:k,border:I,borderBottom:F,borderColor:po,borderRadius:So,className:B,style:Mo,...yo})=>{const Ao={...Mo,flexGrow:V,flexShrink:S,flex:W,width:no,height:P,maxWidth:z,gridTemplateColumns:N,gap:typeof y=="string"?y:void 0,...wo("padding",_,s,c,l,p,r,d),...wo("margin",u,b,f,m,$,g,i)};return o.jsx(e,{className:a(C.box,t&&C[`display-${t}`],oo&&C[`textAlign-${oo}`],typeof _=="number"&&C[`p-${_}`],typeof s=="number"&&C[`px-${s}`],typeof c=="number"&&C[`py-${c}`],typeof l=="number"&&C[`pt-${l}`],typeof p=="number"&&C[`pb-${p}`],typeof r=="number"&&C[`pl-${r}`],typeof d=="number"&&C[`pr-${d}`],typeof u=="number"&&C[`margin-${u}`],typeof b=="number"&&C[`marginX-${b}`],typeof f=="number"&&C[`marginY-${f}`],typeof m=="number"&&C[`marginTop-${m}`],typeof $=="number"&&C[`marginBottom-${$}`],typeof g=="number"&&C[`marginLeft-${g}`],typeof i=="number"&&C[`marginRight-${i}`],typeof y=="number"&&C[`gap-${y}`],x&&C[`flexDirection-${x}`],j&&C[`alignItems-${j}`],w&&C[`justifyContent-${w}`],T&&C[`flexWrap-${T}`],k&&C[`bg-${k}`],I&&C.border,F&&C.borderBottom,po&&C[`borderColor-${po}`],So&&C[`borderRadius-${So}`],R&&C.fullWidth,B),style:Ao,...yo,children:n})},uo={root:"_root_10ujs_1",list:"_list_10ujs_6",item:"_item_10ujs_16",link:"_link_10ujs_21",current:"_current_10ujs_27",separator:"_separator_10ujs_38"},Zo=({href:n,isCurrent:e,children:t,className:_,...s})=>{const c=n&&!e?"a":"span";return o.jsx("li",{className:uo.item,children:o.jsx(c,{href:n,className:a(uo.link,e&&uo.current,_),"aria-current":e?"page":void 0,...s,children:t})})},Xo=({children:n,separator:e="/",className:t,..._})=>{const s=v.Children.toArray(n);return o.jsx("nav",{"aria-label":"Breadcrumbs",className:a(uo.root,t),..._,children:o.jsx("ol",{className:uo.list,children:s.map((c,l)=>o.jsxs(v.Fragment,{children:[c,l<s.length-1&&o.jsx("li",{className:uo.separator,"aria-hidden":"true",children:e})]},l))})})},go={root:"_root_1flxt_1",xs:"_xs_1flxt_31",sm:"_sm_1flxt_39",md:"_md_1flxt_46",lg:"_lg_1flxt_53",xl:"_xl_1flxt_60",solid:"_solid_1flxt_70",success:"_success_1flxt_82",warning:"_warning_1flxt_92",danger:"_danger_1flxt_102",info:"_info_1flxt_112",outline:"_outline_1flxt_123",subtle:"_subtle_1flxt_192",fullWidth:"_fullWidth_1flxt_245"},G=({size:n="md",variant:e="outline",intent:t="neutral",fullWidth:_=!1,className:s,children:c,...l})=>o.jsx("button",{type:"button",className:a(go.root,go[n],go[e],go[t],_&&go.fullWidth,s),...l,children:c}),A={root:"_root_1k781_1",bordered:"_bordered_1k781_9",shadowNone:"_shadowNone_1k781_14",shadowSm:"_shadowSm_1k781_17",shadowMd:"_shadowMd_1k781_20","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:"_pNone_1k781_65",pSm:"_pSm_1k781_68",pMd:"_pMd_1k781_71",pLg:"_pLg_1k781_74",header:"_header_1k781_79",title:"_title_1k781_85",subtitle:"_subtitle_1k781_93",content:"_content_1k781_100",footer:"_footer_1k781_104"},Yo=({padding:n="md",shadow:e="sm",bordered:t=!0,borderColor:_,backgroundColor:s,className:c,children:l,...p})=>{const r={none:A.pNone,sm:A.pSm,md:A.pMd,lg:A.pLg}[n],d={none:A.shadowNone,sm:A.shadowSm,md:A.shadowMd}[e];return o.jsx("div",{className:a(A.root,r,d,t&&A.bordered,_&&A[`borderColor-${_}`],s&&A[`backgroundColor-${s}`],c),...p,children:l})},Ro=({title:n,subtitle:e,className:t,children:_,...s})=>o.jsxs("div",{className:a(A.header,t),...s,children:[n&&o.jsx("h3",{className:A.title,children:n}),e&&o.jsx("p",{className:A.subtitle,children:e}),_]}),on=({className:n,children:e,...t})=>o.jsx("div",{className:a(A.content,n),...t,children:e}),nn=({className:n,children:e,...t})=>o.jsx("div",{className:a(A.footer,n),...t,children:e}),Q={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"},en=({label:n,error:e,helperText:t,className:_,disabled:s,id:c,...l})=>{const p=v.useId(),r=c??`ds-checkbox-${p}`,d=t?`${r}-help`:void 0;return o.jsxs("div",{className:a(Q.wrapper,_),children:[o.jsxs("label",{htmlFor:r,className:a(Q.container,s&&Q.disabled,e&&Q.error),children:[o.jsx("input",{type:"checkbox",id:r,disabled:s,className:Q.input,"aria-describedby":d,"aria-invalid":e||void 0,...l}),o.jsx("span",{className:Q.control,children:o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",className:Q.checkmark,children:o.jsx("polyline",{points:"20 6 9 17 4 12"})})}),n&&o.jsx("span",{className:Q.label,children:n})]}),t&&o.jsx("span",{id:d,className:a(Q.helperText,e&&Q.errorText),children:t})]})},q={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"},tn=({options:n,value:e,defaultValue:t,onChange:_,placeholder:s="Select an option",label:c,helperText:l,error:p,disabled:r,size:d="md",className:u,id:b,fullWidth:f=!1})=>{const m=v.useId(),$=b??`ds-dropdown-${m}`,g=l?`${$}-help`:void 0,[i,y]=v.useState(!1),[x,j]=v.useState(t),[w,T]=v.useState(-1),V=v.useRef(null),S=v.useRef(null),W=e!==void 0?e:x,R=n.find(N=>N.value===W),oo=w>=0?`${$}-opt-${w}`:void 0,no=()=>{if(!r){const N=!i;if(y(N),N){if(w===-1){const k=n.findIndex(I=>I.value===W);T(k>=0?k:0)}}else T(-1)}},P=(N,k)=>{N.disabled||(e===void 0&&j(N.value),_?.(N.value),y(!1),T(k),S.current?.focus())},z=N=>{if(!r)switch(N.key){case"ArrowDown":N.preventDefault(),i?T(k=>k<n.length-1?k+1:k):(y(!0),T(n.findIndex(k=>k.value===W)||0));break;case"ArrowUp":N.preventDefault(),i?T(k=>k>0?k-1:k):(y(!0),T(n.findIndex(k=>k.value===W)||n.length-1));break;case"Enter":case" ":N.preventDefault(),i?w>=0&&P(n[w],w):(y(!0),T(n.findIndex(k=>k.value===W)||0));break;case"Escape":i&&(N.preventDefault(),y(!1),T(-1),S.current?.focus());break;case"Tab":i&&(y(!1),T(-1));break;case"Home":i&&(N.preventDefault(),T(0));break;case"End":i&&(N.preventDefault(),T(n.length-1));break}};return v.useEffect(()=>{i&&w>=0&&document.getElementById(`${$}-opt-${w}`)?.scrollIntoView({block:"nearest"})},[w,i,$]),v.useEffect(()=>{const N=k=>{V.current&&!V.current.contains(k.target)&&(y(!1),T(-1))};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]),o.jsxs("div",{className:a(q.wrapper,q[d],f&&q.fullWidth,p&&q.error,u),ref:V,children:[c&&o.jsx("label",{htmlFor:$,className:q.label,children:c}),o.jsxs("div",{className:q.container,children:[o.jsxs("button",{id:$,ref:S,type:"button",className:a(q.trigger,i&&q.isOpen),onClick:no,onKeyDown:z,disabled:r,"aria-haspopup":"listbox","aria-expanded":i,"aria-describedby":g,"aria-invalid":p||void 0,"aria-controls":i?`${$}-menu`:void 0,"aria-activedescendant":i?oo:void 0,children:[o.jsx("span",{className:q.selectedLabel,children:R?R.label:s}),o.jsx("span",{className:q.icon,"aria-hidden":"true",children:o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i&&o.jsx("ul",{id:`${$}-menu`,className:q.menu,role:"listbox","aria-labelledby":c?void 0:$,children:n.map((N,k)=>{const I=N.value===W,F=k===w;return o.jsxs("li",{id:`${$}-opt-${k}`,role:"option","aria-selected":I,className:a(q.option,I&&q.optionSelected,F&&q.optionFocused,N.disabled&&q.optionDisabled),onClick:()=>P(N,k),onMouseEnter:()=>!N.disabled&&T(k),children:[o.jsx("span",{className:q.optionLabel,children:N.label}),N.description&&o.jsx("span",{className:q.optionDescription,children:N.description})]},N.value)})})]}),l&&o.jsx("span",{id:g,className:a(q.helperText,p&&q.errorText),children:l})]})},Io={root:"_root_1one2_1",horizontal:"_horizontal_1one2_13",vertical:"_vertical_1one2_21"},Co=n=>typeof n=="number"?`${n}px`:n,_n=({orientation:n="horizontal",thickness:e,length:t,spacing:_,inset:s,className:c,style:l,...p})=>{const r={...l,"--divider-thickness":Co(e),"--divider-length":Co(t),"--divider-spacing":Co(_),"--divider-inset":Co(s)};return n==="vertical"?o.jsx("div",{role:"separator","aria-orientation":"vertical",className:a(Io.root,Io.vertical,c),style:r,...p}):o.jsx("hr",{className:a(Io.root,Io.horizontal,c),style:r,...p})},Z={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"},To=({id:n,logo:e,title:t,user:_,onLogin:s,onLogout:c,onCreateAccount:l,className:p,maxWidth:r})=>{const d={size:"sm",intent:"info"};return o.jsx("header",{id:n,className:a(Z.root,p),children:o.jsxs("div",{className:Z.container,style:{maxWidth:r},children:[o.jsxs("div",{className:a(Z.sideContainer,Z.leftSide),children:[e,t?o.jsx("h1",{className:Z.title,children:t}):null]}),o.jsx("div",{className:a(Z.sideContainer,Z.rightSide),children:_?o.jsxs("div",{className:Z.actions,children:[o.jsxs("span",{className:Z.welcome,children:["Welcome, ",o.jsx("strong",{children:_.name}),"!"]}),o.jsx(G,{...d,onClick:c,children:"Log out"})]}):o.jsxs("div",{className:Z.actions,children:[s?o.jsx(G,{...d,onClick:s,children:"Log in"}):null,l?o.jsx(G,{size:"sm",intent:"info",variant:"solid",onClick:l,children:"Sign up"}):null]})})]})})},X={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"},Fo=({id:n,items:e,activeId:t,logo:_,actions:s,onItemClick:c,className:l,maxWidth:p})=>o.jsx("nav",{id:n,className:a(X.root,l),children:o.jsxs("div",{className:X.container,style:{maxWidth:p},children:[_&&o.jsx("div",{className:X.leftSection,children:_}),o.jsx("div",{className:X.nav,children:o.jsx("ul",{className:X.navList,children:e.map(r=>o.jsx("li",{className:X.navItem,children:o.jsx("button",{type:"button",className:a(X.navLink,t===r.id&&X.active,r.disabled&&X.disabled),onClick:()=>!r.disabled&&c?.(r.id),disabled:r.disabled,"aria-current":t===r.id?"page":void 0,children:r.label})},r.id))})}),s&&o.jsx("div",{className:X.rightSection,children:s})]})}),to={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"},Bo=({size:n="md",error:e,label:t,helperText:_,fullWidth:s=!1,className:c,id:l,...p})=>{const r=v.useId(),d=l??`ds-input-${r}`,u=_?`${d}-help`:void 0;return o.jsxs("div",{className:a(to.wrapper,s&&to.fullWidth,c),children:[t&&o.jsx("label",{htmlFor:d,className:to.label,children:t}),o.jsx("input",{id:d,className:a(to.inputRoot,to[n],e&&to.error),"aria-describedby":u,"aria-invalid":e||void 0,...p}),_&&o.jsx("span",{id:u,className:a(to.helperText,e&&to.errorText),children:_})]})},Wo={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"},sn=({id:n,size:e="md",intent:t="neutral",className:_})=>o.jsx("div",{id:n,className:a(Wo.loader,Wo[e],Wo[t],_),role:"status","aria-label":"Loading"}),D={root:"_root_iia7b_1",unordered:"_unordered_iia7b_6",ordered:"_ordered_iia7b_11",none:"_none_iia7b_16","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:"_flex_iia7b_57"},Lo={item:"_item_1x04p_1",iconWrapper:"_iconWrapper_1x04p_6"},Ho=({children:n,icon:e,className:t,..._})=>o.jsxs("li",{className:a(Lo.item,t),..._,children:[e&&o.jsx("span",{className:Lo.iconWrapper,children:e}),o.jsx("div",{className:Lo.content,children:n})]}),Oo=({children:n,variant:e="unordered",spacing:t=0,className:_,margin:s,marginX:c,marginY:l,marginTop:p,marginBottom:r,marginLeft:d,marginRight:u,padding:b,paddingX:f,paddingY:m,paddingTop:$,paddingBottom:g,paddingLeft:i,paddingRight:y,style:x,...j})=>{const w=e==="ordered"?"ol":"ul",T={...x,...wo("padding",b,f,m,$,g,i,y),...wo("margin",s,c,l,p,r,d,u),"--list-spacing":typeof t=="number"?`${t*.25}rem`:t};return o.jsx(w,{className:a(D.root,D[e],typeof t=="number"&&D[`gap-${t}`],(e==="none"||typeof t=="number"&&t>0||typeof t=="string")&&D.flex,typeof b=="number"&&D[`p-${b}`],typeof f=="number"&&D[`px-${f}`],typeof m=="number"&&D[`py-${m}`],typeof $=="number"&&D[`pt-${$}`],typeof g=="number"&&D[`pb-${g}`],typeof i=="number"&&D[`pl-${i}`],typeof y=="number"&&D[`pr-${y}`],typeof s=="number"&&D[`margin-${s}`],typeof c=="number"&&D[`marginX-${c}`],typeof l=="number"&&D[`marginY-${l}`],typeof p=="number"&&D[`marginTop-${p}`],typeof r=="number"&&D[`marginBottom-${r}`],typeof d=="number"&&D[`marginLeft-${d}`],typeof u=="number"&&D[`marginRight-${u}`],_),style:T,...j,children:n})};Oo.Item=Ho;const Y={overlay:"_overlay_tnqx3_1",modal:"_modal_tnqx3_15",header:"_header_tnqx3_27",title:"_title_tnqx3_35",closeButton:"_closeButton_tnqx3_42",content:"_content_tnqx3_56",footer:"_footer_tnqx3_62",sm:"_sm_tnqx3_73",md:"_md_tnqx3_76",lg:"_lg_tnqx3_79",xl:"_xl_tnqx3_82",full:"_full_tnqx3_85",loading:"_loading_tnqx3_90"},rn=({isOpen:n,onClose:e,title:t,children:_,footer:s,size:c="md",isLoading:l=!1,className:p,id:r})=>{const d=v.useRef(null),u=v.useRef(null),b=v.useRef(e),f=v.useId(),m=r??`ds-modal-${f}`,$=`${m}-title`;return v.useEffect(()=>{b.current=e},[e]),v.useEffect(()=>{const g=i=>{if(i.key==="Escape"&&!l){b.current();return}if(i.key==="Tab"&&d.current){const y=d.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),x=y[0],j=y[y.length-1];i.shiftKey?document.activeElement===x&&(j.focus(),i.preventDefault()):document.activeElement===j&&(x.focus(),i.preventDefault())}};return n&&(u.current=document.activeElement,document.body.style.overflow="hidden",window.addEventListener("keydown",g),setTimeout(()=>{const i=d.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');i&&i.length>0&&i[0].focus()},0)),()=>{document.body.style.overflow="unset",window.removeEventListener("keydown",g),u.current?.focus()}},[n,l]),n?Go.createPortal(o.jsx("div",{className:Y.overlay,onClick:()=>!l&&e(),children:o.jsxs("div",{id:m,className:a(Y.modal,Y[c],l&&Y.loading,p),onClick:g=>g.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":t?$:void 0,ref:d,children:[o.jsxs("div",{className:Y.header,children:[t&&o.jsx("h2",{id:$,className:Y.title,children:t}),o.jsx(G,{variant:"subtle",size:"sm",onClick:e,className:Y.closeButton,"aria-label":"Close modal",disabled:l,children:"✕"})]}),o.jsx("div",{className:Y.content,children:_}),s&&o.jsx("div",{className:Y.footer,children:s})]})}),document.body):null},ho={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"},cn=({intent:n="neutral",title:e,children:t,onClose:_,className:s,...c})=>o.jsxs("div",{className:a(ho.root,ho[n],s),role:"alert",...c,children:[o.jsxs("div",{className:ho.content,children:[e&&o.jsx("div",{className:ho.title,children:e}),o.jsx("div",{className:ho.message,children:t})]}),_&&o.jsx(G,{variant:"subtle",size:"xs",onClick:_,className:ho.closeButton,"aria-label":"Close notification",children:"✕"})]}),H={root:"_root_o4mj7_1",list:"_list_o4mj7_6",item:"_item_o4mj7_15",ellipsis:"_ellipsis_o4mj7_19",pageButton:"_pageButton_o4mj7_29"},ln=(n,e,t)=>Math.min(Math.max(n,e),t),vo=(n,e)=>{const t=[];for(let _=n;_<=e;_+=1)t.push(_);return t},an=(n,e,t,_,s)=>{if(n<=0)return[];if(!s)return vo(1,n);const l=t*2+1+_*2+2;if(n<=l)return vo(1,n);const p=vo(1,Math.min(_,n)),r=vo(Math.max(n-_+1,_+1),n),d=Math.max(e-t,_+2),u=Math.min(e+t,n-_-1),b=d>_+2,f=u<n-_-1,m=[...p],$=b?d:_+1,g=f?u:n-_;return b&&m.push("ellipsis"),$<=g&&m.push(...vo($,g)),f&&m.push("ellipsis"),m.push(...r),m},dn=({id:n,count:e,page:t,defaultPage:_=1,onPageChange:s,onFirstClick:c,onLastClick:l,onNextClick:p,onPrevClick:r,siblingCount:d=1,boundaryCount:u=1,showFirstLast:b=!0,showPrevNext:f=!0,showEllipsis:m=!0,disabled:$=!1,size:g="sm",variant:i="outline",intent:y="neutral",activeVariant:x="solid",activeIntent:j,labels:w,ariaLabel:T="Pagination",getPageLabel:V,className:S})=>{const W=v.useId(),R=n??`ds-pagination-${W}`,[oo,no]=v.useState(_),P=Math.max(0,e),z=ln(t??oo,1,Math.max(1,P)),N=v.useMemo(()=>an(P,z,d,u,m),[P,z,d,u,m]),k=B=>{$||B===z||(t===void 0&&no(B),s?.(B))},I=()=>{k(1),c?.(1)},F=()=>{const B=P;k(B),l?.(B)},po=()=>{const B=Math.max(1,z-1);k(B),r?.(B)},So=()=>{const B=Math.min(P,z+1);k(B),p?.(B)};return P<=0?null:o.jsx("nav",{id:R,"aria-label":T,className:a(H.root,S),children:o.jsxs("ul",{className:H.list,children:[b&&o.jsx("li",{className:H.item,children:o.jsx(G,{size:g,variant:i,intent:y,className:H.pageButton,onClick:I,disabled:$||z===1,"aria-label":"Go to first page",children:w?.first??"First"})}),f&&o.jsx("li",{className:H.item,children:o.jsx(G,{size:g,variant:i,intent:y,className:H.pageButton,onClick:po,disabled:$||z===1,"aria-label":"Go to previous page",children:w?.prev??"Prev"})}),N.map((B,Mo)=>{if(B==="ellipsis")return o.jsx("li",{className:H.item,"aria-hidden":"true",children:o.jsx("span",{className:H.ellipsis,children:"…"})},`ellipsis-${Mo}`);const yo=B===z,Ao=V?.(B,yo)??`Page ${B}${yo?", current page":""}`;return o.jsx("li",{className:H.item,children:o.jsx(G,{size:g,variant:yo?x:i,intent:yo?j??y:y,className:H.pageButton,onClick:()=>k(B),disabled:$,"aria-current":yo?"page":void 0,"aria-label":Ao,children:B})},B)}),f&&o.jsx("li",{className:H.item,children:o.jsx(G,{size:g,variant:i,intent:y,className:H.pageButton,onClick:So,disabled:$||z===P,"aria-label":"Go to next page",children:w?.next??"Next"})}),b&&o.jsx("li",{className:H.item,children:o.jsx(G,{size:g,variant:i,intent:y,className:H.pageButton,onClick:F,disabled:$||z===P,"aria-label":"Go to last page",children:w?.last??"Last"})})]})})},_o={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"},pn=({value:n,max:e=100,size:t="md",intent:_="info",showLabel:s=!1,label:c,className:l,id:p})=>{const r=v.useId(),d=p??`ds-progressbar-${r}`,u=e>0?e:0,b=Math.min(Math.max(0,n),u),f=u>0?Math.min(Math.max(0,b/u*100),100):0,m=c?`${d}-label`:void 0;return o.jsxs("div",{id:d,className:a(_o.wrapper,_o[t],_o[_],l),children:[(c||s)&&o.jsxs("div",{className:_o.labelWrapper,children:[c&&o.jsx("span",{id:m,className:_o.label,children:c}),s&&o.jsxs("span",{className:_o.percentage,children:[Math.round(f),"%"]})]}),o.jsx("div",{className:_o.progressRoot,role:"progressbar","aria-valuenow":b,"aria-valuemin":0,"aria-valuemax":e,"aria-labelledby":m,"aria-label":c?void 0:"Progress",children:o.jsx("div",{className:_o.indicator,style:{width:`${f}%`}})})]})},M={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"},so=(n,e)=>{if(n==null)return e;const t=typeof n=="number"?n:Number(n);return Number.isNaN(t)?e:t},xo=(n,e,t)=>Math.min(Math.max(n,e),t),jo=(n,e,t,_)=>{if(_==null||_==="any"||_<=0)return xo(n,e,t);const s=Math.round((n-e)/_);return xo(e+s*_,e,t)},Ko=(n,e,t)=>{if(Array.isArray(n)){const s=xo(so(n[0],e),e,t),c=xo(so(n[1],t),e,t);return s<=c?[s,c]:[c,s]}const _=xo(so(n,e),e,t);return[_,_]},mn=({size:n="md",label:e,helperText:t,fullWidth:_=!1,showValue:s=!1,showInputs:c=!1,className:l,id:p,value:r,defaultValue:d,onValueChange:u,...b})=>{const f=v.useId(),m=p??`ds-slider-${f}`,$=t?`${m}-help`:void 0,g=so(b.min,0),i=so(b.max,100),y=b.step==="any"?"any":so(b.step,1),x=Array.isArray(r)||Array.isArray(d),j=v.useMemo(()=>Ko(d??r,g,i),[d,i,g,r]),[w,T]=v.useState(j),V=r!=null?Ko(r,g,i):w,[S,W]=V,R=x?`${S} - ${W}`:String(S),oo=Math.max(i-g,1),no=(S-g)/oo*100,P=(W-g)/oo*100,z=I=>{r==null&&T(I),u?.(x?I:I[0])},N=I=>{if(!I.trim())return;const F=Number(I);if(Number.isNaN(F))return;const po=jo(F,g,x?W:i,y);z([po,W])},k=I=>{if(!I.trim())return;const F=Number(I);if(Number.isNaN(F))return;const po=jo(F,S,i,y);z([S,po])};return o.jsxs("div",{className:a(M.wrapper,_&&M.fullWidth,l),children:[(e||s)&&o.jsxs("div",{className:M.header,children:[e&&o.jsx("label",{htmlFor:m,className:M.label,children:e}),s&&o.jsx("span",{className:M.value,children:R})]}),o.jsxs("div",{className:a(M.sliderRoot,M[n],b.disabled&&M.disabled),children:[o.jsx("div",{className:M.track}),o.jsx("div",{className:M.activeTrack,style:{left:`${x?no:0}%`,width:`${x?P-no:no}%`}}),o.jsx("input",{id:m,type:"range",className:a(M.inputRoot,x&&M.inputStart),"aria-describedby":$,"aria-label":e?void 0:x?"Slider minimum":"Slider","aria-valuetext":s?R:void 0,...b,min:g,max:i,step:y,value:S,onChange:I=>{const F=jo(so(I.target.value,g),g,W,y);z([F,W])}}),x&&o.jsx("input",{id:`${m}-end`,type:"range",className:a(M.inputRoot,M.inputEnd),"aria-describedby":$,"aria-label":e?`${e} maximum`:"Slider maximum",...b,min:g,max:i,step:y,value:W,onChange:I=>{const F=jo(so(I.target.value,i),S,i,y);z([S,F])}})]}),c&&o.jsxs("div",{className:a(M.inputsRow,!x&&M.singleInputRow),children:[o.jsx(Bo,{type:"number",inputMode:"decimal",size:n,defaultValue:S,min:g,max:x?W:i,step:y,"aria-label":e?`${e} minimum input`:x?"Slider minimum input":"Slider input",fullWidth:!0,onBlur:I=>{N(I.target.value)},onKeyDown:I=>{I.key==="Enter"&&N(I.currentTarget.value)}},`slider-start-${S}-${W}`),x&&o.jsx("span",{className:M.separator,children:"-"}),x&&o.jsx(Bo,{type:"number",inputMode:"decimal",size:n,defaultValue:W,min:S,max:i,step:y,"aria-label":e?`${e} maximum input`:"Slider maximum input",fullWidth:!0,onBlur:I=>{k(I.target.value)},onKeyDown:I=>{I.key==="Enter"&&k(I.currentTarget.value)}},`slider-end-${S}-${W}`)]}),t&&o.jsx("span",{id:$,className:M.helperText,children:t})]})},U={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"},bn=({size:n="md",label:e,helperText:t,error:_,className:s,id:c,...l})=>{const p=v.useId(),r=c??`ds-radio-${p}`,d=t?`${r}-help`:void 0;return o.jsxs("div",{className:a(U.wrapper,s),children:[o.jsxs("label",{htmlFor:r,className:a(U.label,U[n]),children:[o.jsxs("div",{className:U.inputWrapper,children:[o.jsx("input",{type:"radio",id:r,className:a(U.radioRoot,U[n],_&&U.error),"aria-describedby":d,"aria-invalid":_||void 0,...l}),o.jsx("span",{className:U.checkmark})]}),e&&o.jsx("span",{className:U.labelText,children:e})]}),t&&o.jsx("span",{id:d,className:a(U.helperText,_&&U.errorText),children:t})]})},Eo={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"},fn=({variant:n="rectangular",width:e,height:t,animation:_="pulse",className:s,style:c,"aria-hidden":l,...p})=>o.jsx(eo,{className:a(Eo.root,Eo[n],_!=="none"&&Eo[_],s),width:e,height:t,style:c,"aria-hidden":l??!0,...p}),J={step:"_step_1z90u_1",stepRow:"_stepRow_1z90u_18",interactive:"_interactive_1z90u_28",marker:"_marker_1z90u_48",text:"_text_1z90u_67",label:"_label_1z90u_74",description:"_description_1z90u_83",connector:"_connector_1z90u_92",completed:"_completed_1z90u_110","connector-completed":"_connector-completed_1z90u_120",current:"_current_1z90u_124","connector-current":"_connector-current_1z90u_134",error:"_error_1z90u_138","connector-error":"_connector-error_1z90u_148",upcoming:"_upcoming_1z90u_152",disabled:"_disabled_1z90u_156"},yn=({step:n,index:e,status:t,isInteractive:_,onStepClick:s,isLast:c,id:l,className:p})=>{const r=!!n.disabled,d=_?"button":"div",u=t==="error"?"!":String(e+1),b=()=>{_&&!r&&s?.(n,e)},f=m=>{_&&!r&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),s?.(n,e))};return o.jsxs("li",{className:a(J.step,J[t],r&&J.disabled,p),children:[o.jsxs(d,{id:l,type:_?"button":void 0,className:a(J.stepRow,_&&J.interactive),onClick:b,onKeyDown:f,"aria-current":t==="current"?"step":void 0,"aria-disabled":r?!0:void 0,disabled:_&&r?!0:void 0,tabIndex:_&&!r?0:void 0,children:[o.jsx("span",{className:J.marker,"aria-hidden":"true",children:u}),o.jsxs("span",{className:J.text,children:[o.jsx("span",{className:J.label,children:n.label}),n.description&&o.jsx("span",{className:J.description,children:n.description})]})]}),!c&&o.jsx("span",{className:a(J.connector,J[`connector-${t}`]),"aria-hidden":"true"})]})},qo={root:"_root_cxvk2_1",sm:"_sm_cxvk2_15",lg:"_lg_cxvk2_22",horizontal:"_horizontal_cxvk2_29",vertical:"_vertical_cxvk2_35"},un=(n,e)=>Number.isNaN(n)||e<=0?-1:Math.min(Math.max(n,0),e-1),hn=(n,e)=>typeof n=="number"?un(n,e.length):typeof n=="string"?e.findIndex(t=>t.id===n):e.findIndex(t=>t.status==="current"),$n=(n,e,t)=>t||(e===-1?"upcoming":n<e?"completed":n===e?"current":"upcoming"),gn=({steps:n,currentStep:e,orientation:t="horizontal",size:_="md",onStepClick:s,ariaLabel:c,className:l,id:p,...r})=>{const d=v.useId(),u=p??`ds-stepper-${d}`,b=hn(e,n),f=c??"Progress";return o.jsx("ol",{id:u,className:a(qo.root,qo[t],qo[_],l),"aria-label":f,"data-orientation":t,...r,children:n.map((m,$)=>o.jsx(yn,{id:`${u}-step-${m.id}`,step:m,index:$,status:$n($,b,m.status),isInteractive:!!s,onStepClick:s,isLast:$===n.length-1},m.id))})},ro={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"},vn=({size:n="md",error:e,label:t,helperText:_,fullWidth:s=!1,className:c,id:l,options:p,children:r,...d})=>{const u=v.useId(),b=l??`ds-select-${u}`,f=_?`${b}-help`:void 0;return o.jsxs("div",{className:a(ro.wrapper,s&&ro.fullWidth,c),children:[t&&o.jsx("label",{htmlFor:b,className:ro.label,children:t}),o.jsx("select",{id:b,className:a(ro.selectRoot,ro[n],e&&ro.error),"aria-describedby":f,"aria-invalid":e||void 0,...d,children:p?p.map(m=>o.jsx("option",{value:m.value,disabled:m.disabled,children:m.label},m.value)):r}),_&&o.jsx("span",{id:f,className:a(ro.helperText,e&&ro.errorText),children:_})]})},co={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"},xn=({label:n,helperText:e,className:t,disabled:_,id:s,...c})=>{const l=v.useId(),p=s??`ds-switch-${l}`,r=e?`${p}-help`:void 0;return o.jsxs("div",{className:a(co.wrapper,t),children:[o.jsxs("label",{htmlFor:p,className:a(co.container,_&&co.disabled),children:[o.jsx("input",{type:"checkbox",id:p,role:"switch",disabled:_,className:co.input,"aria-describedby":r,...c}),o.jsx("span",{className:co.track,children:o.jsx("span",{className:co.thumb})}),n&&o.jsx("span",{className:co.label,children:n})]}),e&&o.jsx("span",{id:r,className:co.helperText,children:e})]})},O={wrapper:"_wrapper_1w3cj_1",table:"_table_1w3cj_8",thead:"_thead_1w3cj_17",tbody:"_tbody_1w3cj_22",tr:"_tr_1w3cj_22",th:"_th_1w3cj_17",td:"_td_1w3cj_40",striped:"_striped_1w3cj_46",hoverable:"_hoverable_1w3cj_50",dense:"_dense_1w3cj_54","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:"_loading_1w3cj_75"},kn=({children:n,className:e,striped:t,hoverable:_,dense:s,isLoading:c,...l})=>o.jsx("div",{className:a(O.wrapper,c&&O.loading,e),children:o.jsx("table",{className:a(O.table,t&&O.striped,_&&O.hoverable,s&&O.dense),"aria-busy":c||void 0,...l,children:n})}),Nn=({children:n,className:e,...t})=>o.jsx("thead",{className:a(O.thead,e),...t,children:n}),wn=({children:n,className:e,...t})=>o.jsx("tbody",{className:a(O.tbody,e),...t,children:n}),In=({children:n,className:e,...t})=>o.jsx("tfoot",{className:a(O.tfoot,e),...t,children:n}),Cn=({children:n,className:e,...t})=>o.jsx("tr",{className:a(O.tr,e),...t,children:n}),Tn=({children:n,className:e,align:t,..._})=>o.jsx("th",{className:a(O.th,t&&O[`align-${t}`],e),..._,children:n}),jn=({children:n,className:e,align:t,..._})=>o.jsx("td",{className:a(O.td,t&&O[`align-${t}`],e),..._,children:n}),lo={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"},Sn=({items:n,defaultActiveId:e,activeId:t,onChange:_,className:s,variant:c="line",id:l})=>{const p=v.useId(),r=l??`ds-tabs-${p}`,[d,u]=v.useState(e||(n.length>0?n[0].id:"")),b=t!==void 0?t:d,f=v.useRef(null),m=(i,y)=>{y||(t===void 0&&u(i),_?.(i))},$=i=>{const y=n.filter(w=>!w.disabled),x=y.findIndex(w=>w.id===b);let j=-1;if(i.key==="ArrowRight"||i.key==="ArrowDown"?j=(x+1)%y.length:i.key==="ArrowLeft"||i.key==="ArrowUp"?j=(x-1+y.length)%y.length:i.key==="Home"?j=0:i.key==="End"&&(j=y.length-1),j!==-1){i.preventDefault();const w=y[j].id;m(w);const T=f.current?.querySelectorAll('[role="tab"]');Array.from(T||[]).find(S=>S.getAttribute("data-id")===w)?.focus()}},g=n.find(i=>i.id===b);return o.jsxs("div",{id:r,className:a(lo.root,s),children:[o.jsx("div",{role:"tablist",ref:f,className:a(lo.tabList,c==="pill"&&lo.pillList),onKeyDown:$,children:n.map(i=>{const y=i.id===b,x=!!i.disabled,j=x?-1:y?0:-1;return o.jsx("button",{role:"tab",id:`${r}-tab-${i.id}`,"aria-selected":y,"aria-controls":`${r}-panel-${i.id}`,"aria-disabled":x,tabIndex:j,disabled:x,"data-id":i.id,className:a(lo.tabItem,c==="pill"&&lo.pillItem,y&&lo.active,x&&lo.disabled),onClick:()=>m(i.id,x),children:i.label},i.id)})}),o.jsx("div",{role:"tabpanel",id:`${r}-panel-${b}`,"aria-labelledby":`${r}-tab-${b}`,className:lo.tabPanel,tabIndex:0,children:g?.content})]})},L={root:"_root_1onf5_1",h1:"_h1_1onf5_9",h2:"_h2_1onf5_15",h3:"_h3_1onf5_21",h4:"_h4_1onf5_27",h5:"_h5_1onf5_32",h6:"_h6_1onf5_37","body-lg":"_body-lg_1onf5_42","body-md":"_body-md_1onf5_46","body-sm":"_body-sm_1onf5_50",label:"_label_1onf5_54",code:"_code_1onf5_61",left:"_left_1onf5_70",center:"_center_1onf5_73",right:"_right_1onf5_76",justify:"_justify_1onf5_79",regular:"_regular_1onf5_84",medium:"_medium_1onf5_87",bold:"_bold_1onf5_90","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:"_noWrap_1onf5_121","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"},Bn={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"},zo=({children:n,variant:e="body-md",as:t,align:_,weight:s,color:c,noWrap:l,className:p,padding:r,paddingX:d,paddingY:u,paddingTop:b,paddingBottom:f,paddingLeft:m,paddingRight:$,margin:g,marginX:i,marginY:y,marginTop:x,marginBottom:j,marginLeft:w,marginRight:T,...V})=>{const S=t||Bn[e]||"span";return o.jsx(S,{className:a(L.root,L[e],_&&L[_],s&&L[s],c&&L[`color-${c}`],l&&L.noWrap,r!==void 0&&L[`p-${r}`],d!==void 0&&L[`px-${d}`],u!==void 0&&L[`py-${u}`],b!==void 0&&L[`pt-${b}`],f!==void 0&&L[`pb-${f}`],m!==void 0&&L[`pl-${m}`],$!==void 0&&L[`pr-${$}`],g!==void 0&&L[`margin-${g}`],i!==void 0&&L[`marginX-${i}`],y!==void 0&&L[`marginY-${y}`],x!==void 0&&L[`marginTop-${x}`],j!==void 0&&L[`marginBottom-${j}`],w!==void 0&&L[`marginLeft-${w}`],T!==void 0&&L[`marginRight-${T}`],p),...V,children:n})},ao={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"},Wn=({size:n="md",error:e,label:t,helperText:_,fullWidth:s=!1,className:c,id:l,rows:p=4,...r})=>{const d=v.useId(),u=l??`ds-textarea-${d}`,b=_?`${u}-help`:void 0;return o.jsxs("div",{className:a(ao.wrapper,s&&ao.fullWidth,c),children:[t&&o.jsx("label",{htmlFor:u,className:ao.label,children:t}),o.jsx("textarea",{id:u,rows:p,className:a(ao.textareaRoot,ao[n],e&&ao.error),"aria-describedby":b,"aria-invalid":e||void 0,...r}),_&&o.jsx("span",{id:b,className:a(ao.helperText,e&&ao.errorText),children:_})]})},$o={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"},Ln=({content:n,children:e,position:t="top",variant:_="dark",delay:s=200,className:c,id:l})=>{const[p,r]=v.useState(!1),d=v.useRef(null),u=v.useId(),b=l??`ds-tooltip-${u}`,f=`${b}-content`,m=()=>{d.current=window.setTimeout(()=>{r(!0)},s)},$=()=>{d.current&&window.clearTimeout(d.current),r(!1)},g=y=>{y.key==="Escape"&&$()},i=v.isValidElement(e)?(()=>{const y=e;return v.cloneElement(y,{"aria-describedby":[y.props["aria-describedby"],f].filter(Boolean).join(" ")})})():e;return o.jsxs("div",{id:b,className:a($o.root,c),onMouseEnter:m,onMouseLeave:$,onFocus:m,onBlur:$,onKeyDown:g,children:[o.jsx("div",{className:$o.trigger,children:i}),p&&o.jsx("div",{className:a($o.tooltip,$o[t],$o[_],p&&$o.visible),id:f,role:"tooltip",children:n})]})},En={root:"_root_kcagb_1"},E={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"},ko=({data:n,label:e,defaultExpanded:t,expandIcon:_,collapseIcon:s,isRoot:c})=>{const[l,p]=v.useState(c?!0:t??!1),d=n!==null&&typeof n=="object"&&(Array.isArray(n)?n.length>0:Object.keys(n).length>0),u=()=>p(!l),b=o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"9 18 15 12 9 6"})}),f=o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"6 9 12 15 18 9"})}),m=()=>n===void 0?o.jsx("span",{className:E.empty,children:"undefined"}):n===null?o.jsx("span",{className:E.empty,children:"null"}):typeof n!="object"?o.jsx("span",{className:E.value,children:String(n)}):Array.isArray(n)?n.length===0?o.jsx("span",{className:E.empty,children:"[]"}):o.jsx("ul",{className:a(E.list,E.collapsibleContent,l&&E.expanded,c&&E.rootList),children:n.map(($,g)=>o.jsx("li",{className:E.item,children:o.jsx(ko,{data:$,defaultExpanded:t,expandIcon:_,collapseIcon:s})},g))}):Object.keys(n).length===0?o.jsx("span",{className:E.empty}):o.jsx("ul",{className:a(E.list,E.collapsibleContent,l&&E.expanded,c&&E.rootList),children:Object.entries(n).map(([$,g])=>o.jsx("li",{className:E.item,children:o.jsx(ko,{label:$,data:g,defaultExpanded:t,expandIcon:_,collapseIcon:s})},$))});return o.jsxs("div",{children:[!c&&o.jsxs("div",{className:E.itemHeader,children:[d?o.jsx("button",{type:"button",className:E.toggleButton,onClick:u,"aria-expanded":l,children:l?s??f:_??b}):o.jsx("div",{className:E.toggleButton,"aria-hidden":"true"}),e&&o.jsxs("span",{className:E.key,children:[e,":"]}),!d&&m()]}),d&&m(),c&&!d&&o.jsx("div",{className:E.itemHeader,children:m()})]})},Vo=({data:n,className:e,defaultExpanded:t,expandIcon:_,collapseIcon:s,...c})=>o.jsx("div",{className:a(En.root,e),...c,children:o.jsx(ko,{data:n,defaultExpanded:t,expandIcon:_,collapseIcon:s,isRoot:!0})});Vo.Item=ko;const Do={root:"_root_1931n_1",main:"_main_1931n_8",container:"_container_1931n_13"},qn=({headerLogo:n,headerTitle:e,user:t,navItems:_,activeNavId:s,navActions:c,children:l,onLogin:p,onLogout:r,onCreateAccount:d,onNavItemClick:u,className:b,maxWidth:f="75rem"})=>o.jsxs("div",{className:a(Do.root,b),children:[o.jsx(To,{logo:n,title:e,user:t,onLogin:p,onLogout:r,onCreateAccount:d,maxWidth:f}),o.jsx(Fo,{items:_,activeId:s,actions:c,onItemClick:u,maxWidth:f}),o.jsx("main",{className:Do.main,children:o.jsx(eo,{className:Do.container,maxWidth:f,children:l})})]}),bo={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"},zn=({logo:n,title:e,description:t,children:_,className:s})=>o.jsx(eo,{className:a(bo.root,s),children:o.jsxs(eo,{className:bo.card,children:[o.jsxs(eo,{className:bo.header,children:[n&&o.jsx(eo,{className:bo.logo,children:n}),e&&o.jsx(zo,{variant:"h3",as:"h1",className:bo.title,children:e}),t&&o.jsx(zo,{variant:"body-sm",color:"subtle",className:bo.description,children:t})]}),o.jsx(eo,{className:bo.content,children:_})]})}),io={root:"_root_1vwxr_1",main:"_main_1vwxr_7",container:"_container_1vwxr_11",topBar:"_topBar_1vwxr_20",stats:"_stats_1vwxr_27",content:"_content_1vwxr_33"},Dn=({headerLogo:n,headerTitle:e,breadcrumbs:t,actions:_,stats:s,children:c,user:l,onLogin:p,onLogout:r,onCreateAccount:d,className:u,maxWidth:b})=>o.jsxs("div",{className:a(io.root,u),children:[o.jsx(To,{logo:n,title:e,user:l,onLogin:p,onLogout:r,onCreateAccount:d,maxWidth:b}),o.jsx("main",{className:io.main,children:o.jsxs("div",{className:io.container,children:[(t||_)&&o.jsxs("div",{className:io.topBar,children:[o.jsx("div",{className:io.breadcrumbs,children:t}),o.jsx("div",{className:io.actions,children:_})]}),s&&o.jsx("div",{className:io.stats,children:s}),o.jsx("div",{className:io.content,children:c})]})})]}),fo={root:"_root_o4vai_1",main:"_main_o4vai_7",container:"_container_o4vai_11",layoutBody:"_layoutBody_o4vai_20",sidebar:"_sidebar_o4vai_26",content:"_content_o4vai_34"},Mn=({headerLogo:n,headerTitle:e,breadcrumbs:t,sidebar:_,children:s,user:c,onLogin:l,onLogout:p,onCreateAccount:r,className:d,maxWidth:u})=>o.jsxs("div",{className:a(fo.root,d),children:[o.jsx(To,{logo:n,title:e,user:c,onLogin:l,onLogout:p,onCreateAccount:r,maxWidth:u}),o.jsx("main",{className:fo.main,children:o.jsxs("div",{className:fo.container,children:[t&&o.jsx("div",{className:fo.breadcrumbs,children:t}),o.jsxs("div",{className:fo.layoutBody,children:[_&&o.jsx("aside",{className:fo.sidebar,children:_}),o.jsx("section",{className:fo.content,children:s})]})]})})]});h.Accordion=Uo,h.AppLayout=qn,h.AuthLayout=zn,h.Avatar=Jo,h.Badge=Qo,h.Box=eo,h.BreadcrumbItem=Zo,h.Breadcrumbs=Xo,h.Button=G,h.Card=Yo,h.CardContent=on,h.CardFooter=nn,h.CardHeader=Ro,h.Checkbox=en,h.DashboardLayout=Dn,h.Divider=_n,h.Dropdown=tn,h.Header=To,h.Input=Bo,h.List=Oo,h.ListItem=Ho,h.Loader=sn,h.Modal=rn,h.NavBar=Fo,h.Notification=cn,h.Pagination=dn,h.ProgressBar=pn,h.RadioButton=bn,h.Select=vn,h.SettingsLayout=Mn,h.Skeleton=fn,h.Slider=mn,h.Stepper=gn,h.Switch=xn,h.Table=kn,h.TableBody=wn,h.TableCell=jn,h.TableFooter=In,h.TableHead=Tn,h.TableHeader=Nn,h.TableRow=Cn,h.Tabs=Sn,h.Text=zo,h.Textarea=Wn,h.Tooltip=Ln,h.Tree=Vo,h.TreeItem=ko,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,10 @@ export { Input } from './components/Input/Input.tsx';
|
|
|
26
26
|
export type { InputProps } from './components/Input/Input.types.ts';
|
|
27
27
|
export { Loader } from './components/Loader/Loader.tsx';
|
|
28
28
|
export type { LoaderProps, LoaderSize } from './components/Loader/Loader.types.ts';
|
|
29
|
+
export { List } from './components/List/List.tsx';
|
|
30
|
+
export { ListItem } from './components/List/ListItem.tsx';
|
|
31
|
+
export type { ListProps, ListVariant } from './components/List/List.types.ts';
|
|
32
|
+
export type { ListItemProps } from './components/List/ListItem.types.ts';
|
|
29
33
|
export { Modal } from './components/Modal/Modal.tsx';
|
|
30
34
|
export type { ModalProps } from './components/Modal/Modal.types.ts';
|
|
31
35
|
export { Notification } from './components/Notification/Notification.tsx';
|
|
@@ -57,6 +61,10 @@ export { Textarea } from './components/Textarea/Textarea.tsx';
|
|
|
57
61
|
export type { TextareaProps, TextareaSize } from './components/Textarea/Textarea.types.ts';
|
|
58
62
|
export { Tooltip } from './components/Tooltip/Tooltip.tsx';
|
|
59
63
|
export type { TooltipProps, TooltipPosition } from './components/Tooltip/Tooltip.types.ts';
|
|
64
|
+
export { Tree } from './components/Tree/Tree.tsx';
|
|
65
|
+
export { TreeItem } from './components/Tree/TreeItem.tsx';
|
|
66
|
+
export type { TreeProps } from './components/Tree/Tree.types.ts';
|
|
67
|
+
export type { TreeItemProps } from './components/Tree/TreeItem.types.ts';
|
|
60
68
|
export { AppLayout } from './layouts/AppLayout/AppLayout.tsx';
|
|
61
69
|
export type { AppLayoutProps } from './layouts/AppLayout/AppLayout.types.ts';
|
|
62
70
|
export { AuthLayout } from './layouts/AuthLayout/AuthLayout.tsx';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tharaday",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"author": "Ania Wyroba",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@eslint/js": "^10.0.1",
|
|
77
77
|
"@storybook/addon-a11y": "^10",
|
|
78
78
|
"@storybook/react-vite": "^10",
|
|
79
|
-
"@types/node": "^25.
|
|
79
|
+
"@types/node": "^25.5.0",
|
|
80
80
|
"@types/react": "^19",
|
|
81
81
|
"@types/react-dom": "^19",
|
|
82
82
|
"@vitejs/plugin-react": "^5.1.4",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
88
88
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
89
89
|
"eslint-plugin-storybook": "^10",
|
|
90
|
-
"globals": "^17.
|
|
90
|
+
"globals": "^17.4.0",
|
|
91
91
|
"husky": "^9.1.7",
|
|
92
92
|
"prettier": "^3.8.1",
|
|
93
93
|
"standard-version": "^9.5.0",
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.unordered {
|
|
7
|
+
list-style-type: disc;
|
|
8
|
+
padding-left: 1.5rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ordered {
|
|
12
|
+
list-style-type: decimal;
|
|
13
|
+
padding-left: 1.5rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.none {
|
|
17
|
+
list-style-type: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Spacing */
|
|
21
|
+
.gap-0 {
|
|
22
|
+
gap: 0;
|
|
23
|
+
}
|
|
24
|
+
.gap-1 {
|
|
25
|
+
gap: 0.25rem;
|
|
26
|
+
}
|
|
27
|
+
.gap-2 {
|
|
28
|
+
gap: 0.5rem;
|
|
29
|
+
}
|
|
30
|
+
.gap-3 {
|
|
31
|
+
gap: 0.75rem;
|
|
32
|
+
}
|
|
33
|
+
.gap-4 {
|
|
34
|
+
gap: 1rem;
|
|
35
|
+
}
|
|
36
|
+
.gap-5 {
|
|
37
|
+
gap: 1.25rem;
|
|
38
|
+
}
|
|
39
|
+
.gap-6 {
|
|
40
|
+
gap: 1.5rem;
|
|
41
|
+
}
|
|
42
|
+
.gap-8 {
|
|
43
|
+
gap: 2rem;
|
|
44
|
+
}
|
|
45
|
+
.gap-10 {
|
|
46
|
+
gap: 2.5rem;
|
|
47
|
+
}
|
|
48
|
+
.gap-12 {
|
|
49
|
+
gap: 3rem;
|
|
50
|
+
}
|
|
51
|
+
.gap-14 {
|
|
52
|
+
gap: 3.5rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Margin and Padding Utility classes - simplified for List if needed,
|
|
56
|
+
but we'll try to follow Box's pattern if we can or just use gap for spacing between items */
|
|
57
|
+
.flex {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Spacing between items when not using flex gap (for better browser support if needed)
|
|
63
|
+
but since this is a modern lib, gap should be fine.
|
|
64
|
+
However, traditionally lists might not use flex.
|
|
65
|
+
If we use flex, we lose the default list markers unless we are careful. */
|
|
66
|
+
|
|
67
|
+
.unordered.flex,
|
|
68
|
+
.ordered.flex {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* If we want to keep native markers, we shouldn't use display: flex on the list itself
|
|
74
|
+
if we want the markers to work normally.
|
|
75
|
+
But if we want easy spacing, flex + gap is great. */
|
|
76
|
+
|
|
77
|
+
.unordered:not(.flex) > li,
|
|
78
|
+
.ordered:not(.flex) > li {
|
|
79
|
+
margin-bottom: var(--list-spacing, 0);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.unordered:not(.flex) > li:last-child,
|
|
83
|
+
.ordered:not(.flex) > li:last-child {
|
|
84
|
+
margin-bottom: 0;
|
|
85
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { List } from './List';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/List',
|
|
6
|
+
component: List,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
variant: {
|
|
10
|
+
control: 'select',
|
|
11
|
+
options: ['unordered', 'ordered', 'none'],
|
|
12
|
+
},
|
|
13
|
+
spacing: {
|
|
14
|
+
control: 'number',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
} satisfies Meta<typeof List>;
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
|
|
22
|
+
export const Unordered: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
variant: 'unordered',
|
|
25
|
+
children: (
|
|
26
|
+
<>
|
|
27
|
+
<List.Item>First item</List.Item>
|
|
28
|
+
<List.Item>Second item</List.Item>
|
|
29
|
+
<List.Item>Third item</List.Item>
|
|
30
|
+
</>
|
|
31
|
+
),
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const Ordered: Story = {
|
|
36
|
+
args: {
|
|
37
|
+
variant: 'ordered',
|
|
38
|
+
children: (
|
|
39
|
+
<>
|
|
40
|
+
<List.Item>First step</List.Item>
|
|
41
|
+
<List.Item>Second step</List.Item>
|
|
42
|
+
<List.Item>Third step</List.Item>
|
|
43
|
+
</>
|
|
44
|
+
),
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const Spacing: Story = {
|
|
49
|
+
args: {
|
|
50
|
+
variant: 'unordered',
|
|
51
|
+
spacing: 4,
|
|
52
|
+
children: (
|
|
53
|
+
<>
|
|
54
|
+
<List.Item>Item with more spacing</List.Item>
|
|
55
|
+
<List.Item>Item with more spacing</List.Item>
|
|
56
|
+
<List.Item>Item with more spacing</List.Item>
|
|
57
|
+
</>
|
|
58
|
+
),
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const WithIcons: Story = {
|
|
63
|
+
args: {
|
|
64
|
+
variant: 'none',
|
|
65
|
+
spacing: 2,
|
|
66
|
+
children: (
|
|
67
|
+
<>
|
|
68
|
+
<List.Item icon="✅">Success item</List.Item>
|
|
69
|
+
<List.Item icon="❌">Error item</List.Item>
|
|
70
|
+
<List.Item icon="ℹ️">Info item</List.Item>
|
|
71
|
+
</>
|
|
72
|
+
),
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const Nested: Story = {
|
|
77
|
+
args: {
|
|
78
|
+
variant: 'unordered',
|
|
79
|
+
children: (
|
|
80
|
+
<>
|
|
81
|
+
<List.Item>
|
|
82
|
+
Parent item
|
|
83
|
+
<List variant="unordered" marginTop={2}>
|
|
84
|
+
<List.Item>Nested item A</List.Item>
|
|
85
|
+
<List.Item>Nested item B</List.Item>
|
|
86
|
+
</List>
|
|
87
|
+
</List.Item>
|
|
88
|
+
<List.Item>Another parent item</List.Item>
|
|
89
|
+
</>
|
|
90
|
+
),
|
|
91
|
+
},
|
|
92
|
+
};
|