@bobbykim/manguito-theme 1.0.0 → 1.0.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f82364e: Formatting-only release: Prettier was reapplied across the repo after a
|
|
8
|
+
misconfigured `tailwindStylesheet` was fixed, which sorted Tailwind class
|
|
9
|
+
attributes and normalized wrapping in every package's source.
|
|
10
|
+
|
|
11
|
+
No public API, prop, or behavior changes. Class order within a `class`
|
|
12
|
+
attribute does not affect CSS resolution, so rendered output is identical —
|
|
13
|
+
only the shipped bundle text differs.
|
|
14
|
+
|
|
3
15
|
## 1.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
package/dist/composable.js
CHANGED
package/dist/core.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".slide-prev-enter-active[data-v-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("./index-DPCdWvOi.cjs"),e=require("vue"),U=require("@vueuse/core"),Q=require("./useModalScrollLock-BbvxlEaZ.cjs"),ke=require("./getGlassmorphismClass-CVLAjoa8.cjs"),me=require("./index-D9hDl4no.cjs"),Fe=(r,t)=>{switch(r){case"BGCOLOR":return f.bgColorVariant({color:t});case"HVBGCOLOR":return f.hoverBgColorVariant({color:t});case"FCBGCOLOR":return f.focusBgColorVariant({color:t});case"BEFOREBG":return f.beforeBgColorVariant({color:t});case"AFTERBG":return f.afterBgColorVariant({color:t});case"ACTIVEBG":return f.activeBgColorVariant({color:t});case"TEXTCOLOR":return f.textColorVariant({color:t});case"HVTEXTCOLOR":return f.hoverTextColorVariant({color:t});case"FCTEXTCOLOR":return f.focusTextColorVariant({color:t});case"DISABLEDTEXTCOLOR":return f.disabledTextColorVariant({color:t});case"SVGFILL":return f.svgFillColorVariant({color:t});case"RINGCOLOR":return f.ringColorVariant({color:t});case"FOCUSRING":return f.focusRingColorVariant({color:t});case"ACTIVERING":return f.activeRingColorVariant({color:t});case"OFFSETRING":return f.ringOffsetColorVariant({color:t});case"OUTLINE":return f.outlineColorVariant({color:t});case"FOCUSOUTLINE":return f.focusOutlineColorVariant({color:t});case"ACTIVEOUTLINE":return f.activeOutlineColorVariant({color:t});case"BTNCOLOR":return f.btnColorVariant({color:t});case"LISTCOLOR":return f.listColorVariant({color:t});case"BORDER":return f.borderColorVariant({color:t});case"BORDERX":return f.borderXColorVariant({color:t});case"BORDERY":return f.borderYColorVariant({color:t});case"BORDERT":return f.borderTopColorVariant({color:t});case"BORDERB":return f.borderBottomColorVariant({color:t});case"BORDERL":return f.borderLeftColorVariant({color:t});case"BORDERR":return f.borderRightColorVariant({color:t});case"H1":return f.h1Variant({size:t});case"H2":return f.h2Variant({size:t});case"H3":return f.h3Variant({size:t});case"H4":return f.h4Variant({size:t});case"BODYTEXT":return f.bodyTextVariant({size:t});case"FONTWEIGHT":return f.fontWeightVariant({weight:t});case"TEXTALIGN":return f.textAlignVariant({align:t});case"BORDERW":return f.borderWidthVariant({width:t});case"BORDERXW":return f.borderXWidthVariant({width:t});case"BORDERYW":return f.borderYWidthVariant({width:t});case"BORDERTW":return f.borderTopWidthVariant({width:t});case"BORDERBW":return f.borderBottomWidthVariant({width:t});case"BORDERLW":return f.borderLeftWidthVariant({width:t});case"BORDERRW":return f.borderRightWidthVariant({width:t});case"OPACITY":return f.opacityVariant({opacity:t});case"BGOPACITY":return f.bgOpacityVariant({opacity:t});case"OUTLINEOPACITY":return f.outlineOpacityVariant({opacity:t});case"MARGIN":return f.marginVariant({spacing:t});case"MARGINX":return f.marginXVariant({spacing:t});case"MARGINY":return f.marginYVariant({spacing:t});case"MARGINT":return f.marginTopVariant({spacing:t});case"MARGINB":return f.marginBottomVariant({spacing:t});case"MARGINL":return f.marginLeftVariant({spacing:t});case"MARGINR":return f.marginRightVariant({spacing:t});case"PADDING":return f.paddingVariant({spacing:t});case"PADDINGX":return f.paddingXVariant({spacing:t});case"PADDINGY":return f.paddingYVariant({spacing:t});case"PADDINGT":return f.paddingTopVariant({spacing:t});case"PADDINGB":return f.paddingBottomVariant({spacing:t});case"PADDINGL":return f.paddingLeftVariant({spacing:t});case"PADDINGR":return f.paddingRightVariant({spacing:t});case"GAP":return f.gapVariant({spacing:t});default:return""}},Le=e.defineComponent({__name:"AccordionGroup",setup(r){return Q.provideAccordion(),(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(t.$slots,"default")]))}}),$e={class:"gap-2xs flex w-full justify-between"},Pe={class:"w-full"},ze=e.defineComponent({__name:"Alert",props:{color:{default:"danger"},rounded:{type:Boolean,default:!0},shadow:{type:Boolean,default:!0},show:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1}},emits:["close"],setup(r,{expose:t,emit:a}){const n=r;e.useSlots();const l=a,c=e.ref(n.show),o=e.computed(()=>{const{color:v,rounded:b,shadow:p}=n,h=[f.generateClass.bgColorVariant({color:v})];return b&&h.push("rounded-md"),p&&h.push("drop-shadow-md"),h.join(" ")}),d=v=>{c.value=!1,l("close",v)},u=()=>{c.value=!1};return e.watch(()=>n.show,v=>{c.value=v}),t({close:u}),(v,b)=>c.value?(e.openBlock(),e.createElementBlock("div",{key:0,role:"alert","aria-live":"polite","aria-atomic":"true",class:e.normalizeClass(["relative px-[1.25rem] py-[0.75rem]",[o.value]])},[e.createElementVNode("div",$e,[e.createElementVNode("div",Pe,[e.renderSlot(v.$slots,"default")]),r.dismissible?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"flex items-center opacity-60 transition-opacity duration-300 ease-linear hover:opacity-40"},[...b[0]||(b[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",class:"h-xs"},[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})],-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)}}),je=["src","alt"],_e={key:2,class:"px-xs pt-xs pb-2xs flex-1"},Ge={key:3,class:"flex-1"},He=e.defineComponent({__name:"Card",props:{variant:{default:"light-1"},border:{type:Boolean,default:!1},borderVariant:{default:"light-4"},rounded:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},glass:{type:Boolean,default:!1},glassBlur:{default:"sm"},glassOpacity:{default:10},imageSrc:{},imageAlt:{},noImage:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},header:{},footer:{},title:{},titleVariant:{default:"dark-4"},titleSize:{default:"md"},cardClass:{default:""}},setup(r){const t=r,a=e.useSlots(),n=e.computed(()=>{const{variant:d,rounded:u,shadow:v,border:b,borderVariant:p,glass:h,glassBlur:g,glassOpacity:x}=t;return[f.generateClass.bgColorVariant({color:d}),u?"rounded-lg":"rounded-sm",v&&"drop-shadow-md",b&&"border",b&&f.generateClass.borderColorVariant({color:p}),h&&ke.getGlassmorphismClass(d,g,x)].filter(Boolean).join(" ")}),l=e.computed(()=>{const{titleVariant:d,titleSize:u}=t;return[f.generateClass.textColorVariant({color:d}),f.generateClass.h3Variant({size:u})].join(" ")}),c=e.computed(()=>{const{border:d,borderVariant:u,titleVariant:v}=t;return[f.generateClass.textColorVariant({color:v}),d&&"border-b",f.generateClass.borderColorVariant({color:u})].filter(Boolean).join(" ")}),o=e.computed(()=>{const{border:d,borderVariant:u}=t;return[d&&"border-t",d&&f.generateClass.borderColorVariant({color:u})].filter(Boolean).join(" ")});return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex h-full w-full flex-col overflow-hidden",[n.value,r.cardClass]])},[r.header||a.header?e.renderSlot(d.$slots,"header",{key:0},()=>[e.createElementVNode("div",{class:e.normalizeClass([[c.value],"py-2xs px-xs font-bold"])},[e.createElementVNode("p",null,e.toDisplayString(r.header),1)],2)]):e.createCommentVNode("",!0),r.imageSrc&&!r.noImage?(e.openBlock(),e.createElementBlock("img",{key:1,src:r.imageSrc,alt:r.imageAlt,class:"aspect-video min-w-full object-cover object-top"},null,8,je)):e.createCommentVNode("",!0),r.noBody?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("h3",{class:e.normalizeClass([[l.value],"mb-xs"])},e.toDisplayString(r.title),3),a.body?e.renderSlot(d.$slots,"body",{key:0}):e.createCommentVNode("",!0)])),r.noBody&&a.default?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(d.$slots,"default")])):e.createCommentVNode("",!0),r.footer||a.footer?e.renderSlot(d.$slots,"footer",{key:4},()=>[e.createElementVNode("div",{class:e.normalizeClass(["py-2xs px-xs",[o.value]])},[e.createElementVNode("p",null,e.toDisplayString(r.footer),1)],2)]):e.createCommentVNode("",!0)],2))}}),Be=Symbol(),Me=e.defineComponent({__name:"CarouselContainer",props:{bodyClass:{default:""},contentContainerClass:{default:""},controllerTopClass:{default:""},controllerBottomClass:{default:""},loop:{type:Boolean,default:!1}},setup(r,{expose:t}){const a=r,n=e.useSlots(),l=e.ref(0),c=e.ref([]),o=e.ref(0),d=e.ref("slide-next"),u=h=>{c.value.push(h),o.value=[...new Set(c.value)].length},v=h=>{l.value=h};e.provide(Be,{activeIdx:l,setSlide:u});const b=()=>{const{loop:h}=a;h&&l.value===o.value-1?l.value=0:l.value<o.value-1&&(l.value=l.value+1)},p=()=>{const{loop:h}=a;h&&l.value===0?l.value=o.value-1:l.value>0&&(l.value=l.value-1)};return e.watch(()=>l.value,(h,g)=>{h>g||h===0&&g===o.value-1?d.value="slide-next":d.value="slide-prev"}),t({numberOfSlides:o,prev:p,next:b,setActive:v}),(h,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([r.bodyClass,"relative overflow-x-hidden"])},[n["controller-top"]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.controllerTopClass)},[e.renderSlot(h.$slots,"controller-top",{next:b,prev:p,setActive:v,activeSlide:l.value,numberOfSlides:o.value},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["grid grid-cols-1 grid-rows-1",r.contentContainerClass])},[e.createVNode(e.Transition,{name:d.value},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("div",{key:l.value,class:"col-start-1 col-end-1 row-start-1 row-end-1"},[e.renderSlot(h.$slots,"content",{},void 0,!0)]))]),_:3},8,["name"])],2),n["controller-bottom"]?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.controllerBottomClass)},[e.renderSlot(h.$slots,"controller-bottom",{next:b,prev:p,setActive:v,activeSlide:l.value,numberOfSlides:o.value},void 0,!0)],2)):e.createCommentVNode("",!0)],2))}}),H=(r,t)=>{const a=r.__vccOpts||r;for(const[n,l]of t)a[n]=l;return a},We=H(Me,[["__scopeId","data-v-05e275d0"]]),Ke=["id"],Xe=e.defineComponent({__name:"CarouselContent",props:{slideNumber:{},id:{},slideClass:{default:""}},setup(r){const t=r,{activeIdx:a,setSlide:n}=e.inject(Be),l=e.ref(null);n(t.slideNumber),e.useSlots();const c=e.computed(()=>{const{slideNumber:o}=t;return a.value===o});return(o,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"slideRef",ref:l,id:r.id,class:e.normalizeClass([r.slideClass,"w-full"]),role:"tabpanel",tabindex:"-1"},[e.renderSlot(o.$slots,"default")],10,Ke)),[[e.vShow,c.value]])}}),Ye=["id"],qe=e.defineComponent({__name:"Collapse",props:{id:{},customClass:{default:""},visible:{type:Boolean,default:!1}},emits:["open","close"],setup(r,{expose:t,emit:a}){const n=r;e.useSlots();const l=a,c=n.id??e.useId(),{isOpen:o,toggle:d,open:u,close:v}=Q.useCollapseState(c,e.toRef(n,"visible")),b=g=>{g.style.height="auto",g.style.opacity="0";const x=getComputedStyle(g).height;g.style.height="0px",g.offsetHeight,g.style.height=x,g.style.opacity="1"},p=g=>{g.style.height="auto",g.style.opacity="1"},h=g=>{g.style.height=getComputedStyle(g).height,g.offsetHeight,g.style.height="0px",g.style.opacity="0"};return e.watch(o,g=>{g?l("open",!0):l("close",!1)}),t({toggle:d,open:u,close:v}),(g,x)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(c)},[e.createVNode(e.unref(ke.ClientSideRender),null,{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"collapse",tag:"div",onEnter:b,onAfterEnter:p,onLeave:h,class:"overflow-y-clip"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(r.customClass)},[e.renderSlot(g.$slots,"default",{},void 0,!0)],2)],512),[[e.vShow,e.unref(o)]])]),_:3})]),_:3})],8,Ye))}}),Ue=H(qe,[["__scopeId","data-v-76fb7aa1"]]),Se=Symbol(),Ze=e.defineComponent({__name:"DropdownContainer",emits:["click-outside","toggle"],setup(r,{emit:t}){e.useSlots();const a=t,n=e.ref(),l=e.ref(!1),c=e.ref(0),o=()=>{l.value=!1};e.provide(Se,{active:l,buttonHeight:c,closeDropdown:o});const d=b=>{l.value=!l.value,a("toggle",b)},u=b=>{l.value=!1,a("click-outside",b)},v=()=>{l.value=!1};return e.onMounted(()=>{c.value=n.value.scrollHeight}),(b,p)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"relative",ref_key:"dropdownTarget",ref:n,onKeyup:e.withKeys(v,["esc"])},[e.renderSlot(b.$slots,"toggler",{toggle:d,dropdownState:l.value}),e.renderSlot(b.$slots,"default")],32)),[[e.unref(me.vClickOutside),u]])}}),Je=e.defineComponent({__name:"DropdownContent",props:{customClass:{default:""}},setup(r){const{height:t}=U.useWindowSize();e.useSlots();const a=e.ref(),{active:n,buttonHeight:l,closeDropdown:c}=e.inject(Se),o=e.computed(()=>({"--button-height":`${l}px`})),d=e.computed(()=>{if(!(!n||!a.value)&&t.value-a.value.getBoundingClientRect().bottom<0)return"dropup-bottom"});return(u,v)=>(e.openBlock(),e.createBlock(e.Transition,{name:"dropdown-content"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"contentRef",ref:a,class:e.normalizeClass(["absolute my-2xs max-w-[14rem] w-max overflow-hidden",[d.value,r.customClass]]),style:e.normalizeStyle(o.value)},[e.renderSlot(u.$slots,"default",{itemClick:e.unref(c)},void 0,!0)],6)):e.createCommentVNode("",!0)]),_:3}))}}),Qe=H(Je,[["__scopeId","data-v-4061b431"]]),et=["aria-label","aria-expanded"],tt=e.defineComponent({__name:"NavDrawer",props:{color:{default:"dark-2"},showBorder:{type:Boolean,default:!0},toggle:{type:Boolean},bgColor:{}},emits:["hbg-click"],setup(r,{emit:t}){const a=r,n=t,l=u=>{n("hbg-click",u)},c=e.computed({get(){return a.toggle},set(u){return u}}),o=(u,v,b)=>{const p=[f.generateClass.ringColorVariant({color:u}),f.generateClass.ringOffsetColorVariant({color:b})];return v&&(p.push(f.generateClass.borderColorVariant({color:u})),p.push("border")),p.join(" ")},d=u=>[f.generateClass.bgColorVariant({color:u}),f.generateClass.beforeBgColorVariant({color:u}),f.generateClass.afterBgColorVariant({color:u})].join(" ");return(u,v)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["p-3xs hamburger__button aspect-square rounded-md outline-none ring-offset-2 transition-all duration-300 ease-linear hover:opacity-70 focus:opacity-70 focus:ring-4",o(r.color,r.showBorder,r.bgColor)]),onClick:l,"aria-label":r.toggle?"Close":"Open","aria-expanded":r.toggle},[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":v[0]||(v[0]=b=>c.value=b),class:"hamburger__checkbox hidden"},null,512),[[e.vModelCheckbox,c.value]]),e.createElementVNode("div",{class:e.normalizeClass(["w-sm hamburger__icon before:w-sm after:w-sm relative h-[3px] transition-all duration-300 ease-linear before:h-[3px] after:h-[3px]",d(r.color)])},null,2)],10,et))}}),Ee=H(tt,[["__scopeId","data-v-394abcb8"]]),rt={class:"py-xs md:py-2xs mx-xs md:mx-sm flex flex-wrap items-center justify-between align-middle sm:max-w-[640px] md:max-w-[768px] lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px]"},at={class:"min-h-[24px]"},ot={class:"ml-auto"},nt={key:0,class:"hidden lg:block"},lt={class:"overflow-hidden lg:hidden"},it={key:0},st=e.defineComponent({__name:"HeaderHorizontal",props:{bgColor:{default:"light-1"},mobileMenuBgColor:{default:"light-2"},drawerBtnColor:{default:"dark-1"},showDrawerBorder:{type:Boolean,default:!0},fadeInOnScroll:{type:Boolean,default:!0},scrollDistance:{default:50},sticky:{default:"all"}},emits:["toggle-drawer"],setup(r,{expose:t,emit:a}){const n=r,l=e.useSlots(),c=e.ref(!1),{y:o}=U.useWindowScroll(),d=a,u=()=>{c.value=!1},v=V=>{c.value=!c.value,d("toggle-drawer",V,c.value)},b=V=>{V.style.height="auto";const R=getComputedStyle(V).height;V.style.height="0px",V.offsetHeight,V.style.height=R},p=V=>{V.style.height="auto"},h=V=>{V.style.height=getComputedStyle(V).height,V.offsetHeight,V.style.height="0px"},g=e.computed(()=>{const{bgColor:V,sticky:R}=n,I=[f.generateClass.bgColorVariant({color:V})];return R==="all"?(I.push("sticky top-0"),I.join(" ")):R==="tablet"?(I.push("md:sticky top-0"),I.join(" ")):(R==="pc"&&I.push("lg:sticky top-0"),I.join(" "))}),x=e.computed(()=>{const{fadeInOnScroll:V,scrollDistance:R}=n;return V?o.value>=R?"lg:shadow-md bg-opacity-70":"bg-opacity-100":""});return t({headerClose:u}),(V,R)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(["z-50 w-full items-center transition delay-150 duration-500 ease-in",[x.value,g.value]])},[e.createElementVNode("nav",rt,[e.createElementVNode("div",at,[e.renderSlot(V.$slots,"content",{},void 0,!0)]),e.createElementVNode("div",ot,[e.createVNode(Ee,{color:r.drawerBtnColor,"show-border":r.showDrawerBorder,class:"block lg:hidden",onHbgClick:v,toggle:c.value,"bg-color":r.bgColor},null,8,["color","show-border","toggle","bg-color"]),l["content-right"]?(e.openBlock(),e.createElementBlock("div",nt,[e.renderSlot(V.$slots,"content-right",{},void 0,!0)])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",lt,[e.createVNode(e.Transition,{name:"collapse",onEnter:b,onAfterEnter:p,onLeave:h},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["my-2xs mx-xs overflow-hidden rounded-md bg-opacity-80",e.unref(f.generateClass).bgColorVariant({color:r.mobileMenuBgColor})])},[l["mobile-content"]?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(V.$slots,"mobile-content",{headerClose:u},void 0,!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)]),_:3})])],2))}}),ct=H(st,[["__scopeId","data-v-03909cb0"]]),ut={class:"flex h-full flex-col justify-between"},dt={key:0},ft={class:"relative z-40 block lg:hidden"},vt={key:0,class:"mr-xs mt-xs fixed right-0 top-0 z-50 block lg:hidden"},mt={key:0,class:"h-full"},bt=e.defineComponent({__name:"HeaderVertical",props:{bgColor:{default:"light-1"},drawerBtnColor:{default:"dark-1"},showDrawerBorder:{type:Boolean,default:!0},headerWidth:{default:160}},emits:["toggle-drawer"],setup(r,{expose:t,emit:a}){const n=r,l=e.useSlots(),c=a,o=e.ref(!1),d=b=>{o.value=!o.value,c("toggle-drawer",b,o.value)},u=()=>{o.value=!1},v=e.computed(()=>({"--header-width":`${n.headerWidth}px`}));return e.onMounted(()=>{const b=U.useScrollLock(document);e.watch(o,p=>{b.value=p})}),t({headerClose:u}),(b,p)=>(e.openBlock(),e.createElementBlock("header",{class:"relative",style:e.normalizeStyle(v.value)},[e.createElementVNode("nav",{class:e.normalizeClass(["py-sm header-desktop hidden overflow-y-scroll overscroll-contain lg:sticky lg:left-0 lg:top-0 lg:block lg:h-[100vh]",[e.unref(f.generateClass).bgColorVariant({color:r.bgColor})]])},[e.createElementVNode("div",ut,[e.createElementVNode("div",null,[e.renderSlot(b.$slots,"content",{},void 0,!0)]),l["content-bottom"]?(e.openBlock(),e.createElementBlock("div",dt,[e.renderSlot(b.$slots,"content-bottom",{},void 0,!0)])):e.createCommentVNode("",!0)])],2),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",ft,[l["mobile-content"]?(e.openBlock(),e.createElementBlock("div",vt,[e.createVNode(Ee,{color:r.drawerBtnColor,"show-border":r.showDrawerBorder,class:"relative block lg:hidden",onHbgClick:d,toggle:o.value,"bg-color":r.bgColor},null,8,["color","show-border","toggle","bg-color"])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-down",appear:""},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("nav",{key:0,class:e.normalizeClass(["py-lg px-sm fixed inset-0 overflow-y-scroll overscroll-contain",e.unref(f.generateClass).bgColorVariant({color:r.bgColor})])},[l["mobile-content"]?(e.openBlock(),e.createElementBlock("div",mt,[e.renderSlot(b.$slots,"mobile-content",{headerClose:u},void 0,!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)]),_:3})])]))],4))}}),pt=H(bt,[["__scopeId","data-v-98ba0070"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ht=r=>r!=null;var Ne=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],oe=Ne.join(","),Ve=typeof Element>"u",Z=Ve?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ne=!Ve&&Element.prototype.getRootNode?function(r){var t;return r==null||(t=r.getRootNode)===null||t===void 0?void 0:t.call(r)}:function(r){return r?.ownerDocument},le=function(t,a){var n;a===void 0&&(a=!0);var l=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),c=l===""||l==="true",o=c||a&&t&&(typeof t.closest=="function"?t.closest("[inert]"):le(t.parentNode));return o},gt=function(t){var a,n=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"contenteditable");return n===""||n==="true"},Te=function(t,a,n){if(le(t))return[];var l=Array.prototype.slice.apply(t.querySelectorAll(oe));return a&&Z.call(t,oe)&&l.unshift(t),l=l.filter(n),l},ie=function(t,a,n){for(var l=[],c=Array.from(t);c.length;){var o=c.shift();if(!le(o,!1))if(o.tagName==="SLOT"){var d=o.assignedElements(),u=d.length?d:o.children,v=ie(u,!0,n);n.flatten?l.push.apply(l,v):l.push({scopeParent:o,candidates:v})}else{var b=Z.call(o,oe);b&&n.filter(o)&&(a||!t.includes(o))&&l.push(o);var p=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),h=!le(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(p&&h){var g=ie(p===!0?o.children:p.children,!0,n);n.flatten?l.push.apply(l,g):l.push({scopeParent:o,candidates:g})}else c.unshift.apply(c,o.children)}}return l},xe=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},q=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||gt(t))&&!xe(t)?0:t.tabIndex},yt=function(t,a){var n=q(t);return n<0&&a&&!xe(t)?0:n},Ct=function(t,a){return t.tabIndex===a.tabIndex?t.documentOrder-a.documentOrder:t.tabIndex-a.tabIndex},Re=function(t){return t.tagName==="INPUT"},wt=function(t){return Re(t)&&t.type==="hidden"},kt=function(t){var a=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return a},Bt=function(t,a){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===a)return t[n]},St=function(t){if(!t.name)return!0;var a=t.form||ne(t),n=function(d){return a.querySelectorAll('input[type="radio"][name="'+d+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=n(window.CSS.escape(t.name));else try{l=n(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var c=Bt(l,t.form);return!c||c===t},Et=function(t){return Re(t)&&t.type==="radio"},Nt=function(t){return Et(t)&&!St(t)},Vt=function(t){var a,n=t&&ne(t),l=(a=n)===null||a===void 0?void 0:a.host,c=!1;if(n&&n!==t){var o,d,u;for(c=!!((o=l)!==null&&o!==void 0&&(d=o.ownerDocument)!==null&&d!==void 0&&d.contains(l)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!c&&l;){var v,b,p;n=ne(l),l=(v=n)===null||v===void 0?void 0:v.host,c=!!((b=l)!==null&&b!==void 0&&(p=b.ownerDocument)!==null&&p!==void 0&&p.contains(l))}}return c},be=function(t){var a=t.getBoundingClientRect(),n=a.width,l=a.height;return n===0&&l===0},Tt=function(t,a){var n=a.displayCheck,l=a.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var c=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(t).visibility==="hidden")return!0;var o=Z.call(t,"details>summary:first-of-type"),d=o?t.parentElement:t;if(Z.call(d,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof l=="function"){for(var u=t;t;){var v=t.parentElement,b=ne(t);if(v&&!v.shadowRoot&&l(v)===!0)return be(t);t.assignedSlot?t=t.assignedSlot:!v&&b!==t.ownerDocument?t=b.host:t=v}t=u}if(Vt(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return be(t);return!1},xt=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var a=t.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var n=0;n<a.children.length;n++){var l=a.children.item(n);if(l.tagName==="LEGEND")return Z.call(a,"fieldset[disabled] *")?!0:!l.contains(t)}return!0}a=a.parentElement}return!1},se=function(t,a){return!(a.disabled||wt(a)||Tt(a,t)||kt(a)||xt(a))},fe=function(t,a){return!(Nt(a)||q(a)<0||!se(t,a))},Rt=function(t){var a=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},Oe=function(t){var a=[],n=[];return t.forEach(function(l,c){var o=!!l.scopeParent,d=o?l.scopeParent:l,u=yt(d,o),v=o?Oe(l.candidates):d;u===0?o?a.push.apply(a,v):a.push(d):n.push({documentOrder:c,tabIndex:u,item:l,isScope:o,content:v})}),n.sort(Ct).reduce(function(l,c){return c.isScope?l.push.apply(l,c.content):l.push(c.content),l},[]).concat(a)},Ot=function(t,a){a=a||{};var n;return a.getShadowRoot?n=ie([t],a.includeContainer,{filter:fe.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:Rt}):n=Te(t,a.includeContainer,fe.bind(null,a)),Oe(n)},At=function(t,a){a=a||{};var n;return a.getShadowRoot?n=ie([t],a.includeContainer,{filter:se.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):n=Te(t,a.includeContainer,se.bind(null,a)),n},J=function(t,a){if(a=a||{},!t)throw new Error("No node provided");return Z.call(t,oe)===!1?!1:fe(a,t)},It=Ne.concat("iframe:not([inert]):not([inert] *)").join(","),de=function(t,a){if(a=a||{},!t)throw new Error("No node provided");return Z.call(t,It)===!1?!1:se(a,t)};function ve(r,t){(t==null||t>r.length)&&(t=r.length);for(var a=0,n=Array(t);a<t;a++)n[a]=r[a];return n}function Dt(r){if(Array.isArray(r))return ve(r)}function pe(r,t,a,n,l,c,o){try{var d=r[c](o),u=d.value}catch(v){return void a(v)}d.done?t(u):Promise.resolve(u).then(n,l)}function he(r){return function(){var t=this,a=arguments;return new Promise(function(n,l){var c=r.apply(t,a);function o(u){pe(c,n,l,o,d,"next",u)}function d(u){pe(c,n,l,o,d,"throw",u)}o(void 0)})}}function ge(r,t){var a=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!a){if(Array.isArray(r)||(a=Ae(r))||t){a&&(r=a);var n=0,l=function(){};return{s:l,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".slide-prev-enter-active[data-v-e9caba8a]{transition:all .5s linear}.slide-prev-leave-active[data-v-e9caba8a]{transition:all .5s}.slide-prev-enter-from[data-v-e9caba8a]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-e9caba8a]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-e9caba8a]{transition:all .5s linear}.slide-next-leave-active[data-v-e9caba8a]{transition:all .5s}.slide-next-enter-from[data-v-e9caba8a]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-e9caba8a]{transform:translate(-100%);opacity:0}.collapse-enter-active[data-v-6576e563],.collapse-leave-active[data-v-6576e563]{transition-property:height,opacity;transition-duration:.5s;transition-timing-function:ease}.dropup-bottom[data-v-0cb1bffb]{bottom:var(--button-height)}.dropdown-content-enter-active[data-v-0cb1bffb],.dropdown-content-leave-active[data-v-0cb1bffb]{transition:all .3s}.dropdown-content-enter-from[data-v-0cb1bffb],.dropdown-content-leave-to[data-v-0cb1bffb]{opacity:0;transform:translateY(-10px)}.hamburger__icon[data-v-b0ec6d90]:before,.hamburger__icon[data-v-b0ec6d90]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-b0ec6d90]:before{top:-.5rem}.hamburger__icon[data-v-b0ec6d90]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-b0ec6d90],.hamburger__button:hover .hamburger__icon[data-v-b0ec6d90]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-2ba87e4a]{transition:height .5s ease-in}.collapse-leave-active[data-v-2ba87e4a]{transition:height .5s ease-out}.header-desktop[data-v-91814bc1]{width:100%}@media screen and (min-width:1024px){.header-desktop[data-v-91814bc1]{width:var(--header-width)}}.slide-down-enter-active[data-v-91814bc1]{transition:transform .3s ease-in .2s,opacity .5s ease-in}.slide-down-leave-active[data-v-91814bc1]{transition:transform .5s ease-in,opacity .3s ease-in .2s}.slide-down-enter-from[data-v-91814bc1],.slide-down-leave-to[data-v-91814bc1]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-c65cb87e]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-c65cb87e],.fade-leave-active[data-v-c65cb87e]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-c65cb87e],.fade-leave-to[data-v-c65cb87e]{opacity:0}.slide-down-enter-active[data-v-c65cb87e]{animation:slide-down-c65cb87e .3s ease}.slide-down-leave-active[data-v-c65cb87e]{animation:slide-down-c65cb87e reverse .3s ease}@keyframes slide-down-c65cb87e{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-77b578df]{width:100%}.sidebar-body-height[data-v-77b578df]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-77b578df],.fade-leave-active[data-v-77b578df]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-77b578df],.fade-leave-to[data-v-77b578df]{opacity:0}.sidebar-left-enter-active[data-v-77b578df],.sidebar-left-leave-active[data-v-77b578df],.sidebar-right-enter-active[data-v-77b578df],.sidebar-right-leave-active[data-v-77b578df]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-77b578df],.sidebar-left-leave-to[data-v-77b578df]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-77b578df],.sidebar-right-leave-to[data-v-77b578df]{transform:translate(100%)}@media screen and (min-width:768px){.sidebar-body[data-v-77b578df]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-77b578df],.sidebar-left-leave-to[data-v-77b578df]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-77b578df],.sidebar-right-leave-to[data-v-77b578df]{transform:translate(var(--sidebar-width))}}.container-hts[data-v-553ab4ac]{max-height:var(--container-hts)}.slide-prev-enter-active[data-v-553ab4ac]{transition:all .5s linear}.slide-prev-leave-active[data-v-553ab4ac]{transition:all .5s}.slide-prev-enter-from[data-v-553ab4ac]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-553ab4ac]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-553ab4ac]{transition:all .5s linear}.slide-next-leave-active[data-v-553ab4ac]{transition:all .5s}.slide-next-enter-from[data-v-553ab4ac]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-553ab4ac]{transform:translate(-100%);opacity:0}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("./index-DPCdWvOi.cjs"),e=require("vue"),U=require("@vueuse/core"),Q=require("./useModalScrollLock-BbvxlEaZ.cjs"),ke=require("./getGlassmorphismClass-CVLAjoa8.cjs"),me=require("./index-D9hDl4no.cjs"),Fe=(r,t)=>{switch(r){case"BGCOLOR":return f.bgColorVariant({color:t});case"HVBGCOLOR":return f.hoverBgColorVariant({color:t});case"FCBGCOLOR":return f.focusBgColorVariant({color:t});case"BEFOREBG":return f.beforeBgColorVariant({color:t});case"AFTERBG":return f.afterBgColorVariant({color:t});case"ACTIVEBG":return f.activeBgColorVariant({color:t});case"TEXTCOLOR":return f.textColorVariant({color:t});case"HVTEXTCOLOR":return f.hoverTextColorVariant({color:t});case"FCTEXTCOLOR":return f.focusTextColorVariant({color:t});case"DISABLEDTEXTCOLOR":return f.disabledTextColorVariant({color:t});case"SVGFILL":return f.svgFillColorVariant({color:t});case"RINGCOLOR":return f.ringColorVariant({color:t});case"FOCUSRING":return f.focusRingColorVariant({color:t});case"ACTIVERING":return f.activeRingColorVariant({color:t});case"OFFSETRING":return f.ringOffsetColorVariant({color:t});case"OUTLINE":return f.outlineColorVariant({color:t});case"FOCUSOUTLINE":return f.focusOutlineColorVariant({color:t});case"ACTIVEOUTLINE":return f.activeOutlineColorVariant({color:t});case"BTNCOLOR":return f.btnColorVariant({color:t});case"LISTCOLOR":return f.listColorVariant({color:t});case"BORDER":return f.borderColorVariant({color:t});case"BORDERX":return f.borderXColorVariant({color:t});case"BORDERY":return f.borderYColorVariant({color:t});case"BORDERT":return f.borderTopColorVariant({color:t});case"BORDERB":return f.borderBottomColorVariant({color:t});case"BORDERL":return f.borderLeftColorVariant({color:t});case"BORDERR":return f.borderRightColorVariant({color:t});case"H1":return f.h1Variant({size:t});case"H2":return f.h2Variant({size:t});case"H3":return f.h3Variant({size:t});case"H4":return f.h4Variant({size:t});case"BODYTEXT":return f.bodyTextVariant({size:t});case"FONTWEIGHT":return f.fontWeightVariant({weight:t});case"TEXTALIGN":return f.textAlignVariant({align:t});case"BORDERW":return f.borderWidthVariant({width:t});case"BORDERXW":return f.borderXWidthVariant({width:t});case"BORDERYW":return f.borderYWidthVariant({width:t});case"BORDERTW":return f.borderTopWidthVariant({width:t});case"BORDERBW":return f.borderBottomWidthVariant({width:t});case"BORDERLW":return f.borderLeftWidthVariant({width:t});case"BORDERRW":return f.borderRightWidthVariant({width:t});case"OPACITY":return f.opacityVariant({opacity:t});case"BGOPACITY":return f.bgOpacityVariant({opacity:t});case"OUTLINEOPACITY":return f.outlineOpacityVariant({opacity:t});case"MARGIN":return f.marginVariant({spacing:t});case"MARGINX":return f.marginXVariant({spacing:t});case"MARGINY":return f.marginYVariant({spacing:t});case"MARGINT":return f.marginTopVariant({spacing:t});case"MARGINB":return f.marginBottomVariant({spacing:t});case"MARGINL":return f.marginLeftVariant({spacing:t});case"MARGINR":return f.marginRightVariant({spacing:t});case"PADDING":return f.paddingVariant({spacing:t});case"PADDINGX":return f.paddingXVariant({spacing:t});case"PADDINGY":return f.paddingYVariant({spacing:t});case"PADDINGT":return f.paddingTopVariant({spacing:t});case"PADDINGB":return f.paddingBottomVariant({spacing:t});case"PADDINGL":return f.paddingLeftVariant({spacing:t});case"PADDINGR":return f.paddingRightVariant({spacing:t});case"GAP":return f.gapVariant({spacing:t});default:return""}},Le=e.defineComponent({__name:"AccordionGroup",setup(r){return Q.provideAccordion(),(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(t.$slots,"default")]))}}),$e={class:"flex w-full justify-between gap-2xs"},Pe={class:"w-full"},ze=e.defineComponent({__name:"Alert",props:{color:{default:"danger"},rounded:{type:Boolean,default:!0},shadow:{type:Boolean,default:!0},show:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1}},emits:["close"],setup(r,{expose:t,emit:a}){const n=r;e.useSlots();const l=a,c=e.ref(n.show),o=e.computed(()=>{const{color:v,rounded:b,shadow:p}=n,h=[f.generateClass.bgColorVariant({color:v})];return b&&h.push("rounded-md"),p&&h.push("drop-shadow-md"),h.join(" ")}),d=v=>{c.value=!1,l("close",v)},u=()=>{c.value=!1};return e.watch(()=>n.show,v=>{c.value=v}),t({close:u}),(v,b)=>c.value?(e.openBlock(),e.createElementBlock("div",{key:0,role:"alert","aria-live":"polite","aria-atomic":"true",class:e.normalizeClass(["relative px-[1.25rem] py-[0.75rem]",[o.value]])},[e.createElementVNode("div",$e,[e.createElementVNode("div",Pe,[e.renderSlot(v.$slots,"default")]),r.dismissible?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"flex items-center opacity-60 transition-opacity duration-300 ease-linear hover:opacity-40"},[...b[0]||(b[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",class:"h-xs"},[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})],-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)}}),je=["src","alt"],_e={key:2,class:"flex-1 px-xs pt-xs pb-2xs"},Ge={key:3,class:"flex-1"},He=e.defineComponent({__name:"Card",props:{variant:{default:"light-1"},border:{type:Boolean,default:!1},borderVariant:{default:"light-4"},rounded:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},glass:{type:Boolean,default:!1},glassBlur:{default:"sm"},glassOpacity:{default:10},imageSrc:{},imageAlt:{},noImage:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},header:{},footer:{},title:{},titleVariant:{default:"dark-4"},titleSize:{default:"md"},cardClass:{default:""}},setup(r){const t=r,a=e.useSlots(),n=e.computed(()=>{const{variant:d,rounded:u,shadow:v,border:b,borderVariant:p,glass:h,glassBlur:g,glassOpacity:x}=t;return[f.generateClass.bgColorVariant({color:d}),u?"rounded-lg":"rounded-sm",v&&"drop-shadow-md",b&&"border",b&&f.generateClass.borderColorVariant({color:p}),h&&ke.getGlassmorphismClass(d,g,x)].filter(Boolean).join(" ")}),l=e.computed(()=>{const{titleVariant:d,titleSize:u}=t;return[f.generateClass.textColorVariant({color:d}),f.generateClass.h3Variant({size:u})].join(" ")}),c=e.computed(()=>{const{border:d,borderVariant:u,titleVariant:v}=t;return[f.generateClass.textColorVariant({color:v}),d&&"border-b",f.generateClass.borderColorVariant({color:u})].filter(Boolean).join(" ")}),o=e.computed(()=>{const{border:d,borderVariant:u}=t;return[d&&"border-t",d&&f.generateClass.borderColorVariant({color:u})].filter(Boolean).join(" ")});return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex h-full w-full flex-col overflow-hidden",[n.value,r.cardClass]])},[r.header||a.header?e.renderSlot(d.$slots,"header",{key:0},()=>[e.createElementVNode("div",{class:e.normalizeClass([[c.value],"px-xs py-2xs font-bold"])},[e.createElementVNode("p",null,e.toDisplayString(r.header),1)],2)]):e.createCommentVNode("",!0),r.imageSrc&&!r.noImage?(e.openBlock(),e.createElementBlock("img",{key:1,src:r.imageSrc,alt:r.imageAlt,class:"aspect-video min-w-full object-cover object-top"},null,8,je)):e.createCommentVNode("",!0),r.noBody?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("h3",{class:e.normalizeClass([[l.value],"mb-xs"])},e.toDisplayString(r.title),3),a.body?e.renderSlot(d.$slots,"body",{key:0}):e.createCommentVNode("",!0)])),r.noBody&&a.default?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(d.$slots,"default")])):e.createCommentVNode("",!0),r.footer||a.footer?e.renderSlot(d.$slots,"footer",{key:4},()=>[e.createElementVNode("div",{class:e.normalizeClass(["px-xs py-2xs",[o.value]])},[e.createElementVNode("p",null,e.toDisplayString(r.footer),1)],2)]):e.createCommentVNode("",!0)],2))}}),Be=Symbol(),Me=e.defineComponent({__name:"CarouselContainer",props:{bodyClass:{default:""},contentContainerClass:{default:""},controllerTopClass:{default:""},controllerBottomClass:{default:""},loop:{type:Boolean,default:!1}},setup(r,{expose:t}){const a=r,n=e.useSlots(),l=e.ref(0),c=e.ref([]),o=e.ref(0),d=e.ref("slide-next"),u=h=>{c.value.push(h),o.value=[...new Set(c.value)].length},v=h=>{l.value=h};e.provide(Be,{activeIdx:l,setSlide:u});const b=()=>{const{loop:h}=a;h&&l.value===o.value-1?l.value=0:l.value<o.value-1&&(l.value=l.value+1)},p=()=>{const{loop:h}=a;h&&l.value===0?l.value=o.value-1:l.value>0&&(l.value=l.value-1)};return e.watch(()=>l.value,(h,g)=>{h>g||h===0&&g===o.value-1?d.value="slide-next":d.value="slide-prev"}),t({numberOfSlides:o,prev:p,next:b,setActive:v}),(h,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([r.bodyClass,"relative overflow-x-hidden"])},[n["controller-top"]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.controllerTopClass)},[e.renderSlot(h.$slots,"controller-top",{next:b,prev:p,setActive:v,activeSlide:l.value,numberOfSlides:o.value},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["grid grid-cols-1 grid-rows-1",r.contentContainerClass])},[e.createVNode(e.Transition,{name:d.value},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("div",{key:l.value,class:"col-start-1 col-end-1 row-start-1 row-end-1"},[e.renderSlot(h.$slots,"content",{},void 0,!0)]))]),_:3},8,["name"])],2),n["controller-bottom"]?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.controllerBottomClass)},[e.renderSlot(h.$slots,"controller-bottom",{next:b,prev:p,setActive:v,activeSlide:l.value,numberOfSlides:o.value},void 0,!0)],2)):e.createCommentVNode("",!0)],2))}}),H=(r,t)=>{const a=r.__vccOpts||r;for(const[n,l]of t)a[n]=l;return a},We=H(Me,[["__scopeId","data-v-e9caba8a"]]),Ke=["id"],Xe=e.defineComponent({__name:"CarouselContent",props:{slideNumber:{},id:{},slideClass:{default:""}},setup(r){const t=r,{activeIdx:a,setSlide:n}=e.inject(Be),l=e.ref(null);n(t.slideNumber),e.useSlots();const c=e.computed(()=>{const{slideNumber:o}=t;return a.value===o});return(o,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"slideRef",ref:l,id:r.id,class:e.normalizeClass([r.slideClass,"w-full"]),role:"tabpanel",tabindex:"-1"},[e.renderSlot(o.$slots,"default")],10,Ke)),[[e.vShow,c.value]])}}),Ye=["id"],qe=e.defineComponent({__name:"Collapse",props:{id:{},customClass:{default:""},visible:{type:Boolean,default:!1}},emits:["open","close"],setup(r,{expose:t,emit:a}){const n=r;e.useSlots();const l=a,c=n.id??e.useId(),{isOpen:o,toggle:d,open:u,close:v}=Q.useCollapseState(c,e.toRef(n,"visible")),b=g=>{g.style.height="auto",g.style.opacity="0";const x=getComputedStyle(g).height;g.style.height="0px",g.offsetHeight,g.style.height=x,g.style.opacity="1"},p=g=>{g.style.height="auto",g.style.opacity="1"},h=g=>{g.style.height=getComputedStyle(g).height,g.offsetHeight,g.style.height="0px",g.style.opacity="0"};return e.watch(o,g=>{g?l("open",!0):l("close",!1)}),t({toggle:d,open:u,close:v}),(g,x)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(c)},[e.createVNode(e.unref(ke.ClientSideRender),null,{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"collapse",tag:"div",onEnter:b,onAfterEnter:p,onLeave:h,class:"overflow-y-clip"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(r.customClass)},[e.renderSlot(g.$slots,"default",{},void 0,!0)],2)],512),[[e.vShow,e.unref(o)]])]),_:3})]),_:3})],8,Ye))}}),Ue=H(qe,[["__scopeId","data-v-6576e563"]]),Se=Symbol(),Ze=e.defineComponent({__name:"DropdownContainer",emits:["click-outside","toggle"],setup(r,{emit:t}){e.useSlots();const a=t,n=e.ref(),l=e.ref(!1),c=e.ref(0),o=()=>{l.value=!1};e.provide(Se,{active:l,buttonHeight:c,closeDropdown:o});const d=b=>{l.value=!l.value,a("toggle",b)},u=b=>{l.value=!1,a("click-outside",b)},v=()=>{l.value=!1};return e.onMounted(()=>{c.value=n.value.scrollHeight}),(b,p)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"relative",ref_key:"dropdownTarget",ref:n,onKeyup:e.withKeys(v,["esc"])},[e.renderSlot(b.$slots,"toggler",{toggle:d,dropdownState:l.value}),e.renderSlot(b.$slots,"default")],32)),[[e.unref(me.vClickOutside),u]])}}),Je=e.defineComponent({__name:"DropdownContent",props:{customClass:{default:""}},setup(r){const{height:t}=U.useWindowSize();e.useSlots();const a=e.ref(),{active:n,buttonHeight:l,closeDropdown:c}=e.inject(Se),o=e.computed(()=>({"--button-height":`${l}px`})),d=e.computed(()=>{if(!(!n||!a.value)&&t.value-a.value.getBoundingClientRect().bottom<0)return"dropup-bottom"});return(u,v)=>(e.openBlock(),e.createBlock(e.Transition,{name:"dropdown-content"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"contentRef",ref:a,class:e.normalizeClass(["absolute my-2xs w-max max-w-[14rem] overflow-hidden",[d.value,r.customClass]]),style:e.normalizeStyle(o.value)},[e.renderSlot(u.$slots,"default",{itemClick:e.unref(c)},void 0,!0)],6)):e.createCommentVNode("",!0)]),_:3}))}}),Qe=H(Je,[["__scopeId","data-v-0cb1bffb"]]),et=["aria-label","aria-expanded"],tt=e.defineComponent({__name:"NavDrawer",props:{color:{default:"dark-2"},showBorder:{type:Boolean,default:!0},toggle:{type:Boolean},bgColor:{}},emits:["hbg-click"],setup(r,{emit:t}){const a=r,n=t,l=u=>{n("hbg-click",u)},c=e.computed({get(){return a.toggle},set(u){return u}}),o=(u,v,b)=>{const p=[f.generateClass.ringColorVariant({color:u}),f.generateClass.ringOffsetColorVariant({color:b})];return v&&(p.push(f.generateClass.borderColorVariant({color:u})),p.push("border")),p.join(" ")},d=u=>[f.generateClass.bgColorVariant({color:u}),f.generateClass.beforeBgColorVariant({color:u}),f.generateClass.afterBgColorVariant({color:u})].join(" ");return(u,v)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["hamburger__button aspect-square rounded-md p-3xs ring-offset-2 transition-all duration-300 ease-linear outline-none hover:opacity-70 focus:opacity-70 focus:ring-4",o(r.color,r.showBorder,r.bgColor)]),onClick:l,"aria-label":r.toggle?"Close":"Open","aria-expanded":r.toggle},[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":v[0]||(v[0]=b=>c.value=b),class:"hamburger__checkbox hidden"},null,512),[[e.vModelCheckbox,c.value]]),e.createElementVNode("div",{class:e.normalizeClass(["hamburger__icon relative h-[3px] w-sm transition-all duration-300 ease-linear before:h-[3px] before:w-sm after:h-[3px] after:w-sm",d(r.color)])},null,2)],10,et))}}),Ee=H(tt,[["__scopeId","data-v-b0ec6d90"]]),rt={class:"mx-xs flex flex-wrap items-center justify-between py-xs align-middle sm:max-w-[640px] md:mx-sm md:max-w-[768px] md:py-2xs lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px]"},at={class:"min-h-[24px]"},ot={class:"ml-auto"},nt={key:0,class:"hidden lg:block"},lt={class:"overflow-hidden lg:hidden"},it={key:0},st=e.defineComponent({__name:"HeaderHorizontal",props:{bgColor:{default:"light-1"},mobileMenuBgColor:{default:"light-2"},drawerBtnColor:{default:"dark-1"},showDrawerBorder:{type:Boolean,default:!0},fadeInOnScroll:{type:Boolean,default:!0},scrollDistance:{default:50},sticky:{default:"all"}},emits:["toggle-drawer"],setup(r,{expose:t,emit:a}){const n=r,l=e.useSlots(),c=e.ref(!1),{y:o}=U.useWindowScroll(),d=a,u=()=>{c.value=!1},v=V=>{c.value=!c.value,d("toggle-drawer",V,c.value)},b=V=>{V.style.height="auto";const R=getComputedStyle(V).height;V.style.height="0px",V.offsetHeight,V.style.height=R},p=V=>{V.style.height="auto"},h=V=>{V.style.height=getComputedStyle(V).height,V.offsetHeight,V.style.height="0px"},g=e.computed(()=>{const{bgColor:V,sticky:R}=n,I=[f.generateClass.bgColorVariant({color:V})];return R==="all"?(I.push("sticky top-0"),I.join(" ")):R==="tablet"?(I.push("md:sticky top-0"),I.join(" ")):(R==="pc"&&I.push("lg:sticky top-0"),I.join(" "))}),x=e.computed(()=>{const{fadeInOnScroll:V,scrollDistance:R}=n;return V?o.value>=R?"lg:shadow-md bg-opacity-70":"bg-opacity-100":""});return t({headerClose:u}),(V,R)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(["z-50 w-full items-center transition delay-150 duration-500 ease-in",[x.value,g.value]])},[e.createElementVNode("nav",rt,[e.createElementVNode("div",at,[e.renderSlot(V.$slots,"content",{},void 0,!0)]),e.createElementVNode("div",ot,[e.createVNode(Ee,{color:r.drawerBtnColor,"show-border":r.showDrawerBorder,class:"block lg:hidden",onHbgClick:v,toggle:c.value,"bg-color":r.bgColor},null,8,["color","show-border","toggle","bg-color"]),l["content-right"]?(e.openBlock(),e.createElementBlock("div",nt,[e.renderSlot(V.$slots,"content-right",{},void 0,!0)])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",lt,[e.createVNode(e.Transition,{name:"collapse",onEnter:b,onAfterEnter:p,onLeave:h},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mx-xs my-2xs overflow-hidden rounded-md bg-opacity-80",e.unref(f.generateClass).bgColorVariant({color:r.mobileMenuBgColor})])},[l["mobile-content"]?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(V.$slots,"mobile-content",{headerClose:u},void 0,!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)]),_:3})])],2))}}),ct=H(st,[["__scopeId","data-v-2ba87e4a"]]),ut={class:"flex h-full flex-col justify-between"},dt={key:0},ft={class:"relative z-40 block lg:hidden"},vt={key:0,class:"fixed top-0 right-0 z-50 mt-xs mr-xs block lg:hidden"},mt={key:0,class:"h-full"},bt=e.defineComponent({__name:"HeaderVertical",props:{bgColor:{default:"light-1"},drawerBtnColor:{default:"dark-1"},showDrawerBorder:{type:Boolean,default:!0},headerWidth:{default:160}},emits:["toggle-drawer"],setup(r,{expose:t,emit:a}){const n=r,l=e.useSlots(),c=a,o=e.ref(!1),d=b=>{o.value=!o.value,c("toggle-drawer",b,o.value)},u=()=>{o.value=!1},v=e.computed(()=>({"--header-width":`${n.headerWidth}px`}));return e.onMounted(()=>{const b=U.useScrollLock(document);e.watch(o,p=>{b.value=p})}),t({headerClose:u}),(b,p)=>(e.openBlock(),e.createElementBlock("header",{class:"relative",style:e.normalizeStyle(v.value)},[e.createElementVNode("nav",{class:e.normalizeClass(["header-desktop hidden overflow-y-scroll overscroll-contain py-sm lg:sticky lg:top-0 lg:left-0 lg:block lg:h-[100vh]",[e.unref(f.generateClass).bgColorVariant({color:r.bgColor})]])},[e.createElementVNode("div",ut,[e.createElementVNode("div",null,[e.renderSlot(b.$slots,"content",{},void 0,!0)]),l["content-bottom"]?(e.openBlock(),e.createElementBlock("div",dt,[e.renderSlot(b.$slots,"content-bottom",{},void 0,!0)])):e.createCommentVNode("",!0)])],2),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",ft,[l["mobile-content"]?(e.openBlock(),e.createElementBlock("div",vt,[e.createVNode(Ee,{color:r.drawerBtnColor,"show-border":r.showDrawerBorder,class:"relative block lg:hidden",onHbgClick:d,toggle:o.value,"bg-color":r.bgColor},null,8,["color","show-border","toggle","bg-color"])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-down",appear:""},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("nav",{key:0,class:e.normalizeClass(["fixed inset-0 overflow-y-scroll overscroll-contain px-sm py-lg",e.unref(f.generateClass).bgColorVariant({color:r.bgColor})])},[l["mobile-content"]?(e.openBlock(),e.createElementBlock("div",mt,[e.renderSlot(b.$slots,"mobile-content",{headerClose:u},void 0,!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)]),_:3})])]))],4))}}),pt=H(bt,[["__scopeId","data-v-91814bc1"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ht=r=>r!=null;var Ne=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],oe=Ne.join(","),Ve=typeof Element>"u",Z=Ve?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ne=!Ve&&Element.prototype.getRootNode?function(r){var t;return r==null||(t=r.getRootNode)===null||t===void 0?void 0:t.call(r)}:function(r){return r?.ownerDocument},le=function(t,a){var n;a===void 0&&(a=!0);var l=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),c=l===""||l==="true",o=c||a&&t&&(typeof t.closest=="function"?t.closest("[inert]"):le(t.parentNode));return o},gt=function(t){var a,n=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"contenteditable");return n===""||n==="true"},Te=function(t,a,n){if(le(t))return[];var l=Array.prototype.slice.apply(t.querySelectorAll(oe));return a&&Z.call(t,oe)&&l.unshift(t),l=l.filter(n),l},ie=function(t,a,n){for(var l=[],c=Array.from(t);c.length;){var o=c.shift();if(!le(o,!1))if(o.tagName==="SLOT"){var d=o.assignedElements(),u=d.length?d:o.children,v=ie(u,!0,n);n.flatten?l.push.apply(l,v):l.push({scopeParent:o,candidates:v})}else{var b=Z.call(o,oe);b&&n.filter(o)&&(a||!t.includes(o))&&l.push(o);var p=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),h=!le(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(p&&h){var g=ie(p===!0?o.children:p.children,!0,n);n.flatten?l.push.apply(l,g):l.push({scopeParent:o,candidates:g})}else c.unshift.apply(c,o.children)}}return l},xe=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},q=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||gt(t))&&!xe(t)?0:t.tabIndex},yt=function(t,a){var n=q(t);return n<0&&a&&!xe(t)?0:n},Ct=function(t,a){return t.tabIndex===a.tabIndex?t.documentOrder-a.documentOrder:t.tabIndex-a.tabIndex},Re=function(t){return t.tagName==="INPUT"},wt=function(t){return Re(t)&&t.type==="hidden"},kt=function(t){var a=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return a},Bt=function(t,a){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===a)return t[n]},St=function(t){if(!t.name)return!0;var a=t.form||ne(t),n=function(d){return a.querySelectorAll('input[type="radio"][name="'+d+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=n(window.CSS.escape(t.name));else try{l=n(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var c=Bt(l,t.form);return!c||c===t},Et=function(t){return Re(t)&&t.type==="radio"},Nt=function(t){return Et(t)&&!St(t)},Vt=function(t){var a,n=t&&ne(t),l=(a=n)===null||a===void 0?void 0:a.host,c=!1;if(n&&n!==t){var o,d,u;for(c=!!((o=l)!==null&&o!==void 0&&(d=o.ownerDocument)!==null&&d!==void 0&&d.contains(l)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!c&&l;){var v,b,p;n=ne(l),l=(v=n)===null||v===void 0?void 0:v.host,c=!!((b=l)!==null&&b!==void 0&&(p=b.ownerDocument)!==null&&p!==void 0&&p.contains(l))}}return c},be=function(t){var a=t.getBoundingClientRect(),n=a.width,l=a.height;return n===0&&l===0},Tt=function(t,a){var n=a.displayCheck,l=a.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var c=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(t).visibility==="hidden")return!0;var o=Z.call(t,"details>summary:first-of-type"),d=o?t.parentElement:t;if(Z.call(d,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof l=="function"){for(var u=t;t;){var v=t.parentElement,b=ne(t);if(v&&!v.shadowRoot&&l(v)===!0)return be(t);t.assignedSlot?t=t.assignedSlot:!v&&b!==t.ownerDocument?t=b.host:t=v}t=u}if(Vt(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return be(t);return!1},xt=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var a=t.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var n=0;n<a.children.length;n++){var l=a.children.item(n);if(l.tagName==="LEGEND")return Z.call(a,"fieldset[disabled] *")?!0:!l.contains(t)}return!0}a=a.parentElement}return!1},se=function(t,a){return!(a.disabled||wt(a)||Tt(a,t)||kt(a)||xt(a))},fe=function(t,a){return!(Nt(a)||q(a)<0||!se(t,a))},Rt=function(t){var a=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},Oe=function(t){var a=[],n=[];return t.forEach(function(l,c){var o=!!l.scopeParent,d=o?l.scopeParent:l,u=yt(d,o),v=o?Oe(l.candidates):d;u===0?o?a.push.apply(a,v):a.push(d):n.push({documentOrder:c,tabIndex:u,item:l,isScope:o,content:v})}),n.sort(Ct).reduce(function(l,c){return c.isScope?l.push.apply(l,c.content):l.push(c.content),l},[]).concat(a)},Ot=function(t,a){a=a||{};var n;return a.getShadowRoot?n=ie([t],a.includeContainer,{filter:fe.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:Rt}):n=Te(t,a.includeContainer,fe.bind(null,a)),Oe(n)},At=function(t,a){a=a||{};var n;return a.getShadowRoot?n=ie([t],a.includeContainer,{filter:se.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):n=Te(t,a.includeContainer,se.bind(null,a)),n},J=function(t,a){if(a=a||{},!t)throw new Error("No node provided");return Z.call(t,oe)===!1?!1:fe(a,t)},It=Ne.concat("iframe:not([inert]):not([inert] *)").join(","),de=function(t,a){if(a=a||{},!t)throw new Error("No node provided");return Z.call(t,It)===!1?!1:se(a,t)};function ve(r,t){(t==null||t>r.length)&&(t=r.length);for(var a=0,n=Array(t);a<t;a++)n[a]=r[a];return n}function Dt(r){if(Array.isArray(r))return ve(r)}function pe(r,t,a,n,l,c,o){try{var d=r[c](o),u=d.value}catch(v){return void a(v)}d.done?t(u):Promise.resolve(u).then(n,l)}function he(r){return function(){var t=this,a=arguments;return new Promise(function(n,l){var c=r.apply(t,a);function o(u){pe(c,n,l,o,d,"next",u)}function d(u){pe(c,n,l,o,d,"throw",u)}o(void 0)})}}function ge(r,t){var a=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!a){if(Array.isArray(r)||(a=Ae(r))||t){a&&(r=a);var n=0,l=function(){};return{s:l,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,o=!0,d=!1;return{s:function(){a=a.call(r)},n:function(){var u=a.next();return o=u.done,u},e:function(u){d=!0,c=u},f:function(){try{o||a.return==null||a.return()}finally{if(d)throw c}}}}function Ft(r,t,a){return(t=jt(t))in r?Object.defineProperty(r,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[t]=a,r}function Lt(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function $t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(r,l).enumerable})),a.push.apply(a,n)}return a}function Ce(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?ye(Object(a),!0).forEach(function(n){Ft(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):ye(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}function te(){var r,t,a=typeof Symbol=="function"?Symbol:{},n=a.iterator||"@@iterator",l=a.toStringTag||"@@toStringTag";function c(g,x,V,R){var I=x&&x.prototype instanceof d?x:d,L=Object.create(I.prototype);return _(L,"_invoke",(function(X,M,W){var $,T,E,F=0,A=W||[],D=!1,P={p:0,n:0,v:r,a:N,f:N.bind(r,4),d:function(i,s){return $=i,T=0,E=r,P.n=s,o}};function N(i,s){for(T=i,E=s,t=0;!D&&F&&!m&&t<A.length;t++){var m,y=A[t],w=P.p,k=y[2];i>3?(m=k===s)&&(E=y[(T=y[4])?5:(T=3,3)],y[4]=y[5]=r):y[0]<=w&&((m=i<2&&w<y[1])?(T=0,P.v=s,P.n=y[1]):w<k&&(m=i<3||y[0]>s||s>k)&&(y[4]=i,y[5]=s,P.n=k,T=0))}if(m||i>1)return o;throw D=!0,s}return function(i,s,m){if(F>1)throw TypeError("Generator is already running");for(D&&s===1&&N(s,m),T=s,E=m;(t=T<2?r:E)||!D;){$||(T?T<3?(T>1&&(P.n=-1),N(T,E)):P.n=E:P.v=E);try{if(F=2,$){if(T||(i="next"),t=$[i]){if(!(t=t.call($,E)))throw TypeError("iterator result is not an object");if(!t.done)return t;E=t.value,T<2&&(T=0)}else T===1&&(t=$.return)&&t.call($),T<2&&(E=TypeError("The iterator does not provide a '"+i+"' method"),T=1);$=r}else if((t=(D=P.n<0)?E:X.call(M,P))!==o)break}catch(y){$=r,T=1,E=y}finally{F=1}}return{value:t,done:D}}})(g,V,R),!0),L}var o={};function d(){}function u(){}function v(){}t=Object.getPrototypeOf;var b=[][n]?t(t([][n]())):(_(t={},n,function(){return this}),t),p=v.prototype=d.prototype=Object.create(b);function h(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,v):(g.__proto__=v,_(g,l,"GeneratorFunction")),g.prototype=Object.create(p),g}return u.prototype=v,_(p,"constructor",v),_(v,"constructor",u),u.displayName="GeneratorFunction",_(v,l,"GeneratorFunction"),_(p),_(p,l,"Generator"),_(p,n,function(){return this}),_(p,"toString",function(){return"[object Generator]"}),(te=function(){return{w:c,m:h}})()}function _(r,t,a,n){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}_=function(c,o,d,u){function v(b,p){_(c,b,function(h){return this._invoke(b,p,h)})}o?l?l(c,o,{value:d,enumerable:!u,configurable:!u,writable:!u}):c[o]=d:(v("next",0),v("throw",1),v("return",2))},_(r,t,a,n)}function Pt(r){return Dt(r)||Lt(r)||Ae(r)||$t()}function zt(r,t){if(typeof r!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var n=a.call(r,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function jt(r){var t=zt(r,"string");return typeof t=="symbol"?t:t+""}function Ae(r,t){if(r){if(typeof r=="string")return ve(r,t);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ve(r,t):void 0}}var G={getActiveTrap:function(t){return t?.length>0?t[t.length-1]:null},activateTrap:function(t,a){var n=G.getActiveTrap(t);a!==n&&G.pauseTrap(t);var l=t.indexOf(a);l===-1||t.splice(l,1),t.push(a)},deactivateTrap:function(t,a){var n=t.indexOf(a);n!==-1&&t.splice(n,1),G.unpauseTrap(t)},pauseTrap:function(t){var a=G.getActiveTrap(t);a?._setPausedState(!0)},unpauseTrap:function(t){var a=G.getActiveTrap(t);a&&!a._isManuallyPaused()&&a._setPausedState(!1)}},_t=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Gt=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},re=function(t){return t?.key==="Tab"||t?.keyCode===9},Ht=function(t){return re(t)&&!t.shiftKey},Mt=function(t){return re(t)&&t.shiftKey},we=function(t){return setTimeout(t,0)},ee=function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),l=1;l<a;l++)n[l-1]=arguments[l];return typeof t=="function"?t.apply(void 0,n):t},ae=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Wt=[],Kt=function(t,a){var n=a?.document||document,l=a?.trapStack||Wt,c=Ce({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:Ht,isKeyBackward:Mt},a),o={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},d,u=function(i,s,m){return i&&i[s]!==void 0?i[s]:c[m||s]},v=function(i,s){var m=typeof s?.composedPath=="function"?s.composedPath():void 0;return o.containerGroups.findIndex(function(y){var w=y.container,k=y.tabbableNodes;return w.contains(i)||m?.includes(w)||k.find(function(C){return C===i})})},b=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=s.hasFallback,y=m===void 0?!1:m,w=s.params,k=w===void 0?[]:w,C=c[i];if(typeof C=="function"&&(C=C.apply(void 0,Pt(k))),C===!0&&(C=void 0),!C){if(C===void 0||C===!1)return C;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var S=C;if(typeof C=="string"){try{S=n.querySelector(C)}catch(B){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(B.message,'"'))}if(!S&&!y)throw new Error("`".concat(i,"` as selector refers to no known node"))}return S},p=function(){var i=b("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!de(i,c.tabbableOptions))if(v(n.activeElement)>=0)i=n.activeElement;else{var s=o.tabbableGroups[0],m=s&&s.firstTabbableNode;i=m||b("fallbackFocus")}else i===null&&(i=b("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},h=function(){if(o.containerGroups=o.containers.map(function(i){var s=Ot(i,c.tabbableOptions),m=At(i,c.tabbableOptions),y=s.length>0?s[0]:void 0,w=s.length>0?s[s.length-1]:void 0,k=m.find(function(B){return J(B)}),C=m.slice().reverse().find(function(B){return J(B)}),S=!!s.find(function(B){return q(B)>0});return{container:i,tabbableNodes:s,focusableNodes:m,posTabIndexesFound:S,firstTabbableNode:y,lastTabbableNode:w,firstDomTabbableNode:k,lastDomTabbableNode:C,nextTabbableNode:function(O){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,z=s.indexOf(O);return z<0?j?m.slice(m.indexOf(O)+1).find(function(Y){return J(Y)}):m.slice(0,m.indexOf(O)).reverse().find(function(Y){return J(Y)}):s[z+(j?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!b("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(i){return i.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},g=function(i){var s=i.activeElement;if(s)return s.shadowRoot&&s.shadowRoot.activeElement!==null?g(s.shadowRoot):s},x=function(i){if(i!==!1&&i!==g(document)){if(!i||!i.focus){x(p());return}i.focus({preventScroll:!!c.preventScroll}),o.mostRecentlyFocusedNode=i,_t(i)&&i.select()}},V=function(i){var s=b("setReturnFocus",{params:[i]});return s||(s===!1?!1:i)},R=function(i){var s=i.target,m=i.event,y=i.isBackward,w=y===void 0?!1:y;s=s||ae(m),h();var k=null;if(o.tabbableGroups.length>0){var C=v(s,m),S=C>=0?o.containerGroups[C]:void 0;if(C<0)w?k=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:k=o.tabbableGroups[0].firstTabbableNode;else if(w){var B=o.tabbableGroups.findIndex(function(ce){var ue=ce.firstTabbableNode;return s===ue});if(B<0&&(S.container===s||de(s,c.tabbableOptions)&&!J(s,c.tabbableOptions)&&!S.nextTabbableNode(s,!1))&&(B=C),B>=0){var O=B===0?o.tabbableGroups.length-1:B-1,j=o.tabbableGroups[O];k=q(s)>=0?j.lastTabbableNode:j.lastDomTabbableNode}else re(m)||(k=S.nextTabbableNode(s,!1))}else{var z=o.tabbableGroups.findIndex(function(ce){var ue=ce.lastTabbableNode;return s===ue});if(z<0&&(S.container===s||de(s,c.tabbableOptions)&&!J(s,c.tabbableOptions)&&!S.nextTabbableNode(s))&&(z=C),z>=0){var Y=z===o.tabbableGroups.length-1?0:z+1,K=o.tabbableGroups[Y];k=q(s)>=0?K.firstTabbableNode:K.firstDomTabbableNode}else re(m)||(k=S.nextTabbableNode(s))}}else k=b("fallbackFocus");return k},I=function(i){var s=ae(i);if(!(v(s,i)>=0)){if(ee(c.clickOutsideDeactivates,i)){d.deactivate({returnFocus:c.returnFocusOnDeactivate});return}ee(c.allowOutsideClick,i)||i.preventDefault()}},L=function(i){var s=ae(i),m=v(s,i)>=0;if(m||s instanceof Document)m&&(o.mostRecentlyFocusedNode=s);else{i.stopImmediatePropagation();var y,w=!0;if(o.mostRecentlyFocusedNode)if(q(o.mostRecentlyFocusedNode)>0){var k=v(o.mostRecentlyFocusedNode),C=o.containerGroups[k].tabbableNodes;if(C.length>0){var S=C.findIndex(function(B){return B===o.mostRecentlyFocusedNode});S>=0&&(c.isKeyForward(o.recentNavEvent)?S+1<C.length&&(y=C[S+1],w=!1):S-1>=0&&(y=C[S-1],w=!1))}}else o.containerGroups.some(function(B){return B.tabbableNodes.some(function(O){return q(O)>0})})||(w=!1);else w=!1;w&&(y=R({target:o.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(o.recentNavEvent)})),x(y||o.mostRecentlyFocusedNode||p())}o.recentNavEvent=void 0},X=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=i;var m=R({event:i,isBackward:s});m&&(re(i)&&i.preventDefault(),x(m))},M=function(i){(c.isKeyForward(i)||c.isKeyBackward(i))&&X(i,c.isKeyBackward(i))},W=function(i){Gt(i)&&ee(c.escapeDeactivates,i)!==!1&&(i.preventDefault(),d.deactivate())},$=function(i){var s=ae(i);v(s,i)>=0||ee(c.clickOutsideDeactivates,i)||ee(c.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},T=function(){if(!o.active)return Promise.resolve();G.activateTrap(l,d);var i;return c.delayInitialFocus?i=new Promise(function(s){o.delayInitialFocusTimer=we(function(){x(p()),s()})}):(i=Promise.resolve(),x(p())),n.addEventListener("focusin",L,!0),n.addEventListener("mousedown",I,{capture:!0,passive:!1}),n.addEventListener("touchstart",I,{capture:!0,passive:!1}),n.addEventListener("click",$,{capture:!0,passive:!1}),n.addEventListener("keydown",M,{capture:!0,passive:!1}),n.addEventListener("keydown",W),i},E=function(i){o.active&&!o.paused&&d._setSubtreeIsolation(!1),o.adjacentElements.clear(),o.alreadySilent.clear();var s=new Set,m=new Set,y=ge(i),w;try{for(y.s();!(w=y.n()).done;){var k=w.value;s.add(k);for(var C=typeof ShadowRoot<"u"&&k.getRootNode()instanceof ShadowRoot,S=k;S;){s.add(S);var B=S.parentElement,O=[];B?O=B.children:!B&&C&&(O=S.getRootNode().children,B=S.getRootNode().host,C=typeof ShadowRoot<"u"&&B.getRootNode()instanceof ShadowRoot);var j=ge(O),z;try{for(j.s();!(z=j.n()).done;){var Y=z.value;m.add(Y)}}catch(K){j.e(K)}finally{j.f()}S=B}}}catch(K){y.e(K)}finally{y.f()}s.forEach(function(K){m.delete(K)}),o.adjacentElements=m},F=function(){if(o.active)return n.removeEventListener("focusin",L,!0),n.removeEventListener("mousedown",I,!0),n.removeEventListener("touchstart",I,!0),n.removeEventListener("click",$,!0),n.removeEventListener("keydown",M,!0),n.removeEventListener("keydown",W),d},A=function(i){var s=o.mostRecentlyFocusedNode;if(s){var m=i.some(function(w){var k=Array.from(w.removedNodes);return k.some(function(C){return C===s||typeof C.contains=="function"&&C.contains(s)})});if(m&&o.containers.some(function(w){return w?.isConnected})){h();var y=p();x(y)}}},D=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(A):void 0,P=function(){D&&(D.disconnect(),o.active&&!o.paused&&o.containers.map(function(i){D.observe(i,{subtree:!0,childList:!0})}))};return d={get active(){return o.active},get paused(){return o.paused},activate:function(i){if(o.active)return this;var s=u(i,"onActivate"),m=u(i,"onPostActivate"),y=u(i,"checkCanFocusTrap"),w=G.getActiveTrap(l),k=!1;if(w&&!w.paused){var C;(C=w._setSubtreeIsolation)===null||C===void 0||C.call(w,!1),k=!0}try{y||h(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=g(n),s?.({trap:d});var S=(function(){var O=he(te().m(function j(){return te().w(function(z){for(;;)switch(z.n){case 0:return y&&h(),z.n=1,T();case 1:d._setSubtreeIsolation(!0),P(),m?.({trap:d});case 2:return z.a(2)}},j)}));return function(){return O.apply(this,arguments)}})();if(y)return y(o.containers.concat()).then(S,S),this;S()}catch(O){if(w===G.getActiveTrap(l)&&k){var B;(B=w._setSubtreeIsolation)===null||B===void 0||B.call(w,!0)}throw O}return this},deactivate:function(i){if(!o.active)return this;var s=Ce({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},i);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,o.paused||d._setSubtreeIsolation(!1),o.alreadySilent.clear(),F(),o.active=!1,o.paused=!1,P(),G.deactivateTrap(l,d);var m=u(s,"onDeactivate"),y=u(s,"onPostDeactivate"),w=u(s,"checkCanReturnFocus"),k=u(s,"delayReturnFocus"),C=u(s,"returnFocus","returnFocusOnDeactivate");m?.({trap:d});var S=function(){C&&x(V(o.nodeFocusedBeforeActivation)),y?.({trap:d})},B=function(){k&&C?we(S):S()};return C&&w?(w(V(o.nodeFocusedBeforeActivation)).then(B,B),this):(B(),this)},pause:function(i){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return o.active?(o.manuallyPaused=!1,l[l.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var s=[].concat(i).filter(Boolean);return o.containers=s.map(function(m){return typeof m=="string"?n.querySelector(m):m}),c.isolateSubtrees&&E(o.containers),o.active&&(h(),o.paused||d._setSubtreeIsolation(!0)),P(),this}},Object.defineProperties(d,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(i,s){if(o.paused===i)return this;if(o.paused=i,i){var m=u(s,"onPause"),y=u(s,"onPostPause");m?.({trap:d}),F(),d._setSubtreeIsolation(!1),P(),y?.({trap:d})}else{var w=u(s,"onUnpause"),k=u(s,"onPostUnpause");w?.({trap:d});var C=(function(){var S=he(te().m(function B(){return te().w(function(O){for(;;)switch(O.n){case 0:return h(),O.n=1,T();case 1:d._setSubtreeIsolation(!0),P(),k?.({trap:d});case 2:return O.a(2)}},B)}));return function(){return S.apply(this,arguments)}})();C()}return this}},_setSubtreeIsolation:{value:function(i){c.isolateSubtrees&&o.adjacentElements.forEach(function(s){var m;i?c.isolateSubtrees==="aria-hidden"?((s.ariaHidden==="true"||((m=s.getAttribute("aria-hidden"))===null||m===void 0?void 0:m.toLowerCase())==="true")&&o.alreadySilent.add(s),s.setAttribute("aria-hidden","true")):((s.inert||s.hasAttribute("inert"))&&o.alreadySilent.add(s),s.setAttribute("inert",!0)):o.alreadySilent.has(s)||(c.isolateSubtrees==="aria-hidden"?s.removeAttribute("aria-hidden"):s.removeAttribute("inert"))})}}}),d.updateContainerElements(t),d};function Ie(r,t={}){let a;const{immediate:n,...l}=t,c=e.shallowRef(!1),o=e.shallowRef(!1),d=p=>a&&a.activate(p),u=p=>a&&a.deactivate(p),v=()=>{a&&(a.pause(),o.value=!0)},b=()=>{a&&(a.unpause(),o.value=!1)};return e.watch(e.computed(()=>U.toArray(e.toValue(r)).map(p=>{const h=e.toValue(p);return typeof h=="string"?h:U.unrefElement(h)}).filter(ht)),p=>{if(p.length)if(!a)a=Kt(p,{...l,onActivate(h){c.value=!0,t.onActivate&&t.onActivate(h)},onDeactivate(h){c.value=!1,t.onDeactivate&&t.onDeactivate(h)}}),n&&d();else{const h=a?.active;a?.updateContainerElements(p),!h&&n&&d()}},{flush:"post"}),U.tryOnScopeDispose(()=>u()),{hasFocus:c,isPaused:o,activate:d,deactivate:u,pause:v,unpause:b}}const Xt=["visible"],Yt=["aria-labelledby"],qt={key:0,class:"sticky top-0"},Ut=["id"],Zt={key:1,class:"sticky bottom-0"},Jt=e.defineComponent({__name:"Modal",props:{title:{},titleColor:{default:"dark-3"},customClass:{default:""},visible:{type:Boolean,default:!1},showBackdrop:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},color:{default:"light-1"},backdropColor:{default:"dark-4"},placement:{default:"center"},width:{default:"small"}},emits:["open","close"],setup(r,{expose:t,emit:a}){const n=r,l=e.useSlots(),c=a,o=e.ref(),d=e.ref(),u=e.ref(n.visible),v=e.ref(!1),b=e.useId();let p=null;const{activate:h,deactivate:g}=Ie(d,{immediate:!1}),x=()=>{u.value=!u.value},V=()=>{u.value=!0},R=()=>{v.value===!0&&(u.value=!1)},I=()=>{c("open",!0)},L=()=>{c("close",!1)},X=e.computed(()=>{const E={top:25,center:50,bottom:75},{placement:F}=n;return{"--vertical-placement":(E[F]??E.center)+"%"}}),M=e.computed(()=>{const{width:E}=n,F={small:"max-w-[28rem]",medium:"max-w-[28rem] md:max-w-[36rem]",large:"max-w-[28rem] md:max-w-[56rem]"};return F[E]??F.small}),W=()=>{v.value=!0,d.value&&h()},$=()=>{v.value=!1},T=(E=!1)=>{u.value=E};return Q.observeVisibleAttr(o,T),e.watch(()=>n.visible,E=>{u.value=E}),e.watch(u,E=>{E===!0?(typeof document<"u"&&(p=document.activeElement),I()):E===!1&&(g(),p?.focus(),p=null,v.value===!0&&L())}),Q.useModalScrollLock(u),t({toggle:x,close:R,open:V}),(E,F)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(X.value),visible:u.value,ref_key:"modalRef",ref:o},[r.showBackdrop?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"fade",appear:"",tag:"div"},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("section",{key:0,onClick:R,"aria-hidden":"true",class:e.normalizeClass(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70 backdrop-blur",e.unref(f.generateClass).bgColorVariant({color:r.backdropColor})])},null,2)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-down",tag:"div",onAfterEnter:W,onAfterLeave:$,appear:""},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["vertical-placement px-xs fixed z-[110] w-full",M.value])},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"dialogRef",ref:d,role:"dialog","aria-modal":"true","aria-labelledby":r.title?e.unref(b):void 0,class:e.normalizeClass([[e.unref(f.generateClass).bgColorVariant({color:r.color}),r.customClass],"relative max-h-[80vh] overflow-y-scroll overscroll-contain md:max-h-[60vh]"])},[r.showHeader?(e.openBlock(),e.createElementBlock("div",qt,[e.renderSlot(E.$slots,"header",{close:R,status:u.value},()=>[e.createElementVNode("div",{class:e.normalizeClass(["p-xs border-b-light-4 flex items-center justify-between border-b-2",e.unref(f.generateClass).bgColorVariant({color:r.color})])},[r.title?(e.openBlock(),e.createElementBlock("h3",{key:0,id:e.unref(b),class:e.normalizeClass(["h3-md",e.unref(f.generateClass).textColorVariant({color:r.titleColor})])},e.toDisplayString(r.title),11,Ut)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button","aria-label":"Close",onClick:R},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512","aria-hidden":"true",class:e.normalizeClass(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75",[e.unref(f.generateClass).svgFillColorVariant({color:r.titleColor})]])},[...F[0]||(F[0]=[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))])],2)],!0)])):e.createCommentVNode("",!0),e.renderSlot(E.$slots,"body",{close:R,status:u.value},void 0,!0),l.footer?(e.openBlock(),e.createElementBlock("div",Zt,[e.renderSlot(E.$slots,"footer",{close:R,status:u.value},void 0,!0)])):e.createCommentVNode("",!0)],10,Yt)),[[e.unref(me.vClickOutside),R]])],2)):e.createCommentVNode("",!0)]),_:3})],12,Xt))}}),Qt=H(Jt,[["__scopeId","data-v-4f8f0bf8"]]),er=["visible"],tr=["aria-labelledby"],rr=["id"],ar={class:"sidebar-body-height"},or=e.defineComponent({__name:"Sidebar",props:{title:{},titleColor:{default:"dark-3"},customClass:{default:""},visible:{type:Boolean,default:!1},showBackdrop:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},color:{default:"light-1"},backdropColor:{default:"dark-4"},placement:{default:"left"},width:{default:300}},emits:["open","close"],setup(r,{expose:t,emit:a}){const n=r,l=e.useSlots(),c=a,o=e.ref(n.visible),d=e.ref(!1),u=e.ref(),v=e.ref(),b=e.ref(),p=e.ref(),h=e.useId();let g=null;const{activate:x,deactivate:V}=Ie(v,{immediate:!1}),R=()=>{o.value=!o.value},I=()=>{o.value=!0},L=()=>{d.value===!0&&(o.value=!1)},X=()=>{c("open",!0)},M=()=>{c("close",!1)},W=e.computed(()=>{const A=D=>D&&o.value?`${D.scrollHeight}px`:"0px";return{"--sidebar-width":`${n.width}px`,"--header-height":A(b.value),"--footer-height":A(p.value)}}),$=e.computed(()=>n.placement==="left"?"sidebar-left":"sidebar-right"),T=()=>{d.value=!0,v.value&&x()},E=()=>{d.value=!1},F=(A=!1)=>{o.value=A};return Q.observeVisibleAttr(u,F),e.watch(()=>n.visible,A=>{o.value=A}),e.watch(o,A=>{A===!0?(typeof document<"u"&&(g=document.activeElement),X()):A===!1&&(V(),g?.focus(),g=null,d.value===!0&&M())}),Q.useModalScrollLock(o),t({toggle:R,open:I,close:L}),(A,D)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(W.value),visible:o.value,ref_key:"sidebarRef",ref:u},[r.showBackdrop?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"fade",appear:"",tag:"div"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("section",{key:0,onClick:L,"aria-hidden":"true",class:e.normalizeClass(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70 backdrop-blur",e.unref(f.generateClass).bgColorVariant({color:r.backdropColor})])},null,2)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:$.value,onAfterEnter:T,onAfterLeave:E,appear:""},{default:e.withCtx(()=>[o.value?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dialogRef",ref:v,role:"dialog","aria-modal":"true","aria-labelledby":r.title?e.unref(h):void 0,class:e.normalizeClass(["sidebar-body fixed inset-y-0 z-[110] h-full overflow-hidden shadow",[r.placement==="left"?"left-0":"right-0"]])},[e.createElementVNode("div",{class:e.normalizeClass(["relative h-full overflow-y-scroll overscroll-contain",[e.unref(f.generateClass).bgColorVariant({color:r.color}),r.customClass]])},[r.showHeader?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sticky top-0 z-10",ref_key:"headerRef",ref:b},[e.renderSlot(A.$slots,"header",{close:L,status:o.value},()=>[e.createElementVNode("div",{class:e.normalizeClass(["p-xs flex items-center justify-between",e.unref(f.generateClass).bgColorVariant({color:r.color})])},[r.placement==="right"?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":"Close",onClick:L},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512","aria-hidden":"true",class:e.normalizeClass(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75",[e.unref(f.generateClass).svgFillColorVariant({color:r.titleColor})]])},[...D[0]||(D[0]=[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))])):e.createCommentVNode("",!0),r.title?(e.openBlock(),e.createElementBlock("h3",{key:1,id:e.unref(h),class:e.normalizeClass(["h3-md",e.unref(f.generateClass).textColorVariant({color:r.titleColor})])},e.toDisplayString(r.title),11,rr)):e.createCommentVNode("",!0),r.placement==="left"?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button","aria-label":"Close",onClick:L},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512","aria-hidden":"true",class:e.normalizeClass(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75",[e.unref(f.generateClass).svgFillColorVariant({color:r.titleColor})]])},[...D[1]||(D[1]=[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))])):e.createCommentVNode("",!0)],2)],!0)],512)):e.createCommentVNode("",!0),e.createElementVNode("div",ar,[e.renderSlot(A.$slots,"body",{close:L,status:o.value},void 0,!0)]),l.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:"sticky bottom-0",ref_key:"footerRef",ref:p},[e.renderSlot(A.$slots,"footer",{close:L,status:o.value},void 0,!0)],512)):e.createCommentVNode("",!0)],2)],10,tr)),[[e.unref(me.vClickOutside),L]]):e.createCommentVNode("",!0)]),_:3},8,["name"])],12,er))}}),nr=H(or,[["__scopeId","data-v-b770513a"]]),De=Symbol(),lr={class:"container-hts transition-[max-height] duration-300 grid grid-cols-1 grid-rows-1"},ir=e.defineComponent({__name:"TabContainer",props:{bodyClass:{default:""},btnContainerClass:{default:""},contentContainerClass:{default:""}},setup(r,{expose:t}){e.useSlots();const a=e.ref(0),n=e.ref(0),l=e.ref("slide-next"),c=u=>{n.value=u};e.provide(De,{activeTabIdx:a,containerHeight:n,updateHeight:c});const o=u=>{a.value=u},d=e.computed(()=>({"--container-hts":`${n.value}px`}));return t({update:o}),e.watch(()=>a.value,(u,v)=>{u>v?l.value="slide-next":l.value="slide-prev"}),(u,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.bodyClass),style:e.normalizeStyle(d.value)},[e.createElementVNode("div",{class:e.normalizeClass(r.btnContainerClass),role:"tablist"},[e.renderSlot(u.$slots,"tab-button",{update:o,activeTab:a.value},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.contentContainerClass)},[e.createElementVNode("div",lr,[e.createVNode(e.Transition,{name:l.value},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("div",{key:a.value,class:"col-start-1 col-end-1 row-start-1 row-end-1 relative"},[e.renderSlot(u.$slots,"tab-content",{},void 0,!0)]))]),_:3},8,["name"])])],2)],6))}}),sr=H(ir,[["__scopeId","data-v-1014eb3f"]]),cr=["id"],ur=e.defineComponent({__name:"TabContent",props:{tabNumber:{},id:{},tabClass:{default:""}},setup(r){const t=r,{activeTabIdx:a,updateHeight:n}=e.inject(De),l=e.ref(null),{height:c}=U.useElementSize(l),o=e.computed(()=>a.value===t.tabNumber?(n(c.value),!0):!1);return(d,u)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"slotRef",ref:l,id:r.id,class:e.normalizeClass([r.tabClass,"w-full"]),role:"tabpanel",tabindex:"-1"},[e.renderSlot(d.$slots,"default")],10,cr)),[[e.vShow,o.value]])}});exports.generateClass=f.generateClass;exports.AccordionGroup=Le;exports.Alert=ze;exports.Card=He;exports.CarouselContainer=We;exports.CarouselContent=Xe;exports.Collapse=Ue;exports.DropdownContainer=Ze;exports.DropdownContent=Qe;exports.HeaderHorizontal=ct;exports.HeaderVertical=pt;exports.Modal=Qt;exports.Sidebar=nr;exports.TabContainer=sr;exports.TabContent=ur;exports.default=Fe;
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(r,l).enumerable})),a.push.apply(a,n)}return a}function Ce(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?ye(Object(a),!0).forEach(function(n){Ft(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):ye(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}function te(){var r,t,a=typeof Symbol=="function"?Symbol:{},n=a.iterator||"@@iterator",l=a.toStringTag||"@@toStringTag";function c(g,x,V,R){var I=x&&x.prototype instanceof d?x:d,L=Object.create(I.prototype);return _(L,"_invoke",(function(X,M,W){var $,T,E,F=0,A=W||[],D=!1,P={p:0,n:0,v:r,a:N,f:N.bind(r,4),d:function(i,s){return $=i,T=0,E=r,P.n=s,o}};function N(i,s){for(T=i,E=s,t=0;!D&&F&&!m&&t<A.length;t++){var m,y=A[t],w=P.p,k=y[2];i>3?(m=k===s)&&(E=y[(T=y[4])?5:(T=3,3)],y[4]=y[5]=r):y[0]<=w&&((m=i<2&&w<y[1])?(T=0,P.v=s,P.n=y[1]):w<k&&(m=i<3||y[0]>s||s>k)&&(y[4]=i,y[5]=s,P.n=k,T=0))}if(m||i>1)return o;throw D=!0,s}return function(i,s,m){if(F>1)throw TypeError("Generator is already running");for(D&&s===1&&N(s,m),T=s,E=m;(t=T<2?r:E)||!D;){$||(T?T<3?(T>1&&(P.n=-1),N(T,E)):P.n=E:P.v=E);try{if(F=2,$){if(T||(i="next"),t=$[i]){if(!(t=t.call($,E)))throw TypeError("iterator result is not an object");if(!t.done)return t;E=t.value,T<2&&(T=0)}else T===1&&(t=$.return)&&t.call($),T<2&&(E=TypeError("The iterator does not provide a '"+i+"' method"),T=1);$=r}else if((t=(D=P.n<0)?E:X.call(M,P))!==o)break}catch(y){$=r,T=1,E=y}finally{F=1}}return{value:t,done:D}}})(g,V,R),!0),L}var o={};function d(){}function u(){}function v(){}t=Object.getPrototypeOf;var b=[][n]?t(t([][n]())):(_(t={},n,function(){return this}),t),p=v.prototype=d.prototype=Object.create(b);function h(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,v):(g.__proto__=v,_(g,l,"GeneratorFunction")),g.prototype=Object.create(p),g}return u.prototype=v,_(p,"constructor",v),_(v,"constructor",u),u.displayName="GeneratorFunction",_(v,l,"GeneratorFunction"),_(p),_(p,l,"Generator"),_(p,n,function(){return this}),_(p,"toString",function(){return"[object Generator]"}),(te=function(){return{w:c,m:h}})()}function _(r,t,a,n){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}_=function(c,o,d,u){function v(b,p){_(c,b,function(h){return this._invoke(b,p,h)})}o?l?l(c,o,{value:d,enumerable:!u,configurable:!u,writable:!u}):c[o]=d:(v("next",0),v("throw",1),v("return",2))},_(r,t,a,n)}function Pt(r){return Dt(r)||Lt(r)||Ae(r)||$t()}function zt(r,t){if(typeof r!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var n=a.call(r,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function jt(r){var t=zt(r,"string");return typeof t=="symbol"?t:t+""}function Ae(r,t){if(r){if(typeof r=="string")return ve(r,t);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ve(r,t):void 0}}var G={getActiveTrap:function(t){return t?.length>0?t[t.length-1]:null},activateTrap:function(t,a){var n=G.getActiveTrap(t);a!==n&&G.pauseTrap(t);var l=t.indexOf(a);l===-1||t.splice(l,1),t.push(a)},deactivateTrap:function(t,a){var n=t.indexOf(a);n!==-1&&t.splice(n,1),G.unpauseTrap(t)},pauseTrap:function(t){var a=G.getActiveTrap(t);a?._setPausedState(!0)},unpauseTrap:function(t){var a=G.getActiveTrap(t);a&&!a._isManuallyPaused()&&a._setPausedState(!1)}},_t=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Gt=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},re=function(t){return t?.key==="Tab"||t?.keyCode===9},Ht=function(t){return re(t)&&!t.shiftKey},Mt=function(t){return re(t)&&t.shiftKey},we=function(t){return setTimeout(t,0)},ee=function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),l=1;l<a;l++)n[l-1]=arguments[l];return typeof t=="function"?t.apply(void 0,n):t},ae=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Wt=[],Kt=function(t,a){var n=a?.document||document,l=a?.trapStack||Wt,c=Ce({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:Ht,isKeyBackward:Mt},a),o={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},d,u=function(i,s,m){return i&&i[s]!==void 0?i[s]:c[m||s]},v=function(i,s){var m=typeof s?.composedPath=="function"?s.composedPath():void 0;return o.containerGroups.findIndex(function(y){var w=y.container,k=y.tabbableNodes;return w.contains(i)||m?.includes(w)||k.find(function(C){return C===i})})},b=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=s.hasFallback,y=m===void 0?!1:m,w=s.params,k=w===void 0?[]:w,C=c[i];if(typeof C=="function"&&(C=C.apply(void 0,Pt(k))),C===!0&&(C=void 0),!C){if(C===void 0||C===!1)return C;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var S=C;if(typeof C=="string"){try{S=n.querySelector(C)}catch(B){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(B.message,'"'))}if(!S&&!y)throw new Error("`".concat(i,"` as selector refers to no known node"))}return S},p=function(){var i=b("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!de(i,c.tabbableOptions))if(v(n.activeElement)>=0)i=n.activeElement;else{var s=o.tabbableGroups[0],m=s&&s.firstTabbableNode;i=m||b("fallbackFocus")}else i===null&&(i=b("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},h=function(){if(o.containerGroups=o.containers.map(function(i){var s=Ot(i,c.tabbableOptions),m=At(i,c.tabbableOptions),y=s.length>0?s[0]:void 0,w=s.length>0?s[s.length-1]:void 0,k=m.find(function(B){return J(B)}),C=m.slice().reverse().find(function(B){return J(B)}),S=!!s.find(function(B){return q(B)>0});return{container:i,tabbableNodes:s,focusableNodes:m,posTabIndexesFound:S,firstTabbableNode:y,lastTabbableNode:w,firstDomTabbableNode:k,lastDomTabbableNode:C,nextTabbableNode:function(O){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,z=s.indexOf(O);return z<0?j?m.slice(m.indexOf(O)+1).find(function(Y){return J(Y)}):m.slice(0,m.indexOf(O)).reverse().find(function(Y){return J(Y)}):s[z+(j?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!b("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(i){return i.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},g=function(i){var s=i.activeElement;if(s)return s.shadowRoot&&s.shadowRoot.activeElement!==null?g(s.shadowRoot):s},x=function(i){if(i!==!1&&i!==g(document)){if(!i||!i.focus){x(p());return}i.focus({preventScroll:!!c.preventScroll}),o.mostRecentlyFocusedNode=i,_t(i)&&i.select()}},V=function(i){var s=b("setReturnFocus",{params:[i]});return s||(s===!1?!1:i)},R=function(i){var s=i.target,m=i.event,y=i.isBackward,w=y===void 0?!1:y;s=s||ae(m),h();var k=null;if(o.tabbableGroups.length>0){var C=v(s,m),S=C>=0?o.containerGroups[C]:void 0;if(C<0)w?k=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:k=o.tabbableGroups[0].firstTabbableNode;else if(w){var B=o.tabbableGroups.findIndex(function(ce){var ue=ce.firstTabbableNode;return s===ue});if(B<0&&(S.container===s||de(s,c.tabbableOptions)&&!J(s,c.tabbableOptions)&&!S.nextTabbableNode(s,!1))&&(B=C),B>=0){var O=B===0?o.tabbableGroups.length-1:B-1,j=o.tabbableGroups[O];k=q(s)>=0?j.lastTabbableNode:j.lastDomTabbableNode}else re(m)||(k=S.nextTabbableNode(s,!1))}else{var z=o.tabbableGroups.findIndex(function(ce){var ue=ce.lastTabbableNode;return s===ue});if(z<0&&(S.container===s||de(s,c.tabbableOptions)&&!J(s,c.tabbableOptions)&&!S.nextTabbableNode(s))&&(z=C),z>=0){var Y=z===o.tabbableGroups.length-1?0:z+1,K=o.tabbableGroups[Y];k=q(s)>=0?K.firstTabbableNode:K.firstDomTabbableNode}else re(m)||(k=S.nextTabbableNode(s))}}else k=b("fallbackFocus");return k},I=function(i){var s=ae(i);if(!(v(s,i)>=0)){if(ee(c.clickOutsideDeactivates,i)){d.deactivate({returnFocus:c.returnFocusOnDeactivate});return}ee(c.allowOutsideClick,i)||i.preventDefault()}},L=function(i){var s=ae(i),m=v(s,i)>=0;if(m||s instanceof Document)m&&(o.mostRecentlyFocusedNode=s);else{i.stopImmediatePropagation();var y,w=!0;if(o.mostRecentlyFocusedNode)if(q(o.mostRecentlyFocusedNode)>0){var k=v(o.mostRecentlyFocusedNode),C=o.containerGroups[k].tabbableNodes;if(C.length>0){var S=C.findIndex(function(B){return B===o.mostRecentlyFocusedNode});S>=0&&(c.isKeyForward(o.recentNavEvent)?S+1<C.length&&(y=C[S+1],w=!1):S-1>=0&&(y=C[S-1],w=!1))}}else o.containerGroups.some(function(B){return B.tabbableNodes.some(function(O){return q(O)>0})})||(w=!1);else w=!1;w&&(y=R({target:o.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(o.recentNavEvent)})),x(y||o.mostRecentlyFocusedNode||p())}o.recentNavEvent=void 0},X=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=i;var m=R({event:i,isBackward:s});m&&(re(i)&&i.preventDefault(),x(m))},M=function(i){(c.isKeyForward(i)||c.isKeyBackward(i))&&X(i,c.isKeyBackward(i))},W=function(i){Gt(i)&&ee(c.escapeDeactivates,i)!==!1&&(i.preventDefault(),d.deactivate())},$=function(i){var s=ae(i);v(s,i)>=0||ee(c.clickOutsideDeactivates,i)||ee(c.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},T=function(){if(!o.active)return Promise.resolve();G.activateTrap(l,d);var i;return c.delayInitialFocus?i=new Promise(function(s){o.delayInitialFocusTimer=we(function(){x(p()),s()})}):(i=Promise.resolve(),x(p())),n.addEventListener("focusin",L,!0),n.addEventListener("mousedown",I,{capture:!0,passive:!1}),n.addEventListener("touchstart",I,{capture:!0,passive:!1}),n.addEventListener("click",$,{capture:!0,passive:!1}),n.addEventListener("keydown",M,{capture:!0,passive:!1}),n.addEventListener("keydown",W),i},E=function(i){o.active&&!o.paused&&d._setSubtreeIsolation(!1),o.adjacentElements.clear(),o.alreadySilent.clear();var s=new Set,m=new Set,y=ge(i),w;try{for(y.s();!(w=y.n()).done;){var k=w.value;s.add(k);for(var C=typeof ShadowRoot<"u"&&k.getRootNode()instanceof ShadowRoot,S=k;S;){s.add(S);var B=S.parentElement,O=[];B?O=B.children:!B&&C&&(O=S.getRootNode().children,B=S.getRootNode().host,C=typeof ShadowRoot<"u"&&B.getRootNode()instanceof ShadowRoot);var j=ge(O),z;try{for(j.s();!(z=j.n()).done;){var Y=z.value;m.add(Y)}}catch(K){j.e(K)}finally{j.f()}S=B}}}catch(K){y.e(K)}finally{y.f()}s.forEach(function(K){m.delete(K)}),o.adjacentElements=m},F=function(){if(o.active)return n.removeEventListener("focusin",L,!0),n.removeEventListener("mousedown",I,!0),n.removeEventListener("touchstart",I,!0),n.removeEventListener("click",$,!0),n.removeEventListener("keydown",M,!0),n.removeEventListener("keydown",W),d},A=function(i){var s=o.mostRecentlyFocusedNode;if(s){var m=i.some(function(w){var k=Array.from(w.removedNodes);return k.some(function(C){return C===s||typeof C.contains=="function"&&C.contains(s)})});if(m&&o.containers.some(function(w){return w?.isConnected})){h();var y=p();x(y)}}},D=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(A):void 0,P=function(){D&&(D.disconnect(),o.active&&!o.paused&&o.containers.map(function(i){D.observe(i,{subtree:!0,childList:!0})}))};return d={get active(){return o.active},get paused(){return o.paused},activate:function(i){if(o.active)return this;var s=u(i,"onActivate"),m=u(i,"onPostActivate"),y=u(i,"checkCanFocusTrap"),w=G.getActiveTrap(l),k=!1;if(w&&!w.paused){var C;(C=w._setSubtreeIsolation)===null||C===void 0||C.call(w,!1),k=!0}try{y||h(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=g(n),s?.({trap:d});var S=(function(){var O=he(te().m(function j(){return te().w(function(z){for(;;)switch(z.n){case 0:return y&&h(),z.n=1,T();case 1:d._setSubtreeIsolation(!0),P(),m?.({trap:d});case 2:return z.a(2)}},j)}));return function(){return O.apply(this,arguments)}})();if(y)return y(o.containers.concat()).then(S,S),this;S()}catch(O){if(w===G.getActiveTrap(l)&&k){var B;(B=w._setSubtreeIsolation)===null||B===void 0||B.call(w,!0)}throw O}return this},deactivate:function(i){if(!o.active)return this;var s=Ce({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},i);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,o.paused||d._setSubtreeIsolation(!1),o.alreadySilent.clear(),F(),o.active=!1,o.paused=!1,P(),G.deactivateTrap(l,d);var m=u(s,"onDeactivate"),y=u(s,"onPostDeactivate"),w=u(s,"checkCanReturnFocus"),k=u(s,"delayReturnFocus"),C=u(s,"returnFocus","returnFocusOnDeactivate");m?.({trap:d});var S=function(){C&&x(V(o.nodeFocusedBeforeActivation)),y?.({trap:d})},B=function(){k&&C?we(S):S()};return C&&w?(w(V(o.nodeFocusedBeforeActivation)).then(B,B),this):(B(),this)},pause:function(i){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return o.active?(o.manuallyPaused=!1,l[l.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var s=[].concat(i).filter(Boolean);return o.containers=s.map(function(m){return typeof m=="string"?n.querySelector(m):m}),c.isolateSubtrees&&E(o.containers),o.active&&(h(),o.paused||d._setSubtreeIsolation(!0)),P(),this}},Object.defineProperties(d,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(i,s){if(o.paused===i)return this;if(o.paused=i,i){var m=u(s,"onPause"),y=u(s,"onPostPause");m?.({trap:d}),F(),d._setSubtreeIsolation(!1),P(),y?.({trap:d})}else{var w=u(s,"onUnpause"),k=u(s,"onPostUnpause");w?.({trap:d});var C=(function(){var S=he(te().m(function B(){return te().w(function(O){for(;;)switch(O.n){case 0:return h(),O.n=1,T();case 1:d._setSubtreeIsolation(!0),P(),k?.({trap:d});case 2:return O.a(2)}},B)}));return function(){return S.apply(this,arguments)}})();C()}return this}},_setSubtreeIsolation:{value:function(i){c.isolateSubtrees&&o.adjacentElements.forEach(function(s){var m;i?c.isolateSubtrees==="aria-hidden"?((s.ariaHidden==="true"||((m=s.getAttribute("aria-hidden"))===null||m===void 0?void 0:m.toLowerCase())==="true")&&o.alreadySilent.add(s),s.setAttribute("aria-hidden","true")):((s.inert||s.hasAttribute("inert"))&&o.alreadySilent.add(s),s.setAttribute("inert",!0)):o.alreadySilent.has(s)||(c.isolateSubtrees==="aria-hidden"?s.removeAttribute("aria-hidden"):s.removeAttribute("inert"))})}}}),d.updateContainerElements(t),d};function Ie(r,t={}){let a;const{immediate:n,...l}=t,c=e.shallowRef(!1),o=e.shallowRef(!1),d=p=>a&&a.activate(p),u=p=>a&&a.deactivate(p),v=()=>{a&&(a.pause(),o.value=!0)},b=()=>{a&&(a.unpause(),o.value=!1)};return e.watch(e.computed(()=>U.toArray(e.toValue(r)).map(p=>{const h=e.toValue(p);return typeof h=="string"?h:U.unrefElement(h)}).filter(ht)),p=>{if(p.length)if(!a)a=Kt(p,{...l,onActivate(h){c.value=!0,t.onActivate&&t.onActivate(h)},onDeactivate(h){c.value=!1,t.onDeactivate&&t.onDeactivate(h)}}),n&&d();else{const h=a?.active;a?.updateContainerElements(p),!h&&n&&d()}},{flush:"post"}),U.tryOnScopeDispose(()=>u()),{hasFocus:c,isPaused:o,activate:d,deactivate:u,pause:v,unpause:b}}const Xt=["visible"],Yt=["aria-labelledby"],qt={key:0,class:"sticky top-0"},Ut=["id"],Zt={key:1,class:"sticky bottom-0"},Jt=e.defineComponent({__name:"Modal",props:{title:{},titleColor:{default:"dark-3"},customClass:{default:""},visible:{type:Boolean,default:!1},showBackdrop:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},color:{default:"light-1"},backdropColor:{default:"dark-4"},placement:{default:"center"},width:{default:"small"}},emits:["open","close"],setup(r,{expose:t,emit:a}){const n=r,l=e.useSlots(),c=a,o=e.ref(),d=e.ref(),u=e.ref(n.visible),v=e.ref(!1),b=e.useId();let p=null;const{activate:h,deactivate:g}=Ie(d,{immediate:!1}),x=()=>{u.value=!u.value},V=()=>{u.value=!0},R=()=>{v.value===!0&&(u.value=!1)},I=()=>{c("open",!0)},L=()=>{c("close",!1)},X=e.computed(()=>{const E={top:25,center:50,bottom:75},{placement:F}=n;return{"--vertical-placement":(E[F]??E.center)+"%"}}),M=e.computed(()=>{const{width:E}=n,F={small:"max-w-[28rem]",medium:"max-w-[28rem] md:max-w-[36rem]",large:"max-w-[28rem] md:max-w-[56rem]"};return F[E]??F.small}),W=()=>{v.value=!0,d.value&&h()},$=()=>{v.value=!1},T=(E=!1)=>{u.value=E};return Q.observeVisibleAttr(o,T),e.watch(()=>n.visible,E=>{u.value=E}),e.watch(u,E=>{E===!0?(typeof document<"u"&&(p=document.activeElement),I()):E===!1&&(g(),p?.focus(),p=null,v.value===!0&&L())}),Q.useModalScrollLock(u),t({toggle:x,close:R,open:V}),(E,F)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(X.value),visible:u.value,ref_key:"modalRef",ref:o},[r.showBackdrop?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"fade",appear:"",tag:"div"},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("section",{key:0,onClick:R,"aria-hidden":"true",class:e.normalizeClass(["fixed inset-0 z-[100] overflow-y-auto backdrop-blur bg-opacity-70",e.unref(f.generateClass).bgColorVariant({color:r.backdropColor})])},null,2)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-down",tag:"div",onAfterEnter:W,onAfterLeave:$,appear:""},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["vertical-placement fixed z-[110] w-full px-xs",M.value])},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"dialogRef",ref:d,role:"dialog","aria-modal":"true","aria-labelledby":r.title?e.unref(b):void 0,class:e.normalizeClass([[e.unref(f.generateClass).bgColorVariant({color:r.color}),r.customClass],"relative max-h-[80vh] overflow-y-scroll overscroll-contain md:max-h-[60vh]"])},[r.showHeader?(e.openBlock(),e.createElementBlock("div",qt,[e.renderSlot(E.$slots,"header",{close:R,status:u.value},()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center justify-between border-b-2 border-b-light-4 p-xs",e.unref(f.generateClass).bgColorVariant({color:r.color})])},[r.title?(e.openBlock(),e.createElementBlock("h3",{key:0,id:e.unref(b),class:e.normalizeClass(["h3-md",e.unref(f.generateClass).textColorVariant({color:r.titleColor})])},e.toDisplayString(r.title),11,Ut)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button","aria-label":"Close",onClick:R},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512","aria-hidden":"true",class:e.normalizeClass(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75",[e.unref(f.generateClass).svgFillColorVariant({color:r.titleColor})]])},[...F[0]||(F[0]=[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))])],2)],!0)])):e.createCommentVNode("",!0),e.renderSlot(E.$slots,"body",{close:R,status:u.value},void 0,!0),l.footer?(e.openBlock(),e.createElementBlock("div",Zt,[e.renderSlot(E.$slots,"footer",{close:R,status:u.value},void 0,!0)])):e.createCommentVNode("",!0)],10,Yt)),[[e.unref(me.vClickOutside),R]])],2)):e.createCommentVNode("",!0)]),_:3})],12,Xt))}}),Qt=H(Jt,[["__scopeId","data-v-c65cb87e"]]),er=["visible"],tr=["aria-labelledby"],rr=["id"],ar={class:"sidebar-body-height"},or=e.defineComponent({__name:"Sidebar",props:{title:{},titleColor:{default:"dark-3"},customClass:{default:""},visible:{type:Boolean,default:!1},showBackdrop:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},color:{default:"light-1"},backdropColor:{default:"dark-4"},placement:{default:"left"},width:{default:300}},emits:["open","close"],setup(r,{expose:t,emit:a}){const n=r,l=e.useSlots(),c=a,o=e.ref(n.visible),d=e.ref(!1),u=e.ref(),v=e.ref(),b=e.ref(),p=e.ref(),h=e.useId();let g=null;const{activate:x,deactivate:V}=Ie(v,{immediate:!1}),R=()=>{o.value=!o.value},I=()=>{o.value=!0},L=()=>{d.value===!0&&(o.value=!1)},X=()=>{c("open",!0)},M=()=>{c("close",!1)},W=e.computed(()=>{const A=D=>D&&o.value?`${D.scrollHeight}px`:"0px";return{"--sidebar-width":`${n.width}px`,"--header-height":A(b.value),"--footer-height":A(p.value)}}),$=e.computed(()=>n.placement==="left"?"sidebar-left":"sidebar-right"),T=()=>{d.value=!0,v.value&&x()},E=()=>{d.value=!1},F=(A=!1)=>{o.value=A};return Q.observeVisibleAttr(u,F),e.watch(()=>n.visible,A=>{o.value=A}),e.watch(o,A=>{A===!0?(typeof document<"u"&&(g=document.activeElement),X()):A===!1&&(V(),g?.focus(),g=null,d.value===!0&&M())}),Q.useModalScrollLock(o),t({toggle:R,open:I,close:L}),(A,D)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(W.value),visible:o.value,ref_key:"sidebarRef",ref:u},[r.showBackdrop?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"fade",appear:"",tag:"div"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("section",{key:0,onClick:L,"aria-hidden":"true",class:e.normalizeClass(["fixed inset-0 z-[100] overflow-y-auto backdrop-blur bg-opacity-70",e.unref(f.generateClass).bgColorVariant({color:r.backdropColor})])},null,2)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:$.value,onAfterEnter:T,onAfterLeave:E,appear:""},{default:e.withCtx(()=>[o.value?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dialogRef",ref:v,role:"dialog","aria-modal":"true","aria-labelledby":r.title?e.unref(h):void 0,class:e.normalizeClass(["sidebar-body fixed inset-y-0 z-[110] h-full overflow-hidden shadow",[r.placement==="left"?"left-0":"right-0"]])},[e.createElementVNode("div",{class:e.normalizeClass(["relative h-full overflow-y-scroll overscroll-contain",[e.unref(f.generateClass).bgColorVariant({color:r.color}),r.customClass]])},[r.showHeader?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sticky top-0 z-10",ref_key:"headerRef",ref:b},[e.renderSlot(A.$slots,"header",{close:L,status:o.value},()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center justify-between p-xs",e.unref(f.generateClass).bgColorVariant({color:r.color})])},[r.placement==="right"?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":"Close",onClick:L},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512","aria-hidden":"true",class:e.normalizeClass(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75",[e.unref(f.generateClass).svgFillColorVariant({color:r.titleColor})]])},[...D[0]||(D[0]=[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))])):e.createCommentVNode("",!0),r.title?(e.openBlock(),e.createElementBlock("h3",{key:1,id:e.unref(h),class:e.normalizeClass(["h3-md",e.unref(f.generateClass).textColorVariant({color:r.titleColor})])},e.toDisplayString(r.title),11,rr)):e.createCommentVNode("",!0),r.placement==="left"?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button","aria-label":"Close",onClick:L},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512","aria-hidden":"true",class:e.normalizeClass(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75",[e.unref(f.generateClass).svgFillColorVariant({color:r.titleColor})]])},[...D[1]||(D[1]=[e.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)])],2))])):e.createCommentVNode("",!0)],2)],!0)],512)):e.createCommentVNode("",!0),e.createElementVNode("div",ar,[e.renderSlot(A.$slots,"body",{close:L,status:o.value},void 0,!0)]),l.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:"sticky bottom-0",ref_key:"footerRef",ref:p},[e.renderSlot(A.$slots,"footer",{close:L,status:o.value},void 0,!0)],512)):e.createCommentVNode("",!0)],2)],10,tr)),[[e.unref(me.vClickOutside),L]]):e.createCommentVNode("",!0)]),_:3},8,["name"])],12,er))}}),nr=H(or,[["__scopeId","data-v-77b578df"]]),De=Symbol(),lr={class:"container-hts grid grid-cols-1 grid-rows-1 transition-[max-height] duration-300"},ir=e.defineComponent({__name:"TabContainer",props:{bodyClass:{default:""},btnContainerClass:{default:""},contentContainerClass:{default:""}},setup(r,{expose:t}){e.useSlots();const a=e.ref(0),n=e.ref(0),l=e.ref("slide-next"),c=u=>{n.value=u};e.provide(De,{activeTabIdx:a,containerHeight:n,updateHeight:c});const o=u=>{a.value=u},d=e.computed(()=>({"--container-hts":`${n.value}px`}));return t({update:o}),e.watch(()=>a.value,(u,v)=>{u>v?l.value="slide-next":l.value="slide-prev"}),(u,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.bodyClass),style:e.normalizeStyle(d.value)},[e.createElementVNode("div",{class:e.normalizeClass(r.btnContainerClass),role:"tablist"},[e.renderSlot(u.$slots,"tab-button",{update:o,activeTab:a.value},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.contentContainerClass)},[e.createElementVNode("div",lr,[e.createVNode(e.Transition,{name:l.value},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("div",{key:a.value,class:"relative col-start-1 col-end-1 row-start-1 row-end-1"},[e.renderSlot(u.$slots,"tab-content",{},void 0,!0)]))]),_:3},8,["name"])])],2)],6))}}),sr=H(ir,[["__scopeId","data-v-553ab4ac"]]),cr=["id"],ur=e.defineComponent({__name:"TabContent",props:{tabNumber:{},id:{},tabClass:{default:""}},setup(r){const t=r,{activeTabIdx:a,updateHeight:n}=e.inject(De),l=e.ref(null),{height:c}=U.useElementSize(l),o=e.computed(()=>a.value===t.tabNumber?(n(c.value),!0):!1);return(d,u)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"slotRef",ref:l,id:r.id,class:e.normalizeClass([r.tabClass,"w-full"]),role:"tabpanel",tabindex:"-1"},[e.renderSlot(d.$slots,"default")],10,cr)),[[e.vShow,o.value]])}});exports.generateClass=f.generateClass;exports.AccordionGroup=Le;exports.Alert=ze;exports.Card=He;exports.CarouselContainer=We;exports.CarouselContent=Xe;exports.Collapse=Ue;exports.DropdownContainer=Ze;exports.DropdownContent=Qe;exports.HeaderHorizontal=ct;exports.HeaderVertical=pt;exports.Modal=Qt;exports.Sidebar=nr;exports.TabContainer=sr;exports.TabContent=ur;exports.default=Fe;
|
package/dist/core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".slide-prev-enter-active[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".slide-prev-enter-active[data-v-e9caba8a]{transition:all .5s linear}.slide-prev-leave-active[data-v-e9caba8a]{transition:all .5s}.slide-prev-enter-from[data-v-e9caba8a]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-e9caba8a]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-e9caba8a]{transition:all .5s linear}.slide-next-leave-active[data-v-e9caba8a]{transition:all .5s}.slide-next-enter-from[data-v-e9caba8a]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-e9caba8a]{transform:translate(-100%);opacity:0}.collapse-enter-active[data-v-6576e563],.collapse-leave-active[data-v-6576e563]{transition-property:height,opacity;transition-duration:.5s;transition-timing-function:ease}.dropup-bottom[data-v-0cb1bffb]{bottom:var(--button-height)}.dropdown-content-enter-active[data-v-0cb1bffb],.dropdown-content-leave-active[data-v-0cb1bffb]{transition:all .3s}.dropdown-content-enter-from[data-v-0cb1bffb],.dropdown-content-leave-to[data-v-0cb1bffb]{opacity:0;transform:translateY(-10px)}.hamburger__icon[data-v-b0ec6d90]:before,.hamburger__icon[data-v-b0ec6d90]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-b0ec6d90]:before{top:-.5rem}.hamburger__icon[data-v-b0ec6d90]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-b0ec6d90],.hamburger__button:hover .hamburger__icon[data-v-b0ec6d90]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-2ba87e4a]{transition:height .5s ease-in}.collapse-leave-active[data-v-2ba87e4a]{transition:height .5s ease-out}.header-desktop[data-v-91814bc1]{width:100%}@media screen and (min-width:1024px){.header-desktop[data-v-91814bc1]{width:var(--header-width)}}.slide-down-enter-active[data-v-91814bc1]{transition:transform .3s ease-in .2s,opacity .5s ease-in}.slide-down-leave-active[data-v-91814bc1]{transition:transform .5s ease-in,opacity .3s ease-in .2s}.slide-down-enter-from[data-v-91814bc1],.slide-down-leave-to[data-v-91814bc1]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-c65cb87e]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-c65cb87e],.fade-leave-active[data-v-c65cb87e]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-c65cb87e],.fade-leave-to[data-v-c65cb87e]{opacity:0}.slide-down-enter-active[data-v-c65cb87e]{animation:slide-down-c65cb87e .3s ease}.slide-down-leave-active[data-v-c65cb87e]{animation:slide-down-c65cb87e reverse .3s ease}@keyframes slide-down-c65cb87e{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-77b578df]{width:100%}.sidebar-body-height[data-v-77b578df]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-77b578df],.fade-leave-active[data-v-77b578df]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-77b578df],.fade-leave-to[data-v-77b578df]{opacity:0}.sidebar-left-enter-active[data-v-77b578df],.sidebar-left-leave-active[data-v-77b578df],.sidebar-right-enter-active[data-v-77b578df],.sidebar-right-leave-active[data-v-77b578df]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-77b578df],.sidebar-left-leave-to[data-v-77b578df]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-77b578df],.sidebar-right-leave-to[data-v-77b578df]{transform:translate(100%)}@media screen and (min-width:768px){.sidebar-body[data-v-77b578df]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-77b578df],.sidebar-left-leave-to[data-v-77b578df]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-77b578df],.sidebar-right-leave-to[data-v-77b578df]{transform:translate(var(--sidebar-width))}}.container-hts[data-v-553ab4ac]{max-height:var(--container-hts)}.slide-prev-enter-active[data-v-553ab4ac]{transition:all .5s linear}.slide-prev-leave-active[data-v-553ab4ac]{transition:all .5s}.slide-prev-enter-from[data-v-553ab4ac]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-553ab4ac]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-553ab4ac]{transition:all .5s linear}.slide-next-leave-active[data-v-553ab4ac]{transition:all .5s}.slide-next-enter-from[data-v-553ab4ac]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-553ab4ac]{transform:translate(-100%);opacity:0}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import { a as nt, p as it, b as st, c as lt, d as ct, e as ut, f as dt, h as ft, m as vt, i as bt, j as ht, k as pt, l as gt, n as mt, o as yt, q as wt, r as Ct, s as kt, t as Tt, u as St, v as xt, w as Rt, x as Et, y as Nt, z as Ot, A as Bt, B as At, C as Vt, D as It, E as Dt, F as Ft, G as Lt, H as $t, I as Pt, J as jt, K as _t, L as Gt, M as Ht, N as Mt, O as Wt, P as zt, Q as Kt, R as Xt, S as Yt, T as Ut, U as qt, V as Zt, W as Jt, X as Qt, Y as ea, Z as ta, _ as aa, $ as ra, a0 as oa, a1 as na, a2 as ia, a3 as sa, a4 as la, a5 as ca, g as A } from "./index-CaGu958U.js";
|
|
3
3
|
import { defineComponent as Y, openBlock as p, createElementBlock as y, renderSlot as V, useSlots as Z, ref as D, computed as _, watch as Q, normalizeClass as S, createElementVNode as E, createCommentVNode as O, toDisplayString as he, provide as Be, createVNode as ee, Transition as te, withCtx as J, inject as Ae, withDirectives as de, vShow as Ve, useId as Ie, toRef as ua, unref as I, onMounted as We, withKeys as da, createBlock as Se, normalizeStyle as ge, vModelCheckbox as fa, Teleport as va, shallowRef as Fe, toValue as Le } from "vue";
|
|
4
4
|
import { useWindowSize as ba, useWindowScroll as ha, useScrollLock as pa, toArray as ga, unrefElement as ma, tryOnScopeDispose as ya, useElementSize as wa } from "@vueuse/core";
|
|
5
|
-
import { p as Ca, u as ka, o as ze, a as Ke } from "./useModalScrollLock-
|
|
5
|
+
import { p as Ca, u as ka, o as ze, a as Ke } from "./useModalScrollLock-CPlcveJr.js";
|
|
6
6
|
import { g as Ta, C as Sa } from "./getGlassmorphismClass-MdsD9yII.js";
|
|
7
7
|
import { v as De } from "./index-CYEzkRix.js";
|
|
8
8
|
const Kr = (t, e) => {
|
|
@@ -135,7 +135,7 @@ const Kr = (t, e) => {
|
|
|
135
135
|
V(e.$slots, "default")
|
|
136
136
|
]));
|
|
137
137
|
}
|
|
138
|
-
}), xa = { class: "
|
|
138
|
+
}), xa = { class: "flex w-full justify-between gap-2xs" }, Ra = { class: "w-full" }, Yr = /* @__PURE__ */ Y({
|
|
139
139
|
__name: "Alert",
|
|
140
140
|
props: {
|
|
141
141
|
color: { default: "danger" },
|
|
@@ -193,7 +193,7 @@ const Kr = (t, e) => {
|
|
|
193
193
|
}
|
|
194
194
|
}), Ea = ["src", "alt"], Na = {
|
|
195
195
|
key: 2,
|
|
196
|
-
class: "px-xs pt-xs pb-2xs
|
|
196
|
+
class: "flex-1 px-xs pt-xs pb-2xs"
|
|
197
197
|
}, Oa = {
|
|
198
198
|
key: 3,
|
|
199
199
|
class: "flex-1"
|
|
@@ -264,7 +264,7 @@ const Kr = (t, e) => {
|
|
|
264
264
|
}, [
|
|
265
265
|
t.header || a.header ? V(u.$slots, "header", { key: 0 }, () => [
|
|
266
266
|
E("div", {
|
|
267
|
-
class: S([[c.value], "py-2xs
|
|
267
|
+
class: S([[c.value], "px-xs py-2xs font-bold"])
|
|
268
268
|
}, [
|
|
269
269
|
E("p", null, he(t.header), 1)
|
|
270
270
|
], 2)
|
|
@@ -286,7 +286,7 @@ const Kr = (t, e) => {
|
|
|
286
286
|
])) : O("", !0),
|
|
287
287
|
t.footer || a.footer ? V(u.$slots, "footer", { key: 4 }, () => [
|
|
288
288
|
E("div", {
|
|
289
|
-
class: S(["py-2xs
|
|
289
|
+
class: S(["px-xs py-2xs", [r.value]])
|
|
290
290
|
}, [
|
|
291
291
|
E("p", null, he(t.footer), 1)
|
|
292
292
|
], 2)
|
|
@@ -378,7 +378,7 @@ const Kr = (t, e) => {
|
|
|
378
378
|
for (const [o, n] of e)
|
|
379
379
|
a[o] = n;
|
|
380
380
|
return a;
|
|
381
|
-
}, qr = /* @__PURE__ */ re(Ba, [["__scopeId", "data-v-
|
|
381
|
+
}, qr = /* @__PURE__ */ re(Ba, [["__scopeId", "data-v-e9caba8a"]]), Aa = ["id"], Zr = /* @__PURE__ */ Y({
|
|
382
382
|
__name: "CarouselContent",
|
|
383
383
|
props: {
|
|
384
384
|
slideNumber: {},
|
|
@@ -465,7 +465,7 @@ const Kr = (t, e) => {
|
|
|
465
465
|
})
|
|
466
466
|
], 8, Va));
|
|
467
467
|
}
|
|
468
|
-
}), Jr = /* @__PURE__ */ re(Ia, [["__scopeId", "data-v-
|
|
468
|
+
}), Jr = /* @__PURE__ */ re(Ia, [["__scopeId", "data-v-6576e563"]]), Ye = /* @__PURE__ */ Symbol(), Qr = /* @__PURE__ */ Y({
|
|
469
469
|
__name: "DropdownContainer",
|
|
470
470
|
emits: ["click-outside", "toggle"],
|
|
471
471
|
setup(t, { emit: e }) {
|
|
@@ -522,7 +522,7 @@ const Kr = (t, e) => {
|
|
|
522
522
|
key: 0,
|
|
523
523
|
ref_key: "contentRef",
|
|
524
524
|
ref: a,
|
|
525
|
-
class: S(["absolute my-2xs max-w-[14rem]
|
|
525
|
+
class: S(["absolute my-2xs w-max max-w-[14rem] overflow-hidden", [u.value, t.customClass]]),
|
|
526
526
|
style: ge(r.value)
|
|
527
527
|
}, [
|
|
528
528
|
V(l.$slots, "default", { itemClick: I(c) }, void 0, !0)
|
|
@@ -531,7 +531,7 @@ const Kr = (t, e) => {
|
|
|
531
531
|
_: 3
|
|
532
532
|
}));
|
|
533
533
|
}
|
|
534
|
-
}), eo = /* @__PURE__ */ re(Da, [["__scopeId", "data-v-
|
|
534
|
+
}), eo = /* @__PURE__ */ re(Da, [["__scopeId", "data-v-0cb1bffb"]]), Fa = ["aria-label", "aria-expanded"], La = /* @__PURE__ */ Y({
|
|
535
535
|
__name: "NavDrawer",
|
|
536
536
|
props: {
|
|
537
537
|
color: { default: "dark-2" },
|
|
@@ -562,7 +562,7 @@ const Kr = (t, e) => {
|
|
|
562
562
|
A.afterBgColorVariant({ color: l })
|
|
563
563
|
].join(" ");
|
|
564
564
|
return (l, d) => (p(), y("button", {
|
|
565
|
-
class: S(["
|
|
565
|
+
class: S(["hamburger__button aspect-square rounded-md p-3xs ring-offset-2 transition-all duration-300 ease-linear outline-none hover:opacity-70 focus:opacity-70 focus:ring-4", r(t.color, t.showBorder, t.bgColor)]),
|
|
566
566
|
onClick: n,
|
|
567
567
|
"aria-label": t.toggle ? "Close" : "Open",
|
|
568
568
|
"aria-expanded": t.toggle
|
|
@@ -575,11 +575,11 @@ const Kr = (t, e) => {
|
|
|
575
575
|
[fa, c.value]
|
|
576
576
|
]),
|
|
577
577
|
E("div", {
|
|
578
|
-
class: S(["
|
|
578
|
+
class: S(["hamburger__icon relative h-[3px] w-sm transition-all duration-300 ease-linear before:h-[3px] before:w-sm after:h-[3px] after:w-sm", u(t.color)])
|
|
579
579
|
}, null, 2)
|
|
580
580
|
], 10, Fa));
|
|
581
581
|
}
|
|
582
|
-
}), Ue = /* @__PURE__ */ re(La, [["__scopeId", "data-v-
|
|
582
|
+
}), Ue = /* @__PURE__ */ re(La, [["__scopeId", "data-v-b0ec6d90"]]), $a = { class: "mx-xs flex flex-wrap items-center justify-between py-xs align-middle sm:max-w-[640px] md:mx-sm md:max-w-[768px] md:py-2xs lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px]" }, Pa = { class: "min-h-[24px]" }, ja = { class: "ml-auto" }, _a = {
|
|
583
583
|
key: 0,
|
|
584
584
|
class: "hidden lg:block"
|
|
585
585
|
}, Ga = { class: "overflow-hidden lg:hidden" }, Ha = { key: 0 }, Ma = /* @__PURE__ */ Y({
|
|
@@ -608,7 +608,9 @@ const Kr = (t, e) => {
|
|
|
608
608
|
}, h = (B) => {
|
|
609
609
|
B.style.height = getComputedStyle(B).height, B.offsetHeight, B.style.height = "0px";
|
|
610
610
|
}, g = _(() => {
|
|
611
|
-
const { bgColor: B, sticky: $ } = o, G = [
|
|
611
|
+
const { bgColor: B, sticky: $ } = o, G = [
|
|
612
|
+
A.bgColorVariant({ color: B })
|
|
613
|
+
];
|
|
612
614
|
return $ === "all" ? (G.push("sticky top-0"), G.join(" ")) : $ === "tablet" ? (G.push("md:sticky top-0"), G.join(" ")) : ($ === "pc" && G.push("lg:sticky top-0"), G.join(" "));
|
|
613
615
|
}), L = _(() => {
|
|
614
616
|
const { fadeInOnScroll: B, scrollDistance: $ } = o;
|
|
@@ -647,7 +649,7 @@ const Kr = (t, e) => {
|
|
|
647
649
|
default: J(() => [
|
|
648
650
|
c.value ? (p(), y("div", {
|
|
649
651
|
key: 0,
|
|
650
|
-
class: S(["my-2xs
|
|
652
|
+
class: S(["mx-xs my-2xs overflow-hidden rounded-md bg-opacity-80", I(A).bgColorVariant({ color: t.mobileMenuBgColor })])
|
|
651
653
|
}, [
|
|
652
654
|
n["mobile-content"] ? (p(), y("div", Ha, [
|
|
653
655
|
V(B.$slots, "mobile-content", { headerClose: l }, void 0, !0)
|
|
@@ -659,9 +661,9 @@ const Kr = (t, e) => {
|
|
|
659
661
|
])
|
|
660
662
|
], 2));
|
|
661
663
|
}
|
|
662
|
-
}), to = /* @__PURE__ */ re(Ma, [["__scopeId", "data-v-
|
|
664
|
+
}), to = /* @__PURE__ */ re(Ma, [["__scopeId", "data-v-2ba87e4a"]]), Wa = { class: "flex h-full flex-col justify-between" }, za = { key: 0 }, Ka = { class: "relative z-40 block lg:hidden" }, Xa = {
|
|
663
665
|
key: 0,
|
|
664
|
-
class: "
|
|
666
|
+
class: "fixed top-0 right-0 z-50 mt-xs mr-xs block lg:hidden"
|
|
665
667
|
}, Ya = {
|
|
666
668
|
key: 0,
|
|
667
669
|
class: "h-full"
|
|
@@ -692,7 +694,7 @@ const Kr = (t, e) => {
|
|
|
692
694
|
style: ge(d.value)
|
|
693
695
|
}, [
|
|
694
696
|
E("nav", {
|
|
695
|
-
class: S(["
|
|
697
|
+
class: S(["header-desktop hidden overflow-y-scroll overscroll-contain py-sm lg:sticky lg:top-0 lg:left-0 lg:block lg:h-[100vh]", [I(A).bgColorVariant({ color: t.bgColor })]])
|
|
696
698
|
}, [
|
|
697
699
|
E("div", Wa, [
|
|
698
700
|
E("div", null, [
|
|
@@ -722,7 +724,7 @@ const Kr = (t, e) => {
|
|
|
722
724
|
default: J(() => [
|
|
723
725
|
r.value ? (p(), y("nav", {
|
|
724
726
|
key: 0,
|
|
725
|
-
class: S(["
|
|
727
|
+
class: S(["fixed inset-0 overflow-y-scroll overscroll-contain px-sm py-lg", I(A).bgColorVariant({ color: t.bgColor })])
|
|
726
728
|
}, [
|
|
727
729
|
n["mobile-content"] ? (p(), y("div", Ya, [
|
|
728
730
|
V(v.$slots, "mobile-content", { headerClose: l }, void 0, !0)
|
|
@@ -735,7 +737,7 @@ const Kr = (t, e) => {
|
|
|
735
737
|
]))
|
|
736
738
|
], 4));
|
|
737
739
|
}
|
|
738
|
-
}), ao = /* @__PURE__ */ re(Ua, [["__scopeId", "data-v-
|
|
740
|
+
}), ao = /* @__PURE__ */ re(Ua, [["__scopeId", "data-v-91814bc1"]]);
|
|
739
741
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
740
742
|
const qa = (t) => t != null;
|
|
741
743
|
var qe = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], ye = /* @__PURE__ */ qe.join(","), Ze = typeof Element > "u", ue = Ze ? function() {
|
|
@@ -1834,7 +1836,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
1834
1836
|
key: 0,
|
|
1835
1837
|
onClick: $,
|
|
1836
1838
|
"aria-hidden": "true",
|
|
1837
|
-
class: S(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70
|
|
1839
|
+
class: S(["fixed inset-0 z-[100] overflow-y-auto backdrop-blur bg-opacity-70", I(A).bgColorVariant({ color: t.backdropColor })])
|
|
1838
1840
|
}, null, 2)) : O("", !0)
|
|
1839
1841
|
]),
|
|
1840
1842
|
_: 1
|
|
@@ -1849,7 +1851,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
1849
1851
|
default: J(() => [
|
|
1850
1852
|
l.value ? (p(), y("div", {
|
|
1851
1853
|
key: 0,
|
|
1852
|
-
class: S(["vertical-placement
|
|
1854
|
+
class: S(["vertical-placement fixed z-[110] w-full px-xs", oe.value])
|
|
1853
1855
|
}, [
|
|
1854
1856
|
de((p(), y("div", {
|
|
1855
1857
|
ref_key: "dialogRef",
|
|
@@ -1865,7 +1867,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
1865
1867
|
status: l.value
|
|
1866
1868
|
}, () => [
|
|
1867
1869
|
E("div", {
|
|
1868
|
-
class: S(["
|
|
1870
|
+
class: S(["flex items-center justify-between border-b-2 border-b-light-4 p-xs", I(A).bgColorVariant({ color: t.color })])
|
|
1869
1871
|
}, [
|
|
1870
1872
|
t.title ? (p(), y("h3", {
|
|
1871
1873
|
key: 0,
|
|
@@ -1882,7 +1884,9 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
1882
1884
|
height: "1em",
|
|
1883
1885
|
viewBox: "0 0 384 512",
|
|
1884
1886
|
"aria-hidden": "true",
|
|
1885
|
-
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
1887
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
1888
|
+
I(A).svgFillColorVariant({ color: t.titleColor })
|
|
1889
|
+
]])
|
|
1886
1890
|
}, [...z[0] || (z[0] = [
|
|
1887
1891
|
E("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
1888
1892
|
])], 2))
|
|
@@ -1909,7 +1913,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
1909
1913
|
})
|
|
1910
1914
|
], 12, Rr));
|
|
1911
1915
|
}
|
|
1912
|
-
}), ro = /* @__PURE__ */ re(Ar, [["__scopeId", "data-v-
|
|
1916
|
+
}), ro = /* @__PURE__ */ re(Ar, [["__scopeId", "data-v-c65cb87e"]]), Vr = ["visible"], Ir = ["aria-labelledby"], Dr = ["id"], Fr = { class: "sidebar-body-height" }, Lr = /* @__PURE__ */ Y({
|
|
1913
1917
|
__name: "Sidebar",
|
|
1914
1918
|
props: {
|
|
1915
1919
|
title: {},
|
|
@@ -1982,7 +1986,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
1982
1986
|
key: 0,
|
|
1983
1987
|
onClick: M,
|
|
1984
1988
|
"aria-hidden": "true",
|
|
1985
|
-
class: S(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70
|
|
1989
|
+
class: S(["fixed inset-0 z-[100] overflow-y-auto backdrop-blur bg-opacity-70", I(A).bgColorVariant({ color: t.backdropColor })])
|
|
1986
1990
|
}, null, 2)) : O("", !0)
|
|
1987
1991
|
]),
|
|
1988
1992
|
_: 1
|
|
@@ -2017,7 +2021,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
2017
2021
|
status: r.value
|
|
2018
2022
|
}, () => [
|
|
2019
2023
|
E("div", {
|
|
2020
|
-
class: S(["
|
|
2024
|
+
class: S(["flex items-center justify-between p-xs", I(A).bgColorVariant({ color: t.color })])
|
|
2021
2025
|
}, [
|
|
2022
2026
|
t.placement === "right" ? (p(), y("button", {
|
|
2023
2027
|
key: 0,
|
|
@@ -2030,7 +2034,9 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
2030
2034
|
height: "1em",
|
|
2031
2035
|
viewBox: "0 0 384 512",
|
|
2032
2036
|
"aria-hidden": "true",
|
|
2033
|
-
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
2037
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
2038
|
+
I(A).svgFillColorVariant({ color: t.titleColor })
|
|
2039
|
+
]])
|
|
2034
2040
|
}, [...H[0] || (H[0] = [
|
|
2035
2041
|
E("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
2036
2042
|
])], 2))
|
|
@@ -2051,7 +2057,9 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
2051
2057
|
height: "1em",
|
|
2052
2058
|
viewBox: "0 0 384 512",
|
|
2053
2059
|
"aria-hidden": "true",
|
|
2054
|
-
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
2060
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
2061
|
+
I(A).svgFillColorVariant({ color: t.titleColor })
|
|
2062
|
+
]])
|
|
2055
2063
|
}, [...H[1] || (H[1] = [
|
|
2056
2064
|
E("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
2057
2065
|
])], 2))
|
|
@@ -2085,7 +2093,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
2085
2093
|
}, 8, ["name"])
|
|
2086
2094
|
], 12, Vr));
|
|
2087
2095
|
}
|
|
2088
|
-
}), oo = /* @__PURE__ */ re(Lr, [["__scopeId", "data-v-
|
|
2096
|
+
}), oo = /* @__PURE__ */ re(Lr, [["__scopeId", "data-v-77b578df"]]), ot = /* @__PURE__ */ Symbol(), $r = { class: "container-hts grid grid-cols-1 grid-rows-1 transition-[max-height] duration-300" }, Pr = /* @__PURE__ */ Y({
|
|
2089
2097
|
__name: "TabContainer",
|
|
2090
2098
|
props: {
|
|
2091
2099
|
bodyClass: { default: "" },
|
|
@@ -2133,7 +2141,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
2133
2141
|
default: J(() => [
|
|
2134
2142
|
(p(), y("div", {
|
|
2135
2143
|
key: a.value,
|
|
2136
|
-
class: "col-start-1 col-end-1 row-start-1 row-end-1
|
|
2144
|
+
class: "relative col-start-1 col-end-1 row-start-1 row-end-1"
|
|
2137
2145
|
}, [
|
|
2138
2146
|
V(l.$slots, "tab-content", {}, void 0, !0)
|
|
2139
2147
|
]))
|
|
@@ -2144,7 +2152,7 @@ const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
|
2144
2152
|
], 2)
|
|
2145
2153
|
], 6));
|
|
2146
2154
|
}
|
|
2147
|
-
}), no = /* @__PURE__ */ re(Pr, [["__scopeId", "data-v-
|
|
2155
|
+
}), no = /* @__PURE__ */ re(Pr, [["__scopeId", "data-v-553ab4ac"]]), jr = ["id"], io = /* @__PURE__ */ Y({
|
|
2148
2156
|
__name: "TabContent",
|
|
2149
2157
|
props: {
|
|
2150
2158
|
tabNumber: {},
|
package/dist/mcl-theme-v4.css
CHANGED
|
@@ -42,9 +42,13 @@ const m = (e) => e.getAttribute("visible") === "true", A = (e) => e.type === "at
|
|
|
42
42
|
}
|
|
43
43
|
}, M = (e) => {
|
|
44
44
|
const o = d(document);
|
|
45
|
-
a(
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
a(
|
|
46
|
+
e,
|
|
47
|
+
(s) => {
|
|
48
|
+
o.value = s;
|
|
49
|
+
},
|
|
50
|
+
{ immediate: !0 }
|
|
51
|
+
);
|
|
48
52
|
};
|
|
49
53
|
export {
|
|
50
54
|
M as a,
|
package/package.json
CHANGED