@billgangcom/theme-lib 1.110.4 → 1.110.6
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/{builder-4Ke7cjNO.cjs → builder-B7hjBRYI.cjs} +2 -2
- package/dist/{builder-CtBMhTyK.js → builder-D_zv5ue0.js} +5 -5
- package/dist/{builder-components-Dz2YlUqA.cjs → builder-components-BjoFBErH.cjs} +1 -1
- package/dist/{builder-components-Bm7ta9iB.js → builder-components-DN-mNdj8.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +293 -6
- package/dist/{charge-C5z1ecd1.cjs → charge-BAP3iPAM.cjs} +1 -1
- package/dist/{charge-APYiCYYq.js → charge-BQUHzEju.js} +6 -6
- package/dist/{checkout-Bher7FGW.cjs → checkout-CUct7uCm.cjs} +1 -1
- package/dist/{checkout-D3Mpwqsj.js → checkout-uzxtu1pZ.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-DgsmVqD7.cjs → index-BBMTjm8A.cjs} +1 -1
- package/dist/{index-Da1yGZge.js → index-BJMeFohP.js} +1 -1
- package/dist/{index-B1QfR20x.cjs → index-BXhAWCRX.cjs} +1 -1
- package/dist/{index-mEkddX3U.cjs → index-CEMbDy4G.cjs} +1 -1
- package/dist/{index-BAFG_paG.js → index-CMECtXvH.js} +5 -5
- package/dist/{index-C8snA9wm.js → index-CX1FV9wS.js} +5 -5
- package/dist/{index-BMaA9qqZ.cjs → index-Cbqz9kIG.cjs} +1 -1
- package/dist/{index-kt3o_lGR.js → index-CzkkQ8sH.js} +5 -5
- package/dist/{index-Crr7n_oM.cjs → index-R_FZBtaZ.cjs} +1 -1
- package/dist/{index-DjOTY2Jm.js → index-hCDY-ip7.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.es.js +16 -16
- package/dist/{order-BDiqGe6L.cjs → order-BOaO9a-C.cjs} +1 -1
- package/dist/{order-DLMk34KA.js → order-CdPcB1OE.js} +5 -5
- package/dist/src/App.d.ts +18 -0
- package/dist/src/abstractions/IBlock.d.ts +14 -0
- package/dist/src/abstractions/ISettings.d.ts +3 -0
- package/dist/src/abstractions/PageContext.d.ts +121 -0
- package/dist/src/abstractions/Variable.d.ts +28 -0
- package/dist/src/abstractions/color-variables.d.ts +48 -0
- package/dist/src/abstractions/index.d.ts +4 -0
- package/dist/src/api/constants.d.ts +8 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/api/request.d.ts +17 -0
- package/dist/src/assets/icon-registry/IconRegistry.d.ts +22 -0
- package/dist/src/assets/icon-registry/libraryIcons.d.ts +1 -0
- package/dist/src/assets/storefront-icons/index.d.ts +23 -0
- package/dist/src/builder/api/fetchAll.d.ts +1 -0
- package/dist/src/builder/api/fetchData.d.ts +14 -0
- package/dist/src/builder/api/fetchFontsData.d.ts +1 -0
- package/dist/src/builder/api/fetchPagesData.d.ts +1 -0
- package/dist/src/builder/api/index.d.ts +4 -0
- package/dist/src/builder/components/AddSections/index.d.ts +5 -0
- package/dist/src/builder/components/AddSections/utils/index.d.ts +5 -0
- package/dist/src/builder/components/AddSectionsBlock/index.d.ts +7 -0
- package/dist/src/builder/components/BlockColors/index.d.ts +7 -0
- package/dist/src/builder/components/BlockSettings/index.d.ts +2 -0
- package/dist/src/builder/components/BlockSettings/settings.d.ts +7 -0
- package/dist/src/builder/components/BlockSettingsHeader/index.d.ts +8 -0
- package/dist/src/builder/components/ExitButton/index.d.ts +5 -0
- package/dist/src/builder/components/Header/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderButtons/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderDevices/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderPreviewButton/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSaveButton/api/index.d.ts +2 -0
- package/dist/src/builder/components/HeaderSaveButton/index.d.ts +7 -0
- package/dist/src/builder/components/HeaderSaveButton/utils/index.d.ts +6 -0
- package/dist/src/builder/components/HeaderSettings/index.d.ts +4 -0
- package/dist/src/builder/components/HeaderSettingsLanguage/index.d.ts +4 -0
- package/dist/src/builder/components/HeaderSettingsPages/api/index.d.ts +1 -0
- package/dist/src/builder/components/HeaderSettingsPages/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSettingsZoom/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSwitchTheme/index.d.ts +4 -0
- package/dist/src/builder/components/ModifyPage/index.d.ts +5 -0
- package/dist/src/builder/components/Navbar/index.d.ts +1 -0
- package/dist/src/builder/components/Preview/index.d.ts +2 -0
- package/dist/src/builder/components/PreviewBlockSidebar/index.d.ts +2 -0
- package/dist/src/builder/components/PreviewContent/index.d.ts +6 -0
- package/dist/src/builder/components/PreviewHeader/index.d.ts +2 -0
- package/dist/src/builder/components/Sidebar/index.d.ts +4 -0
- package/dist/src/builder/components/SidebarLayer/index.d.ts +7 -0
- package/dist/src/builder/components/SidebarLayers/index.d.ts +10 -0
- package/dist/src/builder/components/SidebarSettings/index.d.ts +2 -0
- package/dist/src/builder/components/SidebarTheme/index.d.ts +4 -0
- package/dist/src/builder/components/ThemeSettings/index.d.ts +4 -0
- package/dist/src/builder/components/ThemeSettingsBorders/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsButtons/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCategories/index.d.ts +1 -0
- package/dist/src/builder/components/ThemeSettingsColors/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +2 -0
- package/dist/src/builder/components/ThemeSettingsColors/utils/index.d.ts +1 -0
- package/dist/src/builder/components/ThemeSettingsCurrentColors/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCurrentColors/tip.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCurrentFont/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsFonts/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsHeaderItem/index.d.ts +7 -0
- package/dist/src/builder/components/ThemeSettingsInputs/index.d.ts +5 -0
- package/dist/src/builder/constants/block-icons.d.ts +18 -0
- package/dist/src/builder/index.d.ts +10 -0
- package/dist/src/builder/layout.d.ts +5 -0
- package/dist/src/builder/store/index.d.ts +6 -0
- package/dist/src/builder/store/useColorPickerStore.d.ts +53 -0
- package/dist/src/builder/store/useDeviceStore.d.ts +7 -0
- package/dist/src/builder/store/useFontsStore.d.ts +20 -0
- package/dist/src/builder/store/useLayoutStore.d.ts +7 -0
- package/dist/src/builder/store/useSubmodalStore.d.ts +21 -0
- package/dist/src/builder/store/useTooltipStore.d.ts +6 -0
- package/dist/src/builder/ui/AnimatedPanel/index.d.ts +7 -0
- package/dist/src/builder/ui/ColorPicker/index.d.ts +11 -0
- package/dist/src/builder/ui/ColorPicker/modal.d.ts +2 -0
- package/dist/src/builder/ui/Loader/index.d.ts +1 -0
- package/dist/src/builder/ui/Notification/index.d.ts +13 -0
- package/dist/src/builder/ui/Picker/index.d.ts +9 -0
- package/dist/src/builder/ui/Radio/index.d.ts +13 -0
- package/dist/src/builder/ui/Submodal/index.d.ts +10 -0
- package/dist/src/builder/ui/Tooltip/index.d.ts +6 -0
- package/dist/src/builder/utils/formatLabel.d.ts +1 -0
- package/dist/src/builder/utils/getDisplayName.d.ts +1 -0
- package/dist/src/builder/utils/getModalPosition.d.ts +4 -0
- package/dist/src/builder/utils/index.d.ts +3 -0
- package/dist/src/components/lazy-pages.d.ts +22 -0
- package/dist/src/constants/aspectRatio.d.ts +11 -0
- package/dist/src/constants/blocks.d.ts +79 -0
- package/dist/src/constants/color-variables.d.ts +48 -0
- package/dist/src/constants/device.d.ts +6 -0
- package/dist/src/constants/font.d.ts +3 -0
- package/dist/src/constants/icon.d.ts +2 -0
- package/dist/src/constants/index.d.ts +13 -0
- package/dist/src/constants/local-host.d.ts +1 -0
- package/dist/src/constants/navbar.d.ts +8 -0
- package/dist/src/constants/notification.d.ts +16 -0
- package/dist/src/constants/pages.d.ts +22 -0
- package/dist/src/constants/radius-variables.d.ts +15 -0
- package/dist/src/constants/text-font-keys.d.ts +3 -0
- package/dist/src/constants/theme-settings.d.ts +154 -0
- package/dist/src/exports.d.ts +17 -0
- package/dist/src/hooks/useIconRegistration.d.ts +37 -0
- package/dist/src/lib/createTicket.d.ts +1 -0
- package/dist/src/lib/generateDynamicStyles.d.ts +2 -0
- package/dist/src/lib/getDynamicRoutes.d.ts +1 -0
- package/dist/src/lib/hotReload.d.ts +1 -0
- package/dist/src/lib/index.d.ts +9 -0
- package/dist/src/lib/injectStylesToDOM.d.ts +1 -0
- package/dist/src/lib/loadCustomFonts.d.ts +1 -0
- package/dist/src/lib/setupDynamicFonts.d.ts +2 -0
- package/dist/src/lib/splitTextIntoSpans.d.ts +1 -0
- package/dist/src/lib/useBuilderPages.d.ts +1 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/pages/active-page/index.d.ts +5 -0
- package/dist/src/pages/balance/balance-modal.d.ts +6 -0
- package/dist/src/pages/balance/index.d.ts +1 -0
- package/dist/src/pages/balance/model.d.ts +6 -0
- package/dist/src/pages/builder/index.d.ts +12 -0
- package/dist/src/pages/builder/utils/index.d.ts +1 -0
- package/dist/src/pages/charge/index.d.ts +1 -0
- package/dist/src/pages/checkout/index.d.ts +2 -0
- package/dist/src/pages/checkout/model.d.ts +1 -0
- package/dist/src/pages/dynamic-error-page/index.d.ts +2 -0
- package/dist/src/pages/dynamic-page/api/index.d.ts +1 -0
- package/dist/src/pages/dynamic-page/index.d.ts +6 -0
- package/dist/src/pages/error-page/api/index.d.ts +7 -0
- package/dist/src/pages/error-page/index.d.ts +1 -0
- package/dist/src/pages/home/index.d.ts +6 -0
- package/dist/src/pages/home/model.d.ts +26 -0
- package/dist/src/pages/maintenance/index.d.ts +2 -0
- package/dist/src/pages/not-found-page/index.d.ts +2 -0
- package/dist/src/pages/order/index.d.ts +1 -0
- package/dist/src/pages/order/model.d.ts +92 -0
- package/dist/src/pages/orders/index.d.ts +1 -0
- package/dist/src/pages/orders/model.d.ts +4 -0
- package/dist/src/pages/rewards/index.d.ts +6 -0
- package/dist/src/pages/router-error-page/index.d.ts +3 -0
- package/dist/src/pages/subscription/index.d.ts +1 -0
- package/dist/src/pages/subscription/model.d.ts +1 -0
- package/dist/src/pages/subscriptions/index.d.ts +1 -0
- package/dist/src/pages/subscriptions/model.d.ts +6 -0
- package/dist/src/pages/ticket/index.d.ts +1 -0
- package/dist/src/pages/ticket/model.d.ts +24 -0
- package/dist/src/pages/tickets/index.d.ts +1 -0
- package/dist/src/pages/tickets/model.d.ts +21 -0
- package/dist/src/pages/top-up-balance/index.d.ts +1 -0
- package/dist/src/pages/validation/index.d.ts +5 -0
- package/dist/src/pages/wrapper-page/index.d.ts +2 -0
- package/dist/src/shared/constants/aspect-ratio.d.ts +11 -0
- package/dist/src/shared/constants/color-variables.d.ts +48 -0
- package/dist/src/shared/constants/icon.d.ts +2 -0
- package/dist/src/shared/constants/index.d.ts +5 -0
- package/dist/src/shared/constants/notification.d.ts +16 -0
- package/dist/src/shared/constants/text-font-keys.d.ts +3 -0
- package/dist/src/storefront/api/auth.d.ts +22 -0
- package/dist/src/storefront/api/charge.d.ts +1 -0
- package/dist/src/storefront/api/coupon.d.ts +2 -0
- package/dist/src/storefront/api/customer.d.ts +6 -0
- package/dist/src/storefront/api/discord.d.ts +8 -0
- package/dist/src/storefront/api/fetchGatewaysDetail.d.ts +1 -0
- package/dist/src/storefront/api/fetchGeneral.d.ts +1 -0
- package/dist/src/storefront/api/fetchThemeAndSettings.d.ts +1 -0
- package/dist/src/storefront/api/fetchWithPages.d.ts +11 -0
- package/dist/src/storefront/api/index.d.ts +19 -0
- package/dist/src/storefront/api/order.d.ts +14 -0
- package/dist/src/storefront/api/postBalanceTopUp.d.ts +2 -0
- package/dist/src/storefront/api/postCashappLink.d.ts +3 -0
- package/dist/src/storefront/api/referral.d.ts +3 -0
- package/dist/src/storefront/api/reviews.d.ts +2 -0
- package/dist/src/storefront/api/rewards.d.ts +2 -0
- package/dist/src/storefront/api/signUpReferral.d.ts +2 -0
- package/dist/src/storefront/api/store.d.ts +6 -0
- package/dist/src/storefront/api/subscription.d.ts +22 -0
- package/dist/src/storefront/api/ticket.d.ts +7 -0
- package/dist/src/storefront/api/transactions.d.ts +5 -0
- package/dist/src/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
- package/dist/src/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
- package/dist/src/storefront/components/Auth/index.d.ts +11 -0
- package/dist/src/storefront/components/Auth/otp-input.d.ts +7 -0
- package/dist/src/storefront/components/AuthModal/index.d.ts +6 -0
- package/dist/src/storefront/components/CancelSubscription/index.d.ts +8 -0
- package/dist/src/storefront/components/CashAppVerify/index.d.ts +7 -0
- package/dist/src/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
- package/dist/src/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
- package/dist/src/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
- package/dist/src/storefront/components/ChargeItems/index.d.ts +7 -0
- package/dist/src/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
- package/dist/src/storefront/components/CheckoutFooter/index.d.ts +6 -0
- package/dist/src/storefront/components/CheckoutHeader/index.d.ts +7 -0
- package/dist/src/storefront/components/CheckoutItems/index.d.ts +18 -0
- package/dist/src/storefront/components/CheckoutOperational/index.d.ts +26 -0
- package/dist/src/storefront/components/CheckoutOrderMainData/index.d.ts +10 -0
- package/dist/src/storefront/components/CheckoutPrices/index.d.ts +15 -0
- package/dist/src/storefront/components/CheckoutProduct/index.d.ts +8 -0
- package/dist/src/storefront/components/CheckoutProduct/model.d.ts +1 -0
- package/dist/src/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
- package/dist/src/storefront/components/ConnectDiscord/index.d.ts +6 -0
- package/dist/src/storefront/components/ConnectDiscord/model.d.ts +22 -0
- package/dist/src/storefront/components/Coupon/index.d.ts +12 -0
- package/dist/src/storefront/components/CustomFields/index.d.ts +13 -0
- package/dist/src/storefront/components/CustomerDashboard/index.d.ts +2 -0
- package/dist/src/storefront/components/DeliveryItem/index.d.ts +7 -0
- package/dist/src/storefront/components/InsufficientBalance/index.d.ts +8 -0
- package/dist/src/storefront/components/LeaveAReview/index.d.ts +9 -0
- package/dist/src/storefront/components/NoItemsBlock/index.d.ts +8 -0
- package/dist/src/storefront/components/OpenDelivery/index.d.ts +8 -0
- package/dist/src/storefront/components/OrderStatusBlock/index.d.ts +9 -0
- package/dist/src/storefront/components/OrdersTable/index.d.ts +16 -0
- package/dist/src/storefront/components/PageLoading/index.d.ts +7 -0
- package/dist/src/storefront/components/PageTitle/index.d.ts +6 -0
- package/dist/src/storefront/components/Pagination/index.d.ts +15 -0
- package/dist/src/storefront/components/PayPalF&FNote/index.d.ts +8 -0
- package/dist/src/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +14 -0
- package/dist/src/storefront/components/PaymentMethod/index.d.ts +16 -0
- package/dist/src/storefront/components/PaymentMethod/model.d.ts +21 -0
- package/dist/src/storefront/components/PaymentMethods/index.d.ts +19 -0
- package/dist/src/storefront/components/PreviewRender/index.d.ts +23 -0
- package/dist/src/storefront/components/ProcessingPayment/index.d.ts +1 -0
- package/dist/src/storefront/components/ReferralBlock/index.d.ts +18 -0
- package/dist/src/storefront/components/ReferralBlock/mask.d.ts +1 -0
- package/dist/src/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
- package/dist/src/storefront/components/ReferralBlock/step-item.d.ts +8 -0
- package/dist/src/storefront/components/SecuredBySsl/index.d.ts +6 -0
- package/dist/src/storefront/components/Sidebar/card.d.ts +7 -0
- package/dist/src/storefront/components/Sidebar/index.d.ts +4 -0
- package/dist/src/storefront/components/Sidebar/nav-list.d.ts +5 -0
- package/dist/src/storefront/components/StatItem/index.d.ts +15 -0
- package/dist/src/storefront/components/StatusIndicator/index.d.ts +7 -0
- package/dist/src/storefront/components/SubmitReview/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
- package/dist/src/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
- package/dist/src/storefront/components/SubscriptionProduct/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionProduct/model.d.ts +9 -0
- package/dist/src/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
- package/dist/src/storefront/components/SubscriptionsTable/index.d.ts +11 -0
- package/dist/src/storefront/components/Table/index.d.ts +20 -0
- package/dist/src/storefront/components/TermsOfService/index.d.ts +1 -0
- package/dist/src/storefront/components/TicketRow/index.d.ts +5 -0
- package/dist/src/storefront/components/TrackPayment/index.d.ts +8 -0
- package/dist/src/storefront/components/index.d.ts +53 -0
- package/dist/src/storefront/constants/actions.d.ts +3 -0
- package/dist/src/storefront/constants/api.d.ts +2 -0
- package/dist/src/storefront/constants/index.d.ts +3 -0
- package/dist/src/storefront/constants/referralSteps.d.ts +6 -0
- package/dist/src/storefront/constants/routes.d.ts +15 -0
- package/dist/src/storefront/hooks/index.d.ts +2 -0
- package/dist/src/storefront/hooks/useCart.d.ts +186 -0
- package/dist/src/storefront/hooks/useCopy.d.ts +1 -0
- package/dist/src/storefront/index.d.ts +11 -0
- package/dist/src/storefront/models/balance.d.ts +56 -0
- package/dist/src/storefront/models/charge.d.ts +76 -0
- package/dist/src/storefront/models/checkout.d.ts +21 -0
- package/dist/src/storefront/models/coupon.d.ts +5 -0
- package/dist/src/storefront/models/discord.d.ts +18 -0
- package/dist/src/storefront/models/gateway.d.ts +8 -0
- package/dist/src/storefront/models/index.d.ts +16 -0
- package/dist/src/storefront/models/order.d.ts +139 -0
- package/dist/src/storefront/models/payment.d.ts +16 -0
- package/dist/src/storefront/models/post.d.ts +5 -0
- package/dist/src/storefront/models/price.d.ts +5 -0
- package/dist/src/storefront/models/referral.d.ts +12 -0
- package/dist/src/storefront/models/referralCode.d.ts +3 -0
- package/dist/src/storefront/models/rewards.d.ts +72 -0
- package/dist/src/storefront/models/shop.d.ts +38 -0
- package/dist/src/storefront/models/subscription.d.ts +130 -0
- package/dist/src/storefront/models/transaction.d.ts +12 -0
- package/dist/src/storefront/store/index.d.ts +22 -0
- package/dist/src/storefront/store/useApiStore.d.ts +8 -0
- package/dist/src/storefront/store/useBlocksStore.d.ts +23 -0
- package/dist/src/storefront/store/useCartStore.d.ts +48 -0
- package/dist/src/storefront/store/useChooseImageStore.d.ts +11 -0
- package/dist/src/storefront/store/useConfirmationModalStore.d.ts +10 -0
- package/dist/src/storefront/store/useCustomerDashboardStore.d.ts +37 -0
- package/dist/src/storefront/store/useDiscordStore.d.ts +7 -0
- package/dist/src/storefront/store/useErrorStore.d.ts +12 -0
- package/dist/src/storefront/store/useGeneralStore.d.ts +9 -0
- package/dist/src/storefront/store/useHistoryState.d.ts +20 -0
- package/dist/src/storefront/store/useLayersStore.d.ts +42 -0
- package/dist/src/storefront/store/useModalStore.d.ts +6 -0
- package/dist/src/storefront/store/useNavbarStore.d.ts +7 -0
- package/dist/src/storefront/store/useNotificationStore.d.ts +7 -0
- package/dist/src/storefront/store/usePagesStore.d.ts +33 -0
- package/dist/src/storefront/store/usePaginationPagesStore.d.ts +7 -0
- package/dist/src/storefront/store/usePreviewStore.d.ts +26 -0
- package/dist/src/storefront/store/useSettingsStore.d.ts +12 -0
- package/dist/src/storefront/store/useShareLinkStore.d.ts +6 -0
- package/dist/src/storefront/store/useStorefrontStore.d.ts +23 -0
- package/dist/src/storefront/store/useSubscriptionStore.d.ts +7 -0
- package/dist/src/storefront/store/useThemeSettingsStore.d.ts +21 -0
- package/dist/src/storefront/ui/ActiveBadge/index.d.ts +5 -0
- package/dist/src/storefront/ui/InputRange/index.d.ts +9 -0
- package/dist/src/storefront/ui/ProgressBar/index.d.ts +8 -0
- package/dist/src/storefront/ui/Rating/index.d.ts +8 -0
- package/dist/src/storefront/ui/Timer/index.d.ts +6 -0
- package/dist/src/storefront/ui/index.d.ts +5 -0
- package/dist/src/storefront/utils/MarkdownText.d.ts +5 -0
- package/dist/src/storefront/utils/checkParams.d.ts +5 -0
- package/dist/src/storefront/utils/checkToken.d.ts +1 -0
- package/dist/src/storefront/utils/clearQueryParams.d.ts +1 -0
- package/dist/src/storefront/utils/index.d.ts +16 -0
- package/dist/src/storefront/utils/parseDraftJsText.d.ts +1 -0
- package/dist/src/storefront/utils/recapcha.d.ts +13 -0
- package/dist/src/storefront/utils/resizeManager.d.ts +12 -0
- package/dist/src/storefront/utils/showNotification.d.ts +3 -0
- package/dist/src/storefront/utils/stable-text.d.ts +20 -0
- package/dist/src/storefront/utils/useAdaptiveStyles.d.ts +2 -0
- package/dist/src/storefront/utils/useBalance.d.ts +2 -0
- package/dist/src/storefront/utils/useCart.d.ts +1 -0
- package/dist/src/storefront/utils/useGeneralInfo.d.ts +4 -0
- package/dist/src/storefront/utils/useMarkdownIt.d.ts +2 -0
- package/dist/src/storefront/utils/useTrackingAnalytics.d.ts +2 -0
- package/dist/src/ui/Accordion/index.d.ts +8 -0
- package/dist/src/ui/AlignText/index.d.ts +7 -0
- package/dist/src/ui/BuilderModal/index.d.ts +9 -0
- package/dist/src/ui/Button/index.d.ts +16 -0
- package/dist/src/ui/ButtonSettings/index.d.ts +14 -0
- package/dist/src/ui/ButtonTypeSettings/index.d.ts +11 -0
- package/dist/src/ui/ButtonsSettings/index.d.ts +28 -0
- package/dist/src/ui/ButtonsSettings/popup.d.ts +13 -0
- package/dist/src/ui/CategorySettings/index.d.ts +48 -0
- package/dist/src/ui/Checkbox/index.d.ts +7 -0
- package/dist/src/ui/ChooseImage/api/index.d.ts +2 -0
- package/dist/src/ui/ChooseImage/index.d.ts +17 -0
- package/dist/src/ui/ConfirmationModal/index.d.ts +2 -0
- package/dist/src/ui/ErrorableBlock/index.d.ts +5 -0
- package/dist/src/ui/FormSettings/index.d.ts +65 -0
- package/dist/src/ui/FormSettings/popup.d.ts +70 -0
- package/dist/src/ui/GroupCardModal/index.d.ts +14 -0
- package/dist/src/ui/HeaderButtons/index.d.ts +47 -0
- package/dist/src/ui/Icon/index.d.ts +13 -0
- package/dist/src/ui/Input/index.d.ts +25 -0
- package/dist/src/ui/InputSettings/index.d.ts +22 -0
- package/dist/src/ui/ItemsSettings/index.d.ts +70 -0
- package/dist/src/ui/ItemsSettings/popup.d.ts +84 -0
- package/dist/src/ui/LayoutSettings/index.d.ts +13 -0
- package/dist/src/ui/Link/index.d.ts +10 -0
- package/dist/src/ui/ListingSelector/index.d.ts +134 -0
- package/dist/src/ui/ListingSelector/popup.d.ts +20 -0
- package/dist/src/ui/Loader/index.d.ts +4 -0
- package/dist/src/ui/LoaderBuilder/index.d.ts +2 -0
- package/dist/src/ui/MetaInfoPost/index.d.ts +6 -0
- package/dist/src/ui/Modal/index.d.ts +9 -0
- package/dist/src/ui/NotificationAntistock/index.d.ts +11 -0
- package/dist/src/ui/NotificationBuilder/index.d.ts +13 -0
- package/dist/src/ui/OtherSettings/index.d.ts +15 -0
- package/dist/src/ui/PagesSettings/index.d.ts +26 -0
- package/dist/src/ui/ProductCardButtons/index.d.ts +10 -0
- package/dist/src/ui/ProductCardModal/index.d.ts +10 -0
- package/dist/src/ui/ProductOptions/index.d.ts +13 -0
- package/dist/src/ui/Radio/index.d.ts +14 -0
- package/dist/src/ui/RangeSelector/index.d.ts +11 -0
- package/dist/src/ui/Select/index.d.ts +20 -0
- package/dist/src/ui/Select/utils/index.d.ts +2 -0
- package/dist/src/ui/SelectInfiniteList/index.d.ts +20 -0
- package/dist/src/ui/SelectInfiniteList/utils/index.d.ts +2 -0
- package/dist/src/ui/SelectTypeText/index.d.ts +8 -0
- package/dist/src/ui/ShareLink/index.d.ts +5 -0
- package/dist/src/ui/Switch/index.d.ts +11 -0
- package/dist/src/ui/TextSettings/index.d.ts +20 -0
- package/dist/src/ui/Textarea/index.d.ts +13 -0
- package/dist/src/ui/TextareaSettings/index.d.ts +11 -0
- package/dist/src/ui/Tip/index.d.ts +10 -0
- package/dist/src/ui/TypesText/index.d.ts +7 -0
- package/dist/src/ui/Wrapper/index.d.ts +11 -0
- package/dist/src/ui/index.d.ts +44 -0
- package/dist/{subscription-CfSbneE9.js → subscription-DIDUTEI3.js} +5 -5
- package/dist/{subscription-CN0GP1i3.cjs → subscription-iNnLGi0T.cjs} +1 -1
- package/dist/{ticket-CDRAyz3r.js → ticket-B0VGIvyK.js} +5 -5
- package/dist/{ticket-Disch8gb.cjs → ticket-DXz_-29l.cjs} +1 -1
- package/dist/{top-up-r9pRDkRB.cjs → top-up-B7E7FUjn.cjs} +1 -1
- package/dist/{top-up-DEMHwk2Q.js → top-up-BhB8jhP6.js} +5 -5
- package/dist/ui-components-BTotDG_w.js +6447 -0
- package/dist/ui-components-CWLDlDmG.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +6 -6
- package/dist/{validation-HSAYPvwb.cjs → validation-BVAD1q1L.cjs} +1 -1
- package/dist/{validation-BwaClAh8.js → validation-jCwzu5MC.js} +5 -5
- package/package.json +3 -2
- package/dist/App-Clwk7ILO.js +0 -315
- package/dist/App-txB8kbk7.cjs +0 -1
- package/dist/ui-components-CDqqhvCf.js +0 -11007
- package/dist/ui-components-DcRUDS1O.cjs +0 -1
package/dist/App-Clwk7ILO.js
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { jsx as t, Fragment as W, jsxs as D } from "react/jsx-runtime";
|
|
2
|
-
import { M as _, V as M, j as V, c as N, m as X, a as G, K as J, ai as K, aj as Q, ak as Y } from "./builder-CtBMhTyK.js";
|
|
3
|
-
import { f as $, l as q, j as Z, k as ee, D as te } from "./ticket-CDRAyz3r.js";
|
|
4
|
-
import r, { Suspense as re } from "react";
|
|
5
|
-
import { W as ne, X as oe, Y as ae } from "./charge-APYiCYYq.js";
|
|
6
|
-
import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Question as de, CalendarCheck as ue, Medal as he, CurrencyCircleDollar as me, House as pe, Calendar as fe, User as ge, Heart as ye, DotsSixVertical as Se, ChatsTeardrop as ke, PaperPlaneRight as Pe, Wallet as Ce, SignOut as Ee, TelegramLogo as Re, DiscordLogo as be, DownloadSimple as we, BookOpen as Ie, FileText as ze, Lightning as De, Fire as Te, Star as Ae, XCircle as ve, CheckCircle as Be, MagnifyingGlass as Le, CaretRight as Oe, ArrowLineUpRight as Fe, ArrowUp as je, Handbag as xe, List as He, Image as Ue, Sliders as We, Trash as _e, Copy as Me, Info as Ve, Clock as Ne, Check as Xe, Minus as Ge, Plus as Je, X as Ke } from "@phosphor-icons/react";
|
|
7
|
-
const Qe = ({
|
|
8
|
-
children: e,
|
|
9
|
-
shopDomain: o,
|
|
10
|
-
shopId: i,
|
|
11
|
-
shopPassword: d,
|
|
12
|
-
shopLogo: h
|
|
13
|
-
}) => {
|
|
14
|
-
const {
|
|
15
|
-
setShopDomain: m,
|
|
16
|
-
setShopId: P,
|
|
17
|
-
setShopPassword: C,
|
|
18
|
-
setShopTerms: p,
|
|
19
|
-
setShopPrivacyPolicy: c,
|
|
20
|
-
setShopRefundPolicy: f,
|
|
21
|
-
setShopLogo: E
|
|
22
|
-
} = _();
|
|
23
|
-
return r.useLayoutEffect(() => {
|
|
24
|
-
const a = async () => {
|
|
25
|
-
const { data: l } = await ne();
|
|
26
|
-
p(l);
|
|
27
|
-
}, g = async () => {
|
|
28
|
-
const { data: l } = await oe();
|
|
29
|
-
c(l);
|
|
30
|
-
}, R = async () => {
|
|
31
|
-
const { data: l } = await ae();
|
|
32
|
-
f(l);
|
|
33
|
-
};
|
|
34
|
-
m(o), P(i), d && C(d), h && E(h), a(), g(), R();
|
|
35
|
-
}, [o, i, d]), /* @__PURE__ */ t(W, { children: e });
|
|
36
|
-
}, Ye = "_wrapper_1xuz3_18", T = {
|
|
37
|
-
wrapper: Ye
|
|
38
|
-
}, k = /* @__PURE__ */ new Map();
|
|
39
|
-
function $e(e, o) {
|
|
40
|
-
k.set(e, o);
|
|
41
|
-
}
|
|
42
|
-
function Ct(e) {
|
|
43
|
-
return k.get(e) || null;
|
|
44
|
-
}
|
|
45
|
-
function Et(e) {
|
|
46
|
-
return k.has(e);
|
|
47
|
-
}
|
|
48
|
-
function Rt() {
|
|
49
|
-
return Array.from(k.keys());
|
|
50
|
-
}
|
|
51
|
-
function qe(e) {
|
|
52
|
-
Object.entries(e).forEach(([o, i]) => {
|
|
53
|
-
$e(o, i);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function Ze() {
|
|
57
|
-
qe({
|
|
58
|
-
// Основные UI иконки
|
|
59
|
-
X: Ke,
|
|
60
|
-
Plus: Je,
|
|
61
|
-
Minus: Ge,
|
|
62
|
-
Check: Xe,
|
|
63
|
-
Clock: Ne,
|
|
64
|
-
Info: Ve,
|
|
65
|
-
Copy: Me,
|
|
66
|
-
Trash: _e,
|
|
67
|
-
Sliders: We,
|
|
68
|
-
Image: Ue,
|
|
69
|
-
List: He,
|
|
70
|
-
Handbag: xe,
|
|
71
|
-
ArrowUp: je,
|
|
72
|
-
ArrowLineUpRight: Fe,
|
|
73
|
-
CaretRight: Oe,
|
|
74
|
-
MagnifyingGlass: Le,
|
|
75
|
-
// Статусы и действия
|
|
76
|
-
CheckCircle: Be,
|
|
77
|
-
XCircle: ve,
|
|
78
|
-
Star: Ae,
|
|
79
|
-
Fire: Te,
|
|
80
|
-
Lightning: De,
|
|
81
|
-
// Файлы и документы
|
|
82
|
-
FileText: ze,
|
|
83
|
-
BookOpen: Ie,
|
|
84
|
-
DownloadSimple: we,
|
|
85
|
-
// Социальные сети
|
|
86
|
-
DiscordLogo: be,
|
|
87
|
-
TelegramLogo: Re,
|
|
88
|
-
// Навигация и интерфейс
|
|
89
|
-
SignOut: Ee,
|
|
90
|
-
Wallet: Ce,
|
|
91
|
-
PaperPlaneRight: Pe,
|
|
92
|
-
ChatsTeardrop: ke,
|
|
93
|
-
DotsSixVertical: Se,
|
|
94
|
-
// Специальные иконки
|
|
95
|
-
Heart: ye,
|
|
96
|
-
User: ge,
|
|
97
|
-
Calendar: fe,
|
|
98
|
-
// Иконки для навигации в сайдбаре
|
|
99
|
-
House: pe,
|
|
100
|
-
CurrencyCircleDollar: me,
|
|
101
|
-
Medal: he,
|
|
102
|
-
CalendarCheck: ue,
|
|
103
|
-
Question: de,
|
|
104
|
-
// Безопасность и файлы (для Checkout/Secured)
|
|
105
|
-
ShieldCheck: le,
|
|
106
|
-
FileCloud: ce,
|
|
107
|
-
// Иконки для статусов
|
|
108
|
-
Warning: ie,
|
|
109
|
-
WarningDiamond: se
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
const et = r.lazy(
|
|
113
|
-
() => import("./builder-CtBMhTyK.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
114
|
-
), tt = r.lazy(
|
|
115
|
-
() => import("./index-kt3o_lGR.js").then((e) => ({ default: e.ErrorPage }))
|
|
116
|
-
), rt = r.lazy(
|
|
117
|
-
() => import("./index-Da1yGZge.js").then((e) => ({ default: e.ActivePage }))
|
|
118
|
-
), nt = r.lazy(
|
|
119
|
-
() => import("./validation-BwaClAh8.js").then((e) => ({ default: e.ValidationPage }))
|
|
120
|
-
), ot = r.lazy(
|
|
121
|
-
() => import("./index-DjOTY2Jm.js").then((e) => ({ default: e.WrapperPage }))
|
|
122
|
-
), at = r.lazy(
|
|
123
|
-
() => import("./index-C8snA9wm.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
124
|
-
), s = r.lazy(
|
|
125
|
-
() => import("./index-BAFG_paG.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
126
|
-
), st = r.lazy(
|
|
127
|
-
() => import("./checkout-D3Mpwqsj.js").then((e) => ({ default: e.Checkout }))
|
|
128
|
-
), it = r.lazy(
|
|
129
|
-
() => import("./charge-APYiCYYq.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
|
|
130
|
-
), ct = r.lazy(
|
|
131
|
-
() => import("./ticket-CDRAyz3r.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
132
|
-
), lt = r.lazy(
|
|
133
|
-
() => import("./subscription-CfSbneE9.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
134
|
-
), dt = r.lazy(
|
|
135
|
-
() => import("./top-up-DEMHwk2Q.js").then((e) => ({ default: e.TopUpBalance }))
|
|
136
|
-
), ut = r.lazy(
|
|
137
|
-
() => import("./order-DLMk34KA.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
138
|
-
), ht = r.lazy(
|
|
139
|
-
() => import("./charge-APYiCYYq.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
|
|
140
|
-
), A = r.lazy(
|
|
141
|
-
() => import("./charge-APYiCYYq.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
142
|
-
), mt = () => null, n = ({ children: e }) => /* @__PURE__ */ t(re, { fallback: /* @__PURE__ */ t(mt, {}), children: e }), pt = r.lazy(
|
|
143
|
-
() => import("./builder-components-Bm7ta9iB.js").then((e) => e.i).then((e) => ({
|
|
144
|
-
default: e.RenderAnnouncement
|
|
145
|
-
}))
|
|
146
|
-
), v = r.lazy(
|
|
147
|
-
() => import("./builder-components-Bm7ta9iB.js").then((e) => e.i).then((e) => ({
|
|
148
|
-
default: e.RenderFooter
|
|
149
|
-
}))
|
|
150
|
-
), B = r.lazy(
|
|
151
|
-
() => import("./builder-components-Bm7ta9iB.js").then((e) => e.i).then((e) => ({
|
|
152
|
-
default: e.RenderHeader
|
|
153
|
-
}))
|
|
154
|
-
), bt = (e) => {
|
|
155
|
-
const {
|
|
156
|
-
blocks: o,
|
|
157
|
-
settings: i,
|
|
158
|
-
header: d,
|
|
159
|
-
footer: h,
|
|
160
|
-
announcement: m,
|
|
161
|
-
routes: P = [],
|
|
162
|
-
shopLogo: C,
|
|
163
|
-
apiURLs: p,
|
|
164
|
-
isAntistock: c = !1
|
|
165
|
-
} = e, [f, E] = r.useState(null), { general: a, setIsAntistock: g } = M(), { setApiUrls: R } = V(), {
|
|
166
|
-
setBlocks: l,
|
|
167
|
-
setSourceBlocks: L,
|
|
168
|
-
setHeader: O,
|
|
169
|
-
setFooter: F,
|
|
170
|
-
setAnnouncement: j,
|
|
171
|
-
setSettings: x
|
|
172
|
-
} = N(), { themeSettings: y } = X(), { settings: b, setSettings: H } = G(), S = J ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, U = localStorage.getItem("shopPassword"), I = localStorage.getItem("shopId") || "";
|
|
173
|
-
return r.useEffect(() => {
|
|
174
|
-
g(c);
|
|
175
|
-
}, [c, g]), r.useEffect(() => {
|
|
176
|
-
!I && (a != null && a.info.id) && localStorage.setItem("shopId", a == null ? void 0 : a.info.id);
|
|
177
|
-
}, [a]), r.useEffect(() => {
|
|
178
|
-
!S && !c && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && c && localStorage.setItem("fakeDomain", "eva8.astck.io");
|
|
179
|
-
}, [S]), r.useEffect(() => {
|
|
180
|
-
if (y && b) {
|
|
181
|
-
const u = $(y, b);
|
|
182
|
-
q(), Z(y), ee(u);
|
|
183
|
-
}
|
|
184
|
-
}, [y, JSON.stringify(b), window.location.hostname]), r.useEffect(() => {
|
|
185
|
-
const w = new i().blockSettings;
|
|
186
|
-
H(w);
|
|
187
|
-
}, []), r.useEffect(() => {
|
|
188
|
-
Ze();
|
|
189
|
-
}, []), r.useLayoutEffect(() => {
|
|
190
|
-
const u = {};
|
|
191
|
-
Object.keys(o).map((z) => {
|
|
192
|
-
u[z] = o[z];
|
|
193
|
-
}), L(u), l(u), O(d), F(h), j(m), x(i), p && R(p);
|
|
194
|
-
const w = K([
|
|
195
|
-
{
|
|
196
|
-
element: /* @__PURE__ */ t(
|
|
197
|
-
Qe,
|
|
198
|
-
{
|
|
199
|
-
shopDomain: S,
|
|
200
|
-
shopId: I,
|
|
201
|
-
shopPassword: U || void 0,
|
|
202
|
-
shopLogo: C,
|
|
203
|
-
children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ot, { children: /* @__PURE__ */ t(Q, {}) }) })
|
|
204
|
-
}
|
|
205
|
-
),
|
|
206
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(at, {}) }),
|
|
207
|
-
children: [
|
|
208
|
-
{
|
|
209
|
-
path: "/admin/builder/*",
|
|
210
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(rt, { children: /* @__PURE__ */ t(
|
|
211
|
-
et,
|
|
212
|
-
{
|
|
213
|
-
blocks: o,
|
|
214
|
-
settings: i,
|
|
215
|
-
header: d,
|
|
216
|
-
footer: h,
|
|
217
|
-
announcement: m
|
|
218
|
-
}
|
|
219
|
-
) }) }),
|
|
220
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(tt, {}) })
|
|
221
|
-
},
|
|
222
|
-
...P,
|
|
223
|
-
{
|
|
224
|
-
path: "/checkout",
|
|
225
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(st, {}) }),
|
|
226
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
|
|
227
|
-
loader: () => (document.title = "Checkout", !0)
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
path: "/top-up",
|
|
231
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(dt, {}) }),
|
|
232
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
|
|
233
|
-
loader: () => (document.title = "Top Up Balance", !0)
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
path: "/charges/:id",
|
|
237
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(it, {}) }),
|
|
238
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
|
|
239
|
-
loader: () => (document.title = "Charges", !0)
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
path: "/orders/:id/:accessToken?",
|
|
243
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ut, {}) }),
|
|
244
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
|
|
245
|
-
loader: () => (document.title = "Orders", !0)
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
path: "/subscriptions/:id/:accessToken?",
|
|
249
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lt, {}) }),
|
|
250
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
|
|
251
|
-
loader: () => (document.title = "Subscriptions", !0)
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
path: c ? "/account" : "/customer-dash",
|
|
255
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ D("div", { className: T.wrapper, children: [
|
|
256
|
-
/* @__PURE__ */ t(pt, {}),
|
|
257
|
-
/* @__PURE__ */ t(B, {}),
|
|
258
|
-
/* @__PURE__ */ t(
|
|
259
|
-
"div",
|
|
260
|
-
{
|
|
261
|
-
style: {
|
|
262
|
-
flex: "1 1 auto"
|
|
263
|
-
},
|
|
264
|
-
children: /* @__PURE__ */ t(ht, {})
|
|
265
|
-
}
|
|
266
|
-
),
|
|
267
|
-
/* @__PURE__ */ t(v, {})
|
|
268
|
-
] }) }),
|
|
269
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
|
|
270
|
-
loader: () => (document.title = c ? "Account" : "Customer Dashboard", !0)
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
path: "/validation",
|
|
274
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(nt, {}) }),
|
|
275
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
|
|
276
|
-
loader: () => (document.title = "Validation", !0)
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
path: "/ticket/:id/:accessToken",
|
|
280
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ D("div", { className: T.wrapper, children: [
|
|
281
|
-
/* @__PURE__ */ t(B, {}),
|
|
282
|
-
/* @__PURE__ */ t(
|
|
283
|
-
"div",
|
|
284
|
-
{
|
|
285
|
-
style: {
|
|
286
|
-
flex: 1,
|
|
287
|
-
width: "100%",
|
|
288
|
-
height: "100%"
|
|
289
|
-
},
|
|
290
|
-
children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ct, {}) })
|
|
291
|
-
}
|
|
292
|
-
),
|
|
293
|
-
/* @__PURE__ */ t(v, {})
|
|
294
|
-
] }) }),
|
|
295
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) }),
|
|
296
|
-
loader: () => (document.title = "Ticket", !0)
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
path: "*",
|
|
300
|
-
element: /* @__PURE__ */ t(te, {}),
|
|
301
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(s, {}) })
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
}
|
|
305
|
-
]);
|
|
306
|
-
E(w);
|
|
307
|
-
}, [a]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children: f && /* @__PURE__ */ t(Y, { router: f }) });
|
|
308
|
-
};
|
|
309
|
-
export {
|
|
310
|
-
bt as A,
|
|
311
|
-
Rt as a,
|
|
312
|
-
Ct as g,
|
|
313
|
-
Et as i,
|
|
314
|
-
$e as r
|
|
315
|
-
};
|
package/dist/App-txB8kbk7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("./builder-4Ke7cjNO.cjs"),p=require("./ticket-Disch8gb.cjs"),n=require("react"),w=require("./charge-C5z1ecd1.cjs"),r=require("@phosphor-icons/react"),_=({children:e,shopDomain:o,shopId:l,shopPassword:h,shopLogo:m})=>{const{setShopDomain:x,setShopId:C,setShopPassword:v,setShopTerms:f,setShopPrivacyPolicy:d,setShopRefundPolicy:j,setShopLogo:R}=a.useStorefrontStore();return n.useLayoutEffect(()=>{const i=async()=>{const{data:u}=await w.fetchTerms();f(u)},y=async()=>{const{data:u}=await w.fetchPrivacyPolicy();d(u)},I=async()=>{const{data:u}=await w.fetchRefundPolicy();j(u)};x(o),C(l),h&&v(h),m&&R(m),i(),y(),I()},[o,l,h]),t.jsx(t.Fragment,{children:e})},X="_wrapper_1xuz3_18",T={wrapper:X},k=new Map;function B(e,o){k.set(e,o)}function G(e){return k.get(e)||null}function N(e){return k.has(e)}function Q(){return Array.from(k.keys())}function J(e){Object.entries(e).forEach(([o,l])=>{B(o,l)})}function $(){J({X:r.X,Plus:r.Plus,Minus:r.Minus,Check:r.Check,Clock:r.Clock,Info:r.Info,Copy:r.Copy,Trash:r.Trash,Sliders:r.Sliders,Image:r.Image,List:r.List,Handbag:r.Handbag,ArrowUp:r.ArrowUp,ArrowLineUpRight:r.ArrowLineUpRight,CaretRight:r.CaretRight,MagnifyingGlass:r.MagnifyingGlass,CheckCircle:r.CheckCircle,XCircle:r.XCircle,Star:r.Star,Fire:r.Fire,Lightning:r.Lightning,FileText:r.FileText,BookOpen:r.BookOpen,DownloadSimple:r.DownloadSimple,DiscordLogo:r.DiscordLogo,TelegramLogo:r.TelegramLogo,SignOut:r.SignOut,Wallet:r.Wallet,PaperPlaneRight:r.PaperPlaneRight,ChatsTeardrop:r.ChatsTeardrop,DotsSixVertical:r.DotsSixVertical,Heart:r.Heart,User:r.User,Calendar:r.Calendar,House:r.House,CurrencyCircleDollar:r.CurrencyCircleDollar,Medal:r.Medal,CalendarCheck:r.CalendarCheck,Question:r.Question,ShieldCheck:r.ShieldCheck,FileCloud:r.FileCloud,Warning:r.Warning,WarningDiamond:r.WarningDiamond})}const K=n.lazy(()=>Promise.resolve().then(()=>require("./builder-4Ke7cjNO.cjs")).then(e=>e.index).then(e=>({default:e.BuilderPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./index-B1QfR20x.cjs")).then(e=>({default:e.ErrorPage}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./index-mEkddX3U.cjs")).then(e=>({default:e.ActivePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./validation-HSAYPvwb.cjs")).then(e=>({default:e.ValidationPage}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./index-DgsmVqD7.cjs")).then(e=>({default:e.WrapperPage}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./index-BMaA9qqZ.cjs")).then(e=>({default:e.RouterErrorPage}))),c=n.lazy(()=>Promise.resolve().then(()=>require("./index-Crr7n_oM.cjs")).then(e=>({default:e.DynamicErrorPage}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-Bher7FGW.cjs")).then(e=>({default:e.Checkout}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./charge-C5z1ecd1.cjs")).then(e=>e.index$1).then(e=>({default:e.ChargePage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-Disch8gb.cjs")).then(e=>e.index).then(e=>({default:e.TicketItem}))),ie=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-CN0GP1i3.cjs")).then(e=>e.index).then(e=>({default:e.Subscription}))),ae=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-r9pRDkRB.cjs")).then(e=>({default:e.TopUpBalance}))),ce=n.lazy(()=>Promise.resolve().then(()=>require("./order-BDiqGe6L.cjs")).then(e=>e.index).then(e=>({default:e.OrderPage}))),le=n.lazy(()=>Promise.resolve().then(()=>require("./charge-C5z1ecd1.cjs")).then(e=>e.index).then(e=>({default:e.CustomerDashboard}))),L=n.lazy(()=>Promise.resolve().then(()=>require("./charge-C5z1ecd1.cjs")).then(e=>e.recapcha).then(e=>({default:e.ReCaptchaProvider}))),de=()=>null,s=({children:e})=>t.jsx(n.Suspense,{fallback:t.jsx(de,{}),children:e}),ue=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dz2YlUqA.cjs")).then(e=>e.index).then(e=>({default:e.RenderAnnouncement}))),z=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dz2YlUqA.cjs")).then(e=>e.index).then(e=>({default:e.RenderFooter}))),A=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dz2YlUqA.cjs")).then(e=>e.index).then(e=>({default:e.RenderHeader}))),he=e=>{const{blocks:o,settings:l,header:h,footer:m,announcement:x,routes:C=[],shopLogo:v,apiURLs:f,isAntistock:d=!1}=e,[j,R]=n.useState(null),{general:i,setIsAntistock:y}=a.useGeneralStore(),{setApiUrls:I}=a.useApiStore(),{setBlocks:u,setSourceBlocks:F,setHeader:O,setFooter:H,setAnnouncement:U,setSettings:W}=a.useBlocksStore(),{themeSettings:P}=a.useThemeSettingsStore(),{settings:E,setSettings:M}=a.useSettingsStore(),S=a.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,V=localStorage.getItem("shopPassword"),D=localStorage.getItem("shopId")||"";return n.useEffect(()=>{y(d)},[d,y]),n.useEffect(()=>{!D&&(i!=null&&i.info.id)&&localStorage.setItem("shopId",i==null?void 0:i.info.id)},[i]),n.useEffect(()=>{!S&&!d&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!S&&d&&localStorage.setItem("fakeDomain","eva8.astck.io")},[S]),n.useEffect(()=>{if(P&&E){const g=p.generateDynamicStyles(P,E);p.loadCustomFonts(),p.setupDynamicFonts(P),p.injectStylesToDOM(g)}},[P,JSON.stringify(E),window.location.hostname]),n.useEffect(()=>{const q=new l().blockSettings;M(q)},[]),n.useEffect(()=>{$()},[]),n.useLayoutEffect(()=>{const g={};Object.keys(o).map(b=>{g[b]=o[b]}),F(g),u(g),O(h),H(m),U(x),W(l),f&&I(f);const q=a.createBrowserRouter([{element:t.jsx(_,{shopDomain:S,shopId:D,shopPassword:V||void 0,shopLogo:v,children:t.jsx(L,{children:t.jsx(te,{children:t.jsx(a.Outlet,{})})})}),errorElement:t.jsx(s,{children:t.jsx(re,{})}),children:[{path:"/admin/builder/*",element:t.jsx(s,{children:t.jsx(Z,{children:t.jsx(K,{blocks:o,settings:l,header:h,footer:m,announcement:x})})}),errorElement:t.jsx(s,{children:t.jsx(Y,{})})},...C,{path:"/checkout",element:t.jsx(s,{children:t.jsx(ne,{})}),errorElement:t.jsx(s,{children:t.jsx(c,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:t.jsx(s,{children:t.jsx(ae,{})}),errorElement:t.jsx(s,{children:t.jsx(c,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:t.jsx(s,{children:t.jsx(se,{})}),errorElement:t.jsx(s,{children:t.jsx(c,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:t.jsx(s,{children:t.jsx(ce,{})}),errorElement:t.jsx(s,{children:t.jsx(c,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:t.jsx(s,{children:t.jsx(ie,{})}),errorElement:t.jsx(s,{children:t.jsx(c,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:d?"/account":"/customer-dash",element:t.jsx(s,{children:t.jsxs("div",{className:T.wrapper,children:[t.jsx(ue,{}),t.jsx(A,{}),t.jsx("div",{style:{flex:"1 1 auto"},children:t.jsx(le,{})}),t.jsx(z,{})]})}),errorElement:t.jsx(s,{children:t.jsx(c,{})}),loader:()=>(document.title=d?"Account":"Customer Dashboard",!0)},{path:"/validation",element:t.jsx(s,{children:t.jsx(ee,{})}),errorElement:t.jsx(s,{children:t.jsx(c,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:t.jsx(s,{children:t.jsxs("div",{className:T.wrapper,children:[t.jsx(A,{}),t.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:t.jsx(L,{children:t.jsx(oe,{})})}),t.jsx(z,{})]})}),errorElement:t.jsx(s,{children:t.jsx(c,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:t.jsx(p.DynamicRouteWrapper,{}),errorElement:t.jsx(s,{children:t.jsx(c,{})})}]}]);R(q)},[i]),t.jsx(n.Suspense,{fallback:null,children:j&&t.jsx(a.RouterProvider,{router:j})})};exports.App=he;exports.getRegisteredIcon=G;exports.getRegisteredIcons=Q;exports.isIconRegistered=N;exports.registerIcon=B;
|