@salla.sa/twilight-theme-engine 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +165 -0
- package/dist/AddToCartForm-HOWNKCKX.js +304 -0
- package/dist/AddToCartForm-HOWNKCKX.js.map +1 -0
- package/dist/BlogAuthorPage-W3BZIJHJ.js +101 -0
- package/dist/BlogAuthorPage-W3BZIJHJ.js.map +1 -0
- package/dist/BlogCategoryPage-AIAJ5JBR.js +101 -0
- package/dist/BlogCategoryPage-AIAJ5JBR.js.map +1 -0
- package/dist/BlogPage-4BYF2EQW.js +190 -0
- package/dist/BlogPage-4BYF2EQW.js.map +1 -0
- package/dist/BlogSinglePage-AMNAUMWW.js +187 -0
- package/dist/BlogSinglePage-AMNAUMWW.js.map +1 -0
- package/dist/BlogTagPage-ELG2H5N5.js +101 -0
- package/dist/BlogTagPage-ELG2H5N5.js.map +1 -0
- package/dist/BrandsPage-ZSO3PYAV.js +127 -0
- package/dist/BrandsPage-ZSO3PYAV.js.map +1 -0
- package/dist/Breadcrumb-N32QFMVK.js +152 -0
- package/dist/Breadcrumb-N32QFMVK.js.map +1 -0
- package/dist/CartItem-SGTGOTEC.js +171 -0
- package/dist/CartItem-SGTGOTEC.js.map +1 -0
- package/dist/CartSummary-OKDGVSX2.js +236 -0
- package/dist/CartSummary-OKDGVSX2.js.map +1 -0
- package/dist/Copyright-F3HLYXFJ.js +9 -0
- package/dist/Copyright-F3HLYXFJ.js.map +1 -0
- package/dist/CurrencySymbol-TARAYUOT.js +11 -0
- package/dist/CurrencySymbol-TARAYUOT.js.map +1 -0
- package/dist/CustomerLayout-LB4E2LHT.js +68 -0
- package/dist/CustomerLayout-LB4E2LHT.js.map +1 -0
- package/dist/ErrorPage-TK4U3ENF.js +6 -0
- package/dist/ErrorPage-TK4U3ENF.js.map +1 -0
- package/dist/Footer-UVCSKTW3.js +39 -0
- package/dist/Footer-UVCSKTW3.js.map +1 -0
- package/dist/GoogleTag-4LHWC365.js +52 -0
- package/dist/GoogleTag-4LHWC365.js.map +1 -0
- package/dist/Header-BF6SPZJC.js +15 -0
- package/dist/Header-BF6SPZJC.js.map +1 -0
- package/dist/ImageModal-WLJM3WIE.js +41 -0
- package/dist/ImageModal-WLJM3WIE.js.map +1 -0
- package/dist/LoyaltyPage-X4PHPUFC.js +188 -0
- package/dist/LoyaltyPage-X4PHPUFC.js.map +1 -0
- package/dist/MainMenu-R3EWTNNC.js +91 -0
- package/dist/MainMenu-R3EWTNNC.js.map +1 -0
- package/dist/MasterLayout-5JLM7IMW.js +39 -0
- package/dist/MasterLayout-5JLM7IMW.js.map +1 -0
- package/dist/MobileMenu-QXESUQXC.js +175 -0
- package/dist/MobileMenu-QXESUQXC.js.map +1 -0
- package/dist/NoContent-PBGESHBJ.js +21 -0
- package/dist/NoContent-PBGESHBJ.js.map +1 -0
- package/dist/NotificationsPage-V6UIPDJD.js +84 -0
- package/dist/NotificationsPage-V6UIPDJD.js.map +1 -0
- package/dist/OrderSinglePage-ZMEKPLE3.js +441 -0
- package/dist/OrderSinglePage-ZMEKPLE3.js.map +1 -0
- package/dist/OrdersPage-EAATVPYK.js +184 -0
- package/dist/OrdersPage-EAATVPYK.js.map +1 -0
- package/dist/PageSingle-Y6ARZ5LS.js +28 -0
- package/dist/PageSingle-Y6ARZ5LS.js.map +1 -0
- package/dist/PreOrderNotification-ZVTGNV7K.js +23 -0
- package/dist/PreOrderNotification-ZVTGNV7K.js.map +1 -0
- package/dist/PriceQuoteButton-RAAPL4N4.js +26 -0
- package/dist/PriceQuoteButton-RAAPL4N4.js.map +1 -0
- package/dist/ProductDetails-KTY4ZSFM.js +194 -0
- package/dist/ProductDetails-KTY4ZSFM.js.map +1 -0
- package/dist/ProfilePage-6SK34MDJ.js +64 -0
- package/dist/ProfilePage-6SK34MDJ.js.map +1 -0
- package/dist/RenderWhenVisible-TR7G2KUC.js +50 -0
- package/dist/RenderWhenVisible-TR7G2KUC.js.map +1 -0
- package/dist/SeoCartWidget-XF4GEJK7.js +109 -0
- package/dist/SeoCartWidget-XF4GEJK7.js.map +1 -0
- package/dist/SettingsPage-DPYARBPO.js +51 -0
- package/dist/SettingsPage-DPYARBPO.js.map +1 -0
- package/dist/SiftSnippet-X74S5KDO.js +29 -0
- package/dist/SiftSnippet-X74S5KDO.js.map +1 -0
- package/dist/StoreClosedNotification-KSB2GPEZ.js +91 -0
- package/dist/StoreClosedNotification-KSB2GPEZ.js.map +1 -0
- package/dist/Testimonials-MZCVP66E.js +26 -0
- package/dist/Testimonials-MZCVP66E.js.map +1 -0
- package/dist/TestimonialsPage-4OFS5Z4V.js +77 -0
- package/dist/TestimonialsPage-4OFS5Z4V.js.map +1 -0
- package/dist/ThankYouPage-C7PA3RJP.js +236 -0
- package/dist/ThankYouPage-C7PA3RJP.js.map +1 -0
- package/dist/TwilightBundles-5F2H75VV.js +46 -0
- package/dist/TwilightBundles-5F2H75VV.js.map +1 -0
- package/dist/WalletPage-66XGZKO7.js +189 -0
- package/dist/WalletPage-66XGZKO7.js.map +1 -0
- package/dist/WidgetHead-FXEPCB23.js +7 -0
- package/dist/WidgetHead-FXEPCB23.js.map +1 -0
- package/dist/WishlistPage-7ZZYHBSZ.js +144 -0
- package/dist/WishlistPage-7ZZYHBSZ.js.map +1 -0
- package/dist/ambient/salla-components.d.ts +312 -0
- package/dist/ambient/virtual-modules.d.ts +22 -0
- package/dist/api/apps.d.ts +28 -0
- package/dist/api/apps.d.ts.map +1 -0
- package/dist/api/apps.js +26 -0
- package/dist/api/apps.js.map +1 -0
- package/dist/api/blog.d.ts +61 -0
- package/dist/api/blog.d.ts.map +1 -0
- package/dist/api/brands.d.ts +25 -0
- package/dist/api/brands.d.ts.map +1 -0
- package/dist/api/brands.js +40 -0
- package/dist/api/brands.js.map +1 -0
- package/dist/api/cart.d.ts +21 -0
- package/dist/api/cart.d.ts.map +1 -0
- package/dist/api/cart.js +40 -0
- package/dist/api/cart.js.map +1 -0
- package/dist/api/category.d.ts +31 -0
- package/dist/api/category.d.ts.map +1 -0
- package/dist/api/category.js +40 -0
- package/dist/api/category.js.map +1 -0
- package/dist/api/client.d.ts +17 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +7 -0
- package/dist/api/client.js.map +1 -0
- package/dist/api/home.d.ts +15 -0
- package/dist/api/home.d.ts.map +1 -0
- package/dist/api/home.js +8 -0
- package/dist/api/home.js.map +1 -0
- package/dist/api/loyalty.d.ts +25 -0
- package/dist/api/loyalty.d.ts.map +1 -0
- package/dist/api/loyalty.js +40 -0
- package/dist/api/loyalty.js.map +1 -0
- package/dist/api/menu.d.ts +16 -0
- package/dist/api/menu.d.ts.map +1 -0
- package/dist/api/menu.js +8 -0
- package/dist/api/menu.js.map +1 -0
- package/dist/api/notification.d.ts +26 -0
- package/dist/api/notification.d.ts.map +1 -0
- package/dist/api/order.d.ts +74 -0
- package/dist/api/order.d.ts.map +1 -0
- package/dist/api/order.js +40 -0
- package/dist/api/order.js.map +1 -0
- package/dist/api/page.d.ts +16 -0
- package/dist/api/page.d.ts.map +1 -0
- package/dist/api/page.js +40 -0
- package/dist/api/page.js.map +1 -0
- package/dist/api/product.d.ts +80 -0
- package/dist/api/product.d.ts.map +1 -0
- package/dist/api/product.js +40 -0
- package/dist/api/product.js.map +1 -0
- package/dist/api/profile.d.ts +9 -0
- package/dist/api/profile.d.ts.map +1 -0
- package/dist/api/profile.js +23 -0
- package/dist/api/profile.js.map +1 -0
- package/dist/api/store.d.ts +46 -0
- package/dist/api/store.d.ts.map +1 -0
- package/dist/api/store.js +8 -0
- package/dist/api/store.js.map +1 -0
- package/dist/api/translations.d.ts +15 -0
- package/dist/api/translations.d.ts.map +1 -0
- package/dist/api/translations.js +8 -0
- package/dist/api/translations.js.map +1 -0
- package/dist/api/types.d.ts +54 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +3 -0
- package/dist/api/types.js.map +1 -0
- package/dist/api/user.d.ts +15 -0
- package/dist/api/user.d.ts.map +1 -0
- package/dist/api/user.js +8 -0
- package/dist/api/user.js.map +1 -0
- package/dist/api/wallet.d.ts +30 -0
- package/dist/api/wallet.d.ts.map +1 -0
- package/dist/api/wishlist.d.ts +25 -0
- package/dist/api/wishlist.d.ts.map +1 -0
- package/dist/chunk-25SSLQAJ.js +67 -0
- package/dist/chunk-25SSLQAJ.js.map +1 -0
- package/dist/chunk-2FU6CVSB.js +18 -0
- package/dist/chunk-2FU6CVSB.js.map +1 -0
- package/dist/chunk-2KF5JJU6.js +169 -0
- package/dist/chunk-2KF5JJU6.js.map +1 -0
- package/dist/chunk-2TB2LTL2.js +103 -0
- package/dist/chunk-2TB2LTL2.js.map +1 -0
- package/dist/chunk-3DCZJDDK.js +10 -0
- package/dist/chunk-3DCZJDDK.js.map +1 -0
- package/dist/chunk-3UHSMGPY.js +145 -0
- package/dist/chunk-3UHSMGPY.js.map +1 -0
- package/dist/chunk-4EQEYRZ7.js +65 -0
- package/dist/chunk-4EQEYRZ7.js.map +1 -0
- package/dist/chunk-562ZMVI3.js +592 -0
- package/dist/chunk-562ZMVI3.js.map +1 -0
- package/dist/chunk-5Q6PFLDN.js +20 -0
- package/dist/chunk-5Q6PFLDN.js.map +1 -0
- package/dist/chunk-6B6VCCMC.js +28 -0
- package/dist/chunk-6B6VCCMC.js.map +1 -0
- package/dist/chunk-6BZ5TKEV.js +44 -0
- package/dist/chunk-6BZ5TKEV.js.map +1 -0
- package/dist/chunk-6NBBXERE.js +24 -0
- package/dist/chunk-6NBBXERE.js.map +1 -0
- package/dist/chunk-6Q5BFHFA.js +88 -0
- package/dist/chunk-6Q5BFHFA.js.map +1 -0
- package/dist/chunk-6YX4RS55.js +33 -0
- package/dist/chunk-6YX4RS55.js.map +1 -0
- package/dist/chunk-7LP7D75V.js +14 -0
- package/dist/chunk-7LP7D75V.js.map +1 -0
- package/dist/chunk-A5ZRUAMT.js +16 -0
- package/dist/chunk-A5ZRUAMT.js.map +1 -0
- package/dist/chunk-B3EFOE57.js +32 -0
- package/dist/chunk-B3EFOE57.js.map +1 -0
- package/dist/chunk-BT6HEEAP.js +31 -0
- package/dist/chunk-BT6HEEAP.js.map +1 -0
- package/dist/chunk-BVSJPBJ6.js +26 -0
- package/dist/chunk-BVSJPBJ6.js.map +1 -0
- package/dist/chunk-BWFBVXT3.js +13 -0
- package/dist/chunk-BWFBVXT3.js.map +1 -0
- package/dist/chunk-CW625T2E.js +62 -0
- package/dist/chunk-CW625T2E.js.map +1 -0
- package/dist/chunk-DFMO5KBU.js +67 -0
- package/dist/chunk-DFMO5KBU.js.map +1 -0
- package/dist/chunk-DGUM43GV.js +10 -0
- package/dist/chunk-DGUM43GV.js.map +1 -0
- package/dist/chunk-EQ5ZGAVR.js +89 -0
- package/dist/chunk-EQ5ZGAVR.js.map +1 -0
- package/dist/chunk-FBFPH5BB.js +34 -0
- package/dist/chunk-FBFPH5BB.js.map +1 -0
- package/dist/chunk-G7ALL4BC.js +52 -0
- package/dist/chunk-G7ALL4BC.js.map +1 -0
- package/dist/chunk-GBWCXUPD.js +99 -0
- package/dist/chunk-GBWCXUPD.js.map +1 -0
- package/dist/chunk-GLM3RPCP.js +1167 -0
- package/dist/chunk-GLM3RPCP.js.map +1 -0
- package/dist/chunk-GN34LCTG.js +92 -0
- package/dist/chunk-GN34LCTG.js.map +1 -0
- package/dist/chunk-GO34DE35.js +247 -0
- package/dist/chunk-GO34DE35.js.map +1 -0
- package/dist/chunk-HOSHJBPS.js +52 -0
- package/dist/chunk-HOSHJBPS.js.map +1 -0
- package/dist/chunk-I5Z4NJBB.js +17 -0
- package/dist/chunk-I5Z4NJBB.js.map +1 -0
- package/dist/chunk-J37AYLWL.js +66 -0
- package/dist/chunk-J37AYLWL.js.map +1 -0
- package/dist/chunk-KCKHA75V.js +19 -0
- package/dist/chunk-KCKHA75V.js.map +1 -0
- package/dist/chunk-KIPZQN3Y.js +158 -0
- package/dist/chunk-KIPZQN3Y.js.map +1 -0
- package/dist/chunk-LBUMC5PB.js +34 -0
- package/dist/chunk-LBUMC5PB.js.map +1 -0
- package/dist/chunk-LSDIFHXZ.js +80 -0
- package/dist/chunk-LSDIFHXZ.js.map +1 -0
- package/dist/chunk-M6ICEIWY.js +25 -0
- package/dist/chunk-M6ICEIWY.js.map +1 -0
- package/dist/chunk-MTONGOJD.js +42 -0
- package/dist/chunk-MTONGOJD.js.map +1 -0
- package/dist/chunk-MXQCE3KA.js +173 -0
- package/dist/chunk-MXQCE3KA.js.map +1 -0
- package/dist/chunk-N5RSKJP4.js +65 -0
- package/dist/chunk-N5RSKJP4.js.map +1 -0
- package/dist/chunk-N7CCSGZF.js +3 -0
- package/dist/chunk-N7CCSGZF.js.map +1 -0
- package/dist/chunk-NBHI5X36.js +27 -0
- package/dist/chunk-NBHI5X36.js.map +1 -0
- package/dist/chunk-NSX6XPDU.js +673 -0
- package/dist/chunk-NSX6XPDU.js.map +1 -0
- package/dist/chunk-O2UOV5RK.js +32 -0
- package/dist/chunk-O2UOV5RK.js.map +1 -0
- package/dist/chunk-OZTGUF7K.js +66 -0
- package/dist/chunk-OZTGUF7K.js.map +1 -0
- package/dist/chunk-Q3VACSSR.js +21 -0
- package/dist/chunk-Q3VACSSR.js.map +1 -0
- package/dist/chunk-QTDGM2SO.js +123 -0
- package/dist/chunk-QTDGM2SO.js.map +1 -0
- package/dist/chunk-QYL5OHAV.js +70 -0
- package/dist/chunk-QYL5OHAV.js.map +1 -0
- package/dist/chunk-RH32IGQD.js +372 -0
- package/dist/chunk-RH32IGQD.js.map +1 -0
- package/dist/chunk-RUHSV4Z6.js +12 -0
- package/dist/chunk-RUHSV4Z6.js.map +1 -0
- package/dist/chunk-RYBA3JDM.js +33 -0
- package/dist/chunk-RYBA3JDM.js.map +1 -0
- package/dist/chunk-SBIXBX6J.js +29 -0
- package/dist/chunk-SBIXBX6J.js.map +1 -0
- package/dist/chunk-SSRNIBVV.js +75 -0
- package/dist/chunk-SSRNIBVV.js.map +1 -0
- package/dist/chunk-SVZOWI7E.js +51 -0
- package/dist/chunk-SVZOWI7E.js.map +1 -0
- package/dist/chunk-SYHTMNYF.js +89 -0
- package/dist/chunk-SYHTMNYF.js.map +1 -0
- package/dist/chunk-T72DAX7R.js +65 -0
- package/dist/chunk-T72DAX7R.js.map +1 -0
- package/dist/chunk-TCSNNCRH.js +23 -0
- package/dist/chunk-TCSNNCRH.js.map +1 -0
- package/dist/chunk-TQLEQSXE.js +48 -0
- package/dist/chunk-TQLEQSXE.js.map +1 -0
- package/dist/chunk-TRUQDEMI.js +14 -0
- package/dist/chunk-TRUQDEMI.js.map +1 -0
- package/dist/chunk-TZ3E5BN4.js +91 -0
- package/dist/chunk-TZ3E5BN4.js.map +1 -0
- package/dist/chunk-TZ4YD5CU.js +16 -0
- package/dist/chunk-TZ4YD5CU.js.map +1 -0
- package/dist/chunk-U7HAK5U7.js +105 -0
- package/dist/chunk-U7HAK5U7.js.map +1 -0
- package/dist/chunk-UE3BUFZI.js +16 -0
- package/dist/chunk-UE3BUFZI.js.map +1 -0
- package/dist/chunk-UIX3W2PN.js +56 -0
- package/dist/chunk-UIX3W2PN.js.map +1 -0
- package/dist/chunk-VVRYP6IL.js +61 -0
- package/dist/chunk-VVRYP6IL.js.map +1 -0
- package/dist/chunk-VVZNW5CB.js +49 -0
- package/dist/chunk-VVZNW5CB.js.map +1 -0
- package/dist/chunk-XHGF75TM.js +133 -0
- package/dist/chunk-XHGF75TM.js.map +1 -0
- package/dist/chunk-XUI3TRXF.js +26 -0
- package/dist/chunk-XUI3TRXF.js.map +1 -0
- package/dist/chunk-YCYTBRYB.js +30 -0
- package/dist/chunk-YCYTBRYB.js.map +1 -0
- package/dist/chunk-YMVLYYLU.js +25 -0
- package/dist/chunk-YMVLYYLU.js.map +1 -0
- package/dist/chunk-Z653O7MX.js +10 -0
- package/dist/chunk-Z653O7MX.js.map +1 -0
- package/dist/chunk-ZCH7W7DZ.js +30 -0
- package/dist/chunk-ZCH7W7DZ.js.map +1 -0
- package/dist/components/Component.d.ts +8 -0
- package/dist/components/Component.d.ts.map +1 -0
- package/dist/components/ComponentRegistry.d.ts +19 -0
- package/dist/components/ComponentRegistry.d.ts.map +1 -0
- package/dist/components/cart/CartItem.d.ts +8 -0
- package/dist/components/cart/CartItem.d.ts.map +1 -0
- package/dist/components/cart/CartSummary.d.ts +12 -0
- package/dist/components/cart/CartSummary.d.ts.map +1 -0
- package/dist/components/cart/PreOrderNotification.d.ts +2 -0
- package/dist/components/cart/PreOrderNotification.d.ts.map +1 -0
- package/dist/components/cart/PriceQuoteButton.d.ts +2 -0
- package/dist/components/cart/PriceQuoteButton.d.ts.map +1 -0
- package/dist/components/cart/SeoCartWidget.d.ts +34 -0
- package/dist/components/cart/SeoCartWidget.d.ts.map +1 -0
- package/dist/components/cart/index.d.ts +4 -0
- package/dist/components/cart/index.d.ts.map +1 -0
- package/dist/components/cart/index.js +4 -0
- package/dist/components/cart/index.js.map +1 -0
- package/dist/components/cart/lazy.d.ts +8 -0
- package/dist/components/cart/lazy.d.ts.map +1 -0
- package/dist/components/collapse/Collapse.d.ts +51 -0
- package/dist/components/collapse/Collapse.d.ts.map +1 -0
- package/dist/components/collapse/index.d.ts +36 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +44 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/common/Breadcrumb.d.ts +7 -0
- package/dist/components/common/Breadcrumb.d.ts.map +1 -0
- package/dist/components/common/BreadcrumbJsonLd.d.ts +8 -0
- package/dist/components/common/BreadcrumbJsonLd.d.ts.map +1 -0
- package/dist/components/common/BreadcrumbTrail.d.ts +8 -0
- package/dist/components/common/BreadcrumbTrail.d.ts.map +1 -0
- package/dist/components/common/CurrencySymbol.d.ts +8 -0
- package/dist/components/common/CurrencySymbol.d.ts.map +1 -0
- package/dist/components/common/DeferredData.d.ts +20 -0
- package/dist/components/common/DeferredData.d.ts.map +1 -0
- package/dist/components/common/ErrorPage.d.ts +18 -0
- package/dist/components/common/ErrorPage.d.ts.map +1 -0
- package/dist/components/common/Image.d.ts +28 -0
- package/dist/components/common/Image.d.ts.map +1 -0
- package/dist/components/common/Link.d.ts +21 -0
- package/dist/components/common/Link.d.ts.map +1 -0
- package/dist/components/common/Link.types.d.ts +82 -0
- package/dist/components/common/Link.types.d.ts.map +1 -0
- package/dist/components/common/NoContent.d.ts +9 -0
- package/dist/components/common/NoContent.d.ts.map +1 -0
- package/dist/components/common/RenderWhenVisible.d.ts +23 -0
- package/dist/components/common/RenderWhenVisible.d.ts.map +1 -0
- package/dist/components/common/index.d.ts +11 -0
- package/dist/components/common/index.d.ts.map +1 -0
- package/dist/components/common/index.js +6 -0
- package/dist/components/common/index.js.map +1 -0
- package/dist/components/common/lazy.d.ts +13 -0
- package/dist/components/common/lazy.d.ts.map +1 -0
- package/dist/components/common/types.d.ts +7 -0
- package/dist/components/common/types.d.ts.map +1 -0
- package/dist/components/defineComponent.d.ts +11 -0
- package/dist/components/defineComponent.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.d.ts +53 -0
- package/dist/components/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +32 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +40 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +63 -0
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/index.d.ts +34 -0
- package/dist/components/dropdown/index.d.ts.map +1 -0
- package/dist/components/dropdown/index.js +67 -0
- package/dist/components/dropdown/index.js.map +1 -0
- package/dist/components/home/BundleComponent.d.ts +9 -0
- package/dist/components/home/BundleComponent.d.ts.map +1 -0
- package/dist/components/home/ComponentErrorBoundary.d.ts +22 -0
- package/dist/components/home/ComponentErrorBoundary.d.ts.map +1 -0
- package/dist/components/home/FeaturedProductsStyle1.d.ts +26 -0
- package/dist/components/home/FeaturedProductsStyle1.d.ts.map +1 -0
- package/dist/components/home/FeaturedProductsStyle2.d.ts +25 -0
- package/dist/components/home/FeaturedProductsStyle2.d.ts.map +1 -0
- package/dist/components/home/FeaturedProductsStyle3.d.ts +20 -0
- package/dist/components/home/FeaturedProductsStyle3.d.ts.map +1 -0
- package/dist/components/home/FixedBanner.d.ts +16 -0
- package/dist/components/home/FixedBanner.d.ts.map +1 -0
- package/dist/components/home/FixedProducts.d.ts +18 -0
- package/dist/components/home/FixedProducts.d.ts.map +1 -0
- package/dist/components/home/HomePageRenderer.d.ts +37 -0
- package/dist/components/home/HomePageRenderer.d.ts.map +1 -0
- package/dist/components/home/ParallaxBackground.d.ts +17 -0
- package/dist/components/home/ParallaxBackground.d.ts.map +1 -0
- package/dist/components/home/PhotosSlider.d.ts +16 -0
- package/dist/components/home/PhotosSlider.d.ts.map +1 -0
- package/dist/components/home/ProductsSlider.d.ts +25 -0
- package/dist/components/home/ProductsSlider.d.ts.map +1 -0
- package/dist/components/home/SquarePhotos.d.ts +21 -0
- package/dist/components/home/SquarePhotos.d.ts.map +1 -0
- package/dist/components/home/StoreFeatures.d.ts +9 -0
- package/dist/components/home/StoreFeatures.d.ts.map +1 -0
- package/dist/components/home/Testimonials.d.ts +15 -0
- package/dist/components/home/Testimonials.d.ts.map +1 -0
- package/dist/components/home/Youtube.d.ts +9 -0
- package/dist/components/home/Youtube.d.ts.map +1 -0
- package/dist/components/home/index.d.ts +9 -0
- package/dist/components/home/index.d.ts.map +1 -0
- package/dist/components/home/index.js +43 -0
- package/dist/components/home/index.js.map +1 -0
- package/dist/components/home/lazy.d.ts +14 -0
- package/dist/components/home/lazy.d.ts.map +1 -0
- package/dist/components/home/register.d.ts +4 -0
- package/dist/components/home/register.d.ts.map +1 -0
- package/dist/components/home/types.d.ts +6 -0
- package/dist/components/home/types.d.ts.map +1 -0
- package/dist/components/layout/Copyright.d.ts +8 -0
- package/dist/components/layout/Copyright.d.ts.map +1 -0
- package/dist/components/layout/CustomerLayout.d.ts +8 -0
- package/dist/components/layout/CustomerLayout.d.ts.map +1 -0
- package/dist/components/layout/Footer.d.ts +2 -0
- package/dist/components/layout/Footer.d.ts.map +1 -0
- package/dist/components/layout/Header.d.ts +7 -0
- package/dist/components/layout/Header.d.ts.map +1 -0
- package/dist/components/layout/MasterLayout.d.ts +3 -0
- package/dist/components/layout/MasterLayout.d.ts.map +1 -0
- package/dist/components/layout/WidgetHead.d.ts +21 -0
- package/dist/components/layout/WidgetHead.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +5 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/layout/index.js +25 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/layout/lazy.d.ts +11 -0
- package/dist/components/layout/lazy.d.ts.map +1 -0
- package/dist/components/layout/types.d.ts +10 -0
- package/dist/components/layout/types.d.ts.map +1 -0
- package/dist/components/modal/ImageModal.d.ts +37 -0
- package/dist/components/modal/ImageModal.d.ts.map +1 -0
- package/dist/components/modal/Modal.d.ts +78 -0
- package/dist/components/modal/Modal.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +30 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +5 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/lazy.d.ts +7 -0
- package/dist/components/modal/lazy.d.ts.map +1 -0
- package/dist/components/navigation/MainMenu.d.ts +2 -0
- package/dist/components/navigation/MainMenu.d.ts.map +1 -0
- package/dist/components/navigation/MobileMenu.d.ts +6 -0
- package/dist/components/navigation/MobileMenu.d.ts.map +1 -0
- package/dist/components/navigation/index.d.ts +3 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/navigation/lazy.d.ts +7 -0
- package/dist/components/navigation/lazy.d.ts.map +1 -0
- package/dist/components/product/AddToCartForm.d.ts +12 -0
- package/dist/components/product/AddToCartForm.d.ts.map +1 -0
- package/dist/components/product/ProductCard.d.ts +16 -0
- package/dist/components/product/ProductCard.d.ts.map +1 -0
- package/dist/components/product/ProductDetails.d.ts +8 -0
- package/dist/components/product/ProductDetails.d.ts.map +1 -0
- package/dist/components/product/ProductGallery.d.ts +7 -0
- package/dist/components/product/ProductGallery.d.ts.map +1 -0
- package/dist/components/product/index.d.ts +8 -0
- package/dist/components/product/index.d.ts.map +1 -0
- package/dist/components/product/index.js +41 -0
- package/dist/components/product/index.js.map +1 -0
- package/dist/components/product/lazy.d.ts +3 -0
- package/dist/components/product/lazy.d.ts.map +1 -0
- package/dist/components/store/StoreClosedNotification.d.ts +17 -0
- package/dist/components/store/StoreClosedNotification.d.ts.map +1 -0
- package/dist/components/store/index.d.ts +3 -0
- package/dist/components/store/index.d.ts.map +1 -0
- package/dist/components/store/lazy.d.ts +3 -0
- package/dist/components/store/lazy.d.ts.map +1 -0
- package/dist/components/toast/Toaster.d.ts +8 -0
- package/dist/components/toast/Toaster.d.ts.map +1 -0
- package/dist/components/toast/index.d.ts +4 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +5 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/types.d.ts +27 -0
- package/dist/components/toast/types.d.ts.map +1 -0
- package/dist/components/toast/useToast.d.ts +5 -0
- package/dist/components/toast/useToast.d.ts.map +1 -0
- package/dist/components/tracking/GoogleTag.d.ts +13 -0
- package/dist/components/tracking/GoogleTag.d.ts.map +1 -0
- package/dist/components/tracking/SiftSnippet.d.ts +16 -0
- package/dist/components/tracking/SiftSnippet.d.ts.map +1 -0
- package/dist/components/tracking/TwilightBundles.d.ts +11 -0
- package/dist/components/tracking/TwilightBundles.d.ts.map +1 -0
- package/dist/components/tracking/index.d.ts +5 -0
- package/dist/components/tracking/index.d.ts.map +1 -0
- package/dist/components/tracking/lazy.d.ts +5 -0
- package/dist/components/tracking/lazy.d.ts.map +1 -0
- package/dist/components/useComponent.d.ts +4 -0
- package/dist/components/useComponent.d.ts.map +1 -0
- package/dist/contexts/CartContext.d.ts +34 -0
- package/dist/contexts/CartContext.d.ts.map +1 -0
- package/dist/contexts/ProductContext.d.ts +34 -0
- package/dist/contexts/ProductContext.d.ts.map +1 -0
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/document-class-PLK3HUM6.js +21 -0
- package/dist/document-class-PLK3HUM6.js.map +1 -0
- package/dist/dom/document.d.ts +26 -0
- package/dist/dom/document.d.ts.map +1 -0
- package/dist/dom/index.d.ts +24 -0
- package/dist/dom/index.d.ts.map +1 -0
- package/dist/dom.d.ts +1 -0
- package/dist/dom.js +18 -0
- package/dist/dom.js.map +1 -0
- package/dist/eslint/index.d.ts +17 -0
- package/dist/eslint/index.d.ts.map +1 -0
- package/dist/eslint/index.js +86 -0
- package/dist/eslint/index.js.map +1 -0
- package/dist/hooks/HookRegistry.d.ts +47 -0
- package/dist/hooks/HookRegistry.d.ts.map +1 -0
- package/dist/hooks/HookRegistry.js +4 -0
- package/dist/hooks/HookRegistry.js.map +1 -0
- package/dist/hooks/HookSlot.d.ts +96 -0
- package/dist/hooks/HookSlot.d.ts.map +1 -0
- package/dist/hooks/HookSlot.js +6 -0
- package/dist/hooks/HookSlot.js.map +1 -0
- package/dist/hooks/index.d.ts +27 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +39 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/registerDefaultHooks.d.ts +18 -0
- package/dist/hooks/registerDefaultHooks.d.ts.map +1 -0
- package/dist/hooks/types.d.ts +100 -0
- package/dist/hooks/types.d.ts.map +1 -0
- package/dist/hooks/useAsset.d.ts +26 -0
- package/dist/hooks/useAsset.d.ts.map +1 -0
- package/dist/hooks/useAsset.js +5 -0
- package/dist/hooks/useAsset.js.map +1 -0
- package/dist/hooks/useAsyncFn.d.ts +68 -0
- package/dist/hooks/useAsyncFn.d.ts.map +1 -0
- package/dist/hooks/useAsyncFn.js +4 -0
- package/dist/hooks/useAsyncFn.js.map +1 -0
- package/dist/hooks/useBlogLike.d.ts +7 -0
- package/dist/hooks/useBlogLike.d.ts.map +1 -0
- package/dist/hooks/useBlogLike.js +7 -0
- package/dist/hooks/useBlogLike.js.map +1 -0
- package/dist/hooks/useBreadcrumbs.d.ts +3 -0
- package/dist/hooks/useBreadcrumbs.d.ts.map +1 -0
- package/dist/hooks/useComments.d.ts +36 -0
- package/dist/hooks/useComments.d.ts.map +1 -0
- package/dist/hooks/useComments.js +4 -0
- package/dist/hooks/useComments.js.map +1 -0
- package/dist/hooks/useCoupon.d.ts +66 -0
- package/dist/hooks/useCoupon.d.ts.map +1 -0
- package/dist/hooks/useCoupon.js +5 -0
- package/dist/hooks/useCoupon.js.map +1 -0
- package/dist/hooks/useDate.d.ts +24 -0
- package/dist/hooks/useDate.d.ts.map +1 -0
- package/dist/hooks/useDocumentClass.d.ts +42 -0
- package/dist/hooks/useDocumentClass.d.ts.map +1 -0
- package/dist/hooks/useDocumentClass.js +5 -0
- package/dist/hooks/useDocumentClass.js.map +1 -0
- package/dist/hooks/useGtm.d.ts +38 -0
- package/dist/hooks/useGtm.d.ts.map +1 -0
- package/dist/hooks/useHook.d.ts +24 -0
- package/dist/hooks/useHook.d.ts.map +1 -0
- package/dist/hooks/useHook.js +5 -0
- package/dist/hooks/useHook.js.map +1 -0
- package/dist/hooks/useIsClient.d.ts +7 -0
- package/dist/hooks/useIsClient.d.ts.map +1 -0
- package/dist/hooks/useMoney.d.ts +26 -0
- package/dist/hooks/useMoney.d.ts.map +1 -0
- package/dist/hooks/useMoney.js +39 -0
- package/dist/hooks/useMoney.js.map +1 -0
- package/dist/hooks/useNumber.d.ts +24 -0
- package/dist/hooks/useNumber.d.ts.map +1 -0
- package/dist/hooks/useOpeningHours.d.ts +28 -0
- package/dist/hooks/useOpeningHours.d.ts.map +1 -0
- package/dist/hooks/usePageConfig.d.ts +44 -0
- package/dist/hooks/usePageConfig.d.ts.map +1 -0
- package/dist/hooks/useProduct.d.ts +47 -0
- package/dist/hooks/useProduct.d.ts.map +1 -0
- package/dist/hooks/useProduct.js +4 -0
- package/dist/hooks/useProduct.js.map +1 -0
- package/dist/hooks/useStore.d.ts +36 -0
- package/dist/hooks/useStore.d.ts.map +1 -0
- package/dist/hooks/useStore.js +39 -0
- package/dist/hooks/useStore.js.map +1 -0
- package/dist/hooks/useTheme.d.ts +41 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/hooks/useTheme.js +5 -0
- package/dist/hooks/useTheme.js.map +1 -0
- package/dist/hooks/useUser.d.ts +8 -0
- package/dist/hooks/useUser.d.ts.map +1 -0
- package/dist/hooks/useUser.js +9 -0
- package/dist/hooks/useUser.js.map +1 -0
- package/dist/hooks/useWishlist.d.ts +5 -0
- package/dist/hooks/useWishlist.d.ts.map +1 -0
- package/dist/hooks/useWishlist.js +5 -0
- package/dist/hooks/useWishlist.js.map +1 -0
- package/dist/i18n.d.ts +1 -0
- package/dist/i18n.js +5 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +83 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/analytics/gtm.d.ts +38 -0
- package/dist/lib/analytics/gtm.d.ts.map +1 -0
- package/dist/lib/services/index.d.ts +1 -0
- package/dist/lib/services/index.d.ts.map +1 -0
- package/dist/navigation-N4H65RUN.js +17 -0
- package/dist/navigation-N4H65RUN.js.map +1 -0
- package/dist/navigation-YCYHW4MK.js +10 -0
- package/dist/navigation-YCYHW4MK.js.map +1 -0
- package/dist/nextjs/document-class.d.ts +92 -0
- package/dist/nextjs/document-class.d.ts.map +1 -0
- package/dist/nextjs/head.d.ts +36 -0
- package/dist/nextjs/head.d.ts.map +1 -0
- package/dist/nextjs/index.d.ts +29 -0
- package/dist/nextjs/index.d.ts.map +1 -0
- package/dist/nextjs/link.d.ts +14 -0
- package/dist/nextjs/link.d.ts.map +1 -0
- package/dist/nextjs/navigation.d.ts +9 -0
- package/dist/nextjs/navigation.d.ts.map +1 -0
- package/dist/nextjs/router.d.ts +15 -0
- package/dist/nextjs/router.d.ts.map +1 -0
- package/dist/nextjs.d.ts +1 -0
- package/dist/nextjs.js +22 -0
- package/dist/nextjs.js.map +1 -0
- package/dist/not-found-BJ3VK5VJ.js +69 -0
- package/dist/not-found-BJ3VK5VJ.js.map +1 -0
- package/dist/providers/DocumentClassProvider.d.ts +56 -0
- package/dist/providers/DocumentClassProvider.d.ts.map +1 -0
- package/dist/providers/DocumentSyncRegistry.d.ts +20 -0
- package/dist/providers/DocumentSyncRegistry.d.ts.map +1 -0
- package/dist/providers/LinkProvider.d.ts +34 -0
- package/dist/providers/LinkProvider.d.ts.map +1 -0
- package/dist/providers/NavigationProvider.d.ts +223 -0
- package/dist/providers/NavigationProvider.d.ts.map +1 -0
- package/dist/providers/TwilightProvider.d.ts +7 -0
- package/dist/providers/TwilightProvider.d.ts.map +1 -0
- package/dist/providers/i18n-factory.d.ts +17 -0
- package/dist/providers/i18n-factory.d.ts.map +1 -0
- package/dist/providers/i18n.d.ts +31 -0
- package/dist/providers/i18n.d.ts.map +1 -0
- package/dist/providers/index.d.ts +6 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/locale-constants.d.ts +17 -0
- package/dist/providers/locale-constants.d.ts.map +1 -0
- package/dist/providers/salla-sdk.types.d.ts +352 -0
- package/dist/providers/salla-sdk.types.d.ts.map +1 -0
- package/dist/providers/twilight-context.d.ts +4 -0
- package/dist/providers/twilight-context.d.ts.map +1 -0
- package/dist/providers/twilight-init.d.ts +24 -0
- package/dist/providers/twilight-init.d.ts.map +1 -0
- package/dist/providers/twilight-theme.d.ts +9 -0
- package/dist/providers/twilight-theme.d.ts.map +1 -0
- package/dist/providers/twilight.types.d.ts +95 -0
- package/dist/providers/twilight.types.d.ts.map +1 -0
- package/dist/router/context.d.ts +3 -0
- package/dist/router/context.d.ts.map +1 -0
- package/dist/router/index.d.ts +4 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/router/route-ids.d.ts +37 -0
- package/dist/router/route-ids.d.ts.map +1 -0
- package/dist/routes/account/index.d.ts +8 -0
- package/dist/routes/account/index.d.ts.map +1 -0
- package/dist/routes/account/notifications/NotificationsPage.d.ts +3 -0
- package/dist/routes/account/notifications/NotificationsPage.d.ts.map +1 -0
- package/dist/routes/account/notifications/index.d.ts +17 -0
- package/dist/routes/account/notifications/index.d.ts.map +1 -0
- package/dist/routes/account/notifications/loader.d.ts +5 -0
- package/dist/routes/account/notifications/loader.d.ts.map +1 -0
- package/dist/routes/account/notifications/types.d.ts +17 -0
- package/dist/routes/account/notifications/types.d.ts.map +1 -0
- package/dist/routes/account/orders/OrderSinglePage.d.ts +3 -0
- package/dist/routes/account/orders/OrderSinglePage.d.ts.map +1 -0
- package/dist/routes/account/orders/OrdersPage.d.ts +3 -0
- package/dist/routes/account/orders/OrdersPage.d.ts.map +1 -0
- package/dist/routes/account/orders/index.d.ts +35 -0
- package/dist/routes/account/orders/index.d.ts.map +1 -0
- package/dist/routes/account/orders/loader.d.ts +11 -0
- package/dist/routes/account/orders/loader.d.ts.map +1 -0
- package/dist/routes/account/orders/types.d.ts +22 -0
- package/dist/routes/account/orders/types.d.ts.map +1 -0
- package/dist/routes/account/orders.d.ts +1 -0
- package/dist/routes/account/orders.js +42 -0
- package/dist/routes/account/orders.js.map +1 -0
- package/dist/routes/account/profile/ProfilePage.d.ts +3 -0
- package/dist/routes/account/profile/ProfilePage.d.ts.map +1 -0
- package/dist/routes/account/profile/index.d.ts +17 -0
- package/dist/routes/account/profile/index.d.ts.map +1 -0
- package/dist/routes/account/profile/loader.d.ts +5 -0
- package/dist/routes/account/profile/loader.d.ts.map +1 -0
- package/dist/routes/account/profile/types.d.ts +5 -0
- package/dist/routes/account/profile/types.d.ts.map +1 -0
- package/dist/routes/account/settings/SettingsPage.d.ts +3 -0
- package/dist/routes/account/settings/SettingsPage.d.ts.map +1 -0
- package/dist/routes/account/settings/index.d.ts +17 -0
- package/dist/routes/account/settings/index.d.ts.map +1 -0
- package/dist/routes/account/settings/loader.d.ts +5 -0
- package/dist/routes/account/settings/loader.d.ts.map +1 -0
- package/dist/routes/account/settings/types.d.ts +5 -0
- package/dist/routes/account/settings/types.d.ts.map +1 -0
- package/dist/routes/account/types.d.ts +300 -0
- package/dist/routes/account/types.d.ts.map +1 -0
- package/dist/routes/account/wallet/WalletPage.d.ts +3 -0
- package/dist/routes/account/wallet/WalletPage.d.ts.map +1 -0
- package/dist/routes/account/wallet/index.d.ts +16 -0
- package/dist/routes/account/wallet/index.d.ts.map +1 -0
- package/dist/routes/account/wallet/loader.d.ts +4 -0
- package/dist/routes/account/wallet/loader.d.ts.map +1 -0
- package/dist/routes/account/wallet/types.d.ts +11 -0
- package/dist/routes/account/wallet/types.d.ts.map +1 -0
- package/dist/routes/account/wishlist/WishlistPage.d.ts +3 -0
- package/dist/routes/account/wishlist/WishlistPage.d.ts.map +1 -0
- package/dist/routes/account/wishlist/index.d.ts +16 -0
- package/dist/routes/account/wishlist/index.d.ts.map +1 -0
- package/dist/routes/account/wishlist/loader.d.ts +4 -0
- package/dist/routes/account/wishlist/loader.d.ts.map +1 -0
- package/dist/routes/account/wishlist/types.d.ts +9 -0
- package/dist/routes/account/wishlist/types.d.ts.map +1 -0
- package/dist/routes/account.d.ts +1 -0
- package/dist/routes/account.js +253 -0
- package/dist/routes/account.js.map +1 -0
- package/dist/routes/blog/BlogAuthorPage.d.ts +3 -0
- package/dist/routes/blog/BlogAuthorPage.d.ts.map +1 -0
- package/dist/routes/blog/BlogCategoryPage.d.ts +3 -0
- package/dist/routes/blog/BlogCategoryPage.d.ts.map +1 -0
- package/dist/routes/blog/BlogPage.d.ts +3 -0
- package/dist/routes/blog/BlogPage.d.ts.map +1 -0
- package/dist/routes/blog/BlogSinglePage.d.ts +3 -0
- package/dist/routes/blog/BlogSinglePage.d.ts.map +1 -0
- package/dist/routes/blog/BlogTagPage.d.ts +3 -0
- package/dist/routes/blog/BlogTagPage.d.ts.map +1 -0
- package/dist/routes/blog/components.d.ts +14 -0
- package/dist/routes/blog/components.d.ts.map +1 -0
- package/dist/routes/blog/index.d.ts +76 -0
- package/dist/routes/blog/index.d.ts.map +1 -0
- package/dist/routes/blog/loader.d.ts +16 -0
- package/dist/routes/blog/loader.d.ts.map +1 -0
- package/dist/routes/blog/types.d.ts +92 -0
- package/dist/routes/blog/types.d.ts.map +1 -0
- package/dist/routes/blog.d.ts +1 -0
- package/dist/routes/blog.js +303 -0
- package/dist/routes/blog.js.map +1 -0
- package/dist/routes/brands/BrandsPage.d.ts +5 -0
- package/dist/routes/brands/BrandsPage.d.ts.map +1 -0
- package/dist/routes/brands/index.d.ts +20 -0
- package/dist/routes/brands/index.d.ts.map +1 -0
- package/dist/routes/brands/loader.d.ts +3 -0
- package/dist/routes/brands/loader.d.ts.map +1 -0
- package/dist/routes/brands/types.d.ts +32 -0
- package/dist/routes/brands/types.d.ts.map +1 -0
- package/dist/routes/brands.d.ts +1 -0
- package/dist/routes/brands.js +92 -0
- package/dist/routes/brands.js.map +1 -0
- package/dist/routes/cart/CartPage.d.ts +3 -0
- package/dist/routes/cart/CartPage.d.ts.map +1 -0
- package/dist/routes/cart/index.d.ts +20 -0
- package/dist/routes/cart/index.d.ts.map +1 -0
- package/dist/routes/cart/loader.d.ts +8 -0
- package/dist/routes/cart/loader.d.ts.map +1 -0
- package/dist/routes/cart/types.d.ts +6 -0
- package/dist/routes/cart/types.d.ts.map +1 -0
- package/dist/routes/cart.d.ts +1 -0
- package/dist/routes/cart.js +168 -0
- package/dist/routes/cart.js.map +1 -0
- package/dist/routes/home/HomePage.d.ts +5 -0
- package/dist/routes/home/HomePage.d.ts.map +1 -0
- package/dist/routes/home/index.d.ts +22 -0
- package/dist/routes/home/index.d.ts.map +1 -0
- package/dist/routes/home/loader.d.ts +12 -0
- package/dist/routes/home/loader.d.ts.map +1 -0
- package/dist/routes/home/types.d.ts +10 -0
- package/dist/routes/home/types.d.ts.map +1 -0
- package/dist/routes/home.d.ts +1 -0
- package/dist/routes/home.js +46 -0
- package/dist/routes/home.js.map +1 -0
- package/dist/routes/index.d.ts +20 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +40 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/lazy.d.ts +23 -0
- package/dist/routes/lazy.d.ts.map +1 -0
- package/dist/routes/loyalty/LoyaltyPage.d.ts +3 -0
- package/dist/routes/loyalty/LoyaltyPage.d.ts.map +1 -0
- package/dist/routes/loyalty/index.d.ts +19 -0
- package/dist/routes/loyalty/index.d.ts.map +1 -0
- package/dist/routes/loyalty/loader.d.ts +3 -0
- package/dist/routes/loyalty/loader.d.ts.map +1 -0
- package/dist/routes/loyalty/types.d.ts +96 -0
- package/dist/routes/loyalty/types.d.ts.map +1 -0
- package/dist/routes/loyalty.d.ts +1 -0
- package/dist/routes/loyalty.js +73 -0
- package/dist/routes/loyalty.js.map +1 -0
- package/dist/routes/not-found.d.ts +15 -0
- package/dist/routes/not-found.d.ts.map +1 -0
- package/dist/routes/page/PageSingle.d.ts +3 -0
- package/dist/routes/page/PageSingle.d.ts.map +1 -0
- package/dist/routes/page/index.d.ts +21 -0
- package/dist/routes/page/index.d.ts.map +1 -0
- package/dist/routes/page/loader.d.ts +6 -0
- package/dist/routes/page/loader.d.ts.map +1 -0
- package/dist/routes/page/types.d.ts +32 -0
- package/dist/routes/page/types.d.ts.map +1 -0
- package/dist/routes/page.d.ts +1 -0
- package/dist/routes/page.js +97 -0
- package/dist/routes/page.js.map +1 -0
- package/dist/routes/product/ProductPage.d.ts +3 -0
- package/dist/routes/product/ProductPage.d.ts.map +1 -0
- package/dist/routes/product/index.d.ts +21 -0
- package/dist/routes/product/index.d.ts.map +1 -0
- package/dist/routes/product/loader.d.ts +6 -0
- package/dist/routes/product/loader.d.ts.map +1 -0
- package/dist/routes/product/types.d.ts +6 -0
- package/dist/routes/product/types.d.ts.map +1 -0
- package/dist/routes/product-listing/ProductListPage.d.ts +13 -0
- package/dist/routes/product-listing/ProductListPage.d.ts.map +1 -0
- package/dist/routes/product-listing/index.d.ts +16 -0
- package/dist/routes/product-listing/index.d.ts.map +1 -0
- package/dist/routes/product-listing/loader.d.ts +3 -0
- package/dist/routes/product-listing/loader.d.ts.map +1 -0
- package/dist/routes/product-listing/types.d.ts +71 -0
- package/dist/routes/product-listing/types.d.ts.map +1 -0
- package/dist/routes/product-listing.d.ts +1 -0
- package/dist/routes/product-listing.js +516 -0
- package/dist/routes/product-listing.js.map +1 -0
- package/dist/routes/product.d.ts +1 -0
- package/dist/routes/product.js +225 -0
- package/dist/routes/product.js.map +1 -0
- package/dist/routes/root/beforeLoad.d.ts +21 -0
- package/dist/routes/root/beforeLoad.d.ts.map +1 -0
- package/dist/routes/root/head.d.ts +5 -0
- package/dist/routes/root/head.d.ts.map +1 -0
- package/dist/routes/root/index.d.ts +3 -0
- package/dist/routes/root/index.d.ts.map +1 -0
- package/dist/routes/seo-redirects.d.ts +19 -0
- package/dist/routes/seo-redirects.d.ts.map +1 -0
- package/dist/routes/seo-redirects.js +40 -0
- package/dist/routes/seo-redirects.js.map +1 -0
- package/dist/routes/testimonials/TestimonialsPage.d.ts +3 -0
- package/dist/routes/testimonials/TestimonialsPage.d.ts.map +1 -0
- package/dist/routes/testimonials/index.d.ts +19 -0
- package/dist/routes/testimonials/index.d.ts.map +1 -0
- package/dist/routes/testimonials/loader.d.ts +5 -0
- package/dist/routes/testimonials/loader.d.ts.map +1 -0
- package/dist/routes/testimonials/types.d.ts +5 -0
- package/dist/routes/testimonials/types.d.ts.map +1 -0
- package/dist/routes/testimonials.d.ts +1 -0
- package/dist/routes/testimonials.js +49 -0
- package/dist/routes/testimonials.js.map +1 -0
- package/dist/routes/thank-you/ThankYouPage.d.ts +3 -0
- package/dist/routes/thank-you/ThankYouPage.d.ts.map +1 -0
- package/dist/routes/thank-you/index.d.ts +20 -0
- package/dist/routes/thank-you/index.d.ts.map +1 -0
- package/dist/routes/thank-you/loader.d.ts +5 -0
- package/dist/routes/thank-you/loader.d.ts.map +1 -0
- package/dist/routes/thank-you/types.d.ts +14 -0
- package/dist/routes/thank-you/types.d.ts.map +1 -0
- package/dist/routes/thank-you.d.ts +1 -0
- package/dist/routes/thank-you.js +95 -0
- package/dist/routes/thank-you.js.map +1 -0
- package/dist/routes/types.d.ts +36 -0
- package/dist/routes/types.d.ts.map +1 -0
- package/dist/sentry/client.d.ts +6 -0
- package/dist/sentry/client.d.ts.map +1 -0
- package/dist/sentry/client.js +17 -0
- package/dist/sentry/client.js.map +1 -0
- package/dist/sentry/server.d.ts +10 -0
- package/dist/sentry/server.d.ts.map +1 -0
- package/dist/sentry/server.js +16 -0
- package/dist/sentry/server.js.map +1 -0
- package/dist/skeleton.d.ts +4 -0
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/skeleton.js +47 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/tanstack/document-class.d.ts +44 -0
- package/dist/tanstack/document-class.d.ts.map +1 -0
- package/dist/tanstack/head.d.ts +24 -0
- package/dist/tanstack/head.d.ts.map +1 -0
- package/dist/tanstack/index.d.ts +28 -0
- package/dist/tanstack/index.d.ts.map +1 -0
- package/dist/tanstack/link.d.ts +18 -0
- package/dist/tanstack/link.d.ts.map +1 -0
- package/dist/tanstack/middleware/earlyHints.d.ts +3 -0
- package/dist/tanstack/middleware/earlyHints.d.ts.map +1 -0
- package/dist/tanstack/middleware/twilight.d.ts +7 -0
- package/dist/tanstack/middleware/twilight.d.ts.map +1 -0
- package/dist/tanstack/navigation.d.ts +13 -0
- package/dist/tanstack/navigation.d.ts.map +1 -0
- package/dist/tanstack/router.d.ts +85 -0
- package/dist/tanstack/router.d.ts.map +1 -0
- package/dist/tanstack/templates/account-layout.d.ts +8 -0
- package/dist/tanstack/templates/account-layout.d.ts.map +1 -0
- package/dist/tanstack/templates/index.d.ts +4 -0
- package/dist/tanstack/templates/index.d.ts.map +1 -0
- package/dist/tanstack/templates/locale-wrapper.d.ts +15 -0
- package/dist/tanstack/templates/locale-wrapper.d.ts.map +1 -0
- package/dist/tanstack/templates/redirect.d.ts +6 -0
- package/dist/tanstack/templates/redirect.d.ts.map +1 -0
- package/dist/tanstack.d.ts +1 -0
- package/dist/tanstack.js +137 -0
- package/dist/tanstack.js.map +1 -0
- package/dist/twilight/context.d.ts +46 -0
- package/dist/twilight/context.d.ts.map +1 -0
- package/dist/twilight/index.d.ts +3 -0
- package/dist/twilight/index.d.ts.map +1 -0
- package/dist/types/hooks.d.ts +58 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +724 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/apply-theme.d.ts +3 -0
- package/dist/utils/apply-theme.d.ts.map +1 -0
- package/dist/utils/asset.d.ts +27 -0
- package/dist/utils/asset.d.ts.map +1 -0
- package/dist/utils/baseHead.d.ts +23 -0
- package/dist/utils/baseHead.d.ts.map +1 -0
- package/dist/utils/baseHead.js +5 -0
- package/dist/utils/baseHead.js.map +1 -0
- package/dist/utils/breadcrumb.d.ts +5 -0
- package/dist/utils/breadcrumb.d.ts.map +1 -0
- package/dist/utils/cdn-image.d.ts +5 -0
- package/dist/utils/cdn-image.d.ts.map +1 -0
- package/dist/utils/color.d.ts +34 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/cookies.d.ts +16 -0
- package/dist/utils/cookies.d.ts.map +1 -0
- package/dist/utils/device.d.ts +19 -0
- package/dist/utils/device.d.ts.map +1 -0
- package/dist/utils/document-class.d.ts +67 -0
- package/dist/utils/document-class.d.ts.map +1 -0
- package/dist/utils/errors.d.ts +4 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/head.d.ts +100 -0
- package/dist/utils/head.d.ts.map +1 -0
- package/dist/utils/head.js +4 -0
- package/dist/utils/head.js.map +1 -0
- package/dist/utils/index.d.ts +22 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +15 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/number.d.ts +21 -0
- package/dist/utils/number.d.ts.map +1 -0
- package/dist/utils/salla-plural.d.ts +14 -0
- package/dist/utils/salla-plural.d.ts.map +1 -0
- package/dist/utils/sanitize.d.ts +2 -0
- package/dist/utils/sanitize.d.ts.map +1 -0
- package/dist/utils/sdk-events.d.ts +25 -0
- package/dist/utils/sdk-events.d.ts.map +1 -0
- package/dist/utils/sdk-helpers.d.ts +30 -0
- package/dist/utils/sdk-helpers.d.ts.map +1 -0
- package/dist/utils/sort-options.d.ts +8 -0
- package/dist/utils/sort-options.d.ts.map +1 -0
- package/dist/vite/adapters/index.d.ts +18 -0
- package/dist/vite/adapters/index.d.ts.map +1 -0
- package/dist/vite/adapters/nextjs.adapter.d.ts +12 -0
- package/dist/vite/adapters/nextjs.adapter.d.ts.map +1 -0
- package/dist/vite/adapters/tanstack.adapter.d.ts +71 -0
- package/dist/vite/adapters/tanstack.adapter.d.ts.map +1 -0
- package/dist/vite/index.d.ts +6 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +2193 -0
- package/dist/vite/index.js.map +1 -0
- package/dist/vite/plugins/best-practices/best-practices.plugin.d.ts +4 -0
- package/dist/vite/plugins/best-practices/best-practices.plugin.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/hooks-registry.d.ts +27 -0
- package/dist/vite/plugins/best-practices/hooks-registry.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/reporter.d.ts +4 -0
- package/dist/vite/plugins/best-practices/reporter.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/rules/index.d.ts +4 -0
- package/dist/vite/plugins/best-practices/rules/index.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/rules/no-deep-component-import.d.ts +3 -0
- package/dist/vite/plugins/best-practices/rules/no-deep-component-import.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/rules/no-direct-product-card-import.d.ts +3 -0
- package/dist/vite/plugins/best-practices/rules/no-direct-product-card-import.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/rules/no-img-without-dimensions.d.ts +3 -0
- package/dist/vite/plugins/best-practices/rules/no-img-without-dimensions.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/rules/no-manual-dom.d.ts +3 -0
- package/dist/vite/plugins/best-practices/rules/no-manual-dom.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/rules/no-window-location-reload.d.ts +3 -0
- package/dist/vite/plugins/best-practices/rules/no-window-location-reload.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/rules/require-page-hooks.d.ts +16 -0
- package/dist/vite/plugins/best-practices/rules/require-page-hooks.d.ts.map +1 -0
- package/dist/vite/plugins/best-practices/types.d.ts +34 -0
- package/dist/vite/plugins/best-practices/types.d.ts.map +1 -0
- package/dist/vite/plugins/package-aliases.plugin.d.ts +3 -0
- package/dist/vite/plugins/package-aliases.plugin.d.ts.map +1 -0
- package/dist/vite/plugins/salla-hydration.plugin.d.ts +12 -0
- package/dist/vite/plugins/salla-hydration.plugin.d.ts.map +1 -0
- package/dist/vite/plugins/theme-translations.plugin.d.ts +20 -0
- package/dist/vite/plugins/theme-translations.plugin.d.ts.map +1 -0
- package/dist/vite/twilight-react.d.ts +22 -0
- package/dist/vite/twilight-react.d.ts.map +1 -0
- package/dist/vite/types.d.ts +110 -0
- package/dist/vite/types.d.ts.map +1 -0
- package/package.json +474 -0
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
import { product } from './chunk-OZTGUF7K.js';
|
|
2
|
+
import { ProductCard } from './chunk-RH32IGQD.js';
|
|
3
|
+
import { registry } from './chunk-G7ALL4BC.js';
|
|
4
|
+
import { useTranslation } from './chunk-VVRYP6IL.js';
|
|
5
|
+
import { Image, LazyRenderWhenVisible } from './chunk-2KF5JJU6.js';
|
|
6
|
+
import { Link } from './chunk-TZ4YD5CU.js';
|
|
7
|
+
import { TwilightContext } from './chunk-BWFBVXT3.js';
|
|
8
|
+
import { memo, useState, useCallback, useEffect, lazy, Component, useRef, useMemo, Suspense } from 'react';
|
|
9
|
+
import { SallaProductsSlider, SallaProductsList, ProductsSliderSkeleton, ListSkeleton, SliderSkeleton, BackgroundSliderSkeleton, BulletDeliverySkeleton, ReviewItemSkeleton, FixedProductsSkeleton, Pulse } from '@salla.sa/twilight-components-react';
|
|
10
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
11
|
+
import { useQuery } from '@tanstack/react-query';
|
|
12
|
+
import { SallaButton } from '@salla.sa/twilight-components-react/button';
|
|
13
|
+
import { SallaSlider } from '@salla.sa/twilight-components-react/slider';
|
|
14
|
+
|
|
15
|
+
function ProductsSlider({ data }) {
|
|
16
|
+
const { t } = useTranslation();
|
|
17
|
+
const {
|
|
18
|
+
products,
|
|
19
|
+
title,
|
|
20
|
+
display_all_url: displayAllUrl,
|
|
21
|
+
position = 1,
|
|
22
|
+
priority = false,
|
|
23
|
+
show_controls: showControls,
|
|
24
|
+
controls_outer: controlsOuter,
|
|
25
|
+
loop,
|
|
26
|
+
centered,
|
|
27
|
+
slides_per_view: slidesPerView,
|
|
28
|
+
direction,
|
|
29
|
+
autoplay
|
|
30
|
+
} = data;
|
|
31
|
+
const sliderProps = useMemo(
|
|
32
|
+
() => ({
|
|
33
|
+
id: `slider-${position}`,
|
|
34
|
+
displayAllTitle: t("blocks.home.display_all", "View All"),
|
|
35
|
+
...showControls !== void 0 && { showControls },
|
|
36
|
+
...controlsOuter !== void 0 && { controlsOuter },
|
|
37
|
+
...loop !== void 0 && { loop },
|
|
38
|
+
...centered !== void 0 && { centered },
|
|
39
|
+
...slidesPerView !== void 0 && { slidesPerView },
|
|
40
|
+
...direction !== void 0 && { direction }
|
|
41
|
+
}),
|
|
42
|
+
[position, t, showControls, controlsOuter, loop, centered, slidesPerView, direction]
|
|
43
|
+
);
|
|
44
|
+
const loader = useCallback(
|
|
45
|
+
() => product.list({
|
|
46
|
+
source: products.source,
|
|
47
|
+
sourceValue: products.source_value
|
|
48
|
+
}),
|
|
49
|
+
[products.source, products.source_value]
|
|
50
|
+
);
|
|
51
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(ProductsSliderSkeleton, {}), children: /* @__PURE__ */ jsx(
|
|
52
|
+
SallaProductsSlider,
|
|
53
|
+
{
|
|
54
|
+
id: `best-offers-${position}-slider`,
|
|
55
|
+
loader,
|
|
56
|
+
sliderProps,
|
|
57
|
+
...displayAllUrl ? { displayAllUrl } : {},
|
|
58
|
+
...title ? { blockTitle: title } : {},
|
|
59
|
+
...autoplay !== void 0 ? { autoplay } : {},
|
|
60
|
+
skeleton: /* @__PURE__ */ jsx(ProductsSliderSkeleton, {}),
|
|
61
|
+
children: (product2, index) => /* @__PURE__ */ jsx(ProductCard, { product: product2, imagePriority: priority && index < 2 })
|
|
62
|
+
}
|
|
63
|
+
) });
|
|
64
|
+
}
|
|
65
|
+
var StoreFeatures = memo(function StoreFeatures2({ data }) {
|
|
66
|
+
const { features } = data;
|
|
67
|
+
if (!features.length) return null;
|
|
68
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-[repeat(2,minmax(0,1fr))] md:grid-cols-[repeat(3,minmax(0,1fr))] gap-4 sm:gap-6 xl:gap-8", children: features.map((feature, index) => /* @__PURE__ */ jsxs("div", { className: "s-block--features__item", children: [
|
|
69
|
+
/* @__PURE__ */ jsx("div", { className: "feature-icon", children: /* @__PURE__ */ jsx("i", { className: feature.icon }) }),
|
|
70
|
+
/* @__PURE__ */ jsx("h2", { children: feature.title }),
|
|
71
|
+
/* @__PURE__ */ jsx("p", { children: feature.description })
|
|
72
|
+
] }, index)) }) });
|
|
73
|
+
});
|
|
74
|
+
var FixedBanner = memo(function FixedBanner2(props) {
|
|
75
|
+
const { data, priority = false } = props;
|
|
76
|
+
const image = data.image?.url;
|
|
77
|
+
if (!image) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
const url = data.url;
|
|
81
|
+
const altText = data.image.alt?.trim() ? data.image.alt : data.title || "fixed banner";
|
|
82
|
+
const imgProps = priority ? {
|
|
83
|
+
loading: "eager",
|
|
84
|
+
fetchPriority: "high",
|
|
85
|
+
decoding: "sync"
|
|
86
|
+
} : {
|
|
87
|
+
loading: "lazy",
|
|
88
|
+
decoding: "async"
|
|
89
|
+
};
|
|
90
|
+
const smallUrl = data.image.small_url;
|
|
91
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsx(
|
|
92
|
+
Link,
|
|
93
|
+
{
|
|
94
|
+
to: url || "#",
|
|
95
|
+
className: "banner banner--fixed overflow-hidden",
|
|
96
|
+
"aria-label": `Banner ${altText}`,
|
|
97
|
+
children: /* @__PURE__ */ jsxs("picture", { children: [
|
|
98
|
+
smallUrl && /* @__PURE__ */ jsx("source", { media: "(max-width: 767px)", srcSet: smallUrl }),
|
|
99
|
+
/* @__PURE__ */ jsx(
|
|
100
|
+
"img",
|
|
101
|
+
{
|
|
102
|
+
width: "1200",
|
|
103
|
+
height: "300",
|
|
104
|
+
src: image,
|
|
105
|
+
alt: altText,
|
|
106
|
+
style: { maxWidth: "100%", objectFit: "contain" },
|
|
107
|
+
loading: imgProps.loading,
|
|
108
|
+
decoding: imgProps.decoding,
|
|
109
|
+
...priority && { fetchPriority: imgProps.fetchPriority }
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] })
|
|
113
|
+
}
|
|
114
|
+
) }) });
|
|
115
|
+
});
|
|
116
|
+
function FixedProducts({ data }) {
|
|
117
|
+
const { t } = useTranslation();
|
|
118
|
+
const title = data.title;
|
|
119
|
+
const limit = data.limit ? Number(data.limit) : void 0;
|
|
120
|
+
const isVertical = data.isVertical ?? true;
|
|
121
|
+
const { data: result, isLoading } = useQuery(
|
|
122
|
+
product.queries.list({
|
|
123
|
+
source: data.products.source,
|
|
124
|
+
sourceValue: data.products?.source_value,
|
|
125
|
+
perPage: limit
|
|
126
|
+
})
|
|
127
|
+
);
|
|
128
|
+
const products = result?.items ?? [];
|
|
129
|
+
if (isLoading) {
|
|
130
|
+
return /* @__PURE__ */ jsx(FixedProductsSkeleton, {});
|
|
131
|
+
}
|
|
132
|
+
if (!products.length) return null;
|
|
133
|
+
return /* @__PURE__ */ jsxs(Suspense, { fallback: /* @__PURE__ */ jsx(FixedProductsSkeleton, {}), children: [
|
|
134
|
+
title && /* @__PURE__ */ jsxs("div", { className: "s-block__title", children: [
|
|
135
|
+
/* @__PURE__ */ jsx("div", { className: "right-side", children: /* @__PURE__ */ jsx("h2", { children: title }) }),
|
|
136
|
+
data.display_all_url && /* @__PURE__ */ jsxs(Link, { to: data.display_all_url, className: "s-block__display-all", children: [
|
|
137
|
+
t("blocks.home.display_all", "View All"),
|
|
138
|
+
/* @__PURE__ */ jsx("i", { className: "sicon-arrow-left" })
|
|
139
|
+
] })
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
"div",
|
|
143
|
+
{
|
|
144
|
+
className: "s-products-list-wrapper " + (isVertical ? "s-products-list-vertical-cards" : "s-products-list-horizontal-cards"),
|
|
145
|
+
children: products.slice(0, 4).map((product2) => /* @__PURE__ */ jsx(ProductCard, { product: product2 }, product2.id))
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] });
|
|
149
|
+
}
|
|
150
|
+
var FeaturedProductsStyle1 = memo(function FeaturedProductsStyle12({
|
|
151
|
+
data
|
|
152
|
+
}) {
|
|
153
|
+
const items = data.items || [];
|
|
154
|
+
const mainProduct = data.main_product;
|
|
155
|
+
const [activeTab, setActiveTab] = useState(items[0]?.id || "");
|
|
156
|
+
const [isAnimating, setIsAnimating] = useState(false);
|
|
157
|
+
const handleTabClick = useCallback(
|
|
158
|
+
(tabId) => {
|
|
159
|
+
if (tabId === activeTab) return;
|
|
160
|
+
setIsAnimating(true);
|
|
161
|
+
setActiveTab(tabId);
|
|
162
|
+
setTimeout(() => setIsAnimating(false), 100);
|
|
163
|
+
},
|
|
164
|
+
[activeTab]
|
|
165
|
+
);
|
|
166
|
+
if (!items.length) return null;
|
|
167
|
+
const hasMultipleSections = items.length > 1;
|
|
168
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
169
|
+
/* @__PURE__ */ jsxs("div", { className: "s-block__title", children: [
|
|
170
|
+
/* @__PURE__ */ jsx("div", { className: "right-side", children: /* @__PURE__ */ jsx("h2", { children: mainProduct?.title }) }),
|
|
171
|
+
hasMultipleSections && /* @__PURE__ */ jsx("div", { className: "tabs hide-scroll hidden lg:flex", children: items.map((section) => /* @__PURE__ */ jsx(
|
|
172
|
+
SallaButton,
|
|
173
|
+
{
|
|
174
|
+
shape: "link",
|
|
175
|
+
onClick: () => handleTabClick(section.id || ""),
|
|
176
|
+
className: `tab-trigger ${activeTab === section.id ? "is-active" : ""}`,
|
|
177
|
+
children: section.title || section.name
|
|
178
|
+
},
|
|
179
|
+
section.id
|
|
180
|
+
)) })
|
|
181
|
+
] }),
|
|
182
|
+
/* @__PURE__ */ jsxs("div", { className: `grid grid-cols-1 gap-8 ${mainProduct?.product ? "lg:grid-cols-2" : ""}`, children: [
|
|
183
|
+
mainProduct?.product && /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx(
|
|
184
|
+
"custom-salla-product-card",
|
|
185
|
+
{
|
|
186
|
+
"shadow-on-hover": true,
|
|
187
|
+
product: JSON.stringify(mainProduct.product),
|
|
188
|
+
isSpecial: true
|
|
189
|
+
}
|
|
190
|
+
) }),
|
|
191
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
192
|
+
hasMultipleSections && /* @__PURE__ */ jsx("div", { className: "tabs mb-4 sm:mb-8 hide-scroll lg:hidden", children: items.map((section) => /* @__PURE__ */ jsx(
|
|
193
|
+
SallaButton,
|
|
194
|
+
{
|
|
195
|
+
shape: "link",
|
|
196
|
+
onClick: () => handleTabClick(section.id || ""),
|
|
197
|
+
className: `tab-trigger ${activeTab === section.id ? "is-active" : ""}`,
|
|
198
|
+
children: section.title || section.name
|
|
199
|
+
},
|
|
200
|
+
section.id
|
|
201
|
+
)) }),
|
|
202
|
+
/* @__PURE__ */ jsx("div", { className: "tabs-wrapper flex flex-1", children: items.map((section) => {
|
|
203
|
+
const isActive = activeTab === section.id;
|
|
204
|
+
return /* @__PURE__ */ jsx(
|
|
205
|
+
"div",
|
|
206
|
+
{
|
|
207
|
+
className: `tabs__item grid-cols-2 ${mainProduct?.product ? "" : "lg:grid-cols-4"} ${isActive ? "is-active" : ""} ${isAnimating && isActive ? "opacity-0 translate-y-3" : ""} ${!isAnimating && isActive ? "opacity-100 translate-y-0" : ""}`,
|
|
208
|
+
children: section.products?.slice(0, mainProduct?.product ? 4 : 8).map((product2, productIndex) => /* @__PURE__ */ jsx(
|
|
209
|
+
"custom-salla-product-card",
|
|
210
|
+
{
|
|
211
|
+
product: JSON.stringify(product2)
|
|
212
|
+
},
|
|
213
|
+
product2.id || productIndex
|
|
214
|
+
))
|
|
215
|
+
},
|
|
216
|
+
section.id
|
|
217
|
+
);
|
|
218
|
+
}) })
|
|
219
|
+
] })
|
|
220
|
+
] })
|
|
221
|
+
] });
|
|
222
|
+
});
|
|
223
|
+
var FeaturedProductsStyle2 = memo(function FeaturedProductsStyle22({
|
|
224
|
+
data
|
|
225
|
+
}) {
|
|
226
|
+
const items = data.items || [];
|
|
227
|
+
const isSlider = data.is_slider ?? true;
|
|
228
|
+
const [activeTab, setActiveTab] = useState(items[0]?.id || "");
|
|
229
|
+
const [isAnimating, setIsAnimating] = useState(false);
|
|
230
|
+
const handleTabClick = useCallback(
|
|
231
|
+
(tabId) => {
|
|
232
|
+
if (tabId === activeTab) return;
|
|
233
|
+
setIsAnimating(true);
|
|
234
|
+
setActiveTab(tabId);
|
|
235
|
+
setTimeout(() => setIsAnimating(false), 100);
|
|
236
|
+
},
|
|
237
|
+
[activeTab]
|
|
238
|
+
);
|
|
239
|
+
const loader = useCallback(
|
|
240
|
+
(source, value, limit) => {
|
|
241
|
+
return () => product.list({
|
|
242
|
+
source,
|
|
243
|
+
sourceValue: value,
|
|
244
|
+
perPage: limit
|
|
245
|
+
});
|
|
246
|
+
},
|
|
247
|
+
[]
|
|
248
|
+
);
|
|
249
|
+
if (!items.length) return null;
|
|
250
|
+
const hasMultipleSections = items.length > 1;
|
|
251
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
252
|
+
hasMultipleSections && /* @__PURE__ */ jsx("div", { className: "tabs hide-scroll", children: items.map((section) => /* @__PURE__ */ jsx(
|
|
253
|
+
SallaButton,
|
|
254
|
+
{
|
|
255
|
+
fill: "outline",
|
|
256
|
+
onClick: () => handleTabClick(section.id || ""),
|
|
257
|
+
className: `tab-trigger ${activeTab === section.id ? "is-active" : ""}`,
|
|
258
|
+
children: section.title || section.name
|
|
259
|
+
},
|
|
260
|
+
section.id
|
|
261
|
+
)) }),
|
|
262
|
+
/* @__PURE__ */ jsx("div", { className: "tabs-wrapper", children: items.map((section) => {
|
|
263
|
+
const isActive = activeTab === section.id;
|
|
264
|
+
return /* @__PURE__ */ jsx(
|
|
265
|
+
"div",
|
|
266
|
+
{
|
|
267
|
+
className: `tabs__item ${isActive ? "is-active" : ""} ${isAnimating && isActive ? "opacity-0 translate-y-3" : ""} ${!isAnimating && isActive ? "opacity-100 translate-y-0" : ""}`,
|
|
268
|
+
children: isSlider ? /* @__PURE__ */ jsx(
|
|
269
|
+
SallaProductsSlider,
|
|
270
|
+
{
|
|
271
|
+
loader: loader(
|
|
272
|
+
section.products.source,
|
|
273
|
+
section.products?.source_value,
|
|
274
|
+
section.products?.limit
|
|
275
|
+
),
|
|
276
|
+
sliderProps: { id: `section-${section.id}-slider` },
|
|
277
|
+
children: (product2) => /* @__PURE__ */ jsx(ProductCard, { className: "s-products-slider-card", product: product2 })
|
|
278
|
+
}
|
|
279
|
+
) : /* @__PURE__ */ jsx(
|
|
280
|
+
SallaProductsList,
|
|
281
|
+
{
|
|
282
|
+
loader: loader(
|
|
283
|
+
section.products.source,
|
|
284
|
+
section.products?.source_value,
|
|
285
|
+
section.products?.limit
|
|
286
|
+
),
|
|
287
|
+
itemsClassName: "s-products-list-horizontal-cards",
|
|
288
|
+
children: (products) => products.map((product2) => /* @__PURE__ */ jsx(ProductCard, { product: product2 }, product2.id))
|
|
289
|
+
}
|
|
290
|
+
)
|
|
291
|
+
},
|
|
292
|
+
section.id
|
|
293
|
+
);
|
|
294
|
+
}) })
|
|
295
|
+
] }) });
|
|
296
|
+
});
|
|
297
|
+
var FeaturedProductsStyle3 = memo(function FeaturedProductsStyle32({
|
|
298
|
+
data
|
|
299
|
+
}) {
|
|
300
|
+
const items = data.items || [];
|
|
301
|
+
if (!items.length) return null;
|
|
302
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "inner", children: items.map((section, sectionIndex) => /* @__PURE__ */ jsxs("div", { children: [
|
|
303
|
+
/* @__PURE__ */ jsx("div", { className: "s-block__title", children: /* @__PURE__ */ jsx("h2", { children: section.title }) }),
|
|
304
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 grid lg:grid-cols-2 gap-4 sm:gap-8", children: section.featured_product ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
305
|
+
/* @__PURE__ */ jsx(ProductCard, { product: section.featured_product, layout: "fullImage", withShadow: true }),
|
|
306
|
+
/* @__PURE__ */ jsx("div", { className: "grid gap-4 sm:gap-8", children: section.products?.slice(0, 3).map((product2, idx) => /* @__PURE__ */ jsx(
|
|
307
|
+
ProductCard,
|
|
308
|
+
{
|
|
309
|
+
product: product2,
|
|
310
|
+
layout: "minimal",
|
|
311
|
+
withShadow: true,
|
|
312
|
+
index: idx
|
|
313
|
+
},
|
|
314
|
+
product2.id
|
|
315
|
+
)) })
|
|
316
|
+
] }) : section.products?.map((product2, idx) => /* @__PURE__ */ jsx(
|
|
317
|
+
ProductCard,
|
|
318
|
+
{
|
|
319
|
+
product: product2,
|
|
320
|
+
layout: "minimal",
|
|
321
|
+
withShadow: true,
|
|
322
|
+
index: idx
|
|
323
|
+
},
|
|
324
|
+
product2.id
|
|
325
|
+
)) })
|
|
326
|
+
] }, section.id || sectionIndex)) }) });
|
|
327
|
+
});
|
|
328
|
+
var ParallaxBackground = memo(function ParallaxBackground2({
|
|
329
|
+
data
|
|
330
|
+
}) {
|
|
331
|
+
const { image, url, title, link_text: linkText, is_opacity: isOpacity = false } = data;
|
|
332
|
+
if (!image?.url) return null;
|
|
333
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "full-banner-entry", style: { backgroundImage: `url(${image.url})` }, children: [
|
|
334
|
+
/* @__PURE__ */ jsx(
|
|
335
|
+
"div",
|
|
336
|
+
{
|
|
337
|
+
className: `overlay h-full w-full ${isOpacity ? "bg-black" : ""} opacity-60 absolute top-0 left-0`
|
|
338
|
+
}
|
|
339
|
+
),
|
|
340
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-full items-center justify-center p-5 xs:p-11 relative", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
341
|
+
title && /* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold leading-12", children: title }),
|
|
342
|
+
url && linkText && /* @__PURE__ */ jsx(
|
|
343
|
+
Link,
|
|
344
|
+
{
|
|
345
|
+
to: url,
|
|
346
|
+
className: "inline-block text-white text-sm border rounded-md font-bold px-8 py-4",
|
|
347
|
+
children: linkText
|
|
348
|
+
}
|
|
349
|
+
)
|
|
350
|
+
] }) })
|
|
351
|
+
] }) });
|
|
352
|
+
});
|
|
353
|
+
var PhotosSlider = memo(function PhotosSlider2({ data }) {
|
|
354
|
+
const items = data.items || [];
|
|
355
|
+
const position = data.position ?? 1;
|
|
356
|
+
if (!items.length) return null;
|
|
357
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
358
|
+
SallaSlider,
|
|
359
|
+
{
|
|
360
|
+
type: "carousel",
|
|
361
|
+
className: "home-slider photos-slider",
|
|
362
|
+
centered: true,
|
|
363
|
+
autoPlay: true,
|
|
364
|
+
pagination: true,
|
|
365
|
+
id: `photos-${position}-slider`,
|
|
366
|
+
sliderConfig: { watchOverflow: true },
|
|
367
|
+
children: /* @__PURE__ */ jsx("div", { slot: "items", children: items.map((item, index) => /* @__PURE__ */ jsx("div", { className: "swiper-slide", style: { aspectRatio: "1200/300" }, children: /* @__PURE__ */ jsx(Link, { to: item.url || "#", children: /* @__PURE__ */ jsx(
|
|
368
|
+
Image,
|
|
369
|
+
{
|
|
370
|
+
src: item.image,
|
|
371
|
+
className: "w-full h-full object-contain rounded-md",
|
|
372
|
+
alt: `image-slider-${index}`,
|
|
373
|
+
width: 1200,
|
|
374
|
+
height: 300,
|
|
375
|
+
priority: index === 0
|
|
376
|
+
}
|
|
377
|
+
) }) }, index)) })
|
|
378
|
+
}
|
|
379
|
+
) });
|
|
380
|
+
});
|
|
381
|
+
var SquarePhotos = memo(function SquarePhotos2({ data }) {
|
|
382
|
+
const items = data.items || [];
|
|
383
|
+
const title = data.title;
|
|
384
|
+
if (!items.length) return null;
|
|
385
|
+
const gridCols = items.length <= 3 ? `one-row md:grid-cols-${items.length}` : "md:grid-cols-3 two-row";
|
|
386
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
387
|
+
title && /* @__PURE__ */ jsx("div", { className: "s-block__title", children: /* @__PURE__ */ jsx("div", { className: "right-side", children: /* @__PURE__ */ jsx("h2", { children: title }) }) }),
|
|
388
|
+
/* @__PURE__ */ jsx("div", { className: `grid ${gridCols} grid-flow-row gap-3 sm:gap-8`, children: items.map((item, index) => /* @__PURE__ */ jsx(
|
|
389
|
+
Link,
|
|
390
|
+
{
|
|
391
|
+
className: `banner-entry square-photos ${item.text ? "has-overlay with-hover" : ""}`,
|
|
392
|
+
style: { backgroundImage: `url(${item.image?.url})` },
|
|
393
|
+
to: item.url || "#",
|
|
394
|
+
...item.link_type === "external_link" ? { target: "_blank" } : {},
|
|
395
|
+
children: item.text && /* @__PURE__ */ jsx("h3", { className: "text-with-border", children: /* @__PURE__ */ jsx("span", { children: item.text }) })
|
|
396
|
+
},
|
|
397
|
+
index
|
|
398
|
+
)) })
|
|
399
|
+
] });
|
|
400
|
+
});
|
|
401
|
+
var Youtube = memo(function Youtube2({ data }) {
|
|
402
|
+
const { youtube_id: youtubeId } = data;
|
|
403
|
+
const [isLoaded, setIsLoaded] = useState(false);
|
|
404
|
+
useEffect(() => {
|
|
405
|
+
if (!youtubeId) return;
|
|
406
|
+
let mounted = true;
|
|
407
|
+
import('@justinribeiro/lite-youtube').then(() => {
|
|
408
|
+
if (mounted) setIsLoaded(true);
|
|
409
|
+
}).catch((err) => {
|
|
410
|
+
console.error("Failed to load lite-youtube:", err);
|
|
411
|
+
});
|
|
412
|
+
return () => {
|
|
413
|
+
mounted = false;
|
|
414
|
+
};
|
|
415
|
+
}, [youtubeId]);
|
|
416
|
+
if (!youtubeId) return null;
|
|
417
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsx("div", { className: "videoWrapper", children: isLoaded ? /* @__PURE__ */ jsx("lite-youtube", { videoid: youtubeId, params: "rel=0" }) : /* @__PURE__ */ jsx("div", { className: "animate-pulse bg-gray-200 w-full h-full min-h-[300px] rounded" }) }) }) });
|
|
418
|
+
});
|
|
419
|
+
var BundleComponent = memo(function BundleComponent2(props) {
|
|
420
|
+
const [mounted, setMounted] = useState(false);
|
|
421
|
+
useEffect(() => {
|
|
422
|
+
setMounted(true);
|
|
423
|
+
}, []);
|
|
424
|
+
if (!mounted) {
|
|
425
|
+
return null;
|
|
426
|
+
}
|
|
427
|
+
const { component_name: componentName, bundle_id: bundleId, ...rest } = props.data;
|
|
428
|
+
const config = JSON.stringify(rest);
|
|
429
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
430
|
+
"salla-custom-component",
|
|
431
|
+
{
|
|
432
|
+
"component-name": componentName,
|
|
433
|
+
"bundle-id": bundleId,
|
|
434
|
+
config,
|
|
435
|
+
suppressHydrationWarning: true
|
|
436
|
+
}
|
|
437
|
+
) });
|
|
438
|
+
});
|
|
439
|
+
|
|
440
|
+
// src/components/home/lazy.ts
|
|
441
|
+
var LazyTestimonials = lazy(
|
|
442
|
+
() => import('./Testimonials-MZCVP66E.js').then((m) => ({ default: m.Testimonials }))
|
|
443
|
+
);
|
|
444
|
+
|
|
445
|
+
// src/components/home/register.ts
|
|
446
|
+
var DefaultHomeComponents = {
|
|
447
|
+
"fixed-banner": FixedBanner,
|
|
448
|
+
"photos-slider": PhotosSlider,
|
|
449
|
+
testimonial: LazyTestimonials,
|
|
450
|
+
"store-features": StoreFeatures,
|
|
451
|
+
youtube: Youtube,
|
|
452
|
+
"square-photos": SquarePhotos,
|
|
453
|
+
"fixed-products": FixedProducts,
|
|
454
|
+
"products-slider": ProductsSlider,
|
|
455
|
+
"parallax-background": ParallaxBackground,
|
|
456
|
+
"featured-products:style1": FeaturedProductsStyle1,
|
|
457
|
+
"featured-products:style2": FeaturedProductsStyle2,
|
|
458
|
+
"featured-products:style3": FeaturedProductsStyle3,
|
|
459
|
+
"bundle-component": BundleComponent
|
|
460
|
+
};
|
|
461
|
+
function registerHomeComponents(components = DefaultHomeComponents, prefix = "home:") {
|
|
462
|
+
Object.entries(components).forEach(([path, component]) => {
|
|
463
|
+
if (component) {
|
|
464
|
+
registry.register(`${prefix}${path}`, component);
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
function DevelopmentErrorCard({ error, data }) {
|
|
469
|
+
return /* @__PURE__ */ jsxs("section", { dir: "ltr", className: "s-block container overflow-hidden bg-red-50 border border-red-300 p-4", children: [
|
|
470
|
+
/* @__PURE__ */ jsxs("p", { className: "text-red-800 text-sm font-bold", children: [
|
|
471
|
+
"Home Component Error: ",
|
|
472
|
+
data.path
|
|
473
|
+
] }),
|
|
474
|
+
/* @__PURE__ */ jsx("p", { className: "text-red-700 text-sm mt-2", children: error.message }),
|
|
475
|
+
/* @__PURE__ */ jsxs("details", { className: "mt-2", children: [
|
|
476
|
+
/* @__PURE__ */ jsx("summary", { className: "text-xs cursor-pointer text-red-600", children: "Stack Trace" }),
|
|
477
|
+
/* @__PURE__ */ jsx("pre", { className: "text-xs mt-1 overflow-auto max-h-32 text-red-700", children: error.stack })
|
|
478
|
+
] }),
|
|
479
|
+
/* @__PURE__ */ jsxs("details", { className: "mt-2", children: [
|
|
480
|
+
/* @__PURE__ */ jsx("summary", { className: "text-xs cursor-pointer text-red-600", children: "Component Data" }),
|
|
481
|
+
/* @__PURE__ */ jsx("pre", { className: "text-xs mt-1 overflow-auto max-h-32 text-red-700", children: JSON.stringify(data, null, 2) })
|
|
482
|
+
] })
|
|
483
|
+
] });
|
|
484
|
+
}
|
|
485
|
+
var ComponentErrorBoundary = class extends Component {
|
|
486
|
+
static {
|
|
487
|
+
this.contextType = TwilightContext;
|
|
488
|
+
}
|
|
489
|
+
constructor(props) {
|
|
490
|
+
super(props);
|
|
491
|
+
this.state = { hasError: false, error: null };
|
|
492
|
+
}
|
|
493
|
+
static getDerivedStateFromError(error) {
|
|
494
|
+
return { hasError: true, error };
|
|
495
|
+
}
|
|
496
|
+
componentDidCatch(error, errorInfo) {
|
|
497
|
+
if (!this.context) {
|
|
498
|
+
console.error("[ComponentErrorBoundary] Must be used within TwilightProvider");
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
const { log } = this.context;
|
|
502
|
+
const { data, position } = this.props;
|
|
503
|
+
log.groupCollapsed(`HomeComponent Error: ${data.path || "unknown"}`);
|
|
504
|
+
log.error("ERROR", error.message);
|
|
505
|
+
log.label("COMPONENT", data.path || "unknown");
|
|
506
|
+
log.label("POSITION", position);
|
|
507
|
+
log.label("URL", typeof window !== "undefined" ? window.location.href : "SSR");
|
|
508
|
+
log.label("TIME", (/* @__PURE__ */ new Date()).toISOString());
|
|
509
|
+
log.trace("STACK TRACE", error.stack || "");
|
|
510
|
+
log.trace("COMPONENT STACK", errorInfo.componentStack || "");
|
|
511
|
+
log.dir("COMPONENT DATA", data);
|
|
512
|
+
log.groupEnd();
|
|
513
|
+
}
|
|
514
|
+
render() {
|
|
515
|
+
const { hasError, error } = this.state;
|
|
516
|
+
const { children, data } = this.props;
|
|
517
|
+
if (hasError && error) {
|
|
518
|
+
if (process.env.NODE_ENV === "production") {
|
|
519
|
+
return null;
|
|
520
|
+
}
|
|
521
|
+
return /* @__PURE__ */ jsx(DevelopmentErrorCard, { error, data });
|
|
522
|
+
}
|
|
523
|
+
return children;
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
function SquareGridSkeleton() {
|
|
527
|
+
return /* @__PURE__ */ jsx("div", { className: "s-block container grid grid-cols-2 sm:grid-cols-4 gap-4 py-8", children: [1, 2, 3, 4].map((i) => /* @__PURE__ */ jsx(Pulse, { className: "aspect-square" }, i)) });
|
|
528
|
+
}
|
|
529
|
+
var FallbackComponent = memo(function FallbackComponent2({ data }) {
|
|
530
|
+
if (process.env.NODE_ENV === "production") return null;
|
|
531
|
+
return /* @__PURE__ */ jsxs(
|
|
532
|
+
"section",
|
|
533
|
+
{
|
|
534
|
+
dir: "ltr",
|
|
535
|
+
className: "s-block container overflow-hidden bg-yellow-50 border border-yellow-200 p-4",
|
|
536
|
+
children: [
|
|
537
|
+
/* @__PURE__ */ jsxs("p", { className: "text-yellow-800 text-sm", children: [
|
|
538
|
+
/* @__PURE__ */ jsx("strong", { children: "Unknown component:" }),
|
|
539
|
+
" ",
|
|
540
|
+
data.path
|
|
541
|
+
] }),
|
|
542
|
+
/* @__PURE__ */ jsxs("p", { className: "text-yellow-700 text-xs mt-1", children: [
|
|
543
|
+
"Register it in setup.ts: ",
|
|
544
|
+
/* @__PURE__ */ jsxs("code", { children: [
|
|
545
|
+
"registry.register('home:",
|
|
546
|
+
data.path,
|
|
547
|
+
"', YourComponent)"
|
|
548
|
+
] })
|
|
549
|
+
] }),
|
|
550
|
+
/* @__PURE__ */ jsxs("details", { className: "mt-2", children: [
|
|
551
|
+
/* @__PURE__ */ jsx("summary", { className: "text-xs cursor-pointer", children: "Component Data" }),
|
|
552
|
+
/* @__PURE__ */ jsx("pre", { className: "text-xs mt-1 overflow-auto max-h-32", children: JSON.stringify(data, null, 2) })
|
|
553
|
+
] })
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
);
|
|
557
|
+
});
|
|
558
|
+
function getComponentByPath(data) {
|
|
559
|
+
const { path, view_style: viewStyle } = data;
|
|
560
|
+
if (viewStyle) {
|
|
561
|
+
const variantKey = `home:${path}:${viewStyle}`;
|
|
562
|
+
const variant = registry.resolve(variantKey);
|
|
563
|
+
if (variant) {
|
|
564
|
+
return variant;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
const registryKey = `home:${path}`;
|
|
568
|
+
const component = registry.resolve(registryKey);
|
|
569
|
+
if (component) {
|
|
570
|
+
return component;
|
|
571
|
+
}
|
|
572
|
+
return FallbackComponent;
|
|
573
|
+
}
|
|
574
|
+
var COMPONENT_CONFIG = {
|
|
575
|
+
"products-slider": { height: "450px", placeholder: /* @__PURE__ */ jsx(ProductsSliderSkeleton, {}) },
|
|
576
|
+
"fixed-products": { height: "450px", placeholder: /* @__PURE__ */ jsx(FixedProductsSkeleton, {}) },
|
|
577
|
+
"featured-products": {
|
|
578
|
+
height: "450px",
|
|
579
|
+
placeholder: /* @__PURE__ */ jsx(ProductsSliderSkeleton, {}),
|
|
580
|
+
className: (data) => {
|
|
581
|
+
const style = data.view_style;
|
|
582
|
+
if (style === "style1")
|
|
583
|
+
return "s-block s-block--featured-products s-block-tabs s-block--special-products container tabs-initialized";
|
|
584
|
+
if (style === "style2")
|
|
585
|
+
return `s-block s-block--featured-products s-block-tabs s-block--tabs-produtcs s-block--full-bg tabs-initialized ${data.is_slider ? "as-slider" : "as-grid"} bg-gray-100 py-8 sm:py-16`;
|
|
586
|
+
if (style === "style3")
|
|
587
|
+
return `s-block s-block--featured-products s-block--features-products${Array.isArray(data.items) && data.items.length > 1 ? " two-cols" : ""} container`;
|
|
588
|
+
return "s-block s-block--featured-products container overflow-hidden";
|
|
589
|
+
},
|
|
590
|
+
id: (data) => `featured-products-${data.view_style}-${data.position ?? 0}`
|
|
591
|
+
},
|
|
592
|
+
testimonial: { height: "350px", placeholder: /* @__PURE__ */ jsx(ReviewItemSkeleton, {}) },
|
|
593
|
+
"store-features": { height: "200px", placeholder: /* @__PURE__ */ jsx(BulletDeliverySkeleton, {}) },
|
|
594
|
+
"parallax-background": { height: "500px", placeholder: /* @__PURE__ */ jsx(BackgroundSliderSkeleton, {}) },
|
|
595
|
+
"fixed-banner": { height: "350px", placeholder: /* @__PURE__ */ jsx(BackgroundSliderSkeleton, {}) },
|
|
596
|
+
"photos-slider": {
|
|
597
|
+
height: "clamp(130px, 30vw, 350px)",
|
|
598
|
+
placeholder: /* @__PURE__ */ jsx(SliderSkeleton, {}),
|
|
599
|
+
className: (data) => `s-block s-block--photos-slider${data.is_repeated ? " repeated-block" : ""}`
|
|
600
|
+
},
|
|
601
|
+
"square-photos": { height: "250px", placeholder: /* @__PURE__ */ jsx(SquareGridSkeleton, {}) },
|
|
602
|
+
youtube: { height: "350px", placeholder: /* @__PURE__ */ jsx(SliderSkeleton, {}) },
|
|
603
|
+
"bundle-component": {
|
|
604
|
+
height: "400px",
|
|
605
|
+
placeholder: /* @__PURE__ */ jsx(ProductsSliderSkeleton, {}),
|
|
606
|
+
className: (data) => `s-block s-block--bundle-${data.component_name}`
|
|
607
|
+
},
|
|
608
|
+
"main-links": {
|
|
609
|
+
height: "200px",
|
|
610
|
+
placeholder: /* @__PURE__ */ jsx(ListSkeleton, {}),
|
|
611
|
+
className: (data) => {
|
|
612
|
+
const mergeWithTop = data.merge_links_with_top_component;
|
|
613
|
+
const position = data.position;
|
|
614
|
+
return [
|
|
615
|
+
"s-block",
|
|
616
|
+
"s-block--main-links",
|
|
617
|
+
mergeWithTop && position ? "merge-with-top-component" : "",
|
|
618
|
+
!data.title && mergeWithTop ? "merged-has-no-title" : ""
|
|
619
|
+
].filter(Boolean).join(" ");
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"square-links": { height: "200px", placeholder: /* @__PURE__ */ jsx(SquareGridSkeleton, {}) }
|
|
623
|
+
};
|
|
624
|
+
var themeComponentConfig = {};
|
|
625
|
+
function registerHomeComponentConfig(config) {
|
|
626
|
+
Object.assign(themeComponentConfig, config);
|
|
627
|
+
}
|
|
628
|
+
function resolveComponentConfig(path) {
|
|
629
|
+
return themeComponentConfig[path] ?? COMPONENT_CONFIG[path];
|
|
630
|
+
}
|
|
631
|
+
var HomeComponentRenderer = memo(function HomeComponentRenderer2({
|
|
632
|
+
data,
|
|
633
|
+
index
|
|
634
|
+
}) {
|
|
635
|
+
const renderCountRef = useRef(0);
|
|
636
|
+
renderCountRef.current += 1;
|
|
637
|
+
if (process.env.NODE_ENV === "development") {
|
|
638
|
+
console.log(
|
|
639
|
+
`[HomeComponentRenderer] RENDER: path=${data.path}, index=${index}, renderCount=${renderCountRef.current}`
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
useEffect(() => {
|
|
643
|
+
console.log(
|
|
644
|
+
`[HomeComponentRenderer] MOUNT: path=${data.path}, index=${index}, renderCount=${renderCountRef.current}`
|
|
645
|
+
);
|
|
646
|
+
return () => {
|
|
647
|
+
console.log(`[HomeComponentRenderer] UNMOUNT: path=${data.path}, index=${index}`);
|
|
648
|
+
};
|
|
649
|
+
}, [data.path, index]);
|
|
650
|
+
const isFirstComponent = index <= 2;
|
|
651
|
+
const Component2 = getComponentByPath(data);
|
|
652
|
+
const config = resolveComponentConfig(data.path);
|
|
653
|
+
const resolvedClassName = config?.className ? typeof config.className === "function" ? config.className(data) : config.className : `s-block s-block--${data.path}`;
|
|
654
|
+
const resolvedId = config?.id ? typeof config.id === "function" ? config.id(data) : config.id : void 0;
|
|
655
|
+
const height = config?.height || "400px";
|
|
656
|
+
const content = /* @__PURE__ */ jsx(ComponentErrorBoundary, { data, position: index + 1, children: /* @__PURE__ */ jsx(Component2, { data: { ...data, position: index + 1, priority: isFirstComponent } }) });
|
|
657
|
+
return /* @__PURE__ */ jsx(
|
|
658
|
+
LazyRenderWhenVisible,
|
|
659
|
+
{
|
|
660
|
+
rootMargin: "50px",
|
|
661
|
+
className: resolvedClassName,
|
|
662
|
+
id: resolvedId,
|
|
663
|
+
estimatedHeight: height,
|
|
664
|
+
renderOnMount: isFirstComponent,
|
|
665
|
+
placeholder: config?.placeholder ?? /* @__PURE__ */ jsx(ProductsSliderSkeleton, {}),
|
|
666
|
+
children: content
|
|
667
|
+
}
|
|
668
|
+
);
|
|
669
|
+
});
|
|
670
|
+
|
|
671
|
+
export { BundleComponent, ComponentErrorBoundary, DefaultHomeComponents, FeaturedProductsStyle1, FeaturedProductsStyle2, FeaturedProductsStyle3, FixedBanner, FixedProducts, HomeComponentRenderer, LazyTestimonials, ParallaxBackground, PhotosSlider, ProductsSlider, SquarePhotos, StoreFeatures, Youtube, registerHomeComponentConfig, registerHomeComponents };
|
|
672
|
+
//# sourceMappingURL=chunk-NSX6XPDU.js.map
|
|
673
|
+
//# sourceMappingURL=chunk-NSX6XPDU.js.map
|