@shohojdhara/atomix 0.1.25 → 0.1.26

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.
@@ -1 +1 @@
1
- !function(){"use strict";var e,t,n,a={188:function(e,t,n){n.d(t,{$I:function(){return X},Ac:function(){return T},BK:function(){return W},Ci:function(){return w},Co:function(){return p},Cv:function(){return G},DJ:function(){return C},DR:function(){return S},Dv:function(){return h},F0:function(){return r},G0:function(){return U},Gd:function(){return H},I6:function(){return _},LM:function(){return x},Nq:function(){return u},PE:function(){return B},PI:function(){return j},Pf:function(){return k},Th:function(){return $},Tk:function(){return o},UB:function(){return g},UT:function(){return f},Z7:function(){return R},_I:function(){return I},_v:function(){return b},a0:function(){return Y},b4:function(){return z},bO:function(){return M},e8:function(){return P},fk:function(){return D},ic:function(){return m},kh:function(){return s},lq:function(){return l},lt:function(){return a},n5:function(){return i},nl:function(){return V},oH:function(){return L},of:function(){return F},rl:function(){return d},sr:function(){return v},tI:function(){return y},wn:function(){return E},xU:function(){return O},y2:function(){return A},yq:function(){return c},zN:function(){return N}});const a=["primary","secondary","success","info","warning","error","light","dark"],r=["sm","md","lg"],s={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},i={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},o={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"}},l={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"}},c={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},d={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"}},u={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},m={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:"›"}},p={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"]}},h={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"}},g={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}},_={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}},S={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},E={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}},f={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"}},v={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"}},b={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"},C={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"}},N={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"}},L={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"}},x={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"}},T={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"}},A={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:"▶"}},I={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"}},O={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},y={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"},R={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"},w={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},k={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"}},j={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"}},D={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"}},M={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"}},P={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"}},B={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}},$={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"}},z={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"}},F={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"}},U={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"}},G={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}},V={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"}},Y={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)"}},H={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"}},X={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}},W={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}}},2162:function(e,t,n){n.r(t),n.d(t,{Accordion:function(){return _},Avatar:function(){return v},AvatarGroup:function(){return b},Badge:function(){return N},Breadcrumb:function(){return L},Button:function(){return T},Callout:function(){return O},Card:function(){return y},Checkbox:function(){return k},ColorModeToggle:function(){return j},Container:function(){return D},Countdown:function(){return M},DataTable:function(){return Y},DatePicker:function(){return q},Dropdown:function(){return Z},EdgePanel:function(){return Q},Form:function(){return te},Grid:function(){return ne},GridCol:function(){return ae},Hero:function(){return se},Icon:function(){return f},Input:function(){return oe},List:function(){return le},MasonryGrid:function(){return ce},MasonryGridItem:function(){return de},Messages:function(){return ue},Modal:function(){return me},Navbar:function(){return Se},Pagination:function(){return V},PhotoViewer:function(){return Ne},Popover:function(){return Te},ProductReview:function(){return ye},Progress:function(){return Re},Radio:function(){return ke},Rating:function(){return Oe},River:function(){return De},Row:function(){return Me},SectionIntro:function(){return Pe},Select:function(){return et},Spinner:function(){return $},Steps:function(){return tt},Tab:function(){return nt},Testimonial:function(){return at},Textarea:function(){return rt},Todo:function(){return st},Toggle:function(){return it},Tooltip:function(){return ct},Upload:function(){return dt},composables:function(){return ut},constants:function(){return ht},default:function(){return _t},types:function(){return pt},utils:function(){return mt}});var a={};n.r(a),n.d(a,{addClass:function(){return $e},createIconElement:function(){return Ve},createPhosphorIcon:function(){return Ge},generateUUID:function(){return He},getAvailableIcons:function(){return Ye},hasClass:function(){return Be},removeClass:function(){return ze},toggleClass:function(){return Fe}});var r={};n.r(r),n.d(r,{DOTS:function(){return z},useAccordion:function(){return h},useBadge:function(){return C},useBreadcrumb:function(){return Je},useButton:function(){return x},useCard:function(){return Qe},useCheckbox:function(){return w},useDataTable:function(){return P},useEdgePanel:function(){return J},useForm:function(){return ee},useFormGroup:function(){return We},useHero:function(){return re},useInput:function(){return ie},useModal:function(){return Ze},useNav:function(){return he},useNavDropdown:function(){return _e},useNavItem:function(){return ge},useNavbar:function(){return pe},usePagination:function(){return U},useRadio:function(){return we},useRiver:function(){return je},useSelect:function(){return qe},useSpinner:function(){return B},useTextarea:function(){return Ke},useTodo:function(){return Xe}});var s={};n.r(s),n.d(s,{Accordion:function(){return _},Avatar:function(){return v},AvatarGroup:function(){return b},Badge:function(){return N},Breadcrumb:function(){return L},Button:function(){return T},Callout:function(){return O},Card:function(){return y},Checkbox:function(){return k},ColorModeToggle:function(){return j},Container:function(){return D},Countdown:function(){return M},DataTable:function(){return Y},DatePicker:function(){return q},Dropdown:function(){return Z},EdgePanel:function(){return Q},Form:function(){return te},Grid:function(){return ne},GridCol:function(){return ae},Hero:function(){return se},Icon:function(){return f},Input:function(){return oe},List:function(){return le},MasonryGrid:function(){return ce},MasonryGridItem:function(){return de},Messages:function(){return ue},Modal:function(){return me},Navbar:function(){return Se},Pagination:function(){return V},PhotoViewer:function(){return Ne},Popover:function(){return Te},ProductReview:function(){return ye},Progress:function(){return Re},Radio:function(){return ke},Rating:function(){return Oe},River:function(){return De},Row:function(){return Me},SectionIntro:function(){return Pe},Select:function(){return et},Spinner:function(){return $},Steps:function(){return tt},Tab:function(){return nt},Testimonial:function(){return at},Textarea:function(){return rt},Todo:function(){return st},Toggle:function(){return it},Tooltip:function(){return ct},Upload:function(){return dt}});var i={};n.r(i);var o={};n.r(o),n.d(o,{ACCORDION:function(){return p.lq},AVATAR:function(){return p.of},AVATAR_GROUP:function(){return p.G0},BADGE:function(){return p.yq},BREADCRUMB:function(){return p.ic},BUTTON:function(){return p.n5},CALLOUT:function(){return p.Tk},CARD:function(){return p.PE},CLASS_PREFIX:function(){return p.kh},COUNTDOWN:function(){return p.Co},DATA_TABLE_CLASSES:function(){return p.tI},DATA_TABLE_SELECTORS:function(){return p.Z7},DATEPICKER:function(){return p.$I},DROPDOWN:function(){return p.a0},EDGE_PANEL:function(){return p.xU},FORM:function(){return p.PI},FORM_GROUP:function(){return p.fk},HERO:function(){return p.Dv},INPUT:function(){return p.bO},LIST:function(){return p.rl},LIST_GROUP:function(){return p.Nq},MESSAGES:function(){return p.nl},MODAL:function(){return p.Cv},NAV:function(){return p.Ac},NAVBAR:function(){return p.LM},PAGINATION_DEFAULTS:function(){return p.Ci},PHOTOVIEWER:function(){return p.BK},POPOVER:function(){return p.I6},PROGRESS:function(){return p.Gd},RADIO:function(){return p.e8},RATING:function(){return p._I},RIVER:function(){return p.zN},SECTION_INTRO:function(){return p.DJ},SELECT:function(){return p.Th},SIDE_MENU:function(){return p.y2},SIZES:function(){return p.F0},SPINNER:function(){return p._v},STEPS:function(){return p.UT},TAB:function(){return p.wn},TESTIMONIAL:function(){return p.sr},TEXTAREA:function(){return p.b4},THEME_COLORS:function(){return p.lt},TODO:function(){return p.Pf},TOGGLE:function(){return p.DR},TOOLTIP:function(){return p.UB},UPLOAD:function(){return p.oH}});var l={};n.r(l),n.d(l,{Container:function(){return D},Grid:function(){return ne},GridCol:function(){return ae},Row:function(){return Me}});var c={};n.r(c),n.d(c,{MasonryGrid:function(){return ce},MasonryGridItem:function(){return de}});var d={};n.r(d),n.d(d,{Container:function(){return D},Grid:function(){return ne},GridCol:function(){return ae},MasonryGrid:function(){return ce},MasonryGridItem:function(){return de},Row:function(){return Me},default:function(){return gt}});var u=require("react"),m=n.n(u),p=n(188);function h(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,r]=(0,u.useState)(t.defaultOpen||!1),s=n?t.isOpen:a,[i,o]=(0,u.useState)(s?"auto":"0px"),l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=()=>{if(c.current&&l.current){const e=s?c.current.clientHeight+"px":"0px";l.current.style.setProperty(p.lq.CSS_VARS.PANEL_HEIGHT,e),o(e)}};return(0,u.useEffect)((()=>{d()}),[s]),(0,u.useEffect)((()=>{const e=()=>{s&&d()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s]),{state:{isOpen:s,panelHeight:i},toggle:()=>{t.disabled||(n?t.onOpenChange&&t.onOpenChange(!s):r((e=>!e)))},updatePanelHeight:d,panelRef:l,contentRef:c,generateClassNames:(e="")=>`c-accordion ${s?p.lq.CLASSES.IS_OPEN:""} ${t.disabled?p.lq.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}var g=require("react/jsx-runtime");const _=({title:e,children:t,defaultOpen:n=!1,isOpen:a,onOpenChange:r,disabled:s=!1,iconPosition:i="right",icon:o,className:l=""})=>{const c=(0,u.useId)(),d="accordion-header-"+c,m="accordion-panel-"+c,{state:_,toggle:S,panelRef:E,contentRef:f,generateClassNames:v,generateHeaderClassNames:b}=h({defaultOpen:n,disabled:s,iconPosition:i,isOpen:a,onOpenChange:r}),C=(0,g.jsx)("i",{className:"c-accordion__icon",children:(0,g.jsx)("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:(0,g.jsx)("polyline",{points:"6 9 12 15 18 9"})})});return(0,g.jsxs)("div",{className:v(l),children:[(0,g.jsxs)("button",{id:d,className:b(),onClick:S,"aria-expanded":_.isOpen,"aria-controls":m,disabled:s,type:"button",children:[(0,g.jsx)("span",{className:"c-accordion__title",children:e}),o||C]}),(0,g.jsx)("div",{id:m,className:p.lq.SELECTORS.PANEL.replace(".",""),ref:E,role:"region","aria-labelledby":d,children:(0,g.jsx)("div",{className:p.lq.SELECTORS.BODY.replace(".",""),ref:f,children:t})})]})};_.displayName="Accordion";var S=require("phosphor-react");const E={xs:16,sm:20,md:24,lg:32,xl:40},f=({name:e,size:t="md",weight:n="regular",color:a,className:r="",alt:s})=>{const i=S[e];return i?(0,g.jsx)("span",{className:`c-icon c-icon--${t} ${r}`,"aria-hidden":!s,title:s,children:(0,g.jsx)(i,{size:"string"==typeof t?E[t]||24:t,weight:n,color:a,"aria-label":s})}):null};f.displayName="Icon";const v=({src:e,alt:t="Avatar",initials:n,icon:a,size:r="md",circle:s=!1,className:i="",disabled:o=!1,onClick:l})=>{const[c,d]=(0,u.useState)(!1),m=[p.of.CLASSES.BASE,"md"!==r&&"c-avatar--"+r,s&&p.of.CLASSES.CIRCLE,o&&"is-disabled",i].filter(Boolean).join(" ");return(0,g.jsx)("div",{className:m,onClick:l?e=>{!o&&l&&l(e)}:void 0,role:l?"button":void 0,tabIndex:l&&!o?0:void 0,"aria-disabled":o||void 0,children:e&&!c?(0,g.jsx)("img",{src:e,alt:t,className:"c-avatar__image",onError:()=>{d(!0)}}):(0,g.jsx)("span",n?{className:"c-avatar__initials",children:n}:a?{className:"c-avatar__icon",children:a}:{className:"c-avatar__icon",children:(0,g.jsx)(f,{name:"User",size:"xs"===r?"xs":"sm"===r?"sm":"md"})})})};v.displayName="Avatar";const b=({children:e,max:t,stacked:n=!1,className:a="",moreText:r})=>{const s=[p.G0.CLASSES.BASE,n&&p.G0.CLASSES.STACKED,a].filter(Boolean).join(" "),i=u.Children.toArray(e).filter((e=>(0,u.isValidElement)(e)&&e.type===v)),o=void 0!==t&&i.length>t,l=o?i.slice(0,t):i,c=i.length-(t||0),d=(0,u.isValidElement)(i[0])?i[0].props:null,m=d?.size||"md",h=[p.of.CLASSES.BASE,p.G0.CLASSES.MORE,"md"!==m&&"c-avatar--"+m,!!d?.circle&&"c-avatar--circle"].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:s,children:[l.map(((e,t)=>(0,u.isValidElement)(e)?(0,u.cloneElement)(e,{key:t,...e.props}):null)),o&&(0,g.jsx)("div",{className:h,children:r||"+"+c})]})};function C(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:r=t.disabled,className:s=""}=e;return`${p.yq.BASE_CLASS} ${n?`${p.yq.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${p.yq.SIZE_PREFIX}${a}`} ${r?"c-badge--disabled":""} ${s}`.trim()}}}b.displayName="AvatarGroup";const N=({label:e,variant:t="primary",size:n="md",disabled:a=!1,icon:r,className:s=""})=>{const{generateBadgeClass:i}=C({variant:t,size:n,disabled:a}),o=i({variant:t,size:n,disabled:a,className:s});return(0,g.jsxs)("span",{className:o,"aria-disabled":a,children:[r&&(0,g.jsx)("span",{className:p.yq.ICON_CLASS,children:r}),(0,g.jsx)("span",{children:e})]})};N.displayName="Badge";const L=({items:e,className:t="",ariaLabel:n="Breadcrumb"})=>{const a=[p.ic.CLASSES.BASE,t].filter(Boolean).join(" ");return(0,g.jsx)("nav",{"aria-label":n,children:(0,g.jsx)("ol",{className:a,children:e.map(((t,n)=>{const a=[p.ic.CLASSES.ITEM,t.active||n===e.length-1?p.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" "),r=(0,g.jsxs)(g.Fragment,{children:[t.icon&&(0,g.jsx)("span",{className:"c-breadcrumb__icon",children:t.icon}),t.label]});return(0,g.jsx)("li",{className:a,children:t.href&&!t.active?(0,g.jsx)("a",{href:t.href,className:p.ic.CLASSES.LINK,onClick:t.onClick,children:r}):(0,g.jsx)("span",{className:p.ic.CLASSES.LINK,children:r})},n)}))})})};function x(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:r=t.disabled,rounded:s=t.rounded,iconOnly:i=!1,className:o=""}=e;return`c-btn c-btn--${n} ${"md"===a?"":"c-btn--"+a} ${i?"c-btn--icon":""} ${s?"c-btn--rounded":""} ${r?"c-btn--disabled":""} ${o}`.trim()},handleClick:e=>()=>{!t.disabled&&e&&e()}}}L.displayName="Breadcrumb";const T=(0,u.forwardRef)((({label:e,children:t,onClick:n,variant:a="primary",size:r="md",disabled:s=!1,icon:i,iconOnly:o=!1,rounded:l=!1,className:c="",as:d="button",...u},m)=>{const{generateButtonClass:p,handleClick:h}=x({variant:a,size:r,disabled:s,rounded:l}),_={ref:m,className:p({variant:a,size:r,disabled:s,rounded:l,iconOnly:o,className:c}),onClick:h(n),disabled:s,"aria-disabled":s,...u};return(0,g.jsxs)(d,{..._,children:[i&&(0,g.jsx)("span",{className:"button__icon",children:i}),!o&&(0,g.jsx)("span",{className:"button__label",children:e||t})]})}));T.displayName="Button";var A=n(8628),I=n.n(A);const O=({title:e,children:t,icon:n,variant:a="primary",onClose:r,actions:s,oneLine:i=!1,toast:o=!1,className:l,...c})=>{const{generateCalloutClass:d,handleClose:u}=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:r=t.toast,className:s=""}=e;return`c-callout ${n?"c-callout--"+n:""} ${a?"c-callout--oneline":""} ${r?"c-callout--toast":""} ${s}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:a,oneLine:i,toast:o,className:l});return(0,g.jsxs)("div",{className:d({variant:a,oneLine:i,toast:o,className:l}),...(()=>{var e,t;const n={role:"region"};return o?(n.role="alert",n["aria-live"]="polite"):I()(e=["warning","error"]).call(e,a)?(n.role="alert",n["aria-live"]="assertive"):I()(t=["info","success"]).call(t,a)&&(n.role="status",n["aria-live"]="polite"),n})(),...c,children:[(0,g.jsxs)("div",{className:"c-callout__content",children:[n&&(0,g.jsx)("div",{className:"c-callout__icon",children:n}),(0,g.jsxs)("div",{className:"c-callout__message",children:[e&&(0,g.jsx)("div",{className:"c-callout__title",children:e}),t&&(0,g.jsx)("div",{className:"c-callout__text",children:t})]})]}),s&&(0,g.jsx)("div",{className:"c-callout__actions",children:s}),r&&(0,g.jsx)("button",{className:"c-callout__close-btn",onClick:u(r),"aria-label":"Close",children:(0,g.jsx)(f,{name:"X",size:"md"})})]})};O.displayName="Callout";const y=(0,u.forwardRef)((({header:e,image:t,imageAlt:n="",title:a,text:r,actions:s,icon:i,footer:o,row:l=!1,flat:c=!1,active:d=!1,className:u="",children:m,onClick:h,..._},S)=>{const E=[p.PE.CLASSES.BASE,l?p.PE.CLASSES.ROW:"",c?p.PE.CLASSES.FLAT:"",d?p.PE.CLASSES.ACTIVE:"",u].filter(Boolean).join(" ");return(0,g.jsxs)("div",{ref:S,className:E,onClick:h,..._,children:[(t||i||e)&&(0,g.jsxs)("div",{className:p.PE.SELECTORS.HEADER.substring(1),children:[e,t&&(0,g.jsx)("img",{src:t,alt:n,className:p.PE.SELECTORS.IMAGE.substring(1)}),i&&(0,g.jsx)("div",{className:p.PE.SELECTORS.ICON.substring(1),children:i})]}),(0,g.jsxs)("div",{className:p.PE.SELECTORS.BODY.substring(1),children:[a&&(0,g.jsx)("h3",{className:p.PE.SELECTORS.TITLE.substring(1),children:a}),r&&(0,g.jsx)("p",{className:p.PE.SELECTORS.TEXT.substring(1),children:r}),m]}),s&&(0,g.jsx)("div",{className:p.PE.SELECTORS.ACTIONS.substring(1),children:s}),o&&(0,g.jsx)("div",{className:p.PE.SELECTORS.FOOTER.substring(1),children:o})]})}));y.displayName="Card";const R={BASE:"c-checkbox",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled",MIXED:"c-checkbox--mixed"};function w(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},n=(0,u.useRef)(null);return(0,u.useEffect)((()=>{n.current&&(n.current.indeterminate=!!t.indeterminate)}),[t.indeterminate]),{defaultProps:t,generateCheckboxClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,indeterminate:s=t.indeterminate,className:i=""}=e;let o="";return a?o=R.INVALID:r&&(o=R.VALID),`${R.BASE} ${o} ${n?R.DISABLED:""} ${s?R.MIXED:""} ${i}`.trim()},checkboxRef:n}}const k=({label:e,checked:t=!1,onChange:n,className:a="",disabled:r=!1,required:s=!1,id:i,name:o,value:l,invalid:c=!1,valid:d=!1,indeterminate:u=!1,ariaLabel:m,ariaDescribedBy:p})=>{const{generateCheckboxClass:h,checkboxRef:_}=w({indeterminate:u,disabled:r,invalid:c,valid:d}),S=h({className:a,disabled:r,invalid:c,valid:d,indeterminate:u});return(0,g.jsxs)("div",{className:S,children:[(0,g.jsx)("input",{ref:_,type:"checkbox",className:"c-checkbox__input",checked:t,onChange:n,disabled:r,required:s,id:i,name:o,value:l,"aria-label":e?void 0:m,"aria-describedby":p,"aria-invalid":c}),e&&(0,g.jsx)("label",{className:"c-checkbox__label",htmlFor:i,children:e})]})};k.displayName="Checkbox";const j=({className:e=""})=>{const[t,n]=(0,u.useState)("light");return(0,u.useEffect)((()=>{const e=localStorage.getItem("atomix-color-mode");"light"===e||"dark"===e?n(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&n("dark")}),[]),(0,u.useEffect)((()=>{document.documentElement.setAttribute("data-atomix-theme",t),localStorage.setItem("atomix-color-mode",t)}),[t]),(0,u.useEffect)((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{localStorage.getItem("atomix-color-mode")||n(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]),(0,g.jsx)("button",{className:"c-color-mode-toggle "+e,onClick:()=>{n((e=>"light"===e?"dark":"light"))},"aria-label":`Switch to ${"light"===t?"dark":"light"} mode`,title:`Switch to ${"light"===t?"dark":"light"} mode`,children:(0,g.jsx)("svg","light"===t?{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:(0,g.jsx)("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:(0,g.jsx)("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"})})})};j.displayName="ColorModeToggle";const D=(0,u.forwardRef)((({children:e,className:t="",type:n,...a},r)=>{let s="o-container";return n&&(s="o-container-"+n),(0,g.jsx)("div",{ref:r,className:`${s} ${t}`.trim(),...a,children:e})}));D.displayName="Container";const M=(0,u.forwardRef)((({target:e,show:t=["days","hours","minutes","seconds"],separator:n=":",focused:a=!1,className:r="",onComplete:s},i)=>{const o="string"==typeof e?new Date(e):e,[l,c]=(0,u.useState)((()=>new Date)),[d,p]=(0,u.useState)(!1);(0,u.useEffect)((()=>{if(d)return;const e=setInterval((()=>{c(new Date)}),1e3);return()=>clearInterval(e)}),[d]);const h=o.getTime()-l.getTime(),{days:_,hours:S,minutes:E,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}}(h);(0,u.useEffect)((()=>{h>0||d||(p(!0),s&&s())}),[h,d,s]);const v=[];return I()(t).call(t,"days")&&v.push({label:"Days",value:_}),I()(t).call(t,"hours")&&v.push({label:"Hours",value:S}),I()(t).call(t,"minutes")&&v.push({label:"Minutes",value:E}),I()(t).call(t,"seconds")&&v.push({label:"Seconds",value:f}),(0,g.jsx)("div",{ref:i,className:`c-countdown${a?" c-countdown--focused":""} ${r}`.trim(),children:v.map(((e,t)=>(0,g.jsxs)(m().Fragment,{children:[(0,g.jsxs)("div",{className:"c-countdown__time",children:[(0,g.jsx)("span",{className:"c-countdown__time-count",children:(e.value+"").padStart(2,"0")}),(0,g.jsx)("span",{className:"c-countdown__time-label",children:e.label})]}),v.length-1>t&&(0,g.jsx)("span",{className:"c-countdown__separator",children:n})]},e.label)))})}));function P({data:e=[],columns:t=[],sortable:n=!1,paginated:a=!1,pageSize:r=10,onSort:s,initialSortConfig:i}){const[o,l]=(0,u.useState)(i||null),[c,d]=(0,u.useState)(1),[m,p]=(0,u.useState)(""),h=(0,u.useCallback)((e=>{if(!n)return;let t="asc";o&&o.key===e&&"asc"===o.direction&&(t="desc");const a={key:e,direction:t};l(a),s&&s(a)}),[n,o,s]),g=(0,u.useCallback)((t=>{1>t||t>Math.ceil(e.length/r)||d(t)}),[e.length,r]),_=(0,u.useCallback)((e=>{p(e),d(1)}),[]),S=(0,u.useMemo)((()=>{if(!m)return e;const n=m.toLowerCase();return e.filter((e=>t.some((t=>{var a;const r=e[t.key];return null!=r&&I()(a=(r+"").toLowerCase()).call(a,n)}))))}),[e,t,m]),E=(0,u.useMemo)((()=>o&&n?[...S].sort(((e,t)=>{const n=e[o.key],a=t[o.key];return null==n?"asc"===o.direction?-1:1:null==a?"asc"===o.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===o.direction?n.localeCompare(a):a.localeCompare(n):"asc"===o.direction?n>a?1:-1:n>a?-1:1})):S),[S,o,n]),f=(0,u.useMemo)((()=>{if(!a)return E;const e=(c-1)*r;return E.slice(e,e+r)}),[E,a,c,r]),v=(0,u.useMemo)((()=>a?Math.max(1,Math.ceil(E.length/r)):1),[E.length,a,r]);return(0,u.useEffect)((()=>{d(1)}),[e]),(0,u.useEffect)((()=>{c>v&&d(Math.max(1,v))}),[c,v]),{displayData:f,sortConfig:o,currentPage:c,totalPages:v,handleSort:h,handlePageChange:g,handleSearch:_}}function B(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:r=t.fullscreen,className:s=""}=e,i="c-spinner";return`${i} ${n?`${i}--${n}`:""} ${"md"!==a?`${i}--${a}`:""} ${r?i+"--fullscreen":""} ${s}`.trim()}}}M.displayName="Countdown";const $=({size:e="md",variant:t="primary",fullscreen:n=!1,className:a=""})=>{const{generateSpinnerClass:r}=B({size:e,variant:t,fullscreen:n}),s=r({size:e,variant:t,fullscreen:n,className:a});return(0,g.jsx)("div",{className:s,role:"status",children:(0,g.jsx)("span",{className:p._v.VISUALLY_HIDDEN,children:"Loading..."})})};$.displayName="Spinner";const z="...",F=(e,t)=>Array.from({length:t-e+1},((t,n)=>n+e)),U=({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:a})=>{const r=(0,u.useMemo)((()=>{if(n+5>=t)return F(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),s=a>2,i=t-2>r,o=t;if(!s&&i)return[...F(1,3+2*n),z,t];if(s&&!i){let e=F(t-(3+2*n)+1,t);return[1,z,...e]}if(s&&i){let e=F(a,r);return[1,z,...e,z,o]}return[]}),[t,n,e]),s=n=>{1>n||n>t||n===e||a(n)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:s,nextPage:()=>{s(e+1)},prevPage:()=>{s(e-1)},firstPage:()=>{s(1)},lastPage:()=>{s(t)},DOTS:z}},G=({type:e,onClick:t,disabled:n,label:a,iconName:r})=>(0,g.jsx)("li",{className:`c-pagination__item c-pagination__item--${e} ${n?"is-disabled":""}`,"aria-disabled":n,children:(0,g.jsx)("button",{type:"button",className:"c-pagination__link",onClick:t,disabled:n,"aria-label":a,children:(0,g.jsx)(f,{name:r,size:"sm","aria-hidden":"true"})})}),V=({currentPage:e=p.Ci.currentPage,totalPages:t=p.Ci.totalPages,onPageChange:n,siblingCount:a=p.Ci.siblingCount,showFirstLastButtons:r=p.Ci.showFirstLastButtons,showPrevNextButtons:s=p.Ci.showPrevNextButtons,size:i=p.Ci.size,className:o="",ariaLabel:l="Pagination"})=>{const{paginationRange:c,goToPage:d,nextPage:u,prevPage:m,firstPage:h,lastPage:_}=U({currentPage:e,totalPages:t,siblingCount:a,onPageChange:n});return 0===e||2>c.length?null:(0,g.jsx)("nav",{className:`c-pagination c-pagination--${i} ${o}`,"aria-label":l,children:(0,g.jsxs)("ul",{className:"c-pagination__items",children:[r&&(0,g.jsx)(G,{type:"first",onClick:h,disabled:1===e,label:"Go to first page",iconName:"SkipBack"}),s&&(0,g.jsx)(G,{type:"prev",onClick:m,disabled:1===e,label:"Go to previous page",iconName:"CaretLeft"}),c.map(((t,n)=>{if(t===z)return(0,g.jsx)("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+n);const a=t===e;return(0,g.jsx)("li",{className:"c-pagination__item "+(a?"is-active":""),"aria-current":a?"page":void 0,children:(0,g.jsx)("button",{type:"button",className:"c-pagination__link",onClick:()=>d(t),"aria-label":"Page "+t,"aria-current":a?"page":void 0,children:t})},t)})),s&&(0,g.jsx)(G,{type:"next",onClick:u,disabled:e===t,label:"Go to next page",iconName:"CaretRight"}),r&&(0,g.jsx)(G,{type:"last",onClick:_,disabled:e===t,label:"Go to last page",iconName:"SkipForward"})]})})};V.displayName="Pagination";const Y=({data:e,columns:t,className:n,sortable:a=!1,filterable:r=!1,paginated:s=!1,pageSize:i=10,striped:o=!1,bordered:l=!1,dense:c=!1,loading:d=!1,emptyMessage:m="No data available",onRowClick:h,onSort:_,...S})=>{const E=(0,u.useRef)(null),{displayData:v,sortConfig:b,currentPage:C,totalPages:N,handleSort:L,handlePageChange:x,handleSearch:T}=P({data:e,columns:t,sortable:a,paginated:s,pageSize:i,onSort:_}),A=[p.tI.base,o&&p.tI.striped,l&&p.tI.bordered,c&&p.tI.dense,d&&p.tI.loading,n].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:p.tI.container,...S,children:[r?(0,g.jsx)("div",{className:p.tI.toolbar,children:(0,g.jsx)("div",{className:p.tI.search,children:(0,g.jsx)("input",{type:"text",placeholder:"Search...",className:p.tI.searchInput+" c-input",onChange:e=>T(e.target.value),"aria-label":"Search table"})})}):null,(0,g.jsx)("div",{className:p.tI.tableWrapper,children:(0,g.jsxs)("table",{ref:E,className:A,children:[(0,g.jsx)("thead",{className:p.tI.header,children:(0,g.jsx)("tr",{children:t.map(((e,t)=>(0,g.jsx)("th",{className:`${p.tI.headerCell} ${!1!==e.sortable&&a?p.tI.sortable:""}`,onClick:()=>!1!==e.sortable&&a?L(e.key):null,"aria-sort":b?.key===e.key?"asc"===b.direction?"ascending":"descending":void 0,children:(0,g.jsxs)("div",{className:p.tI.headerContent,children:[(0,g.jsx)("span",{children:e.title}),!1!==e.sortable&&a&&(0,g.jsx)("span",{className:p.tI.sortIcon,children:b?.key===e.key?(0,g.jsx)(f,"asc"===b.direction?{name:"CaretUp",size:"sm"}:{name:"CaretDown",size:"sm"}):null})]})},"header-"+t)))})}),(0,g.jsx)("tbody",d?{children:(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:t.length,className:p.tI.loadingCell,children:(0,g.jsx)("div",{className:p.tI.loadingIndicator,children:(0,g.jsx)($,{size:"md",variant:"primary"})})})})}:0===v.length?{children:(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:t.length,className:p.tI.emptyCell,children:m})})}:{children:v.map(((e,n)=>(0,g.jsx)("tr",{className:p.tI.row,onClick:h?()=>h(e):void 0,tabIndex:h?0:void 0,role:h?"button":void 0,children:t.map(((t,a)=>(0,g.jsx)("td",{className:p.tI.cell,children:t.render?t.render(e[t.key],e):e[t.key]},`cell-${n}-${a}`)))},"row-"+n)))})]})}),s&&N>1?(0,g.jsx)("div",{className:p.tI.pagination,children:(0,g.jsx)(V,{currentPage:C,totalPages:N,onPageChange:x,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})}):null]})};function H(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function X(e,t){return new Date(e,t+1,0).getDate()}function W(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",""+r).replace("MM",(""+a).padStart(2,"0")).replace("M",""+a).replace("dd",(""+n).padStart(2,"0")).replace("d",""+n)}Y.displayName="DataTable";const q=(0,u.forwardRef)((({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:r,onRangeChange:s,format:i="MM/dd/yyyy",minDate:o,maxDate:l,placeholder:c="Select date...",disabled:d=!1,readOnly:p=!1,clearable:h=!0,showTodayButton:_=!0,showWeekNumbers:S=!1,inline:E=!1,id:v,name:b,className:C="",placement:N="bottom-start",inputClassName:L="",size:x="md",...T},A)=>{const{isOpen:I,inputValue:O,rangeInputValue:y,viewMode:R,currentMonth:w,currentYear:k,rangeSelectionState:j,datePickerRef:D,inputRef:M,startDate:P,setIsOpen:B,handleDateSelect:$,handlePrevMonth:z,handleNextMonth:F,handlePrevYear:U,handleNextYear:G,handleTodayClick:V,handleClear:Y,handleInputChange:q,handleInputFocus:K,switchToMonthView:Z,switchToYearView:J,selectMonth:Q,selectYear:ee,generateDays:te,generateMonths:ne,generateYears:ae,isDateSelectable:re,isDateSelected:se,isDateInSelectedRange:ie,isToday:oe,getWeekNumber:le}=function({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:r,onRangeChange:s,format:i="MM/dd/yyyy",minDate:o,maxDate:l,inline:c=!1}={}){const[d,m]=(0,u.useState)(c),[p,h]=(0,u.useState)(e?W(e,i):""),[g,_]=(0,u.useState)(a&&r?`${W(a,i)} - ${W(r,i)}`:a?W(a,i)+" - Select end date":""),[S,E]=(0,u.useState)(e||a||new Date),[f,v]=(0,u.useState)("days"),[b,C]=(0,u.useState)(!a||a&&r?"start":"end"),N=(0,u.useRef)(null),L=(0,u.useRef)(null),x=new Date,T=S.getMonth(),A=S.getFullYear(),I=X(A,T),O=new Date(A,T,1).getDay();(0,u.useEffect)((()=>{"single"===n?h(e?W(e,i):""):(_(a&&r?`${W(a,i)} - ${W(r,i)}`:a?W(a,i)+" - Select end date":""),C(!a||a&&r?"start":"end"))}),[e,a,r,i,n]);const y=(0,u.useCallback)((e=>{const r=new Date(A,T,e);if(!(o&&o>r||l&&r>l))if("single"===n)t&&t(r),h(W(r,i)),c||m(!1);else if("start"===b)s&&s({startDate:r,endDate:null}),_(W(r,i)+" - Select end date"),C("end");else{if(!a)return;a>r?(s&&s({startDate:r,endDate:a}),_(`${W(r,i)} - ${W(a,i)}`)):(s&&s({startDate:a,endDate:r}),_(`${W(a,i)} - ${W(r,i)}`)),c||m(!1),C("start")}}),[A,T,o,l,t,s,i,c,n,b,a]),R=(0,u.useCallback)((()=>{E(new Date(A,T-1,1))}),[A,T]),w=(0,u.useCallback)((()=>{E(new Date(A,T+1,1))}),[A,T]),k=(0,u.useCallback)((()=>{E(new Date(A-1,T,1))}),[A,T]),j=(0,u.useCallback)((()=>{E(new Date(A+1,T,1))}),[A,T]),D=(0,u.useCallback)((()=>{v("months")}),[]),M=(0,u.useCallback)((()=>{v("years")}),[]),P=(0,u.useCallback)((e=>{E(new Date(A,e,1)),v("days")}),[A]),B=(0,u.useCallback)((e=>{E(new Date(e,T,1)),v("months")}),[T]),$=(0,u.useCallback)((()=>{const e=new Date;E(e),"single"===n?y(e.getDate()):E(new Date)}),[y,n]),z=(0,u.useCallback)((()=>{"single"===n?(h(""),t&&t(null)):(_(""),C("start"),s&&s({startDate:null,endDate:null}))}),[t,s,n]),F=(0,u.useCallback)((e=>{if("single"===n){h(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),E(n))}else{_(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())||E(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||s&&s({startDate:t,endDate:a})}}}}),[t,s,n]),U=(0,u.useCallback)((()=>{c||m(!0)}),[c]),G=(0,u.useCallback)((e=>{N.current&&!N.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&m(!1)}),[]);(0,u.useEffect)((()=>(d&&!c?document.addEventListener("mousedown",G):document.removeEventListener("mousedown",G),()=>{document.removeEventListener("mousedown",G)})),[d,G,c]);const V=(0,u.useCallback)((()=>{const e=[],t=X(0===T?A-1:A,0===T?11:T-1);for(let a=O-1;a>=0;a--)e.push({day:t-a,month:0===T?11:T-1,year:0===T?A-1:A,isCurrentMonth:!1});for(let a=1;I>=a;a++)e.push({day:a,month:T,year:A,isCurrentMonth:!0});const n=42-e.length;for(let a=1;n>=a;a++)e.push({day:a,month:11===T?0:T+1,year:11===T?A+1:A,isCurrentMonth:!1});return e}),[I,O,T,A]),Y=(0,u.useCallback)((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:H(t)});return e}),[]),q=(0,u.useCallback)((()=>{const e=[],t=A-6;for(let n=0;12>n;n++)e.push(t+n);return e}),[A]),K=(0,u.useCallback)(((e,t,n)=>function(e,t,n){return!(!e||t&&t>e||n&&e>n)}(new Date(e,t,n),o,l)),[o,l]),Z=(0,u.useCallback)(((t,s,i)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===s&&e.getDate()===i;if(!a&&!r)return!1;if(a&&!r)return a.getFullYear()===t&&a.getMonth()===s&&a.getDate()===i;if(a&&r){const e=a.getFullYear()===t&&a.getMonth()===s&&a.getDate()===i,n=r.getFullYear()===t&&r.getMonth()===s&&r.getDate()===i;return e||n}return!1}),[e,n,a,r]),J=(0,u.useCallback)(((e,t,s)=>{if("range"!==n||!a||!r)return!1;const i=new Date(e,t,s);return i>a&&r>i}),[n,a,r]),Q=(0,u.useCallback)(((e,t,n)=>x.getFullYear()===e&&x.getMonth()===t&&x.getDate()===n),[x]),ee=(0,u.useCallback)((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:d,inputValue:p,rangeInputValue:g,viewDate:S,viewMode:f,currentMonth:T,currentYear:A,selectionMode:n,rangeSelectionState:b,datePickerRef:N,inputRef:L,startDate:a,endDate:r,setIsOpen:m,handleDateSelect:y,handlePrevMonth:R,handleNextMonth:w,handlePrevYear:k,handleNextYear:j,handleTodayClick:$,handleClear:z,handleInputChange:F,handleInputFocus:U,switchToMonthView:D,switchToYearView:M,selectMonth:P,selectYear:B,generateDays:V,generateMonths:Y,generateYears:q,isDateSelectable:K,isDateSelected:Z,isDateInSelectedRange:J,isToday:Q,getWeekNumber:ee}}({value:e,onChange:t,selectionMode:n,startDate:a,endDate:r,onRangeChange:s,format:i,minDate:o,maxDate:l,inline:E});(0,u.useImperativeHandle)(A,(()=>({open:()=>B(!0),close:()=>B(!1),clear:Y,focus:()=>M.current?.focus()})));const ce=`c-datepicker ${C} ${E?"c-datepicker--inline":""}`.trim(),de=`c-datepicker__input c-input c-input--${x} ${L}`.trim(),ue=v||"datepicker-"+Math.random().toString(36).substring(2,9),me=ue+"-calendar",pe="single"===n?O:y;return(0,g.jsxs)("div",{className:ce,ref:D,...T,children:[!E&&(0,g.jsxs)("div",{className:"c-datepicker__input-wrapper",children:[(0,g.jsx)("input",{id:ue,name:b,ref:M,type:"text",className:de,placeholder:"single"===n?c:"start"===j?"Select start date...":P?W(P,i)+" - Select end date...":"Select date range...",value:pe,onChange:q,onFocus:K,disabled:d,readOnly:p,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":me}),h&&pe&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:(0,g.jsx)(f,{name:"X",size:"sm"})}),(0,g.jsx)("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:(0,g.jsx)(f,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(I||E)&&(0,g.jsxs)("div",{id:me,className:"c-datepicker__calendar c-datepicker__calendar--"+N,role:"dialog","aria-modal":E?void 0:"true","aria-label":"Date picker",children:[(0,g.jsxs)("div",{className:"c-datepicker__header",children:["days"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:U,"aria-label":"Previous year",children:(0,g.jsx)(f,{name:"CaretDoubleLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:z,"aria-label":"Previous month",children:(0,g.jsx)(f,{name:"CaretLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:Z,"aria-label":"Switch to month view",children:`${w+1}/${k}`}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:F,"aria-label":"Next month",children:(0,g.jsx)(f,{name:"CaretRight",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:G,"aria-label":"Next year",children:(0,g.jsx)(f,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:U,"aria-label":"Previous year",children:(0,g.jsx)(f,{name:"CaretLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":"Switch to year view",children:k}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:G,"aria-label":"Next year",children:(0,g.jsx)(f,{name:"CaretRight",size:"sm"})})]}),"years"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:()=>U(),"aria-label":"Previous year range",children:(0,g.jsx)(f,{name:"CaretLeft",size:"sm"})}),(0,g.jsxs)("button",{type:"button",className:"c-datepicker__view-switch","aria-label":"Current year range",children:[k-6," - ",k+5]}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:()=>G(),"aria-label":"Next year range",children:(0,g.jsx)(f,{name:"CaretRight",size:"sm"})})]})]}),(0,g.jsxs)("div",{className:"c-datepicker__body",children:["days"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"c-datepicker__weekdays",role:"row",children:[S&&(0,g.jsx)("div",{className:"c-datepicker__weekday c-datepicker__weeknumber",role:"columnheader",children:"#"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Su"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Mo"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Tu"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"We"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Th"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Fr"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Sa"})]}),(0,g.jsx)("div",{className:"c-datepicker__days",role:"grid","aria-labelledby":ue+"-month-year",children:te().map(((e,t)=>{const s=re(e.year,e.month,e.day),i=se(e.year,e.month,e.day),o=oe(e.year,e.month,e.day),l=new Date(e.year,e.month,e.day),c=ie(e.year,e.month,e.day),d="range"===n&&a&&e.day===a.getDate()&&e.month===a.getMonth()&&e.year===a.getFullYear(),u="range"===n&&r&&e.day===r.getDate()&&e.month===r.getMonth()&&e.year===r.getFullYear();if(S&&t%7==0){const n=le(l);return(0,g.jsxs)(m().Fragment,{children:[(0,g.jsx)("div",{className:"c-datepicker__weeknumber","aria-label":"Week "+n,children:n}),(0,g.jsx)("button",{type:"button",className:`c-datepicker__day \n ${e.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${i?"c-datepicker__day--selected":""} \n ${d?"c-datepicker__day--start-range":""}\n ${u?"c-datepicker__day--end-range":""}\n ${c?"c-datepicker__day--in-range":""}\n ${o?"c-datepicker__day--today":""} \n ${s?"":"c-datepicker__day--disabled"}`,onClick:()=>s&&$(e.day),disabled:!s,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":i?"true":"false",role:"gridcell",children:e.day})]},"week-"+t)}return(0,g.jsx)("button",{type:"button",className:`c-datepicker__day \n ${e.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${i?"c-datepicker__day--selected":""} \n ${d?"c-datepicker__day--start-range":""}\n ${u?"c-datepicker__day--end-range":""}\n ${c?"c-datepicker__day--in-range":""}\n ${o?"c-datepicker__day--today":""} \n ${s?"":"c-datepicker__day--disabled"}`,onClick:()=>s&&$(e.day),disabled:!s,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":i?"true":"false",role:"gridcell",children:e.day},"day-"+t)}))})]}),"months"===R&&(0,g.jsx)("div",{className:"c-datepicker__months",role:"grid",children:ne().map(((t,n)=>{const a=e&&e.getMonth()===t.month&&e.getFullYear()===k;return(0,g.jsx)("button",{type:"button",className:"c-datepicker__month "+(a?"c-datepicker__month--selected":""),onClick:()=>Q(t.month),"aria-selected":a?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+n)}))}),"years"===R&&(0,g.jsx)("div",{className:"c-datepicker__years",role:"grid",children:ae().map(((t,n)=>{const a=e&&e.getFullYear()===t;return(0,g.jsx)("button",{type:"button",className:"c-datepicker__year "+(a?"c-datepicker__year--selected":""),onClick:()=>ee(t),"aria-selected":a?"true":"false",role:"gridcell",children:t},"year-"+n)}))})]}),"days"===R&&(0,g.jsxs)("div",{className:"c-datepicker__footer",children:["range"===n&&(0,g.jsxs)("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===j?"start":"end"," date"]}),_&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:V,"aria-label":"Go to today",children:"Today"}),!E&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>B(!1),"aria-label":"Close calendar",children:"Close"})]})]})]})}));q.displayName="DatePicker";const K=(0,u.createContext)({isOpen:!1,close:()=>{},id:"",trigger:"click"}),Z=({children:e,menu:t,placement:n="bottom-start",trigger:a="click",offset:r=p.a0.DEFAULTS.OFFSET,isOpen:s,onOpenChange:i,closeOnClickOutside:o=!0,closeOnEscape:l=!0,maxHeight:c,minWidth:d=p.a0.DEFAULTS.MIN_WIDTH,variant:m,className:h="",..._})=>{const[S,E]=(0,u.useState)(!1),f=void 0!==s,v=f?s:S,b=(0,u.useRef)(null),C=(0,u.useRef)(null),N=(0,u.useRef)(null),L=(0,u.useRef)("dropdown-"+Math.random().toString(36).substring(2,9)).current,x=(0,u.useCallback)((e=>{f||E(e),i&&i(e)}),[f,i]),T=(0,u.useCallback)((()=>x(!v)),[v,x]),A=(0,u.useCallback)((()=>{x(!1),setTimeout((()=>{C.current?.focus()}),0)}),[x]);(0,u.useEffect)((()=>{if(!v||!o)return;const e=e=>{b.current&&!b.current.contains(e.target)&&A()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[v,o,A]),(0,u.useEffect)((()=>{if(!v||!l)return;const e=e=>{"Escape"===e.key&&A()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[v,l,A]);const I=(0,u.useCallback)((e=>{if(!N.current)return;const t=N.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(),t.length-1>n?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()}}),[]),O=(0,u.useCallback)((e=>{"click"===a&&(e.preventDefault(),e.stopPropagation(),T())}),[a,T]),y=(0,u.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||v?"Escape"===e.key&&v&&(e.preventDefault(),A()):(e.preventDefault(),x(!0),"ArrowDown"===e.key&&N.current&&setTimeout((()=>{const e=N.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[v,x,A]),R=(0,u.useCallback)((()=>{"hover"===a&&x(!0)}),[a,x]),w=["c-dropdown","click"===a?"c-dropdown--onclick":"",m?"c-dropdown--"+m:"",v?"is-open":"",h].filter(Boolean).join(" "),k={};return c&&(k.maxHeight=c),void 0!==d&&(k.minWidth="number"==typeof d?d+"px":d),(0,g.jsxs)("div",{ref:b,className:w,onMouseEnter:"hover"===a?R:void 0,..._,children:[(0,g.jsx)("div",{ref:C,className:"c-dropdown__toggle",onClick:O,onKeyDown:y,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":L,tabIndex:0,children:e}),(0,g.jsx)("div",{ref:N,id:L,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${n} ${v?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!v,onKeyDown:I,children:(0,g.jsx)("div",{className:"c-dropdown__menu-inner",style:k,children:(0,g.jsx)(K.Provider,{value:{isOpen:v,close:A,id:L,trigger:a},children:(0,g.jsx)("ul",{className:"c-dropdown__menu",children:t})})})})]})};function J(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,...e},[n,a]=(0,u.useState)(t.isOpen||!1),r=(0,u.useRef)(null),s=(0,u.useRef)(null),i=(0,u.useCallback)((()=>{if(!r.current||"push"!==t.mode)return;const{position:e}=t,n="top"===e||"bottom"===e?r.current.clientHeight:r.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]),o=(0,u.useCallback)((()=>{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]),l=(0,u.useCallback)((()=>{if(a(!0),document.body.classList.add("is-edgepanel-open"),r.current){const{mode:e}=t;if("none"!==e){r.current.classList.add("is-animating");const e=r.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),p.xU.ANIMATION_DURATION)}r.current.style.transform="translate(0)","push"===t.mode&&i()}t.onOpenChange&&t.onOpenChange(!0)}),[t,i]),c=(0,u.useCallback)((()=>{if(r.current){const{position:e,mode:n}=t;if("none"!==n){r.current.classList.add("is-animating-out");const e=r.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),p.xU.ANIMATION_DURATION)}r.current.style.transform=e?p.xU.TRANSFORM_VALUES[e]:"","push"===t.mode&&o(),setTimeout((()=>{a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===n?0:p.xU.ANIMATION_DURATION)}else a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,o]),d=(0,u.useCallback)((e=>{t.closeOnEscape&&"Escape"===e.key&&n&&c()}),[c,t.closeOnEscape,n]),m=(0,u.useCallback)((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&c()}),[c,t.closeOnBackdropClick]);return(0,u.useEffect)((()=>(n&&t.closeOnEscape&&document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)})),[n,d,t.closeOnEscape]),(0,u.useEffect)((()=>{if(r.current){const{position:e,mode:a}=t;n||"slide"!==a&&"push"!==a||!e||(r.current.style.transform=p.xU.TRANSFORM_VALUES[e])}}),[t.mode,t.position,n]),(0,u.useEffect)((()=>{void 0!==t.isOpen&&t.isOpen!==n&&(t.isOpen?l():c())}),[t.isOpen,c,n,l]),{isOpen:n,containerRef:r,backdropRef:s,generateEdgePanelClass:e=>{const{position:a=t.position,className:r="",isOpen:s}=e,i=p.xU.CLASSES.BASE;return`${i} ${a?`${i}--${a}`:""} ${s??n?p.xU.CLASSES.IS_OPEN:""} ${r}`.trim()},openPanel:l,closePanel:c,handleBackdropClick:m}}Z.displayName="Dropdown";const Q=({title:e,children:t,position:n="start",mode:a="slide",isOpen:r=!1,onOpenChange:s,backdrop:i=!0,closeOnBackdropClick:o=!0,closeOnEscape:l=!0,className:c=""})=>{const{isOpen:d,containerRef:u,backdropRef:m,generateEdgePanelClass:p,closePanel:h,handleBackdropClick:_}=J({position:n,mode:a,isOpen:r,onOpenChange:s,backdrop:i,closeOnBackdropClick:o,closeOnEscape:l}),S=p({position:n,isOpen:r,className:c});return d||!1!==r?(0,g.jsxs)("div",{className:S,"data-position":n,"data-mode":a,children:[i&&(0,g.jsx)("div",{ref:m,className:"c-edge-panel__backdrop",onClick:_}),(0,g.jsxs)("div",{ref:u,className:"c-edge-panel__container",children:[(0,g.jsxs)("div",{className:"c-edge-panel__header",children:[(0,g.jsx)("h4",{children:e}),(0,g.jsx)("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:h,"aria-label":"Close panel",children:(0,g.jsx)(f,{name:"X"})})]}),(0,g.jsx)("div",{className:"c-edge-panel__body",children:t})]})]}):null};function ee(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e;return`${p.PI.CLASSES.BASE} ${n?p.PI.CLASSES.DISABLED:""} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}Q.displayName="EdgePanel";const te=({children:e,onSubmit:t,onReset:n,className:a="",disabled:r=!1,id:s,method:i="post",encType:o,noValidate:l=!1,autoComplete:c="on"})=>{const{generateFormClass:d,handleSubmit:u,handleReset:m}=ee({disabled:r}),p=d({className:a,disabled:r});return(0,g.jsx)("form",{id:s,className:p,onSubmit:u(t),onReset:m(n),method:i,encType:o,noValidate:l,autoComplete:c,children:e})};te.displayName="Form";const ne=(0,u.forwardRef)((({children:e,className:t="",justifyContent:n,alignItems:a,noGutters:r,...s},i)=>{const o=["o-grid"];return n&&o.push("u-justify-content-"+n),a&&o.push("u-align-items-"+a),r&&o.push("o-grid--no-gutters"),t&&o.push(t),(0,g.jsx)("div",{ref:i,className:o.join(" "),...s,children:e})}));ne.displayName="Grid";const ae=(0,u.forwardRef)((({children:e,className:t="",xs:n,sm:a,md:r,lg:s,xl:i,xxl:o,offsetXs:l,offsetSm:c,offsetMd:d,offsetLg:u,offsetXl:m,offsetXxl:p,...h},_)=>{const S=n||a||r||s||i||o?["o-grid__col"]:["o-grid__col","o-grid__col--auto"];return n&&S.push("auto"===n?"o-grid__col--auto":"o-grid__col--"+n),a&&S.push("auto"===a?"o-grid__col--sm-auto":"o-grid__col--sm-"+a),r&&S.push("auto"===r?"o-grid__col--md-auto":"o-grid__col--md-"+r),s&&S.push("auto"===s?"o-grid__col--lg-auto":"o-grid__col--lg-"+s),i&&S.push("auto"===i?"o-grid__col--xl-auto":"o-grid__col--xl-"+i),o&&S.push("auto"===o?"o-grid__col--xxl-auto":"o-grid__col--xxl-"+o),l&&S.push("o-grid__offset--"+l),c&&S.push("o-grid__offset--sm-"+c),d&&S.push("o-grid__offset--md-"+d),u&&S.push("o-grid__offset--lg-"+u),m&&S.push("o-grid__offset--xl-"+m),p&&S.push("o-grid__offset--xxl-"+p),t&&S.push(t),(0,g.jsx)("div",{ref:_,className:S.join(" "),...h,children:e})}));function re(e){const t=(0,u.useRef)(null),n=(0,u.useRef)(null),a=(0,u.useRef)(null),r={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},s=!!r.backgroundImageSrc,i=!!r.imageSrc,o=i&&"center"!==r.alignment,l=(e,t=.5)=>{if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const r=()=>{const t=window.pageYOffset*n,a=e.querySelector(p.Dv.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};a.current=r,window.addEventListener("scroll",r),r()},c=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(p.Dv.SELECTORS.BG);t&&(t.style.transform=""),a.current&&(window.removeEventListener("scroll",a.current),a.current=null)};return(0,u.useEffect)((()=>{const e=t.current;return e&&r.parallax&&s&&l(e,r.parallaxIntensity),()=>{e&&a.current&&c(e)}}),[r.parallax,r.parallaxIntensity,s]),{generateHeroClassNames:(e="")=>{const t=[p.Dv.SELECTORS.HERO.replace(".","")];return"center"===r.alignment?t.push(p.Dv.CLASSES.CENTER):"right"===r.alignment?t.push(p.Dv.CLASSES.RIGHT):"left"===r.alignment&&t.push(p.Dv.CLASSES.LEFT),r.fullViewportHeight&&t.push(p.Dv.CLASSES.FULL_VH),r.parallax&&t.push("c-hero--parallax"),r.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=r.imageColSize||7)=>{const t=["o-grid__col o-grid__col--md-"+e];return"left"===r.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:(e=r.contentColSize||5)=>"o-grid__col o-grid__col--md-"+e,hasBackgroundImage:s,hasForegroundImage:i,useGridLayout:o,heroRef:t,videoRef:n,applyParallaxEffect:l,removeParallaxEffect:c}}ae.displayName="GridCol";const se=({title:e,subtitle:t,text:n,imageSrc:a,imageAlt:r="Hero image",alignment:s="left",backgroundImageSrc:i,showOverlay:o=!0,fullViewportHeight:l=!1,actions:c,imageColSize:d=7,contentColSize:u=5,contentWidth:m,className:h="",parallax:_=!1,parallaxIntensity:S=.5,videoBackground:E,videoOptions:f={autoplay:!0,loop:!0,muted:!0}})=>{const{generateHeroClassNames:v,generateImageColClass:b,generateContentColClass:C,hasBackgroundImage:N,hasForegroundImage:L,useGridLayout:x,heroRef:T,videoRef:A}=re({alignment:s,imageColSize:d,contentColSize:u,imageSrc:a,backgroundImageSrc:i,showOverlay:o,fullViewportHeight:l,contentWidth:m,parallax:_,parallaxIntensity:S,videoBackground:E}),I=m?{"--atomix-hero-content-width":m}:void 0,O=()=>(0,g.jsxs)("div",{className:p.Dv.SELECTORS.CONTENT.replace(".",""),children:[t&&(0,g.jsx)("p",{className:p.Dv.SELECTORS.SUBTITLE.replace(".",""),children:t}),(0,g.jsx)("h1",{className:p.Dv.SELECTORS.TITLE.replace(".",""),children:e}),n&&(0,g.jsx)("p",{className:p.Dv.SELECTORS.TEXT.replace(".",""),children:n}),c&&(0,g.jsx)("div",{className:p.Dv.SELECTORS.ACTIONS.replace(".",""),children:c})]}),y=()=>L?(0,g.jsx)("div","center"===s?{className:p.Dv.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,g.jsx)("img",{src:a,alt:r,className:p.Dv.SELECTORS.IMAGE.replace(".","")})}:{className:b(),children:(0,g.jsx)("img",{src:a,alt:r,className:p.Dv.SELECTORS.IMAGE.replace(".","")})}):null;return(0,g.jsxs)("div",{ref:T,className:v(h),style:I,"data-parallax":_?"true":void 0,"data-parallax-intensity":_?S:void 0,children:[N||E?(0,g.jsxs)("div",{className:p.Dv.SELECTORS.BG.replace(".",""),children:[i&&(0,g.jsx)("img",{src:i,alt:"Background",className:p.Dv.SELECTORS.BG_IMAGE.replace(".","")}),(()=>{if(!E)return null;const{autoplay:e,loop:t,muted:n,posterUrl:a}=f;return(0,g.jsxs)("video",{ref:A,className:"c-hero__video",autoPlay:e,loop:t,muted:n,playsInline:!0,poster:a,children:[(0,g.jsx)("source",{src:E,type:"video/"+(E.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})})(),o&&(0,g.jsx)("div",{className:p.Dv.SELECTORS.OVERLAY.replace(".","")})]}):null,(0,g.jsx)("div",{className:p.Dv.SELECTORS.CONTAINER.replace(".","")+" o-container",children:x?(0,g.jsx)("div",{className:p.Dv.SELECTORS.GRID.replace(".","")+" o-grid",children:(0,g.jsxs)(g.Fragment,"left"===s?{children:[(0,g.jsx)("div",{className:C(),children:O()}),y()]}:{children:[y(),(0,g.jsx)("div",{className:C(),children:O()})]})}):(0,g.jsxs)(g.Fragment,{children:[O(),y()]})})]})};function ie(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:r=t.disabled,invalid:s=t.invalid,valid:i=t.valid,className:o="",type:l}=e;let c="";return s?c=p.bO.CLASSES.INVALID:i&&(c=p.bO.CLASSES.VALID),`${p.bO.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.bO.CLASSES.SMALL:p.bO.CLASSES.LARGE} ${a?"c-input--"+a:""} ${"textarea"===l?"c-input--textarea":""} ${c} ${r?p.bO.CLASSES.DISABLED:""} ${o}`.trim()}}}se.displayName="Hero";const oe=({type:e="text",value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s,className:i="",disabled:o=!1,required:l=!1,readOnly:c=!1,id:d,name:u,autoComplete:m,autoFocus:p=!1,size:h="md",variant:_,invalid:S=!1,valid:E=!1,maxLength:f,minLength:v,pattern:b,min:C,max:N,step:L,ariaLabel:x,ariaDescribedBy:T})=>{const{generateInputClass:A}=ie({size:h,variant:_,disabled:o,invalid:S,valid:E}),I=A({className:i,size:h,variant:_,disabled:o,invalid:S,valid:E,type:e});return(0,g.jsx)("input",{type:e,className:I,value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s,disabled:o,required:l,readOnly:c,id:d,name:u,autoComplete:m,autoFocus:p,maxLength:f,minLength:v,pattern:b,min:C,max:N,step:L,"aria-label":x,"aria-describedby":T,"aria-invalid":S})};oe.displayName="Input";const le=({children:e,variant:t="default",className:n="",...a})=>{var r;const s=[p.rl.BASE_CLASS,"default"!==t&&"c-list--"+t,n].filter(Boolean).join(" "),i=I()(r=["number","text"]).call(r,t)?"ol":"ul";return(0,g.jsx)(i,{className:s,...a,children:m().Children.map(e,(e=>(0,g.jsx)("li",{className:"c-list__item",children:e})))})};le.displayName="List";const ce=(0,u.forwardRef)((({children:e,className:t="",xs:n=1,sm:a,md:r,lg:s,xl:i,xxl:o,gap:l=16,animate:c=!0,imagesLoaded:d=!0,onLayoutComplete:p,onImageLoad:h,..._},S)=>{const[E,f]=(0,u.useState)(n),[v,b]=(0,u.useState)([]),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)(!1),T=(0,u.useRef)(null),A=(0,u.useRef)([]),I=(0,u.useRef)(0),O=(0,u.useRef)(0),y=(0,u.useRef)(new Map);(0,u.useEffect)((()=>{x(!!d)}),[E,d]),(0,u.useImperativeHandle)(S,(()=>T.current));const R=(0,u.useCallback)((()=>{const e=window.innerWidth;return 1400>e||void 0===o?1200>e||void 0===i?992>e||void 0===s?768>e||void 0===r?576>e||void 0===a?n:a:r:s:i:o}),[n,a,r,s,i,o]);(0,u.useEffect)((()=>{const e=()=>f(R());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[R]);const[w,k]=(0,u.useState)([]);(0,u.useEffect)((()=>{const t=[];u.Children.forEach(e,((e,n)=>{(0,u.isValidElement)(e)&&t.push({id:e.key?.toString()||"masonry-item-"+n,element:e,position:null,ref:m().createRef()})})),k(t)}),[e]);const j=(0,u.useCallback)((e=>{if(!y.current.get(e)){if(y.current.set(e,!0),I.current+=1,T.current&&d){const t=e.closest(".o-masonry-grid > div");t&&(t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{M()}))})),h?.(I.current,O.current),I.current>=O.current&&O.current>0&&(N(!0),x(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{M(),x(!1)}))})),p?.())}}),[h,p,d]),D=(0,u.useCallback)((()=>{if(!d||!T.current)return;y.current.clear(),I.current=0;const e=T.current.querySelectorAll("img");return O.current=e.length,0===e.length?(N(!0),x(!1),void p?.()):(x(!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)j(e);else{const n=()=>j(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)}))})}),[d,j,p]),M=(0,u.useCallback)((()=>{if(!T.current||0===w.length)return;const e=(T.current.offsetWidth-l*(E-1))/E;A.current=Array(E).fill(0);const t=[];w.forEach(((n,a)=>{if(n.ref.current){const r=A.current.indexOf(Math.min(...A.current)),s=r*(e+l),i=A.current[r],o=n.ref.current.offsetHeight;A.current[r]=i+o+l,t[a]={left:s,top:i,width:e,height:o}}})),b(t)}),[w,E,l]);(0,u.useEffect)((()=>{if(!T.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>M()))}));return t.observe(T.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[M]),m().useLayoutEffect((()=>d?D():(M(),N(!0),void x(!1))),[w,E,M,d,D]),m().useEffect((()=>{const e=[];return w.forEach((t=>{if(t.ref.current){const n=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{M()}))}))}));n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect()))}}),[w,M]);const P=A.current.length>0?Math.max(...A.current):0,B=["o-masonry-grid",t,c?"o-masonry-grid--animate":"",L?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return(0,g.jsx)("div",{ref:T,className:B,style:{position:"relative",width:"100%",height:P+"px",..._.style},..._,children:w.map(((e,t)=>{const n=v[t];return(0,g.jsx)("div",n?{ref:e.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:n.left+"px",top:n.top+"px",width:n.width+"px",opacity:1},children:e.element}:{ref:e.ref,style:{opacity:0,position:"absolute"},children:e.element},e.id)}))})}));ce.displayName="MasonryGrid";const de=(0,u.forwardRef)((({children:e,className:t="",...n},a)=>{const r=["o-masonry-grid__item-inner"];return t&&r.push(t),(0,g.jsx)("div",{ref:a,className:r.join(" "),...n,children:e})}));de.displayName="MasonryGridItem";const ue=({messages:e=[],otherAvatar:t,selfAvatar:n,otherName:a,width:r="100%",onSendMessage:s,placeholder:i="Type a message",className:o="",bodyHeight:l,disabled:c=!1,id:d})=>{const{inputValue:m,handleInputChange:h,handleSubmit:_,handleKeyDown:S}=(({onSendMessage:e}={})=>{const[t,n]=(0,u.useState)(""),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:s}),E=d||"messages-"+Math.random().toString(36).substr(2,9),b=E+"-input";return(0,g.jsxs)("div",{className:`${p.nl.CLASSES.BASE} ${c?"is-disabled":""} ${o}`,style:{"--atomix-messages-width":r},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[(0,g.jsx)("div",{className:p.nl.CLASSES.BODY,style:l?{"--atomix-messages-body-height":l}:void 0,children:e.map((e=>(0,g.jsxs)("div",{className:`${p.nl.CLASSES.CONTENT} ${e.isSelf?p.nl.CLASSES.CONTENT_SELF:""}`,"aria-label":`${e.isSelf?"You":a||"Other person"} sent a message at ${e.time}`,children:[(0,g.jsx)(v,{src:e.isSelf?n:t,size:"xl",circle:!0,className:p.nl.CLASSES.AVATAR,alt:e.isSelf?"Your avatar":(a||"Other person")+"'s avatar"}),(0,g.jsxs)("div",{className:p.nl.CLASSES.ITEMS,children:[!e.isSelf&&a&&(0,g.jsx)("div",{className:p.nl.CLASSES.NAME,children:a}),e.text&&(0,g.jsxs)("div",{className:p.nl.CLASSES.TEXT,children:[e.text,(0,g.jsx)("span",{className:p.nl.CLASSES.TIME,"aria-label":"Sent at "+e.time,children:e.time})]}),e.image&&(0,g.jsx)("img",{className:p.nl.CLASSES.IMAGE,src:e.image,alt:"Message attachment",loading:"lazy"}),e.file&&(0,g.jsxs)("div",{className:p.nl.CLASSES.FILE,"aria-label":`File attachment: ${e.file.name}, size: ${e.file.size}`,children:[(0,g.jsx)("span",{className:p.nl.CLASSES.FILE_ICON,children:(0,g.jsx)(f,{name:"File","aria-hidden":"true"})}),(0,g.jsxs)("div",{className:p.nl.CLASSES.FILE_DETAILS,children:[(0,g.jsx)("div",{className:p.nl.CLASSES.FILE_NAME,children:e.file.name}),(0,g.jsx)("div",{className:p.nl.CLASSES.FILE_SIZE,children:e.file.size})]})]})]})]},e.id)))}),(0,g.jsxs)("form",{className:p.nl.CLASSES.FORM,onSubmit:_,"aria-label":"Message input form",children:[(0,g.jsxs)("div",{className:p.nl.CLASSES.INPUT_GROUP,children:[(0,g.jsx)("label",{htmlFor:b,className:"u-visually-hidden",children:"Type a message"}),(0,g.jsx)("input",{id:b,type:"text",className:p.nl.CLASSES.INPUT,placeholder:i,value:m,onChange:h,onKeyDown:S,disabled:c,"aria-label":"Message input"}),(0,g.jsxs)("div",{className:p.nl.CLASSES.OPTIONS,"aria-label":"Message options",children:[(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Attach file",disabled:c,children:(0,g.jsx)(f,{name:"PaperclipHorizontal","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})}),(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Attach image",disabled:c,children:(0,g.jsx)(f,{name:"Image","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})}),(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Insert link",disabled:c,children:(0,g.jsx)(f,{name:"Link","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})})]})]}),(0,g.jsx)("button",{type:"submit",className:p.nl.CLASSES.SUBMIT,"aria-label":"Send message",disabled:c,children:(0,g.jsx)(f,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};ue.displayName="Messages";const me=({children:e,isOpen:t=!1,onOpenChange:n,onClose:a,onOpen:r,title:s,subtitle:i,size:o="md",backdrop:l=!0,keyboard:c=!0,className:d="",closeButton:m=!0,footer:h,..._})=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),f=(0,u.useRef)(null),{isOpen:v,close:b}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[r,s]=(0,u.useState)(!1),i=void 0!==e,o=i?!!e:r;(0,u.useEffect)((()=>{i&&s(!!e)}),[e,i]);const l=(0,u.useCallback)((e=>{i||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[i,t,n,a]),c=(0,u.useCallback)((()=>{l(!0)}),[l]),d=(0,u.useCallback)((()=>{l(!1)}),[l]),m=(0,u.useCallback)((()=>{l(!o)}),[o,l]);return{isOpen:o,open:c,close:d,toggle:m}}({isOpen:t,onOpenChange:n,onClose:a,onOpen:r});(0,u.useEffect)((()=>{if(!c)return;const e=e=>{"Escape"===e.key&&v&&b()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[v,b,c]);const C=["c-modal",v?p.Cv.CLASSES.IS_OPEN:"",o?"c-modal--"+o:"",d].filter(Boolean).join(" ");return(0,g.jsxs)("div",{ref:S,className:C,style:{display:v?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!v,..._,children:[(0,g.jsx)("div",{ref:f,className:"c-modal__backdrop",onClick:e=>{l&&e.target===e.currentTarget&&b()}}),(0,g.jsx)("div",{ref:E,className:"c-modal__dialog",children:(0,g.jsxs)("div",{className:"c-modal__content",children:[(s||m)&&(0,g.jsxs)("div",{className:"c-modal__header",children:[(0,g.jsxs)("div",{className:"c-modal__header-content",children:[s&&(0,g.jsx)("h3",{className:"c-modal__title",children:s}),i&&(0,g.jsx)("p",{className:"c-modal__sub",children:i})]}),m&&(0,g.jsx)("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:b,"aria-label":"Close modal",children:(0,g.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("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"})})})]}),(0,g.jsx)("div",{className:"c-modal__body",children:e}),h&&(0,g.jsx)("div",{className:"c-modal__footer",children:h})]})})]})};function pe(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[n,a]=(0,u.useState)(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:r=t.collapsible,className:s=""}=e;return`c-navbar ${"static"!==n?"c-navbar--"+n:""} ${a?"c-navbar--"+a:""} ${r?"c-navbar--collapsible":""} ${s}`.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}}function he(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:r=""}=e;return`c-nav ${"start"!==n?"c-nav--"+n:""} ${"default"!==a?"c-nav--"+a:""} ${r}`.trim()}}}function ge(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:r=t.active,disabled:s=t.disabled,className:i=""}=e;return`c-nav__item ${n&&!a?p.Ac.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${r?p.Ac.CLASSES.ACTIVE:""} ${s?p.Ac.CLASSES.DISABLED:""} ${i}`.trim()},generateNavLinkClass:(e=!1,t=!1,n="")=>`c-nav__link ${e?p.Ac.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${n}`.trim(),handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}}function _e(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:r=""}=e,s=a?p.Ac.SELECTORS.MEGA_MENU.replace(".",""):p.Ac.SELECTORS.DROPDOWN_MENU.replace(".","");let i="";return"center"===n?i=s+"--center":"end"===n&&(i=s+"--end"),`${s} ${i} ${r}`.trim()},isInFixedBottomNavbar:n,getIconClass:(e=!1)=>"c-nav__icon "+(n()?"icon-lux-caret-up":"icon-lux-caret-down"),getIconName:(e=!1)=>n()?"CaretUp":"CaretDown"}}me.displayName="Modal";const Se=(0,u.forwardRef)((({brand:e,children:t,variant:n,position:a="static",containerWidth:r,collapsible:s=!0,expanded:i,onToggle:o,className:l="",disabled:c=!1,backdrop:d=!1,closeOnOutsideClick:m=!0,closeOnEscape:p=!0,ariaLabel:h="Main navigation",id:_},S)=>{const{generateNavbarClass:E,generateContainerStyle:f,generateCollapseClass:v}=pe({position:a,collapsible:s,expanded:i,onToggle:o}),[b,C]=(0,u.useState)(i||!1),N=(0,u.useRef)(null);(0,u.useEffect)((()=>{void 0!==i&&C(i)}),[i]),(0,u.useEffect)((()=>{const e=()=>{768<=window.innerWidth&&s&&("function"==typeof o?i&&o(!1):C(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[s,i,o]);const L=E({position:a,variant:n,collapsible:s,className:l}),x=f(r),T=v(b);return(0,g.jsx)("nav",{ref:S,className:L,"aria-label":h,id:_,children:(0,g.jsxs)("div",{className:"c-navbar__container",style:x,children:[e&&("string"==typeof e?(0,g.jsx)("a",{href:"/",className:"c-navbar__brand",children:e}):(0,g.jsx)("div",{className:"c-navbar__brand",children:e})),s&&(0,g.jsx)("button",{className:"c-navbar__toggler",onClick:()=>{if(c)return;const e=!b;"function"==typeof o?o(e):C(e)},"aria-expanded":b,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:c,type:"button",children:(0,g.jsx)("span",{className:"c-navbar__toggler-icon"})}),(0,g.jsx)("div",{id:"navbar-collapse",className:T,ref:N,children:t})]})})}));Se.displayName="Navbar";const Ee=({currentIndex:e,imagesLength:t,onZoomOut:n,onResetZoom:a,onZoomIn:r,onToggleFullscreen:s,onClose:i,isFullscreen:o,zoomLevel:l,onRotate:c,onDownload:d,onShare:u,showInfo:m,onToggleInfo:p,currentImage:h})=>(0,g.jsxs)("div",{className:"c-photo-viewer__header",children:[(0,g.jsx)(N,{label:`${e+1} / ${t}`,variant:"light",size:"sm",className:"c-photo-viewer__counter-badge"}),(0,g.jsxs)("div",{className:"c-photo-viewer__actions",children:[(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:n,disabled:.1>=l,"aria-label":"Zoom out",icon:(0,g.jsx)(f,{name:"Minus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:a,disabled:1===l,"aria-label":"Reset zoom",icon:(0,g.jsx)(f,{name:"MagnifyingGlass",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,disabled:l>=5,"aria-label":"Zoom in",icon:(0,g.jsx)(f,{name:"Plus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:c,"aria-label":"Rotate image",icon:(0,g.jsx)(f,{name:"ArrowsClockwise",size:"sm"}),className:"c-photo-viewer__action-button"}),h?.src&&(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:d,"aria-label":"Download image",icon:(0,g.jsx)(f,{name:"DownloadSimple",size:"sm"}),className:"c-photo-viewer__action-button"}),h?.src&&"undefined"!=typeof navigator&&"share"in navigator&&(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:u,"aria-label":"Share image",icon:(0,g.jsx)(f,{name:"ShareNetwork",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:p,"aria-label":m?"Hide info":"Show info",icon:(0,g.jsx)(f,{name:"Info",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:s,"aria-label":o?"Exit fullscreen":"Enter fullscreen",icon:(0,g.jsx)(f,o?{name:"ArrowsIn",size:"sm"}:{name:"ArrowsOut",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:i,"aria-label":"Close photo viewer",icon:(0,g.jsx)(f,{name:"X",size:"sm"}),className:"c-photo-viewer__action-button c-photo-viewer__close"})]})]}),fe=({show:e,onPrev:t,onNext:n,currentIndex:a,imagesLength:r,enableKeyboardNav:s,onClose:i})=>((0,u.useEffect)((()=>{if(!s)return;const e=e=>{"ArrowLeft"===e.key&&t(),"ArrowRight"===e.key&&n(),"Escape"===e.key&&i()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[s,t,n,i]),e?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(T,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:t,disabled:0===a,"aria-label":"Previous image",icon:(0,g.jsx)(f,{name:"CaretLeft",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev"}),(0,g.jsx)(T,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:n,disabled:a===r-1,"aria-label":"Next image",icon:(0,g.jsx)(f,{name:"CaretRight",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next"})]}):null),ve=({imageRef:e,containerRef:t,src:n,alt:a,zoomLevel:r,dragPosition:s,isDragging:i,rotationAngle:o,isTransitioning:l=!1,onMouseDown:c,onMouseMove:d,onMouseUp:m,onWheel:p,onTouchStart:h,onTouchMove:_,onTouchEnd:S,onDoubleClick:E})=>{const f=(0,u.useRef)(null),v=t||f,[b,C]=(0,u.useState)(!1);return(0,u.useEffect)((()=>(C(!0),()=>C(!1))),[]),(0,u.useEffect)((()=>{const e=v.current;if(!e)return;const t=t=>{b&&e&&p&&p(t)},n=t=>{b&&e&&h&&h(t)},a=t=>{b&&e&&_&&_(t)},r=t=>{b&&e&&S&&S(t)};return b&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",r)}}),[b,p,h,_,S,v]),(0,g.jsx)("div",{ref:v,className:"c-photo-viewer__image-container "+(l?"is-transitioning":""),style:{cursor:i?"grabbing":r>1?"grab":"default",opacity:l?.7:1,touchAction:"none"},onMouseDown:c,onMouseMove:d,onMouseUp:m,onMouseLeave:m,onDoubleClick:e=>{b&&E&&E(e)},children:(0,g.jsx)("img",{ref:e,src:n,alt:a,className:"c-photo-viewer__image",style:{transform:`scale(${r}) translate(${s.x}px, ${s.y}px) rotate(${o}deg)`,transition:i?"none":l?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:i?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},be=({images:e,currentIndex:t,goToImage:n})=>e.length>1?(0,g.jsx)("div",{className:"c-photo-viewer__thumbnails",children:e.map(((e,a)=>(0,g.jsx)(T,{variant:"light",className:"c-photo-viewer__thumbnail "+(a===t?"is-active":""),onClick:()=>n(a),"aria-label":"View image "+(a+1),"aria-current":a===t,children:(0,g.jsx)("img",{loading:"lazy",src:e.thumbnail||e.src,alt:e.alt||"Thumbnail "+(a+1),className:"c-photo-viewer__thumbnail-img"})},a)))}):null,Ce=({show:e,image:t,onClose:n})=>e&&t?(0,g.jsxs)("div",{className:"c-photo-viewer__info-panel",children:[(0,g.jsx)(T,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:n,"aria-label":"Close info panel",icon:(0,g.jsx)(f,{name:"X",size:"sm"}),className:"c-photo-viewer__info-close"}),(0,g.jsxs)("div",{className:"c-photo-viewer__info-content",children:[t.title&&(0,g.jsx)("h3",{className:"c-photo-viewer__info-title",children:t.title}),t.description&&(0,g.jsx)("p",{className:"c-photo-viewer__info-description",children:t.description}),t.date&&(0,g.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["Date: ",t.date]}),t.author&&(0,g.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["By: ",t.author]}),t.tags&&t.tags.length>0&&(0,g.jsx)("div",{className:"c-photo-viewer__info-tags",children:t.tags.map(((e,t)=>(0,g.jsx)(N,{label:e,variant:"light",size:"sm",className:"c-photo-viewer__info-tag"},t)))})]})]}):null,Ne=({images:e,startIndex:t=0,className:n="",disabled:a=!1,enableKeyboardNavigation:r=!0,enableGestures:s=!0,enableFullscreen:i=!0,thumbnailPosition:o="bottom",onImageChange:l,onClose:c})=>{const{currentIndex:d,zoomLevel:m,imagePosition:p,isDragging:h,isFullscreen:_,rotationAngle:S,showInfo:E,imageRef:f,containerRef:v,isTransitioning:b,setZoomLevel:C,setIsFullscreen:N,setRotationAngle:L,setShowInfo:x,closeModal:T,goToPrevious:A,goToNext:O,setCurrentIndex:y,handleMouseDown:R,handleMouseMove:w,handleMouseUp:k,handleWheel:j,handleTouchStart:D,handleTouchMove:M,handleTouchEnd:P,handleDoubleClick:B,resetImageState:$}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:a,onClose:r})=>{const[s,i]=(0,u.useState)(t),[o,l]=(0,u.useState)(!1),[c,d]=(0,u.useState)(!1),[m,p]=(0,u.useState)({x:0,y:0}),[h,g]=(0,u.useState)(!1),[_,S]=(0,u.useState)(!1),[E,f]=(0,u.useState)({}),[v,b]=(0,u.useState)(!1),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)({velocity:0,timestamp:0}),T=(0,u.useRef)(null),A=(0,u.useRef)(null),O=(0,u.useRef)([]),y=(0,u.useRef)(null),R=(0,u.useRef)(null),w=(0,u.useRef)(0),k=(0,u.useRef)(null),j=(0,u.useCallback)(((e,t)=>{if(!C||!T.current||!A.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=T.current,a=A.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=n.naturalWidth||n.width||800,s=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 i=n.width,o=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=r/s;let m,p;i/o>u?(p=Math.min(.9*o,s),m=p*u):(m=Math.min(.9*i,r),p=m/u);const h=(m*d+p*c)*e,g=Math.max(0,((m*c+p*d)*e-i)/2),_=Math.max(0,(h-o)/2);return{minX:-g,maxX:g,minY:-_,maxY:_}}catch(i){return{minX:0,maxX:0,minY:0,maxY:0}}}),[C]),D=(0,u.useCallback)(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);(0,u.useEffect)((()=>(N(!0),i(0>t||t>=e.length?0:t),()=>N(!1))),[e,t]),(0,u.useEffect)((()=>{o?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[o]),(0,u.useEffect)((()=>{o&&f((e=>e[s]?e:{...e,[s]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[o,s]),(0,u.useEffect)((()=>{a&&a(s)}),[s,a]),(0,u.useEffect)((()=>{const e=T.current,t=A.current,n=()=>{C&&e&&t&&f((e=>{const t=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=j(t.zoomLevel,t.rotation),a=D(t.position,n);return{...e,[s]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&C))return e&&t&&C?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[s,j,D,C]),(0,u.useEffect)((()=>{const e=()=>{C&&T.current&&A.current&&f((e=>{const t=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=j(t.zoomLevel,t.rotation),a=D(t.position,n);return{...e,[s]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s,j,D,C]);const M=(0,u.useCallback)((()=>{l(!0)}),[]),P=(0,u.useCallback)((()=>{l(!1),r&&r()}),[r]),B=(0,u.useCallback)((()=>{s>0&&(b(!0),setTimeout((()=>{i((e=>e-1)),b(!1)}),150))}),[s]),$=(0,u.useCallback)((()=>{e.length-1>s&&(b(!0),setTimeout((()=>{i((e=>e+1)),b(!1)}),150))}),[s,e.length]),z=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{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,r=Math.max(.1,Math.min(5,a)),i=j(r,n.rotation),o=D(n.position,i);return{...t,[s]:{...n,zoomLevel:r,bounds:i,position:o}}}))}),[C,s,j,D]),F=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{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,r=D(a,n.bounds);return{...t,[s]:{...n,position:r}}}))}),[s,D]),U=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{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,r=j(n.zoomLevel,a),i=D(n.position,r);return{...t,[s]:{...n,rotation:a,bounds:r,position:i}}}))}),[C,s,j,D]),G=(0,u.useCallback)((e=>{var t;if(!C||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(I()(t),t))?.("storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(a){return}f((t=>{const a=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=e.ctrlKey&&r,o=Math.abs(e.deltaX)>0;let l,c=!1;if(i)l=-.02*e.deltaY,c=!0;else if(!e.ctrlKey&&o&&r){if(1>=a.zoomLevel)return t;l=-.003*e.deltaY,c=!0}else e.ctrlKey||o||!r?r?(l=-.005*e.deltaY,c=!0):(l=-.006*e.deltaY,c=!0):(l=-.004*e.deltaY,c=!0);c&&(e.preventDefault(),e.stopPropagation());const d=Date.now(),u=d-w.current;let m;w.current=d,i&&100>u&&(x({velocity:Math.abs(l)/u,timestamp:d}),k.current&&clearTimeout(k.current),k.current=setTimeout((()=>{const e=()=>{x((t=>{if(.001>t.velocity)return t;const n=.95*t.velocity,a=n*(l>0?1:-1);return f((e=>{const t=e[s]||{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 r=j(n,t.rotation),i=D(t.position,r);return{...e,[s]:{...t,zoomLevel:n,bounds:r,position:i}}})),.001>n||requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{m=n.getBoundingClientRect()}catch(S){return t}if(!m||0===m.width||0===m.height)return t;const p=e.clientX-m.left-m.width/2,h=e.clientY-m.top-m.height/2,g=a.zoomLevel,_=Math.max(.1,Math.min(5,g+l));if(_!==g){const e=_/g,n=j(_,a.rotation),r=D({x:a.position.x+p*(1-e)*.5,y:a.position.y+h*(1-e)*.5},n);return{...t,[s]:{...a,zoomLevel:_,bounds:n,position:r}}}return t}))}}),[C,s,j,D]),V=(0,u.useCallback)((e=>{if(!C||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&f((n=>{const a=n[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(m){return n}if(!r||0===r.width||0===r.height)return n;const i=e.clientX-r.left-r.width/2,o=e.clientY-r.top-r.height/2;let l,c={x:0,y:0};1.5>a.zoomLevel?(l=2,c={x:.5*-i,y:.5*-o}):3>a.zoomLevel?(l=4,c={x:.75*-i,y:.75*-o}):(l=1,c={x:0,y:0});const d=j(l,a.rotation),u=D(c,d);return{...n,[s]:{...a,zoomLevel:l,bounds:d,position:u}}}))}),[C,s,j,D]),Y=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),d(!0),p({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[s]),H=(0,u.useCallback)((e=>{c&&f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=D({x:e.clientX-m.x,y:e.clientY-m.y},n.bounds);return{...t,[s]:{...n,position:a}}}))}),[c,m,s,D]),X=(0,u.useCallback)((()=>{d(!1)}),[]),W=(0,u.useCallback)((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),O.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),f((e=>{const n=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1)d(!0),p({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;y.current=Math.sqrt(e*e+n*n),R.current={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}return e}))}),[n,s]),q=(0,u.useCallback)((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),f((n=>{const a=n[s]||{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&&c&&a.zoomLevel>1){const e=D({x:t[0].clientX-m.x,y:t[0].clientY-m.y},a.bounds);return{...n,[s]:{...a,position:e}}}if(2===t.length&&null!==y.current){const i=t[0].clientX-t[1].clientX,o=t[0].clientY-t[1].clientY,l=Math.sqrt(i*i+o*o),c=.005*(l-y.current);y.current=l;const d={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2},u=a.zoomLevel,m=Math.max(.1,Math.min(5,u+c));if(m!==u&&R.current){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(r){return n}if(!t||0===t.width||0===t.height)return n;const i=d.x-t.left-t.width/2,o=d.y-t.top-t.height/2,l=m/u,c=j(m,a.rotation),p=D({x:a.position.x+i*(1-l)*.5,y:a.position.y+o*(1-l)*.5},c);return R.current=d,{...n,[s]:{...a,zoomLevel:m,bounds:c,position:p}}}R.current=d}return n}))}),[C,n,c,m,s,D,j]),K=(0,u.useCallback)((()=>{d(!1),y.current=null,R.current=null}),[]),Z=E[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:s,isModalOpen:o,zoomLevel:Z.zoomLevel,imagePosition:Z.position,isDragging:c,isFullscreen:h,rotationAngle:Z.rotation,showInfo:_,imageRef:T,containerRef:A,isTransitioning:v,setCurrentIndex:i,setZoomLevel:z,setImagePosition:F,setIsDragging:d,setIsFullscreen:g,setRotationAngle:U,setShowInfo:S,openModal:M,closeModal:P,goToPrevious:B,goToNext:$,handleWheel:G,handleMouseDown:Y,handleMouseMove:H,handleMouseUp:X,handleTouchStart:W,handleTouchMove:q,handleTouchEnd:K,handleDoubleClick:V,resetImageState:()=>{f((e=>({...e,[s]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:e,startIndex:t,enableGestures:s,onImageChange:l,onClose:c||(()=>{})}),z=(0,u.useMemo)((()=>e.map((e=>"string"==typeof e?{src:e}:e))),[e]),F=z[d],U=(0,u.useMemo)((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+o,h?"c-photo-viewer--dragging":"",_?"c-photo-viewer--fullscreen":"",E?"c-photo-viewer--info-open":"",a?"is-disabled":"",n].filter(Boolean).join(" ")),[h,_,E,a,o,n]);return(0,u.useEffect)((()=>{const e=()=>{N(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[N]),(0,u.useEffect)((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),e.length?(0,g.jsxs)("div",{className:U,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[(0,g.jsx)("div",{className:"c-photo-viewer__backdrop",onClick:T}),(0,g.jsxs)("div",{className:"c-photo-viewer__container",children:[(0,g.jsx)(Ee,{currentIndex:d,imagesLength:e.length,onZoomOut:()=>C((e=>Math.max(e-.25,.1))),onResetZoom:()=>{$()},onZoomIn:()=>C((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(i){if(_)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}N(!_)}},onClose:c||T,isFullscreen:_,zoomLevel:m,onRotate:()=>{L((e=>(e+90)%360))},onDownload:()=>{if(!F?.src)return;const e=document.createElement("a");e.href=F.src,e.download=F.title||"image-"+(d+1),document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&F?.src)try{await navigator.share({title:F.title||"Shared Image",text:F.description||"Check out this image",url:F.src})}catch(e){}},showInfo:E,onToggleInfo:()=>x(!E),currentImage:F}),(0,g.jsxs)("div",{className:"c-photo-viewer__content",children:[(0,g.jsx)(fe,{show:e.length>1,onPrev:A,onNext:O,currentIndex:d,imagesLength:e.length,enableKeyboardNav:r,onClose:c||T}),F?.src&&(0,g.jsx)(ve,{imageRef:f,containerRef:v,src:F.src,alt:F?.alt||"Image "+(d+1),zoomLevel:m,dragPosition:p,isDragging:h,rotationAngle:S,isTransitioning:b,onMouseDown:R,onMouseMove:w,onMouseUp:k,onWheel:j,onTouchStart:D,onTouchMove:M,onTouchEnd:P,onDoubleClick:B})]}),"none"!==o&&(0,g.jsx)(be,{images:z,currentIndex:d,goToImage:y}),(0,g.jsx)(Ce,{show:E,image:F,onClose:()=>x(!1)})]})]}):null};Ne.displayName="PhotoViewer";var Le=require("react-dom");const xe=(0,u.createContext)({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Te=({content:e,position:t="top",trigger:n="click",className:a="",delay:r=0,offset:s=12,defaultOpen:i=!1,isOpen:o,onOpenChange:l,closeOnClickOutside:c=!0,closeOnEscape:d=!0,id:m,children:h})=>{const{isOpen:_,setIsOpen:S,triggerRef:E,popoverRef:f,arrowRef:v,popoverId:b,currentPosition:C}=(({position:e="top",trigger:t="click",offset:n=12,delay:a=0,defaultOpen:r=!1,isOpen:s,onOpenChange:i,closeOnClickOutside:o=!0,closeOnEscape:l=!0,id:c})=>{const[d,m]=(0,u.useState)(r),[p,h]=(0,u.useState)("auto"===e?"top":e),g=(0,u.useRef)(null),_=(0,u.useRef)(null),S=(0,u.useRef)(null),E=(0,u.useRef)(null),f=c||"popover-"+Math.random().toString(36).slice(2,11),v=void 0!==s,b=v?s:d,C=e=>{v||m(e),i&&i(e)};(0,u.useEffect)((()=>{if("hover"!==t||!g.current||!_.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),a>0?E.current=setTimeout((()=>{C(!0)}),a):C(!0)},n=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{_.current?.matches(":hover")||C(!1)}),100)},r=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},s=()=>{C(!1)};return g.current.addEventListener("mouseenter",e),g.current.addEventListener("mouseleave",n),_.current.addEventListener("mouseenter",r),_.current.addEventListener("mouseleave",s),()=>{g.current&&(g.current.removeEventListener("mouseenter",e),g.current.removeEventListener("mouseleave",n)),_.current&&(_.current.removeEventListener("mouseenter",r),_.current.removeEventListener("mouseleave",s)),null!==E.current&&window.clearTimeout(E.current)}}),[t,a,b]);const N=t=>{if(!g.current||!_.current)return;const a=g.current.getBoundingClientRect(),r=_.current.getBoundingClientRect(),s=window.innerWidth,i=window.innerHeight,o=50>a.top||a.bottom>i-50||50>a.left||a.right>s-50;if("scroll"===t?.type&&!o)return;const l=a.top,c=i-a.bottom,d=a.left,u=s-a.right;let m="auto"===e?"top":e;if("auto"===e){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"===e&&r.height+n>l&&c>=r.height+n||"bottom"===e&&r.height+n>c&&l>=r.height+n||"left"===e&&r.width+n>d&&u>=r.width+n||"right"===e&&r.width+n>u&&d>=r.width+n)&&(m={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);h(m);let p=0,S=0;switch(m){case"top":p=a.top-r.height-n,S=a.left+a.width/2-r.width/2;break;case"bottom":p=a.bottom+n,S=a.left+a.width/2-r.width/2;break;case"left":p=a.top+a.height/2-r.height/2,S=a.left-r.width-n;break;case"right":p=a.top+a.height/2-r.height/2,S=a.right+n}0>S?S=5:S+r.width>s&&(S=s-r.width-5),0>p?p=5:p+r.height>i&&(p=i-r.height-5);const E=p+window.scrollY,f=S+window.scrollX;_.current.style.position="absolute",_.current.style.top=E+"px",_.current.style.left=f+"px"};return(0,u.useEffect)((()=>{if(!b||!g.current||!_.current)return;N(),window.addEventListener("resize",N);let e=null;const t=t=>{e||(e=setTimeout((()=>{N(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{N()}),500);return()=>{window.removeEventListener("resize",N),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[b,e,n]),(0,u.useEffect)((()=>{if(!b||!o)return;const e=e=>{_.current&&!_.current.contains(e.target)&&g.current&&!g.current.contains(e.target)&&C(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[b,o]),(0,u.useEffect)((()=>{if(!b||!l)return;const e=e=>{"Escape"===e.key&&C(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[b,l]),(0,u.useEffect)((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:b,setIsOpen:C,triggerRef:g,popoverRef:_,arrowRef:S,popoverId:f,currentPosition:p,updatePosition:N}})({position:t,trigger:n,offset:s,delay:r,defaultOpen:i,isOpen:o,onOpenChange:l,closeOnClickOutside:c,closeOnEscape:d,id:m});return(0,g.jsxs)(xe.Provider,{value:{isOpen:_,setIsOpen:S,triggerRef:E,popoverId:b,triggerType:n},children:[h,"undefined"!=typeof document&&(0,Le.createPortal)((0,g.jsxs)("div",{ref:f,className:`c-popover c-popover--${C} ${_?p.I6.CLASSES.IS_OPEN:""} ${a}`,id:b,role:"tooltip","aria-hidden":!_,children:[(0,g.jsx)("div",{className:"c-popover__content",children:(0,g.jsx)("div",{className:"c-popover__content-inner",children:e})}),(0,g.jsx)("div",{ref:v,className:"c-popover__arrow"})]}),document.body)]})};Te.displayName="Popover";function Ae(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ie(e,t){return m().useMemo((()=>null==e&&null==t?null:n=>{Ae(e,n),Ae(t,n)}),[e,t])}const Oe=(0,u.forwardRef)((({value:e=0,defaultValue:t,maxValue:n=5,allowHalf:a=!1,readOnly:r=!1,size:s="md",color:i,onChange:o,className:l="",label:c,id:d,useVanillaJS:m=!1,...h},_)=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),{currentValue:f,hoverValue:v,focusedIndex:b,setHoverValue:C,setFocused:N,handleKeyDown:L}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:a=!1,onChange:r})=>{const s=void 0!==r,[i,o]=(0,u.useState)(e),[l,c]=(0,u.useState)(null),[d,m]=(0,u.useState)(null),p=s?e:i,h=(0,u.useCallback)((e=>{a||c(e)}),[a]),g=(0,u.useCallback)((()=>{a||c(null)}),[a]),_=(0,u.useCallback)((e=>{a||(s||o(e),r?.(e))}),[a,r,s]),S=(0,u.useCallback)(((e,i)=>{if(a)return;const l=n?.5:1;let c=p;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,p+l),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,p-l),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=i,e.preventDefault();break;default:return}c!==p&&(s||o(c),r?.(c))}),[p,t,n,a,r,s]);return{currentValue:p,hoverValue:l,focusedIndex:d,handleMouseEnter:h,handleMouseLeave:g,handleClick:_,handleKeyDown:S,setFocused:m,setHoverValue:c,isControlled:s}})({value:void 0!==e?e:t,maxValue:n,allowHalf:a,readOnly:r,onChange:o}),x=(0,u.useCallback)(((e,t)=>{if(!r)if(a){const n=e.currentTarget.getBoundingClientRect();C(Math.max(.5,n.left+n.width/2>e.clientX?t-.5:t))}else C(t)}),[r,a,C]),T=(0,u.useCallback)(((e,t)=>{if(r||!a)return;const n=e.currentTarget.getBoundingClientRect();C(Math.max(.5,n.left+n.width/2>e.clientX?t-.5:t))}),[r,a,C]),A=(0,u.useCallback)((()=>{r||C(null)}),[r,C]),I=(0,u.useCallback)(((e,t)=>{if(r)return;let n=t;if(a){const a=e.currentTarget.getBoundingClientRect();n=a.left+a.width/2>e.clientX?t-.5:t,n=Math.max(.5,n)}o?.(n)}),[r,o,a]);(0,u.useEffect)((()=>{if(m&&"undefined"!=typeof window&&S.current)return()=>{E.current&&E.current.destroy()}}),[m,e,t,n,a,r,s,i,o]),(0,u.useEffect)((()=>{m&&E.current&&E.current.updateOptions({value:void 0!==e?e:t,maxValue:n,allowHalf:a,readOnly:r,size:s,color:i})}),[m,e,t,n,a,r,s,i]);const O=["c-rating","sm"===s?p._I.CLASSES.SMALL:"","lg"===s?p._I.CLASSES.LARGE:"",i?"c-rating--"+i:"",l].filter(Boolean).join(" ");if(m)return(0,g.jsx)("div",{className:O,ref:Ie(S,_),id:d,...h});const y=null!==v?v:f;return(0,g.jsx)("div",{className:O,ref:Ie(S,_),id:d,"data-readonly":r?"true":"false",onMouseLeave:A,role:r?"img":"radiogroup","aria-label":c||`Rating: ${f} out of ${n} stars`,...h,children:(()=>{const e=[],t=a?Math.floor(2*y)/2:Math.round(y),s=d||"rating-"+Math.random().toString(36).substring(2,9);for(let o=1;n>=o;o++){const l=["c-rating__star",o>Math.floor(t)?"":p._I.CLASSES.FULL,a&&o-.5===t?p._I.CLASSES.HALF:"",i?"c-rating__star--"+i:"",b===o?"c-rating__star--focused":""].filter(Boolean).join(" ");e.push((0,g.jsx)("div",{id:`${s}-star-${o}`,className:l,"data-value":o,role:r?"presentation":"button",tabIndex:r?-1:0,"aria-label":`${o} ${1===o?"star":"stars"}`,"aria-checked":t>=o,"aria-setsize":n,"aria-posinset":o,onClick:e=>I(e,o),onMouseEnter:e=>x(e,o),onMouseMove:e=>T(e,o),onFocus:()=>N(o),onBlur:()=>N(null),onKeyDown:e=>L(e,o),children:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,g.jsx)("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"}),(0,g.jsx)("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"}),(0,g.jsx)("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-${s}-${o})`}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:`half-star-clip-${s}-${o}`,children:(0,g.jsx)("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},o))}return e})()})}));Oe.displayName="Rating";const ye=({productName:e,productImage:t,initialRating:n=0,maxRating:a=5,allowHalf:r=!0,ratingColor:s="warning",onSubmit:i,className:o=""})=>{const[l,c]=(0,u.useState)(n),[d,m]=(0,u.useState)(""),[p,h]=(0,u.useState)(!1),_=(0,u.useRef)(null),S=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&_.current)return()=>{S.current&&S.current.destroy()}}),[e,t,n,a,r,s,i]);const E=e=>{e.preventDefault(),i&&i(l,d),h(!0)},f=["c-product-review",o].filter(Boolean).join(" ");return p?(0,g.jsx)("div",{className:f,ref:_,children:(0,g.jsxs)("div",{className:"c-product-review__success",children:[(0,g.jsx)("h3",{children:"Thank you for your review!"}),(0,g.jsx)("p",{children:"Your feedback helps us improve our products."}),(0,g.jsx)(T,{variant:"secondary",label:"Write another review",onClick:()=>{h(!1),c(0),m("")}})]})}):(0,g.jsxs)("div",{className:f,ref:_,children:[(0,g.jsxs)("div",{className:"c-product-review__header",children:[(0,g.jsxs)("h3",{className:"c-product-review__title",children:["Review ",e]}),t&&(0,g.jsx)("div",{className:"c-product-review__image-wrapper",children:(0,g.jsx)("img",{src:t,alt:e,className:"c-product-review__image"})})]}),(0,g.jsxs)("form",{className:"c-product-review__form",onSubmit:E,children:[(0,g.jsxs)("div",{className:"c-product-review__rating-container",children:[(0,g.jsx)("label",{className:"c-product-review__label",children:"Your Rating"}),(0,g.jsxs)("div",{className:"c-rating-container",children:[(0,g.jsx)(Oe,{value:l,onChange:c,allowHalf:r,maxValue:a,size:"lg",color:s}),(0,g.jsx)("span",{className:"c-rating__value",children:l>0?l.toFixed(1):"Select a rating"})]})]}),(0,g.jsxs)("div",{className:"c-product-review__comment-container",children:[(0,g.jsx)("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),(0,g.jsx)("textarea",{id:"review-comment",className:"c-product-review__textarea",value:d,onChange:e=>m(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),(0,g.jsx)("div",{className:"c-product-review__actions",children:(0,g.jsx)(T,{variant:"primary",label:"Submit Review",disabled:0===l,onClick:()=>E(new Event("click"))})})]})]})};ye.displayName="ProductReview";const Re=(0,u.forwardRef)((({value:e,variant:t="primary",size:n="md",className:a="",disabled:r=!1,ariaLabel:s=p.Gd.DEFAULTS.ARIA_LABEL},i)=>{const{progressValue:o,progressStyle:l,progressClasses:c}=(({value:e,variant:t="primary",size:n="md",className:a=""})=>{const r=Math.min(Math.max(e,0),100),s="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[s,t?`${s}--${t}`:"",n?`${s}--${n}`:"",a||""].filter(Boolean).join(" ")}})({value:e,variant:t,size:n,className:a});return(0,g.jsx)("div",{ref:i,className:c,style:l,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,"aria-label":s,"aria-disabled":r,children:(0,g.jsx)("div",{className:p.Gd.CLASSES.BAR})})}));function we(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:r=t.valid,className:s=""}=e;let i="";return a?i=p.e8.CLASSES.INVALID:r&&(i=p.e8.CLASSES.VALID),`${p.e8.CLASSES.BASE} ${i} ${n?p.e8.CLASSES.DISABLED:""} ${s}`.trim()}}}const ke=({label:e,checked:t=!1,onChange:n,className:a="",disabled:r=!1,required:s=!1,id:i,name:o,value:l,invalid:c=!1,valid:d=!1,ariaLabel:u,ariaDescribedBy:m})=>{const{generateRadioClass:p}=we({disabled:r,invalid:c,valid:d}),h=p({className:a,disabled:r,invalid:c,valid:d});return(0,g.jsxs)("div",{className:h,children:[(0,g.jsx)("input",{type:"radio",className:"c-radio__input",checked:t,onChange:n,disabled:r,required:s,id:i,name:o,value:l,"aria-label":e?void 0:u,"aria-describedby":m,"aria-invalid":c}),e&&(0,g.jsx)("label",{className:"c-radio__label",htmlFor:i,children:e})]})};function je(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const n=[p.zN.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(p.zN.CLASSES.CENTER),t.breakout&&n.push(p.zN.CLASSES.BREAKOUT),t.reverse&&n.push(p.zN.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>p.zN.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>p.zN.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}ke.displayName="Radio";const De=({title:e,text:t,actions:a,imageSrc:r,imageAlt:s="Image",center:i=!1,breakout:o=!1,reverse:l=!1,contentColumns:c,backgroundImageSrc:d,showOverlay:m=!0,contentWidth:h,className:_=""})=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),{generateRiverClassNames:f,generateContentClass:v,generateVisualClass:b,hasBackgroundImage:C,hasForegroundImage:N,textContent:L}=je({title:e,text:t,imageSrc:r,imageAlt:s,center:i,breakout:o,reverse:l,backgroundImageSrc:d,showOverlay:m,contentWidth:h});(0,u.useEffect)((()=>{if("undefined"!=typeof window&&S.current)return n.e(619).then(n.bind(n,5619)).then((({default:e})=>{S.current&&(E.current=new e(S.current,{center:i,breakout:o,reverse:l,backgroundImageSrc:d,showOverlay:m}))})),()=>{E.current&&E.current.destroy()}}),[i,o,l,d,m]);const x=h?{[p.zN.ATTRIBUTES.CONTENT_WIDTH]:h}:void 0,T=()=>C?(0,g.jsxs)("div",{className:p.zN.SELECTORS.BG.replace(".",""),children:[(0,g.jsx)("img",{src:d,alt:"Background",className:p.zN.SELECTORS.BG_IMAGE.replace(".","")}),m&&(0,g.jsx)("div",{className:p.zN.SELECTORS.OVERLAY.replace(".","")})]}):null,A=()=>N?(0,g.jsx)("div",{className:b(),children:(0,g.jsx)("div",{className:p.zN.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,g.jsx)("img",{src:r,alt:s,className:p.zN.SELECTORS.IMAGE.replace(".","")})})}):null;return(0,g.jsxs)("div",c&&c.length>0?{className:f(_),ref:S,style:x,children:[T(),(0,g.jsx)("div",{className:p.zN.SELECTORS.CONTAINER.replace(".","")+" o-container",children:(0,g.jsxs)("div",{className:p.zN.SELECTORS.ROW.replace(".",""),children:[!l&&A(),(0,g.jsxs)("div",{className:v(),children:[c.map(((e,t)=>(0,g.jsx)("div",{className:`${p.zN.SELECTORS.CONTENT_COL.replace(".","")} ${p.zN.SELECTORS["CONTENT_COL_"+e.type.toUpperCase()].replace(".","")}`,children:e.content},t))),a&&(0,g.jsx)("div",{className:p.zN.SELECTORS.ACTIONS.replace(".",""),children:a})]}),l&&A()]})})]}:{className:f(_),ref:S,style:x,children:[T(),(0,g.jsx)("div",{className:p.zN.SELECTORS.CONTAINER.replace(".","")+" o-container",children:(0,g.jsxs)("div",{className:p.zN.SELECTORS.ROW.replace(".",""),children:[!l&&A(),(0,g.jsxs)("div",{className:v(),children:[e&&(0,g.jsx)("h2",{className:p.zN.SELECTORS.TITLE.replace(".",""),children:e}),L.map(((e,t)=>(0,g.jsx)("p",{className:p.zN.SELECTORS.TEXT.replace(".",""),children:e},t))),a&&(0,g.jsx)("div",{className:p.zN.SELECTORS.ACTIONS.replace(".",""),children:a})]}),l&&A()]})})]})};De.displayName="River";const Me=(0,u.forwardRef)((({children:e,className:t="",justifyContent:n,alignItems:a,noGutters:r,...s},i)=>{const o=["o-grid"];return n&&o.push("u-justify-content-"+n),a&&o.push("u-align-items-"+a),r&&o.push("o-grid--no-gutters"),t&&o.push(t),(0,g.jsx)("div",{ref:i,className:o.join(" "),...s,children:e})}));Me.displayName="Row";const Pe=({title:e,label:t,text:a,actions:r,alignment:s="left",backgroundImageSrc:i,showOverlay:o=!1,imageSrc:l,imageAlt:c="Section image",size:d="md",skeleton:m=!1,className:h=""})=>{const _=(0,u.useRef)(null),S=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&_.current)return n.e(690).then(n.bind(n,3690)).then((({default:e})=>{_.current&&(S.current=new e(_.current,{alignment:s,backgroundImageSrc:i,showOverlay:o,size:d,skeleton:m}))})),()=>{S.current&&S.current.destroy()}}),[s,i,o,d,m]);const E=["c-sectionintro","center"===s?p.DJ.CLASSES.CENTER:"","sm"===d?p.DJ.CLASSES.SMALL:"","lg"===d?p.DJ.CLASSES.LARGE:"",i?"c-sectionintro--has-bg":"",h].filter(Boolean).join(" ");return m?(0,g.jsx)("div",{className:E,ref:_,children:(0,g.jsxs)("div",{className:"c-sectionintro__container o-container",children:[t&&(0,g.jsx)("div",{className:"c-sectionintro__label",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,g.jsx)("div",{className:"c-sectionintro__title",children:(0,g.jsx)("span",{className:"c-skeleton"})}),a&&(0,g.jsxs)("div",{className:"c-sectionintro__text",children:[(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton u-w-75"})]}),r&&(0,g.jsx)("div",{className:"c-sectionintro__actions",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),l&&(0,g.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,g.jsx)("div",{className:"c-sectionintro__image c-skeleton"})})]})}):(0,g.jsxs)("div",{className:E,ref:_,children:[i?(0,g.jsxs)("div",{className:"c-sectionintro__bg",children:[(0,g.jsx)("img",{src:i,alt:"Background",className:"c-sectionintro__bg-image"}),o&&(0,g.jsx)("div",{className:"c-sectionintro__overlay"})]}):null,(0,g.jsxs)("div",{className:"c-sectionintro__container o-container",children:[t&&(0,g.jsx)("div",{className:"c-sectionintro__label",children:t}),(0,g.jsx)("h2",{className:"c-sectionintro__title",children:e}),a&&(0,g.jsx)("div",{className:"c-sectionintro__text",children:a}),r&&(0,g.jsx)("div",{className:"c-sectionintro__actions",children:r}),l&&(0,g.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,g.jsx)("img",{src:l,alt:c,className:"c-sectionintro__image"})})]})]})};function Be(e,t){return e.classList.contains(t)}function $e(e,t){Be(e,t)||e.classList.add(t)}function ze(e,t){Be(e,t)&&e.classList.remove(t)}function Fe(e,t,n){e.classList.toggle(t,n)}Pe.displayName="SectionIntro";const Ue={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 Ge(e,t=16){return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${Ue[e]||""}"></path>\n </svg>`}function Ve(e,t=16,n=""){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=Ge(e,t),a}function Ye(){return Object.keys(Ue)}function He(){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)}))}function Xe(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,a]=(0,u.useState)(t.items||[]),[r,s]=(0,u.useState)(""),i=e=>{if(!e.trim())return null;const t={id:He(),text:e.trim(),completed:!1};return a((e=>[...e,t])),s(""),t};return{items:n,inputText:r,setInputText:s,addTodo:i,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=i(r);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:r=!1}=e;return`${p.Pf.CLASSES.BASE} ${"md"===n?"":"c-todo--"+n} ${r?"c-todo--disabled":""} ${a}`.trim()},generateItemClasses:e=>`${p.Pf.CLASSES.ITEM} ${e.completed?p.Pf.CLASSES.COMPLETED:""}`.trim(),getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function We(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:r=t.invalid,valid:s=t.valid,className:i=""}=e;return`${p.fk.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.fk.CLASSES.SMALL:p.fk.CLASSES.LARGE} ${r?p.fk.CLASSES.INVALID:s?p.fk.CLASSES.VALID:""} ${a?p.fk.CLASSES.DISABLED:""} ${i}`.trim()}}}function qe(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:r=t.invalid,valid:s=t.valid,className:i=""}=e;let o="";return r?o=p.Th.CLASSES.INVALID:s&&(o=p.Th.CLASSES.VALID),`${p.Th.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.Th.CLASSES.SMALL:p.Th.CLASSES.LARGE} ${o} ${a?p.Th.CLASSES.DISABLED:""} ${i}`.trim()}}}function Ke(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:r=t.disabled,invalid:s=t.invalid,valid:i=t.valid,className:o=""}=e;let l="";return s?l=p.b4.CLASSES.INVALID:i&&(l=p.b4.CLASSES.VALID),`${p.b4.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.b4.CLASSES.SMALL:p.b4.CLASSES.LARGE} ${a?"c-input--"+a:""} ${l} ${r?p.b4.CLASSES.DISABLED:""} ${o}`.trim()}}}function Ze({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[r,s]=(0,u.useState)(!1),i=void 0!==e,o=i?!!e:r;(0,u.useEffect)((()=>{i&&s(!!e)}),[e,i]);const l=(0,u.useCallback)((e=>{i||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[i,t,n,a]),c=(0,u.useCallback)((()=>{l(!0)}),[l]),d=(0,u.useCallback)((()=>{l(!1)}),[l]),m=(0,u.useCallback)((()=>{l(!o)}),[o,l]);return{isOpen:o,open:c,close:d,toggle:m}}function Je(e){return{defaultOptions:{items:[],divider:p.ic.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[p.ic.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[p.ic.CLASSES.ITEM,e.active||t?p.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>!(!e.href||e.active||t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(t){return[]}}}}const Qe=(e={})=>{const{elevationEffect:t=!1,elevationClass:n=p.PE.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:r="click",focusEffect:s=!1,clickable:i=!1,onClick:o}=e,l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=(0,u.useRef)(null),[m,h]=(0,u.useState)(!1),[g,_]=(0,u.useState)(!1),[S,E]=(0,u.useState)(!1),[f,v]=(0,u.useState)(!1),b=(0,u.useCallback)((e=>{a&&"click"===r&&h((e=>!e)),o&&o(e)}),[a,r,o]),C=(0,u.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===r&&h((e=>!e)),o&&o(e))}),[a,r,o]),N=(0,u.useCallback)((()=>{v(!0),t&&_(!0),a&&"hover"===r&&h(!0)}),[t,a,r]),L=(0,u.useCallback)((()=>{v(!1),t&&_(!1),a&&"hover"===r&&h(!1)}),[t,a,r]),x=(0,u.useCallback)((()=>{E(!0)}),[]),T=(0,u.useCallback)((()=>{E(!1)}),[]),A=(0,u.useCallback)((()=>({className:[p.PE.CLASSES.BASE,g?n:"",m?p.PE.CLASSES.FLIPPED:"",S&&s?p.PE.CLASSES.FOCUSED:"",i?p.PE.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:l,tabxwIndex:i||a?0:-1,role:i?"button":void 0,onMouseEnter:N,onMouseLeave:L,onFocus:x,onBlur:T,onClick:b,onKeyDown:C})),[g,m,S,n,s,i,N,L,x,T,b,C,a]);return{cardRef:l,frontRef:c,backRef:d,isFlipped:m,isElevated:g,isFocused:S,isHovered:f,handleClick:b,handleKeyDown:C,handleMouseEnter:N,handleMouseLeave:L,handleFocus:x,handleBlur:T,getCardProps:A}},et=({options:e=[],value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s="Select an option",className:i="",disabled:o=!1,required:l=!1,id:c,name:d,size:m="md",invalid:h=!1,valid:_=!1,multiple:S=!1,ariaLabel:E,ariaDescribedBy:f})=>{const{generateSelectClass:v}=qe({size:m,disabled:o,invalid:h,valid:_}),b=v({className:i,size:m,disabled:o,invalid:h,valid:_}),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)(s),T=(0,u.useRef)(null),A=(0,u.useRef)(null),I=(0,u.useRef)(null),O=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if(t){const n=e.find((e=>e.value===t));n&&x(n.label)}else x(s)}),[t,e,s]),(0,u.useEffect)((()=>{const e=e=>{T.current&&!T.current.contains(e.target)&&(N(!1),I.current&&(I.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,g.jsxs)("div",{className:`${b} ${C?p.Th.CLASSES.IS_OPEN:""}`,ref:T,"aria-expanded":C,children:[(0,g.jsxs)("select",{ref:O,value:t,onChange:n,onBlur:a,onFocus:r,disabled:o,required:l,id:c,name:d,multiple:S,"aria-label":E,"aria-describedby":f,"aria-invalid":h,style:{display:"none"},children:[s&&(0,g.jsx)("option",{value:"",disabled:!0,children:s}),e.map((e=>(0,g.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))]}),(0,g.jsx)("div",{className:p.Th.CLASSES.SELECTED,onClick:()=>{o||(!C&&I.current&&A.current?I.current.style.height=A.current.clientHeight+"px":I.current&&(I.current.style.height="0px"),N(!C))},"aria-disabled":o,children:L}),(0,g.jsx)("i",{className:`${p.Th.CLASSES.ICON_CARET} ${p.Th.CLASSES.TOGGLE_ICON}`}),(0,g.jsx)("div",{className:p.Th.CLASSES.SELECT_BODY,ref:I,style:{height:0},children:(0,g.jsx)("div",{className:p.Th.CLASSES.SELECT_PANEL,ref:A,children:(0,g.jsx)("ul",{className:p.Th.CLASSES.SELECT_ITEMS,children:e.map(((e,a)=>(0,g.jsx)("li",{className:p.Th.CLASSES.SELECT_ITEM,"data-value":e.value,onClick:()=>!e.disabled&&(e=>{x(e.label),N(!1),I.current&&(I.current.style.height="0px"),O.current&&(O.current.value=e.value),n&&n({target:{name:d,value:e.value}})})(e),children:(0,g.jsxs)("label",{htmlFor:"SelectItem"+a,className:"c-checkbox",children:[(0,g.jsx)("input",{type:"checkbox",id:"SelectItem"+a,className:"c-checkbox__input c-select__item-input",checked:t===e.value,readOnly:!0,disabled:e.disabled}),(0,g.jsx)("div",{className:"c-select__item-label",children:e.label})]})},e.value)))})})})]})};et.displayName="Select";const tt=({items:e,activeIndex:t=0,vertical:a=!1,className:r=""})=>{const[s,i]=(0,u.useState)(t),o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"!=typeof window&&o.current)return n.e(202).then(n.bind(n,6202)).then((({default:e})=>{o.current&&(l.current=new e(o.current,{activeIndex:s,vertical:a}))})),()=>{l.current&&l.current.destroy()}}),[]),(0,u.useEffect)((()=>{s!==t&&(i(t),l.current&&l.current.setActive(t))}),[t]),(0,g.jsx)("div",{className:`c-steps ${a?p.UT.CLASSES.VERTICAL:""} ${r}`,ref:o,role:"navigation","aria-label":"Steps",children:e.map(((e,t)=>(0,g.jsxs)("div",{className:`c-steps__item ${t>s?"":p.UT.CLASSES.ACTIVE} ${s>t?p.UT.CLASSES.COMPLETED:""}`,"aria-current":t===s?"step":void 0,children:[(0,g.jsx)("div",{className:"c-steps__line"}),(0,g.jsxs)("div",{className:"c-steps__content",children:[(0,g.jsx)("div",{className:"c-steps__number",children:e.number}),(0,g.jsx)("div",{className:"c-steps__text",children:e.text}),e.content&&(0,g.jsx)("div",{className:"c-steps__custom-content",children:e.content})]})]},"step-"+t)))})};tt.displayName="Steps";const nt=({items:e,activeIndex:t=p.wn.DEFAULTS.ACTIVE_INDEX,onTabChange:a,className:r=""})=>{const[s,i]=(0,u.useState)(t),o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"!=typeof window&&o.current)return n.e(54).then(n.bind(n,5054)).then((({default:e})=>{o.current&&(l.current=new e(o.current))})),()=>{l.current&&l.current.destroy()}}),[]),(0,g.jsxs)("div",{className:"c-tabs js-atomix-tab "+r,ref:o,children:[(0,g.jsx)("ul",{className:"c-tabs__nav",children:e.map(((e,t)=>(0,g.jsx)("li",{className:"c-tabs__nav-item",children:(0,g.jsx)("button",{className:"c-tabs__nav-btn "+(t===s?p.wn.CLASSES.ACTIVE:""),onClick:()=>(e=>{i(e),a&&a(e)})(t),"data-tabindex":t,role:"tab","aria-selected":t===s,"aria-controls":"tab-panel-"+t,children:e.label})},"tab-nav-"+t)))}),(0,g.jsx)("div",{className:"c-tabs__panels",children:e.map(((e,t)=>(0,g.jsx)("div",{className:"c-tabs__panel "+(t===s?p.wn.CLASSES.ACTIVE:""),"data-tabindex":t,id:"tab-panel-"+t,role:"tabpanel","aria-labelledby":"tab-nav-"+t,style:{height:t===s?"auto":"0px",opacity:t===s?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:(0,g.jsx)("div",{className:"c-tabs__panel-body",children:e.content})},"tab-panel-"+t)))})]})};nt.displayName="Tab";const at=({quote:e,author:t,size:a="",skeleton:r=!1,className:s=""})=>{const i=(0,u.useRef)(null),o=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&i.current)return n.e(894).then(n.bind(n,3894)).then((({default:e})=>{i.current&&(o.current=new e(i.current,{size:a,skeleton:r}))})),()=>{o.current&&o.current.destroy()}}),[a,r]);const l=["c-testimonial","sm"===a?p.sr.CLASSES.SMALL:"","lg"===a?p.sr.CLASSES.LARGE:"",s].filter(Boolean).join(" ");return(0,g.jsxs)("div",r?{className:l,ref:i,children:[(0,g.jsxs)("blockquote",{className:"c-testimonial__quote",children:[(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton u-w-75"}),(0,g.jsx)("span",{className:"c-skeleton u-w-25"})]}),(0,g.jsxs)("div",{className:"c-testimonial__author",children:[(0,g.jsx)("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),(0,g.jsxs)("div",{className:"c-testimonial__info u-w-75",children:[(0,g.jsx)("p",{className:"c-testimonial__author-name",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,g.jsx)("p",{className:"c-testimonial__author-role",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:l,ref:i,children:[(0,g.jsx)("blockquote",{className:"c-testimonial__quote",children:e}),t&&(0,g.jsxs)("div",{className:"c-testimonial__author",children:[t.avatarSrc&&(0,g.jsx)("img",{src:t.avatarSrc,alt:t.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),(0,g.jsxs)("div",{className:"c-testimonial__info",children:[(0,g.jsx)("p",{className:"c-testimonial__author-name",children:t.name}),(0,g.jsx)("p",{className:"c-testimonial__author-role",children:t.role})]})]})]})};at.displayName="Testimonial";const rt=({value:e,onChange:t,onBlur:n,onFocus:a,placeholder:r,className:s="",disabled:i=!1,required:o=!1,readOnly:l=!1,id:c,name:d,rows:u=4,cols:m,maxLength:p,minLength:h,size:_="md",variant:S,invalid:E=!1,valid:f=!1,autoFocus:v=!1,ariaLabel:b,ariaDescribedBy:C})=>{const{generateTextareaClass:N}=Ke({size:_,variant:S,disabled:i,invalid:E,valid:f}),L=N({className:s,size:_,variant:S,disabled:i,invalid:E,valid:f});return(0,g.jsx)("textarea",{className:L,value:e,onChange:t,onBlur:n,onFocus:a,placeholder:r,disabled:i,required:o,readOnly:l,id:c,name:d,rows:u,cols:m,maxLength:p,minLength:h,autoFocus:v,"aria-label":b,"aria-describedby":C,"aria-invalid":E})};rt.displayName="Textarea";const st=({items:e=[],title:t="Todo List",onAddTodo:n,onToggleTodo:a,onDeleteTodo:r,size:s="md",placeholder:i="Add a new todo",showCompleted:o=!0,className:l="",disabled:c=!1})=>{const{inputText:d,setInputText:m,generateTodoClasses:p,generateItemClasses:h}=Xe({items:e,title:t,size:s,placeholder:i,showCompleted:o,disabled:c}),[_,S]=(0,u.useState)(e);(0,u.useEffect)((()=>{S(e)}),[e]);const E=o?_:_.filter((e=>!e.completed)),v=p({size:s,className:l,disabled:c});return(0,g.jsxs)("div",{className:v,children:[t&&(0,g.jsx)("h2",{className:"c-todo__title",children:t}),(0,g.jsx)("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),c||!d.trim())return;const t={id:He(),text:d.trim(),completed:!1};S((e=>[...e,t])),n&&n(d),m("")},children:(0,g.jsxs)("div",{className:"c-todo__form-group",children:[(0,g.jsx)("input",{type:"text",className:"c-todo__input c-input",placeholder:i,value:d,onChange:e=>m(e.target.value),disabled:c,"aria-label":"Add a new todo"}),(0,g.jsx)("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:c||!d.trim(),"aria-label":"Add todo",children:(0,g.jsx)(f,{name:"Plus",size:"sm"})})]})}),(0,g.jsx)("ul",{className:"c-todo__list",children:0===E.length?(0,g.jsx)("li",{className:"c-todo__empty",children:"No items to display"}):E.map((e=>(0,g.jsx)("li",{className:h(e),children:(0,g.jsxs)("div",{className:"c-todo__item-content",children:[(0,g.jsxs)("label",{className:"c-todo__checkbox-label",children:[(0,g.jsx)("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:e.completed,onChange:()=>{return t=e.id,void(c||(S((e=>e.map((e=>e.id===t?{...e,completed:!e.completed}:e)))),a&&a(t)));var t},disabled:c,"aria-label":`Mark "${e.text}" as ${e.completed?"incomplete":"complete"}`}),(0,g.jsx)("span",{className:"c-todo__item-text",children:e.text})]}),(0,g.jsx)("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>{return t=e.id,void(c||(S((e=>e.filter((e=>e.id!==t)))),r&&r(t)));var t},disabled:c,"aria-label":`Delete "${e.text}"`,children:(0,g.jsx)(f,{name:"Trash",size:"sm"})})]})},e.id)))})]})};st.displayName="Todo";const it=({initialOn:e=!1,onToggleOn:t,onToggleOff:a,disabled:r=!1,className:s=""})=>{const[i,o]=(0,u.useState)(e),l=(0,u.useRef)(null),c=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"==typeof window||!l.current)return;n.e(897).then(n.bind(n,897)).then((({default:e})=>{l.current&&(c.current=new e(l.current))}));const r=()=>{o(!0),t&&t()},s=()=>{o(!1),a&&a()},i=l.current;return i?.addEventListener("toggle:on",r),i?.addEventListener("toggle:off",s),e&&c.current&&c.current.turnOn(),()=>{i?.removeEventListener("toggle:on",r),i?.removeEventListener("toggle:off",s),c.current&&c.current.destroy()}}),[e,t,a]),(0,u.useEffect)((()=>{c.current&&(i?c.current.turnOn():c.current.turnOff())}),[i]),(0,g.jsx)("div",{className:`c-toggle ${i?p.DR.CLASSES.IS_ON:""} ${r?"is-disabled":""} ${s}`,ref:l,role:"switch","aria-checked":i,tabIndex:r?-1:0,"aria-disabled":r,children:(0,g.jsx)("div",{className:"c-toggle__switch"})})};it.displayName="Toggle";const ot={trigger:p.UB.DEFAULTS.TRIGGER,position:p.UB.DEFAULTS.POSITION,offset:p.UB.DEFAULTS.OFFSET,delay:p.UB.DEFAULTS.DELAY,activeClass:p.UB.CLASSES.IS_ACTIVE,contentIdAttr:p.UB.ATTRIBUTES.CONTENT_ID,positionAttr:p.UB.ATTRIBUTES.POSITION,triggerAttr:p.UB.ATTRIBUTES.TRIGGER};class lt{selector;$element;$trigger;$content;options;timeout;hideTimeout;isActive=!1;constructor(e,t={}){this.selector=e||p.UB.SELECTORS.TOOLTIP,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...ot,...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(p.UB.SELECTORS.TRIGGER),this.$content=this.$element.querySelector(p.UB.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(p.UB.CLASSES.TOP,p.UB.CLASSES.BOTTOM,p.UB.CLASSES.LEFT,p.UB.CLASSES.RIGHT,p.UB.CLASSES.TOP_LEFT,p.UB.CLASSES.TOP_RIGHT,p.UB.CLASSES.BOTTOM_LEFT,p.UB.CLASSES.BOTTOM_RIGHT),this.options.position){case"top":default:this.$element.classList.add(p.UB.CLASSES.TOP);break;case"bottom":this.$element.classList.add(p.UB.CLASSES.BOTTOM);break;case"left":this.$element.classList.add(p.UB.CLASSES.LEFT);break;case"right":this.$element.classList.add(p.UB.CLASSES.RIGHT);break;case"top-left":this.$element.classList.add(p.UB.CLASSES.TOP_LEFT);break;case"top-right":this.$element.classList.add(p.UB.CLASSES.TOP_RIGHT);break;case"bottom-left":this.$element.classList.add(p.UB.CLASSES.BOTTOM_LEFT);break;case"bottom-right":this.$element.classList.add(p.UB.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(e=p.UB.SELECTORS.TOOLTIP,t={}){const n=document.querySelectorAll(e);return Array.from(n).map((e=>new lt(e,t)))}}const ct=({content:e,children:t,position:n=p.UB.DEFAULTS.POSITION,trigger:a=p.UB.DEFAULTS.TRIGGER,className:r="",delay:s=p.UB.DEFAULTS.DELAY,offset:i=p.UB.DEFAULTS.OFFSET})=>{const o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>(o.current&&(l.current=new lt(o.current,{position:n,trigger:a,delay:s,offset:i})),()=>{l.current&&l.current.destroy()})),[n,a,s,i]),(0,g.jsxs)("div",{className:"u-position-relative u-d-inline-block",children:[(0,g.jsx)("div",{className:`${p.UB.SELECTORS.TRIGGER.substring(1)}${r?" "+r:""}`,children:t}),(0,g.jsx)("div",{className:"c-tooltip "+p.UB.SELECTORS.TOOLTIP.substring(1),ref:o,"data-tooltip-position":n,"data-tooltip-trigger":a,children:(0,g.jsxs)("div",{className:"c-tooltip__content "+p.UB.SELECTORS.CONTENT.substring(1),children:[(0,g.jsx)("span",{className:p.UB.SELECTORS.ARROW.substring(1)}),e]})})]})};ct.displayName="Tooltip";const dt=({disabled:e=!1,maxSizeInMB:t=5,acceptedFileTypes:a=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:r=!1,title:s="Drag and Drop files here",supportedFilesText:i="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:o="Choose File",helperText:l=`Maximum size: ${t}MB`,icon:c=(0,g.jsx)("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:d,onFileUpload:m,onFileUploadComplete:h,onFileUploadError:_,className:S=""})=>{const E=(0,u.useRef)(null),f=(0,u.useRef)(null),v=(0,u.useRef)(null),[b,C]=(0,u.useState)("idle"),[N,L]=(0,u.useState)(!1),[x,T]=(0,u.useState)(null),[A,I]=(0,u.useState)(0),[O,y]=(0,u.useState)(null),[R,w]=(0,u.useState)(null),[k,j]=(0,u.useState)(null),D=(0,u.useRef)(0);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&E.current)return n.e(308).then(n.bind(n,3308)).then((({default:n})=>{E.current&&(v.current=new n(E.current,{disabled:e,maxSizeInMB:t,acceptedFileTypes:a,multiple:r,onFileSelect:d,onFileUpload:(e,t)=>{I(t),y(Math.ceil((100-t)/5)+" seconds left"),m&&m(e,t)},onFileUploadComplete:e=>{C("success"),j("Upload successful"),h&&h(e)},onFileUploadError:(e,t)=>{C("error"),w(t),_&&_(e,t)}}))})),()=>{v.current&&v.current.destroy()}}),[e,t,a,r,d,m,h,_]);const M=e=>{if(!e.length)return;const t=(r?e:[e[0]]).filter((e=>P(e)));t.length&&d&&d(t),t.length&&(T(t[0]||null),t[0]&&B(t[0]))},P=e=>e.size>1024*t*1024?(C("error"),w(`File too large. Maximum size is ${t}MB.`),!1):!(a?.length&&!a.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(n+"/")}return e.type===t})))||(C("error"),w("File type not supported."),!1),B=e=>{C("loading"),I(0);let t=0;const n=setInterval((()=>{t+=5,100>t?(I(t),y(Math.ceil((100-t)/5)+" seconds left"),m&&m(e,t)):(clearInterval(n),C("success"),j("Upload successful"),h&&h(e))}),500)},$=["c-upload",e?p.oH.CLASSES.DISABLED:"","loading"===b?p.oH.CLASSES.LOADING:"","success"===b?p.oH.CLASSES.SUCCESS:"","error"===b?p.oH.CLASSES.ERROR:"",N?p.oH.CLASSES.DRAGGING:"",S].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:$,ref:E,style:A>0?{[p.oH.ATTRIBUTES.PERCENTAGE]:A}:{},onDragEnter:t=>{t.preventDefault(),t.stopPropagation(),e||(D.current++,1===D.current&&L(!0))},onDragLeave:t=>{t.preventDefault(),t.stopPropagation(),e||(D.current--,0===D.current&&L(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:t=>{if(t.preventDefault(),t.stopPropagation(),e)return;if(D.current=0,L(!1),!t.dataTransfer.files?.length)return;const n=Array.from(t.dataTransfer.files);M(n)},children:[(0,g.jsxs)("div",{className:"c-upload__inner",children:[(0,g.jsx)("div",{className:"c-upload__icon",children:c}),(0,g.jsx)("h3",{className:"c-upload__title",children:s}),(0,g.jsx)("p",{className:"c-upload__text",children:i}),(0,g.jsx)("button",{className:"c-upload__btn c-btn c-btn--primary",disabled:e,onClick:()=>{f.current&&!e&&f.current.click()},children:o}),(0,g.jsx)("p",{className:"c-upload__helper-text",children:l}),(0,g.jsx)("input",{ref:f,type:"file",accept:a.join(","),multiple:r,style:{display:"none"},onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);M(t)}})]}),("loading"===b||"success"===b||"error"===b)&&x&&(0,g.jsxs)("div",{className:"c-upload__loader",children:[(0,g.jsxs)("div",{className:"c-upload__loader-status",children:[(0,g.jsx)("h5",{className:"c-upload__loader-title",children:x.name}),(0,g.jsxs)("div",{className:"c-upload__loader-progress",children:["loading"===b&&100>A&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"c-upload__loader-par",children:[A,"%"]}),O&&(0,g.jsx)("div",{className:"c-upload__loader-time",children:O})]}),"success"===b&&k,"error"===b&&R]})]}),(0,g.jsxs)("div",{className:"c-upload__loader-control",children:["loading"===b&&100>A&&(0,g.jsx)("div",{className:"c-upload__loader-bar",children:(0,g.jsxs)("svg",{children:[(0,g.jsx)("circle",{cx:"10",cy:"10",r:"10"}),(0,g.jsx)("circle",{cx:"10",cy:"10",r:"10"})]})}),(0,g.jsx)("button",{className:"c-upload__loader-close c-btn c-btn--icon",onClick:()=>{C("idle"),T(null),I(0),y(null),w(null),j(null),f.current&&(f.current.value="")},children:(0,g.jsx)("i","success"===b?{className:"icon-lux-check-circle-fill"}:{className:"icon-lux-x"})})]})]})]})};dt.displayName="Upload";const ut=r,mt=a,pt=i,ht=o;var gt={...l,...c},_t={...s,composables:ut,utils:mt,constants:ht,types:pt,layouts:d}}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return a[e].call(n.exports,n,n.exports,s),n.exports}s.m=a,s.x=function(){var e=s.O(void 0,[628],(function(){return s(2162)}));return s.O(e)},e=[],s.O=function(t,n,a,r){if(!n){var i=1/0;for(d=0;e.length>d;d++){n=e[d][0],a=e[d][1],r=e[d][2];for(var o=!0,l=0;n.length>l;l++)(!1&r||i>=r)&&Object.keys(s.O).every((function(e){return s.O[e](n[l])}))?n.splice(l--,1):(o=!1,i>r&&(i=r));if(o){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,a,r]},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,n){return s.f[n](e,t),t}),[]))},s.u=function(e){return 628===e?"js/628.js":"js/chunks/cjs/"+e+"."+{54:"54733c458fc7ced6d9ba",202:"6e2b9e63a406ff01b151",308:"86b2e7ea63bf439e01b4",619:"8e6863cb2985a3a109af",690:"17522d562f7ebe2fa7b4",894:"6edddf7d4bf7ccb11e25",897:"74f4c88710fe45c1b9e3"}[e]+".js"},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n={548:1},s.O.require=function(e){return n[e]},s.f.require=function(e,t){n[e]||function(e){var t=e.modules,a=e.ids,r=e.runtime;for(var i in t)s.o(t,i)&&(s.m[i]=t[i]);r&&r(s);for(var o=0;a.length>o;o++)n[a[o]]=1;s.O()}(require("../"+s.u(e)))},t=s.x,s.x=function(){return s.e(628),t()};var i=s.x();module.exports=i}();
1
+ !function(){"use strict";var e,t,n,a={188:function(e,t,n){n.d(t,{$I:function(){return X},Ac:function(){return T},BK:function(){return W},Ci:function(){return w},Co:function(){return p},Cv:function(){return G},DJ:function(){return C},DR:function(){return S},Dv:function(){return h},F0:function(){return r},G0:function(){return U},Gd:function(){return H},I6:function(){return _},LM:function(){return x},Nq:function(){return u},PE:function(){return B},PI:function(){return j},Pf:function(){return k},Th:function(){return $},Tk:function(){return o},UB:function(){return g},UT:function(){return f},Z7:function(){return R},_I:function(){return I},_v:function(){return b},a0:function(){return Y},b4:function(){return z},bO:function(){return M},e8:function(){return P},fk:function(){return D},ic:function(){return m},kh:function(){return s},lq:function(){return l},lt:function(){return a},n5:function(){return i},nl:function(){return V},oH:function(){return L},of:function(){return F},rl:function(){return d},sr:function(){return v},tI:function(){return y},wn:function(){return E},xU:function(){return O},y2:function(){return A},yq:function(){return c},zN:function(){return N}});const a=["primary","secondary","success","info","warning","error","light","dark"],r=["sm","md","lg"],s={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},i={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},o={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"}},l={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"}},c={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},d={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"}},u={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},m={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:"›"}},p={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"]}},h={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"}},g={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}},_={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}},S={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},E={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}},f={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"}},v={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"}},b={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"},C={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"}},N={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"}},L={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"}},x={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"}},T={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"}},A={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:"▶"}},I={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"}},O={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},y={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"},R={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"},w={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},k={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"}},j={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"}},D={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"}},M={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"}},P={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"}},B={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}},$={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"}},z={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"}},F={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"}},U={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"}},G={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}},V={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"}},Y={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)"}},H={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"}},X={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}},W={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}}},2162:function(e,t,n){n.r(t),n.d(t,{Accordion:function(){return S},Avatar:function(){return N},AvatarGroup:function(){return x},Badge:function(){return I},Breadcrumb:function(){return y},Button:function(){return k},Callout:function(){return P},Card:function(){return $},Checkbox:function(){return G},ColorModeToggle:function(){return Y},Countdown:function(){return X},DataTable:function(){return se},DatePicker:function(){return de},Dropdown:function(){return pe},EdgePanel:function(){return _e},Form:function(){return fe},Hero:function(){return Ce},Icon:function(){return b},Input:function(){return xe},List:function(){return Ae},Messages:function(){return Oe},Modal:function(){return Re},Navbar:function(){return Pe},Pagination:function(){return ae},PhotoViewer:function(){return Ve},Popover:function(){return We},ProductReview:function(){return et},Progress:function(){return tt},Radio:function(){return rt},Rating:function(){return Je},River:function(){return ot},SectionIntro:function(){return ct},Select:function(){return At},Spinner:function(){return Z},Steps:function(){return Ot},Tab:function(){return Rt},Testimonial:function(){return kt},Textarea:function(){return Dt},Todo:function(){return Pt},Toggle:function(){return $t},Tooltip:function(){return Gt},Upload:function(){return Yt},composables:function(){return Ht},constants:function(){return qt},default:function(){return an},types:function(){return Wt},utils:function(){return Xt}});var a={};n.r(a),n.d(a,{addClass:function(){return ut},createIconElement:function(){return _t},createPhosphorIcon:function(){return gt},generateUUID:function(){return Et},getAvailableIcons:function(){return St},hasClass:function(){return dt},removeClass:function(){return mt},toggleClass:function(){return pt}});var r={};n.r(r),n.d(r,{DOTS:function(){return J},useAccordion:function(){return h},useBadge:function(){return T},useBreadcrumb:function(){return Lt},useButton:function(){return R},useCard:function(){return xt},useCheckbox:function(){return F},useDataTable:function(){return W},useEdgePanel:function(){return he},useForm:function(){return Se},useFormGroup:function(){return vt},useHero:function(){return ve},useInput:function(){return Ne},useModal:function(){return Nt},useNav:function(){return ke},useNavDropdown:function(){return De},useNavItem:function(){return je},useNavbar:function(){return we},usePagination:function(){return ee},useRadio:function(){return nt},useRiver:function(){return st},useSelect:function(){return bt},useSpinner:function(){return q},useTextarea:function(){return Ct},useTodo:function(){return ft}});var s={};n.r(s),n.d(s,{Accordion:function(){return S},Avatar:function(){return N},AvatarGroup:function(){return x},Badge:function(){return I},Breadcrumb:function(){return y},Button:function(){return k},Callout:function(){return P},Card:function(){return $},Checkbox:function(){return G},ColorModeToggle:function(){return Y},Countdown:function(){return X},DataTable:function(){return se},DatePicker:function(){return de},Dropdown:function(){return pe},EdgePanel:function(){return _e},Form:function(){return fe},Hero:function(){return Ce},Icon:function(){return b},Input:function(){return xe},List:function(){return Ae},Messages:function(){return Oe},Modal:function(){return Re},Navbar:function(){return Pe},Pagination:function(){return ae},PhotoViewer:function(){return Ve},Popover:function(){return We},ProductReview:function(){return et},Progress:function(){return tt},Radio:function(){return rt},Rating:function(){return Je},River:function(){return ot},SectionIntro:function(){return ct},Select:function(){return At},Spinner:function(){return Z},Steps:function(){return Ot},Tab:function(){return Rt},Testimonial:function(){return kt},Textarea:function(){return Dt},Todo:function(){return Pt},Toggle:function(){return $t},Tooltip:function(){return Gt},Upload:function(){return Yt}});var i={};n.r(i);var o={};n.r(o),n.d(o,{ACCORDION:function(){return p.lq},AVATAR:function(){return p.of},AVATAR_GROUP:function(){return p.G0},BADGE:function(){return p.yq},BREADCRUMB:function(){return p.ic},BUTTON:function(){return p.n5},CALLOUT:function(){return p.Tk},CARD:function(){return p.PE},CLASS_PREFIX:function(){return p.kh},COUNTDOWN:function(){return p.Co},DATA_TABLE_CLASSES:function(){return p.tI},DATA_TABLE_SELECTORS:function(){return p.Z7},DATEPICKER:function(){return p.$I},DROPDOWN:function(){return p.a0},EDGE_PANEL:function(){return p.xU},FORM:function(){return p.PI},FORM_GROUP:function(){return p.fk},HERO:function(){return p.Dv},INPUT:function(){return p.bO},LIST:function(){return p.rl},LIST_GROUP:function(){return p.Nq},MESSAGES:function(){return p.nl},MODAL:function(){return p.Cv},NAV:function(){return p.Ac},NAVBAR:function(){return p.LM},PAGINATION_DEFAULTS:function(){return p.Ci},PHOTOVIEWER:function(){return p.BK},POPOVER:function(){return p.I6},PROGRESS:function(){return p.Gd},RADIO:function(){return p.e8},RATING:function(){return p._I},RIVER:function(){return p.zN},SECTION_INTRO:function(){return p.DJ},SELECT:function(){return p.Th},SIDE_MENU:function(){return p.y2},SIZES:function(){return p.F0},SPINNER:function(){return p._v},STEPS:function(){return p.UT},TAB:function(){return p.wn},TESTIMONIAL:function(){return p.sr},TEXTAREA:function(){return p.b4},THEME_COLORS:function(){return p.lt},TODO:function(){return p.Pf},TOGGLE:function(){return p.DR},TOOLTIP:function(){return p.UB},UPLOAD:function(){return p.oH}});var l={};n.r(l),n.d(l,{Container:function(){return Jt},Grid:function(){return Kt},GridCol:function(){return Zt},Row:function(){return Qt}});var c={};n.r(c),n.d(c,{MasonryGrid:function(){return en},MasonryGridItem:function(){return tn}});var d={};n.r(d),n.d(d,{default:function(){return nn}});var u=require("react"),m=n.n(u),p=n(188);function h(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,r]=(0,u.useState)(t.defaultOpen||!1),s=n?t.isOpen:a,[i,o]=(0,u.useState)(s?"auto":"0px"),l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=()=>{if(c.current&&l.current){const e=s?c.current.clientHeight+"px":"0px";l.current.style.setProperty(p.lq.CSS_VARS.PANEL_HEIGHT,e),o(e)}};return(0,u.useEffect)((()=>{d()}),[s]),(0,u.useEffect)((()=>{const e=()=>{s&&d()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s]),{state:{isOpen:s,panelHeight:i},toggle:()=>{t.disabled||(n?t.onOpenChange&&t.onOpenChange(!s):r((e=>!e)))},updatePanelHeight:d,panelRef:l,contentRef:c,generateClassNames:(e="")=>`c-accordion ${s?p.lq.CLASSES.IS_OPEN:""} ${t.disabled?p.lq.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}var g=require("react/jsx-runtime");const _=({title:e,children:t,defaultOpen:n=!1,isOpen:a,onOpenChange:r,disabled:s=!1,iconPosition:i="right",icon:o,className:l=""})=>{const c=(0,u.useId)(),d="accordion-header-"+c,m="accordion-panel-"+c,{state:_,toggle:S,panelRef:E,contentRef:f,generateClassNames:v,generateHeaderClassNames:b}=h({defaultOpen:n,disabled:s,iconPosition:i,isOpen:a,onOpenChange:r}),C=(0,g.jsx)("i",{className:"c-accordion__icon",children:(0,g.jsx)("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:(0,g.jsx)("polyline",{points:"6 9 12 15 18 9"})})});return(0,g.jsxs)("div",{className:v(l),children:[(0,g.jsxs)("button",{id:d,className:b(),onClick:S,"aria-expanded":_.isOpen,"aria-controls":m,disabled:s,type:"button",children:[(0,g.jsx)("span",{className:"c-accordion__title",children:e}),o||C]}),(0,g.jsx)("div",{id:m,className:p.lq.SELECTORS.PANEL.replace(".",""),ref:E,role:"region","aria-labelledby":d,children:(0,g.jsx)("div",{className:p.lq.SELECTORS.BODY.replace(".",""),ref:f,children:t})})]})};_.displayName="Accordion";var S=_,E=require("phosphor-react");const f={xs:16,sm:20,md:24,lg:32,xl:40},v=({name:e,size:t="md",weight:n="regular",color:a,className:r="",alt:s})=>{const i=E[e];return i?(0,g.jsx)("span",{className:`c-icon c-icon--${t} ${r}`,"aria-hidden":!s,title:s,children:(0,g.jsx)(i,{size:"string"==typeof t?f[t]||24:t,weight:n,color:a,"aria-label":s})}):null};v.displayName="Icon";var b=v;const C=({src:e,alt:t="Avatar",initials:n,icon:a,size:r="md",circle:s=!1,className:i="",disabled:o=!1,onClick:l})=>{const[c,d]=(0,u.useState)(!1),m=[p.of.CLASSES.BASE,"md"!==r&&"c-avatar--"+r,s&&p.of.CLASSES.CIRCLE,o&&"is-disabled",i].filter(Boolean).join(" ");return(0,g.jsx)("div",{className:m,onClick:l?e=>{!o&&l&&l(e)}:void 0,role:l?"button":void 0,tabIndex:l&&!o?0:void 0,"aria-disabled":o||void 0,children:e&&!c?(0,g.jsx)("img",{src:e,alt:t,className:"c-avatar__image",onError:()=>{d(!0)}}):(0,g.jsx)("span",n?{className:"c-avatar__initials",children:n}:a?{className:"c-avatar__icon",children:a}:{className:"c-avatar__icon",children:(0,g.jsx)(v,{name:"User",size:"xs"===r?"xs":"sm"===r?"sm":"md"})})})};C.displayName="Avatar";var N=C;const L=({children:e,max:t,stacked:n=!1,className:a="",moreText:r})=>{const s=[p.G0.CLASSES.BASE,n&&p.G0.CLASSES.STACKED,a].filter(Boolean).join(" "),i=u.Children.toArray(e).filter((e=>(0,u.isValidElement)(e)&&e.type===C)),o=void 0!==t&&i.length>t,l=o?i.slice(0,t):i,c=i.length-(t||0),d=(0,u.isValidElement)(i[0])?i[0].props:null,m=d?.size||"md",h=[p.of.CLASSES.BASE,p.G0.CLASSES.MORE,"md"!==m&&"c-avatar--"+m,!!d?.circle&&"c-avatar--circle"].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:s,children:[l.map(((e,t)=>(0,u.isValidElement)(e)?(0,u.cloneElement)(e,{key:t,...e.props}):null)),o&&(0,g.jsx)("div",{className:h,children:r||"+"+c})]})};L.displayName="AvatarGroup";var x=L;function T(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:r=t.disabled,className:s=""}=e;return`${p.yq.BASE_CLASS} ${n?`${p.yq.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${p.yq.SIZE_PREFIX}${a}`} ${r?"c-badge--disabled":""} ${s}`.trim()}}}const A=({label:e,variant:t="primary",size:n="md",disabled:a=!1,icon:r,className:s=""})=>{const{generateBadgeClass:i}=T({variant:t,size:n,disabled:a}),o=i({variant:t,size:n,disabled:a,className:s});return(0,g.jsxs)("span",{className:o,"aria-disabled":a,children:[r&&(0,g.jsx)("span",{className:p.yq.ICON_CLASS,children:r}),(0,g.jsx)("span",{children:e})]})};A.displayName="Badge";var I=A;const O=({items:e,className:t="",ariaLabel:n="Breadcrumb",LinkComponent:a})=>{const r=[p.ic.CLASSES.BASE,t].filter(Boolean).join(" ");return(0,g.jsx)("nav",{"aria-label":n,children:(0,g.jsx)("ol",{className:r,children:e.map(((t,n)=>{const r=[p.ic.CLASSES.ITEM,t.active||n===e.length-1?p.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" "),s=(0,g.jsxs)(g.Fragment,{children:[t.icon&&(0,g.jsx)("span",{className:"c-breadcrumb__icon",children:t.icon}),t.label]});return(0,g.jsx)("li",{className:r,children:t.href&&!t.active?(0,g.jsx)(a||"a",{...{href:t.href,className:p.ic.CLASSES.LINK,onClick:t.onClick},children:s}):(0,g.jsx)("span",{className:p.ic.CLASSES.LINK,children:s})},n)}))})})};O.displayName="Breadcrumb";var y=O;function R(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:r=t.disabled,rounded:s=t.rounded,iconOnly:i=!1,className:o=""}=e;return`c-btn c-btn--${n} ${"md"===a?"":"c-btn--"+a} ${i?"c-btn--icon":""} ${s?"c-btn--rounded":""} ${r?"c-btn--disabled":""} ${o}`.trim()},handleClick:e=>()=>{!t.disabled&&e&&e()}}}const w=(0,u.forwardRef)((({label:e,children:t,onClick:n,variant:a="primary",size:r="md",disabled:s=!1,icon:i,iconOnly:o=!1,rounded:l=!1,className:c="",as:d="button",...u},m)=>{const{generateButtonClass:p,handleClick:h}=R({variant:a,size:r,disabled:s,rounded:l}),_={ref:m,className:p({variant:a,size:r,disabled:s,rounded:l,iconOnly:o,className:c}),onClick:h(n),disabled:s,"aria-disabled":s,...u};return(0,g.jsxs)(d,{..._,children:[i&&(0,g.jsx)("span",{className:"button__icon",children:i}),!o&&(0,g.jsx)("span",{className:"button__label",children:e||t})]})}));w.displayName="Button";var k=w,j=n(8628),D=n.n(j);const M=({title:e,children:t,icon:n,variant:a="primary",onClose:r,actions:s,oneLine:i=!1,toast:o=!1,className:l,...c})=>{const{generateCalloutClass:d,handleClose:u}=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:r=t.toast,className:s=""}=e;return`c-callout ${n?"c-callout--"+n:""} ${a?"c-callout--oneline":""} ${r?"c-callout--toast":""} ${s}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:a,oneLine:i,toast:o,className:l});return(0,g.jsxs)("div",{className:d({variant:a,oneLine:i,toast:o,className:l}),...(()=>{var e,t;const n={role:"region"};return o?(n.role="alert",n["aria-live"]="polite"):D()(e=["warning","error"]).call(e,a)?(n.role="alert",n["aria-live"]="assertive"):D()(t=["info","success"]).call(t,a)&&(n.role="status",n["aria-live"]="polite"),n})(),...c,children:[(0,g.jsxs)("div",{className:"c-callout__content",children:[n&&(0,g.jsx)("div",{className:"c-callout__icon",children:n}),(0,g.jsxs)("div",{className:"c-callout__message",children:[e&&(0,g.jsx)("div",{className:"c-callout__title",children:e}),t&&(0,g.jsx)("div",{className:"c-callout__text",children:t})]})]}),s&&(0,g.jsx)("div",{className:"c-callout__actions",children:s}),r&&(0,g.jsx)("button",{className:"c-callout__close-btn",onClick:u(r),"aria-label":"Close",children:(0,g.jsx)(v,{name:"X",size:"md"})})]})};M.displayName="Callout";var P=M;const B=(0,u.forwardRef)((({header:e,image:t,imageAlt:n="",title:a,text:r,actions:s,icon:i,footer:o,row:l=!1,flat:c=!1,active:d=!1,className:u="",children:m,onClick:h,..._},S)=>{const E=[p.PE.CLASSES.BASE,l?p.PE.CLASSES.ROW:"",c?p.PE.CLASSES.FLAT:"",d?p.PE.CLASSES.ACTIVE:"",u].filter(Boolean).join(" ");return(0,g.jsxs)("div",{ref:S,className:E,onClick:h,..._,children:[(t||i||e)&&(0,g.jsxs)("div",{className:p.PE.SELECTORS.HEADER.substring(1),children:[e,t&&(0,g.jsx)("img",{src:t,alt:n,className:p.PE.SELECTORS.IMAGE.substring(1)}),i&&(0,g.jsx)("div",{className:p.PE.SELECTORS.ICON.substring(1),children:i})]}),(0,g.jsxs)("div",{className:p.PE.SELECTORS.BODY.substring(1),children:[a&&(0,g.jsx)("h3",{className:p.PE.SELECTORS.TITLE.substring(1),children:a}),r&&(0,g.jsx)("p",{className:p.PE.SELECTORS.TEXT.substring(1),children:r}),m]}),s&&(0,g.jsx)("div",{className:p.PE.SELECTORS.ACTIONS.substring(1),children:s}),o&&(0,g.jsx)("div",{className:p.PE.SELECTORS.FOOTER.substring(1),children:o})]})}));B.displayName="Card";var $=B;const z={BASE:"c-checkbox",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled",MIXED:"c-checkbox--mixed"};function F(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},n=(0,u.useRef)(null);return(0,u.useEffect)((()=>{n.current&&(n.current.indeterminate=!!t.indeterminate)}),[t.indeterminate]),{defaultProps:t,generateCheckboxClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,indeterminate:s=t.indeterminate,className:i=""}=e;let o="";return a?o=z.INVALID:r&&(o=z.VALID),`${z.BASE} ${o} ${n?z.DISABLED:""} ${s?z.MIXED:""} ${i}`.trim()},checkboxRef:n}}const U=({label:e,checked:t=!1,onChange:n,className:a="",disabled:r=!1,required:s=!1,id:i,name:o,value:l,invalid:c=!1,valid:d=!1,indeterminate:u=!1,ariaLabel:m,ariaDescribedBy:p})=>{const{generateCheckboxClass:h,checkboxRef:_}=F({indeterminate:u,disabled:r,invalid:c,valid:d}),S=h({className:a,disabled:r,invalid:c,valid:d,indeterminate:u});return(0,g.jsxs)("div",{className:S,children:[(0,g.jsx)("input",{ref:_,type:"checkbox",className:"c-checkbox__input",checked:t,onChange:n,disabled:r,required:s,id:i,name:o,value:l,"aria-label":e?void 0:m,"aria-describedby":p,"aria-invalid":c}),e&&(0,g.jsx)("label",{className:"c-checkbox__label",htmlFor:i,children:e})]})};U.displayName="Checkbox";var G=U;const V=({className:e=""})=>{const[t,n]=(0,u.useState)("light");return(0,u.useEffect)((()=>{const e=localStorage.getItem("atomix-color-mode");"light"===e||"dark"===e?n(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&n("dark")}),[]),(0,u.useEffect)((()=>{document.documentElement.setAttribute("data-atomix-theme",t),localStorage.setItem("atomix-color-mode",t)}),[t]),(0,u.useEffect)((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{localStorage.getItem("atomix-color-mode")||n(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]),(0,g.jsx)("button",{className:"c-color-mode-toggle "+e,onClick:()=>{n((e=>"light"===e?"dark":"light"))},"aria-label":`Switch to ${"light"===t?"dark":"light"} mode`,title:`Switch to ${"light"===t?"dark":"light"} mode`,children:(0,g.jsx)("svg","light"===t?{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:(0,g.jsx)("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:(0,g.jsx)("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"})})})};V.displayName="ColorModeToggle";var Y=V;const H=(0,u.forwardRef)((({target:e,show:t=["days","hours","minutes","seconds"],separator:n=":",focused:a=!1,className:r="",onComplete:s},i)=>{const o="string"==typeof e?new Date(e):e,[l,c]=(0,u.useState)((()=>new Date)),[d,p]=(0,u.useState)(!1);(0,u.useEffect)((()=>{if(d)return;const e=setInterval((()=>{c(new Date)}),1e3);return()=>clearInterval(e)}),[d]);const h=o.getTime()-l.getTime(),{days:_,hours:S,minutes:E,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}}(h);(0,u.useEffect)((()=>{h>0||d||(p(!0),s&&s())}),[h,d,s]);const v=[];return D()(t).call(t,"days")&&v.push({label:"Days",value:_}),D()(t).call(t,"hours")&&v.push({label:"Hours",value:S}),D()(t).call(t,"minutes")&&v.push({label:"Minutes",value:E}),D()(t).call(t,"seconds")&&v.push({label:"Seconds",value:f}),(0,g.jsx)("div",{ref:i,className:`c-countdown${a?" c-countdown--focused":""} ${r}`.trim(),children:v.map(((e,t)=>(0,g.jsxs)(m().Fragment,{children:[(0,g.jsxs)("div",{className:"c-countdown__time",children:[(0,g.jsx)("span",{className:"c-countdown__time-count",children:(e.value+"").padStart(2,"0")}),(0,g.jsx)("span",{className:"c-countdown__time-label",children:e.label})]}),v.length-1>t&&(0,g.jsx)("span",{className:"c-countdown__separator",children:n})]},e.label)))})}));H.displayName="Countdown";var X=H;function W({data:e=[],columns:t=[],sortable:n=!1,paginated:a=!1,pageSize:r=10,onSort:s,initialSortConfig:i}){const[o,l]=(0,u.useState)(i||null),[c,d]=(0,u.useState)(1),[m,p]=(0,u.useState)(""),h=(0,u.useCallback)((e=>{if(!n)return;let t="asc";o&&o.key===e&&"asc"===o.direction&&(t="desc");const a={key:e,direction:t};l(a),s&&s(a)}),[n,o,s]),g=(0,u.useCallback)((t=>{1>t||t>Math.ceil(e.length/r)||d(t)}),[e.length,r]),_=(0,u.useCallback)((e=>{p(e),d(1)}),[]),S=(0,u.useMemo)((()=>{if(!m)return e;const n=m.toLowerCase();return e.filter((e=>t.some((t=>{var a;const r=e[t.key];return null!=r&&D()(a=(r+"").toLowerCase()).call(a,n)}))))}),[e,t,m]),E=(0,u.useMemo)((()=>o&&n?[...S].sort(((e,t)=>{const n=e[o.key],a=t[o.key];return null==n?"asc"===o.direction?-1:1:null==a?"asc"===o.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===o.direction?n.localeCompare(a):a.localeCompare(n):"asc"===o.direction?n>a?1:-1:n>a?-1:1})):S),[S,o,n]),f=(0,u.useMemo)((()=>{if(!a)return E;const e=(c-1)*r;return E.slice(e,e+r)}),[E,a,c,r]),v=(0,u.useMemo)((()=>a?Math.max(1,Math.ceil(E.length/r)):1),[E.length,a,r]);return(0,u.useEffect)((()=>{d(1)}),[e]),(0,u.useEffect)((()=>{c>v&&d(Math.max(1,v))}),[c,v]),{displayData:f,sortConfig:o,currentPage:c,totalPages:v,handleSort:h,handlePageChange:g,handleSearch:_}}function q(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:r=t.fullscreen,className:s=""}=e,i="c-spinner";return`${i} ${n?`${i}--${n}`:""} ${"md"!==a?`${i}--${a}`:""} ${r?i+"--fullscreen":""} ${s}`.trim()}}}const K=({size:e="md",variant:t="primary",fullscreen:n=!1,className:a=""})=>{const{generateSpinnerClass:r}=q({size:e,variant:t,fullscreen:n}),s=r({size:e,variant:t,fullscreen:n,className:a});return(0,g.jsx)("div",{className:s,role:"status",children:(0,g.jsx)("span",{className:p._v.VISUALLY_HIDDEN,children:"Loading..."})})};K.displayName="Spinner";var Z=K;const J="...",Q=(e,t)=>Array.from({length:t-e+1},((t,n)=>n+e)),ee=({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:a})=>{const r=(0,u.useMemo)((()=>{if(n+5>=t)return Q(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),s=a>2,i=t-2>r,o=t;if(!s&&i)return[...Q(1,3+2*n),J,t];if(s&&!i){let e=Q(t-(3+2*n)+1,t);return[1,J,...e]}if(s&&i){let e=Q(a,r);return[1,J,...e,J,o]}return[]}),[t,n,e]),s=n=>{1>n||n>t||n===e||a(n)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:s,nextPage:()=>{s(e+1)},prevPage:()=>{s(e-1)},firstPage:()=>{s(1)},lastPage:()=>{s(t)},DOTS:J}},te=({type:e,onClick:t,disabled:n,label:a,iconName:r})=>(0,g.jsx)("li",{className:`c-pagination__item c-pagination__item--${e} ${n?"is-disabled":""}`,"aria-disabled":n,children:(0,g.jsx)("button",{type:"button",className:"c-pagination__link",onClick:t,disabled:n,"aria-label":a,children:(0,g.jsx)(v,{name:r,size:"sm","aria-hidden":"true"})})}),ne=({currentPage:e=p.Ci.currentPage,totalPages:t=p.Ci.totalPages,onPageChange:n,siblingCount:a=p.Ci.siblingCount,showFirstLastButtons:r=p.Ci.showFirstLastButtons,showPrevNextButtons:s=p.Ci.showPrevNextButtons,size:i=p.Ci.size,className:o="",ariaLabel:l="Pagination"})=>{const{paginationRange:c,goToPage:d,nextPage:u,prevPage:m,firstPage:h,lastPage:_}=ee({currentPage:e,totalPages:t,siblingCount:a,onPageChange:n});return 0===e||2>c.length?null:(0,g.jsx)("nav",{className:`c-pagination c-pagination--${i} ${o}`,"aria-label":l,children:(0,g.jsxs)("ul",{className:"c-pagination__items",children:[r&&(0,g.jsx)(te,{type:"first",onClick:h,disabled:1===e,label:"Go to first page",iconName:"SkipBack"}),s&&(0,g.jsx)(te,{type:"prev",onClick:m,disabled:1===e,label:"Go to previous page",iconName:"CaretLeft"}),c.map(((t,n)=>{if(t===J)return(0,g.jsx)("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+n);const a=t===e;return(0,g.jsx)("li",{className:"c-pagination__item "+(a?"is-active":""),"aria-current":a?"page":void 0,children:(0,g.jsx)("button",{type:"button",className:"c-pagination__link",onClick:()=>d(t),"aria-label":"Page "+t,"aria-current":a?"page":void 0,children:t})},t)})),s&&(0,g.jsx)(te,{type:"next",onClick:u,disabled:e===t,label:"Go to next page",iconName:"CaretRight"}),r&&(0,g.jsx)(te,{type:"last",onClick:_,disabled:e===t,label:"Go to last page",iconName:"SkipForward"})]})})};ne.displayName="Pagination";var ae=ne;const re=({data:e,columns:t,className:n,sortable:a=!1,filterable:r=!1,paginated:s=!1,pageSize:i=10,striped:o=!1,bordered:l=!1,dense:c=!1,loading:d=!1,emptyMessage:m="No data available",onRowClick:h,onSort:_,...S})=>{const E=(0,u.useRef)(null),{displayData:f,sortConfig:b,currentPage:C,totalPages:N,handleSort:L,handlePageChange:x,handleSearch:T}=W({data:e,columns:t,sortable:a,paginated:s,pageSize:i,onSort:_}),A=[p.tI.base,o&&p.tI.striped,l&&p.tI.bordered,c&&p.tI.dense,d&&p.tI.loading,n].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:p.tI.container,...S,children:[r?(0,g.jsx)("div",{className:p.tI.toolbar,children:(0,g.jsx)("div",{className:p.tI.search,children:(0,g.jsx)("input",{type:"text",placeholder:"Search...",className:p.tI.searchInput+" c-input",onChange:e=>T(e.target.value),"aria-label":"Search table"})})}):null,(0,g.jsx)("div",{className:p.tI.tableWrapper,children:(0,g.jsxs)("table",{ref:E,className:A,children:[(0,g.jsx)("thead",{className:p.tI.header,children:(0,g.jsx)("tr",{children:t.map(((e,t)=>(0,g.jsx)("th",{className:`${p.tI.headerCell} ${!1!==e.sortable&&a?p.tI.sortable:""}`,onClick:()=>!1!==e.sortable&&a?L(e.key):null,"aria-sort":b?.key===e.key?"asc"===b.direction?"ascending":"descending":void 0,children:(0,g.jsxs)("div",{className:p.tI.headerContent,children:[(0,g.jsx)("span",{children:e.title}),!1!==e.sortable&&a&&(0,g.jsx)("span",{className:p.tI.sortIcon,children:b?.key===e.key?(0,g.jsx)(v,"asc"===b.direction?{name:"CaretUp",size:"sm"}:{name:"CaretDown",size:"sm"}):null})]})},"header-"+t)))})}),(0,g.jsx)("tbody",d?{children:(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:t.length,className:p.tI.loadingCell,children:(0,g.jsx)("div",{className:p.tI.loadingIndicator,children:(0,g.jsx)(K,{size:"md",variant:"primary"})})})})}:0===f.length?{children:(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:t.length,className:p.tI.emptyCell,children:m})})}:{children:f.map(((e,n)=>(0,g.jsx)("tr",{className:p.tI.row,onClick:h?()=>h(e):void 0,tabIndex:h?0:void 0,role:h?"button":void 0,children:t.map(((t,a)=>(0,g.jsx)("td",{className:p.tI.cell,children:t.render?t.render(e[t.key],e):e[t.key]},`cell-${n}-${a}`)))},"row-"+n)))})]})}),s&&N>1?(0,g.jsx)("div",{className:p.tI.pagination,children:(0,g.jsx)(ne,{currentPage:C,totalPages:N,onPageChange:x,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})}):null]})};re.displayName="DataTable";var se=re;function ie(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function oe(e,t){return new Date(e,t+1,0).getDate()}function le(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",""+r).replace("MM",(""+a).padStart(2,"0")).replace("M",""+a).replace("dd",(""+n).padStart(2,"0")).replace("d",""+n)}const ce=(0,u.forwardRef)((({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:r,onRangeChange:s,format:i="MM/dd/yyyy",minDate:o,maxDate:l,placeholder:c="Select date...",disabled:d=!1,readOnly:p=!1,clearable:h=!0,showTodayButton:_=!0,showWeekNumbers:S=!1,inline:E=!1,id:f,name:b,className:C="",placement:N="bottom-start",inputClassName:L="",size:x="md",...T},A)=>{const{isOpen:I,inputValue:O,rangeInputValue:y,viewMode:R,currentMonth:w,currentYear:k,rangeSelectionState:j,datePickerRef:D,inputRef:M,startDate:P,setIsOpen:B,handleDateSelect:$,handlePrevMonth:z,handleNextMonth:F,handlePrevYear:U,handleNextYear:G,handleTodayClick:V,handleClear:Y,handleInputChange:H,handleInputFocus:X,switchToMonthView:W,switchToYearView:q,selectMonth:K,selectYear:Z,generateDays:J,generateMonths:Q,generateYears:ee,isDateSelectable:te,isDateSelected:ne,isDateInSelectedRange:ae,isToday:re,getWeekNumber:se}=function({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:r,onRangeChange:s,format:i="MM/dd/yyyy",minDate:o,maxDate:l,inline:c=!1}={}){const[d,m]=(0,u.useState)(c),[p,h]=(0,u.useState)(e?le(e,i):""),[g,_]=(0,u.useState)(a&&r?`${le(a,i)} - ${le(r,i)}`:a?le(a,i)+" - Select end date":""),[S,E]=(0,u.useState)(e||a||new Date),[f,v]=(0,u.useState)("days"),[b,C]=(0,u.useState)(!a||a&&r?"start":"end"),N=(0,u.useRef)(null),L=(0,u.useRef)(null),x=new Date,T=S.getMonth(),A=S.getFullYear(),I=oe(A,T),O=new Date(A,T,1).getDay();(0,u.useEffect)((()=>{"single"===n?h(e?le(e,i):""):(_(a&&r?`${le(a,i)} - ${le(r,i)}`:a?le(a,i)+" - Select end date":""),C(!a||a&&r?"start":"end"))}),[e,a,r,i,n]);const y=(0,u.useCallback)((e=>{const r=new Date(A,T,e);if(!(o&&o>r||l&&r>l))if("single"===n)t&&t(r),h(le(r,i)),c||m(!1);else if("start"===b)s&&s({startDate:r,endDate:null}),_(le(r,i)+" - Select end date"),C("end");else{if(!a)return;a>r?(s&&s({startDate:r,endDate:a}),_(`${le(r,i)} - ${le(a,i)}`)):(s&&s({startDate:a,endDate:r}),_(`${le(a,i)} - ${le(r,i)}`)),c||m(!1),C("start")}}),[A,T,o,l,t,s,i,c,n,b,a]),R=(0,u.useCallback)((()=>{E(new Date(A,T-1,1))}),[A,T]),w=(0,u.useCallback)((()=>{E(new Date(A,T+1,1))}),[A,T]),k=(0,u.useCallback)((()=>{E(new Date(A-1,T,1))}),[A,T]),j=(0,u.useCallback)((()=>{E(new Date(A+1,T,1))}),[A,T]),D=(0,u.useCallback)((()=>{v("months")}),[]),M=(0,u.useCallback)((()=>{v("years")}),[]),P=(0,u.useCallback)((e=>{E(new Date(A,e,1)),v("days")}),[A]),B=(0,u.useCallback)((e=>{E(new Date(e,T,1)),v("months")}),[T]),$=(0,u.useCallback)((()=>{const e=new Date;E(e),"single"===n?y(e.getDate()):E(new Date)}),[y,n]),z=(0,u.useCallback)((()=>{"single"===n?(h(""),t&&t(null)):(_(""),C("start"),s&&s({startDate:null,endDate:null}))}),[t,s,n]),F=(0,u.useCallback)((e=>{if("single"===n){h(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),E(n))}else{_(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())||E(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||s&&s({startDate:t,endDate:a})}}}}),[t,s,n]),U=(0,u.useCallback)((()=>{c||m(!0)}),[c]),G=(0,u.useCallback)((e=>{N.current&&!N.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&m(!1)}),[]);(0,u.useEffect)((()=>(d&&!c?document.addEventListener("mousedown",G):document.removeEventListener("mousedown",G),()=>{document.removeEventListener("mousedown",G)})),[d,G,c]);const V=(0,u.useCallback)((()=>{const e=[],t=oe(0===T?A-1:A,0===T?11:T-1);for(let a=O-1;a>=0;a--)e.push({day:t-a,month:0===T?11:T-1,year:0===T?A-1:A,isCurrentMonth:!1});for(let a=1;I>=a;a++)e.push({day:a,month:T,year:A,isCurrentMonth:!0});const n=42-e.length;for(let a=1;n>=a;a++)e.push({day:a,month:11===T?0:T+1,year:11===T?A+1:A,isCurrentMonth:!1});return e}),[I,O,T,A]),Y=(0,u.useCallback)((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:ie(t)});return e}),[]),H=(0,u.useCallback)((()=>{const e=[],t=A-6;for(let n=0;12>n;n++)e.push(t+n);return e}),[A]),X=(0,u.useCallback)(((e,t,n)=>function(e,t,n){return!(!e||t&&t>e||n&&e>n)}(new Date(e,t,n),o,l)),[o,l]),W=(0,u.useCallback)(((t,s,i)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===s&&e.getDate()===i;if(!a&&!r)return!1;if(a&&!r)return a.getFullYear()===t&&a.getMonth()===s&&a.getDate()===i;if(a&&r){const e=a.getFullYear()===t&&a.getMonth()===s&&a.getDate()===i,n=r.getFullYear()===t&&r.getMonth()===s&&r.getDate()===i;return e||n}return!1}),[e,n,a,r]),q=(0,u.useCallback)(((e,t,s)=>{if("range"!==n||!a||!r)return!1;const i=new Date(e,t,s);return i>a&&r>i}),[n,a,r]),K=(0,u.useCallback)(((e,t,n)=>x.getFullYear()===e&&x.getMonth()===t&&x.getDate()===n),[x]),Z=(0,u.useCallback)((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:d,inputValue:p,rangeInputValue:g,viewDate:S,viewMode:f,currentMonth:T,currentYear:A,selectionMode:n,rangeSelectionState:b,datePickerRef:N,inputRef:L,startDate:a,endDate:r,setIsOpen:m,handleDateSelect:y,handlePrevMonth:R,handleNextMonth:w,handlePrevYear:k,handleNextYear:j,handleTodayClick:$,handleClear:z,handleInputChange:F,handleInputFocus:U,switchToMonthView:D,switchToYearView:M,selectMonth:P,selectYear:B,generateDays:V,generateMonths:Y,generateYears:H,isDateSelectable:X,isDateSelected:W,isDateInSelectedRange:q,isToday:K,getWeekNumber:Z}}({value:e,onChange:t,selectionMode:n,startDate:a,endDate:r,onRangeChange:s,format:i,minDate:o,maxDate:l,inline:E});(0,u.useImperativeHandle)(A,(()=>({open:()=>B(!0),close:()=>B(!1),clear:Y,focus:()=>M.current?.focus()})));const ce=`c-datepicker ${C} ${E?"c-datepicker--inline":""}`.trim(),de=`c-datepicker__input c-input c-input--${x} ${L}`.trim(),ue=f||"datepicker-"+Math.random().toString(36).substring(2,9),me=ue+"-calendar",pe="single"===n?O:y;return(0,g.jsxs)("div",{className:ce,ref:D,...T,children:[!E&&(0,g.jsxs)("div",{className:"c-datepicker__input-wrapper",children:[(0,g.jsx)("input",{id:ue,name:b,ref:M,type:"text",className:de,placeholder:"single"===n?c:"start"===j?"Select start date...":P?le(P,i)+" - Select end date...":"Select date range...",value:pe,onChange:H,onFocus:X,disabled:d,readOnly:p,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":me}),h&&pe&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:(0,g.jsx)(v,{name:"X",size:"sm"})}),(0,g.jsx)("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:(0,g.jsx)(v,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(I||E)&&(0,g.jsxs)("div",{id:me,className:"c-datepicker__calendar c-datepicker__calendar--"+N,role:"dialog","aria-modal":E?void 0:"true","aria-label":"Date picker",children:[(0,g.jsxs)("div",{className:"c-datepicker__header",children:["days"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:U,"aria-label":"Previous year",children:(0,g.jsx)(v,{name:"CaretDoubleLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:z,"aria-label":"Previous month",children:(0,g.jsx)(v,{name:"CaretLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:W,"aria-label":"Switch to month view",children:`${w+1}/${k}`}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:F,"aria-label":"Next month",children:(0,g.jsx)(v,{name:"CaretRight",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:G,"aria-label":"Next year",children:(0,g.jsx)(v,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:U,"aria-label":"Previous year",children:(0,g.jsx)(v,{name:"CaretLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:q,"aria-label":"Switch to year view",children:k}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:G,"aria-label":"Next year",children:(0,g.jsx)(v,{name:"CaretRight",size:"sm"})})]}),"years"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:()=>U(),"aria-label":"Previous year range",children:(0,g.jsx)(v,{name:"CaretLeft",size:"sm"})}),(0,g.jsxs)("button",{type:"button",className:"c-datepicker__view-switch","aria-label":"Current year range",children:[k-6," - ",k+5]}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:()=>G(),"aria-label":"Next year range",children:(0,g.jsx)(v,{name:"CaretRight",size:"sm"})})]})]}),(0,g.jsxs)("div",{className:"c-datepicker__body",children:["days"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"c-datepicker__weekdays",role:"row",children:[S&&(0,g.jsx)("div",{className:"c-datepicker__weekday c-datepicker__weeknumber",role:"columnheader",children:"#"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Su"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Mo"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Tu"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"We"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Th"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Fr"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Sa"})]}),(0,g.jsx)("div",{className:"c-datepicker__days",role:"grid","aria-labelledby":ue+"-month-year",children:J().map(((e,t)=>{const s=te(e.year,e.month,e.day),i=ne(e.year,e.month,e.day),o=re(e.year,e.month,e.day),l=new Date(e.year,e.month,e.day),c=ae(e.year,e.month,e.day),d="range"===n&&a&&e.day===a.getDate()&&e.month===a.getMonth()&&e.year===a.getFullYear(),u="range"===n&&r&&e.day===r.getDate()&&e.month===r.getMonth()&&e.year===r.getFullYear();if(S&&t%7==0){const n=se(l);return(0,g.jsxs)(m().Fragment,{children:[(0,g.jsx)("div",{className:"c-datepicker__weeknumber","aria-label":"Week "+n,children:n}),(0,g.jsx)("button",{type:"button",className:`c-datepicker__day \n ${e.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${i?"c-datepicker__day--selected":""} \n ${d?"c-datepicker__day--start-range":""}\n ${u?"c-datepicker__day--end-range":""}\n ${c?"c-datepicker__day--in-range":""}\n ${o?"c-datepicker__day--today":""} \n ${s?"":"c-datepicker__day--disabled"}`,onClick:()=>s&&$(e.day),disabled:!s,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":i?"true":"false",role:"gridcell",children:e.day})]},"week-"+t)}return(0,g.jsx)("button",{type:"button",className:`c-datepicker__day \n ${e.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${i?"c-datepicker__day--selected":""} \n ${d?"c-datepicker__day--start-range":""}\n ${u?"c-datepicker__day--end-range":""}\n ${c?"c-datepicker__day--in-range":""}\n ${o?"c-datepicker__day--today":""} \n ${s?"":"c-datepicker__day--disabled"}`,onClick:()=>s&&$(e.day),disabled:!s,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":i?"true":"false",role:"gridcell",children:e.day},"day-"+t)}))})]}),"months"===R&&(0,g.jsx)("div",{className:"c-datepicker__months",role:"grid",children:Q().map(((t,n)=>{const a=e&&e.getMonth()===t.month&&e.getFullYear()===k;return(0,g.jsx)("button",{type:"button",className:"c-datepicker__month "+(a?"c-datepicker__month--selected":""),onClick:()=>K(t.month),"aria-selected":a?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+n)}))}),"years"===R&&(0,g.jsx)("div",{className:"c-datepicker__years",role:"grid",children:ee().map(((t,n)=>{const a=e&&e.getFullYear()===t;return(0,g.jsx)("button",{type:"button",className:"c-datepicker__year "+(a?"c-datepicker__year--selected":""),onClick:()=>Z(t),"aria-selected":a?"true":"false",role:"gridcell",children:t},"year-"+n)}))})]}),"days"===R&&(0,g.jsxs)("div",{className:"c-datepicker__footer",children:["range"===n&&(0,g.jsxs)("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===j?"start":"end"," date"]}),_&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:V,"aria-label":"Go to today",children:"Today"}),!E&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>B(!1),"aria-label":"Close calendar",children:"Close"})]})]})]})}));ce.displayName="DatePicker";var de=ce;const ue=(0,u.createContext)({isOpen:!1,close:()=>{},id:"",trigger:"click"}),me=({children:e,menu:t,placement:n="bottom-start",trigger:a="click",offset:r=p.a0.DEFAULTS.OFFSET,isOpen:s,onOpenChange:i,closeOnClickOutside:o=!0,closeOnEscape:l=!0,maxHeight:c,minWidth:d=p.a0.DEFAULTS.MIN_WIDTH,variant:m,className:h="",..._})=>{const[S,E]=(0,u.useState)(!1),f=void 0!==s,v=f?s:S,b=(0,u.useRef)(null),C=(0,u.useRef)(null),N=(0,u.useRef)(null),L=(0,u.useRef)("dropdown-"+Math.random().toString(36).substring(2,9)).current,x=(0,u.useCallback)((e=>{f||E(e),i&&i(e)}),[f,i]),T=(0,u.useCallback)((()=>x(!v)),[v,x]),A=(0,u.useCallback)((()=>{x(!1),setTimeout((()=>{C.current?.focus()}),0)}),[x]);(0,u.useEffect)((()=>{if(!v||!o)return;const e=e=>{b.current&&!b.current.contains(e.target)&&A()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[v,o,A]),(0,u.useEffect)((()=>{if(!v||!l)return;const e=e=>{"Escape"===e.key&&A()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[v,l,A]);const I=(0,u.useCallback)((e=>{if(!N.current)return;const t=N.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(),t.length-1>n?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()}}),[]),O=(0,u.useCallback)((e=>{"click"===a&&(e.preventDefault(),e.stopPropagation(),T())}),[a,T]),y=(0,u.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||v?"Escape"===e.key&&v&&(e.preventDefault(),A()):(e.preventDefault(),x(!0),"ArrowDown"===e.key&&N.current&&setTimeout((()=>{const e=N.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[v,x,A]),R=(0,u.useCallback)((()=>{"hover"===a&&x(!0)}),[a,x]),w=["c-dropdown","click"===a?"c-dropdown--onclick":"",m?"c-dropdown--"+m:"",v?"is-open":"",h].filter(Boolean).join(" "),k={};return c&&(k.maxHeight=c),void 0!==d&&(k.minWidth="number"==typeof d?d+"px":d),(0,g.jsxs)("div",{ref:b,className:w,onMouseEnter:"hover"===a?R:void 0,..._,children:[(0,g.jsx)("div",{ref:C,className:"c-dropdown__toggle",onClick:O,onKeyDown:y,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":L,tabIndex:0,children:e}),(0,g.jsx)("div",{ref:N,id:L,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${n} ${v?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!v,onKeyDown:I,children:(0,g.jsx)("div",{className:"c-dropdown__menu-inner",style:k,children:(0,g.jsx)(ue.Provider,{value:{isOpen:v,close:A,id:L,trigger:a},children:(0,g.jsx)("ul",{className:"c-dropdown__menu",children:t})})})})]})};me.displayName="Dropdown";var pe=me;function he(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,...e},[n,a]=(0,u.useState)(t.isOpen||!1),r=(0,u.useRef)(null),s=(0,u.useRef)(null),i=(0,u.useCallback)((()=>{if(!r.current||"push"!==t.mode)return;const{position:e}=t,n="top"===e||"bottom"===e?r.current.clientHeight:r.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]),o=(0,u.useCallback)((()=>{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]),l=(0,u.useCallback)((()=>{if(a(!0),document.body.classList.add("is-edgepanel-open"),r.current){const{mode:e}=t;if("none"!==e){r.current.classList.add("is-animating");const e=r.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),p.xU.ANIMATION_DURATION)}r.current.style.transform="translate(0)","push"===t.mode&&i()}t.onOpenChange&&t.onOpenChange(!0)}),[t,i]),c=(0,u.useCallback)((()=>{if(r.current){const{position:e,mode:n}=t;if("none"!==n){r.current.classList.add("is-animating-out");const e=r.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),p.xU.ANIMATION_DURATION)}r.current.style.transform=e?p.xU.TRANSFORM_VALUES[e]:"","push"===t.mode&&o(),setTimeout((()=>{a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===n?0:p.xU.ANIMATION_DURATION)}else a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,o]),d=(0,u.useCallback)((e=>{t.closeOnEscape&&"Escape"===e.key&&n&&c()}),[c,t.closeOnEscape,n]),m=(0,u.useCallback)((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&c()}),[c,t.closeOnBackdropClick]);return(0,u.useEffect)((()=>(n&&t.closeOnEscape&&document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)})),[n,d,t.closeOnEscape]),(0,u.useEffect)((()=>{if(r.current){const{position:e,mode:a}=t;n||"slide"!==a&&"push"!==a||!e||(r.current.style.transform=p.xU.TRANSFORM_VALUES[e])}}),[t.mode,t.position,n]),(0,u.useEffect)((()=>{void 0!==t.isOpen&&t.isOpen!==n&&(t.isOpen?l():c())}),[t.isOpen,c,n,l]),{isOpen:n,containerRef:r,backdropRef:s,generateEdgePanelClass:e=>{const{position:a=t.position,className:r="",isOpen:s}=e,i=p.xU.CLASSES.BASE;return`${i} ${a?`${i}--${a}`:""} ${s??n?p.xU.CLASSES.IS_OPEN:""} ${r}`.trim()},openPanel:l,closePanel:c,handleBackdropClick:m}}const ge=({title:e,children:t,position:n="start",mode:a="slide",isOpen:r=!1,onOpenChange:s,backdrop:i=!0,closeOnBackdropClick:o=!0,closeOnEscape:l=!0,className:c=""})=>{const{isOpen:d,containerRef:u,backdropRef:m,generateEdgePanelClass:p,closePanel:h,handleBackdropClick:_}=he({position:n,mode:a,isOpen:r,onOpenChange:s,backdrop:i,closeOnBackdropClick:o,closeOnEscape:l}),S=p({position:n,isOpen:r,className:c});return d||!1!==r?(0,g.jsxs)("div",{className:S,"data-position":n,"data-mode":a,children:[i&&(0,g.jsx)("div",{ref:m,className:"c-edge-panel__backdrop",onClick:_}),(0,g.jsxs)("div",{ref:u,className:"c-edge-panel__container",children:[(0,g.jsxs)("div",{className:"c-edge-panel__header",children:[(0,g.jsx)("h4",{children:e}),(0,g.jsx)("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:h,"aria-label":"Close panel",children:(0,g.jsx)(v,{name:"X"})})]}),(0,g.jsx)("div",{className:"c-edge-panel__body",children:t})]})]}):null};ge.displayName="EdgePanel";var _e=ge;function Se(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e;return`${p.PI.CLASSES.BASE} ${n?p.PI.CLASSES.DISABLED:""} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}const Ee=({children:e,onSubmit:t,onReset:n,className:a="",disabled:r=!1,id:s,method:i="post",encType:o,noValidate:l=!1,autoComplete:c="on"})=>{const{generateFormClass:d,handleSubmit:u,handleReset:m}=Se({disabled:r}),p=d({className:a,disabled:r});return(0,g.jsx)("form",{id:s,className:p,onSubmit:u(t),onReset:m(n),method:i,encType:o,noValidate:l,autoComplete:c,children:e})};Ee.displayName="Form";var fe=Ee;function ve(e){const t=(0,u.useRef)(null),n=(0,u.useRef)(null),a=(0,u.useRef)(null),r={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},s=!!r.backgroundImageSrc,i=!!r.imageSrc,o=i&&"center"!==r.alignment,l=(e,t=.5)=>{if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const r=()=>{const t=window.pageYOffset*n,a=e.querySelector(p.Dv.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};a.current=r,window.addEventListener("scroll",r),r()},c=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(p.Dv.SELECTORS.BG);t&&(t.style.transform=""),a.current&&(window.removeEventListener("scroll",a.current),a.current=null)};return(0,u.useEffect)((()=>{const e=t.current;return e&&r.parallax&&s&&l(e,r.parallaxIntensity),()=>{e&&a.current&&c(e)}}),[r.parallax,r.parallaxIntensity,s]),{generateHeroClassNames:(e="")=>{const t=[p.Dv.SELECTORS.HERO.replace(".","")];return"center"===r.alignment?t.push(p.Dv.CLASSES.CENTER):"right"===r.alignment?t.push(p.Dv.CLASSES.RIGHT):"left"===r.alignment&&t.push(p.Dv.CLASSES.LEFT),r.fullViewportHeight&&t.push(p.Dv.CLASSES.FULL_VH),r.parallax&&t.push("c-hero--parallax"),r.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=r.imageColSize||7)=>{const t=["o-grid__col o-grid__col--md-"+e];return"left"===r.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:(e=r.contentColSize||5)=>"o-grid__col o-grid__col--md-"+e,hasBackgroundImage:s,hasForegroundImage:i,useGridLayout:o,heroRef:t,videoRef:n,applyParallaxEffect:l,removeParallaxEffect:c}}const be=({title:e,subtitle:t,text:n,imageSrc:a,imageAlt:r="Hero image",alignment:s="left",backgroundImageSrc:i,showOverlay:o=!0,fullViewportHeight:l=!1,actions:c,imageColSize:d=7,contentColSize:u=5,contentWidth:m,className:h="",parallax:_=!1,parallaxIntensity:S=.5,videoBackground:E,videoOptions:f={autoplay:!0,loop:!0,muted:!0}})=>{const{generateHeroClassNames:v,generateImageColClass:b,generateContentColClass:C,hasBackgroundImage:N,hasForegroundImage:L,useGridLayout:x,heroRef:T,videoRef:A}=ve({alignment:s,imageColSize:d,contentColSize:u,imageSrc:a,backgroundImageSrc:i,showOverlay:o,fullViewportHeight:l,contentWidth:m,parallax:_,parallaxIntensity:S,videoBackground:E}),I=m?{"--atomix-hero-content-width":m}:void 0,O=()=>(0,g.jsxs)("div",{className:p.Dv.SELECTORS.CONTENT.replace(".",""),children:[t&&(0,g.jsx)("p",{className:p.Dv.SELECTORS.SUBTITLE.replace(".",""),children:t}),(0,g.jsx)("h1",{className:p.Dv.SELECTORS.TITLE.replace(".",""),children:e}),n&&(0,g.jsx)("p",{className:p.Dv.SELECTORS.TEXT.replace(".",""),children:n}),c&&(0,g.jsx)("div",{className:p.Dv.SELECTORS.ACTIONS.replace(".",""),children:c})]}),y=()=>L?(0,g.jsx)("div","center"===s?{className:p.Dv.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,g.jsx)("img",{src:a,alt:r,className:p.Dv.SELECTORS.IMAGE.replace(".","")})}:{className:b(),children:(0,g.jsx)("img",{src:a,alt:r,className:p.Dv.SELECTORS.IMAGE.replace(".","")})}):null;return(0,g.jsxs)("div",{ref:T,className:v(h),style:I,"data-parallax":_?"true":void 0,"data-parallax-intensity":_?S:void 0,children:[N||E?(0,g.jsxs)("div",{className:p.Dv.SELECTORS.BG.replace(".",""),children:[i&&(0,g.jsx)("img",{src:i,alt:"Background",className:p.Dv.SELECTORS.BG_IMAGE.replace(".","")}),(()=>{if(!E)return null;const{autoplay:e,loop:t,muted:n,posterUrl:a}=f;return(0,g.jsxs)("video",{ref:A,className:"c-hero__video",autoPlay:e,loop:t,muted:n,playsInline:!0,poster:a,children:[(0,g.jsx)("source",{src:E,type:"video/"+(E.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})})(),o&&(0,g.jsx)("div",{className:p.Dv.SELECTORS.OVERLAY.replace(".","")})]}):null,(0,g.jsx)("div",{className:p.Dv.SELECTORS.CONTAINER.replace(".","")+" o-container",children:x?(0,g.jsx)("div",{className:p.Dv.SELECTORS.GRID.replace(".","")+" o-grid",children:(0,g.jsxs)(g.Fragment,"left"===s?{children:[(0,g.jsx)("div",{className:C(),children:O()}),y()]}:{children:[y(),(0,g.jsx)("div",{className:C(),children:O()})]})}):(0,g.jsxs)(g.Fragment,{children:[O(),y()]})})]})};be.displayName="Hero";var Ce=be;function Ne(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:r=t.disabled,invalid:s=t.invalid,valid:i=t.valid,className:o="",type:l}=e;let c="";return s?c=p.bO.CLASSES.INVALID:i&&(c=p.bO.CLASSES.VALID),`${p.bO.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.bO.CLASSES.SMALL:p.bO.CLASSES.LARGE} ${a?"c-input--"+a:""} ${"textarea"===l?"c-input--textarea":""} ${c} ${r?p.bO.CLASSES.DISABLED:""} ${o}`.trim()}}}const Le=({type:e="text",value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s,className:i="",disabled:o=!1,required:l=!1,readOnly:c=!1,id:d,name:u,autoComplete:m,autoFocus:p=!1,size:h="md",variant:_,invalid:S=!1,valid:E=!1,maxLength:f,minLength:v,pattern:b,min:C,max:N,step:L,ariaLabel:x,ariaDescribedBy:T})=>{const{generateInputClass:A}=Ne({size:h,variant:_,disabled:o,invalid:S,valid:E}),I=A({className:i,size:h,variant:_,disabled:o,invalid:S,valid:E,type:e});return(0,g.jsx)("input",{type:e,className:I,value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s,disabled:o,required:l,readOnly:c,id:d,name:u,autoComplete:m,autoFocus:p,maxLength:f,minLength:v,pattern:b,min:C,max:N,step:L,"aria-label":x,"aria-describedby":T,"aria-invalid":S})};Le.displayName="Input";var xe=Le;const Te=({children:e,variant:t="default",className:n="",...a})=>{var r;const s=[p.rl.BASE_CLASS,"default"!==t&&"c-list--"+t,n].filter(Boolean).join(" "),i=D()(r=["number","text"]).call(r,t)?"ol":"ul";return(0,g.jsx)(i,{className:s,...a,children:m().Children.map(e,(e=>(0,g.jsx)("li",{className:"c-list__item",children:e})))})};Te.displayName="List";var Ae=Te;const Ie=({messages:e=[],otherAvatar:t,selfAvatar:n,otherName:a,width:r="100%",onSendMessage:s,placeholder:i="Type a message",className:o="",bodyHeight:l,disabled:c=!1,id:d})=>{const{inputValue:m,handleInputChange:h,handleSubmit:_,handleKeyDown:S}=(({onSendMessage:e}={})=>{const[t,n]=(0,u.useState)(""),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:s}),E=d||"messages-"+Math.random().toString(36).substr(2,9),f=E+"-input";return(0,g.jsxs)("div",{className:`${p.nl.CLASSES.BASE} ${c?"is-disabled":""} ${o}`,style:{"--atomix-messages-width":r},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[(0,g.jsx)("div",{className:p.nl.CLASSES.BODY,style:l?{"--atomix-messages-body-height":l}:void 0,children:e.map((e=>(0,g.jsxs)("div",{className:`${p.nl.CLASSES.CONTENT} ${e.isSelf?p.nl.CLASSES.CONTENT_SELF:""}`,"aria-label":`${e.isSelf?"You":a||"Other person"} sent a message at ${e.time}`,children:[(0,g.jsx)(C,{src:e.isSelf?n:t,size:"xl",circle:!0,className:p.nl.CLASSES.AVATAR,alt:e.isSelf?"Your avatar":(a||"Other person")+"'s avatar"}),(0,g.jsxs)("div",{className:p.nl.CLASSES.ITEMS,children:[!e.isSelf&&a&&(0,g.jsx)("div",{className:p.nl.CLASSES.NAME,children:a}),e.text&&(0,g.jsxs)("div",{className:p.nl.CLASSES.TEXT,children:[e.text,(0,g.jsx)("span",{className:p.nl.CLASSES.TIME,"aria-label":"Sent at "+e.time,children:e.time})]}),e.image&&(0,g.jsx)("img",{className:p.nl.CLASSES.IMAGE,src:e.image,alt:"Message attachment",loading:"lazy"}),e.file&&(0,g.jsxs)("div",{className:p.nl.CLASSES.FILE,"aria-label":`File attachment: ${e.file.name}, size: ${e.file.size}`,children:[(0,g.jsx)("span",{className:p.nl.CLASSES.FILE_ICON,children:(0,g.jsx)(v,{name:"File","aria-hidden":"true"})}),(0,g.jsxs)("div",{className:p.nl.CLASSES.FILE_DETAILS,children:[(0,g.jsx)("div",{className:p.nl.CLASSES.FILE_NAME,children:e.file.name}),(0,g.jsx)("div",{className:p.nl.CLASSES.FILE_SIZE,children:e.file.size})]})]})]})]},e.id)))}),(0,g.jsxs)("form",{className:p.nl.CLASSES.FORM,onSubmit:_,"aria-label":"Message input form",children:[(0,g.jsxs)("div",{className:p.nl.CLASSES.INPUT_GROUP,children:[(0,g.jsx)("label",{htmlFor:f,className:"u-visually-hidden",children:"Type a message"}),(0,g.jsx)("input",{id:f,type:"text",className:p.nl.CLASSES.INPUT,placeholder:i,value:m,onChange:h,onKeyDown:S,disabled:c,"aria-label":"Message input"}),(0,g.jsxs)("div",{className:p.nl.CLASSES.OPTIONS,"aria-label":"Message options",children:[(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Attach file",disabled:c,children:(0,g.jsx)(v,{name:"PaperclipHorizontal","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})}),(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Attach image",disabled:c,children:(0,g.jsx)(v,{name:"Image","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})}),(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Insert link",disabled:c,children:(0,g.jsx)(v,{name:"Link","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})})]})]}),(0,g.jsx)("button",{type:"submit",className:p.nl.CLASSES.SUBMIT,"aria-label":"Send message",disabled:c,children:(0,g.jsx)(v,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};Ie.displayName="Messages";var Oe=Ie;const ye=({children:e,isOpen:t=!1,onOpenChange:n,onClose:a,onOpen:r,title:s,subtitle:i,size:o="md",backdrop:l=!0,keyboard:c=!0,className:d="",closeButton:m=!0,footer:h,..._})=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),f=(0,u.useRef)(null),{isOpen:v,close:b}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[r,s]=(0,u.useState)(!1),i=void 0!==e,o=i?!!e:r;(0,u.useEffect)((()=>{i&&s(!!e)}),[e,i]);const l=(0,u.useCallback)((e=>{i||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[i,t,n,a]),c=(0,u.useCallback)((()=>{l(!0)}),[l]),d=(0,u.useCallback)((()=>{l(!1)}),[l]),m=(0,u.useCallback)((()=>{l(!o)}),[o,l]);return{isOpen:o,open:c,close:d,toggle:m}}({isOpen:t,onOpenChange:n,onClose:a,onOpen:r});(0,u.useEffect)((()=>{if(!c)return;const e=e=>{"Escape"===e.key&&v&&b()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[v,b,c]);const C=["c-modal",v?p.Cv.CLASSES.IS_OPEN:"",o?"c-modal--"+o:"",d].filter(Boolean).join(" ");return(0,g.jsxs)("div",{ref:S,className:C,style:{display:v?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!v,..._,children:[(0,g.jsx)("div",{ref:f,className:"c-modal__backdrop",onClick:e=>{l&&e.target===e.currentTarget&&b()}}),(0,g.jsx)("div",{ref:E,className:"c-modal__dialog",children:(0,g.jsxs)("div",{className:"c-modal__content",children:[(s||m)&&(0,g.jsxs)("div",{className:"c-modal__header",children:[(0,g.jsxs)("div",{className:"c-modal__header-content",children:[s&&(0,g.jsx)("h3",{className:"c-modal__title",children:s}),i&&(0,g.jsx)("p",{className:"c-modal__sub",children:i})]}),m&&(0,g.jsx)("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:b,"aria-label":"Close modal",children:(0,g.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("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"})})})]}),(0,g.jsx)("div",{className:"c-modal__body",children:e}),h&&(0,g.jsx)("div",{className:"c-modal__footer",children:h})]})})]})};ye.displayName="Modal";var Re=ye;function we(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[n,a]=(0,u.useState)(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:r=t.collapsible,className:s=""}=e;return`c-navbar ${"static"!==n?"c-navbar--"+n:""} ${a?"c-navbar--"+a:""} ${r?"c-navbar--collapsible":""} ${s}`.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}}function ke(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:r=""}=e;return`c-nav ${"start"!==n?"c-nav--"+n:""} ${"default"!==a?"c-nav--"+a:""} ${r}`.trim()}}}function je(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:r=t.active,disabled:s=t.disabled,className:i=""}=e;return`c-nav__item ${n&&!a?p.Ac.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${r?p.Ac.CLASSES.ACTIVE:""} ${s?p.Ac.CLASSES.DISABLED:""} ${i}`.trim()},generateNavLinkClass:(e=!1,t=!1,n="")=>`c-nav__link ${e?p.Ac.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${n}`.trim(),handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}}function De(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:r=""}=e,s=a?p.Ac.SELECTORS.MEGA_MENU.replace(".",""):p.Ac.SELECTORS.DROPDOWN_MENU.replace(".","");let i="";return"center"===n?i=s+"--center":"end"===n&&(i=s+"--end"),`${s} ${i} ${r}`.trim()},isInFixedBottomNavbar:n,getIconClass:(e=!1)=>"c-nav__icon "+(n()?"icon-lux-caret-up":"icon-lux-caret-down"),getIconName:(e=!1)=>n()?"CaretUp":"CaretDown"}}const Me=(0,u.forwardRef)((({brand:e,children:t,variant:n,position:a="static",containerWidth:r,collapsible:s=!0,expanded:i,onToggle:o,className:l="",disabled:c=!1,backdrop:d=!1,closeOnOutsideClick:m=!0,closeOnEscape:p=!0,ariaLabel:h="Main navigation",id:_},S)=>{const{generateNavbarClass:E,generateContainerStyle:f,generateCollapseClass:v}=we({position:a,collapsible:s,expanded:i,onToggle:o}),[b,C]=(0,u.useState)(i||!1),N=(0,u.useRef)(null);(0,u.useEffect)((()=>{void 0!==i&&C(i)}),[i]),(0,u.useEffect)((()=>{const e=()=>{768<=window.innerWidth&&s&&("function"==typeof o?i&&o(!1):C(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[s,i,o]);const L=E({position:a,variant:n,collapsible:s,className:l}),x=f(r),T=v(b);return(0,g.jsx)("nav",{ref:S,className:L,"aria-label":h,id:_,children:(0,g.jsxs)("div",{className:"c-navbar__container",style:x,children:[e&&("string"==typeof e?(0,g.jsx)("a",{href:"/",className:"c-navbar__brand",children:e}):(0,g.jsx)("div",{className:"c-navbar__brand",children:e})),s&&(0,g.jsx)("button",{className:"c-navbar__toggler",onClick:()=>{if(c)return;const e=!b;"function"==typeof o?o(e):C(e)},"aria-expanded":b,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:c,type:"button",children:(0,g.jsx)("span",{className:"c-navbar__toggler-icon"})}),(0,g.jsx)("div",{id:"navbar-collapse",className:T,ref:N,children:t})]})})}));Me.displayName="Navbar";var Pe=Me;const Be=({currentIndex:e,imagesLength:t,onZoomOut:n,onResetZoom:a,onZoomIn:r,onToggleFullscreen:s,onClose:i,isFullscreen:o,zoomLevel:l,onRotate:c,onDownload:d,onShare:u,showInfo:m,onToggleInfo:p,currentImage:h})=>(0,g.jsxs)("div",{className:"c-photo-viewer__header",children:[(0,g.jsx)(A,{label:`${e+1} / ${t}`,variant:"light",size:"sm",className:"c-photo-viewer__counter-badge"}),(0,g.jsxs)("div",{className:"c-photo-viewer__actions",children:[(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:n,disabled:.1>=l,"aria-label":"Zoom out",icon:(0,g.jsx)(v,{name:"Minus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:a,disabled:1===l,"aria-label":"Reset zoom",icon:(0,g.jsx)(v,{name:"MagnifyingGlass",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,disabled:l>=5,"aria-label":"Zoom in",icon:(0,g.jsx)(v,{name:"Plus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:c,"aria-label":"Rotate image",icon:(0,g.jsx)(v,{name:"ArrowsClockwise",size:"sm"}),className:"c-photo-viewer__action-button"}),h?.src&&(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:d,"aria-label":"Download image",icon:(0,g.jsx)(v,{name:"DownloadSimple",size:"sm"}),className:"c-photo-viewer__action-button"}),h?.src&&"undefined"!=typeof navigator&&"share"in navigator&&(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:u,"aria-label":"Share image",icon:(0,g.jsx)(v,{name:"ShareNetwork",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:p,"aria-label":m?"Hide info":"Show info",icon:(0,g.jsx)(v,{name:"Info",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:s,"aria-label":o?"Exit fullscreen":"Enter fullscreen",icon:(0,g.jsx)(v,o?{name:"ArrowsIn",size:"sm"}:{name:"ArrowsOut",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:i,"aria-label":"Close photo viewer",icon:(0,g.jsx)(v,{name:"X",size:"sm"}),className:"c-photo-viewer__action-button c-photo-viewer__close"})]})]}),$e=({show:e,onPrev:t,onNext:n,currentIndex:a,imagesLength:r,enableKeyboardNav:s,onClose:i})=>((0,u.useEffect)((()=>{if(!s)return;const e=e=>{"ArrowLeft"===e.key&&t(),"ArrowRight"===e.key&&n(),"Escape"===e.key&&i()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[s,t,n,i]),e?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(w,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:t,disabled:0===a,"aria-label":"Previous image",icon:(0,g.jsx)(v,{name:"CaretLeft",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev"}),(0,g.jsx)(w,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:n,disabled:a===r-1,"aria-label":"Next image",icon:(0,g.jsx)(v,{name:"CaretRight",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next"})]}):null),ze=({imageRef:e,containerRef:t,src:n,alt:a,zoomLevel:r,dragPosition:s,isDragging:i,rotationAngle:o,isTransitioning:l=!1,onMouseDown:c,onMouseMove:d,onMouseUp:m,onWheel:p,onTouchStart:h,onTouchMove:_,onTouchEnd:S,onDoubleClick:E})=>{const f=(0,u.useRef)(null),v=t||f,[b,C]=(0,u.useState)(!1);return(0,u.useEffect)((()=>(C(!0),()=>C(!1))),[]),(0,u.useEffect)((()=>{const e=v.current;if(!e)return;const t=t=>{b&&e&&p&&p(t)},n=t=>{b&&e&&h&&h(t)},a=t=>{b&&e&&_&&_(t)},r=t=>{b&&e&&S&&S(t)};return b&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",r)}}),[b,p,h,_,S,v]),(0,g.jsx)("div",{ref:v,className:"c-photo-viewer__image-container "+(l?"is-transitioning":""),style:{cursor:i?"grabbing":r>1?"grab":"default",opacity:l?.7:1,touchAction:"none"},onMouseDown:c,onMouseMove:d,onMouseUp:m,onMouseLeave:m,onDoubleClick:e=>{b&&E&&E(e)},children:(0,g.jsx)("img",{ref:e,src:n,alt:a,className:"c-photo-viewer__image",style:{transform:`scale(${r}) translate(${s.x}px, ${s.y}px) rotate(${o}deg)`,transition:i?"none":l?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:i?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},Fe=({images:e,currentIndex:t,goToImage:n})=>e.length>1?(0,g.jsx)("div",{className:"c-photo-viewer__thumbnails",children:e.map(((e,a)=>(0,g.jsx)(w,{variant:"light",className:"c-photo-viewer__thumbnail "+(a===t?"is-active":""),onClick:()=>n(a),"aria-label":"View image "+(a+1),"aria-current":a===t,children:(0,g.jsx)("img",{loading:"lazy",src:e.thumbnail||e.src,alt:e.alt||"Thumbnail "+(a+1),className:"c-photo-viewer__thumbnail-img"})},a)))}):null,Ue=({show:e,image:t,onClose:n})=>e&&t?(0,g.jsxs)("div",{className:"c-photo-viewer__info-panel",children:[(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:n,"aria-label":"Close info panel",icon:(0,g.jsx)(v,{name:"X",size:"sm"}),className:"c-photo-viewer__info-close"}),(0,g.jsxs)("div",{className:"c-photo-viewer__info-content",children:[t.title&&(0,g.jsx)("h3",{className:"c-photo-viewer__info-title",children:t.title}),t.description&&(0,g.jsx)("p",{className:"c-photo-viewer__info-description",children:t.description}),t.date&&(0,g.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["Date: ",t.date]}),t.author&&(0,g.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["By: ",t.author]}),t.tags&&t.tags.length>0&&(0,g.jsx)("div",{className:"c-photo-viewer__info-tags",children:t.tags.map(((e,t)=>(0,g.jsx)(A,{label:e,variant:"light",size:"sm",className:"c-photo-viewer__info-tag"},t)))})]})]}):null,Ge=({images:e,startIndex:t=0,className:n="",disabled:a=!1,enableKeyboardNavigation:r=!0,enableGestures:s=!0,enableFullscreen:i=!0,thumbnailPosition:o="bottom",onImageChange:l,onClose:c})=>{const{currentIndex:d,zoomLevel:m,imagePosition:p,isDragging:h,isFullscreen:_,rotationAngle:S,showInfo:E,imageRef:f,containerRef:v,isTransitioning:b,setZoomLevel:C,setIsFullscreen:N,setRotationAngle:L,setShowInfo:x,closeModal:T,goToPrevious:A,goToNext:I,setCurrentIndex:O,handleMouseDown:y,handleMouseMove:R,handleMouseUp:w,handleWheel:k,handleTouchStart:j,handleTouchMove:M,handleTouchEnd:P,handleDoubleClick:B,resetImageState:$}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:a,onClose:r})=>{const[s,i]=(0,u.useState)(t),[o,l]=(0,u.useState)(!1),[c,d]=(0,u.useState)(!1),[m,p]=(0,u.useState)({x:0,y:0}),[h,g]=(0,u.useState)(!1),[_,S]=(0,u.useState)(!1),[E,f]=(0,u.useState)({}),[v,b]=(0,u.useState)(!1),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)({velocity:0,timestamp:0}),T=(0,u.useRef)(null),A=(0,u.useRef)(null),I=(0,u.useRef)([]),O=(0,u.useRef)(null),y=(0,u.useRef)(null),R=(0,u.useRef)(0),w=(0,u.useRef)(null),k=(0,u.useCallback)(((e,t)=>{if(!C||!T.current||!A.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=T.current,a=A.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=n.naturalWidth||n.width||800,s=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 i=n.width,o=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=r/s;let m,p;i/o>u?(p=Math.min(.9*o,s),m=p*u):(m=Math.min(.9*i,r),p=m/u);const h=(m*d+p*c)*e,g=Math.max(0,((m*c+p*d)*e-i)/2),_=Math.max(0,(h-o)/2);return{minX:-g,maxX:g,minY:-_,maxY:_}}catch(i){return{minX:0,maxX:0,minY:0,maxY:0}}}),[C]),j=(0,u.useCallback)(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);(0,u.useEffect)((()=>(N(!0),i(0>t||t>=e.length?0:t),()=>N(!1))),[e,t]),(0,u.useEffect)((()=>{o?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[o]),(0,u.useEffect)((()=>{o&&f((e=>e[s]?e:{...e,[s]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[o,s]),(0,u.useEffect)((()=>{a&&a(s)}),[s,a]),(0,u.useEffect)((()=>{const e=T.current,t=A.current,n=()=>{C&&e&&t&&f((e=>{const t=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=k(t.zoomLevel,t.rotation),a=j(t.position,n);return{...e,[s]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&C))return e&&t&&C?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[s,k,j,C]),(0,u.useEffect)((()=>{const e=()=>{C&&T.current&&A.current&&f((e=>{const t=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=k(t.zoomLevel,t.rotation),a=j(t.position,n);return{...e,[s]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s,k,j,C]);const M=(0,u.useCallback)((()=>{l(!0)}),[]),P=(0,u.useCallback)((()=>{l(!1),r&&r()}),[r]),B=(0,u.useCallback)((()=>{s>0&&(b(!0),setTimeout((()=>{i((e=>e-1)),b(!1)}),150))}),[s]),$=(0,u.useCallback)((()=>{e.length-1>s&&(b(!0),setTimeout((()=>{i((e=>e+1)),b(!1)}),150))}),[s,e.length]),z=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{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,r=Math.max(.1,Math.min(5,a)),i=k(r,n.rotation),o=j(n.position,i);return{...t,[s]:{...n,zoomLevel:r,bounds:i,position:o}}}))}),[C,s,k,j]),F=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{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,r=j(a,n.bounds);return{...t,[s]:{...n,position:r}}}))}),[s,j]),U=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{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,r=k(n.zoomLevel,a),i=j(n.position,r);return{...t,[s]:{...n,rotation:a,bounds:r,position:i}}}))}),[C,s,k,j]),G=(0,u.useCallback)((e=>{var t;if(!C||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(D()(t),t))?.("storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(a){return}f((t=>{const a=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=e.ctrlKey&&r,o=Math.abs(e.deltaX)>0;let l,c=!1;if(i)l=-.02*e.deltaY,c=!0;else if(!e.ctrlKey&&o&&r){if(1>=a.zoomLevel)return t;l=-.003*e.deltaY,c=!0}else e.ctrlKey||o||!r?r?(l=-.005*e.deltaY,c=!0):(l=-.006*e.deltaY,c=!0):(l=-.004*e.deltaY,c=!0);c&&(e.preventDefault(),e.stopPropagation());const d=Date.now(),u=d-R.current;let m;R.current=d,i&&100>u&&(x({velocity:Math.abs(l)/u,timestamp:d}),w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{const e=()=>{x((t=>{if(.001>t.velocity)return t;const n=.95*t.velocity,a=n*(l>0?1:-1);return f((e=>{const t=e[s]||{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 r=k(n,t.rotation),i=j(t.position,r);return{...e,[s]:{...t,zoomLevel:n,bounds:r,position:i}}})),.001>n||requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{m=n.getBoundingClientRect()}catch(S){return t}if(!m||0===m.width||0===m.height)return t;const p=e.clientX-m.left-m.width/2,h=e.clientY-m.top-m.height/2,g=a.zoomLevel,_=Math.max(.1,Math.min(5,g+l));if(_!==g){const e=_/g,n=k(_,a.rotation),r=j({x:a.position.x+p*(1-e)*.5,y:a.position.y+h*(1-e)*.5},n);return{...t,[s]:{...a,zoomLevel:_,bounds:n,position:r}}}return t}))}}),[C,s,k,j]),V=(0,u.useCallback)((e=>{if(!C||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&f((n=>{const a=n[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(m){return n}if(!r||0===r.width||0===r.height)return n;const i=e.clientX-r.left-r.width/2,o=e.clientY-r.top-r.height/2;let l,c={x:0,y:0};1.5>a.zoomLevel?(l=2,c={x:.5*-i,y:.5*-o}):3>a.zoomLevel?(l=4,c={x:.75*-i,y:.75*-o}):(l=1,c={x:0,y:0});const d=k(l,a.rotation),u=j(c,d);return{...n,[s]:{...a,zoomLevel:l,bounds:d,position:u}}}))}),[C,s,k,j]),Y=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),d(!0),p({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[s]),H=(0,u.useCallback)((e=>{c&&f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=j({x:e.clientX-m.x,y:e.clientY-m.y},n.bounds);return{...t,[s]:{...n,position:a}}}))}),[c,m,s,j]),X=(0,u.useCallback)((()=>{d(!1)}),[]),W=(0,u.useCallback)((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),I.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),f((e=>{const n=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1)d(!0),p({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;O.current=Math.sqrt(e*e+n*n),y.current={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}return e}))}),[n,s]),q=(0,u.useCallback)((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),f((n=>{const a=n[s]||{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&&c&&a.zoomLevel>1){const e=j({x:t[0].clientX-m.x,y:t[0].clientY-m.y},a.bounds);return{...n,[s]:{...a,position:e}}}if(2===t.length&&null!==O.current){const i=t[0].clientX-t[1].clientX,o=t[0].clientY-t[1].clientY,l=Math.sqrt(i*i+o*o),c=.005*(l-O.current);O.current=l;const d={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2},u=a.zoomLevel,m=Math.max(.1,Math.min(5,u+c));if(m!==u&&y.current){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(r){return n}if(!t||0===t.width||0===t.height)return n;const i=d.x-t.left-t.width/2,o=d.y-t.top-t.height/2,l=m/u,c=k(m,a.rotation),p=j({x:a.position.x+i*(1-l)*.5,y:a.position.y+o*(1-l)*.5},c);return y.current=d,{...n,[s]:{...a,zoomLevel:m,bounds:c,position:p}}}y.current=d}return n}))}),[C,n,c,m,s,j,k]),K=(0,u.useCallback)((()=>{d(!1),O.current=null,y.current=null}),[]),Z=E[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:s,isModalOpen:o,zoomLevel:Z.zoomLevel,imagePosition:Z.position,isDragging:c,isFullscreen:h,rotationAngle:Z.rotation,showInfo:_,imageRef:T,containerRef:A,isTransitioning:v,setCurrentIndex:i,setZoomLevel:z,setImagePosition:F,setIsDragging:d,setIsFullscreen:g,setRotationAngle:U,setShowInfo:S,openModal:M,closeModal:P,goToPrevious:B,goToNext:$,handleWheel:G,handleMouseDown:Y,handleMouseMove:H,handleMouseUp:X,handleTouchStart:W,handleTouchMove:q,handleTouchEnd:K,handleDoubleClick:V,resetImageState:()=>{f((e=>({...e,[s]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:e,startIndex:t,enableGestures:s,onImageChange:l,onClose:c||(()=>{})}),z=(0,u.useMemo)((()=>e.map((e=>"string"==typeof e?{src:e}:e))),[e]),F=z[d],U=(0,u.useMemo)((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+o,h?"c-photo-viewer--dragging":"",_?"c-photo-viewer--fullscreen":"",E?"c-photo-viewer--info-open":"",a?"is-disabled":"",n].filter(Boolean).join(" ")),[h,_,E,a,o,n]);return(0,u.useEffect)((()=>{const e=()=>{N(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[N]),(0,u.useEffect)((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),e.length?(0,g.jsxs)("div",{className:U,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[(0,g.jsx)("div",{className:"c-photo-viewer__backdrop",onClick:T}),(0,g.jsxs)("div",{className:"c-photo-viewer__container",children:[(0,g.jsx)(Be,{currentIndex:d,imagesLength:e.length,onZoomOut:()=>C((e=>Math.max(e-.25,.1))),onResetZoom:()=>{$()},onZoomIn:()=>C((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(i){if(_)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}N(!_)}},onClose:c||T,isFullscreen:_,zoomLevel:m,onRotate:()=>{L((e=>(e+90)%360))},onDownload:()=>{if(!F?.src)return;const e=document.createElement("a");e.href=F.src,e.download=F.title||"image-"+(d+1),document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&F?.src)try{await navigator.share({title:F.title||"Shared Image",text:F.description||"Check out this image",url:F.src})}catch(e){}},showInfo:E,onToggleInfo:()=>x(!E),currentImage:F}),(0,g.jsxs)("div",{className:"c-photo-viewer__content",children:[(0,g.jsx)($e,{show:e.length>1,onPrev:A,onNext:I,currentIndex:d,imagesLength:e.length,enableKeyboardNav:r,onClose:c||T}),F?.src&&(0,g.jsx)(ze,{imageRef:f,containerRef:v,src:F.src,alt:F?.alt||"Image "+(d+1),zoomLevel:m,dragPosition:p,isDragging:h,rotationAngle:S,isTransitioning:b,onMouseDown:y,onMouseMove:R,onMouseUp:w,onWheel:k,onTouchStart:j,onTouchMove:M,onTouchEnd:P,onDoubleClick:B})]}),"none"!==o&&(0,g.jsx)(Fe,{images:z,currentIndex:d,goToImage:O}),(0,g.jsx)(Ue,{show:E,image:F,onClose:()=>x(!1)})]})]}):null};Ge.displayName="PhotoViewer";var Ve=Ge,Ye=require("react-dom");const He=(0,u.createContext)({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Xe=({content:e,position:t="top",trigger:n="click",className:a="",delay:r=0,offset:s=12,defaultOpen:i=!1,isOpen:o,onOpenChange:l,closeOnClickOutside:c=!0,closeOnEscape:d=!0,id:m,children:h})=>{const{isOpen:_,setIsOpen:S,triggerRef:E,popoverRef:f,arrowRef:v,popoverId:b,currentPosition:C}=(({position:e="top",trigger:t="click",offset:n=12,delay:a=0,defaultOpen:r=!1,isOpen:s,onOpenChange:i,closeOnClickOutside:o=!0,closeOnEscape:l=!0,id:c})=>{const[d,m]=(0,u.useState)(r),[p,h]=(0,u.useState)("auto"===e?"top":e),g=(0,u.useRef)(null),_=(0,u.useRef)(null),S=(0,u.useRef)(null),E=(0,u.useRef)(null),f=c||"popover-"+Math.random().toString(36).slice(2,11),v=void 0!==s,b=v?s:d,C=e=>{v||m(e),i&&i(e)};(0,u.useEffect)((()=>{if("hover"!==t||!g.current||!_.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),a>0?E.current=setTimeout((()=>{C(!0)}),a):C(!0)},n=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{_.current?.matches(":hover")||C(!1)}),100)},r=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},s=()=>{C(!1)};return g.current.addEventListener("mouseenter",e),g.current.addEventListener("mouseleave",n),_.current.addEventListener("mouseenter",r),_.current.addEventListener("mouseleave",s),()=>{g.current&&(g.current.removeEventListener("mouseenter",e),g.current.removeEventListener("mouseleave",n)),_.current&&(_.current.removeEventListener("mouseenter",r),_.current.removeEventListener("mouseleave",s)),null!==E.current&&window.clearTimeout(E.current)}}),[t,a,b]);const N=t=>{if(!g.current||!_.current)return;const a=g.current.getBoundingClientRect(),r=_.current.getBoundingClientRect(),s=window.innerWidth,i=window.innerHeight,o=50>a.top||a.bottom>i-50||50>a.left||a.right>s-50;if("scroll"===t?.type&&!o)return;const l=a.top,c=i-a.bottom,d=a.left,u=s-a.right;let m="auto"===e?"top":e;if("auto"===e){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"===e&&r.height+n>l&&c>=r.height+n||"bottom"===e&&r.height+n>c&&l>=r.height+n||"left"===e&&r.width+n>d&&u>=r.width+n||"right"===e&&r.width+n>u&&d>=r.width+n)&&(m={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);h(m);let p=0,S=0;switch(m){case"top":p=a.top-r.height-n,S=a.left+a.width/2-r.width/2;break;case"bottom":p=a.bottom+n,S=a.left+a.width/2-r.width/2;break;case"left":p=a.top+a.height/2-r.height/2,S=a.left-r.width-n;break;case"right":p=a.top+a.height/2-r.height/2,S=a.right+n}0>S?S=5:S+r.width>s&&(S=s-r.width-5),0>p?p=5:p+r.height>i&&(p=i-r.height-5);const E=p+window.scrollY,f=S+window.scrollX;_.current.style.position="absolute",_.current.style.top=E+"px",_.current.style.left=f+"px"};return(0,u.useEffect)((()=>{if(!b||!g.current||!_.current)return;N(),window.addEventListener("resize",N);let e=null;const t=t=>{e||(e=setTimeout((()=>{N(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{N()}),500);return()=>{window.removeEventListener("resize",N),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[b,e,n]),(0,u.useEffect)((()=>{if(!b||!o)return;const e=e=>{_.current&&!_.current.contains(e.target)&&g.current&&!g.current.contains(e.target)&&C(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[b,o]),(0,u.useEffect)((()=>{if(!b||!l)return;const e=e=>{"Escape"===e.key&&C(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[b,l]),(0,u.useEffect)((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:b,setIsOpen:C,triggerRef:g,popoverRef:_,arrowRef:S,popoverId:f,currentPosition:p,updatePosition:N}})({position:t,trigger:n,offset:s,delay:r,defaultOpen:i,isOpen:o,onOpenChange:l,closeOnClickOutside:c,closeOnEscape:d,id:m});return(0,g.jsxs)(He.Provider,{value:{isOpen:_,setIsOpen:S,triggerRef:E,popoverId:b,triggerType:n},children:[h,"undefined"!=typeof document&&(0,Ye.createPortal)((0,g.jsxs)("div",{ref:f,className:`c-popover c-popover--${C} ${_?p.I6.CLASSES.IS_OPEN:""} ${a}`,id:b,role:"tooltip","aria-hidden":!_,children:[(0,g.jsx)("div",{className:"c-popover__content",children:(0,g.jsx)("div",{className:"c-popover__content-inner",children:e})}),(0,g.jsx)("div",{ref:v,className:"c-popover__arrow"})]}),document.body)]})};Xe.displayName="Popover";var We=Xe;function qe(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ke(e,t){return m().useMemo((()=>null==e&&null==t?null:n=>{qe(e,n),qe(t,n)}),[e,t])}const Ze=(0,u.forwardRef)((({value:e=0,defaultValue:t,maxValue:n=5,allowHalf:a=!1,readOnly:r=!1,size:s="md",color:i,onChange:o,className:l="",label:c,id:d,useVanillaJS:m=!1,...h},_)=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),{currentValue:f,hoverValue:v,focusedIndex:b,setHoverValue:C,setFocused:N,handleKeyDown:L}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:a=!1,onChange:r})=>{const s=void 0!==r,[i,o]=(0,u.useState)(e),[l,c]=(0,u.useState)(null),[d,m]=(0,u.useState)(null),p=s?e:i,h=(0,u.useCallback)((e=>{a||c(e)}),[a]),g=(0,u.useCallback)((()=>{a||c(null)}),[a]),_=(0,u.useCallback)((e=>{a||(s||o(e),r?.(e))}),[a,r,s]),S=(0,u.useCallback)(((e,i)=>{if(a)return;const l=n?.5:1;let c=p;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,p+l),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,p-l),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=i,e.preventDefault();break;default:return}c!==p&&(s||o(c),r?.(c))}),[p,t,n,a,r,s]);return{currentValue:p,hoverValue:l,focusedIndex:d,handleMouseEnter:h,handleMouseLeave:g,handleClick:_,handleKeyDown:S,setFocused:m,setHoverValue:c,isControlled:s}})({value:void 0!==e?e:t,maxValue:n,allowHalf:a,readOnly:r,onChange:o}),x=(0,u.useCallback)(((e,t)=>{if(!r)if(a){const n=e.currentTarget.getBoundingClientRect();C(Math.max(.5,n.left+n.width/2>e.clientX?t-.5:t))}else C(t)}),[r,a,C]),T=(0,u.useCallback)(((e,t)=>{if(r||!a)return;const n=e.currentTarget.getBoundingClientRect();C(Math.max(.5,n.left+n.width/2>e.clientX?t-.5:t))}),[r,a,C]),A=(0,u.useCallback)((()=>{r||C(null)}),[r,C]),I=(0,u.useCallback)(((e,t)=>{if(r)return;let n=t;if(a){const a=e.currentTarget.getBoundingClientRect();n=a.left+a.width/2>e.clientX?t-.5:t,n=Math.max(.5,n)}o?.(n)}),[r,o,a]);(0,u.useEffect)((()=>{if(m&&"undefined"!=typeof window&&S.current)return()=>{E.current&&E.current.destroy()}}),[m,e,t,n,a,r,s,i,o]),(0,u.useEffect)((()=>{m&&E.current&&E.current.updateOptions({value:void 0!==e?e:t,maxValue:n,allowHalf:a,readOnly:r,size:s,color:i})}),[m,e,t,n,a,r,s,i]);const O=["c-rating","sm"===s?p._I.CLASSES.SMALL:"","lg"===s?p._I.CLASSES.LARGE:"",i?"c-rating--"+i:"",l].filter(Boolean).join(" ");if(m)return(0,g.jsx)("div",{className:O,ref:Ke(S,_),id:d,...h});const y=null!==v?v:f;return(0,g.jsx)("div",{className:O,ref:Ke(S,_),id:d,"data-readonly":r?"true":"false",onMouseLeave:A,role:r?"img":"radiogroup","aria-label":c||`Rating: ${f} out of ${n} stars`,...h,children:(()=>{const e=[],t=a?Math.floor(2*y)/2:Math.round(y),s=d||"rating-"+Math.random().toString(36).substring(2,9);for(let o=1;n>=o;o++){const l=["c-rating__star",o>Math.floor(t)?"":p._I.CLASSES.FULL,a&&o-.5===t?p._I.CLASSES.HALF:"",i?"c-rating__star--"+i:"",b===o?"c-rating__star--focused":""].filter(Boolean).join(" ");e.push((0,g.jsx)("div",{id:`${s}-star-${o}`,className:l,"data-value":o,role:r?"presentation":"button",tabIndex:r?-1:0,"aria-label":`${o} ${1===o?"star":"stars"}`,"aria-checked":t>=o,"aria-setsize":n,"aria-posinset":o,onClick:e=>I(e,o),onMouseEnter:e=>x(e,o),onMouseMove:e=>T(e,o),onFocus:()=>N(o),onBlur:()=>N(null),onKeyDown:e=>L(e,o),children:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,g.jsx)("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"}),(0,g.jsx)("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"}),(0,g.jsx)("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-${s}-${o})`}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:`half-star-clip-${s}-${o}`,children:(0,g.jsx)("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},o))}return e})()})}));Ze.displayName="Rating";var Je=Ze;const Qe=({productName:e,productImage:t,initialRating:n=0,maxRating:a=5,allowHalf:r=!0,ratingColor:s="warning",onSubmit:i,className:o=""})=>{const[l,c]=(0,u.useState)(n),[d,m]=(0,u.useState)(""),[p,h]=(0,u.useState)(!1),_=(0,u.useRef)(null),S=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&_.current)return()=>{S.current&&S.current.destroy()}}),[e,t,n,a,r,s,i]);const E=e=>{e.preventDefault(),i&&i(l,d),h(!0)},f=["c-product-review",o].filter(Boolean).join(" ");return p?(0,g.jsx)("div",{className:f,ref:_,children:(0,g.jsxs)("div",{className:"c-product-review__success",children:[(0,g.jsx)("h3",{children:"Thank you for your review!"}),(0,g.jsx)("p",{children:"Your feedback helps us improve our products."}),(0,g.jsx)(w,{variant:"secondary",label:"Write another review",onClick:()=>{h(!1),c(0),m("")}})]})}):(0,g.jsxs)("div",{className:f,ref:_,children:[(0,g.jsxs)("div",{className:"c-product-review__header",children:[(0,g.jsxs)("h3",{className:"c-product-review__title",children:["Review ",e]}),t&&(0,g.jsx)("div",{className:"c-product-review__image-wrapper",children:(0,g.jsx)("img",{src:t,alt:e,className:"c-product-review__image"})})]}),(0,g.jsxs)("form",{className:"c-product-review__form",onSubmit:E,children:[(0,g.jsxs)("div",{className:"c-product-review__rating-container",children:[(0,g.jsx)("label",{className:"c-product-review__label",children:"Your Rating"}),(0,g.jsxs)("div",{className:"c-rating-container",children:[(0,g.jsx)(Ze,{value:l,onChange:c,allowHalf:r,maxValue:a,size:"lg",color:s}),(0,g.jsx)("span",{className:"c-rating__value",children:l>0?l.toFixed(1):"Select a rating"})]})]}),(0,g.jsxs)("div",{className:"c-product-review__comment-container",children:[(0,g.jsx)("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),(0,g.jsx)("textarea",{id:"review-comment",className:"c-product-review__textarea",value:d,onChange:e=>m(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),(0,g.jsx)("div",{className:"c-product-review__actions",children:(0,g.jsx)(w,{variant:"primary",label:"Submit Review",disabled:0===l,onClick:()=>E(new Event("click"))})})]})]})};Qe.displayName="ProductReview";var et=Qe,tt=(0,u.forwardRef)((({value:e,variant:t="primary",size:n="md",className:a="",disabled:r=!1,ariaLabel:s=p.Gd.DEFAULTS.ARIA_LABEL},i)=>{const{progressValue:o,progressStyle:l,progressClasses:c}=(({value:e,variant:t="primary",size:n="md",className:a=""})=>{const r=Math.min(Math.max(e,0),100),s="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[s,t?`${s}--${t}`:"",n?`${s}--${n}`:"",a||""].filter(Boolean).join(" ")}})({value:e,variant:t,size:n,className:a});return(0,g.jsx)("div",{ref:i,className:c,style:l,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,"aria-label":s,"aria-disabled":r,children:(0,g.jsx)("div",{className:p.Gd.CLASSES.BAR})})}));function nt(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:r=t.valid,className:s=""}=e;let i="";return a?i=p.e8.CLASSES.INVALID:r&&(i=p.e8.CLASSES.VALID),`${p.e8.CLASSES.BASE} ${i} ${n?p.e8.CLASSES.DISABLED:""} ${s}`.trim()}}}const at=({label:e,checked:t=!1,onChange:n,className:a="",disabled:r=!1,required:s=!1,id:i,name:o,value:l,invalid:c=!1,valid:d=!1,ariaLabel:u,ariaDescribedBy:m})=>{const{generateRadioClass:p}=nt({disabled:r,invalid:c,valid:d}),h=p({className:a,disabled:r,invalid:c,valid:d});return(0,g.jsxs)("div",{className:h,children:[(0,g.jsx)("input",{type:"radio",className:"c-radio__input",checked:t,onChange:n,disabled:r,required:s,id:i,name:o,value:l,"aria-label":e?void 0:u,"aria-describedby":m,"aria-invalid":c}),e&&(0,g.jsx)("label",{className:"c-radio__label",htmlFor:i,children:e})]})};at.displayName="Radio";var rt=at;function st(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const n=[p.zN.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(p.zN.CLASSES.CENTER),t.breakout&&n.push(p.zN.CLASSES.BREAKOUT),t.reverse&&n.push(p.zN.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>p.zN.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>p.zN.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}const it=({title:e,text:t,actions:a,imageSrc:r,imageAlt:s="Image",center:i=!1,breakout:o=!1,reverse:l=!1,contentColumns:c,backgroundImageSrc:d,showOverlay:m=!0,contentWidth:h,className:_=""})=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),{generateRiverClassNames:f,generateContentClass:v,generateVisualClass:b,hasBackgroundImage:C,hasForegroundImage:N,textContent:L}=st({title:e,text:t,imageSrc:r,imageAlt:s,center:i,breakout:o,reverse:l,backgroundImageSrc:d,showOverlay:m,contentWidth:h});(0,u.useEffect)((()=>{if("undefined"!=typeof window&&S.current)return n.e(619).then(n.bind(n,5619)).then((({default:e})=>{S.current&&(E.current=new e(S.current,{center:i,breakout:o,reverse:l,backgroundImageSrc:d,showOverlay:m}))})),()=>{E.current&&E.current.destroy()}}),[i,o,l,d,m]);const x=h?{[p.zN.ATTRIBUTES.CONTENT_WIDTH]:h}:void 0,T=()=>C?(0,g.jsxs)("div",{className:p.zN.SELECTORS.BG.replace(".",""),children:[(0,g.jsx)("img",{src:d,alt:"Background",className:p.zN.SELECTORS.BG_IMAGE.replace(".","")}),m&&(0,g.jsx)("div",{className:p.zN.SELECTORS.OVERLAY.replace(".","")})]}):null,A=()=>N?(0,g.jsx)("div",{className:b(),children:(0,g.jsx)("div",{className:p.zN.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,g.jsx)("img",{src:r,alt:s,className:p.zN.SELECTORS.IMAGE.replace(".","")})})}):null;return(0,g.jsxs)("div",c&&c.length>0?{className:f(_),ref:S,style:x,children:[T(),(0,g.jsx)("div",{className:p.zN.SELECTORS.CONTAINER.replace(".","")+" o-container",children:(0,g.jsxs)("div",{className:p.zN.SELECTORS.ROW.replace(".",""),children:[!l&&A(),(0,g.jsxs)("div",{className:v(),children:[c.map(((e,t)=>(0,g.jsx)("div",{className:`${p.zN.SELECTORS.CONTENT_COL.replace(".","")} ${p.zN.SELECTORS["CONTENT_COL_"+e.type.toUpperCase()].replace(".","")}`,children:e.content},t))),a&&(0,g.jsx)("div",{className:p.zN.SELECTORS.ACTIONS.replace(".",""),children:a})]}),l&&A()]})})]}:{className:f(_),ref:S,style:x,children:[T(),(0,g.jsx)("div",{className:p.zN.SELECTORS.CONTAINER.replace(".","")+" o-container",children:(0,g.jsxs)("div",{className:p.zN.SELECTORS.ROW.replace(".",""),children:[!l&&A(),(0,g.jsxs)("div",{className:v(),children:[e&&(0,g.jsx)("h2",{className:p.zN.SELECTORS.TITLE.replace(".",""),children:e}),L.map(((e,t)=>(0,g.jsx)("p",{className:p.zN.SELECTORS.TEXT.replace(".",""),children:e},t))),a&&(0,g.jsx)("div",{className:p.zN.SELECTORS.ACTIONS.replace(".",""),children:a})]}),l&&A()]})})]})};it.displayName="River";var ot=it;const lt=({title:e,label:t,text:a,actions:r,alignment:s="left",backgroundImageSrc:i,showOverlay:o=!1,imageSrc:l,imageAlt:c="Section image",size:d="md",skeleton:m=!1,className:h=""})=>{const _=(0,u.useRef)(null),S=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&_.current)return n.e(690).then(n.bind(n,3690)).then((({default:e})=>{_.current&&(S.current=new e(_.current,{alignment:s,backgroundImageSrc:i,showOverlay:o,size:d,skeleton:m}))})),()=>{S.current&&S.current.destroy()}}),[s,i,o,d,m]);const E=["c-sectionintro","center"===s?p.DJ.CLASSES.CENTER:"","sm"===d?p.DJ.CLASSES.SMALL:"","lg"===d?p.DJ.CLASSES.LARGE:"",i?"c-sectionintro--has-bg":"",h].filter(Boolean).join(" ");return m?(0,g.jsx)("div",{className:E,ref:_,children:(0,g.jsxs)("div",{className:"c-sectionintro__container o-container",children:[t&&(0,g.jsx)("div",{className:"c-sectionintro__label",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,g.jsx)("div",{className:"c-sectionintro__title",children:(0,g.jsx)("span",{className:"c-skeleton"})}),a&&(0,g.jsxs)("div",{className:"c-sectionintro__text",children:[(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton u-w-75"})]}),r&&(0,g.jsx)("div",{className:"c-sectionintro__actions",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),l&&(0,g.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,g.jsx)("div",{className:"c-sectionintro__image c-skeleton"})})]})}):(0,g.jsxs)("div",{className:E,ref:_,children:[i?(0,g.jsxs)("div",{className:"c-sectionintro__bg",children:[(0,g.jsx)("img",{src:i,alt:"Background",className:"c-sectionintro__bg-image"}),o&&(0,g.jsx)("div",{className:"c-sectionintro__overlay"})]}):null,(0,g.jsxs)("div",{className:"c-sectionintro__container o-container",children:[t&&(0,g.jsx)("div",{className:"c-sectionintro__label",children:t}),(0,g.jsx)("h2",{className:"c-sectionintro__title",children:e}),a&&(0,g.jsx)("div",{className:"c-sectionintro__text",children:a}),r&&(0,g.jsx)("div",{className:"c-sectionintro__actions",children:r}),l&&(0,g.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,g.jsx)("img",{src:l,alt:c,className:"c-sectionintro__image"})})]})]})};lt.displayName="SectionIntro";var ct=lt;function dt(e,t){return e.classList.contains(t)}function ut(e,t){dt(e,t)||e.classList.add(t)}function mt(e,t){dt(e,t)&&e.classList.remove(t)}function pt(e,t,n){e.classList.toggle(t,n)}const ht={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 gt(e,t=16){return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${ht[e]||""}"></path>\n </svg>`}function _t(e,t=16,n=""){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=gt(e,t),a}function St(){return Object.keys(ht)}function Et(){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)}))}function ft(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,a]=(0,u.useState)(t.items||[]),[r,s]=(0,u.useState)(""),i=e=>{if(!e.trim())return null;const t={id:Et(),text:e.trim(),completed:!1};return a((e=>[...e,t])),s(""),t};return{items:n,inputText:r,setInputText:s,addTodo:i,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=i(r);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:r=!1}=e;return`${p.Pf.CLASSES.BASE} ${"md"===n?"":"c-todo--"+n} ${r?"c-todo--disabled":""} ${a}`.trim()},generateItemClasses:e=>`${p.Pf.CLASSES.ITEM} ${e.completed?p.Pf.CLASSES.COMPLETED:""}`.trim(),getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function vt(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:r=t.invalid,valid:s=t.valid,className:i=""}=e;return`${p.fk.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.fk.CLASSES.SMALL:p.fk.CLASSES.LARGE} ${r?p.fk.CLASSES.INVALID:s?p.fk.CLASSES.VALID:""} ${a?p.fk.CLASSES.DISABLED:""} ${i}`.trim()}}}function bt(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:r=t.invalid,valid:s=t.valid,className:i=""}=e;let o="";return r?o=p.Th.CLASSES.INVALID:s&&(o=p.Th.CLASSES.VALID),`${p.Th.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.Th.CLASSES.SMALL:p.Th.CLASSES.LARGE} ${o} ${a?p.Th.CLASSES.DISABLED:""} ${i}`.trim()}}}function Ct(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:r=t.disabled,invalid:s=t.invalid,valid:i=t.valid,className:o=""}=e;let l="";return s?l=p.b4.CLASSES.INVALID:i&&(l=p.b4.CLASSES.VALID),`${p.b4.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.b4.CLASSES.SMALL:p.b4.CLASSES.LARGE} ${a?"c-input--"+a:""} ${l} ${r?p.b4.CLASSES.DISABLED:""} ${o}`.trim()}}}function Nt({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[r,s]=(0,u.useState)(!1),i=void 0!==e,o=i?!!e:r;(0,u.useEffect)((()=>{i&&s(!!e)}),[e,i]);const l=(0,u.useCallback)((e=>{i||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[i,t,n,a]),c=(0,u.useCallback)((()=>{l(!0)}),[l]),d=(0,u.useCallback)((()=>{l(!1)}),[l]),m=(0,u.useCallback)((()=>{l(!o)}),[o,l]);return{isOpen:o,open:c,close:d,toggle:m}}function Lt(e){return{defaultOptions:{items:[],divider:p.ic.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[p.ic.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[p.ic.CLASSES.ITEM,e.active||t?p.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>!(!e.href||e.active||t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(t){return[]}}}}const xt=(e={})=>{const{elevationEffect:t=!1,elevationClass:n=p.PE.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:r="click",focusEffect:s=!1,clickable:i=!1,onClick:o}=e,l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=(0,u.useRef)(null),[m,h]=(0,u.useState)(!1),[g,_]=(0,u.useState)(!1),[S,E]=(0,u.useState)(!1),[f,v]=(0,u.useState)(!1),b=(0,u.useCallback)((e=>{a&&"click"===r&&h((e=>!e)),o&&o(e)}),[a,r,o]),C=(0,u.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===r&&h((e=>!e)),o&&o(e))}),[a,r,o]),N=(0,u.useCallback)((()=>{v(!0),t&&_(!0),a&&"hover"===r&&h(!0)}),[t,a,r]),L=(0,u.useCallback)((()=>{v(!1),t&&_(!1),a&&"hover"===r&&h(!1)}),[t,a,r]),x=(0,u.useCallback)((()=>{E(!0)}),[]),T=(0,u.useCallback)((()=>{E(!1)}),[]),A=(0,u.useCallback)((()=>({className:[p.PE.CLASSES.BASE,g?n:"",m?p.PE.CLASSES.FLIPPED:"",S&&s?p.PE.CLASSES.FOCUSED:"",i?p.PE.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:l,tabxwIndex:i||a?0:-1,role:i?"button":void 0,onMouseEnter:N,onMouseLeave:L,onFocus:x,onBlur:T,onClick:b,onKeyDown:C})),[g,m,S,n,s,i,N,L,x,T,b,C,a]);return{cardRef:l,frontRef:c,backRef:d,isFlipped:m,isElevated:g,isFocused:S,isHovered:f,handleClick:b,handleKeyDown:C,handleMouseEnter:N,handleMouseLeave:L,handleFocus:x,handleBlur:T,getCardProps:A}},Tt=({options:e=[],value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s="Select an option",className:i="",disabled:o=!1,required:l=!1,id:c,name:d,size:m="md",invalid:h=!1,valid:_=!1,multiple:S=!1,ariaLabel:E,ariaDescribedBy:f})=>{const{generateSelectClass:v}=bt({size:m,disabled:o,invalid:h,valid:_}),b=v({className:i,size:m,disabled:o,invalid:h,valid:_}),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)(s),T=(0,u.useRef)(null),A=(0,u.useRef)(null),I=(0,u.useRef)(null),O=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if(t){const n=e.find((e=>e.value===t));n&&x(n.label)}else x(s)}),[t,e,s]),(0,u.useEffect)((()=>{const e=e=>{T.current&&!T.current.contains(e.target)&&(N(!1),I.current&&(I.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,g.jsxs)("div",{className:`${b} ${C?p.Th.CLASSES.IS_OPEN:""}`,ref:T,"aria-expanded":C,children:[(0,g.jsxs)("select",{ref:O,value:t,onChange:n,onBlur:a,onFocus:r,disabled:o,required:l,id:c,name:d,multiple:S,"aria-label":E,"aria-describedby":f,"aria-invalid":h,style:{display:"none"},children:[s&&(0,g.jsx)("option",{value:"",disabled:!0,children:s}),e.map((e=>(0,g.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))]}),(0,g.jsx)("div",{className:p.Th.CLASSES.SELECTED,onClick:()=>{o||(!C&&I.current&&A.current?I.current.style.height=A.current.clientHeight+"px":I.current&&(I.current.style.height="0px"),N(!C))},"aria-disabled":o,children:L}),(0,g.jsx)("i",{className:`${p.Th.CLASSES.ICON_CARET} ${p.Th.CLASSES.TOGGLE_ICON}`}),(0,g.jsx)("div",{className:p.Th.CLASSES.SELECT_BODY,ref:I,style:{height:0},children:(0,g.jsx)("div",{className:p.Th.CLASSES.SELECT_PANEL,ref:A,children:(0,g.jsx)("ul",{className:p.Th.CLASSES.SELECT_ITEMS,children:e.map(((e,a)=>(0,g.jsx)("li",{className:p.Th.CLASSES.SELECT_ITEM,"data-value":e.value,onClick:()=>!e.disabled&&(e=>{x(e.label),N(!1),I.current&&(I.current.style.height="0px"),O.current&&(O.current.value=e.value),n&&n({target:{name:d,value:e.value}})})(e),children:(0,g.jsxs)("label",{htmlFor:"SelectItem"+a,className:"c-checkbox",children:[(0,g.jsx)("input",{type:"checkbox",id:"SelectItem"+a,className:"c-checkbox__input c-select__item-input",checked:t===e.value,readOnly:!0,disabled:e.disabled}),(0,g.jsx)("div",{className:"c-select__item-label",children:e.label})]})},e.value)))})})})]})};Tt.displayName="Select";var At=Tt;const It=({items:e,activeIndex:t=0,vertical:a=!1,className:r=""})=>{const[s,i]=(0,u.useState)(t),o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"!=typeof window&&o.current)return n.e(202).then(n.bind(n,6202)).then((({default:e})=>{o.current&&(l.current=new e(o.current,{activeIndex:s,vertical:a}))})),()=>{l.current&&l.current.destroy()}}),[]),(0,u.useEffect)((()=>{s!==t&&(i(t),l.current&&l.current.setActive(t))}),[t]),(0,g.jsx)("div",{className:`c-steps ${a?p.UT.CLASSES.VERTICAL:""} ${r}`,ref:o,role:"navigation","aria-label":"Steps",children:e.map(((e,t)=>(0,g.jsxs)("div",{className:`c-steps__item ${t>s?"":p.UT.CLASSES.ACTIVE} ${s>t?p.UT.CLASSES.COMPLETED:""}`,"aria-current":t===s?"step":void 0,children:[(0,g.jsx)("div",{className:"c-steps__line"}),(0,g.jsxs)("div",{className:"c-steps__content",children:[(0,g.jsx)("div",{className:"c-steps__number",children:e.number}),(0,g.jsx)("div",{className:"c-steps__text",children:e.text}),e.content&&(0,g.jsx)("div",{className:"c-steps__custom-content",children:e.content})]})]},"step-"+t)))})};It.displayName="Steps";var Ot=It;const yt=({items:e,activeIndex:t=p.wn.DEFAULTS.ACTIVE_INDEX,onTabChange:a,className:r=""})=>{const[s,i]=(0,u.useState)(t),o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"!=typeof window&&o.current)return n.e(54).then(n.bind(n,5054)).then((({default:e})=>{o.current&&(l.current=new e(o.current))})),()=>{l.current&&l.current.destroy()}}),[]),(0,g.jsxs)("div",{className:"c-tabs js-atomix-tab "+r,ref:o,children:[(0,g.jsx)("ul",{className:"c-tabs__nav",children:e.map(((e,t)=>(0,g.jsx)("li",{className:"c-tabs__nav-item",children:(0,g.jsx)("button",{className:"c-tabs__nav-btn "+(t===s?p.wn.CLASSES.ACTIVE:""),onClick:()=>(e=>{i(e),a&&a(e)})(t),"data-tabindex":t,role:"tab","aria-selected":t===s,"aria-controls":"tab-panel-"+t,children:e.label})},"tab-nav-"+t)))}),(0,g.jsx)("div",{className:"c-tabs__panels",children:e.map(((e,t)=>(0,g.jsx)("div",{className:"c-tabs__panel "+(t===s?p.wn.CLASSES.ACTIVE:""),"data-tabindex":t,id:"tab-panel-"+t,role:"tabpanel","aria-labelledby":"tab-nav-"+t,style:{height:t===s?"auto":"0px",opacity:t===s?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:(0,g.jsx)("div",{className:"c-tabs__panel-body",children:e.content})},"tab-panel-"+t)))})]})};yt.displayName="Tab";var Rt=yt;const wt=({quote:e,author:t,size:a="",skeleton:r=!1,className:s=""})=>{const i=(0,u.useRef)(null),o=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&i.current)return n.e(894).then(n.bind(n,3894)).then((({default:e})=>{i.current&&(o.current=new e(i.current,{size:a,skeleton:r}))})),()=>{o.current&&o.current.destroy()}}),[a,r]);const l=["c-testimonial","sm"===a?p.sr.CLASSES.SMALL:"","lg"===a?p.sr.CLASSES.LARGE:"",s].filter(Boolean).join(" ");return(0,g.jsxs)("div",r?{className:l,ref:i,children:[(0,g.jsxs)("blockquote",{className:"c-testimonial__quote",children:[(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton u-w-75"}),(0,g.jsx)("span",{className:"c-skeleton u-w-25"})]}),(0,g.jsxs)("div",{className:"c-testimonial__author",children:[(0,g.jsx)("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),(0,g.jsxs)("div",{className:"c-testimonial__info u-w-75",children:[(0,g.jsx)("p",{className:"c-testimonial__author-name",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,g.jsx)("p",{className:"c-testimonial__author-role",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:l,ref:i,children:[(0,g.jsx)("blockquote",{className:"c-testimonial__quote",children:e}),t&&(0,g.jsxs)("div",{className:"c-testimonial__author",children:[t.avatarSrc&&(0,g.jsx)("img",{src:t.avatarSrc,alt:t.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),(0,g.jsxs)("div",{className:"c-testimonial__info",children:[(0,g.jsx)("p",{className:"c-testimonial__author-name",children:t.name}),(0,g.jsx)("p",{className:"c-testimonial__author-role",children:t.role})]})]})]})};wt.displayName="Testimonial";var kt=wt;const jt=({value:e,onChange:t,onBlur:n,onFocus:a,placeholder:r,className:s="",disabled:i=!1,required:o=!1,readOnly:l=!1,id:c,name:d,rows:u=4,cols:m,maxLength:p,minLength:h,size:_="md",variant:S,invalid:E=!1,valid:f=!1,autoFocus:v=!1,ariaLabel:b,ariaDescribedBy:C})=>{const{generateTextareaClass:N}=Ct({size:_,variant:S,disabled:i,invalid:E,valid:f}),L=N({className:s,size:_,variant:S,disabled:i,invalid:E,valid:f});return(0,g.jsx)("textarea",{className:L,value:e,onChange:t,onBlur:n,onFocus:a,placeholder:r,disabled:i,required:o,readOnly:l,id:c,name:d,rows:u,cols:m,maxLength:p,minLength:h,autoFocus:v,"aria-label":b,"aria-describedby":C,"aria-invalid":E})};jt.displayName="Textarea";var Dt=jt;const Mt=({items:e=[],title:t="Todo List",onAddTodo:n,onToggleTodo:a,onDeleteTodo:r,size:s="md",placeholder:i="Add a new todo",showCompleted:o=!0,className:l="",disabled:c=!1})=>{const{inputText:d,setInputText:m,generateTodoClasses:p,generateItemClasses:h}=ft({items:e,title:t,size:s,placeholder:i,showCompleted:o,disabled:c}),[_,S]=(0,u.useState)(e);(0,u.useEffect)((()=>{S(e)}),[e]);const E=o?_:_.filter((e=>!e.completed)),f=p({size:s,className:l,disabled:c});return(0,g.jsxs)("div",{className:f,children:[t&&(0,g.jsx)("h2",{className:"c-todo__title",children:t}),(0,g.jsx)("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),c||!d.trim())return;const t={id:Et(),text:d.trim(),completed:!1};S((e=>[...e,t])),n&&n(d),m("")},children:(0,g.jsxs)("div",{className:"c-todo__form-group",children:[(0,g.jsx)("input",{type:"text",className:"c-todo__input c-input",placeholder:i,value:d,onChange:e=>m(e.target.value),disabled:c,"aria-label":"Add a new todo"}),(0,g.jsx)("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:c||!d.trim(),"aria-label":"Add todo",children:(0,g.jsx)(v,{name:"Plus",size:"sm"})})]})}),(0,g.jsx)("ul",{className:"c-todo__list",children:0===E.length?(0,g.jsx)("li",{className:"c-todo__empty",children:"No items to display"}):E.map((e=>(0,g.jsx)("li",{className:h(e),children:(0,g.jsxs)("div",{className:"c-todo__item-content",children:[(0,g.jsxs)("label",{className:"c-todo__checkbox-label",children:[(0,g.jsx)("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:e.completed,onChange:()=>{return t=e.id,void(c||(S((e=>e.map((e=>e.id===t?{...e,completed:!e.completed}:e)))),a&&a(t)));var t},disabled:c,"aria-label":`Mark "${e.text}" as ${e.completed?"incomplete":"complete"}`}),(0,g.jsx)("span",{className:"c-todo__item-text",children:e.text})]}),(0,g.jsx)("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>{return t=e.id,void(c||(S((e=>e.filter((e=>e.id!==t)))),r&&r(t)));var t},disabled:c,"aria-label":`Delete "${e.text}"`,children:(0,g.jsx)(v,{name:"Trash",size:"sm"})})]})},e.id)))})]})};Mt.displayName="Todo";var Pt=Mt;const Bt=({initialOn:e=!1,onToggleOn:t,onToggleOff:a,disabled:r=!1,className:s=""})=>{const[i,o]=(0,u.useState)(e),l=(0,u.useRef)(null),c=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"==typeof window||!l.current)return;n.e(897).then(n.bind(n,897)).then((({default:e})=>{l.current&&(c.current=new e(l.current))}));const r=()=>{o(!0),t&&t()},s=()=>{o(!1),a&&a()},i=l.current;return i?.addEventListener("toggle:on",r),i?.addEventListener("toggle:off",s),e&&c.current&&c.current.turnOn(),()=>{i?.removeEventListener("toggle:on",r),i?.removeEventListener("toggle:off",s),c.current&&c.current.destroy()}}),[e,t,a]),(0,u.useEffect)((()=>{c.current&&(i?c.current.turnOn():c.current.turnOff())}),[i]),(0,g.jsx)("div",{className:`c-toggle ${i?p.DR.CLASSES.IS_ON:""} ${r?"is-disabled":""} ${s}`,ref:l,role:"switch","aria-checked":i,tabIndex:r?-1:0,"aria-disabled":r,children:(0,g.jsx)("div",{className:"c-toggle__switch"})})};Bt.displayName="Toggle";var $t=Bt;const zt={trigger:p.UB.DEFAULTS.TRIGGER,position:p.UB.DEFAULTS.POSITION,offset:p.UB.DEFAULTS.OFFSET,delay:p.UB.DEFAULTS.DELAY,activeClass:p.UB.CLASSES.IS_ACTIVE,contentIdAttr:p.UB.ATTRIBUTES.CONTENT_ID,positionAttr:p.UB.ATTRIBUTES.POSITION,triggerAttr:p.UB.ATTRIBUTES.TRIGGER};class Ft{selector;$element;$trigger;$content;options;timeout;hideTimeout;isActive=!1;constructor(e,t={}){this.selector=e||p.UB.SELECTORS.TOOLTIP,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...zt,...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(p.UB.SELECTORS.TRIGGER),this.$content=this.$element.querySelector(p.UB.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(p.UB.CLASSES.TOP,p.UB.CLASSES.BOTTOM,p.UB.CLASSES.LEFT,p.UB.CLASSES.RIGHT,p.UB.CLASSES.TOP_LEFT,p.UB.CLASSES.TOP_RIGHT,p.UB.CLASSES.BOTTOM_LEFT,p.UB.CLASSES.BOTTOM_RIGHT),this.options.position){case"top":default:this.$element.classList.add(p.UB.CLASSES.TOP);break;case"bottom":this.$element.classList.add(p.UB.CLASSES.BOTTOM);break;case"left":this.$element.classList.add(p.UB.CLASSES.LEFT);break;case"right":this.$element.classList.add(p.UB.CLASSES.RIGHT);break;case"top-left":this.$element.classList.add(p.UB.CLASSES.TOP_LEFT);break;case"top-right":this.$element.classList.add(p.UB.CLASSES.TOP_RIGHT);break;case"bottom-left":this.$element.classList.add(p.UB.CLASSES.BOTTOM_LEFT);break;case"bottom-right":this.$element.classList.add(p.UB.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(e=p.UB.SELECTORS.TOOLTIP,t={}){const n=document.querySelectorAll(e);return Array.from(n).map((e=>new Ft(e,t)))}}const Ut=({content:e,children:t,position:n=p.UB.DEFAULTS.POSITION,trigger:a=p.UB.DEFAULTS.TRIGGER,className:r="",delay:s=p.UB.DEFAULTS.DELAY,offset:i=p.UB.DEFAULTS.OFFSET})=>{const o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>(o.current&&(l.current=new Ft(o.current,{position:n,trigger:a,delay:s,offset:i})),()=>{l.current&&l.current.destroy()})),[n,a,s,i]),(0,g.jsxs)("div",{className:"u-position-relative u-d-inline-block",children:[(0,g.jsx)("div",{className:`${p.UB.SELECTORS.TRIGGER.substring(1)}${r?" "+r:""}`,children:t}),(0,g.jsx)("div",{className:"c-tooltip "+p.UB.SELECTORS.TOOLTIP.substring(1),ref:o,"data-tooltip-position":n,"data-tooltip-trigger":a,children:(0,g.jsxs)("div",{className:"c-tooltip__content "+p.UB.SELECTORS.CONTENT.substring(1),children:[(0,g.jsx)("span",{className:p.UB.SELECTORS.ARROW.substring(1)}),e]})})]})};Ut.displayName="Tooltip";var Gt=Ut;const Vt=({disabled:e=!1,maxSizeInMB:t=5,acceptedFileTypes:a=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:r=!1,title:s="Drag and Drop files here",supportedFilesText:i="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:o="Choose File",helperText:l=`Maximum size: ${t}MB`,icon:c=(0,g.jsx)("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:d,onFileUpload:m,onFileUploadComplete:h,onFileUploadError:_,className:S=""})=>{const E=(0,u.useRef)(null),f=(0,u.useRef)(null),v=(0,u.useRef)(null),[b,C]=(0,u.useState)("idle"),[N,L]=(0,u.useState)(!1),[x,T]=(0,u.useState)(null),[A,I]=(0,u.useState)(0),[O,y]=(0,u.useState)(null),[R,w]=(0,u.useState)(null),[k,j]=(0,u.useState)(null),D=(0,u.useRef)(0);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&E.current)return n.e(308).then(n.bind(n,3308)).then((({default:n})=>{E.current&&(v.current=new n(E.current,{disabled:e,maxSizeInMB:t,acceptedFileTypes:a,multiple:r,onFileSelect:d,onFileUpload:(e,t)=>{I(t),y(Math.ceil((100-t)/5)+" seconds left"),m&&m(e,t)},onFileUploadComplete:e=>{C("success"),j("Upload successful"),h&&h(e)},onFileUploadError:(e,t)=>{C("error"),w(t),_&&_(e,t)}}))})),()=>{v.current&&v.current.destroy()}}),[e,t,a,r,d,m,h,_]);const M=e=>{if(!e.length)return;const t=(r?e:[e[0]]).filter((e=>P(e)));t.length&&d&&d(t),t.length&&(T(t[0]||null),t[0]&&B(t[0]))},P=e=>e.size>1024*t*1024?(C("error"),w(`File too large. Maximum size is ${t}MB.`),!1):!(a?.length&&!a.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(n+"/")}return e.type===t})))||(C("error"),w("File type not supported."),!1),B=e=>{C("loading"),I(0);let t=0;const n=setInterval((()=>{t+=5,100>t?(I(t),y(Math.ceil((100-t)/5)+" seconds left"),m&&m(e,t)):(clearInterval(n),C("success"),j("Upload successful"),h&&h(e))}),500)},$=["c-upload",e?p.oH.CLASSES.DISABLED:"","loading"===b?p.oH.CLASSES.LOADING:"","success"===b?p.oH.CLASSES.SUCCESS:"","error"===b?p.oH.CLASSES.ERROR:"",N?p.oH.CLASSES.DRAGGING:"",S].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:$,ref:E,style:A>0?{[p.oH.ATTRIBUTES.PERCENTAGE]:A}:{},onDragEnter:t=>{t.preventDefault(),t.stopPropagation(),e||(D.current++,1===D.current&&L(!0))},onDragLeave:t=>{t.preventDefault(),t.stopPropagation(),e||(D.current--,0===D.current&&L(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:t=>{if(t.preventDefault(),t.stopPropagation(),e)return;if(D.current=0,L(!1),!t.dataTransfer.files?.length)return;const n=Array.from(t.dataTransfer.files);M(n)},children:[(0,g.jsxs)("div",{className:"c-upload__inner",children:[(0,g.jsx)("div",{className:"c-upload__icon",children:c}),(0,g.jsx)("h3",{className:"c-upload__title",children:s}),(0,g.jsx)("p",{className:"c-upload__text",children:i}),(0,g.jsx)("button",{className:"c-upload__btn c-btn c-btn--primary",disabled:e,onClick:()=>{f.current&&!e&&f.current.click()},children:o}),(0,g.jsx)("p",{className:"c-upload__helper-text",children:l}),(0,g.jsx)("input",{ref:f,type:"file",accept:a.join(","),multiple:r,style:{display:"none"},onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);M(t)}})]}),("loading"===b||"success"===b||"error"===b)&&x&&(0,g.jsxs)("div",{className:"c-upload__loader",children:[(0,g.jsxs)("div",{className:"c-upload__loader-status",children:[(0,g.jsx)("h5",{className:"c-upload__loader-title",children:x.name}),(0,g.jsxs)("div",{className:"c-upload__loader-progress",children:["loading"===b&&100>A&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"c-upload__loader-par",children:[A,"%"]}),O&&(0,g.jsx)("div",{className:"c-upload__loader-time",children:O})]}),"success"===b&&k,"error"===b&&R]})]}),(0,g.jsxs)("div",{className:"c-upload__loader-control",children:["loading"===b&&100>A&&(0,g.jsx)("div",{className:"c-upload__loader-bar",children:(0,g.jsxs)("svg",{children:[(0,g.jsx)("circle",{cx:"10",cy:"10",r:"10"}),(0,g.jsx)("circle",{cx:"10",cy:"10",r:"10"})]})}),(0,g.jsx)("button",{className:"c-upload__loader-close c-btn c-btn--icon",onClick:()=>{C("idle"),T(null),I(0),y(null),w(null),j(null),f.current&&(f.current.value="")},children:(0,g.jsx)("i","success"===b?{className:"icon-lux-check-circle-fill"}:{className:"icon-lux-x"})})]})]})]})};Vt.displayName="Upload";var Yt=Vt;const Ht=r,Xt=a,Wt=i,qt=o,Kt=(0,u.forwardRef)((({children:e,className:t="",justifyContent:n,alignItems:a,noGutters:r,...s},i)=>{const o=["o-grid"];return n&&o.push("u-justify-content-"+n),a&&o.push("u-align-items-"+a),r&&o.push("o-grid--no-gutters"),t&&o.push(t),(0,g.jsx)("div",{ref:i,className:o.join(" "),...s,children:e})}));Kt.displayName="Grid";const Zt=(0,u.forwardRef)((({children:e,className:t="",xs:n,sm:a,md:r,lg:s,xl:i,xxl:o,offsetXs:l,offsetSm:c,offsetMd:d,offsetLg:u,offsetXl:m,offsetXxl:p,...h},_)=>{const S=n||a||r||s||i||o?["o-grid__col"]:["o-grid__col","o-grid__col--auto"];return n&&S.push("auto"===n?"o-grid__col--auto":"o-grid__col--"+n),a&&S.push("auto"===a?"o-grid__col--sm-auto":"o-grid__col--sm-"+a),r&&S.push("auto"===r?"o-grid__col--md-auto":"o-grid__col--md-"+r),s&&S.push("auto"===s?"o-grid__col--lg-auto":"o-grid__col--lg-"+s),i&&S.push("auto"===i?"o-grid__col--xl-auto":"o-grid__col--xl-"+i),o&&S.push("auto"===o?"o-grid__col--xxl-auto":"o-grid__col--xxl-"+o),l&&S.push("o-grid__offset--"+l),c&&S.push("o-grid__offset--sm-"+c),d&&S.push("o-grid__offset--md-"+d),u&&S.push("o-grid__offset--lg-"+u),m&&S.push("o-grid__offset--xl-"+m),p&&S.push("o-grid__offset--xxl-"+p),t&&S.push(t),(0,g.jsx)("div",{ref:_,className:S.join(" "),...h,children:e})}));Zt.displayName="GridCol";const Jt=(0,u.forwardRef)((({children:e,className:t="",type:n,...a},r)=>{let s="o-container";return n&&(s="o-container-"+n),(0,g.jsx)("div",{ref:r,className:`${s} ${t}`.trim(),...a,children:e})}));Jt.displayName="Container";const Qt=(0,u.forwardRef)((({children:e,className:t="",justifyContent:n,alignItems:a,noGutters:r,...s},i)=>{const o=["o-grid"];return n&&o.push("u-justify-content-"+n),a&&o.push("u-align-items-"+a),r&&o.push("o-grid--no-gutters"),t&&o.push(t),(0,g.jsx)("div",{ref:i,className:o.join(" "),...s,children:e})}));Qt.displayName="Row";const en=(0,u.forwardRef)((({children:e,className:t="",xs:n=1,sm:a,md:r,lg:s,xl:i,xxl:o,gap:l=16,animate:c=!0,imagesLoaded:d=!0,onLayoutComplete:p,onImageLoad:h,..._},S)=>{const[E,f]=(0,u.useState)(n),[v,b]=(0,u.useState)([]),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)(!1),T=(0,u.useRef)(null),A=(0,u.useRef)([]),I=(0,u.useRef)(0),O=(0,u.useRef)(0),y=(0,u.useRef)(new Map);(0,u.useEffect)((()=>{x(!!d)}),[E,d]),(0,u.useImperativeHandle)(S,(()=>T.current));const R=(0,u.useCallback)((()=>{const e=window.innerWidth;return 1400>e||void 0===o?1200>e||void 0===i?992>e||void 0===s?768>e||void 0===r?576>e||void 0===a?n:a:r:s:i:o}),[n,a,r,s,i,o]);(0,u.useEffect)((()=>{const e=()=>f(R());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[R]);const[w,k]=(0,u.useState)([]);(0,u.useEffect)((()=>{const t=[];u.Children.forEach(e,((e,n)=>{(0,u.isValidElement)(e)&&t.push({id:e.key?.toString()||"masonry-item-"+n,element:e,position:null,ref:m().createRef()})})),k(t)}),[e]);const j=(0,u.useCallback)((e=>{if(!y.current.get(e)){if(y.current.set(e,!0),I.current+=1,T.current&&d){const t=e.closest(".o-masonry-grid > div");t&&(t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{M()}))})),h?.(I.current,O.current),I.current>=O.current&&O.current>0&&(N(!0),x(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{M(),x(!1)}))})),p?.())}}),[h,p,d]),D=(0,u.useCallback)((()=>{if(!d||!T.current)return;y.current.clear(),I.current=0;const e=T.current.querySelectorAll("img");return O.current=e.length,0===e.length?(N(!0),x(!1),void p?.()):(x(!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)j(e);else{const n=()=>j(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)}))})}),[d,j,p]),M=(0,u.useCallback)((()=>{if(!T.current||0===w.length)return;const e=(T.current.offsetWidth-l*(E-1))/E;A.current=Array(E).fill(0);const t=[];w.forEach(((n,a)=>{if(n.ref.current){const r=A.current.indexOf(Math.min(...A.current)),s=r*(e+l),i=A.current[r],o=n.ref.current.offsetHeight;A.current[r]=i+o+l,t[a]={left:s,top:i,width:e,height:o}}})),b(t)}),[w,E,l]);(0,u.useEffect)((()=>{if(!T.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>M()))}));return t.observe(T.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[M]),m().useLayoutEffect((()=>d?D():(M(),N(!0),void x(!1))),[w,E,M,d,D]),m().useEffect((()=>{const e=[];return w.forEach((t=>{if(t.ref.current){const n=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{M()}))}))}));n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect()))}}),[w,M]);const P=A.current.length>0?Math.max(...A.current):0,B=["o-masonry-grid",t,c?"o-masonry-grid--animate":"",L?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return(0,g.jsx)("div",{ref:T,className:B,style:{position:"relative",width:"100%",height:P+"px",..._.style},..._,children:w.map(((e,t)=>{const n=v[t];return(0,g.jsx)("div",n?{ref:e.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:n.left+"px",top:n.top+"px",width:n.width+"px",opacity:1},children:e.element}:{ref:e.ref,style:{opacity:0,position:"absolute"},children:e.element},e.id)}))})}));en.displayName="MasonryGrid";const tn=(0,u.forwardRef)((({children:e,className:t="",...n},a)=>{const r=["o-masonry-grid__item-inner"];return t&&r.push(t),(0,g.jsx)("div",{ref:a,className:r.join(" "),...n,children:e})}));tn.displayName="MasonryGridItem";var nn={...l,...c},an={...s,composables:Ht,utils:Xt,constants:qt,types:Wt,layouts:d}}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return a[e].call(n.exports,n,n.exports,s),n.exports}s.m=a,s.x=function(){var e=s.O(void 0,[628],(function(){return s(2162)}));return s.O(e)},e=[],s.O=function(t,n,a,r){if(!n){var i=1/0;for(d=0;e.length>d;d++){n=e[d][0],a=e[d][1],r=e[d][2];for(var o=!0,l=0;n.length>l;l++)(!1&r||i>=r)&&Object.keys(s.O).every((function(e){return s.O[e](n[l])}))?n.splice(l--,1):(o=!1,i>r&&(i=r));if(o){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,a,r]},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,n){return s.f[n](e,t),t}),[]))},s.u=function(e){return 628===e?"js/628.js":"js/chunks/cjs/"+e+"."+{54:"54733c458fc7ced6d9ba",202:"6e2b9e63a406ff01b151",308:"86b2e7ea63bf439e01b4",619:"8e6863cb2985a3a109af",690:"17522d562f7ebe2fa7b4",894:"6edddf7d4bf7ccb11e25",897:"74f4c88710fe45c1b9e3"}[e]+".js"},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n={548:1},s.O.require=function(e){return n[e]},s.f.require=function(e,t){n[e]||function(e){var t=e.modules,a=e.ids,r=e.runtime;for(var i in t)s.o(t,i)&&(s.m[i]=t[i]);r&&r(s);for(var o=0;a.length>o;o++)n[a[o]]=1;s.O()}(require("../"+s.u(e)))},t=s.x,s.x=function(){return s.e(628),t()};var i=s.x();module.exports=i}();