@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.
Files changed (411) hide show
  1. package/dist/{builder-4Ke7cjNO.cjs → builder-B7hjBRYI.cjs} +2 -2
  2. package/dist/{builder-CtBMhTyK.js → builder-D_zv5ue0.js} +5 -5
  3. package/dist/{builder-components-Dz2YlUqA.cjs → builder-components-BjoFBErH.cjs} +1 -1
  4. package/dist/{builder-components-Bm7ta9iB.js → builder-components-DN-mNdj8.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +293 -6
  7. package/dist/{charge-C5z1ecd1.cjs → charge-BAP3iPAM.cjs} +1 -1
  8. package/dist/{charge-APYiCYYq.js → charge-BQUHzEju.js} +6 -6
  9. package/dist/{checkout-Bher7FGW.cjs → checkout-CUct7uCm.cjs} +1 -1
  10. package/dist/{checkout-D3Mpwqsj.js → checkout-uzxtu1pZ.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-DgsmVqD7.cjs → index-BBMTjm8A.cjs} +1 -1
  14. package/dist/{index-Da1yGZge.js → index-BJMeFohP.js} +1 -1
  15. package/dist/{index-B1QfR20x.cjs → index-BXhAWCRX.cjs} +1 -1
  16. package/dist/{index-mEkddX3U.cjs → index-CEMbDy4G.cjs} +1 -1
  17. package/dist/{index-BAFG_paG.js → index-CMECtXvH.js} +5 -5
  18. package/dist/{index-C8snA9wm.js → index-CX1FV9wS.js} +5 -5
  19. package/dist/{index-BMaA9qqZ.cjs → index-Cbqz9kIG.cjs} +1 -1
  20. package/dist/{index-kt3o_lGR.js → index-CzkkQ8sH.js} +5 -5
  21. package/dist/{index-Crr7n_oM.cjs → index-R_FZBtaZ.cjs} +1 -1
  22. package/dist/{index-DjOTY2Jm.js → index-hCDY-ip7.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.d.ts +22 -0
  25. package/dist/index.es.js +16 -16
  26. package/dist/{order-BDiqGe6L.cjs → order-BOaO9a-C.cjs} +1 -1
  27. package/dist/{order-DLMk34KA.js → order-CdPcB1OE.js} +5 -5
  28. package/dist/src/App.d.ts +18 -0
  29. package/dist/src/abstractions/IBlock.d.ts +14 -0
  30. package/dist/src/abstractions/ISettings.d.ts +3 -0
  31. package/dist/src/abstractions/PageContext.d.ts +121 -0
  32. package/dist/src/abstractions/Variable.d.ts +28 -0
  33. package/dist/src/abstractions/color-variables.d.ts +48 -0
  34. package/dist/src/abstractions/index.d.ts +4 -0
  35. package/dist/src/api/constants.d.ts +8 -0
  36. package/dist/src/api/index.d.ts +2 -0
  37. package/dist/src/api/request.d.ts +17 -0
  38. package/dist/src/assets/icon-registry/IconRegistry.d.ts +22 -0
  39. package/dist/src/assets/icon-registry/libraryIcons.d.ts +1 -0
  40. package/dist/src/assets/storefront-icons/index.d.ts +23 -0
  41. package/dist/src/builder/api/fetchAll.d.ts +1 -0
  42. package/dist/src/builder/api/fetchData.d.ts +14 -0
  43. package/dist/src/builder/api/fetchFontsData.d.ts +1 -0
  44. package/dist/src/builder/api/fetchPagesData.d.ts +1 -0
  45. package/dist/src/builder/api/index.d.ts +4 -0
  46. package/dist/src/builder/components/AddSections/index.d.ts +5 -0
  47. package/dist/src/builder/components/AddSections/utils/index.d.ts +5 -0
  48. package/dist/src/builder/components/AddSectionsBlock/index.d.ts +7 -0
  49. package/dist/src/builder/components/BlockColors/index.d.ts +7 -0
  50. package/dist/src/builder/components/BlockSettings/index.d.ts +2 -0
  51. package/dist/src/builder/components/BlockSettings/settings.d.ts +7 -0
  52. package/dist/src/builder/components/BlockSettingsHeader/index.d.ts +8 -0
  53. package/dist/src/builder/components/ExitButton/index.d.ts +5 -0
  54. package/dist/src/builder/components/Header/index.d.ts +5 -0
  55. package/dist/src/builder/components/HeaderButtons/index.d.ts +5 -0
  56. package/dist/src/builder/components/HeaderDevices/index.d.ts +5 -0
  57. package/dist/src/builder/components/HeaderPreviewButton/index.d.ts +5 -0
  58. package/dist/src/builder/components/HeaderSaveButton/api/index.d.ts +2 -0
  59. package/dist/src/builder/components/HeaderSaveButton/index.d.ts +7 -0
  60. package/dist/src/builder/components/HeaderSaveButton/utils/index.d.ts +6 -0
  61. package/dist/src/builder/components/HeaderSettings/index.d.ts +4 -0
  62. package/dist/src/builder/components/HeaderSettingsLanguage/index.d.ts +4 -0
  63. package/dist/src/builder/components/HeaderSettingsPages/api/index.d.ts +1 -0
  64. package/dist/src/builder/components/HeaderSettingsPages/index.d.ts +5 -0
  65. package/dist/src/builder/components/HeaderSettingsZoom/index.d.ts +5 -0
  66. package/dist/src/builder/components/HeaderSwitchTheme/index.d.ts +4 -0
  67. package/dist/src/builder/components/ModifyPage/index.d.ts +5 -0
  68. package/dist/src/builder/components/Navbar/index.d.ts +1 -0
  69. package/dist/src/builder/components/Preview/index.d.ts +2 -0
  70. package/dist/src/builder/components/PreviewBlockSidebar/index.d.ts +2 -0
  71. package/dist/src/builder/components/PreviewContent/index.d.ts +6 -0
  72. package/dist/src/builder/components/PreviewHeader/index.d.ts +2 -0
  73. package/dist/src/builder/components/Sidebar/index.d.ts +4 -0
  74. package/dist/src/builder/components/SidebarLayer/index.d.ts +7 -0
  75. package/dist/src/builder/components/SidebarLayers/index.d.ts +10 -0
  76. package/dist/src/builder/components/SidebarSettings/index.d.ts +2 -0
  77. package/dist/src/builder/components/SidebarTheme/index.d.ts +4 -0
  78. package/dist/src/builder/components/ThemeSettings/index.d.ts +4 -0
  79. package/dist/src/builder/components/ThemeSettingsBorders/index.d.ts +5 -0
  80. package/dist/src/builder/components/ThemeSettingsButtons/index.d.ts +5 -0
  81. package/dist/src/builder/components/ThemeSettingsCategories/index.d.ts +1 -0
  82. package/dist/src/builder/components/ThemeSettingsColors/index.d.ts +5 -0
  83. package/dist/src/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +2 -0
  84. package/dist/src/builder/components/ThemeSettingsColors/utils/index.d.ts +1 -0
  85. package/dist/src/builder/components/ThemeSettingsCurrentColors/index.d.ts +5 -0
  86. package/dist/src/builder/components/ThemeSettingsCurrentColors/tip.d.ts +5 -0
  87. package/dist/src/builder/components/ThemeSettingsCurrentFont/index.d.ts +5 -0
  88. package/dist/src/builder/components/ThemeSettingsFonts/index.d.ts +5 -0
  89. package/dist/src/builder/components/ThemeSettingsHeaderItem/index.d.ts +7 -0
  90. package/dist/src/builder/components/ThemeSettingsInputs/index.d.ts +5 -0
  91. package/dist/src/builder/constants/block-icons.d.ts +18 -0
  92. package/dist/src/builder/index.d.ts +10 -0
  93. package/dist/src/builder/layout.d.ts +5 -0
  94. package/dist/src/builder/store/index.d.ts +6 -0
  95. package/dist/src/builder/store/useColorPickerStore.d.ts +53 -0
  96. package/dist/src/builder/store/useDeviceStore.d.ts +7 -0
  97. package/dist/src/builder/store/useFontsStore.d.ts +20 -0
  98. package/dist/src/builder/store/useLayoutStore.d.ts +7 -0
  99. package/dist/src/builder/store/useSubmodalStore.d.ts +21 -0
  100. package/dist/src/builder/store/useTooltipStore.d.ts +6 -0
  101. package/dist/src/builder/ui/AnimatedPanel/index.d.ts +7 -0
  102. package/dist/src/builder/ui/ColorPicker/index.d.ts +11 -0
  103. package/dist/src/builder/ui/ColorPicker/modal.d.ts +2 -0
  104. package/dist/src/builder/ui/Loader/index.d.ts +1 -0
  105. package/dist/src/builder/ui/Notification/index.d.ts +13 -0
  106. package/dist/src/builder/ui/Picker/index.d.ts +9 -0
  107. package/dist/src/builder/ui/Radio/index.d.ts +13 -0
  108. package/dist/src/builder/ui/Submodal/index.d.ts +10 -0
  109. package/dist/src/builder/ui/Tooltip/index.d.ts +6 -0
  110. package/dist/src/builder/utils/formatLabel.d.ts +1 -0
  111. package/dist/src/builder/utils/getDisplayName.d.ts +1 -0
  112. package/dist/src/builder/utils/getModalPosition.d.ts +4 -0
  113. package/dist/src/builder/utils/index.d.ts +3 -0
  114. package/dist/src/components/lazy-pages.d.ts +22 -0
  115. package/dist/src/constants/aspectRatio.d.ts +11 -0
  116. package/dist/src/constants/blocks.d.ts +79 -0
  117. package/dist/src/constants/color-variables.d.ts +48 -0
  118. package/dist/src/constants/device.d.ts +6 -0
  119. package/dist/src/constants/font.d.ts +3 -0
  120. package/dist/src/constants/icon.d.ts +2 -0
  121. package/dist/src/constants/index.d.ts +13 -0
  122. package/dist/src/constants/local-host.d.ts +1 -0
  123. package/dist/src/constants/navbar.d.ts +8 -0
  124. package/dist/src/constants/notification.d.ts +16 -0
  125. package/dist/src/constants/pages.d.ts +22 -0
  126. package/dist/src/constants/radius-variables.d.ts +15 -0
  127. package/dist/src/constants/text-font-keys.d.ts +3 -0
  128. package/dist/src/constants/theme-settings.d.ts +154 -0
  129. package/dist/src/exports.d.ts +17 -0
  130. package/dist/src/hooks/useIconRegistration.d.ts +37 -0
  131. package/dist/src/lib/createTicket.d.ts +1 -0
  132. package/dist/src/lib/generateDynamicStyles.d.ts +2 -0
  133. package/dist/src/lib/getDynamicRoutes.d.ts +1 -0
  134. package/dist/src/lib/hotReload.d.ts +1 -0
  135. package/dist/src/lib/index.d.ts +9 -0
  136. package/dist/src/lib/injectStylesToDOM.d.ts +1 -0
  137. package/dist/src/lib/loadCustomFonts.d.ts +1 -0
  138. package/dist/src/lib/setupDynamicFonts.d.ts +2 -0
  139. package/dist/src/lib/splitTextIntoSpans.d.ts +1 -0
  140. package/dist/src/lib/useBuilderPages.d.ts +1 -0
  141. package/dist/src/main.d.ts +1 -0
  142. package/dist/src/pages/active-page/index.d.ts +5 -0
  143. package/dist/src/pages/balance/balance-modal.d.ts +6 -0
  144. package/dist/src/pages/balance/index.d.ts +1 -0
  145. package/dist/src/pages/balance/model.d.ts +6 -0
  146. package/dist/src/pages/builder/index.d.ts +12 -0
  147. package/dist/src/pages/builder/utils/index.d.ts +1 -0
  148. package/dist/src/pages/charge/index.d.ts +1 -0
  149. package/dist/src/pages/checkout/index.d.ts +2 -0
  150. package/dist/src/pages/checkout/model.d.ts +1 -0
  151. package/dist/src/pages/dynamic-error-page/index.d.ts +2 -0
  152. package/dist/src/pages/dynamic-page/api/index.d.ts +1 -0
  153. package/dist/src/pages/dynamic-page/index.d.ts +6 -0
  154. package/dist/src/pages/error-page/api/index.d.ts +7 -0
  155. package/dist/src/pages/error-page/index.d.ts +1 -0
  156. package/dist/src/pages/home/index.d.ts +6 -0
  157. package/dist/src/pages/home/model.d.ts +26 -0
  158. package/dist/src/pages/maintenance/index.d.ts +2 -0
  159. package/dist/src/pages/not-found-page/index.d.ts +2 -0
  160. package/dist/src/pages/order/index.d.ts +1 -0
  161. package/dist/src/pages/order/model.d.ts +92 -0
  162. package/dist/src/pages/orders/index.d.ts +1 -0
  163. package/dist/src/pages/orders/model.d.ts +4 -0
  164. package/dist/src/pages/rewards/index.d.ts +6 -0
  165. package/dist/src/pages/router-error-page/index.d.ts +3 -0
  166. package/dist/src/pages/subscription/index.d.ts +1 -0
  167. package/dist/src/pages/subscription/model.d.ts +1 -0
  168. package/dist/src/pages/subscriptions/index.d.ts +1 -0
  169. package/dist/src/pages/subscriptions/model.d.ts +6 -0
  170. package/dist/src/pages/ticket/index.d.ts +1 -0
  171. package/dist/src/pages/ticket/model.d.ts +24 -0
  172. package/dist/src/pages/tickets/index.d.ts +1 -0
  173. package/dist/src/pages/tickets/model.d.ts +21 -0
  174. package/dist/src/pages/top-up-balance/index.d.ts +1 -0
  175. package/dist/src/pages/validation/index.d.ts +5 -0
  176. package/dist/src/pages/wrapper-page/index.d.ts +2 -0
  177. package/dist/src/shared/constants/aspect-ratio.d.ts +11 -0
  178. package/dist/src/shared/constants/color-variables.d.ts +48 -0
  179. package/dist/src/shared/constants/icon.d.ts +2 -0
  180. package/dist/src/shared/constants/index.d.ts +5 -0
  181. package/dist/src/shared/constants/notification.d.ts +16 -0
  182. package/dist/src/shared/constants/text-font-keys.d.ts +3 -0
  183. package/dist/src/storefront/api/auth.d.ts +22 -0
  184. package/dist/src/storefront/api/charge.d.ts +1 -0
  185. package/dist/src/storefront/api/coupon.d.ts +2 -0
  186. package/dist/src/storefront/api/customer.d.ts +6 -0
  187. package/dist/src/storefront/api/discord.d.ts +8 -0
  188. package/dist/src/storefront/api/fetchGatewaysDetail.d.ts +1 -0
  189. package/dist/src/storefront/api/fetchGeneral.d.ts +1 -0
  190. package/dist/src/storefront/api/fetchThemeAndSettings.d.ts +1 -0
  191. package/dist/src/storefront/api/fetchWithPages.d.ts +11 -0
  192. package/dist/src/storefront/api/index.d.ts +19 -0
  193. package/dist/src/storefront/api/order.d.ts +14 -0
  194. package/dist/src/storefront/api/postBalanceTopUp.d.ts +2 -0
  195. package/dist/src/storefront/api/postCashappLink.d.ts +3 -0
  196. package/dist/src/storefront/api/referral.d.ts +3 -0
  197. package/dist/src/storefront/api/reviews.d.ts +2 -0
  198. package/dist/src/storefront/api/rewards.d.ts +2 -0
  199. package/dist/src/storefront/api/signUpReferral.d.ts +2 -0
  200. package/dist/src/storefront/api/store.d.ts +6 -0
  201. package/dist/src/storefront/api/subscription.d.ts +22 -0
  202. package/dist/src/storefront/api/ticket.d.ts +7 -0
  203. package/dist/src/storefront/api/transactions.d.ts +5 -0
  204. package/dist/src/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
  205. package/dist/src/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
  206. package/dist/src/storefront/components/Auth/index.d.ts +11 -0
  207. package/dist/src/storefront/components/Auth/otp-input.d.ts +7 -0
  208. package/dist/src/storefront/components/AuthModal/index.d.ts +6 -0
  209. package/dist/src/storefront/components/CancelSubscription/index.d.ts +8 -0
  210. package/dist/src/storefront/components/CashAppVerify/index.d.ts +7 -0
  211. package/dist/src/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
  212. package/dist/src/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
  213. package/dist/src/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
  214. package/dist/src/storefront/components/ChargeItems/index.d.ts +7 -0
  215. package/dist/src/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
  216. package/dist/src/storefront/components/CheckoutFooter/index.d.ts +6 -0
  217. package/dist/src/storefront/components/CheckoutHeader/index.d.ts +7 -0
  218. package/dist/src/storefront/components/CheckoutItems/index.d.ts +18 -0
  219. package/dist/src/storefront/components/CheckoutOperational/index.d.ts +26 -0
  220. package/dist/src/storefront/components/CheckoutOrderMainData/index.d.ts +10 -0
  221. package/dist/src/storefront/components/CheckoutPrices/index.d.ts +15 -0
  222. package/dist/src/storefront/components/CheckoutProduct/index.d.ts +8 -0
  223. package/dist/src/storefront/components/CheckoutProduct/model.d.ts +1 -0
  224. package/dist/src/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
  225. package/dist/src/storefront/components/ConnectDiscord/index.d.ts +6 -0
  226. package/dist/src/storefront/components/ConnectDiscord/model.d.ts +22 -0
  227. package/dist/src/storefront/components/Coupon/index.d.ts +12 -0
  228. package/dist/src/storefront/components/CustomFields/index.d.ts +13 -0
  229. package/dist/src/storefront/components/CustomerDashboard/index.d.ts +2 -0
  230. package/dist/src/storefront/components/DeliveryItem/index.d.ts +7 -0
  231. package/dist/src/storefront/components/InsufficientBalance/index.d.ts +8 -0
  232. package/dist/src/storefront/components/LeaveAReview/index.d.ts +9 -0
  233. package/dist/src/storefront/components/NoItemsBlock/index.d.ts +8 -0
  234. package/dist/src/storefront/components/OpenDelivery/index.d.ts +8 -0
  235. package/dist/src/storefront/components/OrderStatusBlock/index.d.ts +9 -0
  236. package/dist/src/storefront/components/OrdersTable/index.d.ts +16 -0
  237. package/dist/src/storefront/components/PageLoading/index.d.ts +7 -0
  238. package/dist/src/storefront/components/PageTitle/index.d.ts +6 -0
  239. package/dist/src/storefront/components/Pagination/index.d.ts +15 -0
  240. package/dist/src/storefront/components/PayPalF&FNote/index.d.ts +8 -0
  241. package/dist/src/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +14 -0
  242. package/dist/src/storefront/components/PaymentMethod/index.d.ts +16 -0
  243. package/dist/src/storefront/components/PaymentMethod/model.d.ts +21 -0
  244. package/dist/src/storefront/components/PaymentMethods/index.d.ts +19 -0
  245. package/dist/src/storefront/components/PreviewRender/index.d.ts +23 -0
  246. package/dist/src/storefront/components/ProcessingPayment/index.d.ts +1 -0
  247. package/dist/src/storefront/components/ReferralBlock/index.d.ts +18 -0
  248. package/dist/src/storefront/components/ReferralBlock/mask.d.ts +1 -0
  249. package/dist/src/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
  250. package/dist/src/storefront/components/ReferralBlock/step-item.d.ts +8 -0
  251. package/dist/src/storefront/components/SecuredBySsl/index.d.ts +6 -0
  252. package/dist/src/storefront/components/Sidebar/card.d.ts +7 -0
  253. package/dist/src/storefront/components/Sidebar/index.d.ts +4 -0
  254. package/dist/src/storefront/components/Sidebar/nav-list.d.ts +5 -0
  255. package/dist/src/storefront/components/StatItem/index.d.ts +15 -0
  256. package/dist/src/storefront/components/StatusIndicator/index.d.ts +7 -0
  257. package/dist/src/storefront/components/SubmitReview/index.d.ts +7 -0
  258. package/dist/src/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
  259. package/dist/src/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
  260. package/dist/src/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
  261. package/dist/src/storefront/components/SubscriptionProduct/index.d.ts +7 -0
  262. package/dist/src/storefront/components/SubscriptionProduct/model.d.ts +9 -0
  263. package/dist/src/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
  264. package/dist/src/storefront/components/SubscriptionsTable/index.d.ts +11 -0
  265. package/dist/src/storefront/components/Table/index.d.ts +20 -0
  266. package/dist/src/storefront/components/TermsOfService/index.d.ts +1 -0
  267. package/dist/src/storefront/components/TicketRow/index.d.ts +5 -0
  268. package/dist/src/storefront/components/TrackPayment/index.d.ts +8 -0
  269. package/dist/src/storefront/components/index.d.ts +53 -0
  270. package/dist/src/storefront/constants/actions.d.ts +3 -0
  271. package/dist/src/storefront/constants/api.d.ts +2 -0
  272. package/dist/src/storefront/constants/index.d.ts +3 -0
  273. package/dist/src/storefront/constants/referralSteps.d.ts +6 -0
  274. package/dist/src/storefront/constants/routes.d.ts +15 -0
  275. package/dist/src/storefront/hooks/index.d.ts +2 -0
  276. package/dist/src/storefront/hooks/useCart.d.ts +186 -0
  277. package/dist/src/storefront/hooks/useCopy.d.ts +1 -0
  278. package/dist/src/storefront/index.d.ts +11 -0
  279. package/dist/src/storefront/models/balance.d.ts +56 -0
  280. package/dist/src/storefront/models/charge.d.ts +76 -0
  281. package/dist/src/storefront/models/checkout.d.ts +21 -0
  282. package/dist/src/storefront/models/coupon.d.ts +5 -0
  283. package/dist/src/storefront/models/discord.d.ts +18 -0
  284. package/dist/src/storefront/models/gateway.d.ts +8 -0
  285. package/dist/src/storefront/models/index.d.ts +16 -0
  286. package/dist/src/storefront/models/order.d.ts +139 -0
  287. package/dist/src/storefront/models/payment.d.ts +16 -0
  288. package/dist/src/storefront/models/post.d.ts +5 -0
  289. package/dist/src/storefront/models/price.d.ts +5 -0
  290. package/dist/src/storefront/models/referral.d.ts +12 -0
  291. package/dist/src/storefront/models/referralCode.d.ts +3 -0
  292. package/dist/src/storefront/models/rewards.d.ts +72 -0
  293. package/dist/src/storefront/models/shop.d.ts +38 -0
  294. package/dist/src/storefront/models/subscription.d.ts +130 -0
  295. package/dist/src/storefront/models/transaction.d.ts +12 -0
  296. package/dist/src/storefront/store/index.d.ts +22 -0
  297. package/dist/src/storefront/store/useApiStore.d.ts +8 -0
  298. package/dist/src/storefront/store/useBlocksStore.d.ts +23 -0
  299. package/dist/src/storefront/store/useCartStore.d.ts +48 -0
  300. package/dist/src/storefront/store/useChooseImageStore.d.ts +11 -0
  301. package/dist/src/storefront/store/useConfirmationModalStore.d.ts +10 -0
  302. package/dist/src/storefront/store/useCustomerDashboardStore.d.ts +37 -0
  303. package/dist/src/storefront/store/useDiscordStore.d.ts +7 -0
  304. package/dist/src/storefront/store/useErrorStore.d.ts +12 -0
  305. package/dist/src/storefront/store/useGeneralStore.d.ts +9 -0
  306. package/dist/src/storefront/store/useHistoryState.d.ts +20 -0
  307. package/dist/src/storefront/store/useLayersStore.d.ts +42 -0
  308. package/dist/src/storefront/store/useModalStore.d.ts +6 -0
  309. package/dist/src/storefront/store/useNavbarStore.d.ts +7 -0
  310. package/dist/src/storefront/store/useNotificationStore.d.ts +7 -0
  311. package/dist/src/storefront/store/usePagesStore.d.ts +33 -0
  312. package/dist/src/storefront/store/usePaginationPagesStore.d.ts +7 -0
  313. package/dist/src/storefront/store/usePreviewStore.d.ts +26 -0
  314. package/dist/src/storefront/store/useSettingsStore.d.ts +12 -0
  315. package/dist/src/storefront/store/useShareLinkStore.d.ts +6 -0
  316. package/dist/src/storefront/store/useStorefrontStore.d.ts +23 -0
  317. package/dist/src/storefront/store/useSubscriptionStore.d.ts +7 -0
  318. package/dist/src/storefront/store/useThemeSettingsStore.d.ts +21 -0
  319. package/dist/src/storefront/ui/ActiveBadge/index.d.ts +5 -0
  320. package/dist/src/storefront/ui/InputRange/index.d.ts +9 -0
  321. package/dist/src/storefront/ui/ProgressBar/index.d.ts +8 -0
  322. package/dist/src/storefront/ui/Rating/index.d.ts +8 -0
  323. package/dist/src/storefront/ui/Timer/index.d.ts +6 -0
  324. package/dist/src/storefront/ui/index.d.ts +5 -0
  325. package/dist/src/storefront/utils/MarkdownText.d.ts +5 -0
  326. package/dist/src/storefront/utils/checkParams.d.ts +5 -0
  327. package/dist/src/storefront/utils/checkToken.d.ts +1 -0
  328. package/dist/src/storefront/utils/clearQueryParams.d.ts +1 -0
  329. package/dist/src/storefront/utils/index.d.ts +16 -0
  330. package/dist/src/storefront/utils/parseDraftJsText.d.ts +1 -0
  331. package/dist/src/storefront/utils/recapcha.d.ts +13 -0
  332. package/dist/src/storefront/utils/resizeManager.d.ts +12 -0
  333. package/dist/src/storefront/utils/showNotification.d.ts +3 -0
  334. package/dist/src/storefront/utils/stable-text.d.ts +20 -0
  335. package/dist/src/storefront/utils/useAdaptiveStyles.d.ts +2 -0
  336. package/dist/src/storefront/utils/useBalance.d.ts +2 -0
  337. package/dist/src/storefront/utils/useCart.d.ts +1 -0
  338. package/dist/src/storefront/utils/useGeneralInfo.d.ts +4 -0
  339. package/dist/src/storefront/utils/useMarkdownIt.d.ts +2 -0
  340. package/dist/src/storefront/utils/useTrackingAnalytics.d.ts +2 -0
  341. package/dist/src/ui/Accordion/index.d.ts +8 -0
  342. package/dist/src/ui/AlignText/index.d.ts +7 -0
  343. package/dist/src/ui/BuilderModal/index.d.ts +9 -0
  344. package/dist/src/ui/Button/index.d.ts +16 -0
  345. package/dist/src/ui/ButtonSettings/index.d.ts +14 -0
  346. package/dist/src/ui/ButtonTypeSettings/index.d.ts +11 -0
  347. package/dist/src/ui/ButtonsSettings/index.d.ts +28 -0
  348. package/dist/src/ui/ButtonsSettings/popup.d.ts +13 -0
  349. package/dist/src/ui/CategorySettings/index.d.ts +48 -0
  350. package/dist/src/ui/Checkbox/index.d.ts +7 -0
  351. package/dist/src/ui/ChooseImage/api/index.d.ts +2 -0
  352. package/dist/src/ui/ChooseImage/index.d.ts +17 -0
  353. package/dist/src/ui/ConfirmationModal/index.d.ts +2 -0
  354. package/dist/src/ui/ErrorableBlock/index.d.ts +5 -0
  355. package/dist/src/ui/FormSettings/index.d.ts +65 -0
  356. package/dist/src/ui/FormSettings/popup.d.ts +70 -0
  357. package/dist/src/ui/GroupCardModal/index.d.ts +14 -0
  358. package/dist/src/ui/HeaderButtons/index.d.ts +47 -0
  359. package/dist/src/ui/Icon/index.d.ts +13 -0
  360. package/dist/src/ui/Input/index.d.ts +25 -0
  361. package/dist/src/ui/InputSettings/index.d.ts +22 -0
  362. package/dist/src/ui/ItemsSettings/index.d.ts +70 -0
  363. package/dist/src/ui/ItemsSettings/popup.d.ts +84 -0
  364. package/dist/src/ui/LayoutSettings/index.d.ts +13 -0
  365. package/dist/src/ui/Link/index.d.ts +10 -0
  366. package/dist/src/ui/ListingSelector/index.d.ts +134 -0
  367. package/dist/src/ui/ListingSelector/popup.d.ts +20 -0
  368. package/dist/src/ui/Loader/index.d.ts +4 -0
  369. package/dist/src/ui/LoaderBuilder/index.d.ts +2 -0
  370. package/dist/src/ui/MetaInfoPost/index.d.ts +6 -0
  371. package/dist/src/ui/Modal/index.d.ts +9 -0
  372. package/dist/src/ui/NotificationAntistock/index.d.ts +11 -0
  373. package/dist/src/ui/NotificationBuilder/index.d.ts +13 -0
  374. package/dist/src/ui/OtherSettings/index.d.ts +15 -0
  375. package/dist/src/ui/PagesSettings/index.d.ts +26 -0
  376. package/dist/src/ui/ProductCardButtons/index.d.ts +10 -0
  377. package/dist/src/ui/ProductCardModal/index.d.ts +10 -0
  378. package/dist/src/ui/ProductOptions/index.d.ts +13 -0
  379. package/dist/src/ui/Radio/index.d.ts +14 -0
  380. package/dist/src/ui/RangeSelector/index.d.ts +11 -0
  381. package/dist/src/ui/Select/index.d.ts +20 -0
  382. package/dist/src/ui/Select/utils/index.d.ts +2 -0
  383. package/dist/src/ui/SelectInfiniteList/index.d.ts +20 -0
  384. package/dist/src/ui/SelectInfiniteList/utils/index.d.ts +2 -0
  385. package/dist/src/ui/SelectTypeText/index.d.ts +8 -0
  386. package/dist/src/ui/ShareLink/index.d.ts +5 -0
  387. package/dist/src/ui/Switch/index.d.ts +11 -0
  388. package/dist/src/ui/TextSettings/index.d.ts +20 -0
  389. package/dist/src/ui/Textarea/index.d.ts +13 -0
  390. package/dist/src/ui/TextareaSettings/index.d.ts +11 -0
  391. package/dist/src/ui/Tip/index.d.ts +10 -0
  392. package/dist/src/ui/TypesText/index.d.ts +7 -0
  393. package/dist/src/ui/Wrapper/index.d.ts +11 -0
  394. package/dist/src/ui/index.d.ts +44 -0
  395. package/dist/{subscription-CfSbneE9.js → subscription-DIDUTEI3.js} +5 -5
  396. package/dist/{subscription-CN0GP1i3.cjs → subscription-iNnLGi0T.cjs} +1 -1
  397. package/dist/{ticket-CDRAyz3r.js → ticket-B0VGIvyK.js} +5 -5
  398. package/dist/{ticket-Disch8gb.cjs → ticket-DXz_-29l.cjs} +1 -1
  399. package/dist/{top-up-r9pRDkRB.cjs → top-up-B7E7FUjn.cjs} +1 -1
  400. package/dist/{top-up-DEMHwk2Q.js → top-up-BhB8jhP6.js} +5 -5
  401. package/dist/ui-components-BTotDG_w.js +6447 -0
  402. package/dist/ui-components-CWLDlDmG.cjs +1 -0
  403. package/dist/ui.cjs.js +1 -1
  404. package/dist/ui.es.js +6 -6
  405. package/dist/{validation-HSAYPvwb.cjs → validation-BVAD1q1L.cjs} +1 -1
  406. package/dist/{validation-BwaClAh8.js → validation-jCwzu5MC.js} +5 -5
  407. package/package.json +3 -2
  408. package/dist/App-Clwk7ILO.js +0 -315
  409. package/dist/App-txB8kbk7.cjs +0 -1
  410. package/dist/ui-components-CDqqhvCf.js +0 -11007
  411. package/dist/ui-components-DcRUDS1O.cjs +0 -1
@@ -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
- };
@@ -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;