@salla.sa/twilight-theme-engine 1.0.176 → 1.0.178
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-QT5UA3CN.js → AddToCartForm-KN67K7AQ.js} +5 -5
- package/dist/{AddToCartForm-QT5UA3CN.js.map → AddToCartForm-KN67K7AQ.js.map} +1 -1
- package/dist/{BlogAuthorPage-RU5RJ36O.js → BlogAuthorPage-E74LKVMH.js} +32 -32
- package/dist/{BlogAuthorPage-RU5RJ36O.js.map → BlogAuthorPage-E74LKVMH.js.map} +1 -1
- package/dist/{BlogCategoryPage-POATYETR.js → BlogCategoryPage-77QEH2VO.js} +32 -32
- package/dist/{BlogCategoryPage-POATYETR.js.map → BlogCategoryPage-77QEH2VO.js.map} +1 -1
- package/dist/{BlogPage-UHSWMYLC.js → BlogPage-2XST3XR2.js} +30 -30
- package/dist/{BlogPage-UHSWMYLC.js.map → BlogPage-2XST3XR2.js.map} +1 -1
- package/dist/{BlogSinglePage-3FGA4BJ4.js → BlogSinglePage-4ML5A2OB.js} +30 -30
- package/dist/{BlogSinglePage-3FGA4BJ4.js.map → BlogSinglePage-4ML5A2OB.js.map} +1 -1
- package/dist/{BlogTagPage-QMPB7VTU.js → BlogTagPage-7XP4FXK6.js} +32 -32
- package/dist/{BlogTagPage-QMPB7VTU.js.map → BlogTagPage-7XP4FXK6.js.map} +1 -1
- package/dist/{BrandsPage-5GPQ2KHE.js → BrandsPage-YKYYYVDU.js} +31 -31
- package/dist/{BrandsPage-5GPQ2KHE.js.map → BrandsPage-YKYYYVDU.js.map} +1 -1
- package/dist/{Breadcrumb-BH3ONIPV.js → Breadcrumb-FNWRNQ24.js} +30 -30
- package/dist/{Breadcrumb-BH3ONIPV.js.map → Breadcrumb-FNWRNQ24.js.map} +1 -1
- package/dist/{CartItem-UYVIMHKF.js → CartItem-WHBZF4JF.js} +30 -30
- package/dist/{CartItem-UYVIMHKF.js.map → CartItem-WHBZF4JF.js.map} +1 -1
- package/dist/{CartSummary-R2MGYHGL.js → CartSummary-Z4AC2L2X.js} +30 -30
- package/dist/{CartSummary-R2MGYHGL.js.map → CartSummary-Z4AC2L2X.js.map} +1 -1
- package/dist/{Copyright-6V6GPZGQ.js → Copyright-P3W6UZVC.js} +5 -5
- package/dist/{Copyright-6V6GPZGQ.js.map → Copyright-P3W6UZVC.js.map} +1 -1
- package/dist/{CustomerLayout-KUN5Y7V2.js → CustomerLayout-RB44K7JV.js} +30 -30
- package/dist/{CustomerLayout-KUN5Y7V2.js.map → CustomerLayout-RB44K7JV.js.map} +1 -1
- package/dist/{Footer-PMYHIZND.js → Footer-RMNHNTZM.js} +6 -6
- package/dist/{Footer-PMYHIZND.js.map → Footer-RMNHNTZM.js.map} +1 -1
- package/dist/GoogleTag-IBUOI4BU.js +15 -0
- package/dist/{GoogleTag-FFE6DKJB.js.map → GoogleTag-IBUOI4BU.js.map} +1 -1
- package/dist/Header-3W742LRD.js +25 -0
- package/dist/{Header-IA52TT5T.js.map → Header-3W742LRD.js.map} +1 -1
- package/dist/{LatestProducts-JGPDDNNU.js → LatestProducts-QFRDI7TQ.js} +33 -33
- package/dist/{LatestProducts-JGPDDNNU.js.map → LatestProducts-QFRDI7TQ.js.map} +1 -1
- package/dist/{LoyaltyPage-7ASSXSUR.js → LoyaltyPage-N5D5Q3NL.js} +30 -30
- package/dist/{LoyaltyPage-7ASSXSUR.js.map → LoyaltyPage-N5D5Q3NL.js.map} +1 -1
- package/dist/{LoyaltyPointsPage-JGJDLFD4.js → LoyaltyPointsPage-G3XGE4HT.js} +9 -9
- package/dist/{LoyaltyPointsPage-JGJDLFD4.js.map → LoyaltyPointsPage-G3XGE4HT.js.map} +1 -1
- package/dist/{MainMenu-BV5EUPQA.js → MainMenu-4GUU2NAF.js} +10 -10
- package/dist/{MainMenu-BV5EUPQA.js.map → MainMenu-4GUU2NAF.js.map} +1 -1
- package/dist/MaintenancePage-3YUQXVN2.js +7 -0
- package/dist/{MaintenancePage-SFZN7G27.js.map → MaintenancePage-3YUQXVN2.js.map} +1 -1
- package/dist/MasterLayout-BJA7J6RF.js +62 -0
- package/dist/{MasterLayout-BAS3C6F7.js.map → MasterLayout-BJA7J6RF.js.map} +1 -1
- package/dist/{MobileMenu-NNTHF55K.js → MobileMenu-ORFZ7IKI.js} +31 -31
- package/dist/{MobileMenu-NNTHF55K.js.map → MobileMenu-ORFZ7IKI.js.map} +1 -1
- package/dist/NoContent-7YUWEXI2.js +6 -0
- package/dist/{NoContent-7A7OR2NZ.js.map → NoContent-7YUWEXI2.js.map} +1 -1
- package/dist/{NotificationsPage-V53SLBUM.js → NotificationsPage-2S4PT63V.js} +30 -30
- package/dist/{NotificationsPage-V53SLBUM.js.map → NotificationsPage-2S4PT63V.js.map} +1 -1
- package/dist/{OrderSinglePage-XBQKE3N3.js → OrderSinglePage-3VW6TSFJ.js} +31 -31
- package/dist/{OrderSinglePage-XBQKE3N3.js.map → OrderSinglePage-3VW6TSFJ.js.map} +1 -1
- package/dist/{OrdersPage-WJMZXXSZ.js → OrdersPage-26MUU5J7.js} +30 -30
- package/dist/{OrdersPage-WJMZXXSZ.js.map → OrdersPage-26MUU5J7.js.map} +1 -1
- package/dist/{PageSingle-PWET5BZI.js → PageSingle-5BBSPDMH.js} +9 -9
- package/dist/{PageSingle-PWET5BZI.js.map → PageSingle-5BBSPDMH.js.map} +1 -1
- package/dist/{ProductDetails-34NBQEOU.js → ProductDetails-E7OGZJ3G.js} +10 -10
- package/dist/{ProductDetails-34NBQEOU.js.map → ProductDetails-E7OGZJ3G.js.map} +1 -1
- package/dist/{ProfilePage-ZSDAABMO.js → ProfilePage-KKHEJCAF.js} +30 -30
- package/dist/{ProfilePage-ZSDAABMO.js.map → ProfilePage-KKHEJCAF.js.map} +1 -1
- package/dist/{ReviewsPage-S26YWYSA.js → ReviewsPage-364PK4XM.js} +5 -5
- package/dist/{ReviewsPage-S26YWYSA.js.map → ReviewsPage-364PK4XM.js.map} +1 -1
- package/dist/{SeoCartWidget-MJM2BULX.js → SeoCartWidget-GLTV6C4J.js} +30 -30
- package/dist/{SeoCartWidget-MJM2BULX.js.map → SeoCartWidget-GLTV6C4J.js.map} +1 -1
- package/dist/{SettingsPage-SCOXVETM.js → SettingsPage-A2H4WKQ3.js} +30 -30
- package/dist/{SettingsPage-SCOXVETM.js.map → SettingsPage-A2H4WKQ3.js.map} +1 -1
- package/dist/StoreClosedNotification-QAMEUZQD.js +63 -0
- package/dist/{StoreClosedNotification-BWLM3TSR.js.map → StoreClosedNotification-QAMEUZQD.js.map} +1 -1
- package/dist/{TestimonialsPage-NQNLCF2Y.js → TestimonialsPage-2UH35ZXG.js} +9 -9
- package/dist/{TestimonialsPage-NQNLCF2Y.js.map → TestimonialsPage-2UH35ZXG.js.map} +1 -1
- package/dist/{ThankYouPage-VCTEVJH4.js → ThankYouPage-2LUGL65U.js} +30 -30
- package/dist/{ThankYouPage-VCTEVJH4.js.map → ThankYouPage-2LUGL65U.js.map} +1 -1
- package/dist/{WalletPage-G5VWQOUU.js → WalletPage-WNZP37OM.js} +31 -31
- package/dist/{WalletPage-G5VWQOUU.js.map → WalletPage-WNZP37OM.js.map} +1 -1
- package/dist/{WebMcpTools-WGNAGUC5.js → WebMcpTools-F663L3R7.js} +10 -10
- package/dist/{WebMcpTools-WGNAGUC5.js.map → WebMcpTools-F663L3R7.js.map} +1 -1
- package/dist/{WishlistPage-WHGH7DND.js → WishlistPage-4G4B5ZE5.js} +32 -32
- package/dist/{WishlistPage-WHGH7DND.js.map → WishlistPage-4G4B5ZE5.js.map} +1 -1
- package/dist/api/advertisement.js +5 -5
- package/dist/api/apps.js +5 -5
- package/dist/api/blog.js +7 -7
- package/dist/api/brands.js +7 -7
- package/dist/api/cart.js +7 -7
- package/dist/api/category.js +7 -7
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +4 -4
- package/dist/api/custom-url.js +5 -5
- package/dist/api/home.js +5 -5
- package/dist/api/loyalty.js +7 -7
- package/dist/api/menu.js +5 -5
- package/dist/api/notification.js +5 -5
- package/dist/api/order.js +7 -7
- package/dist/api/page.js +7 -7
- package/dist/api/product.js +7 -7
- package/dist/api/profile.js +4 -4
- package/dist/api/store.js +6 -6
- package/dist/api/translations.js +5 -5
- package/dist/api/user.js +5 -5
- package/dist/api/wallet.js +5 -5
- package/dist/api/wishlist.js +8 -8
- package/dist/{chunk-HDMJAFT3.js → chunk-2AF6PXGC.js} +5 -5
- package/dist/{chunk-HDMJAFT3.js.map → chunk-2AF6PXGC.js.map} +1 -1
- package/dist/{chunk-AGIUKHXV.js → chunk-2I4H5BQU.js} +4 -4
- package/dist/{chunk-AGIUKHXV.js.map → chunk-2I4H5BQU.js.map} +1 -1
- package/dist/{chunk-CFEWWFEN.js → chunk-2NT6SBRT.js} +3 -3
- package/dist/{chunk-CFEWWFEN.js.map → chunk-2NT6SBRT.js.map} +1 -1
- package/dist/{chunk-566KBAYZ.js → chunk-2QQSSJKZ.js} +32 -30
- package/dist/chunk-2QQSSJKZ.js.map +1 -0
- package/dist/{chunk-AXW67SY7.js → chunk-3GFD7WTJ.js} +3 -3
- package/dist/{chunk-AXW67SY7.js.map → chunk-3GFD7WTJ.js.map} +1 -1
- package/dist/{chunk-4Q3JJMOZ.js → chunk-4DPJCTO3.js} +3 -3
- package/dist/{chunk-4Q3JJMOZ.js.map → chunk-4DPJCTO3.js.map} +1 -1
- package/dist/{chunk-FFN6BITL.js → chunk-4EQ2XUD2.js} +3 -3
- package/dist/{chunk-FFN6BITL.js.map → chunk-4EQ2XUD2.js.map} +1 -1
- package/dist/{chunk-3VNSBUJZ.js → chunk-4MKA22LE.js} +11 -6
- package/dist/chunk-4MKA22LE.js.map +1 -0
- package/dist/{chunk-SULITXPN.js → chunk-4R5DOFG3.js} +7 -7
- package/dist/{chunk-SULITXPN.js.map → chunk-4R5DOFG3.js.map} +1 -1
- package/dist/{chunk-AUXPH2TA.js → chunk-5P477R4M.js} +4 -4
- package/dist/{chunk-AUXPH2TA.js.map → chunk-5P477R4M.js.map} +1 -1
- package/dist/{chunk-KDIG3QCW.js → chunk-6AK5XDNZ.js} +3 -3
- package/dist/{chunk-KDIG3QCW.js.map → chunk-6AK5XDNZ.js.map} +1 -1
- package/dist/{chunk-4YGE3R2I.js → chunk-7JGHOV3X.js} +8 -8
- package/dist/{chunk-4YGE3R2I.js.map → chunk-7JGHOV3X.js.map} +1 -1
- package/dist/{chunk-4RUBZXPF.js → chunk-7JNZQKJ3.js} +3 -3
- package/dist/{chunk-4RUBZXPF.js.map → chunk-7JNZQKJ3.js.map} +1 -1
- package/dist/{chunk-IDFWFDVF.js → chunk-7TAKJT7L.js} +3 -3
- package/dist/{chunk-IDFWFDVF.js.map → chunk-7TAKJT7L.js.map} +1 -1
- package/dist/{chunk-E32SOLND.js → chunk-7WJ5YLUV.js} +8 -8
- package/dist/{chunk-E32SOLND.js.map → chunk-7WJ5YLUV.js.map} +1 -1
- package/dist/{chunk-HPVUYINL.js → chunk-7XSTKJK7.js} +7 -7
- package/dist/{chunk-HPVUYINL.js.map → chunk-7XSTKJK7.js.map} +1 -1
- package/dist/{chunk-OCJ27ZAK.js → chunk-AODCG7WZ.js} +4 -4
- package/dist/{chunk-OCJ27ZAK.js.map → chunk-AODCG7WZ.js.map} +1 -1
- package/dist/{chunk-CKD5JKG3.js → chunk-AWANNFME.js} +6 -6
- package/dist/{chunk-CKD5JKG3.js.map → chunk-AWANNFME.js.map} +1 -1
- package/dist/{chunk-KF3XLB3G.js → chunk-BFSGYXFL.js} +7 -7
- package/dist/{chunk-KF3XLB3G.js.map → chunk-BFSGYXFL.js.map} +1 -1
- package/dist/{chunk-2IXYMLTH.js → chunk-BSJBPL3O.js} +4 -4
- package/dist/{chunk-2IXYMLTH.js.map → chunk-BSJBPL3O.js.map} +1 -1
- package/dist/{chunk-CTPS4ZS6.js → chunk-C7WEJHTK.js} +10 -10
- package/dist/{chunk-CTPS4ZS6.js.map → chunk-C7WEJHTK.js.map} +1 -1
- package/dist/{chunk-B676EPJV.js → chunk-CACGTFUX.js} +4 -4
- package/dist/{chunk-B676EPJV.js.map → chunk-CACGTFUX.js.map} +1 -1
- package/dist/{chunk-N6ULPDDG.js → chunk-DQKUMGEK.js} +7 -7
- package/dist/{chunk-N6ULPDDG.js.map → chunk-DQKUMGEK.js.map} +1 -1
- package/dist/{chunk-TZLEEM7E.js → chunk-E36SKXG2.js} +3 -3
- package/dist/{chunk-TZLEEM7E.js.map → chunk-E36SKXG2.js.map} +1 -1
- package/dist/{chunk-BYMOPN2S.js → chunk-EDCNCBSC.js} +5 -4
- package/dist/chunk-EDCNCBSC.js.map +1 -0
- package/dist/{chunk-BCBA2ZV3.js → chunk-EEI5I5PL.js} +3 -3
- package/dist/{chunk-BCBA2ZV3.js.map → chunk-EEI5I5PL.js.map} +1 -1
- package/dist/{chunk-FFENW3YJ.js → chunk-ENXFWV3Z.js} +4 -4
- package/dist/{chunk-FFENW3YJ.js.map → chunk-ENXFWV3Z.js.map} +1 -1
- package/dist/{chunk-IS3VOJCA.js → chunk-G5VJKMKU.js} +5 -5
- package/dist/{chunk-IS3VOJCA.js.map → chunk-G5VJKMKU.js.map} +1 -1
- package/dist/{chunk-GHKOMS3G.js → chunk-H73VXFYO.js} +3 -3
- package/dist/{chunk-GHKOMS3G.js.map → chunk-H73VXFYO.js.map} +1 -1
- package/dist/{chunk-2RFDWWXH.js → chunk-HJZJTZD6.js} +9 -9
- package/dist/{chunk-2RFDWWXH.js.map → chunk-HJZJTZD6.js.map} +1 -1
- package/dist/{chunk-F6GOQAYU.js → chunk-JCYX7HXB.js} +26 -10
- package/dist/chunk-JCYX7HXB.js.map +1 -0
- package/dist/{chunk-FQI2VU5F.js → chunk-JFAYJBLJ.js} +4 -4
- package/dist/{chunk-FQI2VU5F.js.map → chunk-JFAYJBLJ.js.map} +1 -1
- package/dist/{chunk-SYFXZF6E.js → chunk-KBOBADKK.js} +5 -5
- package/dist/{chunk-SYFXZF6E.js.map → chunk-KBOBADKK.js.map} +1 -1
- package/dist/{chunk-OB5UOBBR.js → chunk-MOF4DY5N.js} +4 -4
- package/dist/{chunk-OB5UOBBR.js.map → chunk-MOF4DY5N.js.map} +1 -1
- package/dist/{chunk-CCK6LWFC.js → chunk-N7SDFCJG.js} +5 -5
- package/dist/{chunk-CCK6LWFC.js.map → chunk-N7SDFCJG.js.map} +1 -1
- package/dist/{chunk-O6P7J6UH.js → chunk-NGA74AJ3.js} +5 -5
- package/dist/{chunk-O6P7J6UH.js.map → chunk-NGA74AJ3.js.map} +1 -1
- package/dist/{chunk-NCFKY53L.js → chunk-NM4KWMCR.js} +5 -5
- package/dist/{chunk-NCFKY53L.js.map → chunk-NM4KWMCR.js.map} +1 -1
- package/dist/{chunk-NG4LXTDV.js → chunk-PCPERWKJ.js} +4 -4
- package/dist/{chunk-NG4LXTDV.js.map → chunk-PCPERWKJ.js.map} +1 -1
- package/dist/{chunk-AWV3WEKH.js → chunk-PLD6KSYE.js} +10 -2
- package/dist/chunk-PLD6KSYE.js.map +1 -0
- package/dist/{chunk-PZ4ARDUK.js → chunk-PPTHMKKL.js} +3 -3
- package/dist/{chunk-PZ4ARDUK.js.map → chunk-PPTHMKKL.js.map} +1 -1
- package/dist/{chunk-KEUMXH2M.js → chunk-QHYIQLJ7.js} +4 -4
- package/dist/{chunk-KEUMXH2M.js.map → chunk-QHYIQLJ7.js.map} +1 -1
- package/dist/{chunk-DESKQPN3.js → chunk-QNWO52KK.js} +5 -5
- package/dist/{chunk-DESKQPN3.js.map → chunk-QNWO52KK.js.map} +1 -1
- package/dist/{chunk-TH3ZNTOU.js → chunk-QT2D7JMW.js} +3 -3
- package/dist/{chunk-TH3ZNTOU.js.map → chunk-QT2D7JMW.js.map} +1 -1
- package/dist/{chunk-GAREXAQZ.js → chunk-RLZUJSEZ.js} +3 -3
- package/dist/{chunk-GAREXAQZ.js.map → chunk-RLZUJSEZ.js.map} +1 -1
- package/dist/{chunk-XWIABNUJ.js → chunk-SF46OQ4Z.js} +3 -3
- package/dist/{chunk-XWIABNUJ.js.map → chunk-SF46OQ4Z.js.map} +1 -1
- package/dist/{chunk-FJ5DPNKV.js → chunk-TARGBVMN.js} +3 -3
- package/dist/{chunk-FJ5DPNKV.js.map → chunk-TARGBVMN.js.map} +1 -1
- package/dist/{chunk-2UQBY2JI.js → chunk-THFF2FSI.js} +3 -3
- package/dist/{chunk-2UQBY2JI.js.map → chunk-THFF2FSI.js.map} +1 -1
- package/dist/{chunk-JHOIRMUZ.js → chunk-TPHLHWCB.js} +4 -4
- package/dist/{chunk-JHOIRMUZ.js.map → chunk-TPHLHWCB.js.map} +1 -1
- package/dist/{chunk-BD3Z5OWG.js → chunk-UBIFYEHW.js} +4 -4
- package/dist/{chunk-BD3Z5OWG.js.map → chunk-UBIFYEHW.js.map} +1 -1
- package/dist/{chunk-XCBGONNP.js → chunk-UTP3UKCB.js} +3 -3
- package/dist/{chunk-XCBGONNP.js.map → chunk-UTP3UKCB.js.map} +1 -1
- package/dist/{chunk-RRRRPHCM.js → chunk-VCPCJ55V.js} +4 -4
- package/dist/{chunk-RRRRPHCM.js.map → chunk-VCPCJ55V.js.map} +1 -1
- package/dist/{chunk-ED5QRB6D.js → chunk-VDTDYLVU.js} +5 -5
- package/dist/{chunk-ED5QRB6D.js.map → chunk-VDTDYLVU.js.map} +1 -1
- package/dist/{chunk-6L27TXQZ.js → chunk-VLL4GO7G.js} +14 -6
- package/dist/chunk-VLL4GO7G.js.map +1 -0
- package/dist/{chunk-I2A2IK4A.js → chunk-VPBV2BQV.js} +3 -3
- package/dist/{chunk-I2A2IK4A.js.map → chunk-VPBV2BQV.js.map} +1 -1
- package/dist/{chunk-SP2RMSEL.js → chunk-VV5MI7CL.js} +4 -4
- package/dist/{chunk-SP2RMSEL.js.map → chunk-VV5MI7CL.js.map} +1 -1
- package/dist/{chunk-V6SWJNAL.js → chunk-VXF7HAHK.js} +19 -19
- package/dist/{chunk-V6SWJNAL.js.map → chunk-VXF7HAHK.js.map} +1 -1
- package/dist/{chunk-4QJXNAAZ.js → chunk-VZ5EMKBD.js} +9 -8
- package/dist/chunk-VZ5EMKBD.js.map +1 -0
- package/dist/{chunk-VZUVEJHL.js → chunk-WACEL34M.js} +4 -4
- package/dist/{chunk-VZUVEJHL.js.map → chunk-WACEL34M.js.map} +1 -1
- package/dist/{chunk-J7LRXZCI.js → chunk-WN573HB3.js} +5 -5
- package/dist/{chunk-J7LRXZCI.js.map → chunk-WN573HB3.js.map} +1 -1
- package/dist/{chunk-5QOFXY4E.js → chunk-XV2KLAYG.js} +5 -5
- package/dist/{chunk-5QOFXY4E.js.map → chunk-XV2KLAYG.js.map} +1 -1
- package/dist/{chunk-NTWKO5UW.js → chunk-YF72DLML.js} +3 -3
- package/dist/{chunk-NTWKO5UW.js.map → chunk-YF72DLML.js.map} +1 -1
- package/dist/{chunk-L2ZEGMRQ.js → chunk-Z3DFIJCE.js} +4 -4
- package/dist/{chunk-L2ZEGMRQ.js.map → chunk-Z3DFIJCE.js.map} +1 -1
- package/dist/{chunk-33FWLJXY.js → chunk-ZH76QNED.js} +3 -3
- package/dist/{chunk-33FWLJXY.js.map → chunk-ZH76QNED.js.map} +1 -1
- package/dist/{chunk-JNMOVCPD.js → chunk-ZMOAJ562.js} +5 -5
- package/dist/{chunk-JNMOVCPD.js.map → chunk-ZMOAJ562.js.map} +1 -1
- package/dist/{chunk-VVNHQ7PM.js → chunk-ZO56PBTD.js} +4 -4
- package/dist/{chunk-VVNHQ7PM.js.map → chunk-ZO56PBTD.js.map} +1 -1
- package/dist/components/cart/index.js +1 -1
- package/dist/components/common/index.js +3 -3
- package/dist/components/drawer/index.js +28 -28
- package/dist/components/home/index.js +33 -33
- package/dist/components/layout/index.js +7 -7
- package/dist/components/product/index.js +30 -30
- package/dist/components/store/index.js +30 -30
- package/dist/components/toast/index.js +5 -5
- package/dist/components/tracking/index.js +10 -10
- package/dist/custom-urls-OV5L65QA.js +17 -0
- package/dist/{custom-urls-PBKPXJJJ.js.map → custom-urls-OV5L65QA.js.map} +1 -1
- package/dist/dev/editor/index.js +3 -3
- package/dist/dev/index.js +3 -3
- package/dist/document-class-VJN4AHON.js +39 -0
- package/dist/{document-class-ATOAYJOT.js.map → document-class-VJN4AHON.js.map} +1 -1
- package/dist/hooks/index.js +28 -28
- package/dist/hooks/useComments.js +4 -4
- package/dist/hooks/useGtm.js +28 -28
- package/dist/hooks/useMoney.js +28 -28
- package/dist/hooks/useProduct.js +4 -4
- package/dist/hooks/useStore.js +28 -28
- package/dist/hooks/useUser.js +6 -6
- package/dist/hooks/useWishlist.js +4 -4
- package/dist/index.js +28 -28
- package/dist/native-app/index.js +4 -4
- package/dist/navigation-DZCTOUGV.js +15 -0
- package/dist/{navigation-OEJAG6MZ.js.map → navigation-DZCTOUGV.js.map} +1 -1
- package/dist/{navigation-UYBDYGHP.js → navigation-LZ6YYSKB.js} +9 -9
- package/dist/{navigation-UYBDYGHP.js.map → navigation-LZ6YYSKB.js.map} +1 -1
- package/dist/{not-found-TDMLTOHR.js → not-found-LM3CWGPG.js} +31 -31
- package/dist/{not-found-TDMLTOHR.js.map → not-found-LM3CWGPG.js.map} +1 -1
- package/dist/providers/LinkProvider.d.ts.map +1 -1
- package/dist/providers/NavigationProvider.d.ts.map +1 -1
- package/dist/providers/TwilightProvider.d.ts.map +1 -1
- package/dist/providers/index.js +28 -28
- package/dist/routes/account/orders.js +9 -9
- package/dist/routes/account.js +18 -18
- package/dist/routes/blog.js +13 -13
- package/dist/routes/brands.js +9 -9
- package/dist/routes/cart.js +37 -37
- package/dist/routes/home.js +34 -34
- package/dist/routes/index.js +13 -13
- package/dist/routes/loyalty.js +10 -10
- package/dist/routes/page.js +9 -9
- package/dist/routes/product-listing.js +38 -38
- package/dist/routes/product.js +37 -37
- package/dist/routes/seo-redirects.js +13 -13
- package/dist/routes/testimonials.js +5 -5
- package/dist/routes/thank-you.js +9 -9
- package/dist/skeleton.js +34 -34
- package/dist/{store-lookup-2SZWBD7K.js → store-lookup-535R3FGU.js} +12 -12
- package/dist/{store-lookup-2SZWBD7K.js.map → store-lookup-535R3FGU.js.map} +1 -1
- package/dist/tanstack/middleware/twilight.d.ts.map +1 -1
- package/dist/tanstack.js +30 -28
- package/dist/tanstack.js.map +1 -1
- package/dist/twilight/context.d.ts +13 -3
- package/dist/twilight/context.d.ts.map +1 -1
- package/dist/utils/baseHead.js +3 -3
- package/dist/utils/cookies.d.ts +49 -7
- package/dist/utils/cookies.d.ts.map +1 -1
- package/dist/utils/index.js +7 -7
- package/dist/utils/runtime-env.d.ts +9 -0
- package/dist/utils/runtime-env.d.ts.map +1 -1
- package/dist/utils/sdk-helpers.d.ts +9 -3
- package/dist/utils/sdk-helpers.d.ts.map +1 -1
- package/dist/utils/theme-version.d.ts +23 -0
- package/dist/utils/theme-version.d.ts.map +1 -1
- package/dist/vite/index.js +5 -5
- package/package.json +1 -1
- package/dist/GoogleTag-FFE6DKJB.js +0 -15
- package/dist/Header-IA52TT5T.js +0 -25
- package/dist/MaintenancePage-SFZN7G27.js +0 -7
- package/dist/MasterLayout-BAS3C6F7.js +0 -62
- package/dist/NoContent-7A7OR2NZ.js +0 -6
- package/dist/StoreClosedNotification-BWLM3TSR.js +0 -63
- package/dist/chunk-3VNSBUJZ.js.map +0 -1
- package/dist/chunk-4QJXNAAZ.js.map +0 -1
- package/dist/chunk-566KBAYZ.js.map +0 -1
- package/dist/chunk-6L27TXQZ.js.map +0 -1
- package/dist/chunk-AWV3WEKH.js.map +0 -1
- package/dist/chunk-BYMOPN2S.js.map +0 -1
- package/dist/chunk-F6GOQAYU.js.map +0 -1
- package/dist/custom-urls-PBKPXJJJ.js +0 -17
- package/dist/document-class-ATOAYJOT.js +0 -39
- package/dist/navigation-OEJAG6MZ.js +0 -15
package/dist/api/custom-url.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { customUrl } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { customUrl } from '../chunk-4DPJCTO3.js';
|
|
2
|
+
import '../chunk-4MKA22LE.js';
|
|
3
3
|
import '../chunk-Z5M4YYWT.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCYX7HXB.js';
|
|
5
|
+
import '../chunk-VLL4GO7G.js';
|
|
6
|
+
import '../chunk-PLD6KSYE.js';
|
|
7
7
|
import '../chunk-T72DAX7R.js';
|
|
8
8
|
import '../chunk-DGUM43GV.js';
|
|
9
9
|
//# sourceMappingURL=custom-url.js.map
|
package/dist/api/home.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { home } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { home } from '../chunk-E36SKXG2.js';
|
|
2
|
+
import '../chunk-4MKA22LE.js';
|
|
3
3
|
import '../chunk-Z5M4YYWT.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCYX7HXB.js';
|
|
5
|
+
import '../chunk-VLL4GO7G.js';
|
|
6
|
+
import '../chunk-PLD6KSYE.js';
|
|
7
7
|
import '../chunk-T72DAX7R.js';
|
|
8
8
|
import '../chunk-DGUM43GV.js';
|
|
9
9
|
//# sourceMappingURL=home.js.map
|
package/dist/api/loyalty.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { loyalty } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { loyalty } from '../chunk-MOF4DY5N.js';
|
|
2
|
+
import '../chunk-VZ5EMKBD.js';
|
|
3
3
|
import '../chunk-OUW6WESU.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-4MKA22LE.js';
|
|
5
5
|
import '../chunk-Z5M4YYWT.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-H73VXFYO.js';
|
|
7
|
+
import '../chunk-JCYX7HXB.js';
|
|
8
|
+
import '../chunk-VLL4GO7G.js';
|
|
9
|
+
import '../chunk-PLD6KSYE.js';
|
|
10
10
|
import '../chunk-T72DAX7R.js';
|
|
11
11
|
import '../chunk-DF6FBKDN.js';
|
|
12
12
|
import '../chunk-DGUM43GV.js';
|
package/dist/api/menu.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { menu } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { menu } from '../chunk-VCPCJ55V.js';
|
|
2
|
+
import '../chunk-4MKA22LE.js';
|
|
3
3
|
import '../chunk-Z5M4YYWT.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCYX7HXB.js';
|
|
5
|
+
import '../chunk-VLL4GO7G.js';
|
|
6
|
+
import '../chunk-PLD6KSYE.js';
|
|
7
7
|
import '../chunk-T72DAX7R.js';
|
|
8
8
|
import '../chunk-DGUM43GV.js';
|
|
9
9
|
//# sourceMappingURL=menu.js.map
|
package/dist/api/notification.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { notification } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { notification } from '../chunk-TARGBVMN.js';
|
|
2
|
+
import '../chunk-4MKA22LE.js';
|
|
3
3
|
import '../chunk-Z5M4YYWT.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCYX7HXB.js';
|
|
5
|
+
import '../chunk-VLL4GO7G.js';
|
|
6
|
+
import '../chunk-PLD6KSYE.js';
|
|
7
7
|
import '../chunk-T72DAX7R.js';
|
|
8
8
|
import '../chunk-DGUM43GV.js';
|
|
9
9
|
//# sourceMappingURL=notification.js.map
|
package/dist/api/order.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { order } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { order } from '../chunk-ZO56PBTD.js';
|
|
2
|
+
import '../chunk-VZ5EMKBD.js';
|
|
3
3
|
import '../chunk-OUW6WESU.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-4MKA22LE.js';
|
|
5
5
|
import '../chunk-Z5M4YYWT.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-H73VXFYO.js';
|
|
7
|
+
import '../chunk-JCYX7HXB.js';
|
|
8
|
+
import '../chunk-VLL4GO7G.js';
|
|
9
|
+
import '../chunk-PLD6KSYE.js';
|
|
10
10
|
import '../chunk-T72DAX7R.js';
|
|
11
11
|
import '../chunk-DF6FBKDN.js';
|
|
12
12
|
import '../chunk-DGUM43GV.js';
|
package/dist/api/page.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { page } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { page } from '../chunk-QHYIQLJ7.js';
|
|
2
|
+
import '../chunk-VZ5EMKBD.js';
|
|
3
3
|
import '../chunk-OUW6WESU.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-4MKA22LE.js';
|
|
5
5
|
import '../chunk-Z5M4YYWT.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-H73VXFYO.js';
|
|
7
|
+
import '../chunk-JCYX7HXB.js';
|
|
8
|
+
import '../chunk-VLL4GO7G.js';
|
|
9
|
+
import '../chunk-PLD6KSYE.js';
|
|
10
10
|
import '../chunk-T72DAX7R.js';
|
|
11
11
|
import '../chunk-DF6FBKDN.js';
|
|
12
12
|
import '../chunk-DGUM43GV.js';
|
package/dist/api/product.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { getProductPreview, isProductPreviewQuery, parseNextPageToken, product, productDetailQueryKey, productPreviewQueryKey, rememberProductPreview, shouldDehydrateQuery } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { getProductPreview, isProductPreviewQuery, parseNextPageToken, product, productDetailQueryKey, productPreviewQueryKey, rememberProductPreview, shouldDehydrateQuery } from '../chunk-NGA74AJ3.js';
|
|
2
|
+
import '../chunk-VZ5EMKBD.js';
|
|
3
3
|
import '../chunk-OUW6WESU.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-4MKA22LE.js';
|
|
5
5
|
import '../chunk-Z5M4YYWT.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-H73VXFYO.js';
|
|
7
|
+
import '../chunk-JCYX7HXB.js';
|
|
8
|
+
import '../chunk-VLL4GO7G.js';
|
|
9
|
+
import '../chunk-PLD6KSYE.js';
|
|
10
10
|
import '../chunk-T72DAX7R.js';
|
|
11
11
|
import '../chunk-DF6FBKDN.js';
|
|
12
12
|
import '../chunk-DGUM43GV.js';
|
package/dist/api/profile.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { api } from '../chunk-
|
|
1
|
+
import { api } from '../chunk-4MKA22LE.js';
|
|
2
2
|
import '../chunk-Z5M4YYWT.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-JCYX7HXB.js';
|
|
4
|
+
import '../chunk-VLL4GO7G.js';
|
|
5
|
+
import '../chunk-PLD6KSYE.js';
|
|
6
6
|
import '../chunk-T72DAX7R.js';
|
|
7
7
|
import '../chunk-DGUM43GV.js';
|
|
8
8
|
|
package/dist/api/store.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { store } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { store } from '../chunk-4R5DOFG3.js';
|
|
2
|
+
import '../chunk-4EQ2XUD2.js';
|
|
3
|
+
import '../chunk-4MKA22LE.js';
|
|
4
4
|
import '../chunk-Z5M4YYWT.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
export { resolveStoreIdentifier } from '../chunk-
|
|
7
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-JCYX7HXB.js';
|
|
6
|
+
export { resolveStoreIdentifier } from '../chunk-VLL4GO7G.js';
|
|
7
|
+
import '../chunk-PLD6KSYE.js';
|
|
8
8
|
import '../chunk-T72DAX7R.js';
|
|
9
9
|
import '../chunk-DGUM43GV.js';
|
|
10
10
|
//# sourceMappingURL=store.js.map
|
package/dist/api/translations.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { commonTranslationsPath, storeTranslationsPath, translations } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { commonTranslationsPath, storeTranslationsPath, translations } from '../chunk-PCPERWKJ.js';
|
|
2
|
+
import '../chunk-4MKA22LE.js';
|
|
3
3
|
import '../chunk-Z5M4YYWT.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCYX7HXB.js';
|
|
5
|
+
import '../chunk-VLL4GO7G.js';
|
|
6
|
+
import '../chunk-PLD6KSYE.js';
|
|
7
7
|
import '../chunk-T72DAX7R.js';
|
|
8
8
|
import '../chunk-DGUM43GV.js';
|
|
9
9
|
//# sourceMappingURL=translations.js.map
|
package/dist/api/user.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { user } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { user } from '../chunk-THFF2FSI.js';
|
|
2
|
+
import '../chunk-4MKA22LE.js';
|
|
3
3
|
import '../chunk-Z5M4YYWT.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCYX7HXB.js';
|
|
5
|
+
import '../chunk-VLL4GO7G.js';
|
|
6
|
+
import '../chunk-PLD6KSYE.js';
|
|
7
7
|
import '../chunk-T72DAX7R.js';
|
|
8
8
|
import '../chunk-DGUM43GV.js';
|
|
9
9
|
//# sourceMappingURL=user.js.map
|
package/dist/api/wallet.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { wallet } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { wallet } from '../chunk-2NT6SBRT.js';
|
|
2
|
+
import '../chunk-4MKA22LE.js';
|
|
3
3
|
import '../chunk-Z5M4YYWT.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCYX7HXB.js';
|
|
5
|
+
import '../chunk-VLL4GO7G.js';
|
|
6
|
+
import '../chunk-PLD6KSYE.js';
|
|
7
7
|
import '../chunk-T72DAX7R.js';
|
|
8
8
|
import '../chunk-DGUM43GV.js';
|
|
9
9
|
//# sourceMappingURL=wallet.js.map
|
package/dist/api/wishlist.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { wishlist } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { wishlist } from '../chunk-CACGTFUX.js';
|
|
2
|
+
import '../chunk-NGA74AJ3.js';
|
|
3
|
+
import '../chunk-VZ5EMKBD.js';
|
|
4
4
|
import '../chunk-OUW6WESU.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-4MKA22LE.js';
|
|
6
6
|
import '../chunk-Z5M4YYWT.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-H73VXFYO.js';
|
|
8
|
+
import '../chunk-JCYX7HXB.js';
|
|
9
|
+
import '../chunk-VLL4GO7G.js';
|
|
10
|
+
import '../chunk-PLD6KSYE.js';
|
|
11
11
|
import '../chunk-T72DAX7R.js';
|
|
12
12
|
import '../chunk-DF6FBKDN.js';
|
|
13
13
|
import '../chunk-DGUM43GV.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { customUrl } from './chunk-
|
|
2
|
-
import { store } from './chunk-
|
|
3
|
-
import { redirect } from './chunk-
|
|
1
|
+
import { customUrl } from './chunk-4DPJCTO3.js';
|
|
2
|
+
import { store } from './chunk-4R5DOFG3.js';
|
|
3
|
+
import { redirect } from './chunk-VZ5EMKBD.js';
|
|
4
4
|
import { isLocale } from './chunk-T72DAX7R.js';
|
|
5
5
|
|
|
6
6
|
// src/routes/custom-urls.ts
|
|
@@ -87,5 +87,5 @@ async function customUrlRedirect(pathname, search, options) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
export { customUrlKey, customUrlPagePath, customUrlRedirect, storePathOf, withAddressQuery };
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-2AF6PXGC.js.map
|
|
91
|
+
//# sourceMappingURL=chunk-2AF6PXGC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/routes/custom-urls.ts"],"names":[],"mappings":";;;;;;AAiCO,SAAS,aAAa,QAAA,EAA2D;AACtF,EAAA,MAAM,WAAW,QAAA,CAAS,KAAA,CAAM,GAAG,CAAA,CAAE,OAAO,OAAO,CAAA;AACnD,EAAA,MAAM,MAAA,GAAS,SAAS,QAAA,CAAS,CAAC,CAAC,CAAA,GAAI,QAAA,CAAS,OAAM,GAAI,MAAA;AAC1D,EAAA,IAAI,CAAC,QAAA,CAAS,MAAA,EAAQ,OAAO,IAAA;AAC7B,EAAA,OAAO,EAAE,GAAA,EAAK,QAAA,CAAS,IAAA,CAAK,GAAG,GAAG,MAAA,EA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CAAO,GAAG,CAAA;AAC/B,EAAA,IAAI,IAAA,EAAM;AACR,IAAA,MAAM,QAAA,CAAS,gBAAA,CAAiB,IAAA,EAAM,MAAM,CAAA,EAAG,EAAE,UAAA,EAAY,GAAA,EAAK,cAAA,EAAgB,IAAA,EAAM,CAAA;AAAA,EAC1F;AACF","file":"chunk-HDMJAFT3.js","sourcesContent":["/**\n * @fileoverview A merchant's custom URLs (Dashboard → SEO → custom links) on a React storefront.\n *\n * Twig answers them in the Store's catch-all, its last fallback: after every route, and after the\n * product lookups by short code (`/{code}`) and by SKU (`/{sku}-{name}`). A React theme has no\n * catch-all, so the locale layout's `beforeLoad` asks the API (Store-Module#1798, the catch-all's\n * own lookup) at the same two points:\n * - an address no page answers (`twigUrlRedirect`, after the short code);\n * - a SKU-link address whose SKU names no product (`resolveProductKeyPage`).\n *\n * It asks only on a store that lists `custom-urls` in `store.features` (the plan has it, and the\n * store has an active one), so an address no page answers costs a store without one nothing. The answer is a 302, as Twig's, because the\n * merchant can point the URL elsewhere at any time.\n */\nimport type { QueryClient } from '@tanstack/react-query';\nimport { customUrl, type CustomUrlTarget } from '../api/custom-url';\nimport { store } from '../api/store';\nimport type { StoreContext } from '../api/store';\nimport { redirect } from '../providers/NavigationProvider';\nimport { isLocale } from '../providers/locale-constants';\n\nexport interface CustomUrlRedirectOptions {\n /** The request's query client: the settings are in it already, and a lookup is shared. */\n queryClient: QueryClient;\n /** The language segment an item's page takes, given the one the address had (the locale layout's rule). */\n targetLocale?: (addressLocale: string | undefined) => Promise<string | undefined>;\n}\n\n/**\n * The path a custom URL is saved under, for an address the router hands over (the store base\n * already off): without a language segment, which the Store strips before its catch-all, and\n * without the slashes around it. `null` for a home page.\n */\nexport function customUrlKey(pathname: string): { key: string; locale?: string } | null {\n const segments = pathname.split('/').filter(Boolean);\n const locale = isLocale(segments[0]) ? segments.shift() : undefined;\n if (!segments.length) return null;\n return { key: segments.join('/'), locale };\n}\n\n/**\n * The path an item's URL has under the store root, without its language segment:\n * `https://salla.sa/dev-x/en/shoes/p1` with store URL `https://salla.sa/dev-x/` is `/shoes/p1`.\n * `null` when the URL is not on the store (another host, or outside the store's segment).\n */\nexport function storePathOf(url: string, storeUrl: string | undefined): string | null {\n let item: URL;\n let root: URL;\n try {\n item = new URL(url);\n root = new URL(storeUrl ?? '');\n } catch {\n return null;\n }\n if (item.host !== root.host) return null;\n const rootPath = root.pathname.replace(/\\/+$/, '');\n if (rootPath && item.pathname !== rootPath && !item.pathname.startsWith(`${rootPath}/`)) {\n return null;\n }\n const segments = item.pathname.slice(rootPath.length).split('/').filter(Boolean);\n if (isLocale(segments[0])) segments.shift();\n return `/${segments.join('/')}`;\n}\n\n/** Twig's brand address, `/{slug}/brand-{id}`: the engine's brand page is `/brands/{id}`. */\nconst TWIG_BRAND_PATH = /^\\/[^/]+\\/brand-(\\d+)$/;\n\n/**\n * The engine's page for the item a custom URL names, under the store root and with no language,\n * or `null` for a `custom` row or an item URL that is not on the store. The item's own address\n * is used: the engine serves Twig's product, category, tag and page addresses (and redirects a\n * hash URL itself), and only a brand is sent straight to its page, a hop shorter.\n */\nexport function customUrlPagePath(\n target: CustomUrlTarget,\n storeUrl: string | undefined\n): string | null {\n if (target.type === 'custom') return null;\n const path = storePathOf(target.url, storeUrl);\n if (!path) return null;\n const brand = TWIG_BRAND_PATH.exec(path);\n return brand ? `/brands/${brand[1]}` : path;\n}\n\n/**\n * `target` with the address's query string on it, as the Store's catch-all keeps it (an ad's\n * `utm_*`): after the target's own query, and before its fragment.\n */\nexport function withAddressQuery(target: string, search: string): string {\n const query = search.replace(/^\\?/, '');\n if (!query) return target;\n const hashAt = target.indexOf('#');\n const [head, fragment] =\n hashAt < 0 ? [target, ''] : [target.slice(0, hashAt), target.slice(hashAt)];\n return `${head}${head.includes('?') ? '&' : '?'}${query}${fragment}`;\n}\n\n/** A URL when it is http(s): the Dashboard asks for a URL, and the router refuses any other scheme. */\nfunction httpUrl(url: string): string | null {\n try {\n const { protocol } = new URL(url);\n return protocol === 'http:' || protocol === 'https:' ? url : null;\n } catch {\n return null;\n }\n}\n\n/** The settings, when they list `custom-urls` in the store's features; else `null`. */\nasync function settingsWithCustomUrls(queryClient: QueryClient): Promise<StoreContext | null> {\n try {\n const settings = await queryClient.ensureQueryData(store.queries.settings());\n return settings?.store?.features?.includes('custom-urls') ? settings : null;\n } catch {\n return null;\n }\n}\n\n/**\n * The custom URL saved for `key`, or `undefined`. Any failure counts as none: an address no page\n * answers is also every scanner's, and an API error must leave it the 404 it was, not a 500.\n */\nasync function lookup(key: string, queryClient: QueryClient): Promise<CustomUrlTarget | undefined> {\n try {\n return await queryClient.ensureQueryData(customUrl.queries.resolve(key));\n } catch {\n return undefined;\n }\n}\n\n/**\n * Sends the visitor where the custom URL saved for `pathname` leads, with the address's query, by\n * a 302; returns when there is none, and the caller answers as it would have. An item on the store\n * is reached in one hop, in the language the locale layout would give it. A `custom` row's URL,\n * or an item URL on another site, is a full page load.\n */\nexport async function customUrlRedirect(\n pathname: string,\n search: string,\n options: CustomUrlRedirectOptions\n): Promise<void> {\n const address = customUrlKey(pathname);\n if (!address) return;\n const settings = await settingsWithCustomUrls(options.queryClient);\n if (!settings) return;\n const target = await lookup(address.key, options.queryClient);\n if (!target) return;\n\n const path = customUrlPagePath(target, settings.store?.url);\n if (path) {\n const locale = options.targetLocale\n ? await options.targetLocale(address.locale)\n : address.locale;\n throw redirect(withAddressQuery(`${locale ? `/${locale}` : ''}${path}`, search), {\n statusCode: 302,\n });\n }\n const href = httpUrl(target.url);\n if (href) {\n throw redirect(withAddressQuery(href, search), { statusCode: 302, reloadDocument: true });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/routes/custom-urls.ts"],"names":[],"mappings":";;;;;;AAiCO,SAAS,aAAa,QAAA,EAA2D;AACtF,EAAA,MAAM,WAAW,QAAA,CAAS,KAAA,CAAM,GAAG,CAAA,CAAE,OAAO,OAAO,CAAA;AACnD,EAAA,MAAM,MAAA,GAAS,SAAS,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,GAAS,CAAA,CAAA,EAAI,MAAM,CAAA,CAAA,GAAK,EAAE,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,MAAM,CAAA,EAAG;AAAA,MAC/E,UAAA,EAAY;AAAA,KACb,CAAA;AAAA,EACH;AACA,EAAA,MAAM,IAAA,GAAO,OAAA,CAAQ,MAAA,CAAO,GAAG,CAAA;AAC/B,EAAA,IAAI,IAAA,EAAM;AACR,IAAA,MAAM,QAAA,CAAS,gBAAA,CAAiB,IAAA,EAAM,MAAM,CAAA,EAAG,EAAE,UAAA,EAAY,GAAA,EAAK,cAAA,EAAgB,IAAA,EAAM,CAAA;AAAA,EAC1F;AACF","file":"chunk-2AF6PXGC.js","sourcesContent":["/**\n * @fileoverview A merchant's custom URLs (Dashboard → SEO → custom links) on a React storefront.\n *\n * Twig answers them in the Store's catch-all, its last fallback: after every route, and after the\n * product lookups by short code (`/{code}`) and by SKU (`/{sku}-{name}`). A React theme has no\n * catch-all, so the locale layout's `beforeLoad` asks the API (Store-Module#1798, the catch-all's\n * own lookup) at the same two points:\n * - an address no page answers (`twigUrlRedirect`, after the short code);\n * - a SKU-link address whose SKU names no product (`resolveProductKeyPage`).\n *\n * It asks only on a store that lists `custom-urls` in `store.features` (the plan has it, and the\n * store has an active one), so an address no page answers costs a store without one nothing. The answer is a 302, as Twig's, because the\n * merchant can point the URL elsewhere at any time.\n */\nimport type { QueryClient } from '@tanstack/react-query';\nimport { customUrl, type CustomUrlTarget } from '../api/custom-url';\nimport { store } from '../api/store';\nimport type { StoreContext } from '../api/store';\nimport { redirect } from '../providers/NavigationProvider';\nimport { isLocale } from '../providers/locale-constants';\n\nexport interface CustomUrlRedirectOptions {\n /** The request's query client: the settings are in it already, and a lookup is shared. */\n queryClient: QueryClient;\n /** The language segment an item's page takes, given the one the address had (the locale layout's rule). */\n targetLocale?: (addressLocale: string | undefined) => Promise<string | undefined>;\n}\n\n/**\n * The path a custom URL is saved under, for an address the router hands over (the store base\n * already off): without a language segment, which the Store strips before its catch-all, and\n * without the slashes around it. `null` for a home page.\n */\nexport function customUrlKey(pathname: string): { key: string; locale?: string } | null {\n const segments = pathname.split('/').filter(Boolean);\n const locale = isLocale(segments[0]) ? segments.shift() : undefined;\n if (!segments.length) return null;\n return { key: segments.join('/'), locale };\n}\n\n/**\n * The path an item's URL has under the store root, without its language segment:\n * `https://salla.sa/dev-x/en/shoes/p1` with store URL `https://salla.sa/dev-x/` is `/shoes/p1`.\n * `null` when the URL is not on the store (another host, or outside the store's segment).\n */\nexport function storePathOf(url: string, storeUrl: string | undefined): string | null {\n let item: URL;\n let root: URL;\n try {\n item = new URL(url);\n root = new URL(storeUrl ?? '');\n } catch {\n return null;\n }\n if (item.host !== root.host) return null;\n const rootPath = root.pathname.replace(/\\/+$/, '');\n if (rootPath && item.pathname !== rootPath && !item.pathname.startsWith(`${rootPath}/`)) {\n return null;\n }\n const segments = item.pathname.slice(rootPath.length).split('/').filter(Boolean);\n if (isLocale(segments[0])) segments.shift();\n return `/${segments.join('/')}`;\n}\n\n/** Twig's brand address, `/{slug}/brand-{id}`: the engine's brand page is `/brands/{id}`. */\nconst TWIG_BRAND_PATH = /^\\/[^/]+\\/brand-(\\d+)$/;\n\n/**\n * The engine's page for the item a custom URL names, under the store root and with no language,\n * or `null` for a `custom` row or an item URL that is not on the store. The item's own address\n * is used: the engine serves Twig's product, category, tag and page addresses (and redirects a\n * hash URL itself), and only a brand is sent straight to its page, a hop shorter.\n */\nexport function customUrlPagePath(\n target: CustomUrlTarget,\n storeUrl: string | undefined\n): string | null {\n if (target.type === 'custom') return null;\n const path = storePathOf(target.url, storeUrl);\n if (!path) return null;\n const brand = TWIG_BRAND_PATH.exec(path);\n return brand ? `/brands/${brand[1]}` : path;\n}\n\n/**\n * `target` with the address's query string on it, as the Store's catch-all keeps it (an ad's\n * `utm_*`): after the target's own query, and before its fragment.\n */\nexport function withAddressQuery(target: string, search: string): string {\n const query = search.replace(/^\\?/, '');\n if (!query) return target;\n const hashAt = target.indexOf('#');\n const [head, fragment] =\n hashAt < 0 ? [target, ''] : [target.slice(0, hashAt), target.slice(hashAt)];\n return `${head}${head.includes('?') ? '&' : '?'}${query}${fragment}`;\n}\n\n/** A URL when it is http(s): the Dashboard asks for a URL, and the router refuses any other scheme. */\nfunction httpUrl(url: string): string | null {\n try {\n const { protocol } = new URL(url);\n return protocol === 'http:' || protocol === 'https:' ? url : null;\n } catch {\n return null;\n }\n}\n\n/** The settings, when they list `custom-urls` in the store's features; else `null`. */\nasync function settingsWithCustomUrls(queryClient: QueryClient): Promise<StoreContext | null> {\n try {\n const settings = await queryClient.ensureQueryData(store.queries.settings());\n return settings?.store?.features?.includes('custom-urls') ? settings : null;\n } catch {\n return null;\n }\n}\n\n/**\n * The custom URL saved for `key`, or `undefined`. Any failure counts as none: an address no page\n * answers is also every scanner's, and an API error must leave it the 404 it was, not a 500.\n */\nasync function lookup(key: string, queryClient: QueryClient): Promise<CustomUrlTarget | undefined> {\n try {\n return await queryClient.ensureQueryData(customUrl.queries.resolve(key));\n } catch {\n return undefined;\n }\n}\n\n/**\n * Sends the visitor where the custom URL saved for `pathname` leads, with the address's query, by\n * a 302; returns when there is none, and the caller answers as it would have. An item on the store\n * is reached in one hop, in the language the locale layout would give it. A `custom` row's URL,\n * or an item URL on another site, is a full page load.\n */\nexport async function customUrlRedirect(\n pathname: string,\n search: string,\n options: CustomUrlRedirectOptions\n): Promise<void> {\n const address = customUrlKey(pathname);\n if (!address) return;\n const settings = await settingsWithCustomUrls(options.queryClient);\n if (!settings) return;\n const target = await lookup(address.key, options.queryClient);\n if (!target) return;\n\n const path = customUrlPagePath(target, settings.store?.url);\n if (path) {\n const locale = options.targetLocale\n ? await options.targetLocale(address.locale)\n : address.locale;\n throw redirect(withAddressQuery(`${locale ? `/${locale}` : ''}${path}`, search), {\n statusCode: 302,\n });\n }\n const href = httpUrl(target.url);\n if (href) {\n throw redirect(withAddressQuery(href, search), { statusCode: 302, reloadDocument: true });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useOpeningHours } from './chunk-
|
|
2
|
-
import { useIsProduct } from './chunk-
|
|
1
|
+
import { useOpeningHours } from './chunk-2QQSSJKZ.js';
|
|
2
|
+
import { useIsProduct } from './chunk-VZ5EMKBD.js';
|
|
3
3
|
import { useTranslation } from './chunk-TYNZ5B2B.js';
|
|
4
4
|
import { useTwilight } from './chunk-DF6FBKDN.js';
|
|
5
5
|
import { useState } from 'react';
|
|
@@ -54,5 +54,5 @@ function StoreClosedNotification(_props) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export { StoreClosedNotification };
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-2I4H5BQU.js.map
|
|
58
|
+
//# sourceMappingURL=chunk-2I4H5BQU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/store/StoreClosedNotification.tsx"],"names":[],"mappings":";;;;;;;AAsBO,SAAS,wBAAwB,MAAA,EAAsC;AAC5E,EAAA,MAAM,EAAE,KAAA,EAAM,GAAI,WAAA,EAAY;AAC9B,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,cAAA,EAAe;AAC7B,EAAA,MAAM,EAAE,QAAQ,SAAA,EAAW,iBAAA,KAAsB,eAAA,CAAgB,KAAA,CAAM,UAAU,aAAa,CAAA;AAC9F,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,SAAS,KAAK,CAAA;AAGhD,EAAA,MAAM,gBAAgB,YAAA,EAAa;AAGnC,EAAA,IAAI,CAAC,aAAA,IAAiB,CAAC,aAAa,MAAA,IAAU,SAAA,IAAa,CAAC,iBAAA,EAAmB;AAC7E,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAM,WAAA,GAAc,CAAC,CAAA,KAAwB;AAC3C,IAAA,CAAA,CAAE,cAAA,EAAe;AACjB,IAAA,YAA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Q,cAAA,EAAgB,MAAA,EAAO;AAAA,YAE/E,QAAA,kBAAA,GAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAU,cAAA,EAAe;AAAA;AAAA,SAC9B;AAAA,wBACA,GAAA,CAAC,GAAA,EAAA,EAAE,KAAA,EAAO,EAAE,MAAA,EAAQ,CAAA,EAAG,SAAA,EAAW,QAAA,EAAU,IAAA,EAAM,CAAA,EAAE,EACjD,QAAA,EAAA,CAAA,CAAE,2BAAA,EAA6B;AAAA,UAC9B,YAAA,EAAc,qPAAkD,iBAAiB,CAAA,CAAA,CAAA;AAAA,UACjF,QAAA,EAAU;AAAA,SACX,CAAA,EACH;AAAA;AAAA;AAAA,GACF;AAEJ","file":"chunk-2I4H5BQU.js","sourcesContent":["import { useState } from 'react';\nimport { useIsProduct } from '../../providers/NavigationProvider';\nimport { useTwilight } from '../../providers/TwilightProvider';\nimport { useOpeningHours } from '../../hooks/useOpeningHours';\nimport { useTranslation } from '../../providers/I18nProvider';\n\nexport interface StoreClosedNotificationProps {\n /** Whether to show the notification (defaults to true when store is closed on product page) */\n show?: boolean;\n}\n\n/**\n * StoreClosedNotification - Shows a notification bar when the store is closed.\n *\n * Mirrors PHP ReceivingOrdersTimesWidget:\n * - Only shows on product pages\n * - Only shows when store is closed for receiving orders\n * - Displays when the store will open next\n * - Has a close button to dismiss\n *\n * Injected via hook registry at body:start.\n */\nexport function StoreClosedNotification(_props: StoreClosedNotificationProps) {\n const { store } = useTwilight();\n const { t } = useTranslation();\n const { isOpen, isEnabled, nextOpenFormatted } = useOpeningHours(store.settings?.opening_hours);\n const [dismissed, setDismissed] = useState(false);\n\n // Check if we're on a product page\n const isProductPage = useIsProduct();\n\n // Conditions: product page, opening hours enabled, store closed, not dismissed\n if (!isProductPage || !isEnabled || isOpen || dismissed || !nextOpenFormatted) {\n return null;\n }\n\n const handleClose = (e: React.MouseEvent) => {\n e.preventDefault();\n setDismissed(true);\n };\n\n return (\n <div\n className=\"store-notify\"\n id=\"store-closed-notification\"\n data-testid=\"store-closed-notification\"\n style={{\n backgroundColor: '#d63031',\n color: '#fff',\n padding: '10px 15px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n }}\n >\n <a\n href=\"#\"\n id=\"notify-close\"\n onClick={handleClose}\n style={{ position: 'absolute', left: 15, color: '#fff', textDecoration: 'none' }}\n >\n <i className=\"sicon-cancel\" />\n </a>\n <p style={{ margin: 0, textAlign: 'center', flex: 1 }}>\n {t('store.closed_notification', {\n defaultValue: `المتجر حاليا مغلق لاستقبال الطلبات وسيتم فتحه (${nextOpenFormatted})`,\n nextOpen: nextOpenFormatted,\n })}\n </p>\n </div>\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { api } from './chunk-
|
|
1
|
+
import { api } from './chunk-4MKA22LE.js';
|
|
2
2
|
|
|
3
3
|
// src/api/wallet.ts
|
|
4
4
|
var wallet = {
|
|
@@ -20,5 +20,5 @@ var wallet = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { wallet };
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-2NT6SBRT.js.map
|
|
24
|
+
//# sourceMappingURL=chunk-2NT6SBRT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api/wallet.ts"],"names":[],"mappings":";;;AAgCO,IAAM,MAAA,GAAS;AAAA,EACpB,IAAA,EAAM,OAAO,MAAA,GAA2B,EAAC,KAAiC;AACxE,IAAA,MAAM,EAAE,IAAA,GAAO,CAAA,EAAG,OAAA,GAAU,EAAA,EAAI,QAAO,GAAI,MAAA;AAE3C,IAAA,MAAM,YAAA,GAAe,IAAI,eAAA,EAAgB;AACzC,IAAA,YAAA,CAAa,GAAA,CAAI,MAAA,EAAQ,MAAA,CAAO,IAAI,CAAC,CAAA;AACrC,IAAA,YAAA,CAAa,GAAA,CAA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e,SAAS,IAAA,CAAK,YAAA;AAEnC,IAAA,OAAO;AAAA,MACL,KAAA,EAAO,YAAA,CAAa,IAAA,IAAQ,EAAC;AAAA,MAC7B,MAAM,YAAA,CAAa,aAAA;AAAA,MACnB,OAAA,EAAS,SAAS,IAAA,CAAK;AAAA,KACzB;AAAA,EACF;AACF","file":"chunk-2NT6SBRT.js","sourcesContent":["import { api } from './client';\n\nexport interface TransactionItem {\n id: number;\n order_id: number;\n transaction_type: string;\n action_type: string;\n type: string;\n title: string;\n description: string;\n amount: number;\n created_at: number;\n expired_at: number;\n}\n\nexport interface WalletListParams {\n page?: number;\n perPage?: number;\n signal?: AbortSignal;\n}\n\nexport interface WalletListResponse {\n data: TransactionItem[];\n next_page_url: string | null;\n}\n\nexport interface WalletListResult {\n items: TransactionItem[];\n next: string | null;\n balance: number;\n}\n\nexport const wallet = {\n list: async (params: WalletListParams = {}): Promise<WalletListResult> => {\n const { page = 1, perPage = 10, signal } = params;\n\n const searchParams = new URLSearchParams();\n searchParams.set('page', String(page));\n searchParams.set('per_page', String(perPage));\n\n const options: Record<string, unknown> = {};\n if (signal) options.signal = signal;\n\n const response = await api\n .get(`balance/wallet?${searchParams.toString()}`, options as any)\n .json<{ data: { transactions: WalletListResponse; balance: number } }>();\n\n const transactions = response.data.transactions;\n\n return {\n items: transactions.data ?? [],\n next: transactions.next_page_url,\n balance: response.data.balance,\n };\n },\n};\n"]}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Footer } from './chunk-
|
|
1
|
+
import { Footer } from './chunk-QT2D7JMW.js';
|
|
2
2
|
import { getModelContext } from './chunk-Q77J3D2W.js';
|
|
3
|
-
import { Header } from './chunk-
|
|
3
|
+
import { Header } from './chunk-AWANNFME.js';
|
|
4
4
|
import { editorFrame, previewTheme, postToEditor, FRAME_LOADED_ACTION } from './chunk-YL6X3ZMG.js';
|
|
5
|
-
import { useDevSettingsOverrides, useDevReportSettingsFetchedAt } from './chunk-
|
|
6
|
-
import { resolveTwilightSdkUrl, TICKETING_SCRIPT_URL } from './chunk-
|
|
5
|
+
import { useDevSettingsOverrides, useDevReportSettingsFetchedAt } from './chunk-ENXFWV3Z.js';
|
|
6
|
+
import { resolveTwilightSdkUrl, TICKETING_SCRIPT_URL } from './chunk-7WJ5YLUV.js';
|
|
7
7
|
import { color } from './chunk-VVZNW5CB.js';
|
|
8
|
-
import { applyThemeHookSlots, installAppScope } from './chunk-
|
|
9
|
-
import { apps } from './chunk-
|
|
10
|
-
import { withOwnerMaintenanceButton, withoutMaintenanceOnPreviewHost } from './chunk-
|
|
11
|
-
import { useLocation, useIsHome, NavigationInterceptor } from './chunk-
|
|
12
|
-
import { useUser } from './chunk-
|
|
8
|
+
import { applyThemeHookSlots, installAppScope } from './chunk-VPBV2BQV.js';
|
|
9
|
+
import { apps } from './chunk-RLZUJSEZ.js';
|
|
10
|
+
import { withOwnerMaintenanceButton, withoutMaintenanceOnPreviewHost } from './chunk-4EQ2XUD2.js';
|
|
11
|
+
import { useLocation, useIsHome, NavigationInterceptor } from './chunk-VZ5EMKBD.js';
|
|
12
|
+
import { useUser } from './chunk-BSJBPL3O.js';
|
|
13
13
|
import { DocumentClassProvider, useDocumentClass } from './chunk-JWXJPJBO.js';
|
|
14
14
|
import { WidgetHead } from './chunk-V2ZDTY6H.js';
|
|
15
15
|
import { HookSlot } from './chunk-5XDPAKF5.js';
|
|
16
16
|
import { hookRegistry } from './chunk-GCPEMNSU.js';
|
|
17
|
-
import { getActiveCurrency, ENGINE_VERSION } from './chunk-
|
|
17
|
+
import { getActiveCurrency, ENGINE_VERSION } from './chunk-4MKA22LE.js';
|
|
18
18
|
import { useTranslation, I18nProvider } from './chunk-TYNZ5B2B.js';
|
|
19
|
-
import { Toaster } from './chunk-
|
|
20
|
-
import { isNativeApp } from './chunk-
|
|
21
|
-
import { whenSallaLoaded, whenSallaReady, onSallaEvent, getSallaSDK, syncSdkLocale, withSdkThemeVersion } from './chunk-
|
|
22
|
-
import { AUTH_TOKEN_COOKIE_NAME, rememberDevStoreId, clearAuthTokenCookie, currentHost, syncScopeCookie, escapeForInlineScript } from './chunk-
|
|
23
|
-
import { getTwilightContext, subscribeTwilight, updateTwilightContext, hasTwilightSettings } from './chunk-
|
|
19
|
+
import { Toaster } from './chunk-6AK5XDNZ.js';
|
|
20
|
+
import { isNativeApp } from './chunk-H73VXFYO.js';
|
|
21
|
+
import { whenSallaLoaded, whenSallaReady, onSallaEvent, getSallaSDK, syncSdkLocale, withSdkThemeVersion } from './chunk-JCYX7HXB.js';
|
|
22
|
+
import { AUTH_TOKEN_COOKIE_NAME, rememberDevStoreId, clearAuthTokenCookie, currentHost, syncScopeCookie, escapeForInlineScript } from './chunk-VLL4GO7G.js';
|
|
23
|
+
import { getTwilightContext, subscribeTwilight, updateTwilightContext, hasTwilightSettings } from './chunk-PLD6KSYE.js';
|
|
24
24
|
import { FALLBACK_LOCALE, getLanguageInfo } from './chunk-T72DAX7R.js';
|
|
25
25
|
import { useTwilight, TwilightContext } from './chunk-DF6FBKDN.js';
|
|
26
26
|
import { lazyComponent } from './chunk-VYGA5AT5.js';
|
|
@@ -352,16 +352,16 @@ function useWebMcpSupported() {
|
|
|
352
352
|
}
|
|
353
353
|
var navigationSetups = {
|
|
354
354
|
tanstack: lazyComponent(
|
|
355
|
-
() => import('./navigation-
|
|
355
|
+
() => import('./navigation-DZCTOUGV.js').then((m) => ({ default: m.NavigationSetup }))
|
|
356
356
|
),
|
|
357
357
|
// Not preloaded with the rest: a TanStack worker would load Next.js code it never runs.
|
|
358
|
-
nextjs: lazy(() => import('./navigation-
|
|
358
|
+
nextjs: lazy(() => import('./navigation-LZ6YYSKB.js').then((m) => ({ default: m.NavigationSetup })))
|
|
359
359
|
};
|
|
360
360
|
|
|
361
361
|
// src/providers/DocumentSyncRegistry.ts
|
|
362
362
|
var routeDocumentSyncs = {
|
|
363
363
|
tanstack: lazyComponent(
|
|
364
|
-
() => import('./document-class-
|
|
364
|
+
() => import('./document-class-VJN4AHON.js').then((m) => ({
|
|
365
365
|
default: m.TanStackDocumentSync
|
|
366
366
|
}))
|
|
367
367
|
)
|
|
@@ -874,7 +874,7 @@ function injectFastCheckoutScript() {
|
|
|
874
874
|
document.head.appendChild(s);
|
|
875
875
|
}
|
|
876
876
|
var GoogleTagBody = lazyComponent(
|
|
877
|
-
() => import('./GoogleTag-
|
|
877
|
+
() => import('./GoogleTag-IBUOI4BU.js').then((m) => ({ default: m.GoogleTagBody }))
|
|
878
878
|
);
|
|
879
879
|
var TwilightBundles = lazyComponent(
|
|
880
880
|
() => import('./TwilightBundles-G6GHWBID.js').then((m) => ({ default: m.TwilightBundles }))
|
|
@@ -883,7 +883,7 @@ var LazySiftSnippet = lazyComponent(
|
|
|
883
883
|
() => import('./SiftSnippet-5FCU6TR6.js').then((m) => ({ default: m.SiftSnippet }))
|
|
884
884
|
);
|
|
885
885
|
var LazyStoreClosedNotification = lazyComponent(
|
|
886
|
-
() => import('./StoreClosedNotification-
|
|
886
|
+
() => import('./StoreClosedNotification-QAMEUZQD.js').then((m) => ({
|
|
887
887
|
default: m.StoreClosedNotification
|
|
888
888
|
}))
|
|
889
889
|
);
|
|
@@ -1129,12 +1129,12 @@ function SallaSdkScripts({ settings }) {
|
|
|
1129
1129
|
|
|
1130
1130
|
// src/components/store/lazy.ts
|
|
1131
1131
|
var LazyStoreClosedNotification2 = lazyComponent(
|
|
1132
|
-
() => import('./StoreClosedNotification-
|
|
1132
|
+
() => import('./StoreClosedNotification-QAMEUZQD.js').then((m) => ({
|
|
1133
1133
|
default: m.StoreClosedNotification
|
|
1134
1134
|
}))
|
|
1135
1135
|
);
|
|
1136
1136
|
var LazyMaintenancePage = lazyComponent(
|
|
1137
|
-
() => import('./MaintenancePage-
|
|
1137
|
+
() => import('./MaintenancePage-3YUQXVN2.js').then((m) => ({ default: m.MaintenancePage }))
|
|
1138
1138
|
);
|
|
1139
1139
|
var BAR = {
|
|
1140
1140
|
position: "fixed",
|
|
@@ -1199,7 +1199,11 @@ function LiveEditor() {
|
|
|
1199
1199
|
if (!frame) return null;
|
|
1200
1200
|
return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(LazyLiveEditorBar, { origin: frame.origin, dev: frame.dev }) });
|
|
1201
1201
|
}
|
|
1202
|
-
var LazyWebMcpTools = React2.lazy(() => import('./WebMcpTools-
|
|
1202
|
+
var LazyWebMcpTools = React2.lazy(() => import('./WebMcpTools-F663L3R7.js'));
|
|
1203
|
+
function WebMcpMount() {
|
|
1204
|
+
if (!useWebMcpSupported()) return null;
|
|
1205
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(LazyWebMcpTools, {}) });
|
|
1206
|
+
}
|
|
1203
1207
|
var getSalla2 = () => typeof window !== "undefined" ? window.salla : void 0;
|
|
1204
1208
|
var TWILIGHT_LOG_STYLES = {
|
|
1205
1209
|
header: "background: linear-gradient(90deg, #7c3aed, #6366f1); color: white; padding: 4px 8px; border-radius: 4px; font-weight: bold;",
|
|
@@ -1245,7 +1249,6 @@ function TwilightProvider({
|
|
|
1245
1249
|
}
|
|
1246
1250
|
return null;
|
|
1247
1251
|
});
|
|
1248
|
-
const webMcpSupported = useWebMcpSupported();
|
|
1249
1252
|
useNativeSafeArea();
|
|
1250
1253
|
useNativeSpaWebview();
|
|
1251
1254
|
useEffect(() => {
|
|
@@ -1406,7 +1409,7 @@ function TwilightProvider({
|
|
|
1406
1409
|
toastMobilePosition,
|
|
1407
1410
|
addToCartToast,
|
|
1408
1411
|
interceptLinks,
|
|
1409
|
-
webMcp
|
|
1412
|
+
webMcp
|
|
1410
1413
|
};
|
|
1411
1414
|
}, [
|
|
1412
1415
|
isReady,
|
|
@@ -1417,8 +1420,7 @@ function TwilightProvider({
|
|
|
1417
1420
|
toastMobilePosition,
|
|
1418
1421
|
addToCartToast,
|
|
1419
1422
|
interceptLinks,
|
|
1420
|
-
webMcp
|
|
1421
|
-
webMcpSupported
|
|
1423
|
+
webMcp
|
|
1422
1424
|
]);
|
|
1423
1425
|
const readyContent = useMemo(() => {
|
|
1424
1426
|
if (!readyShell) return null;
|
|
@@ -1442,7 +1444,7 @@ function TwilightProvider({
|
|
|
1442
1444
|
),
|
|
1443
1445
|
readyShell.interceptLinks && /* @__PURE__ */ jsx(NavigationInterceptor, {})
|
|
1444
1446
|
] }),
|
|
1445
|
-
readyShell.webMcp && /* @__PURE__ */ jsx(
|
|
1447
|
+
readyShell.webMcp && /* @__PURE__ */ jsx(WebMcpMount, {}),
|
|
1446
1448
|
inner,
|
|
1447
1449
|
/* @__PURE__ */ jsx(SallaSdkScripts, { settings: initialData }),
|
|
1448
1450
|
/* @__PURE__ */ jsx(AppsSnippets, {}),
|
|
@@ -1488,5 +1490,5 @@ function useStore() {
|
|
|
1488
1490
|
}
|
|
1489
1491
|
|
|
1490
1492
|
export { LazyMaintenancePage, LazyStoreClosedNotification2 as LazyStoreClosedNotification, MasterLayout, TwilightProvider, fastCheckoutScript, registerDefaultHooks, registerDocumentSync, routeDocumentSyncs, useBreadcrumbs, useDate, useGtm, useMoney, useNumber, useOpeningHours, usePageConfig, useStore };
|
|
1491
|
-
//# sourceMappingURL=chunk-
|
|
1492
|
-
//# sourceMappingURL=chunk-
|
|
1493
|
+
//# sourceMappingURL=chunk-2QQSSJKZ.js.map
|
|
1494
|
+
//# sourceMappingURL=chunk-2QQSSJKZ.js.map
|