@codeandfunction/callaloo 4.9.4 → 4.9.5

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.
Files changed (106) hide show
  1. package/dist/callaloo.global.js +1 -1
  2. package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-BHF3fJsf.js +2 -0
  3. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-3vGTMU-k.js +2 -0
  4. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-BAfGE35e.js +2 -0
  5. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-DPQxSLkQ.js +2 -0
  6. package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-BYHbqaf0.js +2 -0
  7. package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-BPwFZq94.js +1 -0
  8. package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js +2 -0
  9. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-yF4CdZbV.js +2 -0
  10. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DCByJ7MB.js +2 -0
  11. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-CCyY39MJ.js +2 -0
  12. package/dist/chunks/CLModal.vue_vue_type_style_index_0_lang-CwdYGfO9.js +2 -0
  13. package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Ds2aJNK9.js +1 -0
  14. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BVsLNnfE.js +2 -0
  15. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BmjT9fQ_.js +2 -0
  16. package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-DgZLt9T1.js +2 -0
  17. package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js +2 -0
  18. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-BIehrtqC.js +2 -0
  19. package/dist/chunks/context-CRxE5KWX.js +1 -0
  20. package/dist/chunks/context-JmPivI9V.js +1 -0
  21. package/dist/chunks/floating-ui.vue-C0JWy0Dz.js +1 -0
  22. package/dist/chunks/helper-C542dSLs.js +1 -0
  23. package/dist/chunks/icons-6SVrmx7c.js +1 -0
  24. package/dist/chunks/utils-C1iUBPIL.js +1 -0
  25. package/dist/chunks/utils-CCWSWRuR.js +1 -0
  26. package/dist/chunks/utils-CYywa195.js +1 -0
  27. package/dist/chunks/utils-DVxwAjJ4.js +1 -0
  28. package/dist/chunks/utils-Dst7nzvj.js +1 -0
  29. package/dist/chunks/utils-MElq6rY3.js +1 -0
  30. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -5
  31. package/dist/components/Buttons/CLButton/CLButton.js +1 -5
  32. package/dist/components/CLIcon/CLIcon.js +1 -5
  33. package/dist/components/CLTable/CLTable.js +1 -192
  34. package/dist/components/Containers/CLCard/CLCard.js +1 -5
  35. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -544
  36. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -139
  37. package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -119
  38. package/dist/components/Form/CLCalendar/CLCalendar.js +1 -5
  39. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -150
  40. package/dist/components/Form/CLInput/CLInput.js +1 -450
  41. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -178
  42. package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -135
  43. package/dist/components/Form/CLSelect/CLSelect.js +1 -140
  44. package/dist/components/Form/CLTextArea/CLTextArea.js +1 -149
  45. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -40
  46. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -145
  47. package/dist/components/Indicators/CLPill/CLPill.js +1 -5
  48. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -64
  49. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -5
  50. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -5
  51. package/dist/components/Modals/CLModal/CLModal.js +1 -5
  52. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -182
  53. package/dist/components/Navigation/CLLink/CLLink.js +1 -5
  54. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -5
  55. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -54
  56. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -150
  57. package/dist/components/Popups/CLToast/CLToast.js +1 -5
  58. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -8
  59. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -7
  60. package/dist/components/Typography/CLHeading/CLHeading.js +1 -5
  61. package/dist/components/Typography/CLText/CLText.js +1 -5
  62. package/dist/composables/useDateInputMask.js +1 -38
  63. package/dist/composables/useDatePicker.js +1 -140
  64. package/dist/composables/useDropdown.js +1 -49
  65. package/dist/composables/useElementSize.js +1 -73
  66. package/dist/composables/useEsc.js +1 -19
  67. package/dist/composables/useHasSlotContent.js +1 -14
  68. package/dist/composables/useTheme.js +1 -40
  69. package/dist/composables/useToast.js +1 -17
  70. package/dist/index.js +1 -30
  71. package/package.json +20 -20
  72. package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-zGLnnSIW.js +0 -47
  73. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js +0 -136
  74. package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-Bz1JdT1A.js +0 -163
  75. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Sre7UYZd.js +0 -263
  76. package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js +0 -39
  77. package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-CIQxM6aH.js +0 -46
  78. package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js +0 -52
  79. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js +0 -113
  80. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js +0 -149
  81. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-BXysZqLn.js +0 -69
  82. package/dist/chunks/CLModal.vue_vue_type_style_index_0_lang-BDyONfaQ.js +0 -176
  83. package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dhnmfa9W.js +0 -44
  84. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BQim03ge.js +0 -94
  85. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-DduoX6Cu.js +0 -31
  86. package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-DlXqnsi8.js +0 -55
  87. package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js +0 -48
  88. package/dist/chunks/CLThemeProvider.vue_vue_type_script_setup_true_lang-jaJYKZL8.js +0 -59
  89. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-CzSDeL_X.js +0 -202
  90. package/dist/chunks/CLToastProvider.vue_vue_type_script_setup_true_lang-DkGK0H4Z.js +0 -35
  91. package/dist/chunks/context-CEvx70FY.js +0 -264
  92. package/dist/chunks/context-dkA4VoF7.js +0 -4
  93. package/dist/chunks/floating-ui.vue-Fx4CxKut.js +0 -1057
  94. package/dist/chunks/helper-qUkciePY.js +0 -81
  95. package/dist/chunks/icons-DllZKtC2.js +0 -4
  96. package/dist/chunks/magic-string.es-uPKorP4O.js +0 -663
  97. package/dist/chunks/utils-BfOa9ckr.js +0 -24
  98. package/dist/chunks/utils-BjZURPWx.js +0 -51
  99. package/dist/chunks/utils-C1xiySYN.js +0 -41
  100. package/dist/chunks/utils-D00IXMTR.js +0 -25
  101. package/dist/chunks/utils-eBt2zUZl.js +0 -17
  102. package/dist/chunks/utils-nD3K7jh9.js +0 -85
  103. package/dist/chunks/vue-test-utils.esm-bundler-BeQTU4qG.js +0 -18679
  104. package/dist/composables/useDatePicker.spec.js +0 -232
  105. package/dist/composables/useTheme.spec.js +0 -88
  106. package/dist/composables/useToast.spec.js +0 -45
@@ -0,0 +1,2 @@
1
+ import '../components/Buttons/CLA11yButton/CLA11yButton.css';
2
+ import{defineComponent as e,ref as t,computed as a,createElementBlock as l,openBlock as o,withKeys as d,normalizeStyle as n,normalizeClass as r,unref as u,renderSlot as s}from"vue";import{CLColors as i}from"../index.js";import{a as c}from"./utils-MElq6rY3.js";const f=["data-testid","tabindex"],p=/* @__PURE__ */e({name:"CLA11yButton",__name:"CLA11yButton",props:{color:{default:i.Neutral},enabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},testId:{default:"clll-a11y__button"}},setup(e){const i=e,p=["a","button"],b=t(),y=a(()=>["clll-a11y__button",i.enabled?"--enabled":"",i.rounded?"--rounded":"",i.fluid?"--fluid":""]),m=e=>{if(!i.enabled)return;const{target:t}=e,a=t?t.closest("a,button"):void 0,l=[...b.value?.querySelectorAll("[data-expand-click-area]")??[]];if(l.length){const t=l[0],o=a?p.includes(a.tagName.toLowerCase()):null;a||t===e.target||o||t.click()}};return(t,a)=>(o(),l("div",{ref_key:"refExpandedArea",ref:b,class:r(u(y)),"data-testid":e.testId,tabindex:e.enabled?0:void 0,style:n(u(c)({color:e.color})),onClick:m,onKeyup:d(m,["enter"])},[s(t.$slots,"default")],46,f))}});export{p as _};
@@ -0,0 +1,2 @@
1
+ import '../components/Buttons/CLButton/CLButton.css';
2
+ import{defineComponent as e,useSlots as t,ref as a,computed as o,onMounted as l,nextTick as i,createBlock as d,openBlock as n,resolveDynamicComponent as r,normalizeStyle as s,normalizeClass as u,unref as f,withCtx as c,createCommentVNode as p,createElementBlock as y,renderSlot as v}from"vue";import{_ as b}from"./CLIcon.vue_vue_type_style_index_0_lang-yF4CdZbV.js";import{_ as m}from"./CLSpinner.vue_vue_type_style_index_0_lang-DgZLt9T1.js";import{CLColorVariants as $,CLButtonTypes as _,CLLinkTarget as g,CLSizes as h,CLIconSizes as B,CLColors as L,CLAlign as z,CLPosition as C}from"../index.js";import{b as X}from"./utils-MElq6rY3.js";import{useHasSlotContent as S}from"../composables/useHasSlotContent.js";const w=/* @__PURE__ */e({name:"CLButton",__name:"CLButton",props:{active:{type:Boolean,default:!1},alignContent:{default:z.Center},ariaLabel:{default:void 0},as:{default:"button"},borderRadius:{default:void 0},busy:{type:Boolean,default:!1},color:{default:L.Neutral},disabled:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},form:{default:void 0},forwardRef:{type:Function,default:void 0},height:{default:"auto"},href:{default:void 0},iconAfter:{default:void 0},iconBefore:{default:void 0},iconFilled:{type:Boolean,default:!1},iconSize:{default:B.Small},onClick:{type:Function,default:void 0},pill:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},size:{default:h.Small},target:{default:g.Self},testId:{default:"clll-button"},title:{default:void 0},type:{default:_.Button},variant:{default:$.Soft},width:{default:"auto"},wrap:{type:Boolean,default:!1}},setup(e){const $=e,_=S();t();const g=a(),B="clll-button",L=o(()=>[B,`${B}--${$.type}`,`${B}--${$.color}--${$.variant}`,`${B}--${$.size}`,`${B}--${$.alignContent}`,$.active?`${B}--active`:"",$.busy?`${B}--busy`:"",$.disabled?`${B}--disabled`:"",$.wrap?`${B}--wrapped`:"",$.rounded?`${B}--rounded`:"",$.borderRadius?`${B}--${$.borderRadius}`:"",_.value?`${B}--has-content`:`${B}--no-content`,$.iconBefore?`${B}--icon-before`:"",$.iconAfter?`${B}--icon-after`:"",$.elevated?`${B}--elevated`:"",$.pill?`${B}--pill`:""]),w=()=>{switch($.size){case h.Medium:case h.Large:return h.Small;case h.XL:case h.XXL:return h.Medium;case h.XXXL:return h.Large;case h.XXXXL:return h.XL;case h.Tiny:default:return h.Tiny}};l(()=>{i(()=>{g.value&&$.forwardRef?.(g.value)})});const k=e=>{$.onClick?.(e)};return(t,a)=>(n(),d(r(e.as),{ref_key:"buttonRef",ref:g,"aria-label":e.ariaLabel,class:u(f(L)),"data-testid":e.testId,disabled:"button"===e.as?e.busy||e.disabled:void 0,form:"button"===e.as?e.form:void 0,href:"a"===e.as?e.href:void 0,target:"a"===e.as?e.target:void 0,title:e.title,type:"button"===e.as?e.type:void 0,style:s({width:e.width,height:e.height,...f(X)({color:e.color,variant:e.variant})}),onClick:k},{default:c(()=>[e.iconBefore?(n(),d(f(b),{key:0,filled:e.iconFilled,name:e.iconBefore,size:e.iconSize,"test-id":`${e.testId}-icon-before`},null,8,["filled","name","size","test-id"])):p("",!0),f(_)?(n(),y("span",{key:1,class:u(`${B}__content`)},[v(t.$slots,"default")],2)):p("",!0),e.iconAfter?(n(),d(f(b),{key:2,filled:e.iconFilled,name:e.iconAfter,size:e.iconSize,"test-id":`${e.testId}-icon-after`},null,8,["filled","name","size","test-id"])):p("",!0),e.busy?(n(),d(f(m),{key:3,align:f(z).Center,position:f(C).Absolute,size:w(),color:e.color},null,8,["align","position","size","color"])):p("",!0)]),_:3},8,["aria-label","class","data-testid","disabled","form","href","target","title","type","style"]))}});export{w as _};
@@ -0,0 +1,2 @@
1
+ import '../components/Form/CLCalendar/CLCalendar.css';
2
+ import{defineComponent as e,mergeModels as a,useCssVars as l,useModel as t,ref as i,toRef as d,watch as r,onMounted as n,createElementBlock as o,openBlock as s,normalizeClass as u,createElementVNode as c,createVNode as p,unref as f,withCtx as v,createTextVNode as _,toDisplayString as y,Fragment as m,renderList as h,createBlock as b,createCommentVNode as g}from"vue";import{_ as k}from"./CLButton.vue_vue_type_style_index_0_lang-3vGTMU-k.js";import{_ as x}from"./CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLColorVariants as z,CLSizes as D,CLIconSizes as w,CLIconNames as C,CLBorderRadius as S,CLTextTypes as L,CLColors as $,CLAlign as M}from"../index.js";import{useDatePicker as B}from"../composables/useDatePicker.js";const P=["data-testid"],R=/* @__PURE__ */e({name:"CLCalendar",__name:"CLCalendar",props:/* @__PURE__ */a({color:{default:$.Primary},disabled:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},isRange:{type:Boolean,default:!0},fluid:{type:Boolean,default:!1},testId:{default:"clll-calendar"},width:{default:"280px"}},{modelValue:{},modelModifiers:{}}),emits:/* @__PURE__ */a(["date-select"],["update:modelValue"]),setup(e,{expose:a,emit:R}){l(e=>({v63768322:e.width}));const T=e,j=R,E="clll-calendar",G=t(e,"modelValue"),F=i(G.value?.end??null),I=i(G.value?.start??null),{calendarGrid:N,cancelDraft:V,clearDraft:A,currentMonthLabel:O,draftEnd:q,draftStart:H,getDayAriaLabel:J,handleNextMonth:K,handlePrevMonth:Q,initializeDraft:U,isDraftEnd:W,isDraftStart:X,isInDraftRange:Y,onDayClick:Z,weekDays:ee}=B({appliedEnd:F,appliedStart:I,isRange:d(T,"isRange")});r(G,e=>{I.value=e?.start??null,F.value=e?.end??null,U()},{deep:!0}),n(()=>{U()});return a({apply:()=>{I.value=H.value,F.value=q.value,G.value={end:F.value,start:I.value}},cancel:()=>{V()},draftEnd:q,draftStart:H,initializeDraft:U,reset:()=>{A(),I.value=null,F.value=null,G.value=null}}),(a,l)=>(s(),o("div",{class:u([E,e.fluid?`${E}__fluid`:""]),"data-testid":e.testId},[c("div",{class:u(`${E}__header`)},[p(f(k),{"aria-label":"Previous month","border-radius":f(S).Full,"icon-before":f(C).ChevronLeft,"icon-size":f(w).Tiny,"on-click":f(Q),size:f(D).Tiny,variant:f(z).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"]),p(f(x),{type:f(L).Medium,medium:""},{default:v(()=>[_(y(f(O)),1)]),_:1},8,["type"]),p(f(k),{"aria-label":"Next month","border-radius":f(S).Full,"icon-before":f(C).ChevronRight,"icon-size":f(w).Tiny,"on-click":f(K),size:f(D).Tiny,variant:f(z).Ghost,height:"32px",width:"32px",wrap:""},null,8,["border-radius","icon-before","icon-size","on-click","size","variant"])],2),c("div",{class:u(`${E}__grid`)},[(s(!0),o(m,null,h(f(ee),e=>(s(),o("div",{key:e,class:u(`${E}__weekday`)},[p(f(x),{align:f(M).Center,color:f($).Neutral,type:f(L).Small},{default:v(()=>[_(y(e),1)]),_:2},1032,["align","color","type"])],2))),128)),(s(!0),o(m,null,h(f(N),(a,l)=>(s(),o("div",{key:a.date??`pad-${l}`,class:u([`${E}__cell`,a.isOutsideMonth?`${E}__cell--outside`:""])},[a.day&&a.date?(s(),b(f(k),{key:0,"aria-label":f(J)(a.date),"border-radius":f(S).Full,color:f(X)(a.date)||f(W)(a.date)?e.color:f($).Secondary,disabled:e.disabled||e.busy,size:f(D).Small,height:"100%",width:"100%","on-click":e=>((e,a)=>{a?.preventDefault(),a?.stopPropagation(),T.disabled||T.busy||!e||(Z(e),j("date-select",e))})(a.date,e),variant:f(X)(a.date)||f(W)(a.date)?f(z).Solid:f(Y)(a.date)?f(z).Soft:f(z).Ghost,wrap:""},{default:v(()=>[_(y(a.day),1)]),_:2},1032,["aria-label","border-radius","color","disabled","size","on-click","variant"])):g("",!0)],2))),128))],2)],10,P))}});export{R as _};
@@ -0,0 +1,2 @@
1
+ import '../components/Containers/CLCard/CLCard.css';
2
+ import{defineComponent as e,useSlots as a,ref as t,computed as l,onMounted as i,nextTick as r,createElementBlock as o,openBlock as d,withKeys as n,normalizeStyle as s,normalizeClass as u,unref as c,createCommentVNode as g,createElementVNode as y,createBlock as h,renderSlot as f,Fragment as m,withCtx as _,createTextVNode as b,toDisplayString as v}from"vue";import{_ as $}from"./CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js";import{_ as p}from"./CLLink.vue_vue_type_style_index_0_lang-CCyY39MJ.js";import{_ as k}from"./CLSkeleton.vue_vue_type_style_index_0_lang-BmjT9fQ_.js";import{_ as C}from"./CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLColorVariants as w,CLCardTypes as x,CLHeadingTypes as L,CLHeadingLevels as H,CLLinkTarget as R,CLOverflow as T,CLLoading as B,CLColors as S,CLAlign as j,CLOrder as A,CLTextTypes as O}from"../index.js";import{c as W}from"./utils-Dst7nzvj.js";import{useHasSlotContent as E}from"../composables/useHasSlotContent.js";const I=["data-testid","tabindex"],N=["alt","loading","src"],q={key:0,class:"clll-card__header-skeleton"},G=["alt","loading","src"],K=["aria-label","href","target"],M=/* @__PURE__ */e({name:"CLCard",__name:"CLCard",props:{active:{type:Boolean,default:!1},align:{default:j.Left},ariaLabel:{},borderRadius:{},bordered:{type:Boolean,default:!0},busy:{type:Boolean,default:!1},byline:{},color:{default:S.Neutral},compact:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},forwardRef:{},height:{default:"auto"},href:{},image:{},imageAltText:{default:""},imageHeight:{default:"auto"},imageLoading:{default:B.Eager},imageOrder:{},imageWidth:{default:"auto"},onClick:{},overflow:{default:T.Hidden},padded:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},target:{default:R.Self},testId:{default:"clll-card"},title:{},titleHLevel:{default:H.H2},titleType:{default:L.SubSection},truncateTitle:{type:Boolean,default:!1},type:{default:x.Medium},variant:{default:w.Soft},width:{default:"auto"}},setup(e){const x="clll-card",L=e,H=E(),R=a(),T=t(),B=t(),S=["a","button"],j=t(),M=l(()=>[x,`${x}--${L.type}`,`${x}--${L.color}-${L.variant}`,`${x}--${L.variant}`,`${x}--align-${L.align}`,L.rounded?`${x}--rounded`:`${x}--box`,L.bordered?`${x}--bordered`:"",L.borderRadius?`${x}--${L.borderRadius}`:"",L.busy?`${x}--busy`:`${x}--ready`,L.compact?`${x}--compact`:`${x}--no-compact`,L.title||L.byline?`${x}--has-header`:`${x}--no-header`,T.value?`${x}--has-heading`:`${x}--no-heading`,H.value?`${x}--has-content`:`${x}--no-content`,B.value?`${x}--has-footer`:`${x}--no-footer`,L.image?`${x}--has-image`:`${x}--has-no-image`,L.imageOrder?`${x}--image-${L.imageOrder}`:"",L.active?`${x}--active`:`${x}--inactive`,L.onClick?`${x}--has-link`:"",L.truncateTitle?`${x}--has-truncated-title`:"",L.elevated?`${x}--elevated`:"",L.overflow?`${x}--overflow-${L.overflow}`:"",L.padded?"":`${x}--no-padding`]),z=e=>{if(L.busy||!L.onClick)return;const{target:a}=e,t=a?a.closest("a,button"):void 0,l=[...j.value?.querySelectorAll("[data-expand-click-area]")??[]];if(l.length){const a=l[0],i=t?S.includes(t.tagName.toLowerCase()):null;t||a===e.target||i||a.click()}};return i(async()=>{await r(),j.value&&L.forwardRef?.(j.value),T.value=R?.heading,B.value=R?.footer}),(a,t)=>(d(),o("div",{ref_key:"refExpandedArea",ref:j,class:u(c(M)),style:s({...c(W)({color:e.color,variant:e.variant}),width:e.width,height:e.height,overflow:e.overflow}),"data-testid":e.testId,tabindex:e.onClick?0:void 0,onClick:z,onKeyup:n(z,["enter"])},[!e.image||e.imageOrder!==c(A).Before&&e.imageOrder?g("",!0):(d(),o("div",{key:0,class:u(["clll-card__image",{busy:e.busy}]),style:s({width:e.imageWidth,height:e.imageHeight})},[e.busy?(d(),h(c(k),{key:0,"border-radius":e.borderRadius,width:e.imageWidth,height:e.imageHeight,rounded:!1},null,8,["border-radius","width","height"])):g("",!0),e.image?(d(),o("img",{key:1,alt:e.imageAltText,class:u(`${x}__image__elem`),loading:e.imageLoading,src:e.image},null,10,N)):g("",!0)],6)),y("div",{class:u(`${x}__content`)},[y("div",{class:u(["clll-card__header",{busy:e.busy}])},[e.busy&&(c(T)||e.title||e.byline)?(d(),o("div",q,[c(T)||e.title?(d(),h(c(k),{key:0,"border-radius":e.borderRadius,height:"27px"},null,8,["border-radius"])):g("",!0),e.byline?(d(),h(c(k),{key:1,"border-radius":e.borderRadius,width:"70%",height:"20px"},null,8,["border-radius"])):g("",!0)])):g("",!0),e.onClick||e.href?e.title||c(T)&&(e.onClick||e.href)?(d(),h(c(p),{key:2,"aria-label":e.ariaLabel,color:e.color,href:e.href,target:e.target,"on-click":e.onClick,"data-expand-click-area":""},{default:_(()=>[f(a.$slots,"heading"),e.title?(d(),h(c($),{key:0,align:e.align,class:u(`${x}__heading`),color:e.color,level:e.titleHLevel,truncate:e.truncateTitle,type:e.titleType},{default:_(()=>[b(v(e.title),1)]),_:1},8,["align","class","color","level","truncate","type"])):g("",!0)]),_:3},8,["aria-label","color","href","target","on-click"])):g("",!0):(d(),o(m,{key:1},[f(a.$slots,"heading"),e.title?(d(),h(c($),{key:0,align:e.align,class:u(`${x}__heading`),color:e.color,level:e.titleHLevel,truncate:e.truncateTitle,type:e.titleType},{default:_(()=>[b(v(e.title),1)]),_:1},8,["align","class","color","level","truncate","type"])):g("",!0)],64)),f(a.$slots,"byline"),e.byline?(d(),h(c(C),{key:3,align:e.align,class:u(`${x}__byline`),color:e.color,type:c(O).Small},{default:_(()=>[b(v(e.byline),1)]),_:1},8,["align","class","color","type"])):g("",!0)],2),y("div",{class:u(`${x}__slot`)},[y("div",{ref:"slot-content",class:u([`${x}__slot-content`,{busy:e.busy}])},[c(H)&&e.busy?(d(),h(c(k),{key:0,"border-radius":e.borderRadius,width:"100%",height:"100%"},null,8,["border-radius"])):g("",!0),y("div",null,[f(a.$slots,"default")])],2)],2),y("div",{class:u(["clll-card__footer",{busy:e.busy}])},[c(B)&&e.busy?(d(),h(c(k),{key:0,"border-radius":e.borderRadius,width:"100%",height:"20px"},null,8,["border-radius"])):g("",!0),f(a.$slots,"footer")],2)],2),e.image&&e.imageOrder===c(A).After?(d(),o("div",{key:1,class:u(["clll-card__image",{busy:e.busy}]),style:s({width:e.imageWidth,height:e.imageHeight})},[e.busy?(d(),h(c(k),{key:0,"border-radius":e.borderRadius,width:e.imageWidth,height:e.imageHeight,rounded:!1},null,8,["border-radius","width","height"])):g("",!0),f(a.$slots,"image"),e.image?(d(),o("img",{key:1,alt:e.imageAltText,class:u(`${x}__image__elem`),loading:e.imageLoading,src:e.image},null,10,G)):g("",!0)],6)):g("",!0),e.title||!e.onClick&&!e.href?g("",!0):(d(),o("a",{key:2,"aria-label":e.ariaLabel,class:"sr-only",href:e.href,target:e.target,"data-expand-click-area":"",onClick:t[0]||(t[0]=(...a)=>e.onClick&&e.onClick(...a))},null,8,K)),e.onClick&&e.variant!==c(w).Ghost?(d(),o("div",{key:3,class:u(`${x}__hover-elem`)},null,2)):g("",!0)],46,I))}});export{M as _};
@@ -0,0 +1,2 @@
1
+ import '../assets/CLFormCharCounter.css';
2
+ import{defineComponent as r,computed as t,createElementBlock as e,openBlock as l,normalizeClass as o,unref as a,createElementVNode as c,toDisplayString as n}from"vue";import{CLSizes as u,CLCharCounterLayout as s,CLColors as m}from"../index.js";const f=["data-testid"],h={"aria-live":"polite",class:"clll-form-char-counter__char-counter__text",role:"status"},i=/* @__PURE__ */r({name:"CLFormCharCounter",__name:"CLFormCharCounter",props:{color:{default:m.Neutral},cssPrefix:{},currentLength:{},layout:{default:s.Block},maxLength:{},size:{default:u.Small},testId:{default:"clll-form-char-counter"}},setup(r){const u=r,m=t(()=>[`${u.cssPrefix}__char-counter`,"clll-form-char-counter",`clll-form-char-counter--${u.layout}`,`clll-form-char-counter--${u.size}`,`clll-form-char-counter--${u.color}`,u.layout===s.Inline?"form-counter-flex":""]);return(t,u)=>(l(),e("span",{class:o(a(m)),"data-testid":r.testId},[c("div",h,n(r.currentLength)+"/"+n(r.maxLength),1)],10,f))}});export{i as _};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,createElementBlock as l,openBlock as a,normalizeClass as t,createVNode as s,unref as r,withCtx as o,createTextVNode as X,toDisplayString as d}from"vue";import{_ as i}from"./CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLSizes as m,CLTextTypes as f}from"../index.js";const u=["for","data-testid"],_=/* @__PURE__ */e({name:"CLFormLabel",__name:"CLFormLabel",props:{cssPrefix:{default:"clll-form"},htmlFor:{},label:{},required:{type:Boolean,default:!1},size:{default:m.Small},testId:{default:"clll-form-label"}},setup(e){const _={[m.Tiny]:f.Tiny,[m.Small]:f.Small,[m.Medium]:f.Medium,[m.Large]:f.Body,[m.XL]:f.XL,[m.XXL]:f.XXL,[m.XXXL]:f.XXXL,[m.XXXXL]:f.XXXXL};return(m,f)=>(a(),l("label",{for:e.htmlFor,class:t(`${e.cssPrefix}__label`),"data-testid":e.testId},[s(r(i),{as:"span",type:_[e.size],class:t(e.required?`${e.cssPrefix}__label--required`:"")},{default:o(()=>[X(d(e.label),1)]),_:1},8,["type","class"])],10,u))}});export{_};
@@ -0,0 +1,2 @@
1
+ import '../components/Typography/CLHeading/CLHeading.css';
2
+ import{defineComponent as e,computed as t,createBlock as l,openBlock as a,resolveDynamicComponent as o,unref as r,normalizeStyle as s,normalizeClass as d,withCtx as n,renderSlot as c}from"vue";import{CLHeadingTypes as i,CLColors as u,CLAlign as f,CLHeadingLevels as p}from"../index.js";import{t as $}from"./utils-CYywa195.js";const m=/* @__PURE__ */e({name:"CLHeading",__name:"CLHeading",props:{align:{default:f.Left},bolder:{type:Boolean,default:!1},color:{default:u.Secondary},level:{},testId:{default:"clll-heading"},truncate:{type:Boolean,default:!1},type:{default:i.Title}},setup(e){const u=e,f="clll-heading",m=t(()=>{if(u.level)return u.level;switch(u.type){case i.Section:return p.H2;case i.SubSection:return p.H3;case i.PageTitle:case i.Title:default:return p.H1}}),y=t(()=>[f,`${f}--${u.align}`,`${f}--${u.color}`,`${f}--${u.truncate?"wrap":"nowrap"}`,`${f}--${u.type}`,u.bolder?`${f}--bolder`:""]);return(t,i)=>(a(),l(o(r(m)),{class:d(r(y)),"data-testid":e.testId,style:s(r($)({color:e.color}))},{default:n(()=>[c(t.$slots,"default")]),_:3},8,["class","data-testid","style"]))}});export{m as _};
@@ -0,0 +1,2 @@
1
+ import '../components/CLIcon/CLIcon.css';
2
+ import{defineComponent as e,ref as t,computed as l,watch as o,onMounted as n,createElementBlock as i,openBlock as r,normalizeStyle as a,normalizeClass as s,unref as c,createElementVNode as d}from"vue";import{CLMode as u,CLColors as m,CLColorVariants as f,CLIconSizes as p}from"../index.js";import{g as h}from"./utils-DVxwAjJ4.js";import{useTheme as v}from"../composables/useTheme.js";import{i as g}from"./helper-C542dSLs.js";const y=({color:e=m.Neutral})=>{const{colors:t,darkMode:l}=v(),o=l.value?u.Dark:u.Light,n=h({color:e,colors:t.value,mode:o,variant:f.Text});return{"--clll-icon-color":n?.textBody??"inherit"}},L=["data-testid"],X=["height","width"],w=["href"],B=/* @__PURE__ */e({name:"CLIcon",__name:"CLIcon",props:{color:{default:m.Neutral},filled:{type:Boolean,default:!1},name:{},size:{default:p.Small},testId:{default:"clll-icon"}},setup(e){const u=e,m="clll-icon",f={[p.Tiny]:20,[p.Small]:24,[p.Medium]:28,[p.Large]:32,[p.XL]:36,[p.XXL]:40,[p.XXXL]:44,[p.XXXXL]:48},h=/* @__PURE__ */new Map,v=t(!1),B=l(()=>u.filled?u.name.endsWith("-filled")?u.name:u.name.replace("tabler:","tabler:")+"-filled":u.name),I=l(()=>{const e=B.value;if(!u.filled||e===u.name)return e;return(e=>{if(!g)return!1;if(h.has(e))return h.get(e);const t=document.getElementById("clll-icons");if(!t)return!1;const l=document.getElementById(e),o=null!==l&&t.contains(l);return h.set(e,o),o})(e)?e:u.name}),x=l(()=>[m,`${m}--${u.name}`,`${m}--${u.size}`,{[`${m}--filled`]:u.filled&&I.value===B.value}]),$=l(()=>({...y({color:u.color}),width:f[u.size]+4+"px",height:f[u.size]+4+"px"}));o(()=>v.value,e=>{e&&h.clear()});return n(()=>{(async()=>{if(!g)return;let e=document.getElementById("clll-icons");if(e)v.value=!0;else try{const t=/* #__PURE__ */Object.assign({"/src/icons.svg":()=>import("./icons-6SVrmx7c.js").then(e=>e.default)})["/src/icons.svg"];if(!t)return;const l=await t();if(e=document.getElementById("clll-icons"),e)return void(v.value=!0);const o=document.createElement("div");o.id="clll-icons",o.style.display="none",o.innerHTML=l.toString();const n=()=>{document.body.insertBefore(o,document.body.childNodes[0]),v.value=!0};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",n,{once:!0}):n()}catch(t){console.error("[Callaloo] Failed to load icon sprite:",t)}})()}),(t,l)=>(r(),i("span",{class:s(c(x)),"data-testid":e.testId,style:a(c($))},[(r(),i("svg",{"aria-hidden":"true",class:s(`${m}-sprite`),height:f[e.size],width:f[e.size],viewBox:"0 0 24 24"},[d("use",{href:`#${c(I)}`},null,8,w)],10,X))],14,L))}});export{B as _};
@@ -0,0 +1,2 @@
1
+ import '../assets/CLInputMessages.css';
2
+ import{defineComponent as l,createElementBlock as e,openBlock as r,normalizeClass as a,unref as t,renderSlot as o,Fragment as s,renderList as c,normalizeStyle as n,createElementVNode as i,toDisplayString as d}from"vue";import{CLOrientation as u,CLMode as p,CLColorVariants as b,CLColors as h}from"../index.js";import{useTheme as v}from"../composables/useTheme.js";import{g as k}from"./utils-DVxwAjJ4.js";const x="clll-form-field",f=/* @__PURE__ */l({__name:"CLFormField",props:{fluid:{type:Boolean},hasPill:{type:Boolean},hasCharCounter:{type:Boolean},orientation:{}},setup:l=>(s,c)=>(r(),e("div",{class:a([x,l.fluid||l.orientation===t(u).Horizontal?`${x}--fluid`:`${x}--fixed`,l.orientation?`${x}--${l.orientation}`:"",l.hasPill?`${x}--haspill`:"",l.hasCharCounter?`${x}--hascharcounter`:""])},[o(s.$slots,"default")],2))}),m=({color:l,variant:e})=>{const{colors:r,darkMode:a}=v(),t=a.value?p.Dark:p.Light,o=e===b.Ghost,s=k({color:l,colors:r.value,mode:t,variant:b.Solid}),c=k({color:l,colors:r.value,mode:t,variant:b.Outline}),n=a.value?"black":"white",i=c?.border,d=c?.disabled,u=a.value?"black":s?.textDisabled,h=c?.focus,x=c?.focus,f=c?.text,m=c?.textDisabled;return{"--clll-checkbox-bg":o?"transparent":n??"white","--clll-checkbox-border":o?"transparent":i??"transparent","--clll-checkbox-disabled-border":d??"transparent","--clll-checkbox-disabled-bg":u??"transparent","--clll-checkbox-checked-bg":n??"white","--clll-checkbox-focus-border":h??"transparent","--clll-checkbox-focus-shadow":x??"transparent","--clll-checkbox-icon-color":f??"inherit","--clll-checkbox-disabled-icon-color":m??"transparent","--clll-checkbox-indicator-color":f??"inherit","--clll-checkbox-disabled-indicator-color":m??"transparent","--clll-checkbox-theme-radius":"var(--clll-default-radius)","--clll-checkbox-outline-width":o?"0px":"2px","--clll-checkbox-required-asterisk-color":y()??"red"}},g=({color:l,variant:e})=>{const{colors:r,darkMode:a}=v(),t=a.value?p.Dark:p.Light,o=e===b.Ghost,s=k({color:l,colors:r.value,mode:t,variant:b.Solid}),c=k({color:l,colors:r.value,mode:t,variant:b.Outline}),n=a.value?"black":"white",i=a.value?"black":s?.textDisabled,d=c?.border,u=c?.disabled,h=a.value?"black":s?.textDisabled,x=c?.focus,f=c?.focus,m=c?.text,g=c?.focus;return{"--clll-input-bg":o?"transparent":n??"white","--clll-input-border":o?"transparent":d??"transparent","--clll-input-disabled-border":u??"transparent","--clll-input-disabled-bg":h??"transparent","--clll-input-readonly-border":u??"transparent","--clll-input-readonly-bg":h??"transparent","--clll-input-focus-border":x??"transparent","--clll-input-focus-shadow":f??"transparent","--clll-input-text":m??"inherit","--clll-input-text-placeholder":g??"transparent","--clll-input-grouped-bg":i??"transparent","--clll-input-prefix-suffix-color":g??"transparent","--clll-input-theme-radius":"var(--clll-default-radius)","--clll-input-ghost-padding":o?"0":void 0,"--clll-input-required-asterisk-color":y()??"red"}},$=({color:l})=>{const{colors:e,darkMode:r}=v(),a=r.value?p.Dark:p.Light,t=k({color:l,colors:e.value,mode:a,variant:b.Outline});return{"--clll-input-message-color":t?.textBody??"inherit"}},w=({color:l,variant:e})=>{const{colors:r,darkMode:a}=v(),t=a.value?p.Dark:p.Light,o=e===b.Ghost,s=k({color:l,colors:r.value,mode:t,variant:b.Solid}),c=k({color:l,colors:r.value,mode:t,variant:b.Outline}),n=a.value?"black":"white",i=c?.border,d=c?.disabled,u=a.value?"black":s?.textDisabled,h=c?.focus,x=c?.focus,f=c?.text,m=c?.focus;return{"--clll-select-bg":o?"transparent":n??"white","--clll-select-border":o?"transparent":i??"transparent","--clll-select-disabled-border":d??"transparent","--clll-select-disabled-bg":u??"transparent","--clll-select-focus-border":h??"transparent","--clll-select-focus-shadow":x??"transparent","--clll-select-text":f??"inherit","--clll-select-text-placeholder":m??"transparent","--clll-select-icon-color":f??"inherit","--clll-select-disabled-icon-color":m??"transparent","--clll-select-theme-radius":"var(--clll-default-radius)","--clll-select-ghost-padding":o?"0":void 0,"--clll-select-required-asterisk-color":y()??"red"}},y=()=>{const{colors:l,darkMode:e}=v();return e.value?l.value.danger?.[400]:l.value.danger?.[700]},D="clll-input__message",_=/* @__PURE__ */l({__name:"CLInputMessages",props:{id:{},messages:{},messageType:{default:h.Neutral}},setup:l=>(o,u)=>(r(!0),e(s,null,c(l.messages,(o,s)=>(r(),e("span",{key:`${l.id}-message-${s}`,class:a([D,`${D}--${l.messageType}`]),style:n(t($)({color:l.messageType}))},[i("span",{class:a([`${D}__text`])},d(o),3)],6))),128))});export{f as _,_ as a,m as c,g as i,w as s};
@@ -0,0 +1,2 @@
1
+ import '../components/Navigation/CLLink/CLLink.css';
2
+ import{defineComponent as e,computed as l,createElementBlock as r,openBlock as n,normalizeStyle as t,normalizeClass as a,unref as o,renderSlot as i,createBlock as s,createCommentVNode as d}from"vue";import{_ as c}from"./CLIcon.vue_vue_type_style_index_0_lang-yF4CdZbV.js";import{CLMode as u,CLColors as f,CLColorVariants as p,CLLinkTarget as m,CLIconSizes as k,CLIconNames as x}from"../index.js";import{g as h}from"./utils-DVxwAjJ4.js";import{useTheme as b}from"../composables/useTheme.js";const v=({color:e=f.Primary,underline:l=!0})=>{const{colors:r,darkMode:n}=b(),t=n.value?u.Dark:u.Light,a=h({color:e,colors:r.value,mode:t,variant:p.Outline}),o=a?.border,i=a?.textDisabled,s=a?.textBody;return{"--clll-link-text-color":s??"inherit","--clll-link-text-hover":(n.value?a?.borderHover:a?.textDisabled)??"inherit","--clll-link-underline-color":l?o??"transparent":"transparent","--clll-link-underline-hover":l?i??"transparent":"transparent","--clll-link-focus-border":s??"transparent","--clll-link-focus-shadow":a?.shadow??"transparent"}},y=["aria-label","data-testid","href","rel","target"],_=/* @__PURE__ */e({name:"CLLink",__name:"CLLink",props:{ariaLabel:{},color:{default:f.Primary},external:{type:Boolean,default:!1},href:{},onClick:{},rel:{default:"noreferrer noopener"},target:{default:m.Self},testId:{default:"clll-link"},underline:{type:Boolean,default:!0}},setup(e){const u=e,f="clll-link",p=l(()=>[f,`${f}--${u.color}`,`${f}--${u.external?"external":"internal"}`,u.underline?`${f}--underline`:`${f}--nounderline`]);return(l,u)=>(n(),r("a",{"aria-label":e.ariaLabel,class:a(o(p)),"data-testid":e.testId,href:e.href,rel:e.external?e.rel:"",target:e.target,style:t(o(v)({color:e.color,underline:e.underline})),onClick:u[0]||(u[0]=(...l)=>e.onClick&&e.onClick(...l))},[i(l.$slots,"default"),e.external?(n(),s(o(c),{key:0,color:e.color,name:o(x).ExternalLink,size:o(k).Tiny},null,8,["color","name","size"])):d("",!0)],14,y))}});export{_};
@@ -0,0 +1,2 @@
1
+ import '../components/Modals/CLModal/CLModal.css';
2
+ import{defineComponent as e,useTemplateRef as o,useSlots as t,ref as l,computed as a,watch as n,onMounted as s,onBeforeUnmount as d,createElementBlock as i,createCommentVNode as r,openBlock as c,normalizeStyle as _,normalizeClass as u,unref as m,createElementVNode as v,createBlock as f,renderSlot as y,withCtx as p,createTextVNode as b,toDisplayString as $}from"vue";import{_ as h}from"./CLButton.vue_vue_type_style_index_0_lang-3vGTMU-k.js";import{_ as w}from"./CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js";import{CLMode as x,CLColors as I,CLColorVariants as z,CLBorderRadius as g,CLIconSizes as L,CLIconNames as k,CLHeadingTypes as C}from"../index.js";import{g as B}from"./utils-DVxwAjJ4.js";import{useTheme as j}from"../composables/useTheme.js";import{useEsc as T}from"../composables/useEsc.js";import{c as E,i as O}from"./helper-C542dSLs.js";const R=()=>{const{colors:e,darkMode:o}=j(),t=o.value?x.Dark:x.Light,l=B({color:I.Neutral,colors:e.value,mode:t,variant:z.Solid}),a=o.value?"black":"white";return{"--clll-modal-overlay-bg":l?.bg??"transparent","--clll-modal-content-bg":a,"--clll-modal-theme-radius":"var(--clll-default-radius)"}},S=["id","data-testid"],M=["aria-labelledby"],D=/* @__PURE__ */e({name:"CLModal",__name:"CLModal",props:{borderRadius:{default:void 0},close:{type:Boolean,default:!0},closeBorderRadius:{default:g.Full},dismissible:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},isOpen:{type:Boolean,default:!1},maxWidth:{default:"640px"},modalId:{},onClose:{type:Function,default:void 0},overlay:{type:Boolean,default:!0},testId:{default:"clll-modal"},title:{default:void 0},zIndex:{default:100}},emits:["modal-open","modal-close"],setup(e,{emit:x}){const g=x,B=o("modal-window"),j=t(),D=e,F="clll-modal",H="clll-prevent-scroll",N=l(),W=()=>{O&&window?.document.body.classList.add(H)},q=()=>{O&&window?.document.body.classList.remove(H)},A=a(()=>[F]),G=a(()=>[`${F}__window`,D.fullscreen?`${F}__window--fullscreen`:""]),J=a(()=>[`${F}__content`,D.borderRadius?`${F}__content--${D.borderRadius}`:"",D.close?`${F}__content--has-close-button`:`${F}__content--has-no-close-button`,j.body?`${F}__content--has-body`:`${F}__content--has-no-body`,j.footer?`${F}__content--has-footer`:`${F}__content--has-no-footer`,j.header||D.title?`${F}__content--has-header`:`${F}__content--has-no-header`,D.title?`${F}__content--has-title`:`${F}__content--has-no-title`]),K=a(()=>"auto"===D.zIndex||E(D.zIndex)?D.zIndex:D.zIndex.toString()),P=a(()=>{if("auto"===D.zIndex)return D.zIndex;return((E(D.zIndex)?parseInt(D.zIndex,10):D.zIndex)+100).toString()}),Q=e=>{try{(e=>{try{const o=e?.target,t=B.value;return!(!O||!t||t.contains(o))||void 0}catch(o){return void console.error(o)}})(e)&&(O&&window.removeEventListener("mousedown",Q),X())}catch(o){console.error(o)}},U=()=>{O&&window.removeEventListener("mousedown",Q)},V=()=>{O&&(N.value&&O&&window.clearTimeout(N.value),U(),q())},X=()=>{D.isOpen&&(D.onClose?.(),V())};n(D,e=>{e.isOpen?(g("modal-open"),W(),B.value&&B.value.focus(),O&&e.dismissible&&(U(),N.value=window.setTimeout(()=>{window.addEventListener("mousedown",Q)},100))):(B.value&&B.value.blur(),q(),U(),N.value&&O&&window.clearTimeout(N.value),g("modal-close"))}),s(()=>{D.isOpen&&O&&(W(),B.value&&B.value.focus())});const{clearEventListeners:Y}=T({escHandler:D.dismissible?X:void 0});return d(()=>{V(),Y()}),(o,t)=>e.isOpen?(c(),i("div",{key:0,id:e.modalId,class:u(m(A)),"data-testid":e.testId,style:_({...m(R)(),zIndex:m(K)})},[v("div",{class:u(m(G)),style:_({zIndex:m(P)})},[v("div",{ref:"modal-window","aria-modal":"true","aria-labelledby":`${F}__content__header__title`,class:u(m(J)),role:"dialog",tabindex:-1,style:_({"--clll-modal-max-width":e.maxWidth})},[v("div",{class:u(`${F}__close-button`)},[e.onClose&&e.close?(c(),f(m(h),{key:0,"aria-label":"Close modal","border-radius":e.closeBorderRadius,color:m(I).Neutral,"icon-before":m(k).Delete,"icon-size":m(L).Tiny,"on-click":e.onClose,"test-id":`${F}__close-button`,variant:m(z).Text},null,8,["border-radius","color","icon-before","icon-size","on-click","test-id","variant"])):r("",!0)],2),v("div",{class:u(`${F}__content__header`)},[v("div",{class:u(`${F}__content__title`)},[v("div",{class:u(`${F}__content__header__container`)},[e.title?(c(),f(m(w),{key:0,id:`${F}__content__header__title`,class:u(`${F}__content__header__title`),type:m(C).Section},{default:p(()=>[b($(e.title),1)]),_:1},8,["id","class","type"])):r("",!0),y(o.$slots,"header")],2)],2)],2),v("div",{class:u(`${F}__content__scroller`)},[v("div",{class:u(`${F}__content__body`)},[y(o.$slots,"body")],2)],2),v("div",{class:u(`${F}__content__footer`)},[y(o.$slots,"footer")],2)],14,M)],6),e.overlay?(c(),i("div",{key:0,ref:"overlay-ref",class:u(`${F}__overlay`),style:_({zIndex:e.zIndex})},null,6)):r("",!0)],14,S)):r("",!0)}});export{D as _};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,createBlock as t,openBlock as l,unref as r,withCtx as a,renderSlot as i}from"vue";import{_ as n}from"./CLLink.vue_vue_type_style_index_0_lang-CCyY39MJ.js";import{CLColors as o}from"../index.js";const d=/* @__PURE__ */e({name:"CLNavLink",__name:"CLNavLink",props:{ariaLabel:{},color:{default:o.Neutral},external:{type:Boolean,default:!1},href:{},id:{},onClick:{},rel:{default:"noreferrer noopener"},target:{},testId:{default:"clll-navlink"}},emits:["click"],setup(e,{emit:o}){const d=e,c=o,s=e=>{d.onClick&&d.onClick(e),c("click",e)};return(o,d)=>(l(),t(r(n),{id:e.id,"aria-label":e.ariaLabel,color:e.color,"data-testid":e.testId,external:e.external,href:e.href,rel:e.rel,target:e.target,underline:!e.onClick,onClick:s},{default:a(()=>[i(o.$slots,"default")]),_:3},8,["id","aria-label","color","data-testid","external","href","rel","target","underline"]))}});export{d as _};
@@ -0,0 +1,2 @@
1
+ import '../components/Indicators/CLPill/CLPill.css';
2
+ import{defineComponent as l,computed as o,createElementBlock as e,openBlock as n,Fragment as a,createCommentVNode as t,createBlock as i,normalizeStyle as c,normalizeClass as s,unref as d,createElementVNode as r,toDisplayString as u,withCtx as _}from"vue";import{_ as p}from"./CLButton.vue_vue_type_style_index_0_lang-3vGTMU-k.js";import{_ as v}from"./CLIcon.vue_vue_type_style_index_0_lang-yF4CdZbV.js";import{CLColorVariants as $,CLColors as f,CLIconSizes as y}from"../index.js";import{p as m}from"./utils-CCWSWRuR.js";const k=["data-testid"],C=/* @__PURE__ */l({name:"CLPill",__name:"CLPill",props:{color:{default:f.Neutral},count:{},elevated:{type:Boolean,default:!1},icon:{},iconFilled:{type:Boolean,default:!1},label:{},onClick:{},rounded:{type:Boolean,default:!0},testId:{default:"clll-pill"},variant:{default:$.Soft}},setup(l){const $=l,f="clll-pill",C=o(()=>[f,`${f}--${$.color}--${$.variant}`,$.count?`${f}--has-count`:"",$.elevated?`${f}--elevated`:"",$.icon?`${f}--has-icon`:`${f}--has-noicon`,$.rounded?`${f}--rounded`:""]),b=o(()=>[f,`${f}--clickable`,`${f}--${$.color}--${$.variant}`,$.count?`${f}--has-count`:"",$.icon?`${f}--has-icon`:`${f}--has-noicon`,$.rounded?`${f}--rounded`:""]);return(o,$)=>(n(),e(a,null,[l.onClick?t("",!0):(n(),e("div",{key:0,class:s(d(C)),"data-testid":l.testId,style:c(d(m)({color:l.color,variant:l.variant}))},[l.icon?(n(),i(d(v),{key:0,filled:l.iconFilled,name:l.icon,size:d(y).Tiny},null,8,["filled","name","size"])):t("",!0),r("span",{class:s(`${f}__label`)},u(l.label),3),l.count?(n(),e("span",{key:1,class:s(`${f}__count`)},u(l.count),3)):t("",!0)],14,k)),l.onClick?(n(),i(d(p),{key:1,color:l.color,"on-click":l.onClick,variant:l.variant,pill:"",rounded:l.rounded},{default:_(()=>[r("div",{class:s(d(b)),style:c(d(m)({color:l.color,variant:l.variant}))},[l.icon?(n(),i(d(v),{key:0,filled:l.iconFilled,name:l.icon,size:d(y).Tiny},null,8,["filled","name","size"])):t("",!0),r("span",{class:s(`${f}__label`)},u(l.label),3),l.count?(n(),e("span",{key:1,class:s(`${f}__count`)},u(l.count),3)):t("",!0)],6)]),_:1},8,["color","on-click","variant","rounded"])):t("",!0)],64))}});export{C as _};
@@ -0,0 +1,2 @@
1
+ import '../components/Loading/CLSkeleton/CLSkeleton.css';
2
+ import{defineComponent as e,computed as t,createElementBlock as d,openBlock as l,normalizeStyle as s,normalizeClass as o,unref as a,createElementVNode as i}from"vue";import{s as r}from"./utils-C1iUBPIL.js";const n=["data-testid"],u=/* @__PURE__ */e({name:"CLSkeleton",__name:"CLSkeleton",props:{borderRadius:{},height:{default:"100%"},rounded:{type:Boolean,default:!0},testId:{default:"clll-skeleton"},width:{default:"100%"}},setup(e){const u=e,h="clll-skeleton",c=t(()=>[h,u.borderRadius?`${h}--${u.borderRadius}`:"",u.rounded?`${h}--rounded`:`${h}--square`]);return(t,u)=>(l(),d("div",{class:o(a(c)),"data-testid":e.testId,style:s({...a(r)(),width:e.width,height:e.height})},[...u[0]||(u[0]=[i("div",{class:"clll-skeleton__animation"},null,-1)])],14,n))}});export{u as _};
@@ -0,0 +1,2 @@
1
+ import '../components/Loading/CLSpinner/CLSpinner.css';
2
+ import{defineComponent as l,computed as t,createElementBlock as e,openBlock as o,normalizeStyle as r,normalizeClass as s,unref as i,createElementVNode as n}from"vue";import{CLSizes as a,CLPosition as c,CLColors as d,CLAlign as p}from"../index.js";import{a as u}from"./utils-C1iUBPIL.js";const m=["data-testid"],f=/* @__PURE__ */l({name:"CLSpinner",__name:"CLSpinner",props:{align:{default:p.Left},color:{default:d.Primary},position:{default:c.Absolute},size:{default:a.Medium},testId:{default:"clll-spinner"}},setup(l){const a=l,c="clll-spinner",d=t(()=>[c,`${c}--${a.position}`,`${c}--${a.color}`,`${c}--${a.size}`,`${c}--${a.align}`]),p=t(()=>[`${c}__circle`,`${c}__circle--${a.size}`]);return(t,a)=>(o(),e("div",{class:s(i(d)),"data-testid":l.testId,style:r(i(u)({color:l.color}))},[(o(),e("svg",{class:s(i(p)),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[...a[0]||(a[0]=[n("circle",{style:{opacity:"0.25"},cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),n("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])],2))],14,m))}});export{f as _};
@@ -0,0 +1,2 @@
1
+ import '../components/Typography/CLText/CLText.css';
2
+ import{defineComponent as t,computed as e,createBlock as l,openBlock as o,resolveDynamicComponent as a,normalizeStyle as d,normalizeClass as s,unref as r,withCtx as u,renderSlot as n}from"vue";import{CLTextTypes as p,CLColors as f,CLAlign as i}from"../index.js";import{t as m}from"./utils-CYywa195.js";const c=/* @__PURE__ */t({name:"CLText",__name:"CLText",props:{align:{default:i.Left},as:{default:"p"},bold:{type:Boolean,default:!1},bolder:{type:Boolean,default:!1},color:{default:f.Secondary},light:{type:Boolean,default:!1},medium:{type:Boolean,default:!1},testId:{default:"clll-text"},truncate:{type:Boolean,default:!1},type:{default:p.Body}},setup(t){const p=t,f="clll-text",i=e(()=>[f,`${f}--${p.align}`,`${f}--${p.color}`,`${f}--${p.truncate?"wrap":"nowrap"}`,`${f}--${p.type}`,{[`${f}--mediumbold`]:p.medium,[`${f}--light`]:p.light,[`${f}--bold`]:p.bold,[`${f}--bolder`]:p.bolder}]);return(e,p)=>(o(),l(a(t.as),{class:s(r(i)),"data-testid":t.testId,style:d(r(m)({color:t.color}))},{default:u(()=>[n(e.$slots,"default")]),_:3},8,["class","data-testid","style"]))}});export{c as _};
@@ -0,0 +1,2 @@
1
+ import '../components/Popups/CLToast/CLToast.css';
2
+ import{defineComponent as e,ref as t,computed as o,watch as l,onMounted as s,onUnmounted as a,onBeforeUnmount as i,createElementBlock as r,openBlock as u,normalizeStyle as n,normalizeClass as d,unref as c,createElementVNode as m,createCommentVNode as v,createVNode as _,createBlock as b,withCtx as p,createTextVNode as f,toDisplayString as y}from"vue";import{_ as h}from"./CLButton.vue_vue_type_style_index_0_lang-3vGTMU-k.js";import{_ as g}from"./CLIcon.vue_vue_type_style_index_0_lang-yF4CdZbV.js";import{_ as $}from"./CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js";import{CLColorVariants as T,CLMode as x,CLColors as L,CLToastPosition as k,CLIconSizes as z,CLTextTypes as D,CLSizes as j,CLIconNames as M}from"../index.js";import{i as w,g as B,a as R}from"./helper-C542dSLs.js";import{useEsc as S}from"../composables/useEsc.js";import{g as C}from"./utils-DVxwAjJ4.js";import{useTheme as F}from"../composables/useTheme.js";const A=({color:e})=>{const{colors:t,darkMode:o}=F(),l=C({color:e,colors:t.value,mode:(o.value,x.Light),variant:T.Soft}),s=C({color:L.Neutral,colors:t.value,mode:o.value?x.Light:x.Dark,variant:T.Text});return{"--clll-toast-bg-color":o.value?"white":"#322F35","--clll-toast-text-color":s?.textBody,"--clll-toast-action-button-text-color":l?.text,"--clll-toast-action-button-bg-color":l?.bg,"--clll-toast-action-button-hover-color":l?.hover,"--clll-toast-dismiss-button-text-color":s?.text,"--clll-toast-dismiss-button-bg-color":s?.bg,"--clll-toast-dismiss-button-hover-color":s?.hover,"--clll-toast-icon-bg":l?.bg,"--clll-toast-icon-color":l?.text,"--clll-toast-theme-radius":"var(--clll-default-radius)"}},E=["data-testid"],I=300,N="clll-toast",H=/* @__PURE__ */e({name:"CLToast",__name:"CLToast",props:{actionLabel:{},borderRadius:{},color:{default:L.Secondary},dismissTimer:{default:5},icon:{},iconSize:{default:z.Small},iconFilled:{type:Boolean,default:!1},message:{},onAction:{},onDismiss:{},position:{default:k.TopRight},rounded:{type:Boolean,default:!0},testId:{default:"clll-toast"},title:{},width:{default:"24rem"}},setup(e){const x=e,k=t(),C=t(!1),F=t(),H=t(0),q=t(!1),G=t(null),J=t(0),K=t(0),O=t(!1),P=o(()=>[N,x.borderRadius?`${N}--${x.borderRadius}`:"",x.dismissTimer?`${N}--has-timer`:"",x.icon?`${N}--has-icon`:"",x.message&&!x.title?`${N}--has-messageonly`:"",C.value?`${N}--mounted`:"",x.onAction&&x.actionLabel?`${N}--has-action`:"",x.rounded?`${N}--rounded`:`${N}--box`,x.title&&!x.message?`${N}--has-titleonly`:"",x.title&&x.message?`${N}--has-titleandmessage`:"",`${N}--${x.position}`]),Q=()=>{null!==G.value&&(clearTimeout(G.value),G.value=null),F.value?.stop()},U=()=>{x.dismissTimer&&!q.value&&(Q(),J.value=Date.now(),K.value=1e3*x.dismissTimer,O.value=!1,G.value=setTimeout(()=>{O.value||q.value||Y()},K.value))},V=()=>{if(!x.dismissTimer||O.value||q.value)return;O.value=!0;const e=Date.now()-J.value;K.value=Math.max(0,K.value-e),Q()},W=()=>{x.dismissTimer&&O.value&&!q.value&&(O.value=!1,J.value=Date.now(),G.value=setTimeout(()=>{O.value||q.value||Y()},K.value))},X=()=>{document.hidden?V():W()},Y=()=>{q.value||(q.value=!0,C.value=!1,Q(),F.value&&F.value.start(I,e=>{Math.min(e,I)===I&&(F.value?.stop(),x.onDismiss?.())}),Z())};l(()=>x.dismissTimer,()=>{Q(),q.value=!1,x.dismissTimer&&x.dismissTimer>0&&U()}),s(()=>{w&&(H.value=B()+1,F.value||(F.value=R(),F.value.start(100,e=>{100===Math.min(e,100)&&(F.value?.stop(),C.value=!0,x.dismissTimer&&F.value?.start(I,e=>{Math.min(e,I)===I&&(F.value?.stop(),U())}))})),document.addEventListener("visibilitychange",X))}),a(()=>{w&&(Q(),F.value=void 0,document.removeEventListener("visibilitychange",X)),C.value=!1,q.value||(q.value=!0,x.onDismiss?.())});const{clearEventListeners:Z}=S({escHandler:Y});return i(()=>{Z()}),(t,o)=>(u(),r("output",{ref_key:"elem",ref:k,class:d(c(P)),"data-testid":e.testId,style:n({zIndex:c(H),"--clll-toast-width":e.width,...c(A)({color:e.color})}),onMouseenter:V,onMouseleave:W,onFocusin:V,onFocusout:W},[m("div",{class:d(`${N}__body`)},[m("div",{class:d(`${N}__content`)},[e.icon?(u(),r("div",{key:0,class:d(`${N}__icon`)},[_(c(g),{filled:e.iconFilled,name:e.icon,size:e.iconSize},null,8,["filled","name","size"])],2)):v("",!0),m("div",{class:d(`${N}__text`)},[e.title?(u(),b(c($),{key:0,color:c(L).Neutral,"test-id":`${N}__title`,type:c(D).Body,bold:""},{default:p(()=>[f(y(e.title),1)]),_:1},8,["color","test-id","type"])):v("",!0),e.message?(u(),b(c($),{key:1,color:c(L).Neutral,"test-id":`${N}__message`,type:e.title?c(D).Medium:c(D).Body},{default:p(()=>[f(y(e.message),1)]),_:1},8,["color","test-id","type"])):v("",!0)],2),e.onAction&&e.actionLabel?(u(),r("div",{key:1,class:d(`${N}__action-button`)},[_(c(h),{color:e.color,"border-radius":e.borderRadius,"on-click":e.onAction,"test-id":`${N}__action-button`,variant:c(T).Soft},{default:p(()=>[f(y(e.actionLabel),1)]),_:1},8,["color","border-radius","on-click","test-id","variant"])],2)):v("",!0)],2),m("div",{class:d(`${N}__dismiss-button`)},[_(c(h),{"aria-label":"Dismiss toast",color:c(L).Neutral,"border-radius":e.borderRadius,"icon-before":c(M).Delete,"icon-size":c(z).Tiny,"on-click":Y,size:c(j).Tiny,"test-id":`${N}__dismiss-button`,variant:c(T).Text},null,8,["color","border-radius","icon-before","icon-size","size","test-id","variant"])],2)],2)],46,E))}});export{H as _};
@@ -0,0 +1 @@
1
+ import{ref as e}from"vue";import{CLMode as o}from"../index.js";function r(e,o){if(!o)return e;const t={...e};for(const d in o)if(Object.prototype.hasOwnProperty.call(o,d)){const e=o[d],a=t[d];f(a)&&f(e)?t[d]=r(a,e):t[d]=e}return t}function f(e){return!(null===e||"object"!=typeof e||Array.isArray(e)||e instanceof Date||e instanceof Map||e instanceof Set)}const t={borderRadius:void 0,colors:{primary:{0:"#ffffff",100:"#def5ff",200:"#b6eeff",300:"#75e3ff",400:"#2cd6ff",500:"#00c8ff",600:"#009cd4",700:"#007cab",800:"#00688d",900:"#065674"},secondary:{0:"#ffffff",100:"#DEE2E8",200:"#BFC7D4",300:"#9EAABD",400:"#8090A8",500:"#61738E",600:"#4F5D73",700:"#3A4555",800:"#272F3A",900:"#13161B"},neutral:{0:"#ffffff",100:"#F7F7F7",200:"#F2F2F2",300:"#EBEBEB",400:"#E6E6E6",500:"#DEDEDE",600:"#B3B3B3",700:"#858585",800:"#595959",900:"#2B2B2B"},danger:{0:"#ffffff",100:"#ffd3ce",200:"#ffb2ac",300:"#ff8e88",400:"#fe6561",500:"#e74c4c",600:"#d20e27",700:"#9b0018",800:"#63000c",900:"#360003"},warning:{0:"#ffffff",100:"#ffeaba",200:"#ffdf95",300:"#ffd36a",400:"#fdc836",500:"#f5be1a",600:"#c79800",700:"#8a6900",800:"#4f3b00",900:"#211700"},success:{0:"#ffffff",100:"#9effb2",200:"#69f68d",300:"#56e57e",400:"#41d56e",500:"#22c55d",600:"#00a147",700:"#007230",800:"#00441a",900:"#001f08"},info:{0:"#ffffff",100:"#cfe2ff",200:"#afceff",300:"#8eb9ff",400:"#6ca4ff",500:"#4e8ff8",600:"#2470e7",700:"#004cb5",800:"#002e73",900:"#00153e"}},darkMode:!1,fontFamily:"BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif"},d={contrast:{[o.Light]:{border:900,borderHover:700,bg:900,disabled:500,focus:900,hover:800,shadow:900,text:0,textDisabled:800},[o.Dark]:{border:400,borderHover:700,bg:100,disabled:500,focus:400,hover:200,shadow:400,text:900,textDisabled:500}},ghost:{[o.Light]:{disabled:100,focus:700,text:800,textDisabled:800},[o.Dark]:{disabled:700,focus:300,text:300,textDisabled:700}},outline:{[o.Light]:{border:300,borderHover:700,disabled:400,focus:700,hover:100,text:900,textBody:700,textDisabled:800},[o.Dark]:{border:500,borderHover:500,disabled:800,focus:300,hover:900,text:300,textBody:300,textDisabled:700}},soft:{[o.Light]:{bg:100,border:300,borderHover:700,disabled:100,focus:400,hover:200,shadow:200,text:900,textDisabled:800},[o.Dark]:{bg:900,border:100,borderHover:300,disabled:800,focus:100,hover:800,shadow:800,text:300,textDisabled:500}},solid:{[o.Light]:{bg:600,border:700,borderHover:900,disabled:500,focus:700,hover:500,shadow:700,text:0,textDisabled:100},[o.Dark]:{bg:400,border:100,borderHover:300,disabled:600,focus:100,hover:500,shadow:100,text:900,textDisabled:800}},text:{[o.Light]:{border:100,borderHover:300,disabled:100,focus:800,hover:200,text:800,textBody:800,textDisabled:700},[o.Dark]:{border:300,borderHover:500,disabled:800,focus:300,hover:900,text:100,textBody:100,textDisabled:500}}},a=o=>{const f=e(o?.borderRadius||t.borderRadius),d=e(o?.darkMode??t.darkMode),a=e(o?.fontFamily??t.fontFamily),s=r(t.colors,o?.colors),b=e(s);return{borderRadius:f,colors:b,darkMode:d,fontFamily:a,setBorderRadius:e=>{f.value=e},setColors:e=>{b.value={...b.value,...e}},setDarkMode:e=>{d.value=e},setFontFamily:e=>{a.value=e}}},s=/* @__PURE__ */Symbol("clll-theme");export{d as C,t as D,s as T,a as s};
@@ -0,0 +1 @@
1
+ const l=/* @__PURE__ */Symbol("clll-toast");export{l as T};
@@ -0,0 +1 @@
1
+ import{computed as t,ref as e,shallowRef as n,watch as o,getCurrentScope as i,onScopeDispose as r,shallowReadonly as l,unref as c}from"vue";const a=Math.min,s=Math.max,u=Math.round,f=Math.floor,d=t=>({x:t,y:t}),h={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function p(t,e,n){return s(t,a(e,n))}function g(t,e){return"function"==typeof t?t(e):t}function y(t){return t.split("-")[0]}function v(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function x(t){return"y"===t?"height":"width"}const b=/*#__PURE__*/new Set(["top","bottom"]);function R(t){return b.has(y(t))?"y":"x"}function L(t){return w(R(t))}function T(t){return t.replace(/start|end/g,t=>m[t])}const S=["left","right"],E=["right","left"],A=["top","bottom"],D=["bottom","top"];function C(t,e,n,o){const i=v(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?E:S:e?S:E;case"left":case"right":return e?A:D;default:return[]}}(y(t),"start"===n,o);return i&&(r=r.map(t=>t+"-"+i),e&&(r=r.concat(r.map(T)))),r}function O(t){return t.replace(/left|right|bottom|top/g,t=>h[t])}function F(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function P(t,e,n){let{reference:o,floating:i}=t;const r=R(e),l=L(e),c=x(l),a=y(e),s="y"===r,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let h;switch(a){case"top":h={x:u,y:o.y-i.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-i.width,y:f};break;default:h={x:o.x,y:o.y}}switch(v(e)){case"start":h[l]-=d*(n&&s?-1:1);break;case"end":h[l]+=d*(n&&s?-1:1)}return h}async function k(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:a}=t,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=g(e,t),m=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),p=c[d?"floating"===f?"reference":"floating":f],y=F(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(p)))||n?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:s,rootBoundary:u,strategy:a})),v="floating"===f?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),x=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},b=F(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:w,strategy:a}):v);return{top:(y.top-b.top+m.top)/x.y,bottom:(b.bottom-y.bottom+m.bottom)/x.y,left:(y.left-b.left+m.left)/x.x,right:(b.right-y.right+m.right)/x.x}}const M=/*#__PURE__*/new Set(["left","top"]);function W(){return"undefined"!=typeof window}function B(t){return z(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function V(t){var e;return null==(e=(z(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function z(t){return!!W()&&(t instanceof Node||t instanceof H(t).Node)}function N(t){return!!W()&&(t instanceof Element||t instanceof H(t).Element)}function $(t){return!!W()&&(t instanceof HTMLElement||t instanceof H(t).HTMLElement)}function j(t){return!(!W()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof H(t).ShadowRoot)}const I=/*#__PURE__*/new Set(["inline","contents"]);function q(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=nt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!I.has(i)}const X=/*#__PURE__*/new Set(["table","td","th"]);function Y(t){return X.has(B(t))}const _=[":popover-open",":modal"];function G(t){return _.some(e=>{try{return t.matches(e)}catch(n){return!1}})}const J=["transform","translate","scale","rotate","perspective"],K=["transform","translate","scale","rotate","perspective","filter"],Q=["paint","layout","strict","content"];function U(t){const e=Z(),n=N(t)?nt(t):t;return J.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||K.some(t=>(n.willChange||"").includes(t))||Q.some(t=>(n.contain||"").includes(t))}function Z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const tt=/*#__PURE__*/new Set(["html","body","#document"]);function et(t){return tt.has(B(t))}function nt(t){return H(t).getComputedStyle(t)}function ot(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function it(t){if("html"===B(t))return t;const e=t.assignedSlot||t.parentNode||j(t)&&t.host||V(t);return j(e)?e.host:e}function rt(t){const e=it(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:$(e)&&q(e)?e:rt(e)}function lt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=rt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=H(i);if(r){const t=ct(l);return e.concat(l,l.visualViewport||[],q(i)?i:[],t&&n?lt(t):[])}return e.concat(i,lt(i,[],n))}function ct(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function at(t){const e=nt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=$(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,c=u(n)!==r||u(o)!==l;return c&&(n=r,o=l),{width:n,height:o,$:c}}function st(t){return N(t)?t:t.contextElement}function ut(t){const e=st(t);if(!$(e))return d(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=at(e);let l=(r?u(n.width):n.width)/o,c=(r?u(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const ft=/*#__PURE__*/d(0);function dt(t){const e=H(t);return Z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ft}function ht(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=st(t);let l=d(1);e&&(o?N(o)&&(l=ut(o)):l=ut(t));const c=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==H(t))&&e}(r,n,o)?dt(r):d(0);let a=(i.left+c.x)/l.x,s=(i.top+c.y)/l.y,u=i.width/l.x,f=i.height/l.y;if(r){const t=H(r),e=o&&N(o)?H(o):o;let n=t,i=ct(n);for(;i&&o&&e!==n;){const t=ut(i),e=i.getBoundingClientRect(),o=nt(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,s*=t.y,u*=t.x,f*=t.y,a+=r,s+=l,n=H(i),i=ct(n)}}return F({width:u,height:f,x:a,y:s})}function mt(t,e){const n=ot(t).scrollLeft;return e?e.left+n:ht(V(t)).left+n}function pt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-mt(t,n),y:n.top+e.scrollTop}}const gt=/*#__PURE__*/new Set(["absolute","fixed"]);function yt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=H(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,a=0;if(i){r=i.width,l=i.height;const t=Z();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,a=i.offsetTop)}const s=mt(o);if(s<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(o.clientWidth-e.clientWidth-i);l<=25&&(r-=l)}else s<=25&&(r+=s);return{width:r,height:l,x:c,y:a}}(t,n);else if("document"===e)o=function(t){const e=V(t),n=ot(t),o=t.ownerDocument.body,i=s(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=s(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+mt(t);const c=-n.scrollTop;return"rtl"===nt(o).direction&&(l+=s(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:c}}(V(t));else if(N(e))o=function(t,e){const n=ht(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=$(t)?ut(t):d(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=dt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return F(o)}function vt(t,e){const n=it(t);return!(n===e||!N(n)||et(n))&&("fixed"===nt(n).position||vt(n,e))}function wt(t,e,n){const o=$(e),i=V(e),r="fixed"===n,l=ht(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const a=d(0);function s(){a.x=mt(i)}if(o||!o&&!r)if(("body"!==B(e)||q(i))&&(c=ot(e)),o){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&s();r&&!o&&i&&s();const u=!i||o||r?d(0):pt(i,c);return{x:l.left+c.scrollLeft-a.x-u.x,y:l.top+c.scrollTop-a.y-u.y,width:l.width,height:l.height}}function xt(t){return"static"===nt(t).position}function bt(t,e){if(!$(t)||"fixed"===nt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function Rt(t,e){const n=H(t);if(G(t))return n;if(!$(t)){let e=it(t);for(;e&&!et(e);){if(N(e)&&!xt(e))return e;e=it(e)}return n}let o=bt(t,e);for(;o&&Y(o)&&xt(o);)o=bt(o,e);return o&&et(o)&&xt(o)&&!U(o)?n:o||function(t){let e=it(t);for(;$(e)&&!et(e);){if(U(e))return e;if(G(e))return null;e=it(e)}return null}(t)||n}const Lt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=V(o),c=!!e&&G(e.floating);if(o===l||c&&r)return n;let a={scrollLeft:0,scrollTop:0},s=d(1);const u=d(0),f=$(o);if((f||!f&&!r)&&(("body"!==B(o)||q(l))&&(a=ot(o)),$(o))){const t=ht(o);s=ut(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const h=!l||f||r?d(0):pt(l,a);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+u.x+h.x,y:n.y*s.y-a.scrollTop*s.y+u.y+h.y}},getDocumentElement:V,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?G(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=lt(t,[],!1).filter(t=>N(t)&&"body"!==B(t)),i=null;const r="fixed"===nt(t).position;let l=r?it(t):t;for(;N(l)&&!et(l);){const e=nt(l),n=U(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&gt.has(i.position)||q(l)&&!n&&vt(t,l))?o=o.filter(t=>t!==l):i=e,l=it(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],c=r.reduce((t,n)=>{const o=yt(e,n,i);return t.top=s(o.top,t.top),t.right=a(o.right,t.right),t.bottom=a(o.bottom,t.bottom),t.left=s(o.left,t.left),t},yt(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Rt,getElementRects:async function(t){const e=this.getOffsetParent||Rt,n=this.getDimensions,o=await n(t.floating);return{reference:wt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=at(t);return{width:e,height:n}},getScale:ut,isElement:N,isRTL:function(t){return"rtl"===nt(t).direction}};function Tt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function St(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,d=st(t),h=i||r?[...d?lt(d):[],...lt(e)]:[];h.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)});const m=d&&c?function(t,e){let n,o=null;const i=V(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(c,u){void 0===c&&(c=!1),void 0===u&&(u=1),r();const d=t.getBoundingClientRect(),{left:h,top:m,width:p,height:g}=d;if(c||e(),!p||!g)return;const y={rootMargin:-f(m)+"px "+-f(i.clientWidth-(h+p))+"px "+-f(i.clientHeight-(m+g))+"px "+-f(h)+"px",threshold:s(0,a(1,u))||1};let v=!0;function w(e){const o=e[0].intersectionRatio;if(o!==u){if(!v)return l();o?l(!1,o):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==o||Tt(d,t.getBoundingClientRect())||l(),v=!1}try{o=new IntersectionObserver(w,{...y,root:i.ownerDocument})}catch(x){o=new IntersectionObserver(w,y)}o.observe(t)}(!0),r}(d,n):null;let p,g=-1,y=null;l&&(y=new ResizeObserver(t=>{let[o]=t;o&&o.target===d&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),d&&!u&&y.observe(d),y.observe(e));let v=u?ht(t):null;return u&&function e(){const o=ht(t);v&&!Tt(v,o)&&n();v=o,p=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(p)}}const Et=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,a=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=y(n),c=v(n),a="y"===R(n),s=M.has(l)?-1:1,u=r&&a?-1:1,f=g(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&"number"==typeof m&&(h="end"===c?-1*m:m),a?{x:h*u,y:d*s}:{x:d*s,y:h*u}}(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:l}}}}},At=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:r}=e,{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=g(t,e),u={x:n,y:o},f=await r.detectOverflow(e,s),d=R(y(i)),h=w(d);let m=u[h],v=u[d];if(l){const t="y"===h?"bottom":"right";m=p(m+f["y"===h?"top":"left"],m,m-f[t])}if(c){const t="y"===d?"bottom":"right";v=p(v+f["y"===d?"top":"left"],v,v-f[t])}const x=a.fn({...e,[h]:m,[d]:v});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[h]:l,[d]:c}}}}}},Dt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:a,elements:s}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...w}=g(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const b=y(i),S=R(c),E=y(c)===c,A=await(null==a.isRTL?void 0:a.isRTL(s.floating)),D=d||(E||!p?[O(c)]:function(t){const e=O(t);return[T(t),e,T(e)]}(c)),F="none"!==m;!d&&F&&D.push(...C(c,p,m,A));const P=[c,...D],k=await a.detectOverflow(e,w),M=[];let W=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&M.push(k[b]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=v(t),i=L(t),r=x(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=O(l)),[l,O(l)]}(i,l,A);M.push(k[t[0]],k[t[1]])}if(W=[...W,{placement:i,overflows:M}],!M.every(t=>t<=0)){var B,H;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=P[t];if(e){if(!("alignment"===f&&S!==R(e))||W.every(t=>R(t.placement)!==S||t.overflows[0]>0))return{data:{index:t,overflows:W},reset:{placement:e}}}let n=null==(H=W.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:H.placement;if(!n)switch(h){case"bestFit":{var V;const t=null==(V=W.filter(t=>{if(F){const e=R(t.placement);return e===S||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:V[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},Ct=(t,e,n)=>{const o=new Map,i={platform:Lt,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let s=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=P(s,o,a),d=o,h={},m=0;for(let g=0;g<c.length;g++){var p;const{name:n,fn:r}=c[g],{x:y,y:v,data:w,reset:x}=await r({x:u,y:f,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:s,platform:{...l,detectOverflow:null!=(p=l.detectOverflow)?p:k},elements:{reference:t,floating:e}});u=null!=y?y:u,f=null!=v?v:f,h={...h,[n]:{...h[n],...w}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:u,y:f}=P(s,d,a))),g=-1)}return{x:u,y:f,placement:d,strategy:i,middlewareData:h}})(t,e,{...i,platform:r})};function Ot(t){if(function(t){return null!=t&&"object"==typeof t&&"$el"in t}(t)){const e=t.$el;return z(e)&&"#comment"===B(e)?null:e}return t}function Ft(t){return"function"==typeof t?t():c(t)}function Pt(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function kt(t,e){const n=Pt(t);return Math.round(e*n)/n}function Mt(c,a,s){void 0===s&&(s={});const u=s.whileElementsMounted,f=t(()=>{var t;return null==(t=Ft(s.open))||t}),d=t(()=>Ft(s.middleware)),h=t(()=>{var t;return null!=(t=Ft(s.placement))?t:"bottom"}),m=t(()=>{var t;return null!=(t=Ft(s.strategy))?t:"absolute"}),p=t(()=>{var t;return null==(t=Ft(s.transform))||t}),g=t(()=>Ot(c.value)),y=t(()=>Ot(a.value)),v=e(0),w=e(0),x=e(m.value),b=e(h.value),R=n({}),L=e(!1),T=t(()=>{const t={position:x.value,left:"0",top:"0"};if(!y.value)return t;const e=kt(y.value,v.value),n=kt(y.value,w.value);return p.value?{...t,transform:"translate("+e+"px, "+n+"px)",...Pt(y.value)>=1.5&&{willChange:"transform"}}:{position:x.value,left:e+"px",top:n+"px"}});let S;function E(){if(null==g.value||null==y.value)return;const t=f.value;Ct(g.value,y.value,{middleware:d.value,placement:h.value,strategy:m.value}).then(e=>{v.value=e.x,w.value=e.y,x.value=e.strategy,b.value=e.placement,R.value=e.middlewareData,L.value=!1!==t})}function A(){"function"==typeof S&&(S(),S=void 0)}return o([d,h,m,f],E,{flush:"sync"}),o([g,y],function(){A(),void 0!==u?null==g.value||null==y.value||(S=u(g.value,y.value,E)):E()},{flush:"sync"}),o(f,function(){f.value||(L.value=!1)},{flush:"sync"}),i()&&r(A),{x:l(v),y:l(w),strategy:l(x),placement:l(b),middlewareData:l(R),isPositioned:l(L),floatingStyles:T,update:E}}export{St as a,Dt as f,Et as o,At as s,Mt as u};
@@ -0,0 +1 @@
1
+ const e=()=>{let e,t,o,i,r,a=!1,d=!1,c=0;const m=()=>{if(a||!i||void 0===o||void 0===t||d)return;const n=performance.now(),s=c+(n-t);i(s),s<o?e=window.requestAnimationFrame(m):(a=!0,e&&(window.cancelAnimationFrame(e),e=void 0),r?.())};return{start:(s,f,l)=>{!n||s<=0||"function"!=typeof f||(e&&window.cancelAnimationFrame(e),a=!1,d=!1,c=0,i=f,o=s,r=l,t=performance.now(),e=window.requestAnimationFrame(m))},stop:()=>{a=!0,e&&(window.cancelAnimationFrame(e),e=void 0),t=void 0,a=!1,o=void 0,i=void 0,r=void 0,d=!1,c=0},pause:()=>{if(!n||a||d||!i||void 0===o||void 0===t)return;const r=performance.now();c+=r-t,e&&(window.cancelAnimationFrame(e),e=void 0),d=!0},resume:()=>{n&&!a&&d&&i&&void 0!==o&&(t=performance.now(),d=!1,e=window.requestAnimationFrame(m))},getProgress:()=>{if(!n||void 0===o||void 0===t)return;if(a)return 1;if(d)return Math.min(c/o,1);const e=performance.now(),i=c+(e-t);return Math.min(i/o,1)}}},t=({parent:e,child:t,threshold:o=.1,leftOffset:n=0,rightOffset:i=0})=>{const{top:r,left:a,bottom:d,right:c,width:m,height:s}=e?.getBoundingClientRect()||{},{top:f,left:l,bottom:u,right:w}=t.getBoundingClientRect()||{};let h=0,p=0;if(l<=c-i){h=(w-(a+n))/(m-(n+i))*100/100}if(f<=d){p=(u-r)/s*100/100}return h>o&&p>o},o=()=>n?Math.max(...Array.from(document?.querySelectorAll("body *"),e=>parseFloat(window?.getComputedStyle(e).zIndex)).filter(e=>!Number.isNaN(e)),0):0,n="undefined"!=typeof document,i=()=>!!n&&window.matchMedia("(prefers-color-scheme: dark)").matches,r=e=>null!=e&&"string"==typeof e.valueOf(),a=e=>{if(!e)return!0;let t=0;const o=["#comment"];return e.childNodes.forEach(e=>{!o.includes(e.nodeName)&&e.childNodes.length&&t++}),0===t};export{e as a,i as b,r as c,a as d,t as e,o as g,n as i};