@shohojdhara/atomix 0.1.28 → 0.1.29
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/css/min/index.js +2 -0
- package/css.d.ts +14 -0
- package/dist/index.esm.js +104 -72
- package/dist/index.esm.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +38 -9
- package/styles.js +2 -0
- package/dist/index.css +0 -15
- package/dist/index.js +0 -12492
- package/dist/index.js.map +0 -1
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useState as i,useRef as r,useEffect as o,useId as s,Children as l,isValidElement as c,cloneElement as d,forwardRef as u,useCallback as m,useMemo as h,useImperativeHandle as p,createContext as g}from"react";import*as S from"phosphor-react";import{createPortal as _}from"react-dom";const v={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},E={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},L={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},b={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},f={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh"}},C={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},N={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},T={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},A={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},y={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},O={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},I={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},R={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},w={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},$={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},D={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},k={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},x={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},M={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},P={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},B={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},z={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},F={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},G={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},U={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},V={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",ROW:"c-card--row",FLAT:"c-card--flat",ACTIVE:"is-active",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable"},DEFAULTS:{HOVER:!0}},Y={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},H={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},X={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},j={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},W={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},q={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},K={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},Z={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}};function J(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,s]=i(t.defaultOpen||!1),l=n?t.isOpen:a,[c,d]=i(l?"auto":"0px"),u=r(null),m=r(null),h=()=>{if(m.current&&u.current){const e=l?`${m.current.clientHeight}px`:"0px";u.current.style.setProperty(v.CSS_VARS.PANEL_HEIGHT,e),d(e)}};o((()=>{h()}),[l]),o((()=>{const e=()=>{l&&h()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l]);return{state:{isOpen:l,panelHeight:c},toggle:()=>{t.disabled||(n?t.onOpenChange&&t.onOpenChange(!l):s((e=>!e)))},updatePanelHeight:h,panelRef:u,contentRef:m,generateClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return`c-accordion ${l?v.CLASSES.IS_OPEN:""} ${t.disabled?v.CLASSES.IS_DISABLED:""} ${e}`.trim()},generateHeaderClassNames:()=>`c-accordion__header ${"left"===t.iconPosition?"c-accordion__header--icon-left":""}`.trim()}}const Q=n=>{let{title:a,children:i,defaultOpen:r=!1,isOpen:o,onOpenChange:l,disabled:c=!1,iconPosition:d="right",icon:u,className:m=""}=n;const h=s(),p=`accordion-header-${h}`,g=`accordion-panel-${h}`,{state:S,toggle:_,updatePanelHeight:E,panelRef:L,contentRef:b,generateClassNames:f,generateHeaderClassNames:C}=J({defaultOpen:r,disabled:c,iconPosition:d,isOpen:o,onOpenChange:l}),N=e("i",{className:"c-accordion__icon",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("polyline",{points:"6 9 12 15 18 9"})})});return t("div",{className:f(m),children:[t("button",{id:p,className:C(),onClick:_,"aria-expanded":S.isOpen,"aria-controls":g,disabled:c,type:"button",children:[e("span",{className:"c-accordion__title",children:a}),u||N]}),e("div",{id:g,className:v.SELECTORS.PANEL.replace(".",""),ref:L,role:"region","aria-labelledby":p,children:e("div",{className:v.SELECTORS.BODY.replace(".",""),ref:b,children:i})})]})};Q.displayName="Accordion";const ee={xs:16,sm:20,md:24,lg:32,xl:40},te=t=>{let{name:n,size:a="md",weight:i="regular",color:r,className:o="",alt:s}=t;const l=S[n];if(!l)return null;return e("span",{className:`c-icon c-icon--${a} ${o}`,"aria-hidden":!s,title:s,children:e(l,{size:"string"==typeof a?ee[a]||24:a,weight:i,color:r,"aria-label":s})})};te.displayName="Icon";const ne=t=>{let{src:n,alt:a="Avatar",initials:r,icon:o,size:s="md",circle:l=!1,className:c="",disabled:d=!1,onClick:u}=t;const[m,h]=i(!1),p=[X.CLASSES.BASE,"md"!==s&&`c-avatar--${s}`,l&&X.CLASSES.CIRCLE,d&&"is-disabled",c].filter(Boolean).join(" ");return e("div",{className:p,onClick:u?e=>{!d&&u&&u(e)}:void 0,role:u?"button":void 0,tabIndex:u&&!d?0:void 0,"aria-disabled":d||void 0,children:n&&!m?e("img",{src:n,alt:a,className:"c-avatar__image",onError:()=>{h(!0)}}):e("span",r?{className:"c-avatar__initials",children:r}:o?{className:"c-avatar__icon",children:o}:{className:"c-avatar__icon",children:e(te,{name:"User",size:"xs"===s?"xs":"sm"===s?"sm":"md"})})})};ne.displayName="Avatar";const ae=n=>{let{children:a,max:i,stacked:r=!1,className:o="",moreText:s}=n;const u=[j.CLASSES.BASE,r&&j.CLASSES.STACKED,o].filter(Boolean).join(" "),m=l.toArray(a).filter((e=>c(e)&&e.type===ne)),h=void 0!==i&&m.length>i,p=h?m.slice(0,i):m,g=m.length-(i||0),S=c(m[0])?m[0].props:null,_=(null==S?void 0:S.size)||"md",v=(null==S?void 0:S.circle)||!1,E=[X.CLASSES.BASE,j.CLASSES.MORE,"md"!==_&&`c-avatar--${_}`,v&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:u,children:[p.map(((e,t)=>c(e)?d(e,{key:t,...e.props}):null)),h&&e("div",{className:E,children:s||`+${g}`})]})};function ie(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:i=t.disabled,className:r=""}=e;return`${E.BASE_CLASS} ${n?`${E.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${E.SIZE_PREFIX}${a}`} ${i?"c-badge--disabled":""} ${r}`.trim()}}}ae.displayName="AvatarGroup";const re=n=>{let{label:a,variant:i="primary",size:r="md",disabled:o=!1,icon:s,className:l=""}=n;const{generateBadgeClass:c}=ie({variant:i,size:r,disabled:o}),d=c({variant:i,size:r,disabled:o,className:l});return t("span",{className:d,"aria-disabled":o,children:[s&&e("span",{className:E.ICON_CLASS,children:s}),e("span",{children:a})]})};re.displayName="Badge";const oe=a=>{let{items:i,divider:r,className:o="",ariaLabel:s="Breadcrumb",LinkComponent:l}=a;const c=[b.CLASSES.BASE,o].filter(Boolean).join(" ");return e("nav",{"aria-label":s,children:e("ol",{className:c,children:i.map(((a,r)=>{const o=r===i.length-1,s=[b.CLASSES.ITEM,a.active||o?b.CLASSES.ACTIVE:""].filter(Boolean).join(" "),c=t(n,{children:[a.icon&&e("span",{className:"c-breadcrumb__icon",children:a.icon}),a.label]}),d={href:a.href,className:b.CLASSES.LINK,onClick:a.onClick};return e("li",{className:s,children:a.href&&!a.active?e(l||"a",{...d,children:c}):e("span",{className:b.CLASSES.LINK,children:c})},r)}))})})};function se(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:i=t.disabled,rounded:r=t.rounded,iconOnly:o=!1,className:s=""}=e;return`c-btn c-btn--${n} ${"md"===a?"":`c-btn--${a}`} ${o?"c-btn--icon":""} ${r?"c-btn--rounded":""} ${i?"c-btn--disabled":""} ${s}`.trim()},handleClick:e=>()=>{!t.disabled&&e&&e()}}}oe.displayName="Breadcrumb";const le=u(((n,a)=>{let{label:i,children:r,onClick:o,variant:s="primary",size:l="md",disabled:c=!1,icon:d,iconOnly:u=!1,rounded:m=!1,className:h="",as:p="button",...g}=n;const{generateButtonClass:S,handleClick:_}=se({variant:s,size:l,disabled:c,rounded:m}),v={ref:a,className:S({variant:s,size:l,disabled:c,rounded:m,iconOnly:u,className:h}),onClick:_(o),disabled:c,"aria-disabled":c,...g};return t(p,{...v,children:[d&&e("span",{className:"button__icon",children:d}),!u&&e("span",{className:"button__label",children:i||r})]})}));le.displayName="Button";var ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ue=function(e){try{return!!e()}catch(e){return!0}},me=!ue((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),he=me,pe=Function.prototype,ge=pe.call,Se=he&&pe.bind.bind(ge,ge),_e=he?Se:function(e){return function(){return ge.apply(e,arguments)}},ve=_e({}.isPrototypeOf),Ee=function(e){return e&&e.Math===Math&&e},Le=Ee("object"==typeof globalThis&&globalThis)||Ee("object"==typeof window&&window)||Ee("object"==typeof self&&self)||Ee("object"==typeof ce&&ce)||Ee("object"==typeof ce&&ce)||function(){return this}()||Function("return this")(),be=me,fe=Function.prototype,Ce=fe.apply,Ne=fe.call,Te="object"==typeof Reflect&&Reflect.apply||(be?Ne.bind(Ce):function(){return Ne.apply(Ce,arguments)}),Ae=_e,ye=Ae({}.toString),Oe=Ae("".slice),Ie=function(e){return Oe(ye(e),8,-1)},Re=Ie,we=_e,$e=function(e){if("Function"===Re(e))return we(e)},De="object"==typeof document&&document.all,ke=void 0===De&&void 0!==De?function(e){return"function"==typeof e||e===De}:function(e){return"function"==typeof e},xe={},Me=!ue((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Pe=me,Be=Function.prototype.call,ze=Pe?Be.bind(Be):function(){return Be.apply(Be,arguments)},Fe={},Ge={}.propertyIsEnumerable,Ue=Object.getOwnPropertyDescriptor,Ve=Ue&&!Ge.call({1:2},1);Fe.f=Ve?function(e){var t=Ue(this,e);return!!t&&t.enumerable}:Ge;var Ye,He,Xe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},je=ue,We=Ie,qe=Object,Ke=_e("".split),Ze=je((function(){return!qe("z").propertyIsEnumerable(0)}))?function(e){return"String"===We(e)?Ke(e,""):qe(e)}:qe,Je=function(e){return null==e},Qe=Je,et=TypeError,tt=function(e){if(Qe(e))throw new et("Can't call method on "+e);return e},nt=Ze,at=tt,it=function(e){return nt(at(e))},rt=ke,ot=function(e){return"object"==typeof e?null!==e:rt(e)},st={},lt=st,ct=Le,dt=ke,ut=function(e){return dt(e)?e:void 0},mt=Le.navigator,ht=mt&&mt.userAgent,pt=Le,gt=ht?String(ht):"",St=pt.process,_t=pt.Deno,vt=St&&St.versions||_t&&_t.version,Et=vt&&vt.v8;Et&&(He=(Ye=Et.split("."))[0]>0&&Ye[0]<4?1:+(Ye[0]+Ye[1])),!He&>&&(!(Ye=gt.match(/Edge\/(\d+)/))||Ye[1]>=74)&&(Ye=gt.match(/Chrome\/(\d+)/))&&(He=+Ye[1]);var Lt=He,bt=ue,ft=Le.String,Ct=!!Object.getOwnPropertySymbols&&!bt((function(){var e=Symbol("symbol detection");return!ft(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Lt&&Lt<41})),Nt=Ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Tt=function(e,t){return arguments.length<2?ut(lt[e])||ut(ct[e]):lt[e]&<[e][t]||ct[e]&&ct[e][t]},At=ke,yt=ve,Ot=Object,It=Nt?function(e){return"symbol"==typeof e}:function(e){var t=Tt("Symbol");return At(t)&&yt(t.prototype,Ot(e))},Rt=String,wt=ke,$t=function(e){try{return Rt(e)}catch(e){return"Object"}},Dt=TypeError,kt=function(e){if(wt(e))return e;throw new Dt($t(e)+" is not a function")},xt=kt,Mt=Je,Pt=ze,Bt=ke,zt=ot,Ft=TypeError,Gt={exports:{}},Ut=Le,Vt=Object.defineProperty,Yt=Le,Ht=function(e,t){try{Vt(Ut,e,{value:t,configurable:!0,writable:!0})}catch(n){Ut[e]=t}return t},Xt="__core-js_shared__",jt=Gt.exports=Yt[Xt]||Ht(Xt,{});(jt.versions||(jt.versions=[])).push({version:"3.43.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Wt=Gt.exports,qt=tt,Kt=Object,Zt=function(e){return Kt(qt(e))},Jt=_e({}.hasOwnProperty),Qt=Object.hasOwn||function(e,t){return Jt(Zt(e),t)},en=_e,tn=0,nn=Math.random(),an=en(1.1.toString),rn=function(e,t){return Wt[e]||(Wt[e]=t||{})},on=Qt,sn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+an(++tn+nn,36)},ln=Ct,cn=Nt,dn=Le.Symbol,un=rn("wks"),mn=cn?dn.for||dn:dn&&dn.withoutSetter||sn,hn=function(e){return on(un,e)||(un[e]=ln&&on(dn,e)?dn[e]:mn("Symbol."+e)),un[e]},pn=ze,gn=ot,Sn=It,_n=function(e,t){var n=e[t];return Mt(n)?void 0:xt(n)},vn=function(e,t){var n,a;if("string"===t&&Bt(n=e.toString)&&!zt(a=Pt(n,e)))return a;if(Bt(n=e.valueOf)&&!zt(a=Pt(n,e)))return a;if("string"!==t&&Bt(n=e.toString)&&!zt(a=Pt(n,e)))return a;throw new Ft("Can't convert object to primitive value")},En=TypeError,Ln=hn("toPrimitive"),bn=function(e,t){if(!gn(e)||Sn(e))return e;var n,a=_n(e,Ln);if(a){if(void 0===t&&(t="default"),n=pn(a,e,t),!gn(n)||Sn(n))return n;throw new En("Can't convert object to primitive value")}return void 0===t&&(t="number"),vn(e,t)},fn=It,Cn=function(e){var t=bn(e,"string");return fn(t)?t:t+""},Nn=ot,Tn=Le.document,An=Nn(Tn)&&Nn(Tn.createElement),yn=function(e){return An?Tn.createElement(e):{}},On=!Me&&!ue((function(){return 7!==Object.defineProperty(yn("div"),"a",{get:function(){return 7}}).a})),In=Me,Rn=ze,wn=Fe,$n=Xe,Dn=it,kn=Cn,xn=Qt,Mn=On,Pn=Object.getOwnPropertyDescriptor;xe.f=In?Pn:function(e,t){if(e=Dn(e),t=kn(t),Mn)try{return Pn(e,t)}catch(e){}if(xn(e,t))return $n(!Rn(wn.f,e,t),e[t])};var Bn=ue,zn=ke,Fn=/#|\.prototype\./,Gn=function(e,t){var n=Vn[Un(e)];return n===Hn||n!==Yn&&(zn(t)?Bn(t):!!t)},Un=Gn.normalize=function(e){return String(e).replace(Fn,".").toLowerCase()},Vn=Gn.data={},Yn=Gn.NATIVE="N",Hn=Gn.POLYFILL="P",Xn=Gn,jn=kt,Wn=me,qn=$e($e.bind),Kn={},Zn=Me&&ue((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jn=ot,Qn=String,ea=TypeError,ta=Me,na=On,aa=Zn,ia=function(e){if(Jn(e))return e;throw new ea(Qn(e)+" is not an object")},ra=Cn,oa=TypeError,sa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,ca="enumerable",da="configurable",ua="writable";Kn.f=ta?aa?function(e,t,n){if(ia(e),t=ra(t),ia(n),"function"==typeof e&&"prototype"===t&&"value"in n&&ua in n&&!n[ua]){var a=la(e,t);a&&a[ua]&&(e[t]=n.value,n={configurable:da in n?n[da]:a[da],enumerable:ca in n?n[ca]:a[ca],writable:!1})}return sa(e,t,n)}:sa:function(e,t,n){if(ia(e),t=ra(t),ia(n),na)try{return sa(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new oa("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ma,ha=Kn,pa=Xe,ga=Me?function(e,t,n){return ha.f(e,t,pa(1,n))}:function(e,t,n){return e[t]=n,e},Sa=Le,_a=Te,va=$e,Ea=ke,La=xe.f,ba=Xn,fa=st,Ca=function(e,t){return jn(e),void 0===t?e:Wn?qn(e,t):function(){return e.apply(t,arguments)}},Na=ga,Ta=Qt,Aa=function(e){var t=function(n,a,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,a)}return new e(n,a,i)}return _a(e,this,arguments)};return t.prototype=e.prototype,t},ya=function(e,t){var n,a,i,r,o,s,l,c,d,u=e.target,m=e.global,h=e.stat,p=e.proto,g=m?Sa:h?Sa[u]:Sa[u]&&Sa[u].prototype,S=m?fa:fa[u]||Na(fa,u,{})[u],_=S.prototype;for(r in t)a=!(n=ba(m?r:u+(h?".":"#")+r,e.forced))&&g&&Ta(g,r),s=S[r],a&&(l=e.dontCallGetSet?(d=La(g,r))&&d.value:g[r]),o=a&&l?l:t[r],(n||p||typeof s!=typeof o)&&(c=e.bind&&a?Ca(o,Sa):e.wrap&&a?Aa(o):p&&Ea(o)?va(o):o,(e.sham||o&&o.sham||s&&s.sham)&&Na(c,"sham",!0),Na(S,r,c),p&&(Ta(fa,i=u+"Prototype")||Na(fa,i,{}),Na(fa[i],r,o),e.real&&_&&(n||!_[r])&&Na(_,r,o)))},Oa=Math.ceil,Ia=Math.floor,Ra=Math.trunc||function(e){var t=+e;return(t>0?Ia:Oa)(t)},wa=function(e){var t=+e;return t!=t||0===t?0:Ra(t)},$a=wa,Da=Math.max,ka=Math.min,xa=wa,Ma=Math.min,Pa=function(e){var t=xa(e);return t>0?Ma(t,9007199254740991):0},Ba=it,za=function(e,t){var n=$a(e);return n<0?Da(n+t,0):ka(n,t)},Fa=function(e){return Pa(e.length)},Ga={includes:(ma=!0,function(e,t,n){var a=Ba(e),i=Fa(a);if(0===i)return!ma&&-1;var r,o=za(n,i);if(ma&&t!=t){for(;i>o;)if((r=a[o++])!=r)return!0}else for(;i>o;o++)if((ma||o in a)&&a[o]===t)return ma||o||0;return!ma&&-1})},Ua=Ga.includes;ya({target:"Array",proto:!0,forced:ue((function(){return!Array(1).includes()}))},{includes:function(e){return Ua(this,e,arguments.length>1?arguments[1]:void 0)}});var Va=Le,Ya=st,Ha=function(e,t){var n=Ya[e+"Prototype"],a=n&&n[t];if(a)return a;var i=Va[e],r=i&&i.prototype;return r&&r[t]},Xa=Ha("Array","includes"),ja=ot,Wa=Ie,qa=hn("match"),Ka=function(e){var t;return ja(e)&&(void 0!==(t=e[qa])?!!t:"RegExp"===Wa(e))},Za=TypeError,Ja={};Ja[hn("toStringTag")]="z";var Qa="[object z]"===String(Ja),ei=ke,ti=Ie,ni=hn("toStringTag"),ai=Object,ii="Arguments"===ti(function(){return arguments}()),ri=Qa?ti:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ai(e),ni))?n:ii?ti(t):"Object"===(a=ti(t))&&ei(t.callee)?"Arguments":a},oi=String,si=hn("match"),li=ya,ci=function(e){if(Ka(e))throw new Za("The method doesn't accept regular expressions");return e},di=tt,ui=function(e){if("Symbol"===ri(e))throw new TypeError("Cannot convert a Symbol value to a string");return oi(e)},mi=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[si]=!1,"/./"[e](t)}catch(e){}}return!1},hi=_e("".indexOf);li({target:"String",proto:!0,forced:!mi("includes")},{includes:function(e){return!!~hi(ui(di(this)),ui(ci(e)),arguments.length>1?arguments[1]:void 0)}});var pi=Ha("String","includes"),gi=ve,Si=Xa,_i=pi,vi=Array.prototype,Ei=String.prototype,Li=de((function(e){var t=e.includes;return e===vi||gi(vi,e)&&t===vi.includes?Si:"string"==typeof e||e===Ei||gi(Ei,e)&&t===Ei.includes?_i:t}));const bi=n=>{let{title:a,children:i,icon:r,variant:o="primary",onClose:s,actions:l,oneLine:c=!1,toast:d=!1,className:u,...m}=n;const{generateCalloutClass:h,handleClose:p}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:n=t.variant,oneLine:a=t.oneLine,toast:i=t.toast,className:r=""}=e;return`c-callout ${n?`c-callout--${n}`:""} ${a?"c-callout--oneline":""} ${i?"c-callout--toast":""} ${r}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:o,oneLine:c,toast:d,className:u});return t("div",{className:h({variant:o,oneLine:c,toast:d,className:u}),...(()=>{var e,t;const n={role:"region"};return d?(n.role="alert",n["aria-live"]="polite"):Li(e=["warning","error"]).call(e,o)?(n.role="alert",n["aria-live"]="assertive"):Li(t=["info","success"]).call(t,o)&&(n.role="status",n["aria-live"]="polite"),n})(),...m,children:[t("div",{className:"c-callout__content",children:[r&&e("div",{className:"c-callout__icon",children:r}),t("div",{className:"c-callout__message",children:[a&&e("div",{className:"c-callout__title",children:a}),i&&e("div",{className:"c-callout__text",children:i})]})]}),l&&e("div",{className:"c-callout__actions",children:l}),s&&e("button",{className:"c-callout__close-btn",onClick:p(s),"aria-label":"Close",children:e(te,{name:"X",size:"md"})})]})};bi.displayName="Callout";const fi=u(((n,a)=>{let{header:i,image:r,imageAlt:o="",title:s,text:l,actions:c,icon:d,footer:u,row:m=!1,flat:h=!1,active:p=!1,className:g="",children:S,onClick:_,...v}=n;const E=[V.CLASSES.BASE,m?V.CLASSES.ROW:"",h?V.CLASSES.FLAT:"",p?V.CLASSES.ACTIVE:"",g].filter(Boolean).join(" ");return t("div",{ref:a,className:E,onClick:_,...v,children:[(r||d||i)&&t("div",{className:V.SELECTORS.HEADER.substring(1),children:[i,r&&e("img",{src:r,alt:o,className:V.SELECTORS.IMAGE.substring(1)}),d&&e("div",{className:V.SELECTORS.ICON.substring(1),children:d})]}),t("div",{className:V.SELECTORS.BODY.substring(1),children:[s&&e("h3",{className:V.SELECTORS.TITLE.substring(1),children:s}),l&&e("p",{className:V.SELECTORS.TEXT.substring(1),children:l}),S]}),c&&e("div",{className:V.SELECTORS.ACTIONS.substring(1),children:c}),u&&e("div",{className:V.SELECTORS.FOOTER.substring(1),children:u})]})}));fi.displayName="Card";const Ci="c-checkbox",Ni="is-error",Ti="is-valid",Ai="is-disabled",yi="c-checkbox--mixed";function Oi(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},n=r(null);o((()=>{n.current&&(n.current.indeterminate=Boolean(t.indeterminate))}),[t.indeterminate]);return{defaultProps:t,generateCheckboxClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:i=t.valid,indeterminate:r=t.indeterminate,className:o=""}=e;let s="";a?s=Ni:i&&(s=Ti);return`${Ci} ${s} ${n?Ai:""} ${r?yi:""} ${o}`.trim()},checkboxRef:n}}const Ii=n=>{let{label:a,checked:i=!1,onChange:r,className:o="",disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:m=!1,valid:h=!1,indeterminate:p=!1,ariaLabel:g,ariaDescribedBy:S}=n;const{generateCheckboxClass:_,checkboxRef:v}=Oi({indeterminate:p,disabled:s,invalid:m,valid:h}),E=_({className:o,disabled:s,invalid:m,valid:h,indeterminate:p});return t("div",{className:E,children:[e("input",{ref:v,type:"checkbox",className:"c-checkbox__input",checked:i,onChange:r,disabled:s,required:l,id:c,name:d,value:u,"aria-label":a?void 0:g,"aria-describedby":S,"aria-invalid":m}),a&&e("label",{className:"c-checkbox__label",htmlFor:c,children:a})]})};Ii.displayName="Checkbox";const Ri=t=>{let{className:n=""}=t;const[a,r]=i("light");o((()=>{const e=localStorage.getItem("atomix-color-mode");"light"===e||"dark"===e?r(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&r("dark")}),[]),o((()=>{document.documentElement.setAttribute("data-atomix-theme",a),localStorage.setItem("atomix-color-mode",a)}),[a]),o((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{localStorage.getItem("atomix-color-mode")||r(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]);return e("button",{className:`c-color-mode-toggle ${n}`,onClick:()=>{r((e=>"light"===e?"dark":"light"))},"aria-label":`Switch to ${"light"===a?"dark":"light"} mode`,title:`Switch to ${"light"===a?"dark":"light"} mode`,children:e("svg","light"===a?{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}:{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})})})};Ri.displayName="ColorModeToggle";const wi=u(((n,r)=>{let{target:s,show:l=["days","hours","minutes","seconds"],separator:c=":",focused:d=!1,className:u="",onComplete:m}=n;const h="string"==typeof s?new Date(s):s,[p,g]=i((()=>new Date)),[S,_]=i(!1);o((()=>{if(S)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[S]);const v=h.getTime()-p.getTime(),{days:E,hours:L,minutes:b,seconds:f}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(v);o((()=>{v<=0&&!S&&(_(!0),m&&m())}),[v,S,m]);const C=[];return Li(l).call(l,"days")&&C.push({label:"Days",value:E}),Li(l).call(l,"hours")&&C.push({label:"Hours",value:L}),Li(l).call(l,"minutes")&&C.push({label:"Minutes",value:b}),Li(l).call(l,"seconds")&&C.push({label:"Seconds",value:f}),e("div",{ref:r,className:`c-countdown${d?" c-countdown--focused":""} ${u}`.trim(),children:C.map(((n,i)=>t(a.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:String(n.value).padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:n.label})]}),i<C.length-1&&e("span",{className:"c-countdown__separator",children:c})]},n.label)))})}));function $i(e){let{data:t=[],columns:n=[],sortable:a=!1,paginated:r=!1,pageSize:s=10,onSort:l,initialSortConfig:c}=e;const[d,u]=i(c||null),[p,g]=i(1),[S,_]=i(""),v=m((e=>{if(!a)return;let t="asc";d&&d.key===e&&"asc"===d.direction&&(t="desc");const n={key:e,direction:t};u(n),l&&l(n)}),[a,d,l]),E=m((e=>{e<1||e>Math.ceil(t.length/s)||g(e)}),[t.length,s]),L=m((e=>{_(e),g(1)}),[]),b=h((()=>{if(!S)return t;const e=S.toLowerCase();return t.filter((t=>n.some((n=>{var a;const i=t[n.key];return null!=i&&Li(a=String(i).toLowerCase()).call(a,e)}))))}),[t,n,S]),f=h((()=>d&&a?[...b].sort(((e,t)=>{const n=e[d.key],a=t[d.key];return null==n?"asc"===d.direction?-1:1:null==a?"asc"===d.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===d.direction?n.localeCompare(a):a.localeCompare(n):"asc"===d.direction?n>a?1:-1:n>a?-1:1})):b),[b,d,a]),C=h((()=>{if(!r)return f;const e=(p-1)*s;return f.slice(e,e+s)}),[f,r,p,s]),N=h((()=>r?Math.max(1,Math.ceil(f.length/s)):1),[f.length,r,s]);return o((()=>{g(1)}),[t]),o((()=>{p>N&&g(Math.max(1,N))}),[p,N]),{displayData:C,sortConfig:d,currentPage:p,totalPages:N,handleSort:v,handlePageChange:E,handleSearch:L}}function Di(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:n=t.variant,size:a=t.size,fullscreen:i=t.fullscreen,className:r=""}=e,o="c-spinner";return`${o} ${n?`${o}--${n}`:""} ${"md"!==a?`${o}--${a}`:""} ${i?`${o}--fullscreen`:""} ${r}`.trim()}}}wi.displayName="Countdown";const ki=t=>{let{size:n="md",variant:a="primary",fullscreen:i=!1,className:r=""}=t;const{generateSpinnerClass:o}=Di({size:n,variant:a,fullscreen:i}),s=o({size:n,variant:a,fullscreen:i,className:r});return e("div",{className:s,role:"status",children:e("span",{className:I.VISUALLY_HIDDEN,children:"Loading..."})})};ki.displayName="Spinner";const xi="...",Mi=(e,t)=>{const n=t-e+1;return Array.from({length:n},((t,n)=>n+e))},Pi=e=>{let{currentPage:t,totalPages:n,siblingCount:a=1,onPageChange:i}=e;const r=h((()=>{if(a+5>=n)return Mi(1,n);const e=Math.max(t-a,1),i=Math.min(t+a,n),r=e>2,o=i<n-2,s=n;if(!r&&o){return[...Mi(1,3+2*a),xi,n]}if(r&&!o){let e=Mi(n-(3+2*a)+1,n);return[1,xi,...e]}if(r&&o){let t=Mi(e,i);return[1,xi,...t,xi,s]}return[]}),[n,a,t]),o=e=>{e>=1&&e<=n&&e!==t&&i(e)};return{paginationRange:r,currentPage:t,totalPages:n,goToPage:o,nextPage:()=>{o(t+1)},prevPage:()=>{o(t-1)},firstPage:()=>{o(1)},lastPage:()=>{o(n)},DOTS:xi}},Bi=t=>{let{type:n,onClick:a,disabled:i,label:r,iconName:o}=t;return e("li",{className:`c-pagination__item c-pagination__item--${n} ${i?"is-disabled":""}`,"aria-disabled":i,children:e("button",{type:"button",className:"c-pagination__link",onClick:a,disabled:i,"aria-label":r,children:e(te,{name:o,size:"sm","aria-hidden":"true"})})})},zi=n=>{let{currentPage:a=P.currentPage,totalPages:i=P.totalPages,onPageChange:r,siblingCount:o=P.siblingCount,showFirstLastButtons:s=P.showFirstLastButtons,showPrevNextButtons:l=P.showPrevNextButtons,size:c=P.size,className:d="",ariaLabel:u="Pagination"}=n;const{paginationRange:m,goToPage:h,nextPage:p,prevPage:g,firstPage:S,lastPage:_}=Pi({currentPage:a,totalPages:i,siblingCount:o,onPageChange:r});return 0===a||m.length<2?null:e("nav",{className:`c-pagination c-pagination--${c} ${d}`,"aria-label":u,children:t("ul",{className:"c-pagination__items",children:[s&&e(Bi,{type:"first",onClick:S,disabled:1===a,label:"Go to first page",iconName:"SkipBack"}),l&&e(Bi,{type:"prev",onClick:g,disabled:1===a,label:"Go to previous page",iconName:"CaretLeft"}),m.map(((t,n)=>{if(t===xi)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},`dots-${n}`);const i=t===a;return e("li",{className:"c-pagination__item "+(i?"is-active":""),"aria-current":i?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>h(t),"aria-label":`Page ${t}`,"aria-current":i?"page":void 0,children:t})},t)})),l&&e(Bi,{type:"next",onClick:p,disabled:a===i,label:"Go to next page",iconName:"CaretRight"}),s&&e(Bi,{type:"last",onClick:_,disabled:a===i,label:"Go to last page",iconName:"SkipForward"})]})})};zi.displayName="Pagination";const Fi=n=>{let{data:a,columns:i,className:o,sortable:s=!1,filterable:l=!1,paginated:c=!1,pageSize:d=10,striped:u=!1,bordered:m=!1,dense:h=!1,loading:p=!1,emptyMessage:g="No data available",onRowClick:S,onSort:_,...v}=n;const E=r(null),{displayData:L,sortConfig:b,currentPage:f,totalPages:C,handleSort:N,handlePageChange:T,handleSearch:A}=$i({data:a,columns:i,sortable:s,paginated:c,pageSize:d,onSort:_}),y=[M.base,u&&M.striped,m&&M.bordered,h&&M.dense,p&&M.loading,o].filter(Boolean).join(" ");return t("div",{className:M.container,...v,children:[l?e("div",{className:M.toolbar,children:e("div",{className:M.search,children:e("input",{type:"text",placeholder:"Search...",className:`${M.searchInput} c-input`,onChange:e=>A(e.target.value),"aria-label":"Search table"})})}):null,e("div",{className:M.tableWrapper,children:t("table",{ref:E,className:y,children:[e("thead",{className:M.header,children:e("tr",{children:i.map(((n,a)=>e("th",{className:`${M.headerCell} ${!1!==n.sortable&&s?M.sortable:""}`,onClick:()=>!1!==n.sortable&&s?N(n.key):null,"aria-sort":(null==b?void 0:b.key)===n.key?"asc"===b.direction?"ascending":"descending":void 0,children:t("div",{className:M.headerContent,children:[e("span",{children:n.title}),!1!==n.sortable&&s&&e("span",{className:M.sortIcon,children:(null==b?void 0:b.key)===n.key?"asc"===b.direction?e(te,{name:"CaretUp",size:"sm"}):e(te,{name:"CaretDown",size:"sm"}):null})]})},`header-${a}`)))})}),p?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:M.loadingCell,children:e("div",{className:M.loadingIndicator,children:e(ki,{size:"md",variant:"primary"})})})})}):0===L.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:M.emptyCell,children:g})})}):e("tbody",{children:L.map(((t,n)=>e("tr",{className:M.row,onClick:S?()=>S(t):void 0,tabIndex:S?0:void 0,role:S?"button":void 0,children:i.map(((a,i)=>e("td",{className:M.cell,children:a.render?a.render(t[a.key],t):t[a.key]},`cell-${n}-${i}`)))},`row-${n}`)))})]})}),!c||C<=1?null:e("div",{className:M.pagination,children:e(zi,{currentPage:f,totalPages:C,onPageChange:T,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})})]})};function Gi(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function Ui(e,t){return new Date(e,t+1,0).getDate()}function Vi(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,i=e.getFullYear();return t.replace("yyyy",i.toString()).replace("MM",a.toString().padStart(2,"0")).replace("M",a.toString()).replace("dd",n.toString().padStart(2,"0")).replace("d",n.toString())}function Yi(){let{value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:u,inline:h=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[p,g]=i(h),[S,_]=i(e?Vi(e,c):""),[v,E]=i(a&&s?`${Vi(a,c)} - ${Vi(s,c)}`:a?`${Vi(a,c)} - Select end date`:""),[L,b]=i(e||a||new Date),[f,C]=i("days"),[N,T]=i(!a||a&&s?"start":"end"),A=r(null),y=r(null),O=new Date,I=L.getMonth(),R=L.getFullYear(),w=Ui(R,I),$=new Date(R,I,1).getDay();o((()=>{"single"===n?_(e?Vi(e,c):""):(E(a&&s?`${Vi(a,c)} - ${Vi(s,c)}`:a?`${Vi(a,c)} - Select end date`:""),T(!a||a&&s?"start":"end"))}),[e,a,s,c,n]);const D=m((e=>{const i=new Date(R,I,e);if(!(d&&i<d||u&&i>u))if("single"===n)t&&t(i),_(Vi(i,c)),h||g(!1);else if("start"===N)l&&l({startDate:i,endDate:null}),E(`${Vi(i,c)} - Select end date`),T("end");else{if(!a)return;i<a?(l&&l({startDate:i,endDate:a}),E(`${Vi(i,c)} - ${Vi(a,c)}`)):(l&&l({startDate:a,endDate:i}),E(`${Vi(a,c)} - ${Vi(i,c)}`)),h||g(!1),T("start")}}),[R,I,d,u,t,l,c,h,n,N,a]),k=m((()=>{b(new Date(R,I-1,1))}),[R,I]),x=m((()=>{b(new Date(R,I+1,1))}),[R,I]),M=m((()=>{b(new Date(R-1,I,1))}),[R,I]),P=m((()=>{b(new Date(R+1,I,1))}),[R,I]),B=m((()=>{C("months")}),[]),z=m((()=>{C("years")}),[]),F=m((e=>{b(new Date(R,e,1)),C("days")}),[R]),G=m((e=>{b(new Date(e,I,1)),C("months")}),[I]),U=m((()=>{const e=new Date;b(e),"single"===n?D(e.getDate()):b(new Date)}),[D,n]),V=m((()=>{"single"===n?(_(""),t&&t(null)):(E(""),T("start"),l&&l({startDate:null,endDate:null}))}),[t,l,n]),Y=m((e=>{if("single"===n){_(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),b(n))}else{E(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0].trim(),n=t[1].trim(),a=new Date(e);if(isNaN(a.getTime())||b(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||l&&l({startDate:t,endDate:a})}}}}),[t,l,n]),H=m((()=>{h||g(!0)}),[h]),X=m((e=>{A.current&&!A.current.contains(e.target)&&y.current&&!y.current.contains(e.target)&&g(!1)}),[]);o((()=>(p&&!h?document.addEventListener("mousedown",X):document.removeEventListener("mousedown",X),()=>{document.removeEventListener("mousedown",X)})),[p,X,h]);const j=m((()=>{const e=[],t=Ui(0===I?R-1:R,0===I?11:I-1);for(let n=$-1;n>=0;n--)e.push({day:t-n,month:0===I?11:I-1,year:0===I?R-1:R,isCurrentMonth:!1});for(let t=1;t<=w;t++)e.push({day:t,month:I,year:R,isCurrentMonth:!0});const n=42-e.length;for(let t=1;t<=n;t++)e.push({day:t,month:11===I?0:I+1,year:11===I?R+1:R,isCurrentMonth:!1});return e}),[w,$,I,R]),W=m((()=>{const e=[];for(let t=0;t<12;t++)e.push({month:t,name:Gi(t)});return e}),[]),q=m((()=>{const e=[],t=R-6;for(let n=0;n<12;n++)e.push(t+n);return e}),[R]),K=m(((e,t,n)=>function(e,t,n){return!(!e||t&&e<t||n&&e>n)}(new Date(e,t,n),d,u)),[d,u]),Z=m(((t,i,r)=>{if("single"===n)return!!e&&(e.getFullYear()===t&&e.getMonth()===i&&e.getDate()===r);if(!a&&!s)return!1;if(a&&!s)return a.getFullYear()===t&&a.getMonth()===i&&a.getDate()===r;if(a&&s){const e=a.getFullYear()===t&&a.getMonth()===i&&a.getDate()===r,n=s.getFullYear()===t&&s.getMonth()===i&&s.getDate()===r;return e||n}return!1}),[e,n,a,s]),J=m(((e,t,i)=>{if("range"!==n||!a||!s)return!1;const r=new Date(e,t,i);return r>a&&r<s}),[n,a,s]),Q=m(((e,t,n)=>O.getFullYear()===e&&O.getMonth()===t&&O.getDate()===n),[O]),ee=m((e=>{const t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);const a=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((a-t.valueOf())/6048e5)}),[]);return{isOpen:p,inputValue:S,rangeInputValue:v,viewDate:L,viewMode:f,currentMonth:I,currentYear:R,selectionMode:n,rangeSelectionState:N,datePickerRef:A,inputRef:y,startDate:a,endDate:s,setIsOpen:g,handleDateSelect:D,handlePrevMonth:k,handleNextMonth:x,handlePrevYear:M,handleNextYear:P,handleTodayClick:U,handleClear:V,handleInputChange:Y,handleInputFocus:H,switchToMonthView:B,switchToYearView:z,selectMonth:F,selectYear:G,generateDays:j,generateMonths:W,generateYears:q,isDateSelectable:K,isDateSelected:Z,isDateInSelectedRange:J,isToday:Q,getWeekNumber:ee}}Fi.displayName="DataTable";const Hi=u(((i,r)=>{let{value:o,onChange:s,selectionMode:l="single",startDate:c,endDate:d,onRangeChange:u,format:m="MM/dd/yyyy",minDate:h,maxDate:g,placeholder:S="Select date...",disabled:_=!1,readOnly:v=!1,clearable:E=!0,showTodayButton:L=!0,showWeekNumbers:b=!1,inline:f=!1,id:C,name:N,className:T="",placement:A="bottom-start",inputClassName:y="",size:O="md",...I}=i;const{isOpen:R,inputValue:w,rangeInputValue:$,viewMode:D,currentMonth:k,currentYear:x,rangeSelectionState:M,datePickerRef:P,inputRef:B,startDate:z,setIsOpen:F,handleDateSelect:G,handlePrevMonth:U,handleNextMonth:V,handlePrevYear:Y,handleNextYear:H,handleTodayClick:X,handleClear:j,handleInputChange:W,handleInputFocus:q,switchToMonthView:K,switchToYearView:Z,selectMonth:J,selectYear:Q,generateDays:ee,generateMonths:ne,generateYears:ae,isDateSelectable:ie,isDateSelected:re,isDateInSelectedRange:oe,isToday:se,getWeekNumber:le}=Yi({value:o,onChange:s,selectionMode:l,startDate:c,endDate:d,onRangeChange:u,format:m,minDate:h,maxDate:g,inline:f});p(r,(()=>({open:()=>F(!0),close:()=>F(!1),clear:j,focus:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.focus()}})));const ce=`c-datepicker ${T} ${f?"c-datepicker--inline":""}`.trim(),de=`c-datepicker__input c-input c-input--${O} ${y}`.trim(),ue=C||`datepicker-${Math.random().toString(36).substring(2,9)}`,me=`${ue}-calendar`,he="single"===l?w:$;return t("div",{className:ce,ref:P,...I,children:[!f&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:ue,name:N,ref:B,type:"text",className:de,placeholder:"single"===l?S:"start"===M?"Select start date...":z?`${Vi(z,m)} - Select end date...`:"Select date range...",value:he,onChange:W,onFocus:q,disabled:_,readOnly:v,"aria-haspopup":"dialog","aria-expanded":R,"aria-controls":me}),E&&he&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:j,"aria-label":"Clear date",children:e(te,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(te,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(R||f)&&t("div",{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${A}`,role:"dialog","aria-modal":f?void 0:"true","aria-label":"Date picker",children:[t("div",{className:"c-datepicker__header",children:["days"===D&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Y,"aria-label":"Previous year",children:e(te,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:U,"aria-label":"Previous month",children:e(te,{name:"CaretLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:K,"aria-label":"Switch to month view",children:`${k+1}/${x}`}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:V,"aria-label":"Next month",children:e(te,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:H,"aria-label":"Next year",children:e(te,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===D&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Y,"aria-label":"Previous year",children:e(te,{name:"CaretLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:Z,"aria-label":"Switch to year view",children:x}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:H,"aria-label":"Next year",children:e(te,{name:"CaretRight",size:"sm"})})]}),"years"===D&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:()=>Y(),"aria-label":"Previous year range",children:e(te,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch","aria-label":"Current year range",children:[x-6," - ",x+5]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:()=>H(),"aria-label":"Next year range",children:e(te,{name:"CaretRight",size:"sm"})})]})]}),t("div",{className:"c-datepicker__body",children:["days"===D&&t(n,{children:[t("div",{className:"c-datepicker__weekdays",role:"row",children:[b&&e("div",{className:"c-datepicker__weekday c-datepicker__weeknumber",role:"columnheader",children:"#"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Su"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Mo"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Tu"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"We"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Th"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Fr"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Sa"})]}),e("div",{className:"c-datepicker__days",role:"grid","aria-labelledby":`${ue}-month-year`,children:ee().map(((n,i)=>{const r=ie(n.year,n.month,n.day),o=re(n.year,n.month,n.day),s=se(n.year,n.month,n.day),u=new Date(n.year,n.month,n.day),m=oe(n.year,n.month,n.day),h="range"===l&&c&&n.day===c.getDate()&&n.month===c.getMonth()&&n.year===c.getFullYear(),p="range"===l&&d&&n.day===d.getDate()&&n.month===d.getMonth()&&n.year===d.getFullYear();if(b&&i%7==0){const l=le(u);return t(a.Fragment,{children:[e("div",{className:"c-datepicker__weeknumber","aria-label":`Week ${l}`,children:l}),e("button",{type:"button",className:`c-datepicker__day \n ${n.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${o?"c-datepicker__day--selected":""} \n ${h?"c-datepicker__day--start-range":""}\n ${p?"c-datepicker__day--end-range":""}\n ${m?"c-datepicker__day--in-range":""}\n ${s?"c-datepicker__day--today":""} \n ${r?"":"c-datepicker__day--disabled"}`,onClick:()=>r&&G(n.day),disabled:!r,tabIndex:n.isCurrentMonth?0:-1,"aria-label":u.toLocaleDateString(),"aria-selected":o?"true":"false",role:"gridcell",children:n.day})]},`week-${i}`)}return e("button",{type:"button",className:`c-datepicker__day \n ${n.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${o?"c-datepicker__day--selected":""} \n ${h?"c-datepicker__day--start-range":""}\n ${p?"c-datepicker__day--end-range":""}\n ${m?"c-datepicker__day--in-range":""}\n ${s?"c-datepicker__day--today":""} \n ${r?"":"c-datepicker__day--disabled"}`,onClick:()=>r&&G(n.day),disabled:!r,tabIndex:n.isCurrentMonth?0:-1,"aria-label":u.toLocaleDateString(),"aria-selected":o?"true":"false",role:"gridcell",children:n.day},`day-${i}`)}))})]}),"months"===D&&e("div",{className:"c-datepicker__months",role:"grid",children:ne().map(((t,n)=>{const a=o&&o.getMonth()===t.month&&o.getFullYear()===x;return e("button",{type:"button",className:"c-datepicker__month "+(a?"c-datepicker__month--selected":""),onClick:()=>J(t.month),"aria-selected":a?"true":"false",role:"gridcell",children:t.name.substring(0,3)},`month-${n}`)}))}),"years"===D&&e("div",{className:"c-datepicker__years",role:"grid",children:ae().map(((t,n)=>{const a=o&&o.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(a?"c-datepicker__year--selected":""),onClick:()=>Q(t),"aria-selected":a?"true":"false",role:"gridcell",children:t},`year-${n}`)}))})]}),"days"===D&&t("div",{className:"c-datepicker__footer",children:["range"===l&&t("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===M?"start":"end"," date"]}),L&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:X,"aria-label":"Go to today",children:"Today"}),!f&&e("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>F(!1),"aria-label":"Close calendar",children:"Close"})]})]})]})}));Hi.displayName="DatePicker";const Xi=g({isOpen:!1,close:()=>{},id:"",trigger:"click"}),ji=n=>{let{children:a,menu:s,placement:l="bottom-start",trigger:c="click",offset:d=K.DEFAULTS.OFFSET,isOpen:u,onOpenChange:h,closeOnClickOutside:p=!0,closeOnEscape:g=!0,maxHeight:S,minWidth:_=K.DEFAULTS.MIN_WIDTH,variant:v,className:E="",...L}=n;const[b,f]=i(!1),C=void 0!==u,N=C?u:b,T=r(null),A=r(null),y=r(null),O=r(`dropdown-${Math.random().toString(36).substring(2,9)}`).current,I=m((e=>{C||f(e),h&&h(e)}),[C,h]),R=m((()=>I(!N)),[N,I]),w=m((()=>{I(!1),setTimeout((()=>{var e;null===(e=A.current)||void 0===e||e.focus()}),0)}),[I]);o((()=>{if(!N||!p)return;const e=e=>{T.current&&!T.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[N,p,w]),o((()=>{if(!N||!g)return;const e=e=>{"Escape"===e.key&&w()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[N,g,w]);const $=m((e=>{if(!y.current)return;const t=y.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const n=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),n<t.length-1?t[n+1].focus():t[0].focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1].focus():t[t.length-1].focus();break;case"Home":e.preventDefault(),t[0].focus();break;case"End":e.preventDefault(),t[t.length-1].focus()}}),[]),D=m((e=>{"click"===c&&(e.preventDefault(),e.stopPropagation(),R())}),[c,R]),k=m((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||N?"Escape"===e.key&&N&&(e.preventDefault(),w()):(e.preventDefault(),I(!0),"ArrowDown"===e.key&&y.current&&setTimeout((()=>{var e;const t=null===(e=y.current)||void 0===e?void 0:e.querySelector('[role="menuitem"]');null==t||t.focus()}),100))}),[N,I,w]),x=m((()=>{"hover"===c&&I(!0)}),[c,I]),M=["c-dropdown","click"===c?"c-dropdown--onclick":"",v?`c-dropdown--${v}`:"",N?"is-open":"",E].filter(Boolean).join(" "),P={};return S&&(P.maxHeight=S),void 0!==_&&(P.minWidth="number"==typeof _?`${_}px`:_),t("div",{ref:T,className:M,onMouseEnter:"hover"===c?x:void 0,...L,children:[e("div",{ref:A,className:"c-dropdown__toggle",onClick:D,onKeyDown:k,"aria-haspopup":"menu","aria-expanded":N,"aria-controls":O,tabIndex:0,children:a}),e("div",{ref:y,id:O,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${l} ${N?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!N,onKeyDown:$,children:e("div",{className:"c-dropdown__menu-inner",style:P,children:e(Xi.Provider,{value:{isOpen:N,close:w,id:O,trigger:c},children:e("ul",{className:"c-dropdown__menu",children:s})})})})]})};function Wi(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,...e},[n,a]=i(t.isOpen||!1),s=r(null),l=r(null),c=m((()=>{if(!s.current||"push"!==t.mode)return;const{position:e}=t,n="top"===e||"bottom"===e?s.current.clientHeight:s.current.clientWidth;let a;switch(e){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a=`padding${e.charAt(0).toUpperCase()+e.slice(1)}`}document.body.style[a]=`${n}px`,document.body.classList.add("is-pushed")}),[t.mode,t.position]),d=m((()=>{if("push"!==t.mode)return;const{position:e}=t;let n;switch(e){case"start":n="paddingLeft";break;case"end":n="paddingRight";break;default:n=`padding${e.charAt(0).toUpperCase()+e.slice(1)}`}document.body.style[n]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),u=m((()=>{if(a(!0),document.body.classList.add("is-edgepanel-open"),s.current){const{mode:e}=t;if("none"!==e){s.current.classList.add("is-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),x.ANIMATION_DURATION)}s.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),h=m((()=>{if(s.current){const{position:e,mode:n}=t;if("none"!==n){s.current.classList.add("is-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),x.ANIMATION_DURATION)}s.current.style.transform=e?x.TRANSFORM_VALUES[e]:"","push"===t.mode&&d();setTimeout((()=>{a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===n?0:x.ANIMATION_DURATION)}else a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,d]),p=m((e=>{t.closeOnEscape&&"Escape"===e.key&&n&&h()}),[h,t.closeOnEscape,n]),g=m((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&h()}),[h,t.closeOnBackdropClick]);return o((()=>(n&&t.closeOnEscape&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)})),[n,p,t.closeOnEscape]),o((()=>{if(s.current){const{position:e,mode:a}=t;n||"slide"!==a&&"push"!==a||!e||(s.current.style.transform=x.TRANSFORM_VALUES[e])}}),[t.mode,t.position,n]),o((()=>{void 0!==t.isOpen&&t.isOpen!==n&&(t.isOpen?u():h())}),[t.isOpen,h,n,u]),{isOpen:n,containerRef:s,backdropRef:l,generateEdgePanelClass:e=>{const{position:a=t.position,className:i="",isOpen:r}=e,o=x.CLASSES.BASE;return`${o} ${a?`${o}--${a}`:""} ${r??n?x.CLASSES.IS_OPEN:""} ${i}`.trim()},openPanel:u,closePanel:h,handleBackdropClick:g}}ji.displayName="Dropdown";const qi=n=>{let{title:a,children:i,position:r="start",mode:o="slide",isOpen:s=!1,onOpenChange:l,backdrop:c=!0,closeOnBackdropClick:d=!0,closeOnEscape:u=!0,className:m=""}=n;const{isOpen:h,containerRef:p,backdropRef:g,generateEdgePanelClass:S,closePanel:_,handleBackdropClick:v}=Wi({position:r,mode:o,isOpen:s,onOpenChange:l,backdrop:c,closeOnBackdropClick:d,closeOnEscape:u}),E=S({position:r,isOpen:s,className:m});return h||!1!==s?t("div",{className:E,"data-position":r,"data-mode":o,children:[c&&e("div",{ref:g,className:"c-edge-panel__backdrop",onClick:v}),t("div",{ref:p,className:"c-edge-panel__container",children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:a}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:_,"aria-label":"Close panel",children:e(te,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:i})]})]}):null};function Ki(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e,i=n?z.CLASSES.DISABLED:"";return`${z.CLASSES.BASE} ${i} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}qi.displayName="EdgePanel";const Zi=t=>{let{children:n,onSubmit:a,onReset:i,className:r="",disabled:o=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:u="on"}=t;const{generateFormClass:m,handleSubmit:h,handleReset:p}=Ki({disabled:o}),g=m({className:r,disabled:o});return e("form",{id:s,className:g,onSubmit:h(a),onReset:p(i),method:l,encType:c,noValidate:d,autoComplete:u,children:n})};function Ji(e){const t=r(null),n=r(null),a=r(null),i={alignment:"left",imageColSize:7,contentColSize:5,fullViewportHeight:!1,parallax:!1,parallaxIntensity:.5,...e},s=!!i.backgroundImageSrc,l=!!i.imageSrc,c=l&&"center"!==i.alignment,d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const i=()=>{const t=window.pageYOffset*n,a=e.querySelector(f.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};a.current=i,window.addEventListener("scroll",i),i()},u=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(f.SELECTORS.BG);t&&(t.style.transform=""),a.current&&(window.removeEventListener("scroll",a.current),a.current=null)};o((()=>{const e=t.current;return e&&i.parallax&&s&&d(e,i.parallaxIntensity),()=>{e&&a.current&&u(e)}}),[i.parallax,i.parallaxIntensity,s]);return{generateHeroClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=[f.SELECTORS.HERO.replace(".","")];return"center"===i.alignment?t.push(f.CLASSES.CENTER):"right"===i.alignment?t.push(f.CLASSES.RIGHT):"left"===i.alignment&&t.push(f.CLASSES.LEFT),i.fullViewportHeight&&t.push(f.CLASSES.FULL_VH),i.parallax&&t.push("c-hero--parallax"),i.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:function(){const e=[`o-grid__col o-grid__col--md-${arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.imageColSize||7}`];return"left"===i.alignment&&e.push("u-mt-5 u-mt-md-0"),e.join(" ")},generateContentColClass:function(){return`o-grid__col o-grid__col--md-${arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.contentColSize||5}`},hasBackgroundImage:s,hasForegroundImage:l,useGridLayout:c,heroRef:t,videoRef:n,applyParallaxEffect:d,removeParallaxEffect:u}}Zi.displayName="Form";const Qi=a=>{let{title:i,subtitle:r,text:o,imageSrc:s,imageAlt:l="Hero image",alignment:c="left",backgroundImageSrc:d,showOverlay:u=!0,fullViewportHeight:m=!1,actions:h,imageColSize:p=7,contentColSize:g=5,contentWidth:S,className:_="",parallax:v=!1,parallaxIntensity:E=.5,videoBackground:L,videoOptions:b={autoplay:!0,loop:!0,muted:!0}}=a;const{generateHeroClassNames:C,generateImageColClass:N,generateContentColClass:T,hasBackgroundImage:A,hasForegroundImage:y,useGridLayout:O,heroRef:I,videoRef:R}=Ji({alignment:c,imageColSize:p,contentColSize:g,imageSrc:s,backgroundImageSrc:d,showOverlay:u,fullViewportHeight:m,contentWidth:S,parallax:v,parallaxIntensity:E,videoBackground:L}),w=S?{"--atomix-hero-content-width":S}:void 0,$=()=>{if(!L)return null;const{autoplay:n,loop:a,muted:i,posterUrl:r}=b;return t("video",{ref:R,className:"c-hero__video",autoPlay:n,loop:a,muted:i,playsInline:!0,poster:r,children:[e("source",{src:L,type:`video/${L.split(".").pop()||"mp4"}`}),"Your browser does not support the video tag."]})},D=()=>t("div",{className:f.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:f.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:f.SELECTORS.TITLE.replace(".",""),children:i}),o&&e("p",{className:f.SELECTORS.TEXT.replace(".",""),children:o}),h&&e("div",{className:f.SELECTORS.ACTIONS.replace(".",""),children:h})]}),k=()=>y?e("div","center"===c?{className:f.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:s,alt:l,className:f.SELECTORS.IMAGE.replace(".","")})}:{className:N(),children:e("img",{src:s,alt:l,className:f.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:I,className:C(_),style:w,"data-parallax":v?"true":void 0,"data-parallax-intensity":v?E:void 0,children:[A||L?t("div",{className:f.SELECTORS.BG.replace(".",""),children:[d&&e("img",{src:d,alt:"Background",className:f.SELECTORS.BG_IMAGE.replace(".","")}),$(),u&&e("div",{className:f.SELECTORS.OVERLAY.replace(".","")})]}):null,e("div",{className:`${f.SELECTORS.CONTAINER.replace(".","")} o-container`,children:O?e("div",{className:`${f.SELECTORS.GRID.replace(".","")} o-grid`,children:t(n,"left"===c?{children:[e("div",{className:T(),children:D()}),k()]}:{children:[k(),e("div",{className:T(),children:D()})]})}):t(n,{children:[D(),k()]})})]})};function er(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:i=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:s="",type:l}=e,c="md"===n?"":"sm"===n?G.CLASSES.SMALL:G.CLASSES.LARGE,d=a?`c-input--${a}`:"",u="textarea"===l?"c-input--textarea":"";let m="";r?m=G.CLASSES.INVALID:o&&(m=G.CLASSES.VALID);const h=i?G.CLASSES.DISABLED:"";return`${G.CLASSES.BASE} ${c} ${d} ${u} ${m} ${h} ${s}`.trim()}}}Qi.displayName="Hero";const tr=t=>{let{type:n="text",value:a,onChange:i,onBlur:r,onFocus:o,placeholder:s,className:l="",disabled:c=!1,required:d=!1,readOnly:u=!1,id:m,name:h,autoComplete:p,autoFocus:g=!1,size:S="md",variant:_,invalid:v=!1,valid:E=!1,maxLength:L,minLength:b,pattern:f,min:C,max:N,step:T,ariaLabel:A,ariaDescribedBy:y}=t;const{generateInputClass:O}=er({size:S,variant:_,disabled:c,invalid:v,valid:E}),I=O({className:l,size:S,variant:_,disabled:c,invalid:v,valid:E,type:n});return e("input",{type:n,className:I,value:a,onChange:i,onBlur:r,onFocus:o,placeholder:s,disabled:c,required:d,readOnly:u,id:m,name:h,autoComplete:p,autoFocus:g,maxLength:L,minLength:b,pattern:f,min:C,max:N,step:T,"aria-label":A,"aria-describedby":y,"aria-invalid":v})};tr.displayName="Input";const nr=t=>{var n;let{children:i,variant:r="default",className:o="",...s}=t;const l=[L.BASE_CLASS,"default"!==r&&`c-list--${r}`,o].filter(Boolean).join(" "),c=Li(n=["number","text"]).call(n,r)?"ol":"ul";return e(c,{className:l,...s,children:a.Children.map(i,(t=>e("li",{className:"c-list__item",children:t})))})};nr.displayName="List";const ar=n=>{let{messages:a=[],otherAvatar:r,selfAvatar:o,otherName:s,width:l="100%",onSendMessage:c,placeholder:d="Type a message",className:u="",bodyHeight:m,disabled:h=!1,id:p}=n;const{inputValue:g,handleInputChange:S,handleSubmit:_,handleKeyDown:v}=function(){let{onSendMessage:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=i(""),a=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:a,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a(e))}}}({onSendMessage:c}),E=p||`messages-${Math.random().toString(36).substr(2,9)}`,L=`${E}-input`;return t("div",{className:`${q.CLASSES.BASE} ${h?"is-disabled":""} ${u}`,style:{"--atomix-messages-width":l},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[e("div",{className:q.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:a.map((n=>t("div",{className:`${q.CLASSES.CONTENT} ${n.isSelf?q.CLASSES.CONTENT_SELF:""}`,"aria-label":`${n.isSelf?"You":s||"Other person"} sent a message at ${n.time}`,children:[e(ne,{src:n.isSelf?o:r,size:"xl",circle:!0,className:q.CLASSES.AVATAR,alt:n.isSelf?"Your avatar":`${s||"Other person"}'s avatar`}),t("div",{className:q.CLASSES.ITEMS,children:[!n.isSelf&&s&&e("div",{className:q.CLASSES.NAME,children:s}),n.text&&t("div",{className:q.CLASSES.TEXT,children:[n.text,e("span",{className:q.CLASSES.TIME,"aria-label":`Sent at ${n.time}`,children:n.time})]}),n.image&&e("img",{className:q.CLASSES.IMAGE,src:n.image,alt:"Message attachment",loading:"lazy"}),n.file&&t("div",{className:q.CLASSES.FILE,"aria-label":`File attachment: ${n.file.name}, size: ${n.file.size}`,children:[e("span",{className:q.CLASSES.FILE_ICON,children:e(te,{name:"File","aria-hidden":"true"})}),t("div",{className:q.CLASSES.FILE_DETAILS,children:[e("div",{className:q.CLASSES.FILE_NAME,children:n.file.name}),e("div",{className:q.CLASSES.FILE_SIZE,children:n.file.size})]})]})]})]},n.id)))}),t("form",{className:q.CLASSES.FORM,onSubmit:_,"aria-label":"Message input form",children:[t("div",{className:q.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:L,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:L,type:"text",className:q.CLASSES.INPUT,placeholder:d,value:g,onChange:S,onKeyDown:v,disabled:h,"aria-label":"Message input"}),t("div",{className:q.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:q.CLASSES.OPTION,"aria-label":"Attach file",disabled:h,children:e(te,{name:"PaperclipHorizontal","aria-hidden":"true",className:q.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:q.CLASSES.OPTION,"aria-label":"Attach image",disabled:h,children:e(te,{name:"Image","aria-hidden":"true",className:q.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:q.CLASSES.OPTION,"aria-label":"Insert link",disabled:h,children:e(te,{name:"Link","aria-hidden":"true",className:q.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:q.CLASSES.SUBMIT,"aria-label":"Send message",disabled:h,children:e(te,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};ar.displayName="Messages";const ir=n=>{let{children:a,isOpen:s=!1,onOpenChange:l,onClose:c,onOpen:d,title:u,subtitle:h,size:p="md",backdrop:g=!0,keyboard:S=!0,className:_="",closeButton:v=!0,footer:E,...L}=n;const b=r(null),f=r(null),C=r(null),{isOpen:N,close:T}=function(){let{isOpen:e,onOpenChange:t,onOpen:n,onClose:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,s]=i(!1),l=void 0!==e,c=l?!!e:r;o((()=>{l&&s(!!e)}),[e,l]);const d=m((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),u=m((()=>{d(!0)}),[d]),h=m((()=>{d(!1)}),[d]),p=m((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:h,toggle:p}}({isOpen:s,onOpenChange:l,onClose:c,onOpen:d});o((()=>{if(!S)return;const e=e=>{"Escape"===e.key&&N&&T()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[N,T,S]);const A=["c-modal",N?W.CLASSES.IS_OPEN:"",p?`c-modal--${p}`:"",_].filter(Boolean).join(" ");return t("div",{ref:b,className:A,style:{display:N?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!N,...L,children:[e("div",{ref:C,className:"c-modal__backdrop",onClick:e=>{g&&e.target===e.currentTarget&&T()}}),e("div",{ref:f,className:"c-modal__dialog",children:t("div",{className:"c-modal__content",children:[(u||v)&&t("div",{className:"c-modal__header",children:[t("div",{className:"c-modal__header-content",children:[u&&e("h3",{className:"c-modal__title",children:u}),h&&e("p",{className:"c-modal__sub",children:h})]}),v&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:T,"aria-label":"Close modal",children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]}),e("div",{className:"c-modal__body",children:a}),E&&e("div",{className:"c-modal__footer",children:E})]})})]})};function rr(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[n,a]=i(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:i=t.collapsible,className:r=""}=e;return`c-navbar ${"static"!==n?`c-navbar--${n}`:""} ${a?`c-navbar--${a}`:""} ${i?"c-navbar--collapsible":""} ${r}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;a(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}ir.displayName="Modal";const or=u(((n,a)=>{let{brand:s,children:l,variant:c,position:d="static",containerWidth:u,collapsible:m=!0,expanded:h,onToggle:p,className:g="",disabled:S=!1,backdrop:_=!1,closeOnOutsideClick:v=!0,closeOnEscape:E=!0,ariaLabel:L="Main navigation",id:b}=n;const{generateNavbarClass:f,generateContainerStyle:C,generateCollapseClass:N}=rr({position:d,collapsible:m,expanded:h,onToggle:p}),[T,A]=i(h||!1),y=r(null);o((()=>{void 0!==h&&A(h)}),[h]),o((()=>{const e=()=>{!(window.innerWidth<768)&&m&&("function"==typeof p?h&&p(!1):A(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[m,h,p]);const O=f({position:d,variant:c,collapsible:m,className:g}),I=C(u),R=N(T);return e("nav",{ref:a,className:O,"aria-label":L,id:b,children:t("div",{className:"c-navbar__container",style:I,children:[s&&("string"==typeof s?e("a",{href:"/",className:"c-navbar__brand",children:s}):e("div",{className:"c-navbar__brand",children:s})),m&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(S)return;const e=!T;"function"==typeof p?p(e):A(e)},"aria-expanded":T,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:S,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:R,ref:y,children:l})]})})}));or.displayName="Navbar";const sr=n=>{let{currentIndex:a,imagesLength:i,onZoomOut:r,onResetZoom:o,onZoomIn:s,onToggleFullscreen:l,onClose:c,isFullscreen:d,zoomLevel:u,onRotate:m,onDownload:h,onShare:p,showInfo:g,onToggleInfo:S,currentImage:_}=n;return t("div",{className:"c-photo-viewer__header",children:[e(re,{label:`${a+1} / ${i}`,variant:"light",size:"sm",className:"c-photo-viewer__counter-badge"}),t("div",{className:"c-photo-viewer__actions",children:[e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,disabled:u<=.1,"aria-label":"Zoom out",icon:e(te,{name:"Minus",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:o,disabled:1===u,"aria-label":"Reset zoom",icon:e(te,{name:"MagnifyingGlass",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:s,disabled:u>=5,"aria-label":"Zoom in",icon:e(te,{name:"Plus",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:m,"aria-label":"Rotate image",icon:e(te,{name:"ArrowsClockwise",size:"sm"}),className:"c-photo-viewer__action-button"}),(null==_?void 0:_.src)&&e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:h,"aria-label":"Download image",icon:e(te,{name:"DownloadSimple",size:"sm"}),className:"c-photo-viewer__action-button"}),(null==_?void 0:_.src)&&"undefined"!=typeof navigator&&"share"in navigator&&e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:p,"aria-label":"Share image",icon:e(te,{name:"ShareNetwork",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:S,"aria-label":g?"Hide info":"Show info",icon:e(te,{name:"Info",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:l,"aria-label":d?"Exit fullscreen":"Enter fullscreen",icon:e(te,d?{name:"ArrowsIn",size:"sm"}:{name:"ArrowsOut",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:c,"aria-label":"Close photo viewer",icon:e(te,{name:"X",size:"sm"}),className:"c-photo-viewer__action-button c-photo-viewer__close"})]})]})},lr=a=>{let{show:i,onPrev:r,onNext:s,currentIndex:l,imagesLength:c,enableKeyboardNav:d,onClose:u}=a;return o((()=>{if(!d)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&s(),"Escape"===e.key&&u()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[d,r,s,u]),i?t(n,{children:[e(le,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:r,disabled:0===l,"aria-label":"Previous image",icon:e(te,{name:"CaretLeft",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev"}),e(le,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:s,disabled:l===c-1,"aria-label":"Next image",icon:e(te,{name:"CaretRight",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next"})]}):null},cr=t=>{let{imageRef:n,containerRef:a,src:s,alt:l,zoomLevel:c,dragPosition:d,isDragging:u,rotationAngle:m,isTransitioning:h=!1,onMouseDown:p,onMouseMove:g,onMouseUp:S,onWheel:_,onTouchStart:v,onTouchMove:E,onTouchEnd:L,onDoubleClick:b}=t;const f=r(null),C=a||f,[N,T]=i(!1);o((()=>(T(!0),()=>T(!1))),[]);return o((()=>{const e=C.current;if(!e)return;const t=t=>{N&&e&&_&&_(t)},n=t=>{N&&e&&v&&v(t)},a=t=>{N&&e&&E&&E(t)},i=t=>{N&&e&&L&&L(t)};return N&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",i,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",i)}}),[N,_,v,E,L,C]),e("div",{ref:C,className:"c-photo-viewer__image-container "+(h?"is-transitioning":""),style:{cursor:u?"grabbing":c>1?"grab":"default",opacity:h?.7:1,touchAction:"none"},onMouseDown:p,onMouseMove:g,onMouseUp:S,onMouseLeave:S,onDoubleClick:e=>{N&&b&&b(e)},children:e("img",{ref:n,src:s,alt:l,className:"c-photo-viewer__image",style:{transform:`scale(${c}) translate(${d.x}px, ${d.y}px) rotate(${m}deg)`,transition:u?"none":h?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:u?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},dr=t=>{let{images:n,currentIndex:a,goToImage:i}=t;return n.length>1?e("div",{className:"c-photo-viewer__thumbnails",children:n.map(((t,n)=>{const r=t.thumbnail||t.src;return e(le,{variant:"light",className:"c-photo-viewer__thumbnail "+(n===a?"is-active":""),onClick:()=>i(n),"aria-label":`View image ${n+1}`,"aria-current":n===a,children:e("img",{loading:"lazy",src:r,alt:t.alt||`Thumbnail ${n+1}`,className:"c-photo-viewer__thumbnail-img"})},n)}))}):null},ur=n=>{let{show:a,image:i,onClose:r}=n;return a&&i?t("div",{className:"c-photo-viewer__info-panel",children:[e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,"aria-label":"Close info panel",icon:e(te,{name:"X",size:"sm"}),className:"c-photo-viewer__info-close"}),t("div",{className:"c-photo-viewer__info-content",children:[i.title&&e("h3",{className:"c-photo-viewer__info-title",children:i.title}),i.description&&e("p",{className:"c-photo-viewer__info-description",children:i.description}),i.date&&t("p",{className:"c-photo-viewer__info-meta",children:["Date: ",i.date]}),i.author&&t("p",{className:"c-photo-viewer__info-meta",children:["By: ",i.author]}),i.tags&&i.tags.length>0&&e("div",{className:"c-photo-viewer__info-tags",children:i.tags.map(((t,n)=>e(re,{label:t,variant:"light",size:"sm",className:"c-photo-viewer__info-tag"},n)))})]})]}):null},mr=n=>{let{images:a,startIndex:s=0,className:l="",disabled:c=!1,enableKeyboardNavigation:d=!0,enableGestures:u=!0,enableFullscreen:p=!0,thumbnailPosition:g="bottom",onImageChange:S,onClose:_}=n;const{currentIndex:v,zoomLevel:E,imagePosition:L,isDragging:b,isFullscreen:f,rotationAngle:C,showInfo:N,imageRef:T,containerRef:A,isTransitioning:y,setZoomLevel:O,setIsFullscreen:I,setRotationAngle:R,setShowInfo:w,closeModal:$,goToPrevious:D,goToNext:k,setCurrentIndex:x,handleMouseDown:M,handleMouseMove:P,handleMouseUp:B,handleWheel:z,handleTouchStart:F,handleTouchMove:G,handleTouchEnd:U,handleDoubleClick:V,resetImageState:Y}=(e=>{let{images:t,startIndex:n=0,enableGestures:a=!0,onImageChange:s,onClose:l}=e;const[c,d]=i(n),[u,h]=i(!1),[p,g]=i(!1),[S,_]=i({x:0,y:0}),[v,E]=i(!1),[L,b]=i(!1),[f,C]=i({}),[N,T]=i(!1),[A,y]=i(!1),[O,I]=i({velocity:0,timestamp:0}),R=r(null),w=r(null),$=r([]),D=r(null),k=r(null),x=r(0),M=r(null),P=m(((e,t)=>{if(!A||!R.current||!w.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=R.current,a=w.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const i=n.naturalWidth||n.width||800,r=n.naturalHeight||n.height||600;try{const n=a.getBoundingClientRect();if(!n||0===n.width||0===n.height)return{minX:0,maxX:0,minY:0,maxY:0};const o=n.width,s=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=i/r;let m,h;o/s>u?(h=Math.min(.9*s,r),m=h*u):(m=Math.min(.9*o,i),h=m/u);const p=(m*c+h*d)*e,g=(m*d+h*c)*e,S=Math.max(0,(p-o)/2),_=Math.max(0,(g-s)/2);return{minX:-S,maxX:S,minY:-_,maxY:_}}catch(e){return{minX:0,maxX:0,minY:0,maxY:0}}}),[A]),B=m(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);o((()=>(y(!0),n<0||n>=t.length?d(0):d(n),()=>y(!1))),[t,n]),o((()=>{u?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[u]),o((()=>{u&&C((e=>e[c]?e:{...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[u,c]),o((()=>{s&&s(c)}),[c,s]),o((()=>{const e=R.current,t=w.current,n=()=>{A&&e&&t&&C((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=P(t.zoomLevel,t.rotation),a=B(t.position,n);return{...e,[c]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&A))return e&&t&&A?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[c,P,B,A]),o((()=>{const e=()=>{A&&R.current&&w.current&&C((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=P(t.zoomLevel,t.rotation),a=B(t.position,n);return{...e,[c]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c,P,B,A]);const z=m((()=>{h(!0)}),[]),F=m((()=>{h(!1),l&&l()}),[l]),G=m((()=>{c>0&&(T(!0),setTimeout((()=>{d((e=>e-1)),T(!1)}),150))}),[c]),U=m((()=>{c<t.length-1&&(T(!0),setTimeout((()=>{d((e=>e+1)),T(!1)}),150))}),[c,t.length]),V=m((e=>{C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.zoomLevel):e,i=Math.max(.1,Math.min(5,a)),r=P(i,n.rotation),o=B(n.position,r);return{...t,[c]:{...n,zoomLevel:i,bounds:r,position:o}}}))}),[A,c,P,B]),Y=m((e=>{C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.position):e,i=B(a,n.bounds);return{...t,[c]:{...n,position:i}}}))}),[c,B]),H=m((e=>{C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=(("function"==typeof e?e(n.rotation):e)%360+360)%360,i=P(n.zoomLevel,a),r=B(n.position,i);return{...t,[c]:{...n,rotation:a,bounds:i,position:r}}}))}),[A,c,P,B]),X=m((e=>{var t;if(!A||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&null!==(t=window.location)&&void 0!==t&&null!==(t=t.href)&&void 0!==t&&Li(t).call(t,"storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(e){return}C((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},i=/Mac|iPod|iPhone|iPad/.test(navigator.platform),r=e.ctrlKey&&i,o=Math.abs(e.deltaX)>0,s=!e.ctrlKey&&o&&i,l=!e.ctrlKey&&!o&&i,d=!i;let u,m=!1;if(r)u=-.02*e.deltaY,m=!0;else if(s){if(!(a.zoomLevel>1))return t;u=-.003*e.deltaY,m=!0}else l?(u=-.004*e.deltaY,m=!0):d?(u=-.006*e.deltaY,m=!0):(u=-.005*e.deltaY,m=!0);m&&(e.preventDefault(),e.stopPropagation());const h=Date.now(),p=h-x.current;if(x.current=h,r&&p<100){const e=Math.abs(u)/p;I({velocity:e,timestamp:h}),M.current&&clearTimeout(M.current),M.current=setTimeout((()=>{const e=()=>{I((t=>{if(t.velocity<.001)return t;const n=.95*t.velocity,a=n*(u>0?1:-1);return C((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+a));if(n===t.zoomLevel)return e;const i=P(n,t.rotation),r=B(t.position,i);return{...e,[c]:{...t,zoomLevel:n,bounds:i,position:r}}})),n>=.001&&requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50)}let g;try{g=n.getBoundingClientRect()}catch(e){return t}if(!g||0===g.width||0===g.height)return t;const S=g.width/2,_=g.height/2,v=e.clientX-g.left-S,E=e.clientY-g.top-_,L=a.zoomLevel,b=Math.max(.1,Math.min(5,L+u));if(b!==L){const e=b/L,n=P(b,a.rotation),i={x:a.position.x+v*(1-e)*.5,y:a.position.y+E*(1-e)*.5},r=B(i,n);return{...t,[c]:{...a,zoomLevel:b,bounds:n,position:r}}}return t}))}}),[A,c,P,B]),j=m((e=>{if(!A||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&C((n=>{const a=n[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let i;try{i=t.getBoundingClientRect()}catch(e){return n}if(!i||0===i.width||0===i.height)return n;const r=i.width/2,o=i.height/2,s=e.clientX-i.left-r,l=e.clientY-i.top-o;let d,u={x:0,y:0};a.zoomLevel<1.5?(d=2,u={x:.5*-s,y:.5*-l}):a.zoomLevel<3?(d=4,u={x:.75*-s,y:.75*-l}):(d=1,u={x:0,y:0});const m=P(d,a.rotation),h=B(u,m);return{...n,[c]:{...a,zoomLevel:d,bounds:m,position:h}}}))}),[A,c,P,B]),W=m((e=>{C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0}};return n.zoomLevel>1&&(e.preventDefault(),g(!0),_({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[c]),q=m((e=>{p&&C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a={x:e.clientX-S.x,y:e.clientY-S.y},i=B(a,n.bounds);return{...t,[c]:{...n,position:i}}}))}),[p,S,c,B]),K=m((()=>{g(!1)}),[]),Z=m((e=>{if(!a)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),$.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),C((e=>{const n=e[c]||{zoomLevel:1,position:{x:0,y:0}};if(1===t.length&&n.zoomLevel>1)g(!0),_({x:t[0].clientX-n.position.x,y:t[0].clientY-n.position.y});else if(2===t.length){const e=t[0].clientX-t[1].clientX,n=t[0].clientY-t[1].clientY;D.current=Math.sqrt(e*e+n*n),k.current={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}return e}))}),[a,c]),J=m((e=>{if(!a)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),C((n=>{const a=n[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(a.zoomLevel>1&&1===t.length&&e.preventDefault(),1===t.length&&p&&a.zoomLevel>1){const e={x:t[0].clientX-S.x,y:t[0].clientY-S.y},i=B(e,a.bounds);return{...n,[c]:{...a,position:i}}}if(2===t.length&&null!==D.current){const i=t[0].clientX-t[1].clientX,r=t[0].clientY-t[1].clientY,o=Math.sqrt(i*i+r*r),s=.005*(o-D.current);D.current=o;const l={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2},d=a.zoomLevel,u=Math.max(.1,Math.min(5,d+s));if(u!==d&&k.current){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(e){return n}if(!t||0===t.width||0===t.height)return n;const i=t.width/2,r=t.height/2,o=l.x-t.left-i,s=l.y-t.top-r,m=u/d,h=P(u,a.rotation),p={x:a.position.x+o*(1-m)*.5,y:a.position.y+s*(1-m)*.5},g=B(p,h);return k.current=l,{...n,[c]:{...a,zoomLevel:u,bounds:h,position:g}}}k.current=l}return n}))}),[A,a,p,S,c,B,P]),Q=m((()=>{g(!1),D.current=null,k.current=null}),[]),ee=f[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0};return{currentIndex:c,isModalOpen:u,zoomLevel:ee.zoomLevel,imagePosition:ee.position,isDragging:p,isFullscreen:v,rotationAngle:ee.rotation,showInfo:L,imageRef:R,containerRef:w,isTransitioning:N,setCurrentIndex:d,setZoomLevel:V,setImagePosition:Y,setIsDragging:g,setIsFullscreen:E,setRotationAngle:H,setShowInfo:b,openModal:z,closeModal:F,goToPrevious:G,goToNext:U,handleWheel:X,handleMouseDown:W,handleMouseMove:q,handleMouseUp:K,handleTouchStart:Z,handleTouchMove:J,handleTouchEnd:Q,handleDoubleClick:j,resetImageState:()=>{C((e=>({...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:a,startIndex:s,enableGestures:u,onImageChange:S,onClose:_||(()=>{})}),H=h((()=>a.map((e=>"string"==typeof e?{src:e}:e))),[a]),X=H[v],j=h((()=>["c-photo-viewer",`c-photo-viewer--thumbnails-${g}`,b?"c-photo-viewer--dragging":"",f?"c-photo-viewer--fullscreen":"",N?"c-photo-viewer--info-open":"",c?"is-disabled":"",l].filter(Boolean).join(" ")),[b,f,N,c,g,l]);return o((()=>{const e=()=>{I(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[I]),o((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),a.length?t("div",{className:j,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e("div",{className:"c-photo-viewer__backdrop",onClick:$}),t("div",{className:"c-photo-viewer__container",children:[e(sr,{currentIndex:v,imagesLength:a.length,onZoomOut:()=>O((e=>Math.max(e-.25,.1))),onResetZoom:()=>{Y()},onZoomIn:()=>O((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(p){if(f)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}I(!f)}},onClose:_||$,isFullscreen:f,zoomLevel:E,onRotate:()=>{R((e=>(e+90)%360))},onDownload:()=>{if(null==X||!X.src)return;const e=document.createElement("a");e.href=X.src,e.download=X.title||`image-${v+1}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&null!=X&&X.src)try{await navigator.share({title:X.title||"Shared Image",text:X.description||"Check out this image",url:X.src})}catch(e){}},showInfo:N,onToggleInfo:()=>w(!N),currentImage:X}),t("div",{className:"c-photo-viewer__content",children:[e(lr,{show:a.length>1,onPrev:D,onNext:k,currentIndex:v,imagesLength:a.length,enableKeyboardNav:d,onClose:_||$}),(null==X?void 0:X.src)&&e(cr,{imageRef:T,containerRef:A,src:X.src,alt:(null==X?void 0:X.alt)||`Image ${v+1}`,zoomLevel:E,dragPosition:L,isDragging:b,rotationAngle:C,isTransitioning:y,onMouseDown:M,onMouseMove:P,onMouseUp:B,onWheel:z,onTouchStart:F,onTouchMove:G,onTouchEnd:U,onDoubleClick:V})]}),"none"!==g&&e(dr,{images:H,currentIndex:v,goToImage:x}),e(ur,{show:N,image:X,onClose:()=>w(!1)})]})]}):null};mr.displayName="PhotoViewer";const hr=g({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),pr=n=>{let{content:a,position:s="top",trigger:l="click",className:c="",delay:d=0,offset:u=12,defaultOpen:m=!1,isOpen:h,onOpenChange:p,closeOnClickOutside:g=!0,closeOnEscape:S=!0,id:v,children:E}=n;const{isOpen:L,setIsOpen:b,triggerRef:f,popoverRef:C,arrowRef:T,popoverId:A,currentPosition:y}=(e=>{let{position:t="top",trigger:n="click",offset:a=12,delay:s=0,defaultOpen:l=!1,isOpen:c,onOpenChange:d,closeOnClickOutside:u=!0,closeOnEscape:m=!0,id:h}=e;const[p,g]=i(l),[S,_]=i("auto"===t?"top":t),v=r(null),E=r(null),L=r(null),b=r(null),f=h||`popover-${Math.random().toString(36).slice(2,11)}`,C=void 0!==c,N=C?c:p,T=e=>{C||g(e),d&&d(e)};o((()=>{if("hover"!==n||!v.current||!E.current)return;const e=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null),s>0?b.current=setTimeout((()=>{T(!0)}),s):T(!0)},t=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null),b.current=setTimeout((()=>{var e;null!==(e=E.current)&&void 0!==e&&e.matches(":hover")||T(!1)}),100)},a=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null)},i=()=>{T(!1)};return v.current.addEventListener("mouseenter",e),v.current.addEventListener("mouseleave",t),E.current.addEventListener("mouseenter",a),E.current.addEventListener("mouseleave",i),()=>{v.current&&(v.current.removeEventListener("mouseenter",e),v.current.removeEventListener("mouseleave",t)),E.current&&(E.current.removeEventListener("mouseenter",a),E.current.removeEventListener("mouseleave",i)),null!==b.current&&window.clearTimeout(b.current)}}),[n,s,N]);const A=e=>{if(!v.current||!E.current)return;const n=v.current.getBoundingClientRect(),i=E.current.getBoundingClientRect(),r=window.innerWidth,o=window.innerHeight,s=n.top<50||n.bottom>o-50||n.left<50||n.right>r-50;if("scroll"===(null==e?void 0:e.type)&&!s)return;const l=n.top,c=o-n.bottom,d=n.left,u=r-n.right;let m="auto"===t?"top":t;if("auto"===t){const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),m=e[0].position}else("top"===t&&l<i.height+a&&c>=i.height+a||"bottom"===t&&c<i.height+a&&l>=i.height+a||"left"===t&&d<i.width+a&&u>=i.width+a||"right"===t&&u<i.width+a&&d>=i.width+a)&&(m={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[t]);_(m);let h=0,p=0;switch(m){case"top":h=n.top-i.height-a,p=n.left+n.width/2-i.width/2;break;case"bottom":h=n.bottom+a,p=n.left+n.width/2-i.width/2;break;case"left":h=n.top+n.height/2-i.height/2,p=n.left-i.width-a;break;case"right":h=n.top+n.height/2-i.height/2,p=n.right+a}p<0?p=5:p+i.width>r&&(p=r-i.width-5),h<0?h=5:h+i.height>o&&(h=o-i.height-5);const g=h+window.scrollY,S=p+window.scrollX;E.current.style.position="absolute",E.current.style.top=`${g}px`,E.current.style.left=`${S}px`};return o((()=>{if(!N||!v.current||!E.current)return;A(),window.addEventListener("resize",A);let e=null;const t=t=>{e||(e=setTimeout((()=>{A(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{A()}),500);return()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[N,t,a]),o((()=>{if(!N||!u)return;const e=e=>{E.current&&!E.current.contains(e.target)&&v.current&&!v.current.contains(e.target)&&T(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[N,u]),o((()=>{if(!N||!m)return;const e=e=>{"Escape"===e.key&&T(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[N,m]),o((()=>()=>{null!==b.current&&window.clearTimeout(b.current)}),[]),{isOpen:N,setIsOpen:T,triggerRef:v,popoverRef:E,arrowRef:L,popoverId:f,currentPosition:S,updatePosition:A}})({position:s,trigger:l,offset:u,delay:d,defaultOpen:m,isOpen:h,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:S,id:v});return t(hr.Provider,{value:{isOpen:L,setIsOpen:b,triggerRef:f,popoverId:A,triggerType:l},children:[E,"undefined"!=typeof document&&_(t("div",{ref:C,className:`c-popover c-popover--${y} ${L?N.CLASSES.IS_OPEN:""} ${c}`,id:A,role:"tooltip","aria-hidden":!L,children:[e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:a})}),e("div",{ref:T,className:"c-popover__arrow"})]}),document.body)]})};pr.displayName="Popover";function gr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Sr(e,t){return a.useMemo((()=>null==e&&null==t?null:n=>{gr(e,n),gr(t,n)}),[e,t])}const _r=u(((n,a)=>{let{value:s=0,defaultValue:l,maxValue:c=5,allowHalf:d=!1,readOnly:u=!1,size:h="md",color:p,onChange:g,className:S="",label:_,id:v,useVanillaJS:E=!1,...L}=n;const b=r(null),f=r(null),{currentValue:C,hoverValue:N,focusedIndex:T,setHoverValue:A,setFocused:y,handleKeyDown:O}=(e=>{let{value:t=0,maxValue:n=5,allowHalf:a=!1,readOnly:r=!1,onChange:o}=e;const s=void 0!==o,[l,c]=i(t),[d,u]=i(null),[h,p]=i(null),g=s?t:l,S=m((e=>{r||u(e)}),[r]),_=m((()=>{r||u(null)}),[r]),v=m((e=>{r||(s||c(e),null==o||o(e))}),[r,o,s]),E=m(((e,t)=>{if(r)return;const i=a?.5:1;let l=g;switch(e.key){case"ArrowRight":case"ArrowUp":l=Math.min(n,g+i),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":l=Math.max(0,g-i),e.preventDefault();break;case"Home":l=0,e.preventDefault();break;case"End":l=n,e.preventDefault();break;case" ":case"Enter":l=t,e.preventDefault();break;default:return}l!==g&&(s||c(l),null==o||o(l))}),[g,n,a,r,o,s]);return{currentValue:g,hoverValue:d,focusedIndex:h,handleMouseEnter:S,handleMouseLeave:_,handleClick:v,handleKeyDown:E,setFocused:p,setHoverValue:u,isControlled:s}})({value:void 0!==s?s:l,maxValue:c,allowHalf:d,readOnly:u,onChange:g}),I=m(((e,t)=>{if(!u)if(d){const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,i=e.clientX<a?t-.5:t;A(Math.max(.5,i))}else A(t)}),[u,d,A]),R=m(((e,t)=>{if(u||!d)return;const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,i=e.clientX<a?t-.5:t;A(Math.max(.5,i))}),[u,d,A]),w=m((()=>{u||A(null)}),[u,A]),$=m(((e,t)=>{if(u)return;let n=t;if(d){const a=e.currentTarget.getBoundingClientRect(),i=a.left+a.width/2;n=e.clientX<i?t-.5:t,n=Math.max(.5,n)}null==g||g(n)}),[u,g,d]);o((()=>{if(E&&"undefined"!=typeof window&&b.current)return()=>{f.current&&f.current.destroy()}}),[E,s,l,c,d,u,h,p,g]),o((()=>{E&&f.current&&f.current.updateOptions({value:void 0!==s?s:l,maxValue:c,allowHalf:d,readOnly:u,size:h,color:p})}),[E,s,l,c,d,u,h,p]);const D=["c-rating","sm"===h?k.CLASSES.SMALL:"","lg"===h?k.CLASSES.LARGE:"",p?`c-rating--${p}`:"",S].filter(Boolean).join(" ");if(E)return e("div",{className:D,ref:Sr(b,a),id:v,...L});const x=null!==N?N:C;return e("div",{className:D,ref:Sr(b,a),id:v,"data-readonly":u?"true":"false",onMouseLeave:w,role:u?"img":"radiogroup","aria-label":_||`Rating: ${C} out of ${c} stars`,...L,children:(()=>{const n=[],a=d?Math.floor(2*x)/2:Math.round(x),i=v||`rating-${Math.random().toString(36).substring(2,9)}`;for(let r=1;r<=c;r++){const o=r<=Math.floor(a),s=d&&r-.5===a,l=["c-rating__star",o?k.CLASSES.FULL:"",s?k.CLASSES.HALF:"",p?`c-rating__star--${p}`:"",T===r?"c-rating__star--focused":""].filter(Boolean).join(" "),m=`${i}-star-${r}`;n.push(e("div",{id:m,className:l,"data-value":r,role:u?"presentation":"button",tabIndex:u?-1:0,"aria-label":`${r} ${1===r?"star":"stars"}`,"aria-checked":r<=a,"aria-setsize":c,"aria-posinset":r,onClick:e=>$(e,r),onMouseEnter:e=>I(e,r),onMouseMove:e=>R(e,r),onFocus:()=>y(r),onBlur:()=>y(null),onKeyDown:e=>O(e,r),children:t("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),e("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),e("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${i}-${r})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${i}-${r}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},r))}return n})()})}));_r.displayName="Rating";const vr=n=>{let{productName:a,productImage:s,initialRating:l=0,maxRating:c=5,allowHalf:d=!0,ratingColor:u="warning",onSubmit:m,className:h=""}=n;const[p,g]=i(l),[S,_]=i(""),[v,E]=i(!1),L=r(null),b=r(null);o((()=>{if("undefined"!=typeof window&&L.current)return()=>{b.current&&b.current.destroy()}}),[a,s,l,c,d,u,m]);const f=e=>{e.preventDefault(),m&&m(p,S),E(!0)},C=["c-product-review",h].filter(Boolean).join(" ");return v?e("div",{className:C,ref:L,children:t("div",{className:"c-product-review__success",children:[e("h3",{children:"Thank you for your review!"}),e("p",{children:"Your feedback helps us improve our products."}),e(le,{variant:"secondary",label:"Write another review",onClick:()=>{E(!1),g(0),_("")}})]})}):t("div",{className:C,ref:L,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",a]}),s&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:s,alt:a,className:"c-product-review__image"})})]}),t("form",{className:"c-product-review__form",onSubmit:f,children:[t("div",{className:"c-product-review__rating-container",children:[e("label",{className:"c-product-review__label",children:"Your Rating"}),t("div",{className:"c-rating-container",children:[e(_r,{value:p,onChange:g,allowHalf:d,maxValue:c,size:"lg",color:u}),e("span",{className:"c-rating__value",children:p>0?p.toFixed(1):"Select a rating"})]})]}),t("div",{className:"c-product-review__comment-container",children:[e("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),e("textarea",{id:"review-comment",className:"c-product-review__textarea",value:S,onChange:e=>_(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(le,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>f(new Event("click"))})})]})]})};vr.displayName="ProductReview";const Er=u(((t,n)=>{let{value:a,variant:i="primary",size:r="md",className:o="",disabled:s=!1,ariaLabel:l=Z.DEFAULTS.ARIA_LABEL}=t;const{progressValue:c,progressStyle:d,progressClasses:u}=(e=>{let{value:t,variant:n="primary",size:a="md",className:i=""}=e;const r=Math.min(Math.max(t,0),100),o="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":`${r}%`},progressClasses:[o,n?`${o}--${n}`:"",a?`${o}--${a}`:"",i||""].filter(Boolean).join(" ")}})({value:a,variant:i,size:r,className:o});return e("div",{ref:n,className:u,style:d,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c,"aria-label":l,"aria-disabled":s,children:e("div",{className:Z.CLASSES.BAR})})}));function Lr(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:i=t.valid,className:r=""}=e;let o="";a?o=U.CLASSES.INVALID:i&&(o=U.CLASSES.VALID);const s=n?U.CLASSES.DISABLED:"";return`${U.CLASSES.BASE} ${o} ${s} ${r}`.trim()}}}const br=n=>{let{label:a,checked:i=!1,onChange:r,className:o="",disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:m=!1,valid:h=!1,ariaLabel:p,ariaDescribedBy:g}=n;const{generateRadioClass:S}=Lr({disabled:s,invalid:m,valid:h}),_=S({className:o,disabled:s,invalid:m,valid:h});return t("div",{className:_,children:[e("input",{type:"radio",className:"c-radio__input",checked:i,onChange:r,disabled:s,required:l,id:c,name:d,value:u,"aria-label":a?void 0:p,"aria-describedby":g,"aria-invalid":m}),a&&e("label",{className:"c-radio__label",htmlFor:c,children:a})]})};function fr(e){const t={center:!1,breakout:!1,reverse:!1,...e};return{generateRiverClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const n=[w.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(w.CLASSES.CENTER),t.breakout&&n.push(w.CLASSES.BREAKOUT),t.reverse&&n.push(w.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>w.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>w.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}br.displayName="Radio";const Cr=n=>{let{title:a,text:i,actions:s,imageSrc:l,imageAlt:c="Image",center:d=!1,breakout:u=!1,reverse:m=!1,contentColumns:h,backgroundImageSrc:p,showOverlay:g=!0,contentWidth:S,className:_=""}=n;const v=r(null),E=r(null),{generateRiverClassNames:L,generateContentClass:b,generateVisualClass:f,hasBackgroundImage:C,hasForegroundImage:N,textContent:T}=fr({title:a,text:i,imageSrc:l,imageAlt:c,center:d,breakout:u,reverse:m,backgroundImageSrc:p,showOverlay:g,contentWidth:S});o((()=>{if("undefined"!=typeof window&&v.current)return Promise.resolve().then((function(){return oo})).then((e=>{let{default:t}=e;v.current&&(E.current=new t(v.current,{center:d,breakout:u,reverse:m,backgroundImageSrc:p,showOverlay:g}))})),()=>{E.current&&E.current.destroy()}}),[d,u,m,p,g]);const A=S?{[w.ATTRIBUTES.CONTENT_WIDTH]:S}:void 0,y=()=>C?t("div",{className:w.SELECTORS.BG.replace(".",""),children:[e("img",{src:p,alt:"Background",className:w.SELECTORS.BG_IMAGE.replace(".","")}),g&&e("div",{className:w.SELECTORS.OVERLAY.replace(".","")})]}):null,O=()=>N?e("div",{className:f(),children:e("div",{className:w.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:l,alt:c,className:w.SELECTORS.IMAGE.replace(".","")})})}):null;return h&&h.length>0?t("div",{className:L(_),ref:v,style:A,children:[y(),e("div",{className:`${w.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:w.SELECTORS.ROW.replace(".",""),children:[!m&&O(),t("div",{className:b(),children:[h.map(((t,n)=>e("div",{className:`${w.SELECTORS.CONTENT_COL.replace(".","")} ${w.SELECTORS[`CONTENT_COL_${t.type.toUpperCase()}`].replace(".","")}`,children:t.content},n))),s&&e("div",{className:w.SELECTORS.ACTIONS.replace(".",""),children:s})]}),m&&O()]})})]}):t("div",{className:L(_),ref:v,style:A,children:[y(),e("div",{className:`${w.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:w.SELECTORS.ROW.replace(".",""),children:[!m&&O(),t("div",{className:b(),children:[a&&e("h2",{className:w.SELECTORS.TITLE.replace(".",""),children:a}),T.map(((t,n)=>e("p",{className:w.SELECTORS.TEXT.replace(".",""),children:t},n))),s&&e("div",{className:w.SELECTORS.ACTIONS.replace(".",""),children:s})]}),m&&O()]})})]})};Cr.displayName="River";const Nr=n=>{let{title:a,label:i,text:s,actions:l,alignment:c="left",backgroundImageSrc:d,showOverlay:u=!1,imageSrc:m,imageAlt:h="Section image",size:p="md",skeleton:g=!1,className:S=""}=n;const _=r(null),v=r(null);o((()=>{if("undefined"!=typeof window&&_.current)return Promise.resolve().then((function(){return lo})).then((e=>{let{default:t}=e;_.current&&(v.current=new t(_.current,{alignment:c,backgroundImageSrc:d,showOverlay:u,size:p,skeleton:g}))})),()=>{v.current&&v.current.destroy()}}),[c,d,u,p,g]);const E=["c-sectionintro","center"===c?R.CLASSES.CENTER:"","sm"===p?R.CLASSES.SMALL:"","lg"===p?R.CLASSES.LARGE:"",d?"c-sectionintro--has-bg":"",S].filter(Boolean).join(" ");if(g)return e("div",{className:E,ref:_,children:t("div",{className:"c-sectionintro__container o-container",children:[i&&e("div",{className:"c-sectionintro__label",children:e("span",{className:"c-skeleton u-w-25"})}),e("div",{className:"c-sectionintro__title",children:e("span",{className:"c-skeleton"})}),s&&t("div",{className:"c-sectionintro__text",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"})]}),l&&e("div",{className:"c-sectionintro__actions",children:e("span",{className:"c-skeleton u-w-25"})}),m&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})});return t("div",{className:E,ref:_,children:[d?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:d,alt:"Background",className:"c-sectionintro__bg-image"}),u&&e("div",{className:"c-sectionintro__overlay"})]}):null,t("div",{className:"c-sectionintro__container o-container",children:[i&&e("div",{className:"c-sectionintro__label",children:i}),e("h2",{className:"c-sectionintro__title",children:a}),s&&e("div",{className:"c-sectionintro__text",children:s}),l&&e("div",{className:"c-sectionintro__actions",children:l}),m&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:m,alt:h,className:"c-sectionintro__image"})})]})]})};function Tr(e,t){return e.classList.contains(t)}Nr.displayName="SectionIntro";const Ar={House:"M240 121.6V240h-48v-72a24 24 0 0 0-24-24h-80a24 24 0 0 0-24 24v72H16V121.6a16 16 0 0 1 5.4-12L111.4 29a16 16 0 0 1 21.2 0l90 80.6a16 16 0 0 1 5.4 12Z",Package:"M223.68 66.15 135.68 18a15.88 15.88 0 0 0-15.36 0l-88 48.13a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03ZM128 32.59l74.12 40.55-32 17.56-74.12-40.55ZM96 68.08l73.56 40.23-32.04 17.53L64 85.64ZM40 95.83l72 39.39v79.23l-72-39.4Zm144 79.22v-79.23l72-39.39v79.22Z",Folder:"M216 72h-84.7L104.4 44.2A16.05 16.05 0 0 0 92.7 40H40a16 16 0 0 0-16 16v144.3a15.91 15.91 0 0 0 15.9 15.7h176.2a15.91 15.91 0 0 0 15.9-15.7V88a16 16 0 0 0-16-16Z",Tag:"M246.15 128.6 183.06 65.5l.09-24.21A16.05 16.05 0 0 0 167 25.14l-24.1.09L79.4 88.85a16 16 0 0 0 0 22.63l67.26 67.27a16 16 0 0 0 22.63 0l76.86-76.86a16 16 0 0 0 0-23.29ZM160 152l-56-56 56-56 56 56Zm-16-72a16 16 0 1 1-16 16 16 16 0 0 1 16-16Z",CaretRight:"M181.66 133.66l-80 80A8 8 0 0 1 88 208V48a8 8 0 0 1 13.66-5.66l80 80a8 8 0 0 1 0 11.32Z",CaretDown:"M208 96v16a8 8 0 0 1-2.34 5.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 32 112V96a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8Z",User:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z",Home:"M224 115.55V208a16 16 0 0 1-16 16h-40a16 16 0 0 1-16-16v-40a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v40a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-92.45a16 16 0 0 1 5.17-11.78l80-75.48a16 16 0 0 1 21.66 0l80 75.48a16 16 0 0 1 5.17 11.78Z",X:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128l66.35 66.34Z",Calendar:"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z",CaretDoubleLeft:"M181.66 181.66a8 8 0 0 1-11.32 0L120 131.31V160a8 8 0 0 1-13.66 5.66l-48-48a8 8 0 0 1 0-11.32l48-48A8 8 0 0 1 120 64v28.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0L102.63 98 64 128l38.63 30L114.34 146.63a8 8 0 0 1 11.32 0l56 56a8 8 0 0 1 0 11.32Z",CaretDoubleRight:"M74.34 181.66a8 8 0 0 0 11.32 0L136 131.31V160a8 8 0 0 0 13.66 5.66l48-48a8 8 0 0 0 0-11.32l-48-48A8 8 0 0 0 136 64v28.69L85.66 42.34a8 8 0 0 0-11.32 11.32l56 56a8 8 0 0 0 11.32 0l11.71-11.71L192 128l-38.63 30-11.71-11.71a8 8 0 0 0-11.32 0l-56 56a8 8 0 0 0 0 11.32Z"};function yr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;const n=Ar[e]||"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${n}"></path>\n </svg>`}function Or(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}var Ir=Object.freeze({__proto__:null,addClass:function(e,t){Tr(e,t)||e.classList.add(t)},createIconElement:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const a=document.createElement("span");return a.className=n||"c-icon",a.style.display="inline-flex",a.style.alignItems="center",a.style.justifyContent="center",a.innerHTML=yr(e,t),a},createPhosphorIcon:yr,generateUUID:Or,getAvailableIcons:function(){return Object.keys(Ar)},hasClass:Tr,removeClass:function(e,t){Tr(e,t)&&e.classList.remove(t)},toggleClass:function(e,t,n){e.classList.toggle(t,n)}});function Rr(e){const t={items:[],size:"md",...e},[n,a]=i(t.items||[]),[r,o]=i(""),s=e=>{if(!e.trim())return null;const t={id:Or(),text:e.trim(),completed:!1};return a((e=>[...e,t])),o(""),t};return{items:n,inputText:r,setInputText:o,addTodo:s,toggleTodo:e=>{let t=null;return a((n=>n.map((n=>n.id===e?(t={...n,completed:!n.completed},t):n)))),t},deleteTodo:e=>{const t=n.length;return a((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!r.trim())return;const n=s(r);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:i=!1}=e,r="md"===n?"":`c-todo--${n}`,o=i?"c-todo--disabled":"";return`${B.CLASSES.BASE} ${r} ${o} ${a}`.trim()},generateItemClasses:e=>{const t=e.completed?B.CLASSES.COMPLETED:"";return`${B.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?n:n.filter((e=>!e.completed))}}}function wr(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?Y.CLASSES.SMALL:Y.CLASSES.LARGE;let l="";i?l=Y.CLASSES.INVALID:r&&(l=Y.CLASSES.VALID);const c=a?Y.CLASSES.DISABLED:"";return`${Y.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}function $r(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:i=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:s=""}=e,l="md"===n?"":"sm"===n?H.CLASSES.SMALL:H.CLASSES.LARGE,c=a?`c-input--${a}`:"";let d="";r?d=H.CLASSES.INVALID:o&&(d=H.CLASSES.VALID);const u=i?H.CLASSES.DISABLED:"";return`${H.CLASSES.BASE} ${l} ${c} ${d} ${u} ${s}`.trim()}}}var Dr=Object.freeze({__proto__:null,DOTS:xi,useAccordion:J,useBadge:ie,useBreadcrumb:function(e){return{defaultOptions:{items:[],divider:b.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[b.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[b.CLASSES.ITEM,e.active||t?b.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>Boolean(e.href&&!e.active&&!t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(e){return[]}}}},useButton:se,useCard:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{elevationEffect:t=!1,elevationClass:n=V.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:o="click",focusEffect:s=!1,clickable:l=!1,onClick:c}=e,d=r(null),u=r(null),h=r(null),[p,g]=i(!1),[S,_]=i(!1),[v,E]=i(!1),[L,b]=i(!1),f=m((e=>{a&&"click"===o&&g((e=>!e)),c&&c(e)}),[a,o,c]),C=m((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===o&&g((e=>!e)),c&&c(e))}),[a,o,c]),N=m((()=>{b(!0),t&&_(!0),a&&"hover"===o&&g(!0)}),[t,a,o]),T=m((()=>{b(!1),t&&_(!1),a&&"hover"===o&&g(!1)}),[t,a,o]),A=m((()=>{E(!0)}),[]),y=m((()=>{E(!1)}),[]),O=m((()=>({className:[V.CLASSES.BASE,S?n:"",p?V.CLASSES.FLIPPED:"",v&&s?V.CLASSES.FOCUSED:"",l?V.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:d,tabxwIndex:l||a?0:-1,role:l?"button":void 0,onMouseEnter:N,onMouseLeave:T,onFocus:A,onBlur:y,onClick:f,onKeyDown:C})),[S,p,v,n,s,l,N,T,A,y,f,C,a]);return{cardRef:d,frontRef:u,backRef:h,isFlipped:p,isElevated:S,isFocused:v,isHovered:L,handleClick:f,handleKeyDown:C,handleMouseEnter:N,handleMouseLeave:T,handleFocus:A,handleBlur:y,getCardProps:O}},useCheckbox:Oi,useDataTable:$i,useEdgePanel:Wi,useForm:Ki,useFormGroup:function(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?F.CLASSES.SMALL:F.CLASSES.LARGE,l=i?F.CLASSES.INVALID:r?F.CLASSES.VALID:"",c=a?F.CLASSES.DISABLED:"";return`${F.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}},useHero:Ji,useInput:er,useModal:function(){let{isOpen:e,onOpenChange:t,onOpen:n,onClose:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,s]=i(!1),l=void 0!==e,c=l?!!e:r;o((()=>{l&&s(!!e)}),[e,l]);const d=m((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),u=m((()=>{d(!0)}),[d]),h=m((()=>{d(!1)}),[d]),p=m((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:h,toggle:p}},useNav:function(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:i=""}=e;return`c-nav ${"start"!==n?`c-nav--${n}`:""} ${"default"!==a?`c-nav--${a}`:""} ${i}`.trim()}}},useNavDropdown:function(e){const t={alignment:"start",megaMenu:!1,...e},n=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:n=t.alignment,megaMenu:a=t.megaMenu,className:i=""}=e,r=a?D.SELECTORS.MEGA_MENU.replace(".",""):D.SELECTORS.DROPDOWN_MENU.replace(".","");let o="";return"center"===n?o=`${r}--center`:"end"===n&&(o=`${r}--end`),`${r} ${o} ${i}`.trim()},isInFixedBottomNavbar:n,getIconClass:function(){return"c-nav__icon "+(n()?"icon-lux-caret-up":"icon-lux-caret-down")},getIconName:function(){return n()?"CaretUp":"CaretDown"}}},useNavItem:function(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:n=t.dropdown,megaMenu:a=t.megaMenu,active:i=t.active,disabled:r=t.disabled,className:o=""}=e;return`c-nav__item ${n&&!a?D.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${i?D.CLASSES.ACTIVE:""} ${r?D.CLASSES.DISABLED:""} ${o}`.trim()},generateNavLinkClass:function(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`c-nav__link ${arguments.length>0&&void 0!==arguments[0]&&arguments[0]?D.CLASSES.ACTIVE:""} ${e?"c-nav__link--disabled":""} ${t}`.trim()},handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}},useNavbar:rr,usePagination:Pi,useRadio:Lr,useRiver:fr,useSelect:wr,useSpinner:Di,useTextarea:$r,useTodo:Rr});const kr=n=>{let{options:a=[],value:s,onChange:l,onBlur:c,onFocus:d,placeholder:u="Select an option",className:m="",disabled:h=!1,required:p=!1,id:g,name:S,size:_="md",invalid:v=!1,valid:E=!1,multiple:L=!1,ariaLabel:b,ariaDescribedBy:f}=n;const{generateSelectClass:C}=wr({size:_,disabled:h,invalid:v,valid:E}),N=C({className:m,size:_,disabled:h,invalid:v,valid:E}),[T,A]=i(!1),[y,O]=i(u),I=r(null),R=r(null),w=r(null),$=r(null);o((()=>{if(s){const e=a.find((e=>e.value===s));e&&O(e.label)}else O(u)}),[s,a,u]),o((()=>{const e=e=>{I.current&&!I.current.contains(e.target)&&(A(!1),w.current&&(w.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);return t("div",{className:`${N} ${T?Y.CLASSES.IS_OPEN:""}`,ref:I,"aria-expanded":T,children:[t("select",{ref:$,value:s,onChange:l,onBlur:c,onFocus:d,disabled:h,required:p,id:g,name:S,multiple:L,"aria-label":b,"aria-describedby":f,"aria-invalid":v,style:{display:"none"},children:[u&&e("option",{value:"",disabled:!0,children:u}),a.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:Y.CLASSES.SELECTED,onClick:()=>{h||(!T&&w.current&&R.current?w.current.style.height=`${R.current.clientHeight}px`:w.current&&(w.current.style.height="0px"),A(!T))},"aria-disabled":h,children:y}),e("i",{className:`${Y.CLASSES.ICON_CARET} ${Y.CLASSES.TOGGLE_ICON}`}),e("div",{className:Y.CLASSES.SELECT_BODY,ref:w,style:{height:0},children:e("div",{className:Y.CLASSES.SELECT_PANEL,ref:R,children:e("ul",{className:Y.CLASSES.SELECT_ITEMS,children:a.map(((n,a)=>e("li",{className:Y.CLASSES.SELECT_ITEM,"data-value":n.value,onClick:()=>!n.disabled&&(e=>{if(O(e.label),A(!1),w.current&&(w.current.style.height="0px"),$.current&&($.current.value=e.value),l){const t={target:{name:S,value:e.value}};l(t)}})(n),children:t("label",{htmlFor:`SelectItem${a}`,className:"c-checkbox",children:[e("input",{type:"checkbox",id:`SelectItem${a}`,className:"c-checkbox__input c-select__item-input",checked:s===n.value,readOnly:!0,disabled:n.disabled}),e("div",{className:"c-select__item-label",children:n.label})]})},n.value)))})})})]})};kr.displayName="Select";const xr=n=>{let{items:a,activeIndex:s=0,vertical:l=!1,onStepChange:c,className:d=""}=n;const[u,m]=i(s),h=r(null),p=r(null);return o((()=>{if("undefined"!=typeof window&&h.current)return Promise.resolve().then((function(){return uo})).then((e=>{let{default:t}=e;h.current&&(p.current=new t(h.current,{activeIndex:u,vertical:l}))})),()=>{p.current&&p.current.destroy()}}),[]),o((()=>{u!==s&&(m(s),p.current&&p.current.setActive(s))}),[s]),e("div",{className:`c-steps ${l?y.CLASSES.VERTICAL:""} ${d}`,ref:h,role:"navigation","aria-label":"Steps",children:a.map(((n,a)=>t("div",{className:`c-steps__item ${a<=u?y.CLASSES.ACTIVE:""} ${a<u?y.CLASSES.COMPLETED:""}`,"aria-current":a===u?"step":void 0,children:[e("div",{className:"c-steps__line"}),t("div",{className:"c-steps__content",children:[e("div",{className:"c-steps__number",children:n.number}),e("div",{className:"c-steps__text",children:n.text}),n.content&&e("div",{className:"c-steps__custom-content",children:n.content})]})]},`step-${a}`)))})};xr.displayName="Steps";const Mr=n=>{let{items:a,activeIndex:s=A.DEFAULTS.ACTIVE_INDEX,onTabChange:l,className:c=""}=n;const[d,u]=i(s),m=r(null),h=r(null);o((()=>{if("undefined"!=typeof window&&m.current)return Promise.resolve().then((function(){return ho})).then((e=>{let{default:t}=e;m.current&&(h.current=new t(m.current))})),()=>{h.current&&h.current.destroy()}}),[]);return t("div",{className:`c-tabs js-atomix-tab ${c}`,ref:m,children:[e("ul",{className:"c-tabs__nav",children:a.map(((t,n)=>e("li",{className:"c-tabs__nav-item",children:e("button",{className:`c-tabs__nav-btn ${n===d?A.CLASSES.ACTIVE:""}`,onClick:()=>(e=>{u(e),l&&l(e)})(n),"data-tabindex":n,role:"tab","aria-selected":n===d,"aria-controls":`tab-panel-${n}`,children:t.label})},`tab-nav-${n}`)))}),e("div",{className:"c-tabs__panels",children:a.map(((t,n)=>e("div",{className:`c-tabs__panel ${n===d?A.CLASSES.ACTIVE:""}`,"data-tabindex":n,id:`tab-panel-${n}`,role:"tabpanel","aria-labelledby":`tab-nav-${n}`,style:{height:n===d?"auto":"0px",opacity:n===d?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:e("div",{className:"c-tabs__panel-body",children:t.content})},`tab-panel-${n}`)))})]})};Mr.displayName="Tab";const Pr=n=>{let{quote:a,author:i,size:s="",skeleton:l=!1,className:c=""}=n;const d=r(null),u=r(null);o((()=>{if("undefined"!=typeof window&&d.current)return Promise.resolve().then((function(){return go})).then((e=>{let{default:t}=e;d.current&&(u.current=new t(d.current,{size:s,skeleton:l}))})),()=>{u.current&&u.current.destroy()}}),[s,l]);const m=["c-testimonial","sm"===s?O.CLASSES.SMALL:"","lg"===s?O.CLASSES.LARGE:"",c].filter(Boolean).join(" ");return t("div",l?{className:m,ref:d,children:[t("blockquote",{className:"c-testimonial__quote",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"}),e("span",{className:"c-skeleton u-w-25"})]}),t("div",{className:"c-testimonial__author",children:[e("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t("div",{className:"c-testimonial__info u-w-75",children:[e("p",{className:"c-testimonial__author-name",children:e("span",{className:"c-skeleton u-w-25"})}),e("p",{className:"c-testimonial__author-role",children:e("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:m,ref:d,children:[e("blockquote",{className:"c-testimonial__quote",children:a}),i&&t("div",{className:"c-testimonial__author",children:[i.avatarSrc&&e("img",{src:i.avatarSrc,alt:i.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t("div",{className:"c-testimonial__info",children:[e("p",{className:"c-testimonial__author-name",children:i.name}),e("p",{className:"c-testimonial__author-role",children:i.role})]})]})]})};Pr.displayName="Testimonial";const Br=t=>{let{value:n,onChange:a,onBlur:i,onFocus:r,placeholder:o,className:s="",disabled:l=!1,required:c=!1,readOnly:d=!1,id:u,name:m,rows:h=4,cols:p,maxLength:g,minLength:S,size:_="md",variant:v,invalid:E=!1,valid:L=!1,autoFocus:b=!1,ariaLabel:f,ariaDescribedBy:C}=t;const{generateTextareaClass:N}=$r({size:_,variant:v,disabled:l,invalid:E,valid:L}),T=N({className:s,size:_,variant:v,disabled:l,invalid:E,valid:L});return e("textarea",{className:T,value:n,onChange:a,onBlur:i,onFocus:r,placeholder:o,disabled:l,required:c,readOnly:d,id:u,name:m,rows:h,cols:p,maxLength:g,minLength:S,autoFocus:b,"aria-label":f,"aria-describedby":C,"aria-invalid":E})};Br.displayName="Textarea";const zr=n=>{let{items:a=[],title:r="Todo List",onAddTodo:s,onToggleTodo:l,onDeleteTodo:c,size:d="md",placeholder:u="Add a new todo",showCompleted:m=!0,className:h="",disabled:p=!1}=n;const{inputText:g,setInputText:S,addTodo:_,generateTodoClasses:v,generateItemClasses:E}=Rr({items:a,title:r,size:d,placeholder:u,showCompleted:m,disabled:p}),[L,b]=i(a);o((()=>{b(a)}),[a]);const f=m?L:L.filter((e=>!e.completed)),C=v({size:d,className:h,disabled:p});return t("div",{className:C,children:[r&&e("h2",{className:"c-todo__title",children:r}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:Or(),text:g.trim(),completed:!1};b((e=>[...e,t])),s&&s(g),S("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:u,value:g,onChange:e=>S(e.target.value),disabled:p,"aria-label":"Add a new todo"}),e("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:p||!g.trim(),"aria-label":"Add todo",children:e(te,{name:"Plus",size:"sm"})})]})}),e("ul",{className:"c-todo__list",children:0===f.length?e("li",{className:"c-todo__empty",children:"No items to display"}):f.map((n=>e("li",{className:E(n),children:t("div",{className:"c-todo__item-content",children:[t("label",{className:"c-todo__checkbox-label",children:[e("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:n.completed,onChange:()=>(e=>{p||(b((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),l&&l(e))})(n.id),disabled:p,"aria-label":`Mark "${n.text}" as ${n.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:n.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{p||(b((t=>t.filter((t=>t.id!==e)))),c&&c(e))})(n.id),disabled:p,"aria-label":`Delete "${n.text}"`,children:e(te,{name:"Trash",size:"sm"})})]})},n.id)))})]})};zr.displayName="Todo";const Fr=t=>{let{initialOn:n=!1,onToggleOn:a,onToggleOff:s,disabled:l=!1,className:c=""}=t;const[d,u]=i(n),m=r(null),h=r(null);return o((()=>{if("undefined"==typeof window||!m.current)return;Promise.resolve().then((function(){return So})).then((e=>{let{default:t}=e;m.current&&(h.current=new t(m.current))}));const e=()=>{u(!0),a&&a()},t=()=>{u(!1),s&&s()},i=m.current;return null==i||i.addEventListener("toggle:on",e),null==i||i.addEventListener("toggle:off",t),n&&h.current&&h.current.turnOn(),()=>{null==i||i.removeEventListener("toggle:on",e),null==i||i.removeEventListener("toggle:off",t),h.current&&h.current.destroy()}}),[n,a,s]),o((()=>{h.current&&(d?h.current.turnOn():h.current.turnOff())}),[d]),e("div",{className:`c-toggle ${d?T.CLASSES.IS_ON:""} ${l?"is-disabled":""} ${c}`,ref:m,role:"switch","aria-checked":d,tabIndex:l?-1:0,"aria-disabled":l,children:e("div",{className:"c-toggle__switch"})})};Fr.displayName="Toggle";const Gr={trigger:C.DEFAULTS.TRIGGER,position:C.DEFAULTS.POSITION,offset:C.DEFAULTS.OFFSET,delay:C.DEFAULTS.DELAY,activeClass:C.CLASSES.IS_ACTIVE,contentIdAttr:C.ATTRIBUTES.CONTENT_ID,positionAttr:C.ATTRIBUTES.POSITION,triggerAttr:C.ATTRIBUTES.TRIGGER};let Ur=class e{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isActive=!1,this.selector=e||C.SELECTORS.TOOLTIP,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...Gr,...t},this.timeout=null,this.hideTimeout=null,this.$trigger=null,this.$content=null,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this._setPosition(),this._bindEvents())}_initializeElements(){if(!this.$element)return;const e=this.$element.parentElement;if(!e)return;this.$trigger=e.querySelector(C.SELECTORS.TRIGGER),this.$content=this.$element.querySelector(C.SELECTORS.CONTENT);const t=this.$element.getAttribute(this.options.positionAttr);t&&(this.options.position=t);const n=this.$element.getAttribute(this.options.triggerAttr);n&&(this.options.trigger=n)}_setPosition(){if(!this.$content||!this.$element)return;switch(this.$element.classList.remove(C.CLASSES.TOP,C.CLASSES.BOTTOM,C.CLASSES.LEFT,C.CLASSES.RIGHT,C.CLASSES.TOP_LEFT,C.CLASSES.TOP_RIGHT,C.CLASSES.BOTTOM_LEFT,C.CLASSES.BOTTOM_RIGHT),this.options.position){case"top":default:this.$element.classList.add(C.CLASSES.TOP);break;case"bottom":this.$element.classList.add(C.CLASSES.BOTTOM);break;case"left":this.$element.classList.add(C.CLASSES.LEFT);break;case"right":this.$element.classList.add(C.CLASSES.RIGHT);break;case"top-left":this.$element.classList.add(C.CLASSES.TOP_LEFT);break;case"top-right":this.$element.classList.add(C.CLASSES.TOP_RIGHT);break;case"bottom-left":this.$element.classList.add(C.CLASSES.BOTTOM_LEFT);break;case"bottom-right":this.$element.classList.add(C.CLASSES.BOTTOM_RIGHT)}const e=this.options.offset;switch(this.options.position){case"top":case"top-left":case"top-right":default:this.$element.style.bottom=`${e}px`;break;case"bottom":case"bottom-left":case"bottom-right":this.$element.style.top=`${e}px`;break;case"left":this.$element.style.right=`${e}px`;break;case"right":this.$element.style.left=`${e}px`}}_bindEvents(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.addEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.addEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.addEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("blur",this._handleTriggerLeave.bind(this)))}_handleTriggerEnter(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.timeout||(this.timeout=window.setTimeout((()=>{this.show(),this.timeout=null}),this.options.delay))}_handleTriggerLeave(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout=window.setTimeout((()=>{this.hide(),this.hideTimeout=null}),this.options.delay)}_handleTriggerClick(){this.$element&&this.$element.classList.contains(this.options.activeClass)?this.hide():this.show()}isInitialized(){return!!this.$element&&!!this.$trigger}isVisible(){return this.isActive}getElement(){return this.$element}getTriggerElement(){return this.$trigger}getPosition(){return this.options.position}setPosition(e){this.options.position!==e&&(this.options.position=e,this._setPosition())}show(){if(!this.$element)return;const e=new CustomEvent("tooltip:show",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.add(this.options.activeClass),this.isActive=!0)}hide(){if(!this.$element)return;const e=new CustomEvent("tooltip:hide",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.remove(this.options.activeClass),this.isActive=!1)}destroy(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.removeEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.removeEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.removeEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("blur",this._handleTriggerLeave.bind(this)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.$element&&this.$element.classList.remove(this.options.activeClass))}static initializeAll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.SELECTORS.TOOLTIP,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=document.querySelectorAll(t);return Array.from(a).map((t=>new e(t,n)))}};const Vr=n=>{let{content:a,children:i,position:s=C.DEFAULTS.POSITION,trigger:l=C.DEFAULTS.TRIGGER,className:c="",delay:d=C.DEFAULTS.DELAY,offset:u=C.DEFAULTS.OFFSET}=n;const m=r(null),h=r(null);return o((()=>(m.current&&(h.current=new Ur(m.current,{position:s,trigger:l,delay:d,offset:u})),()=>{h.current&&h.current.destroy()})),[s,l,d,u]),t("div",{className:"u-position-relative u-d-inline-block",children:[e("div",{className:`${C.SELECTORS.TRIGGER.substring(1)}${c?` ${c}`:""}`,children:i}),e("div",{className:`c-tooltip ${C.SELECTORS.TOOLTIP.substring(1)}`,ref:m,"data-tooltip-position":s,"data-tooltip-trigger":l,children:t("div",{className:`c-tooltip__content ${C.SELECTORS.CONTENT.substring(1)}`,children:[e("span",{className:C.SELECTORS.ARROW.substring(1)}),a]})})]})};Vr.displayName="Tooltip";const Yr=a=>{let{disabled:s=!1,maxSizeInMB:l=5,acceptedFileTypes:c=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:d=!1,title:u="Drag and Drop files here",supportedFilesText:m="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:h="Choose File",helperText:p=`Maximum size: ${l}MB`,icon:g=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:S,onFileUpload:_,onFileUploadComplete:v,onFileUploadError:E,className:L=""}=a;const b=r(null),f=r(null),C=r(null),[N,T]=i("idle"),[A,y]=i(!1),[O,I]=i(null),[R,w]=i(0),[D,k]=i(null),[x,M]=i(null),[P,B]=i(null),z=r(0);o((()=>{if("undefined"!=typeof window&&b.current)return Promise.resolve().then((function(){return vo})).then((e=>{let{default:t}=e;b.current&&(C.current=new t(b.current,{disabled:s,maxSizeInMB:l,acceptedFileTypes:c,multiple:d,onFileSelect:S,onFileUpload:(e,t)=>{w(t),k(`${Math.ceil((100-t)/5)} seconds left`),_&&_(e,t)},onFileUploadComplete:e=>{T("success"),B("Upload successful"),v&&v(e)},onFileUploadError:(e,t)=>{T("error"),M(t),E&&E(e,t)}}))})),()=>{C.current&&C.current.destroy()}}),[s,l,c,d,S,_,v,E]);const F=e=>{if(!e.length)return;const t=(d?e:[e[0]]).filter((e=>G(e)));t.length&&S&&S(t),t.length&&(I(t[0]||null),t[0]&&U(t[0]))},G=e=>{const t=1024*l*1024;if(e.size>t)return T("error"),M(`File too large. Maximum size is ${l}MB.`),!1;if(null!=c&&c.length){if(!c.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(`${n}/`)}return e.type===t})))return T("error"),M("File type not supported."),!1}return!0},U=e=>{T("loading"),w(0);let t=0;const n=setInterval((()=>{t+=5,t<100?(w(t),k(`${Math.ceil((100-t)/5)} seconds left`),_&&_(e,t)):(clearInterval(n),T("success"),B("Upload successful"),v&&v(e))}),500)},V=["c-upload",s?$.CLASSES.DISABLED:"","loading"===N?$.CLASSES.LOADING:"","success"===N?$.CLASSES.SUCCESS:"","error"===N?$.CLASSES.ERROR:"",A?$.CLASSES.DRAGGING:"",L].filter(Boolean).join(" "),Y=R>0?{[$.ATTRIBUTES.PERCENTAGE]:R}:{};return t("div",{className:V,ref:b,style:Y,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),s||(z.current++,1===z.current&&y(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),s||(z.current--,0===z.current&&y(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{var t;if(e.preventDefault(),e.stopPropagation(),s)return;if(z.current=0,y(!1),null===(t=e.dataTransfer.files)||void 0===t||!t.length)return;const n=Array.from(e.dataTransfer.files);F(n)},children:[t("div",{className:"c-upload__inner",children:[e("div",{className:"c-upload__icon",children:g}),e("h3",{className:"c-upload__title",children:u}),e("p",{className:"c-upload__text",children:m}),e("button",{className:"c-upload__btn c-btn c-btn--primary",disabled:s,onClick:()=>{f.current&&!s&&f.current.click()},children:h}),e("p",{className:"c-upload__helper-text",children:p}),e("input",{ref:f,type:"file",accept:c.join(","),multiple:d,style:{display:"none"},onChange:e=>{var t;if(null===(t=e.target.files)||void 0===t||!t.length)return;const n=Array.from(e.target.files);F(n)}})]}),("loading"===N||"success"===N||"error"===N)&&O&&t("div",{className:"c-upload__loader",children:[t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:O.name}),t("div",{className:"c-upload__loader-progress",children:["loading"===N&&R<100&&t(n,{children:[t("div",{className:"c-upload__loader-par",children:[R,"%"]}),D&&e("div",{className:"c-upload__loader-time",children:D})]}),"success"===N&&P,"error"===N&&x]})]}),t("div",{className:"c-upload__loader-control",children:["loading"===N&&R<100&&e("div",{className:"c-upload__loader-bar",children:t("svg",{children:[e("circle",{cx:"10",cy:"10",r:"10"}),e("circle",{cx:"10",cy:"10",r:"10"})]})}),e("button",{className:"c-upload__loader-close c-btn c-btn--icon",onClick:()=>{T("idle"),I(null),w(0),k(null),M(null),B(null),f.current&&(f.current.value="")},children:e("i","success"===N?{className:"icon-lux-check-circle-fill"}:{className:"icon-lux-x"})})]})]})]})};Yr.displayName="Upload";var Hr=Object.freeze({__proto__:null,Accordion:Q,Avatar:ne,AvatarGroup:ae,Badge:re,Breadcrumb:oe,Button:le,Callout:bi,Card:fi,Checkbox:Ii,ColorModeToggle:Ri,Countdown:wi,DataTable:Fi,DatePicker:Hi,Dropdown:ji,EdgePanel:qi,Form:Zi,Hero:Qi,Icon:te,Input:tr,List:nr,Messages:ar,Modal:ir,Navbar:or,Pagination:zi,PhotoViewer:mr,Popover:pr,ProductReview:vr,Progress:Er,Radio:br,Rating:_r,River:Cr,SectionIntro:Nr,Select:kr,Spinner:ki,Steps:xr,Tab:Mr,Testimonial:Pr,Textarea:Br,Todo:zr,Toggle:Fr,Tooltip:Vr,Upload:Yr});const Xr=Dr,jr=Ir,Wr=Object.freeze({__proto__:null}),qr=Object.freeze({__proto__:null,ACCORDION:v,AVATAR:X,AVATAR_GROUP:j,BADGE:E,BREADCRUMB:b,BUTTON:{BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},CALLOUT:{BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},CARD:V,CLASS_PREFIX:{COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},COUNTDOWN:{SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},DATA_TABLE_CLASSES:M,DATA_TABLE_SELECTORS:{TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},DATEPICKER:{SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},DROPDOWN:K,EDGE_PANEL:x,FORM:z,FORM_GROUP:F,HERO:f,INPUT:G,LIST:L,LIST_GROUP:{BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},MESSAGES:q,MODAL:W,NAV:D,NAVBAR:{SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},PAGINATION_DEFAULTS:P,PHOTOVIEWER:{SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},POPOVER:N,PROGRESS:Z,RADIO:U,RATING:k,RIVER:w,SECTION_INTRO:R,SELECT:Y,SIDE_MENU:{SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},SIZES:["sm","md","lg"],SPINNER:I,STEPS:y,TAB:A,TESTIMONIAL:O,TEXTAREA:H,THEME_COLORS:["primary","secondary","success","info","warning","error","light","dark"],TODO:B,TOGGLE:T,TOOLTIP:C,UPLOAD:$}),Kr=u(((t,n)=>{let{children:a,className:i="",justifyContent:r,alignItems:o,noGutters:s,...l}=t;const c=["o-grid"];return r&&c.push(`u-justify-content-${r}`),o&&c.push(`u-align-items-${o}`),s&&c.push("o-grid--no-gutters"),i&&c.push(i),e("div",{ref:n,className:c.join(" "),...l,children:a})}));Kr.displayName="Grid";const Zr=u(((t,n)=>{let{children:a,className:i="",xs:r,sm:o,md:s,lg:l,xl:c,xxl:d,offsetXs:u,offsetSm:m,offsetMd:h,offsetLg:p,offsetXl:g,offsetXxl:S,..._}=t;const v=!(r||o||s||l||c||d)?["o-grid__col","o-grid__col--auto"]:["o-grid__col"];return r&&("auto"===r?v.push("o-grid__col--auto"):v.push(`o-grid__col--${r}`)),o&&("auto"===o?v.push("o-grid__col--sm-auto"):v.push(`o-grid__col--sm-${o}`)),s&&("auto"===s?v.push("o-grid__col--md-auto"):v.push(`o-grid__col--md-${s}`)),l&&("auto"===l?v.push("o-grid__col--lg-auto"):v.push(`o-grid__col--lg-${l}`)),c&&("auto"===c?v.push("o-grid__col--xl-auto"):v.push(`o-grid__col--xl-${c}`)),d&&("auto"===d?v.push("o-grid__col--xxl-auto"):v.push(`o-grid__col--xxl-${d}`)),u&&v.push(`o-grid__offset--${u}`),m&&v.push(`o-grid__offset--sm-${m}`),h&&v.push(`o-grid__offset--md-${h}`),p&&v.push(`o-grid__offset--lg-${p}`),g&&v.push(`o-grid__offset--xl-${g}`),S&&v.push(`o-grid__offset--xxl-${S}`),i&&v.push(i),e("div",{ref:n,className:v.join(" "),..._,children:a})}));Zr.displayName="GridCol";const Jr=u(((t,n)=>{let{children:a,className:i="",type:r,...o}=t,s="o-container";return r&&(s=`o-container-${r}`),e("div",{ref:n,className:`${s} ${i}`.trim(),...o,children:a})}));Jr.displayName="Container";const Qr=u(((t,n)=>{let{children:a,className:i="",justifyContent:r,alignItems:o,noGutters:s,...l}=t;const c=["o-grid"];return r&&c.push(`u-justify-content-${r}`),o&&c.push(`u-align-items-${o}`),s&&c.push("o-grid--no-gutters"),i&&c.push(i),e("div",{ref:n,className:c.join(" "),...l,children:a})}));Qr.displayName="Row";var eo=Object.freeze({__proto__:null,Container:Jr,Grid:Kr,GridCol:Zr,Row:Qr});const to=u(((t,n)=>{let{children:s,className:d="",xs:u=1,sm:h,md:g,lg:S,xl:_,xxl:v,gap:E=16,animate:L=!0,imagesLoaded:b=!0,onLayoutComplete:f,onImageLoad:C,...N}=t;const[T,A]=i(u),[y,O]=i([]),[I,R]=i(!1),[w,$]=i(!1),D=r(null),k=r([]),x=r(0),M=r(0),P=r(new Map);o((()=>{$(!!b)}),[T,b]),p(n,(()=>D.current));const B=m((()=>{const e=window.innerWidth;return e>=1400&&void 0!==v?v:e>=1200&&void 0!==_?_:e>=992&&void 0!==S?S:e>=768&&void 0!==g?g:e>=576&&void 0!==h?h:u}),[u,h,g,S,_,v]);o((()=>{const e=()=>A(B());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[B]);const[z,F]=i([]);o((()=>{const e=[];l.forEach(s,((t,n)=>{var i;c(t)&&e.push({id:(null===(i=t.key)||void 0===i?void 0:i.toString())||`masonry-item-${n}`,element:t,position:null,ref:a.createRef()})})),F(e)}),[s]);const G=m((e=>{if(!P.current.get(e)){if(P.current.set(e,!0),x.current+=1,D.current&&b){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))})),null==C||C(x.current,M.current),x.current>=M.current&&M.current>0&&(R(!0),$(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{V(),$(!1)}))})),null==f||f())}}),[C,f,b]),U=m((()=>{if(!b||!D.current)return;P.current.clear(),x.current=0;const e=D.current.querySelectorAll("img");return M.current=e.length,0===e.length?(R(!0),$(!1),void(null==f||f())):($(!0),e.forEach((e=>{const t=e,n=e.closest(".o-masonry-grid > div");if(n&&n.classList.add("o-masonry-grid__item-loading"),e.complete)G(e);else{const n=()=>G(e);e.addEventListener("load",n),e.addEventListener("error",n),t._masonryLoadHandler=n}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[b,G,f]),V=m((()=>{if(!D.current||0===z.length)return;const e=(D.current.offsetWidth-E*(T-1))/T;k.current=Array(T).fill(0);const t=[];z.forEach(((n,a)=>{if(n.ref.current){const i=k.current.indexOf(Math.min(...k.current)),r=i*(e+E),o=k.current[i],s=n.ref.current.offsetHeight;k.current[i]=o+s+E,t[a]={left:r,top:o,width:e,height:s}}})),O(t)}),[z,T,E]);o((()=>{if(!D.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>V()))}));return t.observe(D.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[V]),a.useLayoutEffect((()=>{if(b){return U()}return V(),R(!0),void $(!1)}),[z,T,V,b,U]),a.useEffect((()=>{const e=[];return z.forEach((t=>{if(t.ref.current){const n=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))}))}));n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect()))}}),[z,V]);const Y=k.current.length>0?Math.max(...k.current):0,H=["o-masonry-grid",d,L?"o-masonry-grid--animate":"",w?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:D,className:H,style:{position:"relative",width:"100%",height:`${Y}px`,...N.style},...N,children:z.map(((t,n)=>{const a=y[n];return e("div",a?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));to.displayName="MasonryGrid";const no=u(((t,n)=>{let{children:a,className:i="",...r}=t;const o=["o-masonry-grid__item-inner"];return i&&o.push(i),e("div",{ref:n,className:o.join(" "),...r,children:a})}));no.displayName="MasonryGridItem";const ao={...eo,...Object.freeze({__proto__:null,MasonryGrid:to,MasonryGridItem:no})};const io={...Hr,composables:Xr,utils:jr,constants:qr,types:Wr,layouts:Object.freeze({__proto__:null,default:ao})},ro={center:!1,breakout:!1,reverse:!1,showOverlay:!0};var oo=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$element=e,this.options={...ro,...t},this.init()}init(){this.options.contentWidth&&this.$element.style.setProperty(w.ATTRIBUTES.CONTENT_WIDTH,this.options.contentWidth),this.options.backgroundImageSrc&&this.setupBackgroundImage()}setupBackgroundImage(){if(!this.$element||!this.options.backgroundImageSrc)return;let e=this.$element.querySelector(w.SELECTORS.BG);if(!e){e=document.createElement("div"),e.className=w.SELECTORS.BG.replace(".","");const t=document.createElement("img");if(t.src=this.options.backgroundImageSrc,t.alt="Background",t.className=w.SELECTORS.BG_IMAGE.replace(".",""),e.appendChild(t),this.options.showOverlay){const t=document.createElement("div");t.className=w.SELECTORS.OVERLAY.replace(".",""),e.appendChild(t)}this.$element.firstChild?this.$element.insertBefore(e,this.$element.firstChild):this.$element.appendChild(e)}}destroy(){}}});const so={alignment:"left",showOverlay:!1,size:"md",skeleton:!1};var lo=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||R.SELECTORS.SECTION_INTRO,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...so,...t},this._initialize()}_initialize(){if(this.$element&&("center"!==this.options.alignment||this.$element.classList.contains(R.CLASSES.CENTER)||this.$element.classList.add(R.CLASSES.CENTER),"sm"!==this.options.size||this.$element.classList.contains(R.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(R.CLASSES.LARGE)||this.$element.classList.add(R.CLASSES.LARGE):this.$element.classList.add(R.CLASSES.SMALL),this.options.backgroundImageSrc)){let e=this.$element.querySelector(".c-sectionintro__bg");if(!e){e=document.createElement("div"),e.className="c-sectionintro__bg";const t=document.createElement("img");if(t.className="c-sectionintro__bg-image",t.src=this.options.backgroundImageSrc,t.alt="Background",e.appendChild(t),this.options.showOverlay){const t=document.createElement("div");t.className="c-sectionintro__overlay",e.appendChild(t)}this.$element.insertBefore(e,this.$element.firstChild)}}}destroy(){if(this.$element&&(this.$element.classList.remove(R.CLASSES.CENTER),this.$element.classList.remove(R.CLASSES.SMALL),this.$element.classList.remove(R.CLASSES.LARGE),this.options.backgroundImageSrc)){const e=this.$element.querySelector(".c-sectionintro__bg");e&&this.$element.removeChild(e)}}}});const co={activeIndex:0,vertical:!1};var uo=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||y.SELECTORS.STEPS,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...co,...t},this.$items=null,this.activeIndex=this.options.activeIndex||0,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this.options.vertical&&!this.$element.classList.contains(y.CLASSES.VERTICAL)&&this.$element.classList.add(y.CLASSES.VERTICAL),this.setActive(this.activeIndex))}_initializeElements(){this.$element&&(this.$items=this.$element.querySelectorAll(y.SELECTORS.ITEM))}setActive(e){!this.$items||e<0||e>=this.$items.length||(this.$items.forEach(((t,n)=>{n<e?(t.classList.add(y.CLASSES.ACTIVE),t.classList.add(y.CLASSES.COMPLETED)):n===e?(t.classList.add(y.CLASSES.ACTIVE),t.classList.remove(y.CLASSES.COMPLETED)):(t.classList.remove(y.CLASSES.ACTIVE),t.classList.remove(y.CLASSES.COMPLETED))})),this.activeIndex=e)}next(){var e;this.activeIndex<((null===(e=this.$items)||void 0===e?void 0:e.length)||0)-1&&this.setActive(this.activeIndex+1)}previous(){this.activeIndex>0&&this.setActive(this.activeIndex-1)}destroy(){}}});const mo={navItems:A.SELECTORS.NAV_ITEMS,navBtn:A.SELECTORS.NAV_BTN,panels:A.SELECTORS.PANELS,panelBodys:A.SELECTORS.PANEL_BODIES,activeClass:A.CLASSES.ACTIVE,activeIndex:A.DEFAULTS.ACTIVE_INDEX};var ho=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||A.SELECTORS.TAB,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...mo,...t},this.$navItems=null,this.$panels=null,this.$panelBodys=null,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this._showTab(this.options.activeIndex),this._bindEvents())}_initializeElements(){this.$element&&(this.$navItems=this.$element.querySelectorAll(this.options.navItems),this.$panels=this.$element.querySelectorAll(this.options.panels),this.$panelBodys=this.$element.querySelectorAll(this.options.panelBodys))}_bindEvents(){this.$navItems&&this.$navItems.forEach((e=>{const t=e.querySelector(this.options.navBtn);t&&t.addEventListener("click",(()=>this._handleTabClick(t)))}))}_handleTabClick(e){const t=e.dataset.tabindex;void 0!==t&&(this._hideAllTabs(),this._showTab(t))}_hideAllTabs(){this.$panels&&this.$navItems&&(this.$panels.forEach((e=>{e.style.height="0px",e.classList.remove(this.options.activeClass),e.style.opacity="0"})),this.$navItems.forEach((e=>{const t=e.querySelector(this.options.navBtn);t&&t.classList.remove(this.options.activeClass)})))}_showTab(e){this.$panels&&this.$navItems&&this.$panelBodys&&(this.$panels.forEach(((t,n)=>{if(t.dataset.tabindex==e.toString()){var a;const e=null===(a=this.$panelBodys)||void 0===a?void 0:a[n];e&&(t.classList.add(this.options.activeClass),requestAnimationFrame((()=>{t.style.height=`${e.clientHeight}px`,t.style.opacity="1"})))}})),this.$navItems.forEach(((t,n)=>{const a=t.querySelector(this.options.navBtn);a&&a.dataset.tabindex==e.toString()&&a.classList.add(this.options.activeClass)})))}destroy(){this.$element&&this.$navItems&&this.$navItems.forEach((e=>{const t=e.querySelector(this.options.navBtn);t&&t.removeEventListener("click",(()=>this._handleTabClick(t)))}))}}});const po={size:"",skeleton:!1};var go=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||O.SELECTORS.TESTIMONIAL,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...po,...t},this._initialize()}_initialize(){this.$element&&("sm"!==this.options.size||this.$element.classList.contains(O.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(O.CLASSES.LARGE)||this.$element.classList.add(O.CLASSES.LARGE):this.$element.classList.add(O.CLASSES.SMALL))}destroy(){}}});var So=Object.freeze({__proto__:null,default:class{constructor(e){this.element=e,this.isOn=!1,this._initialize()}_initialize(){this._bindEvents(),this.element.classList.contains(T.CLASSES.IS_ON)&&(this.isOn=!0)}_bindEvents(){this.element.addEventListener("click",this._handleToggle.bind(this))}_handleToggle(){this.isOn?this.turnOff():this.turnOn()}turnOn(){this.element.classList.add(T.CLASSES.IS_ON),this.isOn=!0,this.element.dispatchEvent(new CustomEvent("toggle:on",{bubbles:!0}))}turnOff(){this.element.classList.remove(T.CLASSES.IS_ON),this.isOn=!1,this.element.dispatchEvent(new CustomEvent("toggle:off",{bubbles:!0}))}destroy(){this.element.removeEventListener("click",this._handleToggle)}}});const _o={disabled:!1,maxSizeInMB:5,acceptedFileTypes:["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:!1};var vo=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||$.SELECTORS.UPLOAD,this.$element="string"==typeof e?document.querySelector(e):e,this.options={..._o,...t},this.$input=null,this.$button=null,this.$loader=null,this.$loaderTitle=null,this.$loaderProgress=null,this.$loaderClose=null,this.currentFile=null,this.dragCounter=0,this._initialize()}_initialize(){var e,t,n;this.$element&&(this._createHiddenInput(),this.$button=this.$element.querySelector($.SELECTORS.BUTTON),this.$loader=this.$element.querySelector($.SELECTORS.LOADER),this.$loaderTitle=null===(e=this.$element)||void 0===e?void 0:e.querySelector($.SELECTORS.LOADER_TITLE),this.$loaderProgress=null===(t=this.$element)||void 0===t?void 0:t.querySelector($.SELECTORS.LOADER_PROGRESS),this.$loaderClose=null===(n=this.$element)||void 0===n?void 0:n.querySelector($.SELECTORS.LOADER_CLOSE),this.options.disabled&&this.disable(),this._setupEventListeners())}_createHiddenInput(){var e;if(!this.$element)return;const t=document.createElement("input");t.type="file",t.style.display="none",t.accept=(null===(e=this.options.acceptedFileTypes)||void 0===e?void 0:e.join(","))||"",t.multiple=!!this.options.multiple,this.$element.appendChild(t),this.$input=t}_setupEventListeners(){this.$element&&this.$input&&this.$button&&(this.$button.addEventListener("click",this._handleButtonClick.bind(this)),this.$input.addEventListener("change",this._handleFileSelect.bind(this)),this.$element.addEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.addEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.addEventListener("dragover",this._handleDragOver.bind(this)),this.$element.addEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.addEventListener("click",this._handleClose.bind(this)))}_handleButtonClick(e){e.preventDefault(),this.$input&&!this.options.disabled&&this.$input.click()}_handleFileSelect(e){var t;if(null===(t=this.$input)||void 0===t||null===(t=t.files)||void 0===t||!t.length)return;const n=Array.from(this.$input.files);this._processFiles(n)}_handleDragEnter(e){var t;(e.preventDefault(),this.options.disabled)||(this.dragCounter++,1===this.dragCounter&&(null===(t=this.$element)||void 0===t||t.classList.add($.CLASSES.DRAGGING)))}_handleDragLeave(e){var t;(e.preventDefault(),this.options.disabled)||(this.dragCounter--,0===this.dragCounter&&(null===(t=this.$element)||void 0===t||t.classList.remove($.CLASSES.DRAGGING)))}_handleDragOver(e){e.preventDefault(),this.options.disabled}_handleDrop(e){var t,n;if(e.preventDefault(),this.options.disabled)return;if(this.dragCounter=0,null===(t=this.$element)||void 0===t||t.classList.remove($.CLASSES.DRAGGING),null===(n=e.dataTransfer)||void 0===n||!n.files.length)return;const a=Array.from(e.dataTransfer.files);this._processFiles(a)}_handleClose(e){e.preventDefault(),this.setStatus("idle"),this.setFile(null),this.$input&&(this.$input.value="")}_processFiles(e){if(!e.length)return;const t=(this.options.multiple?e:[e[0]]).filter((e=>this._validateFile(e)));t.length&&this.options.onFileSelect&&this.options.onFileSelect(t),t.length&&(this.setFile(t[0]),this._simulateUpload(t[0]))}_validateFile(e){var t;const n=1024*(this.options.maxSizeInMB||5)*1024;if(e.size>n)return this.setStatus("error",`File too large. Maximum size is ${this.options.maxSizeInMB}MB.`),!1;if(null!==(t=this.options.acceptedFileTypes)&&void 0!==t&&t.length){if(!this.options.acceptedFileTypes.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(`${n}/`)}return e.type===t})))return this.setStatus("error","File type not supported."),!1}return!0}_simulateUpload(e){this.setStatus("loading");let t=0;const n=setInterval((()=>{t+=5,t<100?(this.setProgress(t,`${Math.ceil((100-t)/5)} seconds left`),this.options.onFileUpload&&this.options.onFileUpload(e,t)):(clearInterval(n),this.setStatus("success","Upload successful"),this.options.onFileUploadComplete&&this.options.onFileUploadComplete(e))}),500)}setFile(e){this.currentFile=e,e&&this.$loaderTitle&&(this.$loaderTitle.textContent=e.name)}setProgress(e,t){if(!this.$element||!this.$loaderProgress)return;this.$element.style.setProperty($.ATTRIBUTES.PERCENTAGE,e.toString());const n=this.$element.querySelector($.SELECTORS.LOADER_PAR),a=this.$element.querySelector($.SELECTORS.LOADER_TIME);n&&(n.textContent=`${e}%`),a&&t&&(a.textContent=t)}setStatus(e,t){if(this.$element){switch(this.$element.classList.remove($.CLASSES.LOADING,$.CLASSES.SUCCESS,$.CLASSES.ERROR),e){case"loading":this.$element.classList.add($.CLASSES.LOADING);break;case"success":this.$element.classList.add($.CLASSES.SUCCESS);break;case"error":this.$element.classList.add($.CLASSES.ERROR)}t&&this.$loaderProgress&&(this.$loaderProgress.textContent=t)}}disable(){this.$element&&this.$button&&(this.$element.classList.add($.CLASSES.DISABLED),this.$button.disabled=!0,this.options.disabled=!0)}enable(){this.$element&&this.$button&&(this.$element.classList.remove($.CLASSES.DISABLED),this.$button.disabled=!1,this.options.disabled=!1)}destroy(){this.$element&&this.$input&&this.$button&&(this.$button.removeEventListener("click",this._handleButtonClick.bind(this)),this.$input.removeEventListener("change",this._handleFileSelect.bind(this)),this.$element.removeEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.removeEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.removeEventListener("dragover",this._handleDragOver.bind(this)),this.$element.removeEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.removeEventListener("click",this._handleClose.bind(this)),this.$input.parentNode&&this.$input.parentNode.removeChild(this.$input))}}});export{Q as Accordion,ne as Avatar,ae as AvatarGroup,re as Badge,oe as Breadcrumb,le as Button,bi as Callout,fi as Card,Ii as Checkbox,Ri as ColorModeToggle,wi as Countdown,Fi as DataTable,Hi as DatePicker,ji as Dropdown,qi as EdgePanel,Zi as Form,Qi as Hero,te as Icon,tr as Input,nr as List,ar as Messages,ir as Modal,or as Navbar,zi as Pagination,mr as PhotoViewer,pr as Popover,vr as ProductReview,Er as Progress,br as Radio,_r as Rating,Cr as River,Nr as SectionIntro,kr as Select,ki as Spinner,xr as Steps,Mr as Tab,Pr as Testimonial,Br as Textarea,zr as Todo,Fr as Toggle,Vr as Tooltip,Yr as Upload,Xr as composables,qr as constants,io as default,Wr as types,jr as utils};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useState as i,useRef as r,useEffect as o,useId as s,Children as l,isValidElement as c,cloneElement as d,forwardRef as u,useCallback as m,useMemo as h,useImperativeHandle as p,createContext as g}from"react";import*as S from"phosphor-react";import{createPortal as _}from"react-dom";const v={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},E={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},L={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},b={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},f={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh"}},C={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},N={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},T={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},A={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},y={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},O={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},I={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},R={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},w={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},$={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},D={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},k={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},x={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},M={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},P={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},B={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},z={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},F={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},G={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},U={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},V={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",ROW:"c-card--row",FLAT:"c-card--flat",ACTIVE:"is-active",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable"},DEFAULTS:{HOVER:!0}},Y={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},H={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},X={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},j={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},W={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},q={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},K={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},Z={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}};function J(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,s]=i(t.defaultOpen||!1),l=n?t.isOpen:a,[c,d]=i(l?"auto":"0px"),u=r(null),m=r(null),h=()=>{if(m.current&&u.current){const e=l?`${m.current.clientHeight}px`:"0px";u.current.style.setProperty(v.CSS_VARS.PANEL_HEIGHT,e),d(e)}};o((()=>{h()}),[l]),o((()=>{const e=()=>{l&&h()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l]);return{state:{isOpen:l,panelHeight:c},toggle:()=>{t.disabled||(n?t.onOpenChange&&t.onOpenChange(!l):s((e=>!e)))},updatePanelHeight:h,panelRef:u,contentRef:m,generateClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return`c-accordion ${l?v.CLASSES.IS_OPEN:""} ${t.disabled?v.CLASSES.IS_DISABLED:""} ${e}`.trim()},generateHeaderClassNames:()=>`c-accordion__header ${"left"===t.iconPosition?"c-accordion__header--icon-left":""}`.trim()}}const Q=n=>{let{title:a,children:i,defaultOpen:r=!1,isOpen:o,onOpenChange:l,disabled:c=!1,iconPosition:d="right",icon:u,className:m=""}=n;const h=s(),p=`accordion-header-${h}`,g=`accordion-panel-${h}`,{state:S,toggle:_,updatePanelHeight:E,panelRef:L,contentRef:b,generateClassNames:f,generateHeaderClassNames:C}=J({defaultOpen:r,disabled:c,iconPosition:d,isOpen:o,onOpenChange:l}),N=e("i",{className:"c-accordion__icon",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("polyline",{points:"6 9 12 15 18 9"})})});return t("div",{className:f(m),children:[t("button",{id:p,className:C(),onClick:_,"aria-expanded":S.isOpen,"aria-controls":g,disabled:c,type:"button",children:[e("span",{className:"c-accordion__title",children:a}),u||N]}),e("div",{id:g,className:v.SELECTORS.PANEL.replace(".",""),ref:L,role:"region","aria-labelledby":p,children:e("div",{className:v.SELECTORS.BODY.replace(".",""),ref:b,children:i})})]})};Q.displayName="Accordion";const ee={xs:16,sm:20,md:24,lg:32,xl:40},te=t=>{let{name:n,size:a="md",weight:i="regular",color:r,className:o="",alt:s}=t;const l=S[n];if(!l)return null;return e("span",{className:`c-icon c-icon--${a} ${o}`,"aria-hidden":!s,title:s,children:e(l,{size:"string"==typeof a?ee[a]||24:a,weight:i,color:r,"aria-label":s})})};te.displayName="Icon";const ne=t=>{let{src:n,alt:a="Avatar",initials:r,icon:o,size:s="md",circle:l=!1,className:c="",disabled:d=!1,onClick:u}=t;const[m,h]=i(!1),p=[X.CLASSES.BASE,"md"!==s&&`c-avatar--${s}`,l&&X.CLASSES.CIRCLE,d&&"is-disabled",c].filter(Boolean).join(" ");return e("div",{className:p,onClick:u?e=>{!d&&u&&u(e)}:void 0,role:u?"button":void 0,tabIndex:u&&!d?0:void 0,"aria-disabled":d||void 0,children:n&&!m?e("img",{src:n,alt:a,className:"c-avatar__image",onError:()=>{h(!0)}}):e("span",r?{className:"c-avatar__initials",children:r}:o?{className:"c-avatar__icon",children:o}:{className:"c-avatar__icon",children:e(te,{name:"User",size:"xs"===s?"xs":"sm"===s?"sm":"md"})})})};ne.displayName="Avatar";const ae=n=>{let{children:a,max:i,stacked:r=!1,className:o="",moreText:s}=n;const u=[j.CLASSES.BASE,r&&j.CLASSES.STACKED,o].filter(Boolean).join(" "),m=l.toArray(a).filter((e=>c(e)&&e.type===ne)),h=void 0!==i&&m.length>i,p=h?m.slice(0,i):m,g=m.length-(i||0),S=c(m[0])?m[0].props:null,_=(null==S?void 0:S.size)||"md",v=(null==S?void 0:S.circle)||!1,E=[X.CLASSES.BASE,j.CLASSES.MORE,"md"!==_&&`c-avatar--${_}`,v&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:u,children:[p.map(((e,t)=>c(e)?d(e,{key:t,...e.props}):null)),h&&e("div",{className:E,children:s||`+${g}`})]})};function ie(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:i=t.disabled,className:r=""}=e;return`${E.BASE_CLASS} ${n?`${E.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${E.SIZE_PREFIX}${a}`} ${i?"c-badge--disabled":""} ${r}`.trim()}}}ae.displayName="AvatarGroup";const re=n=>{let{label:a,variant:i="primary",size:r="md",disabled:o=!1,icon:s,className:l=""}=n;const{generateBadgeClass:c}=ie({variant:i,size:r,disabled:o}),d=c({variant:i,size:r,disabled:o,className:l});return t("span",{className:d,"aria-disabled":o,children:[s&&e("span",{className:E.ICON_CLASS,children:s}),e("span",{children:a})]})};re.displayName="Badge";const oe=a=>{let{items:i,divider:r,className:o="",ariaLabel:s="Breadcrumb",LinkComponent:l}=a;const c=[b.CLASSES.BASE,o].filter(Boolean).join(" ");return e("nav",{"aria-label":s,children:e("ol",{className:c,children:i.map(((a,r)=>{const o=r===i.length-1,s=[b.CLASSES.ITEM,a.active||o?b.CLASSES.ACTIVE:""].filter(Boolean).join(" "),c=t(n,{children:[a.icon&&e("span",{className:"c-breadcrumb__icon",children:a.icon}),a.label]}),d={href:a.href,className:b.CLASSES.LINK,onClick:a.onClick};return e("li",{className:s,children:a.href&&!a.active?e(l||"a",{...d,children:c}):e("span",{className:b.CLASSES.LINK,children:c})},r)}))})})};function se(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:i=t.disabled,rounded:r=t.rounded,iconOnly:o=!1,className:s=""}=e;return`c-btn c-btn--${n} ${"md"===a?"":`c-btn--${a}`} ${o?"c-btn--icon":""} ${r?"c-btn--rounded":""} ${i?"c-btn--disabled":""} ${s}`.trim()},handleClick:e=>()=>{!t.disabled&&e&&e()}}}oe.displayName="Breadcrumb";const le=u(((n,a)=>{let{label:i,children:r,onClick:o,variant:s="primary",size:l="md",disabled:c=!1,icon:d,iconOnly:u=!1,rounded:m=!1,className:h="",as:p="button",...g}=n;const{generateButtonClass:S,handleClick:_}=se({variant:s,size:l,disabled:c,rounded:m}),v={ref:a,className:S({variant:s,size:l,disabled:c,rounded:m,iconOnly:u,className:h}),onClick:_(o),disabled:c,"aria-disabled":c,...g};return t(p,{...v,children:[d&&e("span",{className:"button__icon",children:d}),!u&&e("span",{className:"button__label",children:i||r})]})}));le.displayName="Button";var ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ue=function(e){try{return!!e()}catch(e){return!0}},me=!ue((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),he=me,pe=Function.prototype,ge=pe.call,Se=he&&pe.bind.bind(ge,ge),_e=he?Se:function(e){return function(){return ge.apply(e,arguments)}},ve=_e({}.isPrototypeOf),Ee=function(e){return e&&e.Math===Math&&e},Le=Ee("object"==typeof globalThis&&globalThis)||Ee("object"==typeof window&&window)||Ee("object"==typeof self&&self)||Ee("object"==typeof ce&&ce)||Ee("object"==typeof ce&&ce)||function(){return this}()||Function("return this")(),be=me,fe=Function.prototype,Ce=fe.apply,Ne=fe.call,Te="object"==typeof Reflect&&Reflect.apply||(be?Ne.bind(Ce):function(){return Ne.apply(Ce,arguments)}),Ae=_e,ye=Ae({}.toString),Oe=Ae("".slice),Ie=function(e){return Oe(ye(e),8,-1)},Re=Ie,we=_e,$e=function(e){if("Function"===Re(e))return we(e)},De="object"==typeof document&&document.all,ke=void 0===De&&void 0!==De?function(e){return"function"==typeof e||e===De}:function(e){return"function"==typeof e},xe={},Me=!ue((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Pe=me,Be=Function.prototype.call,ze=Pe?Be.bind(Be):function(){return Be.apply(Be,arguments)},Fe={},Ge={}.propertyIsEnumerable,Ue=Object.getOwnPropertyDescriptor,Ve=Ue&&!Ge.call({1:2},1);Fe.f=Ve?function(e){var t=Ue(this,e);return!!t&&t.enumerable}:Ge;var Ye,He,Xe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},je=ue,We=Ie,qe=Object,Ke=_e("".split),Ze=je((function(){return!qe("z").propertyIsEnumerable(0)}))?function(e){return"String"===We(e)?Ke(e,""):qe(e)}:qe,Je=function(e){return null==e},Qe=Je,et=TypeError,tt=function(e){if(Qe(e))throw new et("Can't call method on "+e);return e},nt=Ze,at=tt,it=function(e){return nt(at(e))},rt=ke,ot=function(e){return"object"==typeof e?null!==e:rt(e)},st={},lt=st,ct=Le,dt=ke,ut=function(e){return dt(e)?e:void 0},mt=Le.navigator,ht=mt&&mt.userAgent,pt=Le,gt=ht?String(ht):"",St=pt.process,_t=pt.Deno,vt=St&&St.versions||_t&&_t.version,Et=vt&&vt.v8;Et&&(He=(Ye=Et.split("."))[0]>0&&Ye[0]<4?1:+(Ye[0]+Ye[1])),!He&>&&(!(Ye=gt.match(/Edge\/(\d+)/))||Ye[1]>=74)&&(Ye=gt.match(/Chrome\/(\d+)/))&&(He=+Ye[1]);var Lt=He,bt=ue,ft=Le.String,Ct=!!Object.getOwnPropertySymbols&&!bt((function(){var e=Symbol("symbol detection");return!ft(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Lt&&Lt<41})),Nt=Ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Tt=function(e,t){return arguments.length<2?ut(lt[e])||ut(ct[e]):lt[e]&<[e][t]||ct[e]&&ct[e][t]},At=ke,yt=ve,Ot=Object,It=Nt?function(e){return"symbol"==typeof e}:function(e){var t=Tt("Symbol");return At(t)&&yt(t.prototype,Ot(e))},Rt=String,wt=ke,$t=function(e){try{return Rt(e)}catch(e){return"Object"}},Dt=TypeError,kt=function(e){if(wt(e))return e;throw new Dt($t(e)+" is not a function")},xt=kt,Mt=Je,Pt=ze,Bt=ke,zt=ot,Ft=TypeError,Gt={exports:{}},Ut=Le,Vt=Object.defineProperty,Yt=Le,Ht=function(e,t){try{Vt(Ut,e,{value:t,configurable:!0,writable:!0})}catch(n){Ut[e]=t}return t},Xt="__core-js_shared__",jt=Gt.exports=Yt[Xt]||Ht(Xt,{});(jt.versions||(jt.versions=[])).push({version:"3.43.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Wt=Gt.exports,qt=tt,Kt=Object,Zt=function(e){return Kt(qt(e))},Jt=_e({}.hasOwnProperty),Qt=Object.hasOwn||function(e,t){return Jt(Zt(e),t)},en=_e,tn=0,nn=Math.random(),an=en(1.1.toString),rn=function(e,t){return Wt[e]||(Wt[e]=t||{})},on=Qt,sn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+an(++tn+nn,36)},ln=Ct,cn=Nt,dn=Le.Symbol,un=rn("wks"),mn=cn?dn.for||dn:dn&&dn.withoutSetter||sn,hn=function(e){return on(un,e)||(un[e]=ln&&on(dn,e)?dn[e]:mn("Symbol."+e)),un[e]},pn=ze,gn=ot,Sn=It,_n=function(e,t){var n=e[t];return Mt(n)?void 0:xt(n)},vn=function(e,t){var n,a;if("string"===t&&Bt(n=e.toString)&&!zt(a=Pt(n,e)))return a;if(Bt(n=e.valueOf)&&!zt(a=Pt(n,e)))return a;if("string"!==t&&Bt(n=e.toString)&&!zt(a=Pt(n,e)))return a;throw new Ft("Can't convert object to primitive value")},En=TypeError,Ln=hn("toPrimitive"),bn=function(e,t){if(!gn(e)||Sn(e))return e;var n,a=_n(e,Ln);if(a){if(void 0===t&&(t="default"),n=pn(a,e,t),!gn(n)||Sn(n))return n;throw new En("Can't convert object to primitive value")}return void 0===t&&(t="number"),vn(e,t)},fn=It,Cn=function(e){var t=bn(e,"string");return fn(t)?t:t+""},Nn=ot,Tn=Le.document,An=Nn(Tn)&&Nn(Tn.createElement),yn=function(e){return An?Tn.createElement(e):{}},On=!Me&&!ue((function(){return 7!==Object.defineProperty(yn("div"),"a",{get:function(){return 7}}).a})),In=Me,Rn=ze,wn=Fe,$n=Xe,Dn=it,kn=Cn,xn=Qt,Mn=On,Pn=Object.getOwnPropertyDescriptor;xe.f=In?Pn:function(e,t){if(e=Dn(e),t=kn(t),Mn)try{return Pn(e,t)}catch(e){}if(xn(e,t))return $n(!Rn(wn.f,e,t),e[t])};var Bn=ue,zn=ke,Fn=/#|\.prototype\./,Gn=function(e,t){var n=Vn[Un(e)];return n===Hn||n!==Yn&&(zn(t)?Bn(t):!!t)},Un=Gn.normalize=function(e){return String(e).replace(Fn,".").toLowerCase()},Vn=Gn.data={},Yn=Gn.NATIVE="N",Hn=Gn.POLYFILL="P",Xn=Gn,jn=kt,Wn=me,qn=$e($e.bind),Kn={},Zn=Me&&ue((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jn=ot,Qn=String,ea=TypeError,ta=Me,na=On,aa=Zn,ia=function(e){if(Jn(e))return e;throw new ea(Qn(e)+" is not an object")},ra=Cn,oa=TypeError,sa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,ca="enumerable",da="configurable",ua="writable";Kn.f=ta?aa?function(e,t,n){if(ia(e),t=ra(t),ia(n),"function"==typeof e&&"prototype"===t&&"value"in n&&ua in n&&!n[ua]){var a=la(e,t);a&&a[ua]&&(e[t]=n.value,n={configurable:da in n?n[da]:a[da],enumerable:ca in n?n[ca]:a[ca],writable:!1})}return sa(e,t,n)}:sa:function(e,t,n){if(ia(e),t=ra(t),ia(n),na)try{return sa(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new oa("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ma,ha=Kn,pa=Xe,ga=Me?function(e,t,n){return ha.f(e,t,pa(1,n))}:function(e,t,n){return e[t]=n,e},Sa=Le,_a=Te,va=$e,Ea=ke,La=xe.f,ba=Xn,fa=st,Ca=function(e,t){return jn(e),void 0===t?e:Wn?qn(e,t):function(){return e.apply(t,arguments)}},Na=ga,Ta=Qt,Aa=function(e){var t=function(n,a,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,a)}return new e(n,a,i)}return _a(e,this,arguments)};return t.prototype=e.prototype,t},ya=function(e,t){var n,a,i,r,o,s,l,c,d,u=e.target,m=e.global,h=e.stat,p=e.proto,g=m?Sa:h?Sa[u]:Sa[u]&&Sa[u].prototype,S=m?fa:fa[u]||Na(fa,u,{})[u],_=S.prototype;for(r in t)a=!(n=ba(m?r:u+(h?".":"#")+r,e.forced))&&g&&Ta(g,r),s=S[r],a&&(l=e.dontCallGetSet?(d=La(g,r))&&d.value:g[r]),o=a&&l?l:t[r],(n||p||typeof s!=typeof o)&&(c=e.bind&&a?Ca(o,Sa):e.wrap&&a?Aa(o):p&&Ea(o)?va(o):o,(e.sham||o&&o.sham||s&&s.sham)&&Na(c,"sham",!0),Na(S,r,c),p&&(Ta(fa,i=u+"Prototype")||Na(fa,i,{}),Na(fa[i],r,o),e.real&&_&&(n||!_[r])&&Na(_,r,o)))},Oa=Math.ceil,Ia=Math.floor,Ra=Math.trunc||function(e){var t=+e;return(t>0?Ia:Oa)(t)},wa=function(e){var t=+e;return t!=t||0===t?0:Ra(t)},$a=wa,Da=Math.max,ka=Math.min,xa=wa,Ma=Math.min,Pa=function(e){var t=xa(e);return t>0?Ma(t,9007199254740991):0},Ba=it,za=function(e,t){var n=$a(e);return n<0?Da(n+t,0):ka(n,t)},Fa=function(e){return Pa(e.length)},Ga={includes:(ma=!0,function(e,t,n){var a=Ba(e),i=Fa(a);if(0===i)return!ma&&-1;var r,o=za(n,i);if(ma&&t!=t){for(;i>o;)if((r=a[o++])!=r)return!0}else for(;i>o;o++)if((ma||o in a)&&a[o]===t)return ma||o||0;return!ma&&-1})},Ua=Ga.includes;ya({target:"Array",proto:!0,forced:ue((function(){return!Array(1).includes()}))},{includes:function(e){return Ua(this,e,arguments.length>1?arguments[1]:void 0)}});var Va=Le,Ya=st,Ha=function(e,t){var n=Ya[e+"Prototype"],a=n&&n[t];if(a)return a;var i=Va[e],r=i&&i.prototype;return r&&r[t]},Xa=Ha("Array","includes"),ja=ot,Wa=Ie,qa=hn("match"),Ka=function(e){var t;return ja(e)&&(void 0!==(t=e[qa])?!!t:"RegExp"===Wa(e))},Za=TypeError,Ja={};Ja[hn("toStringTag")]="z";var Qa="[object z]"===String(Ja),ei=ke,ti=Ie,ni=hn("toStringTag"),ai=Object,ii="Arguments"===ti(function(){return arguments}()),ri=Qa?ti:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ai(e),ni))?n:ii?ti(t):"Object"===(a=ti(t))&&ei(t.callee)?"Arguments":a},oi=String,si=hn("match"),li=ya,ci=function(e){if(Ka(e))throw new Za("The method doesn't accept regular expressions");return e},di=tt,ui=function(e){if("Symbol"===ri(e))throw new TypeError("Cannot convert a Symbol value to a string");return oi(e)},mi=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[si]=!1,"/./"[e](t)}catch(e){}}return!1},hi=_e("".indexOf);li({target:"String",proto:!0,forced:!mi("includes")},{includes:function(e){return!!~hi(ui(di(this)),ui(ci(e)),arguments.length>1?arguments[1]:void 0)}});var pi=Ha("String","includes"),gi=ve,Si=Xa,_i=pi,vi=Array.prototype,Ei=String.prototype,Li=de((function(e){var t=e.includes;return e===vi||gi(vi,e)&&t===vi.includes?Si:"string"==typeof e||e===Ei||gi(Ei,e)&&t===Ei.includes?_i:t}));const bi=n=>{let{title:a,children:i,icon:r,variant:o="primary",onClose:s,actions:l,oneLine:c=!1,toast:d=!1,className:u,...m}=n;const{generateCalloutClass:h,handleClose:p}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:n=t.variant,oneLine:a=t.oneLine,toast:i=t.toast,className:r=""}=e;return`c-callout ${n?`c-callout--${n}`:""} ${a?"c-callout--oneline":""} ${i?"c-callout--toast":""} ${r}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:o,oneLine:c,toast:d,className:u});return t("div",{className:h({variant:o,oneLine:c,toast:d,className:u}),...(()=>{var e,t;const n={role:"region"};return d?(n.role="alert",n["aria-live"]="polite"):Li(e=["warning","error"]).call(e,o)?(n.role="alert",n["aria-live"]="assertive"):Li(t=["info","success"]).call(t,o)&&(n.role="status",n["aria-live"]="polite"),n})(),...m,children:[t("div",{className:"c-callout__content",children:[r&&e("div",{className:"c-callout__icon",children:r}),t("div",{className:"c-callout__message",children:[a&&e("div",{className:"c-callout__title",children:a}),i&&e("div",{className:"c-callout__text",children:i})]})]}),l&&e("div",{className:"c-callout__actions",children:l}),s&&e("button",{className:"c-callout__close-btn",onClick:p(s),"aria-label":"Close",children:e(te,{name:"X",size:"md"})})]})};bi.displayName="Callout";const fi=u(((n,a)=>{let{header:i,image:r,imageAlt:o="",title:s,text:l,actions:c,icon:d,footer:u,row:m=!1,flat:h=!1,active:p=!1,className:g="",children:S,onClick:_,...v}=n;const E=[V.CLASSES.BASE,m?V.CLASSES.ROW:"",h?V.CLASSES.FLAT:"",p?V.CLASSES.ACTIVE:"",g].filter(Boolean).join(" ");return t("div",{ref:a,className:E,onClick:_,...v,children:[(r||d||i)&&t("div",{className:V.SELECTORS.HEADER.substring(1),children:[i,r&&e("img",{src:r,alt:o,className:V.SELECTORS.IMAGE.substring(1)}),d&&e("div",{className:V.SELECTORS.ICON.substring(1),children:d})]}),t("div",{className:V.SELECTORS.BODY.substring(1),children:[s&&e("h3",{className:V.SELECTORS.TITLE.substring(1),children:s}),l&&e("p",{className:V.SELECTORS.TEXT.substring(1),children:l}),S]}),c&&e("div",{className:V.SELECTORS.ACTIONS.substring(1),children:c}),u&&e("div",{className:V.SELECTORS.FOOTER.substring(1),children:u})]})}));fi.displayName="Card";const Ci="c-checkbox",Ni="is-error",Ti="is-valid",Ai="is-disabled",yi="c-checkbox--mixed";function Oi(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},n=r(null);o((()=>{n.current&&(n.current.indeterminate=Boolean(t.indeterminate))}),[t.indeterminate]);return{defaultProps:t,generateCheckboxClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:i=t.valid,indeterminate:r=t.indeterminate,className:o=""}=e;let s="";a?s=Ni:i&&(s=Ti);return`${Ci} ${s} ${n?Ai:""} ${r?yi:""} ${o}`.trim()},checkboxRef:n}}const Ii=n=>{let{label:a,checked:i=!1,onChange:r,className:o="",disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:m=!1,valid:h=!1,indeterminate:p=!1,ariaLabel:g,ariaDescribedBy:S}=n;const{generateCheckboxClass:_,checkboxRef:v}=Oi({indeterminate:p,disabled:s,invalid:m,valid:h}),E=_({className:o,disabled:s,invalid:m,valid:h,indeterminate:p});return t("div",{className:E,children:[e("input",{ref:v,type:"checkbox",className:"c-checkbox__input",checked:i,onChange:r,disabled:s,required:l,id:c,name:d,value:u,"aria-label":a?void 0:g,"aria-describedby":S,"aria-invalid":m}),a&&e("label",{className:"c-checkbox__label",htmlFor:c,children:a})]})};Ii.displayName="Checkbox";const Ri=t=>{let{className:n=""}=t;const[a,r]=i("light");o((()=>{const e=localStorage.getItem("atomix-color-mode");"light"===e||"dark"===e?r(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&r("dark")}),[]),o((()=>{document.documentElement.setAttribute("data-atomix-theme",a),localStorage.setItem("atomix-color-mode",a)}),[a]),o((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{localStorage.getItem("atomix-color-mode")||r(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]);return e("button",{className:`c-color-mode-toggle ${n}`,onClick:()=>{r((e=>"light"===e?"dark":"light"))},"aria-label":`Switch to ${"light"===a?"dark":"light"} mode`,title:`Switch to ${"light"===a?"dark":"light"} mode`,children:e("svg","light"===a?{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}:{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})})})};Ri.displayName="ColorModeToggle";const wi=u(((n,r)=>{let{target:s,show:l=["days","hours","minutes","seconds"],separator:c=":",focused:d=!1,className:u="",onComplete:m}=n;const h="string"==typeof s?new Date(s):s,[p,g]=i((()=>new Date)),[S,_]=i(!1);o((()=>{if(S)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[S]);const v=h.getTime()-p.getTime(),{days:E,hours:L,minutes:b,seconds:f}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(v);o((()=>{v<=0&&!S&&(_(!0),m&&m())}),[v,S,m]);const C=[];return Li(l).call(l,"days")&&C.push({label:"Days",value:E}),Li(l).call(l,"hours")&&C.push({label:"Hours",value:L}),Li(l).call(l,"minutes")&&C.push({label:"Minutes",value:b}),Li(l).call(l,"seconds")&&C.push({label:"Seconds",value:f}),e("div",{ref:r,className:`c-countdown${d?" c-countdown--focused":""} ${u}`.trim(),children:C.map(((n,i)=>t(a.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:String(n.value).padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:n.label})]}),i<C.length-1&&e("span",{className:"c-countdown__separator",children:c})]},n.label)))})}));function $i(e){let{data:t=[],columns:n=[],sortable:a=!1,paginated:r=!1,pageSize:s=10,onSort:l,initialSortConfig:c}=e;const[d,u]=i(c||null),[p,g]=i(1),[S,_]=i(""),v=m((e=>{if(!a)return;let t="asc";d&&d.key===e&&"asc"===d.direction&&(t="desc");const n={key:e,direction:t};u(n),l&&l(n)}),[a,d,l]),E=m((e=>{e<1||e>Math.ceil(t.length/s)||g(e)}),[t.length,s]),L=m((e=>{_(e),g(1)}),[]),b=h((()=>{if(!S)return t;const e=S.toLowerCase();return t.filter((t=>n.some((n=>{var a;const i=t[n.key];return null!=i&&Li(a=String(i).toLowerCase()).call(a,e)}))))}),[t,n,S]),f=h((()=>d&&a?[...b].sort(((e,t)=>{const n=e[d.key],a=t[d.key];return null==n?"asc"===d.direction?-1:1:null==a?"asc"===d.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===d.direction?n.localeCompare(a):a.localeCompare(n):"asc"===d.direction?n>a?1:-1:n>a?-1:1})):b),[b,d,a]),C=h((()=>{if(!r)return f;const e=(p-1)*s;return f.slice(e,e+s)}),[f,r,p,s]),N=h((()=>r?Math.max(1,Math.ceil(f.length/s)):1),[f.length,r,s]);return o((()=>{g(1)}),[t]),o((()=>{p>N&&g(Math.max(1,N))}),[p,N]),{displayData:C,sortConfig:d,currentPage:p,totalPages:N,handleSort:v,handlePageChange:E,handleSearch:L}}function Di(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:n=t.variant,size:a=t.size,fullscreen:i=t.fullscreen,className:r=""}=e,o="c-spinner";return`${o} ${n?`${o}--${n}`:""} ${"md"!==a?`${o}--${a}`:""} ${i?`${o}--fullscreen`:""} ${r}`.trim()}}}wi.displayName="Countdown";const ki=t=>{let{size:n="md",variant:a="primary",fullscreen:i=!1,className:r=""}=t;const{generateSpinnerClass:o}=Di({size:n,variant:a,fullscreen:i}),s=o({size:n,variant:a,fullscreen:i,className:r});return e("div",{className:s,role:"status",children:e("span",{className:I.VISUALLY_HIDDEN,children:"Loading..."})})};ki.displayName="Spinner";const xi="...",Mi=(e,t)=>{const n=t-e+1;return Array.from({length:n},((t,n)=>n+e))},Pi=e=>{let{currentPage:t,totalPages:n,siblingCount:a=1,onPageChange:i}=e;const r=h((()=>{if(a+5>=n)return Mi(1,n);const e=Math.max(t-a,1),i=Math.min(t+a,n),r=e>2,o=i<n-2,s=n;if(!r&&o){return[...Mi(1,3+2*a),xi,n]}if(r&&!o){let e=Mi(n-(3+2*a)+1,n);return[1,xi,...e]}if(r&&o){let t=Mi(e,i);return[1,xi,...t,xi,s]}return[]}),[n,a,t]),o=e=>{e>=1&&e<=n&&e!==t&&i(e)};return{paginationRange:r,currentPage:t,totalPages:n,goToPage:o,nextPage:()=>{o(t+1)},prevPage:()=>{o(t-1)},firstPage:()=>{o(1)},lastPage:()=>{o(n)},DOTS:xi}},Bi=t=>{let{type:n,onClick:a,disabled:i,label:r,iconName:o}=t;return e("li",{className:`c-pagination__item c-pagination__item--${n} ${i?"is-disabled":""}`,"aria-disabled":i,children:e("button",{type:"button",className:"c-pagination__link",onClick:a,disabled:i,"aria-label":r,children:e(te,{name:o,size:"sm","aria-hidden":"true"})})})},zi=n=>{let{currentPage:a=P.currentPage,totalPages:i=P.totalPages,onPageChange:r,siblingCount:o=P.siblingCount,showFirstLastButtons:s=P.showFirstLastButtons,showPrevNextButtons:l=P.showPrevNextButtons,size:c=P.size,className:d="",ariaLabel:u="Pagination"}=n;const{paginationRange:m,goToPage:h,nextPage:p,prevPage:g,firstPage:S,lastPage:_}=Pi({currentPage:a,totalPages:i,siblingCount:o,onPageChange:r});return 0===a||m.length<2?null:e("nav",{className:`c-pagination c-pagination--${c} ${d}`,"aria-label":u,children:t("ul",{className:"c-pagination__items",children:[s&&e(Bi,{type:"first",onClick:S,disabled:1===a,label:"Go to first page",iconName:"SkipBack"}),l&&e(Bi,{type:"prev",onClick:g,disabled:1===a,label:"Go to previous page",iconName:"CaretLeft"}),m.map(((t,n)=>{if(t===xi)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},`dots-${n}`);const i=t===a;return e("li",{className:"c-pagination__item "+(i?"is-active":""),"aria-current":i?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>h(t),"aria-label":`Page ${t}`,"aria-current":i?"page":void 0,children:t})},t)})),l&&e(Bi,{type:"next",onClick:p,disabled:a===i,label:"Go to next page",iconName:"CaretRight"}),s&&e(Bi,{type:"last",onClick:_,disabled:a===i,label:"Go to last page",iconName:"SkipForward"})]})})};zi.displayName="Pagination";const Fi=n=>{let{data:a,columns:i,className:o,sortable:s=!1,filterable:l=!1,paginated:c=!1,pageSize:d=10,striped:u=!1,bordered:m=!1,dense:h=!1,loading:p=!1,emptyMessage:g="No data available",onRowClick:S,onSort:_,...v}=n;const E=r(null),{displayData:L,sortConfig:b,currentPage:f,totalPages:C,handleSort:N,handlePageChange:T,handleSearch:A}=$i({data:a,columns:i,sortable:s,paginated:c,pageSize:d,onSort:_}),y=[M.base,u&&M.striped,m&&M.bordered,h&&M.dense,p&&M.loading,o].filter(Boolean).join(" ");return t("div",{className:M.container,...v,children:[l?e("div",{className:M.toolbar,children:e("div",{className:M.search,children:e("input",{type:"text",placeholder:"Search...",className:`${M.searchInput} c-input`,onChange:e=>A(e.target.value),"aria-label":"Search table"})})}):null,e("div",{className:M.tableWrapper,children:t("table",{ref:E,className:y,children:[e("thead",{className:M.header,children:e("tr",{children:i.map(((n,a)=>e("th",{className:`${M.headerCell} ${!1!==n.sortable&&s?M.sortable:""}`,onClick:()=>!1!==n.sortable&&s?N(n.key):null,"aria-sort":(null==b?void 0:b.key)===n.key?"asc"===b.direction?"ascending":"descending":void 0,children:t("div",{className:M.headerContent,children:[e("span",{children:n.title}),!1!==n.sortable&&s&&e("span",{className:M.sortIcon,children:(null==b?void 0:b.key)===n.key?"asc"===b.direction?e(te,{name:"CaretUp",size:"sm"}):e(te,{name:"CaretDown",size:"sm"}):null})]})},`header-${a}`)))})}),p?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:M.loadingCell,children:e("div",{className:M.loadingIndicator,children:e(ki,{size:"md",variant:"primary"})})})})}):0===L.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:M.emptyCell,children:g})})}):e("tbody",{children:L.map(((t,n)=>e("tr",{className:M.row,onClick:S?()=>S(t):void 0,tabIndex:S?0:void 0,role:S?"button":void 0,children:i.map(((a,i)=>e("td",{className:M.cell,children:a.render?a.render(t[a.key],t):t[a.key]},`cell-${n}-${i}`)))},`row-${n}`)))})]})}),!c||C<=1?null:e("div",{className:M.pagination,children:e(zi,{currentPage:f,totalPages:C,onPageChange:T,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})})]})};function Gi(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function Ui(e,t){return new Date(e,t+1,0).getDate()}function Vi(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,i=e.getFullYear();return t.replace("yyyy",i.toString()).replace("MM",a.toString().padStart(2,"0")).replace("M",a.toString()).replace("dd",n.toString().padStart(2,"0")).replace("d",n.toString())}function Yi(){let{value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:u,inline:h=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[p,g]=i(h),[S,_]=i(e?Vi(e,c):""),[v,E]=i(a&&s?`${Vi(a,c)} - ${Vi(s,c)}`:a?`${Vi(a,c)} - Select end date`:""),[L,b]=i(e||a||new Date),[f,C]=i("days"),[N,T]=i(!a||a&&s?"start":"end"),A=r(null),y=r(null),O=new Date,I=L.getMonth(),R=L.getFullYear(),w=Ui(R,I),$=new Date(R,I,1).getDay();o((()=>{"single"===n?_(e?Vi(e,c):""):(E(a&&s?`${Vi(a,c)} - ${Vi(s,c)}`:a?`${Vi(a,c)} - Select end date`:""),T(!a||a&&s?"start":"end"))}),[e,a,s,c,n]);const D=m((e=>{const i=new Date(R,I,e);if(!(d&&i<d||u&&i>u))if("single"===n)t&&t(i),_(Vi(i,c)),h||g(!1);else if("start"===N)l&&l({startDate:i,endDate:null}),E(`${Vi(i,c)} - Select end date`),T("end");else{if(!a)return;i<a?(l&&l({startDate:i,endDate:a}),E(`${Vi(i,c)} - ${Vi(a,c)}`)):(l&&l({startDate:a,endDate:i}),E(`${Vi(a,c)} - ${Vi(i,c)}`)),h||g(!1),T("start")}}),[R,I,d,u,t,l,c,h,n,N,a]),k=m((()=>{b(new Date(R,I-1,1))}),[R,I]),x=m((()=>{b(new Date(R,I+1,1))}),[R,I]),M=m((()=>{b(new Date(R-1,I,1))}),[R,I]),P=m((()=>{b(new Date(R+1,I,1))}),[R,I]),B=m((()=>{C("months")}),[]),z=m((()=>{C("years")}),[]),F=m((e=>{b(new Date(R,e,1)),C("days")}),[R]),G=m((e=>{b(new Date(e,I,1)),C("months")}),[I]),U=m((()=>{const e=new Date;b(e),"single"===n?D(e.getDate()):b(new Date)}),[D,n]),V=m((()=>{"single"===n?(_(""),t&&t(null)):(E(""),T("start"),l&&l({startDate:null,endDate:null}))}),[t,l,n]),Y=m((e=>{if("single"===n){_(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),b(n))}else{E(e.target.value);const t=e.target.value.split("-");if(2===t.length){var a,i;const e=null===(a=t[0])||void 0===a?void 0:a.trim(),n=null===(i=t[1])||void 0===i?void 0:i.trim();if(!e||!n)return;const r=new Date(e);if(isNaN(r.getTime())||b(r),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||l&&l({startDate:t,endDate:a})}}}}),[t,l,n]),H=m((()=>{h||g(!0)}),[h]),X=m((e=>{A.current&&!A.current.contains(e.target)&&y.current&&!y.current.contains(e.target)&&g(!1)}),[]);o((()=>(p&&!h?document.addEventListener("mousedown",X):document.removeEventListener("mousedown",X),()=>{document.removeEventListener("mousedown",X)})),[p,X,h]);const j=m((()=>{const e=[],t=Ui(0===I?R-1:R,0===I?11:I-1);for(let n=$-1;n>=0;n--)e.push({day:t-n,month:0===I?11:I-1,year:0===I?R-1:R,isCurrentMonth:!1});for(let t=1;t<=w;t++)e.push({day:t,month:I,year:R,isCurrentMonth:!0});const n=42-e.length;for(let t=1;t<=n;t++)e.push({day:t,month:11===I?0:I+1,year:11===I?R+1:R,isCurrentMonth:!1});return e}),[w,$,I,R]),W=m((()=>{const e=[];for(let t=0;t<12;t++)e.push({month:t,name:Gi(t)});return e}),[]),q=m((()=>{const e=[],t=R-6;for(let n=0;n<12;n++)e.push(t+n);return e}),[R]),K=m(((e,t,n)=>function(e,t,n){return!(!e||t&&e<t||n&&e>n)}(new Date(e,t,n),d,u)),[d,u]),Z=m(((t,i,r)=>{if("single"===n)return!!e&&(e.getFullYear()===t&&e.getMonth()===i&&e.getDate()===r);if(!a&&!s)return!1;if(a&&!s)return a.getFullYear()===t&&a.getMonth()===i&&a.getDate()===r;if(a&&s){const e=a.getFullYear()===t&&a.getMonth()===i&&a.getDate()===r,n=s.getFullYear()===t&&s.getMonth()===i&&s.getDate()===r;return e||n}return!1}),[e,n,a,s]),J=m(((e,t,i)=>{if("range"!==n||!a||!s)return!1;const r=new Date(e,t,i);return r>a&&r<s}),[n,a,s]),Q=m(((e,t,n)=>O.getFullYear()===e&&O.getMonth()===t&&O.getDate()===n),[O]),ee=m((e=>{const t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);const a=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((a-t.valueOf())/6048e5)}),[]);return{isOpen:p,inputValue:S,rangeInputValue:v,viewDate:L,viewMode:f,currentMonth:I,currentYear:R,selectionMode:n,rangeSelectionState:N,datePickerRef:A,inputRef:y,startDate:a,endDate:s,setIsOpen:g,handleDateSelect:D,handlePrevMonth:k,handleNextMonth:x,handlePrevYear:M,handleNextYear:P,handleTodayClick:U,handleClear:V,handleInputChange:Y,handleInputFocus:H,switchToMonthView:B,switchToYearView:z,selectMonth:F,selectYear:G,generateDays:j,generateMonths:W,generateYears:q,isDateSelectable:K,isDateSelected:Z,isDateInSelectedRange:J,isToday:Q,getWeekNumber:ee}}Fi.displayName="DataTable";const Hi=u(((i,r)=>{let{value:o,onChange:s,selectionMode:l="single",startDate:c,endDate:d,onRangeChange:u,format:m="MM/dd/yyyy",minDate:h,maxDate:g,placeholder:S="Select date...",disabled:_=!1,readOnly:v=!1,clearable:E=!0,showTodayButton:L=!0,showWeekNumbers:b=!1,inline:f=!1,id:C,name:N,className:T="",placement:A="bottom-start",inputClassName:y="",size:O="md",...I}=i;const{isOpen:R,inputValue:w,rangeInputValue:$,viewMode:D,currentMonth:k,currentYear:x,rangeSelectionState:M,datePickerRef:P,inputRef:B,startDate:z,setIsOpen:F,handleDateSelect:G,handlePrevMonth:U,handleNextMonth:V,handlePrevYear:Y,handleNextYear:H,handleTodayClick:X,handleClear:j,handleInputChange:W,handleInputFocus:q,switchToMonthView:K,switchToYearView:Z,selectMonth:J,selectYear:Q,generateDays:ee,generateMonths:ne,generateYears:ae,isDateSelectable:ie,isDateSelected:re,isDateInSelectedRange:oe,isToday:se,getWeekNumber:le}=Yi({value:o,onChange:s,selectionMode:l,startDate:c,endDate:d,onRangeChange:u,format:m,minDate:h,maxDate:g,inline:f});p(r,(()=>({open:()=>F(!0),close:()=>F(!1),clear:j,focus:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.focus()}})));const ce=`c-datepicker ${T} ${f?"c-datepicker--inline":""}`.trim(),de=`c-datepicker__input c-input c-input--${O} ${y}`.trim(),ue=C||`datepicker-${Math.random().toString(36).substring(2,9)}`,me=`${ue}-calendar`,he="single"===l?w:$;return t("div",{className:ce,ref:P,...I,children:[!f&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:ue,name:N,ref:B,type:"text",className:de,placeholder:"single"===l?S:"start"===M?"Select start date...":z?`${Vi(z,m)} - Select end date...`:"Select date range...",value:he,onChange:W,onFocus:q,disabled:_,readOnly:v,"aria-haspopup":"dialog","aria-expanded":R,"aria-controls":me}),E&&he&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:j,"aria-label":"Clear date",children:e(te,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(te,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(R||f)&&t("div",{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${A}`,role:"dialog","aria-modal":f?void 0:"true","aria-label":"Date picker",children:[t("div",{className:"c-datepicker__header",children:["days"===D&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Y,"aria-label":"Previous year",children:e(te,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:U,"aria-label":"Previous month",children:e(te,{name:"CaretLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:K,"aria-label":"Switch to month view",children:`${k+1}/${x}`}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:V,"aria-label":"Next month",children:e(te,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:H,"aria-label":"Next year",children:e(te,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===D&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Y,"aria-label":"Previous year",children:e(te,{name:"CaretLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:Z,"aria-label":"Switch to year view",children:x}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:H,"aria-label":"Next year",children:e(te,{name:"CaretRight",size:"sm"})})]}),"years"===D&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:()=>Y(),"aria-label":"Previous year range",children:e(te,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch","aria-label":"Current year range",children:[x-6," - ",x+5]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:()=>H(),"aria-label":"Next year range",children:e(te,{name:"CaretRight",size:"sm"})})]})]}),t("div",{className:"c-datepicker__body",children:["days"===D&&t(n,{children:[t("div",{className:"c-datepicker__weekdays",role:"row",children:[b&&e("div",{className:"c-datepicker__weekday c-datepicker__weeknumber",role:"columnheader",children:"#"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Su"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Mo"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Tu"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"We"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Th"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Fr"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Sa"})]}),e("div",{className:"c-datepicker__days",role:"grid","aria-labelledby":`${ue}-month-year`,children:ee().map(((n,i)=>{const r=ie(n.year,n.month,n.day),o=re(n.year,n.month,n.day),s=se(n.year,n.month,n.day),u=new Date(n.year,n.month,n.day),m=oe(n.year,n.month,n.day),h="range"===l&&c&&n.day===c.getDate()&&n.month===c.getMonth()&&n.year===c.getFullYear(),p="range"===l&&d&&n.day===d.getDate()&&n.month===d.getMonth()&&n.year===d.getFullYear();if(b&&i%7==0){const l=le(u);return t(a.Fragment,{children:[e("div",{className:"c-datepicker__weeknumber","aria-label":`Week ${l}`,children:l}),e("button",{type:"button",className:`c-datepicker__day \n ${n.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${o?"c-datepicker__day--selected":""} \n ${h?"c-datepicker__day--start-range":""}\n ${p?"c-datepicker__day--end-range":""}\n ${m?"c-datepicker__day--in-range":""}\n ${s?"c-datepicker__day--today":""} \n ${r?"":"c-datepicker__day--disabled"}`,onClick:()=>r&&G(n.day),disabled:!r,tabIndex:n.isCurrentMonth?0:-1,"aria-label":u.toLocaleDateString(),"aria-selected":o?"true":"false",role:"gridcell",children:n.day})]},`week-${i}`)}return e("button",{type:"button",className:`c-datepicker__day \n ${n.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${o?"c-datepicker__day--selected":""} \n ${h?"c-datepicker__day--start-range":""}\n ${p?"c-datepicker__day--end-range":""}\n ${m?"c-datepicker__day--in-range":""}\n ${s?"c-datepicker__day--today":""} \n ${r?"":"c-datepicker__day--disabled"}`,onClick:()=>r&&G(n.day),disabled:!r,tabIndex:n.isCurrentMonth?0:-1,"aria-label":u.toLocaleDateString(),"aria-selected":o?"true":"false",role:"gridcell",children:n.day},`day-${i}`)}))})]}),"months"===D&&e("div",{className:"c-datepicker__months",role:"grid",children:ne().map(((t,n)=>{const a=o&&o.getMonth()===t.month&&o.getFullYear()===x;return e("button",{type:"button",className:"c-datepicker__month "+(a?"c-datepicker__month--selected":""),onClick:()=>J(t.month),"aria-selected":a?"true":"false",role:"gridcell",children:t.name.substring(0,3)},`month-${n}`)}))}),"years"===D&&e("div",{className:"c-datepicker__years",role:"grid",children:ae().map(((t,n)=>{const a=o&&o.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(a?"c-datepicker__year--selected":""),onClick:()=>Q(t),"aria-selected":a?"true":"false",role:"gridcell",children:t},`year-${n}`)}))})]}),"days"===D&&t("div",{className:"c-datepicker__footer",children:["range"===l&&t("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===M?"start":"end"," date"]}),L&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:X,"aria-label":"Go to today",children:"Today"}),!f&&e("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>F(!1),"aria-label":"Close calendar",children:"Close"})]})]})]})}));Hi.displayName="DatePicker";const Xi=g({isOpen:!1,close:()=>{},id:"",trigger:"click"}),ji=n=>{let{children:a,menu:s,placement:l="bottom-start",trigger:c="click",offset:d=K.DEFAULTS.OFFSET,isOpen:u,onOpenChange:h,closeOnClickOutside:p=!0,closeOnEscape:g=!0,maxHeight:S,minWidth:_=K.DEFAULTS.MIN_WIDTH,variant:v,className:E="",...L}=n;const[b,f]=i(!1),C=void 0!==u,N=C?u:b,T=r(null),A=r(null),y=r(null),O=r(`dropdown-${Math.random().toString(36).substring(2,9)}`).current,I=m((e=>{C||f(e),h&&h(e)}),[C,h]),R=m((()=>I(!N)),[N,I]),w=m((()=>{I(!1),setTimeout((()=>{var e;null===(e=A.current)||void 0===e||e.focus()}),0)}),[I]);o((()=>{if(!N||!p)return;const e=e=>{T.current&&!T.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[N,p,w]),o((()=>{if(!N||!g)return;const e=e=>{"Escape"===e.key&&w()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[N,g,w]);const $=m((e=>{var t,n;if(!y.current)return;const a=y.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!a.length)return;const i=Array.from(a).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":var r,o;if(e.preventDefault(),i<a.length-1)null===(r=a[i+1])||void 0===r||r.focus();else null===(o=a[0])||void 0===o||o.focus();break;case"ArrowUp":var s,l;if(e.preventDefault(),i>0)null===(s=a[i-1])||void 0===s||s.focus();else null===(l=a[a.length-1])||void 0===l||l.focus();break;case"Home":e.preventDefault(),null===(t=a[0])||void 0===t||t.focus();break;case"End":e.preventDefault(),null===(n=a[a.length-1])||void 0===n||n.focus()}}),[]),D=m((e=>{"click"===c&&(e.preventDefault(),e.stopPropagation(),R())}),[c,R]),k=m((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||N?"Escape"===e.key&&N&&(e.preventDefault(),w()):(e.preventDefault(),I(!0),"ArrowDown"===e.key&&y.current&&setTimeout((()=>{var e;const t=null===(e=y.current)||void 0===e?void 0:e.querySelector('[role="menuitem"]');null==t||t.focus()}),100))}),[N,I,w]),x=m((()=>{"hover"===c&&I(!0)}),[c,I]),M=["c-dropdown","click"===c?"c-dropdown--onclick":"",v?`c-dropdown--${v}`:"",N?"is-open":"",E].filter(Boolean).join(" "),P={};return S&&(P.maxHeight=S),void 0!==_&&(P.minWidth="number"==typeof _?`${_}px`:_),t("div",{ref:T,className:M,onMouseEnter:"hover"===c?x:void 0,...L,children:[e("div",{ref:A,className:"c-dropdown__toggle",onClick:D,onKeyDown:k,"aria-haspopup":"menu","aria-expanded":N,"aria-controls":O,tabIndex:0,children:a}),e("div",{ref:y,id:O,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${l} ${N?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!N,onKeyDown:$,children:e("div",{className:"c-dropdown__menu-inner",style:P,children:e(Xi.Provider,{value:{isOpen:N,close:w,id:O,trigger:c},children:e("ul",{className:"c-dropdown__menu",children:s})})})})]})};function Wi(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,...e},[n,a]=i(t.isOpen||!1),s=r(null),l=r(null),c=m((()=>{if(!s.current||"push"!==t.mode)return;const{position:e}=t,n="top"===e||"bottom"===e?s.current.clientHeight:s.current.clientWidth;let a;switch(e){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a=`padding${e.charAt(0).toUpperCase()+e.slice(1)}`}document.body.style[a]=`${n}px`,document.body.classList.add("is-pushed")}),[t.mode,t.position]),d=m((()=>{if("push"!==t.mode)return;const{position:e}=t;let n;switch(e){case"start":n="paddingLeft";break;case"end":n="paddingRight";break;default:n=`padding${e.charAt(0).toUpperCase()+e.slice(1)}`}document.body.style[n]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),u=m((()=>{if(a(!0),document.body.classList.add("is-edgepanel-open"),s.current){const{mode:e}=t;if("none"!==e){s.current.classList.add("is-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),x.ANIMATION_DURATION)}s.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),h=m((()=>{if(s.current){const{position:e,mode:n}=t;if("none"!==n){s.current.classList.add("is-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),x.ANIMATION_DURATION)}s.current.style.transform=e?x.TRANSFORM_VALUES[e]:"","push"===t.mode&&d();setTimeout((()=>{a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===n?0:x.ANIMATION_DURATION)}else a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,d]),p=m((e=>{t.closeOnEscape&&"Escape"===e.key&&n&&h()}),[h,t.closeOnEscape,n]),g=m((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&h()}),[h,t.closeOnBackdropClick]);return o((()=>(n&&t.closeOnEscape&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)})),[n,p,t.closeOnEscape]),o((()=>{if(s.current){const{position:e,mode:a}=t;n||"slide"!==a&&"push"!==a||!e||(s.current.style.transform=x.TRANSFORM_VALUES[e])}}),[t.mode,t.position,n]),o((()=>{void 0!==t.isOpen&&t.isOpen!==n&&(t.isOpen?u():h())}),[t.isOpen,h,n,u]),{isOpen:n,containerRef:s,backdropRef:l,generateEdgePanelClass:e=>{const{position:a=t.position,className:i="",isOpen:r}=e,o=x.CLASSES.BASE;return`${o} ${a?`${o}--${a}`:""} ${r??n?x.CLASSES.IS_OPEN:""} ${i}`.trim()},openPanel:u,closePanel:h,handleBackdropClick:g}}ji.displayName="Dropdown";const qi=n=>{let{title:a,children:i,position:r="start",mode:o="slide",isOpen:s=!1,onOpenChange:l,backdrop:c=!0,closeOnBackdropClick:d=!0,closeOnEscape:u=!0,className:m=""}=n;const{isOpen:h,containerRef:p,backdropRef:g,generateEdgePanelClass:S,closePanel:_,handleBackdropClick:v}=Wi({position:r,mode:o,isOpen:s,onOpenChange:l,backdrop:c,closeOnBackdropClick:d,closeOnEscape:u}),E=S({position:r,isOpen:s,className:m});return h||!1!==s?t("div",{className:E,"data-position":r,"data-mode":o,children:[c&&e("div",{ref:g,className:"c-edge-panel__backdrop",onClick:v}),t("div",{ref:p,className:"c-edge-panel__container",children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:a}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:_,"aria-label":"Close panel",children:e(te,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:i})]})]}):null};function Ki(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e,i=n?z.CLASSES.DISABLED:"";return`${z.CLASSES.BASE} ${i} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}qi.displayName="EdgePanel";const Zi=t=>{let{children:n,onSubmit:a,onReset:i,className:r="",disabled:o=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:u="on"}=t;const{generateFormClass:m,handleSubmit:h,handleReset:p}=Ki({disabled:o}),g=m({className:r,disabled:o});return e("form",{id:s,className:g,onSubmit:h(a),onReset:p(i),method:l,encType:c,noValidate:d,autoComplete:u,children:n})};function Ji(e){const t=r(null),n=r(null),a=r(null),i={alignment:"left",imageColSize:7,contentColSize:5,fullViewportHeight:!1,parallax:!1,parallaxIntensity:.5,...e},s=!!i.backgroundImageSrc,l=!!i.imageSrc,c=l&&"center"!==i.alignment,d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const i=()=>{const t=window.pageYOffset*n,a=e.querySelector(f.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};a.current=i,window.addEventListener("scroll",i),i()},u=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(f.SELECTORS.BG);t&&(t.style.transform=""),a.current&&(window.removeEventListener("scroll",a.current),a.current=null)};o((()=>{const e=t.current;return e&&i.parallax&&s&&d(e,i.parallaxIntensity),()=>{e&&a.current&&u(e)}}),[i.parallax,i.parallaxIntensity,s]);return{generateHeroClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=[f.SELECTORS.HERO.replace(".","")];return"center"===i.alignment?t.push(f.CLASSES.CENTER):"right"===i.alignment?t.push(f.CLASSES.RIGHT):"left"===i.alignment&&t.push(f.CLASSES.LEFT),i.fullViewportHeight&&t.push(f.CLASSES.FULL_VH),i.parallax&&t.push("c-hero--parallax"),i.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:function(){const e=[`o-grid__col o-grid__col--md-${arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.imageColSize||7}`];return"left"===i.alignment&&e.push("u-mt-5 u-mt-md-0"),e.join(" ")},generateContentColClass:function(){return`o-grid__col o-grid__col--md-${arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.contentColSize||5}`},hasBackgroundImage:s,hasForegroundImage:l,useGridLayout:c,heroRef:t,videoRef:n,applyParallaxEffect:d,removeParallaxEffect:u}}Zi.displayName="Form";const Qi=a=>{let{title:i,subtitle:r,text:o,imageSrc:s,imageAlt:l="Hero image",alignment:c="left",backgroundImageSrc:d,showOverlay:u=!0,fullViewportHeight:m=!1,actions:h,imageColSize:p=7,contentColSize:g=5,contentWidth:S,className:_="",parallax:v=!1,parallaxIntensity:E=.5,videoBackground:L,videoOptions:b={autoplay:!0,loop:!0,muted:!0}}=a;const{generateHeroClassNames:C,generateImageColClass:N,generateContentColClass:T,hasBackgroundImage:A,hasForegroundImage:y,useGridLayout:O,heroRef:I,videoRef:R}=Ji({alignment:c,imageColSize:p,contentColSize:g,imageSrc:s,backgroundImageSrc:d,showOverlay:u,fullViewportHeight:m,contentWidth:S,parallax:v,parallaxIntensity:E,videoBackground:L}),w=S?{"--atomix-hero-content-width":S}:void 0,$=()=>{if(!L)return null;const{autoplay:n,loop:a,muted:i,posterUrl:r}=b;return t("video",{ref:R,className:"c-hero__video",autoPlay:n,loop:a,muted:i,playsInline:!0,poster:r,children:[e("source",{src:L,type:`video/${L.split(".").pop()||"mp4"}`}),"Your browser does not support the video tag."]})},D=()=>t("div",{className:f.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:f.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:f.SELECTORS.TITLE.replace(".",""),children:i}),o&&e("p",{className:f.SELECTORS.TEXT.replace(".",""),children:o}),h&&e("div",{className:f.SELECTORS.ACTIONS.replace(".",""),children:h})]}),k=()=>y?e("div","center"===c?{className:f.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:s,alt:l,className:f.SELECTORS.IMAGE.replace(".","")})}:{className:N(),children:e("img",{src:s,alt:l,className:f.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:I,className:C(_),style:w,"data-parallax":v?"true":void 0,"data-parallax-intensity":v?E:void 0,children:[A||L?t("div",{className:f.SELECTORS.BG.replace(".",""),children:[d&&e("img",{src:d,alt:"Background",className:f.SELECTORS.BG_IMAGE.replace(".","")}),$(),u&&e("div",{className:f.SELECTORS.OVERLAY.replace(".","")})]}):null,e("div",{className:`${f.SELECTORS.CONTAINER.replace(".","")} o-container`,children:O?e("div",{className:`${f.SELECTORS.GRID.replace(".","")} o-grid`,children:t(n,"left"===c?{children:[e("div",{className:T(),children:D()}),k()]}:{children:[k(),e("div",{className:T(),children:D()})]})}):t(n,{children:[D(),k()]})})]})};function er(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:i=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:s="",type:l}=e,c="md"===n?"":"sm"===n?G.CLASSES.SMALL:G.CLASSES.LARGE,d=a?`c-input--${a}`:"",u="textarea"===l?"c-input--textarea":"";let m="";r?m=G.CLASSES.INVALID:o&&(m=G.CLASSES.VALID);const h=i?G.CLASSES.DISABLED:"";return`${G.CLASSES.BASE} ${c} ${d} ${u} ${m} ${h} ${s}`.trim()}}}Qi.displayName="Hero";const tr=t=>{let{type:n="text",value:a,onChange:i,onBlur:r,onFocus:o,placeholder:s,className:l="",disabled:c=!1,required:d=!1,readOnly:u=!1,id:m,name:h,autoComplete:p,autoFocus:g=!1,size:S="md",variant:_,invalid:v=!1,valid:E=!1,maxLength:L,minLength:b,pattern:f,min:C,max:N,step:T,ariaLabel:A,ariaDescribedBy:y}=t;const{generateInputClass:O}=er({size:S,variant:_,disabled:c,invalid:v,valid:E}),I=O({className:l,size:S,variant:_,disabled:c,invalid:v,valid:E,type:n});return e("input",{type:n,className:I,value:a,onChange:i,onBlur:r,onFocus:o,placeholder:s,disabled:c,required:d,readOnly:u,id:m,name:h,autoComplete:p,autoFocus:g,maxLength:L,minLength:b,pattern:f,min:C,max:N,step:T,"aria-label":A,"aria-describedby":y,"aria-invalid":v})};tr.displayName="Input";const nr=t=>{var n;let{children:i,variant:r="default",className:o="",...s}=t;const l=[L.BASE_CLASS,"default"!==r&&`c-list--${r}`,o].filter(Boolean).join(" "),c=Li(n=["number","text"]).call(n,r)?"ol":"ul";return e(c,{className:l,...s,children:a.Children.map(i,(t=>e("li",{className:"c-list__item",children:t})))})};nr.displayName="List";const ar=n=>{let{messages:a=[],otherAvatar:r,selfAvatar:o,otherName:s,width:l="100%",onSendMessage:c,placeholder:d="Type a message",className:u="",bodyHeight:m,disabled:h=!1,id:p}=n;const{inputValue:g,handleInputChange:S,handleSubmit:_,handleKeyDown:v}=function(){let{onSendMessage:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=i(""),a=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:a,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a(e))}}}({onSendMessage:c}),E=p||`messages-${Math.random().toString(36).substr(2,9)}`,L=`${E}-input`;return t("div",{className:`${q.CLASSES.BASE} ${h?"is-disabled":""} ${u}`,style:{"--atomix-messages-width":l},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[e("div",{className:q.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:a.map((n=>t("div",{className:`${q.CLASSES.CONTENT} ${n.isSelf?q.CLASSES.CONTENT_SELF:""}`,"aria-label":`${n.isSelf?"You":s||"Other person"} sent a message at ${n.time}`,children:[e(ne,{src:n.isSelf?o:r,size:"xl",circle:!0,className:q.CLASSES.AVATAR,alt:n.isSelf?"Your avatar":`${s||"Other person"}'s avatar`}),t("div",{className:q.CLASSES.ITEMS,children:[!n.isSelf&&s&&e("div",{className:q.CLASSES.NAME,children:s}),n.text&&t("div",{className:q.CLASSES.TEXT,children:[n.text,e("span",{className:q.CLASSES.TIME,"aria-label":`Sent at ${n.time}`,children:n.time})]}),n.image&&e("img",{className:q.CLASSES.IMAGE,src:n.image,alt:"Message attachment",loading:"lazy"}),n.file&&t("div",{className:q.CLASSES.FILE,"aria-label":`File attachment: ${n.file.name}, size: ${n.file.size}`,children:[e("span",{className:q.CLASSES.FILE_ICON,children:e(te,{name:"File","aria-hidden":"true"})}),t("div",{className:q.CLASSES.FILE_DETAILS,children:[e("div",{className:q.CLASSES.FILE_NAME,children:n.file.name}),e("div",{className:q.CLASSES.FILE_SIZE,children:n.file.size})]})]})]})]},n.id)))}),t("form",{className:q.CLASSES.FORM,onSubmit:_,"aria-label":"Message input form",children:[t("div",{className:q.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:L,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:L,type:"text",className:q.CLASSES.INPUT,placeholder:d,value:g,onChange:S,onKeyDown:v,disabled:h,"aria-label":"Message input"}),t("div",{className:q.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:q.CLASSES.OPTION,"aria-label":"Attach file",disabled:h,children:e(te,{name:"PaperclipHorizontal","aria-hidden":"true",className:q.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:q.CLASSES.OPTION,"aria-label":"Attach image",disabled:h,children:e(te,{name:"Image","aria-hidden":"true",className:q.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:q.CLASSES.OPTION,"aria-label":"Insert link",disabled:h,children:e(te,{name:"Link","aria-hidden":"true",className:q.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:q.CLASSES.SUBMIT,"aria-label":"Send message",disabled:h,children:e(te,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};ar.displayName="Messages";const ir=n=>{let{children:a,isOpen:s=!1,onOpenChange:l,onClose:c,onOpen:d,title:u,subtitle:h,size:p="md",backdrop:g=!0,keyboard:S=!0,className:_="",closeButton:v=!0,footer:E,...L}=n;const b=r(null),f=r(null),C=r(null),{isOpen:N,close:T}=function(){let{isOpen:e,onOpenChange:t,onOpen:n,onClose:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,s]=i(!1),l=void 0!==e,c=l?!!e:r;o((()=>{l&&s(!!e)}),[e,l]);const d=m((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),u=m((()=>{d(!0)}),[d]),h=m((()=>{d(!1)}),[d]),p=m((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:h,toggle:p}}({isOpen:s,onOpenChange:l,onClose:c,onOpen:d});o((()=>{if(!S)return;const e=e=>{"Escape"===e.key&&N&&T()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[N,T,S]);const A=["c-modal",N?W.CLASSES.IS_OPEN:"",p?`c-modal--${p}`:"",_].filter(Boolean).join(" ");return t("div",{ref:b,className:A,style:{display:N?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!N,...L,children:[e("div",{ref:C,className:"c-modal__backdrop",onClick:e=>{g&&e.target===e.currentTarget&&T()}}),e("div",{ref:f,className:"c-modal__dialog",children:t("div",{className:"c-modal__content",children:[(u||v)&&t("div",{className:"c-modal__header",children:[t("div",{className:"c-modal__header-content",children:[u&&e("h3",{className:"c-modal__title",children:u}),h&&e("p",{className:"c-modal__sub",children:h})]}),v&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:T,"aria-label":"Close modal",children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]}),e("div",{className:"c-modal__body",children:a}),E&&e("div",{className:"c-modal__footer",children:E})]})})]})};function rr(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[n,a]=i(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:i=t.collapsible,className:r=""}=e;return`c-navbar ${"static"!==n?`c-navbar--${n}`:""} ${a?`c-navbar--${a}`:""} ${i?"c-navbar--collapsible":""} ${r}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;a(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}ir.displayName="Modal";const or=u(((n,a)=>{let{brand:s,children:l,variant:c,position:d="static",containerWidth:u,collapsible:m=!0,expanded:h,onToggle:p,className:g="",disabled:S=!1,backdrop:_=!1,closeOnOutsideClick:v=!0,closeOnEscape:E=!0,ariaLabel:L="Main navigation",id:b}=n;const{generateNavbarClass:f,generateContainerStyle:C,generateCollapseClass:N}=rr({position:d,collapsible:m,expanded:h,onToggle:p}),[T,A]=i(h||!1),y=r(null);o((()=>{void 0!==h&&A(h)}),[h]),o((()=>{const e=()=>{!(window.innerWidth<768)&&m&&("function"==typeof p?h&&p(!1):A(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[m,h,p]);const O=f({position:d,variant:c,collapsible:m,className:g}),I=C(u),R=N(T);return e("nav",{ref:a,className:O,"aria-label":L,id:b,children:t("div",{className:"c-navbar__container",style:I,children:[s&&("string"==typeof s?e("a",{href:"/",className:"c-navbar__brand",children:s}):e("div",{className:"c-navbar__brand",children:s})),m&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(S)return;const e=!T;"function"==typeof p?p(e):A(e)},"aria-expanded":T,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:S,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:R,ref:y,children:l})]})})}));or.displayName="Navbar";const sr=n=>{let{currentIndex:a,imagesLength:i,onZoomOut:r,onResetZoom:o,onZoomIn:s,onToggleFullscreen:l,onClose:c,isFullscreen:d,zoomLevel:u,onRotate:m,onDownload:h,onShare:p,showInfo:g,onToggleInfo:S,currentImage:_}=n;return t("div",{className:"c-photo-viewer__header",children:[e(re,{label:`${a+1} / ${i}`,variant:"light",size:"sm",className:"c-photo-viewer__counter-badge"}),t("div",{className:"c-photo-viewer__actions",children:[e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,disabled:u<=.1,"aria-label":"Zoom out",icon:e(te,{name:"Minus",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:o,disabled:1===u,"aria-label":"Reset zoom",icon:e(te,{name:"MagnifyingGlass",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:s,disabled:u>=5,"aria-label":"Zoom in",icon:e(te,{name:"Plus",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:m,"aria-label":"Rotate image",icon:e(te,{name:"ArrowsClockwise",size:"sm"}),className:"c-photo-viewer__action-button"}),(null==_?void 0:_.src)&&e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:h,"aria-label":"Download image",icon:e(te,{name:"DownloadSimple",size:"sm"}),className:"c-photo-viewer__action-button"}),(null==_?void 0:_.src)&&"undefined"!=typeof navigator&&"share"in navigator&&e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:p,"aria-label":"Share image",icon:e(te,{name:"ShareNetwork",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:S,"aria-label":g?"Hide info":"Show info",icon:e(te,{name:"Info",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:l,"aria-label":d?"Exit fullscreen":"Enter fullscreen",icon:e(te,d?{name:"ArrowsIn",size:"sm"}:{name:"ArrowsOut",size:"sm"}),className:"c-photo-viewer__action-button"}),e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:c,"aria-label":"Close photo viewer",icon:e(te,{name:"X",size:"sm"}),className:"c-photo-viewer__action-button c-photo-viewer__close"})]})]})},lr=a=>{let{show:i,onPrev:r,onNext:s,currentIndex:l,imagesLength:c,enableKeyboardNav:d,onClose:u}=a;return o((()=>{if(!d)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&s(),"Escape"===e.key&&u()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[d,r,s,u]),i?t(n,{children:[e(le,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:r,disabled:0===l,"aria-label":"Previous image",icon:e(te,{name:"CaretLeft",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev"}),e(le,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:s,disabled:l===c-1,"aria-label":"Next image",icon:e(te,{name:"CaretRight",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next"})]}):null},cr=t=>{let{imageRef:n,containerRef:a,src:s,alt:l,zoomLevel:c,dragPosition:d,isDragging:u,rotationAngle:m,isTransitioning:h=!1,onMouseDown:p,onMouseMove:g,onMouseUp:S,onWheel:_,onTouchStart:v,onTouchMove:E,onTouchEnd:L,onDoubleClick:b}=t;const f=r(null),C=a||f,[N,T]=i(!1);o((()=>(T(!0),()=>T(!1))),[]);return o((()=>{const e=C.current;if(!e)return;const t=t=>{N&&e&&_&&_(t)},n=t=>{N&&e&&v&&v(t)},a=t=>{N&&e&&E&&E(t)},i=t=>{N&&e&&L&&L(t)};return N&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",i,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",i)}}),[N,_,v,E,L,C]),e("div",{ref:C,className:"c-photo-viewer__image-container "+(h?"is-transitioning":""),style:{cursor:u?"grabbing":c>1?"grab":"default",opacity:h?.7:1,touchAction:"none"},onMouseDown:p,onMouseMove:g,onMouseUp:S,onMouseLeave:S,onDoubleClick:e=>{N&&b&&b(e)},children:e("img",{ref:n,src:s,alt:l,className:"c-photo-viewer__image",style:{transform:`scale(${c}) translate(${d.x}px, ${d.y}px) rotate(${m}deg)`,transition:u?"none":h?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:u?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},dr=t=>{let{images:n,currentIndex:a,goToImage:i}=t;return n.length>1?e("div",{className:"c-photo-viewer__thumbnails",children:n.map(((t,n)=>{const r=t.thumbnail||t.src;return e(le,{variant:"light",className:"c-photo-viewer__thumbnail "+(n===a?"is-active":""),onClick:()=>i(n),"aria-label":`View image ${n+1}`,"aria-current":n===a,children:e("img",{loading:"lazy",src:r,alt:t.alt||`Thumbnail ${n+1}`,className:"c-photo-viewer__thumbnail-img"})},n)}))}):null},ur=n=>{let{show:a,image:i,onClose:r}=n;return a&&i?t("div",{className:"c-photo-viewer__info-panel",children:[e(le,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,"aria-label":"Close info panel",icon:e(te,{name:"X",size:"sm"}),className:"c-photo-viewer__info-close"}),t("div",{className:"c-photo-viewer__info-content",children:[i.title&&e("h3",{className:"c-photo-viewer__info-title",children:i.title}),i.description&&e("p",{className:"c-photo-viewer__info-description",children:i.description}),i.date&&t("p",{className:"c-photo-viewer__info-meta",children:["Date: ",i.date]}),i.author&&t("p",{className:"c-photo-viewer__info-meta",children:["By: ",i.author]}),i.tags&&i.tags.length>0&&e("div",{className:"c-photo-viewer__info-tags",children:i.tags.map(((t,n)=>e(re,{label:t,variant:"light",size:"sm",className:"c-photo-viewer__info-tag"},n)))})]})]}):null},mr=n=>{let{images:a,startIndex:s=0,className:l="",disabled:c=!1,enableKeyboardNavigation:d=!0,enableGestures:u=!0,enableFullscreen:p=!0,thumbnailPosition:g="bottom",onImageChange:S,onClose:_}=n;const{currentIndex:v,zoomLevel:E,imagePosition:L,isDragging:b,isFullscreen:f,rotationAngle:C,showInfo:N,imageRef:T,containerRef:A,isTransitioning:y,setZoomLevel:O,setIsFullscreen:I,setRotationAngle:R,setShowInfo:w,closeModal:$,goToPrevious:D,goToNext:k,setCurrentIndex:x,handleMouseDown:M,handleMouseMove:P,handleMouseUp:B,handleWheel:z,handleTouchStart:F,handleTouchMove:G,handleTouchEnd:U,handleDoubleClick:V,resetImageState:Y}=(e=>{let{images:t,startIndex:n=0,enableGestures:a=!0,onImageChange:s,onClose:l}=e;const[c,d]=i(n),[u,h]=i(!1),[p,g]=i(!1),[S,_]=i({x:0,y:0}),[v,E]=i(!1),[L,b]=i(!1),[f,C]=i({}),[N,T]=i(!1),[A,y]=i(!1),[O,I]=i({velocity:0,timestamp:0}),R=r(null),w=r(null),$=r([]),D=r(null),k=r(null),x=r(0),M=r(null),P=m(((e,t)=>{if(!A||!R.current||!w.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=R.current,a=w.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const i=n.naturalWidth||n.width||800,r=n.naturalHeight||n.height||600;try{const n=a.getBoundingClientRect();if(!n||0===n.width||0===n.height)return{minX:0,maxX:0,minY:0,maxY:0};const o=n.width,s=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=i/r;let m,h;o/s>u?(h=Math.min(.9*s,r),m=h*u):(m=Math.min(.9*o,i),h=m/u);const p=(m*c+h*d)*e,g=(m*d+h*c)*e,S=Math.max(0,(p-o)/2),_=Math.max(0,(g-s)/2);return{minX:-S,maxX:S,minY:-_,maxY:_}}catch(e){return{minX:0,maxX:0,minY:0,maxY:0}}}),[A]),B=m(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);o((()=>(y(!0),n<0||n>=t.length?d(0):d(n),()=>y(!1))),[t,n]),o((()=>{u?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[u]),o((()=>{u&&C((e=>e[c]?e:{...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[u,c]),o((()=>{s&&s(c)}),[c,s]),o((()=>{const e=R.current,t=w.current,n=()=>{A&&e&&t&&C((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=P(t.zoomLevel,t.rotation),a=B(t.position,n);return{...e,[c]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&A))return e&&t&&A?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[c,P,B,A]),o((()=>{const e=()=>{A&&R.current&&w.current&&C((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=P(t.zoomLevel,t.rotation),a=B(t.position,n);return{...e,[c]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c,P,B,A]);const z=m((()=>{h(!0)}),[]),F=m((()=>{h(!1),l&&l()}),[l]),G=m((()=>{c>0&&(T(!0),setTimeout((()=>{d((e=>e-1)),T(!1)}),150))}),[c]),U=m((()=>{c<t.length-1&&(T(!0),setTimeout((()=>{d((e=>e+1)),T(!1)}),150))}),[c,t.length]),V=m((e=>{C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.zoomLevel):e,i=Math.max(.1,Math.min(5,a)),r=P(i,n.rotation),o=B(n.position,r);return{...t,[c]:{...n,zoomLevel:i,bounds:r,position:o}}}))}),[A,c,P,B]),Y=m((e=>{C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.position):e,i=B(a,n.bounds);return{...t,[c]:{...n,position:i}}}))}),[c,B]),H=m((e=>{C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=(("function"==typeof e?e(n.rotation):e)%360+360)%360,i=P(n.zoomLevel,a),r=B(n.position,i);return{...t,[c]:{...n,rotation:a,bounds:i,position:r}}}))}),[A,c,P,B]),X=m((e=>{var t;if(!A||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&null!==(t=window.location)&&void 0!==t&&null!==(t=t.href)&&void 0!==t&&Li(t).call(t,"storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(e){return}C((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},i=/Mac|iPod|iPhone|iPad/.test(navigator.platform),r=e.ctrlKey&&i,o=Math.abs(e.deltaX)>0,s=!e.ctrlKey&&o&&i,l=!e.ctrlKey&&!o&&i,d=!i;let u,m=!1;if(r)u=-.02*e.deltaY,m=!0;else if(s){if(!(a.zoomLevel>1))return t;u=-.003*e.deltaY,m=!0}else l?(u=-.004*e.deltaY,m=!0):d?(u=-.006*e.deltaY,m=!0):(u=-.005*e.deltaY,m=!0);m&&(e.preventDefault(),e.stopPropagation());const h=Date.now(),p=h-x.current;if(x.current=h,r&&p<100){const e=Math.abs(u)/p;I({velocity:e,timestamp:h}),M.current&&clearTimeout(M.current),M.current=setTimeout((()=>{const e=()=>{I((t=>{if(t.velocity<.001)return t;const n=.95*t.velocity,a=n*(u>0?1:-1);return C((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+a));if(n===t.zoomLevel)return e;const i=P(n,t.rotation),r=B(t.position,i);return{...e,[c]:{...t,zoomLevel:n,bounds:i,position:r}}})),n>=.001&&requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50)}let g;try{g=n.getBoundingClientRect()}catch(e){return t}if(!g||0===g.width||0===g.height)return t;const S=g.width/2,_=g.height/2,v=e.clientX-g.left-S,E=e.clientY-g.top-_,L=a.zoomLevel,b=Math.max(.1,Math.min(5,L+u));if(b!==L){const e=b/L,n=P(b,a.rotation),i={x:a.position.x+v*(1-e)*.5,y:a.position.y+E*(1-e)*.5},r=B(i,n);return{...t,[c]:{...a,zoomLevel:b,bounds:n,position:r}}}return t}))}}),[A,c,P,B]),j=m((e=>{if(!A||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&C((n=>{const a=n[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let i;try{i=t.getBoundingClientRect()}catch(e){return n}if(!i||0===i.width||0===i.height)return n;const r=i.width/2,o=i.height/2,s=e.clientX-i.left-r,l=e.clientY-i.top-o;let d,u={x:0,y:0};a.zoomLevel<1.5?(d=2,u={x:.5*-s,y:.5*-l}):a.zoomLevel<3?(d=4,u={x:.75*-s,y:.75*-l}):(d=1,u={x:0,y:0});const m=P(d,a.rotation),h=B(u,m);return{...n,[c]:{...a,zoomLevel:d,bounds:m,position:h}}}))}),[A,c,P,B]),W=m((e=>{C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0}};return n.zoomLevel>1&&(e.preventDefault(),g(!0),_({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[c]),q=m((e=>{p&&C((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a={x:e.clientX-S.x,y:e.clientY-S.y},i=B(a,n.bounds);return{...t,[c]:{...n,position:i}}}))}),[p,S,c,B]),K=m((()=>{g(!1)}),[]),Z=m((e=>{if(!a)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),$.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),C((e=>{const n=e[c]||{zoomLevel:1,position:{x:0,y:0}};if(1===t.length&&n.zoomLevel>1){g(!0);const e=t[0];e&&_({x:e.clientX-n.position.x,y:e.clientY-n.position.y})}else if(2===t.length){const e=t[0],n=t[1];if(e&&n){const t=e.clientX-n.clientX,a=e.clientY-n.clientY;D.current=Math.sqrt(t*t+a*a),k.current={x:(e.clientX+n.clientX)/2,y:(e.clientY+n.clientY)/2}}}return e}))}),[a,c]),J=m((e=>{if(!a)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),C((n=>{const a=n[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};a.zoomLevel>1&&1===t.length&&e.preventDefault();let i=null,r=0,o=null;if(1===t.length&&p&&a.zoomLevel>1){const e=t[0];if(e&&(i={x:e.clientX-S.x,y:e.clientY-S.y}),i){const e=B(i,a.bounds);return{...n,[c]:{...a,position:e}}}}else if(2===t.length&&null!==D.current){const i=t[0],s=t[1];if(i&&s){const t=i.clientX-s.clientX,l=i.clientY-s.clientY,d=Math.sqrt(t*t+l*l);r=.005*(d-D.current),D.current=d,o={x:(i.clientX+s.clientX)/2,y:(i.clientY+s.clientY)/2};const u=a.zoomLevel,m=Math.max(.1,Math.min(5,u+r));if(m!==u&&k.current&&o){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(e){return n}if(!t||0===t.width||0===t.height)return n;const i=t.width/2,r=t.height/2,s=o.x-t.left-i,l=o.y-t.top-r,d=m/u,h=P(m,a.rotation),p={x:a.position.x+s*(1-d)*.5,y:a.position.y+l*(1-d)*.5},g=B(p,h);return k.current=o,{...n,[c]:{...a,zoomLevel:m,bounds:h,position:g}}}o&&(k.current=o)}}return n}))}),[A,a,p,S,c,B,P]),Q=m((()=>{g(!1),D.current=null,k.current=null}),[]),ee=f[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0};return{currentIndex:c,isModalOpen:u,zoomLevel:ee.zoomLevel,imagePosition:ee.position,isDragging:p,isFullscreen:v,rotationAngle:ee.rotation,showInfo:L,imageRef:R,containerRef:w,isTransitioning:N,setCurrentIndex:d,setZoomLevel:V,setImagePosition:Y,setIsDragging:g,setIsFullscreen:E,setRotationAngle:H,setShowInfo:b,openModal:z,closeModal:F,goToPrevious:G,goToNext:U,handleWheel:X,handleMouseDown:W,handleMouseMove:q,handleMouseUp:K,handleTouchStart:Z,handleTouchMove:J,handleTouchEnd:Q,handleDoubleClick:j,resetImageState:()=>{C((e=>({...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:a,startIndex:s,enableGestures:u,onImageChange:S,onClose:_||(()=>{})}),H=h((()=>a.map((e=>"string"==typeof e?{src:e}:e))),[a]),X=H[v],j=h((()=>["c-photo-viewer",`c-photo-viewer--thumbnails-${g}`,b?"c-photo-viewer--dragging":"",f?"c-photo-viewer--fullscreen":"",N?"c-photo-viewer--info-open":"",c?"is-disabled":"",l].filter(Boolean).join(" ")),[b,f,N,c,g,l]);return o((()=>{const e=()=>{I(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[I]),o((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),a.length?t("div",{className:j,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e("div",{className:"c-photo-viewer__backdrop",onClick:$}),t("div",{className:"c-photo-viewer__container",children:[e(sr,{currentIndex:v,imagesLength:a.length,onZoomOut:()=>O((e=>Math.max(e-.25,.1))),onResetZoom:()=>{Y()},onZoomIn:()=>O((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(p){if(f)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}I(!f)}},onClose:_||$,isFullscreen:f,zoomLevel:E,onRotate:()=>{R((e=>(e+90)%360))},onDownload:()=>{if(null==X||!X.src)return;const e=document.createElement("a");e.href=X.src,e.download=X.title||`image-${v+1}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&null!=X&&X.src)try{await navigator.share({title:X.title||"Shared Image",text:X.description||"Check out this image",url:X.src})}catch(e){}},showInfo:N,onToggleInfo:()=>w(!N),currentImage:X}),t("div",{className:"c-photo-viewer__content",children:[e(lr,{show:a.length>1,onPrev:D,onNext:k,currentIndex:v,imagesLength:a.length,enableKeyboardNav:d,onClose:_||$}),(null==X?void 0:X.src)&&e(cr,{imageRef:T,containerRef:A,src:X.src,alt:(null==X?void 0:X.alt)||`Image ${v+1}`,zoomLevel:E,dragPosition:L,isDragging:b,rotationAngle:C,isTransitioning:y,onMouseDown:M,onMouseMove:P,onMouseUp:B,onWheel:z,onTouchStart:F,onTouchMove:G,onTouchEnd:U,onDoubleClick:V})]}),"none"!==g&&e(dr,{images:H,currentIndex:v,goToImage:x}),e(ur,{show:N,image:X,onClose:()=>w(!1)})]})]}):null};mr.displayName="PhotoViewer";const hr=g({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),pr=n=>{let{content:a,position:s="top",trigger:l="click",className:c="",delay:d=0,offset:u=12,defaultOpen:m=!1,isOpen:h,onOpenChange:p,closeOnClickOutside:g=!0,closeOnEscape:S=!0,id:v,children:E}=n;const{isOpen:L,setIsOpen:b,triggerRef:f,popoverRef:C,arrowRef:T,popoverId:A,currentPosition:y}=(e=>{let{position:t="top",trigger:n="click",offset:a=12,delay:s=0,defaultOpen:l=!1,isOpen:c,onOpenChange:d,closeOnClickOutside:u=!0,closeOnEscape:m=!0,id:h}=e;const[p,g]=i(l),[S,_]=i("auto"===t?"top":t),v=r(null),E=r(null),L=r(null),b=r(null),f=h||`popover-${Math.random().toString(36).slice(2,11)}`,C=void 0!==c,N=C?c:p,T=e=>{C||g(e),d&&d(e)};o((()=>{if("hover"!==n||!v.current||!E.current)return;const e=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null),s>0?b.current=setTimeout((()=>{T(!0)}),s):T(!0)},t=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null),b.current=setTimeout((()=>{var e;null!==(e=E.current)&&void 0!==e&&e.matches(":hover")||T(!1)}),100)},a=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null)},i=()=>{T(!1)};return v.current.addEventListener("mouseenter",e),v.current.addEventListener("mouseleave",t),E.current.addEventListener("mouseenter",a),E.current.addEventListener("mouseleave",i),()=>{v.current&&(v.current.removeEventListener("mouseenter",e),v.current.removeEventListener("mouseleave",t)),E.current&&(E.current.removeEventListener("mouseenter",a),E.current.removeEventListener("mouseleave",i)),null!==b.current&&window.clearTimeout(b.current)}}),[n,s,N]);const A=e=>{if(!v.current||!E.current)return;const n=v.current.getBoundingClientRect(),i=E.current.getBoundingClientRect(),r=window.innerWidth,o=window.innerHeight,s=n.top<50||n.bottom>o-50||n.left<50||n.right>r-50;if("scroll"===(null==e?void 0:e.type)&&!s)return;const l=n.top,c=o-n.bottom,d=n.left,u=r-n.right;let m="auto"===t?"top":t;if("auto"===t){var h;const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),m=null===(h=e[0])||void 0===h?void 0:h.position}else("top"===t&&l<i.height+a&&c>=i.height+a||"bottom"===t&&c<i.height+a&&l>=i.height+a||"left"===t&&d<i.width+a&&u>=i.width+a||"right"===t&&u<i.width+a&&d>=i.width+a)&&(m={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[t]);_(m);let p=0,g=0;switch(m){case"top":p=n.top-i.height-a,g=n.left+n.width/2-i.width/2;break;case"bottom":p=n.bottom+a,g=n.left+n.width/2-i.width/2;break;case"left":p=n.top+n.height/2-i.height/2,g=n.left-i.width-a;break;case"right":p=n.top+n.height/2-i.height/2,g=n.right+a}g<0?g=5:g+i.width>r&&(g=r-i.width-5),p<0?p=5:p+i.height>o&&(p=o-i.height-5);const S=p+window.scrollY,L=g+window.scrollX;E.current.style.position="absolute",E.current.style.top=`${S}px`,E.current.style.left=`${L}px`};return o((()=>{if(!N||!v.current||!E.current)return;A(),window.addEventListener("resize",A);let e=null;const t=t=>{e||(e=setTimeout((()=>{A(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{A()}),500);return()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[N,t,a]),o((()=>{if(!N||!u)return;const e=e=>{E.current&&!E.current.contains(e.target)&&v.current&&!v.current.contains(e.target)&&T(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[N,u]),o((()=>{if(!N||!m)return;const e=e=>{"Escape"===e.key&&T(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[N,m]),o((()=>()=>{null!==b.current&&window.clearTimeout(b.current)}),[]),{isOpen:N,setIsOpen:T,triggerRef:v,popoverRef:E,arrowRef:L,popoverId:f,currentPosition:S,updatePosition:A}})({position:s,trigger:l,offset:u,delay:d,defaultOpen:m,isOpen:h,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:S,id:v});return t(hr.Provider,{value:{isOpen:L,setIsOpen:b,triggerRef:f,popoverId:A,triggerType:l},children:[E,"undefined"!=typeof document&&_(t("div",{ref:C,className:`c-popover c-popover--${y} ${L?N.CLASSES.IS_OPEN:""} ${c}`,id:A,role:"tooltip","aria-hidden":!L,children:[e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:a})}),e("div",{ref:T,className:"c-popover__arrow"})]}),document.body)]})};pr.displayName="Popover";function gr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Sr(e,t){return a.useMemo((()=>null==e&&null==t?null:n=>{gr(e,n),gr(t,n)}),[e,t])}const _r=u(((n,a)=>{let{value:s=0,defaultValue:l,maxValue:c=5,allowHalf:d=!1,readOnly:u=!1,size:h="md",color:p,onChange:g,className:S="",label:_,id:v,useVanillaJS:E=!1,...L}=n;const b=r(null),f=r(null),{currentValue:C,hoverValue:N,focusedIndex:T,setHoverValue:A,setFocused:y,handleKeyDown:O}=(e=>{let{value:t=0,maxValue:n=5,allowHalf:a=!1,readOnly:r=!1,onChange:o}=e;const s=void 0!==o,[l,c]=i(t),[d,u]=i(null),[h,p]=i(null),g=s?t:l,S=m((e=>{r||u(e)}),[r]),_=m((()=>{r||u(null)}),[r]),v=m((e=>{r||(s||c(e),null==o||o(e))}),[r,o,s]),E=m(((e,t)=>{if(r)return;const i=a?.5:1;let l=g;switch(e.key){case"ArrowRight":case"ArrowUp":l=Math.min(n,g+i),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":l=Math.max(0,g-i),e.preventDefault();break;case"Home":l=0,e.preventDefault();break;case"End":l=n,e.preventDefault();break;case" ":case"Enter":l=t,e.preventDefault();break;default:return}l!==g&&(s||c(l),null==o||o(l))}),[g,n,a,r,o,s]);return{currentValue:g,hoverValue:d,focusedIndex:h,handleMouseEnter:S,handleMouseLeave:_,handleClick:v,handleKeyDown:E,setFocused:p,setHoverValue:u,isControlled:s}})({value:void 0!==s?s:l,maxValue:c,allowHalf:d,readOnly:u,onChange:g}),I=m(((e,t)=>{if(!u)if(d){const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,i=e.clientX<a?t-.5:t;A(Math.max(.5,i))}else A(t)}),[u,d,A]),R=m(((e,t)=>{if(u||!d)return;const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,i=e.clientX<a?t-.5:t;A(Math.max(.5,i))}),[u,d,A]),w=m((()=>{u||A(null)}),[u,A]),$=m(((e,t)=>{if(u)return;let n=t;if(d){const a=e.currentTarget.getBoundingClientRect(),i=a.left+a.width/2;n=e.clientX<i?t-.5:t,n=Math.max(.5,n)}null==g||g(n)}),[u,g,d]);o((()=>{if(E&&"undefined"!=typeof window&&b.current)return()=>{f.current&&f.current.destroy()}}),[E,s,l,c,d,u,h,p,g]),o((()=>{E&&f.current&&f.current.updateOptions({value:void 0!==s?s:l,maxValue:c,allowHalf:d,readOnly:u,size:h,color:p})}),[E,s,l,c,d,u,h,p]);const D=["c-rating","sm"===h?k.CLASSES.SMALL:"","lg"===h?k.CLASSES.LARGE:"",p?`c-rating--${p}`:"",S].filter(Boolean).join(" ");if(E)return e("div",{className:D,ref:Sr(b,a),id:v,...L});const x=null!==N?N:C;return e("div",{className:D,ref:Sr(b,a),id:v,"data-readonly":u?"true":"false",onMouseLeave:w,role:u?"img":"radiogroup","aria-label":_||`Rating: ${C} out of ${c} stars`,...L,children:(()=>{const n=[],a=d?Math.floor(2*x)/2:Math.round(x),i=v||`rating-${Math.random().toString(36).substring(2,9)}`;for(let r=1;r<=c;r++){const o=r<=Math.floor(a),s=d&&r-.5===a,l=["c-rating__star",o?k.CLASSES.FULL:"",s?k.CLASSES.HALF:"",p?`c-rating__star--${p}`:"",T===r?"c-rating__star--focused":""].filter(Boolean).join(" "),m=`${i}-star-${r}`;n.push(e("div",{id:m,className:l,"data-value":r,role:u?"presentation":"button",tabIndex:u?-1:0,"aria-label":`${r} ${1===r?"star":"stars"}`,"aria-checked":r<=a,"aria-setsize":c,"aria-posinset":r,onClick:e=>$(e,r),onMouseEnter:e=>I(e,r),onMouseMove:e=>R(e,r),onFocus:()=>y(r),onBlur:()=>y(null),onKeyDown:e=>O(e,r),children:t("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),e("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),e("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${i}-${r})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${i}-${r}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},r))}return n})()})}));_r.displayName="Rating";const vr=n=>{let{productName:a,productImage:s,initialRating:l=0,maxRating:c=5,allowHalf:d=!0,ratingColor:u="warning",onSubmit:m,className:h=""}=n;const[p,g]=i(l),[S,_]=i(""),[v,E]=i(!1),L=r(null),b=r(null);o((()=>{if("undefined"!=typeof window&&L.current)return()=>{b.current&&b.current.destroy()}}),[a,s,l,c,d,u,m]);const f=e=>{e.preventDefault(),m&&m(p,S),E(!0)},C=["c-product-review",h].filter(Boolean).join(" ");return v?e("div",{className:C,ref:L,children:t("div",{className:"c-product-review__success",children:[e("h3",{children:"Thank you for your review!"}),e("p",{children:"Your feedback helps us improve our products."}),e(le,{variant:"secondary",label:"Write another review",onClick:()=>{E(!1),g(0),_("")}})]})}):t("div",{className:C,ref:L,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",a]}),s&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:s,alt:a,className:"c-product-review__image"})})]}),t("form",{className:"c-product-review__form",onSubmit:f,children:[t("div",{className:"c-product-review__rating-container",children:[e("label",{className:"c-product-review__label",children:"Your Rating"}),t("div",{className:"c-rating-container",children:[e(_r,{value:p,onChange:g,allowHalf:d,maxValue:c,size:"lg",color:u}),e("span",{className:"c-rating__value",children:p>0?p.toFixed(1):"Select a rating"})]})]}),t("div",{className:"c-product-review__comment-container",children:[e("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),e("textarea",{id:"review-comment",className:"c-product-review__textarea",value:S,onChange:e=>_(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(le,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>f(new Event("click"))})})]})]})};vr.displayName="ProductReview";const Er=u(((t,n)=>{let{value:a,variant:i="primary",size:r="md",className:o="",disabled:s=!1,ariaLabel:l=Z.DEFAULTS.ARIA_LABEL}=t;const{progressValue:c,progressStyle:d,progressClasses:u}=(e=>{let{value:t,variant:n="primary",size:a="md",className:i=""}=e;const r=Math.min(Math.max(t,0),100),o="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":`${r}%`},progressClasses:[o,n?`${o}--${n}`:"",a?`${o}--${a}`:"",i||""].filter(Boolean).join(" ")}})({value:a,variant:i,size:r,className:o});return e("div",{ref:n,className:u,style:d,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c,"aria-label":l,"aria-disabled":s,children:e("div",{className:Z.CLASSES.BAR})})}));function Lr(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:i=t.valid,className:r=""}=e;let o="";a?o=U.CLASSES.INVALID:i&&(o=U.CLASSES.VALID);const s=n?U.CLASSES.DISABLED:"";return`${U.CLASSES.BASE} ${o} ${s} ${r}`.trim()}}}const br=n=>{let{label:a,checked:i=!1,onChange:r,className:o="",disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:m=!1,valid:h=!1,ariaLabel:p,ariaDescribedBy:g}=n;const{generateRadioClass:S}=Lr({disabled:s,invalid:m,valid:h}),_=S({className:o,disabled:s,invalid:m,valid:h});return t("div",{className:_,children:[e("input",{type:"radio",className:"c-radio__input",checked:i,onChange:r,disabled:s,required:l,id:c,name:d,value:u,"aria-label":a?void 0:p,"aria-describedby":g,"aria-invalid":m}),a&&e("label",{className:"c-radio__label",htmlFor:c,children:a})]})};function fr(e){const t={center:!1,breakout:!1,reverse:!1,...e};return{generateRiverClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const n=[w.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(w.CLASSES.CENTER),t.breakout&&n.push(w.CLASSES.BREAKOUT),t.reverse&&n.push(w.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>w.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>w.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}br.displayName="Radio";const Cr=n=>{let{title:a,text:i,actions:s,imageSrc:l,imageAlt:c="Image",center:d=!1,breakout:u=!1,reverse:m=!1,contentColumns:h,backgroundImageSrc:p,showOverlay:g=!0,contentWidth:S,className:_=""}=n;const v=r(null),E=r(null),{generateRiverClassNames:L,generateContentClass:b,generateVisualClass:f,hasBackgroundImage:C,hasForegroundImage:N,textContent:T}=fr({title:a,text:i,imageSrc:l,imageAlt:c,center:d,breakout:u,reverse:m,backgroundImageSrc:p,showOverlay:g,contentWidth:S});o((()=>{if("undefined"!=typeof window&&v.current)return Promise.resolve().then((function(){return oo})).then((e=>{let{default:t}=e;v.current&&(E.current=new t(v.current,{center:d,breakout:u,reverse:m,backgroundImageSrc:p,showOverlay:g}))})),()=>{E.current&&E.current.destroy()}}),[d,u,m,p,g]);const A=S?{[w.ATTRIBUTES.CONTENT_WIDTH]:S}:void 0,y=()=>C?t("div",{className:w.SELECTORS.BG.replace(".",""),children:[e("img",{src:p,alt:"Background",className:w.SELECTORS.BG_IMAGE.replace(".","")}),g&&e("div",{className:w.SELECTORS.OVERLAY.replace(".","")})]}):null,O=()=>N?e("div",{className:f(),children:e("div",{className:w.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:l,alt:c,className:w.SELECTORS.IMAGE.replace(".","")})})}):null;return h&&h.length>0?t("div",{className:L(_),ref:v,style:A,children:[y(),e("div",{className:`${w.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:w.SELECTORS.ROW.replace(".",""),children:[!m&&O(),t("div",{className:b(),children:[h.map(((t,n)=>e("div",{className:`${w.SELECTORS.CONTENT_COL.replace(".","")} ${w.SELECTORS[`CONTENT_COL_${t.type.toUpperCase()}`].replace(".","")}`,children:t.content},n))),s&&e("div",{className:w.SELECTORS.ACTIONS.replace(".",""),children:s})]}),m&&O()]})})]}):t("div",{className:L(_),ref:v,style:A,children:[y(),e("div",{className:`${w.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:w.SELECTORS.ROW.replace(".",""),children:[!m&&O(),t("div",{className:b(),children:[a&&e("h2",{className:w.SELECTORS.TITLE.replace(".",""),children:a}),T.map(((t,n)=>e("p",{className:w.SELECTORS.TEXT.replace(".",""),children:t},n))),s&&e("div",{className:w.SELECTORS.ACTIONS.replace(".",""),children:s})]}),m&&O()]})})]})};Cr.displayName="River";const Nr=n=>{let{title:a,label:i,text:s,actions:l,alignment:c="left",backgroundImageSrc:d,showOverlay:u=!1,imageSrc:m,imageAlt:h="Section image",size:p="md",skeleton:g=!1,className:S=""}=n;const _=r(null),v=r(null);o((()=>{if("undefined"!=typeof window&&_.current)return Promise.resolve().then((function(){return lo})).then((e=>{let{default:t}=e;_.current&&(v.current=new t(_.current,{alignment:c,backgroundImageSrc:d,showOverlay:u,size:p,skeleton:g}))})),()=>{v.current&&v.current.destroy()}}),[c,d,u,p,g]);const E=["c-sectionintro","center"===c?R.CLASSES.CENTER:"","sm"===p?R.CLASSES.SMALL:"","lg"===p?R.CLASSES.LARGE:"",d?"c-sectionintro--has-bg":"",S].filter(Boolean).join(" ");if(g)return e("div",{className:E,ref:_,children:t("div",{className:"c-sectionintro__container o-container",children:[i&&e("div",{className:"c-sectionintro__label",children:e("span",{className:"c-skeleton u-w-25"})}),e("div",{className:"c-sectionintro__title",children:e("span",{className:"c-skeleton"})}),s&&t("div",{className:"c-sectionintro__text",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"})]}),l&&e("div",{className:"c-sectionintro__actions",children:e("span",{className:"c-skeleton u-w-25"})}),m&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})});return t("div",{className:E,ref:_,children:[d?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:d,alt:"Background",className:"c-sectionintro__bg-image"}),u&&e("div",{className:"c-sectionintro__overlay"})]}):null,t("div",{className:"c-sectionintro__container o-container",children:[i&&e("div",{className:"c-sectionintro__label",children:i}),e("h2",{className:"c-sectionintro__title",children:a}),s&&e("div",{className:"c-sectionintro__text",children:s}),l&&e("div",{className:"c-sectionintro__actions",children:l}),m&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:m,alt:h,className:"c-sectionintro__image"})})]})]})};function Tr(e,t){return e.classList.contains(t)}Nr.displayName="SectionIntro";const Ar={House:"M240 121.6V240h-48v-72a24 24 0 0 0-24-24h-80a24 24 0 0 0-24 24v72H16V121.6a16 16 0 0 1 5.4-12L111.4 29a16 16 0 0 1 21.2 0l90 80.6a16 16 0 0 1 5.4 12Z",Package:"M223.68 66.15 135.68 18a15.88 15.88 0 0 0-15.36 0l-88 48.13a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03ZM128 32.59l74.12 40.55-32 17.56-74.12-40.55ZM96 68.08l73.56 40.23-32.04 17.53L64 85.64ZM40 95.83l72 39.39v79.23l-72-39.4Zm144 79.22v-79.23l72-39.39v79.22Z",Folder:"M216 72h-84.7L104.4 44.2A16.05 16.05 0 0 0 92.7 40H40a16 16 0 0 0-16 16v144.3a15.91 15.91 0 0 0 15.9 15.7h176.2a15.91 15.91 0 0 0 15.9-15.7V88a16 16 0 0 0-16-16Z",Tag:"M246.15 128.6 183.06 65.5l.09-24.21A16.05 16.05 0 0 0 167 25.14l-24.1.09L79.4 88.85a16 16 0 0 0 0 22.63l67.26 67.27a16 16 0 0 0 22.63 0l76.86-76.86a16 16 0 0 0 0-23.29ZM160 152l-56-56 56-56 56 56Zm-16-72a16 16 0 1 1-16 16 16 16 0 0 1 16-16Z",CaretRight:"M181.66 133.66l-80 80A8 8 0 0 1 88 208V48a8 8 0 0 1 13.66-5.66l80 80a8 8 0 0 1 0 11.32Z",CaretDown:"M208 96v16a8 8 0 0 1-2.34 5.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 32 112V96a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8Z",User:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z",Home:"M224 115.55V208a16 16 0 0 1-16 16h-40a16 16 0 0 1-16-16v-40a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v40a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-92.45a16 16 0 0 1 5.17-11.78l80-75.48a16 16 0 0 1 21.66 0l80 75.48a16 16 0 0 1 5.17 11.78Z",X:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128l66.35 66.34Z",Calendar:"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z",CaretDoubleLeft:"M181.66 181.66a8 8 0 0 1-11.32 0L120 131.31V160a8 8 0 0 1-13.66 5.66l-48-48a8 8 0 0 1 0-11.32l48-48A8 8 0 0 1 120 64v28.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0L102.63 98 64 128l38.63 30L114.34 146.63a8 8 0 0 1 11.32 0l56 56a8 8 0 0 1 0 11.32Z",CaretDoubleRight:"M74.34 181.66a8 8 0 0 0 11.32 0L136 131.31V160a8 8 0 0 0 13.66 5.66l48-48a8 8 0 0 0 0-11.32l-48-48A8 8 0 0 0 136 64v28.69L85.66 42.34a8 8 0 0 0-11.32 11.32l56 56a8 8 0 0 0 11.32 0l11.71-11.71L192 128l-38.63 30-11.71-11.71a8 8 0 0 0-11.32 0l-56 56a8 8 0 0 0 0 11.32Z"};function yr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;const n=Ar[e]||"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${n}"></path>\n </svg>`}function Or(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}var Ir=Object.freeze({__proto__:null,addClass:function(e,t){Tr(e,t)||e.classList.add(t)},createIconElement:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const a=document.createElement("span");return a.className=n||"c-icon",a.style.display="inline-flex",a.style.alignItems="center",a.style.justifyContent="center",a.innerHTML=yr(e,t),a},createPhosphorIcon:yr,generateUUID:Or,getAvailableIcons:function(){return Object.keys(Ar)},hasClass:Tr,removeClass:function(e,t){Tr(e,t)&&e.classList.remove(t)},toggleClass:function(e,t,n){e.classList.toggle(t,n)}});function Rr(e){const t={items:[],size:"md",...e},[n,a]=i(t.items||[]),[r,o]=i(""),s=e=>{if(!e.trim())return null;const t={id:Or(),text:e.trim(),completed:!1};return a((e=>[...e,t])),o(""),t};return{items:n,inputText:r,setInputText:o,addTodo:s,toggleTodo:e=>{let t=null;return a((n=>n.map((n=>n.id===e?(t={...n,completed:!n.completed},t):n)))),t},deleteTodo:e=>{const t=n.length;return a((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!r.trim())return;const n=s(r);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:i=!1}=e,r="md"===n?"":`c-todo--${n}`,o=i?"c-todo--disabled":"";return`${B.CLASSES.BASE} ${r} ${o} ${a}`.trim()},generateItemClasses:e=>{const t=e.completed?B.CLASSES.COMPLETED:"";return`${B.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?n:n.filter((e=>!e.completed))}}}function wr(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?Y.CLASSES.SMALL:Y.CLASSES.LARGE;let l="";i?l=Y.CLASSES.INVALID:r&&(l=Y.CLASSES.VALID);const c=a?Y.CLASSES.DISABLED:"";return`${Y.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}function $r(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:i=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:s=""}=e,l="md"===n?"":"sm"===n?H.CLASSES.SMALL:H.CLASSES.LARGE,c=a?`c-input--${a}`:"";let d="";r?d=H.CLASSES.INVALID:o&&(d=H.CLASSES.VALID);const u=i?H.CLASSES.DISABLED:"";return`${H.CLASSES.BASE} ${l} ${c} ${d} ${u} ${s}`.trim()}}}var Dr=Object.freeze({__proto__:null,DOTS:xi,useAccordion:J,useBadge:ie,useBreadcrumb:function(e){return{defaultOptions:{items:[],divider:b.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[b.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[b.CLASSES.ITEM,e.active||t?b.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>Boolean(e.href&&!e.active&&!t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(e){return[]}}}},useButton:se,useCard:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{elevationEffect:t=!1,elevationClass:n=V.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:o="click",focusEffect:s=!1,clickable:l=!1,onClick:c}=e,d=r(null),u=r(null),h=r(null),[p,g]=i(!1),[S,_]=i(!1),[v,E]=i(!1),[L,b]=i(!1),f=m((e=>{a&&"click"===o&&g((e=>!e)),c&&c(e)}),[a,o,c]),C=m((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===o&&g((e=>!e)),c&&c(e))}),[a,o,c]),N=m((()=>{b(!0),t&&_(!0),a&&"hover"===o&&g(!0)}),[t,a,o]),T=m((()=>{b(!1),t&&_(!1),a&&"hover"===o&&g(!1)}),[t,a,o]),A=m((()=>{E(!0)}),[]),y=m((()=>{E(!1)}),[]),O=m((()=>({className:[V.CLASSES.BASE,S?n:"",p?V.CLASSES.FLIPPED:"",v&&s?V.CLASSES.FOCUSED:"",l?V.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:d,tabxwIndex:l||a?0:-1,role:l?"button":void 0,onMouseEnter:N,onMouseLeave:T,onFocus:A,onBlur:y,onClick:f,onKeyDown:C})),[S,p,v,n,s,l,N,T,A,y,f,C,a]);return{cardRef:d,frontRef:u,backRef:h,isFlipped:p,isElevated:S,isFocused:v,isHovered:L,handleClick:f,handleKeyDown:C,handleMouseEnter:N,handleMouseLeave:T,handleFocus:A,handleBlur:y,getCardProps:O}},useCheckbox:Oi,useDataTable:$i,useEdgePanel:Wi,useForm:Ki,useFormGroup:function(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?F.CLASSES.SMALL:F.CLASSES.LARGE,l=i?F.CLASSES.INVALID:r?F.CLASSES.VALID:"",c=a?F.CLASSES.DISABLED:"";return`${F.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}},useHero:Ji,useInput:er,useModal:function(){let{isOpen:e,onOpenChange:t,onOpen:n,onClose:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,s]=i(!1),l=void 0!==e,c=l?!!e:r;o((()=>{l&&s(!!e)}),[e,l]);const d=m((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),u=m((()=>{d(!0)}),[d]),h=m((()=>{d(!1)}),[d]),p=m((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:h,toggle:p}},useNav:function(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:i=""}=e;return`c-nav ${"start"!==n?`c-nav--${n}`:""} ${"default"!==a?`c-nav--${a}`:""} ${i}`.trim()}}},useNavDropdown:function(e){const t={alignment:"start",megaMenu:!1,...e},n=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:n=t.alignment,megaMenu:a=t.megaMenu,className:i=""}=e,r=a?D.SELECTORS.MEGA_MENU.replace(".",""):D.SELECTORS.DROPDOWN_MENU.replace(".","");let o="";return"center"===n?o=`${r}--center`:"end"===n&&(o=`${r}--end`),`${r} ${o} ${i}`.trim()},isInFixedBottomNavbar:n,getIconClass:function(){return"c-nav__icon "+(n()?"icon-lux-caret-up":"icon-lux-caret-down")},getIconName:function(){return n()?"CaretUp":"CaretDown"}}},useNavItem:function(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:n=t.dropdown,megaMenu:a=t.megaMenu,active:i=t.active,disabled:r=t.disabled,className:o=""}=e;return`c-nav__item ${n&&!a?D.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${i?D.CLASSES.ACTIVE:""} ${r?D.CLASSES.DISABLED:""} ${o}`.trim()},generateNavLinkClass:function(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`c-nav__link ${arguments.length>0&&void 0!==arguments[0]&&arguments[0]?D.CLASSES.ACTIVE:""} ${e?"c-nav__link--disabled":""} ${t}`.trim()},handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}},useNavbar:rr,usePagination:Pi,useRadio:Lr,useRiver:fr,useSelect:wr,useSpinner:Di,useTextarea:$r,useTodo:Rr});const kr=n=>{let{options:a=[],value:s,onChange:l,onBlur:c,onFocus:d,placeholder:u="Select an option",className:m="",disabled:h=!1,required:p=!1,id:g,name:S,size:_="md",invalid:v=!1,valid:E=!1,multiple:L=!1,ariaLabel:b,ariaDescribedBy:f}=n;const{generateSelectClass:C}=wr({size:_,disabled:h,invalid:v,valid:E}),N=C({className:m,size:_,disabled:h,invalid:v,valid:E}),[T,A]=i(!1),[y,O]=i(u),I=r(null),R=r(null),w=r(null),$=r(null);o((()=>{if(s){const e=a.find((e=>e.value===s));e&&O(e.label)}else O(u)}),[s,a,u]),o((()=>{const e=e=>{I.current&&!I.current.contains(e.target)&&(A(!1),w.current&&(w.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);return t("div",{className:`${N} ${T?Y.CLASSES.IS_OPEN:""}`,ref:I,"aria-expanded":T,children:[t("select",{ref:$,value:s,onChange:l,onBlur:c,onFocus:d,disabled:h,required:p,id:g,name:S,multiple:L,"aria-label":b,"aria-describedby":f,"aria-invalid":v,style:{display:"none"},children:[u&&e("option",{value:"",disabled:!0,children:u}),a.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:Y.CLASSES.SELECTED,onClick:()=>{h||(!T&&w.current&&R.current?w.current.style.height=`${R.current.clientHeight}px`:w.current&&(w.current.style.height="0px"),A(!T))},"aria-disabled":h,children:y}),e("i",{className:`${Y.CLASSES.ICON_CARET} ${Y.CLASSES.TOGGLE_ICON}`}),e("div",{className:Y.CLASSES.SELECT_BODY,ref:w,style:{height:0},children:e("div",{className:Y.CLASSES.SELECT_PANEL,ref:R,children:e("ul",{className:Y.CLASSES.SELECT_ITEMS,children:a.map(((n,a)=>e("li",{className:Y.CLASSES.SELECT_ITEM,"data-value":n.value,onClick:()=>!n.disabled&&(e=>{if(O(e.label),A(!1),w.current&&(w.current.style.height="0px"),$.current&&($.current.value=e.value),l){const t={target:{name:S,value:e.value}};l(t)}})(n),children:t("label",{htmlFor:`SelectItem${a}`,className:"c-checkbox",children:[e("input",{type:"checkbox",id:`SelectItem${a}`,className:"c-checkbox__input c-select__item-input",checked:s===n.value,readOnly:!0,disabled:n.disabled}),e("div",{className:"c-select__item-label",children:n.label})]})},n.value)))})})})]})};kr.displayName="Select";const xr=n=>{let{items:a,activeIndex:s=0,vertical:l=!1,onStepChange:c,className:d=""}=n;const[u,m]=i(s),h=r(null),p=r(null);return o((()=>{if("undefined"!=typeof window&&h.current)return Promise.resolve().then((function(){return uo})).then((e=>{let{default:t}=e;h.current&&(p.current=new t(h.current,{activeIndex:u,vertical:l}))})),()=>{p.current&&p.current.destroy()}}),[]),o((()=>{u!==s&&(m(s),p.current&&p.current.setActive(s))}),[s]),e("div",{className:`c-steps ${l?y.CLASSES.VERTICAL:""} ${d}`,ref:h,role:"navigation","aria-label":"Steps",children:a.map(((n,a)=>t("div",{className:`c-steps__item ${a<=u?y.CLASSES.ACTIVE:""} ${a<u?y.CLASSES.COMPLETED:""}`,"aria-current":a===u?"step":void 0,children:[e("div",{className:"c-steps__line"}),t("div",{className:"c-steps__content",children:[e("div",{className:"c-steps__number",children:n.number}),e("div",{className:"c-steps__text",children:n.text}),n.content&&e("div",{className:"c-steps__custom-content",children:n.content})]})]},`step-${a}`)))})};xr.displayName="Steps";const Mr=n=>{let{items:a,activeIndex:s=A.DEFAULTS.ACTIVE_INDEX,onTabChange:l,className:c=""}=n;const[d,u]=i(s),m=r(null),h=r(null);o((()=>{if("undefined"!=typeof window&&m.current)return Promise.resolve().then((function(){return ho})).then((e=>{let{default:t}=e;m.current&&(h.current=new t(m.current))})),()=>{h.current&&h.current.destroy()}}),[]);return t("div",{className:`c-tabs js-atomix-tab ${c}`,ref:m,children:[e("ul",{className:"c-tabs__nav",children:a.map(((t,n)=>e("li",{className:"c-tabs__nav-item",children:e("button",{className:`c-tabs__nav-btn ${n===d?A.CLASSES.ACTIVE:""}`,onClick:()=>(e=>{u(e),l&&l(e)})(n),"data-tabindex":n,role:"tab","aria-selected":n===d,"aria-controls":`tab-panel-${n}`,children:t.label})},`tab-nav-${n}`)))}),e("div",{className:"c-tabs__panels",children:a.map(((t,n)=>e("div",{className:`c-tabs__panel ${n===d?A.CLASSES.ACTIVE:""}`,"data-tabindex":n,id:`tab-panel-${n}`,role:"tabpanel","aria-labelledby":`tab-nav-${n}`,style:{height:n===d?"auto":"0px",opacity:n===d?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:e("div",{className:"c-tabs__panel-body",children:t.content})},`tab-panel-${n}`)))})]})};Mr.displayName="Tab";const Pr=n=>{let{quote:a,author:i,size:s="",skeleton:l=!1,className:c=""}=n;const d=r(null),u=r(null);o((()=>{if("undefined"!=typeof window&&d.current)return Promise.resolve().then((function(){return go})).then((e=>{let{default:t}=e;d.current&&(u.current=new t(d.current,{size:s,skeleton:l}))})),()=>{u.current&&u.current.destroy()}}),[s,l]);const m=["c-testimonial","sm"===s?O.CLASSES.SMALL:"","lg"===s?O.CLASSES.LARGE:"",c].filter(Boolean).join(" ");return t("div",l?{className:m,ref:d,children:[t("blockquote",{className:"c-testimonial__quote",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"}),e("span",{className:"c-skeleton u-w-25"})]}),t("div",{className:"c-testimonial__author",children:[e("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t("div",{className:"c-testimonial__info u-w-75",children:[e("p",{className:"c-testimonial__author-name",children:e("span",{className:"c-skeleton u-w-25"})}),e("p",{className:"c-testimonial__author-role",children:e("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:m,ref:d,children:[e("blockquote",{className:"c-testimonial__quote",children:a}),i&&t("div",{className:"c-testimonial__author",children:[i.avatarSrc&&e("img",{src:i.avatarSrc,alt:i.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t("div",{className:"c-testimonial__info",children:[e("p",{className:"c-testimonial__author-name",children:i.name}),e("p",{className:"c-testimonial__author-role",children:i.role})]})]})]})};Pr.displayName="Testimonial";const Br=t=>{let{value:n,onChange:a,onBlur:i,onFocus:r,placeholder:o,className:s="",disabled:l=!1,required:c=!1,readOnly:d=!1,id:u,name:m,rows:h=4,cols:p,maxLength:g,minLength:S,size:_="md",variant:v,invalid:E=!1,valid:L=!1,autoFocus:b=!1,ariaLabel:f,ariaDescribedBy:C}=t;const{generateTextareaClass:N}=$r({size:_,variant:v,disabled:l,invalid:E,valid:L}),T=N({className:s,size:_,variant:v,disabled:l,invalid:E,valid:L});return e("textarea",{className:T,value:n,onChange:a,onBlur:i,onFocus:r,placeholder:o,disabled:l,required:c,readOnly:d,id:u,name:m,rows:h,cols:p,maxLength:g,minLength:S,autoFocus:b,"aria-label":f,"aria-describedby":C,"aria-invalid":E})};Br.displayName="Textarea";const zr=n=>{let{items:a=[],title:r="Todo List",onAddTodo:s,onToggleTodo:l,onDeleteTodo:c,size:d="md",placeholder:u="Add a new todo",showCompleted:m=!0,className:h="",disabled:p=!1}=n;const{inputText:g,setInputText:S,addTodo:_,generateTodoClasses:v,generateItemClasses:E}=Rr({items:a,title:r,size:d,placeholder:u,showCompleted:m,disabled:p}),[L,b]=i(a);o((()=>{b(a)}),[a]);const f=m?L:L.filter((e=>!e.completed)),C=v({size:d,className:h,disabled:p});return t("div",{className:C,children:[r&&e("h2",{className:"c-todo__title",children:r}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:Or(),text:g.trim(),completed:!1};b((e=>[...e,t])),s&&s(g),S("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:u,value:g,onChange:e=>S(e.target.value),disabled:p,"aria-label":"Add a new todo"}),e("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:p||!g.trim(),"aria-label":"Add todo",children:e(te,{name:"Plus",size:"sm"})})]})}),e("ul",{className:"c-todo__list",children:0===f.length?e("li",{className:"c-todo__empty",children:"No items to display"}):f.map((n=>e("li",{className:E(n),children:t("div",{className:"c-todo__item-content",children:[t("label",{className:"c-todo__checkbox-label",children:[e("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:n.completed,onChange:()=>(e=>{p||(b((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),l&&l(e))})(n.id),disabled:p,"aria-label":`Mark "${n.text}" as ${n.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:n.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{p||(b((t=>t.filter((t=>t.id!==e)))),c&&c(e))})(n.id),disabled:p,"aria-label":`Delete "${n.text}"`,children:e(te,{name:"Trash",size:"sm"})})]})},n.id)))})]})};zr.displayName="Todo";const Fr=t=>{let{initialOn:n=!1,onToggleOn:a,onToggleOff:s,disabled:l=!1,className:c=""}=t;const[d,u]=i(n),m=r(null),h=r(null);return o((()=>{if("undefined"==typeof window||!m.current)return;Promise.resolve().then((function(){return So})).then((e=>{let{default:t}=e;m.current&&(h.current=new t(m.current))}));const e=()=>{u(!0),a&&a()},t=()=>{u(!1),s&&s()},i=m.current;return null==i||i.addEventListener("toggle:on",e),null==i||i.addEventListener("toggle:off",t),n&&h.current&&h.current.turnOn(),()=>{null==i||i.removeEventListener("toggle:on",e),null==i||i.removeEventListener("toggle:off",t),h.current&&h.current.destroy()}}),[n,a,s]),o((()=>{h.current&&(d?h.current.turnOn():h.current.turnOff())}),[d]),e("div",{className:`c-toggle ${d?T.CLASSES.IS_ON:""} ${l?"is-disabled":""} ${c}`,ref:m,role:"switch","aria-checked":d,tabIndex:l?-1:0,"aria-disabled":l,children:e("div",{className:"c-toggle__switch"})})};Fr.displayName="Toggle";const Gr={trigger:C.DEFAULTS.TRIGGER,position:C.DEFAULTS.POSITION,offset:C.DEFAULTS.OFFSET,delay:C.DEFAULTS.DELAY,activeClass:C.CLASSES.IS_ACTIVE,contentIdAttr:C.ATTRIBUTES.CONTENT_ID,positionAttr:C.ATTRIBUTES.POSITION,triggerAttr:C.ATTRIBUTES.TRIGGER};let Ur=class e{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isActive=!1,this.selector=e||C.SELECTORS.TOOLTIP,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...Gr,...t},this.timeout=null,this.hideTimeout=null,this.$trigger=null,this.$content=null,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this._setPosition(),this._bindEvents())}_initializeElements(){if(!this.$element)return;const e=this.$element.parentElement;if(!e)return;this.$trigger=e.querySelector(C.SELECTORS.TRIGGER),this.$content=this.$element.querySelector(C.SELECTORS.CONTENT);const t=this.$element.getAttribute(this.options.positionAttr);t&&(this.options.position=t);const n=this.$element.getAttribute(this.options.triggerAttr);n&&(this.options.trigger=n)}_setPosition(){if(!this.$content||!this.$element)return;switch(this.$element.classList.remove(C.CLASSES.TOP,C.CLASSES.BOTTOM,C.CLASSES.LEFT,C.CLASSES.RIGHT,C.CLASSES.TOP_LEFT,C.CLASSES.TOP_RIGHT,C.CLASSES.BOTTOM_LEFT,C.CLASSES.BOTTOM_RIGHT),this.options.position){case"top":default:this.$element.classList.add(C.CLASSES.TOP);break;case"bottom":this.$element.classList.add(C.CLASSES.BOTTOM);break;case"left":this.$element.classList.add(C.CLASSES.LEFT);break;case"right":this.$element.classList.add(C.CLASSES.RIGHT);break;case"top-left":this.$element.classList.add(C.CLASSES.TOP_LEFT);break;case"top-right":this.$element.classList.add(C.CLASSES.TOP_RIGHT);break;case"bottom-left":this.$element.classList.add(C.CLASSES.BOTTOM_LEFT);break;case"bottom-right":this.$element.classList.add(C.CLASSES.BOTTOM_RIGHT)}const e=this.options.offset;switch(this.options.position){case"top":case"top-left":case"top-right":default:this.$element.style.bottom=`${e}px`;break;case"bottom":case"bottom-left":case"bottom-right":this.$element.style.top=`${e}px`;break;case"left":this.$element.style.right=`${e}px`;break;case"right":this.$element.style.left=`${e}px`}}_bindEvents(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.addEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.addEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.addEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("blur",this._handleTriggerLeave.bind(this)))}_handleTriggerEnter(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.timeout||(this.timeout=window.setTimeout((()=>{this.show(),this.timeout=null}),this.options.delay))}_handleTriggerLeave(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout=window.setTimeout((()=>{this.hide(),this.hideTimeout=null}),this.options.delay)}_handleTriggerClick(){this.$element&&this.$element.classList.contains(this.options.activeClass)?this.hide():this.show()}isInitialized(){return!!this.$element&&!!this.$trigger}isVisible(){return this.isActive}getElement(){return this.$element}getTriggerElement(){return this.$trigger}getPosition(){return this.options.position}setPosition(e){this.options.position!==e&&(this.options.position=e,this._setPosition())}show(){if(!this.$element)return;const e=new CustomEvent("tooltip:show",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.add(this.options.activeClass),this.isActive=!0)}hide(){if(!this.$element)return;const e=new CustomEvent("tooltip:hide",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.remove(this.options.activeClass),this.isActive=!1)}destroy(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.removeEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.removeEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.removeEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("blur",this._handleTriggerLeave.bind(this)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.$element&&this.$element.classList.remove(this.options.activeClass))}static initializeAll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.SELECTORS.TOOLTIP,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=document.querySelectorAll(t);return Array.from(a).map((t=>new e(t,n)))}};const Vr=n=>{let{content:a,children:i,position:s=C.DEFAULTS.POSITION,trigger:l=C.DEFAULTS.TRIGGER,className:c="",delay:d=C.DEFAULTS.DELAY,offset:u=C.DEFAULTS.OFFSET}=n;const m=r(null),h=r(null);return o((()=>(m.current&&(h.current=new Ur(m.current,{position:s,trigger:l,delay:d,offset:u})),()=>{h.current&&h.current.destroy()})),[s,l,d,u]),t("div",{className:"u-position-relative u-d-inline-block",children:[e("div",{className:`${C.SELECTORS.TRIGGER.substring(1)}${c?` ${c}`:""}`,children:i}),e("div",{className:`c-tooltip ${C.SELECTORS.TOOLTIP.substring(1)}`,ref:m,"data-tooltip-position":s,"data-tooltip-trigger":l,children:t("div",{className:`c-tooltip__content ${C.SELECTORS.CONTENT.substring(1)}`,children:[e("span",{className:C.SELECTORS.ARROW.substring(1)}),a]})})]})};Vr.displayName="Tooltip";const Yr=a=>{let{disabled:s=!1,maxSizeInMB:l=5,acceptedFileTypes:c=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:d=!1,title:u="Drag and Drop files here",supportedFilesText:m="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:h="Choose File",helperText:p=`Maximum size: ${l}MB`,icon:g=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:S,onFileUpload:_,onFileUploadComplete:v,onFileUploadError:E,className:L=""}=a;const b=r(null),f=r(null),C=r(null),[N,T]=i("idle"),[A,y]=i(!1),[O,I]=i(null),[R,w]=i(0),[D,k]=i(null),[x,M]=i(null),[P,B]=i(null),z=r(0);o((()=>{if("undefined"!=typeof window&&b.current)return Promise.resolve().then((function(){return vo})).then((e=>{let{default:t}=e;b.current&&(C.current=new t(b.current,{disabled:s,maxSizeInMB:l,acceptedFileTypes:c,multiple:d,onFileSelect:S,onFileUpload:(e,t)=>{w(t),k(`${Math.ceil((100-t)/5)} seconds left`),_&&_(e,t)},onFileUploadComplete:e=>{T("success"),B("Upload successful"),v&&v(e)},onFileUploadError:(e,t)=>{T("error"),M(t),E&&E(e,t)}}))})),()=>{C.current&&C.current.destroy()}}),[s,l,c,d,S,_,v,E]);const F=e=>{if(!e.length)return;const t=(d?e:[e[0]]).filter((e=>void 0!==e&&G(e)));t.length&&S&&S(t),t.length&&(I(t[0]||null),t[0]&&U(t[0]))},G=e=>{const t=1024*l*1024;if(e.size>t)return T("error"),M(`File too large. Maximum size is ${l}MB.`),!1;if(null!=c&&c.length){if(!c.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(`${n}/`)}return e.type===t})))return T("error"),M("File type not supported."),!1}return!0},U=e=>{T("loading"),w(0);let t=0;const n=setInterval((()=>{t+=5,t<100?(w(t),k(`${Math.ceil((100-t)/5)} seconds left`),_&&_(e,t)):(clearInterval(n),T("success"),B("Upload successful"),v&&v(e))}),500)},V=["c-upload",s?$.CLASSES.DISABLED:"","loading"===N?$.CLASSES.LOADING:"","success"===N?$.CLASSES.SUCCESS:"","error"===N?$.CLASSES.ERROR:"",A?$.CLASSES.DRAGGING:"",L].filter(Boolean).join(" "),Y=R>0?{[$.ATTRIBUTES.PERCENTAGE]:R}:{};return t("div",{className:V,ref:b,style:Y,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),s||(z.current++,1===z.current&&y(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),s||(z.current--,0===z.current&&y(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{var t;if(e.preventDefault(),e.stopPropagation(),s)return;if(z.current=0,y(!1),null===(t=e.dataTransfer.files)||void 0===t||!t.length)return;const n=Array.from(e.dataTransfer.files);F(n)},children:[t("div",{className:"c-upload__inner",children:[e("div",{className:"c-upload__icon",children:g}),e("h3",{className:"c-upload__title",children:u}),e("p",{className:"c-upload__text",children:m}),e("button",{className:"c-upload__btn c-btn c-btn--primary",disabled:s,onClick:()=>{f.current&&!s&&f.current.click()},children:h}),e("p",{className:"c-upload__helper-text",children:p}),e("input",{ref:f,type:"file",accept:c.join(","),multiple:d,style:{display:"none"},onChange:e=>{var t;if(null===(t=e.target.files)||void 0===t||!t.length)return;const n=Array.from(e.target.files);F(n)}})]}),("loading"===N||"success"===N||"error"===N)&&O&&t("div",{className:"c-upload__loader",children:[t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:O.name}),t("div",{className:"c-upload__loader-progress",children:["loading"===N&&R<100&&t(n,{children:[t("div",{className:"c-upload__loader-par",children:[R,"%"]}),D&&e("div",{className:"c-upload__loader-time",children:D})]}),"success"===N&&P,"error"===N&&x]})]}),t("div",{className:"c-upload__loader-control",children:["loading"===N&&R<100&&e("div",{className:"c-upload__loader-bar",children:t("svg",{children:[e("circle",{cx:"10",cy:"10",r:"10"}),e("circle",{cx:"10",cy:"10",r:"10"})]})}),e("button",{className:"c-upload__loader-close c-btn c-btn--icon",onClick:()=>{T("idle"),I(null),w(0),k(null),M(null),B(null),f.current&&(f.current.value="")},children:e("i","success"===N?{className:"icon-lux-check-circle-fill"}:{className:"icon-lux-x"})})]})]})]})};Yr.displayName="Upload";var Hr=Object.freeze({__proto__:null,Accordion:Q,Avatar:ne,AvatarGroup:ae,Badge:re,Breadcrumb:oe,Button:le,Callout:bi,Card:fi,Checkbox:Ii,ColorModeToggle:Ri,Countdown:wi,DataTable:Fi,DatePicker:Hi,Dropdown:ji,EdgePanel:qi,Form:Zi,Hero:Qi,Icon:te,Input:tr,List:nr,Messages:ar,Modal:ir,Navbar:or,Pagination:zi,PhotoViewer:mr,Popover:pr,ProductReview:vr,Progress:Er,Radio:br,Rating:_r,River:Cr,SectionIntro:Nr,Select:kr,Spinner:ki,Steps:xr,Tab:Mr,Testimonial:Pr,Textarea:Br,Todo:zr,Toggle:Fr,Tooltip:Vr,Upload:Yr});const Xr=Dr,jr=Ir,Wr=Object.freeze({__proto__:null}),qr=Object.freeze({__proto__:null,ACCORDION:v,AVATAR:X,AVATAR_GROUP:j,BADGE:E,BREADCRUMB:b,BUTTON:{BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},CALLOUT:{BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},CARD:V,CLASS_PREFIX:{COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},COUNTDOWN:{SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},DATA_TABLE_CLASSES:M,DATA_TABLE_SELECTORS:{TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},DATEPICKER:{SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},DROPDOWN:K,EDGE_PANEL:x,FORM:z,FORM_GROUP:F,HERO:f,INPUT:G,LIST:L,LIST_GROUP:{BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},MESSAGES:q,MODAL:W,NAV:D,NAVBAR:{SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},PAGINATION_DEFAULTS:P,PHOTOVIEWER:{SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},POPOVER:N,PROGRESS:Z,RADIO:U,RATING:k,RIVER:w,SECTION_INTRO:R,SELECT:Y,SIDE_MENU:{SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},SIZES:["sm","md","lg"],SPINNER:I,STEPS:y,TAB:A,TESTIMONIAL:O,TEXTAREA:H,THEME_COLORS:["primary","secondary","success","info","warning","error","light","dark"],TODO:B,TOGGLE:T,TOOLTIP:C,UPLOAD:$}),Kr=u(((t,n)=>{let{children:a,className:i="",justifyContent:r,alignItems:o,noGutters:s,...l}=t;const c=["o-grid"];return r&&c.push(`u-justify-content-${r}`),o&&c.push(`u-align-items-${o}`),s&&c.push("o-grid--no-gutters"),i&&c.push(i),e("div",{ref:n,className:c.join(" "),...l,children:a})}));Kr.displayName="Grid";const Zr=u(((t,n)=>{let{children:a,className:i="",xs:r,sm:o,md:s,lg:l,xl:c,xxl:d,offsetXs:u,offsetSm:m,offsetMd:h,offsetLg:p,offsetXl:g,offsetXxl:S,..._}=t;const v=!(r||o||s||l||c||d)?["o-grid__col","o-grid__col--auto"]:["o-grid__col"];return r&&("auto"===r?v.push("o-grid__col--auto"):v.push(`o-grid__col--${r}`)),o&&("auto"===o?v.push("o-grid__col--sm-auto"):v.push(`o-grid__col--sm-${o}`)),s&&("auto"===s?v.push("o-grid__col--md-auto"):v.push(`o-grid__col--md-${s}`)),l&&("auto"===l?v.push("o-grid__col--lg-auto"):v.push(`o-grid__col--lg-${l}`)),c&&("auto"===c?v.push("o-grid__col--xl-auto"):v.push(`o-grid__col--xl-${c}`)),d&&("auto"===d?v.push("o-grid__col--xxl-auto"):v.push(`o-grid__col--xxl-${d}`)),u&&v.push(`o-grid__offset--${u}`),m&&v.push(`o-grid__offset--sm-${m}`),h&&v.push(`o-grid__offset--md-${h}`),p&&v.push(`o-grid__offset--lg-${p}`),g&&v.push(`o-grid__offset--xl-${g}`),S&&v.push(`o-grid__offset--xxl-${S}`),i&&v.push(i),e("div",{ref:n,className:v.join(" "),..._,children:a})}));Zr.displayName="GridCol";const Jr=u(((t,n)=>{let{children:a,className:i="",type:r,...o}=t,s="o-container";return r&&(s=`o-container-${r}`),e("div",{ref:n,className:`${s} ${i}`.trim(),...o,children:a})}));Jr.displayName="Container";const Qr=u(((t,n)=>{let{children:a,className:i="",justifyContent:r,alignItems:o,noGutters:s,...l}=t;const c=["o-grid"];return r&&c.push(`u-justify-content-${r}`),o&&c.push(`u-align-items-${o}`),s&&c.push("o-grid--no-gutters"),i&&c.push(i),e("div",{ref:n,className:c.join(" "),...l,children:a})}));Qr.displayName="Row";var eo=Object.freeze({__proto__:null,Container:Jr,Grid:Kr,GridCol:Zr,Row:Qr});const to=u(((t,n)=>{let{children:s,className:d="",xs:u=1,sm:h,md:g,lg:S,xl:_,xxl:v,gap:E=16,animate:L=!0,imagesLoaded:b=!0,onLayoutComplete:f,onImageLoad:C,...N}=t;const[T,A]=i(u),[y,O]=i([]),[I,R]=i(!1),[w,$]=i(!1),D=r(null),k=r([]),x=r(0),M=r(0),P=r(new Map);o((()=>{$(!!b)}),[T,b]),p(n,(()=>D.current));const B=m((()=>{const e=window.innerWidth;return e>=1400&&void 0!==v?v:e>=1200&&void 0!==_?_:e>=992&&void 0!==S?S:e>=768&&void 0!==g?g:e>=576&&void 0!==h?h:u}),[u,h,g,S,_,v]);o((()=>{const e=()=>A(B());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[B]);const[z,F]=i([]);o((()=>{const e=[];l.forEach(s,((t,n)=>{var i;c(t)&&e.push({id:(null===(i=t.key)||void 0===i?void 0:i.toString())||`masonry-item-${n}`,element:t,position:null,ref:a.createRef()})})),F(e)}),[s]);const G=m((e=>{if(!P.current.get(e)){if(P.current.set(e,!0),x.current+=1,D.current&&b){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))})),null==C||C(x.current,M.current),x.current>=M.current&&M.current>0&&(R(!0),$(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{V(),$(!1)}))})),null==f||f())}}),[C,f,b]),U=m((()=>{if(!b||!D.current)return;P.current.clear(),x.current=0;const e=D.current.querySelectorAll("img");return M.current=e.length,0===e.length?(R(!0),$(!1),void(null==f||f())):($(!0),e.forEach((e=>{const t=e,n=e.closest(".o-masonry-grid > div");if(n&&n.classList.add("o-masonry-grid__item-loading"),e.complete)G(e);else{const n=()=>G(e);e.addEventListener("load",n),e.addEventListener("error",n),t._masonryLoadHandler=n}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[b,G,f]),V=m((()=>{if(!D.current||0===z.length)return;const e=(D.current.offsetWidth-E*(T-1))/T;k.current=Array(T).fill(0);const t=[];z.forEach(((n,a)=>{if(n.ref.current){const i=k.current.indexOf(Math.min(...k.current)),r=i*(e+E),o=k.current[i]??0,s=n.ref.current.offsetHeight;k.current[i]=o+s+E,t[a]={left:r,top:o,width:e,height:s}}})),O(t)}),[z,T,E]);o((()=>{if(!D.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>V()))}));return t.observe(D.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[V]),a.useLayoutEffect((()=>{if(b){return U()}return V(),R(!0),void $(!1)}),[z,T,V,b,U]),a.useEffect((()=>{const e=[];return z.forEach((t=>{if(t.ref.current){const n=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))}))}));n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect()))}}),[z,V]);const Y=k.current.length>0?Math.max(...k.current):0,H=["o-masonry-grid",d,L?"o-masonry-grid--animate":"",w?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:D,className:H,style:{position:"relative",width:"100%",height:`${Y}px`,...N.style},...N,children:z.map(((t,n)=>{const a=y[n];return e("div",a?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));to.displayName="MasonryGrid";const no=u(((t,n)=>{let{children:a,className:i="",...r}=t;const o=["o-masonry-grid__item-inner"];return i&&o.push(i),e("div",{ref:n,className:o.join(" "),...r,children:a})}));no.displayName="MasonryGridItem";const ao={...eo,...Object.freeze({__proto__:null,MasonryGrid:to,MasonryGridItem:no})};const io={...Hr,composables:Xr,utils:jr,constants:qr,types:Wr,layouts:Object.freeze({__proto__:null,default:ao})},ro={center:!1,breakout:!1,reverse:!1,showOverlay:!0};var oo=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$element=e,this.options={...ro,...t},this.init()}init(){this.options.contentWidth&&this.$element.style.setProperty(w.ATTRIBUTES.CONTENT_WIDTH,this.options.contentWidth),this.options.backgroundImageSrc&&this.setupBackgroundImage()}setupBackgroundImage(){if(!this.$element||!this.options.backgroundImageSrc)return;let e=this.$element.querySelector(w.SELECTORS.BG);if(!e){e=document.createElement("div"),e.className=w.SELECTORS.BG.replace(".","");const t=document.createElement("img");if(t.src=this.options.backgroundImageSrc,t.alt="Background",t.className=w.SELECTORS.BG_IMAGE.replace(".",""),e.appendChild(t),this.options.showOverlay){const t=document.createElement("div");t.className=w.SELECTORS.OVERLAY.replace(".",""),e.appendChild(t)}this.$element.firstChild?this.$element.insertBefore(e,this.$element.firstChild):this.$element.appendChild(e)}}destroy(){}}});const so={alignment:"left",showOverlay:!1,size:"md",skeleton:!1};var lo=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||R.SELECTORS.SECTION_INTRO,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...so,...t},this._initialize()}_initialize(){if(this.$element&&("center"!==this.options.alignment||this.$element.classList.contains(R.CLASSES.CENTER)||this.$element.classList.add(R.CLASSES.CENTER),"sm"!==this.options.size||this.$element.classList.contains(R.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(R.CLASSES.LARGE)||this.$element.classList.add(R.CLASSES.LARGE):this.$element.classList.add(R.CLASSES.SMALL),this.options.backgroundImageSrc)){let e=this.$element.querySelector(".c-sectionintro__bg");if(!e){e=document.createElement("div"),e.className="c-sectionintro__bg";const t=document.createElement("img");if(t.className="c-sectionintro__bg-image",t.src=this.options.backgroundImageSrc,t.alt="Background",e.appendChild(t),this.options.showOverlay){const t=document.createElement("div");t.className="c-sectionintro__overlay",e.appendChild(t)}this.$element.insertBefore(e,this.$element.firstChild)}}}destroy(){if(this.$element&&(this.$element.classList.remove(R.CLASSES.CENTER),this.$element.classList.remove(R.CLASSES.SMALL),this.$element.classList.remove(R.CLASSES.LARGE),this.options.backgroundImageSrc)){const e=this.$element.querySelector(".c-sectionintro__bg");e&&this.$element.removeChild(e)}}}});const co={activeIndex:0,vertical:!1};var uo=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||y.SELECTORS.STEPS,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...co,...t},this.$items=null,this.activeIndex=this.options.activeIndex||0,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this.options.vertical&&!this.$element.classList.contains(y.CLASSES.VERTICAL)&&this.$element.classList.add(y.CLASSES.VERTICAL),this.setActive(this.activeIndex))}_initializeElements(){this.$element&&(this.$items=this.$element.querySelectorAll(y.SELECTORS.ITEM))}setActive(e){!this.$items||e<0||e>=this.$items.length||(this.$items.forEach(((t,n)=>{n<e?(t.classList.add(y.CLASSES.ACTIVE),t.classList.add(y.CLASSES.COMPLETED)):n===e?(t.classList.add(y.CLASSES.ACTIVE),t.classList.remove(y.CLASSES.COMPLETED)):(t.classList.remove(y.CLASSES.ACTIVE),t.classList.remove(y.CLASSES.COMPLETED))})),this.activeIndex=e)}next(){var e;this.activeIndex<((null===(e=this.$items)||void 0===e?void 0:e.length)||0)-1&&this.setActive(this.activeIndex+1)}previous(){this.activeIndex>0&&this.setActive(this.activeIndex-1)}destroy(){}}});const mo={navItems:A.SELECTORS.NAV_ITEMS,navBtn:A.SELECTORS.NAV_BTN,panels:A.SELECTORS.PANELS,panelBodys:A.SELECTORS.PANEL_BODIES,activeClass:A.CLASSES.ACTIVE,activeIndex:A.DEFAULTS.ACTIVE_INDEX};var ho=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||A.SELECTORS.TAB,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...mo,...t},this.$navItems=null,this.$panels=null,this.$panelBodys=null,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this._showTab(this.options.activeIndex),this._bindEvents())}_initializeElements(){this.$element&&(this.$navItems=this.$element.querySelectorAll(this.options.navItems),this.$panels=this.$element.querySelectorAll(this.options.panels),this.$panelBodys=this.$element.querySelectorAll(this.options.panelBodys))}_bindEvents(){this.$navItems&&this.$navItems.forEach((e=>{const t=e.querySelector(this.options.navBtn);t&&t.addEventListener("click",(()=>this._handleTabClick(t)))}))}_handleTabClick(e){const t=e.dataset.tabindex;void 0!==t&&(this._hideAllTabs(),this._showTab(t))}_hideAllTabs(){this.$panels&&this.$navItems&&(this.$panels.forEach((e=>{e.style.height="0px",e.classList.remove(this.options.activeClass),e.style.opacity="0"})),this.$navItems.forEach((e=>{const t=e.querySelector(this.options.navBtn);t&&t.classList.remove(this.options.activeClass)})))}_showTab(e){this.$panels&&this.$navItems&&this.$panelBodys&&(this.$panels.forEach(((t,n)=>{if(t.dataset.tabindex==e.toString()){var a;const e=null===(a=this.$panelBodys)||void 0===a?void 0:a[n];e&&(t.classList.add(this.options.activeClass),requestAnimationFrame((()=>{t.style.height=`${e.clientHeight}px`,t.style.opacity="1"})))}})),this.$navItems.forEach(((t,n)=>{const a=t.querySelector(this.options.navBtn);a&&a.dataset.tabindex==e.toString()&&a.classList.add(this.options.activeClass)})))}destroy(){this.$element&&this.$navItems&&this.$navItems.forEach((e=>{const t=e.querySelector(this.options.navBtn);t&&t.removeEventListener("click",(()=>this._handleTabClick(t)))}))}}});const po={size:"",skeleton:!1};var go=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||O.SELECTORS.TESTIMONIAL,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...po,...t},this._initialize()}_initialize(){this.$element&&("sm"!==this.options.size||this.$element.classList.contains(O.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(O.CLASSES.LARGE)||this.$element.classList.add(O.CLASSES.LARGE):this.$element.classList.add(O.CLASSES.SMALL))}destroy(){}}});var So=Object.freeze({__proto__:null,default:class{constructor(e){this.element=e,this.isOn=!1,this._initialize()}_initialize(){this._bindEvents(),this.element.classList.contains(T.CLASSES.IS_ON)&&(this.isOn=!0)}_bindEvents(){this.element.addEventListener("click",this._handleToggle.bind(this))}_handleToggle(){this.isOn?this.turnOff():this.turnOn()}turnOn(){this.element.classList.add(T.CLASSES.IS_ON),this.isOn=!0,this.element.dispatchEvent(new CustomEvent("toggle:on",{bubbles:!0}))}turnOff(){this.element.classList.remove(T.CLASSES.IS_ON),this.isOn=!1,this.element.dispatchEvent(new CustomEvent("toggle:off",{bubbles:!0}))}destroy(){this.element.removeEventListener("click",this._handleToggle)}}});const _o={disabled:!1,maxSizeInMB:5,acceptedFileTypes:["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:!1};var vo=Object.freeze({__proto__:null,default:class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.selector=e||$.SELECTORS.UPLOAD,this.$element="string"==typeof e?document.querySelector(e):e,this.options={..._o,...t},this.$input=null,this.$button=null,this.$loader=null,this.$loaderTitle=null,this.$loaderProgress=null,this.$loaderClose=null,this.currentFile=null,this.dragCounter=0,this._initialize()}_initialize(){var e,t,n;this.$element&&(this._createHiddenInput(),this.$button=this.$element.querySelector($.SELECTORS.BUTTON),this.$loader=this.$element.querySelector($.SELECTORS.LOADER),this.$loaderTitle=null===(e=this.$element)||void 0===e?void 0:e.querySelector($.SELECTORS.LOADER_TITLE),this.$loaderProgress=null===(t=this.$element)||void 0===t?void 0:t.querySelector($.SELECTORS.LOADER_PROGRESS),this.$loaderClose=null===(n=this.$element)||void 0===n?void 0:n.querySelector($.SELECTORS.LOADER_CLOSE),this.options.disabled&&this.disable(),this._setupEventListeners())}_createHiddenInput(){var e;if(!this.$element)return;const t=document.createElement("input");t.type="file",t.style.display="none",t.accept=(null===(e=this.options.acceptedFileTypes)||void 0===e?void 0:e.join(","))||"",t.multiple=!!this.options.multiple,this.$element.appendChild(t),this.$input=t}_setupEventListeners(){this.$element&&this.$input&&this.$button&&(this.$button.addEventListener("click",this._handleButtonClick.bind(this)),this.$input.addEventListener("change",this._handleFileSelect.bind(this)),this.$element.addEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.addEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.addEventListener("dragover",this._handleDragOver.bind(this)),this.$element.addEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.addEventListener("click",this._handleClose.bind(this)))}_handleButtonClick(e){e.preventDefault(),this.$input&&!this.options.disabled&&this.$input.click()}_handleFileSelect(e){var t;if(null===(t=this.$input)||void 0===t||null===(t=t.files)||void 0===t||!t.length)return;const n=Array.from(this.$input.files);this._processFiles(n)}_handleDragEnter(e){var t;(e.preventDefault(),this.options.disabled)||(this.dragCounter++,1===this.dragCounter&&(null===(t=this.$element)||void 0===t||t.classList.add($.CLASSES.DRAGGING)))}_handleDragLeave(e){var t;(e.preventDefault(),this.options.disabled)||(this.dragCounter--,0===this.dragCounter&&(null===(t=this.$element)||void 0===t||t.classList.remove($.CLASSES.DRAGGING)))}_handleDragOver(e){e.preventDefault(),this.options.disabled}_handleDrop(e){var t,n;if(e.preventDefault(),this.options.disabled)return;if(this.dragCounter=0,null===(t=this.$element)||void 0===t||t.classList.remove($.CLASSES.DRAGGING),null===(n=e.dataTransfer)||void 0===n||!n.files.length)return;const a=Array.from(e.dataTransfer.files);this._processFiles(a)}_handleClose(e){e.preventDefault(),this.setStatus("idle"),this.setFile(null),this.$input&&(this.$input.value="")}_processFiles(e){if(!e.length)return;const t=(this.options.multiple?e:[e[0]]).filter((e=>void 0!==e&&this._validateFile(e)));if(t.length&&this.options.onFileSelect&&this.options.onFileSelect(t),t.length){const e=t[0];e&&(this.setFile(e),this._simulateUpload(e))}}_validateFile(e){var t;const n=1024*(this.options.maxSizeInMB||5)*1024;if(e.size>n)return this.setStatus("error",`File too large. Maximum size is ${this.options.maxSizeInMB}MB.`),!1;if(null!==(t=this.options.acceptedFileTypes)&&void 0!==t&&t.length){if(!this.options.acceptedFileTypes.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(`${n}/`)}return e.type===t})))return this.setStatus("error","File type not supported."),!1}return!0}_simulateUpload(e){this.setStatus("loading");let t=0;const n=setInterval((()=>{t+=5,t<100?(this.setProgress(t,`${Math.ceil((100-t)/5)} seconds left`),this.options.onFileUpload&&this.options.onFileUpload(e,t)):(clearInterval(n),this.setStatus("success","Upload successful"),this.options.onFileUploadComplete&&this.options.onFileUploadComplete(e))}),500)}setFile(e){this.currentFile=e,e&&this.$loaderTitle&&(this.$loaderTitle.textContent=e.name)}setProgress(e,t){if(!this.$element||!this.$loaderProgress)return;this.$element.style.setProperty($.ATTRIBUTES.PERCENTAGE,e.toString());const n=this.$element.querySelector($.SELECTORS.LOADER_PAR),a=this.$element.querySelector($.SELECTORS.LOADER_TIME);n&&(n.textContent=`${e}%`),a&&t&&(a.textContent=t)}setStatus(e,t){if(this.$element){switch(this.$element.classList.remove($.CLASSES.LOADING,$.CLASSES.SUCCESS,$.CLASSES.ERROR),e){case"loading":this.$element.classList.add($.CLASSES.LOADING);break;case"success":this.$element.classList.add($.CLASSES.SUCCESS);break;case"error":this.$element.classList.add($.CLASSES.ERROR)}t&&this.$loaderProgress&&(this.$loaderProgress.textContent=t)}}disable(){this.$element&&this.$button&&(this.$element.classList.add($.CLASSES.DISABLED),this.$button.disabled=!0,this.options.disabled=!0)}enable(){this.$element&&this.$button&&(this.$element.classList.remove($.CLASSES.DISABLED),this.$button.disabled=!1,this.options.disabled=!1)}destroy(){this.$element&&this.$input&&this.$button&&(this.$button.removeEventListener("click",this._handleButtonClick.bind(this)),this.$input.removeEventListener("change",this._handleFileSelect.bind(this)),this.$element.removeEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.removeEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.removeEventListener("dragover",this._handleDragOver.bind(this)),this.$element.removeEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.removeEventListener("click",this._handleClose.bind(this)),this.$input.parentNode&&this.$input.parentNode.removeChild(this.$input))}}});export{Q as Accordion,ne as Avatar,ae as AvatarGroup,re as Badge,oe as Breadcrumb,le as Button,bi as Callout,fi as Card,Ii as Checkbox,Ri as ColorModeToggle,wi as Countdown,Fi as DataTable,Hi as DatePicker,ji as Dropdown,qi as EdgePanel,Zi as Form,Qi as Hero,te as Icon,tr as Input,nr as List,ar as Messages,ir as Modal,or as Navbar,zi as Pagination,mr as PhotoViewer,pr as Popover,vr as ProductReview,Er as Progress,br as Radio,_r as Rating,Cr as River,Nr as SectionIntro,kr as Select,ki as Spinner,xr as Steps,Mr as Tab,Pr as Testimonial,Br as Textarea,zr as Todo,Fr as Toggle,Vr as Tooltip,Yr as Upload,Xr as composables,qr as constants,io as default,Wr as types,jr as utils};
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|