@propelinc/citrus-ui 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -15
- package/dist/index.cdn.css +1 -0
- package/dist/index.cdn.mjs +21718 -0
- package/dist/index.cdn.mjs.map +1 -0
- package/dist/styles/main.css +466 -62
- package/dist/styles/utils.css +390 -0
- package/package.json +5 -2
- package/src/components/CTextField.vue +11 -5
- package/src/styles/_core.scss +1 -0
- package/src/styles/_reset.scss +93 -78
- package/src/styles/utils.scss +50 -0
- package/dist/colors/colors.d.ts +0 -31
- package/dist/colors/theme.d.ts +0 -3
- package/dist/colors/util-classes.d.ts +0 -11
- package/dist/components/CAccordion.vue.d.ts +0 -21
- package/dist/components/CAccordionItem.vue.d.ts +0 -41
- package/dist/components/CAppBar.vue.d.ts +0 -156
- package/dist/components/CBadge.vue.d.ts +0 -52
- package/dist/components/CBottomSheet.vue.d.ts +0 -226
- package/dist/components/CButton/CButton.vue.d.ts +0 -231
- package/dist/components/CButton/types.d.ts +0 -5
- package/dist/components/CButtonStack.vue.d.ts +0 -24
- package/dist/components/CCard.vue.d.ts +0 -107
- package/dist/components/CCardFooter.vue.d.ts +0 -26
- package/dist/components/CCardHeader.vue.d.ts +0 -3
- package/dist/components/CCardSection.vue.d.ts +0 -17
- package/dist/components/CCheckbox.vue.d.ts +0 -145
- package/dist/components/CCol.vue.d.ts +0 -21
- package/dist/components/CDivider.vue.d.ts +0 -17
- package/dist/components/CDobField.vue.d.ts +0 -2109
- package/dist/components/CDobSelect.vue.d.ts +0 -398
- package/dist/components/CEmailField.vue.d.ts +0 -699
- package/dist/components/CExpandTransition.vue.d.ts +0 -19
- package/dist/components/CFadeTransition.vue.d.ts +0 -3
- package/dist/components/CFileInput.vue.d.ts +0 -98
- package/dist/components/CFixedPageFooter.vue.d.ts +0 -106
- package/dist/components/CForm.vue.d.ts +0 -29
- package/dist/components/CFormFieldCounter.vue.d.ts +0 -42
- package/dist/components/CIconButton.vue.d.ts +0 -390
- package/dist/components/CLabel.vue.d.ts +0 -32
- package/dist/components/CListItem.vue.d.ts +0 -208
- package/dist/components/CListItemContent.vue.d.ts +0 -27
- package/dist/components/CListItemIcon.vue.d.ts +0 -54
- package/dist/components/CLoader.vue.d.ts +0 -73
- package/dist/components/CLogo.vue.d.ts +0 -19
- package/dist/components/CMaskedTextField.vue.d.ts +0 -2012
- package/dist/components/CMenu.vue.d.ts +0 -6
- package/dist/components/CMenuItem.vue.d.ts +0 -170
- package/dist/components/CMenuLabel.vue.d.ts +0 -3
- package/dist/components/CModal.vue.d.ts +0 -206
- package/dist/components/CModalLoading.vue.d.ts +0 -230
- package/dist/components/CNotification.vue.d.ts +0 -589
- package/dist/components/CPhoneField.vue.d.ts +0 -2088
- package/dist/components/CPill.vue.d.ts +0 -42
- package/dist/components/CPillGroup.vue.d.ts +0 -70
- package/dist/components/CPopup.vue.d.ts +0 -21
- package/dist/components/CProgressLinear.vue.d.ts +0 -61
- package/dist/components/CProgressRing.vue.d.ts +0 -103
- package/dist/components/CRadio.vue.d.ts +0 -73
- package/dist/components/CRadioGroup.vue.d.ts +0 -123
- package/dist/components/CRebrand.vue.d.ts +0 -28
- package/dist/components/CRow.vue.d.ts +0 -67
- package/dist/components/CSafeArea.vue.d.ts +0 -18
- package/dist/components/CSectionHeader.vue.d.ts +0 -28
- package/dist/components/CSelect.vue.d.ts +0 -293
- package/dist/components/CSkeleton.vue.d.ts +0 -3
- package/dist/components/CSkeletonLoaderCard.vue.d.ts +0 -21
- package/dist/components/CSkeletonLoaderCircle.vue.d.ts +0 -5
- package/dist/components/CSkeletonLoaderText.vue.d.ts +0 -44
- package/dist/components/CSlideFadeTransition.vue.d.ts +0 -58
- package/dist/components/CSplitInput.vue.d.ts +0 -2131
- package/dist/components/CSquaredIcon.vue.d.ts +0 -47
- package/dist/components/CSsnField.vue.d.ts +0 -2083
- package/dist/components/CStatusDot.vue.d.ts +0 -27
- package/dist/components/CSwitch.vue.d.ts +0 -54
- package/dist/components/CSwitchListItem.vue.d.ts +0 -392
- package/dist/components/CTextArea.vue.d.ts +0 -240
- package/dist/components/CTextField.vue.d.ts +0 -647
- package/dist/components/CTextLink.vue.d.ts +0 -55
- package/dist/components/CThirdPartyLogo.vue.d.ts +0 -128
- package/dist/components/CTimeago.vue.d.ts +0 -12
- package/dist/components/CToast.vue.d.ts +0 -458
- package/dist/components/CToastsList.vue.d.ts +0 -430
- package/dist/components/CValidationMessage.vue.d.ts +0 -45
- package/dist/components/CZipcodeField.vue.d.ts +0 -2080
- package/dist/components/index.d.ts +0 -66
- package/dist/components/internal/CCloseButton.vue.d.ts +0 -14
- package/dist/composables/accessibility.d.ts +0 -1
- package/dist/composables/animation.d.ts +0 -12
- package/dist/composables/binding.d.ts +0 -19
- package/dist/composables/colors.d.ts +0 -13
- package/dist/composables/elements.d.ts +0 -3
- package/dist/composables/fields.d.ts +0 -9
- package/dist/composables/gestures.d.ts +0 -53
- package/dist/composables/i18n.d.ts +0 -3
- package/dist/composables/id.d.ts +0 -11
- package/dist/composables/input-mask.d.ts +0 -18
- package/dist/composables/router.d.ts +0 -30
- package/dist/composables/slots.d.ts +0 -2
- package/dist/composables/toast.d.ts +0 -21
- package/dist/composables/validations.d.ts +0 -77
- package/dist/index.css +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.mjs +0 -11738
- package/dist/index.mjs.map +0 -1
- package/dist/plugin.d.ts +0 -3
- package/dist/services/animation.d.ts +0 -17
- package/dist/services/directives/index.d.ts +0 -2
- package/dist/services/directives/scroll-into-view.d.ts +0 -7
- package/dist/services/directives/tap-animation.d.ts +0 -6
- package/dist/services/id.d.ts +0 -22
- package/dist/services/injections/accordions.d.ts +0 -3
- package/dist/services/injections/animations.d.ts +0 -2
- package/dist/services/injections/buttons.d.ts +0 -4
- package/dist/services/injections/forms.d.ts +0 -6
- package/dist/services/injections/icon-buttons.d.ts +0 -3
- package/dist/services/injections/pills.d.ts +0 -4
- package/dist/services/injections/radio.d.ts +0 -10
- package/dist/theme/icons.d.ts +0 -36
- package/dist/types/CForm.d.ts +0 -12
- package/dist/types/font-awesome.d.ts +0 -5
- package/dist/types.d.ts +0 -12
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/services/injections/accordions.ts","../src/components/CAccordion.vue","../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js","../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.J7PLVEQM.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.IFDWM6P4.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.DHU6MIVB.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B4BZKR24.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.LHI6QEL2.js","../../../node_modules/.pnpm/@shoelace-style+localize@3.2.1/node_modules/@shoelace-style/localize/dist/index.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MAS2SHYD.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.WLV3FVBR.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3Y6SB6QS.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.P7ZG6EMR.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3TFKS637.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZL53POKZ.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QLXRCYS4.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2FB5TK5H.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUVJKY7S.js","../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js","../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js","../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/base.js","../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.SFSTXCXC.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directive-helpers.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.H33C3MRM.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directive.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/class-map.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NTUEQTVT.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MU3U6YPN.js","../src/composables/animation.ts","../src/composables/binding.ts","../src/components/CAccordionItem.vue","../src/colors/colors.ts","../src/components/CFadeTransition.vue","../src/composables/colors.ts","../src/components/CLoader.vue","../src/services/injections/icon-buttons.ts","../src/components/CAppBar.vue","../src/components/CBadge.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.BRQKZQRB.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.LXDTFLWU.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ODFLWOL6.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.BTENR4BI.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/static.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/if-defined.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.WQ4LAAP4.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NYIIDP5N.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.GWXFL5AT.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KDSR4IRB.js","../src/services/injections/buttons.ts","../src/components/CButtonStack.vue","../src/services/directives/scroll-into-view.ts","../src/services/directives/tap-animation.ts","../src/components/internal/CCloseButton.vue","../src/composables/elements.ts","../src/composables/gestures.ts","../src/composables/slots.ts","../src/services/animation.ts","../src/components/CBottomSheet.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7DUCI5S4.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RADK4UXU.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KWPBDQ6I.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.HLDU3ZPH.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5SUGJ4EB.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7XIC3PQE.js","../../../node_modules/.pnpm/vue-router@4.5.1_vue@3.5.18_typescript@5.9.3_/node_modules/vue-router/dist/vue-router.mjs","../src/composables/router.ts","../src/components/CButton/CButton.vue","../src/components/CCardHeader.vue","../src/components/CCard.vue","../src/components/CCardFooter.vue","../src/components/CCardSection.vue","../src/components/CValidationMessage.vue","../src/composables/id.ts","../src/services/injections/forms.ts","../src/composables/validations.ts","../src/components/CCheckbox.vue","../src/components/CCol.vue","../src/components/CDivider.vue","../src/components/CFormFieldCounter.vue","../src/composables/accessibility.ts","../src/components/CIconButton.vue","../src/composables/i18n.ts","../src/components/CTextField.vue","../src/composables/input-mask.ts","../src/components/CMaskedTextField.vue","../../shared-utils/src/dates.ts","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/identity.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_apply.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_overRest.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/constant.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isFunction.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_coreJsData.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isMasked.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_toSource.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsNative.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getValue.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getNative.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_defineProperty.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSetToString.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_shortOut.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setToString.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseRest.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/eq.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isLength.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArrayLike.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isIndex.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isIterateeCall.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTimes.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsArguments.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArguments.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArray.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/stubFalse.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isBuffer.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsTypedArray.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseUnary.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nodeUtil.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isTypedArray.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayLikeKeys.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isPrototype.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeKeysIn.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseKeysIn.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/keysIn.js","../../../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/defaults.js","../../shared-utils/src/validators.ts","../src/components/CDobField.vue","../src/components/CSelect.vue","../src/components/CDobSelect.vue","../src/components/CEmailField.vue","../src/services/injections/animations.ts","../src/components/CExpandTransition.vue","../src/components/CFileInput.vue","../src/components/CFixedPageFooter.vue","../src/components/CForm.vue","../src/components/CLabel.vue","../src/components/CListItemContent.vue","../src/components/CSquaredIcon.vue","../src/components/CListItemIcon.vue","../src/components/CListItem.vue","../src/assets/logos/propel/icon.svg","../src/assets/logos/propel/lockup.svg","../src/components/CLogo.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.VVA35HTY.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.F2NECMQL.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RPIO5J3V.js","../src/components/CMenu.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KWZXGPBI.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/async-directive.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2F4HXDFL.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3KSWVBQ5.js","../../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../../node_modules/.pnpm/@floating-ui+core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../../node_modules/.pnpm/@floating-ui+dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../../node_modules/.pnpm/composed-offset-position@0.0.4/node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.SUWKRDXP.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CQPYPOEP.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.SDZSSFN3.js","../src/components/CMenuItem.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ORTZCIID.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.APNS3BEQ.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2OK5PRR2.js","../src/components/CMenuLabel.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.G5RKA5HF.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.UE77SM53.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.545BWSIV.js","../src/components/CModal.vue","../src/components/CModalLoading.vue","../src/components/CNotification.vue","../src/composables/fields.ts","../src/components/CPhoneField.vue","../src/services/injections/pills.ts","../src/components/CPill.vue","../src/components/CPillGroup.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.JCYNYY3E.js","../src/components/CPopup.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.GXC456DW.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/style-map.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2S7DHWQZ.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.VO7MMZV3.js","../src/components/CProgressLinear.vue","../src/components/CProgressRing.vue","../src/services/injections/radio.ts","../src/components/CRadio.vue","../src/components/CRadioGroup.vue","../src/components/CRebrand.vue","../src/components/CRow.vue","../src/components/CSafeArea.vue","../src/components/CSectionHeader.vue","../src/components/CSkeleton.vue","../src/components/CSkeletonLoaderCard.vue","../src/components/CSkeletonLoaderCircle.vue","../src/components/CSkeletonLoaderText.vue","../src/components/CSlideFadeTransition.vue","../src/components/CSplitInput.vue","../src/components/CSsnField.vue","../src/components/CStatusDot.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.EU44RQUN.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.GI7VDIWX.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.SI4ACBFK.js","../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/live.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.S33XS33R.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUJRSXNR.js","../src/components/CSwitch.vue","../src/components/CSwitchListItem.vue","../src/components/CTextArea.vue","../src/components/CTextLink.vue","../src/components/CThirdPartyLogo.vue","../src/components/CTimeago.vue","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.OCMJ7QFW.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZNYIETUV.js","../../../node_modules/.pnpm/@shoelace-style+shoelace@2.15.0_@types+react@18.3.27/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.LJCGGJEU.js","../src/components/CToast.vue","../src/composables/toast.ts","../src/components/CToastsList.vue","../src/components/CZipcodeField.vue","../src/plugin.ts","../src/colors/theme.ts","../src/theme/icons.ts","../src/types.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue';\n\nexport const FLUID = Symbol('fluid') as InjectionKey<Ref<boolean>>;\nexport const ON_TOGGLE = Symbol('on-toggle') as InjectionKey<() => void>;\n","<template>\n <div ref=\"accordion\" data-test=\"accordion\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type SlDetails from '@shoelace-style/shoelace/dist/components/details/details';\nimport { defineComponent, nextTick, provide, ref, toRefs } from 'vue';\n\nimport { FLUID, ON_TOGGLE } from '@propelinc/citrus-ui/src/services/injections/accordions';\n\nexport default defineComponent({\n name: 'CAccordion',\n props: {\n /** Removes horizontal padding for all items inside */\n fluid: { type: Boolean, default: false },\n },\n emits: ['change'],\n setup(props, { emit }) {\n const { fluid } = toRefs(props);\n provide(FLUID, fluid);\n\n const accordion = ref<HTMLDivElement | null>(null);\n provide(ON_TOGGLE, async () => {\n await nextTick();\n const accordionItems: SlDetails[] = Array.from(\n accordion.value!.querySelectorAll('[data-accordion-item]')\n );\n const openItems = accordionItems.reduce<number[]>((acc, item, index) => {\n return item.hasAttribute('open') ? [...acc, index] : acc;\n }, []);\n emit('change', openItems);\n });\n\n return { accordion };\n },\n});\n</script>\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1],t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,css,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i,e=!1,h){if(void 0!==t){const r=this.constructor;if(!1===e&&(h=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:\"open\"},y[d(\"elementProperties\")]=new Map,y[d(\"finalized\")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push(\"2.1.2\");export{y as ReactiveElement,s as adoptStyles,u as defaultConverter,t as getCompatibleStyle,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,h=\"$lit$\",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n=\"?\"+o,r=`<${n}>`,l=document,c=()=>l.createComment(\"\"),a=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,u=Array.isArray,d=t=>u(t)||\"function\"==typeof t?.[Symbol.iterator],f=\"[ \\t\\n\\f\\r]\",v=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\\\s\"'>=/]+)(${f}*=${f}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),g=/'/g,$=/\"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),w=x(2),T=x(3),E=Symbol.for(\"lit-noChange\"),A=Symbol.for(\"lit-nothing\"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?\"<svg>\":3===i?\"<math>\":\"\",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?\"!--\"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp(\"</\"+u[2],\"g\")),c=p):void 0!==u[3]&&(c=p):c===p?\">\"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'\"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":3===i?\"</math>\":\"\")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:\".\"===e[1]?I:\"?\"===e[1]?L:\"@\"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:\"\";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement(\"template\");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||\"\"===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const j={M:h,P:o,A:n,C:1,L:N,R,D:d,V:M,I:k,H,N:L,U:z,B:I,F:Z},B=t.litHtmlPolyfillSupport;B?.(S,k),(t.litHtmlVersions??=[]).push(\"3.3.2\");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};export{j as _$LH,b as html,T as mathml,E as noChange,A as nothing,D as render,w as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as r}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const s=globalThis;class i extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return r}}i._$litElement$=!0,i[\"finalized\"]=!0,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});const n={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(s.litElementVersions??=[]).push(\"4.2.2\");export{i as LitElement,n as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","// src/components/details/details.styles.ts\nimport { css } from \"lit\";\nvar details_styles_default = css`\n :host {\n display: block;\n }\n\n .details {\n border: solid 1px var(--sl-color-neutral-200);\n border-radius: var(--sl-border-radius-medium);\n background-color: var(--sl-color-neutral-0);\n overflow-anchor: none;\n }\n\n .details--disabled {\n opacity: 0.5;\n }\n\n .details__header {\n display: flex;\n align-items: center;\n border-radius: inherit;\n padding: var(--sl-spacing-medium);\n user-select: none;\n -webkit-user-select: none;\n cursor: pointer;\n }\n\n .details__header::-webkit-details-marker {\n display: none;\n }\n\n .details__header:focus {\n outline: none;\n }\n\n .details__header:focus-visible {\n outline: var(--sl-focus-ring);\n outline-offset: calc(1px + var(--sl-focus-ring-offset));\n }\n\n .details--disabled .details__header {\n cursor: not-allowed;\n }\n\n .details--disabled .details__header:focus-visible {\n outline: none;\n box-shadow: none;\n }\n\n .details__summary {\n flex: 1 1 auto;\n display: flex;\n align-items: center;\n }\n\n .details__summary-icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n transition: var(--sl-transition-medium) rotate ease;\n }\n\n .details--open .details__summary-icon {\n rotate: 90deg;\n }\n\n .details--open.details--rtl .details__summary-icon {\n rotate: -90deg;\n }\n\n .details--open slot[name='expand-icon'],\n .details:not(.details--open) slot[name='collapse-icon'] {\n display: none;\n }\n\n .details__body {\n overflow: hidden;\n }\n\n .details__content {\n display: block;\n padding: var(--sl-spacing-medium);\n }\n`;\n\nexport {\n details_styles_default\n};\n","var __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __knownSymbol = (name, symbol) => {\n return (symbol = Symbol[name]) ? symbol : Symbol.for(\"Symbol.\" + name);\n};\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\nvar __await = function(promise, isYieldStar) {\n this[0] = promise;\n this[1] = isYieldStar;\n};\nvar __yieldStar = (value) => {\n var obj = value[__knownSymbol(\"asyncIterator\")];\n var isAwait = false;\n var method;\n var it = {};\n if (obj == null) {\n obj = value[__knownSymbol(\"iterator\")]();\n method = (k) => it[k] = (x) => obj[k](x);\n } else {\n obj = obj.call(value);\n method = (k) => it[k] = (v) => {\n if (isAwait) {\n isAwait = false;\n if (k === \"throw\")\n throw v;\n return v;\n }\n isAwait = true;\n return {\n done: false,\n value: new __await(new Promise((resolve) => {\n var x = obj[k](v);\n if (!(x instanceof Object))\n throw TypeError(\"Object expected\");\n resolve(x);\n }), 1)\n };\n };\n }\n return it[__knownSymbol(\"iterator\")] = () => it, method(\"next\"), \"throw\" in obj ? method(\"throw\") : it.throw = (x) => {\n throw x;\n }, \"return\" in obj && method(\"return\"), it;\n};\n\nexport {\n __spreadValues,\n __spreadProps,\n __decorateClass,\n __yieldStar\n};\n","import {\n __spreadProps,\n __spreadValues\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/utilities/animation-registry.ts\nvar defaultAnimationRegistry = /* @__PURE__ */ new Map();\nvar customAnimationRegistry = /* @__PURE__ */ new WeakMap();\nfunction ensureAnimation(animation) {\n return animation != null ? animation : { keyframes: [], options: { duration: 0 } };\n}\nfunction getLogicalAnimation(animation, dir) {\n if (dir.toLowerCase() === \"rtl\") {\n return {\n keyframes: animation.rtlKeyframes || animation.keyframes,\n options: animation.options\n };\n }\n return animation;\n}\nfunction setDefaultAnimation(animationName, animation) {\n defaultAnimationRegistry.set(animationName, ensureAnimation(animation));\n}\nfunction setAnimation(el, animationName, animation) {\n customAnimationRegistry.set(el, __spreadProps(__spreadValues({}, customAnimationRegistry.get(el)), { [animationName]: ensureAnimation(animation) }));\n}\nfunction getAnimation(el, animationName, options) {\n const customAnimation = customAnimationRegistry.get(el);\n if (customAnimation == null ? void 0 : customAnimation[animationName]) {\n return getLogicalAnimation(customAnimation[animationName], options.dir);\n }\n const defaultAnimation = defaultAnimationRegistry.get(animationName);\n if (defaultAnimation) {\n return getLogicalAnimation(defaultAnimation, options.dir);\n }\n return {\n keyframes: [],\n options: { duration: 0 }\n };\n}\n\nexport {\n setDefaultAnimation,\n setAnimation,\n getAnimation\n};\n","// src/internal/event.ts\nfunction waitForEvent(el, eventName) {\n return new Promise((resolve) => {\n function done(event) {\n if (event.target === el) {\n el.removeEventListener(eventName, done);\n resolve();\n }\n }\n el.addEventListener(eventName, done);\n });\n}\n\nexport {\n waitForEvent\n};\n","import {\n __spreadProps,\n __spreadValues\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/internal/animate.ts\nfunction animateTo(el, keyframes, options) {\n return new Promise((resolve) => {\n if ((options == null ? void 0 : options.duration) === Infinity) {\n throw new Error(\"Promise-based animations must be finite.\");\n }\n const animation = el.animate(keyframes, __spreadProps(__spreadValues({}, options), {\n duration: prefersReducedMotion() ? 0 : options.duration\n }));\n animation.addEventListener(\"cancel\", resolve, { once: true });\n animation.addEventListener(\"finish\", resolve, { once: true });\n });\n}\nfunction parseDuration(delay) {\n delay = delay.toString().toLowerCase();\n if (delay.indexOf(\"ms\") > -1) {\n return parseFloat(delay);\n }\n if (delay.indexOf(\"s\") > -1) {\n return parseFloat(delay) * 1e3;\n }\n return parseFloat(delay);\n}\nfunction prefersReducedMotion() {\n const query = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n return query.matches;\n}\nfunction stopAnimations(el) {\n return Promise.all(\n el.getAnimations().map((animation) => {\n return new Promise((resolve) => {\n animation.cancel();\n requestAnimationFrame(resolve);\n });\n })\n );\n}\nfunction shimKeyframesHeightAuto(keyframes, calculatedHeight) {\n return keyframes.map((keyframe) => __spreadProps(__spreadValues({}, keyframe), {\n height: keyframe.height === \"auto\" ? `${calculatedHeight}px` : keyframe.height\n }));\n}\n\nexport {\n animateTo,\n parseDuration,\n prefersReducedMotion,\n stopAnimations,\n shimKeyframesHeightAuto\n};\n","const connectedElements = new Set();\nconst translations = new Map();\nlet fallback;\nlet documentDirection = 'ltr';\nlet documentLanguage = 'en';\nconst isClient = (typeof MutationObserver !== \"undefined\" && typeof document !== \"undefined\" && typeof document.documentElement !== \"undefined\");\nif (isClient) {\n const documentElementObserver = new MutationObserver(update);\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n documentElementObserver.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['dir', 'lang']\n });\n}\nexport function registerTranslation(...translation) {\n translation.map(t => {\n const code = t.$code.toLowerCase();\n if (translations.has(code)) {\n translations.set(code, Object.assign(Object.assign({}, translations.get(code)), t));\n }\n else {\n translations.set(code, t);\n }\n if (!fallback) {\n fallback = t;\n }\n });\n update();\n}\nexport function update() {\n if (isClient) {\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n }\n [...connectedElements.keys()].map((el) => {\n if (typeof el.requestUpdate === 'function') {\n el.requestUpdate();\n }\n });\n}\nexport class LocalizeController {\n constructor(host) {\n this.host = host;\n this.host.addController(this);\n }\n hostConnected() {\n connectedElements.add(this.host);\n }\n hostDisconnected() {\n connectedElements.delete(this.host);\n }\n dir() {\n return `${this.host.dir || documentDirection}`.toLowerCase();\n }\n lang() {\n return `${this.host.lang || documentLanguage}`.toLowerCase();\n }\n getTranslationData(lang) {\n var _a, _b;\n const locale = new Intl.Locale(lang.replace(/_/g, '-'));\n const language = locale === null || locale === void 0 ? void 0 : locale.language.toLowerCase();\n const region = (_b = (_a = locale === null || locale === void 0 ? void 0 : locale.region) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : '';\n const primary = translations.get(`${language}-${region}`);\n const secondary = translations.get(language);\n return { locale, language, region, primary, secondary };\n }\n exists(key, options) {\n var _a;\n const { primary, secondary } = this.getTranslationData((_a = options.lang) !== null && _a !== void 0 ? _a : this.lang());\n options = Object.assign({ includeFallback: false }, options);\n if ((primary && primary[key]) ||\n (secondary && secondary[key]) ||\n (options.includeFallback && fallback && fallback[key])) {\n return true;\n }\n return false;\n }\n term(key, ...args) {\n const { primary, secondary } = this.getTranslationData(this.lang());\n let term;\n if (primary && primary[key]) {\n term = primary[key];\n }\n else if (secondary && secondary[key]) {\n term = secondary[key];\n }\n else if (fallback && fallback[key]) {\n term = fallback[key];\n }\n else {\n console.error(`No translation found for: ${String(key)}`);\n return String(key);\n }\n if (typeof term === 'function') {\n return term(...args);\n }\n return term;\n }\n date(dateToFormat, options) {\n dateToFormat = new Date(dateToFormat);\n return new Intl.DateTimeFormat(this.lang(), options).format(dateToFormat);\n }\n number(numberToFormat, options) {\n numberToFormat = Number(numberToFormat);\n return isNaN(numberToFormat) ? '' : new Intl.NumberFormat(this.lang(), options).format(numberToFormat);\n }\n relativeTime(value, unit, options) {\n return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);\n }\n}\n","// src/translations/en.ts\nimport { registerTranslation } from \"@shoelace-style/localize\";\nvar translation = {\n $code: \"en\",\n $name: \"English\",\n $dir: \"ltr\",\n carousel: \"Carousel\",\n clearEntry: \"Clear entry\",\n close: \"Close\",\n copied: \"Copied\",\n copy: \"Copy\",\n currentValue: \"Current value\",\n error: \"Error\",\n goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`,\n hidePassword: \"Hide password\",\n loading: \"Loading\",\n nextSlide: \"Next slide\",\n numOptionsSelected: (num) => {\n if (num === 0)\n return \"No options selected\";\n if (num === 1)\n return \"1 option selected\";\n return `${num} options selected`;\n },\n previousSlide: \"Previous slide\",\n progress: \"Progress\",\n remove: \"Remove\",\n resize: \"Resize\",\n scrollToEnd: \"Scroll to end\",\n scrollToStart: \"Scroll to start\",\n selectAColorFromTheScreen: \"Select a color from the screen\",\n showPassword: \"Show password\",\n slideNum: (slide) => `Slide ${slide}`,\n toggleColorFormat: \"Toggle color format\"\n};\nregisterTranslation(translation);\nvar en_default = translation;\n\nexport {\n en_default\n};\n","import {\n en_default\n} from \"./chunk.MAS2SHYD.js\";\n\n// src/utilities/localize.ts\nimport { LocalizeController as DefaultLocalizationController, registerTranslation } from \"@shoelace-style/localize\";\nimport { registerTranslation as registerTranslation2 } from \"@shoelace-style/localize\";\nvar LocalizeController = class extends DefaultLocalizationController {\n};\nregisterTranslation(en_default);\n\nexport {\n LocalizeController,\n registerTranslation2 as registerTranslation\n};\n","// src/utilities/base-path.ts\nvar basePath = \"\";\nfunction setBasePath(path) {\n basePath = path;\n}\nfunction getBasePath(subpath = \"\") {\n if (!basePath) {\n const scripts = [...document.getElementsByTagName(\"script\")];\n const configScript = scripts.find((script) => script.hasAttribute(\"data-shoelace\"));\n if (configScript) {\n setBasePath(configScript.getAttribute(\"data-shoelace\"));\n } else {\n const fallbackScript = scripts.find((s) => {\n return /shoelace(\\.min)?\\.js($|\\?)/.test(s.src) || /shoelace-autoloader(\\.min)?\\.js($|\\?)/.test(s.src);\n });\n let path = \"\";\n if (fallbackScript) {\n path = fallbackScript.getAttribute(\"src\");\n }\n setBasePath(path.split(\"/\").slice(0, -1).join(\"/\"));\n }\n }\n return basePath.replace(/\\/$/, \"\") + (subpath ? `/${subpath.replace(/^\\//, \"\")}` : ``);\n}\n\nexport {\n setBasePath,\n getBasePath\n};\n","import {\n getBasePath\n} from \"./chunk.3Y6SB6QS.js\";\n\n// src/components/icon/library.default.ts\nvar library = {\n name: \"default\",\n resolver: (name) => getBasePath(`assets/icons/${name}.svg`)\n};\nvar library_default_default = library;\n\nexport {\n library_default_default\n};\n","// src/components/icon/library.system.ts\nvar icons = {\n caret: `\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n `,\n check: `\n <svg part=\"checked-icon\" class=\"checkbox__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n `,\n \"chevron-down\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\"/>\n </svg>\n `,\n \"chevron-left\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-left\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z\"/>\n </svg>\n `,\n \"chevron-right\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-right\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z\"/>\n </svg>\n `,\n copy: `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-copy\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z\"/>\n </svg>\n `,\n eye: `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eye\" viewBox=\"0 0 16 16\">\n <path d=\"M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z\"/>\n <path d=\"M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z\"/>\n </svg>\n `,\n \"eye-slash\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eye-slash\" viewBox=\"0 0 16 16\">\n <path d=\"M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z\"/>\n <path d=\"M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z\"/>\n <path d=\"M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z\"/>\n </svg>\n `,\n eyedropper: `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eyedropper\" viewBox=\"0 0 16 16\">\n <path d=\"M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z\"></path>\n </svg>\n `,\n \"grip-vertical\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-grip-vertical\" viewBox=\"0 0 16 16\">\n <path d=\"M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z\"></path>\n </svg>\n `,\n indeterminate: `\n <svg part=\"indeterminate-icon\" class=\"checkbox__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n `,\n \"person-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-person-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z\"/>\n </svg>\n `,\n \"play-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-play-fill\" viewBox=\"0 0 16 16\">\n <path d=\"m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z\"></path>\n </svg>\n `,\n \"pause-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-pause-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z\"></path>\n </svg>\n `,\n radio: `\n <svg part=\"checked-icon\" class=\"radio__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"currentColor\">\n <circle cx=\"8\" cy=\"8\" r=\"3.42857143\"></circle>\n </g>\n </g>\n </svg>\n `,\n \"star-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-star-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z\"/>\n </svg>\n `,\n \"x-lg\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-x-lg\" viewBox=\"0 0 16 16\">\n <path d=\"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z\"/>\n </svg>\n `,\n \"x-circle-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-x-circle-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z\"></path>\n </svg>\n `\n};\nvar systemLibrary = {\n name: \"system\",\n resolver: (name) => {\n if (name in icons) {\n return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;\n }\n return \"\";\n }\n};\nvar library_system_default = systemLibrary;\n\nexport {\n library_system_default\n};\n","import {\n library_default_default\n} from \"./chunk.P7ZG6EMR.js\";\nimport {\n library_system_default\n} from \"./chunk.3TFKS637.js\";\n\n// src/components/icon/library.ts\nvar registry = [library_default_default, library_system_default];\nvar watchedIcons = [];\nfunction watchIcon(icon) {\n watchedIcons.push(icon);\n}\nfunction unwatchIcon(icon) {\n watchedIcons = watchedIcons.filter((el) => el !== icon);\n}\nfunction getIconLibrary(name) {\n return registry.find((lib) => lib.name === name);\n}\nfunction registerIconLibrary(name, options) {\n unregisterIconLibrary(name);\n registry.push({\n name,\n resolver: options.resolver,\n mutator: options.mutator,\n spriteSheet: options.spriteSheet\n });\n watchedIcons.forEach((icon) => {\n if (icon.library === name) {\n icon.setIcon();\n }\n });\n}\nfunction unregisterIconLibrary(name) {\n registry = registry.filter((lib) => lib.name !== name);\n}\n\nexport {\n watchIcon,\n unwatchIcon,\n getIconLibrary,\n registerIconLibrary,\n unregisterIconLibrary\n};\n","// src/components/icon/icon.styles.ts\nimport { css } from \"lit\";\nvar icon_styles_default = css`\n :host {\n display: inline-block;\n width: 1em;\n height: 1em;\n box-sizing: content-box !important;\n }\n\n svg {\n display: block;\n height: 100%;\n width: 100%;\n }\n`;\n\nexport {\n icon_styles_default\n};\n","import {\n __spreadValues\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/internal/watch.ts\nfunction watch(propertyName, options) {\n const resolvedOptions = __spreadValues({\n waitUntilFirstUpdate: false\n }, options);\n return (proto, decoratedFnName) => {\n const { update } = proto;\n const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];\n proto.update = function(changedProps) {\n watchedProperties.forEach((property) => {\n const key = property;\n if (changedProps.has(key)) {\n const oldValue = changedProps.get(key);\n const newValue = this[key];\n if (oldValue !== newValue) {\n if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {\n this[decoratedFnName](oldValue, newValue);\n }\n }\n }\n });\n update.call(this, changedProps);\n };\n };\n}\n\nexport {\n watch\n};\n","// src/styles/component.styles.ts\nimport { css } from \"lit\";\nvar component_styles_default = css`\n :host {\n box-sizing: border-box;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n`;\n\nexport {\n component_styles_default\n};\n","import{notEqual as t,defaultConverter as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:e,reflect:!1,hasChanged:t},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),\"setter\"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t,!0,r)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t,!0,r)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&\"object\"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc};\n//# sourceMappingURL=base.js.map\n","import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}=\"object\"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query};\n//# sourceMappingURL=query.js.map\n","import {\n __decorateClass,\n __spreadValues\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/internal/shoelace-element.ts\nimport { LitElement } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nvar ShoelaceElement = class extends LitElement {\n constructor() {\n super();\n Object.entries(this.constructor.dependencies).forEach(([name, component]) => {\n this.constructor.define(name, component);\n });\n }\n emit(name, options) {\n const event = new CustomEvent(name, __spreadValues({\n bubbles: true,\n cancelable: false,\n composed: true,\n detail: {}\n }, options));\n this.dispatchEvent(event);\n return event;\n }\n /* eslint-enable */\n static define(name, elementConstructor = this, options = {}) {\n const currentlyRegisteredConstructor = customElements.get(name);\n if (!currentlyRegisteredConstructor) {\n customElements.define(name, class extends elementConstructor {\n }, options);\n return;\n }\n let newVersion = \" (unknown version)\";\n let existingVersion = newVersion;\n if (\"version\" in elementConstructor && elementConstructor.version) {\n newVersion = \" v\" + elementConstructor.version;\n }\n if (\"version\" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {\n existingVersion = \" v\" + currentlyRegisteredConstructor.version;\n }\n if (newVersion && existingVersion && newVersion === existingVersion) {\n return;\n }\n console.warn(\n `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`\n );\n }\n};\n/* eslint-disable */\n// @ts-expect-error This is auto-injected at build time.\nShoelaceElement.version = \"2.15.0\";\nShoelaceElement.dependencies = {};\n__decorateClass([\n property()\n], ShoelaceElement.prototype, \"dir\", 2);\n__decorateClass([\n property()\n], ShoelaceElement.prototype, \"lang\", 2);\n\nexport {\n ShoelaceElement\n};\n","import{_$LH as o}from\"./lit-html.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{I:t}=o,i=o=>o,n=o=>null===o||\"object\"!=typeof o&&\"function\"!=typeof o,e={HTML:1,SVG:2,MATHML:3},l=(o,t)=>void 0===t?void 0!==o?._$litType$:o?._$litType$===t,d=o=>null!=o?._$litType$?.h,c=o=>void 0!==o?._$litDirective$,f=o=>o?._$litDirective$,r=o=>void 0===o.strings,s=()=>document.createComment(\"\"),v=(o,n,e)=>{const l=o._$AA.parentNode,d=void 0===n?o._$AB:n._$AA;if(void 0===e){const i=l.insertBefore(s(),d),n=l.insertBefore(s(),d);e=new t(i,n,o,o.options)}else{const t=e._$AB.nextSibling,n=e._$AM,c=n!==o;if(c){let t;e._$AQ?.(o),e._$AM=o,void 0!==e._$AP&&(t=o._$AU)!==n._$AU&&e._$AP(t)}if(t!==d||c){let o=e._$AA;for(;o!==t;){const t=i(o).nextSibling;i(l).insertBefore(o,d),o=t}}}return e},u=(o,t,i=o)=>(o._$AI(t,i),o),m={},p=(o,t=m)=>o._$AH=t,M=o=>o._$AH,h=o=>{o._$AR(),o._$AA.remove()},j=o=>{o._$AR()};export{e as TemplateResultType,j as clearPart,M as getCommittedValue,f as getDirectiveClass,v as insertPart,d as isCompiledTemplateResult,c as isDirectiveResult,n as isPrimitive,r as isSingleExpression,l as isTemplateResult,h as removePart,u as setChildPartValue,p as setCommittedValue};\n//# sourceMappingURL=directive-helpers.js.map\n","import {\n getIconLibrary,\n unwatchIcon,\n watchIcon\n} from \"./chunk.ZL53POKZ.js\";\nimport {\n icon_styles_default\n} from \"./chunk.QLXRCYS4.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/icon/icon.component.ts\nimport { html } from \"lit\";\nimport { isTemplateResult } from \"lit/directive-helpers.js\";\nimport { property, state } from \"lit/decorators.js\";\nvar CACHEABLE_ERROR = Symbol();\nvar RETRYABLE_ERROR = Symbol();\nvar parser;\nvar iconCache = /* @__PURE__ */ new Map();\nvar SlIcon = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.initialRender = false;\n this.svg = null;\n this.label = \"\";\n this.library = \"default\";\n }\n /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */\n async resolveIcon(url, library) {\n var _a;\n let fileData;\n if (library == null ? void 0 : library.spriteSheet) {\n this.svg = html`<svg part=\"svg\">\n <use part=\"use\" href=\"${url}\"></use>\n </svg>`;\n await this.updateComplete;\n const svg = this.shadowRoot.querySelector(\"[part='svg']\");\n if (typeof library.mutator === \"function\") {\n library.mutator(svg);\n }\n return this.svg;\n }\n try {\n fileData = await fetch(url, { mode: \"cors\" });\n if (!fileData.ok)\n return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;\n } catch (e) {\n return RETRYABLE_ERROR;\n }\n try {\n const div = document.createElement(\"div\");\n div.innerHTML = await fileData.text();\n const svg = div.firstElementChild;\n if (((_a = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a.toLowerCase()) !== \"svg\")\n return CACHEABLE_ERROR;\n if (!parser)\n parser = new DOMParser();\n const doc = parser.parseFromString(svg.outerHTML, \"text/html\");\n const svgEl = doc.body.querySelector(\"svg\");\n if (!svgEl)\n return CACHEABLE_ERROR;\n svgEl.part.add(\"svg\");\n return document.adoptNode(svgEl);\n } catch (e) {\n return CACHEABLE_ERROR;\n }\n }\n connectedCallback() {\n super.connectedCallback();\n watchIcon(this);\n }\n firstUpdated() {\n this.initialRender = true;\n this.setIcon();\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n unwatchIcon(this);\n }\n getIconSource() {\n const library = getIconLibrary(this.library);\n if (this.name && library) {\n return {\n url: library.resolver(this.name),\n fromLibrary: true\n };\n }\n return {\n url: this.src,\n fromLibrary: false\n };\n }\n handleLabelChange() {\n const hasLabel = typeof this.label === \"string\" && this.label.length > 0;\n if (hasLabel) {\n this.setAttribute(\"role\", \"img\");\n this.setAttribute(\"aria-label\", this.label);\n this.removeAttribute(\"aria-hidden\");\n } else {\n this.removeAttribute(\"role\");\n this.removeAttribute(\"aria-label\");\n this.setAttribute(\"aria-hidden\", \"true\");\n }\n }\n async setIcon() {\n var _a;\n const { url, fromLibrary } = this.getIconSource();\n const library = fromLibrary ? getIconLibrary(this.library) : void 0;\n if (!url) {\n this.svg = null;\n return;\n }\n let iconResolver = iconCache.get(url);\n if (!iconResolver) {\n iconResolver = this.resolveIcon(url, library);\n iconCache.set(url, iconResolver);\n }\n if (!this.initialRender) {\n return;\n }\n const svg = await iconResolver;\n if (svg === RETRYABLE_ERROR) {\n iconCache.delete(url);\n }\n if (url !== this.getIconSource().url) {\n return;\n }\n if (isTemplateResult(svg)) {\n this.svg = svg;\n return;\n }\n switch (svg) {\n case RETRYABLE_ERROR:\n case CACHEABLE_ERROR:\n this.svg = null;\n this.emit(\"sl-error\");\n break;\n default:\n this.svg = svg.cloneNode(true);\n (_a = library == null ? void 0 : library.mutator) == null ? void 0 : _a.call(library, this.svg);\n this.emit(\"sl-load\");\n }\n }\n render() {\n return this.svg;\n }\n};\nSlIcon.styles = [component_styles_default, icon_styles_default];\n__decorateClass([\n state()\n], SlIcon.prototype, \"svg\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlIcon.prototype, \"name\", 2);\n__decorateClass([\n property()\n], SlIcon.prototype, \"src\", 2);\n__decorateClass([\n property()\n], SlIcon.prototype, \"label\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlIcon.prototype, \"library\", 2);\n__decorateClass([\n watch(\"label\")\n], SlIcon.prototype, \"handleLabelChange\", 1);\n__decorateClass([\n watch([\"name\", \"src\", \"library\"])\n], SlIcon.prototype, \"setIcon\", 1);\n\nexport {\n SlIcon\n};\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter(s=>t[s]).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter(t=>\"\"!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n","import {\n details_styles_default\n} from \"./chunk.J7PLVEQM.js\";\nimport {\n getAnimation,\n setDefaultAnimation\n} from \"./chunk.DHU6MIVB.js\";\nimport {\n waitForEvent\n} from \"./chunk.B4BZKR24.js\";\nimport {\n animateTo,\n shimKeyframesHeightAuto,\n stopAnimations\n} from \"./chunk.LHI6QEL2.js\";\nimport {\n LocalizeController\n} from \"./chunk.WLV3FVBR.js\";\nimport {\n SlIcon\n} from \"./chunk.H33C3MRM.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/details/details.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { property, query } from \"lit/decorators.js\";\nvar SlDetails = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.localize = new LocalizeController(this);\n this.open = false;\n this.disabled = false;\n }\n firstUpdated() {\n this.body.style.height = this.open ? \"auto\" : \"0\";\n if (this.open) {\n this.details.open = true;\n }\n this.detailsObserver = new MutationObserver((changes) => {\n for (const change of changes) {\n if (change.type === \"attributes\" && change.attributeName === \"open\") {\n if (this.details.open) {\n this.show();\n } else {\n this.hide();\n }\n }\n }\n });\n this.detailsObserver.observe(this.details, { attributes: true });\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n this.detailsObserver.disconnect();\n }\n handleSummaryClick(event) {\n event.preventDefault();\n if (!this.disabled) {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n this.header.focus();\n }\n }\n handleSummaryKeyDown(event) {\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n }\n if (event.key === \"ArrowUp\" || event.key === \"ArrowLeft\") {\n event.preventDefault();\n this.hide();\n }\n if (event.key === \"ArrowDown\" || event.key === \"ArrowRight\") {\n event.preventDefault();\n this.show();\n }\n }\n async handleOpenChange() {\n if (this.open) {\n this.details.open = true;\n const slShow = this.emit(\"sl-show\", { cancelable: true });\n if (slShow.defaultPrevented) {\n this.open = false;\n this.details.open = false;\n return;\n }\n await stopAnimations(this.body);\n const { keyframes, options } = getAnimation(this, \"details.show\", { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = \"auto\";\n this.emit(\"sl-after-show\");\n } else {\n const slHide = this.emit(\"sl-hide\", { cancelable: true });\n if (slHide.defaultPrevented) {\n this.details.open = true;\n this.open = true;\n return;\n }\n await stopAnimations(this.body);\n const { keyframes, options } = getAnimation(this, \"details.hide\", { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = \"auto\";\n this.details.open = false;\n this.emit(\"sl-after-hide\");\n }\n }\n /** Shows the details. */\n async show() {\n if (this.open || this.disabled) {\n return void 0;\n }\n this.open = true;\n return waitForEvent(this, \"sl-after-show\");\n }\n /** Hides the details */\n async hide() {\n if (!this.open || this.disabled) {\n return void 0;\n }\n this.open = false;\n return waitForEvent(this, \"sl-after-hide\");\n }\n render() {\n const isRtl = this.localize.dir() === \"rtl\";\n return html`\n <details\n part=\"base\"\n class=${classMap({\n details: true,\n \"details--open\": this.open,\n \"details--disabled\": this.disabled,\n \"details--rtl\": isRtl\n })}\n >\n <summary\n part=\"header\"\n id=\"header\"\n class=\"details__header\"\n role=\"button\"\n aria-expanded=${this.open ? \"true\" : \"false\"}\n aria-controls=\"content\"\n aria-disabled=${this.disabled ? \"true\" : \"false\"}\n tabindex=${this.disabled ? \"-1\" : \"0\"}\n @click=${this.handleSummaryClick}\n @keydown=${this.handleSummaryKeyDown}\n >\n <slot name=\"summary\" part=\"summary\" class=\"details__summary\">${this.summary}</slot>\n\n <span part=\"summary-icon\" class=\"details__summary-icon\">\n <slot name=\"expand-icon\">\n <sl-icon library=\"system\" name=${isRtl ? \"chevron-left\" : \"chevron-right\"}></sl-icon>\n </slot>\n <slot name=\"collapse-icon\">\n <sl-icon library=\"system\" name=${isRtl ? \"chevron-left\" : \"chevron-right\"}></sl-icon>\n </slot>\n </span>\n </summary>\n\n <div class=\"details__body\" role=\"region\" aria-labelledby=\"header\">\n <slot part=\"content\" id=\"content\" class=\"details__content\"></slot>\n </div>\n </details>\n `;\n }\n};\nSlDetails.styles = [component_styles_default, details_styles_default];\nSlDetails.dependencies = {\n \"sl-icon\": SlIcon\n};\n__decorateClass([\n query(\".details\")\n], SlDetails.prototype, \"details\", 2);\n__decorateClass([\n query(\".details__header\")\n], SlDetails.prototype, \"header\", 2);\n__decorateClass([\n query(\".details__body\")\n], SlDetails.prototype, \"body\", 2);\n__decorateClass([\n query(\".details__expand-icon-slot\")\n], SlDetails.prototype, \"expandIconSlot\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlDetails.prototype, \"open\", 2);\n__decorateClass([\n property()\n], SlDetails.prototype, \"summary\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlDetails.prototype, \"disabled\", 2);\n__decorateClass([\n watch(\"open\", { waitUntilFirstUpdate: true })\n], SlDetails.prototype, \"handleOpenChange\", 1);\nsetDefaultAnimation(\"details.show\", {\n keyframes: [\n { height: \"0\", opacity: \"0\" },\n { height: \"auto\", opacity: \"1\" }\n ],\n options: { duration: 250, easing: \"linear\" }\n});\nsetDefaultAnimation(\"details.hide\", {\n keyframes: [\n { height: \"auto\", opacity: \"1\" },\n { height: \"0\", opacity: \"0\" }\n ],\n options: { duration: 250, easing: \"linear\" }\n});\n\nexport {\n SlDetails\n};\n","import {\n SlDetails\n} from \"./chunk.NTUEQTVT.js\";\n\n// src/components/details/details.ts\nvar details_default = SlDetails;\nSlDetails.define(\"sl-details\");\n\nexport {\n details_default\n};\n","import type { ElementAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';\nimport {\n getAnimation,\n setAnimation,\n} from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';\nimport type { Ref } from 'vue';\nimport { isRef, onMounted, ref, unref, watch } from 'vue';\n\ntype MaybeRef<T> = T | Ref<T>;\n\nexport function useShoelaceAnimation(\n el: Ref<Element | null>,\n animationName: string,\n animation: MaybeRef<ElementAnimation | 'default' | null>\n): void {\n let defaultAnimation: ElementAnimation | null = null;\n\n onMounted(() => {\n if (el.value) {\n defaultAnimation = getAnimation(el.value, animationName, { dir: 'ltr' });\n\n const animationValue = unref(animation);\n if (animationValue !== 'default') {\n setAnimation(el.value, animationName, animationValue);\n }\n }\n });\n\n if (isRef(animation)) {\n watch(animation, () => {\n if (el.value) {\n const nextAnimation = animation.value === 'default' ? defaultAnimation : animation.value;\n setAnimation(el.value, animationName, nextAnimation);\n }\n });\n }\n}\n\nconst TAP_ANIMATION_DURATION_MS = 100;\n\nexport function useTapAnimation({\n el,\n keyframes,\n}: {\n el: Ref<Element | null>;\n keyframes: { default: Keyframe; pressed: Keyframe };\n}): Record<string, () => void> {\n const downAnimation = ref<Animation | null>(null);\n const upAnimation = ref<Animation | null>(null);\n\n function onPointerDown(): void {\n if (!el.value) {\n return;\n }\n\n upAnimation.value?.cancel();\n upAnimation.value = null;\n\n downAnimation.value?.cancel();\n downAnimation.value = el.value.animate([keyframes.default, keyframes.pressed], {\n duration: TAP_ANIMATION_DURATION_MS,\n fill: 'forwards',\n });\n }\n\n async function onPointerUp(): Promise<void> {\n if (!downAnimation.value || upAnimation.value || !el.value) {\n return;\n }\n\n // NOTE(mohan): Cancelling the animation will cause the finished promise to\n // throw an error.\n await downAnimation.value.finished.catch(() => {});\n if (!el.value) {\n // NOTE(slanden): This can happen if the element is removed from the DOM\n // while the down animation is running.\n return;\n }\n upAnimation.value = el.value.animate([keyframes.pressed, keyframes.default], {\n duration: TAP_ANIMATION_DURATION_MS,\n fill: 'forwards',\n });\n\n await upAnimation.value.finished.catch(() => {});\n upAnimation.value = null;\n downAnimation.value = null;\n }\n\n return {\n pointerdown: onPointerDown,\n pointerup: onPointerUp,\n pointerleave: onPointerUp,\n pointercancel: onPointerUp,\n };\n}\n","import type { Ref } from 'vue';\nimport { ref, watch } from 'vue';\n\n/**\n * A composable that creates a ref that tracks the value of the provided ref.\n *\n * Whenever the provided ref changes, the returned ref updates, but not the\n * other way around. When the returned ref changes, the `onChange` callback is\n * called (if provided).\n *\n * Useful for components that need to respond both to user input and to\n * programmatic changes.\n *\n * @param value - The value to bind to the internal value.\n * @param options.onChange - A callback function that is called when the\n * internal value changes.\n * @returns A ref to the internal value.\n */\nexport function useInternalValue<T>(\n value: Ref<T>,\n options: { onChange?: (value: T) => void } = {}\n): Ref<T> {\n const internalValue = ref(value.value) as Ref<T>;\n watch(value, (value) => {\n internalValue.value = value;\n });\n watch(internalValue, (newInternalValue) => {\n if (newInternalValue !== value.value) {\n options.onChange?.(newInternalValue);\n }\n });\n\n return internalValue;\n}\n","<!-- eslint-disable vue/no-deprecated-slot-attribute -->\n<template>\n <sl-details\n ref=\"details\"\n data-test=\"accordion-item\"\n data-accordion-item\n class=\"c-accordion-item\"\n :class=\"{ 'c-accordion-item--fluid': injectedOrPropFluid }\"\n :open=\"internalValue || undefined\"\n @sl-show=\"onChange(true)\"\n @sl-hide.stop=\"onChange(false)\"\n >\n <FontAwesomeIcon slot=\"expand-icon\" :icon=\"faChevronDown\" />\n <FontAwesomeIcon slot=\"collapse-icon\" :icon=\"faChevronDown\" />\n <div slot=\"summary\" class=\"c-accordion-item__header\" data-test=\"accordion-item-header\">\n <slot name=\"header\" />\n </div>\n <div data-test=\"accordion-item-content\" class=\"c-accordion-item__content\">\n <slot />\n </div>\n </sl-details>\n</template>\n\n<script lang=\"ts\">\nimport { faChevronDown } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport '@shoelace-style/shoelace/dist/components/details/details';\nimport type SlDetails from '@shoelace-style/shoelace/dist/components/details/details';\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, inject, ref } from 'vue';\n\nimport { useShoelaceAnimation } from '@propelinc/citrus-ui/src/composables/animation';\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\nimport { FLUID, ON_TOGGLE } from '@propelinc/citrus-ui/src/services/injections/accordions';\n\nexport default defineComponent({\n name: 'CAccordionItem',\n components: { FontAwesomeIcon },\n props: {\n /** Controls whether the item is open */\n value: { type: Boolean, default: false },\n /** Removes horizontal padding from the content */\n fluid: { type: Boolean as PropType<boolean | null>, default: null },\n },\n emits: ['input'],\n setup(props, { emit }) {\n const details = ref<SlDetails | null>(null);\n useShoelaceAnimation(details, 'details.show', {\n keyframes: [{ height: '0' }, { height: 'auto' }],\n options: { duration: 200, easing: 'ease' },\n });\n useShoelaceAnimation(details, 'details.hide', {\n keyframes: [{ height: 'auto' }, { height: '0' }],\n options: { duration: 200, easing: 'ease' },\n });\n\n const fluid = inject(FLUID, ref(false));\n const injectedOrPropFluid = computed(() => {\n return props.fluid !== null ? props.fluid : (fluid.value ?? false);\n });\n\n const value = computed(() => props.value);\n const internalValue = useInternalValue(value, { onChange: (value) => emit('input', value) });\n\n const injectedToggleItem = inject(ON_TOGGLE, undefined);\n const onChange = (value: boolean): void => {\n internalValue.value = value;\n injectedToggleItem?.();\n emit('input', value);\n };\n\n return {\n internalValue,\n faChevronDown,\n details,\n injectedOrPropFluid,\n onChange,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-accordion-item {\n &::part(base) {\n background: transparent;\n border: none;\n }\n\n &::part(header) {\n padding: 16px;\n }\n\n &::part(summary) {\n @include subheadline;\n\n padding-right: 16px;\n }\n\n &::part(summary-icon) {\n rotate: 0;\n transition-duration: 200ms;\n }\n\n &[open]::part(summary-icon) {\n rotate: 180deg;\n }\n\n &::part(content) {\n padding: 0 16px 16px;\n }\n\n & + & {\n border-top: $border;\n }\n}\n\n.c-accordion-item--fluid {\n &::part(content) {\n padding: 0;\n }\n}\n\n.c-accordion-item__header {\n width: 100%;\n}\n\n.c-accordion-item__content {\n box-sizing: border-box;\n}\n</style>\n","// NOTE(ej): This file is a manual copy of /styles/colors.scss\n// These files should be kept in sync.\n// NOTE(cshdllr): The navy colors are still here for backwards compatibility.\n\nexport type HexColor = `#${string}`;\nexport type RgbaColor = `rgba(${number}, ${number}, ${number}, ${number})`;\n\n/**\n * CSS color value from the palette (hex or rgba). Use this type when a value\n * may be either format, e.g. gray colors are rgba, others are hex.\n */\nexport type CssColor = HexColor | RgbaColor;\n\nconst BLACK = '#000000';\nconst GRAY_100 = 'rgba(0, 0, 0, 0.04)';\nconst GRAY_200 = 'rgba(0, 0, 0, 0.1)';\nconst GRAY_300 = 'rgba(0, 0, 0, 0.31)';\nconst GRAY_400 = 'rgba(0, 0, 0, 0.48)';\nconst GRAY_500 = 'rgba(0, 0, 0, 0.69)';\nconst GREEN_500 = '#1f7400';\nconst GOLD_500 = '#f47500';\nconst RED_500 = '#cd000c';\n\n/**\n * Maps a color name to its corresponding CSS color (hex or rgba).\n * Gray neutrals use rgba for transparency; other colors use hex.\n *\n * NOTE: Please write hex codes in lowercase letters\n */\nconst Colors: Record<string, CssColor> = {\n ACCENT_BLUE: '#5560cb',\n ACCENT_BLUE_SHADE_1: '#404898',\n ACCENT_BLUE_SHADE_2: '#2f3570',\n ACCENT_GREEN: '#49a24c',\n ACCENT_GREEN_SHADE_1: '#3a823d',\n ACCENT_GREEN_SHADE_2: '#17551a',\n ACCENT_ORANGE: '#ffa895',\n ACCENT_ORANGE_SHADE_1: '#e15c1b',\n ACCENT_ORANGE_SHADE_2: '#a9440b',\n ACCENT_PINK: '#d75fae',\n ACCENT_PINK_SHADE_1: '#7c3872',\n ACCENT_PINK_SHADE_2: '#56204e',\n ACCENT_RED_SHADE_1: '#981d31',\n ACCENT_RED_SHADE_2: '#701323',\n ALERT_RED: '#c34459',\n BACKGROUND: GRAY_100,\n BLACK,\n GRAY_100,\n // NOTE(slanden): the in-app browser cannot handle transparency in rgba colors,\n // which get rendered as black, so we fall back to the hex color instead.\n GRAY_100_HEX: '#f5f4f3',\n GRAY_200,\n GRAY_300,\n GRAY_400,\n GRAY_500,\n NAVY: BLACK,\n NAVY_TINT_1: GRAY_500,\n NAVY_TINT_2: GRAY_400,\n NAVY_TINT_3: GRAY_300,\n NAVY_TINT_4: GRAY_200,\n NAVY_TINT_5: GRAY_100,\n NEUTRAL: GRAY_100,\n NEUTRAL_SHADE: GRAY_200,\n NEUTRAL_SHADE_2: '#707070',\n ORANGE: '#ffa895',\n ORANGE_TINT_1: '#fdcab7',\n ORANGE_TINT_2: '#ffdbce',\n PINK: '#f6a0d1',\n PINK_TINT_1: '#fdc3e4',\n PINK_TINT_2: '#ffdef1',\n PROVIDERS_BLUE: '#a3b0f9',\n PROVIDERS_BLUE_TINT_1: '#d1d7fc',\n PROVIDERS_BLUE_TINT_2: '#e8ebfd',\n PROVIDERS_GREEN: '#49a24c',\n PROVIDERS_GREEN_TINT_1: '#b3f6a2',\n PROVIDERS_GREEN_TINT_2: '#d1fac7',\n TEXT_PRIMARY: BLACK,\n TEXT_SECONDARY: GRAY_500,\n TEXT_PLACEHOLDER: GRAY_400,\n TEXT_DISABLED: GRAY_300,\n WHITE: '#ffffff',\n YELLOW: '#ffc200',\n YELLOW_100: '#ffdc6b',\n YELLOW_TINT_1: '#ffdc6b',\n YELLOW_TINT_2: '#fee69a',\n BLUE_100: '#e0edff',\n BLUE_200: '#b2cffa',\n BLUE_300: '#7a95f8',\n BLUE_400: '#496ae0',\n BLUE_500: '#1a43d7',\n BORDER: GRAY_200,\n BUTTON_BACKGROUND: BLACK,\n GOLD_500,\n GOLD_400: '#f99500',\n GOLD_300: '#ffc120',\n GOLD_200: '#fcde74',\n GOLD_100: '#fff0ba',\n GREEN_500,\n GREEN_400: '#3fa41c',\n GREEN_300: '#8bc95a',\n GREEN_200: '#b8da96',\n GREEN_100: '#dcf2cb',\n PURPLE_500: '#6431d0',\n PURPLE_400: '#804fe8',\n PURPLE_300: '#ac8eff',\n PURPLE_200: '#cdbcff',\n PURPLE_100: '#ebe4ff',\n RED_500,\n RED_400: '#f52323',\n RED_300: '#ff6969',\n RED_200: '#ffaaa5',\n RED_100: '#ffe5dd',\n STATUS_SUCCESS: GREEN_500,\n STATUS_WARNING: GOLD_500,\n STATUS_ERROR: RED_500,\n};\n\nexport default Colors;\n\n/**\n * This is a type predicate that will allow TypeScript to know that the string tested is a\n * HexColor within the scope of the narrowing.\n */\nexport function isHexColor(color?: string): color is HexColor {\n if (!color) {\n return false;\n }\n\n return /^#([0-9A-Fa-f]{3}){1,2}$/i.test(color);\n}\n\nexport function isRgbaColor(color?: string): color is RgbaColor {\n if (!color) {\n return false;\n }\n\n // Alpha may be integer 0–255 or decimal 0–1 (e.g. 0.04, 0.69)\n return /^rgba\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*[\\d.]+\\s*\\)$/i.test(color);\n}\n\nexport function isCssColor(color?: string): color is CssColor {\n return isHexColor(color) || isRgbaColor(color);\n}\n\n/**\n * This is a type predicate that will allow TypeScript to know that the string tested is a\n * key of the Colors object.\n */\nexport function isColorKey(color?: string): color is keyof typeof Colors {\n if (!color) {\n return false;\n }\n\n return Object.keys(Colors).includes(color);\n}\n\n/**\n * Validates a string as either a hex color or a color key.\n */\nexport function isValidColor(value: string): boolean {\n if (value === 'default') {\n return true;\n }\n\n if (isHexColor(value)) {\n return true;\n }\n\n // Normalize any strings to SCREAMING_CASE\n const normalizedKey = value.toUpperCase().replace(/-/g, '_');\n\n return isColorKey(normalizedKey);\n}\n","<template>\n <Transition mode=\"out-in\" name=\"fade\">\n <slot />\n </Transition>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({});\n</script>\n\n<style lang=\"scss\" scoped>\n.fade-enter-active,\n.fade-leave-active {\n transition: opacity 300ms ease-out;\n}\n\n.fade-enter,\n.fade-leave-to {\n opacity: 0;\n}\n</style>\n","import type { MaybeRefOrGetter, Ref } from 'vue';\nimport { computed, toValue } from 'vue';\n\nimport Colors, {\n type CssColor,\n isColorKey,\n isCssColor,\n} from '@propelinc/citrus-ui/src/colors/colors';\n\n/**\n * Maps from a color name or hex code to its corresponding CSS color value.\n * Gray neutrals resolve to rgba(); other palette colors are hex.\n *\n * @param name - The color to resolve. Can be in kebab case, SCREAMING_SNAKE_CASE, or a hex code from the palette.\n * @returns The CSS color value (hex or rgba) and whether the color is valid.\n */\nexport function useCssColor(name: MaybeRefOrGetter<string | undefined>): {\n cssColor: Ref<CssColor | undefined>;\n isValidColor: Ref<boolean>;\n} {\n const normalizedColor = computed(() =>\n isCssColor(toValue(name)) ? (toValue(name)?.toLowerCase() as CssColor) : undefined\n );\n const normalizedName = computed(() => {\n if (!toValue(name)) {\n return undefined;\n }\n\n // If it is a CSS color already, we don't need to know its name\n if (isCssColor(toValue(name))) {\n return undefined;\n }\n\n return toValue(name)?.replace(/-/g, '_').toUpperCase();\n });\n\n const cssColor = computed(() => {\n // If we're given a color key, return the palette value (hex or rgba)\n if (normalizedName.value && isColorKey(normalizedName.value)) {\n return Colors[normalizedName.value];\n }\n\n // If we're given a CSS color AND it's in the palette, return it\n if (\n isCssColor(normalizedColor.value) &&\n Object.values(Colors).includes(normalizedColor.value)\n ) {\n return normalizedColor.value;\n }\n\n return undefined;\n });\n\n const isValidColor = computed(() => {\n return cssColor.value !== undefined;\n });\n\n return { cssColor, isValidColor };\n}\n","<template>\n <span\n :aria-label=\"accessibleText || $t('Loading...')\"\n class=\"c-loader\"\n :data-size=\"computedSize\"\n data-test=\"loader\"\n role=\"progressbar\"\n :style=\"{\n '--indicator-color': indicatorColorCode,\n '--loader-size': SIZE_TO_FONT_SIZE[computedSize],\n '--track-color': trackColorCode,\n '--track-width': SIZE_TO_TRACK_WIDTH[computedSize],\n }\"\n >\n <svg class=\"c-loader__svg\">\n <circle class=\"c-loader__track\" />\n <circle class=\"c-loader__indicator\" />\n </svg>\n </span>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, computed, defineComponent } from 'vue';\n\nimport Colors, { type HexColor, isValidColor } from '@propelinc/citrus-ui/src/colors/colors';\nimport { useCssColor } from '@propelinc/citrus-ui/src/composables/colors';\n\ntype Size = 'sm' | 'md' | 'lg';\n\nconst SIZE_TO_FONT_SIZE: Record<Size, `${number}px`> = {\n sm: '20px',\n md: '26px',\n lg: '32px',\n};\n\nconst SIZE_TO_TRACK_WIDTH: Record<Size, `${number}px`> = {\n sm: '2.5px',\n md: '3px',\n lg: '3px',\n};\n\nexport default defineComponent({\n props: {\n /** Customizes screen reader only text alternative, should be translated */\n accessibleText: { type: String, default: undefined },\n /** Sets the color of the indicator of the loader */\n color: {\n type: String as PropType<HexColor | keyof typeof Colors>,\n default: 'default',\n validator: isValidColor,\n },\n /** @deprecated Shows a smaller version of the loading icon */\n small: { type: Boolean, default: false },\n /** Sets the size of the loader */\n size: { type: String as PropType<Size>, default: 'lg' },\n /** Sets the color of the track of the loader */\n trackColor: {\n type: String as PropType<HexColor | keyof typeof Colors>,\n default: 'default',\n validator: isValidColor,\n },\n },\n setup(props) {\n const computedColor = computed(() => {\n return props.color === 'default' ? 'black' : props.color;\n });\n\n const computedTrackColor = computed(() => {\n // If _any_ trackColor is provided, use that\n if (props.trackColor !== 'default') {\n return props.trackColor;\n }\n\n // trackColor is 'default', determine which default color it should use\n if (props.color === 'white' || props.color === Colors.WHITE) {\n return 'gray-500';\n }\n\n return 'gray-200';\n });\n\n const computedSize = computed((): Size => {\n if (props.small) {\n return 'sm';\n }\n return props.size;\n });\n\n const { cssColor: indicatorColorCode } = useCssColor(computedColor);\n const { cssColor: trackColorCode } = useCssColor(computedTrackColor);\n\n return {\n computedSize,\n indicatorColorCode,\n SIZE_TO_FONT_SIZE,\n SIZE_TO_TRACK_WIDTH,\n trackColorCode,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n.c-loader {\n display: inline-flex;\n font-size: var(--loader-size);\n height: 1em;\n width: 1em;\n\n &__svg {\n flex: 1 1 auto;\n height: 100%;\n overflow: visible;\n width: 100%;\n }\n\n &__indicator,\n &__track {\n cx: 0.5em;\n cy: 0.5em;\n fill: none;\n r: calc(0.5em - var(--track-width) / 2);\n stroke-width: var(--track-width);\n }\n\n &__indicator {\n animation: spin 2000ms linear infinite;\n stroke: var(--indicator-color);\n stroke-dasharray: 150% 75%;\n stroke-linecap: round;\n transform-origin: 50% 50%;\n }\n\n &__track {\n stroke: var(--track-color);\n transform-origin: 0% 0%;\n }\n\n @keyframes spin {\n 0% {\n stroke-dasharray: 0.05em 3em;\n transform: rotate(0deg);\n }\n\n 50% {\n stroke-dasharray: 1.375em 1.375em;\n transform: rotate(450deg);\n }\n\n 100% {\n stroke-dasharray: 0.05em 3em;\n transform: rotate(1080deg);\n }\n }\n}\n</style>\n","import type { InjectionKey, Ref } from 'vue';\n\nexport const TERTIARY = Symbol('tertiary') as InjectionKey<Ref<boolean>>;\nexport const INHERIT_COLOR = Symbol('inherit-color') as InjectionKey<Ref<boolean>>;\n","<template>\n <header\n data-test=\"app-bar\"\n class=\"c-app-bar\"\n :class=\"{\n 'c-app-bar--fixed': fixed,\n 'c-app-bar--border': border,\n }\"\n :style=\"{\n '--c-app-bar-background-color': bgCssColor,\n '--c-app-bar-color': textCssColor,\n }\"\n :data-background-color=\"bgCssColor\"\n :data-color=\"textCssColor\"\n >\n <div class=\"c-app-bar__left\" data-test=\"app-bar-left\">\n <slot name=\"left\" />\n </div>\n\n <div data-test=\"app-bar-title\" class=\"c-app-bar__title\">\n <CFadeTransition>\n <CLoader\n v-if=\"loading\"\n key=\"loader\"\n data-test=\"app-bar-loader\"\n class=\"c-app-bar__loader\"\n small\n :color=\"textCssColor\"\n :accessible-text=\"loaderAccessibleText\"\n />\n <h1\n v-else-if=\"!loading && title\"\n key=\"title\"\n class=\"c-app-bar__title-content\"\n data-test=\"app-bar-title-text\"\n >\n {{ title }}\n </h1>\n <div v-else key=\"slot\" class=\"c-app-bar__title-content\">\n <slot name=\"title\" />\n </div>\n </CFadeTransition>\n </div>\n\n <div class=\"c-app-bar__right\" data-test=\"app-bar-right\">\n <slot name=\"right\" />\n </div>\n </header>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, provide, ref } from 'vue';\n\nimport type { HexColor } from '@propelinc/citrus-ui/src/colors/colors';\nimport Colors, {\n isHexColor,\n isRgbaColor,\n isValidColor,\n} from '@propelinc/citrus-ui/src/colors/colors';\nimport CFadeTransition from '@propelinc/citrus-ui/src/components/CFadeTransition.vue';\nimport CLoader from '@propelinc/citrus-ui/src/components/CLoader.vue';\nimport { useCssColor } from '@propelinc/citrus-ui/src/composables/colors';\nimport {\n INHERIT_COLOR as INHERIT_COLOR_ICON_BUTTON,\n TERTIARY as TERTIARY_ICON_BUTTON,\n} from '@propelinc/citrus-ui/src/services/injections/icon-buttons';\n\nexport default defineComponent({\n components: { CLoader, CFadeTransition },\n props: {\n /**\n * Used to set the background color of the app bar. Needs to accept either a hex code or a\n * a valid color key from the Colors object.\n */\n backgroundColor: {\n type: String as PropType<HexColor | keyof typeof Colors>,\n default: 'default',\n validator: isValidColor,\n },\n color: {\n type: String as PropType<HexColor | keyof typeof Colors>,\n default: undefined,\n validator: isValidColor,\n },\n /** If true, the app bar will be fixed to the top of the viewport. */\n fixed: { type: Boolean, default: false },\n /** If true, the app bar will have a bottom border. */\n border: { type: Boolean, default: false },\n /** Shows text in the center of the component. Typically used for page names. Overrides the title slot. */\n title: { type: String, default: '' },\n /** Shows a loading spinner. Overrides the title slot. */\n loading: { type: Boolean, default: false },\n /** Adds screen reader only text alternative to loading icon, text should be translated */\n loaderAccessibleText: { type: String, default: '' },\n },\n setup(props) {\n provide(TERTIARY_ICON_BUTTON, ref(true));\n provide(INHERIT_COLOR_ICON_BUTTON, ref(true));\n\n const initialBackgroundColor = computed(() => {\n if (props.backgroundColor === 'default') {\n return Colors.WHITE;\n }\n\n return props.backgroundColor;\n });\n\n const { cssColor: bgCssColor } = useCssColor(initialBackgroundColor);\n\n /**\n * This text color is computed based on the background color's luminance.\n * Dark backgrounds get white text, light backgrounds get black text.\n * Supports both hex and rgba (e.g. gray palette); rgba is composited over white for luminance.\n *\n * This is overridden by the `color` prop.\n */\n const calculatedTextColor = computed(() => {\n const color = bgCssColor.value;\n if (!color) {\n return Colors.BLACK;\n }\n\n let r: number;\n let g: number;\n let b: number;\n\n if (isHexColor(color)) {\n const hex = color.substring(1);\n const fullHex = hex.length === 3 ? hex.replace(/(.)/g, '$1$1') : hex;\n r = parseInt(fullHex.substring(0, 2), 16) / 255;\n g = parseInt(fullHex.substring(2, 4), 16) / 255;\n b = parseInt(fullHex.substring(4, 6), 16) / 255;\n } else if (isRgbaColor(color)) {\n const match = color.match(\n /^rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*([\\d.]+)\\s*\\)$/i\n );\n if (!match) {\n return Colors.BLACK;\n }\n const ra = Number(match[1]) / 255;\n const ga = Number(match[2]) / 255;\n const ba = Number(match[3]) / 255;\n const a = Number(match[4]);\n // Composite over white to get effective RGB for luminance\n r = ra * a + (1 - a);\n g = ga * a + (1 - a);\n b = ba * a + (1 - a);\n } else {\n return Colors.BLACK;\n }\n\n // Calculate relative luminance using sRGB coefficients\n const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n // Use white text if background is dark enough (luminance < 0.5)\n return luminance < 0.5 ? Colors.WHITE : Colors.BLACK;\n });\n\n const { cssColor: userTextCssColor } = useCssColor(() => props.color);\n\n const textCssColor = computed(() => {\n if (userTextCssColor.value) {\n return userTextCssColor.value;\n }\n\n return calculatedTextColor.value;\n });\n\n return { bgCssColor, textCssColor };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/typography';\n\n@mixin app-bar-button-container {\n align-items: center;\n display: flex;\n flex: none;\n min-width: $button-size-medium;\n}\n\n.c-app-bar {\n align-items: center;\n background-color: var(--c-app-bar-background-color);\n color: var(--c-app-bar-color);\n display: flex;\n gap: 8px;\n height: $app-bar-height;\n padding: 0 8px;\n}\n\n.c-app-bar--fixed {\n left: 0;\n position: fixed;\n right: 0;\n top: env(safe-area-inset-top);\n z-index: 5;\n}\n\n.c-app-bar--border {\n border-bottom: $border;\n}\n\n.c-app-bar__left {\n @include app-bar-button-container;\n\n justify-content: flex-start;\n}\n\n.c-app-bar__right {\n @include app-bar-button-container;\n\n justify-content: flex-end;\n}\n\n.c-app-bar__title {\n @include subheadline;\n\n flex: auto;\n overflow: hidden;\n text-align: center;\n}\n\n.c-app-bar__loader {\n // Vertically center the loader\n transform: translateY(3px);\n}\n\n.c-app-bar__title-content {\n @include subheadline;\n @include text-overflow-ellipsis;\n}\n</style>\n","<template>\n <span\n class=\"c-badge\"\n :data-test=\"dataTest\"\n :data-color=\"color\"\n :data-text-color=\"textColor\"\n :style=\"computedStyle\"\n >\n <slot>\n {{ text }}\n </slot>\n </span>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent } from 'vue';\n\nimport { useCssColor } from '@propelinc/citrus-ui/src/composables/colors';\n\nexport default defineComponent({\n props: {\n /** Sets the text of the badge, can also use default slot */\n text: { type: String, default: undefined },\n /** Adds a unique data-test attribute for testing to the container */\n dataTest: { type: String, default: 'badge' },\n /** Sets the background color */\n color: { type: String, default: 'purple-200' },\n /** Sets the text color */\n textColor: { type: String, default: 'text-primary' },\n },\n setup(props) {\n const { cssColor: backgroundCssColor } = useCssColor(() => props.color);\n const { cssColor: textCssColor } = useCssColor(() => props.textColor);\n\n const computedStyle = computed(() => {\n const style: Record<string, string> = {};\n\n if (backgroundCssColor.value) {\n style['--c-badge-background-color'] = backgroundCssColor.value;\n }\n\n if (textCssColor.value) {\n style['--c-badge-text-color'] = textCssColor.value;\n }\n\n return style;\n });\n\n return { computedStyle };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-badge {\n --height: 24px;\n\n @include eyebrow;\n\n background-color: var(--c-badge-background-color);\n border: none;\n border-radius: 4px;\n color: var(--c-badge-text-color);\n display: inline-block;\n height: var(--height);\n\n // Override the line-height of the eyebrow mixin so the text is vertically centered\n line-height: var(--height);\n padding-inline: 12px;\n white-space: nowrap;\n}\n</style>\n","// src/components/drawer/drawer.styles.ts\nimport { css } from \"lit\";\nvar drawer_styles_default = css`\n :host {\n --size: 25rem;\n --header-spacing: var(--sl-spacing-large);\n --body-spacing: var(--sl-spacing-large);\n --footer-spacing: var(--sl-spacing-large);\n\n display: contents;\n }\n\n .drawer {\n top: 0;\n inset-inline-start: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n }\n\n .drawer--contained {\n position: absolute;\n z-index: initial;\n }\n\n .drawer--fixed {\n position: fixed;\n z-index: var(--sl-z-index-drawer);\n }\n\n .drawer__panel {\n position: absolute;\n display: flex;\n flex-direction: column;\n z-index: 2;\n max-width: 100%;\n max-height: 100%;\n background-color: var(--sl-panel-background-color);\n box-shadow: var(--sl-shadow-x-large);\n overflow: auto;\n pointer-events: all;\n }\n\n .drawer__panel:focus {\n outline: none;\n }\n\n .drawer--top .drawer__panel {\n top: 0;\n inset-inline-end: auto;\n bottom: auto;\n inset-inline-start: 0;\n width: 100%;\n height: var(--size);\n }\n\n .drawer--end .drawer__panel {\n top: 0;\n inset-inline-end: 0;\n bottom: auto;\n inset-inline-start: auto;\n width: var(--size);\n height: 100%;\n }\n\n .drawer--bottom .drawer__panel {\n top: auto;\n inset-inline-end: auto;\n bottom: 0;\n inset-inline-start: 0;\n width: 100%;\n height: var(--size);\n }\n\n .drawer--start .drawer__panel {\n top: 0;\n inset-inline-end: auto;\n bottom: auto;\n inset-inline-start: 0;\n width: var(--size);\n height: 100%;\n }\n\n .drawer__header {\n display: flex;\n }\n\n .drawer__title {\n flex: 1 1 auto;\n font: inherit;\n font-size: var(--sl-font-size-large);\n line-height: var(--sl-line-height-dense);\n padding: var(--header-spacing);\n margin: 0;\n }\n\n .drawer__header-actions {\n flex-shrink: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: end;\n gap: var(--sl-spacing-2x-small);\n padding: 0 var(--header-spacing);\n }\n\n .drawer__header-actions sl-icon-button,\n .drawer__header-actions ::slotted(sl-icon-button) {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--sl-font-size-medium);\n }\n\n .drawer__body {\n flex: 1 1 auto;\n display: block;\n padding: var(--body-spacing);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n }\n\n .drawer__footer {\n text-align: right;\n padding: var(--footer-spacing);\n }\n\n .drawer__footer ::slotted(sl-button:not(:last-of-type)) {\n margin-inline-end: var(--sl-spacing-x-small);\n }\n\n .drawer:not(.drawer--has-footer) .drawer__footer {\n display: none;\n }\n\n .drawer__overlay {\n display: block;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--sl-overlay-background-color);\n pointer-events: all;\n }\n\n .drawer--contained .drawer__overlay {\n display: none;\n }\n\n @media (forced-colors: active) {\n .drawer__panel {\n border: solid 1px var(--sl-color-neutral-0);\n }\n }\n`;\n\nexport {\n drawer_styles_default\n};\n","// src/internal/tabbable.ts\nvar computedStyleMap = /* @__PURE__ */ new WeakMap();\nfunction getCachedComputedStyle(el) {\n let computedStyle = computedStyleMap.get(el);\n if (!computedStyle) {\n computedStyle = window.getComputedStyle(el, null);\n computedStyleMap.set(el, computedStyle);\n }\n return computedStyle;\n}\nfunction isVisible(el) {\n if (typeof el.checkVisibility === \"function\") {\n return el.checkVisibility({ checkOpacity: false, checkVisibilityCSS: true });\n }\n const computedStyle = getCachedComputedStyle(el);\n return computedStyle.visibility !== \"hidden\" && computedStyle.display !== \"none\";\n}\nfunction isOverflowingAndTabbable(el) {\n const computedStyle = getCachedComputedStyle(el);\n const { overflowY, overflowX } = computedStyle;\n if (overflowY === \"scroll\" || overflowX === \"scroll\") {\n return true;\n }\n if (overflowY !== \"auto\" || overflowX !== \"auto\") {\n return false;\n }\n const isOverflowingY = el.scrollHeight > el.clientHeight;\n if (isOverflowingY && overflowY === \"auto\") {\n return true;\n }\n const isOverflowingX = el.scrollWidth > el.clientWidth;\n if (isOverflowingX && overflowX === \"auto\") {\n return true;\n }\n return false;\n}\nfunction isTabbable(el) {\n const tag = el.tagName.toLowerCase();\n const tabindex = Number(el.getAttribute(\"tabindex\"));\n const hasTabindex = el.hasAttribute(\"tabindex\");\n if (hasTabindex && (isNaN(tabindex) || tabindex <= -1)) {\n return false;\n }\n if (el.hasAttribute(\"disabled\")) {\n return false;\n }\n if (el.closest(\"[inert]\")) {\n return false;\n }\n if (tag === \"input\" && el.getAttribute(\"type\") === \"radio\" && !el.hasAttribute(\"checked\")) {\n return false;\n }\n if (!isVisible(el)) {\n return false;\n }\n if ((tag === \"audio\" || tag === \"video\") && el.hasAttribute(\"controls\")) {\n return true;\n }\n if (el.hasAttribute(\"tabindex\")) {\n return true;\n }\n if (el.hasAttribute(\"contenteditable\") && el.getAttribute(\"contenteditable\") !== \"false\") {\n return true;\n }\n const isNativelyTabbable = [\n \"button\",\n \"input\",\n \"select\",\n \"textarea\",\n \"a\",\n \"audio\",\n \"video\",\n \"summary\",\n \"iframe\"\n ].includes(tag);\n if (isNativelyTabbable) {\n return true;\n }\n return isOverflowingAndTabbable(el);\n}\nfunction getTabbableBoundary(root) {\n var _a, _b;\n const tabbableElements = getTabbableElements(root);\n const start = (_a = tabbableElements[0]) != null ? _a : null;\n const end = (_b = tabbableElements[tabbableElements.length - 1]) != null ? _b : null;\n return { start, end };\n}\nfunction getSlottedChildrenOutsideRootElement(slotElement, root) {\n var _a;\n return ((_a = slotElement.getRootNode({ composed: true })) == null ? void 0 : _a.host) !== root;\n}\nfunction getTabbableElements(root) {\n const walkedEls = /* @__PURE__ */ new WeakMap();\n const tabbableElements = [];\n function walk(el) {\n if (el instanceof Element) {\n if (el.hasAttribute(\"inert\") || el.closest(\"[inert]\")) {\n return;\n }\n if (walkedEls.has(el)) {\n return;\n }\n walkedEls.set(el, true);\n if (!tabbableElements.includes(el) && isTabbable(el)) {\n tabbableElements.push(el);\n }\n if (el instanceof HTMLSlotElement && getSlottedChildrenOutsideRootElement(el, root)) {\n el.assignedElements({ flatten: true }).forEach((assignedEl) => {\n walk(assignedEl);\n });\n }\n if (el.shadowRoot !== null && el.shadowRoot.mode === \"open\") {\n walk(el.shadowRoot);\n }\n }\n for (const e of el.children) {\n walk(e);\n }\n }\n walk(root);\n return tabbableElements.sort((a, b) => {\n const aTabindex = Number(a.getAttribute(\"tabindex\")) || 0;\n const bTabindex = Number(b.getAttribute(\"tabindex\")) || 0;\n return bTabindex - aTabindex;\n });\n}\n\nexport {\n getTabbableBoundary,\n getTabbableElements\n};\n","import {\n getTabbableElements\n} from \"./chunk.LXDTFLWU.js\";\nimport {\n __yieldStar\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/internal/active-elements.ts\nfunction* activeElements(activeElement = document.activeElement) {\n if (activeElement === null || activeElement === void 0)\n return;\n yield activeElement;\n if (\"shadowRoot\" in activeElement && activeElement.shadowRoot && activeElement.shadowRoot.mode !== \"closed\") {\n yield* __yieldStar(activeElements(activeElement.shadowRoot.activeElement));\n }\n}\nfunction getDeepestActiveElement() {\n return [...activeElements()].pop();\n}\n\n// src/internal/modal.ts\nvar activeModals = [];\nvar Modal = class {\n constructor(element) {\n this.tabDirection = \"forward\";\n this.handleFocusIn = () => {\n if (!this.isActive())\n return;\n this.checkFocus();\n };\n this.handleKeyDown = (event) => {\n var _a;\n if (event.key !== \"Tab\" || this.isExternalActivated)\n return;\n if (!this.isActive())\n return;\n const currentActiveElement = getDeepestActiveElement();\n this.previousFocus = currentActiveElement;\n if (this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus)) {\n return;\n }\n if (event.shiftKey) {\n this.tabDirection = \"backward\";\n } else {\n this.tabDirection = \"forward\";\n }\n const tabbableElements = getTabbableElements(this.element);\n let currentFocusIndex = tabbableElements.findIndex((el) => el === currentActiveElement);\n this.previousFocus = this.currentFocus;\n const addition = this.tabDirection === \"forward\" ? 1 : -1;\n while (true) {\n if (currentFocusIndex + addition >= tabbableElements.length) {\n currentFocusIndex = 0;\n } else if (currentFocusIndex + addition < 0) {\n currentFocusIndex = tabbableElements.length - 1;\n } else {\n currentFocusIndex += addition;\n }\n this.previousFocus = this.currentFocus;\n const nextFocus = (\n /** @type {HTMLElement} */\n tabbableElements[currentFocusIndex]\n );\n if (this.tabDirection === \"backward\") {\n if (this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus)) {\n return;\n }\n }\n if (nextFocus && this.possiblyHasTabbableChildren(nextFocus)) {\n return;\n }\n event.preventDefault();\n this.currentFocus = nextFocus;\n (_a = this.currentFocus) == null ? void 0 : _a.focus({ preventScroll: false });\n const allActiveElements = [...activeElements()];\n if (allActiveElements.includes(this.currentFocus) || !allActiveElements.includes(this.previousFocus)) {\n break;\n }\n }\n setTimeout(() => this.checkFocus());\n };\n this.handleKeyUp = () => {\n this.tabDirection = \"forward\";\n };\n this.element = element;\n this.elementsWithTabbableControls = [\"iframe\"];\n }\n /** Activates focus trapping. */\n activate() {\n activeModals.push(this.element);\n document.addEventListener(\"focusin\", this.handleFocusIn);\n document.addEventListener(\"keydown\", this.handleKeyDown);\n document.addEventListener(\"keyup\", this.handleKeyUp);\n }\n /** Deactivates focus trapping. */\n deactivate() {\n activeModals = activeModals.filter((modal) => modal !== this.element);\n this.currentFocus = null;\n document.removeEventListener(\"focusin\", this.handleFocusIn);\n document.removeEventListener(\"keydown\", this.handleKeyDown);\n document.removeEventListener(\"keyup\", this.handleKeyUp);\n }\n /** Determines if this modal element is currently active or not. */\n isActive() {\n return activeModals[activeModals.length - 1] === this.element;\n }\n /** Activates external modal behavior and temporarily disables focus trapping. */\n activateExternal() {\n this.isExternalActivated = true;\n }\n /** Deactivates external modal behavior and re-enables focus trapping. */\n deactivateExternal() {\n this.isExternalActivated = false;\n }\n checkFocus() {\n if (this.isActive() && !this.isExternalActivated) {\n const tabbableElements = getTabbableElements(this.element);\n if (!this.element.matches(\":focus-within\")) {\n const start = tabbableElements[0];\n const end = tabbableElements[tabbableElements.length - 1];\n const target = this.tabDirection === \"forward\" ? start : end;\n if (typeof (target == null ? void 0 : target.focus) === \"function\") {\n this.currentFocus = target;\n target.focus({ preventScroll: false });\n }\n }\n }\n }\n possiblyHasTabbableChildren(element) {\n return this.elementsWithTabbableControls.includes(element.tagName.toLowerCase()) || element.hasAttribute(\"controls\");\n }\n};\n\nexport {\n Modal\n};\n","// src/internal/offset.ts\nfunction getOffset(element, parent) {\n return {\n top: Math.round(element.getBoundingClientRect().top - parent.getBoundingClientRect().top),\n left: Math.round(element.getBoundingClientRect().left - parent.getBoundingClientRect().left)\n };\n}\n\n// src/internal/scroll.ts\nvar locks = /* @__PURE__ */ new Set();\nfunction getScrollbarWidth() {\n const documentWidth = document.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n}\nfunction getExistingBodyPadding() {\n const padding = Number(getComputedStyle(document.body).paddingRight.replace(/px/, \"\"));\n if (isNaN(padding) || !padding) {\n return 0;\n }\n return padding;\n}\nfunction lockBodyScrolling(lockingEl) {\n locks.add(lockingEl);\n if (!document.documentElement.classList.contains(\"sl-scroll-lock\")) {\n const scrollbarWidth = getScrollbarWidth() + getExistingBodyPadding();\n document.documentElement.classList.add(\"sl-scroll-lock\");\n document.documentElement.style.setProperty(\"--sl-scroll-lock-size\", `${scrollbarWidth}px`);\n }\n}\nfunction unlockBodyScrolling(lockingEl) {\n locks.delete(lockingEl);\n if (locks.size === 0) {\n document.documentElement.classList.remove(\"sl-scroll-lock\");\n document.documentElement.style.removeProperty(\"--sl-scroll-lock-size\");\n }\n}\nfunction scrollIntoView(element, container, direction = \"vertical\", behavior = \"smooth\") {\n const offset = getOffset(element, container);\n const offsetTop = offset.top + container.scrollTop;\n const offsetLeft = offset.left + container.scrollLeft;\n const minX = container.scrollLeft;\n const maxX = container.scrollLeft + container.offsetWidth;\n const minY = container.scrollTop;\n const maxY = container.scrollTop + container.offsetHeight;\n if (direction === \"horizontal\" || direction === \"both\") {\n if (offsetLeft < minX) {\n container.scrollTo({ left: offsetLeft, behavior });\n } else if (offsetLeft + element.clientWidth > maxX) {\n container.scrollTo({ left: offsetLeft - container.offsetWidth + element.clientWidth, behavior });\n }\n }\n if (direction === \"vertical\" || direction === \"both\") {\n if (offsetTop < minY) {\n container.scrollTo({ top: offsetTop, behavior });\n } else if (offsetTop + element.clientHeight > maxY) {\n container.scrollTo({ top: offsetTop - container.offsetHeight + element.clientHeight, behavior });\n }\n }\n}\n\nexport {\n lockBodyScrolling,\n unlockBodyScrolling,\n scrollIntoView\n};\n","// src/components/icon-button/icon-button.styles.ts\nimport { css } from \"lit\";\nvar icon_button_styles_default = css`\n :host {\n display: inline-block;\n color: var(--sl-color-neutral-600);\n }\n\n .icon-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--sl-border-radius-medium);\n font-size: inherit;\n color: inherit;\n padding: var(--sl-spacing-x-small);\n cursor: pointer;\n transition: var(--sl-transition-x-fast) color;\n -webkit-appearance: none;\n }\n\n .icon-button:hover:not(.icon-button--disabled),\n .icon-button:focus-visible:not(.icon-button--disabled) {\n color: var(--sl-color-primary-600);\n }\n\n .icon-button:active:not(.icon-button--disabled) {\n color: var(--sl-color-primary-700);\n }\n\n .icon-button:focus {\n outline: none;\n }\n\n .icon-button--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .icon-button:focus-visible {\n outline: var(--sl-focus-ring);\n outline-offset: var(--sl-focus-ring-offset);\n }\n\n .icon-button__icon {\n pointer-events: none;\n }\n`;\n\nexport {\n icon_button_styles_default\n};\n","import{html as t,svg as r,mathml as e}from\"./lit-html.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst a=Symbol.for(\"\"),o=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i=(t,...r)=>({_$litStatic$:r.reduce((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\\n take care to ensure page security.`)})(e)+t[a+1],t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=!1;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o(i));)c+=s+r[++$],f=!0;$!==a&&u.push(i),n.push(c),$++}if($===a&&n.push(r[a]),f){const t=n.join(\"$$lit$$\");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u}return t(r,...e)},u=n(t),c=n(r),$=n(e);export{u as html,i as literal,$ as mathml,c as svg,s as unsafeStatic,n as withStatic};\n//# sourceMappingURL=static.js.map\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import {\n icon_button_styles_default\n} from \"./chunk.6I2T3DLI.js\";\nimport {\n SlIcon\n} from \"./chunk.H33C3MRM.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/icon-button/icon-button.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html, literal } from \"lit/static-html.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { property, query, state } from \"lit/decorators.js\";\nvar SlIconButton = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.hasFocus = false;\n this.label = \"\";\n this.disabled = false;\n }\n handleBlur() {\n this.hasFocus = false;\n this.emit(\"sl-blur\");\n }\n handleFocus() {\n this.hasFocus = true;\n this.emit(\"sl-focus\");\n }\n handleClick(event) {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n /** Simulates a click on the icon button. */\n click() {\n this.button.click();\n }\n /** Sets focus on the icon button. */\n focus(options) {\n this.button.focus(options);\n }\n /** Removes focus from the icon button. */\n blur() {\n this.button.blur();\n }\n render() {\n const isLink = this.href ? true : false;\n const tag = isLink ? literal`a` : literal`button`;\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n \"icon-button\": true,\n \"icon-button--disabled\": !isLink && this.disabled,\n \"icon-button--focused\": this.hasFocus\n })}\n ?disabled=${ifDefined(isLink ? void 0 : this.disabled)}\n type=${ifDefined(isLink ? void 0 : \"button\")}\n href=${ifDefined(isLink ? this.href : void 0)}\n target=${ifDefined(isLink ? this.target : void 0)}\n download=${ifDefined(isLink ? this.download : void 0)}\n rel=${ifDefined(isLink && this.target ? \"noreferrer noopener\" : void 0)}\n role=${ifDefined(isLink ? void 0 : \"button\")}\n aria-disabled=${this.disabled ? \"true\" : \"false\"}\n aria-label=\"${this.label}\"\n tabindex=${this.disabled ? \"-1\" : \"0\"}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @click=${this.handleClick}\n >\n <sl-icon\n class=\"icon-button__icon\"\n name=${ifDefined(this.name)}\n library=${ifDefined(this.library)}\n src=${ifDefined(this.src)}\n aria-hidden=\"true\"\n ></sl-icon>\n </${tag}>\n `;\n }\n};\nSlIconButton.styles = [component_styles_default, icon_button_styles_default];\nSlIconButton.dependencies = { \"sl-icon\": SlIcon };\n__decorateClass([\n query(\".icon-button\")\n], SlIconButton.prototype, \"button\", 2);\n__decorateClass([\n state()\n], SlIconButton.prototype, \"hasFocus\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"name\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"library\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"src\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"href\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"target\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"download\", 2);\n__decorateClass([\n property()\n], SlIconButton.prototype, \"label\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlIconButton.prototype, \"disabled\", 2);\n\nexport {\n SlIconButton\n};\n","// src/internal/slot.ts\nvar HasSlotController = class {\n constructor(host, ...slotNames) {\n this.slotNames = [];\n this.handleSlotChange = (event) => {\n const slot = event.target;\n if (this.slotNames.includes(\"[default]\") && !slot.name || slot.name && this.slotNames.includes(slot.name)) {\n this.host.requestUpdate();\n }\n };\n (this.host = host).addController(this);\n this.slotNames = slotNames;\n }\n hasDefaultSlot() {\n return [...this.host.childNodes].some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node;\n const tagName = el.tagName.toLowerCase();\n if (tagName === \"sl-visually-hidden\") {\n return false;\n }\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n return false;\n });\n }\n hasNamedSlot(name) {\n return this.host.querySelector(`:scope > [slot=\"${name}\"]`) !== null;\n }\n test(slotName) {\n return slotName === \"[default]\" ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);\n }\n hostConnected() {\n this.host.shadowRoot.addEventListener(\"slotchange\", this.handleSlotChange);\n }\n hostDisconnected() {\n this.host.shadowRoot.removeEventListener(\"slotchange\", this.handleSlotChange);\n }\n};\nfunction getTextContent(slot) {\n if (!slot) {\n return \"\";\n }\n const nodes = slot.assignedNodes({ flatten: true });\n let text = \"\";\n [...nodes].forEach((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n text += node.textContent;\n }\n });\n return text;\n}\n\nexport {\n HasSlotController,\n getTextContent\n};\n","import {\n drawer_styles_default\n} from \"./chunk.BRQKZQRB.js\";\nimport {\n Modal\n} from \"./chunk.ODFLWOL6.js\";\nimport {\n lockBodyScrolling,\n unlockBodyScrolling\n} from \"./chunk.BTENR4BI.js\";\nimport {\n SlIconButton\n} from \"./chunk.WQ4LAAP4.js\";\nimport {\n getAnimation,\n setDefaultAnimation\n} from \"./chunk.DHU6MIVB.js\";\nimport {\n waitForEvent\n} from \"./chunk.B4BZKR24.js\";\nimport {\n animateTo,\n stopAnimations\n} from \"./chunk.LHI6QEL2.js\";\nimport {\n LocalizeController\n} from \"./chunk.WLV3FVBR.js\";\nimport {\n HasSlotController\n} from \"./chunk.NYIIDP5N.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/drawer/drawer.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { property, query } from \"lit/decorators.js\";\n\n// src/internal/string.ts\nfunction uppercaseFirstLetter(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\n// src/components/drawer/drawer.component.ts\nvar SlDrawer = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.hasSlotController = new HasSlotController(this, \"footer\");\n this.localize = new LocalizeController(this);\n this.modal = new Modal(this);\n this.open = false;\n this.label = \"\";\n this.placement = \"end\";\n this.contained = false;\n this.noHeader = false;\n this.handleDocumentKeyDown = (event) => {\n if (this.contained) {\n return;\n }\n if (event.key === \"Escape\" && this.modal.isActive() && this.open) {\n event.stopImmediatePropagation();\n this.requestClose(\"keyboard\");\n }\n };\n }\n firstUpdated() {\n this.drawer.hidden = !this.open;\n if (this.open) {\n this.addOpenListeners();\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n }\n }\n disconnectedCallback() {\n var _a;\n super.disconnectedCallback();\n unlockBodyScrolling(this);\n (_a = this.closeWatcher) == null ? void 0 : _a.destroy();\n }\n requestClose(source) {\n const slRequestClose = this.emit(\"sl-request-close\", {\n cancelable: true,\n detail: { source }\n });\n if (slRequestClose.defaultPrevented) {\n const animation = getAnimation(this, \"drawer.denyClose\", { dir: this.localize.dir() });\n animateTo(this.panel, animation.keyframes, animation.options);\n return;\n }\n this.hide();\n }\n addOpenListeners() {\n var _a;\n if (\"CloseWatcher\" in window) {\n (_a = this.closeWatcher) == null ? void 0 : _a.destroy();\n if (!this.contained) {\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => this.requestClose(\"keyboard\");\n }\n } else {\n document.addEventListener(\"keydown\", this.handleDocumentKeyDown);\n }\n }\n removeOpenListeners() {\n var _a;\n document.removeEventListener(\"keydown\", this.handleDocumentKeyDown);\n (_a = this.closeWatcher) == null ? void 0 : _a.destroy();\n }\n async handleOpenChange() {\n if (this.open) {\n this.emit(\"sl-show\");\n this.addOpenListeners();\n this.originalTrigger = document.activeElement;\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n const autoFocusTarget = this.querySelector(\"[autofocus]\");\n if (autoFocusTarget) {\n autoFocusTarget.removeAttribute(\"autofocus\");\n }\n await Promise.all([stopAnimations(this.drawer), stopAnimations(this.overlay)]);\n this.drawer.hidden = false;\n requestAnimationFrame(() => {\n const slInitialFocus = this.emit(\"sl-initial-focus\", { cancelable: true });\n if (!slInitialFocus.defaultPrevented) {\n if (autoFocusTarget) {\n autoFocusTarget.focus({ preventScroll: true });\n } else {\n this.panel.focus({ preventScroll: true });\n }\n }\n if (autoFocusTarget) {\n autoFocusTarget.setAttribute(\"autofocus\", \"\");\n }\n });\n const panelAnimation = getAnimation(this, `drawer.show${uppercaseFirstLetter(this.placement)}`, {\n dir: this.localize.dir()\n });\n const overlayAnimation = getAnimation(this, \"drawer.overlay.show\", { dir: this.localize.dir() });\n await Promise.all([\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options),\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options)\n ]);\n this.emit(\"sl-after-show\");\n } else {\n this.emit(\"sl-hide\");\n this.removeOpenListeners();\n if (!this.contained) {\n this.modal.deactivate();\n unlockBodyScrolling(this);\n }\n await Promise.all([stopAnimations(this.drawer), stopAnimations(this.overlay)]);\n const panelAnimation = getAnimation(this, `drawer.hide${uppercaseFirstLetter(this.placement)}`, {\n dir: this.localize.dir()\n });\n const overlayAnimation = getAnimation(this, \"drawer.overlay.hide\", { dir: this.localize.dir() });\n await Promise.all([\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options).then(() => {\n this.overlay.hidden = true;\n }),\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options).then(() => {\n this.panel.hidden = true;\n })\n ]);\n this.drawer.hidden = true;\n this.overlay.hidden = false;\n this.panel.hidden = false;\n const trigger = this.originalTrigger;\n if (typeof (trigger == null ? void 0 : trigger.focus) === \"function\") {\n setTimeout(() => trigger.focus());\n }\n this.emit(\"sl-after-hide\");\n }\n }\n handleNoModalChange() {\n if (this.open && !this.contained) {\n this.modal.activate();\n lockBodyScrolling(this);\n }\n if (this.open && this.contained) {\n this.modal.deactivate();\n unlockBodyScrolling(this);\n }\n }\n /** Shows the drawer. */\n async show() {\n if (this.open) {\n return void 0;\n }\n this.open = true;\n return waitForEvent(this, \"sl-after-show\");\n }\n /** Hides the drawer */\n async hide() {\n if (!this.open) {\n return void 0;\n }\n this.open = false;\n return waitForEvent(this, \"sl-after-hide\");\n }\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n drawer: true,\n \"drawer--open\": this.open,\n \"drawer--top\": this.placement === \"top\",\n \"drawer--end\": this.placement === \"end\",\n \"drawer--bottom\": this.placement === \"bottom\",\n \"drawer--start\": this.placement === \"start\",\n \"drawer--contained\": this.contained,\n \"drawer--fixed\": !this.contained,\n \"drawer--rtl\": this.localize.dir() === \"rtl\",\n \"drawer--has-footer\": this.hasSlotController.test(\"footer\")\n })}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" @click=${() => this.requestClose(\"overlay\")} tabindex=\"-1\"></div>\n\n <div\n part=\"panel\"\n class=\"drawer__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden=${this.open ? \"false\" : \"true\"}\n aria-label=${ifDefined(this.noHeader ? this.label : void 0)}\n aria-labelledby=${ifDefined(!this.noHeader ? \"title\" : void 0)}\n tabindex=\"0\"\n >\n ${!this.noHeader ? html`\n <header part=\"header\" class=\"drawer__header\">\n <h2 part=\"title\" class=\"drawer__title\" id=\"title\">\n <!-- If there's no label, use an invisible character to prevent the header from collapsing -->\n <slot name=\"label\"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>\n </h2>\n <div part=\"header-actions\" class=\"drawer__header-actions\">\n <slot name=\"header-actions\"></slot>\n <sl-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"drawer__close\"\n name=\"x-lg\"\n label=${this.localize.term(\"close\")}\n library=\"system\"\n @click=${() => this.requestClose(\"close-button\")}\n ></sl-icon-button>\n </div>\n </header>\n ` : \"\"}\n\n <slot part=\"body\" class=\"drawer__body\"></slot>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n};\nSlDrawer.styles = [component_styles_default, drawer_styles_default];\nSlDrawer.dependencies = { \"sl-icon-button\": SlIconButton };\n__decorateClass([\n query(\".drawer\")\n], SlDrawer.prototype, \"drawer\", 2);\n__decorateClass([\n query(\".drawer__panel\")\n], SlDrawer.prototype, \"panel\", 2);\n__decorateClass([\n query(\".drawer__overlay\")\n], SlDrawer.prototype, \"overlay\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlDrawer.prototype, \"open\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlDrawer.prototype, \"label\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlDrawer.prototype, \"placement\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlDrawer.prototype, \"contained\", 2);\n__decorateClass([\n property({ attribute: \"no-header\", type: Boolean, reflect: true })\n], SlDrawer.prototype, \"noHeader\", 2);\n__decorateClass([\n watch(\"open\", { waitUntilFirstUpdate: true })\n], SlDrawer.prototype, \"handleOpenChange\", 1);\n__decorateClass([\n watch(\"contained\", { waitUntilFirstUpdate: true })\n], SlDrawer.prototype, \"handleNoModalChange\", 1);\nsetDefaultAnimation(\"drawer.showTop\", {\n keyframes: [\n { opacity: 0, translate: \"0 -100%\" },\n { opacity: 1, translate: \"0 0\" }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"drawer.hideTop\", {\n keyframes: [\n { opacity: 1, translate: \"0 0\" },\n { opacity: 0, translate: \"0 -100%\" }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"drawer.showEnd\", {\n keyframes: [\n { opacity: 0, translate: \"100%\" },\n { opacity: 1, translate: \"0\" }\n ],\n rtlKeyframes: [\n { opacity: 0, translate: \"-100%\" },\n { opacity: 1, translate: \"0\" }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"drawer.hideEnd\", {\n keyframes: [\n { opacity: 1, translate: \"0\" },\n { opacity: 0, translate: \"100%\" }\n ],\n rtlKeyframes: [\n { opacity: 1, translate: \"0\" },\n { opacity: 0, translate: \"-100%\" }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"drawer.showBottom\", {\n keyframes: [\n { opacity: 0, translate: \"0 100%\" },\n { opacity: 1, translate: \"0 0\" }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"drawer.hideBottom\", {\n keyframes: [\n { opacity: 1, translate: \"0 0\" },\n { opacity: 0, translate: \"0 100%\" }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"drawer.showStart\", {\n keyframes: [\n { opacity: 0, translate: \"-100%\" },\n { opacity: 1, translate: \"0\" }\n ],\n rtlKeyframes: [\n { opacity: 0, translate: \"100%\" },\n { opacity: 1, translate: \"0\" }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"drawer.hideStart\", {\n keyframes: [\n { opacity: 1, translate: \"0\" },\n { opacity: 0, translate: \"-100%\" }\n ],\n rtlKeyframes: [\n { opacity: 1, translate: \"0\" },\n { opacity: 0, translate: \"100%\" }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"drawer.denyClose\", {\n keyframes: [{ scale: 1 }, { scale: 1.01 }, { scale: 1 }],\n options: { duration: 250 }\n});\nsetDefaultAnimation(\"drawer.overlay.show\", {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\nsetDefaultAnimation(\"drawer.overlay.hide\", {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n\nexport {\n SlDrawer\n};\n","import {\n SlDrawer\n} from \"./chunk.GWXFL5AT.js\";\n\n// src/components/drawer/drawer.ts\nvar drawer_default = SlDrawer;\nSlDrawer.define(\"sl-drawer\");\n\nexport {\n drawer_default\n};\n","import type { InjectionKey, Ref } from 'vue';\n\nexport const BLOCK = Symbol('block') as InjectionKey<Ref<boolean>>;\nexport const LARGE = Symbol('large') as InjectionKey<Ref<boolean>>;\nexport const BOUNCE_AMOUNT = Symbol('bounce-amount') as InjectionKey<number>;\n","<template>\n <component :is=\"tag\" class=\"c-button-stack\" data-test=\"c-button-stack\">\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, provide, ref, toRefs } from 'vue';\n\nimport { BLOCK, LARGE } from '@propelinc/citrus-ui/src/services/injections/buttons';\n\nexport default defineComponent({\n props: {\n tag: { type: String, default: 'div' },\n large: { type: Boolean, default: null },\n },\n setup(props) {\n const { large } = toRefs(props);\n\n provide(BLOCK, ref(true));\n provide(LARGE, large);\n },\n});\n</script>\n\n<style scoped>\n/**\n * FIXME: https://linear.app/slanden/issue/FE-37/remove-exported-margins\n * These are exported margins, would be preferable to use a Flex column with gap instead\n */\n:deep() {\n .c-button + .c-button {\n margin-top: 8px;\n }\n}\n</style>\n","import type { DebouncedFunc } from 'lodash';\nimport { debounce } from 'lodash';\nimport type { Directive } from 'vue';\n\ninterface ScrollIntoViewElement extends HTMLElement {\n scrollDirective?: {\n focusable: HTMLInputElement | HTMLTextAreaElement;\n scrollIfNeeded: DebouncedFunc<() => void>;\n focusListener: () => void;\n blurListener: () => void;\n };\n}\n\n// NOTE(mohan): This is to support browsers without visualViewport.\nconst getViewport = (): Window | VisualViewport => window.visualViewport ?? window;\n\nconst scrollToElement = (element: Element): void => {\n const rect = element.getBoundingClientRect();\n const windowHeight = window.innerHeight || document.documentElement.clientHeight;\n\n // Check if element is obscured by header or footer\n const appHeight = document.getElementById('app')?.clientHeight;\n const estimatedHeaderHeight =\n document.getElementsByClassName('app-bar c-app-bar')[0]?.clientHeight || 64;\n const estimatedFooterHeight =\n document.getElementsByClassName('c-fixed-page-footer')[0]?.clientHeight ||\n document.getElementsByClassName('scrollable-footer')[0]?.clientHeight ||\n 0;\n const contentStartY = appHeight\n ? windowHeight - (appHeight - estimatedHeaderHeight)\n : estimatedHeaderHeight;\n const contentEndY = windowHeight - estimatedFooterHeight;\n\n const isObscuredByHeader = rect.top < contentStartY;\n const isObscuredByFooter = rect.bottom > contentEndY;\n\n if (isObscuredByHeader || isObscuredByFooter) {\n element.scrollIntoView({ behavior: 'smooth', block: 'center' });\n }\n};\n\n/**\n * This directive scrolls the element into view when the input inside it is focused.\n *\n * It also listens for viewport size changes, so it can scroll again if the keyboard pops up.\n */\nexport const scrollIntoView: Directive = {\n beforeMount(el: ScrollIntoViewElement): void {\n const inputEl = el.querySelector('input,textarea');\n if (!inputEl) {\n return;\n }\n\n el.scrollDirective = {\n focusable: inputEl as HTMLInputElement | HTMLTextAreaElement,\n scrollIfNeeded: debounce((): void => {\n scrollToElement(el);\n }, 300),\n focusListener: (): void => {\n if (el.scrollDirective) {\n el.scrollDirective.scrollIfNeeded();\n // When focused, we track the viewport size, so we can scroll again if the keyboard pops up.\n getViewport().addEventListener('resize', el.scrollDirective.scrollIfNeeded);\n }\n },\n blurListener: (): void => {\n if (el.scrollDirective) {\n el.scrollDirective.scrollIfNeeded.cancel();\n getViewport().removeEventListener('resize', el.scrollDirective.scrollIfNeeded);\n }\n },\n };\n\n inputEl.addEventListener('focus', el.scrollDirective!.focusListener);\n inputEl.addEventListener('blur', el.scrollDirective!.blurListener);\n },\n\n unmounted(el: ScrollIntoViewElement): void {\n if (el.scrollDirective) {\n el.scrollDirective.scrollIfNeeded.cancel();\n el.scrollDirective.focusable.removeEventListener('focus', el.scrollDirective.focusListener);\n el.scrollDirective.focusable.removeEventListener('blur', el.scrollDirective.blurListener);\n getViewport().removeEventListener('resize', el.scrollDirective.scrollIfNeeded);\n }\n },\n};\n","import { ref } from 'vue';\nimport type { Directive, DirectiveBinding } from 'vue';\n\nimport { useTapAnimation } from '../../composables/animation';\n\ninterface TapAnimationValue {\n bounceAmount?: number;\n}\n\ninterface TapAnimationElement extends HTMLElement {\n __tapAnimationCleanup?: () => void;\n}\n\nconst DEFAULT_BOUNCE_AMOUNT = 0.94;\n\nfunction setupTapAnimation(el: HTMLElement, bounceAmount: number): void {\n const animationListeners = useTapAnimation({\n el: ref(el),\n keyframes: {\n default: { transform: 'scale(1)' },\n pressed: { transform: `scale(${bounceAmount})` },\n },\n });\n\n // Add event listeners\n Object.entries(animationListeners).forEach(([event, handler]) => {\n el.addEventListener(event, handler);\n });\n\n // The cleanup function is essential here to ensure that all event listeners added by the directive are removed\n // when the directive is unbound. Without this cleanup, the event listeners would remain attached to the element,\n // potentially causing memory leaks and unexpected behavior. This function is called in the 'unbind' hook to properly\n // clean up the element.\n (el as TapAnimationElement).__tapAnimationCleanup = (): void => {\n Object.entries(animationListeners).forEach(([event, handler]) => {\n el.removeEventListener(event, handler);\n });\n };\n}\n\nexport const tapAnimation: Directive<HTMLElement, TapAnimationValue> = {\n beforeMount(el: HTMLElement, binding: DirectiveBinding<TapAnimationValue>): void {\n // Check for reduced motion preference\n const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n if (prefersReducedMotion) {\n return;\n }\n\n const bounceAmount = binding.value?.bounceAmount ?? DEFAULT_BOUNCE_AMOUNT;\n setupTapAnimation(el, bounceAmount);\n },\n\n updated(el: HTMLElement, binding: DirectiveBinding<TapAnimationValue>): void {\n // Check for reduced motion preference\n const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n if (prefersReducedMotion) {\n return;\n }\n\n // If bounce amount changes, we need to re-mount the directive\n if (binding.value?.bounceAmount !== binding.oldValue?.bounceAmount) {\n (el as TapAnimationElement).__tapAnimationCleanup?.();\n const bounceAmount = binding.value?.bounceAmount ?? DEFAULT_BOUNCE_AMOUNT;\n setupTapAnimation(el, bounceAmount);\n }\n },\n\n unmounted(el: HTMLElement): void {\n (el as TapAnimationElement).__tapAnimationCleanup?.();\n },\n};\n","<template>\n <button\n v-tap-animation\n class=\"c-close-button\"\n data-test=\"c-close-button\"\n :aria-label=\"$t('Close')\"\n :disabled=\"disabled\"\n @click=\"onClick\"\n >\n <font-awesome-icon :icon=\"faXmark\" />\n </button>\n</template>\n\n<script setup lang=\"ts\">\nimport { faXmark } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\n\nimport { tapAnimation as vTapAnimation } from '@propelinc/citrus-ui/src/services/directives';\n\ndefineProps<{\n disabled?: boolean;\n}>();\n\nconst emit = defineEmits(['click', 'focus', 'blur']);\n\nconst onClick = (): void => {\n emit('click');\n};\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/button';\n\n.c-close-button {\n align-items: center;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n font-size: $font-size-icon-medium;\n height: 36px;\n justify-content: center;\n padding: 8px;\n width: 36px;\n\n @include button-theme-close;\n\n &:focus {\n /**\n * This is a workaround to get the focus ring to work with the button. Since we're not using Shoelace,\n * we need to use the focus ring styles from Shoelace. Long term, we should create a custom focus ring styles.\n */\n outline: var(--sl-focus-ring-width) solid var(--sl-focus-ring-color);\n outline-offset: var(--sl-focus-ring-offset);\n }\n}\n</style>\n","import type { Ref } from 'vue';\nimport { onBeforeUnmount, onMounted, ref, watch } from 'vue';\n\n// NOTE(mohan): A simplified port of vueuse/core's useResizeObserver.\n// vueuse has type errors because our version of vue is so old.\nexport function useResizeObserver(\n element: Ref<HTMLElement | null>,\n callback: (entries: ResizeObserverEntry[]) => void\n): void {\n if (!('ResizeObserver' in window)) {\n return;\n }\n\n let observer: ResizeObserver | null = null;\n\n watch(\n element,\n (value) => {\n if (value) {\n observer = new ResizeObserver(callback);\n observer.observe(value);\n }\n },\n { immediate: true }\n );\n\n onBeforeUnmount(() => {\n if (observer) {\n observer.disconnect();\n observer = null;\n }\n });\n}\n\nexport function useShoelaceShadowParts<T extends string>(\n shoelaceComponent: Ref<HTMLElement | null>,\n parts: T[]\n): Record<T, Ref<HTMLElement | null>> {\n const shadowParts = parts.reduce<Record<T, Ref<HTMLElement | null>>>(\n (acc, part) => {\n return { ...acc, [part]: ref<HTMLElement | null>(null) };\n },\n {} as Record<T, Ref<HTMLElement | null>>\n );\n\n onMounted(async () => {\n if (!shoelaceComponent.value) {\n return;\n }\n\n try {\n await customElements.whenDefined(shoelaceComponent.value.tagName.toLowerCase());\n } catch {\n // TODO: (kyleshevlin) we had to stub out Shoelace component in tests, which causes this to fail\n // because there is no tagName for the stubbed component\n // Silently handle error\n return;\n }\n\n // Make sure the component hasn't been destroyed at this point.\n const shadowRoot = shoelaceComponent.value?.shadowRoot;\n if (!shadowRoot) {\n return;\n }\n\n for (const part of parts) {\n shadowParts[part].value = shadowRoot.querySelector(`[part=\"${part}\"]`);\n }\n });\n\n return shadowParts;\n}\n","import type { Ref } from 'vue';\nimport { computed, onMounted, ref, watch } from 'vue';\n\nexport interface Coordinate {\n x: number;\n y: number;\n}\n\ninterface SimplifiedPointerEvent {\n position: Coordinate;\n timestamp: number;\n}\n\ntype DragCallback = (dragDetails: {\n /** How far the user has dragged in pixels */\n distance: Coordinate;\n /** Velocity of drag in pixels/ms */\n velocity: Coordinate;\n}) => void;\n\n/**\n * Listens for drag events on the provided element and tracks the distance and\n * velocity of the drag.\n *\n * @param element - The element to listen for drag events on.\n * @param options.onDragEnd - A callback that is called when the drag ends.\n * @returns An object containing the drag distance and velocity.\n */\nexport const useDragListener = (\n element: Ref<HTMLElement | null>,\n options?: {\n onDragEnd?: DragCallback;\n }\n): {\n dragDistance: Ref<Coordinate | null>;\n dragVelocity: Ref<Coordinate | null>;\n} => {\n const startDragTouch = ref<SimplifiedPointerEvent | null>(null);\n const lastDragTouch = ref<SimplifiedPointerEvent | null>(null);\n\n const dragVelocity = ref<Coordinate | null>(null);\n const dragDistance = computed(() => {\n if (!startDragTouch.value || !lastDragTouch.value) {\n return { x: 0, y: 0 };\n }\n return {\n x: lastDragTouch.value.position.x - startDragTouch.value.position.x,\n y: lastDragTouch.value.position.y - startDragTouch.value.position.y,\n };\n });\n\n const simplifyEvent = (event: TouchEvent): SimplifiedPointerEvent => {\n const { clientX: x, clientY: y } = event.touches[0];\n return { position: { x, y }, timestamp: event.timeStamp };\n };\n\n const touchStartListener = (event: TouchEvent): void => {\n startDragTouch.value = simplifyEvent(event);\n lastDragTouch.value = startDragTouch.value;\n };\n\n const touchMoveListener = (event: TouchEvent): void => {\n const newEvent = simplifyEvent(event);\n if (lastDragTouch.value) {\n const timeDelta = newEvent.timestamp - lastDragTouch.value.timestamp;\n dragVelocity.value = {\n x: (newEvent.position.x - lastDragTouch.value.position.x) / timeDelta,\n y: (newEvent.position.y - lastDragTouch.value.position.y) / timeDelta,\n };\n }\n lastDragTouch.value = newEvent;\n };\n\n const touchEndListener = (): void => {\n options?.onDragEnd?.({\n distance: dragDistance.value,\n velocity: dragVelocity.value ?? { x: 0, y: 0 },\n });\n startDragTouch.value = null;\n lastDragTouch.value = null;\n dragVelocity.value = null;\n };\n\n const addListeners = (element: HTMLElement | null): void => {\n if (element) {\n element.addEventListener('touchstart', touchStartListener);\n element.addEventListener('touchmove', touchMoveListener);\n element.addEventListener('touchend', touchEndListener);\n }\n };\n\n const removeListeners = (element: HTMLElement | null): void => {\n if (element) {\n element.removeEventListener('touchstart', touchStartListener);\n element.removeEventListener('touchmove', touchMoveListener);\n element.removeEventListener('touchend', touchEndListener);\n }\n };\n\n onMounted(async () => {\n addListeners(element.value);\n });\n\n watch(element, (newElement, oldElement) => {\n removeListeners(oldElement);\n addListeners(newElement);\n });\n\n return { dragDistance, dragVelocity };\n};\n\n/**\n * Adds listeners to the provided element to prevent it from emitting touch\n * events when it is scrolling.\n *\n * @param element - A scrollable element inside a draggable component.\n */\nexport const useScrollBoundary = (element: Ref<HTMLElement | null>): void => {\n const isScrolling = ref(false);\n const onScroll = (): void => {\n isScrolling.value = true;\n };\n\n const onTouchEvent = (event: TouchEvent): void => {\n if (isScrolling.value) {\n event.stopPropagation();\n }\n };\n const onTouchEnd = (event: TouchEvent): void => {\n onTouchEvent(event);\n isScrolling.value = false;\n };\n\n const addListeners = (element: HTMLElement | null): void => {\n if (element) {\n element.addEventListener('scroll', onScroll);\n element.addEventListener('touchstart', onTouchEvent);\n element.addEventListener('touchmove', onTouchEvent);\n element.addEventListener('touchend', onTouchEnd);\n }\n };\n\n const removeListeners = (element: HTMLElement | null): void => {\n if (element) {\n element.removeEventListener('scroll', onScroll);\n element.removeEventListener('touchstart', onTouchEvent);\n element.removeEventListener('touchmove', onTouchEvent);\n element.removeEventListener('touchend', onTouchEnd);\n }\n };\n\n onMounted(() => {\n addListeners(element.value);\n });\n\n watch(element, (newElement, oldElement) => {\n removeListeners(oldElement);\n addListeners(newElement);\n });\n};\n\n/**\n * Clamps a value in between the provided min and max values. As the value\n * increases above 0, it will approach the max, but will never reach it (and\n * vice versa for the min).\n *\n * This can be used to create a \"springy\" effect where as a user pulls further\n * on an element, it will move less and less.\n *\n * @param value - The value to clamp.\n * @param options.min - The minimum value to keep the value above.\n * @param options.max - The maximum value to keep the value below.\n * @param options.resistance - The resistance value which determines how quickly\n * the value approaches the min or max.\n * @returns The clamped value.\n */\nexport const useElasticClamp = (\n value: Ref<number | null>,\n options?: Ref<{ min?: number; max?: number; resistance?: number }>\n): Ref<number> => {\n return computed(() => {\n if (value.value === null) {\n return 0;\n }\n\n const resistance = options?.value?.resistance ?? 7;\n const { min, max } = options?.value ?? {};\n const absValue = Math.abs(value.value);\n if (min && value.value < 0) {\n return (min * absValue) / (absValue - min * resistance);\n } else if (max && value.value > 0) {\n return (max * absValue) / (absValue + max * resistance);\n } else {\n return value.value;\n }\n });\n};\n","import type { Ref, VNode } from 'vue';\nimport { Comment, Fragment, computed, useSlots } from 'vue';\n\n/**\n * Recursively checks if a VNode or its children are visible.\n */\nfunction isVisible(vnode: VNode): boolean {\n if (vnode.type === Comment) {\n return false;\n }\n\n // Handle fragments and templates recursively\n if (vnode.type === Fragment || vnode.type === 'template') {\n const children = vnode.children;\n\n // Empty fragment is not visible\n if (!children || (Array.isArray(children) && children.length === 0)) {\n return false;\n }\n\n // If fragment has children, check if any child is visible\n if (Array.isArray(children)) {\n return children.some((child) => {\n // Only check VNode children (filter out strings, numbers, etc.)\n if (typeof child === 'object' && child !== null && 'type' in child) {\n return isVisible(child as VNode);\n }\n // Non-VNode children (like strings) are considered visible\n return true;\n });\n }\n }\n\n // All other vnodes are visible\n return true;\n}\n\nexport function useSlotHasContent(key: string): Ref<boolean> {\n const slots = useSlots();\n\n return computed(() => {\n const slot = slots[key];\n\n if (!slot) {\n return false;\n }\n\n const slotContent = slot();\n\n // NOTE(slanden): In Vue 3, nodes which are rendered conditionally with v-if\n // are rendered as a comment like `<!--v-if--/>` when the condition is false.\n // We need to filter these out to get only actually rendered content.\n const visibleContent = slotContent.filter(isVisible);\n\n return visibleContent.length > 0;\n });\n}\n","import type { ElementAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';\n\nexport interface AnimationOptions {\n /** The starting progress through the animation from 0 to 1 */\n start?: number;\n /** The duration of the animation in milliseconds */\n duration?: number;\n /** The easing function to use for the animation */\n easing?: string;\n /** The endimum distance to slide */\n end?: number;\n}\n\nconst DEFAULT_DURATION = 300;\nconst DEFAULT_EASING = 'ease';\n\nexport function fadeIn({\n start = 0,\n duration = DEFAULT_DURATION,\n easing = DEFAULT_EASING,\n}: AnimationOptions = {}): ElementAnimation {\n return {\n keyframes: [\n { opacity: start, offset: 0 },\n { opacity: 1, offset: 1 },\n ],\n options: { duration, easing },\n };\n}\n\nexport function fadeOut({\n start = 0,\n duration = DEFAULT_DURATION,\n easing = DEFAULT_EASING,\n}: AnimationOptions = {}): ElementAnimation {\n return {\n keyframes: [\n { opacity: 1 - start, offset: 0 },\n { opacity: 0, offset: 1 },\n ],\n options: { duration, easing },\n };\n}\n\nexport function slideUp({\n start = 0,\n duration = DEFAULT_DURATION,\n easing = DEFAULT_EASING,\n}: AnimationOptions = {}): ElementAnimation {\n return {\n keyframes: [\n { translate: `0 ${(1 - start) * 100}%`, offset: 0 },\n { translate: '0 0', offset: 1 },\n ],\n options: { duration, easing },\n };\n}\n\nexport function slideDown({\n start = 0,\n duration = DEFAULT_DURATION,\n easing = DEFAULT_EASING,\n}: AnimationOptions = {}): ElementAnimation {\n return {\n keyframes: [\n { translate: `0 ${start * 100}%`, offset: 0 },\n { translate: '0 100%', offset: 1 },\n ],\n options: { duration, easing },\n };\n}\n\nexport function slideRight({\n start = 0,\n duration = DEFAULT_DURATION,\n easing = DEFAULT_EASING,\n end = 1,\n}: AnimationOptions = {}): ElementAnimation {\n return {\n keyframes: [\n { translate: `${start * 100}% 0`, offset: 0 },\n { translate: `${end * 100}% 0`, offset: 1 },\n ],\n options: { duration, easing },\n };\n}\n\nexport function slideLeft({\n start = 0,\n duration = DEFAULT_DURATION,\n easing = DEFAULT_EASING,\n end = 1,\n}: AnimationOptions = {}): ElementAnimation {\n return {\n keyframes: [\n { translate: `${-start * 100}% 0`, offset: 0 },\n { translate: `${-end * 100}% 0`, offset: 1 },\n ],\n options: { duration, easing },\n };\n}\n","<!-- eslint-disable vue/no-deprecated-slot-attribute -->\n<template>\n <!--\n For no-header prop below:\n See https://vuejs.org/guide/extras/web-components#passing-dom-properties\n Shoelace does not seem to properly specify the no-header prop; otherwise\n a false value resolves to no-header=\"false\" which is actually truthy\n -->\n <sl-drawer\n ref=\"sheet\"\n class=\"c-bottom-sheet\"\n :class=\"{\n 'c-bottom-sheet--hide-overlay': !overlay,\n 'c-bottom-sheet--hide-title': hideTitle,\n 'c-bottom-sheet--with-footer': footerHasContent,\n 'c-bottom-sheet--with-dismiss': isDismissVisible,\n }\"\n :style=\"{\n '--panel-transform': panelTransform,\n '--background-color-hex-code': backgroundCssColor,\n '--overlay-opacity': overlayOpacity,\n '--size': fixedSize || undefined,\n }\"\n :data-test=\"getDataTestAttr()\"\n :open=\"animatedValue || undefined\"\n :no-header=\"hideTitle || undefined\"\n :label=\"ariaLabel\"\n placement=\"bottom\"\n :contained=\"contained || undefined\"\n :divided=\"divided || undefined\"\n @sl-request-close=\"onRequestClose\"\n @sl-hide=\"handleDismiss\"\n @sl-after-hide=\"onAfterClose\"\n @sl-after-show=\"$emit('opened')\"\n >\n <div slot=\"label\" :data-test=\"value ? `${dataTest}-title` : null\">\n <slot name=\"header\">{{ title }}</slot>\n </div>\n\n <slot name=\"image\" />\n\n <div class=\"c-bottom-sheet__body\" :data-test=\"getDataTestAttr('body')\">\n <slot name=\"body\" />\n </div>\n\n <!-- NOTE(andrew): This renders in the body when the title is hidden because the header-actions\n slot is not rendered when the title is hidden. Previously this only rendered in the body but\n this caused issues on iOS where a scrollable body renders in a separate layer and the button\n got rendered invisibly underneath the header. This is intentionally placed after the body so\n it renders on top. -->\n <div\n v-if=\"isDismissVisible\"\n :slot=\"hideTitle ? undefined : 'header-actions'\"\n class=\"c-bottom-sheet__actions\"\n >\n <c-close-button\n :data-test=\"getDataTestAttr('dismiss')\"\n :disabled=\"disableDismiss\"\n @click=\"internalValue = false\"\n />\n </div>\n\n <CButtonStack v-if=\"footerHasContent\" slot=\"footer\" :data-test=\"getDataTestAttr('footer')\">\n <slot name=\"footer\" />\n </CButtonStack>\n </sl-drawer>\n</template>\n\n<script lang=\"ts\">\nimport { faXmark } from '@fortawesome/pro-regular-svg-icons';\nimport '@shoelace-style/shoelace/dist/components/drawer/drawer.js';\nimport type SlDrawer from '@shoelace-style/shoelace/dist/components/drawer/drawer.js';\nimport type { ElementAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';\nimport { setAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';\nimport type { Ref } from 'vue';\nimport { computed, defineComponent, nextTick, onMounted, ref, toRefs } from 'vue';\n\nimport CButtonStack from '@propelinc/citrus-ui/src/components/CButtonStack.vue';\nimport CCloseButton from '@propelinc/citrus-ui/src/components/internal/CCloseButton.vue';\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\nimport { useCssColor } from '@propelinc/citrus-ui/src/composables/colors';\nimport { useShoelaceShadowParts } from '@propelinc/citrus-ui/src/composables/elements';\nimport {\n useDragListener,\n useElasticClamp,\n useScrollBoundary,\n} from '@propelinc/citrus-ui/src/composables/gestures';\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\nimport { fadeIn, fadeOut, slideDown, slideUp } from '@propelinc/citrus-ui/src/services/animation';\n\n/** Minimum distance, in pixels, the user has to drag for it to be considered a\n * successful swipe. */\nconst MIN_SWIPE_DISTANCE = 100;\n/** The minimum speed, in pixels per millisecond, the user has to drag down for\n * it to be considered a successful swipe. */\nconst MIN_SWIPE_VELOCITY = 0.75;\n/** The minimum speed, in pixels per millisecond, to animate the sheet sliding\n * down after a successful swipe. */\nconst MIN_DISMISS_VELOCITY = 1.5;\n/** Minimum duration, in milliseconds, for the slide down animation after a\n * successful drag. */\nconst MIN_DISMISS_DURATION = 100;\n/** Maximum distance the sheet can move in a direction it can't be dragged. */\nconst DRAG_CLAMP_DISTANCE = 240;\n/** Fallback height for the sheet if the actual height is unknown. */\nconst SHEET_HEIGHT_FALLBACK = 300;\n\n/**\n * Was having issues with the useShoelaceAnimation composable not updating the animation quickly\n * enough using the `watch` or `watchEffect` hooks, so we're just going to set the animations\n * directly whenever we need to change the animation.\n */\nfunction setCustomAnimation(\n el: Ref<Element | null>,\n name: string,\n animation: ElementAnimation\n): void {\n if (!el.value) {\n return;\n }\n\n setAnimation(el.value, name, animation);\n}\n\nexport default defineComponent({\n components: { CButtonStack, CCloseButton },\n props: {\n /** Aria label for the bottom sheet. This is required if title is hidden */\n ariaLabel: { type: String, default: '' },\n /** Background color of the bottom sheet */\n backgroundColor: { type: String, default: '' },\n /** Prefix for test selectors */\n dataTest: { type: String, default: 'bottom-sheet' },\n /** Disables the dismiss button */\n disableDismiss: { type: Boolean, default: false },\n /** Divided into header, body, and footer slots */\n divided: { type: Boolean, default: false },\n /** Fixed size, in CSS units. By default the drawer sizes itself to its contents. */\n fixedSize: { type: String, default: '' },\n /** Hides the dismiss 'x' button */\n hideDismiss: { type: Boolean, default: false },\n /** Allows for hiding the entire title bar, both the title and the dismiss 'x' button */\n hideTitle: { type: Boolean, default: false },\n /** Toggles the background behind the sheet. If there's no overlay, the sheet\n * stays open as the user interacts with background content.' */\n overlay: { type: Boolean, default: true },\n /** Prevents the sheet from being dismissed when tapping on the overlay. If\n * there is no overlay then this property is ignored, as the sheet always\n * stays open. */\n persistent: { type: Boolean, default: false },\n /** If true, the bottom sheet will be contained within the viewport. */\n contained: { type: Boolean, default: false },\n /** Do not animate in the bottom sheet if it starts open. */\n skipInitialAnimation: { type: Boolean, default: false },\n /** The title of the bottom sheet */\n title: { type: String, default: '' },\n /** Controls whether or not the bottom sheet is showing */\n value: { type: Boolean, default: false },\n },\n emits: ['input', 'opened', 'closed'],\n setup(props, { emit }) {\n // NOTE(slanden): Temporarily disabling because it's causing a lot of errors\n // in the console - uses from CMS aren't specifying aria-label.\n // watchEffect(() => {\n // if (props.hideTitle && !props.ariaLabel) {\n // console.error('CBottomSheet: aria-label is required when title is hidden');\n // }\n // });\n\n // value: Value provided using props which can open/close the bottom sheet.\n // internalValue: Tracks the open/closed state and lets the bottom sheet open and close even if\n // the external value doesn't change.\n // animatedValue: Same as internalValue but starts at false so the bottom sheet animates if it\n // starts in an open state.\n const { value } = toRefs(props);\n const internalValue = useInternalValue(value, { onChange: (value) => emit('input', value) });\n const mounted = ref(false);\n const animatedValue = computed(() => {\n // To animate in the bottom sheet we mount the component with the sheet closed.\n if (!props.skipInitialAnimation && !mounted.value) {\n return false;\n }\n return internalValue.value;\n });\n const { cssColor: backgroundCssColor } = useCssColor(() => props.backgroundColor);\n onMounted(async () => {\n // The bottom sheet does not animate unless we wait a tick. We don't know exactly why this\n // is necessary.\n await nextTick();\n mounted.value = true;\n });\n\n const sheet = ref<SlDrawer | null>(null);\n const { panel, overlay, body } = useShoelaceShadowParts(sheet, ['panel', 'overlay', 'body']);\n useScrollBoundary(body);\n\n // NOTE(mohan): There are three parts to the bottom sheet animation:\n // 1. CSS variables. These are used when we want to set the exact height and\n // opacity, i.e. when the user is actively moving the sheet.\n // 2. The built-in Shoelace show and hide animations. If a user has swiped\n // the sheet away, we calculate the exact animation that will smoothly\n // continue the swipe and then dismiss the shoelace drawer.\n // 3. Manually-called web animations. These are used when the sheet is being\n // restored to its original position after a drag that was not fast or\n // long enough to count as a swipe.\n setCustomAnimation(sheet, 'drawer.showBottom', slideUp());\n setCustomAnimation(sheet, 'drawer.overlay.show', fadeIn());\n setCustomAnimation(sheet, 'drawer.hideBottom', slideDown());\n setCustomAnimation(sheet, 'drawer.overlay.hide', fadeOut());\n\n const handleDismiss = (): void => {\n internalValue.value = false;\n };\n\n const onRequestClose = (event: Event): void => {\n if (props.persistent) {\n event.preventDefault();\n }\n };\n\n const onAfterClose = (): void => {\n // Reset the exit animations in case they were changed in a drag event\n setCustomAnimation(sheet, 'drawer.hideBottom', slideDown());\n setCustomAnimation(sheet, 'drawer.overlay.hide', fadeOut());\n emit('closed');\n };\n\n /**\n * Helper function to calculate the distance ratio of the sheet's transform.\n */\n const getTransformDistanceRatio = (distance: number): number => {\n return distance / (panel.value?.clientHeight ?? SHEET_HEIGHT_FALLBACK);\n };\n\n const { dragDistance } = useDragListener(panel, {\n onDragEnd: async ({ distance, velocity }) => {\n const shouldDismiss =\n !props.persistent && (distance.y > MIN_SWIPE_DISTANCE || velocity.y > MIN_SWIPE_VELOCITY);\n\n if (shouldDismiss) {\n const remainingDismissDistance = panel.value!.clientHeight - dragDistance.value!.y;\n const dismissDuration = Math.max(\n remainingDismissDistance / Math.max(velocity.y, MIN_DISMISS_VELOCITY),\n MIN_DISMISS_DURATION\n );\n const dismissStart = getTransformDistanceRatio(distance.y);\n\n // Here we set the custom animations to complete the dismissal animation smoothly\n // from the point where the user ended their drag event.\n setCustomAnimation(\n sheet,\n 'drawer.hideBottom',\n slideDown({ start: dismissStart, duration: dismissDuration })\n );\n setCustomAnimation(\n sheet,\n 'drawer.overlay.hide',\n fadeOut({ start: dismissStart, duration: dismissDuration })\n );\n handleDismiss();\n } else {\n /**\n * This is when the user's drag event fails to trigger a dismissal\n * We need to restore the sheet to its original position\n */\n const start = 1 - getTransformDistanceRatio(dragDistance.value!.y);\n const slideUpAnimation = slideUp({ start });\n const fadeInAnimation = fadeIn({ start });\n\n // Here we imperatively animate the sheet and overlay back to their original positions\n panel.value?.animate(slideUpAnimation.keyframes, slideUpAnimation.options);\n overlay.value?.animate(fadeInAnimation.keyframes, fadeInAnimation.options);\n }\n },\n });\n\n /**\n * The distance that the sheet has been currently dragged\n */\n const transformDistance = useElasticClamp(\n computed(() => dragDistance.value?.y ?? 0),\n computed(() => ({\n min: -DRAG_CLAMP_DISTANCE,\n max: props.persistent ? DRAG_CLAMP_DISTANCE : undefined,\n }))\n );\n\n const transformDistanceRatio = computed(() =>\n getTransformDistanceRatio(transformDistance.value)\n );\n\n const panelTransform = computed(() => `translateY(${transformDistance.value}px)`);\n\n const overlayOpacity = computed(() => {\n const result = 1 - transformDistanceRatio.value;\n\n if (isNaN(result)) {\n return 1;\n }\n\n return result;\n });\n\n // NOTE(mohan): We show data-test attributes only when the sheet is open.\n // This helps simplify testing assertions.\n const getDataTestAttr = (suffix?: string): string | null => {\n const dataTest = suffix ? `${props.dataTest}-${suffix}` : props.dataTest;\n return internalValue.value ? dataTest : null;\n };\n\n const footerHasContent = useSlotHasContent('footer');\n\n const isDismissVisible = computed(\n () => (!props.persistent && !props.hideDismiss) || props.disableDismiss\n );\n\n return {\n backgroundCssColor,\n animatedValue,\n dragDistance,\n faXmark,\n footerHasContent,\n getDataTestAttr,\n handleDismiss,\n internalValue,\n isDismissVisible,\n onRequestClose,\n overlayOpacity,\n panelTransform,\n onAfterClose,\n sheet,\n transformDistance,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/a11y';\n\n.c-bottom-sheet {\n --size: auto;\n --header-spacing: 24px;\n --body-spacing: 0;\n --bottom-padding: max(env(safe-area-inset-bottom, 0px), 16px);\n --footer-spacing: 12px 24px var(--bottom-padding);\n\n &::part(header-actions) {\n padding: 0;\n }\n\n &::part(close-button) {\n @include sr-only;\n }\n\n &::part(panel) {\n background: var(--background-color-hex-code, $color-white);\n border-radius: 12px 12px 0 0;\n max-height: 90%;\n overflow: visible;\n transform: var(--panel-transform, none);\n\n &::after {\n background: var(--background-color-hex-code, $color-white);\n bottom: -100px;\n content: '';\n height: 101px;\n left: 0;\n position: absolute;\n right: 0;\n }\n }\n\n &::part(body) {\n border-radius: 12px 12px 0 0;\n\n /**\n * NOTE (kyleshevlin) adding position: relative here fixed an issue where certain actions (like\n * clicking a checkbox) would hijack the bottom sheet body up and off the screen.\n */\n position: relative;\n }\n\n &::part(title) {\n @include large-headline;\n\n padding-bottom: 16px;\n }\n\n // Note(kayliegh): Add space to prevent long titles from colliding with dismiss button\n &--with-dismiss::part(title) {\n margin-right: 28px;\n }\n\n &::part(overlay) {\n opacity: var(--overlay-opacity, 1);\n }\n}\n\n.c-bottom-sheet__actions {\n position: absolute;\n right: 16px;\n top: 16px;\n}\n\n.c-bottom-sheet__body {\n padding: 0 24px var(--bottom-padding);\n\n // NOTE(andrew): When there is a footer the bottom inset is handled by the footer and we just add\n // spacing above the footer.\n .c-bottom-sheet--with-footer & {\n padding-bottom: 12px;\n }\n}\n\n.c-bottom-sheet--hide-title {\n // NOTE(mohan): When there is no title, we need to add some spacing to the top\n // of the body so it doesn't touch the top of the panel.\n .c-bottom-sheet__body {\n padding-top: 16px;\n }\n}\n\n.c-bottom-sheet--hide-overlay {\n &::part(overlay) {\n display: none;\n }\n}\n</style>\n","// src/components/spinner/spinner.styles.ts\nimport { css } from \"lit\";\nvar spinner_styles_default = css`\n :host {\n --track-width: 2px;\n --track-color: rgb(128 128 128 / 25%);\n --indicator-color: var(--sl-color-primary-600);\n --speed: 2s;\n\n display: inline-flex;\n width: 1em;\n height: 1em;\n flex: none;\n }\n\n .spinner {\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n }\n\n .spinner__track,\n .spinner__indicator {\n fill: none;\n stroke-width: var(--track-width);\n r: calc(0.5em - var(--track-width) / 2);\n cx: 0.5em;\n cy: 0.5em;\n transform-origin: 50% 50%;\n }\n\n .spinner__track {\n stroke: var(--track-color);\n transform-origin: 0% 0%;\n }\n\n .spinner__indicator {\n stroke: var(--indicator-color);\n stroke-linecap: round;\n stroke-dasharray: 150% 75%;\n animation: spin var(--speed) linear infinite;\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n stroke-dasharray: 0.05em, 3em;\n }\n\n 50% {\n transform: rotate(450deg);\n stroke-dasharray: 1.375em, 1.375em;\n }\n\n 100% {\n transform: rotate(1080deg);\n stroke-dasharray: 0.05em, 3em;\n }\n }\n`;\n\nexport {\n spinner_styles_default\n};\n","import {\n spinner_styles_default\n} from \"./chunk.7DUCI5S4.js\";\nimport {\n LocalizeController\n} from \"./chunk.WLV3FVBR.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\n\n// src/components/spinner/spinner.component.ts\nimport { html } from \"lit\";\nvar SlSpinner = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.localize = new LocalizeController(this);\n }\n render() {\n return html`\n <svg part=\"base\" class=\"spinner\" role=\"progressbar\" aria-label=${this.localize.term(\"loading\")}>\n <circle class=\"spinner__track\"></circle>\n <circle class=\"spinner__indicator\"></circle>\n </svg>\n `;\n }\n};\nSlSpinner.styles = [component_styles_default, spinner_styles_default];\n\nexport {\n SlSpinner\n};\n","import {\n __spreadProps,\n __spreadValues\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/internal/form.ts\nvar formCollections = /* @__PURE__ */ new WeakMap();\nvar reportValidityOverloads = /* @__PURE__ */ new WeakMap();\nvar checkValidityOverloads = /* @__PURE__ */ new WeakMap();\nvar userInteractedControls = /* @__PURE__ */ new WeakSet();\nvar interactions = /* @__PURE__ */ new WeakMap();\nvar FormControlController = class {\n constructor(host, options) {\n this.handleFormData = (event) => {\n const disabled = this.options.disabled(this.host);\n const name = this.options.name(this.host);\n const value = this.options.value(this.host);\n const isButton = this.host.tagName.toLowerCase() === \"sl-button\";\n if (this.host.isConnected && !disabled && !isButton && typeof name === \"string\" && name.length > 0 && typeof value !== \"undefined\") {\n if (Array.isArray(value)) {\n value.forEach((val) => {\n event.formData.append(name, val.toString());\n });\n } else {\n event.formData.append(name, value.toString());\n }\n }\n };\n this.handleFormSubmit = (event) => {\n var _a;\n const disabled = this.options.disabled(this.host);\n const reportValidity = this.options.reportValidity;\n if (this.form && !this.form.noValidate) {\n (_a = formCollections.get(this.form)) == null ? void 0 : _a.forEach((control) => {\n this.setUserInteracted(control, true);\n });\n }\n if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n this.handleFormReset = () => {\n this.options.setValue(this.host, this.options.defaultValue(this.host));\n this.setUserInteracted(this.host, false);\n interactions.set(this.host, []);\n };\n this.handleInteraction = (event) => {\n const emittedEvents = interactions.get(this.host);\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n if (emittedEvents.length === this.options.assumeInteractionOn.length) {\n this.setUserInteracted(this.host, true);\n }\n };\n this.checkFormValidity = () => {\n if (this.form && !this.form.noValidate) {\n const elements = this.form.querySelectorAll(\"*\");\n for (const element of elements) {\n if (typeof element.checkValidity === \"function\") {\n if (!element.checkValidity()) {\n return false;\n }\n }\n }\n }\n return true;\n };\n this.reportFormValidity = () => {\n if (this.form && !this.form.noValidate) {\n const elements = this.form.querySelectorAll(\"*\");\n for (const element of elements) {\n if (typeof element.reportValidity === \"function\") {\n if (!element.reportValidity()) {\n return false;\n }\n }\n }\n }\n return true;\n };\n (this.host = host).addController(this);\n this.options = __spreadValues({\n form: (input) => {\n const formId = input.form;\n if (formId) {\n const root = input.getRootNode();\n const form = root.querySelector(`#${formId}`);\n if (form) {\n return form;\n }\n }\n return input.closest(\"form\");\n },\n name: (input) => input.name,\n value: (input) => input.value,\n defaultValue: (input) => input.defaultValue,\n disabled: (input) => {\n var _a;\n return (_a = input.disabled) != null ? _a : false;\n },\n reportValidity: (input) => typeof input.reportValidity === \"function\" ? input.reportValidity() : true,\n checkValidity: (input) => typeof input.checkValidity === \"function\" ? input.checkValidity() : true,\n setValue: (input, value) => input.value = value,\n assumeInteractionOn: [\"sl-input\"]\n }, options);\n }\n hostConnected() {\n const form = this.options.form(this.host);\n if (form) {\n this.attachForm(form);\n }\n interactions.set(this.host, []);\n this.options.assumeInteractionOn.forEach((event) => {\n this.host.addEventListener(event, this.handleInteraction);\n });\n }\n hostDisconnected() {\n this.detachForm();\n interactions.delete(this.host);\n this.options.assumeInteractionOn.forEach((event) => {\n this.host.removeEventListener(event, this.handleInteraction);\n });\n }\n hostUpdated() {\n const form = this.options.form(this.host);\n if (!form) {\n this.detachForm();\n }\n if (form && this.form !== form) {\n this.detachForm();\n this.attachForm(form);\n }\n if (this.host.hasUpdated) {\n this.setValidity(this.host.validity.valid);\n }\n }\n attachForm(form) {\n if (form) {\n this.form = form;\n if (formCollections.has(this.form)) {\n formCollections.get(this.form).add(this.host);\n } else {\n formCollections.set(this.form, /* @__PURE__ */ new Set([this.host]));\n }\n this.form.addEventListener(\"formdata\", this.handleFormData);\n this.form.addEventListener(\"submit\", this.handleFormSubmit);\n this.form.addEventListener(\"reset\", this.handleFormReset);\n if (!reportValidityOverloads.has(this.form)) {\n reportValidityOverloads.set(this.form, this.form.reportValidity);\n this.form.reportValidity = () => this.reportFormValidity();\n }\n if (!checkValidityOverloads.has(this.form)) {\n checkValidityOverloads.set(this.form, this.form.checkValidity);\n this.form.checkValidity = () => this.checkFormValidity();\n }\n } else {\n this.form = void 0;\n }\n }\n detachForm() {\n if (!this.form)\n return;\n const formCollection = formCollections.get(this.form);\n if (!formCollection) {\n return;\n }\n formCollection.delete(this.host);\n if (formCollection.size <= 0) {\n this.form.removeEventListener(\"formdata\", this.handleFormData);\n this.form.removeEventListener(\"submit\", this.handleFormSubmit);\n this.form.removeEventListener(\"reset\", this.handleFormReset);\n if (reportValidityOverloads.has(this.form)) {\n this.form.reportValidity = reportValidityOverloads.get(this.form);\n reportValidityOverloads.delete(this.form);\n }\n if (checkValidityOverloads.has(this.form)) {\n this.form.checkValidity = checkValidityOverloads.get(this.form);\n checkValidityOverloads.delete(this.form);\n }\n this.form = void 0;\n }\n }\n setUserInteracted(el, hasInteracted) {\n if (hasInteracted) {\n userInteractedControls.add(el);\n } else {\n userInteractedControls.delete(el);\n }\n el.requestUpdate();\n }\n doAction(type, submitter) {\n if (this.form) {\n const button = document.createElement(\"button\");\n button.type = type;\n button.style.position = \"absolute\";\n button.style.width = \"0\";\n button.style.height = \"0\";\n button.style.clipPath = \"inset(50%)\";\n button.style.overflow = \"hidden\";\n button.style.whiteSpace = \"nowrap\";\n if (submitter) {\n button.name = submitter.name;\n button.value = submitter.value;\n [\"formaction\", \"formenctype\", \"formmethod\", \"formnovalidate\", \"formtarget\"].forEach((attr) => {\n if (submitter.hasAttribute(attr)) {\n button.setAttribute(attr, submitter.getAttribute(attr));\n }\n });\n }\n this.form.append(button);\n button.click();\n button.remove();\n }\n }\n /** Returns the associated `<form>` element, if one exists. */\n getForm() {\n var _a;\n return (_a = this.form) != null ? _a : null;\n }\n /** Resets the form, restoring all the control to their default value */\n reset(submitter) {\n this.doAction(\"reset\", submitter);\n }\n /** Submits the form, triggering validation and form data injection. */\n submit(submitter) {\n this.doAction(\"submit\", submitter);\n }\n /**\n * Synchronously sets the form control's validity. Call this when you know the future validity but need to update\n * the host element immediately, i.e. before Lit updates the component in the next update.\n */\n setValidity(isValid) {\n const host = this.host;\n const hasInteracted = Boolean(userInteractedControls.has(host));\n const required = Boolean(host.required);\n host.toggleAttribute(\"data-required\", required);\n host.toggleAttribute(\"data-optional\", !required);\n host.toggleAttribute(\"data-invalid\", !isValid);\n host.toggleAttribute(\"data-valid\", isValid);\n host.toggleAttribute(\"data-user-invalid\", !isValid && hasInteracted);\n host.toggleAttribute(\"data-user-valid\", isValid && hasInteracted);\n }\n /**\n * Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything\n * that affects constraint validation changes so the component receives the correct validity states.\n */\n updateValidity() {\n const host = this.host;\n this.setValidity(host.validity.valid);\n }\n /**\n * Dispatches a non-bubbling, cancelable custom event of type `sl-invalid`.\n * If the `sl-invalid` event will be cancelled then the original `invalid`\n * event (which may have been passed as argument) will also be cancelled.\n * If no original `invalid` event has been passed then the `sl-invalid`\n * event will be cancelled before being dispatched.\n */\n emitInvalidEvent(originalInvalidEvent) {\n const slInvalidEvent = new CustomEvent(\"sl-invalid\", {\n bubbles: false,\n composed: false,\n cancelable: true,\n detail: {}\n });\n if (!originalInvalidEvent) {\n slInvalidEvent.preventDefault();\n }\n if (!this.host.dispatchEvent(slInvalidEvent)) {\n originalInvalidEvent == null ? void 0 : originalInvalidEvent.preventDefault();\n }\n }\n};\nvar validValidityState = Object.freeze({\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: true,\n valueMissing: false\n});\nvar valueMissingValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {\n valid: false,\n valueMissing: true\n}));\nvar customErrorValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {\n valid: false,\n customError: true\n}));\n\nexport {\n formCollections,\n FormControlController,\n validValidityState,\n valueMissingValidityState,\n customErrorValidityState\n};\n","// src/components/button/button.styles.ts\nimport { css } from \"lit\";\nvar button_styles_default = css`\n :host {\n display: inline-block;\n position: relative;\n width: auto;\n cursor: pointer;\n }\n\n .button {\n display: inline-flex;\n align-items: stretch;\n justify-content: center;\n width: 100%;\n border-style: solid;\n border-width: var(--sl-input-border-width);\n font-family: var(--sl-input-font-family);\n font-weight: var(--sl-font-weight-semibold);\n text-decoration: none;\n user-select: none;\n -webkit-user-select: none;\n white-space: nowrap;\n vertical-align: middle;\n padding: 0;\n transition:\n var(--sl-transition-x-fast) background-color,\n var(--sl-transition-x-fast) color,\n var(--sl-transition-x-fast) border,\n var(--sl-transition-x-fast) box-shadow;\n cursor: inherit;\n }\n\n .button::-moz-focus-inner {\n border: 0;\n }\n\n .button:focus {\n outline: none;\n }\n\n .button:focus-visible {\n outline: var(--sl-focus-ring);\n outline-offset: var(--sl-focus-ring-offset);\n }\n\n .button--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* When disabled, prevent mouse events from bubbling up from children */\n .button--disabled * {\n pointer-events: none;\n }\n\n .button__prefix,\n .button__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n pointer-events: none;\n }\n\n .button__label {\n display: inline-block;\n }\n\n .button__label::slotted(sl-icon) {\n vertical-align: -2px;\n }\n\n /*\n * Standard buttons\n */\n\n /* Default */\n .button--standard.button--default {\n background-color: var(--sl-color-neutral-0);\n border-color: var(--sl-color-neutral-300);\n color: var(--sl-color-neutral-700);\n }\n\n .button--standard.button--default:hover:not(.button--disabled) {\n background-color: var(--sl-color-primary-50);\n border-color: var(--sl-color-primary-300);\n color: var(--sl-color-primary-700);\n }\n\n .button--standard.button--default:active:not(.button--disabled) {\n background-color: var(--sl-color-primary-100);\n border-color: var(--sl-color-primary-400);\n color: var(--sl-color-primary-700);\n }\n\n /* Primary */\n .button--standard.button--primary {\n background-color: var(--sl-color-primary-600);\n border-color: var(--sl-color-primary-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--primary:hover:not(.button--disabled) {\n background-color: var(--sl-color-primary-500);\n border-color: var(--sl-color-primary-500);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--primary:active:not(.button--disabled) {\n background-color: var(--sl-color-primary-600);\n border-color: var(--sl-color-primary-600);\n color: var(--sl-color-neutral-0);\n }\n\n /* Success */\n .button--standard.button--success {\n background-color: var(--sl-color-success-600);\n border-color: var(--sl-color-success-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--success:hover:not(.button--disabled) {\n background-color: var(--sl-color-success-500);\n border-color: var(--sl-color-success-500);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--success:active:not(.button--disabled) {\n background-color: var(--sl-color-success-600);\n border-color: var(--sl-color-success-600);\n color: var(--sl-color-neutral-0);\n }\n\n /* Neutral */\n .button--standard.button--neutral {\n background-color: var(--sl-color-neutral-600);\n border-color: var(--sl-color-neutral-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--neutral:hover:not(.button--disabled) {\n background-color: var(--sl-color-neutral-500);\n border-color: var(--sl-color-neutral-500);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--neutral:active:not(.button--disabled) {\n background-color: var(--sl-color-neutral-600);\n border-color: var(--sl-color-neutral-600);\n color: var(--sl-color-neutral-0);\n }\n\n /* Warning */\n .button--standard.button--warning {\n background-color: var(--sl-color-warning-600);\n border-color: var(--sl-color-warning-600);\n color: var(--sl-color-neutral-0);\n }\n .button--standard.button--warning:hover:not(.button--disabled) {\n background-color: var(--sl-color-warning-500);\n border-color: var(--sl-color-warning-500);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--warning:active:not(.button--disabled) {\n background-color: var(--sl-color-warning-600);\n border-color: var(--sl-color-warning-600);\n color: var(--sl-color-neutral-0);\n }\n\n /* Danger */\n .button--standard.button--danger {\n background-color: var(--sl-color-danger-600);\n border-color: var(--sl-color-danger-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--danger:hover:not(.button--disabled) {\n background-color: var(--sl-color-danger-500);\n border-color: var(--sl-color-danger-500);\n color: var(--sl-color-neutral-0);\n }\n\n .button--standard.button--danger:active:not(.button--disabled) {\n background-color: var(--sl-color-danger-600);\n border-color: var(--sl-color-danger-600);\n color: var(--sl-color-neutral-0);\n }\n\n /*\n * Outline buttons\n */\n\n .button--outline {\n background: none;\n border: solid 1px;\n }\n\n /* Default */\n .button--outline.button--default {\n border-color: var(--sl-color-neutral-300);\n color: var(--sl-color-neutral-700);\n }\n\n .button--outline.button--default:hover:not(.button--disabled),\n .button--outline.button--default.button--checked:not(.button--disabled) {\n border-color: var(--sl-color-primary-600);\n background-color: var(--sl-color-primary-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--outline.button--default:active:not(.button--disabled) {\n border-color: var(--sl-color-primary-700);\n background-color: var(--sl-color-primary-700);\n color: var(--sl-color-neutral-0);\n }\n\n /* Primary */\n .button--outline.button--primary {\n border-color: var(--sl-color-primary-600);\n color: var(--sl-color-primary-600);\n }\n\n .button--outline.button--primary:hover:not(.button--disabled),\n .button--outline.button--primary.button--checked:not(.button--disabled) {\n background-color: var(--sl-color-primary-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--outline.button--primary:active:not(.button--disabled) {\n border-color: var(--sl-color-primary-700);\n background-color: var(--sl-color-primary-700);\n color: var(--sl-color-neutral-0);\n }\n\n /* Success */\n .button--outline.button--success {\n border-color: var(--sl-color-success-600);\n color: var(--sl-color-success-600);\n }\n\n .button--outline.button--success:hover:not(.button--disabled),\n .button--outline.button--success.button--checked:not(.button--disabled) {\n background-color: var(--sl-color-success-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--outline.button--success:active:not(.button--disabled) {\n border-color: var(--sl-color-success-700);\n background-color: var(--sl-color-success-700);\n color: var(--sl-color-neutral-0);\n }\n\n /* Neutral */\n .button--outline.button--neutral {\n border-color: var(--sl-color-neutral-600);\n color: var(--sl-color-neutral-600);\n }\n\n .button--outline.button--neutral:hover:not(.button--disabled),\n .button--outline.button--neutral.button--checked:not(.button--disabled) {\n background-color: var(--sl-color-neutral-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--outline.button--neutral:active:not(.button--disabled) {\n border-color: var(--sl-color-neutral-700);\n background-color: var(--sl-color-neutral-700);\n color: var(--sl-color-neutral-0);\n }\n\n /* Warning */\n .button--outline.button--warning {\n border-color: var(--sl-color-warning-600);\n color: var(--sl-color-warning-600);\n }\n\n .button--outline.button--warning:hover:not(.button--disabled),\n .button--outline.button--warning.button--checked:not(.button--disabled) {\n background-color: var(--sl-color-warning-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--outline.button--warning:active:not(.button--disabled) {\n border-color: var(--sl-color-warning-700);\n background-color: var(--sl-color-warning-700);\n color: var(--sl-color-neutral-0);\n }\n\n /* Danger */\n .button--outline.button--danger {\n border-color: var(--sl-color-danger-600);\n color: var(--sl-color-danger-600);\n }\n\n .button--outline.button--danger:hover:not(.button--disabled),\n .button--outline.button--danger.button--checked:not(.button--disabled) {\n background-color: var(--sl-color-danger-600);\n color: var(--sl-color-neutral-0);\n }\n\n .button--outline.button--danger:active:not(.button--disabled) {\n border-color: var(--sl-color-danger-700);\n background-color: var(--sl-color-danger-700);\n color: var(--sl-color-neutral-0);\n }\n\n @media (forced-colors: active) {\n .button.button--outline.button--checked:not(.button--disabled) {\n outline: solid 2px transparent;\n }\n }\n\n /*\n * Text buttons\n */\n\n .button--text {\n background-color: transparent;\n border-color: transparent;\n color: var(--sl-color-primary-600);\n }\n\n .button--text:hover:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--sl-color-primary-500);\n }\n\n .button--text:focus-visible:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--sl-color-primary-500);\n }\n\n .button--text:active:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--sl-color-primary-700);\n }\n\n /*\n * Size modifiers\n */\n\n .button--small {\n height: auto;\n min-height: var(--sl-input-height-small);\n font-size: var(--sl-button-font-size-small);\n line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);\n border-radius: var(--sl-input-border-radius-small);\n }\n\n .button--medium {\n height: auto;\n min-height: var(--sl-input-height-medium);\n font-size: var(--sl-button-font-size-medium);\n line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);\n border-radius: var(--sl-input-border-radius-medium);\n }\n\n .button--large {\n height: auto;\n min-height: var(--sl-input-height-large);\n font-size: var(--sl-button-font-size-large);\n line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);\n border-radius: var(--sl-input-border-radius-large);\n }\n\n /*\n * Pill modifier\n */\n\n .button--pill.button--small {\n border-radius: var(--sl-input-height-small);\n }\n\n .button--pill.button--medium {\n border-radius: var(--sl-input-height-medium);\n }\n\n .button--pill.button--large {\n border-radius: var(--sl-input-height-large);\n }\n\n /*\n * Circle modifier\n */\n\n .button--circle {\n padding-left: 0;\n padding-right: 0;\n }\n\n .button--circle.button--small {\n width: var(--sl-input-height-small);\n border-radius: 50%;\n }\n\n .button--circle.button--medium {\n width: var(--sl-input-height-medium);\n border-radius: 50%;\n }\n\n .button--circle.button--large {\n width: var(--sl-input-height-large);\n border-radius: 50%;\n }\n\n .button--circle .button__prefix,\n .button--circle .button__suffix,\n .button--circle .button__caret {\n display: none;\n }\n\n /*\n * Caret modifier\n */\n\n .button--caret .button__suffix {\n display: none;\n }\n\n .button--caret .button__caret {\n height: auto;\n }\n\n /*\n * Loading modifier\n */\n\n .button--loading {\n position: relative;\n cursor: wait;\n }\n\n .button--loading .button__prefix,\n .button--loading .button__label,\n .button--loading .button__suffix,\n .button--loading .button__caret {\n visibility: hidden;\n }\n\n .button--loading sl-spinner {\n --indicator-color: currentColor;\n position: absolute;\n font-size: 1em;\n height: 1em;\n width: 1em;\n top: calc(50% - 0.5em);\n left: calc(50% - 0.5em);\n }\n\n /*\n * Badges\n */\n\n .button ::slotted(sl-badge) {\n position: absolute;\n top: 0;\n right: 0;\n translate: 50% -50%;\n pointer-events: none;\n }\n\n .button--rtl ::slotted(sl-badge) {\n right: auto;\n left: 0;\n translate: -50% -50%;\n }\n\n /*\n * Button spacing\n */\n\n .button--has-label.button--small .button__label {\n padding: 0 var(--sl-spacing-small);\n }\n\n .button--has-label.button--medium .button__label {\n padding: 0 var(--sl-spacing-medium);\n }\n\n .button--has-label.button--large .button__label {\n padding: 0 var(--sl-spacing-large);\n }\n\n .button--has-prefix.button--small {\n padding-inline-start: var(--sl-spacing-x-small);\n }\n\n .button--has-prefix.button--small .button__label {\n padding-inline-start: var(--sl-spacing-x-small);\n }\n\n .button--has-prefix.button--medium {\n padding-inline-start: var(--sl-spacing-small);\n }\n\n .button--has-prefix.button--medium .button__label {\n padding-inline-start: var(--sl-spacing-small);\n }\n\n .button--has-prefix.button--large {\n padding-inline-start: var(--sl-spacing-small);\n }\n\n .button--has-prefix.button--large .button__label {\n padding-inline-start: var(--sl-spacing-small);\n }\n\n .button--has-suffix.button--small,\n .button--caret.button--small {\n padding-inline-end: var(--sl-spacing-x-small);\n }\n\n .button--has-suffix.button--small .button__label,\n .button--caret.button--small .button__label {\n padding-inline-end: var(--sl-spacing-x-small);\n }\n\n .button--has-suffix.button--medium,\n .button--caret.button--medium {\n padding-inline-end: var(--sl-spacing-small);\n }\n\n .button--has-suffix.button--medium .button__label,\n .button--caret.button--medium .button__label {\n padding-inline-end: var(--sl-spacing-small);\n }\n\n .button--has-suffix.button--large,\n .button--caret.button--large {\n padding-inline-end: var(--sl-spacing-small);\n }\n\n .button--has-suffix.button--large .button__label,\n .button--caret.button--large .button__label {\n padding-inline-end: var(--sl-spacing-small);\n }\n\n /*\n * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).\n * This means buttons aren't always direct descendants of the button group, thus we can't target them with the\n * ::slotted selector. To work around this, the button group component does some magic to add these special classes to\n * buttons and we style them here instead.\n */\n\n :host([data-sl-button-group__button--first]:not([data-sl-button-group__button--last])) .button {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n }\n\n :host([data-sl-button-group__button--inner]) .button {\n border-radius: 0;\n }\n\n :host([data-sl-button-group__button--last]:not([data-sl-button-group__button--first])) .button {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n }\n\n /* All except the first */\n :host([data-sl-button-group__button]:not([data-sl-button-group__button--first])) {\n margin-inline-start: calc(-1 * var(--sl-input-border-width));\n }\n\n /* Add a visual separator between solid buttons */\n :host(\n [data-sl-button-group__button]:not(\n [data-sl-button-group__button--first],\n [data-sl-button-group__button--radio],\n [variant='default']\n ):not(:hover)\n )\n .button:after {\n content: '';\n position: absolute;\n top: 0;\n inset-inline-start: 0;\n bottom: 0;\n border-left: solid 1px rgb(128 128 128 / 33%);\n mix-blend-mode: multiply;\n }\n\n /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */\n :host([data-sl-button-group__button--hover]) {\n z-index: 1;\n }\n\n /* Focus and checked are always on top */\n :host([data-sl-button-group__button--focus]),\n :host([data-sl-button-group__button[checked]]) {\n z-index: 2;\n }\n`;\n\nexport {\n button_styles_default\n};\n","import {\n SlSpinner\n} from \"./chunk.RADK4UXU.js\";\nimport {\n FormControlController,\n validValidityState\n} from \"./chunk.KWPBDQ6I.js\";\nimport {\n button_styles_default\n} from \"./chunk.HLDU3ZPH.js\";\nimport {\n LocalizeController\n} from \"./chunk.WLV3FVBR.js\";\nimport {\n HasSlotController\n} from \"./chunk.NYIIDP5N.js\";\nimport {\n SlIcon\n} from \"./chunk.H33C3MRM.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/button/button.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html, literal } from \"lit/static-html.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { property, query, state } from \"lit/decorators.js\";\nvar SlButton = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.formControlController = new FormControlController(this, {\n assumeInteractionOn: [\"click\"]\n });\n this.hasSlotController = new HasSlotController(this, \"[default]\", \"prefix\", \"suffix\");\n this.localize = new LocalizeController(this);\n this.hasFocus = false;\n this.invalid = false;\n this.title = \"\";\n this.variant = \"default\";\n this.size = \"medium\";\n this.caret = false;\n this.disabled = false;\n this.loading = false;\n this.outline = false;\n this.pill = false;\n this.circle = false;\n this.type = \"button\";\n this.name = \"\";\n this.value = \"\";\n this.href = \"\";\n this.rel = \"noreferrer noopener\";\n }\n /** Gets the validity state object */\n get validity() {\n if (this.isButton()) {\n return this.button.validity;\n }\n return validValidityState;\n }\n /** Gets the validation message */\n get validationMessage() {\n if (this.isButton()) {\n return this.button.validationMessage;\n }\n return \"\";\n }\n firstUpdated() {\n if (this.isButton()) {\n this.formControlController.updateValidity();\n }\n }\n handleBlur() {\n this.hasFocus = false;\n this.emit(\"sl-blur\");\n }\n handleFocus() {\n this.hasFocus = true;\n this.emit(\"sl-focus\");\n }\n handleClick() {\n if (this.type === \"submit\") {\n this.formControlController.submit(this);\n }\n if (this.type === \"reset\") {\n this.formControlController.reset(this);\n }\n }\n handleInvalid(event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n isButton() {\n return this.href ? false : true;\n }\n isLink() {\n return this.href ? true : false;\n }\n handleDisabledChange() {\n if (this.isButton()) {\n this.formControlController.setValidity(this.disabled);\n }\n }\n /** Simulates a click on the button. */\n click() {\n this.button.click();\n }\n /** Sets focus on the button. */\n focus(options) {\n this.button.focus(options);\n }\n /** Removes focus from the button. */\n blur() {\n this.button.blur();\n }\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n if (this.isButton()) {\n return this.button.checkValidity();\n }\n return true;\n }\n /** Gets the associated form, if one exists. */\n getForm() {\n return this.formControlController.getForm();\n }\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n if (this.isButton()) {\n return this.button.reportValidity();\n }\n return true;\n }\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message) {\n if (this.isButton()) {\n this.button.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n }\n render() {\n const isLink = this.isLink();\n const tag = isLink ? literal`a` : literal`button`;\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n button: true,\n \"button--default\": this.variant === \"default\",\n \"button--primary\": this.variant === \"primary\",\n \"button--success\": this.variant === \"success\",\n \"button--neutral\": this.variant === \"neutral\",\n \"button--warning\": this.variant === \"warning\",\n \"button--danger\": this.variant === \"danger\",\n \"button--text\": this.variant === \"text\",\n \"button--small\": this.size === \"small\",\n \"button--medium\": this.size === \"medium\",\n \"button--large\": this.size === \"large\",\n \"button--caret\": this.caret,\n \"button--circle\": this.circle,\n \"button--disabled\": this.disabled,\n \"button--focused\": this.hasFocus,\n \"button--loading\": this.loading,\n \"button--standard\": !this.outline,\n \"button--outline\": this.outline,\n \"button--pill\": this.pill,\n \"button--rtl\": this.localize.dir() === \"rtl\",\n \"button--has-label\": this.hasSlotController.test(\"[default]\"),\n \"button--has-prefix\": this.hasSlotController.test(\"prefix\"),\n \"button--has-suffix\": this.hasSlotController.test(\"suffix\")\n })}\n ?disabled=${ifDefined(isLink ? void 0 : this.disabled)}\n type=${ifDefined(isLink ? void 0 : this.type)}\n title=${this.title}\n name=${ifDefined(isLink ? void 0 : this.name)}\n value=${ifDefined(isLink ? void 0 : this.value)}\n href=${ifDefined(isLink ? this.href : void 0)}\n target=${ifDefined(isLink ? this.target : void 0)}\n download=${ifDefined(isLink ? this.download : void 0)}\n rel=${ifDefined(isLink ? this.rel : void 0)}\n role=${ifDefined(isLink ? void 0 : \"button\")}\n aria-disabled=${this.disabled ? \"true\" : \"false\"}\n tabindex=${this.disabled ? \"-1\" : \"0\"}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @invalid=${this.isButton() ? this.handleInvalid : null}\n @click=${this.handleClick}\n >\n <slot name=\"prefix\" part=\"prefix\" class=\"button__prefix\"></slot>\n <slot part=\"label\" class=\"button__label\"></slot>\n <slot name=\"suffix\" part=\"suffix\" class=\"button__suffix\"></slot>\n ${this.caret ? html` <sl-icon part=\"caret\" class=\"button__caret\" library=\"system\" name=\"caret\"></sl-icon> ` : \"\"}\n ${this.loading ? html`<sl-spinner part=\"spinner\"></sl-spinner>` : \"\"}\n </${tag}>\n `;\n }\n};\nSlButton.styles = [component_styles_default, button_styles_default];\nSlButton.dependencies = {\n \"sl-icon\": SlIcon,\n \"sl-spinner\": SlSpinner\n};\n__decorateClass([\n query(\".button\")\n], SlButton.prototype, \"button\", 2);\n__decorateClass([\n state()\n], SlButton.prototype, \"hasFocus\", 2);\n__decorateClass([\n state()\n], SlButton.prototype, \"invalid\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"title\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlButton.prototype, \"variant\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlButton.prototype, \"size\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlButton.prototype, \"caret\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlButton.prototype, \"disabled\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlButton.prototype, \"loading\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlButton.prototype, \"outline\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlButton.prototype, \"pill\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlButton.prototype, \"circle\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"type\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"name\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"value\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"href\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"target\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"rel\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"download\", 2);\n__decorateClass([\n property()\n], SlButton.prototype, \"form\", 2);\n__decorateClass([\n property({ attribute: \"formaction\" })\n], SlButton.prototype, \"formAction\", 2);\n__decorateClass([\n property({ attribute: \"formenctype\" })\n], SlButton.prototype, \"formEnctype\", 2);\n__decorateClass([\n property({ attribute: \"formmethod\" })\n], SlButton.prototype, \"formMethod\", 2);\n__decorateClass([\n property({ attribute: \"formnovalidate\", type: Boolean })\n], SlButton.prototype, \"formNoValidate\", 2);\n__decorateClass([\n property({ attribute: \"formtarget\" })\n], SlButton.prototype, \"formTarget\", 2);\n__decorateClass([\n watch(\"disabled\", { waitUntilFirstUpdate: true })\n], SlButton.prototype, \"handleDisabledChange\", 1);\n\nexport {\n SlButton\n};\n","import {\n SlButton\n} from \"./chunk.5SUGJ4EB.js\";\n\n// src/components/button/button.ts\nvar button_default = SlButton;\nSlButton.define(\"sl-button\");\n\nexport {\n button_default\n};\n","/*!\n * vue-router v4.5.1\n * (c) 2025 Eduardo San Martin Morote\n * @license MIT\n */\nimport { getCurrentInstance, inject, onUnmounted, onDeactivated, onActivated, computed, unref, watchEffect, defineComponent, reactive, h, provide, ref, watch, shallowRef, shallowReactive, nextTick } from 'vue';\nimport { setupDevtoolsPlugin } from '@vue/devtools-api';\n\nconst isBrowser = typeof document !== 'undefined';\n\n/**\n * Allows differentiating lazy components from functional components and vue-class-component\n * @internal\n *\n * @param component\n */\nfunction isRouteComponent(component) {\n return (typeof component === 'object' ||\n 'displayName' in component ||\n 'props' in component ||\n '__vccOpts' in component);\n}\nfunction isESModule(obj) {\n return (obj.__esModule ||\n obj[Symbol.toStringTag] === 'Module' ||\n // support CF with dynamic imports that do not\n // add the Module string tag\n (obj.default && isRouteComponent(obj.default)));\n}\nconst assign = Object.assign;\nfunction applyToParams(fn, params) {\n const newParams = {};\n for (const key in params) {\n const value = params[key];\n newParams[key] = isArray(value)\n ? value.map(fn)\n : fn(value);\n }\n return newParams;\n}\nconst noop = () => { };\n/**\n * Typesafe alternative to Array.isArray\n * https://github.com/microsoft/TypeScript/pull/48228\n */\nconst isArray = Array.isArray;\n\nfunction warn(msg) {\n // avoid using ...args as it breaks in older Edge builds\n const args = Array.from(arguments).slice(1);\n console.warn.apply(console, ['[Vue Router warn]: ' + msg].concat(args));\n}\n\n/**\n * Encoding Rules (␣ = Space)\n * - Path: ␣ \" < > # ? { }\n * - Query: ␣ \" < > # & =\n * - Hash: ␣ \" < > `\n *\n * On top of that, the RFC3986 (https://tools.ietf.org/html/rfc3986#section-2.2)\n * defines some extra characters to be encoded. Most browsers do not encode them\n * in encodeURI https://github.com/whatwg/url/issues/369, so it may be safer to\n * also encode `!'()*`. Leaving un-encoded only ASCII alphanumeric(`a-zA-Z0-9`)\n * plus `-._~`. This extra safety should be applied to query by patching the\n * string returned by encodeURIComponent encodeURI also encodes `[\\]^`. `\\`\n * should be encoded to avoid ambiguity. Browsers (IE, FF, C) transform a `\\`\n * into a `/` if directly typed in. The _backtick_ (`````) should also be\n * encoded everywhere because some browsers like FF encode it when directly\n * written while others don't. Safari and IE don't encode ``\"<>{}``` in hash.\n */\n// const EXTRA_RESERVED_RE = /[!'()*]/g\n// const encodeReservedReplacer = (c: string) => '%' + c.charCodeAt(0).toString(16)\nconst HASH_RE = /#/g; // %23\nconst AMPERSAND_RE = /&/g; // %26\nconst SLASH_RE = /\\//g; // %2F\nconst EQUAL_RE = /=/g; // %3D\nconst IM_RE = /\\?/g; // %3F\nconst PLUS_RE = /\\+/g; // %2B\n/**\n * NOTE: It's not clear to me if we should encode the + symbol in queries, it\n * seems to be less flexible than not doing so and I can't find out the legacy\n * systems requiring this for regular requests like text/html. In the standard,\n * the encoding of the plus character is only mentioned for\n * application/x-www-form-urlencoded\n * (https://url.spec.whatwg.org/#urlencoded-parsing) and most browsers seems lo\n * leave the plus character as is in queries. To be more flexible, we allow the\n * plus character on the query, but it can also be manually encoded by the user.\n *\n * Resources:\n * - https://url.spec.whatwg.org/#urlencoded-parsing\n * - https://stackoverflow.com/questions/1634271/url-encoding-the-space-character-or-20\n */\nconst ENC_BRACKET_OPEN_RE = /%5B/g; // [\nconst ENC_BRACKET_CLOSE_RE = /%5D/g; // ]\nconst ENC_CARET_RE = /%5E/g; // ^\nconst ENC_BACKTICK_RE = /%60/g; // `\nconst ENC_CURLY_OPEN_RE = /%7B/g; // {\nconst ENC_PIPE_RE = /%7C/g; // |\nconst ENC_CURLY_CLOSE_RE = /%7D/g; // }\nconst ENC_SPACE_RE = /%20/g; // }\n/**\n * Encode characters that need to be encoded on the path, search and hash\n * sections of the URL.\n *\n * @internal\n * @param text - string to encode\n * @returns encoded string\n */\nfunction commonEncode(text) {\n return encodeURI('' + text)\n .replace(ENC_PIPE_RE, '|')\n .replace(ENC_BRACKET_OPEN_RE, '[')\n .replace(ENC_BRACKET_CLOSE_RE, ']');\n}\n/**\n * Encode characters that need to be encoded on the hash section of the URL.\n *\n * @param text - string to encode\n * @returns encoded string\n */\nfunction encodeHash(text) {\n return commonEncode(text)\n .replace(ENC_CURLY_OPEN_RE, '{')\n .replace(ENC_CURLY_CLOSE_RE, '}')\n .replace(ENC_CARET_RE, '^');\n}\n/**\n * Encode characters that need to be encoded query values on the query\n * section of the URL.\n *\n * @param text - string to encode\n * @returns encoded string\n */\nfunction encodeQueryValue(text) {\n return (commonEncode(text)\n // Encode the space as +, encode the + to differentiate it from the space\n .replace(PLUS_RE, '%2B')\n .replace(ENC_SPACE_RE, '+')\n .replace(HASH_RE, '%23')\n .replace(AMPERSAND_RE, '%26')\n .replace(ENC_BACKTICK_RE, '`')\n .replace(ENC_CURLY_OPEN_RE, '{')\n .replace(ENC_CURLY_CLOSE_RE, '}')\n .replace(ENC_CARET_RE, '^'));\n}\n/**\n * Like `encodeQueryValue` but also encodes the `=` character.\n *\n * @param text - string to encode\n */\nfunction encodeQueryKey(text) {\n return encodeQueryValue(text).replace(EQUAL_RE, '%3D');\n}\n/**\n * Encode characters that need to be encoded on the path section of the URL.\n *\n * @param text - string to encode\n * @returns encoded string\n */\nfunction encodePath(text) {\n return commonEncode(text).replace(HASH_RE, '%23').replace(IM_RE, '%3F');\n}\n/**\n * Encode characters that need to be encoded on the path section of the URL as a\n * param. This function encodes everything {@link encodePath} does plus the\n * slash (`/`) character. If `text` is `null` or `undefined`, returns an empty\n * string instead.\n *\n * @param text - string to encode\n * @returns encoded string\n */\nfunction encodeParam(text) {\n return text == null ? '' : encodePath(text).replace(SLASH_RE, '%2F');\n}\n/**\n * Decode text using `decodeURIComponent`. Returns the original text if it\n * fails.\n *\n * @param text - string to decode\n * @returns decoded string\n */\nfunction decode(text) {\n try {\n return decodeURIComponent('' + text);\n }\n catch (err) {\n (process.env.NODE_ENV !== 'production') && warn(`Error decoding \"${text}\". Using original value`);\n }\n return '' + text;\n}\n\nconst TRAILING_SLASH_RE = /\\/$/;\nconst removeTrailingSlash = (path) => path.replace(TRAILING_SLASH_RE, '');\n/**\n * Transforms a URI into a normalized history location\n *\n * @param parseQuery\n * @param location - URI to normalize\n * @param currentLocation - current absolute location. Allows resolving relative\n * paths. Must start with `/`. Defaults to `/`\n * @returns a normalized history location\n */\nfunction parseURL(parseQuery, location, currentLocation = '/') {\n let path, query = {}, searchString = '', hash = '';\n // Could use URL and URLSearchParams but IE 11 doesn't support it\n // TODO: move to new URL()\n const hashPos = location.indexOf('#');\n let searchPos = location.indexOf('?');\n // the hash appears before the search, so it's not part of the search string\n if (hashPos < searchPos && hashPos >= 0) {\n searchPos = -1;\n }\n if (searchPos > -1) {\n path = location.slice(0, searchPos);\n searchString = location.slice(searchPos + 1, hashPos > -1 ? hashPos : location.length);\n query = parseQuery(searchString);\n }\n if (hashPos > -1) {\n path = path || location.slice(0, hashPos);\n // keep the # character\n hash = location.slice(hashPos, location.length);\n }\n // no search and no query\n path = resolveRelativePath(path != null ? path : location, currentLocation);\n // empty path means a relative query or hash `?foo=f`, `#thing`\n return {\n fullPath: path + (searchString && '?') + searchString + hash,\n path,\n query,\n hash: decode(hash),\n };\n}\n/**\n * Stringifies a URL object\n *\n * @param stringifyQuery\n * @param location\n */\nfunction stringifyURL(stringifyQuery, location) {\n const query = location.query ? stringifyQuery(location.query) : '';\n return location.path + (query && '?') + query + (location.hash || '');\n}\n/**\n * Strips off the base from the beginning of a location.pathname in a non-case-sensitive way.\n *\n * @param pathname - location.pathname\n * @param base - base to strip off\n */\nfunction stripBase(pathname, base) {\n // no base or base is not found at the beginning\n if (!base || !pathname.toLowerCase().startsWith(base.toLowerCase()))\n return pathname;\n return pathname.slice(base.length) || '/';\n}\n/**\n * Checks if two RouteLocation are equal. This means that both locations are\n * pointing towards the same {@link RouteRecord} and that all `params`, `query`\n * parameters and `hash` are the same\n *\n * @param stringifyQuery - A function that takes a query object of type LocationQueryRaw and returns a string representation of it.\n * @param a - first {@link RouteLocation}\n * @param b - second {@link RouteLocation}\n */\nfunction isSameRouteLocation(stringifyQuery, a, b) {\n const aLastIndex = a.matched.length - 1;\n const bLastIndex = b.matched.length - 1;\n return (aLastIndex > -1 &&\n aLastIndex === bLastIndex &&\n isSameRouteRecord(a.matched[aLastIndex], b.matched[bLastIndex]) &&\n isSameRouteLocationParams(a.params, b.params) &&\n stringifyQuery(a.query) === stringifyQuery(b.query) &&\n a.hash === b.hash);\n}\n/**\n * Check if two `RouteRecords` are equal. Takes into account aliases: they are\n * considered equal to the `RouteRecord` they are aliasing.\n *\n * @param a - first {@link RouteRecord}\n * @param b - second {@link RouteRecord}\n */\nfunction isSameRouteRecord(a, b) {\n // since the original record has an undefined value for aliasOf\n // but all aliases point to the original record, this will always compare\n // the original record\n return (a.aliasOf || a) === (b.aliasOf || b);\n}\nfunction isSameRouteLocationParams(a, b) {\n if (Object.keys(a).length !== Object.keys(b).length)\n return false;\n for (const key in a) {\n if (!isSameRouteLocationParamsValue(a[key], b[key]))\n return false;\n }\n return true;\n}\nfunction isSameRouteLocationParamsValue(a, b) {\n return isArray(a)\n ? isEquivalentArray(a, b)\n : isArray(b)\n ? isEquivalentArray(b, a)\n : a === b;\n}\n/**\n * Check if two arrays are the same or if an array with one single entry is the\n * same as another primitive value. Used to check query and parameters\n *\n * @param a - array of values\n * @param b - array of values or a single value\n */\nfunction isEquivalentArray(a, b) {\n return isArray(b)\n ? a.length === b.length && a.every((value, i) => value === b[i])\n : a.length === 1 && a[0] === b;\n}\n/**\n * Resolves a relative path that starts with `.`.\n *\n * @param to - path location we are resolving\n * @param from - currentLocation.path, should start with `/`\n */\nfunction resolveRelativePath(to, from) {\n if (to.startsWith('/'))\n return to;\n if ((process.env.NODE_ENV !== 'production') && !from.startsWith('/')) {\n warn(`Cannot resolve a relative location without an absolute path. Trying to resolve \"${to}\" from \"${from}\". It should look like \"/${from}\".`);\n return to;\n }\n if (!to)\n return from;\n const fromSegments = from.split('/');\n const toSegments = to.split('/');\n const lastToSegment = toSegments[toSegments.length - 1];\n // make . and ./ the same (../ === .., ../../ === ../..)\n // this is the same behavior as new URL()\n if (lastToSegment === '..' || lastToSegment === '.') {\n toSegments.push('');\n }\n let position = fromSegments.length - 1;\n let toPosition;\n let segment;\n for (toPosition = 0; toPosition < toSegments.length; toPosition++) {\n segment = toSegments[toPosition];\n // we stay on the same position\n if (segment === '.')\n continue;\n // go up in the from array\n if (segment === '..') {\n // we can't go below zero, but we still need to increment toPosition\n if (position > 1)\n position--;\n // continue\n }\n // we reached a non-relative path, we stop here\n else\n break;\n }\n return (fromSegments.slice(0, position).join('/') +\n '/' +\n toSegments.slice(toPosition).join('/'));\n}\n/**\n * Initial route location where the router is. Can be used in navigation guards\n * to differentiate the initial navigation.\n *\n * @example\n * ```js\n * import { START_LOCATION } from 'vue-router'\n *\n * router.beforeEach((to, from) => {\n * if (from === START_LOCATION) {\n * // initial navigation\n * }\n * })\n * ```\n */\nconst START_LOCATION_NORMALIZED = {\n path: '/',\n // TODO: could we use a symbol in the future?\n name: undefined,\n params: {},\n query: {},\n hash: '',\n fullPath: '/',\n matched: [],\n meta: {},\n redirectedFrom: undefined,\n};\n\nvar NavigationType;\n(function (NavigationType) {\n NavigationType[\"pop\"] = \"pop\";\n NavigationType[\"push\"] = \"push\";\n})(NavigationType || (NavigationType = {}));\nvar NavigationDirection;\n(function (NavigationDirection) {\n NavigationDirection[\"back\"] = \"back\";\n NavigationDirection[\"forward\"] = \"forward\";\n NavigationDirection[\"unknown\"] = \"\";\n})(NavigationDirection || (NavigationDirection = {}));\n/**\n * Starting location for Histories\n */\nconst START = '';\n// Generic utils\n/**\n * Normalizes a base by removing any trailing slash and reading the base tag if\n * present.\n *\n * @param base - base to normalize\n */\nfunction normalizeBase(base) {\n if (!base) {\n if (isBrowser) {\n // respect <base> tag\n const baseEl = document.querySelector('base');\n base = (baseEl && baseEl.getAttribute('href')) || '/';\n // strip full URL origin\n base = base.replace(/^\\w+:\\/\\/[^\\/]+/, '');\n }\n else {\n base = '/';\n }\n }\n // ensure leading slash when it was removed by the regex above avoid leading\n // slash with hash because the file could be read from the disk like file://\n // and the leading slash would cause problems\n if (base[0] !== '/' && base[0] !== '#')\n base = '/' + base;\n // remove the trailing slash so all other method can just do `base + fullPath`\n // to build an href\n return removeTrailingSlash(base);\n}\n// remove any character before the hash\nconst BEFORE_HASH_RE = /^[^#]+#/;\nfunction createHref(base, location) {\n return base.replace(BEFORE_HASH_RE, '#') + location;\n}\n\nfunction getElementPosition(el, offset) {\n const docRect = document.documentElement.getBoundingClientRect();\n const elRect = el.getBoundingClientRect();\n return {\n behavior: offset.behavior,\n left: elRect.left - docRect.left - (offset.left || 0),\n top: elRect.top - docRect.top - (offset.top || 0),\n };\n}\nconst computeScrollPosition = () => ({\n left: window.scrollX,\n top: window.scrollY,\n});\nfunction scrollToPosition(position) {\n let scrollToOptions;\n if ('el' in position) {\n const positionEl = position.el;\n const isIdSelector = typeof positionEl === 'string' && positionEl.startsWith('#');\n /**\n * `id`s can accept pretty much any characters, including CSS combinators\n * like `>` or `~`. It's still possible to retrieve elements using\n * `document.getElementById('~')` but it needs to be escaped when using\n * `document.querySelector('#\\\\~')` for it to be valid. The only\n * requirements for `id`s are them to be unique on the page and to not be\n * empty (`id=\"\"`). Because of that, when passing an id selector, it should\n * be properly escaped for it to work with `querySelector`. We could check\n * for the id selector to be simple (no CSS combinators `+ >~`) but that\n * would make things inconsistent since they are valid characters for an\n * `id` but would need to be escaped when using `querySelector`, breaking\n * their usage and ending up in no selector returned. Selectors need to be\n * escaped:\n *\n * - `#1-thing` becomes `#\\31 -thing`\n * - `#with~symbols` becomes `#with\\\\~symbols`\n *\n * - More information about the topic can be found at\n * https://mathiasbynens.be/notes/html5-id-class.\n * - Practical example: https://mathiasbynens.be/demo/html5-id\n */\n if ((process.env.NODE_ENV !== 'production') && typeof position.el === 'string') {\n if (!isIdSelector || !document.getElementById(position.el.slice(1))) {\n try {\n const foundEl = document.querySelector(position.el);\n if (isIdSelector && foundEl) {\n warn(`The selector \"${position.el}\" should be passed as \"el: document.querySelector('${position.el}')\" because it starts with \"#\".`);\n // return to avoid other warnings\n return;\n }\n }\n catch (err) {\n warn(`The selector \"${position.el}\" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);\n // return to avoid other warnings\n return;\n }\n }\n }\n const el = typeof positionEl === 'string'\n ? isIdSelector\n ? document.getElementById(positionEl.slice(1))\n : document.querySelector(positionEl)\n : positionEl;\n if (!el) {\n (process.env.NODE_ENV !== 'production') &&\n warn(`Couldn't find element using selector \"${position.el}\" returned by scrollBehavior.`);\n return;\n }\n scrollToOptions = getElementPosition(el, position);\n }\n else {\n scrollToOptions = position;\n }\n if ('scrollBehavior' in document.documentElement.style)\n window.scrollTo(scrollToOptions);\n else {\n window.scrollTo(scrollToOptions.left != null ? scrollToOptions.left : window.scrollX, scrollToOptions.top != null ? scrollToOptions.top : window.scrollY);\n }\n}\nfunction getScrollKey(path, delta) {\n const position = history.state ? history.state.position - delta : -1;\n return position + path;\n}\nconst scrollPositions = new Map();\nfunction saveScrollPosition(key, scrollPosition) {\n scrollPositions.set(key, scrollPosition);\n}\nfunction getSavedScrollPosition(key) {\n const scroll = scrollPositions.get(key);\n // consume it so it's not used again\n scrollPositions.delete(key);\n return scroll;\n}\n// TODO: RFC about how to save scroll position\n/**\n * ScrollBehavior instance used by the router to compute and restore the scroll\n * position when navigating.\n */\n// export interface ScrollHandler<ScrollPositionEntry extends HistoryStateValue, ScrollPosition extends ScrollPositionEntry> {\n// // returns a scroll position that can be saved in history\n// compute(): ScrollPositionEntry\n// // can take an extended ScrollPositionEntry\n// scroll(position: ScrollPosition): void\n// }\n// export const scrollHandler: ScrollHandler<ScrollPosition> = {\n// compute: computeScroll,\n// scroll: scrollToPosition,\n// }\n\nlet createBaseLocation = () => location.protocol + '//' + location.host;\n/**\n * Creates a normalized history location from a window.location object\n * @param base - The base path\n * @param location - The window.location object\n */\nfunction createCurrentLocation(base, location) {\n const { pathname, search, hash } = location;\n // allows hash bases like #, /#, #/, #!, #!/, /#!/, or even /folder#end\n const hashPos = base.indexOf('#');\n if (hashPos > -1) {\n let slicePos = hash.includes(base.slice(hashPos))\n ? base.slice(hashPos).length\n : 1;\n let pathFromHash = hash.slice(slicePos);\n // prepend the starting slash to hash so the url starts with /#\n if (pathFromHash[0] !== '/')\n pathFromHash = '/' + pathFromHash;\n return stripBase(pathFromHash, '');\n }\n const path = stripBase(pathname, base);\n return path + search + hash;\n}\nfunction useHistoryListeners(base, historyState, currentLocation, replace) {\n let listeners = [];\n let teardowns = [];\n // TODO: should it be a stack? a Dict. Check if the popstate listener\n // can trigger twice\n let pauseState = null;\n const popStateHandler = ({ state, }) => {\n const to = createCurrentLocation(base, location);\n const from = currentLocation.value;\n const fromState = historyState.value;\n let delta = 0;\n if (state) {\n currentLocation.value = to;\n historyState.value = state;\n // ignore the popstate and reset the pauseState\n if (pauseState && pauseState === from) {\n pauseState = null;\n return;\n }\n delta = fromState ? state.position - fromState.position : 0;\n }\n else {\n replace(to);\n }\n // Here we could also revert the navigation by calling history.go(-delta)\n // this listener will have to be adapted to not trigger again and to wait for the url\n // to be updated before triggering the listeners. Some kind of validation function would also\n // need to be passed to the listeners so the navigation can be accepted\n // call all listeners\n listeners.forEach(listener => {\n listener(currentLocation.value, from, {\n delta,\n type: NavigationType.pop,\n direction: delta\n ? delta > 0\n ? NavigationDirection.forward\n : NavigationDirection.back\n : NavigationDirection.unknown,\n });\n });\n };\n function pauseListeners() {\n pauseState = currentLocation.value;\n }\n function listen(callback) {\n // set up the listener and prepare teardown callbacks\n listeners.push(callback);\n const teardown = () => {\n const index = listeners.indexOf(callback);\n if (index > -1)\n listeners.splice(index, 1);\n };\n teardowns.push(teardown);\n return teardown;\n }\n function beforeUnloadListener() {\n const { history } = window;\n if (!history.state)\n return;\n history.replaceState(assign({}, history.state, { scroll: computeScrollPosition() }), '');\n }\n function destroy() {\n for (const teardown of teardowns)\n teardown();\n teardowns = [];\n window.removeEventListener('popstate', popStateHandler);\n window.removeEventListener('beforeunload', beforeUnloadListener);\n }\n // set up the listeners and prepare teardown callbacks\n window.addEventListener('popstate', popStateHandler);\n // TODO: could we use 'pagehide' or 'visibilitychange' instead?\n // https://developer.chrome.com/blog/page-lifecycle-api/\n window.addEventListener('beforeunload', beforeUnloadListener, {\n passive: true,\n });\n return {\n pauseListeners,\n listen,\n destroy,\n };\n}\n/**\n * Creates a state object\n */\nfunction buildState(back, current, forward, replaced = false, computeScroll = false) {\n return {\n back,\n current,\n forward,\n replaced,\n position: window.history.length,\n scroll: computeScroll ? computeScrollPosition() : null,\n };\n}\nfunction useHistoryStateNavigation(base) {\n const { history, location } = window;\n // private variables\n const currentLocation = {\n value: createCurrentLocation(base, location),\n };\n const historyState = { value: history.state };\n // build current history entry as this is a fresh navigation\n if (!historyState.value) {\n changeLocation(currentLocation.value, {\n back: null,\n current: currentLocation.value,\n forward: null,\n // the length is off by one, we need to decrease it\n position: history.length - 1,\n replaced: true,\n // don't add a scroll as the user may have an anchor, and we want\n // scrollBehavior to be triggered without a saved position\n scroll: null,\n }, true);\n }\n function changeLocation(to, state, replace) {\n /**\n * if a base tag is provided, and we are on a normal domain, we have to\n * respect the provided `base` attribute because pushState() will use it and\n * potentially erase anything before the `#` like at\n * https://github.com/vuejs/router/issues/685 where a base of\n * `/folder/#` but a base of `/` would erase the `/folder/` section. If\n * there is no host, the `<base>` tag makes no sense and if there isn't a\n * base tag we can just use everything after the `#`.\n */\n const hashIndex = base.indexOf('#');\n const url = hashIndex > -1\n ? (location.host && document.querySelector('base')\n ? base\n : base.slice(hashIndex)) + to\n : createBaseLocation() + base + to;\n try {\n // BROWSER QUIRK\n // NOTE: Safari throws a SecurityError when calling this function 100 times in 30 seconds\n history[replace ? 'replaceState' : 'pushState'](state, '', url);\n historyState.value = state;\n }\n catch (err) {\n if ((process.env.NODE_ENV !== 'production')) {\n warn('Error with push/replace State', err);\n }\n else {\n console.error(err);\n }\n // Force the navigation, this also resets the call count\n location[replace ? 'replace' : 'assign'](url);\n }\n }\n function replace(to, data) {\n const state = assign({}, history.state, buildState(historyState.value.back, \n // keep back and forward entries but override current position\n to, historyState.value.forward, true), data, { position: historyState.value.position });\n changeLocation(to, state, true);\n currentLocation.value = to;\n }\n function push(to, data) {\n // Add to current entry the information of where we are going\n // as well as saving the current position\n const currentState = assign({}, \n // use current history state to gracefully handle a wrong call to\n // history.replaceState\n // https://github.com/vuejs/router/issues/366\n historyState.value, history.state, {\n forward: to,\n scroll: computeScrollPosition(),\n });\n if ((process.env.NODE_ENV !== 'production') && !history.state) {\n warn(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:\\n\\n` +\n `history.replaceState(history.state, '', url)\\n\\n` +\n `You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`);\n }\n changeLocation(currentState.current, currentState, true);\n const state = assign({}, buildState(currentLocation.value, to, null), { position: currentState.position + 1 }, data);\n changeLocation(to, state, false);\n currentLocation.value = to;\n }\n return {\n location: currentLocation,\n state: historyState,\n push,\n replace,\n };\n}\n/**\n * Creates an HTML5 history. Most common history for single page applications.\n *\n * @param base -\n */\nfunction createWebHistory(base) {\n base = normalizeBase(base);\n const historyNavigation = useHistoryStateNavigation(base);\n const historyListeners = useHistoryListeners(base, historyNavigation.state, historyNavigation.location, historyNavigation.replace);\n function go(delta, triggerListeners = true) {\n if (!triggerListeners)\n historyListeners.pauseListeners();\n history.go(delta);\n }\n const routerHistory = assign({\n // it's overridden right after\n location: '',\n base,\n go,\n createHref: createHref.bind(null, base),\n }, historyNavigation, historyListeners);\n Object.defineProperty(routerHistory, 'location', {\n enumerable: true,\n get: () => historyNavigation.location.value,\n });\n Object.defineProperty(routerHistory, 'state', {\n enumerable: true,\n get: () => historyNavigation.state.value,\n });\n return routerHistory;\n}\n\n/**\n * Creates an in-memory based history. The main purpose of this history is to handle SSR. It starts in a special location that is nowhere.\n * It's up to the user to replace that location with the starter location by either calling `router.push` or `router.replace`.\n *\n * @param base - Base applied to all urls, defaults to '/'\n * @returns a history object that can be passed to the router constructor\n */\nfunction createMemoryHistory(base = '') {\n let listeners = [];\n let queue = [[START, {}]];\n let position = 0;\n base = normalizeBase(base);\n function setLocation(location, state = {}) {\n position++;\n if (position !== queue.length) {\n // we are in the middle, we remove everything from here in the queue\n queue.splice(position);\n }\n queue.push([location, state]);\n }\n function triggerListeners(to, from, { direction, delta }) {\n const info = {\n direction,\n delta,\n type: NavigationType.pop,\n };\n for (const callback of listeners) {\n callback(to, from, info);\n }\n }\n const routerHistory = {\n // rewritten by Object.defineProperty\n location: START,\n // rewritten by Object.defineProperty\n state: {},\n base,\n createHref: createHref.bind(null, base),\n replace(to, state) {\n // remove current entry and decrement position\n queue.splice(position--, 1);\n setLocation(to, state);\n },\n push(to, state) {\n setLocation(to, state);\n },\n listen(callback) {\n listeners.push(callback);\n return () => {\n const index = listeners.indexOf(callback);\n if (index > -1)\n listeners.splice(index, 1);\n };\n },\n destroy() {\n listeners = [];\n queue = [[START, {}]];\n position = 0;\n },\n go(delta, shouldTrigger = true) {\n const from = this.location;\n const direction = \n // we are considering delta === 0 going forward, but in abstract mode\n // using 0 for the delta doesn't make sense like it does in html5 where\n // it reloads the page\n delta < 0 ? NavigationDirection.back : NavigationDirection.forward;\n position = Math.max(0, Math.min(position + delta, queue.length - 1));\n if (shouldTrigger) {\n triggerListeners(this.location, from, {\n direction,\n delta,\n });\n }\n },\n };\n Object.defineProperty(routerHistory, 'location', {\n enumerable: true,\n get: () => queue[position][0],\n });\n Object.defineProperty(routerHistory, 'state', {\n enumerable: true,\n get: () => queue[position][1],\n });\n return routerHistory;\n}\n\n/**\n * Creates a hash history. Useful for web applications with no host (e.g. `file://`) or when configuring a server to\n * handle any URL is not possible.\n *\n * @param base - optional base to provide. Defaults to `location.pathname + location.search` If there is a `<base>` tag\n * in the `head`, its value will be ignored in favor of this parameter **but note it affects all the history.pushState()\n * calls**, meaning that if you use a `<base>` tag, it's `href` value **has to match this parameter** (ignoring anything\n * after the `#`).\n *\n * @example\n * ```js\n * // at https://example.com/folder\n * createWebHashHistory() // gives a url of `https://example.com/folder#`\n * createWebHashHistory('/folder/') // gives a url of `https://example.com/folder/#`\n * // if the `#` is provided in the base, it won't be added by `createWebHashHistory`\n * createWebHashHistory('/folder/#/app/') // gives a url of `https://example.com/folder/#/app/`\n * // you should avoid doing this because it changes the original url and breaks copying urls\n * createWebHashHistory('/other-folder/') // gives a url of `https://example.com/other-folder/#`\n *\n * // at file:///usr/etc/folder/index.html\n * // for locations with no `host`, the base is ignored\n * createWebHashHistory('/iAmIgnored') // gives a url of `file:///usr/etc/folder/index.html#`\n * ```\n */\nfunction createWebHashHistory(base) {\n // Make sure this implementation is fine in terms of encoding, specially for IE11\n // for `file://`, directly use the pathname and ignore the base\n // location.pathname contains an initial `/` even at the root: `https://example.com`\n base = location.host ? base || location.pathname + location.search : '';\n // allow the user to provide a `#` in the middle: `/base/#/app`\n if (!base.includes('#'))\n base += '#';\n if ((process.env.NODE_ENV !== 'production') && !base.endsWith('#/') && !base.endsWith('#')) {\n warn(`A hash base must end with a \"#\":\\n\"${base}\" should be \"${base.replace(/#.*$/, '#')}\".`);\n }\n return createWebHistory(base);\n}\n\nfunction isRouteLocation(route) {\n return typeof route === 'string' || (route && typeof route === 'object');\n}\nfunction isRouteName(name) {\n return typeof name === 'string' || typeof name === 'symbol';\n}\n\nconst NavigationFailureSymbol = Symbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : '');\n/**\n * Enumeration with all possible types for navigation failures. Can be passed to\n * {@link isNavigationFailure} to check for specific failures.\n */\nvar NavigationFailureType;\n(function (NavigationFailureType) {\n /**\n * An aborted navigation is a navigation that failed because a navigation\n * guard returned `false` or called `next(false)`\n */\n NavigationFailureType[NavigationFailureType[\"aborted\"] = 4] = \"aborted\";\n /**\n * A cancelled navigation is a navigation that failed because a more recent\n * navigation finished started (not necessarily finished).\n */\n NavigationFailureType[NavigationFailureType[\"cancelled\"] = 8] = \"cancelled\";\n /**\n * A duplicated navigation is a navigation that failed because it was\n * initiated while already being at the exact same location.\n */\n NavigationFailureType[NavigationFailureType[\"duplicated\"] = 16] = \"duplicated\";\n})(NavigationFailureType || (NavigationFailureType = {}));\n// DEV only debug messages\nconst ErrorTypeMessages = {\n [1 /* ErrorTypes.MATCHER_NOT_FOUND */]({ location, currentLocation }) {\n return `No match for\\n ${JSON.stringify(location)}${currentLocation\n ? '\\nwhile being at\\n' + JSON.stringify(currentLocation)\n : ''}`;\n },\n [2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */]({ from, to, }) {\n return `Redirected from \"${from.fullPath}\" to \"${stringifyRoute(to)}\" via a navigation guard.`;\n },\n [4 /* ErrorTypes.NAVIGATION_ABORTED */]({ from, to }) {\n return `Navigation aborted from \"${from.fullPath}\" to \"${to.fullPath}\" via a navigation guard.`;\n },\n [8 /* ErrorTypes.NAVIGATION_CANCELLED */]({ from, to }) {\n return `Navigation cancelled from \"${from.fullPath}\" to \"${to.fullPath}\" with a new navigation.`;\n },\n [16 /* ErrorTypes.NAVIGATION_DUPLICATED */]({ from, to }) {\n return `Avoided redundant navigation to current location: \"${from.fullPath}\".`;\n },\n};\n/**\n * Creates a typed NavigationFailure object.\n * @internal\n * @param type - NavigationFailureType\n * @param params - { from, to }\n */\nfunction createRouterError(type, params) {\n // keep full error messages in cjs versions\n if ((process.env.NODE_ENV !== 'production') || !true) {\n return assign(new Error(ErrorTypeMessages[type](params)), {\n type,\n [NavigationFailureSymbol]: true,\n }, params);\n }\n else {\n return assign(new Error(), {\n type,\n [NavigationFailureSymbol]: true,\n }, params);\n }\n}\nfunction isNavigationFailure(error, type) {\n return (error instanceof Error &&\n NavigationFailureSymbol in error &&\n (type == null || !!(error.type & type)));\n}\nconst propertiesToLog = ['params', 'query', 'hash'];\nfunction stringifyRoute(to) {\n if (typeof to === 'string')\n return to;\n if (to.path != null)\n return to.path;\n const location = {};\n for (const key of propertiesToLog) {\n if (key in to)\n location[key] = to[key];\n }\n return JSON.stringify(location, null, 2);\n}\n\n// default pattern for a param: non-greedy everything but /\nconst BASE_PARAM_PATTERN = '[^/]+?';\nconst BASE_PATH_PARSER_OPTIONS = {\n sensitive: false,\n strict: false,\n start: true,\n end: true,\n};\n// Special Regex characters that must be escaped in static tokens\nconst REGEX_CHARS_RE = /[.+*?^${}()[\\]/\\\\]/g;\n/**\n * Creates a path parser from an array of Segments (a segment is an array of Tokens)\n *\n * @param segments - array of segments returned by tokenizePath\n * @param extraOptions - optional options for the regexp\n * @returns a PathParser\n */\nfunction tokensToParser(segments, extraOptions) {\n const options = assign({}, BASE_PATH_PARSER_OPTIONS, extraOptions);\n // the amount of scores is the same as the length of segments except for the root segment \"/\"\n const score = [];\n // the regexp as a string\n let pattern = options.start ? '^' : '';\n // extracted keys\n const keys = [];\n for (const segment of segments) {\n // the root segment needs special treatment\n const segmentScores = segment.length ? [] : [90 /* PathScore.Root */];\n // allow trailing slash\n if (options.strict && !segment.length)\n pattern += '/';\n for (let tokenIndex = 0; tokenIndex < segment.length; tokenIndex++) {\n const token = segment[tokenIndex];\n // resets the score if we are inside a sub-segment /:a-other-:b\n let subSegmentScore = 40 /* PathScore.Segment */ +\n (options.sensitive ? 0.25 /* PathScore.BonusCaseSensitive */ : 0);\n if (token.type === 0 /* TokenType.Static */) {\n // prepend the slash if we are starting a new segment\n if (!tokenIndex)\n pattern += '/';\n pattern += token.value.replace(REGEX_CHARS_RE, '\\\\$&');\n subSegmentScore += 40 /* PathScore.Static */;\n }\n else if (token.type === 1 /* TokenType.Param */) {\n const { value, repeatable, optional, regexp } = token;\n keys.push({\n name: value,\n repeatable,\n optional,\n });\n const re = regexp ? regexp : BASE_PARAM_PATTERN;\n // the user provided a custom regexp /:id(\\\\d+)\n if (re !== BASE_PARAM_PATTERN) {\n subSegmentScore += 10 /* PathScore.BonusCustomRegExp */;\n // make sure the regexp is valid before using it\n try {\n new RegExp(`(${re})`);\n }\n catch (err) {\n throw new Error(`Invalid custom RegExp for param \"${value}\" (${re}): ` +\n err.message);\n }\n }\n // when we repeat we must take care of the repeating leading slash\n let subPattern = repeatable ? `((?:${re})(?:/(?:${re}))*)` : `(${re})`;\n // prepend the slash if we are starting a new segment\n if (!tokenIndex)\n subPattern =\n // avoid an optional / if there are more segments e.g. /:p?-static\n // or /:p?-:p2\n optional && segment.length < 2\n ? `(?:/${subPattern})`\n : '/' + subPattern;\n if (optional)\n subPattern += '?';\n pattern += subPattern;\n subSegmentScore += 20 /* PathScore.Dynamic */;\n if (optional)\n subSegmentScore += -8 /* PathScore.BonusOptional */;\n if (repeatable)\n subSegmentScore += -20 /* PathScore.BonusRepeatable */;\n if (re === '.*')\n subSegmentScore += -50 /* PathScore.BonusWildcard */;\n }\n segmentScores.push(subSegmentScore);\n }\n // an empty array like /home/ -> [[{home}], []]\n // if (!segment.length) pattern += '/'\n score.push(segmentScores);\n }\n // only apply the strict bonus to the last score\n if (options.strict && options.end) {\n const i = score.length - 1;\n score[i][score[i].length - 1] += 0.7000000000000001 /* PathScore.BonusStrict */;\n }\n // TODO: dev only warn double trailing slash\n if (!options.strict)\n pattern += '/?';\n if (options.end)\n pattern += '$';\n // allow paths like /dynamic to only match dynamic or dynamic/... but not dynamic_something_else\n else if (options.strict && !pattern.endsWith('/'))\n pattern += '(?:/|$)';\n const re = new RegExp(pattern, options.sensitive ? '' : 'i');\n function parse(path) {\n const match = path.match(re);\n const params = {};\n if (!match)\n return null;\n for (let i = 1; i < match.length; i++) {\n const value = match[i] || '';\n const key = keys[i - 1];\n params[key.name] = value && key.repeatable ? value.split('/') : value;\n }\n return params;\n }\n function stringify(params) {\n let path = '';\n // for optional parameters to allow to be empty\n let avoidDuplicatedSlash = false;\n for (const segment of segments) {\n if (!avoidDuplicatedSlash || !path.endsWith('/'))\n path += '/';\n avoidDuplicatedSlash = false;\n for (const token of segment) {\n if (token.type === 0 /* TokenType.Static */) {\n path += token.value;\n }\n else if (token.type === 1 /* TokenType.Param */) {\n const { value, repeatable, optional } = token;\n const param = value in params ? params[value] : '';\n if (isArray(param) && !repeatable) {\n throw new Error(`Provided param \"${value}\" is an array but it is not repeatable (* or + modifiers)`);\n }\n const text = isArray(param)\n ? param.join('/')\n : param;\n if (!text) {\n if (optional) {\n // if we have more than one optional param like /:a?-static we don't need to care about the optional param\n if (segment.length < 2) {\n // remove the last slash as we could be at the end\n if (path.endsWith('/'))\n path = path.slice(0, -1);\n // do not append a slash on the next iteration\n else\n avoidDuplicatedSlash = true;\n }\n }\n else\n throw new Error(`Missing required param \"${value}\"`);\n }\n path += text;\n }\n }\n }\n // avoid empty path when we have multiple optional params\n return path || '/';\n }\n return {\n re,\n score,\n keys,\n parse,\n stringify,\n };\n}\n/**\n * Compares an array of numbers as used in PathParser.score and returns a\n * number. This function can be used to `sort` an array\n *\n * @param a - first array of numbers\n * @param b - second array of numbers\n * @returns 0 if both are equal, < 0 if a should be sorted first, > 0 if b\n * should be sorted first\n */\nfunction compareScoreArray(a, b) {\n let i = 0;\n while (i < a.length && i < b.length) {\n const diff = b[i] - a[i];\n // only keep going if diff === 0\n if (diff)\n return diff;\n i++;\n }\n // if the last subsegment was Static, the shorter segments should be sorted first\n // otherwise sort the longest segment first\n if (a.length < b.length) {\n return a.length === 1 && a[0] === 40 /* PathScore.Static */ + 40 /* PathScore.Segment */\n ? -1\n : 1;\n }\n else if (a.length > b.length) {\n return b.length === 1 && b[0] === 40 /* PathScore.Static */ + 40 /* PathScore.Segment */\n ? 1\n : -1;\n }\n return 0;\n}\n/**\n * Compare function that can be used with `sort` to sort an array of PathParser\n *\n * @param a - first PathParser\n * @param b - second PathParser\n * @returns 0 if both are equal, < 0 if a should be sorted first, > 0 if b\n */\nfunction comparePathParserScore(a, b) {\n let i = 0;\n const aScore = a.score;\n const bScore = b.score;\n while (i < aScore.length && i < bScore.length) {\n const comp = compareScoreArray(aScore[i], bScore[i]);\n // do not return if both are equal\n if (comp)\n return comp;\n i++;\n }\n if (Math.abs(bScore.length - aScore.length) === 1) {\n if (isLastScoreNegative(aScore))\n return 1;\n if (isLastScoreNegative(bScore))\n return -1;\n }\n // if a and b share the same score entries but b has more, sort b first\n return bScore.length - aScore.length;\n // this is the ternary version\n // return aScore.length < bScore.length\n // ? 1\n // : aScore.length > bScore.length\n // ? -1\n // : 0\n}\n/**\n * This allows detecting splats at the end of a path: /home/:id(.*)*\n *\n * @param score - score to check\n * @returns true if the last entry is negative\n */\nfunction isLastScoreNegative(score) {\n const last = score[score.length - 1];\n return score.length > 0 && last[last.length - 1] < 0;\n}\n\nconst ROOT_TOKEN = {\n type: 0 /* TokenType.Static */,\n value: '',\n};\nconst VALID_PARAM_RE = /[a-zA-Z0-9_]/;\n// After some profiling, the cache seems to be unnecessary because tokenizePath\n// (the slowest part of adding a route) is very fast\n// const tokenCache = new Map<string, Token[][]>()\nfunction tokenizePath(path) {\n if (!path)\n return [[]];\n if (path === '/')\n return [[ROOT_TOKEN]];\n if (!path.startsWith('/')) {\n throw new Error((process.env.NODE_ENV !== 'production')\n ? `Route paths should start with a \"/\": \"${path}\" should be \"/${path}\".`\n : `Invalid path \"${path}\"`);\n }\n // if (tokenCache.has(path)) return tokenCache.get(path)!\n function crash(message) {\n throw new Error(`ERR (${state})/\"${buffer}\": ${message}`);\n }\n let state = 0 /* TokenizerState.Static */;\n let previousState = state;\n const tokens = [];\n // the segment will always be valid because we get into the initial state\n // with the leading /\n let segment;\n function finalizeSegment() {\n if (segment)\n tokens.push(segment);\n segment = [];\n }\n // index on the path\n let i = 0;\n // char at index\n let char;\n // buffer of the value read\n let buffer = '';\n // custom regexp for a param\n let customRe = '';\n function consumeBuffer() {\n if (!buffer)\n return;\n if (state === 0 /* TokenizerState.Static */) {\n segment.push({\n type: 0 /* TokenType.Static */,\n value: buffer,\n });\n }\n else if (state === 1 /* TokenizerState.Param */ ||\n state === 2 /* TokenizerState.ParamRegExp */ ||\n state === 3 /* TokenizerState.ParamRegExpEnd */) {\n if (segment.length > 1 && (char === '*' || char === '+'))\n crash(`A repeatable param (${buffer}) must be alone in its segment. eg: '/:ids+.`);\n segment.push({\n type: 1 /* TokenType.Param */,\n value: buffer,\n regexp: customRe,\n repeatable: char === '*' || char === '+',\n optional: char === '*' || char === '?',\n });\n }\n else {\n crash('Invalid state to consume buffer');\n }\n buffer = '';\n }\n function addCharToBuffer() {\n buffer += char;\n }\n while (i < path.length) {\n char = path[i++];\n if (char === '\\\\' && state !== 2 /* TokenizerState.ParamRegExp */) {\n previousState = state;\n state = 4 /* TokenizerState.EscapeNext */;\n continue;\n }\n switch (state) {\n case 0 /* TokenizerState.Static */:\n if (char === '/') {\n if (buffer) {\n consumeBuffer();\n }\n finalizeSegment();\n }\n else if (char === ':') {\n consumeBuffer();\n state = 1 /* TokenizerState.Param */;\n }\n else {\n addCharToBuffer();\n }\n break;\n case 4 /* TokenizerState.EscapeNext */:\n addCharToBuffer();\n state = previousState;\n break;\n case 1 /* TokenizerState.Param */:\n if (char === '(') {\n state = 2 /* TokenizerState.ParamRegExp */;\n }\n else if (VALID_PARAM_RE.test(char)) {\n addCharToBuffer();\n }\n else {\n consumeBuffer();\n state = 0 /* TokenizerState.Static */;\n // go back one character if we were not modifying\n if (char !== '*' && char !== '?' && char !== '+')\n i--;\n }\n break;\n case 2 /* TokenizerState.ParamRegExp */:\n // TODO: is it worth handling nested regexp? like :p(?:prefix_([^/]+)_suffix)\n // it already works by escaping the closing )\n // https://paths.esm.dev/?p=AAMeJbiAwQEcDKbAoAAkP60PG2R6QAvgNaA6AFACM2ABuQBB#\n // is this really something people need since you can also write\n // /prefix_:p()_suffix\n if (char === ')') {\n // handle the escaped )\n if (customRe[customRe.length - 1] == '\\\\')\n customRe = customRe.slice(0, -1) + char;\n else\n state = 3 /* TokenizerState.ParamRegExpEnd */;\n }\n else {\n customRe += char;\n }\n break;\n case 3 /* TokenizerState.ParamRegExpEnd */:\n // same as finalizing a param\n consumeBuffer();\n state = 0 /* TokenizerState.Static */;\n // go back one character if we were not modifying\n if (char !== '*' && char !== '?' && char !== '+')\n i--;\n customRe = '';\n break;\n default:\n crash('Unknown state');\n break;\n }\n }\n if (state === 2 /* TokenizerState.ParamRegExp */)\n crash(`Unfinished custom RegExp for param \"${buffer}\"`);\n consumeBuffer();\n finalizeSegment();\n // tokenCache.set(path, tokens)\n return tokens;\n}\n\nfunction createRouteRecordMatcher(record, parent, options) {\n const parser = tokensToParser(tokenizePath(record.path), options);\n // warn against params with the same name\n if ((process.env.NODE_ENV !== 'production')) {\n const existingKeys = new Set();\n for (const key of parser.keys) {\n if (existingKeys.has(key.name))\n warn(`Found duplicated params with name \"${key.name}\" for path \"${record.path}\". Only the last one will be available on \"$route.params\".`);\n existingKeys.add(key.name);\n }\n }\n const matcher = assign(parser, {\n record,\n parent,\n // these needs to be populated by the parent\n children: [],\n alias: [],\n });\n if (parent) {\n // both are aliases or both are not aliases\n // we don't want to mix them because the order is used when\n // passing originalRecord in Matcher.addRoute\n if (!matcher.record.aliasOf === !parent.record.aliasOf)\n parent.children.push(matcher);\n }\n return matcher;\n}\n\n/**\n * Creates a Router Matcher.\n *\n * @internal\n * @param routes - array of initial routes\n * @param globalOptions - global route options\n */\nfunction createRouterMatcher(routes, globalOptions) {\n // normalized ordered array of matchers\n const matchers = [];\n const matcherMap = new Map();\n globalOptions = mergeOptions({ strict: false, end: true, sensitive: false }, globalOptions);\n function getRecordMatcher(name) {\n return matcherMap.get(name);\n }\n function addRoute(record, parent, originalRecord) {\n // used later on to remove by name\n const isRootAdd = !originalRecord;\n const mainNormalizedRecord = normalizeRouteRecord(record);\n if ((process.env.NODE_ENV !== 'production')) {\n checkChildMissingNameWithEmptyPath(mainNormalizedRecord, parent);\n }\n // we might be the child of an alias\n mainNormalizedRecord.aliasOf = originalRecord && originalRecord.record;\n const options = mergeOptions(globalOptions, record);\n // generate an array of records to correctly handle aliases\n const normalizedRecords = [mainNormalizedRecord];\n if ('alias' in record) {\n const aliases = typeof record.alias === 'string' ? [record.alias] : record.alias;\n for (const alias of aliases) {\n normalizedRecords.push(\n // we need to normalize again to ensure the `mods` property\n // being non enumerable\n normalizeRouteRecord(assign({}, mainNormalizedRecord, {\n // this allows us to hold a copy of the `components` option\n // so that async components cache is hold on the original record\n components: originalRecord\n ? originalRecord.record.components\n : mainNormalizedRecord.components,\n path: alias,\n // we might be the child of an alias\n aliasOf: originalRecord\n ? originalRecord.record\n : mainNormalizedRecord,\n // the aliases are always of the same kind as the original since they\n // are defined on the same record\n })));\n }\n }\n let matcher;\n let originalMatcher;\n for (const normalizedRecord of normalizedRecords) {\n const { path } = normalizedRecord;\n // Build up the path for nested routes if the child isn't an absolute\n // route. Only add the / delimiter if the child path isn't empty and if the\n // parent path doesn't have a trailing slash\n if (parent && path[0] !== '/') {\n const parentPath = parent.record.path;\n const connectingSlash = parentPath[parentPath.length - 1] === '/' ? '' : '/';\n normalizedRecord.path =\n parent.record.path + (path && connectingSlash + path);\n }\n if ((process.env.NODE_ENV !== 'production') && normalizedRecord.path === '*') {\n throw new Error('Catch all routes (\"*\") must now be defined using a param with a custom regexp.\\n' +\n 'See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.');\n }\n // create the object beforehand, so it can be passed to children\n matcher = createRouteRecordMatcher(normalizedRecord, parent, options);\n if ((process.env.NODE_ENV !== 'production') && parent && path[0] === '/')\n checkMissingParamsInAbsolutePath(matcher, parent);\n // if we are an alias we must tell the original record that we exist,\n // so we can be removed\n if (originalRecord) {\n originalRecord.alias.push(matcher);\n if ((process.env.NODE_ENV !== 'production')) {\n checkSameParams(originalRecord, matcher);\n }\n }\n else {\n // otherwise, the first record is the original and others are aliases\n originalMatcher = originalMatcher || matcher;\n if (originalMatcher !== matcher)\n originalMatcher.alias.push(matcher);\n // remove the route if named and only for the top record (avoid in nested calls)\n // this works because the original record is the first one\n if (isRootAdd && record.name && !isAliasRecord(matcher)) {\n if ((process.env.NODE_ENV !== 'production')) {\n checkSameNameAsAncestor(record, parent);\n }\n removeRoute(record.name);\n }\n }\n // Avoid adding a record that doesn't display anything. This allows passing through records without a component to\n // not be reached and pass through the catch all route\n if (isMatchable(matcher)) {\n insertMatcher(matcher);\n }\n if (mainNormalizedRecord.children) {\n const children = mainNormalizedRecord.children;\n for (let i = 0; i < children.length; i++) {\n addRoute(children[i], matcher, originalRecord && originalRecord.children[i]);\n }\n }\n // if there was no original record, then the first one was not an alias and all\n // other aliases (if any) need to reference this record when adding children\n originalRecord = originalRecord || matcher;\n // TODO: add normalized records for more flexibility\n // if (parent && isAliasRecord(originalRecord)) {\n // parent.children.push(originalRecord)\n // }\n }\n return originalMatcher\n ? () => {\n // since other matchers are aliases, they should be removed by the original matcher\n removeRoute(originalMatcher);\n }\n : noop;\n }\n function removeRoute(matcherRef) {\n if (isRouteName(matcherRef)) {\n const matcher = matcherMap.get(matcherRef);\n if (matcher) {\n matcherMap.delete(matcherRef);\n matchers.splice(matchers.indexOf(matcher), 1);\n matcher.children.forEach(removeRoute);\n matcher.alias.forEach(removeRoute);\n }\n }\n else {\n const index = matchers.indexOf(matcherRef);\n if (index > -1) {\n matchers.splice(index, 1);\n if (matcherRef.record.name)\n matcherMap.delete(matcherRef.record.name);\n matcherRef.children.forEach(removeRoute);\n matcherRef.alias.forEach(removeRoute);\n }\n }\n }\n function getRoutes() {\n return matchers;\n }\n function insertMatcher(matcher) {\n const index = findInsertionIndex(matcher, matchers);\n matchers.splice(index, 0, matcher);\n // only add the original record to the name map\n if (matcher.record.name && !isAliasRecord(matcher))\n matcherMap.set(matcher.record.name, matcher);\n }\n function resolve(location, currentLocation) {\n let matcher;\n let params = {};\n let path;\n let name;\n if ('name' in location && location.name) {\n matcher = matcherMap.get(location.name);\n if (!matcher)\n throw createRouterError(1 /* ErrorTypes.MATCHER_NOT_FOUND */, {\n location,\n });\n // warn if the user is passing invalid params so they can debug it better when they get removed\n if ((process.env.NODE_ENV !== 'production')) {\n const invalidParams = Object.keys(location.params || {}).filter(paramName => !matcher.keys.find(k => k.name === paramName));\n if (invalidParams.length) {\n warn(`Discarded invalid param(s) \"${invalidParams.join('\", \"')}\" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);\n }\n }\n name = matcher.record.name;\n params = assign(\n // paramsFromLocation is a new object\n paramsFromLocation(currentLocation.params, \n // only keep params that exist in the resolved location\n // only keep optional params coming from a parent record\n matcher.keys\n .filter(k => !k.optional)\n .concat(matcher.parent ? matcher.parent.keys.filter(k => k.optional) : [])\n .map(k => k.name)), \n // discard any existing params in the current location that do not exist here\n // #1497 this ensures better active/exact matching\n location.params &&\n paramsFromLocation(location.params, matcher.keys.map(k => k.name)));\n // throws if cannot be stringified\n path = matcher.stringify(params);\n }\n else if (location.path != null) {\n // no need to resolve the path with the matcher as it was provided\n // this also allows the user to control the encoding\n path = location.path;\n if ((process.env.NODE_ENV !== 'production') && !path.startsWith('/')) {\n warn(`The Matcher cannot resolve relative paths but received \"${path}\". Unless you directly called \\`matcher.resolve(\"${path}\")\\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`);\n }\n matcher = matchers.find(m => m.re.test(path));\n // matcher should have a value after the loop\n if (matcher) {\n // we know the matcher works because we tested the regexp\n params = matcher.parse(path);\n name = matcher.record.name;\n }\n // location is a relative path\n }\n else {\n // match by name or path of current route\n matcher = currentLocation.name\n ? matcherMap.get(currentLocation.name)\n : matchers.find(m => m.re.test(currentLocation.path));\n if (!matcher)\n throw createRouterError(1 /* ErrorTypes.MATCHER_NOT_FOUND */, {\n location,\n currentLocation,\n });\n name = matcher.record.name;\n // since we are navigating to the same location, we don't need to pick the\n // params like when `name` is provided\n params = assign({}, currentLocation.params, location.params);\n path = matcher.stringify(params);\n }\n const matched = [];\n let parentMatcher = matcher;\n while (parentMatcher) {\n // reversed order so parents are at the beginning\n matched.unshift(parentMatcher.record);\n parentMatcher = parentMatcher.parent;\n }\n return {\n name,\n path,\n params,\n matched,\n meta: mergeMetaFields(matched),\n };\n }\n // add initial routes\n routes.forEach(route => addRoute(route));\n function clearRoutes() {\n matchers.length = 0;\n matcherMap.clear();\n }\n return {\n addRoute,\n resolve,\n removeRoute,\n clearRoutes,\n getRoutes,\n getRecordMatcher,\n };\n}\nfunction paramsFromLocation(params, keys) {\n const newParams = {};\n for (const key of keys) {\n if (key in params)\n newParams[key] = params[key];\n }\n return newParams;\n}\n/**\n * Normalizes a RouteRecordRaw. Creates a copy\n *\n * @param record\n * @returns the normalized version\n */\nfunction normalizeRouteRecord(record) {\n const normalized = {\n path: record.path,\n redirect: record.redirect,\n name: record.name,\n meta: record.meta || {},\n aliasOf: record.aliasOf,\n beforeEnter: record.beforeEnter,\n props: normalizeRecordProps(record),\n children: record.children || [],\n instances: {},\n leaveGuards: new Set(),\n updateGuards: new Set(),\n enterCallbacks: {},\n // must be declared afterwards\n // mods: {},\n components: 'components' in record\n ? record.components || null\n : record.component && { default: record.component },\n };\n // mods contain modules and shouldn't be copied,\n // logged or anything. It's just used for internal\n // advanced use cases like data loaders\n Object.defineProperty(normalized, 'mods', {\n value: {},\n });\n return normalized;\n}\n/**\n * Normalize the optional `props` in a record to always be an object similar to\n * components. Also accept a boolean for components.\n * @param record\n */\nfunction normalizeRecordProps(record) {\n const propsObject = {};\n // props does not exist on redirect records, but we can set false directly\n const props = record.props || false;\n if ('component' in record) {\n propsObject.default = props;\n }\n else {\n // NOTE: we could also allow a function to be applied to every component.\n // Would need user feedback for use cases\n for (const name in record.components)\n propsObject[name] = typeof props === 'object' ? props[name] : props;\n }\n return propsObject;\n}\n/**\n * Checks if a record or any of its parent is an alias\n * @param record\n */\nfunction isAliasRecord(record) {\n while (record) {\n if (record.record.aliasOf)\n return true;\n record = record.parent;\n }\n return false;\n}\n/**\n * Merge meta fields of an array of records\n *\n * @param matched - array of matched records\n */\nfunction mergeMetaFields(matched) {\n return matched.reduce((meta, record) => assign(meta, record.meta), {});\n}\nfunction mergeOptions(defaults, partialOptions) {\n const options = {};\n for (const key in defaults) {\n options[key] = key in partialOptions ? partialOptions[key] : defaults[key];\n }\n return options;\n}\nfunction isSameParam(a, b) {\n return (a.name === b.name &&\n a.optional === b.optional &&\n a.repeatable === b.repeatable);\n}\n/**\n * Check if a path and its alias have the same required params\n *\n * @param a - original record\n * @param b - alias record\n */\nfunction checkSameParams(a, b) {\n for (const key of a.keys) {\n if (!key.optional && !b.keys.find(isSameParam.bind(null, key)))\n return warn(`Alias \"${b.record.path}\" and the original record: \"${a.record.path}\" must have the exact same param named \"${key.name}\"`);\n }\n for (const key of b.keys) {\n if (!key.optional && !a.keys.find(isSameParam.bind(null, key)))\n return warn(`Alias \"${b.record.path}\" and the original record: \"${a.record.path}\" must have the exact same param named \"${key.name}\"`);\n }\n}\n/**\n * A route with a name and a child with an empty path without a name should warn when adding the route\n *\n * @param mainNormalizedRecord - RouteRecordNormalized\n * @param parent - RouteRecordMatcher\n */\nfunction checkChildMissingNameWithEmptyPath(mainNormalizedRecord, parent) {\n if (parent &&\n parent.record.name &&\n !mainNormalizedRecord.name &&\n !mainNormalizedRecord.path) {\n warn(`The route named \"${String(parent.record.name)}\" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);\n }\n}\nfunction checkSameNameAsAncestor(record, parent) {\n for (let ancestor = parent; ancestor; ancestor = ancestor.parent) {\n if (ancestor.record.name === record.name) {\n throw new Error(`A route named \"${String(record.name)}\" has been added as a ${parent === ancestor ? 'child' : 'descendant'} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);\n }\n }\n}\nfunction checkMissingParamsInAbsolutePath(record, parent) {\n for (const key of parent.keys) {\n if (!record.keys.find(isSameParam.bind(null, key)))\n return warn(`Absolute path \"${record.record.path}\" must have the exact same param named \"${key.name}\" as its parent \"${parent.record.path}\".`);\n }\n}\n/**\n * Performs a binary search to find the correct insertion index for a new matcher.\n *\n * Matchers are primarily sorted by their score. If scores are tied then we also consider parent/child relationships,\n * with descendants coming before ancestors. If there's still a tie, new routes are inserted after existing routes.\n *\n * @param matcher - new matcher to be inserted\n * @param matchers - existing matchers\n */\nfunction findInsertionIndex(matcher, matchers) {\n // First phase: binary search based on score\n let lower = 0;\n let upper = matchers.length;\n while (lower !== upper) {\n const mid = (lower + upper) >> 1;\n const sortOrder = comparePathParserScore(matcher, matchers[mid]);\n if (sortOrder < 0) {\n upper = mid;\n }\n else {\n lower = mid + 1;\n }\n }\n // Second phase: check for an ancestor with the same score\n const insertionAncestor = getInsertionAncestor(matcher);\n if (insertionAncestor) {\n upper = matchers.lastIndexOf(insertionAncestor, upper - 1);\n if ((process.env.NODE_ENV !== 'production') && upper < 0) {\n // This should never happen\n warn(`Finding ancestor route \"${insertionAncestor.record.path}\" failed for \"${matcher.record.path}\"`);\n }\n }\n return upper;\n}\nfunction getInsertionAncestor(matcher) {\n let ancestor = matcher;\n while ((ancestor = ancestor.parent)) {\n if (isMatchable(ancestor) &&\n comparePathParserScore(matcher, ancestor) === 0) {\n return ancestor;\n }\n }\n return;\n}\n/**\n * Checks if a matcher can be reachable. This means if it's possible to reach it as a route. For example, routes without\n * a component, or name, or redirect, are just used to group other routes.\n * @param matcher\n * @param matcher.record record of the matcher\n * @returns\n */\nfunction isMatchable({ record }) {\n return !!(record.name ||\n (record.components && Object.keys(record.components).length) ||\n record.redirect);\n}\n\n/**\n * Transforms a queryString into a {@link LocationQuery} object. Accept both, a\n * version with the leading `?` and without Should work as URLSearchParams\n\n * @internal\n *\n * @param search - search string to parse\n * @returns a query object\n */\nfunction parseQuery(search) {\n const query = {};\n // avoid creating an object with an empty key and empty value\n // because of split('&')\n if (search === '' || search === '?')\n return query;\n const hasLeadingIM = search[0] === '?';\n const searchParams = (hasLeadingIM ? search.slice(1) : search).split('&');\n for (let i = 0; i < searchParams.length; ++i) {\n // pre decode the + into space\n const searchParam = searchParams[i].replace(PLUS_RE, ' ');\n // allow the = character\n const eqPos = searchParam.indexOf('=');\n const key = decode(eqPos < 0 ? searchParam : searchParam.slice(0, eqPos));\n const value = eqPos < 0 ? null : decode(searchParam.slice(eqPos + 1));\n if (key in query) {\n // an extra variable for ts types\n let currentValue = query[key];\n if (!isArray(currentValue)) {\n currentValue = query[key] = [currentValue];\n }\n currentValue.push(value);\n }\n else {\n query[key] = value;\n }\n }\n return query;\n}\n/**\n * Stringifies a {@link LocationQueryRaw} object. Like `URLSearchParams`, it\n * doesn't prepend a `?`\n *\n * @internal\n *\n * @param query - query object to stringify\n * @returns string version of the query without the leading `?`\n */\nfunction stringifyQuery(query) {\n let search = '';\n for (let key in query) {\n const value = query[key];\n key = encodeQueryKey(key);\n if (value == null) {\n // only null adds the value\n if (value !== undefined) {\n search += (search.length ? '&' : '') + key;\n }\n continue;\n }\n // keep null values\n const values = isArray(value)\n ? value.map(v => v && encodeQueryValue(v))\n : [value && encodeQueryValue(value)];\n values.forEach(value => {\n // skip undefined values in arrays as if they were not present\n // smaller code than using filter\n if (value !== undefined) {\n // only append & with non-empty search\n search += (search.length ? '&' : '') + key;\n if (value != null)\n search += '=' + value;\n }\n });\n }\n return search;\n}\n/**\n * Transforms a {@link LocationQueryRaw} into a {@link LocationQuery} by casting\n * numbers into strings, removing keys with an undefined value and replacing\n * undefined with null in arrays\n *\n * @param query - query object to normalize\n * @returns a normalized query object\n */\nfunction normalizeQuery(query) {\n const normalizedQuery = {};\n for (const key in query) {\n const value = query[key];\n if (value !== undefined) {\n normalizedQuery[key] = isArray(value)\n ? value.map(v => (v == null ? null : '' + v))\n : value == null\n ? value\n : '' + value;\n }\n }\n return normalizedQuery;\n}\n\n/**\n * RouteRecord being rendered by the closest ancestor Router View. Used for\n * `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View\n * Location Matched\n *\n * @internal\n */\nconst matchedRouteKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : '');\n/**\n * Allows overriding the router view depth to control which component in\n * `matched` is rendered. rvd stands for Router View Depth\n *\n * @internal\n */\nconst viewDepthKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : '');\n/**\n * Allows overriding the router instance returned by `useRouter` in tests. r\n * stands for router\n *\n * @internal\n */\nconst routerKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router' : '');\n/**\n * Allows overriding the current route returned by `useRoute` in tests. rl\n * stands for route location\n *\n * @internal\n */\nconst routeLocationKey = Symbol((process.env.NODE_ENV !== 'production') ? 'route location' : '');\n/**\n * Allows overriding the current route used by router-view. Internally this is\n * used when the `route` prop is passed.\n *\n * @internal\n */\nconst routerViewLocationKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router view location' : '');\n\n/**\n * Create a list of callbacks that can be reset. Used to create before and after navigation guards list\n */\nfunction useCallbacks() {\n let handlers = [];\n function add(handler) {\n handlers.push(handler);\n return () => {\n const i = handlers.indexOf(handler);\n if (i > -1)\n handlers.splice(i, 1);\n };\n }\n function reset() {\n handlers = [];\n }\n return {\n add,\n list: () => handlers.slice(),\n reset,\n };\n}\n\nfunction registerGuard(record, name, guard) {\n const removeFromList = () => {\n record[name].delete(guard);\n };\n onUnmounted(removeFromList);\n onDeactivated(removeFromList);\n onActivated(() => {\n record[name].add(guard);\n });\n record[name].add(guard);\n}\n/**\n * Add a navigation guard that triggers whenever the component for the current\n * location is about to be left. Similar to {@link beforeRouteLeave} but can be\n * used in any component. The guard is removed when the component is unmounted.\n *\n * @param leaveGuard - {@link NavigationGuard}\n */\nfunction onBeforeRouteLeave(leaveGuard) {\n if ((process.env.NODE_ENV !== 'production') && !getCurrentInstance()) {\n warn('getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function');\n return;\n }\n const activeRecord = inject(matchedRouteKey, \n // to avoid warning\n {}).value;\n if (!activeRecord) {\n (process.env.NODE_ENV !== 'production') &&\n warn('No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?');\n return;\n }\n registerGuard(activeRecord, 'leaveGuards', leaveGuard);\n}\n/**\n * Add a navigation guard that triggers whenever the current location is about\n * to be updated. Similar to {@link beforeRouteUpdate} but can be used in any\n * component. The guard is removed when the component is unmounted.\n *\n * @param updateGuard - {@link NavigationGuard}\n */\nfunction onBeforeRouteUpdate(updateGuard) {\n if ((process.env.NODE_ENV !== 'production') && !getCurrentInstance()) {\n warn('getCurrentInstance() returned null. onBeforeRouteUpdate() must be called at the top of a setup function');\n return;\n }\n const activeRecord = inject(matchedRouteKey, \n // to avoid warning\n {}).value;\n if (!activeRecord) {\n (process.env.NODE_ENV !== 'production') &&\n warn('No active route record was found when calling `onBeforeRouteUpdate()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?');\n return;\n }\n registerGuard(activeRecord, 'updateGuards', updateGuard);\n}\nfunction guardToPromiseFn(guard, to, from, record, name, runWithContext = fn => fn()) {\n // keep a reference to the enterCallbackArray to prevent pushing callbacks if a new navigation took place\n const enterCallbackArray = record &&\n // name is defined if record is because of the function overload\n (record.enterCallbacks[name] = record.enterCallbacks[name] || []);\n return () => new Promise((resolve, reject) => {\n const next = (valid) => {\n if (valid === false) {\n reject(createRouterError(4 /* ErrorTypes.NAVIGATION_ABORTED */, {\n from,\n to,\n }));\n }\n else if (valid instanceof Error) {\n reject(valid);\n }\n else if (isRouteLocation(valid)) {\n reject(createRouterError(2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */, {\n from: to,\n to: valid,\n }));\n }\n else {\n if (enterCallbackArray &&\n // since enterCallbackArray is truthy, both record and name also are\n record.enterCallbacks[name] === enterCallbackArray &&\n typeof valid === 'function') {\n enterCallbackArray.push(valid);\n }\n resolve();\n }\n };\n // wrapping with Promise.resolve allows it to work with both async and sync guards\n const guardReturn = runWithContext(() => guard.call(record && record.instances[name], to, from, (process.env.NODE_ENV !== 'production') ? canOnlyBeCalledOnce(next, to, from) : next));\n let guardCall = Promise.resolve(guardReturn);\n if (guard.length < 3)\n guardCall = guardCall.then(next);\n if ((process.env.NODE_ENV !== 'production') && guard.length > 2) {\n const message = `The \"next\" callback was never called inside of ${guard.name ? '\"' + guard.name + '\"' : ''}:\\n${guard.toString()}\\n. If you are returning a value instead of calling \"next\", make sure to remove the \"next\" parameter from your function.`;\n if (typeof guardReturn === 'object' && 'then' in guardReturn) {\n guardCall = guardCall.then(resolvedValue => {\n // @ts-expect-error: _called is added at canOnlyBeCalledOnce\n if (!next._called) {\n warn(message);\n return Promise.reject(new Error('Invalid navigation guard'));\n }\n return resolvedValue;\n });\n }\n else if (guardReturn !== undefined) {\n // @ts-expect-error: _called is added at canOnlyBeCalledOnce\n if (!next._called) {\n warn(message);\n reject(new Error('Invalid navigation guard'));\n return;\n }\n }\n }\n guardCall.catch(err => reject(err));\n });\n}\nfunction canOnlyBeCalledOnce(next, to, from) {\n let called = 0;\n return function () {\n if (called++ === 1)\n warn(`The \"next\" callback was called more than once in one navigation guard when going from \"${from.fullPath}\" to \"${to.fullPath}\". It should be called exactly one time in each navigation guard. This will fail in production.`);\n // @ts-expect-error: we put it in the original one because it's easier to check\n next._called = true;\n if (called === 1)\n next.apply(null, arguments);\n };\n}\nfunction extractComponentsGuards(matched, guardType, to, from, runWithContext = fn => fn()) {\n const guards = [];\n for (const record of matched) {\n if ((process.env.NODE_ENV !== 'production') && !record.components && !record.children.length) {\n warn(`Record with path \"${record.path}\" is either missing a \"component(s)\"` +\n ` or \"children\" property.`);\n }\n for (const name in record.components) {\n let rawComponent = record.components[name];\n if ((process.env.NODE_ENV !== 'production')) {\n if (!rawComponent ||\n (typeof rawComponent !== 'object' &&\n typeof rawComponent !== 'function')) {\n warn(`Component \"${name}\" in record with path \"${record.path}\" is not` +\n ` a valid component. Received \"${String(rawComponent)}\".`);\n // throw to ensure we stop here but warn to ensure the message isn't\n // missed by the user\n throw new Error('Invalid route component');\n }\n else if ('then' in rawComponent) {\n // warn if user wrote import('/component.vue') instead of () =>\n // import('./component.vue')\n warn(`Component \"${name}\" in record with path \"${record.path}\" is a ` +\n `Promise instead of a function that returns a Promise. Did you ` +\n `write \"import('./MyPage.vue')\" instead of ` +\n `\"() => import('./MyPage.vue')\" ? This will break in ` +\n `production if not fixed.`);\n const promise = rawComponent;\n rawComponent = () => promise;\n }\n else if (rawComponent.__asyncLoader &&\n // warn only once per component\n !rawComponent.__warnedDefineAsync) {\n rawComponent.__warnedDefineAsync = true;\n warn(`Component \"${name}\" in record with path \"${record.path}\" is defined ` +\n `using \"defineAsyncComponent()\". ` +\n `Write \"() => import('./MyPage.vue')\" instead of ` +\n `\"defineAsyncComponent(() => import('./MyPage.vue'))\".`);\n }\n }\n // skip update and leave guards if the route component is not mounted\n if (guardType !== 'beforeRouteEnter' && !record.instances[name])\n continue;\n if (isRouteComponent(rawComponent)) {\n // __vccOpts is added by vue-class-component and contain the regular options\n const options = rawComponent.__vccOpts || rawComponent;\n const guard = options[guardType];\n guard &&\n guards.push(guardToPromiseFn(guard, to, from, record, name, runWithContext));\n }\n else {\n // start requesting the chunk already\n let componentPromise = rawComponent();\n if ((process.env.NODE_ENV !== 'production') && !('catch' in componentPromise)) {\n warn(`Component \"${name}\" in record with path \"${record.path}\" is a function that does not return a Promise. If you were passing a functional component, make sure to add a \"displayName\" to the component. This will break in production if not fixed.`);\n componentPromise = Promise.resolve(componentPromise);\n }\n guards.push(() => componentPromise.then(resolved => {\n if (!resolved)\n throw new Error(`Couldn't resolve component \"${name}\" at \"${record.path}\"`);\n const resolvedComponent = isESModule(resolved)\n ? resolved.default\n : resolved;\n // keep the resolved module for plugins like data loaders\n record.mods[name] = resolved;\n // replace the function with the resolved component\n // cannot be null or undefined because we went into the for loop\n record.components[name] = resolvedComponent;\n // __vccOpts is added by vue-class-component and contain the regular options\n const options = resolvedComponent.__vccOpts || resolvedComponent;\n const guard = options[guardType];\n return (guard &&\n guardToPromiseFn(guard, to, from, record, name, runWithContext)());\n }));\n }\n }\n }\n return guards;\n}\n/**\n * Ensures a route is loaded, so it can be passed as o prop to `<RouterView>`.\n *\n * @param route - resolved route to load\n */\nfunction loadRouteLocation(route) {\n return route.matched.every(record => record.redirect)\n ? Promise.reject(new Error('Cannot load a route that redirects.'))\n : Promise.all(route.matched.map(record => record.components &&\n Promise.all(Object.keys(record.components).reduce((promises, name) => {\n const rawComponent = record.components[name];\n if (typeof rawComponent === 'function' &&\n !('displayName' in rawComponent)) {\n promises.push(rawComponent().then(resolved => {\n if (!resolved)\n return Promise.reject(new Error(`Couldn't resolve component \"${name}\" at \"${record.path}\". Ensure you passed a function that returns a promise.`));\n const resolvedComponent = isESModule(resolved)\n ? resolved.default\n : resolved;\n // keep the resolved module for plugins like data loaders\n record.mods[name] = resolved;\n // replace the function with the resolved component\n // cannot be null or undefined because we went into the for loop\n record.components[name] = resolvedComponent;\n return;\n }));\n }\n return promises;\n }, [])))).then(() => route);\n}\n\n// TODO: we could allow currentRoute as a prop to expose `isActive` and\n// `isExactActive` behavior should go through an RFC\n/**\n * Returns the internal behavior of a {@link RouterLink} without the rendering part.\n *\n * @param props - a `to` location and an optional `replace` flag\n */\nfunction useLink(props) {\n const router = inject(routerKey);\n const currentRoute = inject(routeLocationKey);\n let hasPrevious = false;\n let previousTo = null;\n const route = computed(() => {\n const to = unref(props.to);\n if ((process.env.NODE_ENV !== 'production') && (!hasPrevious || to !== previousTo)) {\n if (!isRouteLocation(to)) {\n if (hasPrevious) {\n warn(`Invalid value for prop \"to\" in useLink()\\n- to:`, to, `\\n- previous to:`, previousTo, `\\n- props:`, props);\n }\n else {\n warn(`Invalid value for prop \"to\" in useLink()\\n- to:`, to, `\\n- props:`, props);\n }\n }\n previousTo = to;\n hasPrevious = true;\n }\n return router.resolve(to);\n });\n const activeRecordIndex = computed(() => {\n const { matched } = route.value;\n const { length } = matched;\n const routeMatched = matched[length - 1];\n const currentMatched = currentRoute.matched;\n if (!routeMatched || !currentMatched.length)\n return -1;\n const index = currentMatched.findIndex(isSameRouteRecord.bind(null, routeMatched));\n if (index > -1)\n return index;\n // possible parent record\n const parentRecordPath = getOriginalPath(matched[length - 2]);\n return (\n // we are dealing with nested routes\n length > 1 &&\n // if the parent and matched route have the same path, this link is\n // referring to the empty child. Or we currently are on a different\n // child of the same parent\n getOriginalPath(routeMatched) === parentRecordPath &&\n // avoid comparing the child with its parent\n currentMatched[currentMatched.length - 1].path !== parentRecordPath\n ? currentMatched.findIndex(isSameRouteRecord.bind(null, matched[length - 2]))\n : index);\n });\n const isActive = computed(() => activeRecordIndex.value > -1 &&\n includesParams(currentRoute.params, route.value.params));\n const isExactActive = computed(() => activeRecordIndex.value > -1 &&\n activeRecordIndex.value === currentRoute.matched.length - 1 &&\n isSameRouteLocationParams(currentRoute.params, route.value.params));\n function navigate(e = {}) {\n if (guardEvent(e)) {\n const p = router[unref(props.replace) ? 'replace' : 'push'](unref(props.to)\n // avoid uncaught errors are they are logged anyway\n ).catch(noop);\n if (props.viewTransition &&\n typeof document !== 'undefined' &&\n 'startViewTransition' in document) {\n document.startViewTransition(() => p);\n }\n return p;\n }\n return Promise.resolve();\n }\n // devtools only\n if (((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) && isBrowser) {\n const instance = getCurrentInstance();\n if (instance) {\n const linkContextDevtools = {\n route: route.value,\n isActive: isActive.value,\n isExactActive: isExactActive.value,\n error: null,\n };\n // @ts-expect-error: this is internal\n instance.__vrl_devtools = instance.__vrl_devtools || [];\n // @ts-expect-error: this is internal\n instance.__vrl_devtools.push(linkContextDevtools);\n watchEffect(() => {\n linkContextDevtools.route = route.value;\n linkContextDevtools.isActive = isActive.value;\n linkContextDevtools.isExactActive = isExactActive.value;\n linkContextDevtools.error = isRouteLocation(unref(props.to))\n ? null\n : 'Invalid \"to\" value';\n }, { flush: 'post' });\n }\n }\n /**\n * NOTE: update {@link _RouterLinkI}'s `$slots` type when updating this\n */\n return {\n route,\n href: computed(() => route.value.href),\n isActive,\n isExactActive,\n navigate,\n };\n}\nfunction preferSingleVNode(vnodes) {\n return vnodes.length === 1 ? vnodes[0] : vnodes;\n}\nconst RouterLinkImpl = /*#__PURE__*/ defineComponent({\n name: 'RouterLink',\n compatConfig: { MODE: 3 },\n props: {\n to: {\n type: [String, Object],\n required: true,\n },\n replace: Boolean,\n activeClass: String,\n // inactiveClass: String,\n exactActiveClass: String,\n custom: Boolean,\n ariaCurrentValue: {\n type: String,\n default: 'page',\n },\n viewTransition: Boolean,\n },\n useLink,\n setup(props, { slots }) {\n const link = reactive(useLink(props));\n const { options } = inject(routerKey);\n const elClass = computed(() => ({\n [getLinkClass(props.activeClass, options.linkActiveClass, 'router-link-active')]: link.isActive,\n // [getLinkClass(\n // props.inactiveClass,\n // options.linkInactiveClass,\n // 'router-link-inactive'\n // )]: !link.isExactActive,\n [getLinkClass(props.exactActiveClass, options.linkExactActiveClass, 'router-link-exact-active')]: link.isExactActive,\n }));\n return () => {\n const children = slots.default && preferSingleVNode(slots.default(link));\n return props.custom\n ? children\n : h('a', {\n 'aria-current': link.isExactActive\n ? props.ariaCurrentValue\n : null,\n href: link.href,\n // this would override user added attrs but Vue will still add\n // the listener, so we end up triggering both\n onClick: link.navigate,\n class: elClass.value,\n }, children);\n };\n },\n});\n// export the public type for h/tsx inference\n// also to avoid inline import() in generated d.ts files\n/**\n * Component to render a link that triggers a navigation on click.\n */\nconst RouterLink = RouterLinkImpl;\nfunction guardEvent(e) {\n // don't redirect with control keys\n if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)\n return;\n // don't redirect when preventDefault called\n if (e.defaultPrevented)\n return;\n // don't redirect on right click\n if (e.button !== undefined && e.button !== 0)\n return;\n // don't redirect if `target=\"_blank\"`\n // @ts-expect-error getAttribute does exist\n if (e.currentTarget && e.currentTarget.getAttribute) {\n // @ts-expect-error getAttribute exists\n const target = e.currentTarget.getAttribute('target');\n if (/\\b_blank\\b/i.test(target))\n return;\n }\n // this may be a Weex event which doesn't have this method\n if (e.preventDefault)\n e.preventDefault();\n return true;\n}\nfunction includesParams(outer, inner) {\n for (const key in inner) {\n const innerValue = inner[key];\n const outerValue = outer[key];\n if (typeof innerValue === 'string') {\n if (innerValue !== outerValue)\n return false;\n }\n else {\n if (!isArray(outerValue) ||\n outerValue.length !== innerValue.length ||\n innerValue.some((value, i) => value !== outerValue[i]))\n return false;\n }\n }\n return true;\n}\n/**\n * Get the original path value of a record by following its aliasOf\n * @param record\n */\nfunction getOriginalPath(record) {\n return record ? (record.aliasOf ? record.aliasOf.path : record.path) : '';\n}\n/**\n * Utility class to get the active class based on defaults.\n * @param propClass\n * @param globalClass\n * @param defaultClass\n */\nconst getLinkClass = (propClass, globalClass, defaultClass) => propClass != null\n ? propClass\n : globalClass != null\n ? globalClass\n : defaultClass;\n\nconst RouterViewImpl = /*#__PURE__*/ defineComponent({\n name: 'RouterView',\n // #674 we manually inherit them\n inheritAttrs: false,\n props: {\n name: {\n type: String,\n default: 'default',\n },\n route: Object,\n },\n // Better compat for @vue/compat users\n // https://github.com/vuejs/router/issues/1315\n compatConfig: { MODE: 3 },\n setup(props, { attrs, slots }) {\n (process.env.NODE_ENV !== 'production') && warnDeprecatedUsage();\n const injectedRoute = inject(routerViewLocationKey);\n const routeToDisplay = computed(() => props.route || injectedRoute.value);\n const injectedDepth = inject(viewDepthKey, 0);\n // The depth changes based on empty components option, which allows passthrough routes e.g. routes with children\n // that are used to reuse the `path` property\n const depth = computed(() => {\n let initialDepth = unref(injectedDepth);\n const { matched } = routeToDisplay.value;\n let matchedRoute;\n while ((matchedRoute = matched[initialDepth]) &&\n !matchedRoute.components) {\n initialDepth++;\n }\n return initialDepth;\n });\n const matchedRouteRef = computed(() => routeToDisplay.value.matched[depth.value]);\n provide(viewDepthKey, computed(() => depth.value + 1));\n provide(matchedRouteKey, matchedRouteRef);\n provide(routerViewLocationKey, routeToDisplay);\n const viewRef = ref();\n // watch at the same time the component instance, the route record we are\n // rendering, and the name\n watch(() => [viewRef.value, matchedRouteRef.value, props.name], ([instance, to, name], [oldInstance, from, oldName]) => {\n // copy reused instances\n if (to) {\n // this will update the instance for new instances as well as reused\n // instances when navigating to a new route\n to.instances[name] = instance;\n // the component instance is reused for a different route or name, so\n // we copy any saved update or leave guards. With async setup, the\n // mounting component will mount before the matchedRoute changes,\n // making instance === oldInstance, so we check if guards have been\n // added before. This works because we remove guards when\n // unmounting/deactivating components\n if (from && from !== to && instance && instance === oldInstance) {\n if (!to.leaveGuards.size) {\n to.leaveGuards = from.leaveGuards;\n }\n if (!to.updateGuards.size) {\n to.updateGuards = from.updateGuards;\n }\n }\n }\n // trigger beforeRouteEnter next callbacks\n if (instance &&\n to &&\n // if there is no instance but to and from are the same this might be\n // the first visit\n (!from || !isSameRouteRecord(to, from) || !oldInstance)) {\n (to.enterCallbacks[name] || []).forEach(callback => callback(instance));\n }\n }, { flush: 'post' });\n return () => {\n const route = routeToDisplay.value;\n // we need the value at the time we render because when we unmount, we\n // navigated to a different location so the value is different\n const currentName = props.name;\n const matchedRoute = matchedRouteRef.value;\n const ViewComponent = matchedRoute && matchedRoute.components[currentName];\n if (!ViewComponent) {\n return normalizeSlot(slots.default, { Component: ViewComponent, route });\n }\n // props from route configuration\n const routePropsOption = matchedRoute.props[currentName];\n const routeProps = routePropsOption\n ? routePropsOption === true\n ? route.params\n : typeof routePropsOption === 'function'\n ? routePropsOption(route)\n : routePropsOption\n : null;\n const onVnodeUnmounted = vnode => {\n // remove the instance reference to prevent leak\n if (vnode.component.isUnmounted) {\n matchedRoute.instances[currentName] = null;\n }\n };\n const component = h(ViewComponent, assign({}, routeProps, attrs, {\n onVnodeUnmounted,\n ref: viewRef,\n }));\n if (((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) &&\n isBrowser &&\n component.ref) {\n // TODO: can display if it's an alias, its props\n const info = {\n depth: depth.value,\n name: matchedRoute.name,\n path: matchedRoute.path,\n meta: matchedRoute.meta,\n };\n const internalInstances = isArray(component.ref)\n ? component.ref.map(r => r.i)\n : [component.ref.i];\n internalInstances.forEach(instance => {\n // @ts-expect-error\n instance.__vrv_devtools = info;\n });\n }\n return (\n // pass the vnode to the slot as a prop.\n // h and <component :is=\"...\"> both accept vnodes\n normalizeSlot(slots.default, { Component: component, route }) ||\n component);\n };\n },\n});\nfunction normalizeSlot(slot, data) {\n if (!slot)\n return null;\n const slotContent = slot(data);\n return slotContent.length === 1 ? slotContent[0] : slotContent;\n}\n// export the public type for h/tsx inference\n// also to avoid inline import() in generated d.ts files\n/**\n * Component to display the current route the user is at.\n */\nconst RouterView = RouterViewImpl;\n// warn against deprecated usage with <transition> & <keep-alive>\n// due to functional component being no longer eager in Vue 3\nfunction warnDeprecatedUsage() {\n const instance = getCurrentInstance();\n const parentName = instance.parent && instance.parent.type.name;\n const parentSubTreeType = instance.parent && instance.parent.subTree && instance.parent.subTree.type;\n if (parentName &&\n (parentName === 'KeepAlive' || parentName.includes('Transition')) &&\n typeof parentSubTreeType === 'object' &&\n parentSubTreeType.name === 'RouterView') {\n const comp = parentName === 'KeepAlive' ? 'keep-alive' : 'transition';\n warn(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.\\n` +\n `Use slot props instead:\\n\\n` +\n `<router-view v-slot=\"{ Component }\">\\n` +\n ` <${comp}>\\n` +\n ` <component :is=\"Component\" />\\n` +\n ` </${comp}>\\n` +\n `</router-view>`);\n }\n}\n\n/**\n * Copies a route location and removes any problematic properties that cannot be shown in devtools (e.g. Vue instances).\n *\n * @param routeLocation - routeLocation to format\n * @param tooltip - optional tooltip\n * @returns a copy of the routeLocation\n */\nfunction formatRouteLocation(routeLocation, tooltip) {\n const copy = assign({}, routeLocation, {\n // remove variables that can contain vue instances\n matched: routeLocation.matched.map(matched => omit(matched, ['instances', 'children', 'aliasOf'])),\n });\n return {\n _custom: {\n type: null,\n readOnly: true,\n display: routeLocation.fullPath,\n tooltip,\n value: copy,\n },\n };\n}\nfunction formatDisplay(display) {\n return {\n _custom: {\n display,\n },\n };\n}\n// to support multiple router instances\nlet routerId = 0;\nfunction addDevtools(app, router, matcher) {\n // Take over router.beforeEach and afterEach\n // make sure we are not registering the devtool twice\n if (router.__hasDevtools)\n return;\n router.__hasDevtools = true;\n // increment to support multiple router instances\n const id = routerId++;\n setupDevtoolsPlugin({\n id: 'org.vuejs.router' + (id ? '.' + id : ''),\n label: 'Vue Router',\n packageName: 'vue-router',\n homepage: 'https://router.vuejs.org',\n logo: 'https://router.vuejs.org/logo.png',\n componentStateTypes: ['Routing'],\n app,\n }, api => {\n if (typeof api.now !== 'function') {\n console.warn('[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.');\n }\n // display state added by the router\n api.on.inspectComponent((payload, ctx) => {\n if (payload.instanceData) {\n payload.instanceData.state.push({\n type: 'Routing',\n key: '$route',\n editable: false,\n value: formatRouteLocation(router.currentRoute.value, 'Current Route'),\n });\n }\n });\n // mark router-link as active and display tags on router views\n api.on.visitComponentTree(({ treeNode: node, componentInstance }) => {\n if (componentInstance.__vrv_devtools) {\n const info = componentInstance.__vrv_devtools;\n node.tags.push({\n label: (info.name ? `${info.name.toString()}: ` : '') + info.path,\n textColor: 0,\n tooltip: 'This component is rendered by <router-view>',\n backgroundColor: PINK_500,\n });\n }\n // if multiple useLink are used\n if (isArray(componentInstance.__vrl_devtools)) {\n componentInstance.__devtoolsApi = api;\n componentInstance.__vrl_devtools.forEach(devtoolsData => {\n let label = devtoolsData.route.path;\n let backgroundColor = ORANGE_400;\n let tooltip = '';\n let textColor = 0;\n if (devtoolsData.error) {\n label = devtoolsData.error;\n backgroundColor = RED_100;\n textColor = RED_700;\n }\n else if (devtoolsData.isExactActive) {\n backgroundColor = LIME_500;\n tooltip = 'This is exactly active';\n }\n else if (devtoolsData.isActive) {\n backgroundColor = BLUE_600;\n tooltip = 'This link is active';\n }\n node.tags.push({\n label,\n textColor,\n tooltip,\n backgroundColor,\n });\n });\n }\n });\n watch(router.currentRoute, () => {\n // refresh active state\n refreshRoutesView();\n api.notifyComponentUpdate();\n api.sendInspectorTree(routerInspectorId);\n api.sendInspectorState(routerInspectorId);\n });\n const navigationsLayerId = 'router:navigations:' + id;\n api.addTimelineLayer({\n id: navigationsLayerId,\n label: `Router${id ? ' ' + id : ''} Navigations`,\n color: 0x40a8c4,\n });\n // const errorsLayerId = 'router:errors'\n // api.addTimelineLayer({\n // id: errorsLayerId,\n // label: 'Router Errors',\n // color: 0xea5455,\n // })\n router.onError((error, to) => {\n api.addTimelineEvent({\n layerId: navigationsLayerId,\n event: {\n title: 'Error during Navigation',\n subtitle: to.fullPath,\n logType: 'error',\n time: api.now(),\n data: { error },\n groupId: to.meta.__navigationId,\n },\n });\n });\n // attached to `meta` and used to group events\n let navigationId = 0;\n router.beforeEach((to, from) => {\n const data = {\n guard: formatDisplay('beforeEach'),\n from: formatRouteLocation(from, 'Current Location during this navigation'),\n to: formatRouteLocation(to, 'Target location'),\n };\n // Used to group navigations together, hide from devtools\n Object.defineProperty(to.meta, '__navigationId', {\n value: navigationId++,\n });\n api.addTimelineEvent({\n layerId: navigationsLayerId,\n event: {\n time: api.now(),\n title: 'Start of navigation',\n subtitle: to.fullPath,\n data,\n groupId: to.meta.__navigationId,\n },\n });\n });\n router.afterEach((to, from, failure) => {\n const data = {\n guard: formatDisplay('afterEach'),\n };\n if (failure) {\n data.failure = {\n _custom: {\n type: Error,\n readOnly: true,\n display: failure ? failure.message : '',\n tooltip: 'Navigation Failure',\n value: failure,\n },\n };\n data.status = formatDisplay('❌');\n }\n else {\n data.status = formatDisplay('✅');\n }\n // we set here to have the right order\n data.from = formatRouteLocation(from, 'Current Location during this navigation');\n data.to = formatRouteLocation(to, 'Target location');\n api.addTimelineEvent({\n layerId: navigationsLayerId,\n event: {\n title: 'End of navigation',\n subtitle: to.fullPath,\n time: api.now(),\n data,\n logType: failure ? 'warning' : 'default',\n groupId: to.meta.__navigationId,\n },\n });\n });\n /**\n * Inspector of Existing routes\n */\n const routerInspectorId = 'router-inspector:' + id;\n api.addInspector({\n id: routerInspectorId,\n label: 'Routes' + (id ? ' ' + id : ''),\n icon: 'book',\n treeFilterPlaceholder: 'Search routes',\n });\n function refreshRoutesView() {\n // the routes view isn't active\n if (!activeRoutesPayload)\n return;\n const payload = activeRoutesPayload;\n // children routes will appear as nested\n let routes = matcher.getRoutes().filter(route => !route.parent ||\n // these routes have a parent with no component which will not appear in the view\n // therefore we still need to include them\n !route.parent.record.components);\n // reset match state to false\n routes.forEach(resetMatchStateOnRouteRecord);\n // apply a match state if there is a payload\n if (payload.filter) {\n routes = routes.filter(route => \n // save matches state based on the payload\n isRouteMatching(route, payload.filter.toLowerCase()));\n }\n // mark active routes\n routes.forEach(route => markRouteRecordActive(route, router.currentRoute.value));\n payload.rootNodes = routes.map(formatRouteRecordForInspector);\n }\n let activeRoutesPayload;\n api.on.getInspectorTree(payload => {\n activeRoutesPayload = payload;\n if (payload.app === app && payload.inspectorId === routerInspectorId) {\n refreshRoutesView();\n }\n });\n /**\n * Display information about the currently selected route record\n */\n api.on.getInspectorState(payload => {\n if (payload.app === app && payload.inspectorId === routerInspectorId) {\n const routes = matcher.getRoutes();\n const route = routes.find(route => route.record.__vd_id === payload.nodeId);\n if (route) {\n payload.state = {\n options: formatRouteRecordMatcherForStateInspector(route),\n };\n }\n }\n });\n api.sendInspectorTree(routerInspectorId);\n api.sendInspectorState(routerInspectorId);\n });\n}\nfunction modifierForKey(key) {\n if (key.optional) {\n return key.repeatable ? '*' : '?';\n }\n else {\n return key.repeatable ? '+' : '';\n }\n}\nfunction formatRouteRecordMatcherForStateInspector(route) {\n const { record } = route;\n const fields = [\n { editable: false, key: 'path', value: record.path },\n ];\n if (record.name != null) {\n fields.push({\n editable: false,\n key: 'name',\n value: record.name,\n });\n }\n fields.push({ editable: false, key: 'regexp', value: route.re });\n if (route.keys.length) {\n fields.push({\n editable: false,\n key: 'keys',\n value: {\n _custom: {\n type: null,\n readOnly: true,\n display: route.keys\n .map(key => `${key.name}${modifierForKey(key)}`)\n .join(' '),\n tooltip: 'Param keys',\n value: route.keys,\n },\n },\n });\n }\n if (record.redirect != null) {\n fields.push({\n editable: false,\n key: 'redirect',\n value: record.redirect,\n });\n }\n if (route.alias.length) {\n fields.push({\n editable: false,\n key: 'aliases',\n value: route.alias.map(alias => alias.record.path),\n });\n }\n if (Object.keys(route.record.meta).length) {\n fields.push({\n editable: false,\n key: 'meta',\n value: route.record.meta,\n });\n }\n fields.push({\n key: 'score',\n editable: false,\n value: {\n _custom: {\n type: null,\n readOnly: true,\n display: route.score.map(score => score.join(', ')).join(' | '),\n tooltip: 'Score used to sort routes',\n value: route.score,\n },\n },\n });\n return fields;\n}\n/**\n * Extracted from tailwind palette\n */\nconst PINK_500 = 0xec4899;\nconst BLUE_600 = 0x2563eb;\nconst LIME_500 = 0x84cc16;\nconst CYAN_400 = 0x22d3ee;\nconst ORANGE_400 = 0xfb923c;\n// const GRAY_100 = 0xf4f4f5\nconst DARK = 0x666666;\nconst RED_100 = 0xfee2e2;\nconst RED_700 = 0xb91c1c;\nfunction formatRouteRecordForInspector(route) {\n const tags = [];\n const { record } = route;\n if (record.name != null) {\n tags.push({\n label: String(record.name),\n textColor: 0,\n backgroundColor: CYAN_400,\n });\n }\n if (record.aliasOf) {\n tags.push({\n label: 'alias',\n textColor: 0,\n backgroundColor: ORANGE_400,\n });\n }\n if (route.__vd_match) {\n tags.push({\n label: 'matches',\n textColor: 0,\n backgroundColor: PINK_500,\n });\n }\n if (route.__vd_exactActive) {\n tags.push({\n label: 'exact',\n textColor: 0,\n backgroundColor: LIME_500,\n });\n }\n if (route.__vd_active) {\n tags.push({\n label: 'active',\n textColor: 0,\n backgroundColor: BLUE_600,\n });\n }\n if (record.redirect) {\n tags.push({\n label: typeof record.redirect === 'string'\n ? `redirect: ${record.redirect}`\n : 'redirects',\n textColor: 0xffffff,\n backgroundColor: DARK,\n });\n }\n // add an id to be able to select it. Using the `path` is not possible because\n // empty path children would collide with their parents\n let id = record.__vd_id;\n if (id == null) {\n id = String(routeRecordId++);\n record.__vd_id = id;\n }\n return {\n id,\n label: record.path,\n tags,\n children: route.children.map(formatRouteRecordForInspector),\n };\n}\n// incremental id for route records and inspector state\nlet routeRecordId = 0;\nconst EXTRACT_REGEXP_RE = /^\\/(.*)\\/([a-z]*)$/;\nfunction markRouteRecordActive(route, currentRoute) {\n // no route will be active if matched is empty\n // reset the matching state\n const isExactActive = currentRoute.matched.length &&\n isSameRouteRecord(currentRoute.matched[currentRoute.matched.length - 1], route.record);\n route.__vd_exactActive = route.__vd_active = isExactActive;\n if (!isExactActive) {\n route.__vd_active = currentRoute.matched.some(match => isSameRouteRecord(match, route.record));\n }\n route.children.forEach(childRoute => markRouteRecordActive(childRoute, currentRoute));\n}\nfunction resetMatchStateOnRouteRecord(route) {\n route.__vd_match = false;\n route.children.forEach(resetMatchStateOnRouteRecord);\n}\nfunction isRouteMatching(route, filter) {\n const found = String(route.re).match(EXTRACT_REGEXP_RE);\n route.__vd_match = false;\n if (!found || found.length < 3) {\n return false;\n }\n // use a regexp without $ at the end to match nested routes better\n const nonEndingRE = new RegExp(found[1].replace(/\\$$/, ''), found[2]);\n if (nonEndingRE.test(filter)) {\n // mark children as matches\n route.children.forEach(child => isRouteMatching(child, filter));\n // exception case: `/`\n if (route.record.path !== '/' || filter === '/') {\n route.__vd_match = route.re.test(filter);\n return true;\n }\n // hide the / route\n return false;\n }\n const path = route.record.path.toLowerCase();\n const decodedPath = decode(path);\n // also allow partial matching on the path\n if (!filter.startsWith('/') &&\n (decodedPath.includes(filter) || path.includes(filter)))\n return true;\n if (decodedPath.startsWith(filter) || path.startsWith(filter))\n return true;\n if (route.record.name && String(route.record.name).includes(filter))\n return true;\n return route.children.some(child => isRouteMatching(child, filter));\n}\nfunction omit(obj, keys) {\n const ret = {};\n for (const key in obj) {\n if (!keys.includes(key)) {\n // @ts-expect-error\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n\n/**\n * Creates a Router instance that can be used by a Vue app.\n *\n * @param options - {@link RouterOptions}\n */\nfunction createRouter(options) {\n const matcher = createRouterMatcher(options.routes, options);\n const parseQuery$1 = options.parseQuery || parseQuery;\n const stringifyQuery$1 = options.stringifyQuery || stringifyQuery;\n const routerHistory = options.history;\n if ((process.env.NODE_ENV !== 'production') && !routerHistory)\n throw new Error('Provide the \"history\" option when calling \"createRouter()\":' +\n ' https://router.vuejs.org/api/interfaces/RouterOptions.html#history');\n const beforeGuards = useCallbacks();\n const beforeResolveGuards = useCallbacks();\n const afterGuards = useCallbacks();\n const currentRoute = shallowRef(START_LOCATION_NORMALIZED);\n let pendingLocation = START_LOCATION_NORMALIZED;\n // leave the scrollRestoration if no scrollBehavior is provided\n if (isBrowser && options.scrollBehavior && 'scrollRestoration' in history) {\n history.scrollRestoration = 'manual';\n }\n const normalizeParams = applyToParams.bind(null, paramValue => '' + paramValue);\n const encodeParams = applyToParams.bind(null, encodeParam);\n const decodeParams = \n // @ts-expect-error: intentionally avoid the type check\n applyToParams.bind(null, decode);\n function addRoute(parentOrRoute, route) {\n let parent;\n let record;\n if (isRouteName(parentOrRoute)) {\n parent = matcher.getRecordMatcher(parentOrRoute);\n if ((process.env.NODE_ENV !== 'production') && !parent) {\n warn(`Parent route \"${String(parentOrRoute)}\" not found when adding child route`, route);\n }\n record = route;\n }\n else {\n record = parentOrRoute;\n }\n return matcher.addRoute(record, parent);\n }\n function removeRoute(name) {\n const recordMatcher = matcher.getRecordMatcher(name);\n if (recordMatcher) {\n matcher.removeRoute(recordMatcher);\n }\n else if ((process.env.NODE_ENV !== 'production')) {\n warn(`Cannot remove non-existent route \"${String(name)}\"`);\n }\n }\n function getRoutes() {\n return matcher.getRoutes().map(routeMatcher => routeMatcher.record);\n }\n function hasRoute(name) {\n return !!matcher.getRecordMatcher(name);\n }\n function resolve(rawLocation, currentLocation) {\n // const resolve: Router['resolve'] = (rawLocation: RouteLocationRaw, currentLocation) => {\n // const objectLocation = routerLocationAsObject(rawLocation)\n // we create a copy to modify it later\n currentLocation = assign({}, currentLocation || currentRoute.value);\n if (typeof rawLocation === 'string') {\n const locationNormalized = parseURL(parseQuery$1, rawLocation, currentLocation.path);\n const matchedRoute = matcher.resolve({ path: locationNormalized.path }, currentLocation);\n const href = routerHistory.createHref(locationNormalized.fullPath);\n if ((process.env.NODE_ENV !== 'production')) {\n if (href.startsWith('//'))\n warn(`Location \"${rawLocation}\" resolved to \"${href}\". A resolved location cannot start with multiple slashes.`);\n else if (!matchedRoute.matched.length) {\n warn(`No match found for location with path \"${rawLocation}\"`);\n }\n }\n // locationNormalized is always a new object\n return assign(locationNormalized, matchedRoute, {\n params: decodeParams(matchedRoute.params),\n hash: decode(locationNormalized.hash),\n redirectedFrom: undefined,\n href,\n });\n }\n if ((process.env.NODE_ENV !== 'production') && !isRouteLocation(rawLocation)) {\n warn(`router.resolve() was passed an invalid location. This will fail in production.\\n- Location:`, rawLocation);\n return resolve({});\n }\n let matcherLocation;\n // path could be relative in object as well\n if (rawLocation.path != null) {\n if ((process.env.NODE_ENV !== 'production') &&\n 'params' in rawLocation &&\n !('name' in rawLocation) &&\n // @ts-expect-error: the type is never\n Object.keys(rawLocation.params).length) {\n warn(`Path \"${rawLocation.path}\" was passed with params but they will be ignored. Use a named route alongside params instead.`);\n }\n matcherLocation = assign({}, rawLocation, {\n path: parseURL(parseQuery$1, rawLocation.path, currentLocation.path).path,\n });\n }\n else {\n // remove any nullish param\n const targetParams = assign({}, rawLocation.params);\n for (const key in targetParams) {\n if (targetParams[key] == null) {\n delete targetParams[key];\n }\n }\n // pass encoded values to the matcher, so it can produce encoded path and fullPath\n matcherLocation = assign({}, rawLocation, {\n params: encodeParams(targetParams),\n });\n // current location params are decoded, we need to encode them in case the\n // matcher merges the params\n currentLocation.params = encodeParams(currentLocation.params);\n }\n const matchedRoute = matcher.resolve(matcherLocation, currentLocation);\n const hash = rawLocation.hash || '';\n if ((process.env.NODE_ENV !== 'production') && hash && !hash.startsWith('#')) {\n warn(`A \\`hash\\` should always start with the character \"#\". Replace \"${hash}\" with \"#${hash}\".`);\n }\n // the matcher might have merged current location params, so\n // we need to run the decoding again\n matchedRoute.params = normalizeParams(decodeParams(matchedRoute.params));\n const fullPath = stringifyURL(stringifyQuery$1, assign({}, rawLocation, {\n hash: encodeHash(hash),\n path: matchedRoute.path,\n }));\n const href = routerHistory.createHref(fullPath);\n if ((process.env.NODE_ENV !== 'production')) {\n if (href.startsWith('//')) {\n warn(`Location \"${rawLocation}\" resolved to \"${href}\". A resolved location cannot start with multiple slashes.`);\n }\n else if (!matchedRoute.matched.length) {\n warn(`No match found for location with path \"${rawLocation.path != null ? rawLocation.path : rawLocation}\"`);\n }\n }\n return assign({\n fullPath,\n // keep the hash encoded so fullPath is effectively path + encodedQuery +\n // hash\n hash,\n query: \n // if the user is using a custom query lib like qs, we might have\n // nested objects, so we keep the query as is, meaning it can contain\n // numbers at `$route.query`, but at the point, the user will have to\n // use their own type anyway.\n // https://github.com/vuejs/router/issues/328#issuecomment-649481567\n stringifyQuery$1 === stringifyQuery\n ? normalizeQuery(rawLocation.query)\n : (rawLocation.query || {}),\n }, matchedRoute, {\n redirectedFrom: undefined,\n href,\n });\n }\n function locationAsObject(to) {\n return typeof to === 'string'\n ? parseURL(parseQuery$1, to, currentRoute.value.path)\n : assign({}, to);\n }\n function checkCanceledNavigation(to, from) {\n if (pendingLocation !== to) {\n return createRouterError(8 /* ErrorTypes.NAVIGATION_CANCELLED */, {\n from,\n to,\n });\n }\n }\n function push(to) {\n return pushWithRedirect(to);\n }\n function replace(to) {\n return push(assign(locationAsObject(to), { replace: true }));\n }\n function handleRedirectRecord(to) {\n const lastMatched = to.matched[to.matched.length - 1];\n if (lastMatched && lastMatched.redirect) {\n const { redirect } = lastMatched;\n let newTargetLocation = typeof redirect === 'function' ? redirect(to) : redirect;\n if (typeof newTargetLocation === 'string') {\n newTargetLocation =\n newTargetLocation.includes('?') || newTargetLocation.includes('#')\n ? (newTargetLocation = locationAsObject(newTargetLocation))\n : // force empty params\n { path: newTargetLocation };\n // @ts-expect-error: force empty params when a string is passed to let\n // the router parse them again\n newTargetLocation.params = {};\n }\n if ((process.env.NODE_ENV !== 'production') &&\n newTargetLocation.path == null &&\n !('name' in newTargetLocation)) {\n warn(`Invalid redirect found:\\n${JSON.stringify(newTargetLocation, null, 2)}\\n when navigating to \"${to.fullPath}\". A redirect must contain a name or path. This will break in production.`);\n throw new Error('Invalid redirect');\n }\n return assign({\n query: to.query,\n hash: to.hash,\n // avoid transferring params if the redirect has a path\n params: newTargetLocation.path != null ? {} : to.params,\n }, newTargetLocation);\n }\n }\n function pushWithRedirect(to, redirectedFrom) {\n const targetLocation = (pendingLocation = resolve(to));\n const from = currentRoute.value;\n const data = to.state;\n const force = to.force;\n // to could be a string where `replace` is a function\n const replace = to.replace === true;\n const shouldRedirect = handleRedirectRecord(targetLocation);\n if (shouldRedirect)\n return pushWithRedirect(assign(locationAsObject(shouldRedirect), {\n state: typeof shouldRedirect === 'object'\n ? assign({}, data, shouldRedirect.state)\n : data,\n force,\n replace,\n }), \n // keep original redirectedFrom if it exists\n redirectedFrom || targetLocation);\n // if it was a redirect we already called `pushWithRedirect` above\n const toLocation = targetLocation;\n toLocation.redirectedFrom = redirectedFrom;\n let failure;\n if (!force && isSameRouteLocation(stringifyQuery$1, from, targetLocation)) {\n failure = createRouterError(16 /* ErrorTypes.NAVIGATION_DUPLICATED */, { to: toLocation, from });\n // trigger scroll to allow scrolling to the same anchor\n handleScroll(from, from, \n // this is a push, the only way for it to be triggered from a\n // history.listen is with a redirect, which makes it become a push\n true, \n // This cannot be the first navigation because the initial location\n // cannot be manually navigated to\n false);\n }\n return (failure ? Promise.resolve(failure) : navigate(toLocation, from))\n .catch((error) => isNavigationFailure(error)\n ? // navigation redirects still mark the router as ready\n isNavigationFailure(error, 2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */)\n ? error\n : markAsReady(error) // also returns the error\n : // reject any unknown error\n triggerError(error, toLocation, from))\n .then((failure) => {\n if (failure) {\n if (isNavigationFailure(failure, 2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */)) {\n if ((process.env.NODE_ENV !== 'production') &&\n // we are redirecting to the same location we were already at\n isSameRouteLocation(stringifyQuery$1, resolve(failure.to), toLocation) &&\n // and we have done it a couple of times\n redirectedFrom &&\n // @ts-expect-error: added only in dev\n (redirectedFrom._count = redirectedFrom._count\n ? // @ts-expect-error\n redirectedFrom._count + 1\n : 1) > 30) {\n warn(`Detected a possibly infinite redirection in a navigation guard when going from \"${from.fullPath}\" to \"${toLocation.fullPath}\". Aborting to avoid a Stack Overflow.\\n Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`);\n return Promise.reject(new Error('Infinite redirect in navigation guard'));\n }\n return pushWithRedirect(\n // keep options\n assign({\n // preserve an existing replacement but allow the redirect to override it\n replace,\n }, locationAsObject(failure.to), {\n state: typeof failure.to === 'object'\n ? assign({}, data, failure.to.state)\n : data,\n force,\n }), \n // preserve the original redirectedFrom if any\n redirectedFrom || toLocation);\n }\n }\n else {\n // if we fail we don't finalize the navigation\n failure = finalizeNavigation(toLocation, from, true, replace, data);\n }\n triggerAfterEach(toLocation, from, failure);\n return failure;\n });\n }\n /**\n * Helper to reject and skip all navigation guards if a new navigation happened\n * @param to\n * @param from\n */\n function checkCanceledNavigationAndReject(to, from) {\n const error = checkCanceledNavigation(to, from);\n return error ? Promise.reject(error) : Promise.resolve();\n }\n function runWithContext(fn) {\n const app = installedApps.values().next().value;\n // support Vue < 3.3\n return app && typeof app.runWithContext === 'function'\n ? app.runWithContext(fn)\n : fn();\n }\n // TODO: refactor the whole before guards by internally using router.beforeEach\n function navigate(to, from) {\n let guards;\n const [leavingRecords, updatingRecords, enteringRecords] = extractChangingRecords(to, from);\n // all components here have been resolved once because we are leaving\n guards = extractComponentsGuards(leavingRecords.reverse(), 'beforeRouteLeave', to, from);\n // leavingRecords is already reversed\n for (const record of leavingRecords) {\n record.leaveGuards.forEach(guard => {\n guards.push(guardToPromiseFn(guard, to, from));\n });\n }\n const canceledNavigationCheck = checkCanceledNavigationAndReject.bind(null, to, from);\n guards.push(canceledNavigationCheck);\n // run the queue of per route beforeRouteLeave guards\n return (runGuardQueue(guards)\n .then(() => {\n // check global guards beforeEach\n guards = [];\n for (const guard of beforeGuards.list()) {\n guards.push(guardToPromiseFn(guard, to, from));\n }\n guards.push(canceledNavigationCheck);\n return runGuardQueue(guards);\n })\n .then(() => {\n // check in components beforeRouteUpdate\n guards = extractComponentsGuards(updatingRecords, 'beforeRouteUpdate', to, from);\n for (const record of updatingRecords) {\n record.updateGuards.forEach(guard => {\n guards.push(guardToPromiseFn(guard, to, from));\n });\n }\n guards.push(canceledNavigationCheck);\n // run the queue of per route beforeEnter guards\n return runGuardQueue(guards);\n })\n .then(() => {\n // check the route beforeEnter\n guards = [];\n for (const record of enteringRecords) {\n // do not trigger beforeEnter on reused views\n if (record.beforeEnter) {\n if (isArray(record.beforeEnter)) {\n for (const beforeEnter of record.beforeEnter)\n guards.push(guardToPromiseFn(beforeEnter, to, from));\n }\n else {\n guards.push(guardToPromiseFn(record.beforeEnter, to, from));\n }\n }\n }\n guards.push(canceledNavigationCheck);\n // run the queue of per route beforeEnter guards\n return runGuardQueue(guards);\n })\n .then(() => {\n // NOTE: at this point to.matched is normalized and does not contain any () => Promise<Component>\n // clear existing enterCallbacks, these are added by extractComponentsGuards\n to.matched.forEach(record => (record.enterCallbacks = {}));\n // check in-component beforeRouteEnter\n guards = extractComponentsGuards(enteringRecords, 'beforeRouteEnter', to, from, runWithContext);\n guards.push(canceledNavigationCheck);\n // run the queue of per route beforeEnter guards\n return runGuardQueue(guards);\n })\n .then(() => {\n // check global guards beforeResolve\n guards = [];\n for (const guard of beforeResolveGuards.list()) {\n guards.push(guardToPromiseFn(guard, to, from));\n }\n guards.push(canceledNavigationCheck);\n return runGuardQueue(guards);\n })\n // catch any navigation canceled\n .catch(err => isNavigationFailure(err, 8 /* ErrorTypes.NAVIGATION_CANCELLED */)\n ? err\n : Promise.reject(err)));\n }\n function triggerAfterEach(to, from, failure) {\n // navigation is confirmed, call afterGuards\n // TODO: wrap with error handlers\n afterGuards\n .list()\n .forEach(guard => runWithContext(() => guard(to, from, failure)));\n }\n /**\n * - Cleans up any navigation guards\n * - Changes the url if necessary\n * - Calls the scrollBehavior\n */\n function finalizeNavigation(toLocation, from, isPush, replace, data) {\n // a more recent navigation took place\n const error = checkCanceledNavigation(toLocation, from);\n if (error)\n return error;\n // only consider as push if it's not the first navigation\n const isFirstNavigation = from === START_LOCATION_NORMALIZED;\n const state = !isBrowser ? {} : history.state;\n // change URL only if the user did a push/replace and if it's not the initial navigation because\n // it's just reflecting the url\n if (isPush) {\n // on the initial navigation, we want to reuse the scroll position from\n // history state if it exists\n if (replace || isFirstNavigation)\n routerHistory.replace(toLocation.fullPath, assign({\n scroll: isFirstNavigation && state && state.scroll,\n }, data));\n else\n routerHistory.push(toLocation.fullPath, data);\n }\n // accept current navigation\n currentRoute.value = toLocation;\n handleScroll(toLocation, from, isPush, isFirstNavigation);\n markAsReady();\n }\n let removeHistoryListener;\n // attach listener to history to trigger navigations\n function setupListeners() {\n // avoid setting up listeners twice due to an invalid first navigation\n if (removeHistoryListener)\n return;\n removeHistoryListener = routerHistory.listen((to, _from, info) => {\n if (!router.listening)\n return;\n // cannot be a redirect route because it was in history\n const toLocation = resolve(to);\n // due to dynamic routing, and to hash history with manual navigation\n // (manually changing the url or calling history.hash = '#/somewhere'),\n // there could be a redirect record in history\n const shouldRedirect = handleRedirectRecord(toLocation);\n if (shouldRedirect) {\n pushWithRedirect(assign(shouldRedirect, { replace: true, force: true }), toLocation).catch(noop);\n return;\n }\n pendingLocation = toLocation;\n const from = currentRoute.value;\n // TODO: should be moved to web history?\n if (isBrowser) {\n saveScrollPosition(getScrollKey(from.fullPath, info.delta), computeScrollPosition());\n }\n navigate(toLocation, from)\n .catch((error) => {\n if (isNavigationFailure(error, 4 /* ErrorTypes.NAVIGATION_ABORTED */ | 8 /* ErrorTypes.NAVIGATION_CANCELLED */)) {\n return error;\n }\n if (isNavigationFailure(error, 2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */)) {\n // Here we could call if (info.delta) routerHistory.go(-info.delta,\n // false) but this is bug prone as we have no way to wait the\n // navigation to be finished before calling pushWithRedirect. Using\n // a setTimeout of 16ms seems to work but there is no guarantee for\n // it to work on every browser. So instead we do not restore the\n // history entry and trigger a new navigation as requested by the\n // navigation guard.\n // the error is already handled by router.push we just want to avoid\n // logging the error\n pushWithRedirect(assign(locationAsObject(error.to), {\n force: true,\n }), toLocation\n // avoid an uncaught rejection, let push call triggerError\n )\n .then(failure => {\n // manual change in hash history #916 ending up in the URL not\n // changing, but it was changed by the manual url change, so we\n // need to manually change it ourselves\n if (isNavigationFailure(failure, 4 /* ErrorTypes.NAVIGATION_ABORTED */ |\n 16 /* ErrorTypes.NAVIGATION_DUPLICATED */) &&\n !info.delta &&\n info.type === NavigationType.pop) {\n routerHistory.go(-1, false);\n }\n })\n .catch(noop);\n // avoid the then branch\n return Promise.reject();\n }\n // do not restore history on unknown direction\n if (info.delta) {\n routerHistory.go(-info.delta, false);\n }\n // unrecognized error, transfer to the global handler\n return triggerError(error, toLocation, from);\n })\n .then((failure) => {\n failure =\n failure ||\n finalizeNavigation(\n // after navigation, all matched components are resolved\n toLocation, from, false);\n // revert the navigation\n if (failure) {\n if (info.delta &&\n // a new navigation has been triggered, so we do not want to revert, that will change the current history\n // entry while a different route is displayed\n !isNavigationFailure(failure, 8 /* ErrorTypes.NAVIGATION_CANCELLED */)) {\n routerHistory.go(-info.delta, false);\n }\n else if (info.type === NavigationType.pop &&\n isNavigationFailure(failure, 4 /* ErrorTypes.NAVIGATION_ABORTED */ | 16 /* ErrorTypes.NAVIGATION_DUPLICATED */)) {\n // manual change in hash history #916\n // it's like a push but lacks the information of the direction\n routerHistory.go(-1, false);\n }\n }\n triggerAfterEach(toLocation, from, failure);\n })\n // avoid warnings in the console about uncaught rejections, they are logged by triggerErrors\n .catch(noop);\n });\n }\n // Initialization and Errors\n let readyHandlers = useCallbacks();\n let errorListeners = useCallbacks();\n let ready;\n /**\n * Trigger errorListeners added via onError and throws the error as well\n *\n * @param error - error to throw\n * @param to - location we were navigating to when the error happened\n * @param from - location we were navigating from when the error happened\n * @returns the error as a rejected promise\n */\n function triggerError(error, to, from) {\n markAsReady(error);\n const list = errorListeners.list();\n if (list.length) {\n list.forEach(handler => handler(error, to, from));\n }\n else {\n if ((process.env.NODE_ENV !== 'production')) {\n warn('uncaught error during route navigation:');\n }\n console.error(error);\n }\n // reject the error no matter there were error listeners or not\n return Promise.reject(error);\n }\n function isReady() {\n if (ready && currentRoute.value !== START_LOCATION_NORMALIZED)\n return Promise.resolve();\n return new Promise((resolve, reject) => {\n readyHandlers.add([resolve, reject]);\n });\n }\n function markAsReady(err) {\n if (!ready) {\n // still not ready if an error happened\n ready = !err;\n setupListeners();\n readyHandlers\n .list()\n .forEach(([resolve, reject]) => (err ? reject(err) : resolve()));\n readyHandlers.reset();\n }\n return err;\n }\n // Scroll behavior\n function handleScroll(to, from, isPush, isFirstNavigation) {\n const { scrollBehavior } = options;\n if (!isBrowser || !scrollBehavior)\n return Promise.resolve();\n const scrollPosition = (!isPush && getSavedScrollPosition(getScrollKey(to.fullPath, 0))) ||\n ((isFirstNavigation || !isPush) &&\n history.state &&\n history.state.scroll) ||\n null;\n return nextTick()\n .then(() => scrollBehavior(to, from, scrollPosition))\n .then(position => position && scrollToPosition(position))\n .catch(err => triggerError(err, to, from));\n }\n const go = (delta) => routerHistory.go(delta);\n let started;\n const installedApps = new Set();\n const router = {\n currentRoute,\n listening: true,\n addRoute,\n removeRoute,\n clearRoutes: matcher.clearRoutes,\n hasRoute,\n getRoutes,\n resolve,\n options,\n push,\n replace,\n go,\n back: () => go(-1),\n forward: () => go(1),\n beforeEach: beforeGuards.add,\n beforeResolve: beforeResolveGuards.add,\n afterEach: afterGuards.add,\n onError: errorListeners.add,\n isReady,\n install(app) {\n const router = this;\n app.component('RouterLink', RouterLink);\n app.component('RouterView', RouterView);\n app.config.globalProperties.$router = router;\n Object.defineProperty(app.config.globalProperties, '$route', {\n enumerable: true,\n get: () => unref(currentRoute),\n });\n // this initial navigation is only necessary on client, on server it doesn't\n // make sense because it will create an extra unnecessary navigation and could\n // lead to problems\n if (isBrowser &&\n // used for the initial navigation client side to avoid pushing\n // multiple times when the router is used in multiple apps\n !started &&\n currentRoute.value === START_LOCATION_NORMALIZED) {\n // see above\n started = true;\n push(routerHistory.location).catch(err => {\n if ((process.env.NODE_ENV !== 'production'))\n warn('Unexpected error when starting the router:', err);\n });\n }\n const reactiveRoute = {};\n for (const key in START_LOCATION_NORMALIZED) {\n Object.defineProperty(reactiveRoute, key, {\n get: () => currentRoute.value[key],\n enumerable: true,\n });\n }\n app.provide(routerKey, router);\n app.provide(routeLocationKey, shallowReactive(reactiveRoute));\n app.provide(routerViewLocationKey, currentRoute);\n const unmountApp = app.unmount;\n installedApps.add(app);\n app.unmount = function () {\n installedApps.delete(app);\n // the router is not attached to an app anymore\n if (installedApps.size < 1) {\n // invalidate the current navigation\n pendingLocation = START_LOCATION_NORMALIZED;\n removeHistoryListener && removeHistoryListener();\n removeHistoryListener = null;\n currentRoute.value = START_LOCATION_NORMALIZED;\n started = false;\n ready = false;\n }\n unmountApp();\n };\n // TODO: this probably needs to be updated so it can be used by vue-termui\n if (((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) && isBrowser) {\n addDevtools(app, router, matcher);\n }\n },\n };\n // TODO: type this as NavigationGuardReturn or similar instead of any\n function runGuardQueue(guards) {\n return guards.reduce((promise, guard) => promise.then(() => runWithContext(guard)), Promise.resolve());\n }\n return router;\n}\nfunction extractChangingRecords(to, from) {\n const leavingRecords = [];\n const updatingRecords = [];\n const enteringRecords = [];\n const len = Math.max(from.matched.length, to.matched.length);\n for (let i = 0; i < len; i++) {\n const recordFrom = from.matched[i];\n if (recordFrom) {\n if (to.matched.find(record => isSameRouteRecord(record, recordFrom)))\n updatingRecords.push(recordFrom);\n else\n leavingRecords.push(recordFrom);\n }\n const recordTo = to.matched[i];\n if (recordTo) {\n // the type doesn't matter because we are comparing per reference\n if (!from.matched.find(record => isSameRouteRecord(record, recordTo))) {\n enteringRecords.push(recordTo);\n }\n }\n }\n return [leavingRecords, updatingRecords, enteringRecords];\n}\n\n/**\n * Returns the router instance. Equivalent to using `$router` inside\n * templates.\n */\nfunction useRouter() {\n return inject(routerKey);\n}\n/**\n * Returns the current route location. Equivalent to using `$route` inside\n * templates.\n */\nfunction useRoute(_name) {\n return inject(routeLocationKey);\n}\n\nexport { NavigationFailureType, RouterLink, RouterView, START_LOCATION_NORMALIZED as START_LOCATION, createMemoryHistory, createRouter, createRouterMatcher, createWebHashHistory, createWebHistory, isNavigationFailure, loadRouteLocation, matchedRouteKey, onBeforeRouteLeave, onBeforeRouteUpdate, parseQuery, routeLocationKey, routerKey, routerViewLocationKey, stringifyQuery, useLink, useRoute, useRouter, viewDepthKey };\n","import { type ComputedRef, type Ref, computed } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\nimport { useLink } from 'vue-router';\n\ninterface RouterComposableHelpers {\n /**\n * V-bind this to an element to make it accessible as a link.\n */\n linkAttrs: Ref<{\n role?: string;\n tabindex?: string;\n href?: string;\n }>;\n /**\n * The href to link to.\n */\n href: Ref<string | undefined>;\n /**\n * Navigates to the given route or href. If you're not using an `<a>` tag,\n * you'll need to call this on `@click` and on `@keydown.enter`\n */\n navigate: (event: MouseEvent) => Promise<void>;\n}\n\nfunction useLinkAttrs(href: Ref<string | undefined>): ComputedRef<{\n role?: string;\n tabindex?: string;\n href?: string;\n}> {\n return computed(() => (href.value ? { role: 'link', tabindex: '0', href: href.value } : {}));\n}\n\n/**\n * Adds router-link functionality to any component. Accepts an `undefined`\n * route, which disables routing.\n *\n * @param to - The route to link to.\n * @returns A few helpers can be used to link to the given route.\n */\nexport function useRouterLink(to: Ref<RouteLocationRaw | undefined>): RouterComposableHelpers {\n // NOTE(mohan): We need to provide a default here or else `useLink` will throw\n // an error.\n const toWithDefault = computed(() => to.value ?? '');\n const useLinkResult = useLink({ to: toWithDefault });\n const { navigate: _navigate, href: _href } = useLinkResult;\n\n const isRouterLink = computed(() => !!to.value);\n const href = computed(() => (isRouterLink.value ? _href.value : undefined));\n const linkAttrs = useLinkAttrs(href);\n const navigate = async (event: MouseEvent): Promise<void> => {\n if (isRouterLink.value) {\n try {\n await _navigate(event);\n } catch (error) {\n // NOTE(mohan): This matches RouterLink's behavior, which doesn't throw\n // on navigation errors.\n // eslint-disable-next-line no-console\n console.debug(error);\n }\n }\n };\n\n return { linkAttrs, href, navigate };\n}\n","<!-- eslint-disable vue/no-deprecated-slot-attribute -->\n<template>\n <sl-button\n v-bind=\"$attrs\"\n ref=\"button\"\n class=\"c-button\"\n :class=\"{\n 'c-button--block': injectedOrPropBlock,\n 'c-button--has-prefix-icon': hasIcon && iconPosition === 'prefix',\n 'c-button--has-suffix-icon': hasIcon && iconPosition === 'suffix',\n [`c-button-level--${level}`]: level,\n [`c-button-variant--${computedVariant}`]: computedVariant,\n [`c-button-size--${computedSize}`]: computedSize,\n }\"\n :data-block=\"dataBlock\"\n :data-href=\"routerDestinationOrHref\"\n :data-level=\"level\"\n :data-loading=\"dataLoading\"\n :data-size=\"computedSize\"\n data-test=\"button\"\n :data-variant=\"computedVariant\"\n :disabled=\"disabled\"\n :href=\"routerDestinationOrHref\"\n :loading=\"loading || undefined\"\n :size=\"computedSize\"\n :target=\"target\"\n :variant=\"shoelaceVariant\"\n v-on=\"animationListeners\"\n @click=\"onClick\"\n @sl-focus=\"$emit('focus', $event)\"\n @sl-blur=\"$emit('blur', $event)\"\n >\n <span v-if=\"hasIcon\" :slot=\"iconPosition\" data-test=\"button-icon-slot\">\n <slot name=\"icon\">\n <font-awesome-icon v-if=\"icon\" :icon=\"icon\" />\n </slot>\n </span>\n <slot data-test=\"button-default-slot\" />\n </sl-button>\n</template>\n\n<script lang=\"ts\">\nimport type { IconDefinition } from '@fortawesome/fontawesome-svg-core';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport '@shoelace-style/shoelace/dist/components/button/button.js';\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, inject, ref, toRefs } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nimport type {\n ButtonIconPosition,\n ButtonLevel,\n ButtonShoelaceVariant,\n ButtonSize,\n ButtonVariant,\n} from '@propelinc/citrus-ui/src/components/CButton/types';\nimport { useTapAnimation } from '@propelinc/citrus-ui/src/composables/animation';\nimport { useRouterLink } from '@propelinc/citrus-ui/src/composables/router';\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\nimport { BLOCK, BOUNCE_AMOUNT, LARGE } from '@propelinc/citrus-ui/src/services/injections/buttons';\n\n/**\n * Shoelace has a set of variants that don't match the variant names we would like to use.\n * This mapping is used to translate the variant names to the correct Shoelace variant names\n * and apply it to the underlying Shoelace button component.\n */\nexport const VARIANT_TO_SHOELACE_VARIANT: Record<ButtonVariant, ButtonShoelaceVariant> = {\n primary: 'primary',\n // Shoelace `default` is an outline style\n secondary: 'default',\n tertiary: 'text',\n};\n\nconst BLOCK_BOUNCE_AMOUNT = 0.96;\nconst BASE_BOUNCE_AMOUNT = 0.94;\n\nexport default defineComponent({\n components: {\n FontAwesomeIcon,\n },\n props: {\n /** Controls whether button appears as full-width */\n block: { type: Boolean, default: false },\n /** Controls whether button is disabled */\n disabled: { type: Boolean, default: false },\n /** Designates the button as an anchor and applies the href attribute */\n href: { type: String, default: undefined },\n /** Chooses an icon to render on the left side of the button */\n icon: {\n type: [String, Array, Object] as PropType<string | string[] | IconDefinition>,\n default: undefined,\n },\n /** Chooses whether to place the icon before or after the button text */\n iconPosition: {\n type: String as PropType<ButtonIconPosition>,\n default: 'prefix',\n validator: (value: string) => ['prefix', 'suffix'].includes(value),\n },\n /**\n * @deprecated use `size` prop instead\n * Controls whether button uses the large variant\n */\n large: { type: Boolean, default: false, deprecated: true },\n /** Controls the level of the button */\n level: {\n type: String as PropType<ButtonLevel>,\n default: 'normal',\n validator: (value: string) => ['normal', 'danger'].includes(value),\n },\n /** Controls whether button is loading */\n loading: { type: Boolean, default: false },\n /**\n * @deprecated use `variant` prop instead\n * Controls whether button uses the secondary variant */\n secondary: { type: Boolean, default: false, deprecated: true },\n /**\n * Controls the size of the button\n * @default 'medium'\n */\n size: {\n type: String as PropType<ButtonSize>,\n default: 'medium',\n validator: (value: string) => ['medium', 'large'].includes(value),\n },\n /** Designates the target attribute. Only use with the href prop. */\n target: { type: String, default: undefined },\n /**\n * @deprecated use `variant` prop instead\n * Controls whether button uses the tertiary variant\n */\n tertiary: { type: Boolean, default: false, deprecated: true },\n /** Controls whether button functions as a router-link */\n to: { type: [Object, String] as PropType<RouteLocationRaw>, default: undefined },\n /**\n * Controls the styling of the button\n * @default 'primary'\n */\n variant: {\n type: String as PropType<ButtonVariant>,\n default: 'primary',\n validator: (value: string) => ['primary', 'secondary', 'tertiary'].includes(value),\n },\n },\n emits: ['click', 'focus', 'blur'],\n setup(props, { emit }) {\n const { block, to } = toRefs(props);\n const { href: routerDestination, navigate } = useRouterLink(to);\n const routerDestinationOrHref = computed(() => routerDestination.value ?? props.href);\n\n const dataLoading = computed<true | undefined>(() => props.loading || undefined);\n\n const injectedBlock = inject(BLOCK, undefined);\n const injectedOrPropBlock = computed(() => injectedBlock?.value ?? props.block);\n const dataBlock = computed<true | undefined>(() => injectedOrPropBlock.value || undefined);\n\n const iconSlotHasContent = useSlotHasContent('icon');\n const hasIcon = computed(() => iconSlotHasContent.value || !!props.icon);\n\n /**\n * Handle the deprecated `secondary` and `tertiary` props.\n */\n const computedVariant = computed((): ButtonVariant => {\n if (props.secondary) {\n return 'secondary';\n }\n\n if (props.tertiary) {\n return 'tertiary';\n }\n\n return props.variant;\n });\n\n /**\n * Map the computed variant to the Shoelace variant\n */\n const shoelaceVariant = computed(() => VARIANT_TO_SHOELACE_VARIANT[computedVariant.value]);\n\n /**\n * The deprecated `large` prop can be injected through a provider.\n */\n const injectedLarge = inject(LARGE, undefined);\n const injectedOrPropsLarge = computed(() => injectedLarge?.value ?? props.large);\n /**\n * Because we want the `size` prop to have a default, it's always supplied.\n * Thus, our only option to respect the deprecated `large` prop is to give it priority.\n */\n const computedSize = computed(() => {\n if (injectedOrPropsLarge.value) {\n return 'large';\n }\n\n return props.size;\n });\n\n function onClick(event: MouseEvent): void {\n /**\n * If the button is disabled or loading, do not take action.\n * This prevents double/extra clicks when an async operation is in progress.\n */\n if (props.disabled || props.loading) {\n return;\n }\n\n navigate(event);\n emit('click', event);\n }\n\n const button = ref<HTMLElement | null>(null);\n const injectedBounceAmount = inject(BOUNCE_AMOUNT, null);\n const bounceAmount = computed(() => {\n /**\n * If the button is disabled or loading, do not animate the button.\n */\n if (props.disabled || props.loading) {\n return 1;\n }\n\n if (injectedBounceAmount) {\n return injectedBounceAmount;\n }\n\n if (block.value) {\n return BLOCK_BOUNCE_AMOUNT;\n }\n\n return BASE_BOUNCE_AMOUNT;\n });\n const animationListeners = useTapAnimation({\n el: button,\n keyframes: {\n default: { transform: 'scale(1)' },\n pressed: { transform: `scale(${bounceAmount.value})` },\n },\n });\n\n return {\n animationListeners,\n button,\n computedSize,\n computedVariant,\n dataBlock,\n dataLoading,\n hasIcon,\n injectedOrPropBlock,\n injectedOrPropsLarge,\n onClick,\n routerDestinationOrHref,\n shoelaceVariant,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/button';\n\n.c-button {\n // Prevents the iOS tap highlight color from showing up on buttons\n -webkit-tap-highlight-color: transparent;\n\n &::part(base) {\n // Included in all buttons so that they line up in rows, even buttons with transparent borders\n border-width: $border-width;\n transition: background-color 0.2s ease-in-out;\n }\n\n &::part(label) {\n padding: 0 16px;\n }\n}\n\n.c-button-size--medium::part(base) {\n --sl-input-height-medium: #{$button-size-medium};\n}\n\n.c-button-size--large::part(base) {\n --sl-input-height-large: #{$button-size-large};\n}\n\n.c-button--has-prefix-icon {\n &::part(base) {\n padding-inline-start: 16px;\n }\n\n &::part(label) {\n padding-inline-start: 8px;\n }\n}\n\n.c-button--has-suffix-icon {\n &::part(base) {\n padding-inline-end: 16px;\n }\n\n &::part(label) {\n padding-inline-end: 8px;\n }\n}\n\n.c-button--block {\n min-width: 100%;\n}\n\n.c-button-variant--primary::part(base) {\n @include button-theme-primary;\n}\n\n.c-button-variant--primary.c-button-level--danger::part(base) {\n @include button-theme-primary-danger;\n}\n\n.c-button-variant--secondary::part(base) {\n @include button-theme-secondary;\n}\n\n.c-button-variant--secondary.c-button-level--danger::part(base) {\n @include button-theme-secondary-danger;\n}\n\n.c-button-variant--tertiary::part(base) {\n @include button-theme-tertiary;\n}\n\n.c-button-variant--tertiary.c-button-level--danger::part(base) {\n @include button-theme-tertiary-danger;\n}\n\n/**\n * Override Shoelace's default disabled styles\n * (The danger styles seem fine)\n */\n:not(.c-button-level--danger) {\n &.c-button-variant--primary[disabled]::part(base) {\n @include button-theme($color-gray-400, $color-gray-200, $color-gray-200);\n }\n\n &.c-button-variant--secondary[disabled]::part(base) {\n @include button-theme($color-gray-300, $color-gray-300, transparent);\n }\n\n &.c-button-variant--tertiary[disabled]::part(base) {\n @include button-theme($color-gray-300, transparent, transparent);\n }\n}\n</style>\n","<template>\n <div v-bind=\"$attrs\" class=\"c-card-header\" data-test=\"card-header\">\n <div data-test=\"card-title\" class=\"c-card-header__title\">\n <slot />\n </div>\n\n <div class=\"c-card-header__append\">\n <slot name=\"append\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, provide, ref } from 'vue';\n\nimport { TERTIARY as TERTIARY_ICON_BUTTON } from '@propelinc/citrus-ui/src/services/injections/icon-buttons';\n\nexport default defineComponent({\n setup() {\n provide(TERTIARY_ICON_BUTTON, ref(true));\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-card-header {\n @include subheadline;\n\n display: flex;\n}\n\n.c-card-header__title {\n flex: 1 1 auto;\n padding: 16px 16px 8px;\n}\n\n.c-card-header__append {\n align-items: center;\n display: flex;\n flex: none;\n\n .c-icon-button {\n margin-right: 8px;\n }\n\n .c-badge {\n margin-right: 8px;\n }\n}\n</style>\n","<template>\n <component\n :is=\"config.element\"\n v-bind=\"config.attrs\"\n data-test=\"card\"\n class=\"c-card\"\n :class=\"{\n 'c-card--tile': tile,\n 'c-card--borderless': borderless,\n 'c-card--link': config.isLink,\n 'c-card--stretch': stretch,\n }\"\n :href=\"href\"\n :style=\"{\n '--background-color': backgroundCssColor,\n '--border-color': borderCssColor,\n }\"\n :to=\"to\"\n >\n <CCardHeader v-if=\"title\">\n {{ title }}\n </CCardHeader>\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, toRefs } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nimport CCardHeader from '@propelinc/citrus-ui/src/components/CCardHeader.vue';\nimport { useCssColor } from '@propelinc/citrus-ui/src/composables/colors';\n\ntype RoutingVariant = 'none' | 'internal' | 'external';\n\nexport interface InternalCardConfig {\n attrs: Record<string, unknown>;\n element: string;\n isLink: boolean;\n}\n\nexport default defineComponent({\n components: { CCardHeader },\n props: {\n /** Sets the border color of the card */\n borderColor: { type: String, default: undefined },\n\n /** Removes the border of the card */\n borderless: { type: Boolean, default: false },\n\n /** Sets the background color of the entire card */\n color: { type: String, default: undefined },\n\n /** Navigates externally on click */\n href: { type: String, default: undefined },\n\n /** Stretches the card vertically to fill the height of the parent container */\n stretch: { type: Boolean, default: false },\n\n /** Toggles a squared-off card style intended to fill the width of the page */\n tile: { type: Boolean, default: false },\n\n /** Sets the title of the card */\n title: { type: String, default: undefined },\n\n /** Navigates within the app on click */\n to: { type: [Object, String] as PropType<RouteLocationRaw | undefined>, default: undefined },\n },\n setup(props, { attrs }) {\n const { href, to } = toRefs(props);\n\n const { cssColor: backgroundCssColor } = useCssColor(() => props.color);\n const { cssColor: borderCssColor } = useCssColor(() => props.borderColor);\n\n const routingVariant = computed<RoutingVariant>(() => {\n if (to.value) {\n return 'internal';\n }\n\n if (href.value) {\n return 'external';\n }\n\n return 'none';\n });\n\n const config = computed<InternalCardConfig>(() => {\n switch (routingVariant.value) {\n case 'internal':\n return {\n attrs,\n element: 'router-link',\n isLink: true,\n };\n\n case 'external':\n return {\n attrs: {\n ...attrs,\n role: 'link',\n tabindex: '0',\n target: '_blank',\n },\n element: 'a',\n isLink: true,\n };\n\n case 'none':\n default:\n return { attrs, element: 'div', isLink: false };\n }\n });\n\n return { config, backgroundCssColor, borderCssColor };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-card {\n --background-color: #{$color-background};\n --border-color: #{$color-border};\n --border-radius: #{$border-radius-next};\n --text-color: #{$color-text-primary};\n\n background-color: var(--background-color);\n border-color: var(--border-color);\n border-radius: var(--border-radius);\n border-style: solid;\n border-width: $border-width;\n color: var(--text-color);\n display: block;\n max-width: 100%;\n overflow: hidden;\n\n /**\n * FIXME: (kyleshevlin - https://linear.app/slanden/issue/FE-37/remove-exported-margins):\n * This is an \"exported margin\" and we should try to remove it. They make composition difficult.\n * Read more here: https://kyleshevlin.com/no-outer-margin\n *\n * For example, imagine we want to have multiple cards in a row. This selector will add a\n * margin-top to every card except the first. That would not be desired.\n *\n * Ideally, layout of sibling cards is always handled by a parent element.\n */\n & + & {\n margin-top: 8px;\n }\n}\n\n.c-card--tile {\n --border-radius: 0;\n\n border-left: none;\n border-right: none;\n}\n\n.c-card--borderless {\n --border-color: transparent;\n}\n\n.c-card--link {\n cursor: pointer;\n}\n\n.c-card--stretch {\n height: 100%;\n}\n</style>\n","<template>\n <CButtonStack v-bind=\"$attrs\" data-test=\"card-footer\" class=\"c-card-footer\">\n <slot />\n </CButtonStack>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nimport CButtonStack from '@propelinc/citrus-ui/src/components/CButtonStack.vue';\n\nexport default defineComponent({\n components: { CButtonStack },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-card-footer {\n padding: 0 16px 16px;\n}\n</style>\n","<template>\n <div\n v-bind=\"$attrs\"\n data-test=\"card-section\"\n class=\"c-card-section\"\n :class=\"{ 'c-card-section--fluid': fluid }\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n /** Removes the padding from the section */\n fluid: { type: Boolean, default: false },\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-card-section {\n padding: 0 16px 16px;\n\n &:first-child:not(.c-card-section--fluid) {\n padding-top: 16px;\n }\n}\n\n.c-card-section--fluid {\n padding: 0;\n}\n</style>\n","<template>\n <div\n v-if=\"!isHidden\"\n :data-test=\"dataTest\"\n class=\"c-validation-message\"\n :class=\"{ 'c-validation-message--invalid': !!validationMessage }\"\n >\n <CFadeTransition aria-live=\"polite\">\n <span v-if=\"validationMessage\" key=\"message\" role=\"alert\" :data-test=\"`${dataTest}-text`\">\n {{ validationMessage }}\n </span>\n <!-- NOTE(mohan): Always keep an empty span to make sure the flex layout is stable. -->\n <span v-else key=\"empty\">\n <slot />\n </span>\n </CFadeTransition>\n\n <slot name=\"append\" />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { computed, defineComponent } from 'vue';\n\nimport CFadeTransition from '@propelinc/citrus-ui/src/components/CFadeTransition.vue';\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\n\nexport default defineComponent({\n name: 'CValidationMessage',\n components: { CFadeTransition },\n props: {\n /** Test selector for the component */\n dataTest: { type: String, default: 'validation-message' },\n /** Validation message to display */\n validationMessage: { type: String as PropType<string | null>, default: null },\n /** Whether to hide the component. If \"auto\", the component will automatically\n * hide itself if it has no content. */\n hide: { type: [Boolean, String] as PropType<boolean | 'auto'>, default: false },\n },\n setup(props) {\n const appendSlotHasContent = useSlotHasContent('append');\n const isHidden = computed(() => {\n if (props.hide === 'auto') {\n return !props.validationMessage && !appendSlotHasContent.value;\n } else {\n return props.hide;\n }\n });\n\n return { isHidden };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-validation-message {\n @include caption;\n\n display: flex;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.c-validation-message--invalid {\n color: $color-status-error;\n}\n</style>\n","import type { Ref } from 'vue';\nimport { computed } from 'vue';\n\nlet idCounter = 0;\n\n/**\n * Generates a unique ID for a component.\n *\n * This is a very rudimentary backport of Vue 3.5's `useId` composable that is\n * _not_ stable across server and client.\n *\n * @param id - The ID to use. If not provided, a unique ID will be generated.\n * @returns A computed value that returns the provided ID or a unique ID.\n */\nexport function useId(id: Ref<string | null | undefined>): Ref<string> {\n return computed(() => {\n if (id.value) {\n return id.value;\n } else {\n return `c-${idCounter++}`;\n }\n });\n}\n","import type { InjectionKey } from 'vue';\n\nimport type { ValidationState } from '@propelinc/citrus-ui/src/types/CForm';\n\nexport const VALIDATIONS = Symbol('validations') as InjectionKey<{\n register: (input: ValidationState) => void;\n unregister: (id: string) => void;\n}>;\n","import type { Ref } from 'vue';\nimport { computed, inject, onBeforeUnmount, ref, unref, watch } from 'vue';\n\nimport { VALIDATIONS } from '@propelinc/citrus-ui/src/services/injections/forms';\nimport type { ValidationState } from '@propelinc/citrus-ui/src/types/CForm';\n\nexport type Rule<Value extends string | boolean> = (value: Value) => string | boolean;\nexport type Rules<Value extends string | boolean> = Rule<Value>[];\n\nexport type ValidationEvent = 'blur' | 'input' | 'change';\n\nexport interface UseValidationRuleCheckOptions<Value extends string | boolean> {\n value: Ref<Value>;\n rules: Ref<Rules<Value>>;\n required?: Ref<boolean>;\n onValidationResultChange?: ({\n message,\n valid,\n }: {\n message: string | null;\n valid: boolean;\n }) => void;\n}\n\ninterface UseValidationRuleCheckReturn {\n /** The validation error message, if any. */\n message: Ref<string | null>;\n /** Whether the input element is valid. This is only set after\n * `startValidating` is called. */\n valid: Ref<boolean>;\n /** Whether the input element is valid regardless of whether `startValidating`\n * has been called. */\n passesRules: Ref<boolean>;\n /** Starts the validation process. */\n startValidating: () => boolean;\n /** Clears the validation results. */\n clearValidations: () => void;\n}\n\n/**\n * A composable that provides manual control of validation rules for a form\n * control. For full validation support, please see the `useValidations`\n * composable.\n *\n * @see {@link useValidations}\n *\n * @param options - The options for the composable.\n */\nexport function useValidationRuleCheck<Value extends string | boolean>(\n options: UseValidationRuleCheckOptions<Value>\n): UseValidationRuleCheckReturn {\n const { value, rules, required } = options;\n const active = ref(false);\n\n const message = ref<string | null>(null);\n const valid = ref(true);\n\n const isEmpty = (v: Value): boolean =>\n v === undefined || v === null || (typeof v === 'string' && v.trim() === '');\n\n const requiredRule: Rule<Value> = (val: Value): boolean => {\n return required?.value ? !isEmpty(val) : true;\n };\n\n const rulesResult = computed(() => {\n const allRules: Rules<Value> = [...rules.value, requiredRule];\n for (const rule of allRules) {\n const result = rule(value.value);\n if (result === false || typeof result === 'string') {\n return result;\n }\n }\n return true;\n });\n\n const passesRules = computed(() => rulesResult.value === true);\n\n const validate = (): boolean => {\n if (active.value) {\n valid.value = passesRules.value;\n message.value = typeof rulesResult.value === 'string' ? rulesResult.value : null;\n options.onValidationResultChange?.({ message: message.value, valid: valid.value });\n }\n\n return valid.value;\n };\n\n watch(value, () => validate(), { immediate: true });\n watch(rules, () => validate());\n\n if (required) {\n watch(required, () => validate());\n }\n\n const startValidating = (): boolean => {\n active.value = true;\n return validate();\n };\n\n const clearValidations = (): void => {\n message.value = null;\n valid.value = true;\n active.value = false;\n };\n\n return { message, valid, startValidating, clearValidations, passesRules };\n}\n\nexport interface UseValidationsOptions<Value extends string | boolean> {\n id?: Ref<string>;\n /** The input element. The `aria-invalid` attribute will be set on this\n * element. */\n field?: Ref<HTMLElement | null>;\n /** The value of the input element. */\n value: Ref<Value>;\n /** The validation rules to apply to the input element. */\n rules: Ref<Rules<Value>>;\n /** Value of the required attribute. */\n required?: Ref<boolean>;\n /** Which event to wait for before starting validation. */\n validateOn?: ValidationEvent | Ref<ValidationEvent>;\n}\n\ninterface UseValidationsReturn {\n /** The validation error message, if any. */\n message: Ref<string | null>;\n /** Whether the input element is valid. */\n valid: Ref<boolean | null>;\n /** The event listeners to bind to the component using `v-on`. */\n listeners: Record<string, (event: Event) => void>;\n /** Triggers validation. */\n startValidating: () => boolean;\n /** Clears the validation results. */\n clearValidations: () => void;\n}\n\n/** Registers this field with a parent form to enable form-wide validation. */\nexport type ValidationStateWithOptionalId = Omit<ValidationState, 'id'> & { id?: string };\nexport function useFormValidationSupport(state: ValidationStateWithOptionalId): void {\n const formValidations = inject(VALIDATIONS, null);\n if (formValidations) {\n if (!state.id) {\n throw new Error('id is required to support form validations');\n }\n\n formValidations.register(state as ValidationState);\n }\n\n onBeforeUnmount(() => {\n if (formValidations && state.id) {\n formValidations.unregister(state.id);\n }\n });\n}\n\n/**\n * A composable that provides validation support for form controls. Please make sure to\n * `v-bind` the returned `attrs` and `v-on` the returned `listeners` to the component.\n *\n * @param options - The options for the composable.\n */\nexport function useValidations<Value extends string | boolean>(\n options: UseValidationsOptions<Value>\n): UseValidationsReturn {\n const validateOn = computed(() => unref(options.validateOn) ?? 'blur');\n\n const onValidationResultChange = ({ valid }: { valid: boolean }): void => {\n if (options.field?.value) {\n options.field.value.setAttribute('aria-invalid', valid ? 'false' : 'true');\n }\n };\n\n const { message, valid, startValidating, passesRules, clearValidations } = useValidationRuleCheck(\n {\n value: options.value,\n rules: options.rules,\n required: options.required,\n onValidationResultChange,\n }\n );\n\n useFormValidationSupport({\n id: options.id?.value,\n valid: passesRules,\n validate: startValidating,\n field: options.field,\n });\n\n const onInput = (): void => {\n if (validateOn.value === 'input') {\n startValidating();\n }\n };\n\n const onBlur = (): void => {\n // NOTE(slanden): We always validate on blur, regardless of the validateOn setting.\n startValidating();\n };\n\n const onChange = (): void => {\n if (validateOn.value === 'change') {\n startValidating();\n }\n };\n\n watch(validateOn, (newValue, oldValue): void => {\n if (['input', 'change'].includes(newValue) && newValue !== oldValue) {\n startValidating();\n }\n });\n\n const listeners = { input: onInput, blur: onBlur, change: onChange };\n return { message, valid, listeners, startValidating, clearValidations };\n}\n","<template>\n <div class=\"c-checkbox__container\">\n <label\n class=\"c-checkbox\"\n :class=\"{\n 'c-checkbox--checked': internalValue,\n 'c-checkbox--invalid': !isValidationValid,\n 'c-checkbox--contained': variant === 'contained',\n }\"\n :data-test=\"dataTest\"\n >\n <input\n :id=\"idWithFallback\"\n type=\"checkbox\"\n :data-test=\"`${dataTest}-input`\"\n class=\"c-checkbox__input\"\n :aria-checked=\"internalValue\"\n :aria-describedby=\"`${idWithFallback}-message`\"\n :aria-invalid=\"!isValidationValid\"\n :checked=\"internalValue || undefined\"\n @change=\"onChange\"\n @blur=\"$emit('blur')\"\n @focus=\"$emit('focus')\"\n v-on=\"validationListeners\"\n />\n <span class=\"c-checkbox__control\" :data-test=\"`${dataTest}-control`\">\n <FontAwesomeIcon v-if=\"internalValue\" :icon=\"faCheck\" />\n </span>\n <slot name=\"label\">{{ label }}</slot>\n </label>\n\n <CValidationMessage\n class=\"c-checkbox__message\"\n :data-test=\"`${dataTest}-message`\"\n :validation-message=\"validationMessage\"\n :hide=\"hideDetails\"\n >\n <slot name=\"message\" />\n </CValidationMessage>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { faCheck } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport type { PropType } from 'vue';\nimport { defineComponent, ref, toRefs } from 'vue';\n\nimport CValidationMessage from '@propelinc/citrus-ui/src/components/CValidationMessage.vue';\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\nimport { useId } from '@propelinc/citrus-ui/src/composables/id';\nimport { useValidations } from '@propelinc/citrus-ui/src/composables/validations';\n\nexport default defineComponent({\n name: 'CCheckbox',\n components: { FontAwesomeIcon, CValidationMessage },\n props: {\n /** Assigns the checkbox's id */\n id: { type: String as PropType<string | null>, default: null },\n /** The label text for the checkbox. */\n label: { type: String, default: undefined },\n /** Whether the checkbox is checked */\n value: { type: Boolean, default: false },\n /** A custom data-test selector */\n dataTest: { type: String, default: 'checkbox' },\n /**\n * An array of functions that either return either true / false or a string\n * containing an error message. The component passes the input value as an\n * argument. The input field will enter an error state if a function does\n * not return true.\n * */\n rules: {\n type: Array as PropType<((value: boolean) => string | boolean)[]>,\n default: () => [],\n },\n /** Hides the validation message area. */\n hideDetails: {\n type: [Boolean, String] as PropType<boolean | 'auto'>,\n default: false,\n },\n /** Controls the appearance of the checkbox. */\n variant: {\n type: String as PropType<'contained' | 'minimal'>,\n default: 'contained',\n },\n },\n emits: ['change', 'focus', 'blur'],\n setup(props, { emit }) {\n const { value, rules, id } = toRefs(props);\n const idWithFallback = useId(id);\n\n const internalValue = useInternalValue(value, {\n onChange: (value) => emit('change', value),\n });\n\n const checkbox = ref<HTMLInputElement | null>(null);\n\n const {\n message: validationMessage,\n valid: isValidationValid,\n listeners: validationListeners,\n } = useValidations({\n id: idWithFallback,\n value: internalValue,\n rules,\n validateOn: 'change',\n field: checkbox,\n });\n\n const onChange = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n internalValue.value = !!target.checked;\n };\n\n return {\n checkbox,\n faCheck,\n idWithFallback,\n internalValue,\n onChange,\n validationMessage,\n isValidationValid,\n validationListeners,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/form-fields';\n@import '@propelinc/citrus-ui/src/styles/utils/a11y';\n\n.c-checkbox {\n align-items: flex-start;\n cursor: pointer;\n display: flex;\n gap: 8px;\n transition: border-color $citrus-field-transition-duration ease;\n\n --padding: 12px;\n\n &--contained {\n background-color: $color-background;\n border: $border;\n border-radius: $border-radius-next;\n padding: var(--padding);\n width: 100%;\n\n &.c-checkbox--checked {\n border-color: $color-black;\n border-width: $border-width;\n }\n\n &.c-checkbox--invalid {\n border-color: $color-status-error;\n }\n }\n\n &--invalid {\n color: $color-status-error;\n }\n}\n\n.c-checkbox__input {\n @include sr-only;\n}\n\n.c-checkbox__control {\n align-items: center;\n border: $color-gray-300 solid $border-width;\n border-radius: 4px;\n color: $color-white;\n display: flex;\n flex-shrink: 0;\n height: 22px;\n justify-content: center;\n width: 22px;\n\n .c-checkbox--checked & {\n background-color: $color-black;\n border-color: $color-black;\n }\n\n .c-checkbox--invalid & {\n border-color: $color-status-error;\n }\n}\n\n.c-checkbox__input:focus-visible ~ .c-checkbox__control {\n @include focus-ring;\n}\n\n.c-checkbox__message {\n margin-top: 4px;\n}\n</style>\n","<template>\n <div class=\"c-col\" :class=\"{ [`c-col-${cols}`]: cols }\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n /** Sets the default number of columns the component extends.\n * Available options are: 1 -> 12 and auto. */\n cols: {\n type: String,\n default: null,\n validator: (value: string) => {\n if (value === 'auto' || !value) {\n return true;\n }\n\n return Array.from(Array(12))\n .map((_, i) => `${i + 1}`)\n .includes(value);\n },\n },\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n.c-col {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n\n &:not(.c-col-auto) {\n padding: 12px;\n width: 100%;\n }\n}\n\n.c-col-auto {\n flex: 0 0 auto;\n max-width: 100%;\n width: auto;\n}\n\n@for $i from 1 through 12 {\n .c-col-#{$i} {\n flex: 0 0 calc(#{$i} / 12 * 100%);\n max-width: calc(#{$i} / 12 * 100%);\n }\n}\n</style>\n","<template>\n <hr\n class=\"c-divider\"\n :class=\"{ 'c-divider--vertical': vertical }\"\n :aria-orientation=\"vertical ? 'vertical' : 'horizontal'\"\n />\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n /** Displays dividers vertically. */\n vertical: { type: Boolean, default: false },\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-divider {\n border: solid $color-gray-200;\n border-width: thin 0 0;\n display: block;\n flex: 1 1 0px;\n height: 0;\n max-height: 0;\n max-width: 100%;\n transition: inherit;\n}\n\n.c-divider--vertical {\n align-self: stretch;\n border-width: 0 thin 0 0;\n display: inline-flex;\n height: inherit;\n margin: 0 -1px;\n max-height: 100%;\n max-width: 0;\n min-height: 100%;\n vertical-align: text-bottom;\n width: 0;\n}\n</style>\n","<template>\n <div>{{ displayText }}</div>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { computed, defineComponent } from 'vue';\n\nexport default defineComponent({\n name: 'CFormFieldCounter',\n props: {\n /** Sets the denominator of the counter. */\n counter: { type: Number as PropType<number | null>, default: null },\n /** Function or number that determines the numerator of the counter. */\n counterValue: {\n type: [Number, Function] as PropType<number | (() => number | null)>,\n default: null,\n },\n /** Input value of the parent form field */\n value: { type: String, default: '' },\n },\n setup(props) {\n const numerator = computed(() => {\n if (typeof props.counterValue === 'function') {\n return props.counterValue();\n } else if (typeof props.counterValue === 'number') {\n return props.counterValue;\n } else {\n return props.value.length;\n }\n });\n\n const displayText = computed(() => {\n return `${numerator.value}/${props.counter}`;\n });\n\n return { numerator, displayText };\n },\n});\n</script>\n","import { onMounted, useAttrs } from 'vue';\n\nexport function useA11yLabelCheck(componentName: string, props?: Record<string, unknown>): void {\n const attrs = useAttrs();\n\n onMounted(() => {\n const enableCheck = process.env.VUE_APP_DEBUG === 'yes' || process.env.NODE_ENV === 'test';\n if (!enableCheck) {\n return;\n }\n\n if (\n attrs.title ||\n props?.title ||\n attrs['aria-label'] ||\n props?.ariaLabel ||\n attrs['aria-labelledby'] ||\n props?.ariaLabelledby ||\n attrs['aria-hidden'] ||\n props?.ariaHidden\n ) {\n return;\n }\n\n console.error(\n `Missing ${componentName} label. This component won't be intelligible to screen readers. Typically, this is resolved by providing an aria-label.`\n );\n });\n}\n","<template>\n <CButton\n v-bind=\"$attrs\"\n class=\"c-icon-button\"\n :class=\"{\n 'c-icon-button--inherit': inheritColor,\n [`c-icon-button-size--${computedSize}`]: computedSize,\n }\"\n :data-inherit-color=\"inheritColor\"\n :data-size=\"computedSize\"\n data-test=\"icon-button\"\n :disabled=\"disabled\"\n :href=\"href\"\n :level=\"level\"\n :loading=\"loading\"\n :size=\"computedSize\"\n :target=\"target\"\n :to=\"to\"\n :variant=\"computedVariant\"\n @blur=\"$emit('blur', $event)\"\n @click=\"$emit('click', $event)\"\n @focus=\"$emit('focus', $event)\"\n >\n <div\n role=\"img\"\n data-test=\"icon-button-a11y\"\n :aria-label=\"ariaLabel\"\n :aria-labelledby=\"ariaLabelledby\"\n >\n <slot>\n <font-awesome-icon\n v-if=\"icon\"\n class=\"c-icon-button__icon\"\n :class=\"{ 'c-icon-button__icon--spin': spinIcon }\"\n data-test=\"icon-button-icon\"\n :icon=\"icon\"\n />\n </slot>\n </div>\n </CButton>\n</template>\n\n<script lang=\"ts\">\nimport type { IconDefinition } from '@fortawesome/pro-light-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, inject, provide } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nimport CButton from '@propelinc/citrus-ui/src/components/CButton/CButton.vue';\nimport type {\n ButtonLevel,\n ButtonSize,\n ButtonVariant,\n} from '@propelinc/citrus-ui/src/components/CButton/types';\nimport { useA11yLabelCheck } from '@propelinc/citrus-ui/src/composables/accessibility';\nimport { BOUNCE_AMOUNT } from '@propelinc/citrus-ui/src/services/injections/buttons';\nimport { INHERIT_COLOR, TERTIARY } from '@propelinc/citrus-ui/src/services/injections/icon-buttons';\n\nexport default defineComponent({\n components: { FontAwesomeIcon, CButton },\n props: {\n /** ARIA label for the button. You must use either this or ariaLabelledby. */\n ariaLabel: { type: String, default: undefined },\n /** ARIA labelledby for the button. You must use either this or ariaLabel. */\n ariaLabelledby: { type: String, default: undefined },\n /** Controls whether button is disabled */\n disabled: { type: Boolean, default: false },\n /** Designates the button as an anchor and applies the href attribute */\n href: { type: String, default: undefined },\n /** Specifies a Font Awesome icon */\n icon: {\n type: [String, Array, Object] as PropType<string | string[] | IconDefinition>,\n default: undefined,\n },\n /**\n * Controls whether button uses the large variant\n * @deprecated Use `size=\"large\"` instead\n */\n large: { type: Boolean, default: false, deprecated: true },\n /**\n * Controls the level of the button\n * @default 'normal'\n */\n level: { type: String as PropType<ButtonLevel>, default: 'normal' },\n /** Controls whether button is loading */\n loading: { type: Boolean, default: false },\n /**\n * Controls whether button uses the secondary variant\n * @deprecated Use `variant=\"secondary\"` instead\n */\n secondary: { type: Boolean, default: false, deprecated: true },\n /**\n * Controls the size of the button\n * @default 'medium'\n */\n size: { type: String as PropType<ButtonSize>, default: 'medium' },\n /** Spins the icon for loading states */\n spinIcon: { type: Boolean, default: false },\n /** Designates the target attribute. Only use with the href prop. */\n target: { type: String, default: undefined },\n /**\n * Controls whether button uses the tertiary variant\n * @deprecated Use `variant=\"tertiary\"` instead\n */\n tertiary: { type: Boolean, default: false, deprecated: true },\n /** Controls whether button functions as a router-link */\n to: { type: [Object, String] as PropType<RouteLocationRaw>, default: undefined },\n /**\n * Controls the variant of the button\n * @default 'primary'\n */\n variant: { type: String as PropType<ButtonVariant>, default: 'primary' },\n },\n emits: ['blur', 'click', 'focus'],\n setup(props) {\n useA11yLabelCheck('CIconButton', props);\n\n const injectedTertiary = inject(TERTIARY, undefined);\n const injectedOrPropTertiary = computed(() => injectedTertiary?.value ?? props.tertiary);\n /**\n * Handle the `variant` prop. `secondary` and `tertiary` are deprecated, but because we set a\n * default `variant`, we need to give them precedence.\n *\n * This is slightly different than the implementation of `computedVariant` in CButton, as\n * `CButton` does not make use of an injected `TERTIARY` value.\n */\n const computedVariant = computed((): ButtonVariant => {\n if (props.secondary) {\n return 'secondary';\n }\n\n if (injectedOrPropTertiary.value) {\n return 'tertiary';\n }\n\n return props.variant;\n });\n\n /**\n * Handle the `size` prop. `large` is deprecated, but because we set a default `size`, we need\n * to give it precedence.\n */\n const computedSize = computed((): ButtonSize => {\n if (props.large) {\n return 'large';\n }\n\n return props.size;\n });\n\n const inheritColor = inject(INHERIT_COLOR, undefined);\n\n provide(BOUNCE_AMOUNT, 0.9);\n\n return { computedSize, computedVariant, inheritColor };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-icon-button::part(base) {\n font-size: $font-size-icon-medium;\n line-height: 0;\n padding: 0;\n width: $button-size-medium;\n}\n\n.c-icon-button--inherit::part(base) {\n color: inherit;\n}\n\n.c-icon-button::part(label) {\n align-items: center;\n display: flex;\n justify-content: center;\n padding: 0;\n}\n\n.c-icon-button-size--large::part(base) {\n width: $button-size-large;\n}\n\n.c-icon-button__icon--spin {\n animation: $loader-spin-animation;\n}\n</style>\n","import { getCurrentInstance } from 'vue';\n\nexport function useTranslation(): {\n t: (key: string, interpolations?: Record<string, string | number>) => string;\n} {\n const currentInstance = getCurrentInstance();\n\n if (!currentInstance || !currentInstance.proxy) {\n throw new Error('useTranslation must be called within a Vue component');\n }\n\n return { t: currentInstance.proxy.$t };\n}\n","<template>\n <div\n class=\"c-text-field\"\n :class=\"[\n {\n 'c-text-field--disabled': disabled,\n 'c-text-field--invalid': !isValidationValid,\n 'c-text-field--hide-label': hideLabel,\n 'c-text-field--focused': isFocused,\n 'c-text-field--medium': size === 'medium',\n 'c-text-field--large': size === 'large',\n },\n $attrs.class,\n ]\"\n :data-test=\"dataTest\"\n :style=\"rootStyles\"\n >\n <label class=\"c-text-field__label\" :for=\"idWithFallback\" :data-test=\"`${dataTest}-label`\">\n <slot name=\"label\">\n {{ label }}\n </slot>\n </label>\n\n <div class=\"c-text-field__container\">\n <div\n v-if=\"prefixSlotHasContent\"\n class=\"c-text-field__prefix\"\n :data-test=\"`${dataTest}-prefix`\"\n >\n <slot name=\"prepend-inner\" />\n </div>\n\n <input\n v-bind=\"fallthroughAttrs\"\n :id=\"idWithFallback\"\n ref=\"input\"\n class=\"c-text-field__input\"\n :class=\"{\n 'c-text-field__input--has-prefix': prefixSlotHasContent,\n 'c-text-field__input--has-suffix': suffixSlotHasContent,\n 'c-text-field__input--clearable': clearable && value,\n 'c-text-field__input--hideable': hideable,\n }\"\n :data-test=\"`${dataTest}-input`\"\n :aria-label=\"ariaLabel || label || undefined\"\n :aria-describedby=\"`${idWithFallback}-validation-message ${idWithFallback}-message`\"\n :aria-invalid=\"isValidationValid ? 'false' : 'true'\"\n :type=\"inputType\"\n :placeholder=\"placeholder\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :disabled=\"disabled\"\n :value=\"inputValue\"\n :inputmode=\"inputmode\"\n :required=\"required\"\n @keyup=\"$emit('keyup', $event)\"\n @keydown=\"$emit('keydown', $event)\"\n @keypress=\"$emit('keypress', $event)\"\n @click=\"$emit('click', $event)\"\n @input=\"onInput\"\n @change=\"onChange\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n />\n\n <CIconButton\n v-if=\"clearable && value\"\n :aria-label=\"$t('Clear')\"\n :data-test=\"`${dataTest}-clear`\"\n class=\"c-text-field__clear-btn c-text-field__suffix-btn\"\n type=\"button\"\n tertiary\n :icon=\"faXmark\"\n @click=\"clearInput\"\n />\n\n <CIconButton\n v-if=\"hideable\"\n :aria-label=\"hideToggleAriaLabel\"\n :data-test=\"`${dataTest}-hide-toggle`\"\n :data-hidden=\"inputHidden || undefined\"\n class=\"c-text-field__suffix-btn\"\n type=\"button\"\n tertiary\n :icon=\"inputHidden ? faEye : faEyeSlash\"\n @click=\"toggleHidden\"\n />\n\n <div\n v-if=\"suffixSlotHasContent\"\n class=\"c-text-field__suffix\"\n :data-test=\"`${dataTest}-suffix`\"\n >\n <slot name=\"append\" />\n </div>\n </div>\n\n <CValidationMessage\n :id=\"`${idWithFallback}-validation-message`\"\n class=\"c-text-field__validation-message\"\n :data-test=\"`${dataTest}-validation-message`\"\n :validation-message=\"errorMessage || validationMessage\"\n :hide=\"hideDetails\"\n >\n <template #append>\n <CFormFieldCounter\n v-if=\"counter\"\n :data-test=\"`${dataTest}-counter`\"\n :counter=\"counter\"\n :counter-value=\"counterValue !== null ? counterValue : undefined\"\n :value=\"inputValue\"\n />\n </template>\n </CValidationMessage>\n\n <div\n v-if=\"messageSlotHasContent\"\n :id=\"`${idWithFallback}-message`\"\n class=\"c-text-field__message\"\n :data-test=\"`${dataTest}-message`\"\n >\n <slot name=\"message\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { faEye, faEyeSlash, faXmark } from '@fortawesome/pro-regular-svg-icons';\nimport {\n type PropType,\n type Ref,\n type StyleValue,\n computed,\n defineComponent,\n onMounted,\n ref,\n toRefs,\n} from 'vue';\n\nimport CFormFieldCounter from '@propelinc/citrus-ui/src/components/CFormFieldCounter.vue';\nimport CIconButton from '@propelinc/citrus-ui/src/components/CIconButton.vue';\nimport CValidationMessage from '@propelinc/citrus-ui/src/components/CValidationMessage.vue';\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\nimport { useTranslation } from '@propelinc/citrus-ui/src/composables/i18n';\nimport { useId } from '@propelinc/citrus-ui/src/composables/id';\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport { useValidations } from '@propelinc/citrus-ui/src/composables/validations';\n\n// Export the interface for what this component exposes\nexport interface CTextFieldExposed {\n input: Ref<HTMLInputElement | null>;\n focus: () => void;\n blur: () => void;\n startValidating: () => void;\n}\n\nexport default defineComponent({\n name: 'CTextField',\n components: { CFormFieldCounter, CIconButton, CValidationMessage },\n inheritAttrs: false,\n props: {\n id: { type: String as PropType<string | null>, default: null },\n label: { type: String as PropType<string | null>, default: null },\n ariaLabel: { type: String as PropType<string | null>, default: null },\n placeholder: { type: String, default: '' },\n type: {\n type: String as PropType<\n 'text' | 'password' | 'email' | 'tel' | 'url' | 'search' | 'number' | 'decimal' | 'numeric'\n >,\n default: 'text',\n },\n clearable: { type: Boolean, default: false },\n size: { type: String as PropType<'medium' | 'large'>, default: 'medium' },\n inputmode: {\n type: String as PropType<\n 'text' | 'search' | 'none' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal'\n >,\n default: undefined,\n },\n minlength: { type: [Number, String], default: undefined },\n maxlength: { type: [Number, String], default: undefined },\n disabled: { type: Boolean, default: false },\n hideable: { type: Boolean, default: false },\n hideLabel: { type: Boolean, default: false },\n hideDetails: { type: [Boolean, String] as PropType<boolean | 'auto'>, default: false },\n value: { type: String, default: '' },\n dataTest: { type: String, default: 'text-field' },\n counter: { type: Number as PropType<number | null>, default: null },\n counterValue: {\n type: [Number, Function] as PropType<number | (() => number | null)>,\n default: null,\n },\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n validateOnBlur: { type: Boolean, default: true },\n required: { type: Boolean, default: false },\n /**\n * Overrides the default validation message. If provided, this error message will always\n * be shown, regardless of any other failing validation rules.\n */\n errorMessage: { type: String, default: null },\n },\n emits: [\n 'keyup',\n 'keydown',\n 'keypress',\n 'input',\n 'focus',\n 'blur',\n 'change',\n 'click',\n 'click:hide',\n ],\n setup(props, { attrs, emit, slots, expose }) {\n const { t } = useTranslation();\n\n const isFocused = ref(false);\n const inputHidden = ref(true);\n const inputType = computed(() =>\n props.hideable && inputHidden.value ? 'password' : props.type\n );\n const hideToggleAriaLabel = computed(() => {\n return props.hideable && inputHidden.value ? t('Show input value') : t('Hide input value');\n });\n\n const { id, value, rules, required } = toRefs(props);\n\n const idWithFallback = useId(id);\n\n const inputValue = useInternalValue(value, {\n onChange: (newValue) => {\n emit('input', newValue);\n },\n });\n\n const input: Ref<HTMLInputElement | null> = ref(null);\n const {\n message: validationMessage,\n valid: isValidationValid,\n listeners: validationListeners,\n startValidating,\n } = useValidations({\n id: idWithFallback,\n value: inputValue,\n rules,\n required,\n validateOn: computed(() => (props.validateOnBlur ? 'blur' : 'input')),\n field: input,\n });\n\n const prefixSlotHasContent = useSlotHasContent('prepend-inner');\n const suffixSlotHasContent = useSlotHasContent('append');\n const messageSlotHasContent = useSlotHasContent('message');\n\n const toggleHidden = (): void => {\n inputHidden.value = !inputHidden.value;\n emit('click:hide', inputHidden.value);\n };\n\n const onInput = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n if (target.value !== inputValue.value) {\n inputValue.value = target.value;\n validationListeners.input(event);\n }\n };\n\n const onChange = (event: Event): void => {\n validationListeners.change(event);\n const target = event.target as HTMLInputElement;\n emit('change', target.value);\n };\n\n const onFocus = (event: Event): void => {\n isFocused.value = true;\n emit('focus', event);\n };\n\n const onBlur = (event: Event): void => {\n isFocused.value = false;\n validationListeners.blur(event);\n emit('blur', event);\n };\n\n const clearInput = (): void => {\n emit('input', '');\n };\n\n const focus = (): void => {\n input.value?.focus();\n };\n\n const blur = (): void => {\n input.value?.blur();\n };\n\n onMounted(() => {\n if (!props.label && !slots.label && !props.ariaLabel) {\n console.error(\n 'Missing CTextField label. Please provide a label prop, an ariaLabel prop or pass a label via the label slot.'\n );\n }\n });\n\n const exposedAPI: CTextFieldExposed = { input, focus, blur, startValidating };\n expose(exposedAPI);\n\n const fallthroughAttrs = computed(() => {\n const { class: _, style: __, ...rest } = attrs;\n return rest;\n });\n\n // Need to compute these to cast the type to avoid type errors\n const rootStyles = computed(() => attrs.style as StyleValue);\n\n return {\n faXmark,\n faEye,\n faEyeSlash,\n\n fallthroughAttrs,\n hideToggleAriaLabel,\n idWithFallback,\n input,\n inputHidden,\n inputType,\n inputValue,\n isFocused,\n messageSlotHasContent,\n prefixSlotHasContent,\n rootStyles,\n suffixSlotHasContent,\n isValidationValid,\n validationMessage,\n\n clearInput,\n onBlur,\n onChange,\n onFocus,\n onInput,\n toggleHidden,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/a11y';\n@import '@propelinc/citrus-ui/src/styles/form-fields';\n\n.c-text-field__label {\n @include body-emphasized;\n\n display: inline-block;\n margin-bottom: 8px;\n transition: color $citrus-field-transition-duration ease;\n}\n\n.c-text-field__container {\n align-items: center;\n background-color: $color-background;\n border: $border-width solid $color-gray-200;\n border-radius: $border-radius-next;\n display: flex;\n transition: border-color $citrus-field-transition-duration ease;\n}\n\n.c-text-field--focused .c-text-field__container,\n.c-text-field--invalid .c-text-field__container {\n border-color: $color-black;\n}\n\n.c-text-field--invalid .c-text-field__container {\n color: $color-status-error;\n}\n\n.c-text-field--hide-label .c-text-field__label {\n @include sr-only;\n}\n\n.c-text-field--disabled .c-text-field__label {\n color: $color-text-disabled;\n}\n\n.c-text-field--disabled .c-text-field__container {\n background-color: $color-gray-100;\n color: $color-text-disabled;\n}\n\n.c-text-field__input {\n background-color: transparent;\n border: none;\n border-radius: $border-radius-next;\n flex: 1 1 0%;\n outline: none;\n width: 100%;\n\n &--has-prefix {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n }\n\n &--has-suffix {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n }\n}\n\n.c-text-field__suffix-btn {\n margin-right: 4px;\n}\n\n.c-text-field__clear-btn {\n background: none;\n border: none;\n cursor: pointer;\n font-size: 1rem;\n margin-left: 0.5rem;\n}\n\n/* Size Variants */\n.c-text-field--medium .c-text-field__input {\n padding: 12px 16px;\n\n &--clearable,\n &--hideable {\n padding-right: 0;\n }\n\n &--has-suffix {\n padding-right: 8px;\n }\n}\n\n.c-text-field--large .c-text-field__input {\n padding: 24px;\n\n &--clearable,\n &--hideable {\n padding-right: 0;\n }\n\n &--has-suffix {\n padding-right: 8px;\n }\n}\n\n.c-text-field__prefix {\n flex: 0 0 auto;\n margin-left: 16px;\n}\n\n.c-text-field__suffix {\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n gap: 12px;\n margin-right: 16px;\n}\n\n.c-text-field__validation-message {\n margin-top: 4px;\n}\n\n.c-text-field__message {\n @include caption;\n\n color: $color-gray-500;\n margin-bottom: 16px;\n}\n</style>\n","import { Mask, MaskInput, type MaskInputOptions, type MaskOptions, type MaskaDetail } from 'maska';\nimport { type Ref, computed, watch } from 'vue';\n\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\n\nconst toNumber = (value: number | string | null): number | null => {\n if (value === null || value === '') {\n return null;\n } else if (typeof value === 'number') {\n return value;\n } else {\n const parsed = parseInt(value, 10);\n return isNaN(parsed) ? null : parsed;\n }\n};\n\nexport function useInputMask(\n /** Element to be masked */\n input: Ref<HTMLInputElement | null>,\n /** Value passed into the input */\n value: Ref<string>,\n /**\n * Options for the mask.\n * @see https://beholdr.github.io/maska/v2/#/?id=mask-options\n */\n options: Ref<MaskInputOptions>\n): {\n mask: Ref<Mask>;\n maskedValue: Ref<string>;\n unmaskedValue: Ref<string>;\n} {\n const internalValue = useInternalValue(value);\n\n const maskOptions = computed<MaskInputOptions>((): MaskInputOptions => {\n const onMaska = options.value.onMaska;\n const onMaskaArray = Array.isArray(onMaska) ? onMaska : onMaska ? [onMaska] : [];\n return {\n ...options.value,\n onMaska: [\n (detail: MaskaDetail): void => {\n internalValue.value = detail.unmasked;\n },\n ...onMaskaArray,\n ],\n };\n });\n\n let maskInput: MaskInput | null = null;\n watch(input, (newInput) => {\n if (newInput) {\n maskInput = new MaskInput(newInput, maskOptions.value);\n } else {\n maskInput?.destroy();\n maskInput = null;\n }\n });\n\n const mask = computed(() => new Mask(maskOptions.value));\n const maskedValue = computed(() => {\n return mask.value ? mask.value.masked(internalValue.value) : value.value;\n });\n\n return {\n mask,\n maskedValue,\n unmaskedValue: internalValue,\n };\n}\n\nexport function useMaskedMinLength(\n minlength: Ref<number | string | null>,\n value: Ref<string>,\n options: Ref<MaskOptions>\n): Ref<number | null> {\n const maskTokens = computed(() => {\n // NOTE(mohan): '#', '@', '*' are the default tokens used by maska.\n return ['#', '@', '*', ...Object.keys(options.value.tokens ?? {})];\n });\n\n // NOTE(mohan): We want `minlength` to only include token characters\n // (e.g. '#' or '@') and ignore symbols like '-'. So, we iterate through\n // the mask to see how many characters are required to hit minlength tokens.\n const findMaskedMinLength = (mask: string, minlength: number): number => {\n const maskArray = mask.split('');\n const index = maskArray.findIndex((_, index) => {\n const tokensInSlice = maskArray\n .slice(0, index + 1)\n .filter((char) => maskTokens.value.includes(char));\n return tokensInSlice.length === minlength;\n });\n\n if (index === -1) {\n return mask.length;\n } else {\n // Convert index to length\n return index + 1;\n }\n };\n\n const maskedMinLength = computed(() => {\n const mask = options.value.mask;\n const minlengthValue = toNumber(minlength.value);\n\n if (!minlengthValue) {\n return null;\n } else if (!mask) {\n return minlengthValue;\n } else {\n if (typeof mask === 'function') {\n return findMaskedMinLength(mask(value.value), minlengthValue);\n } else if (typeof mask === 'string') {\n return findMaskedMinLength(mask, minlengthValue);\n } else if (Array.isArray(mask)) {\n return Math.min(...mask.map((m) => findMaskedMinLength(m, minlengthValue!)));\n } else {\n return minlengthValue;\n }\n }\n });\n\n return maskedMinLength;\n}\n\nexport function useMaskedMaxLength(\n maxlength: Ref<number | string | null>,\n options: Ref<MaskOptions>\n): Ref<number | null> {\n return computed(() => {\n const mask = options.value.mask;\n const maxlengthValue = toNumber(maxlength.value);\n if (!maxlengthValue) {\n return null;\n } else if (!mask) {\n return maxlengthValue;\n } else {\n return Math.max(maxlengthValue, mask.length);\n }\n });\n}\n","<template>\n <CTextField\n v-bind=\"$attrs\"\n :id=\"id\"\n ref=\"textField\"\n :data-test=\"dataTest\"\n :data-mask=\"mask\"\n :value=\"maskedValue\"\n :label=\"label\"\n :placeholder=\"placeholder\"\n :minlength=\"maskedMinLength !== null ? maskedMinLength : undefined\"\n :maxlength=\"maskedMaxLength !== null ? maskedMaxLength : undefined\"\n :rules=\"unmaskRules ? unmaskedRules : rules\"\n :counter=\"counter\"\n :counter-value=\"counterValue\"\n @keyup=\"$emit('keyup', $event)\"\n @keydown=\"$emit('keydown', $event)\"\n @keypress=\"$emit('keypress', $event)\"\n @blur=\"$emit('blur', $event)\"\n @focus=\"$emit('focus', $event)\"\n @change=\"$emit('change', $event)\"\n >\n <template #label>\n <slot name=\"label\" />\n </template>\n <template #prepend-inner>\n <slot name=\"prepend-inner\" />\n </template>\n <template #append>\n <slot name=\"append\" />\n </template>\n <template #message>\n <slot name=\"message\" />\n </template>\n </CTextField>\n</template>\n\n<script lang=\"ts\">\nimport type { MaskOptions, MaskTokens, MaskaDetail } from 'maska';\nimport { type PropType, computed, defineComponent, ref, toRefs } from 'vue';\n\nimport CTextField from '@propelinc/citrus-ui/src/components/CTextField.vue';\nimport {\n useInputMask,\n useMaskedMaxLength,\n useMaskedMinLength,\n} from '@propelinc/citrus-ui/src/composables/input-mask';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\n\nexport default defineComponent({\n name: 'CMaskedTextField',\n components: { CTextField },\n props: {\n counter: { type: Number as PropType<number | null>, default: null },\n dataTest: { type: String, default: 'masked-text-field' },\n id: { type: String, default: undefined },\n label: { type: String as PropType<string | null>, default: null },\n mask: {\n type: [String, Array, Function] as PropType<MaskOptions['mask'] | null>,\n required: true,\n },\n minlength: { type: [Number, String], default: null },\n maxlength: { type: [Number, String], default: null },\n placeholder: { type: String, default: undefined },\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n tokens: { type: Object as PropType<MaskTokens | null>, default: null },\n unmaskRules: { type: Boolean, default: true },\n value: { type: String, default: '' },\n },\n emits: ['keyup', 'keydown', 'keypress', 'input', 'focus', 'blur', 'change', 'input:masked'],\n setup(props, { emit, expose }) {\n const { minlength, maxlength, value } = toRefs(props);\n\n const textField = ref<typeof CTextField | null>(null);\n const input = computed(() => textField.value?.input);\n const maskOptions = computed<MaskOptions>(() => {\n return {\n mask: props.mask,\n tokens: {\n // NOTE (ej): For the EBT Card Number we accept a mask 'N' from the server\n // to hide all but the last 4 digits. e.g. XXXXXXXXXXXXXXX2114\n N: { pattern: /[0-9X]/ },\n ...props.tokens,\n },\n onMaska: (detail: MaskaDetail): void => {\n emit('input', detail.unmasked);\n emit('input:masked', detail.masked);\n },\n };\n });\n\n const { maskedValue, mask: inputMask, unmaskedValue } = useInputMask(input, value, maskOptions);\n const maskedMinLength = useMaskedMinLength(minlength, value, maskOptions);\n const maskedMaxLength = useMaskedMaxLength(maxlength, maskOptions);\n const counterValue = computed<number>(() => unmaskedValue.value.length);\n\n const unmaskedRules = computed<Rules<string>>(() => {\n return props.rules.map((rule) => {\n return (value): string | boolean => {\n const unmaskedValue = inputMask.value?.unmasked(value) ?? value;\n return rule(unmaskedValue);\n };\n });\n });\n\n expose({ input });\n\n return {\n counterValue,\n maskedMinLength,\n maskedMaxLength,\n maskedValue,\n textField,\n unmaskedRules,\n };\n },\n});\n</script>\n","export function parseDateFromString(dateString: string): Date | null {\n const date = new Date(dateString);\n if (isNaN(date.getTime())) {\n return null;\n }\n\n return date;\n}\n\nexport function calculateAge(dob: Date): number {\n // https://stackoverflow.com/a/7091965/814589\n const today = new Date();\n let age = today.getFullYear() - dob.getFullYear();\n const monthDiff = today.getMonth() - dob.getMonth();\n if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < dob.getDate())) {\n age--;\n }\n return age;\n}\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n","import { calculateAge, parseDateFromString } from './dates';\n\nexport type validator = (v: string) => boolean;\nexport type rule = (v: string) => boolean | string;\n\n// https://gist.github.com/ShirtlessKirk/2134376\nconst makeLuhnChecker = (arr: number[]): ((s: string) => boolean) => {\n return (ccNum: string): boolean => {\n let len = ccNum.length;\n let bit = 1;\n let sum = 0;\n let val = 0;\n while (len) {\n val = parseInt(ccNum.charAt(--len), 10);\n bit ^= 1;\n sum += bit ? arr[val] : val;\n }\n return sum > 0 && sum % 10 === 0;\n };\n};\n\nexport const isLuhnValid = makeLuhnChecker([0, 2, 4, 6, 8, 1, 3, 5, 7, 9]);\n\nexport function createMinLengthValidator(minLength: number): validator {\n return (value: string): boolean => {\n return value.length >= minLength;\n };\n}\n\nexport function ruleFromValidator(validator: validator, errorMessage: string): rule {\n return (v): string | boolean => (v && validator(v) ? true : errorMessage);\n}\n\nexport function minLengthRule(minLength: number, errorMessage: string): rule {\n return ruleFromValidator(createMinLengthValidator(minLength), errorMessage);\n}\n\nexport function isValidDateInAgeRange(\n minAge?: number | null | undefined,\n maxAge?: number | null | undefined\n): rule {\n return (v: string): boolean | string => {\n const dobDate = parseDateFromString(v);\n const age = dobDate ? calculateAge(dobDate) : null;\n const maxAgeTruthy = maxAge !== null && maxAge !== undefined;\n const minAgeTruthy = minAge !== null && minAge !== undefined;\n if (age === null || (maxAgeTruthy && age > maxAge) || (minAgeTruthy && age < minAge)) {\n return false;\n }\n\n return true;\n };\n}\n\n// Uses the same logic that is enforced by providers-identity.\nexport function isValidEmail(email: string): boolean {\n return /^[A-Z0-9]+([-.+_]+[A-Z0-9]+)*@([A-Z0-9]([A-Z0-9-]{0,61}[A-Z0-9])?\\.)+([A-Z]{2,6}|[A-Z0-9-]{2,})$/i.test(\n email\n );\n}\n","<template>\n <CMaskedTextField\n v-bind=\"$attrs\"\n :id=\"id\"\n :data-test=\"dataTest\"\n :value=\"formattedDate\"\n inputmode=\"numeric\"\n name=\"dob\"\n :label=\"computedLabel\"\n :placeholder=\"computedPlaceholder\"\n :mask=\"mask\"\n :minlength=\"dateLength\"\n :maxlength=\"dateLength\"\n :unmask-rules=\"false\"\n :rules=\"computedRules\"\n autocorrect=\"off\"\n autocapitalize=\"none\"\n @blur=\"$emit('blur', $event)\"\n @focus=\"$emit('focus', $event)\"\n @input=\"emitIsoDate($event)\"\n >\n <template #label>\n <slot name=\"label\" />\n </template>\n <template #message>\n <slot name=\"message\" />\n </template>\n </CMaskedTextField>\n</template>\n\n<script lang=\"ts\">\nimport dayjs from 'dayjs';\nimport { computed, defineComponent, ref, watch } from 'vue';\nimport type { PropType } from 'vue';\n\nimport CMaskedTextField from '@propelinc/citrus-ui/src/components/CMaskedTextField.vue';\nimport { useTranslation } from '@propelinc/citrus-ui/src/composables/i18n';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport {\n isValidDateInAgeRange,\n minLengthRule as createMinLengthRule,\n} from '@propelinc/shared-utils';\n\nexport default defineComponent({\n name: 'CDobField',\n components: { CMaskedTextField },\n props: {\n /** A custom data-test attribute for the input. */\n dataTest: { type: String, default: 'dob-field' },\n /** A unique id for the input. */\n id: { type: String as PropType<string | undefined>, default: undefined },\n /** The input's label text. */\n label: { type: String as PropType<string | null>, default: null },\n /** The input's placeholder. */\n placeholder: { type: String, default: '' },\n /** Additional validation rules. */\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n /** The value of the input, must have the format YYYY-MM-DD or YYYY. */\n value: { type: String, default: '' },\n /** Toggles the field's year only variant. Changes default label, placeholder, mask and validation\n * behavior */\n yearOnly: { type: Boolean, default: false },\n },\n emits: ['input', 'blur', 'focus', 'change'],\n setup(props, { emit }) {\n const { t } = useTranslation();\n\n const parseDate = (value: string): string => {\n if (props.yearOnly) {\n return value;\n }\n\n if (!value) {\n return '';\n }\n\n const [year, month, day] = value.split('-');\n if (!year || !month || !day) {\n console.warn(`Invalid date format. Expected YYYY-MM-DD, received: ${value}.`);\n return '';\n }\n\n return `${month}${day}${year}`;\n };\n\n const formattedDate = ref<string>(parseDate(props.value));\n\n let lastEmittedValue = props.value;\n\n watch(\n () => props.value,\n (newValue: string) => {\n if (newValue !== lastEmittedValue) {\n formattedDate.value = props.yearOnly ? newValue : parseDate(newValue);\n }\n }\n );\n\n const emitIsoDate = (value: string): void => {\n if (props.yearOnly) {\n emit('input', value);\n } else {\n const month = value.substring(0, 2);\n const day = value.substring(2, 4);\n const year = value.substring(4, 8);\n lastEmittedValue = year && month && day ? `${year}-${month}-${day}` : '';\n emit('input', lastEmittedValue);\n }\n };\n\n const defaultLabel = computed(() => {\n return props.yearOnly ? t('Year of birth') : t('Date of birth');\n });\n\n const defaultPlaceholder = computed(() => {\n return props.yearOnly ? t('YYYY') : t('MM/DD/YYYY');\n });\n\n const validationMessage = computed(() => {\n const inputLabel = props.yearOnly ? t('year of birth') : t('date of birth');\n return t('Please enter a valid {inputLabel}', { inputLabel });\n });\n\n const defaultRules = computed(() => {\n const minLengthRule = createMinLengthRule(props.yearOnly ? 4 : 10, validationMessage.value);\n const maxAgeRule = (v: string): boolean | string =>\n isValidDateInAgeRange(0, 125)(v) || validationMessage.value;\n const validDateRule = (v: string): boolean | string =>\n dayjs(v, 'MM/DD/YYYY', true).isValid() || validationMessage.value;\n\n return [minLengthRule, maxAgeRule, !props.yearOnly ? validDateRule : undefined].filter(\n Boolean\n ) as Rules<string>;\n });\n\n const computedLabel = computed(() => props.label || defaultLabel.value);\n const computedPlaceholder = computed(() => props.placeholder || defaultPlaceholder.value);\n const computedRules = computed(() => [...defaultRules.value, ...props.rules]);\n const dateLength = computed(() => (props.yearOnly ? 4 : 8));\n const mask = computed(() => (props.yearOnly ? '####' : '##/##/####'));\n\n return {\n computedLabel,\n computedPlaceholder,\n computedRules,\n emitIsoDate,\n formattedDate,\n dateLength,\n mask,\n };\n },\n});\n</script>\n","<template>\n <div\n class=\"c-select\"\n :class=\"{\n 'c-select--disabled': disabled,\n 'c-select--invalid': !isValidationValid,\n }\"\n :data-test=\"dataTest\"\n >\n <label\n :for=\"id\"\n class=\"c-select__label\"\n :class=\"{ 'c-select__label--hidden': hideLabel }\"\n :data-test=\"`${dataTest}-label`\"\n >\n <slot name=\"label\">{{ label }}</slot>\n </label>\n <div class=\"c-select__input-container\">\n <select\n :id=\"id\"\n ref=\"select\"\n class=\"c-select__input\"\n :class=\"{\n 'c-select__input--has-value': inputValue && !disabled,\n 'c-select__input--invalid': !isValidationValid,\n 'c-select__input--loading': loading,\n 'c-select__input--disabled': disabled,\n }\"\n :aria-label=\"ariaLabel || label\"\n :data-test=\"`${dataTest}-select`\"\n :value=\"inputValue\"\n :disabled=\"disabled\"\n :required=\"required\"\n @input=\"onInput\"\n @focus=\"$emit('focus', $event)\"\n @blur=\"$emit('blur', $event)\"\n @keydown=\"$emit('keydown', $event)\"\n v-on=\"validationListeners\"\n >\n <option v-if=\"placeholder\" value disabled selected>{{ placeholder }}</option>\n <option\n v-for=\"item in items\"\n :key=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n data-test=\"option\"\n >\n {{ item.label }}\n </option>\n </select>\n <CLoader v-if=\"loading\" small class=\"c-select__icon\" data-test=\"select-icon-loading\" />\n <FontAwesomeIcon v-else class=\"c-select__icon\" :icon=\"faChevronDown\" />\n </div>\n <CValidationMessage\n class=\"c-select__message\"\n :data-test=\"`${dataTest}-message`\"\n :validation-message=\"validationMessage\"\n :hide=\"hideDetails\"\n >\n <slot name=\"message\" />\n </CValidationMessage>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { faChevronDown } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport { type PropType, defineComponent, ref, toRefs } from 'vue';\n\nimport CLoader from '@propelinc/citrus-ui/src/components/CLoader.vue';\nimport CValidationMessage from '@propelinc/citrus-ui/src/components/CValidationMessage.vue';\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\nimport { useId } from '@propelinc/citrus-ui/src/composables/id';\nimport { useValidations } from '@propelinc/citrus-ui/src/composables/validations';\n\nexport default defineComponent({\n name: 'CSelect',\n components: { CLoader, CValidationMessage, FontAwesomeIcon },\n props: {\n /** The select's label, both visual and screenreader-only */\n label: { type: String, default: undefined },\n /** Overrides label for screenreader-only */\n ariaLabel: { type: String, default: undefined },\n /** Set the select's placeholder text */\n placeholder: { type: String, default: undefined },\n /** Assigns the select input's id */\n id: { type: String, default: undefined },\n /** List of options like `{ label: 'Yes', value: 'yes' }` */\n items: {\n type: Array as PropType<{ label: string; value: string; disabled?: boolean }[]>,\n default: () => [],\n },\n /** Controls whether the select is disabled */\n disabled: { type: Boolean, default: false },\n /** Controls the value of the select */\n value: { type: String, default: '' },\n /** Prefix for test selectors */\n dataTest: { type: String, default: 'select' },\n /** Hides the label and instead labels the field with `aria-label` */\n hideLabel: { type: Boolean, default: false },\n /**\n * Hides the validation message area. Defaults to `false` (show message area even\n * when valid), so validations transition in gracefully.\n *\n * If set to 'auto', the validation message area will only display if there is a message.\n */\n hideDetails: { type: [Boolean, String] as PropType<boolean | 'auto'>, default: false },\n /** Controls whether the select is loading */\n loading: { type: Boolean, default: false },\n /**\n * An array of functions that either return either true / false or a string\n * containing an error message. The component passes the input value as an\n * argument. The input field will enter an error state if a function does\n * not return true.\n * */\n rules: { type: Array as PropType<((value: string) => string | boolean)[]>, default: () => [] },\n /** If true, the select will be required */\n required: { type: Boolean, default: false },\n },\n emits: ['input', 'focus', 'blur', 'keydown'],\n setup(props, { emit, expose }) {\n const { id, value, rules, required } = toRefs(props);\n const idWithFallback = useId(id);\n const inputValue = useInternalValue(value, {\n onChange: (newValue) => emit('input', newValue),\n });\n const select = ref<HTMLSelectElement | null>(null);\n const {\n message: validationMessage,\n valid: isValidationValid,\n listeners: validationListeners,\n startValidating,\n clearValidations,\n } = useValidations({\n id: idWithFallback,\n field: select,\n value: inputValue,\n rules,\n required,\n validateOn: 'blur',\n });\n\n function onInput(event: Event): void {\n const target = event.target as HTMLSelectElement;\n inputValue.value = target.value;\n }\n\n expose({ startValidating, clearValidations });\n\n return {\n inputValue,\n validationListeners,\n validationMessage,\n isValidationValid,\n select,\n faChevronDown,\n\n onInput,\n };\n },\n});\n</script>\n\n<style scoped lang=\"scss\">\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/form-fields';\n\n.c-select {\n display: flex;\n flex-direction: column;\n\n &--disabled {\n color: $color-text-disabled;\n }\n}\n\n.c-select__label {\n @include body-emphasized;\n\n margin-bottom: 8px;\n transition: color $sl-field-transition-duration ease;\n\n &--hidden {\n @include sr-only;\n }\n}\n\n.c-select__input-container {\n align-items: center;\n display: flex;\n position: relative;\n}\n\n.c-select__icon {\n pointer-events: none;\n position: absolute;\n right: 16px;\n}\n\n.c-select__input {\n appearance: none;\n background-color: $color-white;\n border: $border-width solid $color-border;\n border-radius: $border-radius-next;\n color: $color-placeholder-text;\n cursor: pointer;\n flex-grow: 1;\n letter-spacing: $letter-spacing-extend-small;\n max-width: 100%;\n min-height: $button-size-large;\n outline: 0.5px solid transparent;\n padding: 0 36px 0 16px;\n text-overflow: ellipsis;\n transition:\n border-color ease 0.2s,\n outline-color ease 0.2s;\n\n &:focus {\n border-color: $color-black;\n }\n\n &--has-value {\n color: $color-black;\n }\n\n &--invalid {\n border-color: $color-black;\n outline-color: $color-black;\n }\n\n &[disabled] {\n background-color: $color-gray-100;\n }\n}\n\n.c-select__message {\n margin-top: 4px;\n}\n</style>\n","<template>\n <div :id=\"id\" class=\"c-dob-select\" :data-test=\"dataTest\">\n <slot name=\"label\">\n <label\n v-if=\"!hideLabel\"\n class=\"c-dob-select__label\"\n :for=\"`${id}-month`\"\n :data-test=\"`${dataTest}-label`\"\n >{{ computedLabel }}</label\n >\n </slot>\n <div class=\"c-dob-select__container\">\n <c-select\n :id=\"`${id}-month`\"\n class=\"c-dob-select__field\"\n hide-label\n hide-details\n :value=\"localMonth\"\n :data-test=\"`${dataTest}-month`\"\n :aria-label=\"$t('Month')\"\n :placeholder=\"$t('Month')\"\n :items=\"monthOptions\"\n :rules=\"monthRules\"\n :required=\"required\"\n :disabled=\"disabled\"\n @input=\"(localMonth = $event) && emitDate()\"\n @focus=\"$emit('focus')\"\n @blur=\"$emit('blur')\"\n />\n <c-select\n :id=\"`${id}-day`\"\n class=\"c-dob-select__field\"\n hide-label\n hide-details\n :value=\"localDay\"\n :aria-label=\"$t('Day')\"\n :placeholder=\"$t('Day')\"\n :data-test=\"`${dataTest}-day`\"\n :items=\"dayOptions\"\n :rules=\"dayRules\"\n :required=\"required\"\n :disabled=\"disabled\"\n @input=\"(localDay = $event) && emitDate()\"\n @focus=\"$emit('focus')\"\n @blur=\"$emit('blur')\"\n />\n <c-select\n :id=\"`${id}-year`\"\n class=\"c-dob-select__field\"\n hide-label\n hide-details\n :value=\"localYear\"\n :aria-label=\"$t('Year')\"\n :placeholder=\"$t('Year')\"\n :data-test=\"`${dataTest}-year`\"\n :items=\"yearOptions\"\n :rules=\"yearRules\"\n :required=\"required\"\n :disabled=\"disabled\"\n @input=\"(localYear = $event) && emitDate()\"\n @focus=\"$emit('focus')\"\n @blur=\"$emit('blur')\"\n />\n </div>\n <CValidationMessage\n class=\"c-dob-select__messages\"\n :data-test=\"`${dataTest}-messages`\"\n :validation-message=\"message\"\n :hide=\"hideDetails\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport dayjs from 'dayjs';\nimport { type PropType, computed, defineComponent, ref, watch } from 'vue';\n\nimport CSelect from '@propelinc/citrus-ui/src/components/CSelect.vue';\nimport CValidationMessage from '@propelinc/citrus-ui/src/components/CValidationMessage.vue';\nimport { useTranslation } from '@propelinc/citrus-ui/src/composables/i18n';\nimport {\n type Rules,\n useFormValidationSupport,\n} from '@propelinc/citrus-ui/src/composables/validations';\n\nexport default defineComponent({\n name: 'CDobSelect',\n components: { CSelect, CValidationMessage },\n props: {\n dataTest: { type: String, default: 'dob-select' },\n id: { type: String, default: undefined },\n label: { type: String as PropType<string | null>, default: null },\n required: { type: Boolean, default: false },\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n hideLabel: { type: Boolean, default: false },\n hideDetails: { type: Boolean, default: false },\n value: { type: String, default: '' },\n disabled: { type: Boolean, default: false },\n },\n emits: ['input', 'focus', 'blur'],\n setup(props, { emit }) {\n const { t } = useTranslation();\n\n const computedLabel = computed(() => props.label ?? t('Date of birth'));\n\n const localMonth = ref('');\n const localDay = ref('');\n const localYear = ref('');\n\n const hasError = ref(props.required && props.value === '');\n const messages = ref<string[]>([]);\n\n const localValue = computed(() => {\n if (localDay.value && localMonth.value && localYear.value) {\n return `${localYear.value}-${localMonth.value}-${localDay.value}`;\n }\n return '';\n });\n\n const monthRules = computed(() => {\n if (!props.required && !localMonth.value) {\n return [];\n }\n return [(): boolean => localMonth.value !== ''];\n });\n const dayRules = computed(() => {\n if (!props.required && !localDay.value) {\n return [];\n }\n return [(): boolean => localDay.value !== ''];\n });\n const yearRules = computed(() => {\n if (!props.required && !localYear.value) {\n return [];\n }\n return [(): boolean => localYear.value !== ''];\n });\n const message = computed(() => messages.value[0] ?? '');\n\n const monthOptions = Array.from({ length: 12 }, (_, i) => ({\n value: (i + 1).toString().padStart(2, '0'),\n label: dayjs().set('month', i).format('MMM'),\n }));\n\n const dayOptions = computed(() => {\n const year = Number(localYear.value) || 2000;\n const month = Number(localMonth.value) - 1 || 0;\n const daysInMonth = dayjs().year(year).month(month).daysInMonth();\n return Array.from({ length: daysInMonth }, (_, i) => {\n const day = (i + 1).toString();\n return { value: day.padStart(2, '0'), label: day };\n });\n });\n\n const currentYear = dayjs().year();\n const yearOptions = Array.from({ length: 120 }, (_, age) => {\n const year = (currentYear - age).toString();\n return { value: year, label: year };\n });\n\n const validationMessage = t('Please enter a valid {inputLabel}', {\n inputLabel: t('date of birth'),\n });\n\n const localRules = computed(() => {\n if (!props.required && !localValue.value) {\n return [];\n }\n const validDateRule = (v: string): boolean | string =>\n dayjs(v, 'YYYY-MM-DD', true).isValid() || validationMessage;\n return [validDateRule, ...props.rules];\n });\n\n const valid = computed(() => !hasError.value);\n\n const validate = (): boolean => {\n messages.value = localRules.value\n .map((validation) => {\n const validationResult = validation(localValue.value);\n return typeof validationResult === 'string' ? validationResult : '';\n })\n .filter((message) => message !== '');\n\n hasError.value = (props.required && localValue.value === '') || messages.value.length > 0;\n return !hasError.value;\n };\n\n const emitDate = (): void => {\n if (!localValue.value) {\n return;\n }\n\n if (!validate()) {\n // NOTE(ram): An invalid date can only be caused by the day being invalid.\n localDay.value = '';\n emit('input', '');\n return;\n }\n\n emit('input', localValue.value);\n };\n\n watch(\n () => props.value,\n (value) => {\n if (!value || value === localValue.value) {\n return;\n }\n\n const date = dayjs(value, 'YYYY-MM-DD', true);\n if (!date.isValid()) {\n console.error('Invalid date in CDobSelect', value);\n return;\n }\n\n localMonth.value = date.format('MM');\n localDay.value = date.format('DD');\n localYear.value = date.format('YYYY');\n },\n { immediate: true }\n );\n\n useFormValidationSupport({\n id: props.id,\n valid,\n validate,\n });\n\n return {\n localDay,\n localMonth,\n localYear,\n dayRules,\n monthRules,\n yearRules,\n dayOptions,\n monthOptions,\n yearOptions,\n\n computedLabel,\n hasError,\n messages,\n localValue,\n message,\n\n emitDate,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-dob-select__label {\n @include body-emphasized;\n\n display: inline-block;\n margin-bottom: 4px;\n}\n\n.c-dob-select__container {\n display: flex;\n gap: 12px;\n}\n\n.c-dob-select__field {\n flex: auto;\n}\n\n.c-dob-select__messages {\n margin-top: 4px;\n}\n</style>\n","<template>\n <CTextField\n v-bind=\"$attrs\"\n :id=\"id\"\n :value=\"value\"\n :data-test=\"dataTest\"\n type=\"email\"\n name=\"email\"\n :rules=\"[...defaultRules, ...rules]\"\n :label=\"label || $t('Email')\"\n :placeholder=\"placeholder || $t('example@email.com')\"\n @input=\"$emit('input', $event)\"\n @focus=\"$emit('focus', $event)\"\n @blur=\"$emit('blur', $event)\"\n @change=\"$emit('change', $event)\"\n >\n <template #label>\n <slot name=\"label\" />\n </template>\n <template #message>\n <slot name=\"message\" />\n </template>\n </CTextField>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, defineComponent } from 'vue';\n\nimport CTextField from '@propelinc/citrus-ui/src/components/CTextField.vue';\nimport { useTranslation } from '@propelinc/citrus-ui/src/composables/i18n';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport { isValidEmail } from '@propelinc/shared-utils';\n\nexport default defineComponent({\n name: 'CEmailField',\n components: { CTextField },\n props: {\n dataTest: { type: String, default: 'email-field' },\n id: { type: String, default: undefined },\n label: { type: String as PropType<string | null>, default: null },\n placeholder: { type: String as PropType<string | null>, default: null },\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n value: { type: String, default: '' },\n },\n emits: ['input', 'focus', 'blur', 'change'],\n setup() {\n const { t } = useTranslation();\n\n const defaultRules = [\n (v: string): string | boolean =>\n !v || isValidEmail(v)\n ? true\n : t('Please enter a valid {inputLabel}', { inputLabel: t('email') }),\n ];\n\n return {\n defaultRules,\n };\n },\n});\n</script>\n","import type { InjectionKey, Ref } from 'vue';\n\nexport const ANIMATIONS_DISABLED = Symbol('animations-disabled') as InjectionKey<Ref<boolean>>;\n","<template>\n <div\n data-test=\"expand-transition\"\n class=\"c-expand-transition\"\n :class=\"{ 'c-expand-transition--disabled': isDisabled }\"\n :style=\"{ height: isDisabled ? undefined : height }\"\n >\n <div ref=\"content\" class=\"c-expand-transition__content\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, inject, ref } from 'vue';\n\nimport { useResizeObserver } from '@propelinc/citrus-ui/src/composables/elements';\nimport { ANIMATIONS_DISABLED } from '@propelinc/citrus-ui/src/services/injections/animations';\n\nexport default defineComponent({\n name: 'CExpandTransition',\n props: { disabled: { type: Boolean, default: false } },\n setup(props) {\n const injectedDisabled = inject(ANIMATIONS_DISABLED, ref(false));\n const isDisabled = computed(() => props.disabled || injectedDisabled.value);\n const content = ref<HTMLElement | null>(null);\n const height = ref<string>('auto');\n\n useResizeObserver(content, ([entry]) => {\n height.value = `${entry.contentRect.height}px`;\n });\n\n return { content, height, isDisabled };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-expand-transition {\n overflow: hidden;\n transition: height 300ms ease;\n}\n\n.c-expand-transition__content {\n // Create a new block formatting context that includes outer margins of children so\n // CExpandTransition measures the height correctly.\n overflow: hidden;\n}\n\n.c-expand-transition--disabled {\n transition: none;\n}\n</style>\n","<template>\n <label class=\"c-file-input\" :class=\"{ 'c-file-input--disabled': disabled }\">\n <p :id=\"`${idWithFallback}-label`\" class=\"c-file-input__label\" :data-test=\"`${dataTest}-label`\">\n <slot name=\"label\">\n {{ label }}\n </slot>\n </p>\n <span :for=\"idWithFallback\" class=\"c-file-input__prompt\" :data-test=\"`${dataTest}-prompt`\">\n <slot name=\"prompt\">\n {{ prompt }}\n </slot>\n </span>\n <input\n :id=\"idWithFallback\"\n :data-test=\"`${dataTest}-input`\"\n class=\"c-file-input__input\"\n type=\"file\"\n :aria-describedby=\"`${idWithFallback}-files`\"\n :multiple=\"multiple\"\n :disabled=\"disabled\"\n :required=\"required\"\n @change=\"onFileChange\"\n />\n\n <div v-if=\"hasValue\" :id=\"`${idWithFallback}-files`\" class=\"c-file-input__files\">\n <span v-if=\"!Array.isArray(inputValue) && inputValue\" class=\"c-file-input__file\">{{\n inputValue.name\n }}</span>\n <template v-if=\"Array.isArray(inputValue)\">\n <span v-for=\"file in inputValue\" :key=\"file.name\" class=\"c-file-input__file\">\n {{ file.name }}\n </span></template\n >\n </div>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, computed, defineComponent, toRefs } from 'vue';\n\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\nimport { useId } from '@propelinc/citrus-ui/src/composables/id';\n\nexport default defineComponent({\n name: 'CFileInput',\n props: {\n /** The input's label, both visual and screenreader-only */\n label: { type: String, required: true },\n /** Placholder text to display before a user has selected any files */\n prompt: { type: String, required: true },\n /** The input's value. Either one file or an array of files */\n value: { type: [Array, Object, null] as PropType<File[] | File | null>, default: null },\n /** A unique id for the input */\n id: { type: String, required: true },\n /** Allow the user to upload multiple files */\n multiple: { type: Boolean, default: false },\n /** Controls whether the input is disabled */\n disabled: { type: Boolean, default: false },\n /** Controls whether the input is required */\n required: { type: Boolean, default: false },\n /** A custom data-test string applied to the form field, text field and hide icon */\n dataTest: { type: String, default: 'file-input' },\n },\n emits: ['input'],\n setup(props, { emit }) {\n const { id, value } = toRefs(props);\n const idWithFallback = useId(id);\n const inputValue = useInternalValue(value, {\n onChange: (newValue) => {\n emit('input', newValue);\n },\n });\n const hasValue = computed(() => {\n if (Array.isArray(inputValue.value)) {\n return inputValue.value.length > 0;\n }\n return !!inputValue.value;\n });\n\n function onFileChange(event: Event): void {\n const files = (event.target as HTMLInputElement).files;\n if (!files) {\n inputValue.value = null;\n } else {\n inputValue.value = props.multiple ? Array.from(files) : files[0];\n }\n }\n\n return {\n idWithFallback,\n inputValue,\n hasValue,\n onFileChange,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/a11y';\n@import '@propelinc/citrus-ui/src/styles/button';\n\n.c-file-input {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n position: relative;\n\n &:focus-within {\n .c-file-input__prompt {\n outline: var(--sl-focus-ring);\n outline-offset: var(--sl-focus-ring-offset);\n }\n }\n}\n\n.c-file-input--disabled {\n &:hover {\n .c-file-input__prompt {\n @include button-theme($color-gray-300, $color-gray-300, transparent);\n }\n }\n\n .c-file-input__label {\n color: $color-text-disabled;\n }\n\n .c-file-input__prompt {\n @include button-theme($color-gray-300, $color-gray-300, transparent);\n }\n\n .c-file-input__input {\n cursor: not-allowed;\n }\n}\n\n.c-file-input__label {\n @include body-emphasized;\n\n margin-bottom: var(--sl-spacing-3x-small);\n}\n\n.c-file-input__prompt {\n // NOTE(slanden): these styles are largely copied from sl-button defaults.\n @include button-theme-secondary;\n\n align-items: center;\n border-radius: var(--sl-input-border-radius-medium);\n border-style: solid;\n border-width: $border-width;\n display: inline-flex;\n font-family: var(--sl-input-font-family);\n font-weight: var(--sl-font-weight-semibold);\n height: $button-size-medium;\n justify-content: center;\n padding: 0 20px;\n transition: background-color 0.2s ease-in-out;\n}\n\n.c-file-input__input {\n cursor: pointer;\n height: 100%;\n inset: 0;\n opacity: 0;\n\n // NOTE(slanden): Rather than using the sr-only utility, we actually want to have\n // the file input take up the full space of the label. This allows us to support\n // default file input behavior, like drag-and-drop upload.\n position: absolute;\n width: 100%;\n}\n\n.c-file-input__files {\n display: flex;\n flex-direction: column;\n gap: var(--sl-spacing-3x-small);\n margin-top: var(--sl-spacing-2x-small);\n}\n\n.c-file-input__file {\n @include caption;\n\n word-break: break-word;\n}\n</style>\n","<template>\n <CButtonStack\n ref=\"footer\"\n data-test=\"fixed-page-footer\"\n :tag=\"tag\"\n large\n class=\"c-fixed-page-footer\"\n >\n <div class=\"c-fixed-page-footer__content\">\n <slot />\n </div>\n </CButtonStack>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, onBeforeUnmount, ref } from 'vue';\n\nimport CButtonStack from '@propelinc/citrus-ui/src/components/CButtonStack.vue';\nimport { useResizeObserver } from '@propelinc/citrus-ui/src/composables/elements';\n\nexport default defineComponent({\n name: 'CFixedPageFooter',\n components: { CButtonStack },\n props: {\n /** The HTML tag to render as. Avoid changing this if possible. */\n tag: { type: String, default: 'footer' },\n },\n emits: ['change:height'],\n setup(_, { emit }) {\n const footer = ref<InstanceType<typeof CButtonStack> | null>(null);\n const footerElement = computed(() => (footer.value?.$el as HTMLElement) ?? null);\n useResizeObserver(footerElement, ([entry]) => emit('change:height', entry.contentRect.height));\n onBeforeUnmount(() => emit('change:height', 0));\n\n return { footer };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n$gradient-height: 32px;\n\n.c-fixed-page-footer {\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n\n // This places the footer above any Swiper components in the body which have z-index 1.\n z-index: 1;\n\n &::before {\n // NOTE(mohan): We use rgba instead of `transparent` to avoid a bug in\n // Safari where the gradient starts as tranparent black and fades into a\n // gray.\n background: linear-gradient(\n to bottom,\n rgba(255, 255, 255, 0) 0,\n var(--fixed-page-footer-color, white) $gradient-height\n );\n content: '';\n inset: -$gradient-height 0 0;\n pointer-events: none;\n position: absolute;\n z-index: -1;\n }\n}\n\n// NOTE(mohan): ResizeObservers don't measure padding (at least not in all\n// browsers), so we have to add it to a child element.\n.c-fixed-page-footer__content {\n padding: 0 16px max(env(safe-area-inset-bottom, 0), 8px);\n}\n</style>\n","<template>\n <form ref=\"form\" :data-test=\"dataTest\" novalidate @submit.prevent=\"$emit('submit', $event)\">\n <slot />\n </form>\n</template>\n\n<script lang=\"ts\">\nimport scrollIntoViewIfNeeded from 'scroll-into-view-if-needed';\nimport { computed, defineComponent, onMounted, provide, ref, watch } from 'vue';\n\nimport { VALIDATIONS } from '@propelinc/citrus-ui/src/services/injections/forms';\nimport type { ValidationState } from '@propelinc/citrus-ui/src/types/CForm';\n\ninterface FormValidation {\n id: string;\n validate: () => boolean;\n valid: boolean;\n field?: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null;\n}\n\nexport default defineComponent({\n name: 'CForm',\n props: {\n dataTest: { type: String, default: 'form' },\n // eslint-disable-next-line vue/no-unused-properties\n value: { type: Boolean, default: false },\n },\n emits: ['submit', 'input'],\n setup(_, { expose, emit }) {\n const form = ref<HTMLFormElement | null>(null);\n const inputs = ref<Record<string, FormValidation>>({});\n\n provide(VALIDATIONS, {\n register: (input: ValidationState) => {\n // NOTE(ram): Vue collapses the ref to input.field automatically so we need to adjust types.\n inputs.value = { ...inputs.value, [input.id]: input as unknown as FormValidation };\n },\n unregister: (id: string) => {\n const filteredInputs = { ...inputs.value };\n delete filteredInputs[id];\n inputs.value = filteredInputs;\n },\n });\n\n const inputArray = computed(() => Object.values(inputs.value));\n const getInvalidInputs = (startValidating?: boolean): FormValidation[] => {\n return inputArray.value.filter((input) => {\n return startValidating ? !input.validate() : !input.valid;\n });\n };\n\n // NOTE(mohan): I would love for this to be a computed property, but Vue 2's\n // the reactivity system can't seem to track refs inside of refs, though it\n // should work in Vue 3.\n watch(getInvalidInputs, (newInvalidInputs, oldInvalidInputs) => {\n const newValid = newInvalidInputs.length === 0;\n const oldValid = oldInvalidInputs?.length === 0;\n if (newValid !== oldValid) {\n emit('input', newValid);\n }\n });\n onMounted(() => emit('input', getInvalidInputs().length === 0));\n\n const validate = (): boolean => {\n if (!form.value) {\n return false;\n }\n\n const invalidInputs = getInvalidInputs(true);\n const firstInvalidField = invalidInputs.find((input) => input.field)?.field;\n if (firstInvalidField) {\n scrollIntoViewIfNeeded(firstInvalidField, {\n behavior: 'smooth',\n block: 'center',\n scrollMode: 'if-needed',\n });\n }\n\n return invalidInputs.length === 0;\n };\n\n expose({ validate, inputs: inputArray });\n return { form };\n },\n});\n</script>\n","<template>\n <div class=\"c-label\" :data-test=\"dataTest\">\n <slot name=\"icon\">\n <FontAwesomeIcon v-if=\"icon\" data-test=\"label-icon\" :icon=\"icon\" size=\"xs\" />\n </slot>\n <div class=\"c-label__text\" data-test=\"label-text\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type { IconDefinition } from '@fortawesome/fontawesome-svg-core';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport type { PropType } from 'vue';\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n components: { FontAwesomeIcon },\n props: {\n /** Specifies the label's icon, overwritten if icon slot is used */\n icon: {\n type: [Array, String, Object] as PropType<string | string[] | IconDefinition>,\n default: null,\n },\n /** A custom data test string */\n dataTest: { type: String, default: 'label' },\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-label {\n align-items: center;\n background-color: $color-gray-100;\n border-radius: 4px;\n color: $color-text-secondary;\n display: inline-flex;\n font-size: $font-size-small;\n font-weight: $font-weight-semibold;\n gap: 4px;\n height: 24px;\n margin-bottom: 6px;\n padding: 0 12px;\n}\n\n.c-label:not(:last-child) {\n margin-right: 8px;\n}\n</style>\n","<template>\n <div class=\"c-list-item-content\" data-test=\"list-item-content\">\n <slot>\n <div\n v-if=\"title || titleSlotHasContent\"\n class=\"c-list-item-content__title\"\n data-test=\"list-item-title\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </div>\n <div\n v-if=\"label || labelSlotHasContent\"\n class=\"c-list-item-content__label\"\n data-test=\"list-item-label\"\n >\n <slot name=\"label\">{{ label }}</slot>\n </div>\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\n\nexport default defineComponent({\n name: 'CListItemContent',\n props: {\n title: { type: String, default: '' },\n label: { type: String, default: '' },\n },\n setup() {\n const titleSlotHasContent = useSlotHasContent('title');\n const labelSlotHasContent = useSlotHasContent('label');\n\n return { titleSlotHasContent, labelSlotHasContent };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-list-item-content {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.c-list-item-content__title {\n @include subheadline;\n\n align-items: center;\n display: flex;\n\n & + .c-list-item-content__label {\n margin-top: 2px;\n }\n}\n</style>\n","<template>\n <div\n data-test=\"squared-icon\"\n :data-icon=\"icon\"\n :data-color=\"cssColor\"\n class=\"c-squared-icon\"\n :class=\"{ 'c-squared-icon--white-icon': useWhiteIcon, 'c-squared-icon--large': large }\"\n :style=\"{ backgroundColor: cssColor }\"\n >\n <slot>\n <FontAwesomeIcon v-if=\"icon\" data-test=\"squared-icon-icon\" :icon=\"icon\" />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport { computed, defineComponent, onMounted } from 'vue';\n\nimport { useCssColor } from '@propelinc/citrus-ui/src/composables/colors';\nimport type { FaIconArray, FaPropType } from '@propelinc/citrus-ui/src/types/font-awesome';\n\nexport default defineComponent({\n components: { FontAwesomeIcon },\n props: {\n /** The Font Awesome icon to display */\n icon: { type: [String, Array, Object] as FaPropType, default: null },\n /** The background color */\n color: { type: String, default: 'gray-100' },\n /** Makes the icon and background larger */\n large: { type: Boolean, default: false },\n },\n setup(props) {\n onMounted(() => {\n const enableCheck = process.env.VUE_APP_DEBUG === 'yes' || process.env.NODE_ENV === 'test';\n if (enableCheck && Array.isArray(props.icon)) {\n const [prefix, iconName] = props.icon as FaIconArray;\n if (prefix === 'fal') {\n console.error(\n `We no longer use light Font Awesome icons. Please change ['${prefix}', '${iconName}'] to ['far', '${iconName}'].`\n );\n }\n }\n });\n\n const { cssColor } = useCssColor(() => props.color);\n\n const useWhiteIcon = computed(() => props.color === 'black');\n\n return { cssColor, useWhiteIcon };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n$squared-icon-size: 40px;\n$squared-icon-large-size: 56px;\n\n.c-squared-icon {\n align-items: center;\n border-radius: $border-radius;\n color: $color-text-primary;\n display: flex;\n font-size: $font-size-icon-medium;\n height: $squared-icon-size;\n justify-content: center;\n position: relative;\n width: $squared-icon-size;\n}\n\n.c-squared-icon--white-icon {\n color: $color-white;\n}\n\n.c-squared-icon--large {\n border-radius: $border-radius-next;\n font-size: $font-size-icon-large;\n height: $squared-icon-large-size;\n width: $squared-icon-large-size;\n}\n</style>\n","<template>\n <CSquaredIcon\n v-if=\"icon || iconSlotHasContent\"\n :icon=\"icon\"\n :color=\"iconColor\"\n class=\"c-list-item-icon\"\n >\n <slot name=\"icon\" />\n </CSquaredIcon>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nimport CSquaredIcon from '@propelinc/citrus-ui/src/components/CSquaredIcon.vue';\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\n\nexport default defineComponent({\n name: 'CListItemIcon',\n components: { CSquaredIcon },\n props: {\n icon: CSquaredIcon.props.icon,\n iconColor: CSquaredIcon.props.color,\n },\n setup() {\n const iconSlotHasContent = useSlotHasContent('icon');\n\n return { iconSlotHasContent };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-list-item-icon {\n flex: none;\n}\n</style>\n","<template>\n <component\n :is=\"tag\"\n v-bind=\"allAttrs\"\n class=\"c-list-item d-flex flex-col justify-center w-full\"\n :class=\"{ 'c-list-item--is-tappable': isTappable }\"\n :href=\"routerDestinationOrHref\"\n :target=\"target\"\n @click=\"navigate\"\n >\n <div\n class=\"d-flex flex-row gap-3 justify-between w-full p-4\"\n :class=\"{\n 'align-start': align === 'top',\n 'align-center': align !== 'top',\n }\"\n >\n <slot name=\"prepend\">\n <CListItemIcon v-if=\"icon || iconSlotHasContent\" :icon=\"icon\" :icon-color=\"iconColor\">\n <template #icon>\n <slot name=\"icon\" />\n </template>\n </CListItemIcon>\n </slot>\n\n <div class=\"flex-1 d-flex flex-row gap-3 justify-between align-center\">\n <CListItemContent :title=\"title\" :label=\"label\">\n <template v-for=\"slotName in ['title', 'label', 'default']\" #[slotName]>\n <slot :name=\"slotName\" />\n </template>\n </CListItemContent>\n\n <slot name=\"append\">\n <div\n v-if=\"renderActionSlot\"\n data-test=\"list-item-action\"\n class=\"c-list-item__append__action flex-shrink-0\"\n >\n <slot name=\"action\">\n <FontAwesomeIcon\n data-test=\"list-item-action-icon\"\n class=\"c-list-item__append__action-icon\"\n fixed-width\n :icon=\"actionIcon ? actionIcon : faChevronRight\"\n />\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport { faChevronRight } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport { type PropType, computed, defineComponent, mergeProps, toRefs } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nimport CListItemContent from '@propelinc/citrus-ui/src/components/CListItemContent.vue';\nimport CListItemIcon from '@propelinc/citrus-ui/src/components/CListItemIcon.vue';\nimport { useRouterLink } from '@propelinc/citrus-ui/src/composables/router';\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\nimport type { FaPropType } from '@propelinc/citrus-ui/src/types/font-awesome';\n\nexport default defineComponent({\n components: { FontAwesomeIcon, CListItemIcon, CListItemContent },\n props: {\n /** The Font Awesome icon to display */\n icon: { type: [String, Array, Object] as FaPropType, default: null },\n /** The icon to display on the right side for clickable items, defaulting to right arrow */\n actionIcon: { type: [String, Array, Object] as FaPropType, default: null },\n /** Color of the icon background */\n iconColor: { type: String, default: 'gray-100' },\n /** Emphasized text above body text. Overridden by the default slot. */\n title: { type: String, default: undefined },\n /** Plain body copy. Overridden by the default slot. */\n label: { type: String, default: undefined },\n /** Router location for links within the app */\n to: { type: [String, Object] as PropType<RouteLocationRaw>, default: undefined },\n /** HTML target attribute for links to outside the app */\n target: { type: String, default: undefined },\n /** Location for links to outside the app */\n href: { type: String, default: undefined },\n /** Changes alignment of icon and action icon */\n align: { type: String as PropType<'top' | 'center'>, default: 'center' },\n /** Overrides default behavior to display a chevron in the action slot */\n hideAction: { type: Boolean, default: false },\n },\n setup(props, { attrs }) {\n const { to } = toRefs(props);\n const { href: routerDestination, navigate } = useRouterLink(to);\n const routerDestinationOrHref = computed(() => routerDestination.value ?? props.href);\n\n const isLink = computed(() => !!routerDestinationOrHref.value);\n const isButton = computed(() => !!attrs.onClick);\n const isTappable = computed(() => isLink.value || isButton.value);\n\n const tag = computed(() => {\n if (isLink.value) {\n return 'a';\n } else if (isButton.value) {\n return 'button';\n } else {\n return 'div';\n }\n });\n const tagAttrs = computed(() => {\n if (isButton.value) {\n return { type: 'button' };\n }\n return {};\n });\n\n const actionSlotHasContent = useSlotHasContent('action');\n\n const renderActionSlot = computed(() => {\n if (props.hideAction) {\n return false;\n }\n\n return isTappable.value || actionSlotHasContent.value;\n });\n const iconSlotHasContent = useSlotHasContent('icon');\n\n const allAttrs = computed(() => mergeProps(attrs, tagAttrs.value));\n\n return {\n allAttrs,\n faChevronRight,\n iconSlotHasContent,\n isTappable,\n navigate,\n renderActionSlot,\n routerDestinationOrHref,\n tag,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/a11y';\n\n.c-list-item {\n background: transparent;\n color: $color-text-primary;\n min-height: 64px;\n outline: none;\n text-align: left;\n text-decoration: none;\n\n & + & {\n border-top: $border;\n }\n\n &:focus-visible {\n @include focus-ring;\n }\n}\n\n.c-list-item--is-tappable {\n appearance: none; // Needed to avoid browser default styles for buttons\n border: none; // Needed to avoid browser default styles for buttons\n cursor: pointer;\n}\n\n.c-list-item__append__action-icon {\n color: $color-text-secondary;\n font-size: $font-size-medium;\n}\n</style>\n","export default \"data:image/svg+xml,%3csvg%20width='30'%20height='37'%20viewBox='0%200%2030%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_911_9050)'%3e%3cpath%20d='M7.39438%200.692966C7.39438%200.692966%206.35052%201.4649%205.56982%202.23683C5.3242%202.44735%205.35052%202.66665%205.36806%202.98244C5.44701%204.04384%205.64876%206.40349%207.25403%208.14033C8.85052%209.87718%2010.9119%209.64033%2010.9119%209.64033L15.2979%208.67542L7.39438%200.692966Z'%20fill='black'%20stroke='black'%20stroke-width='0.964912'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.482422%2022.6316C0.482422%2029.6754%206.42979%2035.386%2013.7719%2035.386C21.114%2035.386%2027.0614%2029.6754%2027.0614%2022.6316C27.0614%2015.5877%2021.114%209.8772%2013.7719%209.8772C6.42979%209.8772%200.482422%2015.5877%200.482422%2022.6316ZM7.8947%2022.6316C7.8947%2025.9123%2010.6666%2028.5702%2014.0877%2028.5702C17.5087%2028.5702%2020.2807%2025.9123%2020.2807%2022.6316C20.2807%2019.3509%2017.5087%2016.693%2014.0877%2016.693C10.6666%2016.693%207.8947%2019.3509%207.8947%2022.6316Z'%20fill='black'%20stroke='black'%20stroke-width='0.964912'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.73633%2022.0965C2.73633%2029.4912%208.72755%2035.4824%2016.1223%2035.4824C23.517%2035.4824%2029.5083%2029.4912%2029.5083%2022.0965C29.5083%2014.7017%2023.517%208.71051%2016.1223%208.71051C8.72755%208.71051%202.73633%2014.7017%202.73633%2022.0965ZM9.88545%2022.0965C9.88545%2025.5438%2012.6749%2028.3333%2016.1223%2028.3333C19.5697%2028.3333%2022.3591%2025.5438%2022.3591%2022.0965C22.3591%2018.6491%2019.5697%2015.8596%2016.1223%2015.8596C12.6749%2015.8596%209.88545%2018.6491%209.88545%2022.0965Z'%20fill='%23FFC120'%20stroke='black'%20stroke-width='0.978516'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.88672%2013.1491C7.41303%2010.9912%209.76391%209.74562%2013.3078%209.00001'%20stroke='black'%20stroke-width='0.973684'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M9.53516%2034.7193C12.7808%2035.7193%2015.7281%2035.8597%2018.9211%2035.193'%20stroke='black'%20stroke-width='0.973684'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M15.2988%208.67545C15.4742%208.64036%2015.6321%208.54387%2015.7286%208.38598C16.4567%207.21054%2016.1672%204.71054%2014.6146%203.28948C12.869%201.7544%2011.5707%202.0965%208.44792%200.614046C7.6409%200.228081%206.99178%200.736853%207.11459%201.71054C7.23739%202.68422%208.04441%206.3772%2010.3339%207.91229C11.9655%209.00001%2014.4655%208.85966%2015.2988%208.68422V8.67545Z'%20fill='%238BC95A'%20stroke='black'%20stroke-width='0.978516'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_911_9050'%3e%3crect%20width='30'%20height='36.0877'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='120'%20height='38'%20viewBox='0%200%20120%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.3101%2022.5039H36.5387C36.383%2022.5039%2036.2563%2022.6306%2036.2563%2022.7863V29.808C36.2563%2030.018%2036.0862%2030.1881%2035.8763%2030.1881H32.2206C32.0107%2030.1881%2031.8406%2030.018%2031.8406%2029.808V8.18892C31.8406%207.98261%2032.0107%207.8125%2032.2206%207.8125H40.3101C44.5847%207.8125%2048.0594%2010.5488%2048.0594%2015.1419C48.0594%2019.735%2044.5847%2022.5039%2040.3101%2022.5039ZM36.2563%2018.2764C36.2563%2018.432%2036.383%2018.5587%2036.5387%2018.5587H40.1364C42.4275%2018.5587%2043.6437%2017.1109%2043.6437%2015.1383C43.6437%2013.1657%2042.4275%2011.7505%2040.1364%2011.7505H36.5387C36.383%2011.7505%2036.2563%2011.8772%2036.2563%2012.0328V18.2728V18.2764Z'%20fill='black'/%3e%3cpath%20d='M53.7021%2014.5594V15.3919C53.7021%2015.533%2053.8723%2015.5945%2053.9664%2015.4932C54.7771%2014.6064%2056.2937%2014.0454%2057.9116%2014.0454H58.9214C59.1313%2014.0454%2059.3015%2014.2155%2059.3015%2014.4255V17.7119C59.3015%2017.9219%2059.1313%2018.092%2058.9214%2018.092H57.879C55.1499%2018.092%2053.7021%2019.8438%2053.7021%2022.4064V29.8118C53.7021%2030.0218%2053.532%2030.1919%2053.3221%2030.1919H49.8329C49.623%2030.1919%2049.4529%2030.0218%2049.4529%2029.8118V14.5594C49.4529%2014.3495%2049.623%2014.1793%2049.8329%2014.1793H53.3221C53.532%2014.1793%2053.7021%2014.3495%2053.7021%2014.5594Z'%20fill='black'/%3e%3cpath%20d='M76.9102%2022.1999C76.9102%2027.0174%2073.1713%2030.6224%2068.2162%2030.6224C63.2611%2030.6224%2059.5222%2027.0174%2059.5222%2022.1999C59.5222%2017.3824%2063.2611%2013.7412%2068.2162%2013.7412C73.1713%2013.7412%2076.9102%2017.3462%2076.9102%2022.1999ZM63.7715%2022.1999C63.7715%2024.8639%2065.6898%2026.7134%2068.2198%2026.7134C70.7498%2026.7134%2072.6681%2024.8602%2072.6681%2022.1999C72.6681%2019.5396%2070.7462%2017.6502%2068.2198%2017.6502C65.6934%2017.6502%2063.7715%2019.5034%2063.7715%2022.1999Z'%20fill='black'/%3e%3cpath%20d='M87.5261%2030.6224C85.9046%2030.6224%2084.2505%2030.1193%2083.1538%2029.2181C83.0307%2029.1167%2082.8425%2029.2%2082.8425%2029.3629V36.6814C82.8425%2036.8914%2082.6724%2037.0615%2082.4625%2037.0615H78.9733C78.7634%2037.0615%2078.5933%2036.8914%2078.5933%2036.6814V14.5556C78.5933%2014.3457%2078.7634%2014.1756%2078.9733%2014.1756H82.4625C82.6724%2014.1756%2082.8425%2014.3457%2082.8425%2014.5556V15.0478C82.8425%2015.1781%2082.9909%2015.2469%2083.0886%2015.1637C84.1853%2014.2335%2085.8684%2013.7412%2087.5261%2013.7412C92.6803%2013.7412%2095.7134%2017.7842%2095.7134%2022.1637C95.7134%2026.5433%2092.6803%2030.6224%2087.5261%2030.6224ZM87.1895%2017.6502C84.931%2017.6502%2082.676%2019.1342%2082.676%2022.1637C82.676%2025.1932%2084.9346%2026.7134%2087.1895%2026.7134C89.7159%2026.7134%2091.4677%2024.625%2091.4677%2022.1637C91.4677%2019.7025%2089.7159%2017.6502%2087.1895%2017.6502Z'%20fill='black'/%3e%3cpath%20d='M112.989%2025.3344C113.264%2025.3344%20113.449%2025.6167%20113.337%2025.8664C111.983%2028.791%20108.917%2030.6224%20105.674%2030.6224C100.686%2030.6224%2097.0127%2027.0174%2097.0127%2022.1637C97.0127%2017.31%20100.549%2013.7412%20105.504%2013.7412C110.459%2013.7412%20113.829%2017.3824%20113.829%2022.0986C113.829%2022.5184%20113.829%2022.855%20113.796%2023.2351C113.778%2023.4305%20113.615%2023.5826%20113.42%2023.5826H101.801C101.609%2023.5826%20101.468%2023.7708%20101.53%2023.9518C102.091%2025.6601%20103.72%2026.717%20105.674%2026.717C106.955%2026.717%20108.114%2026.3515%20108.863%2025.4755C108.939%2025.3887%20109.044%2025.3344%20109.156%2025.3344H112.989ZM108.968%2020.4119C109.149%2020.4119%20109.286%2020.2418%20109.243%2020.0644C108.838%2018.4103%20107.332%2017.3788%20105.504%2017.3788C103.676%2017.3788%20102.033%2018.4393%20101.602%2020.0608C101.555%2020.2382%20101.696%2020.4119%20101.877%2020.4119H108.968Z'%20fill='black'/%3e%3cpath%20d='M120%208.18912V29.8082C120%2030.0182%20119.83%2030.1883%20119.62%2030.1883H116.131C115.921%2030.1883%20115.751%2030.0182%20115.751%2029.8082V8.18912C115.751%207.97919%20115.921%207.80908%20116.131%207.80908H119.62C119.83%207.80908%20120%207.97919%20120%208.18912Z'%20fill='black'/%3e%3cpath%20d='M13.725%207.37832C14.1268%206.19475%2013.7757%204.37054%2012.556%203.25212C11.6909%202.49203%2010.9561%202.26762%2010.0259%201.98531C9.3672%201.78623%208.6252%201.56182%207.61899%201.08405C7.17018%200.8705%206.71774%200.892218%206.37751%201.14196C6.34132%201.1673%206.30512%201.19988%206.27255%201.22884C6.08795%201.37%205.40025%201.89481%204.85009%202.43412C4.50262%202.74539%204.52796%203.1001%204.54606%203.3607V3.3969C4.61483%204.24023%204.77046%206.22008%206.14224%207.7113C6.5802%208.18545%207.05435%208.49312%207.50317%208.69219C6.46438%209.15186%205.49436%209.73821%204.49539%2010.4947C4.29993%2010.6395%204.10448%2010.7915%203.91989%2010.9507C3.86922%2010.9905%203.81854%2011.0304%203.76787%2011.0738C3.74615%2011.0919%203.72806%2011.11%203.71358%2011.1281C1.43693%2013.1441%200%2016.0904%200%2019.3696C0%2024.3102%203.26476%2028.5016%207.74929%2029.8987C7.77463%2029.9095%207.79634%2029.9204%207.8253%2029.9276C9.39615%2030.3873%2010.8946%2030.6153%2012.3967%2030.6153C13.5332%2030.6153%2014.6697%2030.485%2015.8352%2030.2244C15.8388%2030.2244%2015.8461%2030.2208%2015.8497%2030.2208C21.0581%2029.1024%2024.9707%2024.4622%2024.9707%2018.9244C24.9707%2012.6555%2019.9505%207.53757%2013.7214%207.37469L13.725%207.37832ZM12.7333%2023.5827C11.738%2023.4379%2010.815%2022.9782%2010.0911%2022.2544C9.2007%2021.364%208.71207%2020.184%208.71207%2018.9244C8.71207%2017.2341%209.60608%2015.7502%2010.9489%2014.9213C11.0539%2014.9141%2011.1625%2014.9068%2011.271%2014.9068C13.7323%2014.9068%2015.7338%2016.9084%2015.7338%2019.3696C15.7338%2021.3169%2014.4779%2022.9746%2012.7369%2023.5827H12.7333Z'%20fill='black'/%3e%3cpath%20d='M11.9405%203.93626C11.2347%203.31371%2010.6447%203.13636%209.75796%202.86852C9.10284%202.66945%208.28846%202.42332%207.22433%201.91659C7.14832%201.8804%207.07231%201.8623%207.0144%201.8623C6.97459%201.8623%206.94201%201.86954%206.9203%201.88763C6.86238%201.93107%206.80447%202.06499%206.83705%202.30026C6.95649%203.20875%207.60438%205.79666%209.15713%206.83183C10.2502%207.56297%2012.0418%207.50506%2012.6897%207.36752C12.7151%207.36028%2012.7295%207.34942%2012.7368%207.33856C13.3449%206.34682%2012.6861%204.62034%2011.9405%203.93626Z'%20fill='%238BC95A'/%3e%3cpath%20d='M13.4209%208.29395C7.55737%208.29395%202.79053%2013.0644%202.79053%2018.9243C2.79053%2021.7656%203.89809%2024.4332%205.90327%2026.442C7.91208%2028.4508%2010.5796%2029.5547%2013.4209%2029.5547C19.2845%2029.5547%2024.0513%2024.7843%2024.0513%2018.9243C24.0513%2013.0644%2019.2808%208.29395%2013.4209%208.29395ZM17.4023%2022.9058C16.3382%2023.9699%2014.9266%2024.5526%2013.4209%2024.5526C11.9188%2024.5526%2010.5036%2023.9663%209.4395%2022.9058C8.37537%2021.8453%207.79264%2020.43%207.79264%2018.9243C7.79264%2015.8224%2010.319%2013.2961%2013.4209%2013.2961C16.5228%2013.2961%2019.0492%2015.8224%2019.0492%2018.9243C19.0492%2020.4264%2018.4628%2021.8416%2017.4023%2022.9058Z'%20fill='%23FFC120'/%3e%3c/svg%3e\"","<template>\n <img :src=\"src\" :alt=\"$t('{appName}')\" />\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent } from 'vue';\n\nimport propelIcon from '@propelinc/citrus-ui/src/assets/logos/propel/icon.svg';\nimport propelLockup from '@propelinc/citrus-ui/src/assets/logos/propel/lockup.svg';\n\nexport default defineComponent({\n props: {\n /** Show just the orange icon */\n icon: { type: Boolean, default: false },\n },\n setup(props) {\n const src = computed(() => {\n return props.icon ? propelIcon : propelLockup;\n });\n return { src };\n },\n});\n</script>\n","// src/components/menu/menu.styles.ts\nimport { css } from \"lit\";\nvar menu_styles_default = css`\n :host {\n display: block;\n position: relative;\n background: var(--sl-panel-background-color);\n border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);\n border-radius: var(--sl-border-radius-medium);\n padding: var(--sl-spacing-x-small) 0;\n overflow: auto;\n overscroll-behavior: none;\n }\n\n ::slotted(sl-divider) {\n --spacing: var(--sl-spacing-x-small);\n }\n`;\n\nexport {\n menu_styles_default\n};\n","import {\n menu_styles_default\n} from \"./chunk.VVA35HTY.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/menu/menu.component.ts\nimport { html } from \"lit\";\nimport { query } from \"lit/decorators.js\";\nvar SlMenu = class extends ShoelaceElement {\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute(\"role\", \"menu\");\n }\n handleClick(event) {\n const menuItemTypes = [\"menuitem\", \"menuitemcheckbox\"];\n const target = event.composedPath().find((el) => {\n var _a;\n return menuItemTypes.includes(((_a = el == null ? void 0 : el.getAttribute) == null ? void 0 : _a.call(el, \"role\")) || \"\");\n });\n if (!target)\n return;\n const item = target;\n if (item.type === \"checkbox\") {\n item.checked = !item.checked;\n }\n this.emit(\"sl-select\", { detail: { item } });\n }\n handleKeyDown(event) {\n if (event.key === \"Enter\" || event.key === \" \") {\n const item = this.getCurrentItem();\n event.preventDefault();\n event.stopPropagation();\n item == null ? void 0 : item.click();\n } else if ([\"ArrowDown\", \"ArrowUp\", \"Home\", \"End\"].includes(event.key)) {\n const items = this.getAllItems();\n const activeItem = this.getCurrentItem();\n let index = activeItem ? items.indexOf(activeItem) : 0;\n if (items.length > 0) {\n event.preventDefault();\n event.stopPropagation();\n if (event.key === \"ArrowDown\") {\n index++;\n } else if (event.key === \"ArrowUp\") {\n index--;\n } else if (event.key === \"Home\") {\n index = 0;\n } else if (event.key === \"End\") {\n index = items.length - 1;\n }\n if (index < 0) {\n index = items.length - 1;\n }\n if (index > items.length - 1) {\n index = 0;\n }\n this.setCurrentItem(items[index]);\n items[index].focus();\n }\n }\n }\n handleMouseDown(event) {\n const target = event.target;\n if (this.isMenuItem(target)) {\n this.setCurrentItem(target);\n }\n }\n handleSlotChange() {\n const items = this.getAllItems();\n if (items.length > 0) {\n this.setCurrentItem(items[0]);\n }\n }\n isMenuItem(item) {\n var _a;\n return item.tagName.toLowerCase() === \"sl-menu-item\" || [\"menuitem\", \"menuitemcheckbox\", \"menuitemradio\"].includes((_a = item.getAttribute(\"role\")) != null ? _a : \"\");\n }\n /** @internal Gets all slotted menu items, ignoring dividers, headers, and other elements. */\n getAllItems() {\n return [...this.defaultSlot.assignedElements({ flatten: true })].filter((el) => {\n if (el.inert || !this.isMenuItem(el)) {\n return false;\n }\n return true;\n });\n }\n /**\n * @internal Gets the current menu item, which is the menu item that has `tabindex=\"0\"` within the roving tab index.\n * The menu item may or may not have focus, but for keyboard interaction purposes it's considered the \"active\" item.\n */\n getCurrentItem() {\n return this.getAllItems().find((i) => i.getAttribute(\"tabindex\") === \"0\");\n }\n /**\n * @internal Sets the current menu item to the specified element. This sets `tabindex=\"0\"` on the target element and\n * `tabindex=\"-1\"` to all other items. This method must be called prior to setting focus on a menu item.\n */\n setCurrentItem(item) {\n const items = this.getAllItems();\n items.forEach((i) => {\n i.setAttribute(\"tabindex\", i === item ? \"0\" : \"-1\");\n });\n }\n render() {\n return html`\n <slot\n @slotchange=${this.handleSlotChange}\n @click=${this.handleClick}\n @keydown=${this.handleKeyDown}\n @mousedown=${this.handleMouseDown}\n ></slot>\n `;\n }\n};\nSlMenu.styles = [component_styles_default, menu_styles_default];\n__decorateClass([\n query(\"slot\")\n], SlMenu.prototype, \"defaultSlot\", 2);\n\nexport {\n SlMenu\n};\n","import {\n SlMenu\n} from \"./chunk.F2NECMQL.js\";\n\n// src/components/menu/menu.ts\nvar menu_default = SlMenu;\nSlMenu.define(\"sl-menu\");\n\nexport {\n menu_default\n};\n","<template>\n <sl-menu class=\"c-menu pa-0 elevation-4\" @sl-select=\"$emit('select', $event.detail.item)\">\n <slot />\n </sl-menu>\n</template>\n\n<script lang=\"ts\">\nimport '@shoelace-style/shoelace/dist/components/menu/menu.js';\nimport { defineComponent } from 'vue';\nexport type { default as SlMenuItem } from '@shoelace-style/shoelace/dist/components/menu-item/menu-item.js';\n\nexport default defineComponent({\n name: 'CMenu',\n emits: ['select'],\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-menu {\n --sl-panel-border-width: $border-width;\n}\n</style>\n","// src/components/menu-item/menu-item.styles.ts\nimport { css } from \"lit\";\nvar menu_item_styles_default = css`\n :host {\n --submenu-offset: -2px;\n\n display: block;\n }\n\n :host([inert]) {\n display: none;\n }\n\n .menu-item {\n position: relative;\n display: flex;\n align-items: stretch;\n font-family: var(--sl-font-sans);\n font-size: var(--sl-font-size-medium);\n font-weight: var(--sl-font-weight-normal);\n line-height: var(--sl-line-height-normal);\n letter-spacing: var(--sl-letter-spacing-normal);\n color: var(--sl-color-neutral-700);\n padding: var(--sl-spacing-2x-small) var(--sl-spacing-2x-small);\n transition: var(--sl-transition-fast) fill;\n user-select: none;\n -webkit-user-select: none;\n white-space: nowrap;\n cursor: pointer;\n }\n\n .menu-item.menu-item--disabled {\n outline: none;\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .menu-item.menu-item--loading {\n outline: none;\n cursor: wait;\n }\n\n .menu-item.menu-item--loading *:not(sl-spinner) {\n opacity: 0.5;\n }\n\n .menu-item--loading sl-spinner {\n --indicator-color: currentColor;\n --track-width: 1px;\n position: absolute;\n font-size: 0.75em;\n top: calc(50% - 0.5em);\n left: 0.65rem;\n opacity: 1;\n }\n\n .menu-item .menu-item__label {\n flex: 1 1 auto;\n display: inline-block;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n .menu-item .menu-item__prefix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n\n .menu-item .menu-item__prefix::slotted(*) {\n margin-inline-end: var(--sl-spacing-x-small);\n }\n\n .menu-item .menu-item__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n\n .menu-item .menu-item__suffix::slotted(*) {\n margin-inline-start: var(--sl-spacing-x-small);\n }\n\n /* Safe triangle */\n .menu-item--submenu-expanded::after {\n content: '';\n position: fixed;\n z-index: calc(var(--sl-z-index-dropdown) - 1);\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n clip-path: polygon(\n var(--safe-triangle-cursor-x, 0) var(--safe-triangle-cursor-y, 0),\n var(--safe-triangle-submenu-start-x, 0) var(--safe-triangle-submenu-start-y, 0),\n var(--safe-triangle-submenu-end-x, 0) var(--safe-triangle-submenu-end-y, 0)\n );\n }\n\n :host(:focus-visible) {\n outline: none;\n }\n\n :host(:hover:not([aria-disabled='true'], :focus-visible)) .menu-item,\n .menu-item--submenu-expanded {\n background-color: var(--sl-color-neutral-100);\n color: var(--sl-color-neutral-1000);\n }\n\n :host(:focus-visible) .menu-item {\n outline: none;\n background-color: var(--sl-color-primary-600);\n color: var(--sl-color-neutral-0);\n opacity: 1;\n }\n\n .menu-item .menu-item__check,\n .menu-item .menu-item__chevron {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.5em;\n visibility: hidden;\n }\n\n .menu-item--checked .menu-item__check,\n .menu-item--has-submenu .menu-item__chevron {\n visibility: visible;\n }\n\n /* Add elevation and z-index to submenus */\n sl-popup::part(popup) {\n box-shadow: var(--sl-shadow-large);\n z-index: var(--sl-z-index-dropdown);\n margin-left: var(--submenu-offset);\n }\n\n .menu-item--rtl sl-popup::part(popup) {\n margin-left: calc(-1 * var(--submenu-offset));\n }\n\n @media (forced-colors: active) {\n :host(:hover:not([aria-disabled='true'])) .menu-item,\n :host(:focus-visible) .menu-item {\n outline: dashed 1px SelectedItem;\n outline-offset: -1px;\n }\n }\n`;\n\nexport {\n menu_item_styles_default\n};\n","import{isSingleExpression as i}from\"./directive-helpers.js\";import{Directive as t,PartType as e}from\"./directive.js\";export{directive}from\"./directive.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const s=(i,t)=>{const e=i._$AN;if(void 0===e)return!1;for(const i of e)i._$AO?.(t,!1),s(i,t);return!0},o=i=>{let t,e;do{if(void 0===(t=i._$AM))break;e=t._$AN,e.delete(i),i=t}while(0===e?.size)},r=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),c(t)}};function h(i){void 0!==this._$AN?(o(this),this._$AM=i,r(this)):this._$AM=i}function n(i,t=!1,e=0){const r=this._$AH,h=this._$AN;if(void 0!==h&&0!==h.size)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)s(r[i],!1),o(r[i]);else null!=r&&(s(r,!1),o(r));else s(this,i)}const c=i=>{i.type==e.CHILD&&(i._$AP??=n,i._$AQ??=h)};class f extends t{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),r(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(s(this,i),o(this))}setValue(t){if(i(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}export{f as AsyncDirective,t as Directive,e as PartType};\n//# sourceMappingURL=async-directive.js.map\n","import{nothing as t}from\"../lit-html.js\";import{AsyncDirective as i}from\"../async-directive.js\";import{directive as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=()=>new h;class h{}const o=new WeakMap,n=s(class extends i{render(i){return t}update(i,[s]){const e=s!==this.G;return e&&void 0!==this.G&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=s,this.ht=i.options?.host,this.rt(this.ct=i.element)),t}rt(t){if(this.isConnected||(t=void 0),\"function\"==typeof this.G){const i=this.ht??globalThis;let s=o.get(i);void 0===s&&(s=new WeakMap,o.set(i,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return\"function\"==typeof this.G?o.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});export{e as createRef,n as ref};\n//# sourceMappingURL=ref.js.map\n","// src/components/menu-item/submenu-controller.ts\nimport { createRef, ref } from \"lit/directives/ref.js\";\nimport { html } from \"lit\";\nvar SubmenuController = class {\n constructor(host, hasSlotController, localize) {\n this.popupRef = createRef();\n this.enableSubmenuTimer = -1;\n this.isConnected = false;\n this.isPopupConnected = false;\n this.skidding = 0;\n this.submenuOpenDelay = 100;\n // Set the safe triangle cursor position\n this.handleMouseMove = (event) => {\n this.host.style.setProperty(\"--safe-triangle-cursor-x\", `${event.clientX}px`);\n this.host.style.setProperty(\"--safe-triangle-cursor-y\", `${event.clientY}px`);\n };\n this.handleMouseOver = () => {\n if (this.hasSlotController.test(\"submenu\")) {\n this.enableSubmenu();\n }\n };\n // Focus on the first menu-item of a submenu.\n this.handleKeyDown = (event) => {\n switch (event.key) {\n case \"Escape\":\n case \"Tab\":\n this.disableSubmenu();\n break;\n case \"ArrowLeft\":\n if (event.target !== this.host) {\n event.preventDefault();\n event.stopPropagation();\n this.host.focus();\n this.disableSubmenu();\n }\n break;\n case \"ArrowRight\":\n case \"Enter\":\n case \" \":\n this.handleSubmenuEntry(event);\n break;\n default:\n break;\n }\n };\n this.handleClick = (event) => {\n var _a;\n if (event.target === this.host) {\n event.preventDefault();\n event.stopPropagation();\n } else if (event.target instanceof Element && (event.target.tagName === \"sl-menu-item\" || ((_a = event.target.role) == null ? void 0 : _a.startsWith(\"menuitem\")))) {\n this.disableSubmenu();\n }\n };\n // Close this submenu on focus outside of the parent or any descendants.\n this.handleFocusOut = (event) => {\n if (event.relatedTarget && event.relatedTarget instanceof Element && this.host.contains(event.relatedTarget)) {\n return;\n }\n this.disableSubmenu();\n };\n // Prevent the parent menu-item from getting focus on mouse movement on the submenu\n this.handlePopupMouseover = (event) => {\n event.stopPropagation();\n };\n // Set the safe triangle values for the submenu when the position changes\n this.handlePopupReposition = () => {\n const submenuSlot = this.host.renderRoot.querySelector(\"slot[name='submenu']\");\n const menu = submenuSlot == null ? void 0 : submenuSlot.assignedElements({ flatten: true }).filter((el) => el.localName === \"sl-menu\")[0];\n const isRtl = this.localize.dir() === \"rtl\";\n if (!menu) {\n return;\n }\n const { left, top, width, height } = menu.getBoundingClientRect();\n this.host.style.setProperty(\"--safe-triangle-submenu-start-x\", `${isRtl ? left + width : left}px`);\n this.host.style.setProperty(\"--safe-triangle-submenu-start-y\", `${top}px`);\n this.host.style.setProperty(\"--safe-triangle-submenu-end-x\", `${isRtl ? left + width : left}px`);\n this.host.style.setProperty(\"--safe-triangle-submenu-end-y\", `${top + height}px`);\n };\n (this.host = host).addController(this);\n this.hasSlotController = hasSlotController;\n this.localize = localize;\n }\n hostConnected() {\n if (this.hasSlotController.test(\"submenu\") && !this.host.disabled) {\n this.addListeners();\n }\n }\n hostDisconnected() {\n this.removeListeners();\n }\n hostUpdated() {\n if (this.hasSlotController.test(\"submenu\") && !this.host.disabled) {\n this.addListeners();\n this.updateSkidding();\n } else {\n this.removeListeners();\n }\n }\n addListeners() {\n if (!this.isConnected) {\n this.host.addEventListener(\"mousemove\", this.handleMouseMove);\n this.host.addEventListener(\"mouseover\", this.handleMouseOver);\n this.host.addEventListener(\"keydown\", this.handleKeyDown);\n this.host.addEventListener(\"click\", this.handleClick);\n this.host.addEventListener(\"focusout\", this.handleFocusOut);\n this.isConnected = true;\n }\n if (!this.isPopupConnected) {\n if (this.popupRef.value) {\n this.popupRef.value.addEventListener(\"mouseover\", this.handlePopupMouseover);\n this.popupRef.value.addEventListener(\"sl-reposition\", this.handlePopupReposition);\n this.isPopupConnected = true;\n }\n }\n }\n removeListeners() {\n if (this.isConnected) {\n this.host.removeEventListener(\"mousemove\", this.handleMouseMove);\n this.host.removeEventListener(\"mouseover\", this.handleMouseOver);\n this.host.removeEventListener(\"keydown\", this.handleKeyDown);\n this.host.removeEventListener(\"click\", this.handleClick);\n this.host.removeEventListener(\"focusout\", this.handleFocusOut);\n this.isConnected = false;\n }\n if (this.isPopupConnected) {\n if (this.popupRef.value) {\n this.popupRef.value.removeEventListener(\"mouseover\", this.handlePopupMouseover);\n this.popupRef.value.removeEventListener(\"sl-reposition\", this.handlePopupReposition);\n this.isPopupConnected = false;\n }\n }\n }\n handleSubmenuEntry(event) {\n const submenuSlot = this.host.renderRoot.querySelector(\"slot[name='submenu']\");\n if (!submenuSlot) {\n console.error(\"Cannot activate a submenu if no corresponding menuitem can be found.\", this);\n return;\n }\n let menuItems = null;\n for (const elt of submenuSlot.assignedElements()) {\n menuItems = elt.querySelectorAll(\"sl-menu-item, [role^='menuitem']\");\n if (menuItems.length !== 0) {\n break;\n }\n }\n if (!menuItems || menuItems.length === 0) {\n return;\n }\n menuItems[0].setAttribute(\"tabindex\", \"0\");\n for (let i = 1; i !== menuItems.length; ++i) {\n menuItems[i].setAttribute(\"tabindex\", \"-1\");\n }\n if (this.popupRef.value) {\n event.preventDefault();\n event.stopPropagation();\n if (this.popupRef.value.active) {\n if (menuItems[0] instanceof HTMLElement) {\n menuItems[0].focus();\n }\n } else {\n this.enableSubmenu(false);\n this.host.updateComplete.then(() => {\n if (menuItems[0] instanceof HTMLElement) {\n menuItems[0].focus();\n }\n });\n this.host.requestUpdate();\n }\n }\n }\n setSubmenuState(state) {\n if (this.popupRef.value) {\n if (this.popupRef.value.active !== state) {\n this.popupRef.value.active = state;\n this.host.requestUpdate();\n }\n }\n }\n // Shows the submenu. Supports disabling the opening delay, e.g. for keyboard events that want to set the focus to the\n // newly opened menu.\n enableSubmenu(delay = true) {\n if (delay) {\n window.clearTimeout(this.enableSubmenuTimer);\n this.enableSubmenuTimer = window.setTimeout(() => {\n this.setSubmenuState(true);\n }, this.submenuOpenDelay);\n } else {\n this.setSubmenuState(true);\n }\n }\n disableSubmenu() {\n window.clearTimeout(this.enableSubmenuTimer);\n this.setSubmenuState(false);\n }\n // Calculate the space the top of a menu takes-up, for aligning the popup menu-item with the activating element.\n updateSkidding() {\n var _a;\n if (!((_a = this.host.parentElement) == null ? void 0 : _a.computedStyleMap)) {\n return;\n }\n const styleMap = this.host.parentElement.computedStyleMap();\n const attrs = [\"padding-top\", \"border-top-width\", \"margin-top\"];\n const skidding = attrs.reduce((accumulator, attr) => {\n var _a2;\n const styleValue = (_a2 = styleMap.get(attr)) != null ? _a2 : new CSSUnitValue(0, \"px\");\n const unitValue = styleValue instanceof CSSUnitValue ? styleValue : new CSSUnitValue(0, \"px\");\n const pxValue = unitValue.to(\"px\");\n return accumulator - pxValue.value;\n }, 0);\n this.skidding = skidding;\n }\n isExpanded() {\n return this.popupRef.value ? this.popupRef.value.active : false;\n }\n renderSubmenu() {\n const isLtr = this.localize.dir() === \"ltr\";\n if (!this.isConnected) {\n return html` <slot name=\"submenu\" hidden></slot> `;\n }\n return html`\n <sl-popup\n ${ref(this.popupRef)}\n placement=${isLtr ? \"right-start\" : \"left-start\"}\n anchor=\"anchor\"\n flip\n flip-fallback-strategy=\"best-fit\"\n skidding=\"${this.skidding}\"\n strategy=\"fixed\"\n >\n <slot name=\"submenu\"></slot>\n </sl-popup>\n `;\n }\n};\n\nexport {\n SubmenuController\n};\n","// src/components/popup/popup.styles.ts\nimport { css } from \"lit\";\nvar popup_styles_default = css`\n :host {\n --arrow-color: var(--sl-color-neutral-1000);\n --arrow-size: 6px;\n\n /*\n * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant\n * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.\n */\n --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);\n --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));\n\n display: contents;\n }\n\n .popup {\n position: absolute;\n isolation: isolate;\n max-width: var(--auto-size-available-width, none);\n max-height: var(--auto-size-available-height, none);\n }\n\n .popup--fixed {\n position: fixed;\n }\n\n .popup:not(.popup--active) {\n display: none;\n }\n\n .popup__arrow {\n position: absolute;\n width: calc(var(--arrow-size-diagonal) * 2);\n height: calc(var(--arrow-size-diagonal) * 2);\n rotate: 45deg;\n background: var(--arrow-color);\n z-index: -1;\n }\n\n /* Hover bridge */\n .popup-hover-bridge:not(.popup-hover-bridge--visible) {\n display: none;\n }\n\n .popup-hover-bridge {\n position: fixed;\n z-index: calc(var(--sl-z-index-dropdown) - 1);\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n clip-path: polygon(\n var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),\n var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),\n var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0),\n var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)\n );\n }\n`;\n\nexport {\n popup_styles_default\n};\n","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nconst yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);\nfunction getSideAxis(placement) {\n return yAxisSides.has(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n x,\n y,\n width: rects.floating.width,\n height: rects.floating.height\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const initialSideAxis = getSideAxis(initialPlacement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n if (!ignoreCrossAxisOverflow ||\n // We leave the current main axis only if every placement on that axis\n // overflows the main axis.\n overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$filter2;\n const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n if (hasFallbackAxisSideDirection) {\n const currentSideAxis = getSideAxis(d.placement);\n return currentSideAxis === initialSideAxis ||\n // Create a bias to the `y` side axis due to horizontal\n // reading directions favoring greater width.\n currentSideAxis === 'y';\n }\n return true;\n }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = originSides.has(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: rawValue.mainAxis || 0,\n crossAxis: rawValue.crossAxis || 0,\n alignmentAxis: rawValue.alignmentAxis\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y,\n enabled: {\n [mainAxis]: checkMainAxis,\n [crossAxis]: checkCrossAxis\n }\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = originSides.has(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n var _state$middlewareData, _state$middlewareData2;\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n const maximumClippingWidth = width - overflow.left - overflow.right;\n const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {\n availableWidth = maximumClippingWidth;\n }\n if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {\n availableHeight = maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n","function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nconst invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);\n}\nconst tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);\nfunction isTableElement(element) {\n return tableElements.has(getNodeName(element));\n}\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction isTopLayer(element) {\n return topLayerSelectors.some(selector => {\n try {\n return element.matches(selector);\n } catch (_e) {\n return false;\n }\n });\n}\nconst transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];\nconst willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];\nconst containValues = ['paint', 'layout', 'strict', 'content'];\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nconst lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);\nfunction isLastTraversableNode(node) {\n return lastTraversableNodeNames.has(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n","import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle$1(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle$1(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n const windowScrollbarX = getWindowScrollBarX(html);\n // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the\n // visual width of the <html> but this is not considered in the size\n // of `html.clientWidth`.\n if (windowScrollbarX <= 0) {\n const doc = html.ownerDocument;\n const body = doc.body;\n const bodyStyles = getComputedStyle(body);\n const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {\n width -= clippingStableScrollbarWidth;\n }\n } else if (windowScrollbarX <= SCROLLBAR_MAX) {\n // If the <body> scrollbar is on the left, the width needs to be extended\n // by the scrollbar amount so there isn't extra space on the right.\n width += windowScrollbarX;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nconst absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle$1(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n function setLeftRTLScrollbarOffset() {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n setLeftRTLScrollbarOffset();\n }\n }\n if (isFixed && !isOffsetParentAnElement && documentElement) {\n setLeftRTLScrollbarOffset();\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (_e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n","function t(t){return r(t)}function e(t){return f(t,\"offsetTop\")}function n(t){return f(t,\"offsetLeft\")}function o(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function r(t){for(let e=t;e;e=o(e))if(e instanceof Element&&\"none\"===getComputedStyle(e).display)return null;for(let e=o(t);e;e=o(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if(\"contents\"!==t.display){if(\"static\"!==t.position||\"none\"!==t.filter)return e;if(\"BODY\"===e.tagName)return e}}return null}function f(t,e){let n=t[e],o=r(t);const f=function(t){const e=new Set;let n=t.getRootNode();for(;n;)e.add(n),n=n.parentNode?n.parentNode.getRootNode():null;return e}(t);for(;o&&!f.has(o.getRootNode());)n-=o[e],o=r(o);return n}export{n as offsetLeft,t as offsetParent,e as offsetTop};\n","import {\n popup_styles_default\n} from \"./chunk.3KSWVBQ5.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass,\n __spreadProps,\n __spreadValues\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/popup/popup.component.ts\nimport { arrow, autoUpdate, computePosition, flip, offset, platform, shift, size } from \"@floating-ui/dom\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { offsetParent } from \"composed-offset-position\";\nimport { property, query } from \"lit/decorators.js\";\nfunction isVirtualElement(e) {\n return e !== null && typeof e === \"object\" && \"getBoundingClientRect\" in e && (\"contextElement\" in e ? e instanceof Element : true);\n}\nvar SlPopup = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.active = false;\n this.placement = \"top\";\n this.strategy = \"absolute\";\n this.distance = 0;\n this.skidding = 0;\n this.arrow = false;\n this.arrowPlacement = \"anchor\";\n this.arrowPadding = 10;\n this.flip = false;\n this.flipFallbackPlacements = \"\";\n this.flipFallbackStrategy = \"best-fit\";\n this.flipPadding = 0;\n this.shift = false;\n this.shiftPadding = 0;\n this.autoSizePadding = 0;\n this.hoverBridge = false;\n this.updateHoverBridge = () => {\n if (this.hoverBridge && this.anchorEl) {\n const anchorRect = this.anchorEl.getBoundingClientRect();\n const popupRect = this.popup.getBoundingClientRect();\n const isVertical = this.placement.includes(\"top\") || this.placement.includes(\"bottom\");\n let topLeftX = 0;\n let topLeftY = 0;\n let topRightX = 0;\n let topRightY = 0;\n let bottomLeftX = 0;\n let bottomLeftY = 0;\n let bottomRightX = 0;\n let bottomRightY = 0;\n if (isVertical) {\n if (anchorRect.top < popupRect.top) {\n topLeftX = anchorRect.left;\n topLeftY = anchorRect.bottom;\n topRightX = anchorRect.right;\n topRightY = anchorRect.bottom;\n bottomLeftX = popupRect.left;\n bottomLeftY = popupRect.top;\n bottomRightX = popupRect.right;\n bottomRightY = popupRect.top;\n } else {\n topLeftX = popupRect.left;\n topLeftY = popupRect.bottom;\n topRightX = popupRect.right;\n topRightY = popupRect.bottom;\n bottomLeftX = anchorRect.left;\n bottomLeftY = anchorRect.top;\n bottomRightX = anchorRect.right;\n bottomRightY = anchorRect.top;\n }\n } else {\n if (anchorRect.left < popupRect.left) {\n topLeftX = anchorRect.right;\n topLeftY = anchorRect.top;\n topRightX = popupRect.left;\n topRightY = popupRect.top;\n bottomLeftX = anchorRect.right;\n bottomLeftY = anchorRect.bottom;\n bottomRightX = popupRect.left;\n bottomRightY = popupRect.bottom;\n } else {\n topLeftX = popupRect.right;\n topLeftY = popupRect.top;\n topRightX = anchorRect.left;\n topRightY = anchorRect.top;\n bottomLeftX = popupRect.right;\n bottomLeftY = popupRect.bottom;\n bottomRightX = anchorRect.left;\n bottomRightY = anchorRect.bottom;\n }\n }\n this.style.setProperty(\"--hover-bridge-top-left-x\", `${topLeftX}px`);\n this.style.setProperty(\"--hover-bridge-top-left-y\", `${topLeftY}px`);\n this.style.setProperty(\"--hover-bridge-top-right-x\", `${topRightX}px`);\n this.style.setProperty(\"--hover-bridge-top-right-y\", `${topRightY}px`);\n this.style.setProperty(\"--hover-bridge-bottom-left-x\", `${bottomLeftX}px`);\n this.style.setProperty(\"--hover-bridge-bottom-left-y\", `${bottomLeftY}px`);\n this.style.setProperty(\"--hover-bridge-bottom-right-x\", `${bottomRightX}px`);\n this.style.setProperty(\"--hover-bridge-bottom-right-y\", `${bottomRightY}px`);\n }\n };\n }\n async connectedCallback() {\n super.connectedCallback();\n await this.updateComplete;\n this.start();\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n this.stop();\n }\n async updated(changedProps) {\n super.updated(changedProps);\n if (changedProps.has(\"active\")) {\n if (this.active) {\n this.start();\n } else {\n this.stop();\n }\n }\n if (changedProps.has(\"anchor\")) {\n this.handleAnchorChange();\n }\n if (this.active) {\n await this.updateComplete;\n this.reposition();\n }\n }\n async handleAnchorChange() {\n await this.stop();\n if (this.anchor && typeof this.anchor === \"string\") {\n const root = this.getRootNode();\n this.anchorEl = root.getElementById(this.anchor);\n } else if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {\n this.anchorEl = this.anchor;\n } else {\n this.anchorEl = this.querySelector('[slot=\"anchor\"]');\n }\n if (this.anchorEl instanceof HTMLSlotElement) {\n this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0];\n }\n if (this.anchorEl) {\n this.start();\n }\n }\n start() {\n if (!this.anchorEl) {\n return;\n }\n this.cleanup = autoUpdate(this.anchorEl, this.popup, () => {\n this.reposition();\n });\n }\n async stop() {\n return new Promise((resolve) => {\n if (this.cleanup) {\n this.cleanup();\n this.cleanup = void 0;\n this.removeAttribute(\"data-current-placement\");\n this.style.removeProperty(\"--auto-size-available-width\");\n this.style.removeProperty(\"--auto-size-available-height\");\n requestAnimationFrame(() => resolve());\n } else {\n resolve();\n }\n });\n }\n /** Forces the popup to recalculate and reposition itself. */\n reposition() {\n if (!this.active || !this.anchorEl) {\n return;\n }\n const middleware = [\n // The offset middleware goes first\n offset({ mainAxis: this.distance, crossAxis: this.skidding })\n ];\n if (this.sync) {\n middleware.push(\n size({\n apply: ({ rects }) => {\n const syncWidth = this.sync === \"width\" || this.sync === \"both\";\n const syncHeight = this.sync === \"height\" || this.sync === \"both\";\n this.popup.style.width = syncWidth ? `${rects.reference.width}px` : \"\";\n this.popup.style.height = syncHeight ? `${rects.reference.height}px` : \"\";\n }\n })\n );\n } else {\n this.popup.style.width = \"\";\n this.popup.style.height = \"\";\n }\n if (this.flip) {\n middleware.push(\n flip({\n boundary: this.flipBoundary,\n // @ts-expect-error - We're converting a string attribute to an array here\n fallbackPlacements: this.flipFallbackPlacements,\n fallbackStrategy: this.flipFallbackStrategy === \"best-fit\" ? \"bestFit\" : \"initialPlacement\",\n padding: this.flipPadding\n })\n );\n }\n if (this.shift) {\n middleware.push(\n shift({\n boundary: this.shiftBoundary,\n padding: this.shiftPadding\n })\n );\n }\n if (this.autoSize) {\n middleware.push(\n size({\n boundary: this.autoSizeBoundary,\n padding: this.autoSizePadding,\n apply: ({ availableWidth, availableHeight }) => {\n if (this.autoSize === \"vertical\" || this.autoSize === \"both\") {\n this.style.setProperty(\"--auto-size-available-height\", `${availableHeight}px`);\n } else {\n this.style.removeProperty(\"--auto-size-available-height\");\n }\n if (this.autoSize === \"horizontal\" || this.autoSize === \"both\") {\n this.style.setProperty(\"--auto-size-available-width\", `${availableWidth}px`);\n } else {\n this.style.removeProperty(\"--auto-size-available-width\");\n }\n }\n })\n );\n } else {\n this.style.removeProperty(\"--auto-size-available-width\");\n this.style.removeProperty(\"--auto-size-available-height\");\n }\n if (this.arrow) {\n middleware.push(\n arrow({\n element: this.arrowEl,\n padding: this.arrowPadding\n })\n );\n }\n const getOffsetParent = this.strategy === \"absolute\" ? (element) => platform.getOffsetParent(element, offsetParent) : platform.getOffsetParent;\n computePosition(this.anchorEl, this.popup, {\n placement: this.placement,\n middleware,\n strategy: this.strategy,\n platform: __spreadProps(__spreadValues({}, platform), {\n getOffsetParent\n })\n }).then(({ x, y, middlewareData, placement }) => {\n const isRtl = getComputedStyle(this).direction === \"rtl\";\n const staticSide = { top: \"bottom\", right: \"left\", bottom: \"top\", left: \"right\" }[placement.split(\"-\")[0]];\n this.setAttribute(\"data-current-placement\", placement);\n Object.assign(this.popup.style, {\n left: `${x}px`,\n top: `${y}px`\n });\n if (this.arrow) {\n const arrowX = middlewareData.arrow.x;\n const arrowY = middlewareData.arrow.y;\n let top = \"\";\n let right = \"\";\n let bottom = \"\";\n let left = \"\";\n if (this.arrowPlacement === \"start\") {\n const value = typeof arrowX === \"number\" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : \"\";\n top = typeof arrowY === \"number\" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : \"\";\n right = isRtl ? value : \"\";\n left = isRtl ? \"\" : value;\n } else if (this.arrowPlacement === \"end\") {\n const value = typeof arrowX === \"number\" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : \"\";\n right = isRtl ? \"\" : value;\n left = isRtl ? value : \"\";\n bottom = typeof arrowY === \"number\" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : \"\";\n } else if (this.arrowPlacement === \"center\") {\n left = typeof arrowX === \"number\" ? `calc(50% - var(--arrow-size-diagonal))` : \"\";\n top = typeof arrowY === \"number\" ? `calc(50% - var(--arrow-size-diagonal))` : \"\";\n } else {\n left = typeof arrowX === \"number\" ? `${arrowX}px` : \"\";\n top = typeof arrowY === \"number\" ? `${arrowY}px` : \"\";\n }\n Object.assign(this.arrowEl.style, {\n top,\n right,\n bottom,\n left,\n [staticSide]: \"calc(var(--arrow-size-diagonal) * -1)\"\n });\n }\n });\n requestAnimationFrame(() => this.updateHoverBridge());\n this.emit(\"sl-reposition\");\n }\n render() {\n return html`\n <slot name=\"anchor\" @slotchange=${this.handleAnchorChange}></slot>\n\n <span\n part=\"hover-bridge\"\n class=${classMap({\n \"popup-hover-bridge\": true,\n \"popup-hover-bridge--visible\": this.hoverBridge && this.active\n })}\n ></span>\n\n <div\n part=\"popup\"\n class=${classMap({\n popup: true,\n \"popup--active\": this.active,\n \"popup--fixed\": this.strategy === \"fixed\",\n \"popup--has-arrow\": this.arrow\n })}\n >\n <slot></slot>\n ${this.arrow ? html`<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>` : \"\"}\n </div>\n `;\n }\n};\nSlPopup.styles = [component_styles_default, popup_styles_default];\n__decorateClass([\n query(\".popup\")\n], SlPopup.prototype, \"popup\", 2);\n__decorateClass([\n query(\".popup__arrow\")\n], SlPopup.prototype, \"arrowEl\", 2);\n__decorateClass([\n property()\n], SlPopup.prototype, \"anchor\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlPopup.prototype, \"active\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlPopup.prototype, \"placement\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlPopup.prototype, \"strategy\", 2);\n__decorateClass([\n property({ type: Number })\n], SlPopup.prototype, \"distance\", 2);\n__decorateClass([\n property({ type: Number })\n], SlPopup.prototype, \"skidding\", 2);\n__decorateClass([\n property({ type: Boolean })\n], SlPopup.prototype, \"arrow\", 2);\n__decorateClass([\n property({ attribute: \"arrow-placement\" })\n], SlPopup.prototype, \"arrowPlacement\", 2);\n__decorateClass([\n property({ attribute: \"arrow-padding\", type: Number })\n], SlPopup.prototype, \"arrowPadding\", 2);\n__decorateClass([\n property({ type: Boolean })\n], SlPopup.prototype, \"flip\", 2);\n__decorateClass([\n property({\n attribute: \"flip-fallback-placements\",\n converter: {\n fromAttribute: (value) => {\n return value.split(\" \").map((p) => p.trim()).filter((p) => p !== \"\");\n },\n toAttribute: (value) => {\n return value.join(\" \");\n }\n }\n })\n], SlPopup.prototype, \"flipFallbackPlacements\", 2);\n__decorateClass([\n property({ attribute: \"flip-fallback-strategy\" })\n], SlPopup.prototype, \"flipFallbackStrategy\", 2);\n__decorateClass([\n property({ type: Object })\n], SlPopup.prototype, \"flipBoundary\", 2);\n__decorateClass([\n property({ attribute: \"flip-padding\", type: Number })\n], SlPopup.prototype, \"flipPadding\", 2);\n__decorateClass([\n property({ type: Boolean })\n], SlPopup.prototype, \"shift\", 2);\n__decorateClass([\n property({ type: Object })\n], SlPopup.prototype, \"shiftBoundary\", 2);\n__decorateClass([\n property({ attribute: \"shift-padding\", type: Number })\n], SlPopup.prototype, \"shiftPadding\", 2);\n__decorateClass([\n property({ attribute: \"auto-size\" })\n], SlPopup.prototype, \"autoSize\", 2);\n__decorateClass([\n property()\n], SlPopup.prototype, \"sync\", 2);\n__decorateClass([\n property({ type: Object })\n], SlPopup.prototype, \"autoSizeBoundary\", 2);\n__decorateClass([\n property({ attribute: \"auto-size-padding\", type: Number })\n], SlPopup.prototype, \"autoSizePadding\", 2);\n__decorateClass([\n property({ attribute: \"hover-bridge\", type: Boolean })\n], SlPopup.prototype, \"hoverBridge\", 2);\n\nexport {\n SlPopup\n};\n","import {\n menu_item_styles_default\n} from \"./chunk.KWZXGPBI.js\";\nimport {\n SubmenuController\n} from \"./chunk.2F4HXDFL.js\";\nimport {\n SlPopup\n} from \"./chunk.SUWKRDXP.js\";\nimport {\n SlSpinner\n} from \"./chunk.RADK4UXU.js\";\nimport {\n LocalizeController\n} from \"./chunk.WLV3FVBR.js\";\nimport {\n HasSlotController,\n getTextContent\n} from \"./chunk.NYIIDP5N.js\";\nimport {\n SlIcon\n} from \"./chunk.H33C3MRM.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/menu-item/menu-item.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { property, query } from \"lit/decorators.js\";\nvar SlMenuItem = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.type = \"normal\";\n this.checked = false;\n this.value = \"\";\n this.loading = false;\n this.disabled = false;\n this.localize = new LocalizeController(this);\n this.hasSlotController = new HasSlotController(this, \"submenu\");\n this.submenuController = new SubmenuController(this, this.hasSlotController, this.localize);\n this.handleHostClick = (event) => {\n if (this.disabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n this.handleMouseOver = (event) => {\n this.focus();\n event.stopPropagation();\n };\n }\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener(\"click\", this.handleHostClick);\n this.addEventListener(\"mouseover\", this.handleMouseOver);\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener(\"click\", this.handleHostClick);\n this.removeEventListener(\"mouseover\", this.handleMouseOver);\n }\n handleDefaultSlotChange() {\n const textLabel = this.getTextLabel();\n if (typeof this.cachedTextLabel === \"undefined\") {\n this.cachedTextLabel = textLabel;\n return;\n }\n if (textLabel !== this.cachedTextLabel) {\n this.cachedTextLabel = textLabel;\n this.emit(\"slotchange\", { bubbles: true, composed: false, cancelable: false });\n }\n }\n handleCheckedChange() {\n if (this.checked && this.type !== \"checkbox\") {\n this.checked = false;\n console.error('The checked attribute can only be used on menu items with type=\"checkbox\"', this);\n return;\n }\n if (this.type === \"checkbox\") {\n this.setAttribute(\"aria-checked\", this.checked ? \"true\" : \"false\");\n } else {\n this.removeAttribute(\"aria-checked\");\n }\n }\n handleDisabledChange() {\n this.setAttribute(\"aria-disabled\", this.disabled ? \"true\" : \"false\");\n }\n handleTypeChange() {\n if (this.type === \"checkbox\") {\n this.setAttribute(\"role\", \"menuitemcheckbox\");\n this.setAttribute(\"aria-checked\", this.checked ? \"true\" : \"false\");\n } else {\n this.setAttribute(\"role\", \"menuitem\");\n this.removeAttribute(\"aria-checked\");\n }\n }\n /** Returns a text label based on the contents of the menu item's default slot. */\n getTextLabel() {\n return getTextContent(this.defaultSlot);\n }\n isSubmenu() {\n return this.hasSlotController.test(\"submenu\");\n }\n render() {\n const isRtl = this.localize.dir() === \"rtl\";\n const isSubmenuExpanded = this.submenuController.isExpanded();\n return html`\n <div\n id=\"anchor\"\n part=\"base\"\n class=${classMap({\n \"menu-item\": true,\n \"menu-item--rtl\": isRtl,\n \"menu-item--checked\": this.checked,\n \"menu-item--disabled\": this.disabled,\n \"menu-item--loading\": this.loading,\n \"menu-item--has-submenu\": this.isSubmenu(),\n \"menu-item--submenu-expanded\": isSubmenuExpanded\n })}\n ?aria-haspopup=\"${this.isSubmenu()}\"\n ?aria-expanded=\"${isSubmenuExpanded ? true : false}\"\n >\n <span part=\"checked-icon\" class=\"menu-item__check\">\n <sl-icon name=\"check\" library=\"system\" aria-hidden=\"true\"></sl-icon>\n </span>\n\n <slot name=\"prefix\" part=\"prefix\" class=\"menu-item__prefix\"></slot>\n\n <slot part=\"label\" class=\"menu-item__label\" @slotchange=${this.handleDefaultSlotChange}></slot>\n\n <slot name=\"suffix\" part=\"suffix\" class=\"menu-item__suffix\"></slot>\n\n <span part=\"submenu-icon\" class=\"menu-item__chevron\">\n <sl-icon name=${isRtl ? \"chevron-left\" : \"chevron-right\"} library=\"system\" aria-hidden=\"true\"></sl-icon>\n </span>\n\n ${this.submenuController.renderSubmenu()}\n ${this.loading ? html` <sl-spinner part=\"spinner\" exportparts=\"base:spinner__base\"></sl-spinner> ` : \"\"}\n </div>\n `;\n }\n};\nSlMenuItem.styles = [component_styles_default, menu_item_styles_default];\nSlMenuItem.dependencies = {\n \"sl-icon\": SlIcon,\n \"sl-popup\": SlPopup,\n \"sl-spinner\": SlSpinner\n};\n__decorateClass([\n query(\"slot:not([name])\")\n], SlMenuItem.prototype, \"defaultSlot\", 2);\n__decorateClass([\n query(\".menu-item\")\n], SlMenuItem.prototype, \"menuItem\", 2);\n__decorateClass([\n property()\n], SlMenuItem.prototype, \"type\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlMenuItem.prototype, \"checked\", 2);\n__decorateClass([\n property()\n], SlMenuItem.prototype, \"value\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlMenuItem.prototype, \"loading\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlMenuItem.prototype, \"disabled\", 2);\n__decorateClass([\n watch(\"checked\")\n], SlMenuItem.prototype, \"handleCheckedChange\", 1);\n__decorateClass([\n watch(\"disabled\")\n], SlMenuItem.prototype, \"handleDisabledChange\", 1);\n__decorateClass([\n watch(\"type\")\n], SlMenuItem.prototype, \"handleTypeChange\", 1);\n\nexport {\n SlMenuItem\n};\n","import {\n SlMenuItem\n} from \"./chunk.CQPYPOEP.js\";\n\n// src/components/menu-item/menu-item.ts\nvar menu_item_default = SlMenuItem;\nSlMenuItem.define(\"sl-menu-item\");\n\nexport {\n menu_item_default\n};\n","<template>\n <sl-menu-item\n :type=\"checkable ? 'checkbox' : 'normal'\"\n :checked=\"checked\"\n class=\"menu-item\"\n :class=\"{ selectable }\"\n @click=\"onClick\"\n >\n <div slot=\"prefix\">\n <slot name=\"prepend-inner\">\n <template v-if=\"checkable\">\n <CCheckbox\n v-if=\"checkType === 'checkbox'\"\n :value=\"checked\"\n variant=\"minimal\"\n hide-details\n aria-hidden=\"true\"\n class=\"checkbox mr-3\"\n />\n <div v-else class=\"check-icon mr-3\">\n <FontAwesomeIcon v-if=\"checked\" :icon=\"faCheck\" />\n </div>\n </template>\n </slot>\n </div>\n <slot />\n </sl-menu-item>\n</template>\n\n<script lang=\"ts\">\nimport { faCheck } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport { type PropType, defineComponent } from 'vue';\n\nimport '@shoelace-style/shoelace/dist/components/menu-item/menu-item.js';\nimport CCheckbox from '@propelinc/citrus-ui/src/components/CCheckbox.vue';\n\nexport default defineComponent({\n name: 'CMenuItem',\n components: { CCheckbox, FontAwesomeIcon },\n props: {\n /** Controls whether the item has hover-state styles and responds to click events */\n selectable: { type: Boolean, default: true },\n /** Controls whether to enable and display a checked state */\n checkable: { type: Boolean },\n /** Reflects the item's checked state */\n checked: { type: Boolean },\n /** Controls what style of checking to apply, either a checkbox, or just a check icon */\n checkType: { type: String as PropType<'checkbox' | 'icon'>, default: 'checkbox' },\n },\n setup(props) {\n const onClick = (e: Event): void => {\n if (!props.selectable) {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n\n return { faCheck, onClick };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.menu-item {\n &::part(base) {\n @include body-emphasized;\n\n --sl-spacing-x-small: 12px;\n\n align-items: center;\n background-color: $color-white;\n color: $color-black;\n cursor: initial;\n padding: 12px 16px;\n }\n\n &.selectable::part(base):hover {\n background-color: var(--sl-color-neutral-100);\n color: var(--sl-color-neutral-1000);\n cursor: pointer;\n }\n\n &::part(checked-icon) {\n // Hide Shoelace's built-in checkmark, as it is not customizable and does not match our standard\n // checkmark icon.\n display: none;\n }\n\n &::part(submenu-icon) {\n display: none;\n }\n\n .checkbox {\n // We're using CCheckbox exclusively as a visual reflection of sl-menu-item's internal checked\n // state, so it should not capture any mouse events.\n pointer-events: none;\n }\n\n .check-icon {\n width: 14px;\n }\n}\n</style>\n","// src/components/menu-label/menu-label.styles.ts\nimport { css } from \"lit\";\nvar menu_label_styles_default = css`\n :host {\n display: block;\n }\n\n .menu-label {\n display: inline-block;\n font-family: var(--sl-font-sans);\n font-size: var(--sl-font-size-small);\n font-weight: var(--sl-font-weight-semibold);\n line-height: var(--sl-line-height-normal);\n letter-spacing: var(--sl-letter-spacing-normal);\n color: var(--sl-color-neutral-500);\n padding: var(--sl-spacing-2x-small) var(--sl-spacing-x-large);\n user-select: none;\n -webkit-user-select: none;\n }\n`;\n\nexport {\n menu_label_styles_default\n};\n","import {\n menu_label_styles_default\n} from \"./chunk.ORTZCIID.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\n\n// src/components/menu-label/menu-label.component.ts\nimport { html } from \"lit\";\nvar SlMenuLabel = class extends ShoelaceElement {\n render() {\n return html` <slot part=\"base\" class=\"menu-label\"></slot> `;\n }\n};\nSlMenuLabel.styles = [component_styles_default, menu_label_styles_default];\n\nexport {\n SlMenuLabel\n};\n","import {\n SlMenuLabel\n} from \"./chunk.APNS3BEQ.js\";\n\n// src/components/menu-label/menu-label.ts\nvar menu_label_default = SlMenuLabel;\nSlMenuLabel.define(\"sl-menu-label\");\n\nexport {\n menu_label_default\n};\n","<template>\n <sl-menu-label class=\"menu-label pt-3 px-4\">\n <slot />\n </sl-menu-label>\n</template>\n\n<script lang=\"ts\">\nimport '@shoelace-style/shoelace/dist/components/menu-label/menu-label.js';\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n name: 'CMenuLabel',\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.menu-label {\n &::part(base) {\n @include eyebrow;\n\n padding: 0;\n }\n}\n</style>\n","// src/components/dialog/dialog.styles.ts\nimport { css } from \"lit\";\nvar dialog_styles_default = css`\n :host {\n --width: 31rem;\n --header-spacing: var(--sl-spacing-large);\n --body-spacing: var(--sl-spacing-large);\n --footer-spacing: var(--sl-spacing-large);\n\n display: contents;\n }\n\n .dialog {\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: var(--sl-z-index-dialog);\n }\n\n .dialog__panel {\n display: flex;\n flex-direction: column;\n z-index: 2;\n width: var(--width);\n max-width: calc(100% - var(--sl-spacing-2x-large));\n max-height: calc(100% - var(--sl-spacing-2x-large));\n background-color: var(--sl-panel-background-color);\n border-radius: var(--sl-border-radius-medium);\n box-shadow: var(--sl-shadow-x-large);\n }\n\n .dialog__panel:focus {\n outline: none;\n }\n\n /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */\n @media screen and (max-width: 420px) {\n .dialog__panel {\n max-height: 80vh;\n }\n }\n\n .dialog--open .dialog__panel {\n display: flex;\n opacity: 1;\n }\n\n .dialog__header {\n flex: 0 0 auto;\n display: flex;\n }\n\n .dialog__title {\n flex: 1 1 auto;\n font: inherit;\n font-size: var(--sl-font-size-large);\n line-height: var(--sl-line-height-dense);\n padding: var(--header-spacing);\n margin: 0;\n }\n\n .dialog__header-actions {\n flex-shrink: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: end;\n gap: var(--sl-spacing-2x-small);\n padding: 0 var(--header-spacing);\n }\n\n .dialog__header-actions sl-icon-button,\n .dialog__header-actions ::slotted(sl-icon-button) {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--sl-font-size-medium);\n }\n\n .dialog__body {\n flex: 1 1 auto;\n display: block;\n padding: var(--body-spacing);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n }\n\n .dialog__footer {\n flex: 0 0 auto;\n text-align: right;\n padding: var(--footer-spacing);\n }\n\n .dialog__footer ::slotted(sl-button:not(:first-of-type)) {\n margin-inline-start: var(--sl-spacing-x-small);\n }\n\n .dialog:not(.dialog--has-footer) .dialog__footer {\n display: none;\n }\n\n .dialog__overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--sl-overlay-background-color);\n }\n\n @media (forced-colors: active) {\n .dialog__panel {\n border: solid 1px var(--sl-color-neutral-0);\n }\n }\n`;\n\nexport {\n dialog_styles_default\n};\n","import {\n Modal\n} from \"./chunk.ODFLWOL6.js\";\nimport {\n lockBodyScrolling,\n unlockBodyScrolling\n} from \"./chunk.BTENR4BI.js\";\nimport {\n dialog_styles_default\n} from \"./chunk.G5RKA5HF.js\";\nimport {\n SlIconButton\n} from \"./chunk.WQ4LAAP4.js\";\nimport {\n getAnimation,\n setDefaultAnimation\n} from \"./chunk.DHU6MIVB.js\";\nimport {\n waitForEvent\n} from \"./chunk.B4BZKR24.js\";\nimport {\n animateTo,\n stopAnimations\n} from \"./chunk.LHI6QEL2.js\";\nimport {\n LocalizeController\n} from \"./chunk.WLV3FVBR.js\";\nimport {\n HasSlotController\n} from \"./chunk.NYIIDP5N.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/dialog/dialog.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { property, query } from \"lit/decorators.js\";\nvar SlDialog = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.hasSlotController = new HasSlotController(this, \"footer\");\n this.localize = new LocalizeController(this);\n this.modal = new Modal(this);\n this.open = false;\n this.label = \"\";\n this.noHeader = false;\n this.handleDocumentKeyDown = (event) => {\n if (event.key === \"Escape\" && this.modal.isActive() && this.open) {\n event.stopPropagation();\n this.requestClose(\"keyboard\");\n }\n };\n }\n firstUpdated() {\n this.dialog.hidden = !this.open;\n if (this.open) {\n this.addOpenListeners();\n this.modal.activate();\n lockBodyScrolling(this);\n }\n }\n disconnectedCallback() {\n var _a;\n super.disconnectedCallback();\n this.modal.deactivate();\n unlockBodyScrolling(this);\n (_a = this.closeWatcher) == null ? void 0 : _a.destroy();\n }\n requestClose(source) {\n const slRequestClose = this.emit(\"sl-request-close\", {\n cancelable: true,\n detail: { source }\n });\n if (slRequestClose.defaultPrevented) {\n const animation = getAnimation(this, \"dialog.denyClose\", { dir: this.localize.dir() });\n animateTo(this.panel, animation.keyframes, animation.options);\n return;\n }\n this.hide();\n }\n addOpenListeners() {\n var _a;\n if (\"CloseWatcher\" in window) {\n (_a = this.closeWatcher) == null ? void 0 : _a.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => this.requestClose(\"keyboard\");\n } else {\n document.addEventListener(\"keydown\", this.handleDocumentKeyDown);\n }\n }\n removeOpenListeners() {\n var _a;\n (_a = this.closeWatcher) == null ? void 0 : _a.destroy();\n document.removeEventListener(\"keydown\", this.handleDocumentKeyDown);\n }\n async handleOpenChange() {\n if (this.open) {\n this.emit(\"sl-show\");\n this.addOpenListeners();\n this.originalTrigger = document.activeElement;\n this.modal.activate();\n lockBodyScrolling(this);\n const autoFocusTarget = this.querySelector(\"[autofocus]\");\n if (autoFocusTarget) {\n autoFocusTarget.removeAttribute(\"autofocus\");\n }\n await Promise.all([stopAnimations(this.dialog), stopAnimations(this.overlay)]);\n this.dialog.hidden = false;\n requestAnimationFrame(() => {\n const slInitialFocus = this.emit(\"sl-initial-focus\", { cancelable: true });\n if (!slInitialFocus.defaultPrevented) {\n if (autoFocusTarget) {\n autoFocusTarget.focus({ preventScroll: true });\n } else {\n this.panel.focus({ preventScroll: true });\n }\n }\n if (autoFocusTarget) {\n autoFocusTarget.setAttribute(\"autofocus\", \"\");\n }\n });\n const panelAnimation = getAnimation(this, \"dialog.show\", { dir: this.localize.dir() });\n const overlayAnimation = getAnimation(this, \"dialog.overlay.show\", { dir: this.localize.dir() });\n await Promise.all([\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options),\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options)\n ]);\n this.emit(\"sl-after-show\");\n } else {\n this.emit(\"sl-hide\");\n this.removeOpenListeners();\n this.modal.deactivate();\n await Promise.all([stopAnimations(this.dialog), stopAnimations(this.overlay)]);\n const panelAnimation = getAnimation(this, \"dialog.hide\", { dir: this.localize.dir() });\n const overlayAnimation = getAnimation(this, \"dialog.overlay.hide\", { dir: this.localize.dir() });\n await Promise.all([\n animateTo(this.overlay, overlayAnimation.keyframes, overlayAnimation.options).then(() => {\n this.overlay.hidden = true;\n }),\n animateTo(this.panel, panelAnimation.keyframes, panelAnimation.options).then(() => {\n this.panel.hidden = true;\n })\n ]);\n this.dialog.hidden = true;\n this.overlay.hidden = false;\n this.panel.hidden = false;\n unlockBodyScrolling(this);\n const trigger = this.originalTrigger;\n if (typeof (trigger == null ? void 0 : trigger.focus) === \"function\") {\n setTimeout(() => trigger.focus());\n }\n this.emit(\"sl-after-hide\");\n }\n }\n /** Shows the dialog. */\n async show() {\n if (this.open) {\n return void 0;\n }\n this.open = true;\n return waitForEvent(this, \"sl-after-show\");\n }\n /** Hides the dialog */\n async hide() {\n if (!this.open) {\n return void 0;\n }\n this.open = false;\n return waitForEvent(this, \"sl-after-hide\");\n }\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n dialog: true,\n \"dialog--open\": this.open,\n \"dialog--has-footer\": this.hasSlotController.test(\"footer\")\n })}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" @click=${() => this.requestClose(\"overlay\")} tabindex=\"-1\"></div>\n\n <div\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden=${this.open ? \"false\" : \"true\"}\n aria-label=${ifDefined(this.noHeader ? this.label : void 0)}\n aria-labelledby=${ifDefined(!this.noHeader ? \"title\" : void 0)}\n tabindex=\"-1\"\n >\n ${!this.noHeader ? html`\n <header part=\"header\" class=\"dialog__header\">\n <h2 part=\"title\" class=\"dialog__title\" id=\"title\">\n <slot name=\"label\"> ${this.label.length > 0 ? this.label : String.fromCharCode(65279)} </slot>\n </h2>\n <div part=\"header-actions\" class=\"dialog__header-actions\">\n <slot name=\"header-actions\"></slot>\n <sl-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"dialog__close\"\n name=\"x-lg\"\n label=${this.localize.term(\"close\")}\n library=\"system\"\n @click=\"${() => this.requestClose(\"close-button\")}\"\n ></sl-icon-button>\n </div>\n </header>\n ` : \"\"}\n ${\"\"}\n <div part=\"body\" class=\"dialog__body\" tabindex=\"-1\"><slot></slot></div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\"></slot>\n </footer>\n </div>\n </div>\n `;\n }\n};\nSlDialog.styles = [component_styles_default, dialog_styles_default];\nSlDialog.dependencies = {\n \"sl-icon-button\": SlIconButton\n};\n__decorateClass([\n query(\".dialog\")\n], SlDialog.prototype, \"dialog\", 2);\n__decorateClass([\n query(\".dialog__panel\")\n], SlDialog.prototype, \"panel\", 2);\n__decorateClass([\n query(\".dialog__overlay\")\n], SlDialog.prototype, \"overlay\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlDialog.prototype, \"open\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlDialog.prototype, \"label\", 2);\n__decorateClass([\n property({ attribute: \"no-header\", type: Boolean, reflect: true })\n], SlDialog.prototype, \"noHeader\", 2);\n__decorateClass([\n watch(\"open\", { waitUntilFirstUpdate: true })\n], SlDialog.prototype, \"handleOpenChange\", 1);\nsetDefaultAnimation(\"dialog.show\", {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"dialog.hide\", {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"dialog.denyClose\", {\n keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],\n options: { duration: 250 }\n});\nsetDefaultAnimation(\"dialog.overlay.show\", {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 }\n});\nsetDefaultAnimation(\"dialog.overlay.hide\", {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 }\n});\n\nexport {\n SlDialog\n};\n","import {\n SlDialog\n} from \"./chunk.UE77SM53.js\";\n\n// src/components/dialog/dialog.ts\nvar dialog_default = SlDialog;\nSlDialog.define(\"sl-dialog\");\n\nexport {\n dialog_default\n};\n","<template>\n <sl-dialog\n ref=\"modal\"\n :label=\"dialogLabel\"\n no-header\n :open=\"value\"\n class=\"c-modal\"\n :class=\"{ 'c-modal--fullscreen': fullscreen }\"\n :data-loading=\"loading || undefined\"\n :data-state=\"value ? 'open' : 'closed'\"\n :data-test=\"getDataTestAttr()\"\n @sl-hide=\"$emit('input', false)\"\n @sl-request-close=\"onRequestClose\"\n @sl-after-show=\"isVisible = true\"\n @sl-after-hide=\"isVisible = false\"\n >\n <CExpandTransition class=\"c-modal__wrapper\" :disabled=\"!enableExpandTransition\">\n <div v-if=\"!loading\" class=\"c-modal__body\">\n <div :data-test=\"getDataTestAttr('content')\" class=\"c-modal__content\">\n <h2 v-if=\"title\" class=\"c-modal__title\" :data-test=\"getDataTestAttr('title')\">\n {{ title }}\n </h2>\n <button\n v-if=\"dismissible\"\n class=\"c-modal__dismiss\"\n :data-test=\"getDataTestAttr('dismiss')\"\n @click=\"$emit('input', false)\"\n >\n {{ $t('Dismiss') }}\n </button>\n <slot />\n </div>\n <CButtonStack\n v-if=\"footerHasContent\"\n tag=\"footer\"\n class=\"c-modal__footer\"\n :large=\"fullscreen || undefined\"\n :data-test=\"getDataTestAttr('footer')\"\n >\n <slot name=\"footer\" />\n </CButtonStack>\n </div>\n <div v-else class=\"c-modal__loading\" :data-test=\"value ? `${dataTest}-loading` : null\">\n <div class=\"c-modal__loading__loader\"><CLoader /></div>\n <slot name=\"loading\">\n <div v-if=\"loadingMessage\" :data-test=\"value ? `${dataTest}-loading-message` : null\">\n {{ loadingMessage }}\n </div>\n </slot>\n </div>\n </CExpandTransition>\n </sl-dialog>\n</template>\n\n<script lang=\"ts\">\nimport type SlDialog from '@shoelace-style/shoelace/dist/components/dialog/dialog.js';\nimport '@shoelace-style/shoelace/dist/components/dialog/dialog.js';\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, ref } from 'vue';\n\nimport CButtonStack from '@propelinc/citrus-ui/src/components/CButtonStack.vue';\nimport CExpandTransition from '@propelinc/citrus-ui/src/components/CExpandTransition.vue';\nimport CLoader from '@propelinc/citrus-ui/src/components/CLoader.vue';\nimport { useShoelaceAnimation } from '@propelinc/citrus-ui/src/composables/animation';\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\n\nexport default defineComponent({\n name: 'CModal',\n components: { CButtonStack, CLoader, CExpandTransition },\n props: {\n /** Controls whether or not the modal is showing */\n value: { type: Boolean, default: false },\n /** The title of the modal */\n title: { type: String as PropType<string | null>, default: null },\n /** Shows loading state and sets loading message if string */\n loading: { type: [String, Boolean], default: false },\n /** Allows modal to be dismissed */\n dismissible: { type: Boolean, default: true },\n /** Prefix for test selectors */\n dataTest: { type: String, default: 'modal' },\n /** Toggles the open/close animation */\n transition: { type: Boolean, default: true },\n /** Controls whether the modal displays fullscreen */\n fullscreen: { type: Boolean, default: false },\n /** Aria label for the modal. This is required if title is hidden */\n ariaLabel: { type: String, default: '' },\n },\n emits: ['input'],\n setup(props) {\n const onRequestClose = (event: Event): void => {\n if (!props.dismissible) {\n event.preventDefault();\n }\n };\n\n const modal = ref<SlDialog | null>(null);\n const animation = computed<'default' | null>(() => (props.transition ? 'default' : null));\n useShoelaceAnimation(modal, 'dialog.show', animation);\n useShoelaceAnimation(modal, 'dialog.hide', animation);\n useShoelaceAnimation(modal, 'dialog.overlay.show', animation);\n useShoelaceAnimation(modal, 'dialog.overlay.hide', animation);\n\n const isVisible = ref(false);\n // NOTE(mohan): Don't do any expand transitions until the modal is fully\n // open.\n const enableExpandTransition = computed(() => !props.fullscreen && isVisible.value);\n\n const getDataTestAttr = (suffix?: string): string => {\n return suffix ? `${props.dataTest}-${suffix}` : props.dataTest;\n };\n\n const loadingMessage = computed(() => {\n return typeof props.loading === 'string' ? props.loading : null;\n });\n\n const dialogLabel = computed(() => {\n if (loadingMessage.value) {\n return loadingMessage.value;\n }\n\n return props.title || props.ariaLabel;\n });\n\n const footerHasContent = useSlotHasContent('footer');\n\n return {\n dialogLabel,\n loadingMessage,\n isVisible,\n enableExpandTransition,\n footerHasContent,\n onRequestClose,\n getDataTestAttr,\n modal,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/a11y';\n\n.c-modal {\n &::part(body) {\n padding: 24px 24px 16px;\n }\n\n :deep() {\n .c-card-section {\n padding: 0 !important;\n }\n\n .c-card-footer {\n padding: 24px 0 0;\n }\n\n // NOTE(slanden): This is a bit of a hack to ensure that the content of the modal\n // stays within the bounds of the page and scrolls rather than continuing on past\n // the bottom of the page and getting lost.\n .c-expand-transition--disabled .c-expand-transition__content {\n height: 100%;\n }\n }\n}\n\n.c-modal__title {\n @include large-headline;\n\n padding: 0 0 8px;\n}\n\n.c-modal__dismiss {\n @include sr-only;\n}\n\n.c-modal__body {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.c-modal__content {\n display: flex;\n flex: auto;\n flex-direction: column;\n max-height: 100%;\n}\n\n.c-modal__footer {\n flex: none;\n padding: 24px 0 0;\n}\n\n.c-modal__loading {\n padding: 32px 0 24px;\n text-align: center;\n}\n\n.c-modal__loading__loader {\n line-height: 1;\n margin-bottom: 8px;\n}\n\n.c-modal--fullscreen {\n &::part(panel) {\n border-radius: 0;\n height: 100%;\n max-height: none;\n max-width: none;\n width: 100%;\n }\n\n &::part(body) {\n padding: calc(env(safe-area-inset-top, 0) + 12px) 16px max(env(safe-area-inset-bottom, 0), 12px);\n }\n\n .c-modal__wrapper {\n height: 100%;\n }\n}\n</style>\n","<template>\n <CModal\n :value=\"value\"\n :loading=\"message || true\"\n :data-test=\"dataTest\"\n :dismissible=\"false\"\n @input=\"$emit('input', $event)\"\n >\n <template #loading>\n <slot name=\"loading\" />\n </template>\n </CModal>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { defineComponent } from 'vue';\n\nimport CModal from '@propelinc/citrus-ui/src/components/CModal.vue';\n\nexport default defineComponent({\n name: 'CModalLoading',\n components: { CModal },\n props: {\n /** Controls whether or not the modal is showing */\n value: { type: Boolean, default: false },\n /** Controls the message shown below the Modal Loading icon */\n message: { type: String as PropType<string | null>, default: null },\n /** Prefix for test selectors */\n dataTest: { type: String, default: 'loading-modal' },\n },\n emits: ['input'],\n});\n</script>\n","<template>\n <div\n data-test=\"notification\"\n class=\"c-notification\"\n :class=\"{\n 'c-notification--alert': alert,\n 'c-notification--warning': warning,\n }\"\n >\n <CIconButton\n v-if=\"dismissible\"\n data-test=\"notification-dismiss\"\n variant=\"tertiary\"\n class=\"c-notification__close-button\"\n :icon=\"farXmark\"\n :aria-label=\"$t('Dismiss')\"\n @click=\"$emit('dismiss')\"\n />\n <slot name=\"title\">\n <div v-if=\"title || titleIcon\" class=\"c-notification__title\" data-test=\"notification-title\">\n <font-awesome-icon\n v-if=\"titleIcon\"\n class=\"c-notification__title-icon\"\n data-test=\"notification-title-icon\"\n :icon=\"titleIcon\"\n />\n <div data-test=\"notification-title-text\" class=\"c-notification__title-text\">\n <strong>{{ title }}</strong>\n </div>\n </div>\n </slot>\n\n <div data-test=\"notification-body\" class=\"c-notification__text\">\n <slot />\n </div>\n\n <CButton\n v-if=\"hasButton\"\n data-test=\"notification-button\"\n class=\"c-notification__button\"\n :loading=\"buttonLoading\"\n :to=\"buttonTo\"\n :href=\"buttonHref\"\n :target=\"buttonTarget\"\n @click=\"$emit('click:button')\"\n >\n {{ buttonText }}\n </CButton>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { faXmark as farXmark } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport { computed, defineComponent } from 'vue';\n\nimport CButton from '@propelinc/citrus-ui/src/components/CButton/CButton.vue';\nimport CIconButton from '@propelinc/citrus-ui/src/components/CIconButton.vue';\n\nexport default defineComponent({\n components: { CButton, CIconButton, FontAwesomeIcon },\n props: {\n // TODO(mohan): Make this prop accessible.\n alert: { type: Boolean, default: false },\n warning: { type: Boolean, default: false },\n dismissible: { type: Boolean, default: false },\n title: { type: String, default: '' },\n titleIcon: { type: [String, Array, Object], default: undefined },\n buttonText: { type: String, default: undefined },\n buttonTo: { type: [Object, String], default: undefined },\n buttonHref: { type: String, default: undefined },\n buttonTarget: { type: String, default: undefined },\n buttonLoading: { type: Boolean, default: false },\n },\n emits: ['click:button', 'dismiss'],\n setup(props) {\n const hasButton = computed(() => !!props.buttonText);\n\n return { hasButton, farXmark };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-notification {\n background-color: $color-blue-100;\n border-radius: $border-radius-next;\n padding: 16px;\n position: relative;\n}\n\n.c-notification--alert {\n background-color: $color-red-100;\n}\n\n.c-notification--warning {\n background-color: $color-gold-100;\n}\n\n.c-notification__close-button {\n float: right;\n font-size: 14px;\n margin-right: -8px;\n margin-top: -8px;\n}\n\n.c-notification__title {\n align-items: center;\n display: flex;\n margin-bottom: 8px;\n}\n\n.c-notification__title-icon {\n margin-right: 8px;\n}\n\n.c-notification__title-text {\n flex: 1;\n}\n\n.c-notification__button {\n margin-top: 12px;\n}\n</style>\n","import { type Ref, type SetupContext, computed, ref } from 'vue';\n\nexport interface Field {\n input: HTMLInputElement | null;\n}\n\ninterface FocusableField {\n field: Ref<Field | null>;\n}\n\nexport function useFocusableField(expose: SetupContext['expose']): FocusableField {\n const field = ref<Field | null>(null);\n const input = computed(() => field.value?.input as HTMLInputElement);\n function focus(): void {\n input?.value.focus();\n }\n expose({ focus });\n return { field };\n}\n","<template>\n <CMaskedTextField\n v-bind=\"$attrs\"\n :id=\"id\"\n ref=\"field\"\n :value=\"value\"\n type=\"tel\"\n :label=\"label || $t('Phone number')\"\n mask=\"(###) ###-####\"\n :minlength=\"10\"\n :maxlength=\"10\"\n :placeholder=\"placeholder || '(555) 555-5555'\"\n :data-test=\"dataTest\"\n :rules=\"[...defaultRules, ...rules]\"\n autocorrect=\"off\"\n autocapitalize=\"none\"\n >\n <template #label>\n <slot name=\"label\" />\n </template>\n <template #message>\n <slot name=\"message\" />\n </template>\n </CMaskedTextField>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent } from 'vue';\nimport type { PropType } from 'vue';\n\nimport CMaskedTextField from '@propelinc/citrus-ui/src/components/CMaskedTextField.vue';\nimport { useFocusableField } from '@propelinc/citrus-ui/src/composables/fields';\nimport { useTranslation } from '@propelinc/citrus-ui/src/composables/i18n';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport { minLengthRule } from '@propelinc/shared-utils';\n\nexport default defineComponent({\n name: 'CPhoneField',\n components: { CMaskedTextField },\n props: {\n /** A custom data-test attribute for the input. */\n dataTest: { type: String, default: 'phone-field' },\n /** A unique id for the input. */\n id: { type: String as PropType<string | undefined>, default: undefined },\n /** The input's label. */\n label: { type: String as PropType<string | null>, default: null },\n /** The input's placeholder. */\n placeholder: { type: String, default: '' },\n /** Additional validation rules. */\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n /** The value of the input. */\n value: { type: String, default: '' },\n },\n setup(_, { expose }) {\n const { t } = useTranslation();\n\n const defaultRules = computed(() => {\n const errorMessage = t('Please enter a valid {inputLabel}', {\n inputLabel: t('phone number'),\n });\n return [minLengthRule(10, errorMessage)];\n });\n\n const { field } = useFocusableField(expose);\n\n return { defaultRules, field };\n },\n});\n</script>\n","import type { InjectionKey, Ref } from 'vue';\n\nexport const SELECTED_VALUE = Symbol('selected-value') as InjectionKey<Ref<string>>;\nexport const TOGGLE_VALUE = Symbol('toggle-value') as InjectionKey<\n (value: string | undefined) => void\n>;\nexport const ROLE = Symbol('role') as InjectionKey<Ref<string>>;\n","<template>\n <span\n v-bind=\"$attrs\"\n :aria-checked=\"ariaChecked\"\n :class=\"{ 'c-pill--active': isSelected }\"\n class=\"c-pill\"\n data-test=\"pill\"\n :role=\"role\"\n @click=\"onClick\"\n >\n <span class=\"c-pill-body\" data-test=\"pill-body\">\n <span v-if=\"icon || $slots.icon\" class=\"c-pill-icon\">\n <slot name=\"icon\">\n <FontAwesomeIcon v-if=\"icon\" data-test=\"pill-icon\" fixed-width :icon=\"icon\" />\n </slot>\n </span>\n\n <span class=\"c-pill-text\">\n <slot />\n </span>\n </span>\n </span>\n</template>\n\n<script lang=\"ts\">\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, inject } from 'vue';\n\nimport {\n ROLE,\n SELECTED_VALUE,\n TOGGLE_VALUE,\n} from '@propelinc/citrus-ui/src/services/injections/pills';\nimport type { FaPropType } from '@propelinc/citrus-ui/src/types/font-awesome';\n\ntype ToggleVariant = 'standalone' | 'group' | 'none';\n\nexport default defineComponent({\n components: { FontAwesomeIcon },\n props: {\n /** By default, this is a boolean that determines if the pill is selected or\n not. If in a pill group, this is a string that identifies this pill. */\n value: {\n type: [Boolean, String] as PropType<boolean | string | undefined>,\n default: undefined,\n },\n /** The icon to display. */\n icon: { type: [String, Array, Object] as FaPropType, default: undefined },\n },\n emits: ['click', 'input'],\n setup(props, { emit }) {\n const injectedRole = inject(ROLE, undefined);\n const injectedSelectedValue = inject(SELECTED_VALUE, undefined);\n const toggleValue = inject(TOGGLE_VALUE, undefined);\n\n const toggleVariant = computed<ToggleVariant>(() => {\n if (toggleValue) {\n return 'group';\n }\n\n if (props.value !== undefined) {\n return 'standalone';\n }\n\n return 'none';\n });\n\n const isSelected = computed(() => {\n if (toggleVariant.value === 'standalone') {\n // @ts-expect-error - \"Expression produces a union type that is too complex to represent\" error\n // unclear why this is occurring, ignoring for now\n return props.value;\n }\n\n if (injectedSelectedValue?.value) {\n return injectedSelectedValue.value === props.value;\n }\n\n return undefined;\n });\n\n const ariaChecked = computed((): 'true' | 'false' | undefined => {\n if (isSelected.value === undefined) {\n return undefined;\n }\n\n return isSelected.value ? 'true' : 'false';\n });\n\n const role = computed(() => {\n if (toggleVariant.value === 'standalone') {\n return 'radio';\n }\n\n if (toggleVariant.value === 'group') {\n return injectedRole?.value ?? undefined;\n }\n\n return undefined;\n });\n\n const onClick = (): void => {\n if (toggleVariant.value === 'standalone') {\n emit('input', !props.value);\n }\n\n if (toggleVariant.value === 'group' && toggleValue) {\n const nextValue = isSelected.value ? undefined : (props.value as string);\n toggleValue(nextValue);\n }\n\n emit('click');\n };\n\n return {\n ariaChecked,\n isSelected,\n onClick,\n role,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-pill {\n background-color: $color-white;\n border: $border-width solid $color-border;\n border-radius: $border-radius-next;\n color: $color-text-primary;\n display: inline-block;\n font-family: $font-family-polymath;\n height: $button-size-medium;\n padding-inline: 12px;\n}\n\n.c-pill--active {\n background-color: $color-black;\n border-color: $color-black;\n color: $color-white;\n}\n\n.c-pill-body {\n align-items: center;\n display: flex;\n gap: 8px;\n height: 100%;\n\n /**\n * Improves icon alignment\n */\n line-height: 1;\n white-space: nowrap;\n}\n\n.c-pill-icon {\n width: 16px;\n}\n</style>\n","<template>\n <div class=\"c-pill-group\" data-test=\"pill-group\">\n <fieldset class=\"c-pill-group__track\">\n <slot>\n <CPill\n v-for=\"option in options\"\n :key=\"option.value\"\n :value=\"option.value\"\n :icon=\"option.icon\"\n >\n {{ option.label }}\n </CPill>\n </slot>\n </fieldset>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, provide, ref } from 'vue';\n\nimport CPill from '@propelinc/citrus-ui/src/components/CPill.vue';\nimport {\n ROLE,\n SELECTED_VALUE,\n TOGGLE_VALUE,\n} from '@propelinc/citrus-ui/src/services/injections/pills';\nimport type { FaIcon } from '@propelinc/citrus-ui/src/types/font-awesome';\n\ninterface PillConfig {\n label: string;\n value: string;\n icon?: FaIcon;\n}\n\nexport default defineComponent({\n components: { CPill },\n props: {\n /** Specifies which pill is selected. */\n value: { type: String as PropType<string>, default: () => '' },\n /** A list of pills to display. This is overwritten by the default slot. */\n options: { type: Array as PropType<PillConfig[]>, default: () => [] },\n },\n emits: ['input'],\n setup(props, { emit }) {\n provide(ROLE, ref('radio'));\n provide(\n SELECTED_VALUE,\n computed(() => props.value)\n );\n provide(TOGGLE_VALUE, (value) => {\n emit('input', value);\n });\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-pill-group {\n overflow: scroll hidden;\n padding: 0 16px;\n}\n\n.c-pill-group__track {\n border: none;\n display: block;\n display: flex;\n flex-wrap: nowrap;\n gap: 8px;\n}\n</style>\n","import {\n SlPopup\n} from \"./chunk.SUWKRDXP.js\";\n\n// src/components/popup/popup.ts\nvar popup_default = SlPopup;\nSlPopup.define(\"sl-popup\");\n\nexport {\n popup_default\n};\n","<template>\n <sl-popup ref=\"popup\" :active=\"value\" distance=\"8\" class=\"c-popup\">\n <span slot=\"anchor\" class=\"anchor\">\n <slot />\n </span>\n <slot name=\"content\" />\n </sl-popup>\n</template>\n\n<script lang=\"ts\">\nimport { type SlPopup } from '@shoelace-style/shoelace';\nimport '@shoelace-style/shoelace/dist/components/popup/popup.js';\nimport { defineComponent, onMounted, onUnmounted, ref, watchEffect } from 'vue';\n\nexport default defineComponent({\n name: 'CPopup',\n props: {\n value: { type: Boolean, default: false },\n },\n emits: ['mouseleave', 'outside-click'],\n setup(props, { emit }) {\n const popup = ref<SlPopup | null>(null);\n\n const handleMouseLeave = (): void => {\n if (props.value) {\n emit('mouseleave');\n }\n };\n\n const handleOutsideClick = ({ target }: MouseEvent): void => {\n if (target instanceof HTMLElement && !popup.value?.contains(target)) {\n emit('outside-click');\n }\n };\n\n watchEffect(async () => {\n if (props.value) {\n document.addEventListener('click', handleOutsideClick);\n } else {\n document.removeEventListener('click', handleOutsideClick);\n }\n });\n\n onMounted(() => {\n popup.value?.addEventListener('mouseleave', handleMouseLeave);\n });\n\n onUnmounted(() => {\n document.removeEventListener('click', handleOutsideClick);\n popup.value?.removeEventListener('mouseleave', handleMouseLeave);\n });\n\n return { popup };\n },\n});\n</script>\n\n<style scoped>\n.c-popup::part(popup) {\n z-index: 1;\n}\n\n.anchor {\n height: fit-content;\n}\n</style>\n","// src/components/progress-bar/progress-bar.styles.ts\nimport { css } from \"lit\";\nvar progress_bar_styles_default = css`\n :host {\n --height: 1rem;\n --track-color: var(--sl-color-neutral-200);\n --indicator-color: var(--sl-color-primary-600);\n --label-color: var(--sl-color-neutral-0);\n\n display: block;\n }\n\n .progress-bar {\n position: relative;\n background-color: var(--track-color);\n height: var(--height);\n border-radius: var(--sl-border-radius-pill);\n box-shadow: inset var(--sl-shadow-small);\n overflow: hidden;\n }\n\n .progress-bar__indicator {\n height: 100%;\n font-family: var(--sl-font-sans);\n font-size: 12px;\n font-weight: var(--sl-font-weight-normal);\n background-color: var(--indicator-color);\n color: var(--label-color);\n text-align: center;\n line-height: var(--height);\n white-space: nowrap;\n overflow: hidden;\n transition:\n 400ms width,\n 400ms background-color;\n user-select: none;\n -webkit-user-select: none;\n }\n\n /* Indeterminate */\n .progress-bar--indeterminate .progress-bar__indicator {\n position: absolute;\n animation: indeterminate 2.5s infinite cubic-bezier(0.37, 0, 0.63, 1);\n }\n\n .progress-bar--indeterminate.progress-bar--rtl .progress-bar__indicator {\n animation-name: indeterminate-rtl;\n }\n\n @media (forced-colors: active) {\n .progress-bar {\n outline: solid 1px SelectedItem;\n background-color: var(--sl-color-neutral-0);\n }\n\n .progress-bar__indicator {\n outline: solid 1px SelectedItem;\n background-color: SelectedItem;\n }\n }\n\n @keyframes indeterminate {\n 0% {\n left: -50%;\n width: 50%;\n }\n 75%,\n 100% {\n left: 100%;\n width: 50%;\n }\n }\n\n @keyframes indeterminate-rtl {\n 0% {\n right: -50%;\n width: 50%;\n }\n 75%,\n 100% {\n right: 100%;\n width: 50%;\n }\n }\n`;\n\nexport {\n progress_bar_styles_default\n};\n","import{noChange as t}from\"../lit-html.js\";import{directive as e,Directive as r,PartType as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const n=\"important\",i=\" !\"+n,o=e(class extends r{constructor(t){if(super(t),t.type!==s.ATTRIBUTE||\"style\"!==t.name||t.strings?.length>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`},\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r=\"string\"==typeof e&&e.endsWith(i);t.includes(\"-\")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:\"\"):s[t]=e}}return t}});export{o as styleMap};\n//# sourceMappingURL=style-map.js.map\n","import {\n progress_bar_styles_default\n} from \"./chunk.GXC456DW.js\";\nimport {\n LocalizeController\n} from \"./chunk.WLV3FVBR.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/progress-bar/progress-bar.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { property } from \"lit/decorators.js\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nvar SlProgressBar = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.localize = new LocalizeController(this);\n this.value = 0;\n this.indeterminate = false;\n this.label = \"\";\n }\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n \"progress-bar\": true,\n \"progress-bar--indeterminate\": this.indeterminate,\n \"progress-bar--rtl\": this.localize.dir() === \"rtl\"\n })}\n role=\"progressbar\"\n title=${ifDefined(this.title)}\n aria-label=${this.label.length > 0 ? this.label : this.localize.term(\"progress\")}\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-valuenow=${this.indeterminate ? 0 : this.value}\n >\n <div part=\"indicator\" class=\"progress-bar__indicator\" style=${styleMap({ width: `${this.value}%` })}>\n ${!this.indeterminate ? html` <slot part=\"label\" class=\"progress-bar__label\"></slot> ` : \"\"}\n </div>\n </div>\n `;\n }\n};\nSlProgressBar.styles = [component_styles_default, progress_bar_styles_default];\n__decorateClass([\n property({ type: Number, reflect: true })\n], SlProgressBar.prototype, \"value\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlProgressBar.prototype, \"indeterminate\", 2);\n__decorateClass([\n property()\n], SlProgressBar.prototype, \"label\", 2);\n\nexport {\n SlProgressBar\n};\n","import {\n SlProgressBar\n} from \"./chunk.2S7DHWQZ.js\";\n\n// src/components/progress-bar/progress-bar.ts\nvar progress_bar_default = SlProgressBar;\nSlProgressBar.define(\"sl-progress-bar\");\n\nexport {\n progress_bar_default\n};\n","<template>\n <sl-progress-bar\n class=\"c-progress-linear\"\n :class=\"{ 'c-progress-linear--rounded': rounded }\"\n :data-test=\"dataTest\"\n :value=\"value\"\n :indeterminate=\"indeterminate || undefined\"\n :label=\"accessibleText || $t('Loading...')\"\n />\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport '@shoelace-style/shoelace/dist/components/progress-bar/progress-bar.js';\n\nexport default defineComponent({\n props: {\n /** Customizes screen reader only text alternative, should be translated */\n accessibleText: { type: String, default: undefined },\n /** Selector for testing */\n dataTest: { type: String, default: 'c-progress-linear' },\n /** Renders an indefinite loading state */\n indeterminate: { type: Boolean, default: false },\n /** Rounds the progress bar */\n rounded: { type: Boolean, default: true },\n /** The current progress from 0 to 100 */\n value: { type: [Number, String], default: 0 },\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n$progress-linear-height: 4px;\n\n.c-progress-linear {\n --height: #{$progress-linear-height};\n --indicator-color: #{$color-black};\n --track-color: #{$color-gray-200};\n\n &::part(base) {\n border-radius: 0;\n }\n}\n\n.c-progress-linear--rounded {\n &::part(base) {\n border-radius: calc(#{$progress-linear-height} / 2);\n }\n}\n</style>\n","<template>\n <span\n class=\"c-progress-ring\"\n :data-test=\"dataTest\"\n :aria-label=\"accessibleText || $t('Loading...')\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n :aria-valuemax=\"String(valueMax)\"\n :aria-valuenow=\"String(value)\"\n :style=\"{\n '--size': `${size}px`,\n '--indicator-color': cssColor,\n '--track-color': trackCssColor,\n '--track-width': `${trackWidth}px`,\n '--indicator-length': `${percentage}`,\n }\"\n >\n <svg class=\"c-progress-ring__svg\">\n <circle class=\"c-progress-ring__track\" />\n <circle class=\"c-progress-ring__indicator\" pathLength=\"100\" />\n </svg>\n <span class=\"c-progress-ring__label\">\n <slot />\n </span>\n </span>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, computed, defineComponent } from 'vue';\n\nimport type Colors from '@propelinc/citrus-ui/src/colors/colors';\nimport { type HexColor, isValidColor } from '@propelinc/citrus-ui/src/colors/colors';\nimport { useCssColor } from '@propelinc/citrus-ui/src/composables/colors';\n\nexport default defineComponent({\n props: {\n /** Customizes screen reader only text alternative, should be translated */\n accessibleText: { type: String, default: undefined },\n /** Selector for testing */\n dataTest: { type: String, default: 'c-progress-ring' },\n /** The current progress, from 0 to valueMax */\n value: { type: [Number, String], default: 0 },\n /** Total progress */\n valueMax: { type: [Number, String], default: 100 },\n /** The outer diameter of the progress ring, in px */\n size: { type: [Number, String], default: 44 },\n /** The width of the progress ring, in px */\n trackWidth: { type: [Number, String], default: 4 },\n /** Sets the indicator color */\n color: {\n type: String as PropType<HexColor | keyof typeof Colors>,\n default: 'blue-500',\n validator: isValidColor,\n },\n /** Sets the track color underneath the indicator */\n trackColor: {\n type: String as PropType<HexColor | keyof typeof Colors>,\n default: 'gray-200',\n validator: isValidColor,\n },\n },\n setup(props) {\n const { cssColor } = useCssColor(() => props.color);\n const { cssColor: trackCssColor } = useCssColor(() => props.trackColor);\n\n const percentage = computed(() => (100 * Number(props.value)) / Number(props.valueMax));\n\n return {\n percentage,\n cssColor,\n trackCssColor,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-progress-ring {\n align-items: center;\n display: inline-flex;\n flex-shrink: 0;\n font-size: var(--size);\n height: 1em;\n justify-content: center;\n position: relative;\n width: 1em;\n\n &__label {\n color: var(--indicator-color);\n font-size: $font-size-small;\n font-weight: $font-weight-bold;\n }\n\n &__svg {\n height: 100%;\n position: absolute;\n width: 100%;\n }\n\n &__indicator,\n &__track {\n cx: 0.5em;\n cy: 0.5em;\n fill: none;\n r: calc(0.5em - var(--track-width) / 2);\n stroke-width: var(--track-width);\n }\n\n &__indicator {\n stroke: var(--indicator-color);\n\n /* The empty gap equal to the path length 100 to make the rest of the circle empty. */\n stroke-dasharray: var(--indicator-length) 100;\n stroke-linecap: round;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: stroke-dasharray 0.2s;\n }\n\n &__track {\n stroke: var(--track-color);\n }\n}\n</style>\n","import type { InjectionKey, Ref } from 'vue';\n\nexport interface RadioState {\n value: unknown;\n invalid: boolean;\n name: string;\n update: (value: unknown) => void;\n register: (value: unknown) => void;\n unregister: (value: unknown) => void;\n}\n\nexport const RADIO_STATE = Symbol('radio-state') as InjectionKey<Ref<RadioState>>;\n","<template>\n <label\n :id=\"idWithFallback\"\n :for=\"`${idWithFallback}-input`\"\n :data-test=\"dataTest\"\n :data-selected=\"parentState.value === value || undefined\"\n class=\"c-radio\"\n :class=\"{\n 'c-radio--invalid': parentState.invalid,\n 'c-radio--checked': parentState.value === value,\n }\"\n >\n <input\n :id=\"`${idWithFallback}-input`\"\n type=\"radio\"\n :data-test=\"`${dataTest}-input`\"\n class=\"c-radio__input\"\n :class=\"{ 'sr-only': hideRadio }\"\n :name=\"parentState.name\"\n :value=\"value\"\n :checked=\"parentState.value === value || undefined\"\n @change=\"onChange($event)\"\n @blur=\"$emit('blur')\"\n @focus=\"$emit('focus')\"\n />\n <slot name=\"label\">{{ label }} </slot>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport {\n type PropType,\n defineComponent,\n inject,\n onBeforeUnmount,\n onMounted,\n ref,\n toRefs,\n} from 'vue';\n\nimport { useId } from '@propelinc/citrus-ui/src/composables/id';\nimport { RADIO_STATE } from '@propelinc/citrus-ui/src/services/injections/radio';\nimport type { RadioState } from '@propelinc/citrus-ui/src/services/injections/radio';\n\nexport default defineComponent({\n name: 'CRadio',\n props: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n value: { type: null as unknown as PropType<any>, required: true },\n id: { type: String as PropType<string | null>, default: null },\n label: { type: String as PropType<string | null>, default: null },\n dataTest: { type: String, default: 'radio-group-option' },\n hideRadio: { type: Boolean, default: false },\n },\n emits: ['change', 'blur', 'focus'],\n setup(props, { emit }) {\n const { id } = toRefs(props);\n const idWithFallback = useId(id);\n\n const parentState = inject(\n RADIO_STATE,\n ref<RadioState>({\n value: null,\n name: idWithFallback.value,\n invalid: false,\n update: () => {},\n register: () => {},\n unregister: () => {},\n })\n );\n\n const onChange = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n parentState.value.update(target.checked ? props.value : null);\n emit('change', event);\n };\n\n onMounted((): void => {\n parentState.value.register(props.value);\n });\n\n onBeforeUnmount((): void => {\n parentState.value.unregister(props.value);\n });\n\n return {\n idWithFallback,\n parentState,\n onChange,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/form-fields';\n\n.c-radio {\n align-items: center;\n background-color: $color-background;\n border: $border;\n border-radius: $border-radius-next;\n cursor: pointer;\n display: flex;\n gap: 12px;\n padding: 12px;\n transition: border-color $citrus-field-transition-duration ease;\n width: 100%;\n}\n\n.c-radio__input {\n accent-color: $color-black;\n background-color: $color-black;\n border: $color-gray-300 solid $border-width;\n border-color: $color-black;\n margin-top: 1px;\n transform: scale(1.5);\n}\n\n.c-radio__label {\n padding: 0 12px;\n width: 100%;\n}\n\n.c-radio--checked {\n border-color: $color-black;\n}\n\n.c-radio--invalid {\n border-color: $color-status-error;\n}\n\n.c-radio--invalid .c-radio__input {\n accent-color: $color-status-error;\n border-color: $color-status-error;\n}\n</style>\n","<template>\n <fieldset\n :id=\"idWithFallback\"\n ref=\"radioGroup\"\n :data-test=\"dataTest\"\n role=\"radiogroup\"\n class=\"c-radio-group\"\n :class=\"{\n 'c-radio-group--column': column,\n 'c-radio-group--row': !column,\n 'c-radio-group--invalid': !isValidationValid,\n }\"\n :aria-invalid=\"isValidationValid ? 'false' : 'true'\"\n :aria-labelledby=\"`${idWithFallback}-label`\"\n :aria-errormessage=\"`${idWithFallback}-message`\"\n >\n <span :id=\"`${idWithFallback}-label`\" :data-test=\"`${dataTest}-label`\">\n <slot name=\"label\">{{ label }}</slot>\n </span>\n\n <slot />\n\n <CValidationMessage\n :id=\"`${idWithFallback}-message`\"\n :data-test=\"`${dataTest}-message`\"\n :validation-message=\"validationMessage\"\n :hide=\"hideDetails\"\n >\n <slot name=\"message\" />\n </CValidationMessage>\n </fieldset>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, computed, defineComponent, provide, ref, toRefs, watch } from 'vue';\n\nimport CValidationMessage from '@propelinc/citrus-ui/src/components/CValidationMessage.vue';\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\nimport { useId } from '@propelinc/citrus-ui/src/composables/id';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport { useValidations } from '@propelinc/citrus-ui/src/composables/validations';\nimport { RADIO_STATE } from '@propelinc/citrus-ui/src/services/injections/radio';\n\nexport default defineComponent({\n name: 'CRadioGroup',\n components: { CValidationMessage },\n props: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n value: { type: null as unknown as PropType<any>, default: null },\n id: { type: String as PropType<string | null>, default: null },\n dataTest: { type: String, default: 'radio-group' },\n label: { type: String as PropType<string | null>, default: null },\n column: { type: Boolean, default: true },\n mandatory: { type: Boolean, default: false },\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n hideDetails: { type: Boolean as PropType<boolean | 'auto'>, default: false },\n },\n emits: ['change', 'input'],\n setup(props, { emit }) {\n const { value, rules, id, mandatory } = toRefs(props);\n const idWithFallback = useId(id);\n const radioGroup = ref<HTMLElement | null>(null);\n\n const internalValue = useInternalValue(value, {\n onChange: (newValue) => {\n emit('change', newValue);\n emit('input', newValue);\n },\n });\n\n const {\n startValidating,\n message: validationMessage,\n valid: isValidationValid,\n } = useValidations({\n id: idWithFallback,\n value: internalValue,\n rules,\n required: mandatory,\n validateOn: 'change',\n });\n\n provide(\n RADIO_STATE,\n computed(() => ({\n invalid: !isValidationValid.value,\n value: internalValue.value,\n name: idWithFallback.value,\n update: (newValue: unknown): void => {\n internalValue.value = newValue;\n },\n register: (value: unknown): void => {\n if (props.mandatory && internalValue.value === null) {\n internalValue.value = value;\n }\n },\n unregister: (value: unknown): void => {\n if (internalValue.value === value) {\n internalValue.value = null;\n }\n },\n }))\n );\n\n watch(internalValue, () => {\n startValidating();\n });\n\n return {\n idWithFallback,\n isValidationValid,\n radioGroup,\n validationMessage,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/form-fields';\n\n.c-radio-group {\n border: none;\n display: flex;\n flex-direction: row;\n gap: 8px;\n width: 100%;\n\n &.c-radio-group--column {\n flex-direction: column;\n }\n\n &--row {\n align-items: center;\n\n :deep(.c-radio) {\n width: auto;\n }\n }\n}\n</style>\n","<template>\n <div :class=\"{ 'w-100': fullWidth }\">\n <slot />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n/**\n * NOTE(slanden): This component is no longer used. We are keeping it around for now\n * because it is used in the CMS, but other than applying the w-100 class, it has\n * no effect. We will remove this component in a future PR.\n */\n\nwithDefaults(\n defineProps<{\n fullWidth?: boolean;\n }>(),\n {\n fullWidth: false,\n }\n);\n</script>\n\n<style scoped>\n.w-100 {\n width: 100%;\n}\n</style>\n","<template>\n <div\n class=\"c-row\"\n :class=\"{\n 'c-row--dense': dense,\n 'c-row--no-gutters': noGutters,\n [`align-${align}`]: align,\n [`align-content-${alignContent}`]: alignContent,\n [`justify-${justify}`]: justify,\n }\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n /** Applies the align-items css property.\n * Available options are: start, center, end and stretch. */\n align: {\n type: String as PropType<'center' | 'start' | 'end' | 'stretch'>,\n default: null,\n },\n /** Applies the align-content css property.\n * Available options are: start, center, end, and stretch. */\n alignContent: {\n type: String as PropType<'center' | 'start' | 'end' | 'stretch'>,\n default: null,\n },\n /** Reduces the gutter between c-cols. */\n dense: { type: Boolean, default: false },\n /** Removes the gutter between c-cols. */\n noGutters: { type: Boolean, default: false },\n /** Applies the justify-content css property.\n * Available options are: start, center, end, space-between and space-around. */\n justify: {\n type: String as PropType<'center' | 'start' | 'end' | 'space-between' | 'space-around'>,\n default: null,\n },\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n.c-row {\n display: flex;\n flex: 1 1 auto;\n flex-wrap: wrap;\n margin: 0 -12px;\n}\n\n.c-row--dense {\n margin: 0 -4px;\n}\n\n.c-row--no-gutters {\n margin: 0;\n}\n</style>\n","<template>\n <div class=\"c-safe-area\">\n <slot />\n </div>\n</template>\n\n<style scoped>\n.c-safe-area {\n --full-height: 100vh;\n\n display: flex;\n flex-direction: column;\n height: calc(var(--full-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));\n max-width: 100%;\n overflow: scroll;\n}\n\n@supports (height: 100dvh) {\n .c-safe-area {\n --full-height: 100dvh;\n }\n}\n</style>\n","<template>\n <div class=\"c-section-header\" data-test=\"section-header\">\n <component :is=\"tag\" class=\"c-section-header__title\" data-test=\"section-header-title\">\n {{ title }}\n </component>\n <slot name=\"append\" />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, provide, ref } from 'vue';\n\nimport { TERTIARY as TERTIARY_ICON_BUTTON } from '@propelinc/citrus-ui/src/services/injections/icon-buttons';\n\nexport default defineComponent({\n props: {\n /** The title text to display. */\n title: { type: String, default: '' },\n /** The tag used for the title text. */\n tag: { type: String, default: 'h2' },\n },\n setup(): void {\n provide(TERTIARY_ICON_BUTTON, ref(true));\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/typography';\n\n.c-section-header {\n align-items: center;\n display: flex;\n gap: 12px;\n height: 48px;\n justify-content: space-between;\n}\n\n.c-section-header__title {\n @include headline;\n @include text-overflow-ellipsis;\n\n flex: 1 1 auto;\n}\n\n.c-card + .c-section-header {\n margin-top: 16px;\n}\n</style>\n","<!--\n This Skeleton component is the foundation for all of our skeleton loader components.\n\n In most cases, you will use a more specific version of this component, such as\n CSkeletonLoaderCard, CSkeletonLoaderText, CSkeletonLoaderCircle, etc.\n\n However, you can create custom skeleton loaders ad-hoc through composition. For example, a custom\n loader text component could be created like this:\n\n ```vue\n <div v-for=\"x in 3\" :key=\"x\">\n <div class=\"d-flex w-full\" style=\"font-size: 42px; line-height: 130%;\">\n <div style=\"height: 16px;\">\n <CSkeleton />\n </div>\n <span> </span>\n </div>\n </div>\n ```\n-->\n\n<template>\n <div class=\"c-skeleton\" data-test=\"skeleton\">\n <div class=\"c-skeleton__indicator\" />\n </div>\n</template>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-skeleton {\n display: flex;\n height: 100%;\n min-height: 1rem;\n position: relative;\n width: 100%;\n}\n\n.c-skeleton__indicator {\n --color: #{$color-gray-100};\n --sheen-color: #{$color-gray-200};\n\n animation: sheen 8s ease-in-out infinite;\n background: linear-gradient(\n 270deg,\n var(--sheen-color),\n var(--color),\n var(--color),\n var(--sheen-color)\n );\n background-size: 400% 100%;\n border-radius: $border-radius-next;\n flex: 1 1 auto;\n}\n\n@keyframes sheen {\n 0% {\n background-position: 200% 0;\n }\n\n 100% {\n background-position: -200% 0;\n }\n}\n</style>\n","<template>\n <div\n class=\"c-skeleton-loader-card\"\n data-test=\"skeleton-loader-card\"\n :style=\"{ height: `${height}px` }\"\n >\n <CSkeleton />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nimport CSkeleton from '@propelinc/citrus-ui/src/components/CSkeleton.vue';\n\nexport default defineComponent({\n components: {\n CSkeleton,\n },\n props: {\n /** Controls the height of the skeleton loader card */\n height: {\n type: [Number, String],\n required: false,\n default: 100,\n },\n },\n});\n</script>\n","<template>\n <div class=\"c-skeleton-loader-circle\" data-test=\"skeleton-loader-circle\">\n <CSkeleton />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nimport CSkeleton from '@propelinc/citrus-ui/src/components/CSkeleton.vue';\n\nexport default defineComponent({\n components: {\n CSkeleton,\n },\n});\n</script>\n\n<style scoped>\n.c-skeleton-loader-circle {\n --size: 36px;\n\n border-radius: calc(var(--size) / 2);\n height: var(--size);\n overflow: hidden;\n width: var(--size);\n}\n</style>\n","<template>\n <div\n data-test=\"skeleton-loader-text\"\n class=\"c-skeleton-loader-text\"\n :class=\"{ [`align-${align}`]: align }\"\n >\n <div\n v-for=\"x in rows\"\n :key=\"x\"\n :class=\"lineTypeClass\"\n class=\"c-skeleton-loader-text__line\"\n data-test=\"skeleton-loader-text-line\"\n >\n <CSkeleton class=\"c-skeleton-loader-text__line__skeleton\" />\n <!-- This invisible text ensures the line height matches the real text. -->\n \n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, computed, defineComponent } from 'vue';\n\nimport CSkeleton from '@propelinc/citrus-ui/src/components/CSkeleton.vue';\n\ntype SkeletonLoaderType =\n | 'balance'\n | 'body'\n | 'caption'\n | 'eyebrow'\n | 'headline'\n | 'large-headline'\n // @deprecated use 'eyebrow' instead\n | 'overline'\n | 'statement'\n | 'subheadline'\n | 'wallet-caption'\n | 'x-large-headline';\n\nconst LINE_TYPE_TO_CLASS: Record<SkeletonLoaderType, string> = {\n 'balance': 'c-skeleton-loader-text__line--balance',\n 'body': 'c-skeleton-loader-text__line--body',\n 'caption': 'c-skeleton-loader-text__line--caption',\n 'eyebrow': 'c-skeleton-loader-text__line--eyebrow',\n 'headline': 'c-skeleton-loader-text__line--headline',\n 'large-headline': 'c-skeleton-loader-text__line--large-headline',\n // @deprecated use 'eyebrow' instead\n 'overline': 'c-skeleton-loader-text__line--eyebrow',\n 'statement': 'c-skeleton-loader-text__line--statement',\n 'subheadline': 'c-skeleton-loader-text__line--subheadline',\n 'wallet-caption': 'c-skeleton-loader-text__line--wallet-caption',\n 'x-large-headline': 'c-skeleton-loader-text__line--x-large-headline',\n};\n\nexport default defineComponent({\n components: {\n CSkeleton,\n },\n props: {\n /** Applies the align-items css property. */\n align: { type: String as PropType<'center' | 'start' | 'end'>, default: 'start' },\n /** Controls how many rows of loading text are shown */\n rows: { type: Number, default: 2 },\n /** Controls the appearance of the loading text */\n type: { type: String as PropType<SkeletonLoaderType>, default: 'body' },\n },\n setup(props) {\n const lineTypeClass = computed(() => {\n return LINE_TYPE_TO_CLASS[props.type];\n });\n\n return { lineTypeClass };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n// NOTE(mohan): This ensures that the skeleton loader text is exactly the same size as the text it\n// is replacing including the extra space around the text itself added by the line height.\n@mixin skeleton-loader-text-sizing($font-style) {\n font-size: map-get($font-style, 'size');\n line-height: map-get($font-style, 'line-height');\n\n // By applying a height equal to the font size, the skeleton takes up the space of the text,\n // leaving whitespace between each row\n .c-skeleton-loader-text__line__skeleton {\n height: map-get($font-style, 'size');\n }\n}\n\n.c-skeleton-loader-text {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.c-skeleton-loader-text__line {\n @include skeleton-loader-text-sizing($body);\n\n align-items: center;\n display: flex;\n width: 100%;\n\n &:last-child {\n width: calc(100% - 32px);\n }\n}\n\n.c-skeleton-loader-text__line--balance {\n @include skeleton-loader-text-sizing($balance);\n\n max-width: 120px;\n}\n\n.c-skeleton-loader-text__line--caption {\n @include skeleton-loader-text-sizing($caption);\n}\n\n.c-skeleton-loader-text__line--eyebrow {\n @include skeleton-loader-text-sizing($eyebrow);\n}\n\n.c-skeleton-loader-text__line--headline {\n @include skeleton-loader-text-sizing($headline);\n}\n\n.c-skeleton-loader-text__line--large-headline {\n @include skeleton-loader-text-sizing($large-headline);\n}\n\n.c-skeleton-loader-text__line--statement {\n @include skeleton-loader-text-sizing($statement);\n}\n\n.c-skeleton-loader-text__line--subheadline {\n @include skeleton-loader-text-sizing($subheadline);\n}\n\n.c-skeleton-loader-text__line--wallet-caption {\n @include skeleton-loader-text-sizing($wallet-caption);\n}\n\n.c-skeleton-loader-text__line--x-large-headline {\n @include skeleton-loader-text-sizing($x-large-headline);\n}\n</style>\n","<template>\n <div :class=\"direction\" :style=\"{ '--slide-fade-amount': `${amount}px` }\">\n <Transition name=\"slide-fade\" mode=\"out-in\">\n <slot />\n </Transition>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, defineComponent } from 'vue';\n\ntype Direction = 'to-left' | 'to-right' | 'to-top' | 'to-bottom';\n\n/**\n * This component can be used to create a slide-fade transition for children.\n *\n * FIXME: Vue 3 Conversion - Remove this comment when Vue 3 conversion is complete.\n * NOTE: For Vue 2 usage: if you are conditionally rendering children, be sure to add unique\n * keys to each child!\n *\n * Example:\n * ```vue\n * <CSlideFadeTransition>\n * <div v-if=\"condition\" :key=\"if\">This will slide in</div>\n * <div v-else :key=\"else\">This will slide out</div>\n * </CSlideFadeTransition>\n * ```\n */\nexport default defineComponent({\n name: 'CSlideFadeTransition',\n props: {\n /**\n * The amount of pixels to slide the elements in or out\n * @default 20\n */\n amount: {\n type: Number,\n default: 20,\n validator(value: number) {\n return value >= 0;\n },\n },\n /**\n * Changes the direction of the slide fade transition\n * @default 'to-left'\n */\n direction: {\n type: String as PropType<Direction>,\n default: 'to-left',\n },\n },\n});\n</script>\n\n<style scoped>\n.slide-fade-enter-active,\n.slide-fade-leave-active {\n transition: all 0.3s ease-out;\n}\n\n/* TODO: Can remove `*-enter` classes when we upgrade to Vue 3 */\n.slide-fade-enter,\n/* Preemptively adding Vue 3 classes */\n.slide-fade-enter-from,\n.slide-fade-leave-to {\n opacity: 0;\n}\n\n/* TODO: Can remove `*-enter` classes when we upgrade to Vue 3 */\n.to-left .slide-fade-enter,\n/* Preemptively adding Vue 3 classes */\n.to-left .slide-fade-enter-from,\n.to-left .slide-fade-leave-to {\n transform: translateX(calc(-1 * var(--slide-fade-amount)));\n}\n\n/* TODO: Can remove `*-enter` classes when we upgrade to Vue 3 */\n.to-right .slide-fade-enter,\n/* Preemptively adding Vue 3 classes */\n.to-right .slide-fade-enter-from,\n.to-right .slide-fade-leave-to {\n transform: translateX(var(--slide-fade-amount));\n}\n\n/* TODO: Can remove `*-enter` classes when we upgrade to Vue 3 */\n.to-top .slide-fade-enter,\n/* Preemptively adding Vue 3 classes */\n.to-top .slide-fade-enter-from,\n.to-top .slide-fade-leave-to {\n transform: translateY(calc(-1 * var(--slide-fade-amount)));\n}\n\n/* TODO: Can remove `*-enter` classes when we upgrade to Vue 3 */\n.to-bottom .slide-fade-enter,\n/* Preemptively adding Vue 3 classes */\n.to-bottom .slide-fade-enter-from,\n.to-bottom .slide-fade-leave-to {\n transform: translateY(var(--slide-fade-amount));\n}\n</style>\n","<template>\n <CMaskedTextField\n v-bind=\"$attrs\"\n :data-test=\"dataTest\"\n class=\"c-split-input\"\n :type=\"type\"\n :label=\"label\"\n :name=\"name\"\n :inputmode=\"inputmode\"\n :value=\"value\"\n :rules=\"rules\"\n :placeholder=\"placeholder\"\n :disabled=\"disabled\"\n :autocomplete=\"autocomplete\"\n size=\"large\"\n :mask=\"mask\"\n @input:masked=\"maskedValue = $event\"\n >\n <template #label>\n <slot name=\"label\" />\n </template>\n <template #message>\n <slot name=\"message\" />\n </template>\n </CMaskedTextField>\n</template>\n\n<script lang=\"ts\">\nimport type { HTMLAttributes, PropType } from 'vue';\nimport { computed, defineComponent, ref, toRefs } from 'vue';\n\nimport CMaskedTextField from '@propelinc/citrus-ui/src/components/CMaskedTextField.vue';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport type { SplitInputField } from '@propelinc/citrus-ui/src/types';\n\nexport default defineComponent({\n name: 'CSplitInput',\n components: { CMaskedTextField },\n props: {\n /** Custom data-test selector */\n dataTest: { type: String, default: 'split-input' },\n /** The input's type, either text or tel */\n type: { type: String as PropType<'text' | 'tel'>, default: 'text' },\n /** The input's label */\n label: { type: String as PropType<string | null>, default: null },\n /** The input's name */\n name: { type: String as PropType<string | undefined>, default: undefined },\n /** A hint to show the appropriate virtual keyboard, e.g. \"numeric\". */\n inputmode: {\n type: String as PropType<HTMLAttributes['inputmode'] | undefined>,\n default: undefined,\n },\n /** The input's value */\n value: { type: String, default: '' },\n /** The fields for each of the split inputs of type SplitInputField */\n fields: {\n type: Array as PropType<SplitInputField[]>,\n required: true,\n },\n /** Validation rules */\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n /** Controls whether the input is disabled */\n disabled: { type: Boolean, default: false },\n /** Controls the underlying input's autocomplete attribute */\n autocomplete: { type: String, default: undefined },\n },\n setup(props) {\n const { fields } = toRefs(props);\n\n const maskedValue = ref('');\n\n const placeholder = computed(() => {\n return fields.value\n .map((field) => `${field.placeholder ?? ''}${field.separator ?? ''}`)\n .join('');\n });\n\n const mask = computed(() => {\n return fields.value\n .map((field) => `${Array(field.characters).fill('*').join('')}${field.separator ?? ''}`)\n .join('');\n });\n\n return { placeholder, mask, maskedValue };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n@mixin split-input-text {\n @include headline;\n\n letter-spacing: 12px;\n line-height: 1;\n text-align: center;\n}\n\n.c-split-input {\n &::part(input) {\n @include split-input-text;\n }\n\n &::part(input)::placeholder {\n @include split-input-text;\n\n font-weight: $font-weight-normal;\n }\n}\n</style>\n","<template>\n <CMaskedTextField\n v-bind=\"$attrs\"\n :id=\"id\"\n ref=\"field\"\n :data-test=\"dataTest\"\n :value=\"value\"\n :label=\"label || defaultLabel\"\n :placeholder=\"fourDigitSsn ? 'XXXX' : 'XXX-XX-XXXX'\"\n inputmode=\"numeric\"\n :mask=\"fourDigitSsn ? '####' : '###-##-####'\"\n :minlength=\"fourDigitSsn ? 4 : 9\"\n :maxlength=\"fourDigitSsn ? 4 : 9\"\n :hideable=\"!fourDigitSsn\"\n autocorrect=\"off\"\n autocapitalize=\"none\"\n :rules=\"computedRules\"\n @input=\"$emit('input', $event)\"\n @focus=\"$emit('focus', $event)\"\n @blur=\"$emit('blur', $event)\"\n @change=\"$emit('change', $event)\"\n >\n <template #label>\n <slot name=\"label\" />\n </template>\n <template #message>\n <slot name=\"message\" />\n </template>\n <template #append>\n <!-- NOTE(mohan): When requesting the full SSN, we have to leave space for\n the hide/show icon. -->\n <FontAwesomeIcon v-if=\"fourDigitSsn\" :icon=\"faLock\" fixed-width />\n </template>\n </CMaskedTextField>\n</template>\n\n<script lang=\"ts\">\nimport { faLock } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport { type PropType, computed, defineComponent } from 'vue';\n\nimport CMaskedTextField from '@propelinc/citrus-ui/src/components/CMaskedTextField.vue';\nimport { useFocusableField } from '@propelinc/citrus-ui/src/composables/fields';\nimport { useTranslation } from '@propelinc/citrus-ui/src/composables/i18n';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport { minLengthRule } from '@propelinc/shared-utils';\n\nexport default defineComponent({\n name: 'CSsnField',\n components: { CMaskedTextField, FontAwesomeIcon },\n props: {\n dataTest: { type: String, default: 'ssn-field' },\n id: { type: String, default: undefined },\n label: { type: String as PropType<string | null>, default: null },\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n value: { type: String, default: '' },\n fourDigitSsn: { type: Boolean, default: false },\n },\n emits: ['input', 'focus', 'blur', 'change'],\n setup(props, { expose }) {\n const { t } = useTranslation();\n const defaultLabel = computed(() => {\n return props.fourDigitSsn ? t('Last 4 digits of SSN') : t('Social Security number');\n });\n const defaultRules = computed(() => {\n const fourDigitRule = minLengthRule(4, t('Please enter the last four digits of your SSN'));\n const fullSsnRule = minLengthRule(\n 9,\n t('Please enter a valid {inputLabel}', { inputLabel: t('Social Security number') })\n );\n return [props.fourDigitSsn ? fourDigitRule : fullSsnRule];\n });\n\n const computedRules = computed(() => [...defaultRules.value, ...props.rules]);\n\n const { field } = useFocusableField(expose);\n\n return {\n defaultLabel,\n computedRules,\n faLock,\n field,\n };\n },\n});\n</script>\n","<template>\n <div\n class=\"c-status-dot\"\n :class=\"{\n 'c-status-dot--count': hasCount,\n 'c-status-dot--bordered': bordered,\n }\"\n data-test=\"status-dot\"\n role=\"img\"\n >\n {{ displayCount }}\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { computed, defineComponent } from 'vue';\n\nimport { useA11yLabelCheck } from '@propelinc/citrus-ui/src/composables/accessibility';\n\nexport default defineComponent({\n props: {\n count: { type: Number as PropType<number | null>, default: null },\n bordered: { type: Boolean, default: false },\n },\n setup(props) {\n useA11yLabelCheck('CStatusDot');\n\n const hasCount = computed(() => props.count !== null);\n const displayCount = computed(() => {\n return props.count && props.count > 9 ? '9+' : props.count;\n });\n\n return { displayCount, hasCount };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-status-dot {\n background-color: $color-status-error;\n border-radius: 9999px;\n display: inline-block;\n height: 8px;\n width: 8px;\n}\n\n.c-status-dot--bordered {\n box-shadow: 0 0 0 1.5px $color-white;\n}\n\n/**\n * For users that may increase their font size for legibility,\n * we use rems so the circle grows if the font size increases.\n */\n.c-status-dot--count {\n align-items: center;\n color: $color-white;\n display: flex;\n font-size: 0.625rem;\n font-weight: $font-weight-bold;\n height: 1rem;\n justify-content: center;\n line-height: 1;\n text-align: center;\n width: 1rem;\n}\n</style>\n","// src/components/switch/switch.styles.ts\nimport { css } from \"lit\";\nvar switch_styles_default = css`\n :host {\n display: inline-block;\n }\n\n :host([size='small']) {\n --height: var(--sl-toggle-size-small);\n --thumb-size: calc(var(--sl-toggle-size-small) + 4px);\n --width: calc(var(--height) * 2);\n\n font-size: var(--sl-input-font-size-small);\n }\n\n :host([size='medium']) {\n --height: var(--sl-toggle-size-medium);\n --thumb-size: calc(var(--sl-toggle-size-medium) + 4px);\n --width: calc(var(--height) * 2);\n\n font-size: var(--sl-input-font-size-medium);\n }\n\n :host([size='large']) {\n --height: var(--sl-toggle-size-large);\n --thumb-size: calc(var(--sl-toggle-size-large) + 4px);\n --width: calc(var(--height) * 2);\n\n font-size: var(--sl-input-font-size-large);\n }\n\n .switch {\n position: relative;\n display: inline-flex;\n align-items: center;\n font-family: var(--sl-input-font-family);\n font-size: inherit;\n font-weight: var(--sl-input-font-weight);\n color: var(--sl-input-label-color);\n vertical-align: middle;\n cursor: pointer;\n }\n\n .switch__control {\n flex: 0 0 auto;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--width);\n height: var(--height);\n background-color: var(--sl-color-neutral-400);\n border: solid var(--sl-input-border-width) var(--sl-color-neutral-400);\n border-radius: var(--height);\n transition:\n var(--sl-transition-fast) border-color,\n var(--sl-transition-fast) background-color;\n }\n\n .switch__control .switch__thumb {\n width: var(--thumb-size);\n height: var(--thumb-size);\n background-color: var(--sl-color-neutral-0);\n border-radius: 50%;\n border: solid var(--sl-input-border-width) var(--sl-color-neutral-400);\n translate: calc((var(--width) - var(--height)) / -2);\n transition:\n var(--sl-transition-fast) translate ease,\n var(--sl-transition-fast) background-color,\n var(--sl-transition-fast) border-color,\n var(--sl-transition-fast) box-shadow;\n }\n\n .switch__input {\n position: absolute;\n opacity: 0;\n padding: 0;\n margin: 0;\n pointer-events: none;\n }\n\n /* Hover */\n .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {\n background-color: var(--sl-color-neutral-400);\n border-color: var(--sl-color-neutral-400);\n }\n\n .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover .switch__thumb {\n background-color: var(--sl-color-neutral-0);\n border-color: var(--sl-color-neutral-400);\n }\n\n /* Focus */\n .switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {\n background-color: var(--sl-color-neutral-400);\n border-color: var(--sl-color-neutral-400);\n }\n\n .switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {\n background-color: var(--sl-color-neutral-0);\n border-color: var(--sl-color-primary-600);\n outline: var(--sl-focus-ring);\n outline-offset: var(--sl-focus-ring-offset);\n }\n\n /* Checked */\n .switch--checked .switch__control {\n background-color: var(--sl-color-primary-600);\n border-color: var(--sl-color-primary-600);\n }\n\n .switch--checked .switch__control .switch__thumb {\n background-color: var(--sl-color-neutral-0);\n border-color: var(--sl-color-primary-600);\n translate: calc((var(--width) - var(--height)) / 2);\n }\n\n /* Checked + hover */\n .switch.switch--checked:not(.switch--disabled) .switch__control:hover {\n background-color: var(--sl-color-primary-600);\n border-color: var(--sl-color-primary-600);\n }\n\n .switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb {\n background-color: var(--sl-color-neutral-0);\n border-color: var(--sl-color-primary-600);\n }\n\n /* Checked + focus */\n .switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {\n background-color: var(--sl-color-primary-600);\n border-color: var(--sl-color-primary-600);\n }\n\n .switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {\n background-color: var(--sl-color-neutral-0);\n border-color: var(--sl-color-primary-600);\n outline: var(--sl-focus-ring);\n outline-offset: var(--sl-focus-ring-offset);\n }\n\n /* Disabled */\n .switch--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .switch__label {\n display: inline-block;\n line-height: var(--height);\n margin-inline-start: 0.5em;\n user-select: none;\n -webkit-user-select: none;\n }\n\n :host([required]) .switch__label::after {\n content: var(--sl-input-required-content);\n color: var(--sl-input-required-content-color);\n margin-inline-start: var(--sl-input-required-content-offset);\n }\n\n @media (forced-colors: active) {\n .switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb,\n .switch--checked .switch__control .switch__thumb {\n background-color: ButtonText;\n }\n }\n`;\n\nexport {\n switch_styles_default\n};\n","// src/internal/default-value.ts\nimport { defaultConverter } from \"lit\";\nvar defaultValue = (propertyName = \"value\") => (proto, key) => {\n const ctor = proto.constructor;\n const attributeChangedCallback = ctor.prototype.attributeChangedCallback;\n ctor.prototype.attributeChangedCallback = function(name, old, value) {\n var _a;\n const options = ctor.getPropertyOptions(propertyName);\n const attributeName = typeof options.attribute === \"string\" ? options.attribute : propertyName;\n if (name === attributeName) {\n const converter = options.converter || defaultConverter;\n const fromAttribute = typeof converter === \"function\" ? converter : (_a = converter == null ? void 0 : converter.fromAttribute) != null ? _a : defaultConverter.fromAttribute;\n const newValue = fromAttribute(value, options.type);\n if (this[propertyName] !== newValue) {\n this[key] = newValue;\n }\n }\n attributeChangedCallback.call(this, name, old, value);\n };\n};\n\nexport {\n defaultValue\n};\n","// src/styles/form-control.styles.ts\nimport { css } from \"lit\";\nvar form_control_styles_default = css`\n .form-control .form-control__label {\n display: none;\n }\n\n .form-control .form-control__help-text {\n display: none;\n }\n\n /* Label */\n .form-control--has-label .form-control__label {\n display: inline-block;\n color: var(--sl-input-label-color);\n margin-bottom: var(--sl-spacing-3x-small);\n }\n\n .form-control--has-label.form-control--small .form-control__label {\n font-size: var(--sl-input-label-font-size-small);\n }\n\n .form-control--has-label.form-control--medium .form-control__label {\n font-size: var(--sl-input-label-font-size-medium);\n }\n\n .form-control--has-label.form-control--large .form-control__label {\n font-size: var(--sl-input-label-font-size-large);\n }\n\n :host([required]) .form-control--has-label .form-control__label::after {\n content: var(--sl-input-required-content);\n margin-inline-start: var(--sl-input-required-content-offset);\n color: var(--sl-input-required-content-color);\n }\n\n /* Help text */\n .form-control--has-help-text .form-control__help-text {\n display: block;\n color: var(--sl-input-help-text-color);\n margin-top: var(--sl-spacing-3x-small);\n }\n\n .form-control--has-help-text.form-control--small .form-control__help-text {\n font-size: var(--sl-input-help-text-font-size-small);\n }\n\n .form-control--has-help-text.form-control--medium .form-control__help-text {\n font-size: var(--sl-input-help-text-font-size-medium);\n }\n\n .form-control--has-help-text.form-control--large .form-control__help-text {\n font-size: var(--sl-input-help-text-font-size-large);\n }\n\n .form-control--has-help-text.form-control--radio-group .form-control__help-text {\n margin-top: var(--sl-spacing-2x-small);\n }\n`;\n\nexport {\n form_control_styles_default\n};\n","import{noChange as r,nothing as e}from\"../lit-html.js\";import{directive as i,Directive as t,PartType as n}from\"../directive.js\";import{isSingleExpression as o,setCommittedValue as s}from\"../directive-helpers.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const l=i(class extends t{constructor(r){if(super(r),r.type!==n.PROPERTY&&r.type!==n.ATTRIBUTE&&r.type!==n.BOOLEAN_ATTRIBUTE)throw Error(\"The `live` directive is not allowed on child or event bindings\");if(!o(r))throw Error(\"`live` bindings can only contain a single expression\")}render(r){return r}update(i,[t]){if(t===r||t===e)return t;const o=i.element,l=i.name;if(i.type===n.PROPERTY){if(t===o[l])return r}else if(i.type===n.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(l))return r}else if(i.type===n.ATTRIBUTE&&o.getAttribute(l)===t+\"\")return r;return s(i),t}});export{l as live};\n//# sourceMappingURL=live.js.map\n","import {\n switch_styles_default\n} from \"./chunk.EU44RQUN.js\";\nimport {\n defaultValue\n} from \"./chunk.GI7VDIWX.js\";\nimport {\n form_control_styles_default\n} from \"./chunk.SI4ACBFK.js\";\nimport {\n FormControlController\n} from \"./chunk.KWPBDQ6I.js\";\nimport {\n HasSlotController\n} from \"./chunk.NYIIDP5N.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/switch/switch.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { live } from \"lit/directives/live.js\";\nimport { property, query, state } from \"lit/decorators.js\";\nvar SlSwitch = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.formControlController = new FormControlController(this, {\n value: (control) => control.checked ? control.value || \"on\" : void 0,\n defaultValue: (control) => control.defaultChecked,\n setValue: (control, checked) => control.checked = checked\n });\n this.hasSlotController = new HasSlotController(this, \"help-text\");\n this.hasFocus = false;\n this.title = \"\";\n this.name = \"\";\n this.size = \"medium\";\n this.disabled = false;\n this.checked = false;\n this.defaultChecked = false;\n this.form = \"\";\n this.required = false;\n this.helpText = \"\";\n }\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n handleBlur() {\n this.hasFocus = false;\n this.emit(\"sl-blur\");\n }\n handleInput() {\n this.emit(\"sl-input\");\n }\n handleInvalid(event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n handleClick() {\n this.checked = !this.checked;\n this.emit(\"sl-change\");\n }\n handleFocus() {\n this.hasFocus = true;\n this.emit(\"sl-focus\");\n }\n handleKeyDown(event) {\n if (event.key === \"ArrowLeft\") {\n event.preventDefault();\n this.checked = false;\n this.emit(\"sl-change\");\n this.emit(\"sl-input\");\n }\n if (event.key === \"ArrowRight\") {\n event.preventDefault();\n this.checked = true;\n this.emit(\"sl-change\");\n this.emit(\"sl-input\");\n }\n }\n handleCheckedChange() {\n this.input.checked = this.checked;\n this.formControlController.updateValidity();\n }\n handleDisabledChange() {\n this.formControlController.setValidity(true);\n }\n /** Simulates a click on the switch. */\n click() {\n this.input.click();\n }\n /** Sets focus on the switch. */\n focus(options) {\n this.input.focus(options);\n }\n /** Removes focus from the switch. */\n blur() {\n this.input.blur();\n }\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n /** Gets the associated form, if one exists. */\n getForm() {\n return this.formControlController.getForm();\n }\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n render() {\n const hasHelpTextSlot = this.hasSlotController.test(\"help-text\");\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n return html`\n <div\n class=${classMap({\n \"form-control\": true,\n \"form-control--small\": this.size === \"small\",\n \"form-control--medium\": this.size === \"medium\",\n \"form-control--large\": this.size === \"large\",\n \"form-control--has-help-text\": hasHelpText\n })}\n >\n <label\n part=\"base\"\n class=${classMap({\n switch: true,\n \"switch--checked\": this.checked,\n \"switch--disabled\": this.disabled,\n \"switch--focused\": this.hasFocus,\n \"switch--small\": this.size === \"small\",\n \"switch--medium\": this.size === \"medium\",\n \"switch--large\": this.size === \"large\"\n })}\n >\n <input\n class=\"switch__input\"\n type=\"checkbox\"\n title=${this.title}\n name=${this.name}\n value=${ifDefined(this.value)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n role=\"switch\"\n aria-checked=${this.checked ? \"true\" : \"false\"}\n aria-describedby=\"help-text\"\n @click=${this.handleClick}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @keydown=${this.handleKeyDown}\n />\n\n <span part=\"control\" class=\"switch__control\">\n <span part=\"thumb\" class=\"switch__thumb\"></span>\n </span>\n\n <div part=\"label\" class=\"switch__label\">\n <slot></slot>\n </div>\n </label>\n\n <div\n aria-hidden=${hasHelpText ? \"false\" : \"true\"}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n};\nSlSwitch.styles = [component_styles_default, form_control_styles_default, switch_styles_default];\n__decorateClass([\n query('input[type=\"checkbox\"]')\n], SlSwitch.prototype, \"input\", 2);\n__decorateClass([\n state()\n], SlSwitch.prototype, \"hasFocus\", 2);\n__decorateClass([\n property()\n], SlSwitch.prototype, \"title\", 2);\n__decorateClass([\n property()\n], SlSwitch.prototype, \"name\", 2);\n__decorateClass([\n property()\n], SlSwitch.prototype, \"value\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlSwitch.prototype, \"size\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlSwitch.prototype, \"disabled\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlSwitch.prototype, \"checked\", 2);\n__decorateClass([\n defaultValue(\"checked\")\n], SlSwitch.prototype, \"defaultChecked\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlSwitch.prototype, \"form\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlSwitch.prototype, \"required\", 2);\n__decorateClass([\n property({ attribute: \"help-text\" })\n], SlSwitch.prototype, \"helpText\", 2);\n__decorateClass([\n watch(\"checked\", { waitUntilFirstUpdate: true })\n], SlSwitch.prototype, \"handleCheckedChange\", 1);\n__decorateClass([\n watch(\"disabled\", { waitUntilFirstUpdate: true })\n], SlSwitch.prototype, \"handleDisabledChange\", 1);\n\nexport {\n SlSwitch\n};\n","import {\n SlSwitch\n} from \"./chunk.S33XS33R.js\";\n\n// src/components/switch/switch.ts\nvar switch_default = SlSwitch;\nSlSwitch.define(\"sl-switch\");\n\nexport {\n switch_default\n};\n","<template>\n <sl-switch\n class=\"c-switch\"\n :class=\"{\n 'c-switch--label-first': labelFirst,\n 'c-switch--disabled': disabled,\n 'c-switch--checked': internalValue,\n 'c-switch--aria-labelled': ariaLabel,\n }\"\n :checked=\"internalValue || undefined\"\n :disabled=\"disabled || undefined\"\n @sl-change=\"internalValue = !internalValue\"\n >\n <slot />\n <span v-if=\"ariaLabel\" class=\"c-switch__sr-label\">\n {{ ariaLabel }}\n </span>\n </sl-switch>\n</template>\n\n<script lang=\"ts\">\nimport '@shoelace-style/shoelace/dist/components/switch/switch.js';\nimport { defineComponent, toRefs } from 'vue';\n\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\n\nexport default defineComponent({\n props: {\n /** When true, the slot label is visually rendered before the control (label left, switch right) */\n labelFirst: { type: Boolean, default: false },\n /** Whether the switch is in an \"on\" or \"off\" state */\n value: { type: Boolean, default: false },\n /** Prevents the user from interacting with the switch */\n disabled: { type: Boolean, default: false },\n /** Label for screen-readers. This hides and overrides the normal label. */\n ariaLabel: { type: String, default: '' },\n },\n emits: ['input'],\n setup(props, { emit }) {\n const { value } = toRefs(props);\n const internalValue = useInternalValue(value, {\n onChange: (newValue) => emit('input', newValue),\n });\n\n return {\n internalValue,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/a11y';\n\n@mixin switch-theme($control-color, $thumb-color, $thumb-indicator-color) {\n &::part(control) {\n background-color: $control-color;\n }\n\n &::part(thumb) {\n background-color: $thumb-color;\n }\n\n &::part(thumb)::after {\n background-color: $thumb-indicator-color;\n }\n}\n\n.c-switch {\n --width: 44px;\n --height: 24px;\n --thumb-size: 20px;\n\n &::part(control) {\n border: none;\n }\n\n &::part(thumb) {\n align-items: center;\n border: none;\n display: flex;\n justify-content: center;\n }\n\n &::part(thumb)::after {\n border-radius: 1px;\n content: '';\n height: 8px;\n transition: background-color var(--sl-transition-fast) ease-in-out;\n width: 2px;\n }\n\n @include switch-theme($color-gray-400, $color-white, transparent);\n}\n\n.c-switch--label-first {\n &::part(base) {\n flex-direction: row-reverse;\n gap: 12px;\n width: 100%;\n }\n\n &::part(label) {\n flex: 1;\n margin: 0;\n }\n}\n\n.c-switch--checked {\n @include switch-theme($color-green-400, $color-white, $color-green-400);\n}\n\n.c-switch--disabled {\n @include switch-theme($color-gray-300, $color-gray-200, transparent);\n}\n\n.c-switch--disabled.c-switch--checked {\n @include switch-theme($color-gray-300, $color-gray-200, $color-gray-300);\n}\n\n.c-switch__sr-label {\n @include sr-only;\n}\n</style>\n","<template>\n <CListItem>\n <CSwitch\n data-test=\"list-item-switch\"\n class=\"c-switch-list-item__switch\"\n :value=\"value\"\n :disabled=\"disabled\"\n @input=\"$emit('input', $event)\"\n >\n <div\n class=\"d-flex flex-row gap-3\"\n :class=\"{\n 'align-start': align === 'top',\n 'align-center': align !== 'top',\n }\"\n >\n <slot name=\"prepend\">\n <CListItemIcon v-if=\"icon || iconSlotHasContent\" :icon=\"icon\" :icon-color=\"iconColor\">\n <template #icon>\n <slot name=\"icon\" />\n </template>\n </CListItemIcon>\n </slot>\n\n <CListItemContent :title=\"title\" :label=\"label\">\n <template v-for=\"slotName of ['title', 'label', 'default']\" #[slotName]>\n <slot :name=\"slotName\" />\n </template>\n </CListItemContent>\n </div>\n </CSwitch>\n </CListItem>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, defineComponent } from 'vue';\n\nimport CListItem from '@propelinc/citrus-ui/src/components/CListItem.vue';\nimport CListItemContent from '@propelinc/citrus-ui/src/components/CListItemContent.vue';\nimport CListItemIcon from '@propelinc/citrus-ui/src/components/CListItemIcon.vue';\nimport CSwitch from '@propelinc/citrus-ui/src/components/CSwitch.vue';\nimport type { FaPropType } from '@propelinc/citrus-ui/src/types/font-awesome';\n\nimport { useSlotHasContent } from '../composables/slots';\n\nexport default defineComponent({\n name: 'CSwitchListItem',\n components: {\n CSwitch,\n CListItem,\n CListItemContent,\n CListItemIcon,\n },\n props: {\n /** Alignment of the content */\n align: { type: String as PropType<'top' | 'center'>, default: 'center' },\n /** Prevents the user from interacting with the switch */\n disabled: { type: Boolean, default: false },\n /** Font Awesome icon to render on the left side of the component */\n icon: { type: [String, Array, Object] as FaPropType, default: null },\n /** Color of the icon background */\n iconColor: { type: String, default: 'gray-100' },\n /** Plain body copy. Overridden by the default slot. */\n label: { type: String, default: undefined },\n /** Emphasized text above body text. Overridden by the default slot. */\n title: { type: String, default: undefined },\n /** Whether the switch is in an \"on\" or \"off\" state */\n value: { type: Boolean, default: false },\n },\n emits: ['input'],\n setup() {\n const iconSlotHasContent = useSlotHasContent('icon');\n\n return {\n iconSlotHasContent,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n.c-switch-list-item__switch {\n width: 100%;\n\n &::part(base) {\n align-items: center;\n display: inline-flex;\n\n // Using row-reverse allows us to move the slot content to the left\n // and the switch to the right\n flex-direction: row-reverse;\n gap: 12px;\n\n // The padding from CListItem is sufficient\n padding: 0;\n width: 100%;\n }\n\n &::part(label) {\n align-items: center;\n display: flex;\n flex: 1;\n gap: 12px;\n justify-content: space-between;\n\n // Removes the margin-inline-start supplied by the Shoelace styles\n margin: 0;\n }\n}\n</style>\n","<template>\n <div\n class=\"d-flex flex-column gap-1\"\n :class=\"{\n 'c-text-area--disabled': disabled,\n 'c-text-area--invalid': !isValidationValid,\n 'c-text-area--hide-label': hideLabel,\n }\"\n :data-test=\"dataTest\"\n >\n <label class=\"c-text-area__label\" :for=\"idWithFallback\" :data-test=\"`${dataTest}-label`\">\n <slot name=\"label\">\n {{ label }}\n </slot>\n </label>\n\n <textarea\n :id=\"idWithFallback\"\n ref=\"textarea\"\n class=\"c-text-area__input\"\n rows=\"4\"\n :aria-label=\"label || undefined\"\n :aria-describedby=\"`${idWithFallback}-message ${idWithFallback}-validation-message`\"\n :aria-invalid=\"isValidationValid ? 'false' : 'true'\"\n :data-test=\"`${dataTest}-textarea`\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder\"\n :maxlength=\"maxlength\"\n :required=\"required\"\n :value=\"internalValue\"\n @input=\"onInput\"\n @blur=\"$emit('blur')\"\n @focus=\"$emit('focus')\"\n @change=\"$emit('change', internalValue)\"\n v-on=\"validationListeners\"\n />\n\n <CValidationMessage\n :data-test=\"`${dataTest}-validation-message`\"\n :validation-message=\"validationMessage\"\n :hide=\"hideDetails\"\n >\n <template #append>\n <CFormFieldCounter\n v-if=\"counter\"\n :data-test=\"`${dataTest}-counter`\"\n :counter=\"counter\"\n :counter-value=\"counterValue\"\n :value=\"internalValue\"\n />\n </template>\n </CValidationMessage>\n\n <div\n v-if=\"messageSlotHasContent\"\n :id=\"`${idWithFallback}-message`\"\n class=\"c-text-area__message\"\n :data-test=\"`${dataTest}-message`\"\n >\n <slot name=\"message\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { defineComponent, ref, toRefs } from 'vue';\n\nimport CFormFieldCounter from '@propelinc/citrus-ui/src/components/CFormFieldCounter.vue';\nimport CValidationMessage from '@propelinc/citrus-ui/src/components/CValidationMessage.vue';\nimport { useInternalValue } from '@propelinc/citrus-ui/src/composables/binding';\nimport { useId } from '@propelinc/citrus-ui/src/composables/id';\nimport { useSlotHasContent } from '@propelinc/citrus-ui/src/composables/slots';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport { useValidations } from '@propelinc/citrus-ui/src/composables/validations';\n\nexport default defineComponent({\n name: 'CTextArea',\n components: { CValidationMessage, CFormFieldCounter },\n props: {\n /** The textarea's label, both visual and screenreader-only */\n label: { type: String as PropType<string | null>, default: null },\n /** The textarea's placeholder */\n placeholder: { type: String, default: '' },\n /** The textarea element's id */\n id: { type: String as PropType<string | null>, default: null },\n /** Controls whether the input is disabled */\n disabled: { type: Boolean, default: false },\n /** The textarea's value */\n value: { type: String, default: '' },\n /** Hides the label and instead labels the field with `aria-label` */\n hideLabel: { type: Boolean, default: false },\n /** Hides the validation message area. Defaults to `false` (show message area even when valid), so validations transition in gracefully. */\n hideDetails: { type: [Boolean, String] as PropType<boolean | 'auto'>, default: false },\n /** Adds a custom data test string to the form field and textarea elements */\n dataTest: { type: String, default: 'text-area' },\n /** Shows a character counter and sets its denominator. */\n counter: { type: Number as PropType<number | null>, default: null },\n /** Function or number that determines the numerator of the counter. If not\n * set, the counter will be the length of the input value. */\n counterValue: {\n type: [Number, Function] as PropType<number | (() => number | null)>,\n default: null,\n },\n maxlength: { type: Number, default: undefined },\n /** Accepts a mixed array of types function, boolean and string.\n * Functions pass an input value as an argument and must return either true / false or\n * a string containing an error message. The input field will enter an error state if a\n * function returns (or any value in the array contains) false or is a string */\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n /** If true, the field is required */\n required: { type: Boolean, default: false },\n },\n emits: ['input', 'change', 'blur', 'focus'],\n setup(props, { emit }) {\n const { value, rules, required, id } = toRefs(props);\n const idWithFallback = useId(id);\n\n const internalValue = useInternalValue(value, {\n onChange: (value) => emit('input', value),\n });\n\n const messageSlotHasContent = useSlotHasContent('message');\n\n const textarea = ref<HTMLTextAreaElement | null>(null);\n\n const {\n message: validationMessage,\n valid: isValidationValid,\n listeners: validationListeners,\n } = useValidations({\n id: idWithFallback,\n value: internalValue,\n rules,\n required,\n field: textarea,\n });\n\n const onInput = (event: Event): void => {\n const target = event.target as HTMLTextAreaElement;\n internalValue.value = target.value;\n };\n\n return {\n textarea,\n idWithFallback,\n internalValue,\n validationMessage,\n isValidationValid,\n validationListeners,\n messageSlotHasContent,\n\n onInput,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n@import '@propelinc/citrus-ui/src/styles/utils/a11y';\n@import '@propelinc/citrus-ui/src/styles/form-fields';\n\n.c-text-area__label {\n @include body-emphasized;\n\n display: inline-block;\n margin-bottom: 4px;\n transition: color $citrus-field-transition-duration ease;\n\n .c-text-area--disabled & {\n color: $color-text-disabled;\n }\n\n .c-text-area--hide-label & {\n @include sr-only;\n }\n}\n\n.c-text-area__input {\n background-color: $color-white;\n border: $border-width solid $color-gray-200;\n border-radius: $border-radius-next;\n padding: 16px;\n resize: vertical;\n transition: border-color $citrus-field-transition-duration ease;\n\n &:focus,\n &:focus-within,\n .c-text-area--invalid & {\n border-color: $color-black;\n outline: none;\n }\n\n &:disabled {\n background-color: $color-gray-100;\n color: $color-text-disabled;\n }\n}\n\n.c-text-area__message {\n @include caption;\n\n color: $color-gray-500;\n margin-bottom: 16px;\n}\n</style>\n","<template>\n <a\n v-bind=\"$attrs\"\n :target=\"target\"\n :href=\"routerDestinationOrHref\"\n :tabindex=\"isRoleButton ? 0 : undefined\"\n :role=\"isRoleButton ? 'button' : undefined\"\n class=\"c-text-link\"\n :class=\"{ 'c-text-link--underline': underline }\"\n @click=\"navigate\"\n >\n <slot />\n </a>\n</template>\n\n<script lang=\"ts\">\nimport type { PropType } from 'vue';\nimport { computed, defineComponent } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nimport { useRouterLink } from '@propelinc/citrus-ui/src/composables/router';\n\nexport default defineComponent({\n props: {\n /** Controls whether the text link functions as a router-link */\n to: { type: [String, Object] as PropType<RouteLocationRaw>, default: undefined },\n /** Designates the text link as an anchor and applies the href attribute */\n href: { type: String, default: undefined },\n /** Designates the target attribute. Only use with the href prop. */\n target: { type: String, default: undefined },\n /** Toggles whether the link should have an underline */\n underline: { type: Boolean, default: true },\n },\n setup(props) {\n const to = computed(() => props.to);\n const { href: routerDestination, navigate } = useRouterLink(to);\n const routerDestinationOrHref = computed(() => routerDestination.value ?? props.href);\n\n const isRoleButton = computed(() => {\n return !props.to && !props.href;\n });\n\n return {\n isRoleButton,\n navigate,\n routerDestinationOrHref,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-text-link {\n color: $color-black;\n font-weight: $font-weight-semibold;\n\n &--underline {\n @include link-underline;\n }\n}\n</style>\n","<template>\n <div class=\"c-third-party-logo\" :style=\"{ '--size': SIZE_TO_VALUE[size] }\">\n <img\n v-if=\"imageState === 'loaded' || imageState === 'loading'\"\n class=\"c-third-party-logo__img transition-opacity\"\n :class=\"{ 'opacity-0': imageState === 'loading' }\"\n :src=\"src\"\n :alt=\"alt\"\n @error=\"handleImageError\"\n @load=\"handleImageLoad\"\n />\n <c-squared-icon\n class=\"transition-opacity\"\n :class=\"{ 'opacity-0': imageState === 'loaded' }\"\n :icon=\"icon\"\n :color=\"color\"\n :large=\"size === 'large'\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, defineComponent, ref } from 'vue';\n\nimport CSquaredIcon from '@propelinc/citrus-ui/src/components/CSquaredIcon.vue';\n\ntype Size = 'medium' | 'large';\n\ntype ImageState = 'loading' | 'loaded' | 'failed';\n\nconst SIZES = new Set<Size>(['medium', 'large']);\n\nconst SIZE_TO_VALUE: Record<Size, `${number}px`> = {\n medium: '40px',\n large: '56px',\n};\n\n/**\n * A component that displays a third party logo with a fallback icon.\n *\n * The fallback icon is displayed while the image is loading or if the image fails to load.\n *\n * The image is rendered, but hidden, while loading, and displayed when loaded.\n */\nexport default defineComponent({\n name: 'CThirdPartyLogo',\n components: {\n CSquaredIcon,\n },\n props: {\n /**\n * The alt text for the logo.\n */\n alt: { type: String, required: true },\n /**\n * The color of the fallback icon logo\n */\n color: CSquaredIcon.props.color,\n /**\n * The Font Awesome icon to display as a fallback\n */\n icon: CSquaredIcon.props.icon,\n /**\n * The size of the logo. Defaults to `medium`.\n */\n size: {\n type: String as PropType<Size>,\n required: false,\n default: 'medium',\n validator: (value: string) => SIZES.has(value as Size),\n },\n /**\n * The URL of the logo image\n */\n src: { type: String, required: false, default: '' },\n },\n setup() {\n const imageState = ref<ImageState>('loading');\n\n const handleImageError = (): void => {\n imageState.value = 'failed';\n };\n\n const handleImageLoad = (): void => {\n imageState.value = 'loaded';\n };\n\n return {\n handleImageError,\n handleImageLoad,\n imageState,\n SIZE_TO_VALUE,\n };\n },\n});\n</script>\n\n<style scoped>\n.c-third-party-logo {\n border-radius: 8px;\n height: var(--size);\n isolation: isolate;\n object-fit: contain;\n overflow: hidden;\n position: relative;\n width: var(--size);\n}\n\n.c-third-party-logo__img {\n display: block;\n height: 100%;\n left: 0;\n object-fit: contain;\n position: absolute;\n top: 0;\n width: 100%;\n z-index: 1;\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.transition-opacity {\n transition: opacity 0.1s ease-in-out;\n}\n</style>\n","<template>\n <time v-bind=\"$attrs\" :datetime=\"isoString\">{{ timeago }}</time>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';\n\nconst props = withDefaults(\n defineProps<{\n datetime: string | number | Date;\n converter: (datetime: string | number | Date, locale: string, count?: number) => string;\n locale?: string;\n autoUpdate?: number | false;\n }>(),\n {\n locale: 'en',\n autoUpdate: 60,\n }\n);\n\n// NOTE(ram): Used to trigger reactivity in the computed property for auto updates.\nconst counter = ref(0);\nlet timer: number | null = null;\n\nconst isoString = computed((): string => new Date(props.datetime).toISOString());\nconst timeago = computed((): string =>\n props.converter(props.datetime, props.locale, counter.value)\n);\n\nconst startAutoUpdate = (): void => {\n if (props.autoUpdate) {\n // TODO(ram): This is a workaround to make sure the timer is of type number.\n // The type of setInterval is NodeJS.Timeout in Node.js and number in the browser.\n // This is causing issues in apps/healthcare-app.\n timer = setInterval(() => counter.value++, props.autoUpdate * 1000) as unknown as number;\n }\n};\n\nconst stopAutoUpdate = (): void => {\n if (timer) {\n clearInterval(timer);\n timer = null;\n }\n};\n\nwatch(\n () => props.autoUpdate,\n (value: number | false) => {\n stopAutoUpdate();\n if (value) {\n startAutoUpdate();\n }\n }\n);\n\nonMounted(() => {\n startAutoUpdate();\n});\n\nonBeforeUnmount(() => {\n stopAutoUpdate();\n});\n</script>\n","// src/components/alert/alert.styles.ts\nimport { css } from \"lit\";\nvar alert_styles_default = css`\n :host {\n display: contents;\n\n /* For better DX, we'll reset the margin here so the base part can inherit it */\n margin: 0;\n }\n\n .alert {\n position: relative;\n display: flex;\n align-items: stretch;\n background-color: var(--sl-panel-background-color);\n border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);\n border-top-width: calc(var(--sl-panel-border-width) * 3);\n border-radius: var(--sl-border-radius-medium);\n font-family: var(--sl-font-sans);\n font-size: var(--sl-font-size-small);\n font-weight: var(--sl-font-weight-normal);\n line-height: 1.6;\n color: var(--sl-color-neutral-700);\n margin: inherit;\n }\n\n .alert:not(.alert--has-icon) .alert__icon,\n .alert:not(.alert--closable) .alert__close-button {\n display: none;\n }\n\n .alert__icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--sl-font-size-large);\n padding-inline-start: var(--sl-spacing-large);\n }\n\n .alert--primary {\n border-top-color: var(--sl-color-primary-600);\n }\n\n .alert--primary .alert__icon {\n color: var(--sl-color-primary-600);\n }\n\n .alert--success {\n border-top-color: var(--sl-color-success-600);\n }\n\n .alert--success .alert__icon {\n color: var(--sl-color-success-600);\n }\n\n .alert--neutral {\n border-top-color: var(--sl-color-neutral-600);\n }\n\n .alert--neutral .alert__icon {\n color: var(--sl-color-neutral-600);\n }\n\n .alert--warning {\n border-top-color: var(--sl-color-warning-600);\n }\n\n .alert--warning .alert__icon {\n color: var(--sl-color-warning-600);\n }\n\n .alert--danger {\n border-top-color: var(--sl-color-danger-600);\n }\n\n .alert--danger .alert__icon {\n color: var(--sl-color-danger-600);\n }\n\n .alert__message {\n flex: 1 1 auto;\n display: block;\n padding: var(--sl-spacing-large);\n overflow: hidden;\n }\n\n .alert__close-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--sl-font-size-medium);\n padding-inline-end: var(--sl-spacing-medium);\n }\n`;\n\nexport {\n alert_styles_default\n};\n","import {\n SlIconButton\n} from \"./chunk.WQ4LAAP4.js\";\nimport {\n getAnimation,\n setDefaultAnimation\n} from \"./chunk.DHU6MIVB.js\";\nimport {\n waitForEvent\n} from \"./chunk.B4BZKR24.js\";\nimport {\n animateTo,\n stopAnimations\n} from \"./chunk.LHI6QEL2.js\";\nimport {\n LocalizeController\n} from \"./chunk.WLV3FVBR.js\";\nimport {\n HasSlotController\n} from \"./chunk.NYIIDP5N.js\";\nimport {\n alert_styles_default\n} from \"./chunk.OCMJ7QFW.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/alert/alert.component.ts\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { html } from \"lit\";\nimport { property, query } from \"lit/decorators.js\";\nvar toastStack = Object.assign(document.createElement(\"div\"), { className: \"sl-toast-stack\" });\nvar SlAlert = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.hasSlotController = new HasSlotController(this, \"icon\", \"suffix\");\n this.localize = new LocalizeController(this);\n this.open = false;\n this.closable = false;\n this.variant = \"primary\";\n this.duration = Infinity;\n }\n firstUpdated() {\n this.base.hidden = !this.open;\n }\n restartAutoHide() {\n clearTimeout(this.autoHideTimeout);\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n handleCloseClick() {\n this.hide();\n }\n handleMouseMove() {\n this.restartAutoHide();\n }\n async handleOpenChange() {\n if (this.open) {\n this.emit(\"sl-show\");\n if (this.duration < Infinity) {\n this.restartAutoHide();\n }\n await stopAnimations(this.base);\n this.base.hidden = false;\n const { keyframes, options } = getAnimation(this, \"alert.show\", { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n this.emit(\"sl-after-show\");\n } else {\n this.emit(\"sl-hide\");\n clearTimeout(this.autoHideTimeout);\n await stopAnimations(this.base);\n const { keyframes, options } = getAnimation(this, \"alert.hide\", { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n this.base.hidden = true;\n this.emit(\"sl-after-hide\");\n }\n }\n handleDurationChange() {\n this.restartAutoHide();\n }\n /** Shows the alert. */\n async show() {\n if (this.open) {\n return void 0;\n }\n this.open = true;\n return waitForEvent(this, \"sl-after-show\");\n }\n /** Hides the alert */\n async hide() {\n if (!this.open) {\n return void 0;\n }\n this.open = false;\n return waitForEvent(this, \"sl-after-hide\");\n }\n /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n */\n async toast() {\n return new Promise((resolve) => {\n if (toastStack.parentElement === null) {\n document.body.append(toastStack);\n }\n toastStack.appendChild(this);\n requestAnimationFrame(() => {\n this.clientWidth;\n this.show();\n });\n this.addEventListener(\n \"sl-after-hide\",\n () => {\n toastStack.removeChild(this);\n resolve();\n if (toastStack.querySelector(\"sl-alert\") === null) {\n toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n alert: true,\n \"alert--open\": this.open,\n \"alert--closable\": this.closable,\n \"alert--has-icon\": this.hasSlotController.test(\"icon\"),\n \"alert--primary\": this.variant === \"primary\",\n \"alert--success\": this.variant === \"success\",\n \"alert--neutral\": this.variant === \"neutral\",\n \"alert--warning\": this.variant === \"warning\",\n \"alert--danger\": this.variant === \"danger\"\n })}\n role=\"alert\"\n aria-hidden=${this.open ? \"false\" : \"true\"}\n @mousemove=${this.handleMouseMove}\n >\n <div part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\"></slot>\n </div>\n\n <div part=\"message\" class=\"alert__message\" aria-live=\"polite\">\n <slot></slot>\n </div>\n\n ${this.closable ? html`\n <sl-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"alert__close-button\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term(\"close\")}\n @click=${this.handleCloseClick}\n ></sl-icon-button>\n ` : \"\"}\n </div>\n `;\n }\n};\nSlAlert.styles = [component_styles_default, alert_styles_default];\nSlAlert.dependencies = { \"sl-icon-button\": SlIconButton };\n__decorateClass([\n query('[part~=\"base\"]')\n], SlAlert.prototype, \"base\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlAlert.prototype, \"open\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], SlAlert.prototype, \"closable\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlAlert.prototype, \"variant\", 2);\n__decorateClass([\n property({ type: Number })\n], SlAlert.prototype, \"duration\", 2);\n__decorateClass([\n watch(\"open\", { waitUntilFirstUpdate: true })\n], SlAlert.prototype, \"handleOpenChange\", 1);\n__decorateClass([\n watch(\"duration\")\n], SlAlert.prototype, \"handleDurationChange\", 1);\nsetDefaultAnimation(\"alert.show\", {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\nsetDefaultAnimation(\"alert.hide\", {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: \"ease\" }\n});\n\nexport {\n SlAlert\n};\n","import {\n SlAlert\n} from \"./chunk.ZNYIETUV.js\";\n\n// src/components/alert/alert.ts\nvar alert_default = SlAlert;\nSlAlert.define(\"sl-alert\");\n\nexport {\n alert_default\n};\n","<!-- eslint-disable vue/no-deprecated-slot-attribute -->\n<template>\n <sl-alert\n ref=\"alert\"\n class=\"c-toast\"\n :data-test=\"dataTest\"\n :data-open=\"isOpen || undefined\"\n :data-variant=\"computedVariant\"\n :class=\"`c-toast--${computedVariant}`\"\n :duration=\"duration\"\n :style=\"{ '--toast-base-transform': transform }\"\n @sl-hide=\"onHide\"\n @sl-after-hide=\"resetAnimation\"\n >\n <div class=\"flex-grow-1 d-flex flex-row align-center gap-4\">\n <slot name=\"icon\">\n <FontAwesomeIcon data-test=\"toast-icon\" fixed-width class=\"c-toast__icon\" :icon=\"icon\" />\n </slot>\n\n <div class=\"c-toast__message flex-grow-1\" data-test=\"toast-message\">\n <slot>{{ message }}</slot>\n </div>\n </div>\n\n <CIconButton\n data-test=\"toast-dismiss\"\n variant=\"tertiary\"\n :aria-label=\"$t('Close')\"\n :icon=\"faXmark\"\n @click=\"close\"\n />\n </sl-alert>\n</template>\n\n<script lang=\"ts\">\nimport {\n faCircleCheck,\n faCircleExclamation,\n faInfoCircle,\n faXmark,\n} from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\nimport '@shoelace-style/shoelace/dist/components/alert/alert.js';\nimport type SlAlert from '@shoelace-style/shoelace/dist/components/alert/alert.js';\nimport type { ElementAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry';\nimport type { PropType } from 'vue';\nimport { computed, defineComponent, onBeforeUnmount, ref, watchEffect } from 'vue';\n\nimport CIconButton from '@propelinc/citrus-ui/src/components/CIconButton.vue';\nimport { useShoelaceAnimation } from '@propelinc/citrus-ui/src/composables/animation';\nimport { useShoelaceShadowParts } from '@propelinc/citrus-ui/src/composables/elements';\nimport { useDragListener } from '@propelinc/citrus-ui/src/composables/gestures';\nimport { slideLeft, slideRight } from '@propelinc/citrus-ui/src/services/animation';\nimport type { ToastVariant } from '@propelinc/citrus-ui/src/types';\n\n/** Default duration for the toast to be visible. */\nconst DEFAULT_DURATION = 5000;\n/** The minimum distance, in pixels, the user has to drag left or right for\n * it to be considered a successful swipe. */\nconst MIN_SWIPE_DISTANCE = 150;\n/** The minimum speed, in pixels per millisecond, the user has to swipe for\n * it to be considered a successful swipe. */\nconst MIN_SWIPE_VELOCITY = 0.75;\n\nexport default defineComponent({\n name: 'CToast',\n components: { FontAwesomeIcon, CIconButton },\n props: {\n /** Show/hides the toast */\n value: { type: Boolean, default: false },\n /** The message rendered in the toast, using the default slot overrides this value */\n message: { type: String, default: '' },\n /**\n * @deprecated use `variant` prop instead\n * Renders the error state\n */\n error: { type: Boolean, default: false, deprecated: true },\n /**\n * @deprecated use `variant` prop instead\n * Renders the success state\n */\n success: { type: Boolean, default: false, deprecated: true },\n /**\n * @deprecated use `variant` prop instead\n * Renders the warning state\n */\n warning: { type: Boolean, default: false, deprecated: true },\n /** The variant of the toast */\n variant: { type: String as PropType<ToastVariant>, default: 'info' },\n /** Controls (overrides) whether the toast is dismissible. */\n dismissible: { type: Boolean as PropType<boolean | undefined>, default: undefined },\n /** The data-test attribute for the toast. */\n dataTest: { type: String, default: 'toast' },\n },\n emits: ['hide', 'input'],\n setup(props, { emit }) {\n const alert = ref<SlAlert | null>(null);\n const isOpen = ref(props.value);\n\n /**\n * Handle merging the deprecated `error`, `success`, and `warning` props\n * with the `variant` prop.\n */\n const computedVariant = computed(() => {\n if (props.error) {\n return 'error';\n } else if (props.success) {\n return 'success';\n } else if (props.warning) {\n return 'warning';\n }\n return props.variant;\n });\n\n const show = async (): Promise<void> => {\n isOpen.value = true;\n alert.value?.toast();\n };\n\n const onHide = (): void => {\n isOpen.value = false;\n emit('input', false);\n emit('hide');\n };\n\n const close = async (): Promise<void> => {\n alert.value?.hide();\n };\n\n // If our value changes, show or hide the toast respectively\n watchEffect(() => (props.value ? show() : close()));\n\n // Close the toast when the component is unmounted\n onBeforeUnmount(() => close());\n\n const shouldAutoDismiss = computed(() => {\n if (props.dismissible !== undefined) {\n return !props.dismissible;\n }\n return computedVariant.value === 'success';\n });\n\n const duration = computed(() => {\n return shouldAutoDismiss.value ? DEFAULT_DURATION : Infinity;\n });\n\n const icon = computed(() => {\n if (computedVariant.value === 'error') {\n return faCircleExclamation;\n } else if (computedVariant.value === 'success') {\n return faCircleCheck;\n } else {\n return faInfoCircle;\n }\n });\n\n const alertHideAnimation = ref<ElementAnimation | 'default'>('default');\n useShoelaceAnimation(alert, 'alert.hide', alertHideAnimation);\n\n const resetAnimation = (): void => {\n alertHideAnimation.value = 'default';\n };\n\n const { base } = useShoelaceShadowParts(alert, ['base']);\n const { dragDistance } = useDragListener(base, {\n onDragEnd: async ({ distance, velocity }) => {\n const absoluteDistance = Math.abs(distance.x);\n const absoluteVelocity = Math.abs(velocity.x);\n const shouldDismiss =\n absoluteDistance > MIN_SWIPE_DISTANCE || absoluteVelocity > MIN_SWIPE_VELOCITY;\n const dismissStart = absoluteDistance / base.value!.clientWidth;\n if (shouldDismiss) {\n const remainingDismissDistance = Math.max(base.value!.clientWidth - absoluteDistance, 0);\n const dismissDuration =\n remainingDismissDistance / Math.max(absoluteVelocity, MIN_SWIPE_VELOCITY);\n const slideDirection = velocity.x > 0 ? slideRight : slideLeft;\n alertHideAnimation.value = slideDirection({\n start: dismissStart,\n duration: dismissDuration,\n end: 1.1,\n });\n close();\n } else {\n const slideDirection = velocity.x > 0 ? slideRight : slideLeft;\n const slideBack = slideDirection({ start: dismissStart, end: 0 });\n base.value?.animate(slideBack.keyframes, slideBack.options);\n }\n },\n });\n\n const transform = computed(() => {\n return `translateX(${dragDistance.value?.x ?? 0}px)`;\n });\n\n return {\n duration,\n alert,\n icon,\n faXmark,\n isOpen,\n computedVariant,\n close,\n onHide,\n transform,\n resetAnimation,\n };\n },\n});\n</script>\n\n<style lang=\"scss\" scoped>\n@import '@propelinc/citrus-ui/src/styles/core';\n\n.c-toast {\n margin: 16px;\n\n &::part(base) {\n background-color: $color-blue-200;\n border: none;\n border-radius: $border-radius-next;\n box-shadow: $box-shadow-toast;\n color: $color-black;\n transform: var(--toast-base-transform);\n }\n\n &::part(message) {\n @include body;\n\n align-items: center;\n display: flex;\n padding: 16px 0 16px 16px;\n }\n\n &::part(icon) {\n padding-left: 12px;\n }\n}\n\n.c-toast--error::part(base) {\n background-color: $color-red-200;\n}\n\n.c-toast--success::part(base) {\n background-color: $color-green-200;\n}\n\n.c-toast--warning::part(base) {\n background-color: $color-gold-200;\n}\n\n.c-toast__message {\n flex: auto;\n}\n\n.c-toast__icon {\n color: $color-black;\n font-size: $font-size-icon-medium;\n}\n</style>\n","import { type Ref, inject, provide, ref } from 'vue';\n\nimport type { ToastVariant } from '../types';\n\n// NOTE(slanden): Cannot use a symbol here because it may break the inject/provide chain across MFEs\nconst GlobalToast = 'GLOBAL_TOAST';\n\nexport interface Toast {\n id: number;\n dataTest?: string;\n message: string;\n variant: ToastVariant;\n}\n\ninterface ToastInjection {\n dismissToast: (id: Toast['id']) => void;\n showToast: (toast: Omit<Toast, 'id'>) => void;\n toasts: Ref<Toast[]>;\n}\n\nlet id = 0;\n\nfunction getNextIdDefault(): number {\n return id++;\n}\n\n/**\n * Custom provider for our toasts. Enables us to declaratively manage toasts in event handlers.\n *\n * NOTE: injecting `getNextId` allows us to test the composable without worry of side effects\n */\nexport function useToastProvider(getNextId: () => number = getNextIdDefault): ToastInjection {\n const toasts = ref<Toast[]>([]);\n\n function showToast(newToast: Omit<Toast, 'id'>): Toast['id'] {\n const toastId = getNextId();\n\n toasts.value.push({ ...newToast, id: toastId });\n\n return toastId;\n }\n\n function dismissToast(id: Toast['id']): void {\n toasts.value = toasts.value.filter((toast) => toast.id !== id);\n }\n\n const context: ToastInjection = {\n dismissToast,\n showToast,\n toasts,\n };\n\n provide(GlobalToast, context);\n\n return context;\n}\n\nexport function useToast(): ToastInjection {\n return inject<ToastInjection>(GlobalToast, {\n dismissToast: () => {},\n showToast: () => {},\n toasts: ref<Toast[]>([]),\n });\n}\n","<template>\n <CToast\n v-for=\"toast in toasts\"\n :key=\"toast.id\"\n :value=\"true\"\n :data-test=\"toast.dataTest || 'c-toast'\"\n :message=\"toast.message\"\n :variant=\"toast.variant\"\n @hide=\"dismissToast(toast.id)\"\n />\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nimport CToast from '@propelinc/citrus-ui/src/components/CToast.vue';\n\nimport { useToast } from '../composables/toast';\n\nexport default defineComponent({\n name: 'CToastsList',\n components: { CToast },\n setup() {\n const { toasts, dismissToast } = useToast();\n\n return {\n toasts,\n dismissToast,\n };\n },\n});\n</script>\n","<template>\n <CMaskedTextField\n v-bind=\"$attrs\"\n :id=\"id\"\n ref=\"field\"\n :data-test=\"dataTest\"\n :value=\"value\"\n name=\"zip\"\n :label=\"label || $t('ZIP Code')\"\n mask=\"#####\"\n :placeholder=\"placeholder || '12345'\"\n :minlength=\"5\"\n :maxlength=\"5\"\n type=\"tel\"\n autocorrect=\"off\"\n autocapitalize=\"none\"\n :rules=\"computedRules\"\n @input=\"$emit('input', $event)\"\n @focus=\"$emit('focus', $event)\"\n @blur=\"$emit('blur', $event)\"\n @change=\"$emit('change', $event)\"\n >\n <template #label>\n <slot name=\"label\" />\n </template>\n <template #message>\n <slot name=\"message\" />\n </template>\n </CMaskedTextField>\n</template>\n\n<script lang=\"ts\">\nimport { type PropType, computed, defineComponent } from 'vue';\n\nimport CMaskedTextField from '@propelinc/citrus-ui/src/components/CMaskedTextField.vue';\nimport { useFocusableField } from '@propelinc/citrus-ui/src/composables/fields';\nimport { useTranslation } from '@propelinc/citrus-ui/src/composables/i18n';\nimport type { Rules } from '@propelinc/citrus-ui/src/composables/validations';\nimport { minLengthRule } from '@propelinc/shared-utils';\n\nexport default defineComponent({\n name: 'CZipcodeField',\n components: { CMaskedTextField },\n props: {\n dataTest: { type: String, default: 'zipcode-field' },\n id: { type: String, default: undefined },\n label: { type: String as PropType<string | null>, default: null },\n placeholder: { type: String as PropType<string | null>, default: null },\n rules: { type: Array as PropType<Rules<string>>, default: () => [] },\n value: { type: String, default: '' },\n },\n emits: ['input', 'focus', 'blur', 'change'],\n setup(props, { expose }) {\n const { t } = useTranslation();\n\n const defaultRules = [\n minLengthRule(5, t('Please enter a valid {inputLabel}', { inputLabel: t('ZIP Code') })),\n ];\n const computedRules = computed(() => [...defaultRules, ...props.rules]);\n\n const { field } = useFocusableField(expose);\n\n return {\n computedRules,\n field,\n };\n },\n});\n</script>\n","import type { App, DefineComponent, Plugin } from 'vue';\n\nimport * as Components from '@propelinc/citrus-ui/src/components';\nimport { scrollIntoView, tapAnimation } from '@propelinc/citrus-ui/src/services/directives';\n\nconst plugin: Plugin = {\n install(app: App): void {\n Object.entries(Components).forEach(([name, component]): void => {\n app.component(name, component as DefineComponent);\n });\n\n // TODO: this has to be passed to the vue() plugin for Vite instead\n app.config.compilerOptions.isCustomElement = (tag): boolean => tag.startsWith('sl-');\n\n app.directive('scroll-into-view', scrollIntoView);\n app.directive('tap-animation', tapAnimation);\n },\n};\n\nexport default plugin;\n","import Colors from '@propelinc/citrus-ui/src/colors/colors';\n\ntype Theme = Record<string, string>;\n\nconst CitrusTheme = Object.entries(Colors).reduce<Theme>((theme, [colorName, hex]) => {\n const kebabCaseName = colorName.toLowerCase().replace(/_/g, '-');\n theme[kebabCaseName] = hex;\n return theme;\n}, {});\n\n// NOTE(mohan): Jest tests don't properly import scss files, leading to\n// undefined values. Clear them since we don't need these things to be defined\n// in unit tests anyways.\nexport default process.env.NODE_ENV === 'test' ? {} : CitrusTheme;\n","import { faCircle, faSquare, faXmark } from '@fortawesome/pro-light-svg-icons';\nimport { faCircleDot, faSquareCheck } from '@fortawesome/pro-solid-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';\n\nconst Icons = {\n citrusCheckboxOn: {\n component: FontAwesomeIcon,\n props: { icon: faSquareCheck },\n },\n citrusCheckboxOff: {\n component: FontAwesomeIcon,\n props: { icon: faSquare },\n },\n citrusRadioOn: {\n component: FontAwesomeIcon,\n props: { icon: faCircleDot },\n },\n citrusRadioOff: {\n component: FontAwesomeIcon,\n props: { icon: faCircle },\n },\n citrusClear: {\n component: FontAwesomeIcon,\n props: { icon: faXmark },\n },\n} as const;\n\nexport default Icons;\n","export interface SplitInputField {\n characters: number;\n placeholder?: string;\n separator?: string;\n}\n\nexport type SplitInputRule = (v: string) => string | boolean;\n\nexport enum InputVariants {\n DEFAULT = 'default',\n CONTAINED = 'contained',\n SEGMENTED = 'segmented',\n}\n\nexport type ToastVariant = 'info' | 'success' | 'error' | 'warning';\n"],"names":["FLUID","ON_TOGGLE","_sfc_main$16","defineComponent","props","emit","fluid","toRefs","provide","accordion","ref","nextTick","openItems","acc","item","index","_openBlock","_createElementBlock","_hoisted_1","_renderSlot","_ctx","t","e","s","o","n$7","r","n","i","S","c","h","a","l","p","d","u","f","b","y$1","_a","_b","y","v","_","m","g","$","x","E","A","C","P","V","N","I","L","z","H","M","R","k","Z","B","D","details_styles_default","css","__defProp","__defProps","__getOwnPropDesc","__getOwnPropDescs","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","__knownSymbol","name","symbol","__defNormalProp","obj","key","value","__spreadValues","prop","__spreadProps","__decorateClass","decorators","target","kind","result","decorator","__await","promise","isYieldStar","__yieldStar","isAwait","method","it","resolve","defaultAnimationRegistry","customAnimationRegistry","ensureAnimation","animation","getLogicalAnimation","dir","setDefaultAnimation","animationName","setAnimation","el","getAnimation","options","customAnimation","defaultAnimation","waitForEvent","eventName","done","event","animateTo","keyframes","prefersReducedMotion","stopAnimations","shimKeyframesHeightAuto","calculatedHeight","keyframe","connectedElements","translations","fallback","documentDirection","documentLanguage","isClient","documentElementObserver","update","registerTranslation","translation","code","LocalizeController$1","host","lang","locale","language","region","primary","secondary","args","term","dateToFormat","numberToFormat","unit","slide","count","num","en_default","LocalizeController","DefaultLocalizationController","basePath","setBasePath","path","getBasePath","subpath","scripts","configScript","script","fallbackScript","library","library_default_default","icons","systemLibrary","library_system_default","registry","watchedIcons","watchIcon","icon","unwatchIcon","getIconLibrary","lib","icon_styles_default","watch","propertyName","resolvedOptions","proto","decoratedFnName","watchedProperties","changedProps","property","oldValue","newValue","component_styles_default","ShoelaceElement","LitElement","component","elementConstructor","currentlyRegisteredConstructor","newVersion","existingVersion","CACHEABLE_ERROR","RETRYABLE_ERROR","parser","iconCache","SlIcon","url","fileData","html","svg","div","svgEl","fromLibrary","iconResolver","isTemplateResult","state","i$2","SlDetails","changes","change","isRtl","classMap","query","useShoelaceAnimation","onMounted","animationValue","unref","isRef","nextAnimation","TAP_ANIMATION_DURATION_MS","useTapAnimation","downAnimation","upAnimation","onPointerDown","onPointerUp","useInternalValue","internalValue","newInternalValue","_sfc_main$15","FontAwesomeIcon","details","inject","injectedOrPropFluid","computed","injectedToggleItem","faChevronDown","_normalizeClass","_cache","_createVNode","_component_FontAwesomeIcon","_createElementVNode","_hoisted_2","_hoisted_3","BLACK","GRAY_100","GRAY_200","GRAY_300","GRAY_400","GRAY_500","GREEN_500","GOLD_500","RED_500","Colors","isHexColor","color","isRgbaColor","isCssColor","isColorKey","isValidColor","normalizedKey","_sfc_main$14","_createBlock","_Transition","useCssColor","normalizedColor","toValue","normalizedName","cssColor","SIZE_TO_FONT_SIZE","SIZE_TO_TRACK_WIDTH","_sfc_main$13","computedColor","computedTrackColor","computedSize","indicatorColorCode","trackColorCode","_normalizeStyle","TERTIARY","INHERIT_COLOR","_sfc_main$12","CLoader","CFadeTransition","TERTIARY_ICON_BUTTON","INHERIT_COLOR_ICON_BUTTON","initialBackgroundColor","bgCssColor","calculatedTextColor","hex","fullHex","match","ra","ga","ba","userTextCssColor","textCssColor","_component_CFadeTransition","_withCtx","_component_CLoader","_hoisted_4","_toDisplayString","_hoisted_5","_hoisted_6","_sfc_main$11","backgroundCssColor","style","_createTextVNode","drawer_styles_default","computedStyleMap","getCachedComputedStyle","computedStyle","isVisible","isOverflowingAndTabbable","overflowY","overflowX","isTabbable","tag","tabindex","getSlottedChildrenOutsideRootElement","slotElement","root","getTabbableElements","walkedEls","tabbableElements","walk","assignedEl","aTabindex","activeElements","activeElement","getDeepestActiveElement","activeModals","Modal","element","currentActiveElement","currentFocusIndex","addition","nextFocus","allActiveElements","modal","start","end","locks","getScrollbarWidth","documentWidth","getExistingBodyPadding","padding","lockBodyScrolling","lockingEl","scrollbarWidth","unlockBodyScrolling","icon_button_styles_default","SlIconButton","isLink","literal","ifDefined","HasSlotController","slotNames","slot","node","slotName","getTextContent","nodes","text","uppercaseFirstLetter","string","SlDrawer","source","autoFocusTarget","panelAnimation","overlayAnimation","trigger","BLOCK","LARGE","BOUNCE_AMOUNT","_sfc_main$10","large","_resolveDynamicComponent","getViewport","scrollToElement","rect","windowHeight","appHeight","estimatedHeaderHeight","estimatedFooterHeight","_c","_d","contentStartY","contentEndY","isObscuredByHeader","isObscuredByFooter","scrollIntoView","inputEl","debounce","DEFAULT_BOUNCE_AMOUNT","setupTapAnimation","bounceAmount","animationListeners","handler","tapAnimation","binding","__emit","onClick","$t","disabled","_unref","faXmark","useResizeObserver","callback","observer","onBeforeUnmount","useShoelaceShadowParts","shoelaceComponent","parts","shadowParts","part","shadowRoot","useDragListener","startDragTouch","lastDragTouch","dragVelocity","dragDistance","simplifyEvent","touchStartListener","touchMoveListener","newEvent","timeDelta","touchEndListener","addListeners","removeListeners","newElement","oldElement","useScrollBoundary","isScrolling","onScroll","onTouchEvent","onTouchEnd","useElasticClamp","resistance","min","max","absValue","vnode","Comment","Fragment","children","child","useSlotHasContent","slots","useSlots","DEFAULT_DURATION","DEFAULT_EASING","fadeIn","duration","easing","fadeOut","slideUp","slideDown","slideRight","slideLeft","MIN_SWIPE_DISTANCE","MIN_SWIPE_VELOCITY","MIN_DISMISS_VELOCITY","MIN_DISMISS_DURATION","DRAG_CLAMP_DISTANCE","SHEET_HEIGHT_FALLBACK","setCustomAnimation","_sfc_main$_","CButtonStack","CCloseButton","mounted","animatedValue","sheet","panel","overlay","body","handleDismiss","onRequestClose","onAfterClose","getTransformDistanceRatio","distance","velocity","remainingDismissDistance","dismissDuration","dismissStart","slideUpAnimation","fadeInAnimation","transformDistance","transformDistanceRatio","panelTransform","overlayOpacity","getDataTestAttr","suffix","dataTest","footerHasContent","isDismissVisible","_component_c_close_button","_component_CButtonStack","spinner_styles_default","SlSpinner","formCollections","reportValidityOverloads","checkValidityOverloads","userInteractedControls","interactions","FormControlController","isButton","val","reportValidity","control","emittedEvents","elements","input","formId","form","formCollection","hasInteracted","type","submitter","button","attr","isValid","required","originalInvalidEvent","slInvalidEvent","validValidityState","button_styles_default","SlButton","message","isBrowser","noop","isArray","warn","msg","isSameRouteRecord","isSameRouteLocationParams","isSameRouteLocationParamsValue","isEquivalentArray","NavigationType","NavigationDirection","isRouteLocation","route","NavigationFailureType","routerKey","routeLocationKey","useLink","router","currentRoute","hasPrevious","previousTo","to","activeRecordIndex","matched","length","routeMatched","currentMatched","parentRecordPath","getOriginalPath","isActive","includesParams","isExactActive","navigate","guardEvent","instance","getCurrentInstance","linkContextDevtools","watchEffect","outer","inner","innerValue","outerValue","record","useLinkAttrs","href","useRouterLink","toWithDefault","useLinkResult","_navigate","_href","isRouterLink","error","VARIANT_TO_SHOELACE_VARIANT","BLOCK_BOUNCE_AMOUNT","BASE_BOUNCE_AMOUNT","_sfc_main$Z","block","routerDestination","routerDestinationOrHref","dataLoading","injectedBlock","injectedOrPropBlock","dataBlock","iconSlotHasContent","hasIcon","computedVariant","shoelaceVariant","injectedLarge","injectedOrPropsLarge","injectedBounceAmount","_mergeProps","_toHandlers","$event","_component_font_awesome_icon","_createCommentVNode","_sfc_main$Y","_sfc_main$X","CCardHeader","attrs","borderCssColor","routingVariant","_component_CCardHeader","_sfc_main$W","_sfc_main$V","_sfc_main$U","appendSlotHasContent","idCounter","useId","id","VALIDATIONS","useValidationRuleCheck","rules","active","valid","isEmpty","requiredRule","rulesResult","allRules","rule","passesRules","validate","useFormValidationSupport","formValidations","useValidations","validateOn","onValidationResultChange","startValidating","clearValidations","onInput","onBlur","onChange","_sfc_main$T","CValidationMessage","idWithFallback","checkbox","validationMessage","isValidationValid","validationListeners","faCheck","_component_CValidationMessage","_sfc_main$S","_sfc_main$R","_sfc_main$Q","numerator","displayText","useA11yLabelCheck","componentName","useAttrs","_sfc_main$P","CButton","injectedTertiary","injectedOrPropTertiary","inheritColor","_component_CButton","useTranslation","currentInstance","_sfc_main$O","CFormFieldCounter","CIconButton","expose","isFocused","inputHidden","inputType","hideToggleAriaLabel","inputValue","prefixSlotHasContent","suffixSlotHasContent","messageSlotHasContent","toggleHidden","onFocus","clearInput","focus","blur","fallthroughAttrs","__","rest","rootStyles","faEye","faEyeSlash","_component_CIconButton","_component_CFormFieldCounter","_hoisted_7","toNumber","parsed","useInputMask","maskOptions","onMaska","onMaskaArray","detail","maskInput","newInput","MaskInput","mask","Mask","maskedValue","useMaskedMinLength","minlength","maskTokens","findMaskedMinLength","maskArray","char","minlengthValue","useMaskedMaxLength","maxlength","maxlengthValue","_sfc_main$N","CTextField","textField","inputMask","unmaskedValue","maskedMinLength","maskedMaxLength","counterValue","unmaskedRules","_component_CTextField","parseDateFromString","dateString","date","calculateAge","dob","today","age","monthDiff","identity","identity_1","apply","func","thisArg","_apply","require$$0","nativeMax","overRest","transform","array","otherArgs","_overRest","constant","constant_1","freeGlobal","global","_freeGlobal","freeSelf","_root","Symbol","_Symbol","objectProto","hasOwnProperty","nativeObjectToString","symToStringTag","getRawTag","isOwn","unmasked","_getRawTag","objectToString","_objectToString","require$$1","require$$2","nullTag","undefinedTag","baseGetTag","_baseGetTag","isObject","isObject_1","asyncTag","funcTag","genTag","proxyTag","isFunction","isFunction_1","coreJsData","_coreJsData","maskSrcKey","uid","isMasked","_isMasked","funcProto","funcToString","toSource","_toSource","require$$3","reRegExpChar","reIsHostCtor","reIsNative","baseIsNative","pattern","_baseIsNative","getValue","object","_getValue","getNative","_getNative","defineProperty","_defineProperty","baseSetToString","_baseSetToString","HOT_COUNT","HOT_SPAN","nativeNow","shortOut","lastCalled","stamp","remaining","_shortOut","setToString","_setToString","baseRest","_baseRest","eq","other","eq_1","MAX_SAFE_INTEGER","isLength","isLength_1","isArrayLike","isArrayLike_1","reIsUint","isIndex","_isIndex","isIterateeCall","_isIterateeCall","baseTimes","iteratee","_baseTimes","isObjectLike","isObjectLike_1","argsTag","baseIsArguments","_baseIsArguments","propertyIsEnumerable","isArguments","isArguments_1","isArray_1","stubFalse","stubFalse_1","freeExports","exports","freeModule","module","moduleExports","Buffer","nativeIsBuffer","isBuffer","arrayTag","boolTag","dateTag","errorTag","mapTag","numberTag","objectTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","baseIsTypedArray","_baseIsTypedArray","baseUnary","_baseUnary","freeProcess","nodeUtil","types","nodeIsTypedArray","isTypedArray","isTypedArray_1","require$$4","require$$5","arrayLikeKeys","inherited","isArr","isArg","isBuff","isType","skipIndexes","_arrayLikeKeys","isPrototype","Ctor","_isPrototype","nativeKeysIn","_nativeKeysIn","baseKeysIn","isProto","_baseKeysIn","keysIn","keysIn_1","defaults","sources","guard","propsIndex","propsLength","defaults_1","createMinLengthValidator","minLength","ruleFromValidator","validator","errorMessage","minLengthRule","isValidDateInAgeRange","minAge","maxAge","dobDate","isValidEmail","email","_sfc_main$M","CMaskedTextField","parseDate","year","month","day","formattedDate","lastEmittedValue","emitIsoDate","defaultLabel","defaultPlaceholder","inputLabel","defaultRules","createMinLengthRule","maxAgeRule","validDateRule","dayjs","computedLabel","computedPlaceholder","computedRules","dateLength","_component_CMaskedTextField","_sfc_main$L","select","_Fragment","_renderList","_sfc_main$K","CSelect","localMonth","localDay","localYear","hasError","messages","localValue","monthRules","dayRules","yearRules","monthOptions","dayOptions","daysInMonth","currentYear","yearOptions","localRules","validation","validationResult","emitDate","_component_c_select","_sfc_main$J","ANIMATIONS_DISABLED","_sfc_main$I","injectedDisabled","isDisabled","content","height","entry","_sfc_main$H","hasValue","onFileChange","files","file","_sfc_main$G","footer","footerElement","_sfc_main$F","inputs","filteredInputs","inputArray","getInvalidInputs","newInvalidInputs","oldInvalidInputs","newValid","oldValid","invalidInputs","firstInvalidField","scrollIntoViewIfNeeded","_withModifiers","_sfc_main$E","_sfc_main$D","titleSlotHasContent","labelSlotHasContent","_sfc_main$C","prefix","iconName","useWhiteIcon","_sfc_main$B","CSquaredIcon","_component_CSquaredIcon","_sfc_main$A","CListItemIcon","CListItemContent","isTappable","tagAttrs","actionSlotHasContent","renderActionSlot","mergeProps","faChevronRight","_component_CListItemIcon","_component_CListItemContent","_createSlots","propelIcon","propelLockup","_sfc_main$z","menu_styles_default","SlMenu","menuItemTypes","items","activeItem","_sfc_main$y","menu_item_styles_default","SubmenuController","hasSlotController","localize","createRef","submenuSlot","menu","left","top","width","menuItems","elt","delay","styleMap","skidding","accumulator","_a2","styleValue","pxValue","isLtr","popup_styles_default","round","floor","createCoords","oppositeSideMap","oppositeAlignmentMap","clamp","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","yAxisSides","getSideAxis","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","getPaddingObject","rectToClientRect","computeCoordsFromPlacement","_ref","reference","floating","sideAxis","alignLength","isVertical","commonX","commonY","commonAlign","coords","computePosition","config","strategy","middleware","platform","validMiddleware","statefulPlacement","middlewareData","resetCount","fn","nextX","nextY","data","reset","detectOverflow","_await$platform$isEle","boundary","rootBoundary","elementContext","altBoundary","paddingObject","clippingClientRect","offsetParent","offsetScale","elementClientRect","arrow","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","min$1","center","offset","shouldAddOffset","alignmentOffset","flip","_middlewareData$arrow","_middlewareData$flip","initialPlacement","checkMainAxis","checkCrossAxis","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","detectOverflowOptions","initialSideAxis","isBasePlacement","fallbackPlacements","hasFallbackAxisSideDirection","placements","overflow","overflows","overflowsData","sides","_middlewareData$flip2","_overflowsData$filter","nextIndex","nextPlacement","resetPlacement","_overflowsData$filter2","currentSideAxis","originSides","convertValueToCoords","mainAxisMulti","crossAxisMulti","rawValue","mainAxis","crossAxis","_middlewareData$offse","diffCoords","shift","limiter","mainAxisCoord","crossAxisCoord","minSide","maxSide","limitedCoords","size","_state$middlewareData","_state$middlewareData2","heightSide","widthSide","maximumClippingHeight","maximumClippingWidth","overflowAvailableHeight","overflowAvailableWidth","noShift","availableHeight","availableWidth","xMin","xMax","yMin","yMax","nextDimensions","hasWindow","getNodeName","isNode","getWindow","_node$ownerDocument","getDocumentElement","isElement","isHTMLElement","isShadowRoot","invalidOverflowDisplayValues","isOverflowElement","display","getComputedStyle","tableElements","isTableElement","topLayerSelectors","isTopLayer","selector","transformProperties","willChangeValues","containValues","isContainingBlock","elementOrCss","webkit","isWebKit","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","lastTraversableNodeNames","getNodeScroll","getNearestOverflowAncestor","parentNode","getOverflowAncestors","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement","getCssDimensions","getComputedStyle$1","hasOffset","offsetWidth","offsetHeight","shouldFallback","unwrapElement","getScale","domElement","noOffsets","getVisualOffsets","shouldAddVisualOffsets","isFixed","floatingOffsetParent","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scale","visualOffsets","offsetWin","currentWin","currentIFrame","iframeScale","iframeRect","getWindowScrollBarX","leftScroll","getHTMLOffset","documentElement","scroll","htmlRect","convertOffsetParentRelativeRectToViewportRelativeRect","topLayer","offsets","isOffsetParentAnElement","offsetRect","htmlOffset","getClientRects","getDocumentRect","SCROLLBAR_MAX","getViewportRect","visualViewport","visualViewportBased","windowScrollbarX","doc","bodyStyles","bodyMarginInline","clippingStableScrollbarWidth","absoluteOrFixed","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","getClippingElementAncestors","cache","cachedResult","currentContainingBlockComputedStyle","elementIsFixed","currentNodeIsContaining","ancestor","getClippingRect","clippingAncestors","firstClippingAncestor","clippingRect","accRect","getDimensions","getRectRelativeToOffsetParent","setLeftRTLScrollbarOffset","isStaticPositioned","getTrueOffsetParent","polyfill","rawOffsetParent","getOffsetParent","svgOffsetParent","getElementRects","getOffsetParentFn","getDimensionsFn","floatingDimensions","isRTL","rectsAreEqual","observeMove","onMove","io","timeoutId","cleanup","_io","refresh","skip","threshold","elementRectForRootMargin","insetTop","insetRight","insetBottom","insetLeft","isFirstUpdate","handleObserve","entries","ratio","autoUpdate","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","reobserveFrame","resizeObserver","firstEntry","_resizeObserver","frameId","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","offset$1","shift$1","flip$1","size$1","arrow$1","mergedOptions","platformWithCache","computePosition$1","isVirtualElement","SlPopup","anchorRect","popupRect","topLeftX","topLeftY","topRightX","topRightY","bottomLeftX","bottomLeftY","bottomRightX","bottomRightY","syncWidth","syncHeight","staticSide","arrowX","arrowY","right","bottom","SlMenuItem","textLabel","isSubmenuExpanded","_sfc_main$x","CCheckbox","_component_CCheckbox","menu_label_styles_default","SlMenuLabel","_sfc_main$w","dialog_styles_default","SlDialog","_sfc_main$v","CExpandTransition","enableExpandTransition","loadingMessage","dialogLabel","_component_CExpandTransition","_hoisted_8","_sfc_main$u","CModal","_component_CModal","_sfc_main$t","farXmark","useFocusableField","field","_sfc_main$s","SELECTED_VALUE","TOGGLE_VALUE","ROLE","_sfc_main$r","injectedRole","injectedSelectedValue","toggleValue","toggleVariant","isSelected","ariaChecked","role","nextValue","_sfc_main$q","CPill","option","_component_CPill","_sfc_main$p","popup","handleMouseLeave","handleOutsideClick","onUnmounted","progress_bar_styles_default","SlProgressBar","_sfc_main$o","_sfc_main$n","trackCssColor","RADIO_STATE","_sfc_main$m","parentState","_sfc_main$l","mandatory","radioGroup","fullWidth","_sfc_main$j","_sfc_main$h","_sfc_main$f","CSkeleton","_component_CSkeleton","_sfc_main$e","LINE_TYPE_TO_CLASS","_sfc_main$d","_sfc_main$c","_sfc_main$b","fields","placeholder","_sfc_main$a","fourDigitRule","fullSsnRule","faLock","_sfc_main$9","hasCount","switch_styles_default","defaultValue","ctor","attributeChangedCallback","old","attributeName","converter","defaultConverter","form_control_styles_default","SlSwitch","checked","hasHelpTextSlot","hasHelpText","live","_sfc_main$8","_sfc_main$7","CSwitch","CListItem","_component_CListItem","_component_CSwitch","_sfc_main$6","textarea","_sfc_main$5","SIZES","SIZE_TO_VALUE","_sfc_main$4","imageState","_component_c_squared_icon","__props","counter","timer","isoString","timeago","startAutoUpdate","stopAutoUpdate","$attrs","alert_styles_default","toastStack","SlAlert","_sfc_main$2","alert","isOpen","show","onHide","close","shouldAutoDismiss","faCircleExclamation","faCircleCheck","faInfoCircle","alertHideAnimation","resetAnimation","base","absoluteDistance","absoluteVelocity","shouldDismiss","slideDirection","slideBack","GlobalToast","useToast","_sfc_main$1","CToast","toasts","dismissToast","toast","_component_CToast","_sfc_main","plugin","app","Components","CitrusTheme","theme","colorName","kebabCaseName","Icons","faSquareCheck","faSquare","faCircleDot","faCircle","InputVariants"],"mappings":";;;;;;;;;AAEO,MAAMA,KAAQ,OAAO,OAAO,GACtBC,KAAY,OAAO,WAAW,GCS3CC,KAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA;AAAA,IAEL,OAAO,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EAAM;AAAA,EAEzC,OAAO,CAAC,QAAQ;AAAA,EAChB,MAAMC,GAAO,EAAE,MAAAC,KAAQ;AACrB,UAAM,EAAE,OAAAC,EAAA,IAAUC,GAAOH,CAAK;AAC9B,IAAAI,GAAQR,IAAOM,CAAK;AAEpB,UAAMG,IAAYC,EAA2B,IAAI;AACjD,WAAAF,GAAQP,IAAW,YAAY;AAC7B,YAAMU,GAAA;AAIN,YAAMC,IAH8B,MAAM;AAAA,QACxCH,EAAU,MAAO,iBAAiB,uBAAuB;AAAA,MAAA,EAE1B,OAAiB,CAACI,GAAKC,GAAMC,MACrDD,EAAK,aAAa,MAAM,IAAI,CAAC,GAAGD,GAAKE,CAAK,IAAIF,GACpD,CAAA,CAAE;AACL,MAAAR,EAAK,UAAUO,CAAS;AAAA,IAC1B,CAAC,GAEM,EAAE,WAAAH,EAAA;AAAA,EACX;AACF,CAAC;;;;;;EAp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,mBAAmB;AAAA,IACjB,WAAW/xC;AAAA,IACX,OAAO,EAAE,MAAMgyC,GAAA;AAAA,EAAS;AAAA,EAE1B,eAAe;AAAA,IACb,WAAWhyC;AAAA,IACX,OAAO,EAAE,MAAMiyC,GAAA;AAAA,EAAY;AAAA,EAE7B,gBAAgB;AAAA,IACd,WAAWjyC;AAAA,IACX,OAAO,EAAE,MAAMkyC,GAAA;AAAA,EAAS;AAAA,EAE1B,aAAa;AAAA,IACX,WAAWlyC;AAAA,IACX,OAAO,EAAE,MAAM+K,GAAA;AAAA,EAAQ;AAE3B;ACjBO,IAAKonC,uBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,YAAY,aACZA,EAAA,YAAY,aAHFA,IAAAA,MAAA,CAAA,CAAA;","x_google_ignoreList":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,42,43,44,45,46,47,48,49,50,51,52,63,64,65,66,67,68,69,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,154,155,156,158,159,160,161,162,163,164,165,166,167,168,169,170,172,173,174,176,177,178,187,189,190,191,192,210,211,212,213,214,215,222,223,224]}
|