@billgangcom/theme-lib 1.110.4 → 1.110.5

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 (413) hide show
  1. package/dist/{App-txB8kbk7.cjs → App-BwVII14K.cjs} +1 -1
  2. package/dist/{App-Clwk7ILO.js → App-ytDoD626.js} +21 -21
  3. package/dist/{builder-4Ke7cjNO.cjs → builder-BLDXBzNl.cjs} +2 -2
  4. package/dist/{builder-CtBMhTyK.js → builder-C64dSizd.js} +5 -5
  5. package/dist/{builder-components-Dz2YlUqA.cjs → builder-components-DHTh1VoV.cjs} +1 -1
  6. package/dist/{builder-components-Bm7ta9iB.js → builder-components-FfKRBcLk.js} +4 -4
  7. package/dist/builder.cjs.js +1 -1
  8. package/dist/builder.es.js +3 -3
  9. package/dist/{charge-C5z1ecd1.cjs → charge-BHULUGTw.cjs} +1 -1
  10. package/dist/{charge-APYiCYYq.js → charge-BcGATQ-j.js} +6 -6
  11. package/dist/{checkout-Bher7FGW.cjs → checkout-C_l1R6-u.cjs} +1 -1
  12. package/dist/{checkout-D3Mpwqsj.js → checkout-DzoPtqLk.js} +5 -5
  13. package/dist/exports.cjs.js +1 -1
  14. package/dist/exports.es.js +6 -6
  15. package/dist/{index-Da1yGZge.js → index-BLcplkmB.js} +1 -1
  16. package/dist/{index-B1QfR20x.cjs → index-BWeBpiO8.cjs} +1 -1
  17. package/dist/{index-kt3o_lGR.js → index-Bj_McHvo.js} +5 -5
  18. package/dist/{index-BMaA9qqZ.cjs → index-C23qWl0W.cjs} +1 -1
  19. package/dist/{index-C8snA9wm.js → index-C2mw0EhF.js} +5 -5
  20. package/dist/{index-DjOTY2Jm.js → index-Cl9CSdbF.js} +5 -5
  21. package/dist/{index-mEkddX3U.cjs → index-DugPvosX.cjs} +1 -1
  22. package/dist/{index-BAFG_paG.js → index-DyfD4eoN.js} +5 -5
  23. package/dist/{index-DgsmVqD7.cjs → index-T0XXq2pq.cjs} +1 -1
  24. package/dist/{index-Crr7n_oM.cjs → index-T7iWZCzU.cjs} +1 -1
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.d.ts +22 -0
  27. package/dist/index.es.js +7 -7
  28. package/dist/{order-BDiqGe6L.cjs → order-_mx45K-F.cjs} +1 -1
  29. package/dist/{order-DLMk34KA.js → order-rZVNwk6i.js} +5 -5
  30. package/dist/src/App.d.ts +18 -0
  31. package/dist/src/abstractions/IBlock.d.ts +14 -0
  32. package/dist/src/abstractions/ISettings.d.ts +3 -0
  33. package/dist/src/abstractions/PageContext.d.ts +121 -0
  34. package/dist/src/abstractions/Variable.d.ts +28 -0
  35. package/dist/src/abstractions/color-variables.d.ts +48 -0
  36. package/dist/src/abstractions/index.d.ts +4 -0
  37. package/dist/src/api/constants.d.ts +8 -0
  38. package/dist/src/api/index.d.ts +2 -0
  39. package/dist/src/api/request.d.ts +17 -0
  40. package/dist/src/assets/icon-registry/IconRegistry.d.ts +22 -0
  41. package/dist/src/assets/icon-registry/libraryIcons.d.ts +1 -0
  42. package/dist/src/assets/icon-registry/runtime.d.ts +8 -0
  43. package/dist/src/assets/icons/index.d.ts +3 -0
  44. package/dist/src/assets/storefront-icons/index.d.ts +23 -0
  45. package/dist/src/builder/api/fetchAll.d.ts +1 -0
  46. package/dist/src/builder/api/fetchData.d.ts +14 -0
  47. package/dist/src/builder/api/fetchFontsData.d.ts +1 -0
  48. package/dist/src/builder/api/fetchPagesData.d.ts +1 -0
  49. package/dist/src/builder/api/index.d.ts +4 -0
  50. package/dist/src/builder/components/AddSections/index.d.ts +5 -0
  51. package/dist/src/builder/components/AddSections/utils/index.d.ts +5 -0
  52. package/dist/src/builder/components/AddSectionsBlock/index.d.ts +7 -0
  53. package/dist/src/builder/components/BlockColors/index.d.ts +7 -0
  54. package/dist/src/builder/components/BlockSettings/index.d.ts +2 -0
  55. package/dist/src/builder/components/BlockSettings/settings.d.ts +7 -0
  56. package/dist/src/builder/components/BlockSettingsHeader/index.d.ts +8 -0
  57. package/dist/src/builder/components/ExitButton/index.d.ts +5 -0
  58. package/dist/src/builder/components/Header/index.d.ts +5 -0
  59. package/dist/src/builder/components/HeaderButtons/index.d.ts +5 -0
  60. package/dist/src/builder/components/HeaderDevices/index.d.ts +5 -0
  61. package/dist/src/builder/components/HeaderPreviewButton/index.d.ts +5 -0
  62. package/dist/src/builder/components/HeaderSaveButton/api/index.d.ts +2 -0
  63. package/dist/src/builder/components/HeaderSaveButton/index.d.ts +7 -0
  64. package/dist/src/builder/components/HeaderSaveButton/utils/index.d.ts +6 -0
  65. package/dist/src/builder/components/HeaderSettings/index.d.ts +4 -0
  66. package/dist/src/builder/components/HeaderSettingsLanguage/index.d.ts +4 -0
  67. package/dist/src/builder/components/HeaderSettingsPages/api/index.d.ts +1 -0
  68. package/dist/src/builder/components/HeaderSettingsPages/index.d.ts +5 -0
  69. package/dist/src/builder/components/HeaderSettingsZoom/index.d.ts +5 -0
  70. package/dist/src/builder/components/HeaderSwitchTheme/index.d.ts +4 -0
  71. package/dist/src/builder/components/ModifyPage/index.d.ts +5 -0
  72. package/dist/src/builder/components/Navbar/index.d.ts +1 -0
  73. package/dist/src/builder/components/Preview/index.d.ts +2 -0
  74. package/dist/src/builder/components/PreviewBlockSidebar/index.d.ts +2 -0
  75. package/dist/src/builder/components/PreviewContent/index.d.ts +6 -0
  76. package/dist/src/builder/components/PreviewHeader/index.d.ts +2 -0
  77. package/dist/src/builder/components/Sidebar/index.d.ts +4 -0
  78. package/dist/src/builder/components/SidebarLayer/index.d.ts +7 -0
  79. package/dist/src/builder/components/SidebarLayers/index.d.ts +10 -0
  80. package/dist/src/builder/components/SidebarSettings/index.d.ts +2 -0
  81. package/dist/src/builder/components/SidebarTheme/index.d.ts +4 -0
  82. package/dist/src/builder/components/ThemeSettings/index.d.ts +4 -0
  83. package/dist/src/builder/components/ThemeSettingsBorders/index.d.ts +5 -0
  84. package/dist/src/builder/components/ThemeSettingsButtons/index.d.ts +5 -0
  85. package/dist/src/builder/components/ThemeSettingsCategories/index.d.ts +1 -0
  86. package/dist/src/builder/components/ThemeSettingsColors/index.d.ts +5 -0
  87. package/dist/src/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +2 -0
  88. package/dist/src/builder/components/ThemeSettingsColors/utils/index.d.ts +1 -0
  89. package/dist/src/builder/components/ThemeSettingsCurrentColors/index.d.ts +5 -0
  90. package/dist/src/builder/components/ThemeSettingsCurrentColors/tip.d.ts +5 -0
  91. package/dist/src/builder/components/ThemeSettingsCurrentFont/index.d.ts +5 -0
  92. package/dist/src/builder/components/ThemeSettingsFonts/index.d.ts +5 -0
  93. package/dist/src/builder/components/ThemeSettingsHeaderItem/index.d.ts +7 -0
  94. package/dist/src/builder/components/ThemeSettingsInputs/index.d.ts +5 -0
  95. package/dist/src/builder/constants/block-icons.d.ts +18 -0
  96. package/dist/src/builder/index.d.ts +10 -0
  97. package/dist/src/builder/layout.d.ts +5 -0
  98. package/dist/src/builder/store/index.d.ts +6 -0
  99. package/dist/src/builder/store/useColorPickerStore.d.ts +53 -0
  100. package/dist/src/builder/store/useDeviceStore.d.ts +7 -0
  101. package/dist/src/builder/store/useFontsStore.d.ts +20 -0
  102. package/dist/src/builder/store/useLayoutStore.d.ts +7 -0
  103. package/dist/src/builder/store/useSubmodalStore.d.ts +21 -0
  104. package/dist/src/builder/store/useTooltipStore.d.ts +6 -0
  105. package/dist/src/builder/ui/AnimatedPanel/index.d.ts +7 -0
  106. package/dist/src/builder/ui/ColorPicker/index.d.ts +11 -0
  107. package/dist/src/builder/ui/ColorPicker/modal.d.ts +2 -0
  108. package/dist/src/builder/ui/Loader/index.d.ts +1 -0
  109. package/dist/src/builder/ui/Notification/index.d.ts +13 -0
  110. package/dist/src/builder/ui/Picker/index.d.ts +9 -0
  111. package/dist/src/builder/ui/Radio/index.d.ts +13 -0
  112. package/dist/src/builder/ui/Submodal/index.d.ts +10 -0
  113. package/dist/src/builder/ui/Tooltip/index.d.ts +6 -0
  114. package/dist/src/builder/utils/formatLabel.d.ts +1 -0
  115. package/dist/src/builder/utils/getDisplayName.d.ts +1 -0
  116. package/dist/src/builder/utils/getModalPosition.d.ts +4 -0
  117. package/dist/src/builder/utils/index.d.ts +3 -0
  118. package/dist/src/components/lazy-pages.d.ts +22 -0
  119. package/dist/src/constants/aspectRatio.d.ts +11 -0
  120. package/dist/src/constants/blocks.d.ts +79 -0
  121. package/dist/src/constants/color-variables.d.ts +48 -0
  122. package/dist/src/constants/device.d.ts +6 -0
  123. package/dist/src/constants/font.d.ts +3 -0
  124. package/dist/src/constants/icon.d.ts +2 -0
  125. package/dist/src/constants/index.d.ts +13 -0
  126. package/dist/src/constants/local-host.d.ts +1 -0
  127. package/dist/src/constants/navbar.d.ts +8 -0
  128. package/dist/src/constants/notification.d.ts +16 -0
  129. package/dist/src/constants/pages.d.ts +22 -0
  130. package/dist/src/constants/radius-variables.d.ts +15 -0
  131. package/dist/src/constants/text-font-keys.d.ts +3 -0
  132. package/dist/src/constants/theme-settings.d.ts +154 -0
  133. package/dist/src/exports.d.ts +17 -0
  134. package/dist/src/hooks/useIconRegistration.d.ts +37 -0
  135. package/dist/src/lib/createTicket.d.ts +1 -0
  136. package/dist/src/lib/generateDynamicStyles.d.ts +2 -0
  137. package/dist/src/lib/getDynamicRoutes.d.ts +1 -0
  138. package/dist/src/lib/hotReload.d.ts +1 -0
  139. package/dist/src/lib/index.d.ts +9 -0
  140. package/dist/src/lib/injectStylesToDOM.d.ts +1 -0
  141. package/dist/src/lib/loadCustomFonts.d.ts +1 -0
  142. package/dist/src/lib/setupDynamicFonts.d.ts +2 -0
  143. package/dist/src/lib/splitTextIntoSpans.d.ts +1 -0
  144. package/dist/src/lib/useBuilderPages.d.ts +1 -0
  145. package/dist/src/main.d.ts +1 -0
  146. package/dist/src/pages/active-page/index.d.ts +5 -0
  147. package/dist/src/pages/balance/balance-modal.d.ts +6 -0
  148. package/dist/src/pages/balance/index.d.ts +1 -0
  149. package/dist/src/pages/balance/model.d.ts +6 -0
  150. package/dist/src/pages/builder/index.d.ts +12 -0
  151. package/dist/src/pages/builder/utils/index.d.ts +1 -0
  152. package/dist/src/pages/charge/index.d.ts +1 -0
  153. package/dist/src/pages/checkout/index.d.ts +2 -0
  154. package/dist/src/pages/checkout/model.d.ts +1 -0
  155. package/dist/src/pages/dynamic-error-page/index.d.ts +2 -0
  156. package/dist/src/pages/dynamic-page/api/index.d.ts +1 -0
  157. package/dist/src/pages/dynamic-page/index.d.ts +6 -0
  158. package/dist/src/pages/error-page/api/index.d.ts +7 -0
  159. package/dist/src/pages/error-page/index.d.ts +1 -0
  160. package/dist/src/pages/home/index.d.ts +6 -0
  161. package/dist/src/pages/home/model.d.ts +26 -0
  162. package/dist/src/pages/maintenance/index.d.ts +2 -0
  163. package/dist/src/pages/not-found-page/index.d.ts +2 -0
  164. package/dist/src/pages/order/index.d.ts +1 -0
  165. package/dist/src/pages/order/model.d.ts +92 -0
  166. package/dist/src/pages/orders/index.d.ts +1 -0
  167. package/dist/src/pages/orders/model.d.ts +4 -0
  168. package/dist/src/pages/rewards/index.d.ts +6 -0
  169. package/dist/src/pages/router-error-page/index.d.ts +3 -0
  170. package/dist/src/pages/subscription/index.d.ts +1 -0
  171. package/dist/src/pages/subscription/model.d.ts +1 -0
  172. package/dist/src/pages/subscriptions/index.d.ts +1 -0
  173. package/dist/src/pages/subscriptions/model.d.ts +6 -0
  174. package/dist/src/pages/ticket/index.d.ts +1 -0
  175. package/dist/src/pages/ticket/model.d.ts +24 -0
  176. package/dist/src/pages/tickets/index.d.ts +1 -0
  177. package/dist/src/pages/tickets/model.d.ts +21 -0
  178. package/dist/src/pages/top-up-balance/index.d.ts +1 -0
  179. package/dist/src/pages/validation/index.d.ts +5 -0
  180. package/dist/src/pages/wrapper-page/index.d.ts +2 -0
  181. package/dist/src/shared/constants/aspect-ratio.d.ts +11 -0
  182. package/dist/src/shared/constants/color-variables.d.ts +48 -0
  183. package/dist/src/shared/constants/icon.d.ts +2 -0
  184. package/dist/src/shared/constants/index.d.ts +5 -0
  185. package/dist/src/shared/constants/notification.d.ts +16 -0
  186. package/dist/src/shared/constants/text-font-keys.d.ts +3 -0
  187. package/dist/src/storefront/api/auth.d.ts +22 -0
  188. package/dist/src/storefront/api/charge.d.ts +1 -0
  189. package/dist/src/storefront/api/coupon.d.ts +2 -0
  190. package/dist/src/storefront/api/customer.d.ts +6 -0
  191. package/dist/src/storefront/api/discord.d.ts +8 -0
  192. package/dist/src/storefront/api/fetchGatewaysDetail.d.ts +1 -0
  193. package/dist/src/storefront/api/fetchGeneral.d.ts +1 -0
  194. package/dist/src/storefront/api/fetchThemeAndSettings.d.ts +1 -0
  195. package/dist/src/storefront/api/fetchWithPages.d.ts +11 -0
  196. package/dist/src/storefront/api/index.d.ts +19 -0
  197. package/dist/src/storefront/api/order.d.ts +14 -0
  198. package/dist/src/storefront/api/postBalanceTopUp.d.ts +2 -0
  199. package/dist/src/storefront/api/postCashappLink.d.ts +3 -0
  200. package/dist/src/storefront/api/referral.d.ts +3 -0
  201. package/dist/src/storefront/api/reviews.d.ts +2 -0
  202. package/dist/src/storefront/api/rewards.d.ts +2 -0
  203. package/dist/src/storefront/api/signUpReferral.d.ts +2 -0
  204. package/dist/src/storefront/api/store.d.ts +6 -0
  205. package/dist/src/storefront/api/subscription.d.ts +22 -0
  206. package/dist/src/storefront/api/ticket.d.ts +7 -0
  207. package/dist/src/storefront/api/transactions.d.ts +5 -0
  208. package/dist/src/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
  209. package/dist/src/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
  210. package/dist/src/storefront/components/Auth/index.d.ts +11 -0
  211. package/dist/src/storefront/components/Auth/otp-input.d.ts +7 -0
  212. package/dist/src/storefront/components/AuthModal/index.d.ts +6 -0
  213. package/dist/src/storefront/components/CancelSubscription/index.d.ts +8 -0
  214. package/dist/src/storefront/components/CashAppVerify/index.d.ts +7 -0
  215. package/dist/src/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
  216. package/dist/src/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
  217. package/dist/src/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
  218. package/dist/src/storefront/components/ChargeItems/index.d.ts +7 -0
  219. package/dist/src/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
  220. package/dist/src/storefront/components/CheckoutFooter/index.d.ts +6 -0
  221. package/dist/src/storefront/components/CheckoutHeader/index.d.ts +7 -0
  222. package/dist/src/storefront/components/CheckoutItems/index.d.ts +18 -0
  223. package/dist/src/storefront/components/CheckoutOperational/index.d.ts +26 -0
  224. package/dist/src/storefront/components/CheckoutOrderMainData/index.d.ts +10 -0
  225. package/dist/src/storefront/components/CheckoutPrices/index.d.ts +15 -0
  226. package/dist/src/storefront/components/CheckoutProduct/index.d.ts +8 -0
  227. package/dist/src/storefront/components/CheckoutProduct/model.d.ts +1 -0
  228. package/dist/src/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
  229. package/dist/src/storefront/components/ConnectDiscord/index.d.ts +6 -0
  230. package/dist/src/storefront/components/ConnectDiscord/model.d.ts +22 -0
  231. package/dist/src/storefront/components/Coupon/index.d.ts +12 -0
  232. package/dist/src/storefront/components/CustomFields/index.d.ts +13 -0
  233. package/dist/src/storefront/components/CustomerDashboard/index.d.ts +2 -0
  234. package/dist/src/storefront/components/DeliveryItem/index.d.ts +7 -0
  235. package/dist/src/storefront/components/InsufficientBalance/index.d.ts +8 -0
  236. package/dist/src/storefront/components/LeaveAReview/index.d.ts +9 -0
  237. package/dist/src/storefront/components/NoItemsBlock/index.d.ts +8 -0
  238. package/dist/src/storefront/components/OpenDelivery/index.d.ts +8 -0
  239. package/dist/src/storefront/components/OrderStatusBlock/index.d.ts +9 -0
  240. package/dist/src/storefront/components/OrdersTable/index.d.ts +16 -0
  241. package/dist/src/storefront/components/PageLoading/index.d.ts +7 -0
  242. package/dist/src/storefront/components/PageTitle/index.d.ts +6 -0
  243. package/dist/src/storefront/components/Pagination/index.d.ts +15 -0
  244. package/dist/src/storefront/components/PayPalF&FNote/index.d.ts +8 -0
  245. package/dist/src/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +14 -0
  246. package/dist/src/storefront/components/PaymentMethod/index.d.ts +16 -0
  247. package/dist/src/storefront/components/PaymentMethod/model.d.ts +21 -0
  248. package/dist/src/storefront/components/PaymentMethods/index.d.ts +19 -0
  249. package/dist/src/storefront/components/PreviewRender/index.d.ts +23 -0
  250. package/dist/src/storefront/components/ProcessingPayment/index.d.ts +1 -0
  251. package/dist/src/storefront/components/ReferralBlock/index.d.ts +18 -0
  252. package/dist/src/storefront/components/ReferralBlock/mask.d.ts +1 -0
  253. package/dist/src/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
  254. package/dist/src/storefront/components/ReferralBlock/step-item.d.ts +8 -0
  255. package/dist/src/storefront/components/SecuredBySsl/index.d.ts +6 -0
  256. package/dist/src/storefront/components/Sidebar/card.d.ts +7 -0
  257. package/dist/src/storefront/components/Sidebar/index.d.ts +4 -0
  258. package/dist/src/storefront/components/Sidebar/nav-list.d.ts +5 -0
  259. package/dist/src/storefront/components/StatItem/index.d.ts +15 -0
  260. package/dist/src/storefront/components/StatusIndicator/index.d.ts +7 -0
  261. package/dist/src/storefront/components/SubmitReview/index.d.ts +7 -0
  262. package/dist/src/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
  263. package/dist/src/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
  264. package/dist/src/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
  265. package/dist/src/storefront/components/SubscriptionProduct/index.d.ts +7 -0
  266. package/dist/src/storefront/components/SubscriptionProduct/model.d.ts +9 -0
  267. package/dist/src/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
  268. package/dist/src/storefront/components/SubscriptionsTable/index.d.ts +11 -0
  269. package/dist/src/storefront/components/Table/index.d.ts +20 -0
  270. package/dist/src/storefront/components/TermsOfService/index.d.ts +1 -0
  271. package/dist/src/storefront/components/TicketRow/index.d.ts +5 -0
  272. package/dist/src/storefront/components/TrackPayment/index.d.ts +8 -0
  273. package/dist/src/storefront/components/index.d.ts +53 -0
  274. package/dist/src/storefront/constants/actions.d.ts +3 -0
  275. package/dist/src/storefront/constants/api.d.ts +2 -0
  276. package/dist/src/storefront/constants/index.d.ts +3 -0
  277. package/dist/src/storefront/constants/referralSteps.d.ts +6 -0
  278. package/dist/src/storefront/constants/routes.d.ts +15 -0
  279. package/dist/src/storefront/hooks/index.d.ts +2 -0
  280. package/dist/src/storefront/hooks/useCart.d.ts +186 -0
  281. package/dist/src/storefront/hooks/useCopy.d.ts +1 -0
  282. package/dist/src/storefront/index.d.ts +11 -0
  283. package/dist/src/storefront/models/balance.d.ts +56 -0
  284. package/dist/src/storefront/models/charge.d.ts +76 -0
  285. package/dist/src/storefront/models/checkout.d.ts +21 -0
  286. package/dist/src/storefront/models/coupon.d.ts +5 -0
  287. package/dist/src/storefront/models/discord.d.ts +18 -0
  288. package/dist/src/storefront/models/gateway.d.ts +8 -0
  289. package/dist/src/storefront/models/index.d.ts +16 -0
  290. package/dist/src/storefront/models/order.d.ts +139 -0
  291. package/dist/src/storefront/models/payment.d.ts +16 -0
  292. package/dist/src/storefront/models/post.d.ts +5 -0
  293. package/dist/src/storefront/models/price.d.ts +5 -0
  294. package/dist/src/storefront/models/referral.d.ts +12 -0
  295. package/dist/src/storefront/models/referralCode.d.ts +3 -0
  296. package/dist/src/storefront/models/rewards.d.ts +72 -0
  297. package/dist/src/storefront/models/shop.d.ts +38 -0
  298. package/dist/src/storefront/models/subscription.d.ts +130 -0
  299. package/dist/src/storefront/models/transaction.d.ts +12 -0
  300. package/dist/src/storefront/store/index.d.ts +22 -0
  301. package/dist/src/storefront/store/useApiStore.d.ts +8 -0
  302. package/dist/src/storefront/store/useBlocksStore.d.ts +23 -0
  303. package/dist/src/storefront/store/useCartStore.d.ts +48 -0
  304. package/dist/src/storefront/store/useChooseImageStore.d.ts +11 -0
  305. package/dist/src/storefront/store/useConfirmationModalStore.d.ts +10 -0
  306. package/dist/src/storefront/store/useCustomerDashboardStore.d.ts +37 -0
  307. package/dist/src/storefront/store/useDiscordStore.d.ts +7 -0
  308. package/dist/src/storefront/store/useErrorStore.d.ts +12 -0
  309. package/dist/src/storefront/store/useGeneralStore.d.ts +9 -0
  310. package/dist/src/storefront/store/useHistoryState.d.ts +20 -0
  311. package/dist/src/storefront/store/useLayersStore.d.ts +42 -0
  312. package/dist/src/storefront/store/useModalStore.d.ts +6 -0
  313. package/dist/src/storefront/store/useNavbarStore.d.ts +7 -0
  314. package/dist/src/storefront/store/useNotificationStore.d.ts +7 -0
  315. package/dist/src/storefront/store/usePagesStore.d.ts +33 -0
  316. package/dist/src/storefront/store/usePaginationPagesStore.d.ts +7 -0
  317. package/dist/src/storefront/store/usePreviewStore.d.ts +26 -0
  318. package/dist/src/storefront/store/useSettingsStore.d.ts +12 -0
  319. package/dist/src/storefront/store/useShareLinkStore.d.ts +6 -0
  320. package/dist/src/storefront/store/useStorefrontStore.d.ts +23 -0
  321. package/dist/src/storefront/store/useSubscriptionStore.d.ts +7 -0
  322. package/dist/src/storefront/store/useThemeSettingsStore.d.ts +21 -0
  323. package/dist/src/storefront/ui/ActiveBadge/index.d.ts +5 -0
  324. package/dist/src/storefront/ui/InputRange/index.d.ts +9 -0
  325. package/dist/src/storefront/ui/ProgressBar/index.d.ts +8 -0
  326. package/dist/src/storefront/ui/Rating/index.d.ts +8 -0
  327. package/dist/src/storefront/ui/Timer/index.d.ts +6 -0
  328. package/dist/src/storefront/ui/index.d.ts +5 -0
  329. package/dist/src/storefront/utils/MarkdownText.d.ts +5 -0
  330. package/dist/src/storefront/utils/checkParams.d.ts +5 -0
  331. package/dist/src/storefront/utils/checkToken.d.ts +1 -0
  332. package/dist/src/storefront/utils/clearQueryParams.d.ts +1 -0
  333. package/dist/src/storefront/utils/index.d.ts +16 -0
  334. package/dist/src/storefront/utils/parseDraftJsText.d.ts +1 -0
  335. package/dist/src/storefront/utils/recapcha.d.ts +13 -0
  336. package/dist/src/storefront/utils/resizeManager.d.ts +12 -0
  337. package/dist/src/storefront/utils/showNotification.d.ts +3 -0
  338. package/dist/src/storefront/utils/stable-text.d.ts +20 -0
  339. package/dist/src/storefront/utils/useAdaptiveStyles.d.ts +2 -0
  340. package/dist/src/storefront/utils/useBalance.d.ts +2 -0
  341. package/dist/src/storefront/utils/useCart.d.ts +1 -0
  342. package/dist/src/storefront/utils/useGeneralInfo.d.ts +4 -0
  343. package/dist/src/storefront/utils/useMarkdownIt.d.ts +2 -0
  344. package/dist/src/storefront/utils/useTrackingAnalytics.d.ts +2 -0
  345. package/dist/src/ui/Accordion/index.d.ts +8 -0
  346. package/dist/src/ui/AlignText/index.d.ts +7 -0
  347. package/dist/src/ui/BuilderModal/index.d.ts +9 -0
  348. package/dist/src/ui/Button/index.d.ts +16 -0
  349. package/dist/src/ui/ButtonSettings/index.d.ts +14 -0
  350. package/dist/src/ui/ButtonTypeSettings/index.d.ts +11 -0
  351. package/dist/src/ui/ButtonsSettings/index.d.ts +28 -0
  352. package/dist/src/ui/ButtonsSettings/popup.d.ts +13 -0
  353. package/dist/src/ui/CategorySettings/index.d.ts +48 -0
  354. package/dist/src/ui/Checkbox/index.d.ts +7 -0
  355. package/dist/src/ui/ChooseImage/api/index.d.ts +2 -0
  356. package/dist/src/ui/ChooseImage/index.d.ts +17 -0
  357. package/dist/src/ui/ConfirmationModal/index.d.ts +2 -0
  358. package/dist/src/ui/ErrorableBlock/index.d.ts +5 -0
  359. package/dist/src/ui/FormSettings/index.d.ts +65 -0
  360. package/dist/src/ui/FormSettings/popup.d.ts +70 -0
  361. package/dist/src/ui/GroupCardModal/index.d.ts +14 -0
  362. package/dist/src/ui/HeaderButtons/index.d.ts +47 -0
  363. package/dist/src/ui/Icon/index.d.ts +13 -0
  364. package/dist/src/ui/Input/index.d.ts +25 -0
  365. package/dist/src/ui/InputSettings/index.d.ts +22 -0
  366. package/dist/src/ui/ItemsSettings/index.d.ts +70 -0
  367. package/dist/src/ui/ItemsSettings/popup.d.ts +84 -0
  368. package/dist/src/ui/LayoutSettings/index.d.ts +13 -0
  369. package/dist/src/ui/Link/index.d.ts +10 -0
  370. package/dist/src/ui/ListingSelector/index.d.ts +134 -0
  371. package/dist/src/ui/ListingSelector/popup.d.ts +20 -0
  372. package/dist/src/ui/Loader/index.d.ts +4 -0
  373. package/dist/src/ui/LoaderBuilder/index.d.ts +2 -0
  374. package/dist/src/ui/MetaInfoPost/index.d.ts +6 -0
  375. package/dist/src/ui/Modal/index.d.ts +9 -0
  376. package/dist/src/ui/NotificationAntistock/index.d.ts +11 -0
  377. package/dist/src/ui/NotificationBuilder/index.d.ts +13 -0
  378. package/dist/src/ui/OtherSettings/index.d.ts +15 -0
  379. package/dist/src/ui/PagesSettings/index.d.ts +26 -0
  380. package/dist/src/ui/ProductCardButtons/index.d.ts +10 -0
  381. package/dist/src/ui/ProductCardModal/index.d.ts +10 -0
  382. package/dist/src/ui/ProductOptions/index.d.ts +13 -0
  383. package/dist/src/ui/Radio/index.d.ts +14 -0
  384. package/dist/src/ui/RangeSelector/index.d.ts +11 -0
  385. package/dist/src/ui/Select/index.d.ts +20 -0
  386. package/dist/src/ui/Select/utils/index.d.ts +2 -0
  387. package/dist/src/ui/SelectInfiniteList/index.d.ts +20 -0
  388. package/dist/src/ui/SelectInfiniteList/utils/index.d.ts +2 -0
  389. package/dist/src/ui/SelectTypeText/index.d.ts +8 -0
  390. package/dist/src/ui/ShareLink/index.d.ts +5 -0
  391. package/dist/src/ui/Switch/index.d.ts +11 -0
  392. package/dist/src/ui/TextSettings/index.d.ts +20 -0
  393. package/dist/src/ui/Textarea/index.d.ts +13 -0
  394. package/dist/src/ui/TextareaSettings/index.d.ts +11 -0
  395. package/dist/src/ui/Tip/index.d.ts +10 -0
  396. package/dist/src/ui/TypesText/index.d.ts +7 -0
  397. package/dist/src/ui/Wrapper/index.d.ts +11 -0
  398. package/dist/src/ui/index.d.ts +44 -0
  399. package/dist/{subscription-CfSbneE9.js → subscription-CZ9Buxql.js} +5 -5
  400. package/dist/{subscription-CN0GP1i3.cjs → subscription-D-GVTc5C.cjs} +1 -1
  401. package/dist/{ticket-CDRAyz3r.js → ticket-D8MxvdiA.js} +5 -5
  402. package/dist/{ticket-Disch8gb.cjs → ticket-SllRZ1vs.cjs} +1 -1
  403. package/dist/{top-up-DEMHwk2Q.js → top-up-7XHWZMR7.js} +5 -5
  404. package/dist/{top-up-r9pRDkRB.cjs → top-up-CyEK2j7V.cjs} +1 -1
  405. package/dist/ui-components-D2ccINdB.cjs +1 -0
  406. package/dist/ui-components-DSaAYQJp.js +9475 -0
  407. package/dist/ui.cjs.js +1 -1
  408. package/dist/ui.es.js +1 -1
  409. package/dist/{validation-BwaClAh8.js → validation-DOeo0z9F.js} +5 -5
  410. package/dist/{validation-HSAYPvwb.cjs → validation-_p4G1oC2.cjs} +1 -1
  411. package/package.json +3 -2
  412. package/dist/ui-components-CDqqhvCf.js +0 -11007
  413. package/dist/ui-components-DcRUDS1O.cjs +0 -1
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { Y as p, Z as u, _ as c } from "./builder-CtBMhTyK.js";
4
- import "./ui-components-CDqqhvCf.js";
5
- import "./builder-components-Bm7ta9iB.js";
6
- import { M as n, R as f, H as l, u as d, G as x, I as C, F as R } from "./charge-APYiCYYq.js";
7
- import { C as k, c as I, h as T, i as v, r as w, d as M, s as N, u as P, e as b, b as A, a as B } from "./ticket-CDRAyz3r.js";
8
- import { Checkout as S } from "./checkout-D3Mpwqsj.js";
3
+ import { Y as p, Z as u, _ as c } from "./builder-C64dSizd.js";
4
+ import "./ui-components-DSaAYQJp.js";
5
+ import "./builder-components-FfKRBcLk.js";
6
+ import { M as n, R as f, H as l, u as d, G as x, I as C, F as R } from "./charge-BcGATQ-j.js";
7
+ import { C as k, c as I, h as T, i as v, r as w, d as M, s as N, u as P, e as b, b as A, a as B } from "./ticket-D8MxvdiA.js";
8
+ import { Checkout as S } from "./checkout-DzoPtqLk.js";
9
9
  import "react-dom";
10
10
  export {
11
11
  p as AntistockRoutes,
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as m } from "react/jsx-runtime";
2
- import { ab as d, o as l, m as b, i as u, q as t, z as s } from "./builder-CtBMhTyK.js";
2
+ import { ab as d, o as l, m as b, i as u, q as t, z as s } from "./builder-C64dSizd.js";
3
3
  import k from "react";
4
4
  const B = (i) => {
5
5
  const { children: c } = i, { pathname: r } = d(), { setActiveBlock: e } = l(), { setActiveBlock: a } = b(), { setActiveBlock: o } = u();
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("./ui-components-DcRUDS1O.cjs");require("react");const s=require("./builder-4Ke7cjNO.cjs");require("./builder-components-Dz2YlUqA.cjs");require("./charge-C5z1ecd1.cjs");require("./ticket-Disch8gb.cjs");require("react-dom");const j="_wrapper_1yd2j_1",w="_error_1yd2j_11",_="_title_1yd2j_21",b="_buttons_1yd2j_29",i={wrapper:j,error:w,title:_,buttons:b},S=async e=>{const o=localStorage.getItem("shopId")||void 0,r=localStorage.getItem("draftId"),d=`${s.useApiStore.getState().apiUrls.api}/v2/builder/shops/${o}/drafts/${r}/reset`;return await s.request({url:d,withToken:!0,method:"post",body:e})},x=()=>{const{error:e,setError:o}=s.useErrorStore(),{pages:r}=s.usePagesStore(),{setIsOpen:c}=s.useModalStore(),{title:d,description:m,setOnConfirm:u,setTitle:g,setDescription:p}=s.useConfirmationModalStore(),{setBlocks:h}=s.useLayersStore();async function y(){await S({resetSettings:(e==null?void 0:e.failedSettings)??!1,resetThemeSettings:(e==null?void 0:e.failedThemeSettings)??!1,resetPageIds:(e==null?void 0:e.failedPageIds)??[]}),o(null),h({}),window.location.reload()}async function f(){const a=[];r&&Object.keys(r).map(n=>r[n].id).filter(n=>n!==void 0).map(n=>a.push(n)),await S({resetSettings:!0,resetThemeSettings:!0,resetPageIds:a}),o(null)}return t.jsxs("div",{className:i.wrapper,children:[t.jsxs("div",{className:i.error,children:[t.jsxs("div",{children:[t.jsx("div",{className:i.title,children:"Oops! Something went wrong"}),t.jsx("span",{className:i.message,children:(e==null?void 0:e.message)||""})]}),t.jsxs("div",{className:i.buttons,children:[t.jsx(l.ButtonSettings,{type:"Primary",onClick:y,children:"Reset Settings"}),t.jsx(l.ButtonSettings,{type:"Secondary",onClick:a=>{a.stopPropagation(),g("Reset All Settings"),p("Are you sure you want to reset all settings? This is irreversible."),u(async()=>{await f()})},children:"Reset All Settings"})]})]}),d&&m&&t.jsx(l.BuilderModal,{close:()=>{c(!1),setTimeout(()=>{g(null),p(null),u(null),c(!0)},300)},children:t.jsx(l.ConfirmationModal,{})})]})};exports.ErrorPage=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("./ui-components-D2ccINdB.cjs");require("react");const s=require("./builder-BLDXBzNl.cjs");require("./builder-components-DHTh1VoV.cjs");require("./charge-BHULUGTw.cjs");require("./ticket-SllRZ1vs.cjs");require("react-dom");const j="_wrapper_1yd2j_1",w="_error_1yd2j_11",_="_title_1yd2j_21",b="_buttons_1yd2j_29",i={wrapper:j,error:w,title:_,buttons:b},S=async e=>{const o=localStorage.getItem("shopId")||void 0,r=localStorage.getItem("draftId"),d=`${s.useApiStore.getState().apiUrls.api}/v2/builder/shops/${o}/drafts/${r}/reset`;return await s.request({url:d,withToken:!0,method:"post",body:e})},x=()=>{const{error:e,setError:o}=s.useErrorStore(),{pages:r}=s.usePagesStore(),{setIsOpen:c}=s.useModalStore(),{title:d,description:m,setOnConfirm:u,setTitle:g,setDescription:p}=s.useConfirmationModalStore(),{setBlocks:h}=s.useLayersStore();async function y(){await S({resetSettings:(e==null?void 0:e.failedSettings)??!1,resetThemeSettings:(e==null?void 0:e.failedThemeSettings)??!1,resetPageIds:(e==null?void 0:e.failedPageIds)??[]}),o(null),h({}),window.location.reload()}async function f(){const a=[];r&&Object.keys(r).map(n=>r[n].id).filter(n=>n!==void 0).map(n=>a.push(n)),await S({resetSettings:!0,resetThemeSettings:!0,resetPageIds:a}),o(null)}return t.jsxs("div",{className:i.wrapper,children:[t.jsxs("div",{className:i.error,children:[t.jsxs("div",{children:[t.jsx("div",{className:i.title,children:"Oops! Something went wrong"}),t.jsx("span",{className:i.message,children:(e==null?void 0:e.message)||""})]}),t.jsxs("div",{className:i.buttons,children:[t.jsx(l.ButtonSettings,{type:"Primary",onClick:y,children:"Reset Settings"}),t.jsx(l.ButtonSettings,{type:"Secondary",onClick:a=>{a.stopPropagation(),g("Reset All Settings"),p("Are you sure you want to reset all settings? This is irreversible."),u(async()=>{await f()})},children:"Reset All Settings"})]})]}),d&&m&&t.jsx(l.BuilderModal,{close:()=>{c(!1),setTimeout(()=>{g(null),p(null),u(null),c(!0)},300)},children:t.jsx(l.ConfirmationModal,{})})]})};exports.ErrorPage=x;
@@ -1,10 +1,10 @@
1
1
  import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { B as m, a as w, C as _ } from "./ui-components-CDqqhvCf.js";
2
+ import { B as m, a as w, C as _ } from "./ui-components-DSaAYQJp.js";
3
3
  import "react";
4
- import { j as I, r as b, s as j, b as v, J as P, k as T, u as k } from "./builder-CtBMhTyK.js";
5
- import "./builder-components-Bm7ta9iB.js";
6
- import "./charge-APYiCYYq.js";
7
- import "./ticket-CDRAyz3r.js";
4
+ import { j as I, r as b, s as j, b as v, J as P, k as T, u as k } from "./builder-C64dSizd.js";
5
+ import "./builder-components-FfKRBcLk.js";
6
+ import "./charge-BcGATQ-j.js";
7
+ import "./ticket-D8MxvdiA.js";
8
8
  import "react-dom";
9
9
  const C = "_wrapper_1yd2j_1", A = "_error_1yd2j_11", N = "_title_1yd2j_21", B = "_buttons_1yd2j_29", i = {
10
10
  wrapper: C,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("./builder-4Ke7cjNO.cjs");const r=require("react"),t=require("./ui-components-DcRUDS1O.cjs");require("./builder-components-Dz2YlUqA.cjs");require("./charge-C5z1ecd1.cjs");require("./ticket-Disch8gb.cjs");require("react-dom");const i=()=>(r.useEffect(()=>{setTimeout(()=>{window.location.reload()},500)},[]),e.jsx("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(t.Loader,{})}));exports.RouterErrorPage=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("./builder-BLDXBzNl.cjs");const r=require("react"),t=require("./ui-components-D2ccINdB.cjs");require("./builder-components-DHTh1VoV.cjs");require("./charge-BHULUGTw.cjs");require("./ticket-SllRZ1vs.cjs");require("react-dom");const i=()=>(r.useEffect(()=>{setTimeout(()=>{window.location.reload()},500)},[]),e.jsx("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(t.Loader,{})}));exports.RouterErrorPage=i;
@@ -1,10 +1,10 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import "./builder-CtBMhTyK.js";
2
+ import "./builder-C64dSizd.js";
3
3
  import e from "react";
4
- import { e as r } from "./ui-components-CDqqhvCf.js";
5
- import "./builder-components-Bm7ta9iB.js";
6
- import "./charge-APYiCYYq.js";
7
- import "./ticket-CDRAyz3r.js";
4
+ import { e as r } from "./ui-components-DSaAYQJp.js";
5
+ import "./builder-components-FfKRBcLk.js";
6
+ import "./charge-BcGATQ-j.js";
7
+ import "./ticket-D8MxvdiA.js";
8
8
  import "react-dom";
9
9
  const f = () => (e.useEffect(() => {
10
10
  setTimeout(() => {
@@ -1,10 +1,10 @@
1
1
  import { jsx as o, jsxs as N, Fragment as g } from "react/jsx-runtime";
2
2
  import r from "react";
3
- import { V as z, Z as U } from "./charge-APYiCYYq.js";
4
- import { M as f, N as T, ab as V, p as F, a6 as G, e as R, O as H, m as M, a as q, u as B, V as X, b as Y, al as Z, ag as K } from "./builder-CtBMhTyK.js";
5
- import { g as Q } from "./ticket-CDRAyz3r.js";
6
- import { e as $, N as ee, k as te } from "./ui-components-CDqqhvCf.js";
7
- import "./builder-components-Bm7ta9iB.js";
3
+ import { V as z, Z as U } from "./charge-BcGATQ-j.js";
4
+ import { M as f, N as T, ab as V, p as F, a6 as G, e as R, O as H, m as M, a as q, u as B, V as X, b as Y, al as Z, ag as K } from "./builder-C64dSizd.js";
5
+ import { g as Q } from "./ticket-D8MxvdiA.js";
6
+ import { e as $, N as ee, k as te } from "./ui-components-DSaAYQJp.js";
7
+ import "./builder-components-FfKRBcLk.js";
8
8
  import "react-dom";
9
9
  const se = "_notifications_1ntnm_1", ae = "_wrapper_1ntnm_12", x = {
10
10
  notifications: se,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("./builder-4Ke7cjNO.cjs"),o=require("react"),l=r=>{const{children:i}=r,{pathname:a}=e.useLocation(),{setActiveBlock:t}=e.useNavbarStore(),{setActiveBlock:s}=e.useThemeSettingsStore(),{setActiveBlock:n}=e.usePreviewStore();return o.useEffect(()=>{switch(n({id:null,neededScroll:!1}),a){case"/admin/builder":t(e.navbarBlocks[0]);break;case"/admin/builder/add":t(e.navbarBlocks[1]);break;case"/admin/builder/theme":t(e.navbarBlocks[2]);break;case"/admin/builder/settings":t(e.navbarBlocks[3]);break;case"/admin/builder/theme/colors":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[0]);break;case"/admin/builder/theme/fonts":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[1]);break;case"/admin/builder/theme/borders":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[2]);break;case"/admin/builder/theme/buttons":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[3]);break;case"/admin/builder/theme/inputs":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[4]);break}},[a]),c.jsx(c.Fragment,{children:i})};exports.ActivePage=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("./builder-BLDXBzNl.cjs"),o=require("react"),l=r=>{const{children:i}=r,{pathname:a}=e.useLocation(),{setActiveBlock:t}=e.useNavbarStore(),{setActiveBlock:s}=e.useThemeSettingsStore(),{setActiveBlock:n}=e.usePreviewStore();return o.useEffect(()=>{switch(n({id:null,neededScroll:!1}),a){case"/admin/builder":t(e.navbarBlocks[0]);break;case"/admin/builder/add":t(e.navbarBlocks[1]);break;case"/admin/builder/theme":t(e.navbarBlocks[2]);break;case"/admin/builder/settings":t(e.navbarBlocks[3]);break;case"/admin/builder/theme/colors":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[0]);break;case"/admin/builder/theme/fonts":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[1]);break;case"/admin/builder/theme/borders":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[2]);break;case"/admin/builder/theme/buttons":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[3]);break;case"/admin/builder/theme/inputs":t(e.navbarBlocks[2]),s(e.themeSettingsBlocks[4]);break}},[a]),c.jsx(c.Fragment,{children:i})};exports.ActivePage=l;
@@ -1,10 +1,10 @@
1
1
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import { g as i } from "./ui-components-CDqqhvCf.js";
2
+ import { g as i } from "./ui-components-DSaAYQJp.js";
3
3
  import "react";
4
- import { p as s, am as a } from "./builder-CtBMhTyK.js";
5
- import "./builder-components-Bm7ta9iB.js";
6
- import "./charge-APYiCYYq.js";
7
- import "./ticket-CDRAyz3r.js";
4
+ import { p as s, am as a } from "./builder-C64dSizd.js";
5
+ import "./builder-components-FfKRBcLk.js";
6
+ import "./charge-BcGATQ-j.js";
7
+ import "./ticket-D8MxvdiA.js";
8
8
  import "react-dom";
9
9
  const c = "_wrapper_ej209_1", m = "_content_ej209_12", p = "_title_ej209_22", r = {
10
10
  wrapper: c,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),P=require("./charge-C5z1ecd1.cjs"),t=require("./builder-4Ke7cjNO.cjs"),J=require("./ticket-Disch8gb.cjs"),g=require("./ui-components-DcRUDS1O.cjs");require("./builder-components-Dz2YlUqA.cjs");require("react-dom");const _="_notifications_1ntnm_1",F="_wrapper_1ntnm_12",j={notifications:_,wrapper:F},z=()=>(i.useEffect(()=>{document.title="Temporarily Unavailable"},[]),s.jsx("div",{style:{display:"flex",flexDirection:"column",width:"100vw",height:"100vh",overflowY:"scroll",overflowX:"hidden",background:"var(--surface-primary)",color:"var(--text-primary)"},children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1",justifyContent:"center",alignItems:"center",gap:"24px"},children:[s.jsx("h2",{style:{color:"var(--text-primary)",fontSize:"var(--font-heading-h2-size)"},children:"Temporarily Unavailable"}),s.jsx("span",{style:{color:"var(--text-secondary)",fontSize:"var(--font-heading-h3-size)",width:"85%",textAlign:"center"},children:"We're making some quick updates to improve your shopping experience. During this time, browsing and checkout are temporarily unavailable."})]})}));function R(){const c=new URLSearchParams(document.location.search),r=c.get("customerAccessToken"),{setToken:d}=t.useStorefrontStore.getState(),{setDashInfo:u}=t.useCustomerDashboardStore.getState();r&&(c.delete("customerAccessToken"),localStorage.setItem("token",r),d(r),u(null))}const U=({children:c})=>{const r=t.useLocation(),{token:d,setToken:u}=t.useStorefrontStore(),{dashInfo:S,setDashInfo:y}=t.useCustomerDashboardStore(),{shopPassword:f}=t.useStorefrontStore(),v=t.useNavigate(),[l,T]=t.useSearchParams(),{notifications:x}=t.useNotificationStore(),[b,h]=i.useState(!0),{setCustomerEmail:I}=t.useCartStore(),{setThemeSettings:w,themeSettings:N}=t.useThemeSettingsStore(),{settings:C,setSettings:k}=t.useSettingsStore(),{setHeader:D,setFooter:q,setAnnouncement:A}=t.useLayersStore(),{general:o,setGeneral:E,isAntistock:p}=t.useGeneralStore(),{pageContext:L,setPageContext:O}=t.usePagesStore();t.useTrackingAnalytics((o==null?void 0:o.info.id)||localStorage.getItem("shopId")||null,"production",p);const W=async()=>{const e=await J.getDynamicPage(encodeURIComponent("/products"),o==null?void 0:o.info.passwordProtected);if(e){const{data:a}=e;O({...L,listings:a.listings})}};return i.useEffect(()=>{R()},[]),i.useEffect(()=>{const e=localStorage.getItem("token");if(e&&(!d||!S))try{const a=t.jwtDecode(e);y(a),u(e),I(a.email)}catch(a){console.error("Failed to decode token:",a),localStorage.removeItem("token"),u(""),y(null)}},[d,S]),i.useEffect(()=>{const e=l.get("r");e&&(localStorage.setItem("referralCode",e),l.delete("r"),T(l),v({pathname:r.pathname,search:l.toString()},{replace:!0}))},[l,r]),i.useEffect(()=>{!r.pathname.startsWith("/products")&&!r.pathname.startsWith("/admin/builder")&&o&&(o.info.passwordProtected&&f||o.isPasswordValid)&&W()},[o,f]),i.useLayoutEffect(()=>{const e=async()=>{if(h(!0),!o){const n=await P.fetchGeneral(f);if(!n.isPasswordValid&&!r.pathname.includes("/admin/builder")){v("/validation",{state:{from:r.pathname}});return}if(!n.info.passwordProtected){localStorage.removeItem("shopPassword");const{setShopPassword:m}=t.useStorefrontStore.getState();m("")}E(n)}},a=async()=>{h(!0);const{settings:n,theme:m}=(await P.fetchThemeAndSettings()).data;n?(n.settings&&k(n.settings),n.header&&D(JSON.parse(JSON.stringify(n.header))),n.footer&&q(JSON.parse(JSON.stringify(n.footer))),n.announcement&&A(JSON.parse(JSON.stringify(n.announcement)))):k(C),w(m||N),h(!1)};r.pathname.startsWith("/validation")||e(),a()},[]),p&&(o!=null&&o.info.onHold)?s.jsx(z,{}):r.pathname.startsWith("/admin/builder")?s.jsx(s.Fragment,{children:c}):s.jsx(s.Fragment,{children:b?s.jsx("div",{className:j.wrapper,children:s.jsx(g.Loader,{})}):s.jsxs(s.Fragment,{children:[c,x.length>0&&s.jsx("div",{className:j.notifications,children:x.map(e=>s.jsx(g.NotificationBuilder,{type:e.status,message:e.message,timer:e.timer||10,id:e.id,element:p?g.NotificationAntistock:e.component},e.id))})]})})};exports.WrapperPage=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),P=require("./charge-BHULUGTw.cjs"),t=require("./builder-BLDXBzNl.cjs"),J=require("./ticket-SllRZ1vs.cjs"),g=require("./ui-components-D2ccINdB.cjs");require("./builder-components-DHTh1VoV.cjs");require("react-dom");const _="_notifications_1ntnm_1",F="_wrapper_1ntnm_12",j={notifications:_,wrapper:F},z=()=>(i.useEffect(()=>{document.title="Temporarily Unavailable"},[]),s.jsx("div",{style:{display:"flex",flexDirection:"column",width:"100vw",height:"100vh",overflowY:"scroll",overflowX:"hidden",background:"var(--surface-primary)",color:"var(--text-primary)"},children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1",justifyContent:"center",alignItems:"center",gap:"24px"},children:[s.jsx("h2",{style:{color:"var(--text-primary)",fontSize:"var(--font-heading-h2-size)"},children:"Temporarily Unavailable"}),s.jsx("span",{style:{color:"var(--text-secondary)",fontSize:"var(--font-heading-h3-size)",width:"85%",textAlign:"center"},children:"We're making some quick updates to improve your shopping experience. During this time, browsing and checkout are temporarily unavailable."})]})}));function R(){const c=new URLSearchParams(document.location.search),r=c.get("customerAccessToken"),{setToken:d}=t.useStorefrontStore.getState(),{setDashInfo:u}=t.useCustomerDashboardStore.getState();r&&(c.delete("customerAccessToken"),localStorage.setItem("token",r),d(r),u(null))}const U=({children:c})=>{const r=t.useLocation(),{token:d,setToken:u}=t.useStorefrontStore(),{dashInfo:S,setDashInfo:y}=t.useCustomerDashboardStore(),{shopPassword:f}=t.useStorefrontStore(),v=t.useNavigate(),[l,T]=t.useSearchParams(),{notifications:x}=t.useNotificationStore(),[b,h]=i.useState(!0),{setCustomerEmail:I}=t.useCartStore(),{setThemeSettings:w,themeSettings:N}=t.useThemeSettingsStore(),{settings:C,setSettings:k}=t.useSettingsStore(),{setHeader:D,setFooter:q,setAnnouncement:A}=t.useLayersStore(),{general:o,setGeneral:E,isAntistock:p}=t.useGeneralStore(),{pageContext:L,setPageContext:O}=t.usePagesStore();t.useTrackingAnalytics((o==null?void 0:o.info.id)||localStorage.getItem("shopId")||null,"production",p);const W=async()=>{const e=await J.getDynamicPage(encodeURIComponent("/products"),o==null?void 0:o.info.passwordProtected);if(e){const{data:a}=e;O({...L,listings:a.listings})}};return i.useEffect(()=>{R()},[]),i.useEffect(()=>{const e=localStorage.getItem("token");if(e&&(!d||!S))try{const a=t.jwtDecode(e);y(a),u(e),I(a.email)}catch(a){console.error("Failed to decode token:",a),localStorage.removeItem("token"),u(""),y(null)}},[d,S]),i.useEffect(()=>{const e=l.get("r");e&&(localStorage.setItem("referralCode",e),l.delete("r"),T(l),v({pathname:r.pathname,search:l.toString()},{replace:!0}))},[l,r]),i.useEffect(()=>{!r.pathname.startsWith("/products")&&!r.pathname.startsWith("/admin/builder")&&o&&(o.info.passwordProtected&&f||o.isPasswordValid)&&W()},[o,f]),i.useLayoutEffect(()=>{const e=async()=>{if(h(!0),!o){const n=await P.fetchGeneral(f);if(!n.isPasswordValid&&!r.pathname.includes("/admin/builder")){v("/validation",{state:{from:r.pathname}});return}if(!n.info.passwordProtected){localStorage.removeItem("shopPassword");const{setShopPassword:m}=t.useStorefrontStore.getState();m("")}E(n)}},a=async()=>{h(!0);const{settings:n,theme:m}=(await P.fetchThemeAndSettings()).data;n?(n.settings&&k(n.settings),n.header&&D(JSON.parse(JSON.stringify(n.header))),n.footer&&q(JSON.parse(JSON.stringify(n.footer))),n.announcement&&A(JSON.parse(JSON.stringify(n.announcement)))):k(C),w(m||N),h(!1)};r.pathname.startsWith("/validation")||e(),a()},[]),p&&(o!=null&&o.info.onHold)?s.jsx(z,{}):r.pathname.startsWith("/admin/builder")?s.jsx(s.Fragment,{children:c}):s.jsx(s.Fragment,{children:b?s.jsx("div",{className:j.wrapper,children:s.jsx(g.Loader,{})}):s.jsxs(s.Fragment,{children:[c,x.length>0&&s.jsx("div",{className:j.notifications,children:x.map(e=>s.jsx(g.NotificationBuilder,{type:e.status,message:e.message,timer:e.timer||10,id:e.id,element:p?g.NotificationAntistock:e.component},e.id))})]})})};exports.WrapperPage=U;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./ui-components-DcRUDS1O.cjs");require("react");const n=require("./builder-4Ke7cjNO.cjs");require("./builder-components-Dz2YlUqA.cjs");require("./charge-C5z1ecd1.cjs");require("./ticket-Disch8gb.cjs");require("react-dom");const s="_wrapper_ej209_1",c="_content_ej209_12",a="_title_ej209_22",r={wrapper:s,content:c,title:a},l=()=>{const o=n.useNavigate(),t=n.useRouteError();return console.error("ROUTE ERROR: ",t),alert(t),e.jsx("div",{className:r.wrapper,children:e.jsxs("div",{className:r.content,children:[e.jsx("h1",{className:r.title,children:"Something Went Wrong"}),e.jsx(i.Button,{type:"Primary",onClick:()=>{o("/")},children:"Go Home"})]})})};exports.DynamicErrorPage=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./ui-components-D2ccINdB.cjs");require("react");const n=require("./builder-BLDXBzNl.cjs");require("./builder-components-DHTh1VoV.cjs");require("./charge-BHULUGTw.cjs");require("./ticket-SllRZ1vs.cjs");require("react-dom");const s="_wrapper_ej209_1",c="_content_ej209_12",a="_title_ej209_22",r={wrapper:s,content:c,title:a},l=()=>{const o=n.useNavigate(),t=n.useRouteError();return console.error("ROUTE ERROR: ",t),alert(t),e.jsx("div",{className:r.wrapper,children:e.jsxs("div",{className:r.content,children:[e.jsx("h1",{className:r.title,children:"Something Went Wrong"}),e.jsx(i.Button,{type:"Primary",onClick:()=>{o("/")},children:"Go Home"})]})})};exports.DynamicErrorPage=l;
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./App-txB8kbk7.cjs"),a=require("./builder-4Ke7cjNO.cjs");require("react/jsx-runtime");const n=require("react"),c=require("./ui-components-DcRUDS1O.cjs");require("./builder-components-Dz2YlUqA.cjs");const r=require("./charge-C5z1ecd1.cjs"),e=require("./ticket-Disch8gb.cjs");require("react-dom");function u(o){n.useEffect(()=>{Object.entries(o).forEach(([s,i])=>{t.registerIcon(s,i)})},[o])}function g(o){Object.entries(o).forEach(([s,i])=>{t.registerIcon(s,i)})}exports.App=t.App;exports.getRegisteredIcon=t.getRegisteredIcon;exports.getRegisteredIcons=t.getRegisteredIcons;exports.isIconRegistered=t.isIconRegistered;exports.registerIcon=t.registerIcon;exports.AntistockRoutes=a.AntistockRoutes;exports.Routes=a.Routes;exports.formatPrice=a.formatPrice;exports.Icon=c.Icon;exports.MarkdownText=r.MarkdownText;exports.ReCaptchaProvider=r.ReCaptchaProvider;exports.parseDraftJsText=r.parseDraftJsText;exports.useCart=r.useCart;exports.useGeneralInfo=r.useGeneralInfo;exports.useMarkdownIt=r.useMarkdownIt;exports.useReCaptcha=r.useReCaptcha;exports.ColorVariables=e.ColorVariables;exports.aspectRatioOptions=e.aspectRatioOptions;exports.hotReload=e.hotReload;exports.iconNames=e.iconNames;exports.removeNotification=e.removeNotification;exports.showNotification=e.showNotification;exports.splitTextIntoSpans=e.splitTextIntoSpans;exports.useAdaptiveStyles=e.useAdaptiveStyles;exports.useBalance=e.useBalance;exports.useBuilderPages=e.useBuilderPages;exports.useCreateTicket=e.useCreateTicket;exports.registerIcons=g;exports.useIconRegistration=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./App-BwVII14K.cjs"),a=require("./builder-BLDXBzNl.cjs");require("react/jsx-runtime");const n=require("react"),c=require("./ui-components-D2ccINdB.cjs");require("./builder-components-DHTh1VoV.cjs");const r=require("./charge-BHULUGTw.cjs"),e=require("./ticket-SllRZ1vs.cjs");require("react-dom");function u(o){n.useEffect(()=>{Object.entries(o).forEach(([s,i])=>{t.registerIcon(s,i)})},[o])}function g(o){Object.entries(o).forEach(([s,i])=>{t.registerIcon(s,i)})}exports.App=t.App;exports.getRegisteredIcon=t.getRegisteredIcon;exports.getRegisteredIcons=t.getRegisteredIcons;exports.isIconRegistered=t.isIconRegistered;exports.registerIcon=t.registerIcon;exports.AntistockRoutes=a.AntistockRoutes;exports.Routes=a.Routes;exports.formatPrice=a.formatPrice;exports.Icon=c.Icon;exports.MarkdownText=r.MarkdownText;exports.ReCaptchaProvider=r.ReCaptchaProvider;exports.parseDraftJsText=r.parseDraftJsText;exports.useCart=r.useCart;exports.useGeneralInfo=r.useGeneralInfo;exports.useMarkdownIt=r.useMarkdownIt;exports.useReCaptcha=r.useReCaptcha;exports.ColorVariables=e.ColorVariables;exports.aspectRatioOptions=e.aspectRatioOptions;exports.hotReload=e.hotReload;exports.iconNames=e.iconNames;exports.removeNotification=e.removeNotification;exports.showNotification=e.showNotification;exports.splitTextIntoSpans=e.splitTextIntoSpans;exports.useAdaptiveStyles=e.useAdaptiveStyles;exports.useBalance=e.useBalance;exports.useBuilderPages=e.useBuilderPages;exports.useCreateTicket=e.useCreateTicket;exports.registerIcons=g;exports.useIconRegistration=u;
@@ -0,0 +1,22 @@
1
+ import 'non.geist';
2
+ import './src/styles/main.scss';
3
+ export * from './src/App.tsx';
4
+ export * from './src/abstractions';
5
+ export { hotReload, splitTextIntoSpans, useCreateTicket, useBuilderPages } from './src/lib';
6
+ export { useIconRegistration, registerIcons } from './src/hooks/useIconRegistration';
7
+ export { registerIcon, getRegisteredIcon, isIconRegistered, getRegisteredIcons } from '@assets/icon-registry/IconRegistry';
8
+ export { Icon } from './src/ui';
9
+ export { iconNames, type IconNames, ColorVariables, type AspectRatio, aspectRatioOptions, } from './src/shared/constants';
10
+ export { Routes, AntistockRoutes } from './src/storefront/constants/routes';
11
+ export type { Notification, NotificationComponentProps } from './src/shared/constants';
12
+ export type { TypeFontKeys } from './src/shared/constants';
13
+ export { ReCaptchaProvider, useReCaptcha } from './src/storefront/utils/recapcha';
14
+ export { useCart } from './src/storefront/utils/useCart';
15
+ export { useGeneralInfo } from './src/storefront/utils/useGeneralInfo';
16
+ export { showNotification, removeNotification } from './src/storefront/utils/showNotification';
17
+ export { useAdaptiveStyles } from './src/storefront/utils/useAdaptiveStyles';
18
+ export { formatPrice } from './src/storefront/utils';
19
+ export { parseDraftJsText } from './src/storefront/utils/parseDraftJsText';
20
+ export { useBalance } from './src/storefront/utils/useBalance';
21
+ export { useMarkdownIt } from './src/storefront/utils/useMarkdownIt';
22
+ export { MarkdownText } from './src/storefront/utils/MarkdownText';
package/dist/index.es.js CHANGED
@@ -1,12 +1,12 @@
1
- import { r as t } from "./App-Clwk7ILO.js";
2
- import { A as R, g as d, a as g, i as x } from "./App-Clwk7ILO.js";
3
- import { Y as h, Z as C, _ as b } from "./builder-CtBMhTyK.js";
1
+ import { r as t } from "./App-ytDoD626.js";
2
+ import { A as R, g as d, a as g, i as x } from "./App-ytDoD626.js";
3
+ import { Y as h, Z as C, _ as b } from "./builder-C64dSizd.js";
4
4
  import "react/jsx-runtime";
5
5
  import { useEffect as o } from "react";
6
- import { I as A } from "./ui-components-CDqqhvCf.js";
7
- import "./builder-components-Bm7ta9iB.js";
8
- import { M as v, R as w, H as E, u as M, G as N, I as O, F as P } from "./charge-APYiCYYq.js";
9
- import { C as B, c as G, h as S, i as y, r as D, d as F, s as H, u as J, e as V, b as Y, a as Z } from "./ticket-CDRAyz3r.js";
6
+ import { I as A } from "./ui-components-DSaAYQJp.js";
7
+ import "./builder-components-FfKRBcLk.js";
8
+ import { M as v, R as w, H as E, u as M, G as N, I as O, F as P } from "./charge-BcGATQ-j.js";
9
+ import { C as B, c as G, h as S, i as y, r as D, d as F, s as H, u as J, e as V, b as Y, a as Z } from "./ticket-D8MxvdiA.js";
10
10
  import "react-dom";
11
11
  function f(e) {
12
12
  o(() => {
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),n=require("react"),k=require("./builder-4Ke7cjNO.cjs"),c=require("./charge-C5z1ecd1.cjs"),C=require("./ui-components-DcRUDS1O.cjs");require("./builder-components-Dz2YlUqA.cjs");require("./ticket-Disch8gb.cjs");require("react-dom");const B=async(r=1)=>await c.fetchOrders({PageNumber:r}),T=()=>{const[r,d]=n.useState(null),[u,e]=n.useState(null),[x,j]=n.useState(0),{page:g}=k.usePaginationPagesStore(),[N,o]=n.useState(!0);async function v(){o(!0);const{list:h,totalCount:m}=await B(g);d(h),j(m),e(null),o(!1)}async function S(){const h=(r==null?void 0:r.map(y=>y.gatewayName))||[],m=await c.getGatewaysDetail(h);e(m)}return n.useEffect(()=>{!u&&r&&S()},[r,u]),n.useEffect(()=>{v()},[g]),t.jsx(t.Fragment,{children:r!=null&&r.length&&r.length===0?t.jsx(c.NoItemsBlock,{title:"No Orders",description:"When you purchase products from our website, you'll see a history of orders here."}):t.jsxs(t.Fragment,{children:[t.jsx(c.PageTitle,{title:"Orders"}),t.jsx(c.OrdersTable,{orders:r,gatewaysDetail:u,totalCount:x,isLoading:N})]})})},$="_orderPage_gc87l_1",I="_leftSection_gc87l_15",L="_content_gc87l_35",M="_main_gc87l_42",q="_mainAntistock_gc87l_56",F="_orderMainDataAntistock_gc87l_69",W="_timelineBlockAntistock_gc87l_81",E="_footerAntistock_gc87l_92",V="_statusBlock_gc87l_104",G="_timelineBlock_gc87l_81",R="_footer_gc87l_92",U="_rightSection_gc87l_121",z="_header_gc87l_142",H="_productList_gc87l_150",J="_mobileFooter_gc87l_157",K="_loaderContainer_gc87l_166",Q="_orderMainData_gc87l_69",X="_prices_gc87l_181",Y="_headerTitle_gc87l_185",Z="_headerDescription_gc87l_189",a={orderPage:$,leftSection:I,content:L,main:M,mainAntistock:q,orderMainDataAntistock:F,timelineBlockAntistock:W,footerAntistock:E,statusBlock:V,timelineBlock:G,footer:R,rightSection:U,header:z,productList:H,mobileFooter:J,loaderContainer:K,orderMainData:Q,prices:X,headerTitle:Y,headerDescription:Z},ee=()=>{var y,O,w,A,D,P;const{id:r,accessToken:d}=k.useParams(),u=k.useNavigate(),[e,x]=n.useState(),[j,g]=n.useState(!1),N=c.useCopy(),{isAntistock:o}=k.useGeneralStore(),v=((y=e==null?void 0:e.rawPrice)==null?void 0:y.currency)||"USD",S=new Intl.NumberFormat("en-US",{style:"currency",currency:v}),h=n.useMemo(()=>(e==null?void 0:e.partOrders.map(s=>{var _,p;return{id:(s==null?void 0:s.id)||0,image:s.productWithVariant.image,name:(()=>{var f,b;const i=((f=s.productWithVariant)==null?void 0:f.name)||"",l=((b=s.productWithVariant)==null?void 0:b.variantName)||"";return!i&&!l?"":!l||i===l?i:i?`${i} (${l})`:l})(),description:"",price:{quantity:s.quantity,amount:((_=s.productWithVariant)==null?void 0:_.price.amount)||0,currency:(p=s.productWithVariant)==null?void 0:p.price.currency},deliveryCategories:"deliveryCategories"in s?s.deliveryCategories:void 0,customerNote:s.customerNote,chargeType:s.chargeType||"ONE_TIME"}}))||[],[e]),m=async(s,_,p=!1)=>{var l,f;p||g(!0);const{data:i}=await(_?c.fetchAuthorizedOrder(`${s}/${_}`):c.fetchOrder(s));g(!1),i.status!==c.OrderStatus.Completed&&((l=i.charge)==null?void 0:l.status)===c.ChargeStatus.NotPaid&&u(`/charges/${(f=i.charge)==null?void 0:f.id}`,{replace:!0}),x(i)};return n.useLayoutEffect(()=>{if(r&&!d){const s=JSON.parse(localStorage.getItem("orders")||"{}");s[r]&&u(`/orders/${r}/${s[r].fullAccessToken}`)}},[r]),n.useEffect(()=>{r&&m(r,d,!0);const s=setInterval(()=>{r&&m(r,d,!0)},5e3);return()=>{clearInterval(s)}},[r,d]),j?t.jsx("div",{className:a.loaderContainer,children:t.jsx(C.Loader,{})}):t.jsxs("div",{className:a.orderPage,children:[t.jsx("div",{className:a.leftSection,children:t.jsxs("div",{className:a.content,children:[t.jsx(c.CheckoutHeader,{}),e&&t.jsxs("div",{className:`${a.main} ${o?a.mainAntistock:""}`,children:[t.jsx(c.OrderStatusBlock,{className:a.statusBlock,orderStatus:e.status}),t.jsxs("div",{className:`${a.orderMainData} ${o?a.orderMainDataAntistock:""}`,children:[t.jsx(c.CheckoutOrderMainData,{lastUpdate:e.createdAt,paymentType:(O=e.charge)==null?void 0:O.gateway,email:e.customer?e.customer.email:((w=e.charge)==null?void 0:w.customerForCharge.email)||"",orderId:e.id}),"accessToken"in e.review&&!o&&t.jsx(c.LeaveAReview,{orderId:e.id,review:e.review})]}),e.charge&&e.charge.timeline&&t.jsx(c.TrackPayment,{className:`${a.timelineBlock} ${o?a.timelineBlockAntistock:""}`,timeline:e.charge.timeline}),t.jsx(c.CheckoutFooter,{className:`${a.footer} ${o?a.footerAntistock:""}`})]})]})}),t.jsx("div",{className:a.rightSection,style:o?{borderLeft:"1px solid var(--border-secondary)"}:void 0,children:t.jsxs("div",{className:a.content,children:[((A=e==null?void 0:e.charge)==null?void 0:A.name)&&t.jsxs("header",{className:a.header,children:[t.jsxs("div",{children:[t.jsx("h1",{className:a.headerTitle,children:e.charge.name}),e.charge.description&&t.jsx("p",{className:a.headerDescription,children:e.charge.description})]}),o?null:t.jsxs(C.Button,{type:"Secondary",onClick:()=>N((e==null?void 0:e.id)||""),style:{whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"4px"},children:[t.jsx(C.Icon,{name:"Copy"}),t.jsx("span",{children:"Copy ID"})]})]}),t.jsxs("div",{children:[t.jsx("div",{className:a.productList,children:h.map(s=>t.jsx(c.CheckoutProduct,{product:s,isOrder:!0},s.id))}),o?null:t.jsx(c.CheckoutPrices,{formatter:S,coupon:null,total:((D=e==null?void 0:e.endPrice)==null?void 0:D.amount)||0,discount:0,totalWithDiscount:((P=e==null?void 0:e.endPrice)==null?void 0:P.amount)||0,className:a.prices,isShowSubtotal:!1}),t.jsx(c.CheckoutFooter,{className:a.mobileFooter})]})]})})]})},te=Object.freeze(Object.defineProperty({__proto__:null,OrderPage:ee},Symbol.toStringTag,{value:"Module"}));exports.Orders=T;exports.index=te;
1
+ "use strict";const t=require("react/jsx-runtime"),n=require("react"),k=require("./builder-BLDXBzNl.cjs"),c=require("./charge-BHULUGTw.cjs"),C=require("./ui-components-D2ccINdB.cjs");require("./builder-components-DHTh1VoV.cjs");require("./ticket-SllRZ1vs.cjs");require("react-dom");const B=async(r=1)=>await c.fetchOrders({PageNumber:r}),T=()=>{const[r,d]=n.useState(null),[u,e]=n.useState(null),[x,j]=n.useState(0),{page:g}=k.usePaginationPagesStore(),[N,o]=n.useState(!0);async function v(){o(!0);const{list:h,totalCount:m}=await B(g);d(h),j(m),e(null),o(!1)}async function S(){const h=(r==null?void 0:r.map(y=>y.gatewayName))||[],m=await c.getGatewaysDetail(h);e(m)}return n.useEffect(()=>{!u&&r&&S()},[r,u]),n.useEffect(()=>{v()},[g]),t.jsx(t.Fragment,{children:r!=null&&r.length&&r.length===0?t.jsx(c.NoItemsBlock,{title:"No Orders",description:"When you purchase products from our website, you'll see a history of orders here."}):t.jsxs(t.Fragment,{children:[t.jsx(c.PageTitle,{title:"Orders"}),t.jsx(c.OrdersTable,{orders:r,gatewaysDetail:u,totalCount:x,isLoading:N})]})})},$="_orderPage_gc87l_1",I="_leftSection_gc87l_15",L="_content_gc87l_35",M="_main_gc87l_42",q="_mainAntistock_gc87l_56",F="_orderMainDataAntistock_gc87l_69",W="_timelineBlockAntistock_gc87l_81",E="_footerAntistock_gc87l_92",V="_statusBlock_gc87l_104",G="_timelineBlock_gc87l_81",R="_footer_gc87l_92",U="_rightSection_gc87l_121",z="_header_gc87l_142",H="_productList_gc87l_150",J="_mobileFooter_gc87l_157",K="_loaderContainer_gc87l_166",Q="_orderMainData_gc87l_69",X="_prices_gc87l_181",Y="_headerTitle_gc87l_185",Z="_headerDescription_gc87l_189",a={orderPage:$,leftSection:I,content:L,main:M,mainAntistock:q,orderMainDataAntistock:F,timelineBlockAntistock:W,footerAntistock:E,statusBlock:V,timelineBlock:G,footer:R,rightSection:U,header:z,productList:H,mobileFooter:J,loaderContainer:K,orderMainData:Q,prices:X,headerTitle:Y,headerDescription:Z},ee=()=>{var y,O,w,A,D,P;const{id:r,accessToken:d}=k.useParams(),u=k.useNavigate(),[e,x]=n.useState(),[j,g]=n.useState(!1),N=c.useCopy(),{isAntistock:o}=k.useGeneralStore(),v=((y=e==null?void 0:e.rawPrice)==null?void 0:y.currency)||"USD",S=new Intl.NumberFormat("en-US",{style:"currency",currency:v}),h=n.useMemo(()=>(e==null?void 0:e.partOrders.map(s=>{var _,p;return{id:(s==null?void 0:s.id)||0,image:s.productWithVariant.image,name:(()=>{var f,b;const i=((f=s.productWithVariant)==null?void 0:f.name)||"",l=((b=s.productWithVariant)==null?void 0:b.variantName)||"";return!i&&!l?"":!l||i===l?i:i?`${i} (${l})`:l})(),description:"",price:{quantity:s.quantity,amount:((_=s.productWithVariant)==null?void 0:_.price.amount)||0,currency:(p=s.productWithVariant)==null?void 0:p.price.currency},deliveryCategories:"deliveryCategories"in s?s.deliveryCategories:void 0,customerNote:s.customerNote,chargeType:s.chargeType||"ONE_TIME"}}))||[],[e]),m=async(s,_,p=!1)=>{var l,f;p||g(!0);const{data:i}=await(_?c.fetchAuthorizedOrder(`${s}/${_}`):c.fetchOrder(s));g(!1),i.status!==c.OrderStatus.Completed&&((l=i.charge)==null?void 0:l.status)===c.ChargeStatus.NotPaid&&u(`/charges/${(f=i.charge)==null?void 0:f.id}`,{replace:!0}),x(i)};return n.useLayoutEffect(()=>{if(r&&!d){const s=JSON.parse(localStorage.getItem("orders")||"{}");s[r]&&u(`/orders/${r}/${s[r].fullAccessToken}`)}},[r]),n.useEffect(()=>{r&&m(r,d,!0);const s=setInterval(()=>{r&&m(r,d,!0)},5e3);return()=>{clearInterval(s)}},[r,d]),j?t.jsx("div",{className:a.loaderContainer,children:t.jsx(C.Loader,{})}):t.jsxs("div",{className:a.orderPage,children:[t.jsx("div",{className:a.leftSection,children:t.jsxs("div",{className:a.content,children:[t.jsx(c.CheckoutHeader,{}),e&&t.jsxs("div",{className:`${a.main} ${o?a.mainAntistock:""}`,children:[t.jsx(c.OrderStatusBlock,{className:a.statusBlock,orderStatus:e.status}),t.jsxs("div",{className:`${a.orderMainData} ${o?a.orderMainDataAntistock:""}`,children:[t.jsx(c.CheckoutOrderMainData,{lastUpdate:e.createdAt,paymentType:(O=e.charge)==null?void 0:O.gateway,email:e.customer?e.customer.email:((w=e.charge)==null?void 0:w.customerForCharge.email)||"",orderId:e.id}),"accessToken"in e.review&&!o&&t.jsx(c.LeaveAReview,{orderId:e.id,review:e.review})]}),e.charge&&e.charge.timeline&&t.jsx(c.TrackPayment,{className:`${a.timelineBlock} ${o?a.timelineBlockAntistock:""}`,timeline:e.charge.timeline}),t.jsx(c.CheckoutFooter,{className:`${a.footer} ${o?a.footerAntistock:""}`})]})]})}),t.jsx("div",{className:a.rightSection,style:o?{borderLeft:"1px solid var(--border-secondary)"}:void 0,children:t.jsxs("div",{className:a.content,children:[((A=e==null?void 0:e.charge)==null?void 0:A.name)&&t.jsxs("header",{className:a.header,children:[t.jsxs("div",{children:[t.jsx("h1",{className:a.headerTitle,children:e.charge.name}),e.charge.description&&t.jsx("p",{className:a.headerDescription,children:e.charge.description})]}),o?null:t.jsxs(C.Button,{type:"Secondary",onClick:()=>N((e==null?void 0:e.id)||""),style:{whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"4px"},children:[t.jsx(C.Icon,{name:"Copy"}),t.jsx("span",{children:"Copy ID"})]})]}),t.jsxs("div",{children:[t.jsx("div",{className:a.productList,children:h.map(s=>t.jsx(c.CheckoutProduct,{product:s,isOrder:!0},s.id))}),o?null:t.jsx(c.CheckoutPrices,{formatter:S,coupon:null,total:((D=e==null?void 0:e.endPrice)==null?void 0:D.amount)||0,discount:0,totalWithDiscount:((P=e==null?void 0:e.endPrice)==null?void 0:P.amount)||0,className:a.prices,isShowSubtotal:!1}),t.jsx(c.CheckoutFooter,{className:a.mobileFooter})]})]})})]})},te=Object.freeze(Object.defineProperty({__proto__:null,OrderPage:ee},Symbol.toStringTag,{value:"Module"}));exports.Orders=T;exports.index=te;
@@ -1,10 +1,10 @@
1
1
  import { jsx as s, Fragment as b, jsxs as i } from "react/jsx-runtime";
2
2
  import n, { useState as $ } from "react";
3
- import { X as I, a7 as L, p as M, V as F } from "./builder-CtBMhTyK.js";
4
- import { f as x, N as W, P as E, O as V, g as j, b as G, c as U, d as q, e as z, L as R, T as H, h as B, i as J, j as X, k as K, l as Q, m as Y, n as Z } from "./charge-APYiCYYq.js";
5
- import { e as ee, g as te, I as ae } from "./ui-components-CDqqhvCf.js";
6
- import "./builder-components-Bm7ta9iB.js";
7
- import "./ticket-CDRAyz3r.js";
3
+ import { X as I, a7 as L, p as M, V as F } from "./builder-C64dSizd.js";
4
+ import { f as x, N as W, P as E, O as V, g as j, b as G, c as U, d as q, e as z, L as R, T as H, h as B, i as J, j as X, k as K, l as Q, m as Y, n as Z } from "./charge-BcGATQ-j.js";
5
+ import { e as ee, g as te, I as ae } from "./ui-components-DSaAYQJp.js";
6
+ import "./builder-components-FfKRBcLk.js";
7
+ import "./ticket-D8MxvdiA.js";
8
8
  import "react-dom";
9
9
  const se = async (a = 1) => await x({ PageNumber: a }), Ie = () => {
10
10
  const [a, d] = n.useState(null), [u, e] = $(null), [k, N] = n.useState(0), { page: g } = I(), [v, o] = n.useState(!0);
@@ -0,0 +1,18 @@
1
+ import { RouteObject } from 'react-router-dom';
2
+ import React from 'react';
3
+ import 'non.geist';
4
+ import './styles/main.scss';
5
+ import { ApiUrls } from './storefront/store';
6
+ interface AppProps {
7
+ blocks: Record<string, any>;
8
+ settings: any;
9
+ header: any;
10
+ footer: any;
11
+ announcement: any;
12
+ routes?: RouteObject[];
13
+ shopLogo?: React.ReactElement;
14
+ apiURLs?: ApiUrls;
15
+ isAntistock?: boolean;
16
+ }
17
+ export declare const App: React.FC<AppProps>;
18
+ export {};
@@ -0,0 +1,14 @@
1
+ import { ColorVariables } from './color-variables';
2
+ import type { PageContext } from './PageContext';
3
+ export interface BlockSettings {
4
+ displayName: string;
5
+ isAddable: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export interface IBlock {
9
+ blockSettings: BlockSettings;
10
+ blockColors: ColorVariables[];
11
+ renderBlock(settings: Record<string, any>, context: PageContext): JSX.Element;
12
+ renderPreview(settings: Record<string, any>, context: PageContext): JSX.Element;
13
+ renderSettings(context: PageContext): JSX.Element;
14
+ }
@@ -0,0 +1,3 @@
1
+ export interface ISettings {
2
+ renderSettings(): JSX.Element;
3
+ }
@@ -0,0 +1,121 @@
1
+ import { ShopInfo } from '@storefront/models';
2
+ import { ListingData } from '../ui';
3
+ type Listing = ListingData<'PRODUCT'> | ListingData<'GROUP'> | ListingData<'POST'>;
4
+ export interface Product {
5
+ id: number;
6
+ uniquePath: string;
7
+ name: string;
8
+ shortDescription?: string;
9
+ description?: string;
10
+ images: Image[];
11
+ variants: ProductVariant[];
12
+ stats: ProductStats;
13
+ reviews: Review[];
14
+ }
15
+ export interface Image {
16
+ id: number;
17
+ cfId: string;
18
+ }
19
+ export interface Review {
20
+ id: number;
21
+ message: string;
22
+ rating: number;
23
+ createdAtIso: string;
24
+ purchasedIso: string;
25
+ storeReply?: string;
26
+ }
27
+ export interface ProductStats {
28
+ averageRating: number;
29
+ totalReviews: number;
30
+ totalSold: number;
31
+ }
32
+ export interface VolumeDiscount {
33
+ amount: number;
34
+ percentage: number;
35
+ }
36
+ export interface ProductVariant {
37
+ id: number;
38
+ name: string;
39
+ description?: string;
40
+ shortDescription?: string;
41
+ price: {
42
+ amount: number;
43
+ currency: string;
44
+ };
45
+ compareAtPrice?: {
46
+ amount: number;
47
+ currency: string;
48
+ };
49
+ chargeTypes?: Array<'ONE_TIME' | 'RECURRING'>;
50
+ subscriptionSettings?: {
51
+ price: {
52
+ amount: number;
53
+ currency: string;
54
+ };
55
+ compareAtPrice?: {
56
+ amount: number;
57
+ currency: string;
58
+ };
59
+ recurringIntervalDays?: number;
60
+ entryFee?: {
61
+ amount: number;
62
+ currency: string;
63
+ };
64
+ };
65
+ quantity: {
66
+ available?: number;
67
+ restrictions?: {
68
+ min: number;
69
+ max: number;
70
+ };
71
+ };
72
+ deliveryTime?: number;
73
+ volumeDiscounts?: VolumeDiscount[];
74
+ terms?: string;
75
+ gateways: Array<{
76
+ name: string;
77
+ overrodePrice?: {
78
+ amount: number;
79
+ currency: string;
80
+ };
81
+ }>;
82
+ customFields: Array<{
83
+ id: string;
84
+ name: string;
85
+ required: boolean;
86
+ placeholder?: string;
87
+ defaultValue?: string;
88
+ regex?: string;
89
+ type: 'NUMBER' | 'TEXT' | 'SELECT';
90
+ }>;
91
+ warranty?: {
92
+ text: string;
93
+ durationMilliseconds?: number;
94
+ };
95
+ discordSettings: {
96
+ isEnabled: boolean;
97
+ isRequired: boolean;
98
+ };
99
+ }
100
+ export interface Faq {
101
+ id: number;
102
+ answer: string;
103
+ question: string;
104
+ }
105
+ export interface Category {
106
+ id: number;
107
+ name: string;
108
+ listingIdList: number[];
109
+ }
110
+ export interface PageContext {
111
+ listings: Listing[] | null;
112
+ products: Product[] | null;
113
+ reviews: any;
114
+ categories: Category[] | null;
115
+ faqs: Faq[] | null;
116
+ general: ShopInfo | null;
117
+ fullPosts: any;
118
+ posts: any;
119
+ preserveContent: boolean;
120
+ }
121
+ export {};
@@ -0,0 +1,28 @@
1
+ import { ItemBase } from '../ui';
2
+ export interface Listing extends ItemBase {
3
+ listingId: number;
4
+ imagePath: string;
5
+ stats: {
6
+ averageRating: number;
7
+ totalReviews: number;
8
+ totalSold: number;
9
+ oldPrice: number;
10
+ newPrice: number;
11
+ };
12
+ }
13
+ export type TypeValues = {
14
+ CategoryId: number[];
15
+ ProductId: number[];
16
+ ListingIds: {
17
+ listingId: number;
18
+ image: string;
19
+ }[];
20
+ AnnouncementId: number[];
21
+ ReviewCount: boolean;
22
+ FaqsIds: number[];
23
+ };
24
+ export type TypeVariable = keyof TypeValues;
25
+ export type Variable<T extends TypeVariable> = {
26
+ type: T;
27
+ value: TypeValues[T];
28
+ };
@@ -0,0 +1,48 @@
1
+ export declare enum ColorVariables {
2
+ ICON_LINK = "--icon-link",
3
+ ICON_ERROR = "--icon-error",
4
+ ICON_ACTION = "--icon-action",
5
+ ICON_PRIMARY = "--icon-primary",
6
+ ICON_SUCCESS = "--icon-success",
7
+ ICON_WARNING = "--icon-warning",
8
+ ICON_DISABLED = "--icon-disabled",
9
+ ICON_INVERTED = "--icon-inverted",
10
+ ICON_TERTIARY = "--icon-tertiary",
11
+ ICON_SECONDARY = "--icon-secondary",
12
+ ICON_ACTION_HOVER = "--icon-actionHover",
13
+ ICON_INFORMATION = "--icon-information",
14
+ TEXT_LINK = "--text-link",
15
+ TEXT_ERROR = "--text-error",
16
+ TEXT_ACTION = "--text-action",
17
+ TEXT_PRIMARY = "--text-primary",
18
+ TEXT_SUCCESS = "--text-success",
19
+ TEXT_WARNING = "--text-warning",
20
+ TEXT_DISABLED = "--text-disabled",
21
+ TEXT_INVERTED = "--text-inverted",
22
+ TEXT_TERTIARY = "--text-tertiary",
23
+ TEXT_SECONDARY = "--text-secondary",
24
+ TEXT_ACTION_HOVER = "--text-actionHover",
25
+ TEXT_INFORMATION = "--text-information",
26
+ BORDER_ERROR = "--border-error",
27
+ BORDER_FOCUS = "--border-focus",
28
+ BORDER_ACTION = "--border-action",
29
+ BORDER_PRIMARY = "--border-primary",
30
+ BORDER_SUCCESS = "--border-success",
31
+ BORDER_WARNING = "--border-warning",
32
+ BORDER_DISABLED = "--border-disabled",
33
+ BORDER_SECONDARY = "--border-secondary",
34
+ BORDER_ACTION_HOVER = "--border-actionHover",
35
+ BORDER_INFORMATION = "--border-information",
36
+ SURFACE_ERROR = "--surface-error",
37
+ SURFACE_MODAL = "--surface-modal",
38
+ SURFACE_ACTION1 = "--surface-action1",
39
+ SURFACE_ACTION2 = "--surface-action2",
40
+ SURFACE_PRIMARY = "--surface-primary",
41
+ SURFACE_SUCCESS = "--surface-success",
42
+ SURFACE_WARNING = "--surface-warning",
43
+ SURFACE_DISABLED = "--surface-disabled",
44
+ SURFACE_SECONDARY = "--surface-secondary",
45
+ SURFACE_INFORMATION = "--surface-information",
46
+ SURFACE_ACTION1_HOVER = "--surface-action1Hover",
47
+ SURFACE_ACTION2_HOVER = "--surface-action2Hover"
48
+ }
@@ -0,0 +1,4 @@
1
+ export * from './IBlock';
2
+ export * from './PageContext';
3
+ export * from './ISettings';
4
+ export * from './Variable';
@@ -0,0 +1,8 @@
1
+ export declare const API_URLS: {
2
+ api: string;
3
+ googleFonts: string;
4
+ storeApi: string;
5
+ slApi: string;
6
+ customersApi: string;
7
+ cashappApi: string;
8
+ };
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './constants';
@@ -0,0 +1,17 @@
1
+ import { AxiosResponse } from 'axios';
2
+ export type Method = 'get' | 'post' | 'put' | 'delete';
3
+ interface RequestOptions {
4
+ withToken: boolean;
5
+ url: string;
6
+ method: Method;
7
+ body?: Record<string, any>;
8
+ contentType?: string;
9
+ typeToken?: 'seller' | 'customer';
10
+ }
11
+ export interface RequestResponse<T> {
12
+ data: T;
13
+ status?: number;
14
+ headers?: AxiosResponse['headers'];
15
+ }
16
+ export declare const request: <T = any>(options: RequestOptions) => Promise<RequestResponse<T>>;
17
+ export {};
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ /**
3
+ * Регистрирует иконку в реестре
4
+ * Пользователи должны вызывать эту функцию для каждой иконки, которую они хотят использовать
5
+ */
6
+ export declare function registerIcon(name: string, IconComponent: React.ComponentType<any>): void;
7
+ /**
8
+ * Получает зарегистрированную иконку
9
+ */
10
+ export declare function getRegisteredIcon(name: string): React.ComponentType<any> | null;
11
+ /**
12
+ * Проверяет, зарегистрирована ли иконка
13
+ */
14
+ export declare function isIconRegistered(name: string): boolean;
15
+ /**
16
+ * Получает список всех зарегистрированных иконок
17
+ */
18
+ export declare function getRegisteredIcons(): string[];
19
+ /**
20
+ * Функция для массовой регистрации иконок
21
+ */
22
+ export declare function registerIcons(icons: Record<string, React.ComponentType<any>>): void;
@@ -0,0 +1 @@
1
+ export declare function registerLibraryIcons(): void;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { type IconName } from '../icons/index.js';
3
+ export type LazyIconComponent = React.LazyExoticComponent<React.ComponentType<React.SVGProps<SVGSVGElement>>>;
4
+ export declare function getLazyIcon(name: IconName): LazyIconComponent;
5
+ export declare const IconLazy: React.FC<{
6
+ name: IconName;
7
+ fallback?: React.ReactNode;
8
+ } & Omit<React.SVGProps<SVGSVGElement>, 'ref'>>;
@@ -0,0 +1,3 @@
1
+ export declare const iconLoaders: Record<string, () => Promise<any>>;
2
+ export type IconName = string;
3
+ export declare function loadIcon(name: string): Promise<any>;
@@ -0,0 +1,23 @@
1
+ export declare const FilledStar: () => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Cryptocurrency: React.FC<{
3
+ isAntistock?: boolean;
4
+ }>;
5
+ export declare const BTC: () => import("react/jsx-runtime").JSX.Element;
6
+ export declare const DebitCreditCard: React.FC<{
7
+ isAntistock?: boolean;
8
+ }>;
9
+ export declare const CashApp: React.FC<{
10
+ isAntistock?: boolean;
11
+ }>;
12
+ export declare const PayPal: React.FC<{
13
+ isAntistock?: boolean;
14
+ }>;
15
+ export declare const ApplePayGooglePay: React.FC<{
16
+ isAntistock?: boolean;
17
+ }>;
18
+ export declare const BankTransfer: React.FC<{
19
+ isAntistock?: boolean;
20
+ }>;
21
+ export declare const Visa: () => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Cryptocurrencies: () => import("react/jsx-runtime").JSX.Element;
23
+ export declare const Hoodpay: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function fetchAll(): Promise<any>;
@@ -0,0 +1,14 @@
1
+ export declare function fetchAllData(): Promise<{
2
+ general: PromiseSettledResult<any>;
3
+ faqs: PromiseSettledResult<any>;
4
+ listings: PromiseSettledResult<any>;
5
+ products: PromiseSettledResult<any>;
6
+ reviews: PromiseSettledResult<any>;
7
+ categories: PromiseSettledResult<any>;
8
+ fullPosts: PromiseSettledResult<{
9
+ data: null;
10
+ }>;
11
+ posts: PromiseSettledResult<{
12
+ data: null;
13
+ }>;
14
+ }>;