@foxy.io/elements 1.45.0 → 1.46.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +1 -1
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-admin-subscription-form.js +1 -1
- package/dist/cdn/foxy-admin-transaction-card.js +1 -0
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-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-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +2 -2
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-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-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-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-detail-card.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-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +11 -11
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +1 -1
- package/dist/cdn/foxy-email-template-card.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-experimental-add-to-cart-builder.js +1 -1
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.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-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.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-editor.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-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-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.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-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-payments-api.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +1 -1
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -1
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +1 -1
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-store-transaction-folder-card.js +1 -0
- package/dist/cdn/foxy-store-transaction-folder-form.js +1 -0
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-swipe-actions.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-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-user-invitation-card.js +1 -1
- package/dist/cdn/foxy-user-invitation-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-6c25eb72.js → shared-0557539b.js} +1 -1
- package/dist/cdn/{shared-1e14a3fe.js → shared-0b8768db.js} +1 -1
- package/dist/cdn/{shared-cc0d9412.js → shared-0db4e843.js} +3 -3
- package/dist/cdn/{shared-e1e4d8f5.js → shared-0e19bda5.js} +1 -1
- package/dist/cdn/{shared-85ed835a.js → shared-0e25ac65.js} +1 -1
- package/dist/cdn/{shared-4e1bff30.js → shared-0e5484c2.js} +1 -1
- package/dist/cdn/{shared-7dc40542.js → shared-11de7969.js} +1 -1
- package/dist/cdn/{shared-fd5ff448.js → shared-14cc889b.js} +1 -1
- package/dist/cdn/{shared-f9d1baff.js → shared-15a75e70.js} +1 -1
- package/dist/cdn/{shared-946a7af6.js → shared-16776ac6.js} +1 -1
- package/dist/cdn/{shared-c6b1b119.js → shared-18dc7a8a.js} +1 -1
- package/dist/cdn/{shared-c929504f.js → shared-1c985317.js} +1 -1
- package/dist/cdn/{shared-f1e48b0e.js → shared-2111aa44.js} +1 -1
- package/dist/cdn/shared-257dd725.js +1 -0
- package/dist/cdn/{shared-a268320e.js → shared-27c16d99.js} +1 -1
- package/dist/cdn/{shared-4cc42648.js → shared-28ceb7f7.js} +1 -1
- package/dist/cdn/{shared-a1297ca4.js → shared-2df3c589.js} +1 -1
- package/dist/cdn/{shared-85668fe8.js → shared-2f8d04dc.js} +1 -1
- package/dist/cdn/{shared-e54135f0.js → shared-32b2d003.js} +1 -1
- package/dist/cdn/{shared-005168e0.js → shared-34a87829.js} +1 -1
- package/dist/cdn/{shared-5963a49e.js → shared-360196ad.js} +1 -1
- package/dist/cdn/shared-3d353eb8.js +1 -0
- package/dist/cdn/{shared-3c94ab84.js → shared-4158f91e.js} +1 -1
- package/dist/cdn/{shared-809d503c.js → shared-4194ffe7.js} +1 -1
- package/dist/cdn/{shared-c782b9fa.js → shared-41c9c53f.js} +1 -1
- package/dist/cdn/{shared-8340f3ab.js → shared-4498a367.js} +1 -1
- package/dist/cdn/shared-47f3f5f5.js +29 -0
- package/dist/cdn/{shared-788173f2.js → shared-4eb52fc7.js} +1 -1
- package/dist/cdn/{shared-f8519b17.js → shared-57e94234.js} +1 -1
- package/dist/cdn/{shared-a704aaa4.js → shared-58add5b4.js} +1 -1
- package/dist/cdn/{shared-e502a7be.js → shared-59128d82.js} +1 -1
- package/dist/cdn/{shared-433eea12.js → shared-5a469962.js} +1 -1
- package/dist/cdn/shared-5c8931a0.js +1 -0
- package/dist/cdn/{shared-d3414cf0.js → shared-64231b81.js} +1 -1
- package/dist/cdn/{shared-64e243c4.js → shared-66278c21.js} +1 -1
- package/dist/cdn/shared-6740e365.js +1 -0
- package/dist/cdn/{shared-65b2760f.js → shared-69c98b7b.js} +1 -1
- package/dist/cdn/{shared-b5a0d106.js → shared-6bf89411.js} +1 -1
- package/dist/cdn/{shared-50f8f2bd.js → shared-6f071960.js} +1 -1
- package/dist/cdn/{shared-138959d7.js → shared-6f90d987.js} +1 -1
- package/dist/cdn/{shared-e4792d4a.js → shared-730acf1d.js} +1 -1
- package/dist/cdn/{shared-1ae16c80.js → shared-742640c2.js} +1 -1
- package/dist/cdn/shared-791b4510.js +1 -0
- package/dist/cdn/{shared-3b4148ad.js → shared-7f7d6ceb.js} +1 -1
- package/dist/cdn/{shared-be30b940.js → shared-803be1e4.js} +1 -1
- package/dist/cdn/{shared-2d1b1ab2.js → shared-845f968f.js} +1 -1
- package/dist/cdn/shared-8498f274.js +1 -0
- package/dist/cdn/{shared-bea6e6a7.js → shared-84e97597.js} +1 -1
- package/dist/cdn/{shared-597193f7.js → shared-8df4ab18.js} +1 -1
- package/dist/cdn/{shared-7fec42f2.js → shared-8f9014ff.js} +1 -1
- package/dist/cdn/{shared-0ea750af.js → shared-930e68b7.js} +1 -1
- package/dist/cdn/{shared-d6a0954b.js → shared-9496e995.js} +1 -1
- package/dist/cdn/{shared-0fb0732a.js → shared-97fac71c.js} +1 -1
- package/dist/cdn/shared-9b138652.js +1 -0
- package/dist/cdn/{shared-c5c123c5.js → shared-9e0b104a.js} +1 -1
- package/dist/cdn/{shared-21a945fd.js → shared-a08e5a5f.js} +5 -5
- package/dist/cdn/shared-a449033a.js +1 -0
- package/dist/cdn/{shared-3615b419.js → shared-a6ddec3d.js} +1 -1
- package/dist/cdn/{shared-e7a2b31d.js → shared-b01c3b62.js} +1 -1
- package/dist/cdn/{shared-5b0c206b.js → shared-b2cbe727.js} +1 -1
- package/dist/cdn/{shared-529a82a3.js → shared-b3fe8c63.js} +1 -1
- package/dist/cdn/{shared-51376cac.js → shared-bdc981e3.js} +1 -1
- package/dist/cdn/{shared-1091aa45.js → shared-be2ce0e6.js} +1 -1
- package/dist/cdn/{shared-937e58bf.js → shared-bf8d95b9.js} +1 -1
- package/dist/cdn/{shared-85feff39.js → shared-c5a44ef2.js} +1 -1
- package/dist/cdn/shared-c7796413.js +1 -0
- package/dist/cdn/{shared-12973e93.js → shared-c84333db.js} +1 -1
- package/dist/cdn/{shared-5380e27d.js → shared-d46230dc.js} +1 -1
- package/dist/cdn/{shared-9e8344bf.js → shared-d4b77609.js} +1 -1
- package/dist/cdn/{shared-7d15992f.js → shared-d9378323.js} +1 -1
- package/dist/cdn/{shared-37869bac.js → shared-da4f9115.js} +1 -1
- package/dist/cdn/shared-e2d5673b.js +1 -0
- package/dist/cdn/{shared-636d6e33.js → shared-e41960a0.js} +1 -1
- package/dist/cdn/{shared-278b8790.js → shared-e55c8dc4.js} +1 -1
- package/dist/cdn/{shared-5bcf861e.js → shared-eb49be2e.js} +1 -1
- package/dist/cdn/{shared-95d34ae8.js → shared-f2a7eb85.js} +5 -5
- package/dist/cdn/{shared-df7d368c.js → shared-fb859ece.js} +1 -1
- package/dist/cdn/shared-fc155659.js +1 -0
- package/dist/cdn/translations/admin-subscription-form/en.json +6 -6
- package/dist/cdn/translations/admin-transaction-card/en.json +35 -0
- package/dist/cdn/translations/coupon-code-form/en.json +6 -6
- package/dist/cdn/translations/store-transaction-folder-card/en.json +8 -0
- package/dist/cdn/translations/store-transaction-folder-form/en.json +62 -0
- package/dist/cdn/translations/transaction/en.json +4 -0
- package/dist/elements/internal/InternalCard/InternalCard.js +1 -1
- package/dist/elements/internal/InternalCard/InternalCard.js.map +1 -1
- package/dist/elements/internal/InternalDateControl/getMonthNames.js +2 -2
- package/dist/elements/internal/InternalDateControl/getMonthNames.js.map +1 -1
- package/dist/elements/internal/InternalForm/InternalForm.d.ts +2 -4
- package/dist/elements/internal/InternalForm/InternalForm.js +17 -9
- package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -1
- package/dist/elements/internal/InternalForm/types.d.ts +9 -0
- package/dist/elements/internal/InternalForm/types.js.map +1 -1
- package/dist/elements/internal/InternalTextControl/InternalTextControl.d.ts +2 -1
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js +39 -0
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js.map +1 -1
- package/dist/elements/public/AdminSubscriptionForm/AdminSubscriptionForm.js +1 -2
- package/dist/elements/public/AdminSubscriptionForm/AdminSubscriptionForm.js.map +1 -1
- package/dist/elements/public/AdminSubscriptionForm/index.d.ts +1 -1
- package/dist/elements/public/AdminSubscriptionForm/index.js +1 -1
- package/dist/elements/public/AdminSubscriptionForm/index.js.map +1 -1
- package/dist/elements/public/AdminTransactionCard/AdminTransactionCard.d.ts +21 -0
- package/dist/elements/public/AdminTransactionCard/AdminTransactionCard.js +183 -0
- package/dist/elements/public/AdminTransactionCard/AdminTransactionCard.js.map +1 -0
- package/dist/elements/public/AdminTransactionCard/index.d.ts +6 -0
- package/dist/elements/public/AdminTransactionCard/index.js +8 -0
- package/dist/elements/public/AdminTransactionCard/index.js.map +1 -0
- package/dist/elements/public/AdminTransactionCard/types.d.ts +5 -0
- package/dist/elements/public/AdminTransactionCard/types.js +2 -0
- package/dist/elements/public/AdminTransactionCard/types.js.map +1 -0
- package/dist/elements/public/CartForm/internal/InternalCartFormTotalsControl/InternalCartFormTotalsControl.js +6 -6
- package/dist/elements/public/CartForm/internal/InternalCartFormTotalsControl/InternalCartFormTotalsControl.js.map +1 -1
- package/dist/elements/public/CartForm/types.d.ts +1 -1
- package/dist/elements/public/CartForm/types.js.map +1 -1
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.d.ts +1 -0
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.js +13 -1
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.js.map +1 -1
- package/dist/elements/public/CouponCodeForm/index.d.ts +1 -1
- package/dist/elements/public/CouponCodeForm/index.js +1 -1
- package/dist/elements/public/CouponCodeForm/index.js.map +1 -1
- package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.js +7 -3
- package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.js.map +1 -1
- package/dist/elements/public/FormDialog/FormDialog.js +1 -0
- package/dist/elements/public/FormDialog/FormDialog.js.map +1 -1
- package/dist/elements/public/NucleonElement/NucleonElement.d.ts +2 -2
- package/dist/elements/public/NucleonElement/NucleonElement.js +19 -13
- package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
- package/dist/elements/public/PaymentsApi/api/types.d.ts +6 -0
- package/dist/elements/public/PaymentsApi/api/types.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js +31 -42
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js.map +1 -1
- package/dist/elements/public/StoreForm/StoreForm.js +0 -2
- package/dist/elements/public/StoreForm/StoreForm.js.map +1 -1
- package/dist/elements/public/StoreTransactionFolderCard/StoreTransactionFolderCard.d.ts +27 -0
- package/dist/elements/public/StoreTransactionFolderCard/StoreTransactionFolderCard.js +134 -0
- package/dist/elements/public/StoreTransactionFolderCard/StoreTransactionFolderCard.js.map +1 -0
- package/dist/elements/public/StoreTransactionFolderCard/index.d.ts +5 -0
- package/dist/elements/public/StoreTransactionFolderCard/index.js +7 -0
- package/dist/elements/public/StoreTransactionFolderCard/index.js.map +1 -0
- package/dist/elements/public/StoreTransactionFolderCard/types.d.ts +3 -0
- package/dist/elements/public/StoreTransactionFolderCard/types.js +2 -0
- package/dist/elements/public/StoreTransactionFolderCard/types.js.map +1 -0
- package/dist/elements/public/StoreTransactionFolderForm/StoreTransactionFolderForm.d.ts +18 -0
- package/dist/elements/public/StoreTransactionFolderForm/StoreTransactionFolderForm.js +83 -0
- package/dist/elements/public/StoreTransactionFolderForm/StoreTransactionFolderForm.js.map +1 -0
- package/dist/elements/public/StoreTransactionFolderForm/index.d.ts +7 -0
- package/dist/elements/public/StoreTransactionFolderForm/index.js +9 -0
- package/dist/elements/public/StoreTransactionFolderForm/index.js.map +1 -0
- package/dist/elements/public/StoreTransactionFolderForm/internal/InternalStoreTransactionFolderFormColorControl/InternalStoreTransactionFolderFormColorControl.d.ts +8 -0
- package/dist/elements/public/StoreTransactionFolderForm/internal/InternalStoreTransactionFolderFormColorControl/InternalStoreTransactionFolderFormColorControl.js +74 -0
- package/dist/elements/public/StoreTransactionFolderForm/internal/InternalStoreTransactionFolderFormColorControl/InternalStoreTransactionFolderFormColorControl.js.map +1 -0
- package/dist/elements/public/StoreTransactionFolderForm/internal/InternalStoreTransactionFolderFormColorControl/index.d.ts +3 -0
- package/dist/elements/public/StoreTransactionFolderForm/internal/InternalStoreTransactionFolderFormColorControl/index.js +5 -0
- package/dist/elements/public/StoreTransactionFolderForm/internal/InternalStoreTransactionFolderFormColorControl/index.js.map +1 -0
- package/dist/elements/public/StoreTransactionFolderForm/types.d.ts +3 -0
- package/dist/elements/public/StoreTransactionFolderForm/types.js +2 -0
- package/dist/elements/public/StoreTransactionFolderForm/types.js.map +1 -0
- package/dist/elements/public/SubscriptionCard/SubscriptionCard.js +20 -7
- package/dist/elements/public/SubscriptionCard/SubscriptionCard.js.map +1 -1
- package/dist/elements/public/SwipeActions/SwipeActions.d.ts +0 -1
- package/dist/elements/public/SwipeActions/SwipeActions.js +6 -7
- package/dist/elements/public/SwipeActions/SwipeActions.js.map +1 -1
- package/dist/elements/public/TaxCard/TaxCard.js +2 -2
- package/dist/elements/public/TaxCard/TaxCard.js.map +1 -1
- package/dist/elements/public/TaxForm/TaxForm.js +0 -2
- package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
- package/dist/elements/public/TemplateConfigForm/internal/InternalTemplateConfigFormFilterValuesControl/InternalTemplateConfigFormFilterValuesControl.js +1 -3
- package/dist/elements/public/TemplateConfigForm/internal/InternalTemplateConfigFormFilterValuesControl/InternalTemplateConfigFormFilterValuesControl.js.map +1 -1
- package/dist/elements/public/Transaction/Transaction.d.ts +2 -3
- package/dist/elements/public/Transaction/Transaction.js +30 -6
- package/dist/elements/public/Transaction/Transaction.js.map +1 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.d.ts +5 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js +87 -18
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js.map +1 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.d.ts +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js.map +1 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js +6 -6
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js.map +1 -1
- package/dist/elements/public/Transaction/types.d.ts +1 -3
- package/dist/elements/public/Transaction/types.js.map +1 -1
- package/dist/elements/public/TransactionCard/TransactionCard.js +34 -6
- package/dist/elements/public/TransactionCard/TransactionCard.js.map +1 -1
- package/dist/elements/public/WebhookCard/types.d.ts +1 -3
- package/dist/elements/public/WebhookCard/types.js.map +1 -1
- package/dist/elements/public/index.d.ts +3 -0
- package/dist/elements/public/index.defined.d.ts +3 -0
- package/dist/elements/public/index.defined.js +3 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +3 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/themeable.js +106 -4
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +2 -2
- package/dist/cdn/shared-10da9bf0.js +0 -1
- package/dist/cdn/shared-1da47f50.js +0 -1
- package/dist/cdn/shared-4b24accb.js +0 -1
- package/dist/cdn/shared-5905fca4.js +0 -1
- package/dist/cdn/shared-69074dae.js +0 -1
- package/dist/cdn/shared-77829fbb.js +0 -1
- package/dist/cdn/shared-7a87cd33.js +0 -29
- package/dist/cdn/shared-a6e889a8.js +0 -1
- package/dist/cdn/shared-c66ca1f5.js +0 -1
- package/dist/cdn/shared-cb4ac1d2.js +0 -1
- package/dist/cdn/shared-f8e1143e.js +0 -1
- package/dist/cdn/shared-fc784ca0.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreForm.js","sourceRoot":"","sources":["../../../../src/elements/public/StoreForm/StoreForm.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,wCA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KO,KAAK;;;mBAGf,MAAA,IAAI,CAAC,mBAAmB,mCAAI,gBAAgB;;+BAEhC,KAAK;;;;KAI/B,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { VanillaHCaptchaWebComponent } from 'vanilla-hcaptcha';\nimport type { PropertyDeclarations } from 'lit-element';\nimport type { Resource, Graph } from '@foxy.io/sdk/core';\nimport type { TemplateResult } from 'lit-html';\nimport type { NucleonElement } from '../NucleonElement';\nimport type { NucleonV8N } from '../NucleonElement/types';\nimport type { Item } from '../../internal/InternalEditableListControl/types';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nimport type {\n ParsedCustomDisplayIdConfig,\n ParsedSmtpConfig,\n ParsedWebhookKey,\n Data,\n} from './types';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { ResponsiveMixin } from '../../../mixins/responsive';\nimport { InternalForm } from '../../internal/InternalForm/InternalForm';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { html } from 'lit-html';\n\nimport slugify from '@sindresorhus/slugify';\nimport merge from 'lodash-es/merge';\n\nconst NS = 'store-form';\nconst Base = ResponsiveMixin(TranslatableMixin(InternalForm, NS));\n\nfunction parseWebhookKey(webhookKey: string): ParsedWebhookKey | null {\n try {\n return JSON.parse(webhookKey);\n } catch {\n return null;\n }\n}\n\n/**\n * Form element for store settings (`fx:store`).\n *\n * @element foxy-store-form\n * @since 1.21.0\n */\nexport class StoreForm extends Base<Data> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n reportingStoreDomainExists: { attribute: 'reporting-store-domain-exists' },\n customerPasswordHashTypes: { attribute: 'customer-password-hash-types' },\n shippingAddressTypes: { attribute: 'shipping-address-types' },\n storeSecretsPageUrl: { attribute: 'store-secrets-page-url' },\n hCaptchaSiteKey: { attribute: 'h-captcha-site-key' },\n storeVersions: { attribute: 'store-versions' },\n checkoutTypes: { attribute: 'checkout-types' },\n localeCodes: { attribute: 'locale-codes' },\n languages: {},\n timezones: {},\n countries: {},\n regions: {},\n };\n }\n\n static get v8n(): NucleonV8N<Data, StoreForm> {\n return [\n ({ store_name: v }) => !!v || 'store-name:v8n_required',\n ({ store_name: v }) => (v && v.length <= 50) || 'store-name:v8n_too_long',\n ({ store_domain: storeDomain, use_remote_domain: useRemoteDomain }) => {\n if (!storeDomain) return 'store-domain:v8n_required';\n if (storeDomain.length > 100) return 'store-domain:v8n_too_long';\n\n const [tld, ...slds] = storeDomain.split('.').reverse();\n\n if (\n useRemoteDomain &&\n slds.length > 1 &&\n slds.every(s => /^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(s)) &&\n /^[a-z]{2,63}$/.test(tld)\n ) {\n return true;\n }\n\n if (\n !useRemoteDomain &&\n slds.length === 0 &&\n /^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(storeDomain)\n ) {\n return true;\n }\n\n return 'store-domain:v8n_invalid';\n },\n ({ store_url: v }) => !!v || 'store-url:v8n_required',\n ({ store_url: v }) => (v && v.length <= 300) || 'store-url:v8n_too_long',\n ({ receipt_continue_url: v }) => !v || v.length <= 300 || 'receipt-continue-url:v8n_too_long',\n ({ store_email: v }) => !!v || 'store-email:v8n_required',\n ({ store_email: v }) => (v && v.length <= 300) || 'store-email:v8n_too_long',\n ({ from_email: v }) => !v || v.length <= 100 || 'from-email:v8n_too_long',\n ({ smtp_config: v }) => !v || v.length <= 1000 || 'use-smtp-config:v8n_too_long',\n ({ postal_code: v }) => !!v || 'postal-code:v8n_required',\n ({ postal_code: v }) => (v && v.length <= 50) || 'postal-code:v8n_too_long',\n ({ region: v }) => !!v || 'region:v8n_required',\n ({ region: v }) => (v && v.length <= 100) || 'region:v8n_too_long',\n ({ country: v }) => !!v || 'country:v8n_required',\n ({ logo_url: v }) => !v || v.length <= 200 || 'logo-url:v8n_too_long',\n\n ({ webhook_url: v, use_webhook }) => !use_webhook || !!v || 'webhook-url:v8n_required',\n ({ webhook_url: v, use_webhook }) => {\n return !use_webhook || !v || v.length <= 300 || 'webhook-url:v8n_too_long';\n },\n\n ({ webhook_key: v }) => v === void 0 || v.length > 0 || 'webhook-key:v8n_required',\n ({ webhook_key: v }, host) => {\n // TODO remove the line below when API limit is corrected to match the legacy admin\n if (host.data?.webhook_key === v) return true;\n return !v || v.length <= 100 || 'webhook-key:v8n_too_long';\n },\n\n ({ webhook_key: v, use_webhook: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-webhook:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.xml_datafeed : v) || code;\n },\n\n ({ webhook_key: v, use_cart_validation: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-cart-validation:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.cart_signing : v) || code;\n },\n\n ({ webhook_key: v, use_single_sign_on: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-single-sign-on:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.sso : v) || code;\n },\n\n ...(['xml_datafeed', 'cart_signing', 'api_legacy', 'sso'] as const)\n .map(prop => [\n ({ webhook_key: v }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = `webhook-key-${prop.replace(/_/g, '-')}:v8n_required`;\n return !parsedV || !!parsedV[prop] || code;\n },\n ({ webhook_key: v }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = `webhook-key-${prop.replace(/_/g, '-')}:v8n_too_long`;\n return !parsedV || parsedV[prop].length <= 100 || code;\n },\n ])\n .flat(),\n\n ({ single_sign_on_url: v, use_single_sign_on: on }) => {\n return !on || !!v || 'single-sign-on-url:v8n_required';\n },\n\n ({ single_sign_on_url: v, use_single_sign_on: on }) => {\n return !on || !v || v.length <= 300 || 'single-sign-on-url:v8n_too_long';\n },\n\n ({ customer_password_hash_config: v }) => {\n return !v || String(v).length <= 100 || 'customer-password-hash-config:v8n_too_long';\n },\n\n ({ unified_order_entry_password: v }) => {\n return !v || String(v).length <= 100 || 'unified-order-entry-password:v8n_too_long';\n },\n ];\n }\n\n /** URL of the `fx:reporting_store_domain_exists` endpoint. */\n reportingStoreDomainExists: string | null = null;\n\n /** URL of the `fx:customer_password_hash_types` property helper resource. */\n customerPasswordHashTypes: string | null = null;\n\n /** URL of the `fx:shipping_address_types` property helper resource. */\n shippingAddressTypes: string | null = null;\n\n /** URL of the Store Secrets settings page if you are using this form on multiple pages. */\n storeSecretsPageUrl: string | null = null;\n\n /** hCaptcha site key for signup verification. If provided, requires users to complete a captcha before creating a store. */\n hCaptchaSiteKey: string | null = null;\n\n /**\n * URL of the `fx:store_versions` property helper resource.\n * @deprecated All elements in this library are designed to work with store version 2.0.\n */\n storeVersions: string | null = null;\n\n /**\n * URL of the `fx:checkout_types` property helper resource.\n * @deprecated Checkout type is effectively controlled by the default template config.\n */\n checkoutTypes: string | null = null;\n\n /**\n * URL of the `fx:locale_codes` property helper resource.\n * @deprecated Default locale code is effectively controlled by the active template set.\n */\n localeCodes: string | null = null;\n\n /**\n * URL of the `fx:languages` property helper resource.\n * @deprecated Default language is effectively controlled by the active template set.\n */\n languages: string | null = null;\n\n /** URL of the `fx:timezones` property helper resource. */\n timezones: string | null = null;\n\n /** URL of the `fx:countries` property helper resource. */\n countries: string | null = null;\n\n /** URL of the `fx:regions` property helper resource. */\n regions: string | null = null;\n\n private readonly __currencyStyleOptions = [\n { rawLabel: '12.34', value: '101' },\n { rawLabel: 'USD 12.34', value: '001' },\n { rawLabel: '$12.34', value: '000' },\n { rawLabel: '12', value: '111' },\n { rawLabel: 'USD 12', value: '011' },\n { rawLabel: '$12', value: '010' },\n ];\n\n private readonly __currencyStyleGetValue = () => {\n const map: Record<string, string> = {\n '101': '101',\n '100': '101',\n '001': '001',\n '000': '000',\n '111': '111',\n '110': '111',\n '011': '011',\n '010': '010',\n };\n\n const selectionCode = [\n this.form.hide_currency_symbol,\n this.form.hide_decimal_characters,\n this.form.use_international_currency_symbol,\n ]\n .map(v => Number(Boolean(v)))\n .join('');\n\n return map[selectionCode];\n };\n\n private readonly __currencyStyleSetValue = (newValue: string) => {\n this.edit({\n hide_currency_symbol: Boolean(Number(newValue[0])),\n hide_decimal_characters: Boolean(Number(newValue[1])),\n use_international_currency_symbol: Boolean(Number(newValue[2])),\n });\n };\n\n private readonly __appSessionTimeOptions = [\n { value: 's', label: 'second' },\n { value: 'm', label: 'minute' },\n { value: 'h', label: 'hour' },\n { value: 'd', label: 'day' },\n ];\n\n private readonly __checkStoreDomainAvailability = async (value: string) => {\n if (this.reportingStoreDomainExists) {\n if (value === this.data?.store_domain) return true;\n\n const url = new URL(this.reportingStoreDomainExists);\n url.searchParams.set('store_domain', value);\n\n const response = await new StoreForm.API(this).fetch(url.toString());\n return response.ok || 'store-domain:v8n_unavailable';\n } else {\n throw new Error('reportingStoreDomainExists is not set.');\n }\n };\n\n private readonly __storeNameSetValue = (newValue: string) => {\n const previousSuggestedDomain = slugify(this.form.store_name ?? '');\n const currentStoreDomain = this.form.store_domain ?? '';\n const newSuggestedDomain = slugify(newValue);\n\n if (previousSuggestedDomain === currentStoreDomain) {\n this.edit({ store_domain: newSuggestedDomain });\n }\n\n this.edit({ store_name: newValue });\n };\n\n private readonly __getStoreEmailValue = (): Item[] => {\n const emails = this.form.store_email ?? '';\n return emails\n .split(',')\n .map(v => ({ value: v.trim() }))\n .filter(({ value }) => value.length > 0);\n };\n\n private readonly __setStoreEmailValue = (newValue: Item[]) => {\n this.edit({ store_email: newValue.map(v => v.value).join(',') });\n };\n\n private readonly __getUseSmtpConfigValue = () => {\n return !!this.form.smtp_config;\n };\n\n private readonly __setUseSmtpConfigValue = (newValue: boolean) => {\n if (newValue) {\n this.edit({\n smtp_config: JSON.stringify({\n username: '',\n password: '',\n security: '',\n host: '',\n port: '',\n }),\n });\n } else {\n this.edit({ smtp_config: '' });\n }\n };\n\n private readonly __getAppSessionTimeValue = () => {\n const valueInSeconds = this.form.app_session_time || 43200;\n\n if (valueInSeconds % 86400 === 0) return `${valueInSeconds / 86400}d`;\n if (valueInSeconds % 3600 === 0) return `${valueInSeconds / 3600}h`;\n if (valueInSeconds % 60 === 0) return `${valueInSeconds / 60}m`;\n\n return `${valueInSeconds}s`;\n };\n\n private readonly __setAppSessionTimeValue = (newValue: string) => {\n const units = newValue[newValue.length - 1];\n const count = parseInt(newValue.substring(0, newValue.length - 1));\n const map: Record<string, number> = { d: 86400, h: 3600, m: 60, s: 1 };\n\n this.edit({ app_session_time: map[units] * count });\n };\n\n private readonly __setStoreDomainValue = (newValue: string) => {\n if (this.data) {\n if (newValue.endsWith('.foxycart.com')) {\n const domain = newValue.substring(0, newValue.length - 13);\n this.edit({ store_domain: domain, use_remote_domain: false });\n } else {\n this.edit({ store_domain: newValue, use_remote_domain: newValue.includes('.') });\n }\n } else {\n this.edit({ store_domain: newValue.split('.')[0] ?? '', use_remote_domain: false });\n }\n };\n\n private readonly __smtpConfigHostGetValue = () => {\n return this.__getSmtpConfig().host;\n };\n\n private readonly __smtpConfigHostSetValue = (newValue: string) => {\n this.__setSmtpConfig('host', newValue);\n };\n\n private readonly __smtpConfigPortGetValue = () => {\n const port = parseInt(this.__getSmtpConfig().port);\n return isNaN(port) ? undefined : port;\n };\n\n private readonly __smtpConfigPortSetValue = (newValue: number) => {\n this.__setSmtpConfig('port', String(newValue));\n };\n\n private readonly __smtpConfigUsernameGetValue = () => {\n return this.__getSmtpConfig().username;\n };\n\n private readonly __smtpConfigUsernameSetValue = (newValue: string) => {\n this.__setSmtpConfig('username', newValue);\n };\n\n private readonly __smtpConfigPasswordGetValue = () => {\n return this.__getSmtpConfig().password;\n };\n\n private readonly __smtpConfigPasswordSetValue = (newValue: string) => {\n this.__setSmtpConfig('password', newValue);\n };\n\n private readonly __smtpConfigSecurityGetValue = () => {\n return this.__getSmtpConfig().security;\n };\n\n private readonly __smtpConfigSecuritySetValue = (newValue: string) => {\n this.__setSmtpConfig('security', newValue);\n };\n\n private readonly __smtpConfigSecurityOptions = [\n { label: 'option_ssl', value: 'ssl' },\n { label: 'option_tls', value: 'tls' },\n { label: 'option_none', value: '' },\n ];\n\n private readonly __singleWebhookKeyGeneratorOptions = { length: 90, separator: '' };\n\n private readonly __jsonWebhookKeyGeneratorOptions = { length: 90, separator: '' };\n\n private readonly __useSingleWebhookKeyGetValue = () => {\n try {\n JSON.parse(this.form.webhook_key ?? '');\n return false;\n } catch {\n return true;\n }\n };\n\n private readonly __useSingleWebhookKeySetValue = (newValue: boolean) => {\n if (newValue) {\n this.edit({ webhook_key: '' });\n } else {\n const parsedKey: ParsedWebhookKey = {\n cart_signing: '',\n xml_datafeed: '',\n api_legacy: '',\n sso: '',\n };\n\n this.edit({ webhook_key: JSON.stringify(parsedKey) });\n }\n };\n\n private readonly __sendHtmlEmailOptions = [\n { label: 'option_text_only', value: 'text_only' },\n { label: 'option_text_plus_html', value: 'text_plus_html' },\n ];\n\n private readonly __sendHtmlEmailGetValue = () => {\n // @ts-expect-error SDK doesn't know about this property\n return this.form.send_html_email ? 'text_plus_html' : 'text_only';\n };\n\n private readonly __sendHtmlEmailSetValue = (newValue: 'text_only' | 'text_plus_html') => {\n // @ts-expect-error SDK doesn't know about this property\n this.edit({ send_html_email: newValue === 'text_plus_html' });\n };\n\n private __hCaptchaToken: string | null = null;\n\n get headerSubtitleOptions(): Record<string, unknown> {\n return { context: this.data?.is_active ? 'active' : 'inactive' };\n }\n\n renderBody(): TemplateResult {\n const storeDomainHelperText = this.t(\n this.form.use_remote_domain && !this.data?.use_remote_domain\n ? 'essentials-group-one.store-domain.custom_domain_note'\n : 'essentials-group-one.store-domain.helper_text'\n );\n\n const storeDomainSuffix =\n !this.form.store_domain || this.form.store_domain.includes('.') ? '' : '.foxycart.com';\n\n const customerPasswordHashTypesLoader = this.__renderLoader<Rels.CustomerPasswordHashTypes>(1);\n const shippingAddressTypesLoader = this.__renderLoader<Rels.ShippingAddressTypes>(2);\n const timezonesLoader = this.__renderLoader<Rels.Timezones>(7);\n const countriesLoader = this.__renderLoader<Rels.Countries>(8);\n const regionsLoader = this.__renderLoader<Rels.Regions>(9);\n\n const shippingAddressTypeEntries = Object.entries(\n shippingAddressTypesLoader?.data?.values ?? {}\n );\n\n const timezones = timezonesLoader?.data?.values.timezone ?? [];\n const countries = Object.values(countriesLoader?.data?.values ?? {});\n const regions = Object.values(regionsLoader?.data?.values ?? {});\n\n const customerPasswordHashTypeEntries = Object.entries(\n customerPasswordHashTypesLoader?.data?.values ?? {}\n );\n\n const customerPasswordHashTypeOptions = customerPasswordHashTypeEntries.map(v => ({\n rawLabel: v[1].description,\n value: v[0],\n }));\n\n const shippingAddressTypeOptions = shippingAddressTypeEntries.map(([value, rawLabel]) => ({\n rawLabel,\n value,\n }));\n\n const timezoneOptions = timezones.map(t => ({ rawLabel: t.description, value: t.timezone }));\n const countryOptions = countries.map(c => ({ rawLabel: c.default, value: c.cc2 }));\n const regionOptions = regions.map(r => ({ rawLabel: r.default, value: r.code }));\n\n let regionsUrl: string | undefined;\n\n try {\n const regionsURL = new URL(this.regions ?? '');\n const country = this.form.country;\n if (country) regionsURL.searchParams.set('country_code', country);\n regionsUrl = regionsURL.toString();\n } catch {\n regionsUrl = undefined;\n }\n\n const customDisplayIdConfig = this.__getCustomDisplayIdConfig();\n const transactionJournalEntriesConfig = customDisplayIdConfig.transaction_journal_entries;\n const logDetailRequestTypes = transactionJournalEntriesConfig.log_detail_request_types;\n const displayIdExamples = this.__displayIdExamples;\n const journalIdExamples = this.__journalIdExamples;\n\n const rawWebhookKey = this.data?.webhook_key ?? '';\n const parsedWebhookKey = parseWebhookKey(rawWebhookKey);\n const cartSigningKey = parsedWebhookKey?.cart_signing ?? rawWebhookKey;\n const xmlDatafeedKey = parsedWebhookKey?.xml_datafeed ?? rawWebhookKey;\n const ssoKey = parsedWebhookKey?.sso ?? rawWebhookKey;\n\n return html`\n ${this.renderHeader()}\n\n <foxy-internal-summary-control infer=\"essentials-group-one\">\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"store-name\"\n .setValue=${this.__storeNameSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"logo-url\">\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n helper-text=${storeDomainHelperText}\n layout=\"summary-item\"\n suffix=${storeDomainSuffix}\n infer=\"store-domain\"\n .setValue=${this.__setStoreDomainValue}\n .checkValidityAsync=${this.reportingStoreDomainExists\n ? this.__checkStoreDomainAvailability\n : null}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"store-url\">\n </foxy-internal-text-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-two\">\n <foxy-internal-switch-control infer=\"is-maintenance-mode\"></foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-three\">\n <foxy-internal-editable-list-control\n layout=\"summary-item\"\n infer=\"store-email\"\n .getValue=${this.__getStoreEmailValue}\n .setValue=${this.__setStoreEmailValue}\n >\n </foxy-internal-editable-list-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-four\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"timezone\"\n .options=${timezoneOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"country\"\n .options=${countryOptions}\n >\n </foxy-internal-select-control>\n\n ${regionOptions.length > 0\n ? html`\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"region\"\n .options=${regionOptions}\n >\n </foxy-internal-select-control>\n `\n : html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"region\">\n </foxy-internal-text-control>\n `}\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"postal-code\">\n </foxy-internal-text-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"currency-style\"\n .options=${this.__currencyStyleOptions}\n .getValue=${this.__currencyStyleGetValue}\n .setValue=${this.__currencyStyleSetValue}\n >\n </foxy-internal-select-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"store-secrets\" id=\"store-secrets\">\n <foxy-internal-switch-control\n infer=\"use-single-secret\"\n .getValue=${this.__useSingleWebhookKeyGetValue}\n .setValue=${this.__useSingleWebhookKeySetValue}\n >\n </foxy-internal-switch-control>\n\n ${this.__useSingleWebhookKeyGetValue()\n ? html`\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"webhook-key\"\n show-generator\n .generatorOptions=${this.__singleWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n `\n : html`\n <foxy-internal-password-control\n json-path=\"api_legacy\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-api-legacy\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"cart_signing\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-cart-signing\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"sso\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-sso\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"xml_datafeed\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-xml-datafeed\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n `}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"emails\">\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"from-email\"\n placeholder=${this.__getStoreEmailValue()[0]?.value ??\n this.t('emails.from-email.placeholder')}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-switch-control infer=\"use-email-dns\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control\n infer=\"use-smtp-config\"\n helper-text-as-tooltip\n .getValue=${this.__getUseSmtpConfigValue}\n .setValue=${this.__setUseSmtpConfigValue}\n >\n </foxy-internal-switch-control>\n\n ${this.form.smtp_config\n ? html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"smtp-config-host\"\n .getValue=${this.__smtpConfigHostGetValue}\n .setValue=${this.__smtpConfigHostSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"smtp-config-port\"\n step=\"1\"\n min=\"0\"\n .getValue=${this.__smtpConfigPortGetValue}\n .setValue=${this.__smtpConfigPortSetValue}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"smtp-config-username\"\n .getValue=${this.__smtpConfigUsernameGetValue}\n .setValue=${this.__smtpConfigUsernameSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"smtp-config-password\"\n .getValue=${this.__smtpConfigPasswordGetValue}\n .setValue=${this.__smtpConfigPasswordSetValue}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"smtp-config-security\"\n .getValue=${this.__smtpConfigSecurityGetValue}\n .setValue=${this.__smtpConfigSecuritySetValue}\n .options=${this.__smtpConfigSecurityOptions}\n >\n </foxy-internal-select-control>\n `\n : ''}\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"send-html-email\"\n .getValue=${this.__sendHtmlEmailGetValue}\n .setValue=${this.__sendHtmlEmailSetValue}\n .options=${this.__sendHtmlEmailOptions}\n >\n </foxy-internal-select-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"shipping\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"shipping-address-type\"\n .options=${shippingAddressTypeOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-switch-control infer=\"features-multiship\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control infer=\"require-signed-shipping-rates\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"cart\">\n <foxy-internal-frequency-control\n layout=\"summary-item\"\n infer=\"app-session-time\"\n .getValue=${this.__getAppSessionTimeValue}\n .setValue=${this.__setAppSessionTimeValue}\n .options=${this.__appSessionTimeOptions}\n >\n </foxy-internal-frequency-control>\n\n <foxy-internal-switch-control\n infer=\"products-require-expires-property\"\n helper-text-as-tooltip\n >\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control infer=\"use-cart-validation\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n ${cartSigningKey && this.form.use_cart_validation\n ? this.__renderReadonlyWebhookKey('webhook-key-cart-signing', cartSigningKey)\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-type\"\n .options=${customerPasswordHashTypeOptions}\n .setValue=${(newValue: string) => {\n const entry = customerPasswordHashTypeEntries.find(([v]) => v === newValue);\n this.edit({\n customer_password_hash_type: newValue,\n customer_password_hash_config: entry?.[1].config ?? '',\n });\n }}\n >\n </foxy-internal-select-control>\n\n ${typeof this.form.customer_password_hash_config === 'number'\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-config\"\n >\n </foxy-internal-number-control>\n `\n : html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-config\"\n >\n </foxy-internal-text-control>\n `}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\" label=\"\" helper-text=\"\">\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"unified-order-entry-password\"\n show-generator\n >\n </foxy-internal-password-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\" label=\"\" helper-text=\"\">\n <foxy-internal-switch-control infer=\"use-single-sign-on\"></foxy-internal-switch-control>\n ${this.form.use_single_sign_on\n ? html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"single-sign-on-url\">\n </foxy-internal-text-control>\n ${ssoKey ? this.__renderReadonlyWebhookKey('webhook-key-sso', ssoKey) : ''}\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"receipt\">\n <foxy-internal-text-control layout=\"summary-item\" infer=\"receipt-continue-url\">\n </foxy-internal-text-control>\n <foxy-internal-switch-control infer=\"bcc-on-receipt-email\"></foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"custom-display-id-config\">\n <foxy-internal-switch-control\n infer=\"custom-display-id-config-enabled\"\n .getValue=${() => customDisplayIdConfig.enabled}\n .setValue=${(newValue: boolean) => {\n this.__setCustomDisplayIdConfig('enabled', newValue);\n }}\n >\n </foxy-internal-switch-control>\n\n ${customDisplayIdConfig.enabled\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-start\"\n step=\"1\"\n min=\"0\"\n .getValue=${() => parseInt(customDisplayIdConfig.start || '0')}\n .setValue=${(newValue: number) => {\n this.__setCustomDisplayIdConfig('start', String(newValue));\n }}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-length\"\n step=\"1\"\n min=\"0\"\n .getValue=${() => parseInt(customDisplayIdConfig.length || '0')}\n .setValue=${(newValue: number) => {\n this.__setCustomDisplayIdConfig('length', String(newValue));\n }}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-prefix\"\n .getValue=${() => customDisplayIdConfig.prefix}\n .setValue=${(newValue: string) => {\n this.__setCustomDisplayIdConfig('prefix', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-suffix\"\n .getValue=${() => customDisplayIdConfig.suffix}\n .setValue=${(newValue: string) => {\n this.__setCustomDisplayIdConfig('suffix', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <div class=\"text-right text-secondary\">\n <p class=\"flex justify-end\">\n <foxy-i18n infer=\"\" key=\"custom-display-id-config-first-example\"></foxy-i18n>\n <span style=\"font-family: monospace\"> ${displayIdExamples?.first}</span>\n </p>\n <p class=\"flex justify-end\">\n <foxy-i18n infer=\"\" key=\"custom-display-id-config-random-example\"></foxy-i18n>\n <span style=\"font-family: monospace\"> ${displayIdExamples?.random}</span>\n </p>\n </div>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control helper-text=\"\" label=\"\" infer=\"custom-display-id-config\">\n <foxy-internal-switch-control\n infer=\"custom-display-id-config-transaction-journal-entries-enabled\"\n class=\"sm-col-span-2\"\n .getValue=${() => transactionJournalEntriesConfig.enabled}\n .setValue=${(newValue: boolean) => {\n this.__setTransactionJournalEntriesConfig('enabled', newValue);\n }}\n >\n </foxy-internal-switch-control>\n\n ${transactionJournalEntriesConfig.enabled\n ? html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-authcapture-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_authcapture.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_authcapture', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-capture-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_capture.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_capture', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-void-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_void.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_void', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-refund-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_refund.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_refund', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-transaction-separator\"\n class=\"col-span-2\"\n .getValue=${() => transactionJournalEntriesConfig.transaction_separator}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesConfig('transaction_separator', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <div class=\"sm-col-span-2 leading-s text-right text-secondary\">\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-authcapture-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\"> ${journalIdExamples?.authcapture} </span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-capture-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.capture}</span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-void-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.void}</span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-refund-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.refund}</span>\n </p>\n </div>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"xml-datafeed\">\n <foxy-internal-switch-control infer=\"use-webhook\"></foxy-internal-switch-control>\n ${this.form.use_webhook\n ? html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"webhook-url\">\n </foxy-internal-text-control>\n ${xmlDatafeedKey\n ? this.__renderReadonlyWebhookKey('webhook-key-xml-datafeed', xmlDatafeedKey)\n : ''}\n `\n : ''}\n </foxy-internal-summary-control>\n\n ${this.renderTemplateOrSlot()}\n ${this.href || !this.hCaptchaSiteKey\n ? ''\n : html`\n <div class=\"text-xs text-tertiary\">\n <foxy-i18n infer=\"hcaptcha\" key=\"disclaimer\"></foxy-i18n>\n <br />\n <a\n target=\"_blank\"\n class=\"transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.hcaptcha.com/privacy\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n class=\"underline\" infer=\"hcaptcha\" key=\"privacy_policy\"></foxy-i18n>\n </a>\n <span>•</span>\n <a\n target=\"_blank\"\n class=\"transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.hcaptcha.com/terms\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n class=\"underline\" infer=\"hcaptcha\" key=\"terms_of_service\"></foxy-i18n>\n </a>\n <h-captcha\n site-key=${this.hCaptchaSiteKey}\n class=\"hidden\"\n size=\"invisible\"\n hl=${this.lang}\n @verified=${({ token }: Record<'token' | 'eKey', string>) => {\n this.__hCaptchaToken = token;\n super.submit();\n }}\n >\n </h-captcha>\n </div>\n `}\n ${super.renderBody()}\n ${customerPasswordHashTypesLoader.render(this.customerPasswordHashTypes)}\n ${shippingAddressTypesLoader.render(this.shippingAddressTypes)}\n ${timezonesLoader.render(this.timezones)} ${countriesLoader.render(this.countries)}\n ${regionsLoader.render(regionsUrl)}\n `;\n }\n\n submit(): void {\n if (!this.href && this.hCaptchaSiteKey) {\n this.__hCaptcha?.reset();\n this.__hCaptcha?.execute();\n } else {\n super.submit();\n }\n }\n\n protected async _fetch<TResult = Data>(...args: Parameters<Window['fetch']>): Promise<TResult> {\n try {\n const request = new StoreForm.API.WHATWGRequest(...args);\n if (this.__hCaptchaToken) request.headers.set('h-captcha-code', this.__hCaptchaToken);\n return await super._fetch(request);\n } catch (err) {\n let errorText;\n\n try {\n errorText = await (err as Response).text();\n } catch {\n throw err;\n }\n\n if (\n errorText.includes('store_domain is invalid because it has a reserved format') ||\n errorText.includes('store_domain can not end with')\n ) {\n throw ['error:store_domain_reserved'];\n }\n\n if (errorText.includes('store_domain is already in use')) {\n throw ['error:store_domain_exists'];\n }\n\n throw err;\n }\n }\n\n private get __displayIdExamples() {\n const config = this.__getCustomDisplayIdConfig();\n const startAsInt = parseInt(config.start || '0');\n const lengthAsInt = parseInt(config.length || '0');\n const randomExampleNumericId = Math.min(\n startAsInt + Math.floor(Math.random() * Math.pow(10, lengthAsInt)),\n Math.pow(10, lengthAsInt) - 1\n );\n\n if (config.start && config.length && startAsInt / 10 <= lengthAsInt) {\n return {\n first: `${config.prefix}${startAsInt.toString().padStart(lengthAsInt, '0')}${\n config.suffix\n }`,\n random: `${config.prefix}${randomExampleNumericId.toString().padStart(lengthAsInt, '0')}${\n config.suffix\n }`,\n };\n }\n }\n\n private get __journalIdExamples() {\n const customDisplayIdConfig = this.__getCustomDisplayIdConfig();\n const transactionJournalEntriesConfig = customDisplayIdConfig.transaction_journal_entries;\n const startAsInt = parseInt(customDisplayIdConfig.start || '0');\n const lengthAsInt = parseInt(customDisplayIdConfig.length || '0');\n const randomExampleNumericId = Math.min(\n startAsInt + Math.floor(Math.random() * Math.pow(10, lengthAsInt)),\n Math.pow(10, lengthAsInt) - 1\n );\n\n const randomExampleId = `${customDisplayIdConfig.prefix}${randomExampleNumericId\n .toString()\n .padStart(lengthAsInt, '0')}${customDisplayIdConfig.suffix}`;\n\n const randomNumericEntryId = Math.floor(Math.random() * 1000);\n const randomEntryId = String(randomNumericEntryId).padStart(3, '0');\n\n if (\n customDisplayIdConfig.start &&\n customDisplayIdConfig.length &&\n startAsInt / 10 <= lengthAsInt\n ) {\n return {\n authcapture: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_authcapture.prefix}${randomEntryId}`,\n capture: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_capture.prefix}${randomEntryId}`,\n refund: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_refund.prefix}${randomEntryId}`,\n void: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_void.prefix}${randomEntryId}`,\n };\n }\n }\n\n private get __hCaptcha() {\n return this.renderRoot.querySelector<VanillaHCaptchaWebComponent>('h-captcha');\n }\n\n private __getCustomDisplayIdConfig() {\n const defaultConfig: ParsedCustomDisplayIdConfig = {\n enabled: false,\n start: '0',\n length: '0',\n prefix: '',\n suffix: '',\n transaction_journal_entries: {\n enabled: false,\n transaction_separator: '',\n log_detail_request_types: {\n transaction_authcapture: { prefix: '' },\n transaction_capture: { prefix: '' },\n transaction_refund: { prefix: '' },\n transaction_void: { prefix: '' },\n },\n },\n };\n\n return merge(defaultConfig, this.form.custom_display_id_config || void 0);\n }\n\n private __setCustomDisplayIdConfig<TKey extends keyof ParsedCustomDisplayIdConfig>(\n key: TKey,\n value: ParsedCustomDisplayIdConfig[TKey]\n ) {\n const currentConfig = this.__getCustomDisplayIdConfig();\n currentConfig[key] = value;\n this.edit({ custom_display_id_config: currentConfig });\n }\n\n private __getTransactionJournalEntriesConfig() {\n return this.__getCustomDisplayIdConfig().transaction_journal_entries;\n }\n\n private __setTransactionJournalEntriesConfig<\n TKey extends keyof ParsedCustomDisplayIdConfig['transaction_journal_entries']\n >(key: TKey, value: ParsedCustomDisplayIdConfig['transaction_journal_entries'][TKey]) {\n const config = this.__getCustomDisplayIdConfig().transaction_journal_entries;\n config[key] = value;\n this.__setCustomDisplayIdConfig('transaction_journal_entries', config);\n }\n\n private __setTransactionJournalEntriesPrefix(\n key: keyof ParsedCustomDisplayIdConfig['transaction_journal_entries']['log_detail_request_types'],\n value: string\n ) {\n const config = this.__getTransactionJournalEntriesConfig();\n config.log_detail_request_types[key].prefix = value;\n this.__setTransactionJournalEntriesConfig(\n 'log_detail_request_types',\n config.log_detail_request_types\n );\n }\n\n private __getSmtpConfig() {\n let config: ParsedSmtpConfig;\n\n try {\n config = JSON.parse(this.form.smtp_config ?? '');\n } catch {\n config = {\n username: '',\n password: '',\n security: '',\n host: '',\n port: '',\n };\n }\n\n return config;\n }\n\n private __setSmtpConfig<TKey extends keyof ParsedSmtpConfig>(\n key: TKey,\n value: ParsedSmtpConfig[TKey]\n ) {\n const config = this.__getSmtpConfig();\n config[key] = value;\n this.edit({ smtp_config: JSON.stringify(config) });\n }\n\n private __renderLoader<T extends Graph & { links: { self: unknown } }>(index: number) {\n const id = `loader-${index}`;\n return {\n data: this.renderRoot.querySelector<NucleonElement<Resource<T>>>(`#${id}`)?.data,\n render: (href?: string | null) => html`\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(href ?? undefined)}\n id=${id}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n `,\n };\n }\n\n private __renderReadonlyWebhookKey(scope: string, key: string) {\n return html`\n <div class=\"leading-xs\">\n <div class=\"flex items-center gap-s\">\n <p class=\"flex-1\">\n <foxy-i18n infer=${scope} key=\"label\"></foxy-i18n>\n </p>\n <p class=\"text-tertiary\">${'*'.repeat(8)}${key.substr(-4)}</p>\n <foxy-copy-to-clipboard\n layout=\"complete\"\n infer=\"${scope} copy-to-clipboard\"\n theme=\"contrast tertiary-inline\"\n text=${key}\n >\n </foxy-copy-to-clipboard>\n </div>\n <p class=\"text-xs text-secondary\">\n <foxy-i18n infer=${scope} key=\"helper_text\"></foxy-i18n>\n <a\n class=\"text-body font-medium rounded-s hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=${this.storeSecretsPageUrl ?? '#store-secrets'}\n >\n <foxy-i18n infer=${scope} key=\"link_text\"></fox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;;+BAIgB,KAAK;;qCAEC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;;;qBAG9C,KAAK;;mBAEP,GAAG;;;;;6BAKO,KAAK;;;mBAGf,MAAA,IAAI,CAAC,mBAAmB,mCAAI,gBAAgB;;+BAEhC,KAAK;;;;KAI/B,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { VanillaHCaptchaWebComponent } from 'vanilla-hcaptcha';\nimport type { PropertyDeclarations } from 'lit-element';\nimport type { Resource, Graph } from '@foxy.io/sdk/core';\nimport type { TemplateResult } from 'lit-html';\nimport type { NucleonElement } from '../NucleonElement';\nimport type { NucleonV8N } from '../NucleonElement/types';\nimport type { Item } from '../../internal/InternalEditableListControl/types';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nimport type {\n ParsedCustomDisplayIdConfig,\n ParsedSmtpConfig,\n ParsedWebhookKey,\n Data,\n} from './types';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { ResponsiveMixin } from '../../../mixins/responsive';\nimport { InternalForm } from '../../internal/InternalForm/InternalForm';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { html } from 'lit-html';\n\nimport slugify from '@sindresorhus/slugify';\nimport merge from 'lodash-es/merge';\n\nconst NS = 'store-form';\nconst Base = ResponsiveMixin(TranslatableMixin(InternalForm, NS));\n\nfunction parseWebhookKey(webhookKey: string): ParsedWebhookKey | null {\n try {\n return JSON.parse(webhookKey);\n } catch {\n return null;\n }\n}\n\n/**\n * Form element for store settings (`fx:store`).\n *\n * @element foxy-store-form\n * @since 1.21.0\n */\nexport class StoreForm extends Base<Data> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n reportingStoreDomainExists: { attribute: 'reporting-store-domain-exists' },\n customerPasswordHashTypes: { attribute: 'customer-password-hash-types' },\n shippingAddressTypes: { attribute: 'shipping-address-types' },\n storeSecretsPageUrl: { attribute: 'store-secrets-page-url' },\n hCaptchaSiteKey: { attribute: 'h-captcha-site-key' },\n storeVersions: { attribute: 'store-versions' },\n checkoutTypes: { attribute: 'checkout-types' },\n localeCodes: { attribute: 'locale-codes' },\n languages: {},\n timezones: {},\n countries: {},\n regions: {},\n };\n }\n\n static get v8n(): NucleonV8N<Data, StoreForm> {\n return [\n ({ store_name: v }) => !!v || 'store-name:v8n_required',\n ({ store_name: v }) => (v && v.length <= 50) || 'store-name:v8n_too_long',\n ({ store_domain: storeDomain, use_remote_domain: useRemoteDomain }) => {\n if (!storeDomain) return 'store-domain:v8n_required';\n if (storeDomain.length > 100) return 'store-domain:v8n_too_long';\n\n const [tld, ...slds] = storeDomain.split('.').reverse();\n\n if (\n useRemoteDomain &&\n slds.length > 1 &&\n slds.every(s => /^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(s)) &&\n /^[a-z]{2,63}$/.test(tld)\n ) {\n return true;\n }\n\n if (\n !useRemoteDomain &&\n slds.length === 0 &&\n /^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(storeDomain)\n ) {\n return true;\n }\n\n return 'store-domain:v8n_invalid';\n },\n ({ store_url: v }) => !!v || 'store-url:v8n_required',\n ({ store_url: v }) => (v && v.length <= 300) || 'store-url:v8n_too_long',\n ({ receipt_continue_url: v }) => !v || v.length <= 300 || 'receipt-continue-url:v8n_too_long',\n ({ store_email: v }) => !!v || 'store-email:v8n_required',\n ({ store_email: v }) => (v && v.length <= 300) || 'store-email:v8n_too_long',\n ({ from_email: v }) => !v || v.length <= 100 || 'from-email:v8n_too_long',\n ({ smtp_config: v }) => !v || v.length <= 1000 || 'use-smtp-config:v8n_too_long',\n ({ postal_code: v }) => !!v || 'postal-code:v8n_required',\n ({ postal_code: v }) => (v && v.length <= 50) || 'postal-code:v8n_too_long',\n ({ region: v }) => !!v || 'region:v8n_required',\n ({ region: v }) => (v && v.length <= 100) || 'region:v8n_too_long',\n ({ country: v }) => !!v || 'country:v8n_required',\n ({ logo_url: v }) => !v || v.length <= 200 || 'logo-url:v8n_too_long',\n\n ({ webhook_url: v, use_webhook }) => !use_webhook || !!v || 'webhook-url:v8n_required',\n ({ webhook_url: v, use_webhook }) => {\n return !use_webhook || !v || v.length <= 300 || 'webhook-url:v8n_too_long';\n },\n\n ({ webhook_key: v }) => v === void 0 || v.length > 0 || 'webhook-key:v8n_required',\n ({ webhook_key: v }, host) => {\n // TODO remove the line below when API limit is corrected to match the legacy admin\n if (host.data?.webhook_key === v) return true;\n return !v || v.length <= 100 || 'webhook-key:v8n_too_long';\n },\n\n ({ webhook_key: v, use_webhook: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-webhook:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.xml_datafeed : v) || code;\n },\n\n ({ webhook_key: v, use_cart_validation: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-cart-validation:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.cart_signing : v) || code;\n },\n\n ({ webhook_key: v, use_single_sign_on: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-single-sign-on:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.sso : v) || code;\n },\n\n ...(['xml_datafeed', 'cart_signing', 'api_legacy', 'sso'] as const)\n .map(prop => [\n ({ webhook_key: v }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = `webhook-key-${prop.replace(/_/g, '-')}:v8n_required`;\n return !parsedV || !!parsedV[prop] || code;\n },\n ({ webhook_key: v }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = `webhook-key-${prop.replace(/_/g, '-')}:v8n_too_long`;\n return !parsedV || parsedV[prop].length <= 100 || code;\n },\n ])\n .flat(),\n\n ({ single_sign_on_url: v, use_single_sign_on: on }) => {\n return !on || !!v || 'single-sign-on-url:v8n_required';\n },\n\n ({ single_sign_on_url: v, use_single_sign_on: on }) => {\n return !on || !v || v.length <= 300 || 'single-sign-on-url:v8n_too_long';\n },\n\n ({ customer_password_hash_config: v }) => {\n return !v || String(v).length <= 100 || 'customer-password-hash-config:v8n_too_long';\n },\n\n ({ unified_order_entry_password: v }) => {\n return !v || String(v).length <= 100 || 'unified-order-entry-password:v8n_too_long';\n },\n ];\n }\n\n /** URL of the `fx:reporting_store_domain_exists` endpoint. */\n reportingStoreDomainExists: string | null = null;\n\n /** URL of the `fx:customer_password_hash_types` property helper resource. */\n customerPasswordHashTypes: string | null = null;\n\n /** URL of the `fx:shipping_address_types` property helper resource. */\n shippingAddressTypes: string | null = null;\n\n /** URL of the Store Secrets settings page if you are using this form on multiple pages. */\n storeSecretsPageUrl: string | null = null;\n\n /** hCaptcha site key for signup verification. If provided, requires users to complete a captcha before creating a store. */\n hCaptchaSiteKey: string | null = null;\n\n /**\n * URL of the `fx:store_versions` property helper resource.\n * @deprecated All elements in this library are designed to work with store version 2.0.\n */\n storeVersions: string | null = null;\n\n /**\n * URL of the `fx:checkout_types` property helper resource.\n * @deprecated Checkout type is effectively controlled by the default template config.\n */\n checkoutTypes: string | null = null;\n\n /**\n * URL of the `fx:locale_codes` property helper resource.\n * @deprecated Default locale code is effectively controlled by the active template set.\n */\n localeCodes: string | null = null;\n\n /**\n * URL of the `fx:languages` property helper resource.\n * @deprecated Default language is effectively controlled by the active template set.\n */\n languages: string | null = null;\n\n /** URL of the `fx:timezones` property helper resource. */\n timezones: string | null = null;\n\n /** URL of the `fx:countries` property helper resource. */\n countries: string | null = null;\n\n /** URL of the `fx:regions` property helper resource. */\n regions: string | null = null;\n\n private readonly __currencyStyleOptions = [\n { rawLabel: '12.34', value: '101' },\n { rawLabel: 'USD 12.34', value: '001' },\n { rawLabel: '$12.34', value: '000' },\n { rawLabel: '12', value: '111' },\n { rawLabel: 'USD 12', value: '011' },\n { rawLabel: '$12', value: '010' },\n ];\n\n private readonly __currencyStyleGetValue = () => {\n const map: Record<string, string> = {\n '101': '101',\n '100': '101',\n '001': '001',\n '000': '000',\n '111': '111',\n '110': '111',\n '011': '011',\n '010': '010',\n };\n\n const selectionCode = [\n this.form.hide_currency_symbol,\n this.form.hide_decimal_characters,\n this.form.use_international_currency_symbol,\n ]\n .map(v => Number(Boolean(v)))\n .join('');\n\n return map[selectionCode];\n };\n\n private readonly __currencyStyleSetValue = (newValue: string) => {\n this.edit({\n hide_currency_symbol: Boolean(Number(newValue[0])),\n hide_decimal_characters: Boolean(Number(newValue[1])),\n use_international_currency_symbol: Boolean(Number(newValue[2])),\n });\n };\n\n private readonly __appSessionTimeOptions = [\n { value: 's', label: 'second' },\n { value: 'm', label: 'minute' },\n { value: 'h', label: 'hour' },\n { value: 'd', label: 'day' },\n ];\n\n private readonly __checkStoreDomainAvailability = async (value: string) => {\n if (this.reportingStoreDomainExists) {\n if (value === this.data?.store_domain) return true;\n\n const url = new URL(this.reportingStoreDomainExists);\n url.searchParams.set('store_domain', value);\n\n const response = await new StoreForm.API(this).fetch(url.toString());\n return response.ok || 'store-domain:v8n_unavailable';\n } else {\n throw new Error('reportingStoreDomainExists is not set.');\n }\n };\n\n private readonly __storeNameSetValue = (newValue: string) => {\n const previousSuggestedDomain = slugify(this.form.store_name ?? '');\n const currentStoreDomain = this.form.store_domain ?? '';\n const newSuggestedDomain = slugify(newValue);\n\n if (previousSuggestedDomain === currentStoreDomain) {\n this.edit({ store_domain: newSuggestedDomain });\n }\n\n this.edit({ store_name: newValue });\n };\n\n private readonly __getStoreEmailValue = (): Item[] => {\n const emails = this.form.store_email ?? '';\n return emails\n .split(',')\n .map(v => ({ value: v.trim() }))\n .filter(({ value }) => value.length > 0);\n };\n\n private readonly __setStoreEmailValue = (newValue: Item[]) => {\n this.edit({ store_email: newValue.map(v => v.value).join(',') });\n };\n\n private readonly __getUseSmtpConfigValue = () => {\n return !!this.form.smtp_config;\n };\n\n private readonly __setUseSmtpConfigValue = (newValue: boolean) => {\n if (newValue) {\n this.edit({\n smtp_config: JSON.stringify({\n username: '',\n password: '',\n security: '',\n host: '',\n port: '',\n }),\n });\n } else {\n this.edit({ smtp_config: '' });\n }\n };\n\n private readonly __getAppSessionTimeValue = () => {\n const valueInSeconds = this.form.app_session_time || 43200;\n\n if (valueInSeconds % 86400 === 0) return `${valueInSeconds / 86400}d`;\n if (valueInSeconds % 3600 === 0) return `${valueInSeconds / 3600}h`;\n if (valueInSeconds % 60 === 0) return `${valueInSeconds / 60}m`;\n\n return `${valueInSeconds}s`;\n };\n\n private readonly __setAppSessionTimeValue = (newValue: string) => {\n const units = newValue[newValue.length - 1];\n const count = parseInt(newValue.substring(0, newValue.length - 1));\n const map: Record<string, number> = { d: 86400, h: 3600, m: 60, s: 1 };\n\n this.edit({ app_session_time: map[units] * count });\n };\n\n private readonly __setStoreDomainValue = (newValue: string) => {\n if (this.data) {\n if (newValue.endsWith('.foxycart.com')) {\n const domain = newValue.substring(0, newValue.length - 13);\n this.edit({ store_domain: domain, use_remote_domain: false });\n } else {\n this.edit({ store_domain: newValue, use_remote_domain: newValue.includes('.') });\n }\n } else {\n this.edit({ store_domain: newValue.split('.')[0] ?? '', use_remote_domain: false });\n }\n };\n\n private readonly __smtpConfigHostGetValue = () => {\n return this.__getSmtpConfig().host;\n };\n\n private readonly __smtpConfigHostSetValue = (newValue: string) => {\n this.__setSmtpConfig('host', newValue);\n };\n\n private readonly __smtpConfigPortGetValue = () => {\n const port = parseInt(this.__getSmtpConfig().port);\n return isNaN(port) ? undefined : port;\n };\n\n private readonly __smtpConfigPortSetValue = (newValue: number) => {\n this.__setSmtpConfig('port', String(newValue));\n };\n\n private readonly __smtpConfigUsernameGetValue = () => {\n return this.__getSmtpConfig().username;\n };\n\n private readonly __smtpConfigUsernameSetValue = (newValue: string) => {\n this.__setSmtpConfig('username', newValue);\n };\n\n private readonly __smtpConfigPasswordGetValue = () => {\n return this.__getSmtpConfig().password;\n };\n\n private readonly __smtpConfigPasswordSetValue = (newValue: string) => {\n this.__setSmtpConfig('password', newValue);\n };\n\n private readonly __smtpConfigSecurityGetValue = () => {\n return this.__getSmtpConfig().security;\n };\n\n private readonly __smtpConfigSecuritySetValue = (newValue: string) => {\n this.__setSmtpConfig('security', newValue);\n };\n\n private readonly __smtpConfigSecurityOptions = [\n { label: 'option_ssl', value: 'ssl' },\n { label: 'option_tls', value: 'tls' },\n { label: 'option_none', value: '' },\n ];\n\n private readonly __singleWebhookKeyGeneratorOptions = { length: 90, separator: '' };\n\n private readonly __jsonWebhookKeyGeneratorOptions = { length: 90, separator: '' };\n\n private readonly __useSingleWebhookKeyGetValue = () => {\n try {\n JSON.parse(this.form.webhook_key ?? '');\n return false;\n } catch {\n return true;\n }\n };\n\n private readonly __useSingleWebhookKeySetValue = (newValue: boolean) => {\n if (newValue) {\n this.edit({ webhook_key: '' });\n } else {\n const parsedKey: ParsedWebhookKey = {\n cart_signing: '',\n xml_datafeed: '',\n api_legacy: '',\n sso: '',\n };\n\n this.edit({ webhook_key: JSON.stringify(parsedKey) });\n }\n };\n\n private readonly __sendHtmlEmailOptions = [\n { label: 'option_text_only', value: 'text_only' },\n { label: 'option_text_plus_html', value: 'text_plus_html' },\n ];\n\n private readonly __sendHtmlEmailGetValue = () => {\n return this.form.send_html_email ? 'text_plus_html' : 'text_only';\n };\n\n private readonly __sendHtmlEmailSetValue = (newValue: 'text_only' | 'text_plus_html') => {\n this.edit({ send_html_email: newValue === 'text_plus_html' });\n };\n\n private __hCaptchaToken: string | null = null;\n\n get headerSubtitleOptions(): Record<string, unknown> {\n return { context: this.data?.is_active ? 'active' : 'inactive' };\n }\n\n renderBody(): TemplateResult {\n const storeDomainHelperText = this.t(\n this.form.use_remote_domain && !this.data?.use_remote_domain\n ? 'essentials-group-one.store-domain.custom_domain_note'\n : 'essentials-group-one.store-domain.helper_text'\n );\n\n const storeDomainSuffix =\n !this.form.store_domain || this.form.store_domain.includes('.') ? '' : '.foxycart.com';\n\n const customerPasswordHashTypesLoader = this.__renderLoader<Rels.CustomerPasswordHashTypes>(1);\n const shippingAddressTypesLoader = this.__renderLoader<Rels.ShippingAddressTypes>(2);\n const timezonesLoader = this.__renderLoader<Rels.Timezones>(7);\n const countriesLoader = this.__renderLoader<Rels.Countries>(8);\n const regionsLoader = this.__renderLoader<Rels.Regions>(9);\n\n const shippingAddressTypeEntries = Object.entries(\n shippingAddressTypesLoader?.data?.values ?? {}\n );\n\n const timezones = timezonesLoader?.data?.values.timezone ?? [];\n const countries = Object.values(countriesLoader?.data?.values ?? {});\n const regions = Object.values(regionsLoader?.data?.values ?? {});\n\n const customerPasswordHashTypeEntries = Object.entries(\n customerPasswordHashTypesLoader?.data?.values ?? {}\n );\n\n const customerPasswordHashTypeOptions = customerPasswordHashTypeEntries.map(v => ({\n rawLabel: v[1].description,\n value: v[0],\n }));\n\n const shippingAddressTypeOptions = shippingAddressTypeEntries.map(([value, rawLabel]) => ({\n rawLabel,\n value,\n }));\n\n const timezoneOptions = timezones.map(t => ({ rawLabel: t.description, value: t.timezone }));\n const countryOptions = countries.map(c => ({ rawLabel: c.default, value: c.cc2 }));\n const regionOptions = regions.map(r => ({ rawLabel: r.default, value: r.code }));\n\n let regionsUrl: string | undefined;\n\n try {\n const regionsURL = new URL(this.regions ?? '');\n const country = this.form.country;\n if (country) regionsURL.searchParams.set('country_code', country);\n regionsUrl = regionsURL.toString();\n } catch {\n regionsUrl = undefined;\n }\n\n const customDisplayIdConfig = this.__getCustomDisplayIdConfig();\n const transactionJournalEntriesConfig = customDisplayIdConfig.transaction_journal_entries;\n const logDetailRequestTypes = transactionJournalEntriesConfig.log_detail_request_types;\n const displayIdExamples = this.__displayIdExamples;\n const journalIdExamples = this.__journalIdExamples;\n\n const rawWebhookKey = this.data?.webhook_key ?? '';\n const parsedWebhookKey = parseWebhookKey(rawWebhookKey);\n const cartSigningKey = parsedWebhookKey?.cart_signing ?? rawWebhookKey;\n const xmlDatafeedKey = parsedWebhookKey?.xml_datafeed ?? rawWebhookKey;\n const ssoKey = parsedWebhookKey?.sso ?? rawWebhookKey;\n\n return html`\n ${this.renderHeader()}\n\n <foxy-internal-summary-control infer=\"essentials-group-one\">\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"store-name\"\n .setValue=${this.__storeNameSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"logo-url\">\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n helper-text=${storeDomainHelperText}\n layout=\"summary-item\"\n suffix=${storeDomainSuffix}\n infer=\"store-domain\"\n .setValue=${this.__setStoreDomainValue}\n .checkValidityAsync=${this.reportingStoreDomainExists\n ? this.__checkStoreDomainAvailability\n : null}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"store-url\">\n </foxy-internal-text-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-two\">\n <foxy-internal-switch-control infer=\"is-maintenance-mode\"></foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-three\">\n <foxy-internal-editable-list-control\n layout=\"summary-item\"\n infer=\"store-email\"\n .getValue=${this.__getStoreEmailValue}\n .setValue=${this.__setStoreEmailValue}\n >\n </foxy-internal-editable-list-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-four\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"timezone\"\n .options=${timezoneOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"country\"\n .options=${countryOptions}\n >\n </foxy-internal-select-control>\n\n ${regionOptions.length > 0\n ? html`\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"region\"\n .options=${regionOptions}\n >\n </foxy-internal-select-control>\n `\n : html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"region\">\n </foxy-internal-text-control>\n `}\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"postal-code\">\n </foxy-internal-text-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"currency-style\"\n .options=${this.__currencyStyleOptions}\n .getValue=${this.__currencyStyleGetValue}\n .setValue=${this.__currencyStyleSetValue}\n >\n </foxy-internal-select-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"store-secrets\" id=\"store-secrets\">\n <foxy-internal-switch-control\n infer=\"use-single-secret\"\n .getValue=${this.__useSingleWebhookKeyGetValue}\n .setValue=${this.__useSingleWebhookKeySetValue}\n >\n </foxy-internal-switch-control>\n\n ${this.__useSingleWebhookKeyGetValue()\n ? html`\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"webhook-key\"\n show-generator\n .generatorOptions=${this.__singleWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n `\n : html`\n <foxy-internal-password-control\n json-path=\"api_legacy\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-api-legacy\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"cart_signing\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-cart-signing\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"sso\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-sso\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"xml_datafeed\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-xml-datafeed\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n `}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"emails\">\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"from-email\"\n placeholder=${this.__getStoreEmailValue()[0]?.value ??\n this.t('emails.from-email.placeholder')}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-switch-control infer=\"use-email-dns\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control\n infer=\"use-smtp-config\"\n helper-text-as-tooltip\n .getValue=${this.__getUseSmtpConfigValue}\n .setValue=${this.__setUseSmtpConfigValue}\n >\n </foxy-internal-switch-control>\n\n ${this.form.smtp_config\n ? html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"smtp-config-host\"\n .getValue=${this.__smtpConfigHostGetValue}\n .setValue=${this.__smtpConfigHostSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"smtp-config-port\"\n step=\"1\"\n min=\"0\"\n .getValue=${this.__smtpConfigPortGetValue}\n .setValue=${this.__smtpConfigPortSetValue}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"smtp-config-username\"\n .getValue=${this.__smtpConfigUsernameGetValue}\n .setValue=${this.__smtpConfigUsernameSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"smtp-config-password\"\n .getValue=${this.__smtpConfigPasswordGetValue}\n .setValue=${this.__smtpConfigPasswordSetValue}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"smtp-config-security\"\n .getValue=${this.__smtpConfigSecurityGetValue}\n .setValue=${this.__smtpConfigSecuritySetValue}\n .options=${this.__smtpConfigSecurityOptions}\n >\n </foxy-internal-select-control>\n `\n : ''}\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"send-html-email\"\n .getValue=${this.__sendHtmlEmailGetValue}\n .setValue=${this.__sendHtmlEmailSetValue}\n .options=${this.__sendHtmlEmailOptions}\n >\n </foxy-internal-select-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"shipping\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"shipping-address-type\"\n .options=${shippingAddressTypeOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-switch-control infer=\"features-multiship\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control infer=\"require-signed-shipping-rates\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"cart\">\n <foxy-internal-frequency-control\n layout=\"summary-item\"\n infer=\"app-session-time\"\n .getValue=${this.__getAppSessionTimeValue}\n .setValue=${this.__setAppSessionTimeValue}\n .options=${this.__appSessionTimeOptions}\n >\n </foxy-internal-frequency-control>\n\n <foxy-internal-switch-control\n infer=\"products-require-expires-property\"\n helper-text-as-tooltip\n >\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control infer=\"use-cart-validation\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n ${cartSigningKey && this.form.use_cart_validation\n ? this.__renderReadonlyWebhookKey('webhook-key-cart-signing', cartSigningKey)\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-type\"\n .options=${customerPasswordHashTypeOptions}\n .setValue=${(newValue: string) => {\n const entry = customerPasswordHashTypeEntries.find(([v]) => v === newValue);\n this.edit({\n customer_password_hash_type: newValue,\n customer_password_hash_config: entry?.[1].config ?? '',\n });\n }}\n >\n </foxy-internal-select-control>\n\n ${typeof this.form.customer_password_hash_config === 'number'\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-config\"\n >\n </foxy-internal-number-control>\n `\n : html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-config\"\n >\n </foxy-internal-text-control>\n `}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\" label=\"\" helper-text=\"\">\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"unified-order-entry-password\"\n show-generator\n >\n </foxy-internal-password-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\" label=\"\" helper-text=\"\">\n <foxy-internal-switch-control infer=\"use-single-sign-on\"></foxy-internal-switch-control>\n ${this.form.use_single_sign_on\n ? html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"single-sign-on-url\">\n </foxy-internal-text-control>\n ${ssoKey ? this.__renderReadonlyWebhookKey('webhook-key-sso', ssoKey) : ''}\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"receipt\">\n <foxy-internal-text-control layout=\"summary-item\" infer=\"receipt-continue-url\">\n </foxy-internal-text-control>\n <foxy-internal-switch-control infer=\"bcc-on-receipt-email\"></foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"custom-display-id-config\">\n <foxy-internal-switch-control\n infer=\"custom-display-id-config-enabled\"\n .getValue=${() => customDisplayIdConfig.enabled}\n .setValue=${(newValue: boolean) => {\n this.__setCustomDisplayIdConfig('enabled', newValue);\n }}\n >\n </foxy-internal-switch-control>\n\n ${customDisplayIdConfig.enabled\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-start\"\n step=\"1\"\n min=\"0\"\n .getValue=${() => parseInt(customDisplayIdConfig.start || '0')}\n .setValue=${(newValue: number) => {\n this.__setCustomDisplayIdConfig('start', String(newValue));\n }}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-length\"\n step=\"1\"\n min=\"0\"\n .getValue=${() => parseInt(customDisplayIdConfig.length || '0')}\n .setValue=${(newValue: number) => {\n this.__setCustomDisplayIdConfig('length', String(newValue));\n }}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-prefix\"\n .getValue=${() => customDisplayIdConfig.prefix}\n .setValue=${(newValue: string) => {\n this.__setCustomDisplayIdConfig('prefix', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-suffix\"\n .getValue=${() => customDisplayIdConfig.suffix}\n .setValue=${(newValue: string) => {\n this.__setCustomDisplayIdConfig('suffix', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <div class=\"text-right text-secondary\">\n <p class=\"flex justify-end\">\n <foxy-i18n infer=\"\" key=\"custom-display-id-config-first-example\"></foxy-i18n>\n <span style=\"font-family: monospace\"> ${displayIdExamples?.first}</span>\n </p>\n <p class=\"flex justify-end\">\n <foxy-i18n infer=\"\" key=\"custom-display-id-config-random-example\"></foxy-i18n>\n <span style=\"font-family: monospace\"> ${displayIdExamples?.random}</span>\n </p>\n </div>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control helper-text=\"\" label=\"\" infer=\"custom-display-id-config\">\n <foxy-internal-switch-control\n infer=\"custom-display-id-config-transaction-journal-entries-enabled\"\n class=\"sm-col-span-2\"\n .getValue=${() => transactionJournalEntriesConfig.enabled}\n .setValue=${(newValue: boolean) => {\n this.__setTransactionJournalEntriesConfig('enabled', newValue);\n }}\n >\n </foxy-internal-switch-control>\n\n ${transactionJournalEntriesConfig.enabled\n ? html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-authcapture-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_authcapture.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_authcapture', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-capture-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_capture.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_capture', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-void-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_void.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_void', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-refund-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_refund.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_refund', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-transaction-separator\"\n class=\"col-span-2\"\n .getValue=${() => transactionJournalEntriesConfig.transaction_separator}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesConfig('transaction_separator', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <div class=\"sm-col-span-2 leading-s text-right text-secondary\">\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-authcapture-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\"> ${journalIdExamples?.authcapture} </span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-capture-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.capture}</span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-void-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.void}</span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-refund-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.refund}</span>\n </p>\n </div>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"xml-datafeed\">\n <foxy-internal-switch-control infer=\"use-webhook\"></foxy-internal-switch-control>\n ${this.form.use_webhook\n ? html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"webhook-url\">\n </foxy-internal-text-control>\n ${xmlDatafeedKey\n ? this.__renderReadonlyWebhookKey('webhook-key-xml-datafeed', xmlDatafeedKey)\n : ''}\n `\n : ''}\n </foxy-internal-summary-control>\n\n ${this.renderTemplateOrSlot()}\n ${this.href || !this.hCaptchaSiteKey\n ? ''\n : html`\n <div class=\"text-xs text-tertiary\">\n <foxy-i18n infer=\"hcaptcha\" key=\"disclaimer\"></foxy-i18n>\n <br />\n <a\n target=\"_blank\"\n class=\"transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.hcaptcha.com/privacy\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n class=\"underline\" infer=\"hcaptcha\" key=\"privacy_policy\"></foxy-i18n>\n </a>\n <span>•</span>\n <a\n target=\"_blank\"\n class=\"transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.hcaptcha.com/terms\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n class=\"underline\" infer=\"hcaptcha\" key=\"terms_of_service\"></foxy-i18n>\n </a>\n <h-captcha\n site-key=${this.hCaptchaSiteKey}\n class=\"hidden\"\n size=\"invisible\"\n hl=${this.lang}\n @verified=${({ token }: Record<'token' | 'eKey', string>) => {\n this.__hCaptchaToken = token;\n super.submit();\n }}\n >\n </h-captcha>\n </div>\n `}\n ${super.renderBody()}\n ${customerPasswordHashTypesLoader.render(this.customerPasswordHashTypes)}\n ${shippingAddressTypesLoader.render(this.shippingAddressTypes)}\n ${timezonesLoader.render(this.timezones)} ${countriesLoader.render(this.countries)}\n ${regionsLoader.render(regionsUrl)}\n `;\n }\n\n submit(): void {\n if (!this.href && this.hCaptchaSiteKey) {\n this.__hCaptcha?.reset();\n this.__hCaptcha?.execute();\n } else {\n super.submit();\n }\n }\n\n protected async _fetch<TResult = Data>(...args: Parameters<Window['fetch']>): Promise<TResult> {\n try {\n const request = new StoreForm.API.WHATWGRequest(...args);\n if (this.__hCaptchaToken) request.headers.set('h-captcha-code', this.__hCaptchaToken);\n return await super._fetch(request);\n } catch (err) {\n let errorText;\n\n try {\n errorText = await (err as Response).text();\n } catch {\n throw err;\n }\n\n if (\n errorText.includes('store_domain is invalid because it has a reserved format') ||\n errorText.includes('store_domain can not end with')\n ) {\n throw ['error:store_domain_reserved'];\n }\n\n if (errorText.includes('store_domain is already in use')) {\n throw ['error:store_domain_exists'];\n }\n\n throw err;\n }\n }\n\n private get __displayIdExamples() {\n const config = this.__getCustomDisplayIdConfig();\n const startAsInt = parseInt(config.start || '0');\n const lengthAsInt = parseInt(config.length || '0');\n const randomExampleNumericId = Math.min(\n startAsInt + Math.floor(Math.random() * Math.pow(10, lengthAsInt)),\n Math.pow(10, lengthAsInt) - 1\n );\n\n if (config.start && config.length && startAsInt / 10 <= lengthAsInt) {\n return {\n first: `${config.prefix}${startAsInt.toString().padStart(lengthAsInt, '0')}${\n config.suffix\n }`,\n random: `${config.prefix}${randomExampleNumericId.toString().padStart(lengthAsInt, '0')}${\n config.suffix\n }`,\n };\n }\n }\n\n private get __journalIdExamples() {\n const customDisplayIdConfig = this.__getCustomDisplayIdConfig();\n const transactionJournalEntriesConfig = customDisplayIdConfig.transaction_journal_entries;\n const startAsInt = parseInt(customDisplayIdConfig.start || '0');\n const lengthAsInt = parseInt(customDisplayIdConfig.length || '0');\n const randomExampleNumericId = Math.min(\n startAsInt + Math.floor(Math.random() * Math.pow(10, lengthAsInt)),\n Math.pow(10, lengthAsInt) - 1\n );\n\n const randomExampleId = `${customDisplayIdConfig.prefix}${randomExampleNumericId\n .toString()\n .padStart(lengthAsInt, '0')}${customDisplayIdConfig.suffix}`;\n\n const randomNumericEntryId = Math.floor(Math.random() * 1000);\n const randomEntryId = String(randomNumericEntryId).padStart(3, '0');\n\n if (\n customDisplayIdConfig.start &&\n customDisplayIdConfig.length &&\n startAsInt / 10 <= lengthAsInt\n ) {\n return {\n authcapture: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_authcapture.prefix}${randomEntryId}`,\n capture: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_capture.prefix}${randomEntryId}`,\n refund: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_refund.prefix}${randomEntryId}`,\n void: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_void.prefix}${randomEntryId}`,\n };\n }\n }\n\n private get __hCaptcha() {\n return this.renderRoot.querySelector<VanillaHCaptchaWebComponent>('h-captcha');\n }\n\n private __getCustomDisplayIdConfig() {\n const defaultConfig: ParsedCustomDisplayIdConfig = {\n enabled: false,\n start: '0',\n length: '0',\n prefix: '',\n suffix: '',\n transaction_journal_entries: {\n enabled: false,\n transaction_separator: '',\n log_detail_request_types: {\n transaction_authcapture: { prefix: '' },\n transaction_capture: { prefix: '' },\n transaction_refund: { prefix: '' },\n transaction_void: { prefix: '' },\n },\n },\n };\n\n return merge(defaultConfig, this.form.custom_display_id_config || void 0);\n }\n\n private __setCustomDisplayIdConfig<TKey extends keyof ParsedCustomDisplayIdConfig>(\n key: TKey,\n value: ParsedCustomDisplayIdConfig[TKey]\n ) {\n const currentConfig = this.__getCustomDisplayIdConfig();\n currentConfig[key] = value;\n this.edit({ custom_display_id_config: currentConfig });\n }\n\n private __getTransactionJournalEntriesConfig() {\n return this.__getCustomDisplayIdConfig().transaction_journal_entries;\n }\n\n private __setTransactionJournalEntriesConfig<\n TKey extends keyof ParsedCustomDisplayIdConfig['transaction_journal_entries']\n >(key: TKey, value: ParsedCustomDisplayIdConfig['transaction_journal_entries'][TKey]) {\n const config = this.__getCustomDisplayIdConfig().transaction_journal_entries;\n config[key] = value;\n this.__setCustomDisplayIdConfig('transaction_journal_entries', config);\n }\n\n private __setTransactionJournalEntriesPrefix(\n key: keyof ParsedCustomDisplayIdConfig['transaction_journal_entries']['log_detail_request_types'],\n value: string\n ) {\n const config = this.__getTransactionJournalEntriesConfig();\n config.log_detail_request_types[key].prefix = value;\n this.__setTransactionJournalEntriesConfig(\n 'log_detail_request_types',\n config.log_detail_request_types\n );\n }\n\n private __getSmtpConfig() {\n let config: ParsedSmtpConfig;\n\n try {\n config = JSON.parse(this.form.smtp_config ?? '');\n } catch {\n config = {\n username: '',\n password: '',\n security: '',\n host: '',\n port: '',\n };\n }\n\n return config;\n }\n\n private __setSmtpConfig<TKey extends keyof ParsedSmtpConfig>(\n key: TKey,\n value: ParsedSmtpConfig[TKey]\n ) {\n const config = this.__getSmtpConfig();\n config[key] = value;\n this.edit({ smtp_config: JSON.stringify(config) });\n }\n\n private __renderLoader<T extends Graph & { links: { self: unknown } }>(index: number) {\n const id = `loader-${index}`;\n return {\n data: this.renderRoot.querySelector<NucleonElement<Resource<T>>>(`#${id}`)?.data,\n render: (href?: string | null) => html`\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(href ?? undefined)}\n id=${id}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n `,\n };\n }\n\n private __renderReadonlyWebhookKey(scope: string, key: string) {\n return html`\n <div class=\"leading-xs\">\n <div class=\"flex items-center gap-s\">\n <p class=\"flex-1\">\n <foxy-i18n infer=${scope} key=\"label\"></foxy-i18n>\n </p>\n <p class=\"text-tertiary\">${'*'.repeat(8)}${key.substr(-4)}</p>\n <foxy-copy-to-clipboard\n layout=\"complete\"\n infer=\"${scope} copy-to-clipboard\"\n theme=\"contrast tertiary-inline\"\n text=${key}\n >\n </foxy-copy-to-clipboard>\n </div>\n <p class=\"text-xs text-secondary\">\n <foxy-i18n infer=${scope} key=\"helper_text\"></foxy-i18n>\n <a\n class=\"text-body font-medium rounded-s hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=${this.storeSecretsPageUrl ?? '#store-secrets'}\n >\n <foxy-i18n infer=${scope} key=\"link_text\"></foxy-i18n>\n </a>\n </p>\n </div>\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { PropertyDeclarations } from 'lit-element';
|
|
2
|
+
import type { TemplateResult } from 'lit-html';
|
|
3
|
+
import type { Data } from './types';
|
|
4
|
+
import { InternalCard } from '../../internal/InternalCard/InternalCard';
|
|
5
|
+
declare const Base: typeof InternalCard & import("lit-element").Constructor<import("../../../mixins/translatable").TranslatableMixinHost> & {
|
|
6
|
+
defaultNS: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Card element representing a `fx:store_transaction_folder` resource.
|
|
10
|
+
*
|
|
11
|
+
* @element foxy-store-transaction-folder-card
|
|
12
|
+
* @since 1.46.0
|
|
13
|
+
*/
|
|
14
|
+
export declare class StoreTransactionFolderCard extends Base<Data> {
|
|
15
|
+
static readonly countRefreshInterval: number;
|
|
16
|
+
static get properties(): PropertyDeclarations;
|
|
17
|
+
getCountLoaderURL: ((defaultValue: URL) => URL) | null;
|
|
18
|
+
private readonly __countLoaderId;
|
|
19
|
+
private readonly __storeLoaderId;
|
|
20
|
+
private __refreshTimeout;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
updated(changes: Map<keyof this, unknown>): void;
|
|
23
|
+
render(): TemplateResult;
|
|
24
|
+
private __getCountLoader;
|
|
25
|
+
private __getStoreLoader;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
2
|
+
import { getResourceId } from '@foxy.io/sdk/core';
|
|
3
|
+
import { InternalCard } from "../../internal/InternalCard/InternalCard.js";
|
|
4
|
+
import { ifDefined } from 'lit-html/directives/if-defined';
|
|
5
|
+
import { html, svg } from 'lit-html';
|
|
6
|
+
import { classMap } from "../../../utils/class-map.js";
|
|
7
|
+
const NS = 'store-transaction-folder-card';
|
|
8
|
+
const Base = TranslatableMixin(InternalCard, NS);
|
|
9
|
+
/**
|
|
10
|
+
* Card element representing a `fx:store_transaction_folder` resource.
|
|
11
|
+
*
|
|
12
|
+
* @element foxy-store-transaction-folder-card
|
|
13
|
+
* @since 1.46.0
|
|
14
|
+
*/
|
|
15
|
+
export class StoreTransactionFolderCard extends Base {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.getCountLoaderURL = null;
|
|
19
|
+
this.__countLoaderId = 'countLoader';
|
|
20
|
+
this.__storeLoaderId = 'storeLoader';
|
|
21
|
+
this.__refreshTimeout = null;
|
|
22
|
+
}
|
|
23
|
+
static get properties() {
|
|
24
|
+
return {
|
|
25
|
+
...super.properties,
|
|
26
|
+
getCountLoaderURL: { attribute: false },
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
super.disconnectedCallback();
|
|
31
|
+
if (typeof this.__refreshTimeout === 'number')
|
|
32
|
+
clearTimeout(this.__refreshTimeout);
|
|
33
|
+
}
|
|
34
|
+
updated(changes) {
|
|
35
|
+
super.updated(changes);
|
|
36
|
+
if (typeof this.__refreshTimeout !== 'number') {
|
|
37
|
+
const constructor = this.constructor;
|
|
38
|
+
const interval = constructor.countRefreshInterval;
|
|
39
|
+
this.__refreshTimeout = setTimeout(() => { var _a; return (_a = this.__getCountLoader()) === null || _a === void 0 ? void 0 : _a.refresh(); }, interval);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
44
|
+
const count = (_b = (_a = this.__getCountLoader()) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.total_items;
|
|
45
|
+
const store = (_c = this.__getStoreLoader()) === null || _c === void 0 ? void 0 : _c.data;
|
|
46
|
+
let countUrl;
|
|
47
|
+
try {
|
|
48
|
+
if (this.data && store) {
|
|
49
|
+
countUrl = new URL(store._links['fx:transactions'].href);
|
|
50
|
+
countUrl.searchParams.set('folder_id', String(getResourceId(this.data._links.self.href)));
|
|
51
|
+
countUrl.searchParams.set('limit', '1');
|
|
52
|
+
countUrl = (_e = (_d = this.getCountLoaderURL) === null || _d === void 0 ? void 0 : _d.call(this, countUrl)) !== null && _e !== void 0 ? _e : countUrl;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (_h) {
|
|
56
|
+
countUrl = undefined;
|
|
57
|
+
}
|
|
58
|
+
const colors = {
|
|
59
|
+
'red': 'text-folder-red',
|
|
60
|
+
'red_pale': 'text-folder-red-pale',
|
|
61
|
+
'green': 'text-folder-green',
|
|
62
|
+
'green_pale': 'text-folder-green-pale',
|
|
63
|
+
'blue': 'text-folder-blue',
|
|
64
|
+
'blue_pale': 'text-folder-blue-pale',
|
|
65
|
+
'orange': 'text-folder-orange',
|
|
66
|
+
'orange_pale': 'text-folder-orange-pale',
|
|
67
|
+
'violet': 'text-folder-violet',
|
|
68
|
+
'violet_pale': 'text-folder-violet-pale',
|
|
69
|
+
'': 'text-body',
|
|
70
|
+
};
|
|
71
|
+
const currentColor = this.form.color && this.form.color in colors ? this.form.color : '';
|
|
72
|
+
return html `
|
|
73
|
+
<foxy-nucleon
|
|
74
|
+
infer=""
|
|
75
|
+
href=${ifDefined((_f = this.data) === null || _f === void 0 ? void 0 : _f._links['fx:store'].href)}
|
|
76
|
+
id=${this.__storeLoaderId}
|
|
77
|
+
@update=${() => this.requestUpdate()}
|
|
78
|
+
>
|
|
79
|
+
</foxy-nucleon>
|
|
80
|
+
|
|
81
|
+
<foxy-nucleon
|
|
82
|
+
infer=""
|
|
83
|
+
href=${ifDefined(countUrl === null || countUrl === void 0 ? void 0 : countUrl.toString())}
|
|
84
|
+
id=${this.__countLoaderId}
|
|
85
|
+
@update=${() => this.requestUpdate()}
|
|
86
|
+
>
|
|
87
|
+
</foxy-nucleon>
|
|
88
|
+
|
|
89
|
+
<div
|
|
90
|
+
class=${classMap({
|
|
91
|
+
'transition-colors flex items-center gap-s font-medium text-m leading-s rounded-s': true,
|
|
92
|
+
'bg-contrast-5': !this.in('fail') && !this.data,
|
|
93
|
+
'bg-error-10': this.in('fail'),
|
|
94
|
+
})}
|
|
95
|
+
>
|
|
96
|
+
<span
|
|
97
|
+
class=${classMap({
|
|
98
|
+
'transition-opacity': true,
|
|
99
|
+
'opacity-0': !this.data,
|
|
100
|
+
[colors[currentColor]]: true,
|
|
101
|
+
})}
|
|
102
|
+
>
|
|
103
|
+
${svg `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" style="width: 1em; height: 1em;"><path d="M2 3.5A1.5 1.5 0 0 1 3.5 2h2.879a1.5 1.5 0 0 1 1.06.44l1.122 1.12A1.5 1.5 0 0 0 9.62 4H12.5A1.5 1.5 0 0 1 14 5.5v1.401a2.986 2.986 0 0 0-1.5-.401h-9c-.546 0-1.059.146-1.5.401V3.5ZM2 9.5v3A1.5 1.5 0 0 0 3.5 14h9a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 12.5 8h-9A1.5 1.5 0 0 0 2 9.5Z" /></svg>`}
|
|
104
|
+
</span>
|
|
105
|
+
|
|
106
|
+
<span
|
|
107
|
+
class=${classMap({
|
|
108
|
+
'transition-opacity truncate min-w-0': true,
|
|
109
|
+
'opacity-0': !this.data,
|
|
110
|
+
})}
|
|
111
|
+
>
|
|
112
|
+
${((_g = this.data) === null || _g === void 0 ? void 0 : _g.name) || html `<foxy-i18n infer="" key="no_name"></foxy-i18n>`}
|
|
113
|
+
</span>
|
|
114
|
+
|
|
115
|
+
<span
|
|
116
|
+
class=${classMap({
|
|
117
|
+
'transition-opacity bg-contrast-5 px-xs rounded text-xs': true,
|
|
118
|
+
'opacity-0': !this.data || typeof count !== 'number',
|
|
119
|
+
})}
|
|
120
|
+
>
|
|
121
|
+
${count !== null && count !== void 0 ? count : 0}
|
|
122
|
+
</span>
|
|
123
|
+
</div>
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
__getCountLoader() {
|
|
127
|
+
return this.renderRoot.querySelector(`#${this.__countLoaderId}`);
|
|
128
|
+
}
|
|
129
|
+
__getStoreLoader() {
|
|
130
|
+
return this.renderRoot.querySelector(`#${this.__storeLoaderId}`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
StoreTransactionFolderCard.countRefreshInterval = 600000;
|
|
134
|
+
//# sourceMappingURL=StoreTransactionFolderCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreTransactionFolderCard.js","sourceRoot":"","sources":["../../../../src/elements/public/StoreTransactionFolderCard/StoreTransactionFolderCard.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,oDAAiD;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAEpD,MAAM,EAAE,GAAG,+BAA+B,CAAC;AAC3C,MAAM,IAAI,GAAG,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,OAAO,0BAA2B,SAAQ,IAAU;IAA1D;;QAUE,sBAAiB,GAAwC,IAAI,CAAC;QAE7C,oBAAe,GAAG,aAAa,CAAC;QAEhC,oBAAe,GAAG,aAAa,CAAC;QAEzC,qBAAgB,GAA0B,IAAI,CAAC;IAiHzD,CAAC;IA9HC,MAAM,KAAK,UAAU;QACnB,OAAO;YACL,GAAG,KAAK,CAAC,UAAU;YACnB,iBAAiB,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;SACxC,CAAC;IACJ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,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI;SAC7B,CAAC;;YAEA,GAAG,CAAA,8ZAA8Z;;;;kBAI3Z,QAAQ,CAAC;YACf,qCAAqC,EAAE,IAAI;YAC3C,WAAW,EAAE,CAAC,IAAI,CAAC,IAAI;SACxB,CAAC;;YAEA,OAAA,IAAI,CAAC,IAAI,0CAAE,IAAI,KAAI,IAAI,CAAA,gDAAgD;;;;kBAIjE,QAAQ,CAAC;YACf,wDAAwD,EAAE,IAAI;YAC9D,WAAW,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;SACrD,CAAC;;YAEA,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC;;;KAGjB,CAAC;IACJ,CAAC;IAEO,gBAAgB;QAGtB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAS,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;IAC3E,CAAC;IAEO,gBAAgB;QAEtB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAS,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;IAC3E,CAAC;;AA/He,+CAAoB,GAAW,MAAM,CAAC","sourcesContent":["import type { PropertyDeclarations } from 'lit-element';\nimport type { NucleonElement } from '../NucleonElement/NucleonElement';\nimport type { TemplateResult } from 'lit-html';\nimport type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\nimport type { Data } from './types';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { getResourceId } from '@foxy.io/sdk/core';\nimport { InternalCard } from '../../internal/InternalCard/InternalCard';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { html, svg } from 'lit-html';\nimport { classMap } from '../../../utils/class-map';\n\nconst NS = 'store-transaction-folder-card';\nconst Base = TranslatableMixin(InternalCard, NS);\n\n/**\n * Card element representing a `fx:store_transaction_folder` resource.\n *\n * @element foxy-store-transaction-folder-card\n * @since 1.46.0\n */\nexport class StoreTransactionFolderCard extends Base<Data> {\n static readonly countRefreshInterval: number = 600000;\n\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n getCountLoaderURL: { attribute: false },\n };\n }\n\n getCountLoaderURL: ((defaultValue: URL) => URL) | null = null;\n\n private readonly __countLoaderId = 'countLoader';\n\n private readonly __storeLoaderId = 'storeLoader';\n\n private __refreshTimeout: NodeJS.Timeout | null = null;\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n if (typeof this.__refreshTimeout === 'number') clearTimeout(this.__refreshTimeout);\n }\n\n updated(changes: Map<keyof this, unknown>): void {\n super.updated(changes);\n if (typeof this.__refreshTimeout !== 'number') {\n const constructor = this.constructor as typeof StoreTransactionFolderCard;\n const interval = constructor.countRefreshInterval;\n this.__refreshTimeout = setTimeout(() => this.__getCountLoader()?.refresh(), interval);\n }\n }\n\n render(): TemplateResult {\n const count = this.__getCountLoader()?.data?.total_items;\n const store = this.__getStoreLoader()?.data;\n let countUrl: URL | undefined;\n\n try {\n if (this.data && store) {\n countUrl = new URL(store._links['fx:transactions'].href);\n countUrl.searchParams.set('folder_id', String(getResourceId(this.data._links.self.href)));\n countUrl.searchParams.set('limit', '1');\n countUrl = this.getCountLoaderURL?.(countUrl) ?? countUrl;\n }\n } catch {\n countUrl = undefined;\n }\n\n const colors: Record<string, string> = {\n 'red': 'text-folder-red',\n 'red_pale': 'text-folder-red-pale',\n 'green': 'text-folder-green',\n 'green_pale': 'text-folder-green-pale',\n 'blue': 'text-folder-blue',\n 'blue_pale': 'text-folder-blue-pale',\n 'orange': 'text-folder-orange',\n 'orange_pale': 'text-folder-orange-pale',\n 'violet': 'text-folder-violet',\n 'violet_pale': 'text-folder-violet-pale',\n '': 'text-body',\n };\n\n const currentColor = this.form.color && this.form.color in colors ? this.form.color : '';\n\n return html`\n <foxy-nucleon\n infer=\"\"\n href=${ifDefined(this.data?._links['fx:store'].href)}\n id=${this.__storeLoaderId}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n\n <foxy-nucleon\n infer=\"\"\n href=${ifDefined(countUrl?.toString())}\n id=${this.__countLoaderId}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n\n <div\n class=${classMap({\n 'transition-colors flex items-center gap-s font-medium text-m leading-s rounded-s': true,\n 'bg-contrast-5': !this.in('fail') && !this.data,\n 'bg-error-10': this.in('fail'),\n })}\n >\n <span\n class=${classMap({\n 'transition-opacity': true,\n 'opacity-0': !this.data,\n [colors[currentColor]]: true,\n })}\n >\n ${svg`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" style=\"width: 1em; height: 1em;\"><path d=\"M2 3.5A1.5 1.5 0 0 1 3.5 2h2.879a1.5 1.5 0 0 1 1.06.44l1.122 1.12A1.5 1.5 0 0 0 9.62 4H12.5A1.5 1.5 0 0 1 14 5.5v1.401a2.986 2.986 0 0 0-1.5-.401h-9c-.546 0-1.059.146-1.5.401V3.5ZM2 9.5v3A1.5 1.5 0 0 0 3.5 14h9a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 12.5 8h-9A1.5 1.5 0 0 0 2 9.5Z\" /></svg>`}\n </span>\n\n <span\n class=${classMap({\n 'transition-opacity truncate min-w-0': true,\n 'opacity-0': !this.data,\n })}\n >\n ${this.data?.name || html`<foxy-i18n infer=\"\" key=\"no_name\"></foxy-i18n>`}\n </span>\n\n <span\n class=${classMap({\n 'transition-opacity bg-contrast-5 px-xs rounded text-xs': true,\n 'opacity-0': !this.data || typeof count !== 'number',\n })}\n >\n ${count ?? 0}\n </span>\n </div>\n `;\n }\n\n private __getCountLoader() {\n type AnyCollection = NucleonElement<Resource<Rels.Attributes>>;\n type Loader = Omit<AnyCollection, '_embedded'> & { _embedded: unknown };\n return this.renderRoot.querySelector<Loader>(`#${this.__countLoaderId}`);\n }\n\n private __getStoreLoader() {\n type Loader = NucleonElement<Resource<Rels.Store>>;\n return this.renderRoot.querySelector<Loader>(`#${this.__storeLoaderId}`);\n }\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../internal/InternalCard/index.js";
|
|
2
|
+
import "../NucleonElement/index.js";
|
|
3
|
+
import "../I18n/index.js";
|
|
4
|
+
import { StoreTransactionFolderCard } from "./StoreTransactionFolderCard.js";
|
|
5
|
+
customElements.define('foxy-store-transaction-folder-card', StoreTransactionFolderCard);
|
|
6
|
+
export { StoreTransactionFolderCard };
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/StoreTransactionFolderCard/index.ts"],"names":[],"mappings":"AAAA,8CAA2C;AAE3C,oCAAiC;AACjC,0BAAuB;AAEvB,OAAO,EAAE,0BAA0B,EAAE,wCAAqC;AAE1E,cAAc,CAAC,MAAM,CAAC,oCAAoC,EAAE,0BAA0B,CAAC,CAAC;AAExF,OAAO,EAAE,0BAA0B,EAAE,CAAC","sourcesContent":["import '../../internal/InternalCard/index';\n\nimport '../NucleonElement/index';\nimport '../I18n/index';\n\nimport { StoreTransactionFolderCard } from './StoreTransactionFolderCard';\n\ncustomElements.define('foxy-store-transaction-folder-card', StoreTransactionFolderCard);\n\nexport { StoreTransactionFolderCard };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/StoreTransactionFolderCard/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nexport type Data = Resource<Rels.StoreTransactionFolder>;\n"]}
|