@salla.sa/twilight-theme-engine 1.0.179 → 1.0.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddToCartForm-PU3HSWJ2.js → AddToCartForm-OZGZROUJ.js} +3 -3
- package/dist/{AddToCartForm-PU3HSWJ2.js.map → AddToCartForm-OZGZROUJ.js.map} +1 -1
- package/dist/{BlogAuthorPage-ALEAMIU3.js → BlogAuthorPage-Y4PJPT7L.js} +18 -17
- package/dist/BlogAuthorPage-Y4PJPT7L.js.map +1 -0
- package/dist/{BlogCategoryPage-FDRB6PXV.js → BlogCategoryPage-4J335KY4.js} +18 -17
- package/dist/BlogCategoryPage-4J335KY4.js.map +1 -0
- package/dist/{BlogPage-GV6MJBCC.js → BlogPage-MUIHZYXB.js} +16 -15
- package/dist/BlogPage-MUIHZYXB.js.map +1 -0
- package/dist/{BlogSinglePage-QZSUUYEP.js → BlogSinglePage-4JOY3UVT.js} +16 -15
- package/dist/BlogSinglePage-4JOY3UVT.js.map +1 -0
- package/dist/{BlogTagPage-L2ETWHOA.js → BlogTagPage-M7ZQFHUT.js} +18 -17
- package/dist/BlogTagPage-M7ZQFHUT.js.map +1 -0
- package/dist/{BrandsPage-M6H3TMAZ.js → BrandsPage-BC4BMJG4.js} +17 -16
- package/dist/BrandsPage-BC4BMJG4.js.map +1 -0
- package/dist/{Breadcrumb-4LL7EDJQ.js → Breadcrumb-V2URFP4B.js} +16 -15
- package/dist/Breadcrumb-V2URFP4B.js.map +1 -0
- package/dist/{CartItem-HSPK7FVI.js → CartItem-3AMNNBOL.js} +16 -15
- package/dist/CartItem-3AMNNBOL.js.map +1 -0
- package/dist/{CartSummary-VWQARWQZ.js → CartSummary-KSVVKDUG.js} +16 -15
- package/dist/CartSummary-KSVVKDUG.js.map +1 -0
- package/dist/{Copyright-OGRI3VDT.js → Copyright-NUPXDALZ.js} +3 -3
- package/dist/{Copyright-OGRI3VDT.js.map → Copyright-NUPXDALZ.js.map} +1 -1
- package/dist/{CustomerLayout-3ECGJERS.js → CustomerLayout-R3L5PIOS.js} +16 -15
- package/dist/CustomerLayout-R3L5PIOS.js.map +1 -0
- package/dist/{Footer-AV2AYONC.js → Footer-KMBA7SPY.js} +3 -3
- package/dist/{Footer-AV2AYONC.js.map → Footer-KMBA7SPY.js.map} +1 -1
- package/dist/GoogleTag-NWYDC6WD.js +15 -0
- package/dist/{GoogleTag-QMZRHD4X.js.map → GoogleTag-NWYDC6WD.js.map} +1 -1
- package/dist/{Header-L5KLG4MZ.js → Header-2XH6SHUO.js} +8 -8
- package/dist/{Header-L5KLG4MZ.js.map → Header-2XH6SHUO.js.map} +1 -1
- package/dist/{LatestProducts-JX63QU2Q.js → LatestProducts-57JGQJVN.js} +18 -17
- package/dist/LatestProducts-57JGQJVN.js.map +1 -0
- package/dist/{LoyaltyPage-IHDCFL76.js → LoyaltyPage-WPQ34KLX.js} +16 -15
- package/dist/LoyaltyPage-WPQ34KLX.js.map +1 -0
- package/dist/{LoyaltyPointsPage-LPROU7VQ.js → LoyaltyPointsPage-RSSXJM6I.js} +6 -6
- package/dist/{LoyaltyPointsPage-LPROU7VQ.js.map → LoyaltyPointsPage-RSSXJM6I.js.map} +1 -1
- package/dist/{MainMenu-BWZ23TDI.js → MainMenu-LB3XL25D.js} +5 -5
- package/dist/{MainMenu-BWZ23TDI.js.map → MainMenu-LB3XL25D.js.map} +1 -1
- package/dist/{MasterLayout-RPMD3PK4.js → MasterLayout-KGUQ4N2G.js} +16 -15
- package/dist/{MasterLayout-RPMD3PK4.js.map → MasterLayout-KGUQ4N2G.js.map} +1 -1
- package/dist/{MobileMenu-34RGWC2J.js → MobileMenu-ZAFU2ZN6.js} +17 -16
- package/dist/MobileMenu-ZAFU2ZN6.js.map +1 -0
- package/dist/{NotificationsPage-UHM2W5DB.js → NotificationsPage-D7ZTDST7.js} +16 -15
- package/dist/NotificationsPage-D7ZTDST7.js.map +1 -0
- package/dist/{OrderSinglePage-4IAJU4C3.js → OrderSinglePage-FT5NO5M4.js} +17 -16
- package/dist/OrderSinglePage-FT5NO5M4.js.map +1 -0
- package/dist/{OrdersPage-YXZVN2JK.js → OrdersPage-CHH2UX5S.js} +16 -15
- package/dist/OrdersPage-CHH2UX5S.js.map +1 -0
- package/dist/{PageSingle-Z6MD6WIR.js → PageSingle-5ZX3FUBB.js} +3 -3
- package/dist/{PageSingle-Z6MD6WIR.js.map → PageSingle-5ZX3FUBB.js.map} +1 -1
- package/dist/{ProductDetails-C7UP2L3R.js → ProductDetails-6HTLTQBT.js} +4 -4
- package/dist/{ProductDetails-C7UP2L3R.js.map → ProductDetails-6HTLTQBT.js.map} +1 -1
- package/dist/{ProfilePage-V4HJKQXY.js → ProfilePage-2YWL4JWQ.js} +16 -15
- package/dist/ProfilePage-2YWL4JWQ.js.map +1 -0
- package/dist/{ReviewsPage-CPGRNEJB.js → ReviewsPage-ADWCW5P6.js} +3 -3
- package/dist/{ReviewsPage-CPGRNEJB.js.map → ReviewsPage-ADWCW5P6.js.map} +1 -1
- package/dist/{SeoCartWidget-WKRTIIVI.js → SeoCartWidget-FFZXG7GS.js} +16 -15
- package/dist/SeoCartWidget-FFZXG7GS.js.map +1 -0
- package/dist/{SettingsPage-ZZDWJODN.js → SettingsPage-O5E4SCHB.js} +16 -15
- package/dist/SettingsPage-O5E4SCHB.js.map +1 -0
- package/dist/{StoreClosedNotification-PAMU72KO.js → StoreClosedNotification-4HPWJKWS.js} +17 -16
- package/dist/{StoreClosedNotification-PAMU72KO.js.map → StoreClosedNotification-4HPWJKWS.js.map} +1 -1
- package/dist/{TestimonialsPage-QQ42QDZG.js → TestimonialsPage-YAXINHYG.js} +3 -3
- package/dist/{TestimonialsPage-QQ42QDZG.js.map → TestimonialsPage-YAXINHYG.js.map} +1 -1
- package/dist/{ThankYouPage-P752YDVP.js → ThankYouPage-DCQZVYIA.js} +16 -15
- package/dist/ThankYouPage-DCQZVYIA.js.map +1 -0
- package/dist/{WalletPage-J4KZFZMV.js → WalletPage-NPBCYOBS.js} +17 -16
- package/dist/WalletPage-NPBCYOBS.js.map +1 -0
- package/dist/{WebMcpTools-E3LAXFWE.js → WebMcpTools-VNHKJNI7.js} +5 -5
- package/dist/{WebMcpTools-E3LAXFWE.js.map → WebMcpTools-VNHKJNI7.js.map} +1 -1
- package/dist/{WishlistPage-USYEHM3R.js → WishlistPage-ISSKWME2.js} +18 -17
- package/dist/WishlistPage-ISSKWME2.js.map +1 -0
- package/dist/api/advertisement.js +2 -2
- package/dist/api/apps.js +2 -2
- package/dist/api/blog.js +3 -3
- package/dist/api/brands.js +3 -3
- package/dist/api/cart.d.ts +11 -5
- package/dist/api/cart.d.ts.map +1 -1
- package/dist/api/cart.js +3 -3
- package/dist/api/category.js +3 -3
- package/dist/api/client.js +1 -1
- package/dist/api/custom-url.js +2 -2
- package/dist/api/home.js +2 -2
- package/dist/api/loyalty.js +3 -3
- package/dist/api/menu.js +2 -2
- package/dist/api/notification.js +2 -2
- package/dist/api/order.js +3 -3
- package/dist/api/page.js +3 -3
- package/dist/api/product.js +3 -3
- package/dist/api/profile.js +1 -1
- package/dist/api/sdk-cart.d.ts +9 -0
- package/dist/api/sdk-cart.d.ts.map +1 -0
- package/dist/api/store.js +2 -2
- package/dist/api/translations.js +2 -2
- package/dist/api/user.js +2 -2
- package/dist/api/wallet.js +2 -2
- package/dist/api/wishlist.js +4 -4
- package/dist/{chunk-MVQZJX5I.js → chunk-5MUY4AUU.js} +62 -24
- package/dist/chunk-5MUY4AUU.js.map +1 -0
- package/dist/{chunk-COGTJFST.js → chunk-5ZVKOLFZ.js} +7 -7
- package/dist/{chunk-COGTJFST.js.map → chunk-5ZVKOLFZ.js.map} +1 -1
- package/dist/{chunk-YJ72YQ2X.js → chunk-6MTG5HRF.js} +4 -4
- package/dist/{chunk-YJ72YQ2X.js.map → chunk-6MTG5HRF.js.map} +1 -1
- package/dist/{chunk-LNOKDS74.js → chunk-6UUBYWC4.js} +4 -4
- package/dist/{chunk-LNOKDS74.js.map → chunk-6UUBYWC4.js.map} +1 -1
- package/dist/chunk-AWOMNZIJ.js +104 -0
- package/dist/chunk-AWOMNZIJ.js.map +1 -0
- package/dist/{chunk-DE72SXU4.js → chunk-AY2XD3S2.js} +7 -7
- package/dist/{chunk-DE72SXU4.js.map → chunk-AY2XD3S2.js.map} +1 -1
- package/dist/{chunk-BNKUNYQS.js → chunk-BSWV7U3V.js} +3 -3
- package/dist/{chunk-BNKUNYQS.js.map → chunk-BSWV7U3V.js.map} +1 -1
- package/dist/{chunk-MAQZ2E43.js → chunk-BTQ2SAMS.js} +6 -6
- package/dist/{chunk-MAQZ2E43.js.map → chunk-BTQ2SAMS.js.map} +1 -1
- package/dist/{chunk-ULPA74VA.js → chunk-CB473WUX.js} +3 -3
- package/dist/{chunk-ULPA74VA.js.map → chunk-CB473WUX.js.map} +1 -1
- package/dist/{chunk-XISVCS5S.js → chunk-CRXXKAFW.js} +3 -3
- package/dist/{chunk-XISVCS5S.js.map → chunk-CRXXKAFW.js.map} +1 -1
- package/dist/{chunk-FN4CZTDF.js → chunk-D4ACJS2K.js} +3 -3
- package/dist/{chunk-FN4CZTDF.js.map → chunk-D4ACJS2K.js.map} +1 -1
- package/dist/{chunk-4BTFGO7A.js → chunk-DASAKSKN.js} +4 -4
- package/dist/{chunk-4BTFGO7A.js.map → chunk-DASAKSKN.js.map} +1 -1
- package/dist/{chunk-Q7ZDNHHF.js → chunk-DCDWTP6S.js} +5 -5
- package/dist/{chunk-Q7ZDNHHF.js.map → chunk-DCDWTP6S.js.map} +1 -1
- package/dist/{chunk-7GNITA3Q.js → chunk-EOZAJ6SP.js} +7 -7
- package/dist/{chunk-7GNITA3Q.js.map → chunk-EOZAJ6SP.js.map} +1 -1
- package/dist/{chunk-7FV5TZOF.js → chunk-F6MAM7HZ.js} +3 -3
- package/dist/{chunk-7FV5TZOF.js.map → chunk-F6MAM7HZ.js.map} +1 -1
- package/dist/{chunk-QPTKUUR4.js → chunk-H22ABA6K.js} +4 -4
- package/dist/{chunk-QPTKUUR4.js.map → chunk-H22ABA6K.js.map} +1 -1
- package/dist/{chunk-DAWZ264W.js → chunk-I7LWEJDL.js} +3 -3
- package/dist/{chunk-DAWZ264W.js.map → chunk-I7LWEJDL.js.map} +1 -1
- package/dist/{chunk-BMLQBIGL.js → chunk-IAVHDEMZ.js} +3 -3
- package/dist/{chunk-BMLQBIGL.js.map → chunk-IAVHDEMZ.js.map} +1 -1
- package/dist/{chunk-T6MGHOQP.js → chunk-IHHJGUI3.js} +4 -4
- package/dist/{chunk-T6MGHOQP.js.map → chunk-IHHJGUI3.js.map} +1 -1
- package/dist/{chunk-7LJSOOVX.js → chunk-K6AQYYJR.js} +3 -3
- package/dist/{chunk-7LJSOOVX.js.map → chunk-K6AQYYJR.js.map} +1 -1
- package/dist/{chunk-EF4X2I6C.js → chunk-KAQV2WZ6.js} +3 -3
- package/dist/{chunk-EF4X2I6C.js.map → chunk-KAQV2WZ6.js.map} +1 -1
- package/dist/{chunk-5S7Q5Y7J.js → chunk-M4GK6JZO.js} +3 -3
- package/dist/{chunk-5S7Q5Y7J.js.map → chunk-M4GK6JZO.js.map} +1 -1
- package/dist/{chunk-FQX3XITL.js → chunk-NQXXID34.js} +4 -4
- package/dist/{chunk-FQX3XITL.js.map → chunk-NQXXID34.js.map} +1 -1
- package/dist/{chunk-F37RZ7WN.js → chunk-O6KQRFTR.js} +14 -14
- package/dist/{chunk-F37RZ7WN.js.map → chunk-O6KQRFTR.js.map} +1 -1
- package/dist/{chunk-IAMGCG7Z.js → chunk-OAH2JE3U.js} +3 -3
- package/dist/{chunk-IAMGCG7Z.js.map → chunk-OAH2JE3U.js.map} +1 -1
- package/dist/{chunk-WF7EFLZT.js → chunk-OP7DHR4L.js} +4 -4
- package/dist/{chunk-WF7EFLZT.js.map → chunk-OP7DHR4L.js.map} +1 -1
- package/dist/{chunk-HNM4V7E2.js → chunk-P6FREDWL.js} +4 -4
- package/dist/{chunk-HNM4V7E2.js.map → chunk-P6FREDWL.js.map} +1 -1
- package/dist/{chunk-GKYFMDKD.js → chunk-PFUDIAWY.js} +4 -4
- package/dist/{chunk-GKYFMDKD.js.map → chunk-PFUDIAWY.js.map} +1 -1
- package/dist/{chunk-7YWEUCJZ.js → chunk-PGX4SXVF.js} +3 -3
- package/dist/{chunk-7YWEUCJZ.js.map → chunk-PGX4SXVF.js.map} +1 -1
- package/dist/{chunk-KD6JJJFI.js → chunk-QPRU3PVD.js} +4 -4
- package/dist/{chunk-KD6JJJFI.js.map → chunk-QPRU3PVD.js.map} +1 -1
- package/dist/{chunk-PJU6QWMV.js → chunk-QRG7YWRL.js} +3 -3
- package/dist/{chunk-PJU6QWMV.js.map → chunk-QRG7YWRL.js.map} +1 -1
- package/dist/{chunk-2D52MYZ7.js → chunk-RKSWLLP7.js} +4 -4
- package/dist/{chunk-2D52MYZ7.js.map → chunk-RKSWLLP7.js.map} +1 -1
- package/dist/{chunk-6MA73U4W.js → chunk-TUM4ABEA.js} +5 -5
- package/dist/{chunk-6MA73U4W.js.map → chunk-TUM4ABEA.js.map} +1 -1
- package/dist/{chunk-XYR7EK3H.js → chunk-UA6LTD55.js} +4 -4
- package/dist/{chunk-XYR7EK3H.js.map → chunk-UA6LTD55.js.map} +1 -1
- package/dist/{chunk-CEANKKQV.js → chunk-UD4NGJML.js} +4 -4
- package/dist/{chunk-CEANKKQV.js.map → chunk-UD4NGJML.js.map} +1 -1
- package/dist/{chunk-NOLXT5T6.js → chunk-UYY5FXLW.js} +4 -4
- package/dist/{chunk-NOLXT5T6.js.map → chunk-UYY5FXLW.js.map} +1 -1
- package/dist/{chunk-IBGAXEPC.js → chunk-VXTPMEFC.js} +3 -3
- package/dist/{chunk-IBGAXEPC.js.map → chunk-VXTPMEFC.js.map} +1 -1
- package/dist/{chunk-222C7M7Q.js → chunk-VY2TPXFO.js} +3 -3
- package/dist/{chunk-222C7M7Q.js.map → chunk-VY2TPXFO.js.map} +1 -1
- package/dist/{chunk-KOR3BF6E.js → chunk-WHNF7WBH.js} +3 -3
- package/dist/{chunk-KOR3BF6E.js.map → chunk-WHNF7WBH.js.map} +1 -1
- package/dist/{chunk-DI2J3BL6.js → chunk-WLRNZYCA.js} +3 -3
- package/dist/{chunk-DI2J3BL6.js.map → chunk-WLRNZYCA.js.map} +1 -1
- package/dist/{chunk-DAEHJTTJ.js → chunk-X4VIKIQM.js} +5 -5
- package/dist/{chunk-DAEHJTTJ.js.map → chunk-X4VIKIQM.js.map} +1 -1
- package/dist/{chunk-CCLURCDN.js → chunk-XEGALTQJ.js} +3 -3
- package/dist/{chunk-CCLURCDN.js.map → chunk-XEGALTQJ.js.map} +1 -1
- package/dist/{chunk-YS7OE5XZ.js → chunk-YA4O3EZC.js} +3 -3
- package/dist/{chunk-YS7OE5XZ.js.map → chunk-YA4O3EZC.js.map} +1 -1
- package/dist/{chunk-2OIMVGY7.js → chunk-YEVLRCSL.js} +5 -5
- package/dist/{chunk-2OIMVGY7.js.map → chunk-YEVLRCSL.js.map} +1 -1
- package/dist/{chunk-3CPVV6UZ.js → chunk-YZDL6GF7.js} +3 -3
- package/dist/{chunk-3CPVV6UZ.js.map → chunk-YZDL6GF7.js.map} +1 -1
- package/dist/{chunk-TMVCPQMU.js → chunk-Z5LSS25A.js} +3 -3
- package/dist/{chunk-TMVCPQMU.js.map → chunk-Z5LSS25A.js.map} +1 -1
- package/dist/{chunk-F2WU2SMZ.js → chunk-ZWX33T7S.js} +3 -3
- package/dist/{chunk-F2WU2SMZ.js.map → chunk-ZWX33T7S.js.map} +1 -1
- package/dist/components/cart/index.js +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/drawer/index.js +14 -13
- package/dist/components/home/index.js +19 -18
- package/dist/components/layout/index.js +4 -4
- package/dist/components/product/index.js +16 -15
- package/dist/components/store/index.js +15 -14
- package/dist/components/tracking/index.js +6 -6
- package/dist/{custom-urls-FXDCQ2LQ.js → custom-urls-SNKCSUFH.js} +7 -7
- package/dist/{custom-urls-FXDCQ2LQ.js.map → custom-urls-SNKCSUFH.js.map} +1 -1
- package/dist/dev/editor/index.js +1 -1
- package/dist/dev/index.js +1 -1
- package/dist/{document-class-VID3422F.js → document-class-GMZDY55X.js} +17 -17
- package/dist/{document-class-VID3422F.js.map → document-class-GMZDY55X.js.map} +1 -1
- package/dist/hooks/index.js +14 -13
- package/dist/hooks/useGtm.js +14 -13
- package/dist/hooks/useMoney.js +14 -13
- package/dist/hooks/useStore.js +14 -13
- package/dist/hooks/useUser.js +3 -3
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/dist/{navigation-MR2UTPVO.js → navigation-MEWHF2SI.js} +4 -4
- package/dist/{navigation-MR2UTPVO.js.map → navigation-MEWHF2SI.js.map} +1 -1
- package/dist/{navigation-DM6YWYWN.js → navigation-PVCAQHKP.js} +5 -5
- package/dist/{navigation-DM6YWYWN.js.map → navigation-PVCAQHKP.js.map} +1 -1
- package/dist/{not-found-A7EB3S3G.js → not-found-AWSO6GKQ.js} +17 -16
- package/dist/not-found-AWSO6GKQ.js.map +1 -0
- package/dist/providers/TwilightProvider.d.ts.map +1 -1
- package/dist/providers/index.js +14 -13
- package/dist/providers/stale-cart.d.ts +11 -0
- package/dist/providers/stale-cart.d.ts.map +1 -0
- package/dist/routes/account/orders.js +4 -4
- package/dist/routes/account.js +13 -13
- package/dist/routes/blog.js +8 -8
- package/dist/routes/brands.js +4 -4
- package/dist/routes/cart/CartPage.d.ts.map +1 -1
- package/dist/routes/cart.js +26 -25
- package/dist/routes/cart.js.map +1 -1
- package/dist/routes/home.js +20 -19
- package/dist/routes/index.js +8 -8
- package/dist/routes/loyalty.js +5 -5
- package/dist/routes/page.js +4 -4
- package/dist/routes/product-listing.js +24 -23
- package/dist/routes/product-listing.js.map +1 -1
- package/dist/routes/product.js +23 -22
- package/dist/routes/product.js.map +1 -1
- package/dist/routes/seo-redirects.js +8 -8
- package/dist/routes/testimonials.js +2 -2
- package/dist/routes/thank-you.js +4 -4
- package/dist/skeleton.js +20 -19
- package/dist/{store-lookup-IME3XIPP.js → store-lookup-GPDB2LWO.js} +8 -8
- package/dist/{store-lookup-IME3XIPP.js.map → store-lookup-GPDB2LWO.js.map} +1 -1
- package/dist/tanstack.js +17 -17
- package/dist/types/salla-sdk.d.ts +4 -1
- package/dist/types/salla-sdk.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/tailwind/routes/cart/CartPage.tsx.txt +5 -3
- package/dist/BlogAuthorPage-ALEAMIU3.js.map +0 -1
- package/dist/BlogCategoryPage-FDRB6PXV.js.map +0 -1
- package/dist/BlogPage-GV6MJBCC.js.map +0 -1
- package/dist/BlogSinglePage-QZSUUYEP.js.map +0 -1
- package/dist/BlogTagPage-L2ETWHOA.js.map +0 -1
- package/dist/BrandsPage-M6H3TMAZ.js.map +0 -1
- package/dist/Breadcrumb-4LL7EDJQ.js.map +0 -1
- package/dist/CartItem-HSPK7FVI.js.map +0 -1
- package/dist/CartSummary-VWQARWQZ.js.map +0 -1
- package/dist/CustomerLayout-3ECGJERS.js.map +0 -1
- package/dist/GoogleTag-QMZRHD4X.js +0 -15
- package/dist/LatestProducts-JX63QU2Q.js.map +0 -1
- package/dist/LoyaltyPage-IHDCFL76.js.map +0 -1
- package/dist/MobileMenu-34RGWC2J.js.map +0 -1
- package/dist/NotificationsPage-UHM2W5DB.js.map +0 -1
- package/dist/OrderSinglePage-4IAJU4C3.js.map +0 -1
- package/dist/OrdersPage-YXZVN2JK.js.map +0 -1
- package/dist/ProfilePage-V4HJKQXY.js.map +0 -1
- package/dist/SeoCartWidget-WKRTIIVI.js.map +0 -1
- package/dist/SettingsPage-ZZDWJODN.js.map +0 -1
- package/dist/ThankYouPage-P752YDVP.js.map +0 -1
- package/dist/WalletPage-J4KZFZMV.js.map +0 -1
- package/dist/WishlistPage-USYEHM3R.js.map +0 -1
- package/dist/chunk-MKMA2FJU.js +0 -48
- package/dist/chunk-MKMA2FJU.js.map +0 -1
- package/dist/chunk-MVQZJX5I.js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IAAI,GAAA,CAAI,eAAe,CAAA;AACxC,EAAA,OAAO,MAAA,CAAO,OAAA,CAAQ,gBAAA,IAAoB,EAAE,EAAE,MAAA,CAAO,CAAC,CAAC,IAAI,CAAA,KAAM;AAC/D,IAAA,MAAM,OAAA,GAAU,wBAAA,CAAyB,IAAA,CAAK,IAAI,IAAI,CAAC,CAAA;AACvD,IAAA,IAAI,CAAC,OAAA,IAAW,eAAA,CAAgB,GAAA,CAAI,OAAO,GAAG,OAAO,KAAA;AACrD,IAAA,OAAO,CAAC,QAAA,CAAS,GAAA,CAAI,OAAO,CAAA,IAAK,0BAAA,CAA2B,IAAI,OAAO,CAAA;AAAA,EACzE,CAAC,CAAA;AACH","file":"chunk-F2WU2SMZ.js","sourcesContent":["/**\n * The data a Twig storefront hands Google Tag Manager, built in the browser.\n *\n * On Twig the Store writes it on the server (the `Salla\\GoogleTags` package): each page opens\n * with one `dataLayer.push` naming the page, the store and the customer, plus the page's own\n * ecommerce block (a product's `detail`, the cart's `checkout`, an order's `purchase`). Salla's\n * container and the merchants' own containers read these exact keys, so every builder here\n * copies a PHP one, named beside it. A list's `impressions` copies `<salla-products-list>`\n * instead, which pushes them itself on Twig.\n */\nimport type { Cart, CartItem, Money, Product, User } from '../../types';\nimport type { Order, OrderItem } from '../../routes/account/types';\nimport type { StoreContext } from '../../api/store';\nimport type { PageContext } from '../../twilight/context';\nimport { getActiveCurrency } from '../../api/client';\nimport { RouteId } from '../../router/route-ids';\n\nexport type DataLayerEntry = Record<string, unknown>;\n\n/** True when the store loads a Tag Manager container; without one nothing reads the data layer. */\nexport function gtmEnabled(settings: StoreContext | undefined): boolean {\n return Boolean(settings?.store?.settings?.keys?.gtm?.length);\n}\n\nexport function pushToDataLayer(entry: DataLayerEntry): void {\n if (typeof window === 'undefined') return;\n window.dataLayer = window.dataLayer ?? [];\n window.dataLayer.push(entry);\n}\n\n/**\n * Twig's `dataLayer` proxy (`googletagmanager::head`): it drops request, payment and form\n * fields from every object pushed after it. The root head runs it before anything is pushed;\n * GTM's own script runs it too, for a theme that loads GTM by hand. Once per page.\n */\nexport const DATA_LAYER_PROXY_SCRIPT = `\nwindow.dataLayer = window.dataLayer || [];\nif (!window.__sallaDataLayerProxy) {\n window.__sallaDataLayerProxy = true;\n window.dataLayer = new Proxy(window.dataLayer, {\n set(target, property, value) {\n target[property] = value;\n if (typeof value === 'object') {\n ['form_data', 'data', 'gateway', 'config', 'request', 'headers']\n .forEach(function(key) { value && value.hasOwnProperty(key) && delete value[key]; });\n }\n return true;\n }\n });\n}\n`.trim();\n\n// ─── page ────────────────────────────────────────────────────────────────────\n\n/**\n * `page.pageName`: the Laravel route that renders the page on Twig, camel-cased without\n * `store` (`RequestResolver::getPageName`). The containers compare it: `productShow`,\n * `catShow`, `cartShow`, `search`, `brandsShow`, `thankyou`.\n */\nconst PAGE_NAMES: Record<string, string> = {\n [RouteId.INDEX]: 'home', // store.home\n [RouteId.PRODUCT_SINGLE]: 'productShow', // product.showWithSlug → product.show\n [RouteId.PRODUCT_INDEX]: 'catShow', // cat.showWithSlug → cat.show\n [RouteId.SEARCH]: 'search', // store.search\n [RouteId.PRODUCT_INDEX_LATEST]: 'latestProducts', // store.latest-products\n [RouteId.PRODUCT_INDEX_OFFERS]: 'productOffers', // product.offers\n [RouteId.BRANDS_INDEX]: 'brands', // store.brands\n [RouteId.BRANDS_SINGLE]: 'brandsShow', // store.brands.show\n [RouteId.CART]: 'cartShow', // cart.show\n [RouteId.THANK_YOU]: 'thankyou', // store.thankyou\n [RouteId.BLOG_INDEX]: 'blogIndex', // blog.index\n [RouteId.BLOG_SINGLE]: 'articlesShow', // articles.show\n [RouteId.BLOG_INDEX_CATEGORY]: 'articlesCategoryShow', // articles.category.show\n [RouteId.BLOG_INDEX_TAG]: 'articlesTagShow', // articles.tag.show\n [RouteId.PAGE_SINGLE]: 'pagesSlugShow', // pages.slug.show\n [RouteId.CUSTOMER_PROFILE]: 'userIndex', // user.index\n [RouteId.CUSTOMER_ORDERS_INDEX]: 'myorders', // store.myorders\n [RouteId.CUSTOMER_ORDERS_INDEX_PENDING]: 'myPendingOrders', // store.my_pending_orders\n [RouteId.CUSTOMER_ORDERS_SINGLE]: 'myOrder', // store.my_order\n [RouteId.CUSTOMER_WISHLIST]: 'myWishes', // store.my_wishes\n [RouteId.CUSTOMER_NOTIFICATIONS]: 'userNotificationsIndex', // user.notifications.index\n [RouteId.CUSTOMER_WALLET]: 'wallet', // wallet\n [RouteId.CUSTOMER_LOYALTY_POINTS]: 'customerLoyaltyPoints', // customer.loyalty_points\n [RouteId.LOYALTY]: 'loyaltyProgram', // store.loyalty_program\n [RouteId.TESTIMONIALS]: 'reviewsIndex', // store.reviews.index\n};\n\n/** A page with no known Twig route is named after its slug, camel-cased the same way. */\nexport function gtmPageName(slug: string): string {\n return (\n PAGE_NAMES[slug] ??\n slug.replace(/[._-]+([a-z0-9])/gi, (_, letter: string) => letter.toUpperCase())\n );\n}\n\n/** A fresh 40-hex id, as Twig's `sha1(… now()->timestamp)` gives each page and event one. */\nexport function gtmEventId(): string {\n const bytes = new Uint8Array(20);\n globalThis.crypto.getRandomValues(bytes);\n return Array.from(bytes, (byte) => byte.toString(16).padStart(2, '0')).join('');\n}\n\n/** `config('theme.name')`: a number on Salla's themes. */\nfunction themeName(settings: StoreContext | undefined): string | number | undefined {\n const name = settings?.theme?.name;\n return name && /^\\d+$/.test(name) ? Number(name) : name;\n}\n\nexport interface GtmPageInput {\n slug: string;\n referrer: string;\n /** Inside the Salla app's webview (`mobileAgent()->is()`). */\n mobileApp: boolean;\n}\n\n/** `RequestResolver::getData`. */\nexport function gtmPage(input: GtmPageInput, settings: StoreContext | undefined): DataLayerEntry {\n return {\n fingerprint: gtmEventId(),\n pageName: gtmPageName(input.slug),\n mobileApp: input.mobileApp ? 1 : 0,\n referrer: input.referrer,\n theme: themeName(settings),\n };\n}\n\n/**\n * `StoreResolver::getData`. The settings API sends none of the legacy built-in pixel ids\n * (`facebook_pixel_id`, …), so they are null, as Twig sends them for a store that set none.\n */\nexport function gtmStore(settings: StoreContext | undefined): DataLayerEntry {\n return {\n store: settings?.store?.username ?? '',\n facebook_pixel_id: null,\n google_analytics_id: null,\n snapchat_pixel_id: null,\n };\n}\n\n// ─── customer ────────────────────────────────────────────────────────────────\n\nasync function sha256(value: string): Promise<string | null> {\n const subtle = globalThis.crypto?.subtle;\n if (!subtle) return null;\n const digest = await subtle.digest('SHA-256', new TextEncoder().encode(value));\n return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, '0')).join('');\n}\n\n/** Lower-cased, no whitespace, and only a valid address (Twig: `FILTER_VALIDATE_EMAIL`). */\nfunction cleanEmail(email: string | undefined): string | null {\n const clean = email?.replace(/\\s+/g, '').toLowerCase();\n return clean && /^[^@]+@[^@]+\\.[^@]+$/.test(clean) ? clean : null;\n}\n\n/** E.164 without the plus (`966501234567`), as `fullMobileFormat(false)`; null when it isn't one. */\nfunction cleanPhone(mobile: string | undefined): string | null {\n const compact = mobile?.replace(/[\\s()-]+/g, '') ?? '';\n const digits = compact.startsWith('+')\n ? compact.slice(1)\n : compact.startsWith('00')\n ? compact.slice(2)\n : compact;\n return /^[1-9]\\d{7,14}$/.test(digits) ? digits : null;\n}\n\n/** `Store\\CustomerResolver::getData`: a guest is `{ isGuest: true }`. */\nexport async function gtmCustomer(\n user: User | null | undefined,\n settings: StoreContext | undefined\n): Promise<DataLayerEntry> {\n if (!user) return { isGuest: true };\n const email = cleanEmail(user.email);\n const phone = cleanPhone(user.mobile);\n const phoneWithPlus = phone ? `+${phone}` : null;\n const [firstName, lastName, emailHashed, phoneHashed, phoneWithPlusHashed] = await Promise.all([\n sha256(user.first_name ?? ''),\n sha256(user.last_name ?? ''),\n email ? sha256(email) : null,\n phone ? sha256(phone) : null,\n phoneWithPlus ? sha256(phoneWithPlus) : null,\n ]);\n return {\n isGuest: false,\n name: [user.first_name, user.last_name].filter(Boolean).join(' '),\n first_name: firstName,\n last_name: lastName,\n created_at: user.created_at ?? Math.floor(Date.now() / 1000),\n email,\n phone,\n phone_with_plus: phoneWithPlus,\n phone_with_plus_hashed: phoneWithPlusHashed,\n currency: user.preferences?.currency_code ?? settings?.user?.currency_code ?? 'SAR',\n email_hashed: emailHashed,\n phone_hashed: phoneHashed,\n };\n}\n\n// ─── money ───────────────────────────────────────────────────────────────────\n\nconst amountOf = (value: number | string | Money | null | undefined): number =>\n value && typeof value === 'object' ? Number(value.amount) || 0 : Number(value) || 0;\n\n/**\n * The currency prices are shown in: the visitor's choice, else the market's own (settings\n * `user.currency_code`; `OMR` on an Omani market of a Saudi store), as `currency()` on Twig.\n */\nexport function gtmCurrency(settings: StoreContext | undefined, fallback?: string): string {\n return getActiveCurrency() ?? fallback ?? settings?.user?.currency_code ?? 'SAR';\n}\n\n/**\n * `getGoogleTagManagerExchangeRate`: riyals per unit of `code`, as moneyphp prints a ratio.\n * Settings give each currency's `amount` per riyal.\n */\nexport function gtmExchangeRate(code: string, settings: StoreContext | undefined): string {\n const perRiyal = Number(settings?.currencies?.[code]?.amount);\n if (code === 'SAR' || !(perRiyal > 0)) return '1';\n return String(Number((1 / perRiyal).toPrecision(14)));\n}\n\n// ─── ecommerce ───────────────────────────────────────────────────────────────\n\nexport interface GtmProduct {\n id: number | string;\n name: string;\n categories: Array<{ id?: number | string; name: string }>;\n category: string;\n price: number;\n quantity: number;\n variant: string | null;\n brand: string;\n image: string;\n}\n\n/** `IsTaggingProduct::getGoogleTagManagerData`. */\nexport function gtmProduct(product: Product): GtmProduct {\n const categories = product.category\n ? [{ id: product.category.id, name: product.category.name }]\n : [];\n return {\n id: product.id,\n name: product.name,\n categories,\n category: categories.map((category) => category.name).join('/'),\n price: amountOf(product.price),\n quantity: 1,\n variant: '',\n brand: product.brand?.name ?? '',\n image: product.image?.url ?? '',\n };\n}\n\n/** `GoogleTagManager::detail`, which the product page pushes with its page data. */\nexport function gtmDetail(product: Product, settings: StoreContext | undefined): DataLayerEntry {\n const currencyCode = gtmCurrency(settings, product.currency);\n return {\n event: 'detail',\n ecommerce: {\n currencyCode,\n exchangeRate: gtmExchangeRate(currencyCode, settings),\n event_id: gtmEventId(),\n detail: { products: [gtmProduct(product)] },\n },\n };\n}\n\n/** `CartItem::getGoogleTagManagerData`: the cart line's taxed total as its price. */\nfunction gtmCartItem(item: CartItem, currency: string): DataLayerEntry {\n return {\n id: item.product_id,\n name: item.product_name,\n categories: [],\n category: '',\n price: amountOf(item.total),\n quantity: item.quantity,\n variant: null,\n brand: '',\n image: item.product_image ?? '',\n cart_item_id: item.id,\n currency,\n };\n}\n\n/**\n * `GoogleTagManager::checkout`, from the cart page's `SeoCartWidget` (step 1). It sets no\n * `event`: on Twig it rides on the page's own push. Only the available lines, and no order\n * options, as `getAvailableItems()` and the macro leave them out.\n */\nexport function gtmCartCheckout(\n cart: Cart,\n settings: StoreContext | undefined,\n step = 1\n): DataLayerEntry {\n const currencyCode = gtmCurrency(settings);\n const total = amountOf(cart.total);\n return {\n ecommerce: {\n currencyCode,\n exchangeRate: gtmExchangeRate(currencyCode, settings),\n event_id: gtmEventId(),\n checkout: {\n actionField: {\n id: cart.id,\n total,\n revenue: total,\n currency_code: currencyCode,\n step,\n },\n products: cart.items\n .filter((item) => item.is_available !== false && String(item.type) !== 'order_option')\n .map((item) => gtmCartItem(item, currencyCode)),\n },\n },\n };\n}\n\n/** `OrderItems::getGoogleTagManagerData`: the line before its discount, tax included. */\nfunction gtmOrderItem(item: OrderItem, currency: string): DataLayerEntry | null {\n if (!item.product) return null;\n return {\n id: item.product.id,\n name: item.name,\n categories: [],\n category: '',\n price: amountOf(item.amounts?.total) + amountOf(item.amounts?.total_discount),\n quantity: item.quantity,\n variant: null,\n brand: '',\n image: item.thumbnail ?? item.product_thumbnail ?? item.image ?? '',\n currency,\n };\n}\n\n/** `GoogleTagManager::purchase`, from the thank-you page's `SeoThankYouWidget`. */\nexport function gtmPurchase(order: Order, settings: StoreContext | undefined): DataLayerEntry {\n const currencyCode = order.currency || gtmCurrency(settings);\n const total = amountOf(order.amounts?.total);\n return {\n event: 'purchase',\n ecommerce: {\n currencyCode,\n exchangeRate: gtmExchangeRate(currencyCode, settings),\n event_id: order.id,\n purchase: {\n actionField: {\n id: order.id,\n total,\n revenue: total,\n currency_code: currencyCode,\n step: null,\n },\n products: (order.items ?? [])\n .map((item) => gtmOrderItem(item, currencyCode))\n .filter((item): item is DataLayerEntry => item !== null),\n },\n },\n };\n}\n\n/**\n * The `impressions` `<salla-products-list>` pushes for each page of products it fetches\n * (`appendDataLayer`), with the page's title and id where a product names no category.\n */\nexport function gtmImpressions(\n products: Product[],\n page: PageContext | undefined,\n settings: StoreContext | undefined\n): DataLayerEntry {\n return {\n event: 'impressions',\n ecommerce: {\n currencyCode: gtmCurrency(settings),\n impressions: products.map((product, index) => {\n const category = product.category?.name || page?.title;\n return {\n id: product.id,\n name: product.name,\n price: amountOf(product.price),\n brand: product.brand?.name || '',\n quantity: product.quantity,\n categories: [{ name: category, id: page?.id }],\n category,\n position: index + 1,\n };\n }),\n },\n };\n}\n\n// ─── services ────────────────────────────────────────────────────────────────\n\n/** Services Twig renders itself rather than announcing (`ExternalServicesWidget::$serviceWidgets`). */\nconst WIDGET_SERVICES = new Set([\n 'google_tags_manager',\n 'mailchimp',\n 'addon-mailchimp-marketing',\n 'klaviyo',\n]);\n\n/** Apps with a snippet that Twig still announces (`ExternalServicesWidget::$serviceTracking`). */\nconst ANNOUNCED_SNIPPET_SERVICES = new Set(['facebook_pixel', 'tiktok_pixel', 'google_analytics']);\n\n/**\n * The `services::<name>.init` events a Twig page dispatches through the SDK, which copies each\n * into the data layer, where Salla's container loads GA4, Google Ads, Clarity and the pixels\n * from them. The settings API lists every active service; Twig leaves out the ones it renders\n * as a widget and the apps whose snippet the page loads instead.\n */\nexport function servicesInitEvents(\n externalServices: StoreContext['external_services'],\n snippetServices: Iterable<string>\n): Array<[name: string, payload: unknown]> {\n const snippets = new Set(snippetServices);\n return Object.entries(externalServices ?? {}).filter(([name]) => {\n const service = /^services::(.+)\\.init$/.exec(name)?.[1];\n if (!service || WIDGET_SERVICES.has(service)) return false;\n return !snippets.has(service) || ANNOUNCED_SNIPPET_SERVICES.has(service);\n });\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/lib/analytics/gtm.ts"],"names":[],"mappings":";;;;AAoBO,SAAS,WAAW,QAAA,EAA6C;AACtE,EAAA,OAAO,QAAQ,QAAA,EAAU,KAAA,EAAO,QAAA,EAAU,IAAA,EAAM,KAAK,MAAM,CAAA;AAC7D;AAEO,SAAS,gBAAgB,KAAA,EAA6B;AAC3D,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAA,MAAA,CAAO,SAAA,GAAY,MAAA,CAAO,SAAA,IAAa,EAAC;AACxC,EAAA,MAAA,CAAO,SAAA,CAAU,KAAK,KAAK,CAAA;AAC7B;AAOO,IAAM,uBAAA,GAA0B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA,CAerC,IAAA;AASF,IAAM,UAAA,GAAqC;AAAA,EACzC,CAAC,OAAA,CAAQ,KAAK,GAAG,MAAA;AAAA;AAAA,EACjB,CAAC,OAAA,CAAQ,cAAc,GAAG,aAAA;AAAA;AAAA,EAC1B,CAAC,OAAA,CAAQ,aAAa,GAAG,SAAA;AAAA;AAAA,EACzB,CAAC,OAAA,CAAQ,MAAM,GAAG,QAAA;AAAA;AAAA,EAClB,CAAC,OAAA,CAAQ,oBAAoB,GAAG,gBAAA;AAAA;AAAA,EAChC,CAAC,OAAA,CAAQ,oBAAoB,GAAG,eAAA;AAAA;AAAA,EAChC,CAAC,OAAA,CAAQ,YAAY,GAAG,QAAA;AAAA;AAAA,EACxB,CAAC,OAAA,CAAQ,aAAa,GAAG,YAAA;AAAA;AAAA,EACzB,CAAC,OAAA,CAAQ,IAAI,GAAG,UAAA;AAAA;AAAA,EAChB,CAAC,OAAA,CAAQ,SAAS,GAAG,UAAA;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AA,CACd,kBACA,eAAA,EACyC;AACzC,EAAA,MAAM,QAAA,GAAW,IAAI,GAAA,CAAI,eAAe,CAAA;AACxC,EAAA,OAAO,MAAA,CAAO,OAAA,CAAQ,gBAAA,IAAoB,EAAE,EAAE,MAAA,CAAO,CAAC,CAAC,IAAI,CAAA,KAAM;AAC/D,IAAA,MAAM,OAAA,GAAU,wBAAA,CAAyB,IAAA,CAAK,IAAI,IAAI,CAAC,CAAA;AACvD,IAAA,IAAI,CAAC,OAAA,IAAW,eAAA,CAAgB,GAAA,CAAI,OAAO,GAAG,OAAO,KAAA;AACrD,IAAA,OAAO,CAAC,QAAA,CAAS,GAAA,CAAI,OAAO,CAAA,IAAK,0BAAA,CAA2B,IAAI,OAAO,CAAA;AAAA,EACzE,CAAC,CAAA;AACH","file":"chunk-ZWX33T7S.js","sourcesContent":["/**\n * The data a Twig storefront hands Google Tag Manager, built in the browser.\n *\n * On Twig the Store writes it on the server (the `Salla\\GoogleTags` package): each page opens\n * with one `dataLayer.push` naming the page, the store and the customer, plus the page's own\n * ecommerce block (a product's `detail`, the cart's `checkout`, an order's `purchase`). Salla's\n * container and the merchants' own containers read these exact keys, so every builder here\n * copies a PHP one, named beside it. A list's `impressions` copies `<salla-products-list>`\n * instead, which pushes them itself on Twig.\n */\nimport type { Cart, CartItem, Money, Product, User } from '../../types';\nimport type { Order, OrderItem } from '../../routes/account/types';\nimport type { StoreContext } from '../../api/store';\nimport type { PageContext } from '../../twilight/context';\nimport { getActiveCurrency } from '../../api/client';\nimport { RouteId } from '../../router/route-ids';\n\nexport type DataLayerEntry = Record<string, unknown>;\n\n/** True when the store loads a Tag Manager container; without one nothing reads the data layer. */\nexport function gtmEnabled(settings: StoreContext | undefined): boolean {\n return Boolean(settings?.store?.settings?.keys?.gtm?.length);\n}\n\nexport function pushToDataLayer(entry: DataLayerEntry): void {\n if (typeof window === 'undefined') return;\n window.dataLayer = window.dataLayer ?? [];\n window.dataLayer.push(entry);\n}\n\n/**\n * Twig's `dataLayer` proxy (`googletagmanager::head`): it drops request, payment and form\n * fields from every object pushed after it. The root head runs it before anything is pushed;\n * GTM's own script runs it too, for a theme that loads GTM by hand. Once per page.\n */\nexport const DATA_LAYER_PROXY_SCRIPT = `\nwindow.dataLayer = window.dataLayer || [];\nif (!window.__sallaDataLayerProxy) {\n window.__sallaDataLayerProxy = true;\n window.dataLayer = new Proxy(window.dataLayer, {\n set(target, property, value) {\n target[property] = value;\n if (typeof value === 'object') {\n ['form_data', 'data', 'gateway', 'config', 'request', 'headers']\n .forEach(function(key) { value && value.hasOwnProperty(key) && delete value[key]; });\n }\n return true;\n }\n });\n}\n`.trim();\n\n// ─── page ────────────────────────────────────────────────────────────────────\n\n/**\n * `page.pageName`: the Laravel route that renders the page on Twig, camel-cased without\n * `store` (`RequestResolver::getPageName`). The containers compare it: `productShow`,\n * `catShow`, `cartShow`, `search`, `brandsShow`, `thankyou`.\n */\nconst PAGE_NAMES: Record<string, string> = {\n [RouteId.INDEX]: 'home', // store.home\n [RouteId.PRODUCT_SINGLE]: 'productShow', // product.showWithSlug → product.show\n [RouteId.PRODUCT_INDEX]: 'catShow', // cat.showWithSlug → cat.show\n [RouteId.SEARCH]: 'search', // store.search\n [RouteId.PRODUCT_INDEX_LATEST]: 'latestProducts', // store.latest-products\n [RouteId.PRODUCT_INDEX_OFFERS]: 'productOffers', // product.offers\n [RouteId.BRANDS_INDEX]: 'brands', // store.brands\n [RouteId.BRANDS_SINGLE]: 'brandsShow', // store.brands.show\n [RouteId.CART]: 'cartShow', // cart.show\n [RouteId.THANK_YOU]: 'thankyou', // store.thankyou\n [RouteId.BLOG_INDEX]: 'blogIndex', // blog.index\n [RouteId.BLOG_SINGLE]: 'articlesShow', // articles.show\n [RouteId.BLOG_INDEX_CATEGORY]: 'articlesCategoryShow', // articles.category.show\n [RouteId.BLOG_INDEX_TAG]: 'articlesTagShow', // articles.tag.show\n [RouteId.PAGE_SINGLE]: 'pagesSlugShow', // pages.slug.show\n [RouteId.CUSTOMER_PROFILE]: 'userIndex', // user.index\n [RouteId.CUSTOMER_ORDERS_INDEX]: 'myorders', // store.myorders\n [RouteId.CUSTOMER_ORDERS_INDEX_PENDING]: 'myPendingOrders', // store.my_pending_orders\n [RouteId.CUSTOMER_ORDERS_SINGLE]: 'myOrder', // store.my_order\n [RouteId.CUSTOMER_WISHLIST]: 'myWishes', // store.my_wishes\n [RouteId.CUSTOMER_NOTIFICATIONS]: 'userNotificationsIndex', // user.notifications.index\n [RouteId.CUSTOMER_WALLET]: 'wallet', // wallet\n [RouteId.CUSTOMER_LOYALTY_POINTS]: 'customerLoyaltyPoints', // customer.loyalty_points\n [RouteId.LOYALTY]: 'loyaltyProgram', // store.loyalty_program\n [RouteId.TESTIMONIALS]: 'reviewsIndex', // store.reviews.index\n};\n\n/** A page with no known Twig route is named after its slug, camel-cased the same way. */\nexport function gtmPageName(slug: string): string {\n return (\n PAGE_NAMES[slug] ??\n slug.replace(/[._-]+([a-z0-9])/gi, (_, letter: string) => letter.toUpperCase())\n );\n}\n\n/** A fresh 40-hex id, as Twig's `sha1(… now()->timestamp)` gives each page and event one. */\nexport function gtmEventId(): string {\n const bytes = new Uint8Array(20);\n globalThis.crypto.getRandomValues(bytes);\n return Array.from(bytes, (byte) => byte.toString(16).padStart(2, '0')).join('');\n}\n\n/** `config('theme.name')`: a number on Salla's themes. */\nfunction themeName(settings: StoreContext | undefined): string | number | undefined {\n const name = settings?.theme?.name;\n return name && /^\\d+$/.test(name) ? Number(name) : name;\n}\n\nexport interface GtmPageInput {\n slug: string;\n referrer: string;\n /** Inside the Salla app's webview (`mobileAgent()->is()`). */\n mobileApp: boolean;\n}\n\n/** `RequestResolver::getData`. */\nexport function gtmPage(input: GtmPageInput, settings: StoreContext | undefined): DataLayerEntry {\n return {\n fingerprint: gtmEventId(),\n pageName: gtmPageName(input.slug),\n mobileApp: input.mobileApp ? 1 : 0,\n referrer: input.referrer,\n theme: themeName(settings),\n };\n}\n\n/**\n * `StoreResolver::getData`. The settings API sends none of the legacy built-in pixel ids\n * (`facebook_pixel_id`, …), so they are null, as Twig sends them for a store that set none.\n */\nexport function gtmStore(settings: StoreContext | undefined): DataLayerEntry {\n return {\n store: settings?.store?.username ?? '',\n facebook_pixel_id: null,\n google_analytics_id: null,\n snapchat_pixel_id: null,\n };\n}\n\n// ─── customer ────────────────────────────────────────────────────────────────\n\nasync function sha256(value: string): Promise<string | null> {\n const subtle = globalThis.crypto?.subtle;\n if (!subtle) return null;\n const digest = await subtle.digest('SHA-256', new TextEncoder().encode(value));\n return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, '0')).join('');\n}\n\n/** Lower-cased, no whitespace, and only a valid address (Twig: `FILTER_VALIDATE_EMAIL`). */\nfunction cleanEmail(email: string | undefined): string | null {\n const clean = email?.replace(/\\s+/g, '').toLowerCase();\n return clean && /^[^@]+@[^@]+\\.[^@]+$/.test(clean) ? clean : null;\n}\n\n/** E.164 without the plus (`966501234567`), as `fullMobileFormat(false)`; null when it isn't one. */\nfunction cleanPhone(mobile: string | undefined): string | null {\n const compact = mobile?.replace(/[\\s()-]+/g, '') ?? '';\n const digits = compact.startsWith('+')\n ? compact.slice(1)\n : compact.startsWith('00')\n ? compact.slice(2)\n : compact;\n return /^[1-9]\\d{7,14}$/.test(digits) ? digits : null;\n}\n\n/** `Store\\CustomerResolver::getData`: a guest is `{ isGuest: true }`. */\nexport async function gtmCustomer(\n user: User | null | undefined,\n settings: StoreContext | undefined\n): Promise<DataLayerEntry> {\n if (!user) return { isGuest: true };\n const email = cleanEmail(user.email);\n const phone = cleanPhone(user.mobile);\n const phoneWithPlus = phone ? `+${phone}` : null;\n const [firstName, lastName, emailHashed, phoneHashed, phoneWithPlusHashed] = await Promise.all([\n sha256(user.first_name ?? ''),\n sha256(user.last_name ?? ''),\n email ? sha256(email) : null,\n phone ? sha256(phone) : null,\n phoneWithPlus ? sha256(phoneWithPlus) : null,\n ]);\n return {\n isGuest: false,\n name: [user.first_name, user.last_name].filter(Boolean).join(' '),\n first_name: firstName,\n last_name: lastName,\n created_at: user.created_at ?? Math.floor(Date.now() / 1000),\n email,\n phone,\n phone_with_plus: phoneWithPlus,\n phone_with_plus_hashed: phoneWithPlusHashed,\n currency: user.preferences?.currency_code ?? settings?.user?.currency_code ?? 'SAR',\n email_hashed: emailHashed,\n phone_hashed: phoneHashed,\n };\n}\n\n// ─── money ───────────────────────────────────────────────────────────────────\n\nconst amountOf = (value: number | string | Money | null | undefined): number =>\n value && typeof value === 'object' ? Number(value.amount) || 0 : Number(value) || 0;\n\n/**\n * The currency prices are shown in: the visitor's choice, else the market's own (settings\n * `user.currency_code`; `OMR` on an Omani market of a Saudi store), as `currency()` on Twig.\n */\nexport function gtmCurrency(settings: StoreContext | undefined, fallback?: string): string {\n return getActiveCurrency() ?? fallback ?? settings?.user?.currency_code ?? 'SAR';\n}\n\n/**\n * `getGoogleTagManagerExchangeRate`: riyals per unit of `code`, as moneyphp prints a ratio.\n * Settings give each currency's `amount` per riyal.\n */\nexport function gtmExchangeRate(code: string, settings: StoreContext | undefined): string {\n const perRiyal = Number(settings?.currencies?.[code]?.amount);\n if (code === 'SAR' || !(perRiyal > 0)) return '1';\n return String(Number((1 / perRiyal).toPrecision(14)));\n}\n\n// ─── ecommerce ───────────────────────────────────────────────────────────────\n\nexport interface GtmProduct {\n id: number | string;\n name: string;\n categories: Array<{ id?: number | string; name: string }>;\n category: string;\n price: number;\n quantity: number;\n variant: string | null;\n brand: string;\n image: string;\n}\n\n/** `IsTaggingProduct::getGoogleTagManagerData`. */\nexport function gtmProduct(product: Product): GtmProduct {\n const categories = product.category\n ? [{ id: product.category.id, name: product.category.name }]\n : [];\n return {\n id: product.id,\n name: product.name,\n categories,\n category: categories.map((category) => category.name).join('/'),\n price: amountOf(product.price),\n quantity: 1,\n variant: '',\n brand: product.brand?.name ?? '',\n image: product.image?.url ?? '',\n };\n}\n\n/** `GoogleTagManager::detail`, which the product page pushes with its page data. */\nexport function gtmDetail(product: Product, settings: StoreContext | undefined): DataLayerEntry {\n const currencyCode = gtmCurrency(settings, product.currency);\n return {\n event: 'detail',\n ecommerce: {\n currencyCode,\n exchangeRate: gtmExchangeRate(currencyCode, settings),\n event_id: gtmEventId(),\n detail: { products: [gtmProduct(product)] },\n },\n };\n}\n\n/** `CartItem::getGoogleTagManagerData`: the cart line's taxed total as its price. */\nfunction gtmCartItem(item: CartItem, currency: string): DataLayerEntry {\n return {\n id: item.product_id,\n name: item.product_name,\n categories: [],\n category: '',\n price: amountOf(item.total),\n quantity: item.quantity,\n variant: null,\n brand: '',\n image: item.product_image ?? '',\n cart_item_id: item.id,\n currency,\n };\n}\n\n/**\n * `GoogleTagManager::checkout`, from the cart page's `SeoCartWidget` (step 1). It sets no\n * `event`: on Twig it rides on the page's own push. Only the available lines, and no order\n * options, as `getAvailableItems()` and the macro leave them out.\n */\nexport function gtmCartCheckout(\n cart: Cart,\n settings: StoreContext | undefined,\n step = 1\n): DataLayerEntry {\n const currencyCode = gtmCurrency(settings);\n const total = amountOf(cart.total);\n return {\n ecommerce: {\n currencyCode,\n exchangeRate: gtmExchangeRate(currencyCode, settings),\n event_id: gtmEventId(),\n checkout: {\n actionField: {\n id: cart.id,\n total,\n revenue: total,\n currency_code: currencyCode,\n step,\n },\n products: cart.items\n .filter((item) => item.is_available !== false && String(item.type) !== 'order_option')\n .map((item) => gtmCartItem(item, currencyCode)),\n },\n },\n };\n}\n\n/** `OrderItems::getGoogleTagManagerData`: the line before its discount, tax included. */\nfunction gtmOrderItem(item: OrderItem, currency: string): DataLayerEntry | null {\n if (!item.product) return null;\n return {\n id: item.product.id,\n name: item.name,\n categories: [],\n category: '',\n price: amountOf(item.amounts?.total) + amountOf(item.amounts?.total_discount),\n quantity: item.quantity,\n variant: null,\n brand: '',\n image: item.thumbnail ?? item.product_thumbnail ?? item.image ?? '',\n currency,\n };\n}\n\n/** `GoogleTagManager::purchase`, from the thank-you page's `SeoThankYouWidget`. */\nexport function gtmPurchase(order: Order, settings: StoreContext | undefined): DataLayerEntry {\n const currencyCode = order.currency || gtmCurrency(settings);\n const total = amountOf(order.amounts?.total);\n return {\n event: 'purchase',\n ecommerce: {\n currencyCode,\n exchangeRate: gtmExchangeRate(currencyCode, settings),\n event_id: order.id,\n purchase: {\n actionField: {\n id: order.id,\n total,\n revenue: total,\n currency_code: currencyCode,\n step: null,\n },\n products: (order.items ?? [])\n .map((item) => gtmOrderItem(item, currencyCode))\n .filter((item): item is DataLayerEntry => item !== null),\n },\n },\n };\n}\n\n/**\n * The `impressions` `<salla-products-list>` pushes for each page of products it fetches\n * (`appendDataLayer`), with the page's title and id where a product names no category.\n */\nexport function gtmImpressions(\n products: Product[],\n page: PageContext | undefined,\n settings: StoreContext | undefined\n): DataLayerEntry {\n return {\n event: 'impressions',\n ecommerce: {\n currencyCode: gtmCurrency(settings),\n impressions: products.map((product, index) => {\n const category = product.category?.name || page?.title;\n return {\n id: product.id,\n name: product.name,\n price: amountOf(product.price),\n brand: product.brand?.name || '',\n quantity: product.quantity,\n categories: [{ name: category, id: page?.id }],\n category,\n position: index + 1,\n };\n }),\n },\n };\n}\n\n// ─── services ────────────────────────────────────────────────────────────────\n\n/** Services Twig renders itself rather than announcing (`ExternalServicesWidget::$serviceWidgets`). */\nconst WIDGET_SERVICES = new Set([\n 'google_tags_manager',\n 'mailchimp',\n 'addon-mailchimp-marketing',\n 'klaviyo',\n]);\n\n/** Apps with a snippet that Twig still announces (`ExternalServicesWidget::$serviceTracking`). */\nconst ANNOUNCED_SNIPPET_SERVICES = new Set(['facebook_pixel', 'tiktok_pixel', 'google_analytics']);\n\n/**\n * The `services::<name>.init` events a Twig page dispatches through the SDK, which copies each\n * into the data layer, where Salla's container loads GA4, Google Ads, Clarity and the pixels\n * from them. The settings API lists every active service; Twig leaves out the ones it renders\n * as a widget and the apps whose snippet the page loads instead.\n */\nexport function servicesInitEvents(\n externalServices: StoreContext['external_services'],\n snippetServices: Iterable<string>\n): Array<[name: string, payload: unknown]> {\n const snippets = new Set(snippetServices);\n return Object.entries(externalServices ?? {}).filter(([name]) => {\n const service = /^services::(.+)\\.init$/.exec(name)?.[1];\n if (!service || WIDGET_SERVICES.has(service)) return false;\n return !snippets.has(service) || ANNOUNCED_SNIPPET_SERVICES.has(service);\n });\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { LazyCartItem as CartItem, LazyCartSummary as CartSummary, LazySeoCartWidget as SeoCartWidget } from '../../chunk-
|
|
1
|
+
export { LazyCartItem as CartItem, LazyCartSummary as CartSummary, LazySeoCartWidget as SeoCartWidget } from '../../chunk-YEVLRCSL.js';
|
|
2
2
|
import '../../chunk-VYGA5AT5.js';
|
|
3
3
|
import '../../chunk-DGUM43GV.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BlogSkeleton, BreadcrumbSkeleton, CustomerLayoutSkeleton, CustomerPageSkeleton, DeferredData, Image, PageSkeleton, ProductCardSkeleton, ProductDetailSkeleton, ProductGridSkeleton, SkeletonPulse, resolveDeferred } from '../../chunk-IVO6YRRK.js';
|
|
2
2
|
export { Link } from '../../chunk-3GFD7WTJ.js';
|
|
3
|
-
export { LazyBreadcrumb as Breadcrumb, LazyCurrencySymbol as CurrencySymbol, LazyErrorPage as ErrorPage, LazyNoContent as NoContent, LazyRenderWhenVisible as RenderWhenVisible } from '../../chunk-
|
|
3
|
+
export { LazyBreadcrumb as Breadcrumb, LazyCurrencySymbol as CurrencySymbol, LazyErrorPage as ErrorPage, LazyNoContent as NoContent, LazyRenderWhenVisible as RenderWhenVisible } from '../../chunk-YZDL6GF7.js';
|
|
4
4
|
import '../../chunk-EDCNCBSC.js';
|
|
5
5
|
import '../../chunk-SKLEJJ6M.js';
|
|
6
6
|
import '../../chunk-VYGA5AT5.js';
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
export { Drawer } from '../../chunk-6TKIUG5C.js';
|
|
2
|
-
import '../../chunk-
|
|
2
|
+
import '../../chunk-5MUY4AUU.js';
|
|
3
3
|
import '../../chunk-QT2D7JMW.js';
|
|
4
4
|
import '../../chunk-Q77J3D2W.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-BTQ2SAMS.js';
|
|
6
6
|
import '../../chunk-YL6X3ZMG.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-WHNF7WBH.js';
|
|
8
8
|
import '../../chunk-OXMUPNMH.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-F6MAM7HZ.js';
|
|
10
10
|
import '../../chunk-UAPBMOOV.js';
|
|
11
11
|
import '../../chunk-VVZNW5CB.js';
|
|
12
12
|
import '../../chunk-QJOTD2GJ.js';
|
|
13
13
|
import '../../chunk-GD26FI4J.js';
|
|
14
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-VY2TPXFO.js';
|
|
15
|
+
import '../../chunk-AWOMNZIJ.js';
|
|
15
16
|
import '../../chunk-BYA4ZF7E.js';
|
|
16
17
|
import '../../chunk-6T55LXJL.js';
|
|
17
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-ZWX33T7S.js';
|
|
18
19
|
import '../../chunk-O7JTXTGP.js';
|
|
19
20
|
import '../../chunk-SDBR4X3K.js';
|
|
20
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-WLRNZYCA.js';
|
|
21
22
|
import '../../chunk-OUW6WESU.js';
|
|
22
23
|
import '../../chunk-OAMIDZKW.js';
|
|
23
24
|
import '../../chunk-64BWBCE7.js';
|
|
24
25
|
import '../../chunk-HI5V5X3S.js';
|
|
25
|
-
import '../../chunk-
|
|
26
|
-
import '../../chunk-
|
|
26
|
+
import '../../chunk-Z5LSS25A.js';
|
|
27
|
+
import '../../chunk-D4ACJS2K.js';
|
|
27
28
|
import '../../chunk-Z653O7MX.js';
|
|
28
29
|
import '../../chunk-ZCH7W7DZ.js';
|
|
29
30
|
import '../../chunk-HHAR2YJN.js';
|
|
@@ -33,17 +34,17 @@ import '../../chunk-7V36I5GT.js';
|
|
|
33
34
|
import '../../chunk-6WI7R2BD.js';
|
|
34
35
|
import '../../chunk-DVJGKIFQ.js';
|
|
35
36
|
import '../../chunk-OQIIJRAS.js';
|
|
36
|
-
import '../../chunk-
|
|
37
|
+
import '../../chunk-CRXXKAFW.js';
|
|
37
38
|
import '../../chunk-V2ZDTY6H.js';
|
|
38
|
-
import '../../chunk-
|
|
39
|
+
import '../../chunk-IAVHDEMZ.js';
|
|
39
40
|
import '../../chunk-5XDPAKF5.js';
|
|
40
41
|
import '../../chunk-GCPEMNSU.js';
|
|
41
|
-
import '../../chunk-
|
|
42
|
+
import '../../chunk-BSWV7U3V.js';
|
|
42
43
|
import '../../chunk-Z5M4YYWT.js';
|
|
43
44
|
import '../../chunk-TYNZ5B2B.js';
|
|
44
45
|
import '../../chunk-IVO6YRRK.js';
|
|
45
46
|
import '../../chunk-3GFD7WTJ.js';
|
|
46
|
-
import '../../chunk-
|
|
47
|
+
import '../../chunk-YZDL6GF7.js';
|
|
47
48
|
import '../../chunk-EDCNCBSC.js';
|
|
48
49
|
import '../../chunk-SKLEJJ6M.js';
|
|
49
50
|
import '../../chunk-6BZ5TKEV.js';
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
export { BundleComponent, ComponentErrorBoundary, DefaultHomeComponents, FeaturedProductsStyle1, FeaturedProductsStyle2, FeaturedProductsStyle3, FixedBanner, FixedProducts, HomeComponentRenderer, PageBlocks, ParallaxBackground, PhotosSlider, ProductsSlider, ReorderProducts, SquarePhotos, StoreFeatures, LazyTestimonials as Testimonials, Youtube, registerHomeComponentConfig, registerHomeComponents, useReorderButtons } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
1
|
+
export { BundleComponent, ComponentErrorBoundary, DefaultHomeComponents, FeaturedProductsStyle1, FeaturedProductsStyle2, FeaturedProductsStyle3, FixedBanner, FixedProducts, HomeComponentRenderer, PageBlocks, ParallaxBackground, PhotosSlider, ProductsSlider, ReorderProducts, SquarePhotos, StoreFeatures, LazyTestimonials as Testimonials, Youtube, registerHomeComponentConfig, registerHomeComponents, useReorderButtons } from '../../chunk-EOZAJ6SP.js';
|
|
2
|
+
import '../../chunk-VXTPMEFC.js';
|
|
3
|
+
import '../../chunk-RKSWLLP7.js';
|
|
4
|
+
import '../../chunk-UA6LTD55.js';
|
|
5
|
+
import '../../chunk-I7LWEJDL.js';
|
|
6
6
|
import '../../chunk-Y32RHCOH.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-5MUY4AUU.js';
|
|
8
8
|
import '../../chunk-QT2D7JMW.js';
|
|
9
9
|
import '../../chunk-Q77J3D2W.js';
|
|
10
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-BTQ2SAMS.js';
|
|
11
11
|
import '../../chunk-YL6X3ZMG.js';
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-WHNF7WBH.js';
|
|
13
13
|
import '../../chunk-OXMUPNMH.js';
|
|
14
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-F6MAM7HZ.js';
|
|
15
15
|
import '../../chunk-UAPBMOOV.js';
|
|
16
16
|
import '../../chunk-VVZNW5CB.js';
|
|
17
17
|
import '../../chunk-QJOTD2GJ.js';
|
|
18
18
|
import '../../chunk-GD26FI4J.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-VY2TPXFO.js';
|
|
20
|
+
import '../../chunk-AWOMNZIJ.js';
|
|
20
21
|
import '../../chunk-BYA4ZF7E.js';
|
|
21
22
|
import '../../chunk-6T55LXJL.js';
|
|
22
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-ZWX33T7S.js';
|
|
23
24
|
import '../../chunk-O7JTXTGP.js';
|
|
24
25
|
import '../../chunk-SDBR4X3K.js';
|
|
25
|
-
import '../../chunk-
|
|
26
|
+
import '../../chunk-WLRNZYCA.js';
|
|
26
27
|
import '../../chunk-OUW6WESU.js';
|
|
27
28
|
import '../../chunk-OAMIDZKW.js';
|
|
28
29
|
import '../../chunk-64BWBCE7.js';
|
|
29
30
|
import '../../chunk-HI5V5X3S.js';
|
|
30
|
-
import '../../chunk-
|
|
31
|
-
import '../../chunk-
|
|
31
|
+
import '../../chunk-Z5LSS25A.js';
|
|
32
|
+
import '../../chunk-D4ACJS2K.js';
|
|
32
33
|
import '../../chunk-Z653O7MX.js';
|
|
33
34
|
import '../../chunk-ZCH7W7DZ.js';
|
|
34
35
|
import '../../chunk-HHAR2YJN.js';
|
|
@@ -38,17 +39,17 @@ import '../../chunk-7V36I5GT.js';
|
|
|
38
39
|
import '../../chunk-6WI7R2BD.js';
|
|
39
40
|
import '../../chunk-DVJGKIFQ.js';
|
|
40
41
|
import '../../chunk-OQIIJRAS.js';
|
|
41
|
-
import '../../chunk-
|
|
42
|
+
import '../../chunk-CRXXKAFW.js';
|
|
42
43
|
import '../../chunk-V2ZDTY6H.js';
|
|
43
|
-
import '../../chunk-
|
|
44
|
+
import '../../chunk-IAVHDEMZ.js';
|
|
44
45
|
import '../../chunk-5XDPAKF5.js';
|
|
45
46
|
import '../../chunk-GCPEMNSU.js';
|
|
46
|
-
import '../../chunk-
|
|
47
|
+
import '../../chunk-BSWV7U3V.js';
|
|
47
48
|
import '../../chunk-Z5M4YYWT.js';
|
|
48
49
|
import '../../chunk-TYNZ5B2B.js';
|
|
49
50
|
import '../../chunk-IVO6YRRK.js';
|
|
50
51
|
import '../../chunk-3GFD7WTJ.js';
|
|
51
|
-
import '../../chunk-
|
|
52
|
+
import '../../chunk-YZDL6GF7.js';
|
|
52
53
|
import '../../chunk-EDCNCBSC.js';
|
|
53
54
|
import '../../chunk-SKLEJJ6M.js';
|
|
54
55
|
import '../../chunk-6BZ5TKEV.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { LazyCopyright as Copyright, LazyCustomerLayout as CustomerLayout, LazyFooter as Footer, LazyHeader as Header, LazyMasterLayout as MasterLayout, LazyWidgetHead as WidgetHead } from '../../chunk-
|
|
1
|
+
export { LazyCopyright as Copyright, LazyCustomerLayout as CustomerLayout, LazyFooter as Footer, LazyHeader as Header, LazyMasterLayout as MasterLayout, LazyWidgetHead as WidgetHead } from '../../chunk-AY2XD3S2.js';
|
|
2
2
|
export { MadeWithSalla } from '../../chunk-OQIIJRAS.js';
|
|
3
|
-
export { PageAdvertisements } from '../../chunk-
|
|
3
|
+
export { PageAdvertisements } from '../../chunk-CRXXKAFW.js';
|
|
4
4
|
export { pushEqualHeightConfig } from '../../chunk-V2ZDTY6H.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-IAVHDEMZ.js';
|
|
6
6
|
import '../../chunk-5XDPAKF5.js';
|
|
7
7
|
import '../../chunk-GCPEMNSU.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-BSWV7U3V.js';
|
|
9
9
|
import '../../chunk-Z5M4YYWT.js';
|
|
10
10
|
import '../../chunk-TYNZ5B2B.js';
|
|
11
11
|
import '../../chunk-MZPX4EPS.js';
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
export { LazyAddToCartForm as AddToCartForm, LazyProductDetails as ProductDetails, ProductGallery } from '../../chunk-
|
|
2
|
-
export { ProductCard } from '../../chunk-
|
|
1
|
+
export { LazyAddToCartForm as AddToCartForm, LazyProductDetails as ProductDetails, ProductGallery } from '../../chunk-UA6LTD55.js';
|
|
2
|
+
export { ProductCard } from '../../chunk-I7LWEJDL.js';
|
|
3
3
|
import '../../chunk-Y32RHCOH.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-5MUY4AUU.js';
|
|
5
5
|
import '../../chunk-QT2D7JMW.js';
|
|
6
6
|
import '../../chunk-Q77J3D2W.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-BTQ2SAMS.js';
|
|
8
8
|
import '../../chunk-YL6X3ZMG.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-WHNF7WBH.js';
|
|
10
10
|
import '../../chunk-OXMUPNMH.js';
|
|
11
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-F6MAM7HZ.js';
|
|
12
12
|
import '../../chunk-UAPBMOOV.js';
|
|
13
13
|
import '../../chunk-VVZNW5CB.js';
|
|
14
14
|
import '../../chunk-QJOTD2GJ.js';
|
|
15
15
|
import '../../chunk-GD26FI4J.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-VY2TPXFO.js';
|
|
17
|
+
import '../../chunk-AWOMNZIJ.js';
|
|
17
18
|
import '../../chunk-BYA4ZF7E.js';
|
|
18
19
|
import '../../chunk-6T55LXJL.js';
|
|
19
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-ZWX33T7S.js';
|
|
20
21
|
import '../../chunk-O7JTXTGP.js';
|
|
21
22
|
import '../../chunk-SDBR4X3K.js';
|
|
22
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-WLRNZYCA.js';
|
|
23
24
|
import '../../chunk-OUW6WESU.js';
|
|
24
25
|
import '../../chunk-OAMIDZKW.js';
|
|
25
26
|
import '../../chunk-64BWBCE7.js';
|
|
26
27
|
import '../../chunk-HI5V5X3S.js';
|
|
27
|
-
import '../../chunk-
|
|
28
|
-
import '../../chunk-
|
|
28
|
+
import '../../chunk-Z5LSS25A.js';
|
|
29
|
+
import '../../chunk-D4ACJS2K.js';
|
|
29
30
|
import '../../chunk-Z653O7MX.js';
|
|
30
31
|
import '../../chunk-ZCH7W7DZ.js';
|
|
31
32
|
import '../../chunk-HHAR2YJN.js';
|
|
@@ -35,17 +36,17 @@ import '../../chunk-7V36I5GT.js';
|
|
|
35
36
|
import '../../chunk-6WI7R2BD.js';
|
|
36
37
|
import '../../chunk-DVJGKIFQ.js';
|
|
37
38
|
import '../../chunk-OQIIJRAS.js';
|
|
38
|
-
import '../../chunk-
|
|
39
|
+
import '../../chunk-CRXXKAFW.js';
|
|
39
40
|
import '../../chunk-V2ZDTY6H.js';
|
|
40
|
-
import '../../chunk-
|
|
41
|
+
import '../../chunk-IAVHDEMZ.js';
|
|
41
42
|
import '../../chunk-5XDPAKF5.js';
|
|
42
43
|
import '../../chunk-GCPEMNSU.js';
|
|
43
|
-
import '../../chunk-
|
|
44
|
+
import '../../chunk-BSWV7U3V.js';
|
|
44
45
|
import '../../chunk-Z5M4YYWT.js';
|
|
45
46
|
import '../../chunk-TYNZ5B2B.js';
|
|
46
47
|
import '../../chunk-IVO6YRRK.js';
|
|
47
48
|
import '../../chunk-3GFD7WTJ.js';
|
|
48
|
-
import '../../chunk-
|
|
49
|
+
import '../../chunk-YZDL6GF7.js';
|
|
49
50
|
import '../../chunk-EDCNCBSC.js';
|
|
50
51
|
import '../../chunk-SKLEJJ6M.js';
|
|
51
52
|
import '../../chunk-6BZ5TKEV.js';
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
export { MaintenancePage } from '../../chunk-OU6DYIG5.js';
|
|
2
|
-
export { StoreClosedNotification } from '../../chunk-
|
|
3
|
-
export { LazyMaintenancePage, LazyStoreClosedNotification } from '../../chunk-
|
|
2
|
+
export { StoreClosedNotification } from '../../chunk-UYY5FXLW.js';
|
|
3
|
+
export { LazyMaintenancePage, LazyStoreClosedNotification } from '../../chunk-5MUY4AUU.js';
|
|
4
4
|
import '../../chunk-QT2D7JMW.js';
|
|
5
5
|
import '../../chunk-Q77J3D2W.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-BTQ2SAMS.js';
|
|
7
7
|
import '../../chunk-YL6X3ZMG.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-WHNF7WBH.js';
|
|
9
9
|
import '../../chunk-OXMUPNMH.js';
|
|
10
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-F6MAM7HZ.js';
|
|
11
11
|
import '../../chunk-UAPBMOOV.js';
|
|
12
12
|
import '../../chunk-VVZNW5CB.js';
|
|
13
13
|
import '../../chunk-QJOTD2GJ.js';
|
|
14
14
|
import '../../chunk-GD26FI4J.js';
|
|
15
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-VY2TPXFO.js';
|
|
16
|
+
import '../../chunk-AWOMNZIJ.js';
|
|
16
17
|
import '../../chunk-BYA4ZF7E.js';
|
|
17
18
|
import '../../chunk-6T55LXJL.js';
|
|
18
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-ZWX33T7S.js';
|
|
19
20
|
import '../../chunk-O7JTXTGP.js';
|
|
20
21
|
import '../../chunk-SDBR4X3K.js';
|
|
21
|
-
import '../../chunk-
|
|
22
|
+
import '../../chunk-WLRNZYCA.js';
|
|
22
23
|
import '../../chunk-OUW6WESU.js';
|
|
23
24
|
import '../../chunk-OAMIDZKW.js';
|
|
24
25
|
import '../../chunk-64BWBCE7.js';
|
|
25
26
|
import '../../chunk-HI5V5X3S.js';
|
|
26
|
-
import '../../chunk-
|
|
27
|
-
import '../../chunk-
|
|
27
|
+
import '../../chunk-Z5LSS25A.js';
|
|
28
|
+
import '../../chunk-D4ACJS2K.js';
|
|
28
29
|
import '../../chunk-Z653O7MX.js';
|
|
29
30
|
import '../../chunk-ZCH7W7DZ.js';
|
|
30
31
|
import '../../chunk-HHAR2YJN.js';
|
|
@@ -34,17 +35,17 @@ import '../../chunk-7V36I5GT.js';
|
|
|
34
35
|
import '../../chunk-6WI7R2BD.js';
|
|
35
36
|
import '../../chunk-DVJGKIFQ.js';
|
|
36
37
|
import '../../chunk-OQIIJRAS.js';
|
|
37
|
-
import '../../chunk-
|
|
38
|
+
import '../../chunk-CRXXKAFW.js';
|
|
38
39
|
import '../../chunk-V2ZDTY6H.js';
|
|
39
|
-
import '../../chunk-
|
|
40
|
+
import '../../chunk-IAVHDEMZ.js';
|
|
40
41
|
import '../../chunk-5XDPAKF5.js';
|
|
41
42
|
import '../../chunk-GCPEMNSU.js';
|
|
42
|
-
import '../../chunk-
|
|
43
|
+
import '../../chunk-BSWV7U3V.js';
|
|
43
44
|
import '../../chunk-Z5M4YYWT.js';
|
|
44
45
|
import '../../chunk-TYNZ5B2B.js';
|
|
45
46
|
import '../../chunk-IVO6YRRK.js';
|
|
46
47
|
import '../../chunk-3GFD7WTJ.js';
|
|
47
|
-
import '../../chunk-
|
|
48
|
+
import '../../chunk-YZDL6GF7.js';
|
|
48
49
|
import '../../chunk-EDCNCBSC.js';
|
|
49
50
|
import '../../chunk-SKLEJJ6M.js';
|
|
50
51
|
import '../../chunk-6BZ5TKEV.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { GoogleTagBody } from '../../chunk-
|
|
1
|
+
export { GoogleTagBody } from '../../chunk-H22ABA6K.js';
|
|
2
2
|
export { TwilightBundles } from '../../chunk-RBEYMAKM.js';
|
|
3
3
|
export { SiftSnippet } from '../../chunk-AQANJRBD.js';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-QPRU3PVD.js';
|
|
5
|
+
import '../../chunk-ZWX33T7S.js';
|
|
6
6
|
import '../../chunk-OUW6WESU.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-D4ACJS2K.js';
|
|
8
|
+
import '../../chunk-BSWV7U3V.js';
|
|
9
9
|
import '../../chunk-Z5M4YYWT.js';
|
|
10
10
|
import '../../chunk-BZ2QSBXM.js';
|
|
11
11
|
import '../../chunk-MZPX4EPS.js';
|
|
@@ -17,7 +17,7 @@ import '../../chunk-DGUM43GV.js';
|
|
|
17
17
|
|
|
18
18
|
// src/components/tracking/lazy.ts
|
|
19
19
|
var LazyGoogleTagBody = lazyComponent(
|
|
20
|
-
() => import('../../GoogleTag-
|
|
20
|
+
() => import('../../GoogleTag-NWYDC6WD.js').then((m) => ({ default: m.GoogleTagBody }))
|
|
21
21
|
);
|
|
22
22
|
var LazySiftSnippet = lazyComponent(
|
|
23
23
|
() => import('../../SiftSnippet-5FCU6TR6.js').then((m) => ({ default: m.SiftSnippet }))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { customUrlKey, customUrlPagePath, customUrlRedirect, storePathOf, withAddressQuery } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { customUrlKey, customUrlPagePath, customUrlRedirect, storePathOf, withAddressQuery } from './chunk-DCDWTP6S.js';
|
|
2
|
+
import './chunk-KAQV2WZ6.js';
|
|
3
|
+
import './chunk-K6AQYYJR.js';
|
|
4
4
|
import './chunk-O7JTXTGP.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-WLRNZYCA.js';
|
|
6
6
|
import './chunk-OUW6WESU.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-BSWV7U3V.js';
|
|
8
8
|
import './chunk-Z5M4YYWT.js';
|
|
9
9
|
import './chunk-BZ2QSBXM.js';
|
|
10
10
|
import './chunk-MZPX4EPS.js';
|
|
@@ -13,5 +13,5 @@ import './chunk-MWUAHDQL.js';
|
|
|
13
13
|
import './chunk-T72DAX7R.js';
|
|
14
14
|
import './chunk-DF6FBKDN.js';
|
|
15
15
|
import './chunk-DGUM43GV.js';
|
|
16
|
-
//# sourceMappingURL=custom-urls-
|
|
17
|
-
//# sourceMappingURL=custom-urls-
|
|
16
|
+
//# sourceMappingURL=custom-urls-SNKCSUFH.js.map
|
|
17
|
+
//# sourceMappingURL=custom-urls-SNKCSUFH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"custom-urls-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"custom-urls-SNKCSUFH.js"}
|
package/dist/dev/editor/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { liveBlockIdOf } from '../../chunk-YL6X3ZMG.js';
|
|
2
|
-
import { useDevEditorMeta, devSettingsStore, useDevSettingsState, blockPath } from '../../chunk-
|
|
2
|
+
import { useDevEditorMeta, devSettingsStore, useDevSettingsState, blockPath } from '../../chunk-WHNF7WBH.js';
|
|
3
3
|
import { conditionsMet, DEV_EDITOR_FRAME_ATTR, DEV_PREVIEW_IMAGE_MAX_BYTES, DEV_PREVIEW_IMAGE_ENDPOINT } from '../../chunk-OXMUPNMH.js';
|
|
4
4
|
import { requestFreshStoreSettings } from '../../chunk-Z5M4YYWT.js';
|
|
5
5
|
import '../../chunk-4OZIBANF.js';
|
package/dist/dev/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export { RouteDocumentSync, TanStackDocumentSync, tanstackDocumentAdapter, useTanstackDocumentAttrs } from './chunk-
|
|
1
|
+
export { RouteDocumentSync, TanStackDocumentSync, tanstackDocumentAdapter, useTanstackDocumentAttrs } from './chunk-O6KQRFTR.js';
|
|
2
2
|
import './chunk-Z4Y55HWX.js';
|
|
3
3
|
import './chunk-DPB47XO7.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
4
|
+
import './chunk-CB473WUX.js';
|
|
5
|
+
import './chunk-IHHJGUI3.js';
|
|
6
|
+
import './chunk-M4GK6JZO.js';
|
|
7
|
+
import './chunk-QPRU3PVD.js';
|
|
8
8
|
import './chunk-NV4PF3O3.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
9
|
+
import './chunk-K6AQYYJR.js';
|
|
10
|
+
import './chunk-RKSWLLP7.js';
|
|
11
|
+
import './chunk-F6MAM7HZ.js';
|
|
12
12
|
import './chunk-UAPBMOOV.js';
|
|
13
13
|
import './chunk-QJOTD2GJ.js';
|
|
14
14
|
import './chunk-GD26FI4J.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-VY2TPXFO.js';
|
|
16
16
|
import './chunk-BYA4ZF7E.js';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-ZWX33T7S.js';
|
|
18
18
|
import './chunk-O7JTXTGP.js';
|
|
19
19
|
import './chunk-SDBR4X3K.js';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-WLRNZYCA.js';
|
|
21
21
|
import './chunk-OUW6WESU.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-D4ACJS2K.js';
|
|
23
23
|
import './chunk-JWXJPJBO.js';
|
|
24
24
|
import './chunk-CW625T2E.js';
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
25
|
+
import './chunk-IAVHDEMZ.js';
|
|
26
|
+
import './chunk-BSWV7U3V.js';
|
|
27
27
|
import './chunk-Z5M4YYWT.js';
|
|
28
28
|
import './chunk-TYNZ5B2B.js';
|
|
29
|
-
import './chunk-
|
|
29
|
+
import './chunk-YZDL6GF7.js';
|
|
30
30
|
import './chunk-BZ2QSBXM.js';
|
|
31
31
|
import './chunk-MZPX4EPS.js';
|
|
32
32
|
import './chunk-4OZIBANF.js';
|
|
@@ -35,5 +35,5 @@ import './chunk-T72DAX7R.js';
|
|
|
35
35
|
import './chunk-DF6FBKDN.js';
|
|
36
36
|
import './chunk-VYGA5AT5.js';
|
|
37
37
|
import './chunk-DGUM43GV.js';
|
|
38
|
-
//# sourceMappingURL=document-class-
|
|
39
|
-
//# sourceMappingURL=document-class-
|
|
38
|
+
//# sourceMappingURL=document-class-GMZDY55X.js.map
|
|
39
|
+
//# sourceMappingURL=document-class-GMZDY55X.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"document-class-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"document-class-GMZDY55X.js"}
|