@foxy.io/elements 1.16.0-beta.5 → 1.16.0
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/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +2 -2
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-api.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +15 -15
- package/dist/cdn/foxy-customer.js +6 -6
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-nucleon-element.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +4 -4
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/{shared-f3b35364.js → shared-07134f93.js} +1 -1
- package/dist/cdn/{shared-7819b0b0.js → shared-073cb8e9.js} +1 -1
- package/dist/cdn/{shared-368a2f85.js → shared-0f38a631.js} +1 -1
- package/dist/cdn/{shared-25e9c276.js → shared-1a67bc75.js} +4 -4
- package/dist/cdn/shared-1a91d467.js +1 -0
- package/dist/cdn/shared-1de261b3.js +1 -0
- package/dist/cdn/shared-21419f10.js +1 -0
- package/dist/cdn/{shared-99065f2a.js → shared-218ba06e.js} +1 -1
- package/dist/cdn/{shared-3ffd77da.js → shared-30dd6de7.js} +19 -14
- package/dist/cdn/shared-39e3ae67.js +1 -0
- package/dist/cdn/{shared-2bb49907.js → shared-448781f9.js} +1 -1
- package/dist/cdn/{shared-35de1004.js → shared-46ee137f.js} +10 -10
- package/dist/cdn/shared-4f1f4281.js +1 -0
- package/dist/cdn/{shared-b8f492a4.js → shared-4f424828.js} +2 -2
- package/dist/cdn/shared-50765afb.js +1 -0
- package/dist/cdn/{shared-e59c65e3.js → shared-548f721a.js} +1 -1
- package/dist/cdn/shared-5535f38f.js +15 -0
- package/dist/cdn/shared-55481c27.js +1 -0
- package/dist/cdn/{shared-f0ba30e8.js → shared-59e44f29.js} +1 -1
- package/dist/cdn/{shared-757bb517.js → shared-5a54a9bc.js} +1 -1
- package/dist/cdn/{shared-bc94606b.js → shared-60126eee.js} +1 -1
- package/dist/cdn/shared-63eaded9.js +159 -0
- package/dist/cdn/{shared-5097c880.js → shared-65dfd512.js} +11 -2
- package/dist/cdn/{shared-d3bf9ac0.js → shared-6d45a07b.js} +2 -2
- package/dist/cdn/{shared-38f8a319.js → shared-6f412a43.js} +7 -7
- package/dist/cdn/{shared-f3655f42.js → shared-756034e4.js} +1 -1
- package/dist/cdn/shared-7f0a9790.js +1 -0
- package/dist/cdn/shared-81cd9eac.js +1 -0
- package/dist/cdn/shared-87aa97d2.js +1 -0
- package/dist/cdn/shared-8b20bc23.js +12 -0
- package/dist/cdn/{shared-22103348.js → shared-8f2c9582.js} +1 -1
- package/dist/cdn/{shared-0479553e.js → shared-9221e6b2.js} +1 -1
- package/dist/cdn/{shared-60e98fbf.js → shared-a040d79d.js} +1 -1
- package/dist/cdn/shared-a62e1a93.js +1 -0
- package/dist/cdn/shared-ad16479c.js +1 -0
- package/dist/cdn/{shared-11c2efc8.js → shared-b0f0e8b5.js} +1 -1
- package/dist/cdn/shared-b58b8353.js +1 -0
- package/dist/cdn/{shared-d519a301.js → shared-b710881a.js} +2 -2
- package/dist/cdn/shared-c64bc1a0.js +1 -0
- package/dist/cdn/shared-ce2ac6b4.js +1 -0
- package/dist/cdn/shared-db4f299b.js +1 -0
- package/dist/cdn/shared-df730f90.js +1 -0
- package/dist/cdn/{shared-7f3ca8e7.js → shared-ea9f7255.js} +5 -5
- package/dist/cdn/{shared-9d7aaf7a.js → shared-f4ad24f4.js} +1 -1
- package/dist/cdn/shared-f6e51811.js +1 -0
- package/dist/cdn/{shared-bbfdfee2.js → shared-f7fbb249.js} +10 -10
- package/dist/cdn/{shared-f3f9f752.js → shared-fab8c705.js} +10 -10
- package/dist/cdn/shared-ff79f3f9.js +230 -0
- package/dist/cdn/translations/coupon-form/en.json +2 -21
- package/dist/cdn/translations/customer-portal/se.json +223 -0
- package/dist/cdn/translations/gift-card-form/en.json +0 -21
- package/dist/elements/private/Dialog/Dialog.d.ts +2 -4
- package/dist/elements/private/Dialog/Dialog.js +1 -3
- package/dist/elements/private/Dialog/Dialog.js.map +1 -1
- package/dist/elements/private/EditableList/EditableList.d.ts +2 -4
- package/dist/elements/private/EditableList/EditableList.js +1 -3
- package/dist/elements/private/EditableList/EditableList.js.map +1 -1
- package/dist/elements/private/FrequencyInput/FrequencyInput.d.ts +1 -3
- package/dist/elements/private/FrequencyInput/FrequencyInput.js +1 -2
- package/dist/elements/private/FrequencyInput/FrequencyInput.js.map +1 -1
- package/dist/elements/public/CollectionPage/CollectionPage.d.ts +3 -4
- package/dist/elements/public/CollectionPage/CollectionPage.js +3 -5
- package/dist/elements/public/CollectionPage/CollectionPage.js.map +1 -1
- package/dist/elements/public/CollectionPage/types.d.ts +0 -1
- package/dist/elements/public/CollectionPage/types.js.map +1 -1
- package/dist/elements/public/CollectionPages/CollectionPages.d.ts +2 -4
- package/dist/elements/public/CollectionPages/CollectionPages.js +1 -3
- package/dist/elements/public/CollectionPages/CollectionPages.js.map +1 -1
- package/dist/elements/public/CouponForm/CouponForm.js +35 -36
- package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
- package/dist/elements/public/CouponForm/index.d.ts +0 -1
- package/dist/elements/public/CouponForm/index.js +0 -1
- package/dist/elements/public/CouponForm/index.js.map +1 -1
- package/dist/elements/public/CustomerApi/CustomerApi.d.ts +1 -3
- package/dist/elements/public/CustomerApi/CustomerApi.js +1 -2
- package/dist/elements/public/CustomerApi/CustomerApi.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.d.ts +1 -3
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.js +1 -2
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js +3 -12
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.d.ts +1 -3
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js +1 -2
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.d.ts +1 -3
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js +1 -2
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.d.ts +1 -3
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.js +1 -2
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.js.map +1 -1
- package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.js +1 -2
- package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.js.map +1 -1
- package/dist/elements/public/GiftCardForm/GiftCardForm.js +15 -28
- package/dist/elements/public/GiftCardForm/GiftCardForm.js.map +1 -1
- package/dist/elements/public/GiftCardForm/index.d.ts +0 -1
- package/dist/elements/public/GiftCardForm/index.js +0 -1
- package/dist/elements/public/GiftCardForm/index.js.map +1 -1
- package/dist/elements/public/I18n/I18n.d.ts +1 -3
- package/dist/elements/public/I18n/I18n.js +1 -2
- package/dist/elements/public/I18n/I18n.js.map +1 -1
- package/dist/elements/public/NucleonElement/NucleonElement.d.ts +1 -7
- package/dist/elements/public/NucleonElement/NucleonElement.js +1 -13
- package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
- package/dist/elements/public/Pagination/Pagination.d.ts +1 -3
- package/dist/elements/public/Pagination/Pagination.js +2 -3
- package/dist/elements/public/Pagination/Pagination.js.map +1 -1
- package/dist/elements/public/PaymentCard/PaymentCard.js +1 -1
- package/dist/elements/public/PaymentCard/PaymentCard.js.map +1 -1
- package/dist/elements/public/QueryBuilder/QueryBuilder.d.ts +1 -3
- package/dist/elements/public/QueryBuilder/QueryBuilder.js +1 -2
- package/dist/elements/public/QueryBuilder/QueryBuilder.js.map +1 -1
- package/dist/elements/public/Spinner/Spinner.d.ts +2 -4
- package/dist/elements/public/Spinner/Spinner.js +1 -3
- package/dist/elements/public/Spinner/Spinner.js.map +1 -1
- package/dist/elements/public/index.d.ts +0 -13
- package/dist/elements/public/index.defined.d.ts +0 -13
- package/dist/elements/public/index.defined.js +0 -13
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +0 -13
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/configurable.d.ts +3 -5
- package/dist/mixins/configurable.js +4 -39
- package/dist/mixins/configurable.js.map +1 -1
- package/dist/mixins/themeable.js +4 -6655
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/mixins/translatable.d.ts +1 -3
- package/dist/mixins/translatable.js +2 -14
- package/dist/mixins/translatable.js.map +1 -1
- package/package.json +3 -3
- package/dist/cdn/foxy-copy-to-clipboard.js +0 -1
- package/dist/cdn/foxy-coupon-detail-card.js +0 -1
- package/dist/cdn/foxy-discount-builder.js +0 -1
- package/dist/cdn/foxy-discount-detail-card.js +0 -1
- package/dist/cdn/foxy-item-card.js +0 -1
- package/dist/cdn/foxy-item-form.js +0 -1
- package/dist/cdn/foxy-item-option-card.js +0 -1
- package/dist/cdn/foxy-item-option-form.js +0 -1
- package/dist/cdn/foxy-report-form.js +0 -195
- package/dist/cdn/foxy-reports-table.js +0 -41
- package/dist/cdn/foxy-shipment-card.js +0 -17
- package/dist/cdn/foxy-swipe-actions.js +0 -1
- package/dist/cdn/foxy-transaction.js +0 -64
- package/dist/cdn/shared-007660a6.js +0 -12
- package/dist/cdn/shared-06014421.js +0 -1
- package/dist/cdn/shared-1b064836.js +0 -1
- package/dist/cdn/shared-1ddccf4d.js +0 -1
- package/dist/cdn/shared-2eee69db.js +0 -1
- package/dist/cdn/shared-3026cee0.js +0 -15
- package/dist/cdn/shared-34998df6.js +0 -1
- package/dist/cdn/shared-4e63d6e0.js +0 -1
- package/dist/cdn/shared-518902c8.js +0 -1
- package/dist/cdn/shared-5e75308a.js +0 -1
- package/dist/cdn/shared-64657919.js +0 -1
- package/dist/cdn/shared-7f33a83a.js +0 -159
- package/dist/cdn/shared-874bbae5.js +0 -1
- package/dist/cdn/shared-92d6f937.js +0 -1
- package/dist/cdn/shared-96df3c85.js +0 -1
- package/dist/cdn/shared-9a089d49.js +0 -1
- package/dist/cdn/shared-9d4835ed.js +0 -1
- package/dist/cdn/shared-a8e21a41.js +0 -1
- package/dist/cdn/shared-b4a4a92b.js +0 -1
- package/dist/cdn/shared-c3c424cd.js +0 -1
- package/dist/cdn/shared-c4f0a219.js +0 -1
- package/dist/cdn/shared-cad5fe82.js +0 -1
- package/dist/cdn/shared-ce2aab66.js +0 -1
- package/dist/cdn/shared-e090608c.js +0 -201
- package/dist/cdn/shared-e6f3e9f0.js +0 -6
- package/dist/cdn/shared-ea9af4b0.js +0 -29
- package/dist/cdn/shared-f7bddf72.js +0 -9
- package/dist/cdn/shared-fe8ec1f9.js +0 -1
- package/dist/cdn/translations/copy-to-clipboard/en.json +0 -6
- package/dist/cdn/translations/item-card/en.json +0 -9
- package/dist/cdn/translations/item-form/en.json +0 -387
- package/dist/cdn/translations/item-option-form/en.json +0 -43
- package/dist/cdn/translations/report-form/en.json +0 -38
- package/dist/cdn/translations/reports-table/en.json +0 -21
- package/dist/cdn/translations/shipment-card/en.json +0 -470
- package/dist/cdn/translations/transaction/en.json +0 -941
- package/dist/elements/index.d.ts +0 -1
- package/dist/elements/index.js +0 -2
- package/dist/elements/index.js.map +0 -1
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.d.ts +0 -22
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.js +0 -79
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.js.map +0 -1
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.d.ts +0 -4
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.js +0 -6
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.js.map +0 -1
- package/dist/elements/internal/InternalCard/InternalCard.d.ts +0 -13
- package/dist/elements/internal/InternalCard/InternalCard.js +0 -43
- package/dist/elements/internal/InternalCard/InternalCard.js.map +0 -1
- package/dist/elements/internal/InternalCard/index.d.ts +0 -3
- package/dist/elements/internal/InternalCard/index.js +0 -5
- package/dist/elements/internal/InternalCard/index.js.map +0 -1
- package/dist/elements/internal/InternalCollapsibleCard/InternalCollapsibleCard.d.ts +0 -16
- package/dist/elements/internal/InternalCollapsibleCard/InternalCollapsibleCard.js +0 -63
- package/dist/elements/internal/InternalCollapsibleCard/InternalCollapsibleCard.js.map +0 -1
- package/dist/elements/internal/InternalCollapsibleCard/index.d.ts +0 -5
- package/dist/elements/internal/InternalCollapsibleCard/index.js +0 -7
- package/dist/elements/internal/InternalCollapsibleCard/index.js.map +0 -1
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.d.ts +0 -13
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.js +0 -119
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.js.map +0 -1
- package/dist/elements/internal/InternalCollectionCard/index.d.ts +0 -7
- package/dist/elements/internal/InternalCollectionCard/index.js +0 -9
- package/dist/elements/internal/InternalCollectionCard/index.js.map +0 -1
- package/dist/elements/internal/InternalControl/InternalControl.d.ts +0 -21
- package/dist/elements/internal/InternalControl/InternalControl.js +0 -53
- package/dist/elements/internal/InternalControl/InternalControl.js.map +0 -1
- package/dist/elements/internal/InternalControl/index.d.ts +0 -2
- package/dist/elements/internal/InternalControl/index.js +0 -4
- package/dist/elements/internal/InternalControl/index.js.map +0 -1
- package/dist/elements/internal/InternalDateControl/InternalDateControl.d.ts +0 -14
- package/dist/elements/internal/InternalDateControl/InternalDateControl.js +0 -60
- package/dist/elements/internal/InternalDateControl/InternalDateControl.js.map +0 -1
- package/dist/elements/internal/InternalDateControl/index.d.ts +0 -4
- package/dist/elements/internal/InternalDateControl/index.js +0 -6
- package/dist/elements/internal/InternalDateControl/index.js.map +0 -1
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.d.ts +0 -25
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.js +0 -78
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.js.map +0 -1
- package/dist/elements/internal/InternalEditableControl/index.d.ts +0 -3
- package/dist/elements/internal/InternalEditableControl/index.js +0 -5
- package/dist/elements/internal/InternalEditableControl/index.js.map +0 -1
- package/dist/elements/internal/InternalForm/InternalForm.d.ts +0 -13
- package/dist/elements/internal/InternalForm/InternalForm.js +0 -49
- package/dist/elements/internal/InternalForm/InternalForm.js.map +0 -1
- package/dist/elements/internal/InternalForm/index.d.ts +0 -6
- package/dist/elements/internal/InternalForm/index.js +0 -8
- package/dist/elements/internal/InternalForm/index.js.map +0 -1
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/InternalCreateControl.d.ts +0 -13
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/InternalCreateControl.js +0 -47
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/InternalCreateControl.js.map +0 -1
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/index.d.ts +0 -4
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/index.js +0 -6
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/index.js.map +0 -1
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/InternalDeleteControl.d.ts +0 -6
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/InternalDeleteControl.js +0 -39
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/InternalDeleteControl.js.map +0 -1
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/index.d.ts +0 -5
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/index.js +0 -7
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/index.js.map +0 -1
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/InternalTimestampsControl.d.ts +0 -8
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/InternalTimestampsControl.js +0 -56
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/InternalTimestampsControl.js.map +0 -1
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/index.d.ts +0 -2
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/index.js +0 -4
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/index.js.map +0 -1
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.d.ts +0 -9
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js +0 -115
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js.map +0 -1
- package/dist/elements/internal/InternalFrequencyControl/index.d.ts +0 -7
- package/dist/elements/internal/InternalFrequencyControl/index.js +0 -9
- package/dist/elements/internal/InternalFrequencyControl/index.js.map +0 -1
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.d.ts +0 -13
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.js +0 -41
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.js.map +0 -1
- package/dist/elements/internal/InternalIntegerControl/index.d.ts +0 -4
- package/dist/elements/internal/InternalIntegerControl/index.js +0 -6
- package/dist/elements/internal/InternalIntegerControl/index.js.map +0 -1
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.d.ts +0 -13
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js +0 -41
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js.map +0 -1
- package/dist/elements/internal/InternalNumberControl/index.d.ts +0 -4
- package/dist/elements/internal/InternalNumberControl/index.js +0 -6
- package/dist/elements/internal/InternalNumberControl/index.js.map +0 -1
- package/dist/elements/internal/InternalTextControl/InternalTextControl.d.ts +0 -13
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js +0 -40
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js.map +0 -1
- package/dist/elements/internal/InternalTextControl/index.d.ts +0 -4
- package/dist/elements/internal/InternalTextControl/index.js +0 -6
- package/dist/elements/internal/InternalTextControl/index.js.map +0 -1
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.d.ts +0 -14
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js +0 -112
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js.map +0 -1
- package/dist/elements/public/CopyToClipboard/index.d.ts +0 -4
- package/dist/elements/public/CopyToClipboard/index.js +0 -6
- package/dist/elements/public/CopyToClipboard/index.js.map +0 -1
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.d.ts +0 -25
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.js +0 -58
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.js.map +0 -1
- package/dist/elements/public/CouponDetailCard/index.d.ts +0 -5
- package/dist/elements/public/CouponDetailCard/index.js +0 -7
- package/dist/elements/public/CouponDetailCard/index.js.map +0 -1
- package/dist/elements/public/CouponDetailCard/types.d.ts +0 -3
- package/dist/elements/public/CouponDetailCard/types.js +0 -2
- package/dist/elements/public/CouponDetailCard/types.js.map +0 -1
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.d.ts +0 -28
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.js +0 -339
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.js.map +0 -1
- package/dist/elements/public/DiscountBuilder/index.d.ts +0 -2
- package/dist/elements/public/DiscountBuilder/index.js +0 -4
- package/dist/elements/public/DiscountBuilder/index.js.map +0 -1
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.d.ts +0 -25
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js +0 -58
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js.map +0 -1
- package/dist/elements/public/DiscountDetailCard/index.d.ts +0 -5
- package/dist/elements/public/DiscountDetailCard/index.js +0 -7
- package/dist/elements/public/DiscountDetailCard/index.js.map +0 -1
- package/dist/elements/public/DiscountDetailCard/types.d.ts +0 -3
- package/dist/elements/public/DiscountDetailCard/types.js +0 -2
- package/dist/elements/public/DiscountDetailCard/types.js.map +0 -1
- package/dist/elements/public/ItemCard/ItemCard.d.ts +0 -16
- package/dist/elements/public/ItemCard/ItemCard.js +0 -139
- package/dist/elements/public/ItemCard/ItemCard.js.map +0 -1
- package/dist/elements/public/ItemCard/index.d.ts +0 -4
- package/dist/elements/public/ItemCard/index.js +0 -6
- package/dist/elements/public/ItemCard/index.js.map +0 -1
- package/dist/elements/public/ItemCard/types.d.ts +0 -5
- package/dist/elements/public/ItemCard/types.js +0 -2
- package/dist/elements/public/ItemCard/types.js.map +0 -1
- package/dist/elements/public/ItemForm/ItemForm.d.ts +0 -19
- package/dist/elements/public/ItemForm/ItemForm.js +0 -96
- package/dist/elements/public/ItemForm/ItemForm.js.map +0 -1
- package/dist/elements/public/ItemForm/index.d.ts +0 -19
- package/dist/elements/public/ItemForm/index.js +0 -21
- package/dist/elements/public/ItemForm/index.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.d.ts +0 -6
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.js +0 -23
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.d.ts +0 -6
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.js +0 -8
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.d.ts +0 -6
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.js +0 -31
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.d.ts +0 -5
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.js +0 -7
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.d.ts +0 -6
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.js +0 -48
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.d.ts +0 -7
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.js +0 -9
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.d.ts +0 -6
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.js +0 -32
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.d.ts +0 -5
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.js +0 -7
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.d.ts +0 -6
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.js +0 -75
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.js.map +0 -1
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.d.ts +0 -8
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.js +0 -10
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.js.map +0 -1
- package/dist/elements/public/ItemForm/types.d.ts +0 -3
- package/dist/elements/public/ItemForm/types.js +0 -2
- package/dist/elements/public/ItemForm/types.js.map +0 -1
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.d.ts +0 -25
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.js +0 -56
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.js.map +0 -1
- package/dist/elements/public/ItemOptionCard/index.d.ts +0 -6
- package/dist/elements/public/ItemOptionCard/index.js +0 -8
- package/dist/elements/public/ItemOptionCard/index.js.map +0 -1
- package/dist/elements/public/ItemOptionCard/types.d.ts +0 -11
- package/dist/elements/public/ItemOptionCard/types.js +0 -2
- package/dist/elements/public/ItemOptionCard/types.js.map +0 -1
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.d.ts +0 -12
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.js +0 -23
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.js.map +0 -1
- package/dist/elements/public/ItemOptionForm/index.d.ts +0 -5
- package/dist/elements/public/ItemOptionForm/index.js +0 -7
- package/dist/elements/public/ItemOptionForm/index.js.map +0 -1
- package/dist/elements/public/ItemOptionForm/types.d.ts +0 -3
- package/dist/elements/public/ItemOptionForm/types.js +0 -2
- package/dist/elements/public/ItemOptionForm/types.js.map +0 -1
- package/dist/elements/public/ReportForm/ReportForm.d.ts +0 -48
- package/dist/elements/public/ReportForm/ReportForm.js +0 -391
- package/dist/elements/public/ReportForm/ReportForm.js.map +0 -1
- package/dist/elements/public/ReportForm/index.d.ts +0 -11
- package/dist/elements/public/ReportForm/index.js +0 -13
- package/dist/elements/public/ReportForm/index.js.map +0 -1
- package/dist/elements/public/ReportForm/types.d.ts +0 -17
- package/dist/elements/public/ReportForm/types.js +0 -2
- package/dist/elements/public/ReportForm/types.js.map +0 -1
- package/dist/elements/public/ReportForm/utils.d.ts +0 -16
- package/dist/elements/public/ReportForm/utils.js +0 -73
- package/dist/elements/public/ReportForm/utils.js.map +0 -1
- package/dist/elements/public/ReportsTable/ReportsTable.d.ts +0 -21
- package/dist/elements/public/ReportsTable/ReportsTable.js +0 -101
- package/dist/elements/public/ReportsTable/ReportsTable.js.map +0 -1
- package/dist/elements/public/ReportsTable/index.d.ts +0 -4
- package/dist/elements/public/ReportsTable/index.js +0 -6
- package/dist/elements/public/ReportsTable/index.js.map +0 -1
- package/dist/elements/public/ReportsTable/types.d.ts +0 -3
- package/dist/elements/public/ReportsTable/types.js +0 -2
- package/dist/elements/public/ReportsTable/types.js.map +0 -1
- package/dist/elements/public/ShipmentCard/ShipmentCard.d.ts +0 -22
- package/dist/elements/public/ShipmentCard/ShipmentCard.js +0 -114
- package/dist/elements/public/ShipmentCard/ShipmentCard.js.map +0 -1
- package/dist/elements/public/ShipmentCard/index.d.ts +0 -7
- package/dist/elements/public/ShipmentCard/index.js +0 -9
- package/dist/elements/public/ShipmentCard/index.js.map +0 -1
- package/dist/elements/public/ShipmentCard/types.d.ts +0 -18
- package/dist/elements/public/ShipmentCard/types.js +0 -2
- package/dist/elements/public/ShipmentCard/types.js.map +0 -1
- package/dist/elements/public/SwipeActions/SwipeActions.d.ts +0 -13
- package/dist/elements/public/SwipeActions/SwipeActions.js +0 -116
- package/dist/elements/public/SwipeActions/SwipeActions.js.map +0 -1
- package/dist/elements/public/SwipeActions/index.d.ts +0 -2
- package/dist/elements/public/SwipeActions/index.js +0 -4
- package/dist/elements/public/SwipeActions/index.js.map +0 -1
- package/dist/elements/public/Transaction/Transaction.d.ts +0 -13
- package/dist/elements/public/Transaction/Transaction.js +0 -101
- package/dist/elements/public/Transaction/Transaction.js.map +0 -1
- package/dist/elements/public/Transaction/index.d.ts +0 -19
- package/dist/elements/public/Transaction/index.js +0 -21
- package/dist/elements/public/Transaction/index.js.map +0 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.d.ts +0 -9
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js +0 -69
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js.map +0 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.d.ts +0 -4
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js +0 -6
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js.map +0 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.d.ts +0 -5
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.js +0 -36
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.js.map +0 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.d.ts +0 -7
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.js +0 -9
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.js.map +0 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.d.ts +0 -11
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.js +0 -50
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.js.map +0 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.d.ts +0 -5
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.js +0 -7
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.js.map +0 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.d.ts +0 -8
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js +0 -77
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js.map +0 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.d.ts +0 -4
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.js +0 -6
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.js.map +0 -1
- package/dist/elements/public/Transaction/types.d.ts +0 -3
- package/dist/elements/public/Transaction/types.js +0 -2
- package/dist/elements/public/Transaction/types.js.map +0 -1
- package/dist/mixins/inferrable.d.ts +0 -15
- package/dist/mixins/inferrable.js +0 -66
- package/dist/mixins/inferrable.js.map +0 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import"./foxy-spinner.js";import"./shared-4e63d6e0.js";import{T as n}from"./shared-c3c424cd.js";import{a as e}from"./shared-ea9af4b0.js";import"./shared-35de1004.js";import"./shared-e090608c.js";import"./shared-bc94606b.js";import"./shared-2eee69db.js";import"./shared-7f33a83a.js";import"./shared-64657919.js";import"./shared-3026cee0.js";import"./shared-06014421.js";import"./shared-d3bf9ac0.js";import"./foxy-nucleon-element.js";import"./shared-1b064836.js";import"./shared-9d4835ed.js";import"./shared-7684cb05.js";import"./shared-f3655f42.js";import"./shared-4e709717.js";let a,s,o,r,t,l,i,d,m,f,y,h=n=>n;class p extends(e(n,"reports-table")){constructor(){super(...arguments),this.columns=[p.nameColumn,p.startColumn,p.endColumn,p.createdOnColumn,p.linkColumn]}}p.nameColumn={header:({html:n,lang:e,ns:s})=>n(a||(a=h`<foxy-i18n lang=${0} key="report_name" ns=${0}></foxy-i18n>`),e,s),cell:({html:n,data:e,lang:a,ns:o})=>{const r=`report_name_${e.name}`;return n(s||(s=h`<foxy-i18n class="font-semibold" lang=${0} key=${0} ns=${0}></foxy-i18n>`),a,r,o)}},p.startColumn={hideBelow:"md",header:({html:n,lang:e,ns:a})=>n(o||(o=h`<foxy-i18n lang=${0} key="range_start" ns=${0}></foxy-i18n>`),e,a),cell:({html:n,data:e,lang:a,ns:s})=>n(r||(r=h`
|
|
2
|
-
<foxy-i18n
|
|
3
|
-
options=${0}
|
|
4
|
-
lang=${0}
|
|
5
|
-
key="date"
|
|
6
|
-
ns=${0}
|
|
7
|
-
>
|
|
8
|
-
</foxy-i18n>
|
|
9
|
-
`),JSON.stringify({value:e.datetime_start}),a,s)},p.endColumn={hideBelow:"md",header:({html:n,lang:e,ns:a})=>n(t||(t=h`<foxy-i18n lang=${0} key="range_end" ns=${0}></foxy-i18n>`),e,a),cell:({html:n,data:e,lang:a,ns:s})=>n(l||(l=h`
|
|
10
|
-
<foxy-i18n
|
|
11
|
-
options=${0}
|
|
12
|
-
lang=${0}
|
|
13
|
-
key="date"
|
|
14
|
-
ns=${0}
|
|
15
|
-
>
|
|
16
|
-
</foxy-i18n>
|
|
17
|
-
`),JSON.stringify({value:e.datetime_end}),a,s)},p.createdOnColumn={header:({html:n,lang:e,ns:a})=>n(i||(i=h`<foxy-i18n lang=${0} key="created_on" ns=${0}></foxy-i18n>`),e,a),cell:({html:n,data:e,lang:a,ns:s})=>n(d||(d=h`
|
|
18
|
-
<foxy-i18n
|
|
19
|
-
options=${0}
|
|
20
|
-
lang=${0}
|
|
21
|
-
key="date"
|
|
22
|
-
ns=${0}
|
|
23
|
-
>
|
|
24
|
-
</foxy-i18n>
|
|
25
|
-
`),JSON.stringify({value:e.date_created}),a,s)},p.linkColumn={header:({html:n,lang:e,ns:a})=>n(m||(m=h`<foxy-i18n lang=${0} key="link" ns=${0}></foxy-i18n>`),e,a),cell:({html:n,lang:e,data:a,ns:s})=>"ready"===a.status?n(f||(f=h`
|
|
26
|
-
<a
|
|
27
|
-
class="rounded font-medium text-primary transition-opacity hover-opacity-75 focus-outline-none focus-ring-2 focus-ring-primary-50"
|
|
28
|
-
href=${0}
|
|
29
|
-
download
|
|
30
|
-
>
|
|
31
|
-
<foxy-i18n lang=${0} key="download" ns=${0}></foxy-i18n>
|
|
32
|
-
</a>
|
|
33
|
-
`),a._links["fx:download_url"].href,e,s):n(y||(y=h`
|
|
34
|
-
<foxy-spinner
|
|
35
|
-
state=${0}
|
|
36
|
-
class="inline-block align-middle"
|
|
37
|
-
lang=${0}
|
|
38
|
-
ns="${0} link-spinner"
|
|
39
|
-
>
|
|
40
|
-
</foxy-spinner>
|
|
41
|
-
`),"error"===a.status?"error":"busy",e,s)},customElements.define("foxy-reports-table",p);export{p as ReportsTable};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import"./foxy-address-card.js";import"./foxy-item-form.js";import{I as e}from"./shared-cad5fe82.js";import"./shared-4e63d6e0.js";import{_ as r}from"./shared-2eee69db.js";import{h as s}from"./shared-7f33a83a.js";import{i as t}from"./shared-d3bf9ac0.js";import{a as i}from"./shared-ea9af4b0.js";import{B as o}from"./shared-3026cee0.js";import"./shared-35de1004.js";import"./shared-e090608c.js";import"./shared-bc94606b.js";import"./shared-0479553e.js";import"./foxy-spinner.js";import"./shared-64657919.js";import"./shared-06014421.js";import"./shared-1b064836.js";import"./shared-9d4835ed.js";import"./shared-7684cb05.js";import"./shared-f3655f42.js";import"./shared-4e709717.js";import"./shared-5097c880.js";import"./shared-60e98fbf.js";import"./shared-007660a6.js";import"./shared-f7bddf72.js";import"./shared-ce2aab66.js";import"./shared-757bb517.js";import"./shared-92d6f937.js";import"./shared-1ddccf4d.js";import"./foxy-collection-page.js";import"./shared-d519a301.js";import"./shared-11c2efc8.js";import"./foxy-form-dialog.js";import"./foxy-pagination.js";import"./foxy-discount-detail-card.js";import"./shared-fe8ec1f9.js";import"./foxy-coupon-detail-card.js";import"./foxy-item-option-card.js";import"./foxy-attribute-card.js";import"./foxy-attribute-form.js";import"./shared-38f8a319.js";import"./shared-7819b0b0.js";import"./shared-f3f9f752.js";import"./shared-bbfdfee2.js";import"./shared-5e75308a.js";import"./shared-22103348.js";import"./foxy-coupon-card.js";import"./foxy-discount-builder.js";import"./shared-e6f3e9f0.js";import"./shared-b8f492a4.js";import"./shared-2061be9a.js";import"./shared-c4f0a219.js";import"./foxy-subscription-card.js";import"./shared-874bbae5.js";import"./foxy-subscription-form.js";import"./foxy-cancellation-form.js";import"./foxy-collection-pages.js";import"./shared-a8e21a41.js";import"./shared-34998df6.js";import"./foxy-table.js";import"./shared-c3c424cd.js";import"./foxy-nucleon-element.js";import"./shared-2bb49907.js";import"./shared-f0ba30e8.js";import"./shared-e59c65e3.js";let a,d,c=e=>e;class n extends(i(e,"shipment-card")){constructor(){super(...arguments),this.__customerAddresses="",this.__currencyDisplay="",this.__itemCategories="",this.__editable=!1,this.__currency="",this.__coupons=""}static get properties(){return r(r({},super.properties),{},{__customerAddresses:{attribute:!1},__currencyDisplay:{attribute:!1},__itemCategories:{attribute:!1},__editable:{attribute:!1},__currency:{attribute:!1},__coupons:{attribute:!1}})}get hiddenSelector(){return new o(`${super.hiddenSelector.toString()} address:not=full-address`)}get readonlySelector(){return this.__editable?super.readonlySelector:o.True}renderBody(){var e,r,i;let o;if(this.data)try{const e=new URL(this.data._links["fx:items"].href);e.searchParams.set("zoom","item_options"),o=e.toString()}catch(e){}return s(d||(d=c` <div class="space-y-m"> <foxy-address-card infer="address" href="${0}"> <div slot="full-address:after" class="flex items-center text-m space-x-s text-secondary"> <iron-icon icon="maps:local-shipping" class="icon-inline flex-shrink-0"></iron-icon> <span class="truncate"> ${0} • <foxy-i18n options="${0}" key="price" infer> </foxy-i18n> </span> </div> </foxy-address-card> <foxy-internal-collection-card infer="items" first="${0}" limit="5" item="foxy-item-card" open .form="${0}"> </foxy-internal-collection-card> </div> `),t(null===(e=this.data)||void 0===e?void 0:e._links["fx:customer_address"].href),null===(r=this.data)||void 0===r?void 0:r.shipping_service_description,JSON.stringify({amount:`${null===(i=this.data)||void 0===i?void 0:i.total_shipping} ${this.__currency}`,currencyDisplay:this.__currencyDisplay}),t(o),(({html:e,dialog:r,handleFetch:s,handleUpdate:t})=>e(a||(a=c`
|
|
2
|
-
<foxy-item-form
|
|
3
|
-
disabledcontrols=${0}
|
|
4
|
-
readonlycontrols=${0}
|
|
5
|
-
hiddencontrols=${0}
|
|
6
|
-
customer-addresses=${0}
|
|
7
|
-
item-categories=${0}
|
|
8
|
-
coupons=${0}
|
|
9
|
-
parent=${0}
|
|
10
|
-
href=${0}
|
|
11
|
-
lang=${0}
|
|
12
|
-
ns=${0}
|
|
13
|
-
@fetch=${0}
|
|
14
|
-
@update=${0}
|
|
15
|
-
>
|
|
16
|
-
</foxy-item-form>
|
|
17
|
-
`),r.disabledSelector.toString(),r.readonlySelector.toString(),r.hiddenSelector.toString(),this.__customerAddresses,this.__itemCategories,this.__coupons,r.parent,r.href,r.lang,r.ns,s,t)))}async _sendGet(){const e=await super._sendGet(),[r,s,t]=await Promise.all([super._fetch(e._links["fx:transaction"].href),super._fetch(e._links["fx:customer"].href),super._fetch(e._links["fx:store"].href)]);return this.__customerAddresses=s._links["fx:customer_addresses"].href,this.__currencyDisplay=t.use_international_currency_symbol?"code":"symbol",this.__itemCategories=t._links["fx:item_categories"].href,this.__currency=r.currency_code,this.__editable=!!r._links["fx:void"]||!!r._links["fx:refund"],this.__coupons=t._links["fx:coupons"].href,e}}customElements.define("foxy-shipment-card",n);export{n as ShipmentCard};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as t,c as e,h as s}from"./shared-7f33a83a.js";let l,o,r=t=>t;class i extends t{constructor(){super(...arguments),this.__state="idle",this.__scrollTimeout=null}static get properties(){return{__state:{attribute:!1}}}static get styles(){return e(l||(l=r`#root{display:block;overflow:hidden}#scroll{--internal-scrollbar-height:var(--scrollbar-height, 24px);padding-bottom:var(--internal-scrollbar-height);margin-top:calc(0px - var(--internal-scrollbar-height));transform:translateY(var(--internal-scrollbar-height));overflow:auto hidden;white-space:nowrap;scroll-snap-type:x mandatory;display:flex}#content{scroll-snap-align:start;width:100%;flex-shrink:0}#content-transform-target{transition:transform .15s ease}.idle-preview #content-transform-target{transform:translateX(calc(0 - var(--lumo-space-s)))}#action{scroll-snap-align:end;flex-shrink:0}`))}render(){return s(o||(o=r` <div class="${0}" id="root" @mouseleave="${0}" @mousemove="${0}" @focusout="${0}"> <div id="scroll" @scroll="${0}"> <div id="content"> <div id="content-transform-target"> <slot></slot> </div> </div> <div id="action"> <slot name="action"></slot> </div> </div> </div> `),this.__state,(()=>this.__closeActions("smooth")),this.__handleMouseMove,(()=>this.__closeActions("auto")),this.__handleScroll)}get __scroll(){return this.renderRoot.querySelector("#scroll")}get __content(){return this.renderRoot.querySelector("#content")}__closeActions(t){null!==this.__scrollTimeout&&clearTimeout(this.__scrollTimeout),this.__scroll.scroll({top:0,left:0,behavior:t}),this.__state="idle"}__handleScroll(){const{scrollLeft:t,scrollWidth:e,clientWidth:s}=this.__scroll;t<=0?this.__state="idle":e-t-s<=0&&(this.__state="scrolled")}__handleMouseMove(t){if(!this.__state.startsWith("idle"))return;null!==this.__scrollTimeout&&clearTimeout(this.__scrollTimeout);t.offsetX/this.__scroll.clientWidth>=.9&&(this.__state="idle-preview",this.__scrollTimeout=setTimeout((()=>{this.__state="scroll-started",this.__scroll.scroll({top:0,left:this.__content.clientWidth,behavior:"smooth"})}),75))}}customElements.define("foxy-swipe-actions",i);export{i as SwipeActions};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import"./shared-757bb517.js";import"./shared-35de1004.js";import{h as t}from"./shared-e090608c.js";import"./shared-bc94606b.js";import"./foxy-attribute-card.js";import"./foxy-attribute-form.js";import"./foxy-custom-field-form.js";import"./foxy-applied-tax-card.js";import"./foxy-custom-field-card.js";import"./foxy-discount-card.js";import"./foxy-shipment-card.js";import"./foxy-payment-card.js";import"./foxy-item-form.js";import"./shared-4e63d6e0.js";import{a as i,b as o}from"./shared-ce2aab66.js";import"./foxy-customer-card.js";import"./foxy-form-dialog.js";import"./foxy-customer.js";import{h as e,c as r}from"./shared-7f33a83a.js";import{i as a}from"./shared-d3bf9ac0.js";import{_ as c}from"./shared-2eee69db.js";import{N as s}from"./shared-1b064836.js";import{a as n}from"./shared-ea9af4b0.js";import{B as d}from"./shared-3026cee0.js";import"./shared-007660a6.js";import"./shared-0479553e.js";import"./foxy-spinner.js";import"./shared-64657919.js";import"./shared-06014421.js";import"./shared-4e709717.js";import"./shared-9d4835ed.js";import"./shared-7684cb05.js";import"./shared-f3655f42.js";import"./shared-38f8a319.js";import"./shared-7819b0b0.js";import"./shared-5097c880.js";import"./shared-60e98fbf.js";import"./shared-f7bddf72.js";import"./shared-f3f9f752.js";import"./shared-11c2efc8.js";import"./shared-92d6f937.js";import"./shared-1ddccf4d.js";import"./shared-bbfdfee2.js";import"./shared-5e75308a.js";import"./shared-22103348.js";import"./shared-9d7aaf7a.js";import"./shared-fe8ec1f9.js";import"./foxy-address-card.js";import"./shared-cad5fe82.js";import"./foxy-collection-page.js";import"./shared-d519a301.js";import"./foxy-pagination.js";import"./foxy-discount-detail-card.js";import"./foxy-coupon-detail-card.js";import"./foxy-item-option-card.js";import"./foxy-coupon-card.js";import"./foxy-discount-builder.js";import"./shared-e6f3e9f0.js";import"./shared-b8f492a4.js";import"./shared-2061be9a.js";import"./shared-c4f0a219.js";import"./foxy-subscription-card.js";import"./shared-874bbae5.js";import"./foxy-subscription-form.js";import"./foxy-cancellation-form.js";import"./foxy-collection-pages.js";import"./shared-a8e21a41.js";import"./shared-34998df6.js";import"./foxy-table.js";import"./shared-c3c424cd.js";import"./foxy-nucleon-element.js";import"./shared-2bb49907.js";import"./shared-f0ba30e8.js";import"./shared-e59c65e3.js";import"./shared-99065f2a.js";import"./foxy-payment-method-card.js";import"./foxy-transactions-table.js";import"./foxy-customer-form.js";import"./shared-b738ee96.js";import"./foxy-address-form.js";import"./shared-7f3ca8e7.js";
|
|
2
|
-
/**
|
|
3
|
-
@license
|
|
4
|
-
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
5
|
-
This code may only be used under the BSD style license found at
|
|
6
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
7
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
8
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
9
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
10
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
11
|
-
*/const l=t`<iron-iconset-svg name="communication" size="24">
|
|
12
|
-
<svg><defs>
|
|
13
|
-
<g id="business"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"></path></g>
|
|
14
|
-
<g id="call"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"></path></g>
|
|
15
|
-
<g id="call-end"><path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-.42-.29-.7 0-.28.11-.53.29-.71C3.34 8.78 7.46 7 12 7s8.66 1.78 11.71 4.67c.18.18.29.43.29.71 0 .28-.11.53-.29.71l-2.48 2.48c-.18.18-.43.29-.71.29-.27 0-.52-.11-.7-.28-.79-.74-1.69-1.36-2.67-1.85-.33-.16-.56-.5-.56-.9v-3.1C15.15 9.25 13.6 9 12 9z"></path></g>
|
|
16
|
-
<g id="call-made"><path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"></path></g>
|
|
17
|
-
<g id="call-merge"><path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"></path></g>
|
|
18
|
-
<g id="call-missed"><path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"></path></g>
|
|
19
|
-
<g id="call-missed-outgoing"><path d="M3 8.41l9 9 7-7V15h2V7h-8v2h4.59L12 14.59 4.41 7 3 8.41z"></path></g>
|
|
20
|
-
<g id="call-received"><path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"></path></g>
|
|
21
|
-
<g id="call-split"><path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"></path></g>
|
|
22
|
-
<g id="chat"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"></path></g>
|
|
23
|
-
<g id="chat-bubble"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"></path></g>
|
|
24
|
-
<g id="chat-bubble-outline"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"></path></g>
|
|
25
|
-
<g id="clear-all"><path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"></path></g>
|
|
26
|
-
<g id="comment"><path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"></path></g>
|
|
27
|
-
<g id="contact-mail"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"></path></g>
|
|
28
|
-
<g id="contact-phone"><path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm3.85-4h1.64L21 16l-1.99 1.99c-1.31-.98-2.28-2.38-2.73-3.99-.18-.64-.28-1.31-.28-2s.1-1.36.28-2c.45-1.62 1.42-3.01 2.73-3.99L21 8l-1.51 2h-1.64c-.22.63-.35 1.3-.35 2s.13 1.37.35 2z"></path></g>
|
|
29
|
-
<g id="contacts"><path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75zM17 17H7v-1.5c0-1.67 3.33-2.5 5-2.5s5 .83 5 2.5V17z"></path></g>
|
|
30
|
-
<g id="dialer-sip"><path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.27-.26.35-.65.24-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z"></path></g>
|
|
31
|
-
<g id="dialpad"><path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g>
|
|
32
|
-
<g id="email"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>
|
|
33
|
-
<g id="forum"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"></path></g>
|
|
34
|
-
<g id="import-contacts"><path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z"></path></g>
|
|
35
|
-
<g id="import-export"><path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"></path></g>
|
|
36
|
-
<g id="invert-colors-off"><path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.58c1.79 0 3.57-.59 5.03-1.78l2.7 2.7L21 21.23l-.35-.36zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59c0-1.32.43-2.57 1.21-3.6L12 14.77v4.82zM12 5.1v4.58l7.25 7.26c1.37-2.96.84-6.57-1.6-9.01L12 2.27l-3.7 3.7 1.41 1.41L12 5.1z"></path></g>
|
|
37
|
-
<g id="live-help"><path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"></path></g>
|
|
38
|
-
<g id="location-off"><path d="M12 6.5c1.38 0 2.5 1.12 2.5 2.5 0 .74-.33 1.39-.83 1.85l3.63 3.63c.98-1.86 1.7-3.8 1.7-5.48 0-3.87-3.13-7-7-7-1.98 0-3.76.83-5.04 2.15l3.19 3.19c.46-.52 1.11-.84 1.85-.84zm4.37 9.6l-4.63-4.63-.11-.11L3.27 3 2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21 20 19.73l-3.63-3.63z"></path></g>
|
|
39
|
-
<g id="location-on"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>
|
|
40
|
-
<g id="mail-outline"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"></path></g>
|
|
41
|
-
<g id="message"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"></path></g>
|
|
42
|
-
<g id="no-sim"><path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.27L3.65 3.88z"></path></g>
|
|
43
|
-
<g id="phone"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"></path></g>
|
|
44
|
-
<g id="phonelink-erase"><path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2z"></path></g>
|
|
45
|
-
<g id="phonelink-lock"><path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 9.5V11c-.6 0-1.2.6-1.2 1.2v3.5c0 .7.6 1.3 1.2 1.3h5.5c.7 0 1.3-.6 1.3-1.2v-3.5c0-.7-.6-1.3-1.2-1.3zm-1.3 0h-3V9.5c0-.8.7-1.3 1.5-1.3s1.5.5 1.5 1.3V11z"></path></g>
|
|
46
|
-
<g id="phonelink-ring"><path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 19H4V4h10v16z"></path></g>
|
|
47
|
-
<g id="phonelink-setup"><path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1.3c-.3.1-.6.3-.9.5l-1.3-.5c-.1 0-.2 0-.3.1l-1 1.7c-.1.1 0 .2.1.3l1.1.8v1l-1.1.8c-.1.2-.1.3-.1.4l1 1.7c.1.1.2.2.3.1l1.4-.4c.3.2.6.4.9.5l.2 1.3c-.1.1.1.2.2.2h2c.1 0 .2-.1.3-.2l.2-1.3c.3-.1.6-.3.9-.5l1.3.5c.1 0 .2 0 .3-.1l1-1.7c.1-.1 0-.2-.1-.3l-1.1-.9zM8 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2z"></path></g>
|
|
48
|
-
<g id="portable-wifi-off"><path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02.42-.05.63l1.61 1.61zM12 4c4.42 0 8 3.58 8 8 0 1.35-.35 2.62-.95 3.74l1.47 1.47C21.46 15.69 22 13.91 22 12c0-5.52-4.48-10-10-10-1.91 0-3.69.55-5.21 1.47l1.46 1.46C9.37 4.34 10.65 4 12 4zM3.27 2.5L2 3.77l2.1 2.1C2.79 7.57 2 9.69 2 12c0 3.7 2.01 6.92 4.99 8.65l1-1.73C5.61 17.53 4 14.96 4 12c0-1.76.57-3.38 1.53-4.69l1.43 1.44C6.36 9.68 6 10.8 6 12c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-.65.17-1.25.44-1.79l1.58 1.58L10 12c0 1.1.9 2 2 2l.21-.02.01.01 7.51 7.51L21 20.23 4.27 3.5l-1-1z"></path></g>
|
|
49
|
-
<g id="present-to-all"><path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"></path></g>
|
|
50
|
-
<g id="ring-volume"><path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-.28.79-.74 1.69-1.36 2.66-1.85.33-.16.56-.5.56-.9v-3.1c1.45-.48 3-.73 4.6-.73s3.15.25 4.6.72v3.1c0 .39.23.74.56.9.98.49 1.87 1.12 2.66 1.85.18.18.43.28.7.28.28 0 .53-.11.71-.29l2.48-2.48c.18-.18.29-.43.29-.71 0-.27-.11-.52-.29-.7zM21.16 6.26l-1.41-1.41-3.56 3.55 1.41 1.41s3.45-3.52 3.56-3.55zM13 2h-2v5h2V2zM6.4 9.81L7.81 8.4 4.26 4.84 2.84 6.26c.11.03 3.56 3.55 3.56 3.55z"></path></g>
|
|
51
|
-
<g id="rss-feed"><circle cx="6.18" cy="17.82" r="2.18"></circle><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"></path></g>
|
|
52
|
-
<g id="screen-share"><path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56-2.67 2.11-5.33 6-5.87V7l4 3.73-4 3.74z"></path></g>
|
|
53
|
-
<g id="speaker-phone"><path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 4.21l1.41 1.41C7.28 4 9.53 3 12 3s4.72 1 6.34 2.62l1.41-1.41C17.76 2.23 15.02 1 12 1zm2.86 9.01L9.14 10C8.51 10 8 10.51 8 11.14v9.71c0 .63.51 1.14 1.14 1.14h5.71c.63 0 1.14-.51 1.14-1.14v-9.71c.01-.63-.5-1.13-1.13-1.13zM15 20H9v-8h6v8z"></path></g>
|
|
54
|
-
<g id="stay-current-landscape"><path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"></path></g>
|
|
55
|
-
<g id="stay-current-portrait"><path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"></path></g>
|
|
56
|
-
<g id="stay-primary-landscape"><path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"></path></g>
|
|
57
|
-
<g id="stay-primary-portrait"><path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"></path></g>
|
|
58
|
-
<g id="stop-screen-share"><path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1.03-.99 1.03-1.74zM2.39 1.73L1.11 3l1.54 1.54c-.4.36-.65.89-.65 1.48v10c0 1.1.89 2 2 2H0v2h18.13l2.71 2.71 1.27-1.27L2.39 1.73zM7 15.02c.31-1.48.92-2.95 2.07-4.06l1.59 1.59c-1.54.38-2.7 1.18-3.66 2.47z"></path></g>
|
|
59
|
-
<g id="swap-calls"><path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8h3l-4-4z"></path></g>
|
|
60
|
-
<g id="textsms"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"></path></g>
|
|
61
|
-
<g id="voicemail"><path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3.04 0 5.5-2.46 5.5-5.5S21.54 6 18.5 6zm-13 9C3.57 15 2 13.43 2 11.5S3.57 8 5.5 8 9 9.57 9 11.5 7.43 15 5.5 15zm13 0c-1.93 0-3.5-1.57-3.5-3.5S16.57 8 18.5 8 22 9.57 22 11.5 20.43 15 18.5 15z"></path></g>
|
|
62
|
-
<g id="vpn-key"><path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>
|
|
63
|
-
</defs></svg>
|
|
64
|
-
</iron-iconset-svg>`;document.head.appendChild(l.content);let h,m=t=>t;customElements.define("foxy-internal-transaction-customer-control",class extends i{renderControl(){var t,i,o,r;return e(h||(h=m` <foxy-internal-collapsible-card summary="customer" infer open> <foxy-form-dialog header="header" infer="dialog" form="foxy-customer" href="${0}" id="dialog"> </foxy-form-dialog> <button class="w-full text-left block rounded-b-l transition-colors hover-bg-contrast-5 focus-outline-none focus-ring-2 focus-ring-primary-50" @click="${0}"> <foxy-customer-card infer="card" class="p-m" href="${0}"> </foxy-customer-card> </button> </foxy-internal-collapsible-card> `),a(null===(i=null===(t=this.nucleon)||void 0===t?void 0:t.data)||void 0===i?void 0:i._links["fx:customer"].href),(t=>{this.renderRoot.querySelector("#dialog").show(t.currentTarget)}),a(null===(r=null===(o=this.nucleon)||void 0===o?void 0:o.data)||void 0===r?void 0:r._links["fx:customer"].href))}});let p,v=t=>t;customElements.define("foxy-internal-transaction-post-action-control",class extends i{constructor(){super(...arguments),this.theme="",this.state="idle",this.href="",this.icon=""}static get properties(){return c(c({},super.properties),{},{theme:{type:String},state:{type:String},href:{type:String},icon:{type:String}})}renderControl(){const t=this.state,i="fail"===t?"error":"idle"===t?this.theme:"";return e(p||(p=v` <vaadin-button class="w-full" theme="${0} tertiary" ?disabled="${0}" @click="${0}"> <foxy-i18n key="${0}" infer></foxy-i18n> </vaadin-button> `),i,"busy"===t||this.disabled,this.submit,t)}async submit(){if("busy"!==this.state)try{this.state="busy";const t=await new s.API(this).fetch(this.href,{method:"POST"});this.state=t.ok?"idle":"fail",t.ok&&this.dispatchEvent(new CustomEvent("done"))}catch(t){this.state="fail"}}});let f,u,g,z,y,x=t=>t;customElements.define("foxy-internal-transaction-actions-control",class extends i{renderControl(){var t,i,o,r,a,c,s,n;return e(f||(f=x` <div class="divide-y divide-contrast-10"> ${0} ${0} ${0} ${0} </div> `),(null===(i=null===(t=this.nucleon)||void 0===t?void 0:t.data)||void 0===i?void 0:i._links["fx:capture"])?this.__renderCaptureAction():"",(null===(r=null===(o=this.nucleon)||void 0===o?void 0:o.data)||void 0===r?void 0:r._links["fx:void"])?this.__renderVoidAction():"",(null===(c=null===(a=this.nucleon)||void 0===a?void 0:a.data)||void 0===c?void 0:c._links["fx:refund"])?this.__renderRefundAction():"",(null===(n=null===(s=this.nucleon)||void 0===s?void 0:s.data)||void 0===n?void 0:n._links["fx:send_emails"])?this.__renderSendEmailsAction():"")}__renderSendEmailsAction(){var t,i,o;return e(u||(u=x` <foxy-internal-transaction-post-action-control infer="send-emails" theme="contrast" href="${0}" key="send_emails" @done="${0}"> </foxy-internal-transaction-post-action-control> `),a(null===(i=null===(t=this.nucleon)||void 0===t?void 0:t.data)||void 0===i?void 0:i._links["fx:send_emails"].href),null===(o=this.nucleon)||void 0===o?void 0:o.refresh)}__renderCaptureAction(){var t,i,o;return e(g||(g=x` <foxy-internal-transaction-post-action-control theme="success" infer="capture" href="${0}" key="capture" @done="${0}"> </foxy-internal-transaction-post-action-control> `),a(null===(i=null===(t=this.nucleon)||void 0===t?void 0:t.data)||void 0===i?void 0:i._links["fx:capture"].href),null===(o=this.nucleon)||void 0===o?void 0:o.refresh)}__renderVoidAction(){var t,i,o,r;return e(z||(z=x` <foxy-internal-transaction-post-action-control theme="error" infer="void" href="${0}" key="void" @done="${0}"> </foxy-internal-transaction-post-action-control> `),a(null===(o=null===(i=null===(t=this.nucleon)||void 0===t?void 0:t.data)||void 0===i?void 0:i._links["fx:void"])||void 0===o?void 0:o.href),null===(r=this.nucleon)||void 0===r?void 0:r.refresh)}__renderRefundAction(){var t,i,o,r;return e(y||(y=x` <foxy-internal-transaction-post-action-control theme="contrast" infer="refund" href="${0}" key="refund" @done="${0}"> </foxy-internal-transaction-post-action-control> `),a(null===(o=null===(i=null===(t=this.nucleon)||void 0===t?void 0:t.data)||void 0===i?void 0:i._links["fx:refund"])||void 0===o?void 0:o.href),null===(r=this.nucleon)||void 0===r?void 0:r.refresh)}});let V,M,j,H,b,_,L,$=t=>t;customElements.define("foxy-internal-transaction-summary-control",class extends i{renderControl(){var t;return e(V||(V=$` <div class="border-t border-transparent"> <div class="h-m flex items-center justify-between"> <div class="text-xl font-bold">${0}</div> <div>${0}</div> </div> <div class="border-t border-contrast-10 mb-s"></div> ${0} </div> `),this.__renderPrice(),(null===(t=this.nucleon)||void 0===t?void 0:t.data)?this.__renderStatus():"",this.__renderTotals())}__renderStatus(){var t,i;const o={authorized:"bg-success text-success-contrast",completed:"bg-success text-success-contrast",declined:"bg-error text-error-contrast",rejected:"bg-error text-error-contrast"},r=(null===(i=null===(t=this.nucleon)||void 0===t?void 0:t.data)||void 0===i?void 0:i.status)||"completed";return e(M||(M=$` <foxy-i18n class="flex items-center h-xs px-s text-s font-semibold rounded ${0}" lang="${0}" key="transaction_${0}" ns="${0}"> </foxy-i18n> `),r in o?o[r]:"bg-contrast-5 text-contrast",this.lang,r,this.ns)}__renderPrice(){var t;const i=null===(t=this.nucleon)||void 0===t?void 0:t.data,o=null==i?void 0:i.currency_code;return i?e(H||(H=$` <foxy-i18n options="${0}" key="price" infer> </foxy-i18n> `),JSON.stringify({amount:`${i.total_order} ${o}`})):e(j||(j=$`--`))}__renderTotals(){var t;const i=null===(t=this.nucleon)||void 0===t?void 0:t.data,o=null==i?void 0:i.currency_code;return["total_item_price","total_shipping","total_tax"].map((t=>e(b||(b=$` <div class="flex justify-between text-m text-secondary"> <foxy-i18n key="${0}" infer></foxy-i18n> ${0} </div> `),t,i?e(_||(_=$` <foxy-i18n options="${0}" key="price" infer> </foxy-i18n> `),JSON.stringify({amount:`${i[t]} ${o}`})):e(L||(L=$`<span>--</span>`)))))}});let k,C,S=t=>t;class w extends(n(o,"transaction")){static get styles(){return[...super.styles,r(k||(k=S`#body{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(18.75 * var(--lumo-space-m)),1fr))}#body>:first-child{grid-column-start:1;grid-column-end:-2}`))]}get readonlySelector(){var t,i,o;return Boolean(null!==(i=null===(t=this.data)||void 0===t?void 0:t._links["fx:void"])&&void 0!==i?i:null===(o=this.data)||void 0===o?void 0:o._links["fx:refund"])?super.readonlySelector:new d(`${super.readonlySelector} attributes custom-fields`)}renderBody(){var t,i,o,r,c,s;return e(C||(C=S` <div id="body" class="gap-m"> <foxy-internal-collection-card infer="shipments" first="${0}" item="foxy-shipment-card" open> </foxy-internal-collection-card> <div class="grid gap-m self-start"> <foxy-internal-transaction-summary-control infer="summary"> </foxy-internal-transaction-summary-control> <foxy-internal-transaction-customer-control infer="customer"> </foxy-internal-transaction-customer-control> <foxy-internal-collection-card infer="payments" class="max-w-full overflow-hidden" first="${0}" limit="1" item="foxy-payment-card" open> </foxy-internal-collection-card> <foxy-internal-collection-card infer="discounts" first="${0}" limit="5" item="foxy-discount-card"> </foxy-internal-collection-card> <foxy-internal-collection-card infer="applied-taxes" first="${0}" limit="5" item="foxy-applied-tax-card"> </foxy-internal-collection-card> <foxy-internal-collection-card related="${0}" infer="custom-fields" first="${0}" limit="5" form="foxy-custom-field-form" item="foxy-custom-field-card"> </foxy-internal-collection-card> <foxy-internal-collection-card related="${0}" infer="attributes" first="${0}" limit="5" form="foxy-attribute-form" item="foxy-attribute-card"> </foxy-internal-collection-card> <foxy-internal-transaction-actions-control infer="actions"> </foxy-internal-transaction-actions-control> </div> </div> `),a(null===(t=this.data)||void 0===t?void 0:t._links["fx:shipments"].href),a(null===(i=this.data)||void 0===i?void 0:i._links["fx:payments"].href),a(null===(o=this.data)||void 0===o?void 0:o._links["fx:discounts"].href),a(null===(r=this.data)||void 0===r?void 0:r._links["fx:applied_taxes"].href),JSON.stringify([this.href]),a(null===(c=this.data)||void 0===c?void 0:c._links["fx:custom_fields"].href),JSON.stringify([this.href]),a(null===(s=this.data)||void 0===s?void 0:s._links["fx:attributes"].href))}}customElements.define("foxy-transaction",w);export{w as Transaction};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{D as t,i as e,e as n}from"./shared-e090608c.js";import{D as o}from"./shared-ea9af4b0.js";class l extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",l);const s=document.createElement("template");s.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(s.content);const a=document.createElement("template");a.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(a.content);const r=document.createElement("template");r.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(r.content);const i=document.createElement("template");i.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(i.content);const c=document.createElement("template");c.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(c.content);
|
|
2
|
-
/**
|
|
3
|
-
@license
|
|
4
|
-
Copyright (c) 2017 Vaadin Ltd.
|
|
5
|
-
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6
|
-
*/
|
|
7
|
-
let m=!1;window.addEventListener("keydown",(()=>{m=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{m=!1}),{capture:!0});const u=t=>class extends((t=>class extends t{static get properties(){var t={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(t.tabIndex=t.tabindex),t}})(t)){static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}ready(){this.addEventListener("focusin",(t=>{t.composedPath()[0]===this?this.contains(t.relatedTarget)||this._focus():-1===t.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)})),this.addEventListener("focusout",(t=>this._setFocused(!1))),super.ready();const t=t=>{t.composed||t.target.dispatchEvent(new CustomEvent(t.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",t),this.shadowRoot.addEventListener("focusout",t),this.addEventListener("keydown",(t=>{if(!t.defaultPrevented&&9===t.keyCode)if(t.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout((()=>this._isShiftTabbing=!1),0);else{const t=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(t&&parseFloat(t[1])>=63&&parseFloat(t[1])<66&&this.parentNode&&this.nextSibling){const t=document.createElement("input");t.style.position="absolute",t.style.opacity="0",t.tabIndex=this.tabIndex,this.parentNode.insertBefore(t,this.nextSibling),t.focus(),t.addEventListener("focusout",(()=>this.parentNode.removeChild(t)))}}})),this.autofocus&&!this.disabled&&window.requestAnimationFrame((()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")}))}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){t?this.setAttribute("focused",""):this.removeAttribute("focused"),t&&m?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(t){this.focusElement.disabled=t,t?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(t){void 0!==t&&(this.focusElement.tabIndex=t),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=t=void 0),window.ShadyDOM&&this.setProperties({tabIndex:t,tabindex:t})}click(){this.disabled||super.click()}},d=t=>class extends t{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(t,e,n){super.attributeChangedCallback(t,e,n),"theme"===t&&this._setTheme(n)}},h=t=>class extends(d(t)){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach((e=>{this._includeStyle(e.getAttribute("include"),t)})),this._includeMatchingThemes(t)}static _includeMatchingThemes(t){const e=o.prototype.modules;let n=!1;const l=this.is+"-default-theme";Object.keys(e).sort(((t,e)=>{const n=0===t.indexOf("vaadin-"),o=0===e.indexOf("vaadin-"),l=["lumo-","material-"],s=l.filter((e=>0===t.indexOf(e))).length>0,a=l.filter((t=>0===e.indexOf(t))).length>0;return n!==o?n?-1:1:s!==a?s?-1:1:0})).forEach((o=>{if(o!==l){const l=e[o].getAttribute("theme-for");l&&l.split(" ").forEach((e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(n=!0,this._includeStyle(o,t))}))}})),!n&&e[l]&&this._includeStyle(l,t)}static _includeStyle(t,e){if(e&&!e.content.querySelector(`style[include="${t}"]`)){const n=document.createElement("style");n.setAttribute("include",t),e.content.appendChild(n)}}}
|
|
8
|
-
/**
|
|
9
|
-
@license
|
|
10
|
-
Copyright (c) 2020 Vaadin Ltd.
|
|
11
|
-
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12
|
-
*/;class p{static detectScrollType(){const t=document.createElement("div");t.textContent="ABCD",t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t);let e="reverse";return t.scrollLeft>0?e="default":(t.scrollLeft=2,t.scrollLeft<2&&(e="negative")),document.body.removeChild(t),e}static getNormalizedScrollLeft(t,e,n){const{scrollLeft:o}=n;if("rtl"!==e||!t)return o;switch(t){case"negative":return n.scrollWidth-n.clientWidth+o;case"reverse":return n.scrollWidth-n.clientWidth-o}return o}static setNormalizedScrollLeft(t,e,n,o){if("rtl"===e&&t)switch(t){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+o;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-o;break;default:n.scrollLeft=o}else n.scrollLeft=o}}const b=[];let f;new MutationObserver((function(){const t=x();b.forEach((e=>{v(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const v=function(t,e){e?t.setAttribute("dir",e):t.removeAttribute("dir")},x=function(){return document.documentElement.getAttribute("dir")},y=t=>class extends t{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),f||(f=p.detectScrollType())}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),v(this,x()))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;const o=n===x()&&-1===b.indexOf(this),l=!n&&e&&-1===b.indexOf(this),s=n!==x()&&e===x();o||l?(this.__subscribe(),v(this,x())):s&&this.__subscribe(!1)}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(t=!0){t?-1===b.indexOf(this)&&b.push(this):b.indexOf(this)>-1&&b.splice(b.indexOf(this),1)}__getNormalizedScrollLeft(t){return p.getNormalizedScrollLeft(f,this.getAttribute("dir")||"ltr",t)}__setNormalizedScrollLeft(t,e){return p.setNormalizedScrollLeft(f,this.getAttribute("dir")||"ltr",t,e)}},g=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,w=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function z(t,e){if("function"!=typeof t)return;const n=g.exec(t.toString());if(n)try{t=new Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};const k=function(t,e){if(window.Vaadin.developmentMode)return z(t,e)};function _(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(w?!(w&&Object.keys(w).map((t=>w[t])).filter((t=>t.productionMode)).length>0):!z((function(){return!0})))}catch(t){return!1}}());const E=function(){return k(_)};let C;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){E&&E()};const S=new Set,F=o=>class extends(y(o)){static finalize(){super.finalize();const{is:o}=this;o&&!S.has(o)&&(window.Vaadin.registrations.push(this),S.add(o),window.Vaadin.developmentModeCallback&&(C=t.debounce(C,e,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),n(C)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};export{u as C,y as D,F as E,h as T,p as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./shared-2eee69db.js";import{h as t}from"./shared-7f33a83a.js";import{B as r}from"./shared-3026cee0.js";import{i as s}from"./shared-d3bf9ac0.js";let o,i,l=e=>e;const n=n=>class extends n{constructor(){super(...arguments),this.templates={},this.mode="production",this.readonly=!1,this.readonlyControls=r.False,this.disabled=!1,this.disabledControls=r.False,this.hidden=!1,this.hiddenControls=r.False,this.__observer=new MutationObserver((()=>this.__onMutation()))}static get inferredProperties(){return[...super.inferredProperties,"disabledSelector","readonlySelector","hiddenSelector","templates","disabled","readonly","hidden","mode"]}static get properties(){return e(e({},super.properties),{},{templates:{attribute:!1},mode:{type:String},readonly:{type:Boolean,reflect:!0},readonlyControls:{attribute:"readonlycontrols",converter:{fromAttribute:e=>new r(null!=e?e:"")}},disabled:{type:Boolean,reflect:!0},disabledControls:{attribute:"disabledcontrols",converter:{fromAttribute:e=>new r(null!=e?e:"")}},hidden:{type:Boolean,reflect:!0},hiddenControls:{attribute:"hiddencontrols",converter:{fromAttribute:e=>new r(null!=e?e:"")}}})}get readonlySelector(){return this.readonly?r.True:this.readonlyControls}get disabledSelector(){return this.disabled?r.True:this.disabledControls}get hiddenSelector(){return this.hidden?r.True:this.hiddenControls}connectedCallback(){super.connectedCallback(),"development"===this.mode&&this.__observe()}disconnectedCallback(){super.disconnectedCallback(),this.__observer.disconnect()}firstUpdated(...e){super.firstUpdated(...e),"production"===this.mode&&this.compileTemplates()}updated(e){super.updated(e),e.has("mode")&&(this.__observer.disconnect(),"development"===this.mode&&this.__observe())}compileTemplates(t=!1){const r=t?{}:e({},this.templates);Array.from(this.children).forEach((e=>{var t;if("template"!==e.localName)return;const s=null!==(t=e.getAttribute("slot"))&&void 0!==t?t:"default";try{const t=`return html\`${e.innerHTML}\``;r[s]=new Function("html","host",t)}catch(e){console.error(e)}})),this.templates=r}renderTemplateOrSlot(e,r){const n=null!=e?e:"default",d=this.templates[n];if(!d)return t(o||(o=l`<slot name="${0}"></slot>`),s(e));return t(i||(i=l` <foxy-internal-sandbox data-testid="${0}" .render="${0}"> </foxy-internal-sandbox> `),n,(()=>{try{const e=null!=r?r:this,s=new Proxy({},{get:(t,r)=>e[r]});return null==d?void 0:d(t,s)}catch(e){console.error(e)}}))}getNestedTemplates(e){const t={};return Object.entries(this.templates).forEach((([r,s])=>{if(r.startsWith(`${e}:`)){const o=r.replace(`${e}:`,"");t[o]=s}})),t}applyInferredProperties(e){var t,s,o,i,l,n,d,a,h;if(super.applyInferredProperties(e),null===this.infer)return;const c=e.get("disabledSelector"),u=e.get("disabled"),p=e.get("readonlySelector"),m=e.get("readonly"),b=e.get("hiddenSelector"),f=e.get("hidden"),v=e.get("templates"),y=e.get("mode");this.disabledControls=null!==(t=null==c?void 0:c.zoom(this.infer))&&void 0!==t?t:r.False,this.disabled=null!==(o=null!==(s=null==c?void 0:c.matches(this.infer,!0))&&void 0!==s?s:u)&&void 0!==o&&o,this.readonlyControls=null!==(i=null==p?void 0:p.zoom(this.infer))&&void 0!==i?i:r.False,this.readonly=null!==(n=null!==(l=null==p?void 0:p.matches(this.infer,!0))&&void 0!==l?l:m)&&void 0!==n&&n,this.hiddenControls=null!==(d=null==b?void 0:b.zoom(this.infer))&&void 0!==d?d:r.False,this.hidden=null!==(h=null!==(a=null==b?void 0:b.matches(this.infer,!0))&&void 0!==a?a:f)&&void 0!==h&&h,this.templates=null!=v?v:{},this.templates=this.getNestedTemplates(this.infer),this.mode=null!=y?y:"production"}__observe(){this.__observer.observe(this,{characterData:!0,attributes:!0,childList:!0,subtree:!0}),this.__onMutation()}__onMutation(){const e={characterData:!0,attributes:!0,childList:!0,subtree:!0};this.__observer.disconnect(),this.__observer.observe(this,e),Array.from(this.children).forEach((t=>{"template"===t.localName&&t.hasAttribute("slot")&&this.__observer.observe(t.content,e)})),this.compileTemplates(!0)}};export{n as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as e,_ as t}from"./shared-2eee69db.js";import{L as s}from"./shared-7f33a83a.js";import{t as r,m as i,a as n,b as o,R as h}from"./shared-3026cee0.js";import{A as a}from"./shared-9d4835ed.js";import{F as u}from"./shared-64657919.js";import{U as d}from"./shared-7684cb05.js";import{i as _}from"./shared-f3655f42.js";function c(e,t){let s=null;return r(t).forEach((function(){var t,r,i,n,o,h,a,u,d,_,c;if(null===(i=null===(r=null===(t=this.node)||void 0===t?void 0:t._links)||void 0===r?void 0:r.self)||void 0===i?void 0:i.href){const t=null===(h=null===(o=null===(n=this.node)||void 0===n?void 0:n._links)||void 0===o?void 0:o.self)||void 0===h?void 0:h.href,r=new URL(null===(d=null===(u=null===(a=this.node)||void 0===a?void 0:a._links)||void 0===u?void 0:u.self)||void 0===d?void 0:d.href);if(r.searchParams.delete("zoom"),e===t||e===r.toString())return s=JSON.stringify(this.node),void this.stop()}Object.entries(null!==(c=null===(_=this.node)||void 0===_?void 0:_._links)&&void 0!==c?c:{}).some((([t,r])=>{var i,n;if(r.href!==e)return!1;const o=null===(n=null===(i=this.node)||void 0===i?void 0:i._embedded)||void 0===n?void 0:n[t];if(!o||!Array.isArray(o))return!1;const h=o.length<20?o.length:21,a=new URL(e),u=new URL(e);return a.searchParams.set("offset",o.length.toString()),u.searchParams.set("offset",h.toString()),s=JSON.stringify({returned_items:o.length,total_items:h,offset:0,limit:20,_embedded:{[t]:o},_links:{curies:this.node._links.curies,first:{href:e},last:{href:u.toString()},prev:{href:e},next:{href:a.toString()},self:{href:e}}}),this.stop(),!0}))})),new Response(s,{status:s?200:404})}class l extends(e(s)){constructor(){super(...arguments),this.lang="",this.parent="",this.related=[],this.__href="",this.__group="",this.__fetchEventQueue=[],this.__service=_(n.withConfig({services:{sendDelete:()=>this._sendDelete(),sendPatch:({edits:e})=>this._sendPatch(e),sendPost:({edits:e})=>this._sendPost(e),sendGet:()=>this._sendGet()},actions:{validate:o({errors:e=>{const s=this.constructor.v8n,r=t(t({},e.data),e.edits);return s.map((e=>e(r))).filter((e=>"string"==typeof e)).filter(((e,t,s)=>s.indexOf(e)===t))}})}}))}static get inferredProperties(){return[...super.inferredProperties,"group","lang"]}static get properties(){return{related:{type:Array},parent:{type:String},group:{type:String,noAccessor:!0},href:{type:String,noAccessor:!0},lang:{type:String}}}static get v8n(){return[]}get failure(){return this.__service.state.context.failure}get errors(){return this.__service.state.context.errors}get form(){const{data:e,edits:s}=this.__service.state.context;return t(t({},e),s)}get data(){return this.__service.state.context.data}set data(e){var t;this.__service.send({type:"SET_DATA",data:e}),this.__href=null!==(t=null==e?void 0:e._links.self.href)&&void 0!==t?t:""}get group(){return this.__group}set group(e){this.__group=e,this.__destroyRumour(),this.__createRumour()}get href(){return this.__href}set href(e){this.__href=e,e?this.__service.send({type:"FETCH"}):this.__service.send({type:"SET_DATA",data:null})}in(e){return this.__service.state.matches(e)}undo(){this.__service.send({type:"UNDO"})}edit(e){this.__service.send({type:"EDIT",data:e})}submit(){this.__service.send({type:"SUBMIT"})}delete(){this.__service.send({type:"DELETE"})}refresh(){this.__service.send({type:"REFRESH"})}connectedCallback(){super.connectedCallback(),this.__createService(),this.__createRumour(),this.__createServer(),this.__processFetchEventQueue()}disconnectedCallback(){super.disconnectedCallback(),this.__destroyService(),this.__destroyRumour(),this.__destroyServer(),this.__flushFetchEventQueue("parent element was disconnected")}applyInferredProperties(e){var t,s;super.applyInferredProperties(e),null!==this.infer&&(this.group=null!==(t=e.get("group"))&&void 0!==t?t:"",this.lang=null!==(s=e.get("lang"))&&void 0!==s?s:"")}async _fetch(...e){const t=await new a(this).fetch(...e);if(!t.ok)throw t;return t.json()}async _sendPost(e){this.__destroyRumour();const t=JSON.stringify(e),s=await this._fetch(this.parent,{body:t,method:"POST"}),r=l.Rumour(this.group),i=[...this.related,this.parent];return r.share({data:s,related:i,source:s._links.self.href}),this.__createRumour(),s}async _sendGet(){this.__destroyRumour();const e=await this._fetch(this.href);return l.Rumour(this.group).share({data:e,source:this.href}),this.__createRumour(),e}async _sendPatch(e){this.__destroyRumour();const t=JSON.stringify(e),s=await this._fetch(this.href,{body:t,method:"PATCH"});return l.Rumour(this.group).share({data:s,source:this.href,related:this.related}),this.__createRumour(),s}async _sendDelete(){this.__destroyRumour();const e=await this._fetch(this.href,{method:"DELETE"}),t=l.Rumour(this.group),s=[...this.related,this.parent];return t.share({data:null,source:this.href,related:s}),this.__createRumour(),e}__createService(){this.__service.onTransition((e=>{if(!e.changed)return;const t=e.toStrings().reduce(((e,t)=>[...e,...t.split(".")]),[]);this.setAttribute("state",[...new Set(t)].join(" ")),this.requestUpdate(),this.dispatchEvent(new d),e.matches("busy")||this.__processFetchEventQueue()})),this.__service.onChange((()=>{this.requestUpdate(),this.dispatchEvent(new d)})),this.__service.start()}__destroyService(){this.__service.stop()}__createRumour(){const e=l.Rumour(this.group);this.__unsubscribeFromRumour=e.track((e=>this.__handleRumourUpdate(e)))}__destroyRumour(){var e;null===(e=this.__unsubscribeFromRumour)||void 0===e||e.call(this)}__createServer(){this.__fetchEventHandler=this.__handleFetchEvent.bind(this),this.addEventListener("fetch",this.__fetchEventHandler)}__destroyServer(){this.removeEventListener("fetch",this.__fetchEventHandler)}__handleRumourUpdate(e){var t;try{const s=null===(t=this.__service.state)||void 0===t?void 0:t.context.data;if(!s)return;const r=e(s);r!==s&&this.__service.send({data:r,type:"SET_DATA"})}catch(e){if(!(e instanceof h.UpdateError))throw e;this.__service.send({type:"REFRESH"})}}__processFetchEventQueue(){const e=new l.API(this);this.__fetchEventQueue.forEach((t=>{const s=t.request,r=c(s.url,this.data),i=r.ok?r:e.fetch(s);t.respondWith(Promise.resolve(i)),r.ok&&console.debug(`%c@foxy.io/elements::${this.localName}\n%c200%c GET ${s.url}`,"color: gray","background: gray; padding: 0 .2em; border-radius: .2em; color: white;","")})),this.__fetchEventQueue=[]}__flushFetchEventQueue(e){this.__fetchEventQueue.forEach((t=>{t.respondWith(Promise.reject(new Error(e)))})),this.__fetchEventQueue=[]}__handleFetchEvent(e){e instanceof u&&(e.defaultPrevented||"GET"===e.request.method&&(e.request.url.startsWith("foxy://")||e.composedPath()[0]!==this&&(e.preventDefault(),this.__fetchEventQueue.push(e),this.in("busy")||this.__processFetchEventQueue())))}}l.UpdateEvent=d,l.Rumour=i((()=>new h)),l.API=a;export{l as N,c as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,I as t}from"./shared-2eee69db.js";import{L as s,c as i,h as a}from"./shared-7f33a83a.js";import{A as o}from"./shared-9d4835ed.js";import{C as n}from"./shared-06014421.js";import{T as l,R as d,a as r}from"./shared-ea9af4b0.js";import{F as h}from"./shared-64657919.js";import{c}from"./shared-4e709717.js";class u extends CustomEvent{constructor(e=!1){super("hide",{detail:{cancelled:e}})}}class p extends CustomEvent{constructor(){super("show")}}let m,v=e=>e;class b extends(l(d(s))){static get styles(){return[super.styles,i(m||(m=v`:host{position:relative;z-index:200}`))]}}let _,y,g,f,w,x,$,D=e=>e;const k=r(n(l(t(s))));class E extends k{constructor(){super(...arguments),this.closable=!1,this.editable=!1,this.header="",this.alert=!1,this.__handleKeyDown=e=>{"Escape"===e.key&&E.openDialogs[0]===this&&this.closable&&this.hide(this.editable)},this.__connected=!1,this.__visible=!1}static get properties(){return e(e({},super.properties),{},{__connected:{attribute:!1},__visible:{attribute:!1},centered:{type:Boolean},closable:{type:Boolean},editable:{type:Boolean},header:{type:String},alert:{type:Boolean},open:{type:Boolean,noAccessor:!0}})}static get styles(){return[super.styles,i(_||(_=D`.grid-cols-header{grid-template-columns:1fr auto 1fr}.scale-85{--tw-scale-x:0.85;--tw-scale-y:0.85}`))]}get open(){return this.__visible&&this.__connected}set open(e){e===this.open||(e?this.show():this.hide(this.editable))}connectedCallback(){super.connectedCallback(),addEventListener("keydown",this.__handleKeyDown)}disconnectedCallback(){var e;super.disconnectedCallback(),removeEventListener("keydown",this.__handleKeyDown),null===(e=E.dialogWindows.get(this))||void 0===e||e.remove(),E.dialogWindows.delete(this)}createRenderRoot(){const e=new b,t=document.querySelectorAll(E.dialogWindowsHost),s=Array.from(t).pop();return e.addEventListener("fetch",(e=>{e instanceof h&&(e.stopImmediatePropagation(),e.preventDefault(),e.respondWith(new o(this).fetch(e.request)))})),null==s||s.appendChild(e),E.dialogWindows.set(this,e),e.shadowRoot}render(e){if(!this.__connected)return a(y||(y=D``));const t=E.openDialogs[0]===this,s=E.openDialogs[1]===this,i=E.openDialogs[2]===this,o=!t&&!s&&!i;return a(g||(g=D` <div class="${0}"> <div id="backdrop" class="${0}" tabindex="-1" @click="${0}"></div> <div role="dialog" aria-labelledby="dialog-title" class="${0}"> <div class="${0}"> <div class="h-l grid grid-cols-header text-m font-lumo font-medium border-b border-contrast-10"> ${0} <h1 id="dialog-title" class="truncate self-center text-center"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </h1> ${0} </div> <div class="flex-1 overflow-y-auto overflow-x-hidden overscroll-contain"> <div class="p-m relative">${0}</div> </div> </div> </div> </div> `),c({"z-50 fixed inset-0":!0,"pointer-events-none":!this.__visible}),c({"select-none ease-in-out transition duration-500 absolute inset-0 bg-shade-50 focus-outline-none":!0,"opacity-100":this.__visible,"opacity-0":!this.__visible}),(()=>this.closable&&this.hide(this.editable)),c({"transform origin-bottom ease-in-out transition duration-500 relative h-full ml-auto sm-origin-center sm-max-w-modal":!0,"flex justify-center items-end sm-items-center mr-auto":this.alert,"translate-y-full sm-translate-y-0":!this.__visible,"sm-translate-x-full":!this.alert&&!this.__visible,"sm-opacity-0 sm-scale-110":this.alert&&!this.__visible,"translate-y-0 translate-x-0":t&&this.__visible,"scale-95 -translate-y-s sm-translate-y-0":s&&this.__visible,"scale-90 -translate-y-m sm-translate-y-0":i&&this.__visible,"opacity-0 scale-85 -translate-y-l sm-translate-y-0":o&&this.__visible}),c({"overflow-hidden flex flex-col bg-base rounded-t-l sm-rounded-b-l":!0,"absolute inset-0 mt-xl sm-m-xl":!this.alert,"shadow-xxl":this.__visible}),this.closable&&!this.hiddenSelector.matches("close-button",!0)?a(f||(f=D` <vaadin-button id="close-button" theme="tertiary-inline" class="mr-auto m-s px-s" ?disabled="${0}" @click="${0}"> <foxy-i18n lang="${0}" key="${0}" ns="${0}"> </foxy-i18n> </vaadin-button> `),this.disabledSelector.matches("close-button",!0),(()=>this.hide(this.editable)),this.lang,this.editable?"cancel":"close",this.ns):a(w||(w=D`<div></div>`)),this.ns,this.lang,this.header,this.editable&&!this.hiddenSelector.matches("save-button",!0)?a(x||(x=D` <vaadin-button data-testid="save-button" ?disabled="${0}" theme="primary" class="ml-auto h-auto min-h-0 min-w-0 m-xs px-m" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="save"></foxy-i18n> </vaadin-button> `),this.disabledSelector.matches("save-button",!0),this.save,this.ns,this.lang):a($||($=D`<div></div>`)),null==e?void 0:e())}async hide(e=!1){var t;null===(t=this.__returnFocusTo)||void 0===t||t.focus(),await this.__setOpenDialogs(E.openDialogs.filter((e=>e!==this))),await this.__setConnected(!1),this.dispatchEvent(new E.HideEvent(!!e))}async show(e){this.__returnFocusTo=e,await this.__setConnected(!0),await this.__setOpenDialogs([this,...E.openDialogs]);const t=this.renderRoot.querySelector("#close-button");null==t||t.focus(),this.dispatchEvent(new E.ShowEvent)}async save(){await this.hide(!1)}async __setOpenDialogs(e){E.openDialogs.length=0,E.openDialogs.push(...e),await Promise.all([Promise.all(E.openDialogs.map((e=>e.requestUpdate()))),new Promise((e=>{this.renderRoot.querySelector("#backdrop").addEventListener("transitionend",e,{once:!0}),this.__visible=E.openDialogs.includes(this)}))])}async __setConnected(e){this.__connected=e,await this.updateComplete.then((()=>this.getBoundingClientRect()))}}E.dialogWindowsHost="#foxy-dialog-windows-host, body",E.dialogWindows=new WeakMap,E.openDialogs=[],E.ShowEvent=p,E.HideEvent=u,customElements.define("foxy-dialog-window",b);export{E as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function e(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?t(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){if(null==t)return{};var r,o,n=function(t,e){if(null==t)return{};var r,o,n={},i=Object.keys(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||(n[r]=t[r]);return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t){var e={exports:{}};return t(e,e.exports),e.exports}function a(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}var c=s((function(t,e){var r="undefined"!=typeof self?self:n,o=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,o="Symbol"in t&&"iterator"in Symbol,n="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:n&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&n&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=d(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(t,e){t=u(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},p.prototype.delete=function(t){delete this.map[u(t)]},p.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},p.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},p.prototype.set=function(t,e){this.map[u(t)]=f(e)},p.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},p.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),l(t)},p.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),l(t)},p.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),l(t)},o&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var r,o,n=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new p(e.headers)),this.method=(r=e.method||this.method||"GET",o=r.toUpperCase(),w.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}})),e}function O(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},O.error=function(){var t=new O(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];O.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new O(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function j(t,r){return new Promise((function(o,i){var s=new v(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();e.append(o,n)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;o(new O(n,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&n&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}j.polyfill=!0,t.fetch||(t.fetch=j,t.Headers=p,t.Request=v,t.Response=O),e.Headers=p,e.Request=v,e.Response=O,e.fetch=j,Object.defineProperty(e,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}));function u(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var f="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,p=f||l||Function("return this")(),h=p.Symbol,d=Object.prototype,y=d.hasOwnProperty,b=d.toString,m=h?h.toStringTag:void 0;var w=Object.prototype.toString;var v=h?h.toStringTag:void 0;function g(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":v&&v in Object(t)?function(t){var e=y.call(t,m),r=t[m];try{t[m]=void 0;var o=!0}catch(t){}var n=b.call(t);return o&&(e?t[m]=r:delete t[m]),n}(t):function(t){return w.call(t)}(t)}function O(t){return null!=t&&"object"==typeof t}function E(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==g(t)}const j=t=>class extends t{constructor(){super(...arguments),this.infer=null}static get inferredProperties(){return[]}static get properties(){return e(e({},super.properties),{},{infer:{type:String,reflect:!0}})}inferFromElement(t,e){if(t in e)return e[t]}inferProperties(){var t;const e=new Map,r=this.constructor,o=new Set(r.inferredProperties),n=t=>{t&&(t instanceof ShadowRoot?n(t.host):t instanceof HTMLElement&&(o.forEach((r=>{const n=this.inferFromElement(r,t);void 0!==n&&(e.set(r,n),o.delete(r))})),o.size>0&&n(t.parentNode)))};n(this.parentNode),null===(t=this.applyInferredProperties)||void 0===t||t.call(this,e)}inferPropertiesInDescendants(){(this.renderRoot===this?[this.renderRoot]:[this.renderRoot,this]).forEach((t=>t.querySelectorAll("[infer]").forEach((t=>t.inferProperties()))))}applyInferredProperties(t){}connectedCallback(){super.connectedCallback(),this.inferPropertiesInDescendants()}updated(t){super.updated(t),this.inferPropertiesInDescendants()}};export{j as I,h as S,e as _,n as a,a as b,s as c,c as d,u as e,g as f,i as g,O as h,E as i,f as j,o as k,p as r};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{S as t,i as e,e as n,f as r,r as i,h as o,j as a,c as s,a as c,g as u,d as l}from"./shared-2eee69db.js";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var f=function(){return f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},f.apply(this,arguments)};function h(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}var y={};function g(t){return Object.keys(t)}function _(t,e,n){void 0===n&&(n=".");var r=w(t,n),i=w(e,n);return C(i)?!!C(r)&&i===r:C(r)?r in i:g(r).every((function(t){return t in i&&_(r[t],i[t])}))}function b(t){try{return C(t)||"number"==typeof t?""+t:t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function m(t,e){try{return I(t)?t:t.toString().split(e)}catch(e){throw new Error("'"+t+"' is not a valid state path.")}}function w(t,e){return"object"==typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:I(t)?j(t):"string"!=typeof t?t:j(m(t,e));var n}function j(t){if(1===t.length)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function S(t,e){for(var n={},r=g(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function x(t,e,n){var r,i,o={};try{for(var a=p(g(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];n(u)&&(o[c]=e(u,c,t))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var O=function(t){return function(e){var n,r,i=e;try{for(var o=p(t),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function E(t){return t?C(t)?[[t]]:k(g(t).map((function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?E(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function k(t){var e;return(e=[]).concat.apply(e,v(t))}function A(t){return I(t)?t:[t]}function P(t){return void 0===t?[]:A(t)}function T(t,e,n){var r,i;if(L(t))return t(e,n.data);var o={};try{for(var a=p(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];L(u)?o[c]=u(e,n.data):o[c]=u}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function R(t){return t instanceof Promise||!(null===t||!L(t)&&"object"!=typeof t||!L(t.then))}function N(t,e){var n,r,i=d([[],[]],2),o=i[0],a=i[1];try{for(var s=p(t),c=s.next();!c.done;c=s.next()){var u=c.value;e(u)?o.push(u):a.push(u)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}function D(t,e){return S(t.states,(function(t,n){if(t){var r=(C(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:D(t,r)}}}))}function I(t){return Array.isArray(t)}function L(t){return"function"==typeof t}function C(t){return"string"==typeof t}function F(t,e){if(t)return C(t)?{type:"xstate.guard",name:t,predicate:e?e[t]:void 0}:L(t)?{type:"xstate.guard",name:t.name,predicate:t}:t}function $(t){try{return"subscribe"in t&&L(t.subscribe)}catch(t){return!1}}var V,M,U=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function z(t){try{return"__xstatenode"in t}catch(t){return!1}}function W(t){return!!t&&"function"==typeof t.send}function B(t,e){return C(t)||"number"==typeof t?f({type:t},e):t}function H(t,e){if(!C(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=B(t);return f({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function q(t,e){return A(e).map((function(e){return void 0===e||"string"==typeof e||z(e)?{target:e,event:t}:f(f({},e),{event:t})}))}function J(t,e,n,r,i){var o=t.options.guards,a={state:i,cond:e,_event:r};if("xstate.guard"===e.type)return e.predicate(n,r.data,a);var s=o[e.type];if(!s)throw new Error("Guard '"+e.type+"' is not implemented on machine '"+t.id+"'.");return s(n,r.data,a)}function G(t){return"string"==typeof t?{type:t}:t}function Z(t,e,n){if("object"==typeof t)return t;var r=function(){};return{next:t,error:e||r,complete:n||r}}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(V||(V={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(M||(M={}));var K=V.Start,Q=V.Stop,X=V.Raise,Y=V.Send,tt=V.Cancel,et=V.NullEvent,nt=V.Assign;V.After,V.DoneState;var rt=V.Log,it=V.Init,ot=V.Invoke;V.ErrorExecution;var at=V.ErrorPlatform,st=V.ErrorCustom,ct=V.Update,ut=V.Choose,lt=V.Pure,ft=H({type:it});function ht(t,e){return e&&e[t]||void 0}function pt(t,e){var n;if(C(t)||"number"==typeof t){var r=ht(t,e);n=L(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if(L(t))n={type:t.name||t.toString(),exec:t};else{if(L(r=ht(t.type,e)))n=f(f({},t),{exec:r});else if(r){var i=r.type||t.type;n=f(f(f({},r),t),{type:i})}else n=t}return Object.defineProperty(n,"toString",{value:function(){return n.type},enumerable:!1,configurable:!0}),n}var dt=function(t,e){return t?(I(t)?t:[t]).map((function(t){return pt(t,e)})):[]};function vt(t){var e=pt(t);return f(f({id:C(t)?t:e.id},e),{type:e.type})}function yt(t){return C(t)?{type:X,event:t}:gt(t,{to:M.Internal})}function gt(t,e){return{to:e?e.to:void 0,type:Y,event:L(t)?t:B(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:L(t)?t.name:b(t)}}function _t(t,e){return gt(t,f(f({},e),{to:M.Parent}))}function bt(){return _t(ct)}function mt(t,e){return gt(t,f(f({},e),{to:function(t,e,n){return n._event.origin}}))}var wt=function(t,e){return{context:t,event:e}};function jt(t,e){return void 0===t&&(t=wt),{type:rt,label:e,expr:t}}var St=function(t){return{type:tt,sendId:t}};function xt(t){var e=vt(t);return{type:V.Start,activity:e,exec:void 0}}function Ot(t){var e=L(t)?t:vt(t);return{type:V.Stop,activity:e,exec:void 0}}var Et=function(t){return{type:nt,assignment:t}};function kt(t,e){var n=e?"#"+e:"";return V.After+"("+t+")"+n}function At(t,e){var n=V.DoneState+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Pt(t,e){var n=V.DoneInvoke+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Tt(t,e){var n=V.ErrorPlatform+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Rt(t){return{type:V.Pure,get:t}}function Nt(t,e){return gt((function(t,e){return e}),f(f({},e),{to:t}))}function Dt(t,e){return _t((function(e,n,r){return{type:st,data:L(t)?t(e,n,r):t}}),f(f({},e),{to:M.Parent}))}function It(t){return{type:V.Choose,conds:t}}function Lt(t,e,n,r,i){var o=d(N(i,(function(t){return t.type===nt})),2),a=o[0],s=o[1],c=a.length?function(t,e,n,r){return t?n.reduce((function(t,n){var i,o,a=n.assignment,s={state:r,action:n,_event:e},c={};if(L(a))c=a(t,e.data,s);else try{for(var u=p(g(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=a[f];c[f]=L(h)?h(t,e.data,s):h}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object.assign({},t,c)}),t):t}(n,r,a,e):n,u=k(s.map((function(n){var i;switch(n.type){case X:return{type:X,_event:H(n.event)};case Y:var o=function(t,e,n,r){var i,o={_event:n},a=H(L(t.event)?t.event(e,n.data,o):t.event);if(C(t.delay)){var s=r&&r[t.delay];i=L(s)?s(e,n.data,o):s}else i=L(t.delay)?t.delay(e,n.data,o):t.delay;var c=L(t.to)?t.to(e,n.data,o):t.to;return f(f({},t),{to:c,_event:a,event:a.data,delay:i})}(n,c,r,t.options.delays);return o;case rt:return function(t,e,n){return f(f({},t),{value:C(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})}(n,c,r);case ut:if(!(s=null===(i=n.conds.find((function(n){var i=F(n.cond,t.options.guards);return!i||J(t,i,c,r,e)})))||void 0===i?void 0:i.actions))return[];var a=Lt(t,e,c,r,dt(P(s),t.options.actions));return c=a[1],a[0];case lt:var s;if(!(s=n.get(c,r.data)))return[];a=Lt(t,e,c,r,dt(P(s),t.options.actions));return c=a[1],a[0];case Q:return function(t,e,n){var r=L(t.activity)?t.activity(e,n.data):t.activity,i="string"==typeof r?{id:r}:r;return{type:V.Stop,activity:i}}(n,c,r);default:return pt(n,t.options.actions)}})));return[u,c]}var Ct=function(t){return"atomic"===t.type||"final"===t.type};function Ft(t){return g(t.states).map((function(e){return t.states[e]}))}function $t(t){var e=[t];return Ct(t)?e:e.concat(k(Ft(t).map($t)))}function Vt(t,e){var n,r,i,o,a,s,c,u,l=Ut(new Set(t)),f=new Set(e);try{for(var h=p(f),d=h.next();!d.done;d=h.next())for(var v=(x=d.value).parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var y=Ut(f);try{for(var g=p(f),_=g.next();!_.done;_=g.next()){if("compound"!==(x=_.value).type||y.get(x)&&y.get(x).length){if("parallel"===x.type)try{for(var b=(a=void 0,p(Ft(x))),m=b.next();!m.done;m=b.next()){var w=m.value;"history"!==w.type&&(f.has(w)||(f.add(w),l.get(w)?l.get(w).forEach((function(t){return f.add(t)})):w.initialStateNodes.forEach((function(t){return f.add(t)}))))}}catch(t){a={error:t}}finally{try{m&&!m.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else l.get(x)?l.get(x).forEach((function(t){return f.add(t)})):x.initialStateNodes.forEach((function(t){return f.add(t)}))}}catch(t){i={error:t}}finally{try{_&&!_.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var j=p(f),S=j.next();!S.done;S=j.next()){var x;for(v=(x=S.value).parent;v&&!f.has(v);)f.add(v),v=v.parent}}catch(t){c={error:t}}finally{try{S&&!S.done&&(u=j.return)&&u.call(j)}finally{if(c)throw c.error}}return f}function Mt(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if(Ct(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=Mt(t,e)})),i}function Ut(t){var e,n,r=new Map;try{for(var i=p(t),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function zt(t,e){return Mt(t,Ut(Vt([t],e)))}function Wt(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function Bt(t,e){return"compound"===e.type?Ft(e).some((function(e){return"final"===e.type&&Wt(t,e)})):"parallel"===e.type&&Ft(e).every((function(e){return Bt(t,e)}))}function Ht(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if(C(t)||C(e))return t===e;var n=g(t),r=g(e);return n.length===r.length&&n.every((function(n){return Ht(t[n],e[n])}))}function qt(t){return!C(t)&&("value"in t&&"history"in t)}function Jt(t,e){var n=t.exec;return f(f({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var Gt=function(){function t(t){var e=this;this.actions=[],this.activities=y,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||y,this.meta=t.meta||{},this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,Object.defineProperty(this,"nextEvents",{get:function(){return t=e.configuration,k(v(new Set(t.map((function(t){return t.ownEvents})))));var t}})}return t.from=function(e,n){return e instanceof t?e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:n,_event:ft,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=ft;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),C(t))return[t];var r=g(t);return r.concat.apply(r,v(r.map((function(r){return n.toStrings(t[r],e).map((function(t){return r+e+t}))}))))},t.prototype.toJSON=function(){var t=this;return t.configuration,t.transitions,h(t,["configuration","transitions"])},t.prototype.matches=function(t){return _(t,this.value)},t}(),Zt=function(t,e){return e(t)};function Kt(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},toJSON:function(){return{id:t}}}}function Qt(t,e,n,r){var i,o=G(t.src),a=null===(i=null==e?void 0:e.options.services)||void 0===i?void 0:i[o.type],s=t.data?T(t.data,n,r):void 0,c=a?function(t,e,n){var r=Kt(e);r.deferred=!0,z(t)&&(r.state=Zt(void 0,(function(){return(n?t.withContext(n):t).initialState})));return r}(a,t.id,s):Kt(t.id);return c.meta=t,c}function Xt(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function Yt(t){if("string"==typeof t){var e={type:t,toString:function(){return t}};return e}return t}function te(t){return f(f({type:ot},t),{toJSON:function(){t.onDone,t.onError;var e=h(t,["onDone","onError"]);return f(f({},e),{type:ot,src:Yt(t.src)})}})}var ee={},ne=function(t){return"#"===t[0]},re=function(){function t(e,n,r){var i=this;this.config=e,this.context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=this.options._parent,this.key=this.config.key||this.options._key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||v([this.machine.key],this.path).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&g(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.initial=this.config.initial,this.states=this.config.states?S(this.config.states,(function(e,n){var r,o=new t(e,{_parent:i,_key:n});return Object.assign(i.idMap,f(((r={})[o.id]=o,r),o.idMap)),o})):ee;var o=0;!function t(e){var n,r;e.order=o++;try{for(var i=p(Ft(e)),a=i.next();!a.done;a=i.next()){t(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return""===t.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=P(this.config.entry||this.config.onEntry).map((function(t){return pt(t)})),this.onExit=P(this.config.exit||this.config.onExit).map((function(t){return pt(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=P(this.config.invoke).map((function(t,e){var n,r;if(z(t))return i.machine.options.services=f(((n={})[t.id]=t,n),i.machine.options.services),te({src:t.id,id:t.id});if(C(t.src))return te(f(f({},t),{id:t.id||t.src,src:t.src}));if(z(t.src)||L(t.src)){var o=i.id+":invocation["+e+"]";return i.machine.options.services=f(((r={})[o]=t.src,r),i.machine.options.services),te(f(f({id:o},t),{src:o}))}var a=t.src;return te(f(f({id:a.type},t),{src:a}))})),this.activities=P(this.config.activities).concat(this.invoke).map((function(t){return vt(t)})),this.transition=this.transition.bind(this)}return t.prototype._init=function(){this.__cache.transitions||$t(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){void 0===n&&(n=this.context);var r=this.options,i=r.actions,o=r.activities,a=r.guards,s=r.services,c=r.delays;return new t(this.config,{actions:f(f({},i),e.actions),activities:f(f({},o),e.activities),guards:f(f({},a),e.guards),services:f(f({},s),e.services),delays:f(f({},c),e.delays)},n)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:S(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter((function(n){var r=n.eventType===t;return e?r:r||"*"===n.eventType}));return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var r=kt(L(e)?t.id+":delay["+n+"]":e,t.id);return t.onEntry.push(gt(r,{delay:e})),t.onExit.push(St(r)),r};return(I(e)?e.map((function(t,e){var r=n(t.delay,e);return f(f({},t),{event:r})})):k(g(e).map((function(t,r){var i=e[t],o=C(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=n(a,r);return P(o).map((function(t){return f(f({},t),{event:s,delay:a})}))})))).map((function(e){var n=e.delay;return f(f({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof Gt?t.value:w(t,this.delimiter);if(C(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this.states[r]]}var o=g(r);return o.map((function(t){return n.getStateNode(t)})).concat(o.reduce((function(t,e){var i=n.getStateNode(e).getStateNodes(r[e]);return t.concat(i)}),[]))},t.prototype.handles=function(t){var e=b(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from(Vt([],this.getStateNodes(t.value)));return new Gt(f(f({},t),{value:this.resolve(t.value),configuration:e,done:Bt(e,this)}))},t.prototype.transitionLeafNode=function(t,e,n){var r=this.getStateNode(t).next(e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var r=g(t),i=this.getStateNode(r[0])._transition(t[r[0]],e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var r,i,o={};try{for(var a=p(g(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];if(u){var l=this.getStateNode(c)._transition(u,e,n);l&&(o[c]=l)}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var f=g(o).map((function(t){return o[t]})),h=k(f.map((function(t){return t.transitions})));if(!f.some((function(t){return t.transitions.length>0})))return this.next(e,n);var d=k(f.map((function(t){return t.entrySet}))),v=k(g(o).map((function(t){return o[t].configuration})));return{transitions:h,entrySet:d,exitSet:k(f.map((function(t){return t.exitSet}))),configuration:v,source:e,actions:k(g(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,n){return C(t)?this.transitionLeafNode(t,e,n):1===g(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.next=function(t,e){var n,r,i,o=this,a=e.name,s=[],c=[];try{for(var u=p(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=f.cond,d=f.in,y=t.context,g=!d||(C(d)&&ne(d)?t.matches(w(this.getStateNodeById(d).path,this.delimiter)):_(w(d,this.delimiter),O(this.path.slice(0,-2))(t.value))),b=!1;try{b=!h||J(this.machine,h,y,e,t)}catch(t){throw new Error("Unable to evaluate guard '"+(h.name||h.type)+"' in transition for event '"+a+"' in state node '"+this.id+"':\n"+t.message)}if(b&&g){void 0!==f.target&&(c=f.target),s.push.apply(s,v(f.actions)),i=f;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(i){if(!c.length)return{transitions:[i],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var m=k(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)}))),j=!!i.internal;return{transitions:[i],entrySet:j?[]:k(m.map((function(t){return o.nodesFromChild(t)}))),exitSet:j?[]:[this],configuration:m,source:t,actions:s}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],n=t;n&&n!==this;)e.push(n),n=n.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,n,r){var i,o,a,s,c=Vt([],r?this.getStateNodes(r.value):[this]),u=t.configuration.length?Vt(c,t.configuration):c;try{for(var l=p(u),f=l.next();!f.done;f=l.next()){Wt(c,g=f.value)||t.entrySet.push(g)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}try{for(var h=p(c),y=h.next();!y.done;y=h.next()){var g;Wt(u,g=y.value)&&!Wt(t.exitSet,g.parent)||t.exitSet.push(g)}}catch(t){a={error:t}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var _=k(t.entrySet.map((function(r){var i=[];if("final"!==r.type)return i;var o=r.parent;if(!o.parent)return i;i.push(At(r.id,r.doneData),At(o.id,r.doneData?T(r.doneData,e,n):void 0));var a=o.parent;return"parallel"===a.type&&Ft(a).every((function(e){return Bt(t.configuration,e)}))&&i.push(At(a.id)),i})));t.exitSet.sort((function(t,e){return e.order-t.order})),t.entrySet.sort((function(t,e){return t.order-e.order}));var b=new Set(t.entrySet),m=new Set(t.exitSet),w=d([k(Array.from(b).map((function(t){return v(t.activities.map((function(t){return xt(t)})),t.onEntry)}))).concat(_.map(yt)),k(Array.from(m).map((function(t){return v(t.onExit,t.activities.map((function(t){return Ot(t)})))})))],2),j=w[0],S=w[1];return dt(S.concat(t.actions).concat(j),this.machine.options.actions)},t.prototype.transition=function(t,e,n){void 0===t&&(t=this.initialState);var r,i,o=H(e);if(t instanceof Gt)r=void 0===n?t:this.resolveState(Gt.from(t,n));else{var a=C(t)?this.resolve(j(this.getResolvedPath(t))):this.resolve(t),s=n||this.machine.context;r=this.resolveState(Gt.from(a,s))}if(this.strict&&!this.events.includes(o.name)&&(i=o.name,!/^(done|error)\./.test(i)))throw new Error("Machine '"+this.id+"' does not accept event '"+o.name+"'");var c=this._transition(r.value,r,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:r,actions:[]},u=Vt([],this.getStateNodes(r.value)),l=c.configuration.length?Vt(u,c.configuration):u;return c.configuration=v(l),this.resolveTransition(c,r,o)},t.prototype.resolveRaisedTransition=function(t,e,n){var r,i=t.actions;return(t=this.transition(t,e))._event=n,t.event=n.data,(r=t.actions).unshift.apply(r,v(i)),t},t.prototype.resolveTransition=function(t,e,n,r){var i,o,a=this;void 0===n&&(n=ft),void 0===r&&(r=this.machine.context);var s=t.configuration,c=!e||t.transitions.length>0?zt(this.machine,s):void 0,u=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,l=e?e.context:r,h=this.getActions(t,l,n,e),v=e?f({},e.activities):{};try{for(var y=p(h),g=y.next();!g.done;g=y.next()){var _=g.value;_.type===K?v[_.activity.id||_.activity.type]=_:_.type===Q&&(v[_.activity.id||_.activity.type]=!1)}}catch(t){i={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}var b,m,w=d(Lt(this,e,l,n,h),2),j=w[0],S=w[1],x=d(N(j,(function(t){return t.type===X||t.type===Y&&t.to===M.Internal})),2),O=x[0],E=x[1],k=j.filter((function(t){var e;return t.type===K&&(null===(e=t.activity)||void 0===e?void 0:e.type)===ot})),A=k.reduce((function(t,e){return t[e.activity.id]=Qt(e.activity,a.machine,S,n),t}),e?f({},e.children):{}),P=c?t.configuration:e?e.configuration:[],T=P.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{}),R=Bt(P,this),I=new Gt({value:c||e.value,context:S,_event:n,_sessionid:e?e._sessionid:null,historyValue:c?u?(b=u,m=c,{current:m,states:D(b,m)}):void 0:e?e.historyValue:void 0,history:!c||t.source?e:void 0,actions:c?E:[],activities:c?v:e?e.activities:{},meta:c?T:e?e.meta:void 0,events:[],configuration:P,transitions:t.transitions,children:A,done:R}),L=l!==S;I.changed=n.name===ct||L;var C=I.history;if(C&&delete C.history,!c)return I;var F=I;if(!R)for((this._transient||s.some((function(t){return t._transient})))&&(F=this.resolveRaisedTransition(F,{type:et},n));O.length;){var $=O.shift();F=this.resolveRaisedTransition(F,$._event,n)}var V=F.changed||(C?!!F.actions.length||L||typeof C.value!=typeof F.value||!Ht(F.value,C.value):void 0);return F.changed=V,F.history=C,F},t.prototype.getStateNode=function(t){if(ne(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '"+t+"' from '"+this.id+"'; no child states exist.");var e=this.states[t];if(!e)throw new Error("Child state '"+t+"' does not exist on '"+this.id+"'");return e},t.prototype.getStateNodeById=function(t){var e=ne(t)?t.slice("#".length):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw new Error("Child state node '#"+e+"' does not exist on machine '"+this.id+"'");return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&ne(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=m(t,this.delimiter).slice(),n=this;e.length;){var r=e.shift();if(!r.length)break;n=n.getStateNode(r)}return n},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||ee;switch(this.type){case"parallel":return S(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):ee}));case"compound":if(C(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return g(t).length?S(t,(function(t,e){return t?n.getStateNode(e).resolve(t):ee})):this.initialStateValue||{};default:return t||ee}},t.prototype.getResolvedPath=function(t){if(ne(t)){var e=this.machine.idMap[t.slice("#".length)];if(!e)throw new Error("Unable to find state node '"+t+"'");return e.path}return m(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=x(this.states,(function(t){return t.initialStateValue||ee}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '"+this.initial+"' not found on '"+this.key+"'");e=Ct(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,e)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '"+this.id+"'.");return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=C(e.target)&&ne(e.target)?j(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return Ct(this)?[this]:"compound"!==this.type||this.initial?k(E(this.initialStateValue).map((function(e){return t.getFromRelativePath(e)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=d(t),n=e[0],r=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '"+n+"' from node with no states");var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '"+n+"' does not exist on '"+this.id+"'");return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(g(this.states).length)return{current:t||this.initialStateValue,states:x(this.states,(function(e,n){if(!t)return e.historyValue();var r=C(t)?void 0:t[n];return e.historyValue(r||e.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var r=this.target;return r?k(E(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(t){var e,n,r=t;try{for(var a=p(i),s=a.next();!s.done;s=a.next()){var c=s.value;r=r[o][c]}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r})(t).current;return C(a)?[n.getStateNode(a)]:k(E(a).map((function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=k(g(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,e,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=p(g(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(n=void 0,p(c.events)),l=u.next();!l.done;l=u.next()){var f=l.value;o.add(""+f)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map((function(t){if(!C(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var r=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(r);try{return e.parent.getStateNodeByPath(r)}catch(t){throw new Error("Invalid transition definition for state node '"+e.id+"':\n"+t.message)}}))},t.prototype.formatTransition=function(t){var e=this,n=function(t){if(void 0!==t&&""!==t)return P(t)}(t.target),r="internal"in t?t.internal:!n||n.some((function(t){return C(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=f(f({},t),{actions:dt(P(t.actions)),cond:F(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return f(f({},a),{target:a.target?a.target.map((function(t){return"#"+t.id})):void 0,source:"#"+e.id})}});return a},t.prototype.formatTransitions=function(){var t,e,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o="*",a=i[o],s=void 0===a?[]:a,c=h(i,["*"]);n=k(g(c).map((function(t){var e=q(t,c[t]);return e})).concat(q("*",s)))}else n=[];var u=this.config.always?q("",this.config.always):[],l=this.config.onDone?q(String(At(this.id)),this.config.onDone):[];var f=k(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,v(q(String(Pt(t.id)),t.onDone))),t.onError&&e.push.apply(e,v(q(String(Tt(t.id)),t.onError))),e}))),d=this.after,y=k(v(l,f,n,u).map((function(t){return P(t).map((function(t){return r.formatTransition(t)}))})));try{for(var _=p(d),b=_.next();!b.done;b=_.next()){var m=b.value;y.push(m)}}catch(e){t={error:e}}finally{try{b&&!b.done&&(e=_.return)&&e.call(_)}finally{if(t)throw t.error}}return y},t}();function ie(t,e,n){void 0===n&&(n=t.context);var r="function"==typeof n?n():n;return new re(t,e,r)}function oe(t,e){var n="function"==typeof t.context?t.context():t.context;return new re(t,e,n)}const ae=Et({failure:null}),se=Et({errors:[]}),ce=Et({edits:null}),ue=Et({data:null}),le=se,fe=Et({failure:(t,e)=>e.data}),he=Et({errors:(t,e)=>e.data}),pe=Et({data:(t,e)=>e.data}),de=Et({edits:(t,e)=>Object.assign(Object.assign({},t.edits),e.data)});const ve=oe({context:{data:null,edits:null,errors:[],failure:null},entry:["validate"],id:"nucleon",initial:"init",on:{DELETE:{actions:["clearData","clearEdits","clearErrors"],target:"#nucleon.busy.deleting"},FETCH:{actions:["clearData","clearEdits","clearErrors"],target:"#nucleon.busy.fetching"},REFRESH:{target:"#nucleon.busy.fetching"},SET_DATA:{actions:["setData","clearEdits","clearErrors"],target:"#nucleon.init"}},states:{busy:{states:{creating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPost"}},deleting:{invoke:{onDone:{actions:["clearData","clearEdits","validate"],target:"#nucleon.idle.template"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendDelete"}},fetching:{invoke:{onDone:{actions:["setData","clearErrors","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendGet"}},updating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPatch"}}}},fail:{exit:"clearFailure"},idle:{initial:"unknown",on:{EDIT:{actions:["applyEdit","validate"],target:".unknown"}},states:{snapshot:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.snapshot.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.updating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},template:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.template.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.creating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},unknown:{always:[{cond:"hasData",target:"snapshot"},{target:"template"}]}}},init:{always:[{cond:"hasData",target:"idle.snapshot"},{target:"idle.template"}]}}},{actions:Object.freeze({__proto__:null,clearFailure:ae,clearErrors:se,clearEdits:ce,clearData:ue,validate:le,setFailure:fe,setErrors:he,setData:pe,applyEdit:de}),guards:Object.freeze({__proto__:null,hasData:t=>null!==t.data,hasEdits:t=>null!==t.edits,hasErrors:t=>t.errors.length>0,isV8nErrorEvent:(t,e)=>Array.isArray(e.data)})});var ye;!function(t){t[t.List=0]="List",t[t.Set=1]="Set"}(ye||(ye={}));class ge{constructor(t){this.__value=t,this.__tree=ge.__parse(t)}static get True(){return be}static get False(){return _e}static fromAttribute(t,e){return null===t?ge.False:""===t||t===e?ge.True:new ge(t)}matches(t,e=!1){const n=this.zoom(t).toString();return e?"not=*"===n:""!==n}zoom(t){const[e,...n]=t.split(":"),{only:r,not:i}=this.__tree;if(null==r?void 0:r[e]){const t=new ge(ge.__stringify(r[e]));return 0===n.length?t:t.zoom(n.join(":"))}return!i||i.includes(e)?ge.False:ge.True}toString(){return this.__value}toAttribute(t=""){var e;return"*"===(null===(e=this.__tree.not)||void 0===e?void 0:e[0])?t:0===this.__value.trim().length?null:this.toString()}static __stringify(t,e=""){return t.only?Object.entries(t.only).reduce(((t,[n,r])=>{const i=ge.__stringify(r,0===e.length?n:`${e}:${n}`);return 0===t.length?i:`${t} ${i}`}),""):t.not?`${0===e.length?"":`${e}:`}not=${t.not.join(",")}`:e}static __parse(t){const e={},n={branch:e,buffer:"",entity:ye.List,tree:e};return Array.from(`${t} `).forEach(((e,r)=>{try{ge.__processors[n.entity](n,e)}catch(e){const n="This error occured at: ",i=t=>t.substring(Math.max(0,r-30),r+30),o=i(t),a=" ".repeat(n.length)+i("^".padStart(r+1," "));throw new SyntaxError([e.message,`${n}${o}`,a].join("\n"))}})),e}}ge.__processors={[ye.List](t,e){var n,r,i,o;if(Array.isArray(t.branch))throw new SyntaxError("Paths are not allowed in sets.");if("="===e){if("not"===t.buffer){const e=null!==(n=t.branch.not)&&void 0!==n?n:[];return delete t.branch.only,t.branch.not=e,t.entity=ye.Set,t.branch=e,void(t.buffer="")}throw new SyntaxError(`Unknown modifier "${t.buffer}".`)}if(/^\s$/.test(e)||":"===e){if(t.buffer.length>0){const n=t.buffer,a=null!==(i=null===(r=t.branch.only)||void 0===r?void 0:r[n])&&void 0!==i?i:{};":"!==e&&(a.not=["*"]),!0!==(null===(o=t.branch.not)||void 0===o?void 0:o.includes("*"))&&(t.branch.only=Object.assign(Object.assign({},t.branch.only),{[n]:a}),delete t.branch.not),t.branch=":"===e?a:t.tree,t.buffer=""}}else{if(!/^[a-z]|-$/.test(e))throw new SyntaxError(`Expected [a-z], "-", ":" or a whitespace, but got "${e}" instead.`);t.buffer+=e}},[ye.Set](t,e){if(!Array.isArray(t.branch))throw new SyntaxError("Unexpected set item.");if(0!==t.buffer.length||!/^\s$/.test(e)){if(","===e||"*"===e||/^\s$/.test(e)){const n="*"===e?"*":t.buffer,r=new Set([...t.branch,n]),i=r.has("*")?new Set(["*"]):r;return t.branch.splice(0,t.branch.length,...i),t.entity=","===e?ye.Set:ye.List,t.branch=","===e?t.branch:t.tree,void(t.buffer="")}if(!/^[a-z]|-$/.test(e))throw new SyntaxError(`Expected [a-z], "-", "," or a whitespace, but got "${e}" instead.`);t.buffer+=e}}};const _e=new ge(""),be=new ge("not=*");var me=Array.isArray,we=t?t.prototype:void 0,je=we?we.toString:void 0;function Se(t){if("string"==typeof t)return t;if(me(t))return function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(t,Se)+"";if(e(t))return je?je.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}function xe(t){if(!n(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Oe,Ee=i["__core-js_shared__"],ke=(Oe=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||""))?"Symbol(src)_1."+Oe:"";var Ae=Function.prototype.toString;function Pe(t){if(null!=t){try{return Ae.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Te=/^\[object .+?Constructor\]$/,Re=Function.prototype,Ne=Object.prototype,De=Re.toString,Ie=Ne.hasOwnProperty,Le=RegExp("^"+De.call(Ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ce(t){return!(!n(t)||(e=t,ke&&ke in e))&&(xe(t)?Le:Te).test(Pe(t));var e}function Fe(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Ce(n)?n:void 0}var $e=Fe(i,"WeakMap"),Ve=/^(?:0|[1-9]\d*)$/;function Me(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ve.test(t))&&t>-1&&t%1==0&&t<e}function Ue(t,e){return t===e||t!=t&&e!=e}function ze(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function We(t){return null!=t&&ze(t.length)&&!xe(t)}var Be=Object.prototype;function He(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Be)}function qe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Je(t){return o(t)&&"[object Arguments]"==r(t)}var Ge=Object.prototype,Ze=Ge.hasOwnProperty,Ke=Ge.propertyIsEnumerable,Qe=Je(function(){return arguments}())?Je:function(t){return o(t)&&Ze.call(t,"callee")&&!Ke.call(t,"callee")};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ye=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,tn=Ye&&Ye.exports===Xe?i.Buffer:void 0,en=(tn?tn.isBuffer:void 0)||function(){return!1},nn={};function rn(t){return function(e){return t(e)}}nn["[object Float32Array]"]=nn["[object Float64Array]"]=nn["[object Int8Array]"]=nn["[object Int16Array]"]=nn["[object Int32Array]"]=nn["[object Uint8Array]"]=nn["[object Uint8ClampedArray]"]=nn["[object Uint16Array]"]=nn["[object Uint32Array]"]=!0,nn["[object Arguments]"]=nn["[object Array]"]=nn["[object ArrayBuffer]"]=nn["[object Boolean]"]=nn["[object DataView]"]=nn["[object Date]"]=nn["[object Error]"]=nn["[object Function]"]=nn["[object Map]"]=nn["[object Number]"]=nn["[object Object]"]=nn["[object RegExp]"]=nn["[object Set]"]=nn["[object String]"]=nn["[object WeakMap]"]=!1;var on="object"==typeof exports&&exports&&!exports.nodeType&&exports,an=on&&"object"==typeof module&&module&&!module.nodeType&&module,sn=an&&an.exports===on&&a.process,cn=function(){try{var t=an&&an.require&&an.require("util").types;return t||sn&&sn.binding&&sn.binding("util")}catch(t){}}(),un=cn&&cn.isTypedArray,ln=un?rn(un):function(t){return o(t)&&ze(t.length)&&!!nn[r(t)]},fn=Object.prototype.hasOwnProperty;function hn(t,e){var n=me(t),r=!n&&Qe(t),i=!n&&!r&&en(t),o=!n&&!r&&!i&&ln(t),a=n||r||i||o,s=a?qe(t.length,String):[],c=s.length;for(var u in t)!e&&!fn.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Me(u,c))||s.push(u);return s}function pn(t,e){return function(n){return t(e(n))}}var dn=pn(Object.keys,Object),vn=Object.prototype.hasOwnProperty;function yn(t){return We(t)?hn(t):function(t){if(!He(t))return dn(t);var e=[];for(var n in Object(t))vn.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var gn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_n=/^\w*$/;var bn=Fe(Object,"create");var mn=Object.prototype.hasOwnProperty;var wn=Object.prototype.hasOwnProperty;function jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Sn(t,e){for(var n=t.length;n--;)if(Ue(t[n][0],e))return n;return-1}jn.prototype.clear=function(){this.__data__=bn?bn(null):{},this.size=0},jn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},jn.prototype.get=function(t){var e=this.__data__;if(bn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return mn.call(e,t)?e[t]:void 0},jn.prototype.has=function(t){var e=this.__data__;return bn?void 0!==e[t]:wn.call(e,t)},jn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=bn&&void 0===e?"__lodash_hash_undefined__":e,this};var xn=Array.prototype.splice;function On(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}On.prototype.clear=function(){this.__data__=[],this.size=0},On.prototype.delete=function(t){var e=this.__data__,n=Sn(e,t);return!(n<0)&&(n==e.length-1?e.pop():xn.call(e,n,1),--this.size,!0)},On.prototype.get=function(t){var e=this.__data__,n=Sn(e,t);return n<0?void 0:e[n][1]},On.prototype.has=function(t){return Sn(this.__data__,t)>-1},On.prototype.set=function(t,e){var n=this.__data__,r=Sn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var En=Fe(i,"Map");function kn(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function An(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}An.prototype.clear=function(){this.size=0,this.__data__={hash:new jn,map:new(En||On),string:new jn}},An.prototype.delete=function(t){var e=kn(this,t).delete(t);return this.size-=e?1:0,e},An.prototype.get=function(t){return kn(this,t).get(t)},An.prototype.has=function(t){return kn(this,t).has(t)},An.prototype.set=function(t,e){var n=kn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Pn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pn.Cache||An),n}Pn.Cache=An;var Tn,Rn,Nn,Dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,In=/\\(\\)?/g,Ln=(Tn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Dn,(function(t,n,r,i){e.push(r?i.replace(In,"$1"):n||t)})),e},Rn=Pn(Tn,(function(t){return 500===Nn.size&&Nn.clear(),t})),Nn=Rn.cache,Rn),Cn=Ln;function Fn(t,n){return me(t)?t:function(t,n){if(me(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!e(t))||_n.test(t)||!gn.test(t)||null!=n&&t in Object(n)}(t,n)?[t]:Cn(function(t){return null==t?"":Se(t)}(t))}function $n(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}function Vn(t,e,n){var r=null==t?void 0:function(t,e){for(var n=0,r=(e=Fn(e,t)).length;null!=t&&n<r;)t=t[$n(e[n++])];return n&&n==r?t:void 0}(t,e);return void 0===r?n:r}function Mn(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Un(t){var e=this.__data__=new On(t);this.size=e.size}function zn(){return[]}Un.prototype.clear=function(){this.__data__=new On,this.size=0},Un.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Un.prototype.get=function(t){return this.__data__.get(t)},Un.prototype.has=function(t){return this.__data__.has(t)},Un.prototype.set=function(t,e){var n=this.__data__;if(n instanceof On){var r=n.__data__;if(!En||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new An(r)}return n.set(t,e),this.size=n.size,this};var Wn=Object.prototype.propertyIsEnumerable,Bn=Object.getOwnPropertySymbols,Hn=Bn?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}(Bn(t),(function(e){return Wn.call(t,e)})))}:zn,qn=Hn;function Jn(t,e,n){var r=e(t);return me(t)?r:Mn(r,n(t))}function Gn(t){return Jn(t,yn,qn)}var Zn=Fe(i,"DataView"),Kn=Fe(i,"Promise"),Qn=Fe(i,"Set"),Xn=Pe(Zn),Yn=Pe(En),tr=Pe(Kn),er=Pe(Qn),nr=Pe($e),rr=r;(Zn&&"[object DataView]"!=rr(new Zn(new ArrayBuffer(1)))||En&&"[object Map]"!=rr(new En)||Kn&&"[object Promise]"!=rr(Kn.resolve())||Qn&&"[object Set]"!=rr(new Qn)||$e&&"[object WeakMap]"!=rr(new $e))&&(rr=function(t){var e=r(t),n="[object Object]"==e?t.constructor:void 0,i=n?Pe(n):"";if(i)switch(i){case Xn:return"[object DataView]";case Yn:return"[object Map]";case tr:return"[object Promise]";case er:return"[object Set]";case nr:return"[object WeakMap]"}return e});var ir=rr,or=i.Uint8Array;function ar(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new An;++e<n;)this.add(t[e])}function sr(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function cr(t,e){return t.has(e)}ar.prototype.add=ar.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ar.prototype.has=function(t){return this.__data__.has(t)};function ur(t,e,n,r,i,o){var a=1&n,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var f=-1,h=!0,p=2&n?new ar:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var d=t[f],v=e[f];if(r)var y=a?r(v,d,f,e,t,o):r(d,v,f,t,e,o);if(void 0!==y){if(y)continue;h=!1;break}if(p){if(!sr(e,(function(t,e){if(!cr(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){h=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function lr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var hr=t?t.prototype:void 0,pr=hr?hr.valueOf:void 0;var dr=Object.prototype.hasOwnProperty;var vr="[object Object]",yr=Object.prototype.hasOwnProperty;function gr(t,e,n,r,i,o){var a=me(t),s=me(e),c=a?"[object Array]":ir(t),u=s?"[object Array]":ir(e),l=(c="[object Arguments]"==c?vr:c)==vr,f=(u="[object Arguments]"==u?vr:u)==vr,h=c==u;if(h&&en(t)){if(!en(e))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new Un),a||ln(t)?ur(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new or(t),new or(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ue(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=lr;case"[object Set]":var c=1&r;if(s||(s=fr),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var l=ur(s(t),s(e),r,i,o,a);return a.delete(t),l;case"[object Symbol]":if(pr)return pr.call(t)==pr.call(e)}return!1}(t,e,c,n,r,i,o);if(!(1&n)){var p=l&&yr.call(t,"__wrapped__"),d=f&&yr.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,y=d?e.value():e;return o||(o=new Un),i(v,y,n,r,o)}}return!!h&&(o||(o=new Un),function(t,e,n,r,i,o){var a=1&n,s=Gn(t),c=s.length;if(c!=Gn(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:dr.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++u<c;){var v=t[l=s[u]],y=e[l];if(r)var g=a?r(y,v,l,e,t,o):r(v,y,l,t,e,o);if(!(void 0===g?v===y||i(v,y,n,r,o):g)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var _=t.constructor,b=e.constructor;_==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o))}function _r(t,e,n,r,i){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!=t&&e!=e:gr(t,e,n,r,_r,i))}function br(t,e){return _r(t,e)}class mr extends Error{constructor(){super("not enough info to update; please reload resource instead")}}var wr=s((function(t){var e=t.exports=function(t){return new n(t)};function n(t){this.value=t}function r(t,e,n){var r=[],a=[],l=!0;return function t(f){var h=n?i(f):f,p={},d=!0,v={node:h,node_:f,path:[].concat(r),parent:a[a.length-1],parents:a,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){v.isRoot||(v.parent.node[v.key]=t),v.node=t,e&&(d=!1)},delete:function(t){delete v.parent.node[v.key],t&&(d=!1)},remove:function(t){s(v.parent.node)?v.parent.node.splice(v.key,1):delete v.parent.node[v.key],t&&(d=!1)},keys:null,before:function(t){p.before=t},after:function(t){p.after=t},pre:function(t){p.pre=t},post:function(t){p.post=t},stop:function(){l=!1},block:function(){d=!1}};if(!l)return v;function y(){if("object"==typeof v.node&&null!==v.node){v.keys&&v.node_===v.node||(v.keys=o(v.node)),v.isLeaf=0==v.keys.length;for(var t=0;t<a.length;t++)if(a[t].node_===f){v.circular=a[t];break}}else v.isLeaf=!0,v.keys=null;v.notLeaf=!v.isLeaf,v.notRoot=!v.isRoot}y();var g=e.call(v,v.node);return void 0!==g&&v.update&&v.update(g),p.before&&p.before.call(v,v.node),d?("object"!=typeof v.node||null===v.node||v.circular||(a.push(v),y(),c(v.keys,(function(e,i){r.push(e),p.pre&&p.pre.call(v,v.node[e],e);var o=t(v.node[e]);n&&u.call(v.node,e)&&(v.node[e]=o.node),o.isLast=i==v.keys.length-1,o.isFirst=0==i,p.post&&p.post.call(v,o),r.pop()})),a.pop()),p.after&&p.after.call(v,v.node),v):v}(t).node}function i(t){if("object"==typeof t&&null!==t){var e;if(s(t))e=[];else if("[object Date]"===a(t))e=new Date(t.getTime?t.getTime():t);else if(function(t){return"[object RegExp]"===a(t)}(t))e=new RegExp(t);else if(function(t){return"[object Error]"===a(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===a(t)}(t))e=new Boolean(t);else if(function(t){return"[object Number]"===a(t)}(t))e=new Number(t);else if(function(t){return"[object String]"===a(t)}(t))e=new String(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var n=t.constructor&&t.constructor.prototype||t.__proto__||{},r=function(){};r.prototype=n,e=new r}return c(o(t),(function(n){e[n]=t[n]})),e}return t}n.prototype.get=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!u.call(e,r)){e=void 0;break}e=e[r]}return e},n.prototype.has=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!u.call(e,r))return!1;e=e[r]}return!0},n.prototype.set=function(t,e){for(var n=this.value,r=0;r<t.length-1;r++){var i=t[r];u.call(n,i)||(n[i]={}),n=n[i]}return n[t[r]]=e,e},n.prototype.map=function(t){return r(this.value,t,!0)},n.prototype.forEach=function(t){return this.value=r(this.value,t,!1),this.value},n.prototype.reduce=function(t,e){var n=1===arguments.length,r=n?this.value:e;return this.forEach((function(e){this.isRoot&&n||(r=t.call(this,r,e))})),r},n.prototype.paths=function(){var t=[];return this.forEach((function(e){t.push(this.path)})),t},n.prototype.nodes=function(){var t=[];return this.forEach((function(e){t.push(this.node)})),t},n.prototype.clone=function(){var t=[],e=[];return function n(r){for(var a=0;a<t.length;a++)if(t[a]===r)return e[a];if("object"==typeof r&&null!==r){var s=i(r);return t.push(r),e.push(s),c(o(r),(function(t){s[t]=n(r[t])})),t.pop(),e.pop(),s}return r}(this.value)};var o=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function a(t){return Object.prototype.toString.call(t)}var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)};c(o(n.prototype),(function(t){e[t]=function(e){var r=[].slice.call(arguments,1),i=new n(e);return i[t].apply(i,r)}}));var u=Object.hasOwnProperty||function(t,e){return e in t}}));class jr{constructor(){this.__callbacks=[]}share(t){const{related:e,source:n,data:r}=t,i=null===r?new Map([[n,null]]):jr.__createPatch(r);[...this.__callbacks].forEach((t=>{t((t=>{const n=jr.__applyPatch(i,t,e);return br(t,n)?t:n}))}))}track(t){return this.__callbacks.push(t),()=>{this.__callbacks.splice(this.__callbacks.indexOf(t),1)}}cease(){this.__callbacks.length=0}static __isCollection(t){return"string"==typeof Vn(t,"_links.first.href")}static __isResource(t){return"string"==typeof Vn(t,"_links.self.href")}static __approximateURI(t){try{const e=new URL(t);return e.search="",e.hash="",e.toString()}catch(e){return t}}static __createPatch(t){return wr(t).reduce((function(t,e){if(!jr.__isResource(e)||jr.__isCollection(e))return t;const n=wr(e).map((function(){var t;(null===(t=this.key)||void 0===t?void 0:t.startsWith("_"))&&this.delete(!0)}));return t.set(e._links.self.href,n),t}),new Map)}static __applyPatch(t,e,n){var r,i;const o=null!==(r=null==n?void 0:n.map((t=>jr.__approximateURI(t))))&&void 0!==r?r:[];return null!==(i=wr({data:e}).map((function(e){if(!jr.__isResource(e))return;const n=e._links.self.href,r=jr.__approximateURI(n);if(o.includes(r))throw new jr.UpdateError;if(t.has(n)){const r=t.get(n);if(r)return this.update(Object.assign(Object.assign({},e),r),!0);if(!this.parent.parent)return this.delete(!0);throw new jr.UpdateError}})).data)&&void 0!==i?i:null}}jr.UpdateError=mr;var Sr=s((function(t,e){t.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=s(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}var l={};l[l.Fatal=0]="Fatal",l[l.Error=0]="Error",l[l.Warn=1]="Warn",l[l.Log=2]="Log",l[l.Info=3]="Info",l[l.Success=3]="Success",l[l.Debug=4]="Debug",l[l.Trace=5]="Trace",l[l.Silent=-1/0]="Silent",l[l.Verbose=1/0]="Verbose";var f={silent:{level:-1},fatal:{level:l.Fatal},error:{level:l.Error},warn:{level:l.Warn},log:{level:l.Log},info:{level:l.Info},success:{level:l.Success},debug:{level:l.Debug},trace:{level:l.Trace},verbose:{level:l.Trace},ready:{level:l.Info},start:{level:l.Info}};function h(t){return e=t,!("[object Object]"!==Object.prototype.toString.call(e)||!t.message&&!t.args||t.stack);var e}var p=!1,d=[],v=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in t(this,e),this._reporters=n.reporters||[],this._types=n.types||f,this.level=void 0!==n.level?n.level:3,this._defaults=n.defaults||{},this._async=void 0!==n.async?n.async:void 0,this._stdout=n.stdout,this._stderr=n.stderr,this._mockFn=n.mockFn,this._throttle=n.throttle||1e3,this._throttleMin=n.throttleMin||5,this._types){var i=o(o({type:r},this._types[r]),this._defaults);this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return n(e,[{key:"create",value:function(t){return new e(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}},{key:"withDefaults",value:function(t){return this.create({defaults:Object.assign({},this._defaults,t)})}},{key:"withTag",value:function(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+t:t})}},{key:"addReporter",value:function(t){return this._reporters.push(t),this}},{key:"removeReporter",value:function(t){if(t){var e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(t){return this._reporters=Array.isArray(t)?t:[t],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var t in this._types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}},{key:"restoreConsole",value:function(){for(var t in this._types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(t,e){var n=this;t&&(t.__write||(t.__write=t.write),t.write=function(t){n[e].raw(String(t).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}},{key:"pauseLogs",value:function(){p=!0}},{key:"resumeLogs",value:function(){p=!1;var t,e=u(d.splice(0));try{for(e.s();!(t=e.n()).done;){var n=t.value;n[0]._logFn(n[1],n[2])}}catch(t){e.e(t)}finally{e.f()}}},{key:"mockTypes",value:function(t){if(this._mockFn=t||this._mockFn,"function"==typeof this._mockFn)for(var e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e],this[e].raw=this[e]}},{key:"_wrapLogFn",value:function(t,e){var n=this;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(!p)return n._logFn(t,i,e);d.push([n,t,i,e])}}},{key:"_logFn",value:function(t,e,n){var r=this;if(t.level>this.level)return!!this._async&&Promise.resolve(!1);var i=Object.assign({date:new Date,args:[]},t);!n&&1===e.length&&h(e[0])?Object.assign(i,e[0]):i.args=Array.from(e),i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split("\n")),i.args.push("\n"+i.additional.join("\n")),delete i.additional),i.type="string"==typeof i.type?i.type.toLowerCase():"",i.tag="string"==typeof i.tag?i.tag.toLowerCase():"";var s=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=r._lastLogCount-r._throttleMin;if(r._lastLog&&e>0){var n=a(r._lastLog.args);e>1&&n.push("(repeated ".concat(e," times)")),r._log(o(o({},r._lastLog),{},{args:n})),r._lastLogCount=1}if(t){if(r._lastLog=i,r._async)return r._logAsync(i);r._log(i)}};clearTimeout(this._throttleTimeout);var c=this._lastLogTime?i.date-this._lastLogTime:0;if(this._lastLogTime=i.date,c<this._throttle)try{var u=JSON.stringify([i.type,i.tag,i.args]),l=this._lastLogSerialized===u;if(this._lastLogSerialized=u,l&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(s,this._throttle))}catch(t){}s(!0)}},{key:"_log",value:function(t){var e,n=u(this._reporters);try{for(n.s();!(e=n.n()).done;)e.value.log(t,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(t){n.e(t)}finally{n.f()}}},{key:"_logAsync",value:function(t){var e=this;return Promise.all(this._reporters.map((function(n){return n.log(t,{async:!0,stdout:e.stdout,stderr:e.stderr})})))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),e}();v.prototype.add=v.prototype.addReporter,v.prototype.remove=v.prototype.removeReporter,v.prototype.clear=v.prototype.removeReporter,v.prototype.withScope=v.prototype.withTag,v.prototype.mock=v.prototype.mockTypes,v.prototype.pause=v.prototype.pauseLogs,v.prototype.resume=v.prototype.resumeLogs;var y,g=function(){function e(n){t(this,e),this.options=Object.assign({},n),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return n(e,[{key:"log",value:function(t){var e=t.level<1?console.__error||console.error:1===t.level&&console.warn?console.__warn||console.warn:console.__log||console.log,n="log"!==t.type?t.type:"",r=t.tag?t.tag:"",i=this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor,o="\n background: ".concat(i,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([r,n].filter(Boolean).join(":"));"string"==typeof t.args[0]?e.apply(void 0,["".concat(s,"%c ").concat(t.args[0]),o,""].concat(a(t.args.slice(1)))):e.apply(void 0,[s,o].concat(a(t.args)))}}]),e}();return"undefined"!=typeof window&&window.consola||((y=new v({reporters:[new g]})).Consola=v,y.LogLevel=l,y.BrowserReporter=g,y)}()})),xr=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Or=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Er=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},kr=function(){function t(e,n,r,i){xr(this,t),this.name=e,this.fn=n,this.args=r,this.modifiers=i}return Or(t,[{key:"_test",value:function(t){var e=this.fn;try{Pr(this.modifiers.slice(),e)(t)}catch(t){e=function(){return!1}}try{return Pr(this.modifiers.slice(),e)(t)}catch(t){return!1}}},{key:"_check",value:function(t){try{Pr(this.modifiers.slice(),this.fn)(t)}catch(t){if(Pr(this.modifiers.slice(),(function(t){return t}))(!1))return}if(!Pr(this.modifiers.slice(),this.fn)(t))throw null}},{key:"_testAsync",value:function(t){var e=this;return new Promise((function(n,r){Tr(e.modifiers.slice(),e.fn)(t).then((function(e){e?n(t):r(null)})).catch((function(t){return r(t)}))}))}}]),t}();function Ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"simple";return"object"==typeof t?t[e]:t}function Pr(t,e){if(t.length){var n=t.shift(),r=Pr(t,e);return n.perform(r)}return Ar(e)}function Tr(t,e){if(t.length){var n=t.shift(),r=Tr(t,e);return n.performAsync(r)}return function(t){return Promise.resolve(Ar(e,"async")(t))}}var Rr=function t(e,n,r){xr(this,t),this.name=e,this.perform=n,this.performAsync=r},Nr=function(t){function e(t,n,r,i){xr(this,e);for(var o=arguments.length,a=Array(o>4?o-4:0),s=4;s<o;s++)a[s-4]=arguments[s];var c=Er(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a));return Error.captureStackTrace&&Error.captureStackTrace(c,e),c.rule=t,c.value=n,c.cause=r,c.target=i,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,Error),e}(),Dr=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];xr(this,t),this.chain=e,this.nextRuleModifiers=n}return Or(t,[{key:"_applyRule",value:function(t,e){var n=this;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.chain.push(new kr(e,t.apply(n,i),i,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}}},{key:"_applyModifier",value:function(t,e){return this.nextRuleModifiers.push(new Rr(e,t.simple,t.async)),this}},{key:"_clone",value:function(){return new t(this.chain.slice(),this.nextRuleModifiers.slice())}},{key:"test",value:function(t){return this.chain.every((function(e){return e._test(t)}))}},{key:"testAll",value:function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(r){e.push(new Nr(n,t,r))}})),e}},{key:"check",value:function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new Nr(e,t,n)}}))}},{key:"testAsync",value:function(t){var e=this;return new Promise((function(n,r){Ir(t,e.chain.slice(),n,r)}))}}]),t}();function Ir(t,e,n,r){if(e.length){var i=e.shift();i._testAsync(t).then((function(){Ir(t,e,n,r)}),(function(e){r(new Nr(i,t,e))}))}else n(t)}function Lr(){return Fr(new Dr)}var Cr={};function Fr(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var r=Fr(t._clone());return n in $r?r._applyModifier($r[n],n):n in Cr?r._applyRule(Cr[n],n):n in Mr?r._applyRule(Mr[n],n):void 0}})}Lr.extend=function(t){Object.assign(Cr,t)},Lr.clearCustomRules=function(){Cr={}};var $r={not:{simple:function(t){return function(e){return!t(e)}},async:function(t){return function(e){return Promise.resolve(t(e)).then((function(t){return!t})).catch((function(t){return!0}))}}},some:{simple:function(t){return function(e){return Vr(e).some((function(e){try{return t(e)}catch(t){return!1}}))}},async:function(t){return function(e){return Promise.all(Vr(e).map((function(e){try{return t(e).catch((function(t){return!1}))}catch(t){return!1}}))).then((function(t){return t.some(Boolean)}))}}},every:{simple:function(t){return function(e){return Vr(e).every(t)}},async:function(t){return function(e){return Promise.all(Vr(e).map(t)).then((function(t){return t.every(Boolean)}))}}}};function Vr(t){return"string"==typeof t?t.split(""):t}var Mr={equal:function(t){return function(e){return e==t}},exact:function(t){return function(e){return e===t}},number:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){return"number"==typeof e&&(t||isFinite(e))}},integer:function(){return function(t){return(Number.isInteger||zr)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return Ur("string")},boolean:function(){return Ur("boolean")},undefined:function(){return Ur("undefined")},null:function(){return Ur("null")},array:function(){return Ur("array")},object:function(){return Ur("object")},instanceOf:function(t){return function(e){return e instanceof t}},pattern:function(t){return function(e){return t.test(e)}},lowercase:function(){return function(t){return/^([a-z]+\s*)+$/.test(t)}},uppercase:function(){return function(t){return/^([A-Z]+\s*)+$/.test(t)}},vowel:function(){return function(t){return/^[aeiou]+$/i.test(t)}},consonant:function(){return function(t){return/^(?=[^aeiou])([a-z]+)$/i.test(t)}},first:function(t){return function(e){return e[0]==t}},last:function(t){return function(e){return e[e.length-1]==t}},empty:function(){return function(t){return 0===t.length}},length:function(t,e){return function(n){return n.length>=t&&n.length<=(e||t)}},minLength:function(t){return function(e){return e.length>=t}},maxLength:function(t){return function(e){return e.length<=t}},negative:function(){return function(t){return t<0}},positive:function(){return function(t){return t>=0}},between:function(t,e){return function(n){return n>=t&&n<=e}},range:function(t,e){return function(n){return n>=t&&n<=e}},lessThan:function(t){return function(e){return e<t}},lessThanOrEqual:function(t){return function(e){return e<=t}},greaterThan:function(t){return function(e){return e>t}},greaterThanOrEqual:function(t){return function(e){return e>=t}},even:function(){return function(t){return t%2==0}},odd:function(){return function(t){return t%2!=0}},includes:function(t){return function(e){return~e.indexOf(t)}},schema:function(t){return function(t){return{simple:function(e){var n=[];if(Object.keys(t).forEach((function(r){var i=t[r];try{i.check((e||{})[r])}catch(t){t.target=r,n.push(t)}})),n.length>0)throw n;return!0},async:function(e){var n=[],r=Object.keys(t).map((function(r){return t[r].testAsync((e||{})[r]).catch((function(t){t.target=r,n.push(t)}))}));return Promise.all(r).then((function(t){if(n.length>0)throw n;return!0}))}}}(t)},passesAnyOf:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.some((function(e){return e.test(t)}))}},optional:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return e&&"string"==typeof n&&""===n.trim()||null!=n&&t.check(n),!0}}};function Ur(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function zr(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}Lr.extend({curieChain:()=>t=>Array.isArray(t)&&t[0]instanceof URL&&t.slice(1).every((t=>"string"==typeof t)),typeOf:t=>e=>typeof e===t});const Wr=Lr().schema({clear:Lr().typeOf("function"),getItem:Lr().typeOf("function"),key:Lr().typeOf("function"),length:Lr().number(),removeItem:Lr().typeOf("function"),setItem:Lr().typeOf("function")});class Br extends Error{constructor(t){Br.v8n.constructor.check(t),super(`authentication failed with code ${t.code}`),this.originalError=t.originalError,this.code=t.code}}Br.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",Br.INVALID_NEW_PASSWORD="INVALID_NEW_PASSWORD",Br.UNAUTHORIZED="UNAUTHORIZED",Br.UNKNOWN="UNKNOWN",Br.v8n={constructor:Lr().schema({code:Lr().passesAnyOf(Lr().exact(Br.NEW_PASSWORD_REQUIRED),Lr().exact(Br.INVALID_NEW_PASSWORD),Lr().exact(Br.UNAUTHORIZED),Lr().exact(Br.UNKNOWN))})};var Hr=u(s((function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}))),qr=s((function(t){t.exports=function(t,e){return e.get?e.get.call(t):e.value},t.exports.__esModule=!0,t.exports.default=t.exports})),Jr=s((function(t){t.exports=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Gr=u(s((function(t){t.exports=function(t,e){var n=Jr(t,e,"get");return qr(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}))),Zr=new WeakMap,Kr=function(){function t(){Zr.set(this,{writable:!0,value:new Map})}var e=t.prototype;return e.key=function(t){t=Number.parseInt(t,10);for(var e=Gr(this,Zr).keys(),n=0,r=e.next();!r.done;){if(n===t)return r.value;n+=1,r=e.next()}return null},e.getItem=function(t){var e;return null!=(e=Gr(this,Zr).get(""+t))?e:null},e.setItem=function(t,e){Gr(this,Zr).set(""+t,""+e)},e.removeItem=function(t){Gr(this,Zr).delete(""+t)},e.clear=function(){Gr(this,Zr).clear()},Hr(t,[{key:"length",get:function(){return Gr(this,Zr).size}}]),t}(),Qr=Kr;class Xr extends Error{constructor(t){super(),Xr.v8n.constructor.check(t),this.response=t}}Xr.v8n={constructor:Lr().instanceOf(l.Response)};var Yr=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},ti=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function ei(t){const{json:e}=t,n=ti(t,["json"]);if("_links"in e){const t=e._links;e._links=Object.entries(t).reduce(((t,[e,r])=>{if(Array.isArray(r))return Object.assign(Object.assign({},t),{[e]:r});const i=new ai(Object.assign(Object.assign({},n),{path:[new URL(r.href)]})),o={delete:i.delete.bind(i),follow:i.follow.bind(i),get:i.get.bind(i),patch:i.patch.bind(i),post:i.post.bind(i),put:i.put.bind(i)};return Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),o)})}),{})}if("_embedded"in e){const t=e._embedded;e._embedded=Object.entries(t).reduce(((t,[e,r])=>Object.assign(t,{[e]:Array.isArray(r)?r.map((t=>ei(Object.assign(Object.assign({},n),{json:t})))):ei(Object.assign(Object.assign({},n),{json:r}))})),{})}return e}class ni extends l.Response{constructor(t){ni.v8n.constructor.check(t),super(t.body,t),this._console=t.console,this._fetch=t.fetch,this._cache=t.cache}json(){const t=Object.create(null,{json:{get:()=>super.json}});return Yr(this,void 0,void 0,(function*(){const e=yield t.json.call(this),n={cache:this._cache,console:this._console,fetch:this._fetch};return ei(Object.assign({json:e},n))}))}}ni.v8n={constructor:Lr().schema({cache:Wr,console:Lr().instanceOf(Sr.constructor),fetch:Lr().typeOf("function")})};var ri=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};function ii(t,e){const n=""===t?"":t+":";return"string"==typeof e?n+e:Array.isArray(e)?e.map((e=>ii(t,e))).join():Object.entries(e).map((([t,e])=>ii(n+t,e))).join()}function oi(t){return"string"==typeof t?t:Array.isArray(t)?t.map((t=>oi(t))).join():Object.entries(t).map((([t,e])=>`${t} ${e}`)).join()}class ai{constructor(t){ai.v8n.classConstructor.check(t),this._path=t.path,this._fetch=t.fetch,this._cache=t.cache,this._console=t.console}get(t){return ri(this,void 0,void 0,(function*(){ai.v8n.get.check(t);const e=yield this._resolve(),{filters:n,fields:r,offset:i,limit:o,order:a,zoom:s}=null!=t?t:{};void 0!==n&&n.forEach((t=>{[...new URLSearchParams(t).entries()].forEach((([t,n])=>e.searchParams.append(t,n)))})),void 0!==r&&e.searchParams.set("fields",r.join(",")),void 0!==i&&e.searchParams.set("offset",String(i)),void 0!==o&&e.searchParams.set("limit",String(o)),void 0!==a&&e.searchParams.set("order",oi(a)),void 0!==s&&e.searchParams.set("zoom",ii("",s));const c=yield this._fetch(new l.Request(e.toString())),u={cache:this._cache,console:this._console,fetch:this._fetch};return new ni(Object.assign(Object.assign(Object.assign({},u),c),{body:yield c.text()}))}))}put(t){return ri(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.Request(e.toString(),{body:JSON.stringify(t),method:"PUT"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new ni(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}post(t){return ri(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.Request(e.toString(),{body:JSON.stringify(t),method:"POST"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new ni(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}patch(t){return ri(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.Request(e.toString(),{body:JSON.stringify(t),method:"PATCH"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new ni(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}delete(){return ri(this,void 0,void 0,(function*(){const t=yield this._resolve(),e=new l.Request(t.toString(),{method:"DELETE"}),n=yield this._fetch(e),r={cache:this._cache,console:this._console,fetch:this._fetch};return new ni(Object.assign(Object.assign(Object.assign({},r),n),{body:yield n.text()}))}))}follow(t){ai.v8n.follow.check(t);const e={cache:this._cache,console:this._console,fetch:this._fetch},n=this._path.concat(t);return new ai(Object.assign(Object.assign({},e),{path:n}))}_resolve(){return ri(this,void 0,void 0,(function*(){if(1===this._path.length)return new URL(this._path[0].toString());const[t,e]=this._path,n=`${t.toString()} > ${e}`,r={cache:this._cache,console:this._console,fetch:this._fetch};this._console.trace(`Trying to resolve ${n}...`);const i=this._cache.getItem(n);if(i){this._console.success(`Resolved ${n} to ${i.toString()} using cache.`);const t=[new URL(i),...this._path.slice(2)];return new ai(Object.assign(Object.assign({},r),{path:t}))._resolve()}const o=yield this._fetch(t.toString());if(o.ok){const t=yield o.clone().json();if(t._links[e]){const i=new URL(t._links[e].href),o=[i,...this._path.slice(2)];return this._cache.setItem(n,i.toString()),this._console.trace(`Cached ${i.toString()} for ${n}.`),this._console.success(`Resolved ${n} to ${i.toString()} online.`),new ai(Object.assign(Object.assign({},r),{path:o}))._resolve()}}throw this._console.error(`Failed to resolve ${n}.`),new Xr(o)}))}}ai.v8n={classConstructor:Lr().schema({cache:Wr,console:Lr().instanceOf(Sr.constructor),fetch:Lr().typeOf("function"),path:Lr().curieChain()}),follow:Lr().string(),get:Lr().optional(Lr().schema({fields:Lr().optional(Lr().array().every.string()),filters:Lr().optional(Lr().array().every.string()),limit:Lr().optional(Lr().number()),offset:Lr().optional(Lr().number()),order:Lr().optional(Lr().passesAnyOf(Lr().string(),Lr().object(),Lr().array())),zoom:Lr().optional(Lr().passesAnyOf(Lr().string(),Lr().object(),Lr().array()))}))},ai.ResolutionError=Xr,ai.Response=ni;var si=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};class ci extends ai{constructor(t){var e,n,r;ci.v8n.classConstructor.check(t),super({cache:null!==(e=t.cache)&&void 0!==e?e:new Qr,console:Sr.create({level:t.level}).withTag("@foxy.io/sdk"),fetch:null!==(n=t.fetch)&&void 0!==n?n:l.fetch,path:[t.base]}),this.console=this._console,this.storage=null!==(r=t.storage)&&void 0!==r?r:new Qr,this.cache=this._cache,this.base=t.base}fetch(...t){return si(this,void 0,void 0,(function*(){return this._fetch(...t)}))}}ci.WHATWGResponse=l.Response,ci.WHATWGRequest=l.Request,ci.WHATWGHeaders=l.Headers,ci.whatwgFetch=l.fetch,ci.AuthError=Br,ci.Node=ai,ci.v8n={classConstructor:Lr().schema({base:Lr().instanceOf(URL),cache:Lr().optional(Wr),fetch:Lr().optional(Lr().typeOf("function")),level:Lr().optional(Lr().integer()),storage:Lr().optional(Wr)})};export{At as $,ci as A,ge as B,Xt as C,ct as D,Tt as E,U as F,I as G,B as H,M as I,C as J,W as K,st as L,v as M,Jt as N,Z as O,yt as P,gt as Q,jr as R,Gt as S,_t as T,bt as U,jt as V,St as W,xt as X,Ot as Y,kt as Z,f as _,ve as a,mt as a0,Nt as a1,Dt as a2,It as a3,Rt as a4,oe as a5,Vn as a6,Lr as a7,Fe as a8,Ue as a9,We as aa,Me as ab,He as ac,hn as ad,pn as ae,yn as af,qn as ag,zn as ah,Mn as ai,Jn as aj,or as ak,ir as al,cn as am,rn as an,me as ao,en as ap,Un as aq,Gn as ar,qe as as,ie as at,br as au,Et as b,p as c,T as d,Pt as e,qt as f,ft as g,L as h,Bt as i,H as j,g as k,at as l,Pn as m,ht as n,rt as o,Zt as p,K as q,V as r,Q as s,wr as t,G as u,R as v,$ as w,z as x,tt as y,Y as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./shared-2eee69db.js";import{B as t}from"./shared-757bb517.js";import{c as r,h as s}from"./shared-7f33a83a.js";import{x as n}from"./shared-ea9af4b0.js";import{I as o}from"./shared-bbfdfee2.js";let i,a,l,c=e=>e;class d{constructor(e="unknown"){this.type=e}}class h extends CustomEvent{constructor(){super("reload")}}class p extends n{constructor(){super(...arguments),this.type="unknown",this.reload=!1}static get scopedElements(){return{"vaadin-button":t,"iron-icon":customElements.get("iron-icon"),"x-i18n":o}}static get styles(){return[super.styles,r(i||(i=c`:host{position:absolute;top:0;right:0;bottom:0;left:0}.container-narrow{max-width:400px}`))]}static get properties(){return e(e({},super.properties),{},{reload:{type:Boolean,reflect:!0},type:{type:String}})}render(){return s(a||(a=c` <article class="bg-base font-lumo text-center leading-m p-m h-full flex flex-col items-center justify-center"> <iron-icon icon="lumo:error" class="text-error w-l h-l mb-m"></iron-icon> <header class="text-xl text-header container-narrow font-medium"> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.title"></x-i18n> </header> <p class="text-m text-secondary container-narrow mb-l"> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.message"></x-i18n> </p> <div class="flex space-x-s"> <a rel="nofollow noreferrer noopener" href="${0}" target="_blank" class="px-m py-xs text-primary font-medium tracking-wide border border-contrast-10 rounded transition-colors duration-200 hover-bg-primary-10 hover-border-primary-10 focus-outline-none focus-shadow-outline" router-ignore> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.action"></x-i18n> </a> ${0} </div> </article> `),this.ns,this.lang,this.type,this.ns,this.lang,this.type,this._i18n.t(`errors.${this.type}.href`).toString(),this.ns,this.lang,this.type,this.reload?s(l||(l=c` <vaadin-button data-testid="reload" theme="primary" @click="${0}"> <x-i18n ns="${0}" lang="${0}" key="reload"></x-i18n> <iron-icon icon="icons:refresh" slot="suffix"></iron-icon> </vaadin-button> `),(()=>this.dispatchEvent(new h)),this.ns,this.lang):"")}}export{p as E,d as F};
|