@mercurjs/vendor 2.1.6 → 2.2.0-canary.11
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/[id]-A55T2ORL.js +3066 -0
- package/dist/[id]-B4YZTANM.js +1571 -0
- package/dist/{[id]-UTKO3VG4.js → [id]-EKLRGVBA.js} +10 -10
- package/dist/{[id]-TO6KT3ZE.js → [id]-FE5GYYVZ.js} +28 -25
- package/dist/{[id]-4VCL3MMM.js → [id]-GBT6VB4S.js} +29 -23
- package/dist/{[id]-3G5G7ZFV.js → [id]-GC3ZYPK4.js} +25 -22
- package/dist/{[id]-6PXEWRG7.js → [id]-J6BZG5PU.js} +14 -14
- package/dist/{[id]-B3LHVQM5.js → [id]-QOEO3JOV.js} +29 -23
- package/dist/{[id]-H3C3ZSC6.js → [id]-QQU5HVFU.js} +29 -23
- package/dist/{[id]-PDGHF5J2.js → [id]-SHAJTJNZ.js} +43 -36
- package/dist/{[id]-X4DDKOMQ.js → [id]-T5ECVBPF.js} +30 -24
- package/dist/{[id]-T2ROPEGY.js → [id]-U5KZEQDR.js} +7 -7
- package/dist/{[id]-7RUAH3TI.js → [id]-YPCO3DJV.js} +5 -5
- package/dist/{[id]-Y7GAMNC5.js → [id]-ZCMSBEVM.js} +4 -4
- package/dist/{[location_id]-D55RQOXT.js → [location_id]-NUBXDDJC.js} +9 -9
- package/dist/{[province_id]-OFH2ZOFQ.js → [province_id]-6GUA4PV5.js} +23 -20
- package/dist/{add-C6OX5C54.js → add-NTRYWOJF.js} +42 -35
- package/dist/add-RU3WL4YB.js +428 -0
- package/dist/{add-customer-groups-PJRJUWS2.js → add-customer-groups-U5RZWW4B.js} +19 -16
- package/dist/{add-products-INOLNPO6.js → add-products-Q4MMDQKT.js} +26 -20
- package/dist/{add-promotions-AHDOP52Q.js → add-promotions-3AYXQXTP.js} +8 -8
- package/dist/{add-to-campaign-HL6NGRR4.js → add-to-campaign-QKYQCSR2.js} +4 -4
- package/dist/{address-KRENKSLP.js → address-77Y3AOQ3.js} +19 -16
- package/dist/{adjust-inventory-H4EUP7J3.js → adjust-inventory-AFJLWF5R.js} +2 -2
- package/dist/{allocate-items-SUCUZU4D.js → allocate-items-TCM5A55Y.js} +141 -126
- package/dist/{areas-UUMZDXLX.js → areas-XUC5V5UO.js} +8 -8
- package/dist/{attributes-CALEHJJG.js → attributes-SZP2MM5L.js} +3 -3
- package/dist/{breadcrumb-KQSFIXQ4.js → breadcrumb-2XA2WOK7.js} +1 -1
- package/dist/{breadcrumb-IG7VZGW2.js → breadcrumb-5NP23D6X.js} +15 -12
- package/dist/{breadcrumb-TW5JEOYS.js → breadcrumb-EVZIOB2G.js} +14 -11
- package/dist/{breadcrumb-OIGGCB3L.js → breadcrumb-FPWBT76A.js} +8 -2
- package/dist/{breadcrumb-BS7Y5OKF.js → breadcrumb-IK6XCQOQ.js} +2 -2
- package/dist/{breadcrumb-M5Z5WA6I.js → breadcrumb-KTARIL65.js} +2 -2
- package/dist/{breadcrumb-VNNZ3TTW.js → breadcrumb-PBR27GGX.js} +3 -3
- package/dist/breadcrumb-THJ2HPRB.js +26 -0
- package/dist/{breadcrumb-6W2VP3OZ.js → breadcrumb-TNJSGX4T.js} +15 -12
- package/dist/{campaigns-HS6MIO7X.js → campaigns-JAQTSA4Z.js} +6 -6
- package/dist/{categories-PKWR3FM3.js → categories-T4QJYX4R.js} +8 -8
- package/dist/{chunk-4URLUCTD.js → chunk-25E4KME5.js} +3 -3
- package/dist/chunk-27KRIXMQ.js +71 -0
- package/dist/{chunk-SFQKKIHA.js → chunk-27WLUOI2.js} +1 -1
- package/dist/{chunk-ZYOXKUKZ.js → chunk-2QTNCGKX.js} +1 -1
- package/dist/{chunk-5UD4P6YL.js → chunk-2USXZSTK.js} +4 -4
- package/dist/{chunk-PXYDR7WQ.js → chunk-3BXCPHN6.js} +3 -2
- package/dist/{chunk-VQ5EKDA3.js → chunk-3PMM6AMP.js} +3 -3
- package/dist/{chunk-J6BRLL3F.js → chunk-463CNCJC.js} +3 -3
- package/dist/{chunk-Y2QI7KWS.js → chunk-4LVP635F.js} +408 -664
- package/dist/{chunk-UL4O5M4S.js → chunk-4S6XGIC6.js} +1 -18
- package/dist/{chunk-RUE5BPC2.js → chunk-5QI3NDJG.js} +1 -1
- package/dist/{chunk-PPLC4IKI.js → chunk-5T6UWTRU.js} +10 -5
- package/dist/{chunk-WITQNQXN.js → chunk-6FUIK3PX.js} +4 -4
- package/dist/{chunk-HGQTL7NX.js → chunk-6K6EQOJF.js} +3 -3
- package/dist/{chunk-KAZ5BYTQ.js → chunk-6OUPJNYO.js} +5 -3
- package/dist/{chunk-PEKANQ3T.js → chunk-6UZERVBI.js} +2 -2
- package/dist/{chunk-RTAWYMQP.js → chunk-7CMRFP5Q.js} +2 -2
- package/dist/{chunk-I2IKYOZX.js → chunk-7IPCLQ5V.js} +19 -19
- package/dist/chunk-ADGVQVHP.js +101 -0
- package/dist/{chunk-IZ5RG5XI.js → chunk-AJLGY3LQ.js} +1 -21
- package/dist/chunk-BER45EYD.js +82 -0
- package/dist/{chunk-PCMNEUMV.js → chunk-BXRNZS5K.js} +1 -1
- package/dist/chunk-CFRWIQIZ.js +43 -0
- package/dist/{chunk-RL7SFZOF.js → chunk-DDJQRV6E.js} +1 -1
- package/dist/{chunk-D2MA5TAP.js → chunk-DO4F5FIO.js} +2 -2
- package/dist/{chunk-X4FLOQ45.js → chunk-DQKK43PR.js} +3 -3
- package/dist/{chunk-6WY5X4PE.js → chunk-E6W57UP3.js} +35 -125
- package/dist/chunk-FP6U6BPH.js +61 -0
- package/dist/chunk-FWPGOIFA.js +22 -0
- package/dist/{chunk-BLVJAKBA.js → chunk-FWS4YJ4B.js} +1 -1
- package/dist/chunk-GAE6TKOR.js +811 -0
- package/dist/{chunk-3CK6OINO.js → chunk-GDWBOQI5.js} +3 -5
- package/dist/{chunk-PDQSPKG5.js → chunk-GN6KB75Z.js} +1 -1
- package/dist/chunk-HDEOZN2Q.js +60 -0
- package/dist/chunk-IBEUR3J7.js +173 -0
- package/dist/chunk-J6XCRFBW.js +30 -0
- package/dist/{chunk-ZEVYT6IX.js → chunk-JAUZ73XE.js} +151 -266
- package/dist/{chunk-CNLP35S7.js → chunk-K6LOZ4S3.js} +54 -18
- package/dist/{chunk-JQP7MOFH.js → chunk-KIFSQOM2.js} +2 -2
- package/dist/{chunk-DARJTN4I.js → chunk-L4KBTV57.js} +9 -2
- package/dist/chunk-L57USMYC.js +39 -0
- package/dist/chunk-LARLBYU6.js +127 -0
- package/dist/chunk-LDZCCWJB.js +518 -0
- package/dist/chunk-LEWA4BPH.js +18 -0
- package/dist/chunk-LFX6WU4A.js +36 -0
- package/dist/{chunk-ITI54CII.js → chunk-LKUW5SV4.js} +6 -6
- package/dist/{chunk-LPOAVK6Y.js → chunk-LQD232FW.js} +47 -12
- package/dist/{chunk-4MFMCZEJ.js → chunk-MJCL3WID.js} +2 -2
- package/dist/{chunk-32RYSB2V.js → chunk-NBKWY6XN.js} +2 -2
- package/dist/{chunk-GYV6SKY7.js → chunk-O7VOGTLX.js} +4 -6
- package/dist/{chunk-KQGVSLUI.js → chunk-OYKUQXJX.js} +1926 -957
- package/dist/{chunk-CYTNBXWF.js → chunk-OZ44ATGE.js} +8 -8
- package/dist/{chunk-7Q5SDEK7.js → chunk-PAVZ6FPK.js} +7 -7
- package/dist/{chunk-2RHAI7WK.js → chunk-QLBIBLOY.js} +2 -2
- package/dist/chunk-RXV7INUV.js +426 -0
- package/dist/chunk-S23FD6FA.js +210 -0
- package/dist/{chunk-NYDJTWRL.js → chunk-SGR4DMCW.js} +4 -4
- package/dist/{chunk-OXXL4WQU.js → chunk-SPOHNK4X.js} +6 -6
- package/dist/{chunk-AIF2KTEE.js → chunk-SSUUT5LK.js} +12 -2
- package/dist/{chunk-QX45GVAL.js → chunk-SZBERGA4.js} +8 -8
- package/dist/{chunk-6SBMVLJ2.js → chunk-T5MJWWDX.js} +2 -2
- package/dist/chunk-T6LHVNWO.js +27 -0
- package/dist/chunk-TBYCZRZ7.js +248 -0
- package/dist/chunk-TF6V3TFG.js +438 -0
- package/dist/chunk-TW324MAT.js +185 -0
- package/dist/{chunk-4ZGFODSC.js → chunk-TYESCFYW.js} +1 -1
- package/dist/chunk-U5G3AVED.js +64 -0
- package/dist/chunk-U6PBLMXD.js +14 -0
- package/dist/{chunk-GZMXTNDN.js → chunk-UCYSCKZV.js} +1432 -1380
- package/dist/{chunk-P3ZTO6T2.js → chunk-UFFVRF4V.js} +2 -2
- package/dist/chunk-UM7ZR3VU.js +14 -0
- package/dist/chunk-UORPTGV2.js +114 -0
- package/dist/{chunk-5M3SL4UZ.js → chunk-VCOQ7WQ2.js} +30 -106
- package/dist/chunk-VCUUITW6.js +35 -0
- package/dist/{chunk-PTW7JNAP.js → chunk-VDHW6H5F.js} +5 -5
- package/dist/chunk-VZUA5SRD.js +62 -0
- package/dist/{chunk-DKQ4XMSN.js → chunk-X4GWB6AT.js} +6 -6
- package/dist/{chunk-6YA3C4NB.js → chunk-XCIMOIX6.js} +3 -12
- package/dist/chunk-XP23ZVQT.js +2183 -0
- package/dist/{chunk-WBI7FEGI.js → chunk-Y2MQ5EMD.js} +29 -24
- package/dist/chunk-YBF45CX5.js +23 -0
- package/dist/{chunk-N7OVXN72.js → chunk-YGJCJBPM.js} +1 -1
- package/dist/{chunk-WNVEMFIK.js → chunk-YHIJCI4U.js} +3 -3
- package/dist/{chunk-WFE6CT6M.js → chunk-YQZBAP3S.js} +22 -76
- package/dist/chunk-ZHFFTT3I.js +17 -0
- package/dist/{collections-DJZI2RM2.js → collections-URH2TCWJ.js} +28 -24
- package/dist/{configuration-GN3TO77H.js → configuration-7IYZ6GNP.js} +3 -3
- package/dist/{configuration-RHPIO2QT.js → configuration-C4IGBNXH.js} +1 -1
- package/dist/{create-7S7CZWEN.js → create-5PSOIHIT.js} +4 -4
- package/dist/create-7R6CZU53.js +215 -0
- package/dist/{create-3EK5CNNX.js → create-A7B3MLJX.js} +41 -34
- package/dist/create-F5R76QML.js +1178 -0
- package/dist/create-FKRYB7ZS.js +1784 -0
- package/dist/create-GGACODDN.js +1914 -0
- package/dist/{create-YO55Z3YD.js → create-HVZYJ3YC.js} +35 -38
- package/dist/{create-IDVCZHIX.js → create-JF2OUZQA.js} +16 -13
- package/dist/{create-3ZVXEPX5.js → create-JGYG5SBM.js} +29 -23
- package/dist/{create-G4T2PAJH.js → create-MS6KKFSV.js} +21 -18
- package/dist/{create-OCFPLNNY.js → create-MZYXMGKP.js} +6 -6
- package/dist/{create-HKJVSFB7.js → create-O35JRZEF.js} +25 -22
- package/dist/{create-OGLPDVOI.js → create-ODOFJF5N.js} +40 -37
- package/dist/{create-GHM7OTCR.js → create-R7K3ECN6.js} +1 -1
- package/dist/{create-D6EW3EWC.js → create-SFU3W3ZH.js} +1 -1
- package/dist/create-TKXH5KQY.js +239 -0
- package/dist/{create-33TRLASX.js → create-UPYB65PD.js} +1 -1
- package/dist/{create-KGYL7FBM.js → create-XVHOCZHJ.js} +1 -1
- package/dist/{create-4AE3VTWN.js → create-YBF4YGWG.js} +2 -2
- package/dist/{customers-6ZLE65UX.js → customers-SOLJ2KQQ.js} +5 -5
- package/dist/{edit-QBISX7D3.js → edit-2R5QCPTB.js} +16 -13
- package/dist/{edit-IR6V2IDN.js → edit-3E4ZO7HT.js} +21 -18
- package/dist/{edit-ZSOI56BQ.js → edit-4G5D7TES.js} +52 -40
- package/dist/{edit-B5B3XKDM.js → edit-522DG3BY.js} +1 -1
- package/dist/{edit-B75KK5ZX.js → edit-5CROKEJE.js} +41 -34
- package/dist/{edit-ATXE6CM5.js → edit-C4OCKQVU.js} +1 -1
- package/dist/{edit-7HTH2UJF.js → edit-FXNXTVIW.js} +3 -3
- package/dist/{edit-RNT555GP.js → edit-G2E5SNGU.js} +15 -12
- package/dist/{edit-4HZHLYI3.js → edit-GQNIINRR.js} +1 -1
- package/dist/{edit-2KRJIPRK.js → edit-HTLLYECP.js} +21 -18
- package/dist/{edit-LRRJTHV2.js → edit-KAKVPHZZ.js} +1 -1
- package/dist/{edit-GIJXLMC3.js → edit-O4JLGKQR.js} +2 -2
- package/dist/{edit-FNDDSSMT.js → edit-OKU6FMHJ.js} +60 -9
- package/dist/{edit-5CJZRHAA.js → edit-ORXS3A2Y.js} +1 -1
- package/dist/{edit-FC64DWB2.js → edit-Q3UQIOLS.js} +1 -1
- package/dist/edit-VVLITC2E.js +910 -0
- package/dist/edit-XSICGAVO.js +176 -0
- package/dist/{edit-7GVP6SRA.js → edit-ZAHCMF5U.js} +1 -1
- package/dist/{edit-MYSWY6W4.js → edit-ZMERG3L7.js} +1 -1
- package/dist/{edit-budget-J27CSEZH.js → edit-budget-L3CCEWNF.js} +1 -1
- package/dist/{edit-inventory-item-US77M2FF.js → edit-inventory-item-ZKXXL3QK.js} +2 -2
- package/dist/{edit-inventory-item-attributes-UGAE2NAZ.js → edit-inventory-item-attributes-GSKUMORD.js} +3 -3
- package/dist/{fulfillment-DCS67LTK.js → fulfillment-76IVZ266.js} +32 -22
- package/dist/{fulfillment-providers-GM5PO6N3.js → fulfillment-providers-G2L6LEVO.js} +24 -20
- package/dist/index.css +104 -65
- package/dist/index.d.ts +3 -10
- package/dist/index.js +549 -456
- package/dist/{inventory-OPZ2FSEE.js → inventory-WSFLTA6Z.js} +7 -7
- package/dist/{invite-KEJLNXEZ.js → invite-2673PU4I.js} +17 -13
- package/dist/{invite-CQCKEQW2.js → invite-HRXZ5YBP.js} +28 -24
- package/dist/loader-VDYPD3RI.js +31 -0
- package/dist/{locations-ZVPTQCQY.js → locations-INS6FTMJ.js} +4 -4
- package/dist/{login-OUHRNNXA.js → login-TWUBU6I6.js} +14 -11
- package/dist/{manage-locations-YUKEFCBJ.js → manage-locations-XHH5DVIR.js} +2 -2
- package/dist/{media-4KYFHB5V.js → media-Z4N5MKFG.js} +42 -9
- package/dist/{metadata-AWUKZ25V.js → metadata-5BPOBBU2.js} +3 -3
- package/dist/{metadata-OCE6A3JE.js → metadata-D6M66NQK.js} +17 -14
- package/dist/{metadata-PYY4IB7K.js → metadata-NIDIBXJT.js} +17 -14
- package/dist/{metadata-XP3ZYW2M.js → metadata-Q74OJWUD.js} +18 -15
- package/dist/{metadata-NYYL26MQ.js → metadata-REQIFWWH.js} +18 -15
- package/dist/{metadata-G7KZXVNE.js → metadata-YVHJPDLD.js} +17 -14
- package/dist/offer-create-page-E4FLSDJQ.js +743 -0
- package/dist/offer-detail-page-6SIBQTLP.js +492 -0
- package/dist/offer-edit-page-3MO566RP.js +151 -0
- package/dist/offer-inventory-batch-page-BD6PMDLW.js +290 -0
- package/dist/offer-pricing-edit-page-4TINK42V.js +199 -0
- package/dist/offers-GVN5LCK6.js +32 -0
- package/dist/{onboarding-WXZHW62K.js → onboarding-MK2RIFD4.js} +24 -21
- package/dist/{orders-LWJ472VM.js → orders-TVQDR4OJ.js} +30 -26
- package/dist/organization-XO3T2K2X.js +340 -0
- package/dist/{organize-RFOMQCBG.js → organize-5XRZWD5C.js} +4 -4
- package/dist/{organize-OVKJ3HZO.js → organize-Z7JTTDH4.js} +4 -4
- package/dist/pages/index.d.ts +439 -758
- package/dist/pages/index.js +85 -78
- package/dist/{payment-details-UVXYCTUK.js → payment-details-CFTX3QDL.js} +19 -16
- package/dist/{payouts-TR7K5I37.js → payouts-7Q7D4FET.js} +8 -8
- package/dist/{price-lists-S2WNELFZ.js → price-lists-6TFLA53G.js} +9 -9
- package/dist/{pricing-UF27DAXA.js → pricing-ECXV6K7G.js} +41 -37
- package/dist/{product-tags-2CKH2M6D.js → product-tags-5O7ZG6SA.js} +40 -33
- package/dist/{product-types-FX43JEO2.js → product-types-PKUEL7X5.js} +6 -6
- package/dist/product-variant-detail-PUWOMVHQ.js +210 -0
- package/dist/{product-variant-edit-P3DSIFE3.js → product-variant-edit-WZNO4CQX.js} +134 -66
- package/dist/{products-H5EMRJYS.js → products-BM3IIH5P.js} +27 -21
- package/dist/{products-2LHGS7X3.js → products-CPTRYL2Z.js} +44 -45
- package/dist/{professional-details-HYKTH44B.js → professional-details-ED4HNYXY.js} +18 -15
- package/dist/{profile-PB27WIRW.js → profile-6TGCNNUU.js} +21 -18
- package/dist/{promotions-5EYPGHJP.js → promotions-4336KI7E.js} +9 -9
- package/dist/receive-224KLULH.js +578 -0
- package/dist/refund-IGMSXQNX.js +268 -0
- package/dist/{register-X45K325N.js → register-OZ5CRANZ.js} +18 -15
- package/dist/{reset-password-GTWLBOFK.js → reset-password-5UHZU4D3.js} +1 -1
- package/dist/{return-reasons-LOKYRGMI.js → return-reasons-QJRA2ZX6.js} +21 -17
- package/dist/{sales-channels-Y4LRP7JC.js → sales-channels-CZDU7VTE.js} +7 -6
- package/dist/{sales-channels-7R2IY3KG.js → sales-channels-U55MUDQP.js} +7 -6
- package/dist/{settings-2XDLFYMS.js → settings-2GCQQTO6.js} +47 -40
- package/dist/shipment-HWQHMX2L.js +242 -0
- package/dist/{shipping-profile-R3NABPQF.js → shipping-profile-ZP7M6VSS.js} +2 -2
- package/dist/{shipping-profiles-QVKNFLCW.js → shipping-profiles-C5WBXWZ2.js} +21 -18
- package/dist/{stock-5RXNUPUT.js → stock-MQA7PRO6.js} +21 -18
- package/dist/{store-MPYOWMZT.js → store-5ZHZR4JI.js} +84 -149
- package/dist/{store-closure-DNMCHUXD.js → store-closure-H5WHV3LA.js} +24 -16
- package/dist/{store-select-UTPJ7DM7.js → store-select-PZS556FB.js} +19 -16
- package/dist/{tax-regions-UD6P5FVC.js → tax-regions-HDLBFZVG.js} +6 -6
- package/dist/{team-IMS66MVP.js → team-CLKJCZNH.js} +29 -26
- package/dist/types-CtCEtTE6.d.ts +16 -0
- package/package.json +5 -5
- package/dist/[id]-BYP37PU4.js +0 -1314
- package/dist/[id]-INOFZHL7.js +0 -1219
- package/dist/add-KRAGFFBJ.js +0 -158
- package/dist/bulk-edit-3SMBLIOA.js +0 -244
- package/dist/chunk-47SXTGLN.js +0 -397
- package/dist/chunk-4KX6CBJ4.js +0 -178
- package/dist/chunk-DLNNTQRY.js +0 -217
- package/dist/chunk-FX4V5JCF.js +0 -37
- package/dist/chunk-GC33DBKG.js +0 -143
- package/dist/chunk-LQYMBSRQ.js +0 -66
- package/dist/chunk-NK4NR6MN.js +0 -173
- package/dist/chunk-PFU6FSXY.js +0 -430
- package/dist/chunk-QJEOPT2P.js +0 -330
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-STR3NGWE.js +0 -3736
- package/dist/create-3DOO3RNH.js +0 -716
- package/dist/create-I7HV3RM6.js +0 -150
- package/dist/edit-K2AD335I.js +0 -237
- package/dist/edit-VO5XLIEL.js +0 -362
- package/dist/edit-stocks-and-prices-MHHQFWFA.js +0 -408
- package/dist/organization-LPYQRTQC.js +0 -303
- package/dist/prices-3OXV5RGY.js +0 -270
- package/dist/product-variant-detail-WV4KXVXR.js +0 -590
- package/dist/shipment-4GW2JFWB.js +0 -174
- package/dist/stock-GPC3BCL6.js +0 -500
- package/dist/{chunk-SDSEW72R.js → chunk-E2HQPY32.js} +3 -3
- /package/dist/{chunk-CAS74NLJ.js → chunk-YV6MK4PZ.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ProgressBar
|
|
3
|
-
} from "./chunk-QSGR43JM.js";
|
|
4
1
|
import {
|
|
5
2
|
isClientError
|
|
6
3
|
} from "./chunk-C6SUTRP2.js";
|
|
@@ -8,81 +5,85 @@ import "./chunk-FMFVTERD.js";
|
|
|
8
5
|
import {
|
|
9
6
|
TabbedForm,
|
|
10
7
|
useTabbedForm
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LQD232FW.js";
|
|
12
9
|
import {
|
|
13
10
|
I18n
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OYKUQXJX.js";
|
|
15
12
|
import "./chunk-TKGWSUEI.js";
|
|
16
13
|
import "./chunk-U2ZFCAPX.js";
|
|
17
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-GDWBOQI5.js";
|
|
18
15
|
import "./chunk-3QSRE5LS.js";
|
|
16
|
+
import {
|
|
17
|
+
Thumbnail
|
|
18
|
+
} from "./chunk-WIYFXWRI.js";
|
|
19
|
+
import {
|
|
20
|
+
Skeleton
|
|
21
|
+
} from "./chunk-INNFZYX2.js";
|
|
19
22
|
import {
|
|
20
23
|
notificationQueryKeys,
|
|
21
|
-
useMe,
|
|
22
24
|
useNotifications,
|
|
23
|
-
useProductTags
|
|
24
|
-
|
|
25
|
-
useSellers
|
|
26
|
-
} from "./chunk-47SXTGLN.js";
|
|
25
|
+
useProductTags
|
|
26
|
+
} from "./chunk-TBYCZRZ7.js";
|
|
27
27
|
import {
|
|
28
28
|
useLogout
|
|
29
29
|
} from "./chunk-F4OJN2F2.js";
|
|
30
30
|
import "./chunk-LRARA622.js";
|
|
31
31
|
import "./chunk-M6N4ISXL.js";
|
|
32
32
|
import "./chunk-S7EKBD2C.js";
|
|
33
|
-
import "./chunk-VXMOPVRH.js";
|
|
34
|
-
import "./chunk-IQWK723D.js";
|
|
35
33
|
import {
|
|
36
34
|
useProductTypes
|
|
37
35
|
} from "./chunk-VV6IKGCN.js";
|
|
38
36
|
import {
|
|
39
37
|
usePriceLists
|
|
40
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BXRNZS5K.js";
|
|
41
39
|
import {
|
|
42
40
|
useCampaigns,
|
|
43
41
|
usePromotions
|
|
44
42
|
} from "./chunk-BOZJOOGW.js";
|
|
43
|
+
import "./chunk-T6LHVNWO.js";
|
|
44
|
+
import "./chunk-4S6XGIC6.js";
|
|
45
|
+
import {
|
|
46
|
+
useMe,
|
|
47
|
+
useSelectSeller,
|
|
48
|
+
useSellers
|
|
49
|
+
} from "./chunk-S23FD6FA.js";
|
|
50
|
+
import "./chunk-IQWK723D.js";
|
|
45
51
|
import {
|
|
46
52
|
useCollections
|
|
47
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-DDJQRV6E.js";
|
|
48
54
|
import {
|
|
49
55
|
useCustomers
|
|
50
56
|
} from "./chunk-LWJF63JW.js";
|
|
57
|
+
import "./chunk-VXWN37PT.js";
|
|
58
|
+
import {
|
|
59
|
+
useProductCategories
|
|
60
|
+
} from "./chunk-5QI3NDJG.js";
|
|
61
|
+
import "./chunk-VZUA5SRD.js";
|
|
62
|
+
import "./chunk-VXMOPVRH.js";
|
|
51
63
|
import {
|
|
52
64
|
useStockLocations
|
|
53
65
|
} from "./chunk-NBPMNUKZ.js";
|
|
66
|
+
import "./chunk-UORPTGV2.js";
|
|
54
67
|
import {
|
|
55
68
|
useOrders
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-UL4O5M4S.js";
|
|
59
|
-
import "./chunk-FX4V5JCF.js";
|
|
69
|
+
} from "./chunk-Y2MQ5EMD.js";
|
|
70
|
+
import "./chunk-3B34B2M2.js";
|
|
60
71
|
import {
|
|
61
72
|
ActionMenu
|
|
62
73
|
} from "./chunk-BDGZ4EQO.js";
|
|
63
|
-
import {
|
|
64
|
-
languages
|
|
65
|
-
} from "./chunk-QHQWEERJ.js";
|
|
66
|
-
import "./chunk-3B34B2M2.js";
|
|
67
|
-
import {
|
|
68
|
-
useProductCategories
|
|
69
|
-
} from "./chunk-RUE5BPC2.js";
|
|
70
|
-
import {
|
|
71
|
-
Thumbnail
|
|
72
|
-
} from "./chunk-WIYFXWRI.js";
|
|
73
74
|
import {
|
|
74
75
|
ConditionalTooltip
|
|
75
76
|
} from "./chunk-LAVHRER2.js";
|
|
77
|
+
import {
|
|
78
|
+
languages
|
|
79
|
+
} from "./chunk-QHQWEERJ.js";
|
|
76
80
|
import {
|
|
77
81
|
useDocumentDirection
|
|
78
82
|
} from "./chunk-Y7QKP6QU.js";
|
|
79
|
-
import {
|
|
80
|
-
Skeleton
|
|
81
|
-
} from "./chunk-INNFZYX2.js";
|
|
82
83
|
import {
|
|
83
84
|
useInventoryItems,
|
|
84
85
|
useProducts
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-JAUZ73XE.js";
|
|
86
87
|
import "./chunk-A5DJIOHN.js";
|
|
87
88
|
import {
|
|
88
89
|
queryClient
|
|
@@ -1679,20 +1680,49 @@ import {
|
|
|
1679
1680
|
useNavigation
|
|
1680
1681
|
} from "react-router-dom";
|
|
1681
1682
|
import components from "virtual:mercur/components";
|
|
1682
|
-
|
|
1683
|
+
|
|
1684
|
+
// src/components/common/progress-bar/progress-bar.tsx
|
|
1685
|
+
import { motion } from "motion/react";
|
|
1686
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1687
|
+
var ProgressBar = ({ duration = 2 }) => {
|
|
1688
|
+
return /* @__PURE__ */ jsx8(
|
|
1689
|
+
motion.div,
|
|
1690
|
+
{
|
|
1691
|
+
className: "bg-ui-fg-subtle size-full",
|
|
1692
|
+
initial: {
|
|
1693
|
+
width: "0%"
|
|
1694
|
+
},
|
|
1695
|
+
transition: {
|
|
1696
|
+
delay: 0.2,
|
|
1697
|
+
duration,
|
|
1698
|
+
ease: "linear"
|
|
1699
|
+
},
|
|
1700
|
+
animate: {
|
|
1701
|
+
width: "90%"
|
|
1702
|
+
},
|
|
1703
|
+
exit: {
|
|
1704
|
+
width: "100%",
|
|
1705
|
+
transition: { duration: 0.2, ease: "linear" }
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
);
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
// src/components/layout/shell/shell.tsx
|
|
1712
|
+
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1683
1713
|
var Shell = ({ children }) => {
|
|
1684
1714
|
const globalShortcuts = useGlobalShortcuts();
|
|
1685
1715
|
const navigation = useNavigation();
|
|
1686
1716
|
const loading = navigation.state === "loading";
|
|
1687
|
-
return /* @__PURE__ */
|
|
1688
|
-
/* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ jsx9(KeybindProvider, { shortcuts: globalShortcuts, children: /* @__PURE__ */ jsxs4("div", { className: "relative flex h-screen flex-col items-start overflow-hidden lg:flex-row", children: [
|
|
1718
|
+
/* @__PURE__ */ jsx9(NavigationBar, { loading }),
|
|
1689
1719
|
/* @__PURE__ */ jsxs4("div", { children: [
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */
|
|
1720
|
+
/* @__PURE__ */ jsx9(MobileSidebarContainer, { children }),
|
|
1721
|
+
/* @__PURE__ */ jsx9(DesktopSidebarContainer, { children })
|
|
1692
1722
|
] }),
|
|
1693
1723
|
/* @__PURE__ */ jsxs4("div", { className: "flex h-screen w-full flex-col overflow-auto", children: [
|
|
1694
|
-
/* @__PURE__ */
|
|
1695
|
-
/* @__PURE__ */
|
|
1724
|
+
/* @__PURE__ */ jsx9(Topbar, {}),
|
|
1725
|
+
/* @__PURE__ */ jsx9(
|
|
1696
1726
|
"main",
|
|
1697
1727
|
{
|
|
1698
1728
|
className: clx3(
|
|
@@ -1702,8 +1732,8 @@ var Shell = ({ children }) => {
|
|
|
1702
1732
|
}
|
|
1703
1733
|
),
|
|
1704
1734
|
children: /* @__PURE__ */ jsxs4(Gutter, { children: [
|
|
1705
|
-
/* @__PURE__ */
|
|
1706
|
-
/* @__PURE__ */
|
|
1735
|
+
/* @__PURE__ */ jsx9(StoreSetupWidget, {}),
|
|
1736
|
+
/* @__PURE__ */ jsx9(Outlet2, {})
|
|
1707
1737
|
] })
|
|
1708
1738
|
}
|
|
1709
1739
|
)
|
|
@@ -1725,10 +1755,10 @@ var NavigationBar = ({ loading }) => {
|
|
|
1725
1755
|
clearTimeout(timeout);
|
|
1726
1756
|
};
|
|
1727
1757
|
}, [loading]);
|
|
1728
|
-
return /* @__PURE__ */
|
|
1758
|
+
return /* @__PURE__ */ jsx9("div", { className: "fixed inset-x-0 top-0 z-50 h-1", children: /* @__PURE__ */ jsx9(AnimatePresence, { children: showBar ? /* @__PURE__ */ jsx9(ProgressBar, {}) : null }) });
|
|
1729
1759
|
};
|
|
1730
1760
|
var Gutter = ({ children }) => {
|
|
1731
|
-
return /* @__PURE__ */
|
|
1761
|
+
return /* @__PURE__ */ jsx9("div", { className: "flex w-full max-w-[1600px] flex-col gap-y-2 p-3", children });
|
|
1732
1762
|
};
|
|
1733
1763
|
var Breadcrumbs = () => {
|
|
1734
1764
|
const matches = useMatches();
|
|
@@ -1747,7 +1777,7 @@ var Breadcrumbs = () => {
|
|
|
1747
1777
|
path: match.pathname
|
|
1748
1778
|
};
|
|
1749
1779
|
}).filter(Boolean);
|
|
1750
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ jsx9(
|
|
1751
1781
|
"ol",
|
|
1752
1782
|
{
|
|
1753
1783
|
className: clx3(
|
|
@@ -1757,7 +1787,7 @@ var Breadcrumbs = () => {
|
|
|
1757
1787
|
const isLast = index === crumbs.length - 1;
|
|
1758
1788
|
const isSingle = crumbs.length === 1;
|
|
1759
1789
|
return /* @__PURE__ */ jsxs4("li", { className: clx3("flex items-center"), children: [
|
|
1760
|
-
!isLast ? /* @__PURE__ */
|
|
1790
|
+
!isLast ? /* @__PURE__ */ jsx9(
|
|
1761
1791
|
Link,
|
|
1762
1792
|
{
|
|
1763
1793
|
className: "transition-fg hover:text-ui-fg-subtle",
|
|
@@ -1765,8 +1795,8 @@ var Breadcrumbs = () => {
|
|
|
1765
1795
|
children: crumb.label
|
|
1766
1796
|
}
|
|
1767
1797
|
) : /* @__PURE__ */ jsxs4("div", { children: [
|
|
1768
|
-
!isSingle && /* @__PURE__ */
|
|
1769
|
-
/* @__PURE__ */
|
|
1798
|
+
!isSingle && /* @__PURE__ */ jsx9("span", { className: "block lg:hidden", children: "..." }),
|
|
1799
|
+
/* @__PURE__ */ jsx9(
|
|
1770
1800
|
"span",
|
|
1771
1801
|
{
|
|
1772
1802
|
className: clx3({
|
|
@@ -1777,7 +1807,7 @@ var Breadcrumbs = () => {
|
|
|
1777
1807
|
index
|
|
1778
1808
|
)
|
|
1779
1809
|
] }),
|
|
1780
|
-
!isLast && /* @__PURE__ */
|
|
1810
|
+
!isLast && /* @__PURE__ */ jsx9("span", { className: "mx-2", children: /* @__PURE__ */ jsx9(TriangleRightMini, { className: "rtl:rotate-180" }) })
|
|
1781
1811
|
] }, index);
|
|
1782
1812
|
})
|
|
1783
1813
|
}
|
|
@@ -1786,24 +1816,24 @@ var Breadcrumbs = () => {
|
|
|
1786
1816
|
var ToggleSidebar = () => {
|
|
1787
1817
|
const { toggle } = useSidebar();
|
|
1788
1818
|
return /* @__PURE__ */ jsxs4("div", { children: [
|
|
1789
|
-
/* @__PURE__ */
|
|
1819
|
+
/* @__PURE__ */ jsx9(
|
|
1790
1820
|
IconButton2,
|
|
1791
1821
|
{
|
|
1792
1822
|
className: "hidden lg:flex",
|
|
1793
1823
|
variant: "transparent",
|
|
1794
1824
|
onClick: () => toggle("desktop"),
|
|
1795
1825
|
size: "small",
|
|
1796
|
-
children: /* @__PURE__ */
|
|
1826
|
+
children: /* @__PURE__ */ jsx9(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
|
|
1797
1827
|
}
|
|
1798
1828
|
),
|
|
1799
|
-
/* @__PURE__ */
|
|
1829
|
+
/* @__PURE__ */ jsx9(
|
|
1800
1830
|
IconButton2,
|
|
1801
1831
|
{
|
|
1802
1832
|
className: "hidden max-lg:flex",
|
|
1803
1833
|
variant: "transparent",
|
|
1804
1834
|
onClick: () => toggle("mobile"),
|
|
1805
1835
|
size: "small",
|
|
1806
|
-
children: /* @__PURE__ */
|
|
1836
|
+
children: /* @__PURE__ */ jsx9(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
|
|
1807
1837
|
}
|
|
1808
1838
|
)
|
|
1809
1839
|
] });
|
|
@@ -1812,15 +1842,15 @@ var Topbar = () => {
|
|
|
1812
1842
|
const TopbarActions = components.TopbarActions;
|
|
1813
1843
|
return /* @__PURE__ */ jsxs4("div", { className: "grid w-full grid-cols-2 border-b p-3", children: [
|
|
1814
1844
|
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-1.5", children: [
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ jsx9(ToggleSidebar, {}),
|
|
1846
|
+
/* @__PURE__ */ jsx9(Breadcrumbs, {})
|
|
1817
1847
|
] }),
|
|
1818
|
-
/* @__PURE__ */
|
|
1848
|
+
/* @__PURE__ */ jsx9("div", { className: "flex items-center justify-end gap-x-3", children: TopbarActions && /* @__PURE__ */ jsx9(TopbarActions, {}) })
|
|
1819
1849
|
] });
|
|
1820
1850
|
};
|
|
1821
1851
|
var DesktopSidebarContainer = ({ children }) => {
|
|
1822
1852
|
const { desktop } = useSidebar();
|
|
1823
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ jsx9(
|
|
1824
1854
|
"div",
|
|
1825
1855
|
{
|
|
1826
1856
|
className: clx3("hidden h-screen w-[220px] border-e", {
|
|
@@ -1833,8 +1863,8 @@ var DesktopSidebarContainer = ({ children }) => {
|
|
|
1833
1863
|
var MobileSidebarContainer = ({ children }) => {
|
|
1834
1864
|
const { t: t2 } = useTranslation5();
|
|
1835
1865
|
const { mobile, toggle } = useSidebar();
|
|
1836
|
-
return /* @__PURE__ */
|
|
1837
|
-
/* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ jsx9(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs4(RadixDialog2.Portal, { children: [
|
|
1867
|
+
/* @__PURE__ */ jsx9(
|
|
1838
1868
|
RadixDialog2.Overlay,
|
|
1839
1869
|
{
|
|
1840
1870
|
className: clx3(
|
|
@@ -1852,17 +1882,17 @@ var MobileSidebarContainer = ({ children }) => {
|
|
|
1852
1882
|
),
|
|
1853
1883
|
children: [
|
|
1854
1884
|
/* @__PURE__ */ jsxs4("div", { className: "p-3", children: [
|
|
1855
|
-
/* @__PURE__ */
|
|
1885
|
+
/* @__PURE__ */ jsx9(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx9(
|
|
1856
1886
|
IconButton2,
|
|
1857
1887
|
{
|
|
1858
1888
|
size: "small",
|
|
1859
1889
|
variant: "transparent",
|
|
1860
1890
|
className: "text-ui-fg-subtle",
|
|
1861
|
-
children: /* @__PURE__ */
|
|
1891
|
+
children: /* @__PURE__ */ jsx9(XMark, {})
|
|
1862
1892
|
}
|
|
1863
1893
|
) }),
|
|
1864
|
-
/* @__PURE__ */
|
|
1865
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ jsx9(RadixDialog2.Title, { className: "sr-only", children: t2("app.nav.accessibility.title") }),
|
|
1895
|
+
/* @__PURE__ */ jsx9(RadixDialog2.Description, { className: "sr-only", children: t2("app.nav.accessibility.description") })
|
|
1866
1896
|
] }),
|
|
1867
1897
|
children
|
|
1868
1898
|
]
|
|
@@ -1883,7 +1913,7 @@ var StoreSetupWidget = () => {
|
|
|
1883
1913
|
if (!StoreSetup || !seller || !isTopLevelRoute(location.pathname)) {
|
|
1884
1914
|
return null;
|
|
1885
1915
|
}
|
|
1886
|
-
return /* @__PURE__ */
|
|
1916
|
+
return /* @__PURE__ */ jsx9(StoreSetup, { seller });
|
|
1887
1917
|
};
|
|
1888
1918
|
|
|
1889
1919
|
// src/components/layout/main-layout/main-layout.tsx
|
|
@@ -1915,7 +1945,7 @@ import { Dialog as RadixDialog3 } from "radix-ui";
|
|
|
1915
1945
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
1916
1946
|
import { useState as useState10 } from "react";
|
|
1917
1947
|
import { Link as Link2, useLocation as useLocation6, useNavigate as useNavigate3 } from "react-router-dom";
|
|
1918
|
-
import { jsx as
|
|
1948
|
+
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1919
1949
|
var UserMenu = () => {
|
|
1920
1950
|
const { t: t2 } = useTranslation6();
|
|
1921
1951
|
const location = useLocation6();
|
|
@@ -1928,35 +1958,35 @@ var UserMenu = () => {
|
|
|
1928
1958
|
};
|
|
1929
1959
|
return /* @__PURE__ */ jsxs5("div", { children: [
|
|
1930
1960
|
/* @__PURE__ */ jsxs5(DropdownMenu2, { dir: direction, open: openMenu, onOpenChange: setOpenMenu, children: [
|
|
1931
|
-
/* @__PURE__ */
|
|
1961
|
+
/* @__PURE__ */ jsx10(UserBadge, {}),
|
|
1932
1962
|
/* @__PURE__ */ jsxs5(DropdownMenu2.Content, { className: "min-w-[var(--radix-dropdown-menu-trigger-width)] max-w-[var(--radix-dropdown-menu-trigger-width)]", children: [
|
|
1933
|
-
/* @__PURE__ */
|
|
1934
|
-
/* @__PURE__ */
|
|
1935
|
-
/* @__PURE__ */
|
|
1936
|
-
/* @__PURE__ */
|
|
1963
|
+
/* @__PURE__ */ jsx10(UserItem, {}),
|
|
1964
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.Separator, {}),
|
|
1965
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.Item, { asChild: true, children: /* @__PURE__ */ jsxs5(Link2, { to: "/settings/profile", state: { from: location.pathname }, children: [
|
|
1966
|
+
/* @__PURE__ */ jsx10(UserIcon, { className: "text-ui-fg-subtle me-2" }),
|
|
1937
1967
|
t2("app.menus.user.profileSettings")
|
|
1938
1968
|
] }) }),
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
/* @__PURE__ */
|
|
1941
|
-
/* @__PURE__ */
|
|
1969
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.Separator, {}),
|
|
1970
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.Item, { asChild: true, children: /* @__PURE__ */ jsxs5(Link2, { to: "https://docs.mercurjs.com/welcome", target: "_blank", children: [
|
|
1971
|
+
/* @__PURE__ */ jsx10(BookOpen, { className: "text-ui-fg-subtle me-2" }),
|
|
1942
1972
|
t2("app.menus.user.documentation")
|
|
1943
1973
|
] }) }),
|
|
1944
|
-
/* @__PURE__ */
|
|
1945
|
-
/* @__PURE__ */
|
|
1974
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.Item, { asChild: true, children: /* @__PURE__ */ jsxs5(Link2, { to: "https://www.mercurjs.com/updates", target: "_blank", children: [
|
|
1975
|
+
/* @__PURE__ */ jsx10(TimelineVertical, { className: "text-ui-fg-subtle me-2" }),
|
|
1946
1976
|
t2("app.menus.user.changelog")
|
|
1947
1977
|
] }) }),
|
|
1948
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.Separator, {}),
|
|
1949
1979
|
/* @__PURE__ */ jsxs5(DropdownMenu2.Item, { onClick: toggleModal, children: [
|
|
1950
|
-
/* @__PURE__ */
|
|
1980
|
+
/* @__PURE__ */ jsx10(Keyboard, { className: "text-ui-fg-subtle me-2" }),
|
|
1951
1981
|
t2("app.menus.user.shortcuts")
|
|
1952
1982
|
] }),
|
|
1953
|
-
/* @__PURE__ */
|
|
1954
|
-
/* @__PURE__ */
|
|
1955
|
-
/* @__PURE__ */
|
|
1956
|
-
/* @__PURE__ */
|
|
1983
|
+
/* @__PURE__ */ jsx10(ThemeToggle, {}),
|
|
1984
|
+
/* @__PURE__ */ jsx10(LanguageToggle, {}),
|
|
1985
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.Separator, {}),
|
|
1986
|
+
/* @__PURE__ */ jsx10(Logout, {})
|
|
1957
1987
|
] })
|
|
1958
1988
|
] }),
|
|
1959
|
-
/* @__PURE__ */
|
|
1989
|
+
/* @__PURE__ */ jsx10(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
|
|
1960
1990
|
] });
|
|
1961
1991
|
};
|
|
1962
1992
|
var UserBadge = () => {
|
|
@@ -1967,14 +1997,14 @@ var UserBadge = () => {
|
|
|
1967
1997
|
const fallback = displayName ? displayName[0].toUpperCase() : null;
|
|
1968
1998
|
if (isPending) {
|
|
1969
1999
|
return /* @__PURE__ */ jsxs5("button", { className: "shadow-borders-base flex max-w-[192px] select-none items-center gap-x-2 overflow-hidden text-ellipsis whitespace-nowrap rounded-full py-1 ps-1 pe-2.5", children: [
|
|
1970
|
-
/* @__PURE__ */
|
|
1971
|
-
/* @__PURE__ */
|
|
2000
|
+
/* @__PURE__ */ jsx10(Skeleton, { className: "h-5 w-5 rounded-full" }),
|
|
2001
|
+
/* @__PURE__ */ jsx10(Skeleton, { className: "h-[9px] w-[70px]" })
|
|
1972
2002
|
] });
|
|
1973
2003
|
}
|
|
1974
2004
|
if (isError) {
|
|
1975
2005
|
throw error;
|
|
1976
2006
|
}
|
|
1977
|
-
return /* @__PURE__ */
|
|
2007
|
+
return /* @__PURE__ */ jsx10("div", { className: "p-3", children: /* @__PURE__ */ jsxs5(
|
|
1978
2008
|
DropdownMenu2.Trigger,
|
|
1979
2009
|
{
|
|
1980
2010
|
disabled: !member,
|
|
@@ -1985,8 +2015,8 @@ var UserBadge = () => {
|
|
|
1985
2015
|
"focus-visible:shadow-borders-focus"
|
|
1986
2016
|
),
|
|
1987
2017
|
children: [
|
|
1988
|
-
/* @__PURE__ */
|
|
1989
|
-
/* @__PURE__ */
|
|
2018
|
+
/* @__PURE__ */ jsx10("div", { className: "flex size-6 items-center justify-center", children: fallback ? /* @__PURE__ */ jsx10(Avatar, { size: "xsmall", fallback }) : /* @__PURE__ */ jsx10(Skeleton, { className: "h-6 w-6 rounded-full" }) }),
|
|
2019
|
+
/* @__PURE__ */ jsx10("div", { className: "flex items-center overflow-hidden", children: displayName ? /* @__PURE__ */ jsx10(
|
|
1990
2020
|
Text3,
|
|
1991
2021
|
{
|
|
1992
2022
|
size: "xsmall",
|
|
@@ -1995,8 +2025,8 @@ var UserBadge = () => {
|
|
|
1995
2025
|
className: "truncate",
|
|
1996
2026
|
children: displayName
|
|
1997
2027
|
}
|
|
1998
|
-
) : /* @__PURE__ */
|
|
1999
|
-
/* @__PURE__ */
|
|
2028
|
+
) : /* @__PURE__ */ jsx10(Skeleton, { className: "h-[9px] w-[70px]" }) }),
|
|
2029
|
+
/* @__PURE__ */ jsx10(EllipsisHorizontal, { className: "text-ui-fg-muted" })
|
|
2000
2030
|
]
|
|
2001
2031
|
}
|
|
2002
2032
|
) });
|
|
@@ -2011,13 +2041,13 @@ var ThemeToggle = () => {
|
|
|
2011
2041
|
dir: "ltr",
|
|
2012
2042
|
className: "rounded-md rtl:rotate-180",
|
|
2013
2043
|
children: [
|
|
2014
|
-
/* @__PURE__ */
|
|
2015
|
-
/* @__PURE__ */
|
|
2044
|
+
/* @__PURE__ */ jsx10(CircleHalfSolid, { className: "text-ui-fg-subtle me-2" }),
|
|
2045
|
+
/* @__PURE__ */ jsx10("span", { className: "rtl:rotate-180", children: t2("app.menus.user.theme.label") })
|
|
2016
2046
|
]
|
|
2017
2047
|
}
|
|
2018
2048
|
),
|
|
2019
|
-
/* @__PURE__ */
|
|
2020
|
-
/* @__PURE__ */
|
|
2049
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.SubMenuContent, { children: /* @__PURE__ */ jsxs5(DropdownMenu2.RadioGroup, { value: theme, children: [
|
|
2050
|
+
/* @__PURE__ */ jsx10(
|
|
2021
2051
|
DropdownMenu2.RadioItem,
|
|
2022
2052
|
{
|
|
2023
2053
|
value: "system",
|
|
@@ -2028,7 +2058,7 @@ var ThemeToggle = () => {
|
|
|
2028
2058
|
children: t2("app.menus.user.theme.system")
|
|
2029
2059
|
}
|
|
2030
2060
|
),
|
|
2031
|
-
/* @__PURE__ */
|
|
2061
|
+
/* @__PURE__ */ jsx10(
|
|
2032
2062
|
DropdownMenu2.RadioItem,
|
|
2033
2063
|
{
|
|
2034
2064
|
value: "light",
|
|
@@ -2039,7 +2069,7 @@ var ThemeToggle = () => {
|
|
|
2039
2069
|
children: t2("app.menus.user.theme.light")
|
|
2040
2070
|
}
|
|
2041
2071
|
),
|
|
2042
|
-
/* @__PURE__ */
|
|
2072
|
+
/* @__PURE__ */ jsx10(
|
|
2043
2073
|
DropdownMenu2.RadioItem,
|
|
2044
2074
|
{
|
|
2045
2075
|
value: "dark",
|
|
@@ -2068,12 +2098,12 @@ var LanguageToggle = () => {
|
|
|
2068
2098
|
dir: "ltr",
|
|
2069
2099
|
className: "rounded-md rtl:rotate-180",
|
|
2070
2100
|
children: [
|
|
2071
|
-
/* @__PURE__ */
|
|
2072
|
-
/* @__PURE__ */
|
|
2101
|
+
/* @__PURE__ */ jsx10(GlobeEurope, { className: "text-ui-fg-subtle me-2" }),
|
|
2102
|
+
/* @__PURE__ */ jsx10("span", { className: "rtl:rotate-180", children: currentLanguage?.display_name ?? t2("profile.fields.languageLabel") })
|
|
2073
2103
|
]
|
|
2074
2104
|
}
|
|
2075
2105
|
),
|
|
2076
|
-
/* @__PURE__ */
|
|
2106
|
+
/* @__PURE__ */ jsx10(DropdownMenu2.SubMenuContent, { className: "max-h-[300px] overflow-y-auto", children: /* @__PURE__ */ jsx10(DropdownMenu2.RadioGroup, { value: i18n.language, children: sortedLanguages.map((language) => /* @__PURE__ */ jsx10(
|
|
2077
2107
|
DropdownMenu2.RadioItem,
|
|
2078
2108
|
{
|
|
2079
2109
|
value: language.code,
|
|
@@ -2099,9 +2129,9 @@ var Logout = () => {
|
|
|
2099
2129
|
}
|
|
2100
2130
|
});
|
|
2101
2131
|
};
|
|
2102
|
-
return /* @__PURE__ */
|
|
2103
|
-
/* @__PURE__ */
|
|
2104
|
-
/* @__PURE__ */
|
|
2132
|
+
return /* @__PURE__ */ jsx10(DropdownMenu2.Item, { onClick: handleLogout, children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", children: [
|
|
2133
|
+
/* @__PURE__ */ jsx10(OpenRectArrowOut, { className: "text-ui-fg-subtle" }),
|
|
2134
|
+
/* @__PURE__ */ jsx10("span", { children: t2("app.menus.actions.logout") })
|
|
2105
2135
|
] }) });
|
|
2106
2136
|
};
|
|
2107
2137
|
var GlobalKeybindsModal = (props) => {
|
|
@@ -2111,21 +2141,21 @@ var GlobalKeybindsModal = (props) => {
|
|
|
2111
2141
|
const searchResults = searchValue ? globalShortcuts.filter((shortcut) => {
|
|
2112
2142
|
return shortcut.label.toLowerCase().includes(searchValue?.toLowerCase());
|
|
2113
2143
|
}) : globalShortcuts;
|
|
2114
|
-
return /* @__PURE__ */
|
|
2115
|
-
/* @__PURE__ */
|
|
2144
|
+
return /* @__PURE__ */ jsx10(RadixDialog3.Root, { ...props, children: /* @__PURE__ */ jsxs5(RadixDialog3.Portal, { children: [
|
|
2145
|
+
/* @__PURE__ */ jsx10(RadixDialog3.Overlay, { className: "bg-ui-bg-overlay fixed inset-0" }),
|
|
2116
2146
|
/* @__PURE__ */ jsxs5(RadixDialog3.Content, { className: "bg-ui-bg-subtle shadow-elevation-modal fixed left-[50%] top-[50%] flex h-full max-h-[612px] w-full max-w-[560px] translate-x-[-50%] translate-y-[-50%] flex-col divide-y overflow-hidden rounded-lg", children: [
|
|
2117
2147
|
/* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-y-3 px-6 py-4", children: [
|
|
2118
2148
|
/* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", children: [
|
|
2119
2149
|
/* @__PURE__ */ jsxs5("div", { children: [
|
|
2120
|
-
/* @__PURE__ */
|
|
2121
|
-
/* @__PURE__ */
|
|
2150
|
+
/* @__PURE__ */ jsx10(RadixDialog3.Title, { asChild: true, children: /* @__PURE__ */ jsx10(Heading, { children: t2("app.menus.user.shortcuts") }) }),
|
|
2151
|
+
/* @__PURE__ */ jsx10(RadixDialog3.Description, { className: "sr-only" })
|
|
2122
2152
|
] }),
|
|
2123
2153
|
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", children: [
|
|
2124
|
-
/* @__PURE__ */
|
|
2125
|
-
/* @__PURE__ */
|
|
2154
|
+
/* @__PURE__ */ jsx10(Kbd3, { children: "esc" }),
|
|
2155
|
+
/* @__PURE__ */ jsx10(RadixDialog3.Close, { asChild: true, children: /* @__PURE__ */ jsx10(IconButton3, { variant: "transparent", size: "small", children: /* @__PURE__ */ jsx10(XMark2, {}) }) })
|
|
2126
2156
|
] })
|
|
2127
2157
|
] }),
|
|
2128
|
-
/* @__PURE__ */
|
|
2158
|
+
/* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10(
|
|
2129
2159
|
Input,
|
|
2130
2160
|
{
|
|
2131
2161
|
type: "search",
|
|
@@ -2134,17 +2164,17 @@ var GlobalKeybindsModal = (props) => {
|
|
|
2134
2164
|
}
|
|
2135
2165
|
) })
|
|
2136
2166
|
] }),
|
|
2137
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsx10("div", { className: "flex flex-col divide-y overflow-y-auto", children: searchResults.map((shortcut, index) => {
|
|
2138
2168
|
return /* @__PURE__ */ jsxs5(
|
|
2139
2169
|
"div",
|
|
2140
2170
|
{
|
|
2141
2171
|
className: "text-ui-fg-subtle flex items-center justify-between px-6 py-3",
|
|
2142
2172
|
children: [
|
|
2143
|
-
/* @__PURE__ */
|
|
2144
|
-
/* @__PURE__ */
|
|
2173
|
+
/* @__PURE__ */ jsx10(Text3, { size: "small", children: shortcut.label }),
|
|
2174
|
+
/* @__PURE__ */ jsx10("div", { className: "flex items-center gap-x-1", children: shortcut.keys.Mac?.map((key, index2) => {
|
|
2145
2175
|
return /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-1", children: [
|
|
2146
|
-
/* @__PURE__ */
|
|
2147
|
-
index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */
|
|
2176
|
+
/* @__PURE__ */ jsx10(Kbd3, { children: key }),
|
|
2177
|
+
index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx10("span", { className: "txt-compact-xsmall text-ui-fg-subtle", children: t2("app.keyboardShortcuts.then") })
|
|
2148
2178
|
] }, index2);
|
|
2149
2179
|
}) })
|
|
2150
2180
|
]
|
|
@@ -2160,7 +2190,7 @@ var UserItem = () => {
|
|
|
2160
2190
|
const member = seller_member?.member;
|
|
2161
2191
|
const loaded = !isPending && !!member;
|
|
2162
2192
|
if (!loaded) {
|
|
2163
|
-
return /* @__PURE__ */
|
|
2193
|
+
return /* @__PURE__ */ jsx10("div", {});
|
|
2164
2194
|
}
|
|
2165
2195
|
const fullName = [member.first_name, member.last_name].filter(Boolean).join(" ").trim();
|
|
2166
2196
|
const displayName = fullName || member.email;
|
|
@@ -2170,9 +2200,9 @@ var UserItem = () => {
|
|
|
2170
2200
|
throw error;
|
|
2171
2201
|
}
|
|
2172
2202
|
return /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-3 overflow-hidden px-2 py-1", children: [
|
|
2173
|
-
/* @__PURE__ */
|
|
2203
|
+
/* @__PURE__ */ jsx10(Avatar, { size: "small", variant: "rounded", fallback }),
|
|
2174
2204
|
/* @__PURE__ */ jsxs5("div", { className: "block w-full min-w-0 max-w-[187px] overflow-hidden whitespace-nowrap", children: [
|
|
2175
|
-
/* @__PURE__ */
|
|
2205
|
+
/* @__PURE__ */ jsx10(
|
|
2176
2206
|
Text3,
|
|
2177
2207
|
{
|
|
2178
2208
|
size: "small",
|
|
@@ -2182,7 +2212,7 @@ var UserItem = () => {
|
|
|
2182
2212
|
children: displayName
|
|
2183
2213
|
}
|
|
2184
2214
|
),
|
|
2185
|
-
!!email && displayName !== email && /* @__PURE__ */
|
|
2215
|
+
!!email && displayName !== email && /* @__PURE__ */ jsx10(
|
|
2186
2216
|
Text3,
|
|
2187
2217
|
{
|
|
2188
2218
|
size: "xsmall",
|
|
@@ -2204,7 +2234,7 @@ import { ExclamationCircle } from "@medusajs/icons";
|
|
|
2204
2234
|
import { Text as Text4 } from "@medusajs/ui";
|
|
2205
2235
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
2206
2236
|
import { Navigate as Navigate2, useLocation as useLocation7, useRouteError } from "react-router-dom";
|
|
2207
|
-
import { jsx as
|
|
2237
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2208
2238
|
var ErrorBoundary = () => {
|
|
2209
2239
|
const error = useRouteError();
|
|
2210
2240
|
const location = useLocation7();
|
|
@@ -2212,7 +2242,7 @@ var ErrorBoundary = () => {
|
|
|
2212
2242
|
let code = null;
|
|
2213
2243
|
if (isClientError(error)) {
|
|
2214
2244
|
if (error.status === 401) {
|
|
2215
|
-
return /* @__PURE__ */
|
|
2245
|
+
return /* @__PURE__ */ jsx11(Navigate2, { to: "/login", state: { from: location }, replace: true });
|
|
2216
2246
|
}
|
|
2217
2247
|
code = error.status ?? null;
|
|
2218
2248
|
}
|
|
@@ -2239,11 +2269,11 @@ var ErrorBoundary = () => {
|
|
|
2239
2269
|
message = t2("errorBoundary.defaultMessage");
|
|
2240
2270
|
break;
|
|
2241
2271
|
}
|
|
2242
|
-
return /* @__PURE__ */
|
|
2243
|
-
/* @__PURE__ */
|
|
2272
|
+
return /* @__PURE__ */ jsx11("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx11("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs6("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
|
|
2273
|
+
/* @__PURE__ */ jsx11(ExclamationCircle, {}),
|
|
2244
2274
|
/* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
/* @__PURE__ */
|
|
2275
|
+
/* @__PURE__ */ jsx11(Text4, { size: "small", leading: "compact", weight: "plus", children: title }),
|
|
2276
|
+
/* @__PURE__ */ jsx11(
|
|
2247
2277
|
Text4,
|
|
2248
2278
|
{
|
|
2249
2279
|
size: "small",
|
|
@@ -2396,10 +2426,10 @@ var getNestedMenuItems = (menuItems, parentPath) => {
|
|
|
2396
2426
|
};
|
|
2397
2427
|
|
|
2398
2428
|
// src/components/layout/main-layout/main-layout.tsx
|
|
2399
|
-
import { Fragment as Fragment2, jsx as
|
|
2429
|
+
import { Fragment as Fragment2, jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2400
2430
|
var MainLayout = () => {
|
|
2401
2431
|
const Sidebar = components2.MainSidebar ? components2.MainSidebar : MainSidebar;
|
|
2402
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ jsx12(Shell, { children: /* @__PURE__ */ jsx12(Sidebar, {}) });
|
|
2403
2433
|
};
|
|
2404
2434
|
var allMenuItems = menuItemsModule.menuItems ?? [];
|
|
2405
2435
|
var addNestedItems = (to, items) => {
|
|
@@ -2426,25 +2456,25 @@ var MainSidebar = () => {
|
|
|
2426
2456
|
return {
|
|
2427
2457
|
label: item.label,
|
|
2428
2458
|
to: item.path,
|
|
2429
|
-
icon: Icon2 ? /* @__PURE__ */
|
|
2459
|
+
icon: Icon2 ? /* @__PURE__ */ jsx12(Icon2, {}) : void 0,
|
|
2430
2460
|
translationNs: item.translationNs,
|
|
2431
2461
|
items: addNestedItems(item.path)
|
|
2432
2462
|
};
|
|
2433
2463
|
});
|
|
2434
|
-
return /* @__PURE__ */
|
|
2464
|
+
return /* @__PURE__ */ jsx12("aside", { className: "flex flex-1 flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
|
|
2435
2465
|
/* @__PURE__ */ jsxs7("div", { className: "bg-ui-bg-subtle sticky top-0", children: [
|
|
2436
|
-
/* @__PURE__ */
|
|
2437
|
-
/* @__PURE__ */
|
|
2466
|
+
/* @__PURE__ */ jsx12(Header, {}),
|
|
2467
|
+
/* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsx12(Divider, { variant: "dashed" }) })
|
|
2438
2468
|
] }),
|
|
2439
2469
|
/* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col justify-between", children: [
|
|
2440
|
-
/* @__PURE__ */
|
|
2441
|
-
/* @__PURE__ */
|
|
2470
|
+
/* @__PURE__ */ jsx12("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs7("nav", { className: "flex flex-col gap-y-1 py-3", children: [
|
|
2471
|
+
/* @__PURE__ */ jsx12(Searchbar, {}),
|
|
2442
2472
|
routesWithNested.map((route) => {
|
|
2443
|
-
return /* @__PURE__ */
|
|
2473
|
+
return /* @__PURE__ */ jsx12(NavItem, { ...route }, route.to);
|
|
2444
2474
|
}),
|
|
2445
|
-
customRoutesWithNested.map((route) => /* @__PURE__ */
|
|
2475
|
+
customRoutesWithNested.map((route) => /* @__PURE__ */ jsx12(NavItem, { ...route }, route.to))
|
|
2446
2476
|
] }) }),
|
|
2447
|
-
/* @__PURE__ */
|
|
2477
|
+
/* @__PURE__ */ jsx12(UtilitySection, {})
|
|
2448
2478
|
] })
|
|
2449
2479
|
] }) });
|
|
2450
2480
|
};
|
|
@@ -2460,7 +2490,7 @@ var StoreList = ({ currentSellerId }) => {
|
|
|
2460
2490
|
navigate("/", { replace: true });
|
|
2461
2491
|
};
|
|
2462
2492
|
return /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
2463
|
-
!!seller_members?.length && /* @__PURE__ */
|
|
2493
|
+
!!seller_members?.length && /* @__PURE__ */ jsx12(DropdownMenu3.RadioGroup, { value: currentSellerId, children: seller_members.map((member) => {
|
|
2464
2494
|
const seller = member.seller;
|
|
2465
2495
|
return /* @__PURE__ */ jsxs7(
|
|
2466
2496
|
DropdownMenu3.RadioItem,
|
|
@@ -2472,7 +2502,7 @@ var StoreList = ({ currentSellerId }) => {
|
|
|
2472
2502
|
},
|
|
2473
2503
|
className: "gap-x-2",
|
|
2474
2504
|
children: [
|
|
2475
|
-
/* @__PURE__ */
|
|
2505
|
+
/* @__PURE__ */ jsx12(
|
|
2476
2506
|
Avatar2,
|
|
2477
2507
|
{
|
|
2478
2508
|
variant: "squared",
|
|
@@ -2480,7 +2510,7 @@ var StoreList = ({ currentSellerId }) => {
|
|
|
2480
2510
|
fallback: seller.name.charAt(0).toUpperCase()
|
|
2481
2511
|
}
|
|
2482
2512
|
),
|
|
2483
|
-
/* @__PURE__ */
|
|
2513
|
+
/* @__PURE__ */ jsx12(
|
|
2484
2514
|
Text5,
|
|
2485
2515
|
{
|
|
2486
2516
|
size: "small",
|
|
@@ -2495,7 +2525,7 @@ var StoreList = ({ currentSellerId }) => {
|
|
|
2495
2525
|
seller.id
|
|
2496
2526
|
);
|
|
2497
2527
|
}) }),
|
|
2498
|
-
!!seller_members?.length && /* @__PURE__ */
|
|
2528
|
+
!!seller_members?.length && /* @__PURE__ */ jsx12(DropdownMenu3.Separator, {}),
|
|
2499
2529
|
/* @__PURE__ */ jsxs7(
|
|
2500
2530
|
DropdownMenu3.Item,
|
|
2501
2531
|
{
|
|
@@ -2504,8 +2534,8 @@ var StoreList = ({ currentSellerId }) => {
|
|
|
2504
2534
|
}),
|
|
2505
2535
|
className: "gap-x-2",
|
|
2506
2536
|
children: [
|
|
2507
|
-
/* @__PURE__ */
|
|
2508
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ jsx12(Plus2, { className: "text-ui-fg-subtle" }),
|
|
2538
|
+
/* @__PURE__ */ jsx12(Text5, { size: "small", weight: "plus", leading: "compact", children: t2("storeSelect.addNewStore") })
|
|
2509
2539
|
]
|
|
2510
2540
|
}
|
|
2511
2541
|
)
|
|
@@ -2521,7 +2551,7 @@ var Header = () => {
|
|
|
2521
2551
|
if (isError) {
|
|
2522
2552
|
throw error;
|
|
2523
2553
|
}
|
|
2524
|
-
return /* @__PURE__ */
|
|
2554
|
+
return /* @__PURE__ */ jsx12("div", { className: "w-full p-3", children: /* @__PURE__ */ jsxs7(DropdownMenu3, { dir: direction, children: [
|
|
2525
2555
|
/* @__PURE__ */ jsxs7(
|
|
2526
2556
|
DropdownMenu3.Trigger,
|
|
2527
2557
|
{
|
|
@@ -2533,8 +2563,8 @@ var Header = () => {
|
|
|
2533
2563
|
"focus-visible:shadow-borders-focus"
|
|
2534
2564
|
),
|
|
2535
2565
|
children: [
|
|
2536
|
-
fallback ? /* @__PURE__ */
|
|
2537
|
-
/* @__PURE__ */
|
|
2566
|
+
fallback ? /* @__PURE__ */ jsx12(Avatar2, { variant: "squared", size: "xsmall", fallback }) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-6 rounded-md" }),
|
|
2567
|
+
/* @__PURE__ */ jsx12("div", { className: "block overflow-hidden text-start", children: name ? /* @__PURE__ */ jsx12(
|
|
2538
2568
|
Text5,
|
|
2539
2569
|
{
|
|
2540
2570
|
size: "small",
|
|
@@ -2543,16 +2573,16 @@ var Header = () => {
|
|
|
2543
2573
|
className: "truncate",
|
|
2544
2574
|
children: seller_member.seller.name
|
|
2545
2575
|
}
|
|
2546
|
-
) : /* @__PURE__ */
|
|
2547
|
-
/* @__PURE__ */
|
|
2576
|
+
) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[120px]" }) }),
|
|
2577
|
+
/* @__PURE__ */ jsx12(EllipsisHorizontal2, { className: "text-ui-fg-muted" })
|
|
2548
2578
|
]
|
|
2549
2579
|
}
|
|
2550
2580
|
),
|
|
2551
2581
|
isLoaded && /* @__PURE__ */ jsxs7(DropdownMenu3.Content, { className: "w-[var(--radix-dropdown-menu-trigger-width)] min-w-0", children: [
|
|
2552
2582
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-3 px-2 py-1", children: [
|
|
2553
|
-
/* @__PURE__ */
|
|
2583
|
+
/* @__PURE__ */ jsx12(Avatar2, { variant: "squared", size: "small", fallback }),
|
|
2554
2584
|
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col overflow-hidden", children: [
|
|
2555
|
-
/* @__PURE__ */
|
|
2585
|
+
/* @__PURE__ */ jsx12(
|
|
2556
2586
|
Text5,
|
|
2557
2587
|
{
|
|
2558
2588
|
size: "small",
|
|
@@ -2562,7 +2592,7 @@ var Header = () => {
|
|
|
2562
2592
|
children: name
|
|
2563
2593
|
}
|
|
2564
2594
|
),
|
|
2565
|
-
/* @__PURE__ */
|
|
2595
|
+
/* @__PURE__ */ jsx12(
|
|
2566
2596
|
Text5,
|
|
2567
2597
|
{
|
|
2568
2598
|
size: "xsmall",
|
|
@@ -2573,8 +2603,8 @@ var Header = () => {
|
|
|
2573
2603
|
)
|
|
2574
2604
|
] })
|
|
2575
2605
|
] }),
|
|
2576
|
-
/* @__PURE__ */
|
|
2577
|
-
/* @__PURE__ */
|
|
2606
|
+
/* @__PURE__ */ jsx12(DropdownMenu3.Separator, {}),
|
|
2607
|
+
/* @__PURE__ */ jsx12(StoreList, { currentSellerId: seller_member.seller.id })
|
|
2578
2608
|
] })
|
|
2579
2609
|
] }) });
|
|
2580
2610
|
};
|
|
@@ -2582,7 +2612,7 @@ var useCoreRoutes = () => {
|
|
|
2582
2612
|
const { t: t2 } = useTranslation8();
|
|
2583
2613
|
return [
|
|
2584
2614
|
{
|
|
2585
|
-
icon: /* @__PURE__ */
|
|
2615
|
+
icon: /* @__PURE__ */ jsx12(ShoppingCart, {}),
|
|
2586
2616
|
label: t2("orders.domain"),
|
|
2587
2617
|
to: "/orders",
|
|
2588
2618
|
items: [
|
|
@@ -2594,10 +2624,14 @@ var useCoreRoutes = () => {
|
|
|
2594
2624
|
]
|
|
2595
2625
|
},
|
|
2596
2626
|
{
|
|
2597
|
-
icon: /* @__PURE__ */
|
|
2627
|
+
icon: /* @__PURE__ */ jsx12(Tag, {}),
|
|
2598
2628
|
label: t2("products.domain"),
|
|
2599
2629
|
to: "/products",
|
|
2600
2630
|
items: [
|
|
2631
|
+
{
|
|
2632
|
+
label: t2("offers.domain"),
|
|
2633
|
+
to: "/offers"
|
|
2634
|
+
},
|
|
2601
2635
|
{
|
|
2602
2636
|
label: t2("collections.domain"),
|
|
2603
2637
|
to: "/collections"
|
|
@@ -2614,19 +2648,19 @@ var useCoreRoutes = () => {
|
|
|
2614
2648
|
]
|
|
2615
2649
|
},
|
|
2616
2650
|
{
|
|
2617
|
-
icon: /* @__PURE__ */
|
|
2651
|
+
icon: /* @__PURE__ */ jsx12(Buildings, {}),
|
|
2618
2652
|
label: t2("inventory.domain"),
|
|
2619
2653
|
to: "/inventory",
|
|
2620
2654
|
items: []
|
|
2621
2655
|
},
|
|
2622
2656
|
{
|
|
2623
|
-
icon: /* @__PURE__ */
|
|
2657
|
+
icon: /* @__PURE__ */ jsx12(Users, {}),
|
|
2624
2658
|
label: t2("customers.domain"),
|
|
2625
2659
|
to: "/customers",
|
|
2626
2660
|
items: []
|
|
2627
2661
|
},
|
|
2628
2662
|
{
|
|
2629
|
-
icon: /* @__PURE__ */
|
|
2663
|
+
icon: /* @__PURE__ */ jsx12(ReceiptPercent, {}),
|
|
2630
2664
|
label: t2("promotions.domain"),
|
|
2631
2665
|
to: "/promotions",
|
|
2632
2666
|
items: [
|
|
@@ -2637,12 +2671,12 @@ var useCoreRoutes = () => {
|
|
|
2637
2671
|
]
|
|
2638
2672
|
},
|
|
2639
2673
|
{
|
|
2640
|
-
icon: /* @__PURE__ */
|
|
2674
|
+
icon: /* @__PURE__ */ jsx12(CurrencyDollar, {}),
|
|
2641
2675
|
label: t2("priceLists.domain"),
|
|
2642
2676
|
to: "/price-lists"
|
|
2643
2677
|
},
|
|
2644
2678
|
{
|
|
2645
|
-
icon: /* @__PURE__ */
|
|
2679
|
+
icon: /* @__PURE__ */ jsx12(CreditCardRefresh, {}),
|
|
2646
2680
|
label: t2("payouts.domain"),
|
|
2647
2681
|
to: "/payouts"
|
|
2648
2682
|
}
|
|
@@ -2651,7 +2685,7 @@ var useCoreRoutes = () => {
|
|
|
2651
2685
|
var Searchbar = () => {
|
|
2652
2686
|
const { t: t2 } = useTranslation8();
|
|
2653
2687
|
const { toggleSearch } = useSearch();
|
|
2654
|
-
return /* @__PURE__ */
|
|
2688
|
+
return /* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsxs7(
|
|
2655
2689
|
"button",
|
|
2656
2690
|
{
|
|
2657
2691
|
onClick: toggleSearch,
|
|
@@ -2661,9 +2695,9 @@ var Searchbar = () => {
|
|
|
2661
2695
|
"focus-visible:shadow-borders-focus"
|
|
2662
2696
|
),
|
|
2663
2697
|
children: [
|
|
2664
|
-
/* @__PURE__ */
|
|
2665
|
-
/* @__PURE__ */
|
|
2666
|
-
/* @__PURE__ */
|
|
2698
|
+
/* @__PURE__ */ jsx12(MagnifyingGlass2, {}),
|
|
2699
|
+
/* @__PURE__ */ jsx12("div", { className: "flex-1 text-start", children: /* @__PURE__ */ jsx12(Text5, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
|
|
2700
|
+
/* @__PURE__ */ jsx12(Text5, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: "\u2318K" })
|
|
2667
2701
|
]
|
|
2668
2702
|
}
|
|
2669
2703
|
) });
|
|
@@ -2672,25 +2706,25 @@ var UtilitySection = () => {
|
|
|
2672
2706
|
const location = useLocation8();
|
|
2673
2707
|
const { t: t2 } = useTranslation8();
|
|
2674
2708
|
return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col", children: [
|
|
2675
|
-
/* @__PURE__ */
|
|
2709
|
+
/* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx12(
|
|
2676
2710
|
NavItem,
|
|
2677
2711
|
{
|
|
2678
2712
|
label: t2("app.nav.settings.header"),
|
|
2679
2713
|
to: "/settings",
|
|
2680
2714
|
from: location.pathname,
|
|
2681
|
-
icon: /* @__PURE__ */
|
|
2715
|
+
icon: /* @__PURE__ */ jsx12(CogSixTooth, {})
|
|
2682
2716
|
}
|
|
2683
2717
|
) }),
|
|
2684
|
-
/* @__PURE__ */
|
|
2685
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsx12(Divider, { variant: "dashed" }) }),
|
|
2719
|
+
/* @__PURE__ */ jsx12(UserMenu, {})
|
|
2686
2720
|
] });
|
|
2687
2721
|
};
|
|
2688
2722
|
|
|
2689
2723
|
// src/components/layout/public-layout/public-layout.tsx
|
|
2690
2724
|
import { Outlet as Outlet3 } from "react-router-dom";
|
|
2691
|
-
import { jsx as
|
|
2725
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
2692
2726
|
var PublicLayout = () => {
|
|
2693
|
-
return /* @__PURE__ */
|
|
2727
|
+
return /* @__PURE__ */ jsx13(Outlet3, {});
|
|
2694
2728
|
};
|
|
2695
2729
|
|
|
2696
2730
|
// src/components/layout/settings-layout/settings-layout.tsx
|
|
@@ -2702,10 +2736,10 @@ import { useTranslation as useTranslation9 } from "react-i18next";
|
|
|
2702
2736
|
import { Link as Link3, useLocation as useLocation9 } from "react-router-dom";
|
|
2703
2737
|
import components3 from "virtual:mercur/components";
|
|
2704
2738
|
import menuItemsModule2 from "virtual:mercur/menu-items";
|
|
2705
|
-
import { jsx as
|
|
2739
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2706
2740
|
var SettingsLayout = () => {
|
|
2707
2741
|
const Sidebar = components3.SettingsSidebar ? components3.SettingsSidebar : SettingsSidebar;
|
|
2708
|
-
return /* @__PURE__ */
|
|
2742
|
+
return /* @__PURE__ */ jsx14(Shell, { children: /* @__PURE__ */ jsx14(Sidebar, {}) });
|
|
2709
2743
|
};
|
|
2710
2744
|
var allMenuItems2 = menuItemsModule2.menuItems ?? [];
|
|
2711
2745
|
var customSettingsItems = getMenuItemsByType(allMenuItems2, "settings");
|
|
@@ -2758,18 +2792,18 @@ var SettingsSidebar = () => {
|
|
|
2758
2792
|
const { t: t2 } = useTranslation9();
|
|
2759
2793
|
return /* @__PURE__ */ jsxs8("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
|
|
2760
2794
|
/* @__PURE__ */ jsxs8("div", { className: "bg-ui-bg-subtle sticky top-0", children: [
|
|
2761
|
-
/* @__PURE__ */
|
|
2762
|
-
/* @__PURE__ */
|
|
2795
|
+
/* @__PURE__ */ jsx14(Header2, {}),
|
|
2796
|
+
/* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) })
|
|
2763
2797
|
] }),
|
|
2764
2798
|
/* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col", children: [
|
|
2765
|
-
/* @__PURE__ */
|
|
2799
|
+
/* @__PURE__ */ jsx14("div", { className: "flex flex-1 flex-col overflow-y-auto", children: /* @__PURE__ */ jsx14(
|
|
2766
2800
|
RadixCollapsibleSection,
|
|
2767
2801
|
{
|
|
2768
2802
|
label: t2("app.nav.settings.general"),
|
|
2769
2803
|
items: generalRoutes
|
|
2770
2804
|
}
|
|
2771
2805
|
) }),
|
|
2772
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ jsx14("div", { className: "bg-ui-bg-subtle sticky bottom-0", children: /* @__PURE__ */ jsx14(UserSection, {}) })
|
|
2773
2807
|
] })
|
|
2774
2808
|
] });
|
|
2775
2809
|
};
|
|
@@ -2782,7 +2816,7 @@ var Header2 = () => {
|
|
|
2782
2816
|
setFrom(getSafeFromValue(location.state.from));
|
|
2783
2817
|
}
|
|
2784
2818
|
}, [location]);
|
|
2785
|
-
return /* @__PURE__ */
|
|
2819
|
+
return /* @__PURE__ */ jsx14("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx14(
|
|
2786
2820
|
Link3,
|
|
2787
2821
|
{
|
|
2788
2822
|
to: from,
|
|
@@ -2793,8 +2827,8 @@ var Header2 = () => {
|
|
|
2793
2827
|
"focus-visible:shadow-borders-focus"
|
|
2794
2828
|
),
|
|
2795
2829
|
children: /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
|
|
2796
|
-
/* @__PURE__ */
|
|
2797
|
-
/* @__PURE__ */
|
|
2830
|
+
/* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx14(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
|
|
2831
|
+
/* @__PURE__ */ jsx14(Text6, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
|
|
2798
2832
|
] })
|
|
2799
2833
|
}
|
|
2800
2834
|
) });
|
|
@@ -2804,22 +2838,22 @@ var RadixCollapsibleSection = ({
|
|
|
2804
2838
|
items
|
|
2805
2839
|
}) => {
|
|
2806
2840
|
return /* @__PURE__ */ jsxs8(RadixCollapsible2.Root, { defaultOpen: true, className: "py-3", children: [
|
|
2807
|
-
/* @__PURE__ */
|
|
2808
|
-
/* @__PURE__ */
|
|
2809
|
-
/* @__PURE__ */
|
|
2841
|
+
/* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsxs8("div", { className: "text-ui-fg-muted flex h-7 items-center justify-between px-2", children: [
|
|
2842
|
+
/* @__PURE__ */ jsx14(Text6, { size: "small", leading: "compact", children: label }),
|
|
2843
|
+
/* @__PURE__ */ jsx14(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx14(IconButton4, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx14(MinusMini, { className: "text-ui-fg-muted" }) }) })
|
|
2810
2844
|
] }) }),
|
|
2811
|
-
/* @__PURE__ */
|
|
2845
|
+
/* @__PURE__ */ jsx14(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx14("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx14("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx14(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
|
|
2812
2846
|
] });
|
|
2813
2847
|
};
|
|
2814
2848
|
var UserSection = () => {
|
|
2815
2849
|
return /* @__PURE__ */ jsxs8("div", { children: [
|
|
2816
|
-
/* @__PURE__ */
|
|
2817
|
-
/* @__PURE__ */
|
|
2850
|
+
/* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
|
|
2851
|
+
/* @__PURE__ */ jsx14(UserMenu, {})
|
|
2818
2852
|
] });
|
|
2819
2853
|
};
|
|
2820
2854
|
|
|
2821
2855
|
// src/get-route-map.tsx
|
|
2822
|
-
import { jsx as
|
|
2856
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
2823
2857
|
function mergeRoutes(baseRoutes, customRoutes2) {
|
|
2824
2858
|
const result = baseRoutes.map((route) => ({ ...route }));
|
|
2825
2859
|
for (const customRoute of customRoutes2) {
|
|
@@ -2849,27 +2883,27 @@ function getRouteMap({
|
|
|
2849
2883
|
return [
|
|
2850
2884
|
// PROTECTED - MAIN LAYOUT
|
|
2851
2885
|
{
|
|
2852
|
-
element: /* @__PURE__ */
|
|
2853
|
-
errorElement: /* @__PURE__ */
|
|
2886
|
+
element: /* @__PURE__ */ jsx15(ProtectedRoute, {}),
|
|
2887
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
2854
2888
|
children: [
|
|
2855
2889
|
{
|
|
2856
|
-
element: /* @__PURE__ */
|
|
2890
|
+
element: /* @__PURE__ */ jsx15(MainLayout, {}),
|
|
2857
2891
|
children: mergeRoutes(
|
|
2858
2892
|
[
|
|
2859
2893
|
{
|
|
2860
2894
|
path: "/",
|
|
2861
|
-
errorElement: /* @__PURE__ */
|
|
2895
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
2862
2896
|
lazy: () => import("./home-I3OILW5Z.js")
|
|
2863
2897
|
},
|
|
2864
2898
|
{
|
|
2865
2899
|
path: "/products",
|
|
2866
|
-
errorElement: /* @__PURE__ */
|
|
2900
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
2867
2901
|
handle: { breadcrumb: () => t("products.domain") },
|
|
2868
2902
|
children: [
|
|
2869
2903
|
{
|
|
2870
2904
|
path: "",
|
|
2871
2905
|
lazy: async () => {
|
|
2872
|
-
const { ProductListPage } = await import("./products-
|
|
2906
|
+
const { ProductListPage } = await import("./products-CPTRYL2Z.js");
|
|
2873
2907
|
return {
|
|
2874
2908
|
Component: ProductListPage
|
|
2875
2909
|
};
|
|
@@ -2878,28 +2912,24 @@ function getRouteMap({
|
|
|
2878
2912
|
{
|
|
2879
2913
|
path: "create",
|
|
2880
2914
|
lazy: async () => {
|
|
2881
|
-
const { ProductCreatePage } = await import("./create-
|
|
2915
|
+
const { ProductCreatePage } = await import("./create-HVZYJ3YC.js");
|
|
2882
2916
|
return {
|
|
2883
2917
|
Component: ProductCreatePage
|
|
2884
2918
|
};
|
|
2885
2919
|
}
|
|
2886
|
-
},
|
|
2887
|
-
{
|
|
2888
|
-
path: "bulk-edit",
|
|
2889
|
-
lazy: () => import("./bulk-edit-3SMBLIOA.js")
|
|
2890
2920
|
}
|
|
2891
2921
|
]
|
|
2892
2922
|
},
|
|
2893
2923
|
{
|
|
2894
2924
|
path: ":id",
|
|
2895
2925
|
lazy: async () => {
|
|
2896
|
-
const { loader } = await import("./[id]-
|
|
2897
|
-
const { Breadcrumb } = await import("./breadcrumb-
|
|
2926
|
+
const { loader } = await import("./[id]-B4YZTANM.js");
|
|
2927
|
+
const { Breadcrumb } = await import("./breadcrumb-FPWBT76A.js");
|
|
2898
2928
|
return {
|
|
2899
2929
|
Component: Outlet4,
|
|
2900
2930
|
loader,
|
|
2901
2931
|
handle: {
|
|
2902
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
2932
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
2903
2933
|
}
|
|
2904
2934
|
};
|
|
2905
2935
|
},
|
|
@@ -2907,7 +2937,7 @@ function getRouteMap({
|
|
|
2907
2937
|
{
|
|
2908
2938
|
path: "",
|
|
2909
2939
|
lazy: async () => {
|
|
2910
|
-
const { ProductDetailPage } = await import("./[id]-
|
|
2940
|
+
const { ProductDetailPage } = await import("./[id]-B4YZTANM.js");
|
|
2911
2941
|
return {
|
|
2912
2942
|
Component: ProductDetailPage
|
|
2913
2943
|
};
|
|
@@ -2915,65 +2945,53 @@ function getRouteMap({
|
|
|
2915
2945
|
children: [
|
|
2916
2946
|
{
|
|
2917
2947
|
path: "edit",
|
|
2918
|
-
lazy: () => import("./edit-
|
|
2948
|
+
lazy: () => import("./edit-OKU6FMHJ.js")
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
path: "edit-variant",
|
|
2952
|
+
lazy: () => import("./product-variant-edit-WZNO4CQX.js")
|
|
2919
2953
|
},
|
|
2920
2954
|
{
|
|
2921
2955
|
path: "sales-channels",
|
|
2922
|
-
lazy: () => import("./sales-channels-
|
|
2956
|
+
lazy: () => import("./sales-channels-U55MUDQP.js")
|
|
2923
2957
|
},
|
|
2924
2958
|
{
|
|
2925
2959
|
path: "organization",
|
|
2926
|
-
lazy: () => import("./organization-
|
|
2960
|
+
lazy: () => import("./organization-XO3T2K2X.js")
|
|
2927
2961
|
},
|
|
2928
2962
|
{
|
|
2929
2963
|
path: "media",
|
|
2930
|
-
lazy: () => import("./media-
|
|
2964
|
+
lazy: () => import("./media-Z4N5MKFG.js")
|
|
2931
2965
|
},
|
|
2932
2966
|
{
|
|
2933
2967
|
path: "attributes",
|
|
2934
|
-
lazy: () => import("./attributes-
|
|
2968
|
+
lazy: () => import("./attributes-SZP2MM5L.js")
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
path: "attributes/create",
|
|
2972
|
+
lazy: () => import("./create-TKXH5KQY.js")
|
|
2935
2973
|
},
|
|
2936
2974
|
{
|
|
2937
2975
|
path: "attributes/add",
|
|
2938
|
-
lazy: () => import("./add-
|
|
2976
|
+
lazy: () => import("./add-RU3WL4YB.js")
|
|
2939
2977
|
},
|
|
2940
2978
|
{
|
|
2941
|
-
path: "
|
|
2942
|
-
lazy: () => import("./edit-
|
|
2979
|
+
path: "attributes/:attribute_id/edit",
|
|
2980
|
+
lazy: () => import("./edit-XSICGAVO.js")
|
|
2943
2981
|
},
|
|
2944
2982
|
{
|
|
2945
2983
|
path: "metadata",
|
|
2946
|
-
lazy: () => import("./metadata-
|
|
2984
|
+
lazy: () => import("./metadata-YVHJPDLD.js")
|
|
2947
2985
|
},
|
|
2948
2986
|
{
|
|
2949
2987
|
path: "shipping-profile",
|
|
2950
|
-
lazy: () => import("./shipping-profile-
|
|
2951
|
-
},
|
|
2952
|
-
{
|
|
2953
|
-
path: "prices",
|
|
2954
|
-
lazy: () => import("./prices-3OXV5RGY.js")
|
|
2955
|
-
},
|
|
2956
|
-
{
|
|
2957
|
-
path: "options/create",
|
|
2958
|
-
lazy: () => import("./create-I7HV3RM6.js")
|
|
2959
|
-
},
|
|
2960
|
-
{
|
|
2961
|
-
path: "options/:option_id/edit",
|
|
2962
|
-
lazy: () => import("./edit-K2AD335I.js")
|
|
2988
|
+
lazy: () => import("./shipping-profile-ZP7M6VSS.js")
|
|
2963
2989
|
},
|
|
2964
2990
|
{
|
|
2965
2991
|
path: "variants/create",
|
|
2966
|
-
lazy: () => import("./create-
|
|
2992
|
+
lazy: () => import("./create-7R6CZU53.js")
|
|
2967
2993
|
}
|
|
2968
2994
|
]
|
|
2969
|
-
},
|
|
2970
|
-
{
|
|
2971
|
-
path: "stock",
|
|
2972
|
-
lazy: () => import("./stock-GPC3BCL6.js")
|
|
2973
|
-
},
|
|
2974
|
-
{
|
|
2975
|
-
path: "edit-stocks-and-prices",
|
|
2976
|
-
lazy: () => import("./edit-stocks-and-prices-MHHQFWFA.js")
|
|
2977
2995
|
}
|
|
2978
2996
|
]
|
|
2979
2997
|
}
|
|
@@ -2982,26 +3000,26 @@ function getRouteMap({
|
|
|
2982
3000
|
// ORDERS
|
|
2983
3001
|
{
|
|
2984
3002
|
path: "/orders",
|
|
2985
|
-
errorElement: /* @__PURE__ */
|
|
3003
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
2986
3004
|
handle: { breadcrumb: () => t("orders.domain") },
|
|
2987
3005
|
children: [
|
|
2988
3006
|
{
|
|
2989
3007
|
path: "",
|
|
2990
3008
|
lazy: async () => {
|
|
2991
|
-
const { OrderListPage } = await import("./orders-
|
|
3009
|
+
const { OrderListPage } = await import("./orders-TVQDR4OJ.js");
|
|
2992
3010
|
return { Component: OrderListPage };
|
|
2993
3011
|
}
|
|
2994
3012
|
},
|
|
2995
3013
|
{
|
|
2996
3014
|
path: ":id",
|
|
2997
3015
|
lazy: async () => {
|
|
2998
|
-
const { loader } = await import("./[id]-
|
|
2999
|
-
const { Breadcrumb } = await import("./breadcrumb-
|
|
3016
|
+
const { loader } = await import("./[id]-A55T2ORL.js");
|
|
3017
|
+
const { Breadcrumb } = await import("./breadcrumb-PBR27GGX.js");
|
|
3000
3018
|
return {
|
|
3001
3019
|
Component: Outlet4,
|
|
3002
3020
|
loader,
|
|
3003
3021
|
handle: {
|
|
3004
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3022
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3005
3023
|
}
|
|
3006
3024
|
};
|
|
3007
3025
|
},
|
|
@@ -3009,21 +3027,45 @@ function getRouteMap({
|
|
|
3009
3027
|
{
|
|
3010
3028
|
path: "",
|
|
3011
3029
|
lazy: async () => {
|
|
3012
|
-
const { OrderDetailPage } = await import("./[id]-
|
|
3030
|
+
const { OrderDetailPage } = await import("./[id]-A55T2ORL.js");
|
|
3013
3031
|
return { Component: OrderDetailPage };
|
|
3014
3032
|
},
|
|
3015
3033
|
children: [
|
|
3016
3034
|
{
|
|
3017
3035
|
path: "fulfillment",
|
|
3018
|
-
lazy: () => import("./fulfillment-
|
|
3036
|
+
lazy: () => import("./fulfillment-76IVZ266.js")
|
|
3019
3037
|
},
|
|
3020
3038
|
{
|
|
3021
3039
|
path: "allocate-items",
|
|
3022
|
-
lazy: () => import("./allocate-items-
|
|
3040
|
+
lazy: () => import("./allocate-items-TCM5A55Y.js")
|
|
3023
3041
|
},
|
|
3024
3042
|
{
|
|
3025
3043
|
path: ":f_id/create-shipment",
|
|
3026
|
-
lazy: () => import("./shipment-
|
|
3044
|
+
lazy: () => import("./shipment-HWQHMX2L.js")
|
|
3045
|
+
},
|
|
3046
|
+
{
|
|
3047
|
+
path: "returns/create",
|
|
3048
|
+
lazy: () => import("./create-F5R76QML.js")
|
|
3049
|
+
},
|
|
3050
|
+
{
|
|
3051
|
+
path: "returns/:return_id/receive",
|
|
3052
|
+
lazy: () => import("./receive-224KLULH.js")
|
|
3053
|
+
},
|
|
3054
|
+
{
|
|
3055
|
+
path: "refund",
|
|
3056
|
+
lazy: () => import("./refund-IGMSXQNX.js")
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
path: "edit",
|
|
3060
|
+
lazy: () => import("./edit-VVLITC2E.js")
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
path: "exchanges/create",
|
|
3064
|
+
lazy: () => import("./create-GGACODDN.js")
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
path: "claims/create",
|
|
3068
|
+
lazy: () => import("./create-FKRYB7ZS.js")
|
|
3027
3069
|
}
|
|
3028
3070
|
]
|
|
3029
3071
|
}
|
|
@@ -3034,13 +3076,13 @@ function getRouteMap({
|
|
|
3034
3076
|
// PAYOUTS
|
|
3035
3077
|
{
|
|
3036
3078
|
path: "/payouts",
|
|
3037
|
-
errorElement: /* @__PURE__ */
|
|
3079
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3038
3080
|
handle: { breadcrumb: () => "Payouts" },
|
|
3039
3081
|
children: [
|
|
3040
3082
|
{
|
|
3041
3083
|
path: "",
|
|
3042
3084
|
lazy: async () => {
|
|
3043
|
-
const { PayoutListPage } = await import("./payouts-
|
|
3085
|
+
const { PayoutListPage } = await import("./payouts-7Q7D4FET.js");
|
|
3044
3086
|
return { Component: PayoutListPage };
|
|
3045
3087
|
}
|
|
3046
3088
|
},
|
|
@@ -3051,7 +3093,7 @@ function getRouteMap({
|
|
|
3051
3093
|
return {
|
|
3052
3094
|
Component: Outlet4,
|
|
3053
3095
|
handle: {
|
|
3054
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3096
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3055
3097
|
}
|
|
3056
3098
|
};
|
|
3057
3099
|
},
|
|
@@ -3059,7 +3101,7 @@ function getRouteMap({
|
|
|
3059
3101
|
{
|
|
3060
3102
|
path: "",
|
|
3061
3103
|
lazy: async () => {
|
|
3062
|
-
const { PayoutDetailPage } = await import("./[id]-
|
|
3104
|
+
const { PayoutDetailPage } = await import("./[id]-YPCO3DJV.js");
|
|
3063
3105
|
return { Component: PayoutDetailPage };
|
|
3064
3106
|
}
|
|
3065
3107
|
}
|
|
@@ -3070,13 +3112,13 @@ function getRouteMap({
|
|
|
3070
3112
|
// CATEGORIES
|
|
3071
3113
|
{
|
|
3072
3114
|
path: "/categories",
|
|
3073
|
-
errorElement: /* @__PURE__ */
|
|
3115
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3074
3116
|
handle: { breadcrumb: () => t("categories.domain") },
|
|
3075
3117
|
children: [
|
|
3076
3118
|
{
|
|
3077
3119
|
path: "",
|
|
3078
3120
|
lazy: async () => {
|
|
3079
|
-
const { CategoryListPage } = await import("./categories-
|
|
3121
|
+
const { CategoryListPage } = await import("./categories-T4QJYX4R.js");
|
|
3080
3122
|
return {
|
|
3081
3123
|
Component: CategoryListPage
|
|
3082
3124
|
};
|
|
@@ -3084,20 +3126,20 @@ function getRouteMap({
|
|
|
3084
3126
|
children: [
|
|
3085
3127
|
{
|
|
3086
3128
|
path: "organize",
|
|
3087
|
-
lazy: () => import("./organize-
|
|
3129
|
+
lazy: () => import("./organize-5XRZWD5C.js")
|
|
3088
3130
|
}
|
|
3089
3131
|
]
|
|
3090
3132
|
},
|
|
3091
3133
|
{
|
|
3092
3134
|
path: ":id",
|
|
3093
3135
|
lazy: async () => {
|
|
3094
|
-
const { loader } = await import("./[id]-
|
|
3095
|
-
const { Breadcrumb } = await import("./breadcrumb-
|
|
3136
|
+
const { loader } = await import("./[id]-QOEO3JOV.js");
|
|
3137
|
+
const { Breadcrumb } = await import("./breadcrumb-TNJSGX4T.js");
|
|
3096
3138
|
return {
|
|
3097
3139
|
Component: Outlet4,
|
|
3098
3140
|
loader,
|
|
3099
3141
|
handle: {
|
|
3100
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3142
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3101
3143
|
}
|
|
3102
3144
|
};
|
|
3103
3145
|
},
|
|
@@ -3105,7 +3147,7 @@ function getRouteMap({
|
|
|
3105
3147
|
{
|
|
3106
3148
|
path: "",
|
|
3107
3149
|
lazy: async () => {
|
|
3108
|
-
const { CategoryDetailPage } = await import("./[id]-
|
|
3150
|
+
const { CategoryDetailPage } = await import("./[id]-QOEO3JOV.js");
|
|
3109
3151
|
return {
|
|
3110
3152
|
Component: CategoryDetailPage
|
|
3111
3153
|
};
|
|
@@ -3113,15 +3155,15 @@ function getRouteMap({
|
|
|
3113
3155
|
children: [
|
|
3114
3156
|
{
|
|
3115
3157
|
path: "products",
|
|
3116
|
-
lazy: () => import("./products-
|
|
3158
|
+
lazy: () => import("./products-BM3IIH5P.js")
|
|
3117
3159
|
},
|
|
3118
3160
|
{
|
|
3119
3161
|
path: "organize",
|
|
3120
|
-
lazy: () => import("./organize-
|
|
3162
|
+
lazy: () => import("./organize-Z7JTTDH4.js")
|
|
3121
3163
|
},
|
|
3122
3164
|
{
|
|
3123
3165
|
path: "metadata",
|
|
3124
|
-
lazy: () => import("./metadata-
|
|
3166
|
+
lazy: () => import("./metadata-REQIFWWH.js")
|
|
3125
3167
|
}
|
|
3126
3168
|
]
|
|
3127
3169
|
}
|
|
@@ -3132,13 +3174,13 @@ function getRouteMap({
|
|
|
3132
3174
|
// COLLECTIONS
|
|
3133
3175
|
{
|
|
3134
3176
|
path: "/collections",
|
|
3135
|
-
errorElement: /* @__PURE__ */
|
|
3177
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3136
3178
|
handle: { breadcrumb: () => t("collections.domain") },
|
|
3137
3179
|
children: [
|
|
3138
3180
|
{
|
|
3139
3181
|
path: "",
|
|
3140
3182
|
lazy: async () => {
|
|
3141
|
-
const { CollectionListPage } = await import("./collections-
|
|
3183
|
+
const { CollectionListPage } = await import("./collections-URH2TCWJ.js");
|
|
3142
3184
|
return {
|
|
3143
3185
|
Component: CollectionListPage
|
|
3144
3186
|
};
|
|
@@ -3147,13 +3189,13 @@ function getRouteMap({
|
|
|
3147
3189
|
{
|
|
3148
3190
|
path: ":id",
|
|
3149
3191
|
lazy: async () => {
|
|
3150
|
-
const { loader } = await import("./[id]-
|
|
3151
|
-
const { Breadcrumb } = await import("./breadcrumb-
|
|
3192
|
+
const { loader } = await import("./[id]-GBT6VB4S.js");
|
|
3193
|
+
const { Breadcrumb } = await import("./breadcrumb-KTARIL65.js");
|
|
3152
3194
|
return {
|
|
3153
3195
|
Component: Outlet4,
|
|
3154
3196
|
loader,
|
|
3155
3197
|
handle: {
|
|
3156
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3198
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3157
3199
|
}
|
|
3158
3200
|
};
|
|
3159
3201
|
},
|
|
@@ -3161,7 +3203,7 @@ function getRouteMap({
|
|
|
3161
3203
|
{
|
|
3162
3204
|
path: "",
|
|
3163
3205
|
lazy: async () => {
|
|
3164
|
-
const { CollectionDetailPage } = await import("./[id]-
|
|
3206
|
+
const { CollectionDetailPage } = await import("./[id]-GBT6VB4S.js");
|
|
3165
3207
|
return {
|
|
3166
3208
|
Component: CollectionDetailPage
|
|
3167
3209
|
};
|
|
@@ -3169,11 +3211,11 @@ function getRouteMap({
|
|
|
3169
3211
|
children: [
|
|
3170
3212
|
{
|
|
3171
3213
|
path: "add-products",
|
|
3172
|
-
lazy: () => import("./add-products-
|
|
3214
|
+
lazy: () => import("./add-products-Q4MMDQKT.js")
|
|
3173
3215
|
},
|
|
3174
3216
|
{
|
|
3175
3217
|
path: "metadata",
|
|
3176
|
-
lazy: () => import("./metadata-
|
|
3218
|
+
lazy: () => import("./metadata-NIDIBXJT.js")
|
|
3177
3219
|
}
|
|
3178
3220
|
]
|
|
3179
3221
|
}
|
|
@@ -3184,13 +3226,13 @@ function getRouteMap({
|
|
|
3184
3226
|
// CUSTOMERS
|
|
3185
3227
|
{
|
|
3186
3228
|
path: "/customers",
|
|
3187
|
-
errorElement: /* @__PURE__ */
|
|
3229
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3188
3230
|
handle: { breadcrumb: () => t("customers.domain") },
|
|
3189
3231
|
children: [
|
|
3190
3232
|
{
|
|
3191
3233
|
path: "",
|
|
3192
3234
|
lazy: async () => {
|
|
3193
|
-
const { CustomerListPage } = await import("./customers-
|
|
3235
|
+
const { CustomerListPage } = await import("./customers-SOLJ2KQQ.js");
|
|
3194
3236
|
return {
|
|
3195
3237
|
Component: CustomerListPage
|
|
3196
3238
|
};
|
|
@@ -3199,13 +3241,13 @@ function getRouteMap({
|
|
|
3199
3241
|
{
|
|
3200
3242
|
path: ":id",
|
|
3201
3243
|
lazy: async () => {
|
|
3202
|
-
const { loader } = await import("./[id]-
|
|
3244
|
+
const { loader } = await import("./[id]-FE5GYYVZ.js");
|
|
3203
3245
|
const { Breadcrumb } = await import("./breadcrumb-YBBYFQYG.js");
|
|
3204
3246
|
return {
|
|
3205
3247
|
Component: Outlet4,
|
|
3206
3248
|
loader,
|
|
3207
3249
|
handle: {
|
|
3208
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3250
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3209
3251
|
}
|
|
3210
3252
|
};
|
|
3211
3253
|
},
|
|
@@ -3213,7 +3255,7 @@ function getRouteMap({
|
|
|
3213
3255
|
{
|
|
3214
3256
|
path: "",
|
|
3215
3257
|
lazy: async () => {
|
|
3216
|
-
const { CustomerDetailPage } = await import("./[id]-
|
|
3258
|
+
const { CustomerDetailPage } = await import("./[id]-FE5GYYVZ.js");
|
|
3217
3259
|
return {
|
|
3218
3260
|
Component: CustomerDetailPage
|
|
3219
3261
|
};
|
|
@@ -3221,15 +3263,15 @@ function getRouteMap({
|
|
|
3221
3263
|
children: [
|
|
3222
3264
|
{
|
|
3223
3265
|
path: "edit",
|
|
3224
|
-
lazy: () => import("./edit-
|
|
3266
|
+
lazy: () => import("./edit-GQNIINRR.js")
|
|
3225
3267
|
},
|
|
3226
3268
|
{
|
|
3227
3269
|
path: "add-customer-groups",
|
|
3228
|
-
lazy: () => import("./add-customer-groups-
|
|
3270
|
+
lazy: () => import("./add-customer-groups-U5RZWW4B.js")
|
|
3229
3271
|
},
|
|
3230
3272
|
{
|
|
3231
3273
|
path: "metadata",
|
|
3232
|
-
lazy: () => import("./metadata-
|
|
3274
|
+
lazy: () => import("./metadata-5BPOBBU2.js")
|
|
3233
3275
|
}
|
|
3234
3276
|
]
|
|
3235
3277
|
}
|
|
@@ -3242,16 +3284,74 @@ function getRouteMap({
|
|
|
3242
3284
|
// path: "/customer-groups",
|
|
3243
3285
|
// ...
|
|
3244
3286
|
// },
|
|
3287
|
+
// OFFERS
|
|
3288
|
+
{
|
|
3289
|
+
path: "/offers",
|
|
3290
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3291
|
+
handle: { breadcrumb: () => t("offers.domain") },
|
|
3292
|
+
children: [
|
|
3293
|
+
{
|
|
3294
|
+
path: "",
|
|
3295
|
+
lazy: async () => {
|
|
3296
|
+
const { OfferListPage } = await import("./offers-GVN5LCK6.js");
|
|
3297
|
+
return { Component: OfferListPage };
|
|
3298
|
+
},
|
|
3299
|
+
children: [
|
|
3300
|
+
{
|
|
3301
|
+
path: "create",
|
|
3302
|
+
lazy: () => import("./offer-create-page-E4FLSDJQ.js")
|
|
3303
|
+
}
|
|
3304
|
+
]
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
path: ":id",
|
|
3308
|
+
lazy: async () => {
|
|
3309
|
+
const { loader } = await import("./loader-VDYPD3RI.js");
|
|
3310
|
+
const { Breadcrumb } = await import("./breadcrumb-THJ2HPRB.js");
|
|
3311
|
+
return {
|
|
3312
|
+
Component: Outlet4,
|
|
3313
|
+
loader,
|
|
3314
|
+
handle: {
|
|
3315
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3316
|
+
}
|
|
3317
|
+
};
|
|
3318
|
+
},
|
|
3319
|
+
children: [
|
|
3320
|
+
{
|
|
3321
|
+
path: "",
|
|
3322
|
+
lazy: async () => {
|
|
3323
|
+
const { OfferDetailPage } = await import("./offer-detail-page-6SIBQTLP.js");
|
|
3324
|
+
return { Component: OfferDetailPage };
|
|
3325
|
+
},
|
|
3326
|
+
children: [
|
|
3327
|
+
{
|
|
3328
|
+
path: "edit",
|
|
3329
|
+
lazy: () => import("./offer-edit-page-3MO566RP.js")
|
|
3330
|
+
},
|
|
3331
|
+
{
|
|
3332
|
+
path: "pricing",
|
|
3333
|
+
lazy: () => import("./offer-pricing-edit-page-4TINK42V.js")
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
path: "inventory",
|
|
3337
|
+
lazy: () => import("./offer-inventory-batch-page-BD6PMDLW.js")
|
|
3338
|
+
}
|
|
3339
|
+
]
|
|
3340
|
+
}
|
|
3341
|
+
]
|
|
3342
|
+
}
|
|
3343
|
+
]
|
|
3344
|
+
},
|
|
3245
3345
|
// INVENTORY
|
|
3246
3346
|
{
|
|
3247
3347
|
path: "/inventory",
|
|
3248
|
-
errorElement: /* @__PURE__ */
|
|
3348
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3249
3349
|
handle: { breadcrumb: () => t("inventory.domain") },
|
|
3250
3350
|
children: [
|
|
3251
3351
|
{
|
|
3252
3352
|
path: "",
|
|
3253
3353
|
lazy: async () => {
|
|
3254
|
-
const { InventoryListPage } = await import("./inventory-
|
|
3354
|
+
const { InventoryListPage } = await import("./inventory-WSFLTA6Z.js");
|
|
3255
3355
|
return {
|
|
3256
3356
|
Component: InventoryListPage
|
|
3257
3357
|
};
|
|
@@ -3259,24 +3359,24 @@ function getRouteMap({
|
|
|
3259
3359
|
children: [
|
|
3260
3360
|
{
|
|
3261
3361
|
path: "create",
|
|
3262
|
-
lazy: () => import("./create-
|
|
3362
|
+
lazy: () => import("./create-O35JRZEF.js")
|
|
3263
3363
|
},
|
|
3264
3364
|
{
|
|
3265
3365
|
path: "stock",
|
|
3266
|
-
lazy: () => import("./stock-
|
|
3366
|
+
lazy: () => import("./stock-MQA7PRO6.js")
|
|
3267
3367
|
}
|
|
3268
3368
|
]
|
|
3269
3369
|
},
|
|
3270
3370
|
{
|
|
3271
3371
|
path: ":id",
|
|
3272
3372
|
lazy: async () => {
|
|
3273
|
-
const { loader } = await import("./[id]-
|
|
3274
|
-
const { Breadcrumb } = await import("./breadcrumb-
|
|
3373
|
+
const { loader } = await import("./[id]-J6BZG5PU.js");
|
|
3374
|
+
const { Breadcrumb } = await import("./breadcrumb-2XA2WOK7.js");
|
|
3275
3375
|
return {
|
|
3276
3376
|
Component: Outlet4,
|
|
3277
3377
|
loader,
|
|
3278
3378
|
handle: {
|
|
3279
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3379
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3280
3380
|
}
|
|
3281
3381
|
};
|
|
3282
3382
|
},
|
|
@@ -3284,7 +3384,7 @@ function getRouteMap({
|
|
|
3284
3384
|
{
|
|
3285
3385
|
path: "",
|
|
3286
3386
|
lazy: async () => {
|
|
3287
|
-
const { InventoryDetailPage } = await import("./[id]-
|
|
3387
|
+
const { InventoryDetailPage } = await import("./[id]-J6BZG5PU.js");
|
|
3288
3388
|
return {
|
|
3289
3389
|
Component: InventoryDetailPage
|
|
3290
3390
|
};
|
|
@@ -3292,23 +3392,23 @@ function getRouteMap({
|
|
|
3292
3392
|
children: [
|
|
3293
3393
|
{
|
|
3294
3394
|
path: "edit",
|
|
3295
|
-
lazy: () => import("./edit-inventory-item-
|
|
3395
|
+
lazy: () => import("./edit-inventory-item-ZKXXL3QK.js")
|
|
3296
3396
|
},
|
|
3297
3397
|
{
|
|
3298
3398
|
path: "attributes",
|
|
3299
|
-
lazy: () => import("./edit-inventory-item-attributes-
|
|
3399
|
+
lazy: () => import("./edit-inventory-item-attributes-GSKUMORD.js")
|
|
3300
3400
|
},
|
|
3301
3401
|
{
|
|
3302
3402
|
path: "metadata",
|
|
3303
|
-
lazy: () => import("./metadata-
|
|
3403
|
+
lazy: () => import("./metadata-D6M66NQK.js")
|
|
3304
3404
|
},
|
|
3305
3405
|
{
|
|
3306
3406
|
path: "locations",
|
|
3307
|
-
lazy: () => import("./manage-locations-
|
|
3407
|
+
lazy: () => import("./manage-locations-XHH5DVIR.js")
|
|
3308
3408
|
},
|
|
3309
3409
|
{
|
|
3310
3410
|
path: "locations/:location_id",
|
|
3311
|
-
lazy: () => import("./adjust-inventory-
|
|
3411
|
+
lazy: () => import("./adjust-inventory-AFJLWF5R.js")
|
|
3312
3412
|
}
|
|
3313
3413
|
]
|
|
3314
3414
|
}
|
|
@@ -3319,13 +3419,13 @@ function getRouteMap({
|
|
|
3319
3419
|
// PROMOTIONS
|
|
3320
3420
|
{
|
|
3321
3421
|
path: "/promotions",
|
|
3322
|
-
errorElement: /* @__PURE__ */
|
|
3422
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3323
3423
|
handle: { breadcrumb: () => t("promotions.domain") },
|
|
3324
3424
|
children: [
|
|
3325
3425
|
{
|
|
3326
3426
|
path: "",
|
|
3327
3427
|
lazy: async () => {
|
|
3328
|
-
const { PromotionListPage } = await import("./promotions-
|
|
3428
|
+
const { PromotionListPage } = await import("./promotions-4336KI7E.js");
|
|
3329
3429
|
return {
|
|
3330
3430
|
Component: PromotionListPage
|
|
3331
3431
|
};
|
|
@@ -3333,20 +3433,20 @@ function getRouteMap({
|
|
|
3333
3433
|
children: [
|
|
3334
3434
|
{
|
|
3335
3435
|
path: "create",
|
|
3336
|
-
lazy: () => import("./create-
|
|
3436
|
+
lazy: () => import("./create-MS6KKFSV.js")
|
|
3337
3437
|
}
|
|
3338
3438
|
]
|
|
3339
3439
|
},
|
|
3340
3440
|
{
|
|
3341
3441
|
path: ":id",
|
|
3342
3442
|
lazy: async () => {
|
|
3343
|
-
const { loader } = await import("./[id]-
|
|
3443
|
+
const { loader } = await import("./[id]-U5KZEQDR.js");
|
|
3344
3444
|
const { Breadcrumb } = await import("./breadcrumb-UAUX7XCV.js");
|
|
3345
3445
|
return {
|
|
3346
3446
|
Component: Outlet4,
|
|
3347
3447
|
loader,
|
|
3348
3448
|
handle: {
|
|
3349
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3449
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3350
3450
|
}
|
|
3351
3451
|
};
|
|
3352
3452
|
},
|
|
@@ -3354,7 +3454,7 @@ function getRouteMap({
|
|
|
3354
3454
|
{
|
|
3355
3455
|
path: "",
|
|
3356
3456
|
lazy: async () => {
|
|
3357
|
-
const { PromotionDetailPage } = await import("./[id]-
|
|
3457
|
+
const { PromotionDetailPage } = await import("./[id]-U5KZEQDR.js");
|
|
3358
3458
|
return {
|
|
3359
3459
|
Component: PromotionDetailPage
|
|
3360
3460
|
};
|
|
@@ -3362,15 +3462,15 @@ function getRouteMap({
|
|
|
3362
3462
|
children: [
|
|
3363
3463
|
{
|
|
3364
3464
|
path: "edit",
|
|
3365
|
-
lazy: () => import("./edit-
|
|
3465
|
+
lazy: () => import("./edit-ZAHCMF5U.js")
|
|
3366
3466
|
},
|
|
3367
3467
|
{
|
|
3368
3468
|
path: "add-to-campaign",
|
|
3369
|
-
lazy: () => import("./add-to-campaign-
|
|
3469
|
+
lazy: () => import("./add-to-campaign-QKYQCSR2.js")
|
|
3370
3470
|
},
|
|
3371
3471
|
{
|
|
3372
3472
|
path: ":ruleType/edit",
|
|
3373
|
-
lazy: () => import("./edit-
|
|
3473
|
+
lazy: () => import("./edit-2R5QCPTB.js")
|
|
3374
3474
|
}
|
|
3375
3475
|
]
|
|
3376
3476
|
}
|
|
@@ -3381,13 +3481,13 @@ function getRouteMap({
|
|
|
3381
3481
|
// CAMPAIGNS
|
|
3382
3482
|
{
|
|
3383
3483
|
path: "/campaigns",
|
|
3384
|
-
errorElement: /* @__PURE__ */
|
|
3484
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3385
3485
|
handle: { breadcrumb: () => t("campaigns.domain") },
|
|
3386
3486
|
children: [
|
|
3387
3487
|
{
|
|
3388
3488
|
path: "",
|
|
3389
3489
|
lazy: async () => {
|
|
3390
|
-
const { CampaignListPage } = await import("./campaigns-
|
|
3490
|
+
const { CampaignListPage } = await import("./campaigns-JAQTSA4Z.js");
|
|
3391
3491
|
return {
|
|
3392
3492
|
Component: CampaignListPage
|
|
3393
3493
|
};
|
|
@@ -3395,20 +3495,20 @@ function getRouteMap({
|
|
|
3395
3495
|
children: [
|
|
3396
3496
|
{
|
|
3397
3497
|
path: "create",
|
|
3398
|
-
lazy: () => import("./create-
|
|
3498
|
+
lazy: () => import("./create-5PSOIHIT.js")
|
|
3399
3499
|
}
|
|
3400
3500
|
]
|
|
3401
3501
|
},
|
|
3402
3502
|
{
|
|
3403
3503
|
path: ":id",
|
|
3404
3504
|
lazy: async () => {
|
|
3405
|
-
const { loader } = await import("./[id]-
|
|
3505
|
+
const { loader } = await import("./[id]-EKLRGVBA.js");
|
|
3406
3506
|
const { Breadcrumb } = await import("./breadcrumb-F3BN5753.js");
|
|
3407
3507
|
return {
|
|
3408
3508
|
Component: Outlet4,
|
|
3409
3509
|
loader,
|
|
3410
3510
|
handle: {
|
|
3411
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3511
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3412
3512
|
}
|
|
3413
3513
|
};
|
|
3414
3514
|
},
|
|
@@ -3416,7 +3516,7 @@ function getRouteMap({
|
|
|
3416
3516
|
{
|
|
3417
3517
|
path: "",
|
|
3418
3518
|
lazy: async () => {
|
|
3419
|
-
const { CampaignDetailPage } = await import("./[id]-
|
|
3519
|
+
const { CampaignDetailPage } = await import("./[id]-EKLRGVBA.js");
|
|
3420
3520
|
return {
|
|
3421
3521
|
Component: CampaignDetailPage
|
|
3422
3522
|
};
|
|
@@ -3424,20 +3524,20 @@ function getRouteMap({
|
|
|
3424
3524
|
children: [
|
|
3425
3525
|
{
|
|
3426
3526
|
path: "edit",
|
|
3427
|
-
lazy: () => import("./edit-
|
|
3527
|
+
lazy: () => import("./edit-C4OCKQVU.js")
|
|
3428
3528
|
},
|
|
3429
3529
|
{
|
|
3430
3530
|
path: "configuration",
|
|
3431
|
-
lazy: () => import("./configuration-
|
|
3531
|
+
lazy: () => import("./configuration-C4IGBNXH.js")
|
|
3432
3532
|
},
|
|
3433
3533
|
{
|
|
3434
3534
|
path: "edit-budget",
|
|
3435
|
-
lazy: () => import("./edit-budget-
|
|
3535
|
+
lazy: () => import("./edit-budget-L3CCEWNF.js")
|
|
3436
3536
|
},
|
|
3437
3537
|
{
|
|
3438
3538
|
path: "add-promotions",
|
|
3439
3539
|
lazy: async () => {
|
|
3440
|
-
const { AddPromotionsPage } = await import("./add-promotions-
|
|
3540
|
+
const { AddPromotionsPage } = await import("./add-promotions-3AYXQXTP.js");
|
|
3441
3541
|
return {
|
|
3442
3542
|
Component: AddPromotionsPage
|
|
3443
3543
|
};
|
|
@@ -3452,32 +3552,32 @@ function getRouteMap({
|
|
|
3452
3552
|
// PRICE LISTS
|
|
3453
3553
|
{
|
|
3454
3554
|
path: "/price-lists",
|
|
3455
|
-
errorElement: /* @__PURE__ */
|
|
3555
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3456
3556
|
handle: { breadcrumb: () => t("priceLists.domain") },
|
|
3457
3557
|
children: [
|
|
3458
3558
|
{
|
|
3459
3559
|
path: "",
|
|
3460
3560
|
lazy: async () => {
|
|
3461
|
-
const { PriceListListPage } = await import("./price-lists-
|
|
3561
|
+
const { PriceListListPage } = await import("./price-lists-6TFLA53G.js");
|
|
3462
3562
|
return { Component: PriceListListPage };
|
|
3463
3563
|
},
|
|
3464
3564
|
children: [
|
|
3465
3565
|
{
|
|
3466
3566
|
path: "create",
|
|
3467
|
-
lazy: () => import("./create-
|
|
3567
|
+
lazy: () => import("./create-JGYG5SBM.js")
|
|
3468
3568
|
}
|
|
3469
3569
|
]
|
|
3470
3570
|
},
|
|
3471
3571
|
{
|
|
3472
3572
|
path: ":id",
|
|
3473
3573
|
lazy: async () => {
|
|
3474
|
-
const { loader } = await import("./[id]-
|
|
3475
|
-
const { Breadcrumb } = await import("./breadcrumb-
|
|
3574
|
+
const { loader } = await import("./[id]-T5ECVBPF.js");
|
|
3575
|
+
const { Breadcrumb } = await import("./breadcrumb-IK6XCQOQ.js");
|
|
3476
3576
|
return {
|
|
3477
3577
|
Component: Outlet4,
|
|
3478
3578
|
loader,
|
|
3479
3579
|
handle: {
|
|
3480
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3580
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3481
3581
|
}
|
|
3482
3582
|
};
|
|
3483
3583
|
},
|
|
@@ -3485,29 +3585,29 @@ function getRouteMap({
|
|
|
3485
3585
|
{
|
|
3486
3586
|
path: "",
|
|
3487
3587
|
lazy: async () => {
|
|
3488
|
-
const { PriceListDetailPage } = await import("./[id]-
|
|
3588
|
+
const { PriceListDetailPage } = await import("./[id]-T5ECVBPF.js");
|
|
3489
3589
|
return { Component: PriceListDetailPage };
|
|
3490
3590
|
},
|
|
3491
3591
|
children: [
|
|
3492
3592
|
{
|
|
3493
3593
|
path: "edit",
|
|
3494
|
-
lazy: () => import("./edit-
|
|
3594
|
+
lazy: () => import("./edit-FXNXTVIW.js")
|
|
3495
3595
|
},
|
|
3496
3596
|
{
|
|
3497
3597
|
path: "configuration",
|
|
3498
|
-
lazy: () => import("./configuration-
|
|
3598
|
+
lazy: () => import("./configuration-7IYZ6GNP.js")
|
|
3499
3599
|
},
|
|
3500
3600
|
{
|
|
3501
3601
|
path: "products/add",
|
|
3502
|
-
lazy: () => import("./add-
|
|
3602
|
+
lazy: () => import("./add-NTRYWOJF.js")
|
|
3503
3603
|
},
|
|
3504
3604
|
{
|
|
3505
3605
|
path: "products/edit",
|
|
3506
|
-
lazy: () => import("./edit-
|
|
3606
|
+
lazy: () => import("./edit-3E4ZO7HT.js")
|
|
3507
3607
|
},
|
|
3508
3608
|
{
|
|
3509
3609
|
path: "products/:variant_id/edit",
|
|
3510
|
-
lazy: () => import("./edit-
|
|
3610
|
+
lazy: () => import("./edit-HTLLYECP.js")
|
|
3511
3611
|
}
|
|
3512
3612
|
]
|
|
3513
3613
|
}
|
|
@@ -3523,9 +3623,9 @@ function getRouteMap({
|
|
|
3523
3623
|
// PRODUCT VARIANTS (standalone routes)
|
|
3524
3624
|
{
|
|
3525
3625
|
path: "/products/:product_id/variants/:variant_id",
|
|
3526
|
-
errorElement: /* @__PURE__ */
|
|
3626
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3527
3627
|
lazy: async () => {
|
|
3528
|
-
const { loader } = await import("./product-variant-detail-
|
|
3628
|
+
const { loader } = await import("./product-variant-detail-PUWOMVHQ.js");
|
|
3529
3629
|
return {
|
|
3530
3630
|
Component: Outlet4,
|
|
3531
3631
|
loader
|
|
@@ -3534,18 +3634,11 @@ function getRouteMap({
|
|
|
3534
3634
|
children: [
|
|
3535
3635
|
{
|
|
3536
3636
|
path: "",
|
|
3537
|
-
lazy: () => import("./product-variant-detail-
|
|
3637
|
+
lazy: () => import("./product-variant-detail-PUWOMVHQ.js"),
|
|
3538
3638
|
children: [
|
|
3539
3639
|
{
|
|
3540
3640
|
path: "edit",
|
|
3541
|
-
lazy:
|
|
3542
|
-
const { ProductVariantEdit } = await import("./product-variant-edit-P3DSIFE3.js");
|
|
3543
|
-
return { Component: ProductVariantEdit };
|
|
3544
|
-
}
|
|
3545
|
-
},
|
|
3546
|
-
{
|
|
3547
|
-
path: "prices",
|
|
3548
|
-
lazy: () => import("./prices-3OXV5RGY.js")
|
|
3641
|
+
lazy: () => import("./product-variant-edit-WZNO4CQX.js")
|
|
3549
3642
|
}
|
|
3550
3643
|
]
|
|
3551
3644
|
}
|
|
@@ -3559,23 +3652,23 @@ function getRouteMap({
|
|
|
3559
3652
|
},
|
|
3560
3653
|
// PROTECTED - SETTINGS LAYOUT
|
|
3561
3654
|
{
|
|
3562
|
-
element: /* @__PURE__ */
|
|
3563
|
-
errorElement: /* @__PURE__ */
|
|
3655
|
+
element: /* @__PURE__ */ jsx15(ProtectedRoute, {}),
|
|
3656
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3564
3657
|
children: [
|
|
3565
3658
|
{
|
|
3566
3659
|
path: "/settings",
|
|
3567
|
-
element: /* @__PURE__ */
|
|
3660
|
+
element: /* @__PURE__ */ jsx15(SettingsLayout, {}),
|
|
3568
3661
|
children: mergeRoutes(
|
|
3569
3662
|
[
|
|
3570
3663
|
{
|
|
3571
3664
|
index: true,
|
|
3572
|
-
errorElement: /* @__PURE__ */
|
|
3573
|
-
lazy: () => import("./settings-
|
|
3665
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3666
|
+
lazy: () => import("./settings-2GCQQTO6.js")
|
|
3574
3667
|
},
|
|
3575
3668
|
// PROFILE
|
|
3576
3669
|
{
|
|
3577
3670
|
path: "profile",
|
|
3578
|
-
errorElement: /* @__PURE__ */
|
|
3671
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3579
3672
|
handle: {
|
|
3580
3673
|
breadcrumb: () => t("profile.domain")
|
|
3581
3674
|
},
|
|
@@ -3583,14 +3676,14 @@ function getRouteMap({
|
|
|
3583
3676
|
{
|
|
3584
3677
|
path: "",
|
|
3585
3678
|
lazy: async () => {
|
|
3586
|
-
const { ProfileDetailPage } = await import("./profile-
|
|
3679
|
+
const { ProfileDetailPage } = await import("./profile-6TGCNNUU.js");
|
|
3587
3680
|
return { Component: ProfileDetailPage };
|
|
3588
3681
|
},
|
|
3589
3682
|
children: [
|
|
3590
3683
|
{
|
|
3591
3684
|
path: "edit",
|
|
3592
3685
|
lazy: async () => {
|
|
3593
|
-
const { ProfileEdit } = await import("./profile-
|
|
3686
|
+
const { ProfileEdit } = await import("./profile-6TGCNNUU.js");
|
|
3594
3687
|
return { Component: ProfileEdit };
|
|
3595
3688
|
}
|
|
3596
3689
|
}
|
|
@@ -3601,7 +3694,7 @@ function getRouteMap({
|
|
|
3601
3694
|
// STORE
|
|
3602
3695
|
{
|
|
3603
3696
|
path: "store",
|
|
3604
|
-
errorElement: /* @__PURE__ */
|
|
3697
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3605
3698
|
handle: {
|
|
3606
3699
|
breadcrumb: () => t("app.menus.store.label")
|
|
3607
3700
|
},
|
|
@@ -3609,29 +3702,29 @@ function getRouteMap({
|
|
|
3609
3702
|
{
|
|
3610
3703
|
path: "",
|
|
3611
3704
|
lazy: async () => {
|
|
3612
|
-
const { StoreDetailPage } = await import("./store-
|
|
3705
|
+
const { StoreDetailPage } = await import("./store-5ZHZR4JI.js");
|
|
3613
3706
|
return { Component: StoreDetailPage };
|
|
3614
3707
|
},
|
|
3615
3708
|
children: [
|
|
3616
3709
|
{
|
|
3617
3710
|
path: "edit",
|
|
3618
|
-
lazy: () => import("./edit-
|
|
3711
|
+
lazy: () => import("./edit-4G5D7TES.js")
|
|
3619
3712
|
},
|
|
3620
3713
|
{
|
|
3621
3714
|
path: "address",
|
|
3622
|
-
lazy: () => import("./address-
|
|
3715
|
+
lazy: () => import("./address-77Y3AOQ3.js")
|
|
3623
3716
|
},
|
|
3624
3717
|
{
|
|
3625
3718
|
path: "payment-details",
|
|
3626
|
-
lazy: () => import("./payment-details-
|
|
3719
|
+
lazy: () => import("./payment-details-CFTX3QDL.js")
|
|
3627
3720
|
},
|
|
3628
3721
|
{
|
|
3629
3722
|
path: "professional-details",
|
|
3630
|
-
lazy: () => import("./professional-details-
|
|
3723
|
+
lazy: () => import("./professional-details-ED4HNYXY.js")
|
|
3631
3724
|
},
|
|
3632
3725
|
{
|
|
3633
3726
|
path: "store-closure",
|
|
3634
|
-
lazy: () => import("./store-closure-
|
|
3727
|
+
lazy: () => import("./store-closure-H5WHV3LA.js")
|
|
3635
3728
|
}
|
|
3636
3729
|
]
|
|
3637
3730
|
}
|
|
@@ -3640,26 +3733,26 @@ function getRouteMap({
|
|
|
3640
3733
|
// LOCATIONS
|
|
3641
3734
|
{
|
|
3642
3735
|
path: "locations",
|
|
3643
|
-
errorElement: /* @__PURE__ */
|
|
3644
|
-
element: /* @__PURE__ */
|
|
3736
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3737
|
+
element: /* @__PURE__ */ jsx15(Outlet4, {}),
|
|
3645
3738
|
handle: { breadcrumb: () => t("locations.domain") },
|
|
3646
3739
|
children: [
|
|
3647
3740
|
{
|
|
3648
3741
|
path: "",
|
|
3649
3742
|
lazy: async () => {
|
|
3650
|
-
const { LocationListPage } = await import("./locations-
|
|
3743
|
+
const { LocationListPage } = await import("./locations-INS6FTMJ.js");
|
|
3651
3744
|
return { Component: LocationListPage };
|
|
3652
3745
|
},
|
|
3653
3746
|
children: [
|
|
3654
3747
|
{
|
|
3655
3748
|
path: "create",
|
|
3656
|
-
lazy: () => import("./create-
|
|
3749
|
+
lazy: () => import("./create-YBF4YGWG.js")
|
|
3657
3750
|
}
|
|
3658
3751
|
]
|
|
3659
3752
|
},
|
|
3660
3753
|
{
|
|
3661
3754
|
path: "shipping-profiles",
|
|
3662
|
-
element: /* @__PURE__ */
|
|
3755
|
+
element: /* @__PURE__ */ jsx15(Outlet4, {}),
|
|
3663
3756
|
handle: {
|
|
3664
3757
|
breadcrumb: () => t("shippingProfile.domain")
|
|
3665
3758
|
},
|
|
@@ -3667,20 +3760,20 @@ function getRouteMap({
|
|
|
3667
3760
|
{
|
|
3668
3761
|
path: "",
|
|
3669
3762
|
lazy: async () => {
|
|
3670
|
-
const { ShippingProfileListPage } = await import("./shipping-profiles-
|
|
3763
|
+
const { ShippingProfileListPage } = await import("./shipping-profiles-C5WBXWZ2.js");
|
|
3671
3764
|
return { Component: ShippingProfileListPage };
|
|
3672
3765
|
},
|
|
3673
3766
|
children: [
|
|
3674
3767
|
{
|
|
3675
3768
|
path: "create",
|
|
3676
|
-
lazy: () => import("./create-
|
|
3769
|
+
lazy: () => import("./create-SFU3W3ZH.js")
|
|
3677
3770
|
}
|
|
3678
3771
|
]
|
|
3679
3772
|
},
|
|
3680
3773
|
{
|
|
3681
3774
|
path: ":shipping_profile_id",
|
|
3682
3775
|
lazy: async () => {
|
|
3683
|
-
const { shippingProfileLoader: loader } = await import("./[id]-
|
|
3776
|
+
const { shippingProfileLoader: loader } = await import("./[id]-ZCMSBEVM.js");
|
|
3684
3777
|
const {
|
|
3685
3778
|
ShippingProfileDetailBreadcrumb: Breadcrumb
|
|
3686
3779
|
} = await import("./breadcrumb-D3UDTWGE.js");
|
|
@@ -3688,7 +3781,7 @@ function getRouteMap({
|
|
|
3688
3781
|
Component: Outlet4,
|
|
3689
3782
|
loader,
|
|
3690
3783
|
handle: {
|
|
3691
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3784
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3692
3785
|
}
|
|
3693
3786
|
};
|
|
3694
3787
|
},
|
|
@@ -3696,7 +3789,7 @@ function getRouteMap({
|
|
|
3696
3789
|
{
|
|
3697
3790
|
path: "",
|
|
3698
3791
|
lazy: async () => {
|
|
3699
|
-
const { ShippingProfileDetailPage } = await import("./[id]-
|
|
3792
|
+
const { ShippingProfileDetailPage } = await import("./[id]-ZCMSBEVM.js");
|
|
3700
3793
|
return {
|
|
3701
3794
|
Component: ShippingProfileDetailPage
|
|
3702
3795
|
};
|
|
@@ -3704,7 +3797,7 @@ function getRouteMap({
|
|
|
3704
3797
|
children: [
|
|
3705
3798
|
{
|
|
3706
3799
|
path: "metadata/edit",
|
|
3707
|
-
lazy: () => import("./metadata-
|
|
3800
|
+
lazy: () => import("./metadata-Q74OJWUD.js")
|
|
3708
3801
|
}
|
|
3709
3802
|
]
|
|
3710
3803
|
}
|
|
@@ -3715,13 +3808,13 @@ function getRouteMap({
|
|
|
3715
3808
|
{
|
|
3716
3809
|
path: ":location_id",
|
|
3717
3810
|
lazy: async () => {
|
|
3718
|
-
const { loader } = await import("./[location_id]-
|
|
3811
|
+
const { loader } = await import("./[location_id]-NUBXDDJC.js");
|
|
3719
3812
|
const { LocationDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-3Z7KZG62.js");
|
|
3720
3813
|
return {
|
|
3721
3814
|
Component: Outlet4,
|
|
3722
3815
|
loader,
|
|
3723
3816
|
handle: {
|
|
3724
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3817
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3725
3818
|
}
|
|
3726
3819
|
};
|
|
3727
3820
|
},
|
|
@@ -3729,45 +3822,45 @@ function getRouteMap({
|
|
|
3729
3822
|
{
|
|
3730
3823
|
path: "",
|
|
3731
3824
|
lazy: async () => {
|
|
3732
|
-
const { LocationDetailPage } = await import("./[location_id]-
|
|
3825
|
+
const { LocationDetailPage } = await import("./[location_id]-NUBXDDJC.js");
|
|
3733
3826
|
return { Component: LocationDetailPage };
|
|
3734
3827
|
},
|
|
3735
3828
|
children: [
|
|
3736
3829
|
{
|
|
3737
3830
|
path: "edit",
|
|
3738
|
-
lazy: () => import("./edit-
|
|
3831
|
+
lazy: () => import("./edit-O4JLGKQR.js")
|
|
3739
3832
|
},
|
|
3740
3833
|
{
|
|
3741
3834
|
path: "sales-channels",
|
|
3742
|
-
lazy: () => import("./sales-channels-
|
|
3835
|
+
lazy: () => import("./sales-channels-CZDU7VTE.js")
|
|
3743
3836
|
},
|
|
3744
3837
|
{
|
|
3745
3838
|
path: "fulfillment-providers",
|
|
3746
|
-
lazy: () => import("./fulfillment-providers-
|
|
3839
|
+
lazy: () => import("./fulfillment-providers-G2L6LEVO.js")
|
|
3747
3840
|
},
|
|
3748
3841
|
{
|
|
3749
3842
|
path: "fulfillment-set/:fset_id/service-zones/create",
|
|
3750
|
-
lazy: () => import("./create-
|
|
3843
|
+
lazy: () => import("./create-MZYXMGKP.js")
|
|
3751
3844
|
},
|
|
3752
3845
|
{
|
|
3753
3846
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/edit",
|
|
3754
|
-
lazy: () => import("./edit-
|
|
3847
|
+
lazy: () => import("./edit-ZMERG3L7.js")
|
|
3755
3848
|
},
|
|
3756
3849
|
{
|
|
3757
3850
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/areas",
|
|
3758
|
-
lazy: () => import("./areas-
|
|
3851
|
+
lazy: () => import("./areas-XUC5V5UO.js")
|
|
3759
3852
|
},
|
|
3760
3853
|
{
|
|
3761
3854
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/create",
|
|
3762
|
-
lazy: () => import("./create-
|
|
3855
|
+
lazy: () => import("./create-ODOFJF5N.js")
|
|
3763
3856
|
},
|
|
3764
3857
|
{
|
|
3765
3858
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/:so_id/edit",
|
|
3766
|
-
lazy: () => import("./edit-
|
|
3859
|
+
lazy: () => import("./edit-Q3UQIOLS.js")
|
|
3767
3860
|
},
|
|
3768
3861
|
{
|
|
3769
3862
|
path: "fulfillment-set/:fset_id/service-zone/:zone_id/shipping-option/:so_id/pricing",
|
|
3770
|
-
lazy: () => import("./pricing-
|
|
3863
|
+
lazy: () => import("./pricing-ECXV6K7G.js")
|
|
3771
3864
|
}
|
|
3772
3865
|
]
|
|
3773
3866
|
}
|
|
@@ -3778,81 +3871,81 @@ function getRouteMap({
|
|
|
3778
3871
|
// TAX REGIONS
|
|
3779
3872
|
{
|
|
3780
3873
|
path: "tax-regions",
|
|
3781
|
-
errorElement: /* @__PURE__ */
|
|
3782
|
-
element: /* @__PURE__ */
|
|
3874
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3875
|
+
element: /* @__PURE__ */ jsx15(Outlet4, {}),
|
|
3783
3876
|
handle: { breadcrumb: () => t("taxRegions.domain") },
|
|
3784
3877
|
children: [
|
|
3785
3878
|
{
|
|
3786
3879
|
path: "",
|
|
3787
|
-
lazy: () => import("./tax-regions-
|
|
3880
|
+
lazy: () => import("./tax-regions-HDLBFZVG.js"),
|
|
3788
3881
|
children: [
|
|
3789
3882
|
{
|
|
3790
3883
|
path: "create",
|
|
3791
|
-
lazy: () => import("./create-
|
|
3884
|
+
lazy: () => import("./create-JF2OUZQA.js")
|
|
3792
3885
|
}
|
|
3793
3886
|
]
|
|
3794
3887
|
},
|
|
3795
3888
|
{
|
|
3796
3889
|
path: ":id",
|
|
3797
3890
|
lazy: async () => {
|
|
3798
|
-
const { Component, Breadcrumb, loader } = await import("./[id]-
|
|
3891
|
+
const { Component, Breadcrumb, loader } = await import("./[id]-GC3ZYPK4.js");
|
|
3799
3892
|
return {
|
|
3800
3893
|
Component,
|
|
3801
3894
|
loader,
|
|
3802
3895
|
handle: {
|
|
3803
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3896
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3804
3897
|
}
|
|
3805
3898
|
};
|
|
3806
3899
|
},
|
|
3807
3900
|
children: [
|
|
3808
3901
|
{
|
|
3809
3902
|
path: "tax-rates/create",
|
|
3810
|
-
lazy: () => import("./create-
|
|
3903
|
+
lazy: () => import("./create-UPYB65PD.js")
|
|
3811
3904
|
},
|
|
3812
3905
|
{
|
|
3813
3906
|
path: "tax-rates/:tax_rate_id/edit",
|
|
3814
|
-
lazy: () => import("./edit-
|
|
3907
|
+
lazy: () => import("./edit-KAKVPHZZ.js")
|
|
3815
3908
|
},
|
|
3816
3909
|
{
|
|
3817
3910
|
path: "tax-overrides/create",
|
|
3818
|
-
lazy: () => import("./create-
|
|
3911
|
+
lazy: () => import("./create-A7B3MLJX.js")
|
|
3819
3912
|
},
|
|
3820
3913
|
{
|
|
3821
3914
|
path: "tax-overrides/:tax_rate_id/edit",
|
|
3822
|
-
lazy: () => import("./edit-
|
|
3915
|
+
lazy: () => import("./edit-5CROKEJE.js")
|
|
3823
3916
|
},
|
|
3824
3917
|
{
|
|
3825
3918
|
path: "provinces/create",
|
|
3826
|
-
lazy: () => import("./create-
|
|
3919
|
+
lazy: () => import("./create-R7K3ECN6.js")
|
|
3827
3920
|
},
|
|
3828
3921
|
{
|
|
3829
3922
|
path: "provinces/:province_id",
|
|
3830
3923
|
lazy: async () => {
|
|
3831
|
-
const { Component, Breadcrumb, loader } = await import("./[province_id]-
|
|
3924
|
+
const { Component, Breadcrumb, loader } = await import("./[province_id]-6GUA4PV5.js");
|
|
3832
3925
|
return {
|
|
3833
3926
|
Component,
|
|
3834
3927
|
loader,
|
|
3835
3928
|
handle: {
|
|
3836
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3929
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3837
3930
|
}
|
|
3838
3931
|
};
|
|
3839
3932
|
},
|
|
3840
3933
|
children: [
|
|
3841
3934
|
{
|
|
3842
3935
|
path: "tax-rates/create",
|
|
3843
|
-
lazy: () => import("./create-
|
|
3936
|
+
lazy: () => import("./create-UPYB65PD.js")
|
|
3844
3937
|
},
|
|
3845
3938
|
{
|
|
3846
3939
|
path: "tax-rates/:tax_rate_id/edit",
|
|
3847
|
-
lazy: () => import("./edit-
|
|
3940
|
+
lazy: () => import("./edit-KAKVPHZZ.js")
|
|
3848
3941
|
},
|
|
3849
3942
|
{
|
|
3850
3943
|
path: "tax-overrides/create",
|
|
3851
|
-
lazy: () => import("./create-
|
|
3944
|
+
lazy: () => import("./create-A7B3MLJX.js")
|
|
3852
3945
|
},
|
|
3853
3946
|
{
|
|
3854
3947
|
path: "tax-overrides/:tax_rate_id/edit",
|
|
3855
|
-
lazy: () => import("./edit-
|
|
3948
|
+
lazy: () => import("./edit-5CROKEJE.js")
|
|
3856
3949
|
}
|
|
3857
3950
|
]
|
|
3858
3951
|
}
|
|
@@ -3863,27 +3956,27 @@ function getRouteMap({
|
|
|
3863
3956
|
// PRODUCT TAGS
|
|
3864
3957
|
{
|
|
3865
3958
|
path: "product-tags",
|
|
3866
|
-
errorElement: /* @__PURE__ */
|
|
3867
|
-
element: /* @__PURE__ */
|
|
3959
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3960
|
+
element: /* @__PURE__ */ jsx15(Outlet4, {}),
|
|
3868
3961
|
handle: { breadcrumb: () => t("productTags.domain") },
|
|
3869
3962
|
children: [
|
|
3870
3963
|
{
|
|
3871
3964
|
path: "",
|
|
3872
3965
|
lazy: async () => {
|
|
3873
|
-
const { ProductTagListPage } = await import("./product-tags-
|
|
3966
|
+
const { ProductTagListPage } = await import("./product-tags-5O7ZG6SA.js");
|
|
3874
3967
|
return { Component: ProductTagListPage };
|
|
3875
3968
|
}
|
|
3876
3969
|
},
|
|
3877
3970
|
{
|
|
3878
3971
|
path: ":id",
|
|
3879
3972
|
lazy: async () => {
|
|
3880
|
-
const { loader } = await import("./[id]-
|
|
3881
|
-
const { ProductTagDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-
|
|
3973
|
+
const { loader } = await import("./[id]-SHAJTJNZ.js");
|
|
3974
|
+
const { ProductTagDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-5NP23D6X.js");
|
|
3882
3975
|
return {
|
|
3883
3976
|
Component: Outlet4,
|
|
3884
3977
|
loader,
|
|
3885
3978
|
handle: {
|
|
3886
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
3979
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3887
3980
|
}
|
|
3888
3981
|
};
|
|
3889
3982
|
},
|
|
@@ -3891,13 +3984,13 @@ function getRouteMap({
|
|
|
3891
3984
|
{
|
|
3892
3985
|
path: "",
|
|
3893
3986
|
lazy: async () => {
|
|
3894
|
-
const { ProductTagDetailPage } = await import("./[id]-
|
|
3987
|
+
const { ProductTagDetailPage } = await import("./[id]-SHAJTJNZ.js");
|
|
3895
3988
|
return { Component: ProductTagDetailPage };
|
|
3896
3989
|
},
|
|
3897
3990
|
children: [
|
|
3898
3991
|
{
|
|
3899
3992
|
path: "edit",
|
|
3900
|
-
lazy: () => import("./edit-
|
|
3993
|
+
lazy: () => import("./edit-G2E5SNGU.js")
|
|
3901
3994
|
}
|
|
3902
3995
|
]
|
|
3903
3996
|
}
|
|
@@ -3908,21 +4001,21 @@ function getRouteMap({
|
|
|
3908
4001
|
// USERS
|
|
3909
4002
|
{
|
|
3910
4003
|
path: "users",
|
|
3911
|
-
errorElement: /* @__PURE__ */
|
|
3912
|
-
element: /* @__PURE__ */
|
|
4004
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
4005
|
+
element: /* @__PURE__ */ jsx15(Outlet4, {}),
|
|
3913
4006
|
handle: { breadcrumb: () => t("users.domain") },
|
|
3914
4007
|
children: [
|
|
3915
4008
|
{
|
|
3916
4009
|
path: "",
|
|
3917
4010
|
lazy: async () => {
|
|
3918
|
-
const { TeamListPage } = await import("./team-
|
|
4011
|
+
const { TeamListPage } = await import("./team-CLKJCZNH.js");
|
|
3919
4012
|
return { Component: TeamListPage };
|
|
3920
4013
|
},
|
|
3921
4014
|
children: [
|
|
3922
4015
|
{
|
|
3923
4016
|
path: "invite",
|
|
3924
4017
|
lazy: async () => {
|
|
3925
|
-
const { TeamInvite } = await import("./invite-
|
|
4018
|
+
const { TeamInvite } = await import("./invite-HRXZ5YBP.js");
|
|
3926
4019
|
return { Component: TeamInvite };
|
|
3927
4020
|
}
|
|
3928
4021
|
}
|
|
@@ -3933,14 +4026,14 @@ function getRouteMap({
|
|
|
3933
4026
|
// PRODUCT TYPES
|
|
3934
4027
|
{
|
|
3935
4028
|
path: "product-types",
|
|
3936
|
-
errorElement: /* @__PURE__ */
|
|
3937
|
-
element: /* @__PURE__ */
|
|
4029
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
4030
|
+
element: /* @__PURE__ */ jsx15(Outlet4, {}),
|
|
3938
4031
|
handle: { breadcrumb: () => t("productTypes.domain") },
|
|
3939
4032
|
children: [
|
|
3940
4033
|
{
|
|
3941
4034
|
path: "",
|
|
3942
4035
|
lazy: async () => {
|
|
3943
|
-
const { ProductTypeListPage } = await import("./product-types-
|
|
4036
|
+
const { ProductTypeListPage } = await import("./product-types-PKUEL7X5.js");
|
|
3944
4037
|
return { Component: ProductTypeListPage };
|
|
3945
4038
|
},
|
|
3946
4039
|
children: [
|
|
@@ -3955,13 +4048,13 @@ function getRouteMap({
|
|
|
3955
4048
|
{
|
|
3956
4049
|
path: ":id",
|
|
3957
4050
|
lazy: async () => {
|
|
3958
|
-
const { productTypeLoader: loader } = await import("./[id]-
|
|
3959
|
-
const { ProductTypeDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-
|
|
4051
|
+
const { productTypeLoader: loader } = await import("./[id]-QQU5HVFU.js");
|
|
4052
|
+
const { ProductTypeDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-EVZIOB2G.js");
|
|
3960
4053
|
return {
|
|
3961
4054
|
Component: Outlet4,
|
|
3962
4055
|
loader,
|
|
3963
4056
|
handle: {
|
|
3964
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
4057
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
|
|
3965
4058
|
}
|
|
3966
4059
|
};
|
|
3967
4060
|
},
|
|
@@ -3969,13 +4062,13 @@ function getRouteMap({
|
|
|
3969
4062
|
{
|
|
3970
4063
|
path: "",
|
|
3971
4064
|
lazy: async () => {
|
|
3972
|
-
const { ProductTypeDetailPage } = await import("./[id]-
|
|
4065
|
+
const { ProductTypeDetailPage } = await import("./[id]-QQU5HVFU.js");
|
|
3973
4066
|
return { Component: ProductTypeDetailPage };
|
|
3974
4067
|
},
|
|
3975
4068
|
children: [
|
|
3976
4069
|
{
|
|
3977
4070
|
path: "edit",
|
|
3978
|
-
lazy: () => import("./edit-
|
|
4071
|
+
lazy: () => import("./edit-522DG3BY.js")
|
|
3979
4072
|
}
|
|
3980
4073
|
]
|
|
3981
4074
|
}
|
|
@@ -3986,21 +4079,21 @@ function getRouteMap({
|
|
|
3986
4079
|
// RETURN REASONS
|
|
3987
4080
|
{
|
|
3988
4081
|
path: "return-reasons",
|
|
3989
|
-
errorElement: /* @__PURE__ */
|
|
3990
|
-
element: /* @__PURE__ */
|
|
4082
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
4083
|
+
element: /* @__PURE__ */ jsx15(Outlet4, {}),
|
|
3991
4084
|
handle: { breadcrumb: () => t("returnReasons.domain") },
|
|
3992
4085
|
children: [
|
|
3993
4086
|
{
|
|
3994
4087
|
path: "",
|
|
3995
|
-
lazy: () => import("./return-reasons-
|
|
4088
|
+
lazy: () => import("./return-reasons-QJRA2ZX6.js"),
|
|
3996
4089
|
children: [
|
|
3997
4090
|
{
|
|
3998
4091
|
path: "create",
|
|
3999
|
-
lazy: () => import("./create-
|
|
4092
|
+
lazy: () => import("./create-XVHOCZHJ.js")
|
|
4000
4093
|
},
|
|
4001
4094
|
{
|
|
4002
4095
|
path: ":id/edit",
|
|
4003
|
-
lazy: () => import("./edit-
|
|
4096
|
+
lazy: () => import("./edit-ORXS3A2Y.js")
|
|
4004
4097
|
}
|
|
4005
4098
|
]
|
|
4006
4099
|
}
|
|
@@ -4014,41 +4107,41 @@ function getRouteMap({
|
|
|
4014
4107
|
},
|
|
4015
4108
|
// PUBLIC LAYOUT
|
|
4016
4109
|
{
|
|
4017
|
-
element: /* @__PURE__ */
|
|
4110
|
+
element: /* @__PURE__ */ jsx15(PublicLayout, {}),
|
|
4018
4111
|
children: [
|
|
4019
4112
|
{
|
|
4020
|
-
errorElement: /* @__PURE__ */
|
|
4113
|
+
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
4021
4114
|
children: [
|
|
4022
4115
|
{
|
|
4023
4116
|
path: "/login",
|
|
4024
4117
|
lazy: async () => {
|
|
4025
|
-
const { LoginPage } = await import("./login-
|
|
4118
|
+
const { LoginPage } = await import("./login-TWUBU6I6.js");
|
|
4026
4119
|
return { Component: LoginPage };
|
|
4027
4120
|
}
|
|
4028
4121
|
},
|
|
4029
4122
|
{
|
|
4030
4123
|
path: "/reset-password",
|
|
4031
|
-
lazy: () => import("./reset-password-
|
|
4124
|
+
lazy: () => import("./reset-password-5UHZU4D3.js")
|
|
4032
4125
|
},
|
|
4033
4126
|
{
|
|
4034
4127
|
path: "/register",
|
|
4035
4128
|
lazy: async () => {
|
|
4036
|
-
const { RegisterPage } = await import("./register-
|
|
4129
|
+
const { RegisterPage } = await import("./register-OZ5CRANZ.js");
|
|
4037
4130
|
return { Component: RegisterPage };
|
|
4038
4131
|
}
|
|
4039
4132
|
},
|
|
4040
4133
|
{
|
|
4041
4134
|
path: "/onboarding",
|
|
4042
|
-
lazy: () => import("./onboarding-
|
|
4135
|
+
lazy: () => import("./onboarding-MK2RIFD4.js")
|
|
4043
4136
|
},
|
|
4044
4137
|
{
|
|
4045
4138
|
path: "/invite",
|
|
4046
|
-
lazy: () => import("./invite-
|
|
4139
|
+
lazy: () => import("./invite-2673PU4I.js")
|
|
4047
4140
|
},
|
|
4048
4141
|
{
|
|
4049
4142
|
path: "/store-select",
|
|
4050
4143
|
lazy: async () => {
|
|
4051
|
-
const { StoreSelectPage } = await import("./store-select-
|
|
4144
|
+
const { StoreSelectPage } = await import("./store-select-PZS556FB.js");
|
|
4052
4145
|
return { Component: StoreSelectPage };
|
|
4053
4146
|
}
|
|
4054
4147
|
},
|
|
@@ -4066,7 +4159,7 @@ function getRouteMap({
|
|
|
4066
4159
|
|
|
4067
4160
|
// src/app.tsx
|
|
4068
4161
|
import { useMemo as useMemo5 } from "react";
|
|
4069
|
-
import { jsx as
|
|
4162
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
4070
4163
|
function App() {
|
|
4071
4164
|
const routes = useMemo5(() => {
|
|
4072
4165
|
return {
|
|
@@ -4075,9 +4168,9 @@ function App() {
|
|
|
4075
4168
|
publicRoutes: createRouteMap(getRoutesByType(customRoutes, "public"))
|
|
4076
4169
|
};
|
|
4077
4170
|
}, []);
|
|
4078
|
-
return /* @__PURE__ */
|
|
4079
|
-
/* @__PURE__ */
|
|
4080
|
-
/* @__PURE__ */
|
|
4171
|
+
return /* @__PURE__ */ jsx16(TooltipProvider, { children: /* @__PURE__ */ jsx16(HelmetProvider, { children: /* @__PURE__ */ jsx16(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxs9(ThemeProvider, { children: [
|
|
4172
|
+
/* @__PURE__ */ jsx16(I18n, {}),
|
|
4173
|
+
/* @__PURE__ */ jsx16(I18nProvider, { children: /* @__PURE__ */ jsx16(
|
|
4081
4174
|
RouterProvider,
|
|
4082
4175
|
{
|
|
4083
4176
|
router: createBrowserRouter(getRouteMap(routes), {
|
|
@@ -4085,7 +4178,7 @@ function App() {
|
|
|
4085
4178
|
})
|
|
4086
4179
|
}
|
|
4087
4180
|
) }),
|
|
4088
|
-
/* @__PURE__ */
|
|
4181
|
+
/* @__PURE__ */ jsx16(Toaster, {})
|
|
4089
4182
|
] }) }) }) });
|
|
4090
4183
|
}
|
|
4091
4184
|
|
|
@@ -4103,7 +4196,7 @@ import { useTranslation as useTranslation10 } from "react-i18next";
|
|
|
4103
4196
|
// src/components/common/file-preview/file-preview.tsx
|
|
4104
4197
|
import { ArrowDownTray, Spinner as Spinner3 } from "@medusajs/icons";
|
|
4105
4198
|
import { IconButton as IconButton5, Text as Text7 } from "@medusajs/ui";
|
|
4106
|
-
import { jsx as
|
|
4199
|
+
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4107
4200
|
var FilePreview = ({
|
|
4108
4201
|
filename,
|
|
4109
4202
|
url,
|
|
@@ -4112,11 +4205,11 @@ var FilePreview = ({
|
|
|
4112
4205
|
actions,
|
|
4113
4206
|
hideThumbnail
|
|
4114
4207
|
}) => {
|
|
4115
|
-
return /* @__PURE__ */
|
|
4208
|
+
return /* @__PURE__ */ jsx17("div", { className: "shadow-elevation-card-rest bg-ui-bg-component transition-fg rounded-md px-3 py-2", children: /* @__PURE__ */ jsxs10("div", { className: "flex flex-row items-center justify-between gap-2", children: [
|
|
4116
4209
|
/* @__PURE__ */ jsxs10("div", { className: "flex flex-row items-center gap-3", children: [
|
|
4117
|
-
!hideThumbnail && /* @__PURE__ */
|
|
4210
|
+
!hideThumbnail && /* @__PURE__ */ jsx17(FileThumbnail, {}),
|
|
4118
4211
|
/* @__PURE__ */ jsxs10("div", { className: "flex flex-col justify-center", children: [
|
|
4119
|
-
/* @__PURE__ */
|
|
4212
|
+
/* @__PURE__ */ jsx17(
|
|
4120
4213
|
Text7,
|
|
4121
4214
|
{
|
|
4122
4215
|
size: "small",
|
|
@@ -4125,7 +4218,7 @@ var FilePreview = ({
|
|
|
4125
4218
|
children: filename
|
|
4126
4219
|
}
|
|
4127
4220
|
),
|
|
4128
|
-
loading && !!activity && /* @__PURE__ */
|
|
4221
|
+
loading && !!activity && /* @__PURE__ */ jsx17(
|
|
4129
4222
|
Text7,
|
|
4130
4223
|
{
|
|
4131
4224
|
leading: "compact",
|
|
@@ -4136,9 +4229,9 @@ var FilePreview = ({
|
|
|
4136
4229
|
)
|
|
4137
4230
|
] })
|
|
4138
4231
|
] }),
|
|
4139
|
-
loading && /* @__PURE__ */
|
|
4140
|
-
!loading && actions && /* @__PURE__ */
|
|
4141
|
-
!loading && url && /* @__PURE__ */
|
|
4232
|
+
loading && /* @__PURE__ */ jsx17(Spinner3, { className: "animate-spin" }),
|
|
4233
|
+
!loading && actions && /* @__PURE__ */ jsx17(ActionMenu, { groups: actions }),
|
|
4234
|
+
!loading && url && /* @__PURE__ */ jsx17(IconButton5, { variant: "transparent", asChild: true, children: /* @__PURE__ */ jsx17("a", { href: url, download: filename ?? `${Date.now()}`, children: /* @__PURE__ */ jsx17(ArrowDownTray, {}) }) })
|
|
4142
4235
|
] }) });
|
|
4143
4236
|
};
|
|
4144
4237
|
var FileThumbnail = () => {
|
|
@@ -4151,7 +4244,7 @@ var FileThumbnail = () => {
|
|
|
4151
4244
|
fill: "none",
|
|
4152
4245
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4153
4246
|
children: [
|
|
4154
|
-
/* @__PURE__ */
|
|
4247
|
+
/* @__PURE__ */ jsx17(
|
|
4155
4248
|
"path",
|
|
4156
4249
|
{
|
|
4157
4250
|
d: "M20 31.75H4C1.92893 31.75 0.25 30.0711 0.25 28V4C0.25 1.92893 1.92893 0.25 4 0.25H15.9431C16.9377 0.25 17.8915 0.645088 18.5948 1.34835L22.6516 5.4052C23.3549 6.10847 23.75 7.06229 23.75 8.05685V28C23.75 30.0711 22.0711 31.75 20 31.75Z",
|
|
@@ -4160,7 +4253,7 @@ var FileThumbnail = () => {
|
|
|
4160
4253
|
"stroke-width": "0.5"
|
|
4161
4254
|
}
|
|
4162
4255
|
),
|
|
4163
|
-
/* @__PURE__ */
|
|
4256
|
+
/* @__PURE__ */ jsx17(
|
|
4164
4257
|
"path",
|
|
4165
4258
|
{
|
|
4166
4259
|
opacity: "0.4",
|
|
@@ -4181,8 +4274,8 @@ var FileThumbnail = () => {
|
|
|
4181
4274
|
y2: "32",
|
|
4182
4275
|
gradientUnits: "userSpaceOnUse",
|
|
4183
4276
|
children: [
|
|
4184
|
-
/* @__PURE__ */
|
|
4185
|
-
/* @__PURE__ */
|
|
4277
|
+
/* @__PURE__ */ jsx17("stop", { "stop-color": "#F4F4F5" }),
|
|
4278
|
+
/* @__PURE__ */ jsx17("stop", { offset: "1", "stop-color": "#E4E4E7" })
|
|
4186
4279
|
]
|
|
4187
4280
|
}
|
|
4188
4281
|
),
|
|
@@ -4196,8 +4289,8 @@ var FileThumbnail = () => {
|
|
|
4196
4289
|
y2: "32",
|
|
4197
4290
|
gradientUnits: "userSpaceOnUse",
|
|
4198
4291
|
children: [
|
|
4199
|
-
/* @__PURE__ */
|
|
4200
|
-
/* @__PURE__ */
|
|
4292
|
+
/* @__PURE__ */ jsx17("stop", { "stop-color": "#E4E4E7" }),
|
|
4293
|
+
/* @__PURE__ */ jsx17("stop", { offset: "1", "stop-color": "#D4D4D8" })
|
|
4201
4294
|
]
|
|
4202
4295
|
}
|
|
4203
4296
|
),
|
|
@@ -4211,8 +4304,8 @@ var FileThumbnail = () => {
|
|
|
4211
4304
|
y2: "21.25",
|
|
4212
4305
|
gradientUnits: "userSpaceOnUse",
|
|
4213
4306
|
children: [
|
|
4214
|
-
/* @__PURE__ */
|
|
4215
|
-
/* @__PURE__ */
|
|
4307
|
+
/* @__PURE__ */ jsx17("stop", { "stop-color": "#52525B" }),
|
|
4308
|
+
/* @__PURE__ */ jsx17("stop", { offset: "1", "stop-color": "#A1A1AA" })
|
|
4216
4309
|
]
|
|
4217
4310
|
}
|
|
4218
4311
|
),
|
|
@@ -4226,8 +4319,8 @@ var FileThumbnail = () => {
|
|
|
4226
4319
|
y2: "21.25",
|
|
4227
4320
|
gradientUnits: "userSpaceOnUse",
|
|
4228
4321
|
children: [
|
|
4229
|
-
/* @__PURE__ */
|
|
4230
|
-
/* @__PURE__ */
|
|
4322
|
+
/* @__PURE__ */ jsx17("stop", { "stop-color": "#18181B" }),
|
|
4323
|
+
/* @__PURE__ */ jsx17("stop", { offset: "1", "stop-color": "#52525B" })
|
|
4231
4324
|
]
|
|
4232
4325
|
}
|
|
4233
4326
|
)
|
|
@@ -4242,7 +4335,7 @@ import { useInfiniteQuery } from "@tanstack/react-query";
|
|
|
4242
4335
|
import { useEffect as useEffect10, useMemo as useMemo6, useRef as useRef2 } from "react";
|
|
4243
4336
|
import { toast } from "@medusajs/ui";
|
|
4244
4337
|
import { Spinner as Spinner4 } from "@medusajs/icons";
|
|
4245
|
-
import { jsx as
|
|
4338
|
+
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
4246
4339
|
var InfiniteList = ({
|
|
4247
4340
|
queryKey,
|
|
4248
4341
|
queryFn,
|
|
@@ -4343,16 +4436,16 @@ var InfiniteList = ({
|
|
|
4343
4436
|
}
|
|
4344
4437
|
}, [error]);
|
|
4345
4438
|
if (isPending) {
|
|
4346
|
-
return /* @__PURE__ */
|
|
4439
|
+
return /* @__PURE__ */ jsx18("div", { className: "flex h-full flex-col items-center justify-center", children: /* @__PURE__ */ jsx18(Spinner4, { className: "animate-spin" }) });
|
|
4347
4440
|
}
|
|
4348
4441
|
return /* @__PURE__ */ jsxs11("div", { ref: parentRef, className: "h-full", children: [
|
|
4349
|
-
items?.length ? items.map((item) => /* @__PURE__ */
|
|
4350
|
-
isFetching && /* @__PURE__ */
|
|
4442
|
+
items?.length ? items.map((item) => /* @__PURE__ */ jsx18("div", { children: renderItem(item) }, item.id)) : renderEmpty(),
|
|
4443
|
+
isFetching && /* @__PURE__ */ jsx18("div", { className: "flex flex-col items-center justify-center py-4", children: /* @__PURE__ */ jsx18(Spinner4, { className: "animate-spin" }) })
|
|
4351
4444
|
] });
|
|
4352
4445
|
};
|
|
4353
4446
|
|
|
4354
4447
|
// src/components/layout/notifications/notifications.tsx
|
|
4355
|
-
import { Fragment as Fragment3, jsx as
|
|
4448
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
4356
4449
|
var LAST_READ_NOTIFICATION_KEY = "notificationsLastReadAt";
|
|
4357
4450
|
var Notifications = () => {
|
|
4358
4451
|
const { t: t2 } = useTranslation10();
|
|
@@ -4383,21 +4476,21 @@ var Notifications = () => {
|
|
|
4383
4476
|
}
|
|
4384
4477
|
};
|
|
4385
4478
|
return /* @__PURE__ */ jsxs12(Drawer, { open, onOpenChange: handleOnOpen, children: [
|
|
4386
|
-
/* @__PURE__ */
|
|
4479
|
+
/* @__PURE__ */ jsx19(Drawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsx19(
|
|
4387
4480
|
IconButton6,
|
|
4388
4481
|
{
|
|
4389
4482
|
variant: "transparent",
|
|
4390
4483
|
size: "small",
|
|
4391
4484
|
className: "text-ui-fg-muted hover:text-ui-fg-subtle",
|
|
4392
|
-
children: hasUnread ? /* @__PURE__ */
|
|
4485
|
+
children: hasUnread ? /* @__PURE__ */ jsx19(BellAlertDone, {}) : /* @__PURE__ */ jsx19(BellAlert, {})
|
|
4393
4486
|
}
|
|
4394
4487
|
) }),
|
|
4395
4488
|
/* @__PURE__ */ jsxs12(Drawer.Content, { children: [
|
|
4396
4489
|
/* @__PURE__ */ jsxs12(Drawer.Header, { children: [
|
|
4397
|
-
/* @__PURE__ */
|
|
4398
|
-
/* @__PURE__ */
|
|
4490
|
+
/* @__PURE__ */ jsx19(Drawer.Title, { asChild: true, children: /* @__PURE__ */ jsx19(Heading2, { children: t2("notifications.domain") }) }),
|
|
4491
|
+
/* @__PURE__ */ jsx19(Drawer.Description, { className: "sr-only", children: t2("notifications.accessibility.description") })
|
|
4399
4492
|
] }),
|
|
4400
|
-
/* @__PURE__ */
|
|
4493
|
+
/* @__PURE__ */ jsx19(Drawer.Body, { className: "overflow-y-auto px-0", children: /* @__PURE__ */ jsx19(
|
|
4401
4494
|
InfiniteList,
|
|
4402
4495
|
{
|
|
4403
4496
|
responseKey: "notifications",
|
|
@@ -4407,9 +4500,9 @@ var Notifications = () => {
|
|
|
4407
4500
|
query: { ...params }
|
|
4408
4501
|
}),
|
|
4409
4502
|
queryOptions: { enabled: open },
|
|
4410
|
-
renderEmpty: () => /* @__PURE__ */
|
|
4503
|
+
renderEmpty: () => /* @__PURE__ */ jsx19(NotificationsEmptyState, { t: t2 }),
|
|
4411
4504
|
renderItem: (notification) => {
|
|
4412
|
-
return /* @__PURE__ */
|
|
4505
|
+
return /* @__PURE__ */ jsx19(
|
|
4413
4506
|
Notification,
|
|
4414
4507
|
{
|
|
4415
4508
|
notification,
|
|
@@ -4431,14 +4524,14 @@ var Notification = ({
|
|
|
4431
4524
|
if (!data?.title) {
|
|
4432
4525
|
return null;
|
|
4433
4526
|
}
|
|
4434
|
-
return /* @__PURE__ */
|
|
4435
|
-
/* @__PURE__ */
|
|
4527
|
+
return /* @__PURE__ */ jsx19(Fragment3, { children: /* @__PURE__ */ jsxs12("div", { className: "relative flex items-start justify-center gap-3 border-b p-6", children: [
|
|
4528
|
+
/* @__PURE__ */ jsx19("div", { className: "text-ui-fg-muted flex size-5 items-center justify-center", children: /* @__PURE__ */ jsx19(InformationCircleSolid, {}) }),
|
|
4436
4529
|
/* @__PURE__ */ jsxs12("div", { className: "flex w-full flex-col gap-y-3", children: [
|
|
4437
4530
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col", children: [
|
|
4438
4531
|
/* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-between", children: [
|
|
4439
|
-
/* @__PURE__ */
|
|
4532
|
+
/* @__PURE__ */ jsx19(Text8, { size: "small", leading: "compact", weight: "plus", children: data.title }),
|
|
4440
4533
|
/* @__PURE__ */ jsxs12("div", { className: "align-center flex items-center justify-center gap-2", children: [
|
|
4441
|
-
/* @__PURE__ */
|
|
4534
|
+
/* @__PURE__ */ jsx19(
|
|
4442
4535
|
Text8,
|
|
4443
4536
|
{
|
|
4444
4537
|
as: "span",
|
|
@@ -4453,7 +4546,7 @@ var Notification = ({
|
|
|
4453
4546
|
})
|
|
4454
4547
|
}
|
|
4455
4548
|
),
|
|
4456
|
-
unread && /* @__PURE__ */
|
|
4549
|
+
unread && /* @__PURE__ */ jsx19(
|
|
4457
4550
|
"div",
|
|
4458
4551
|
{
|
|
4459
4552
|
className: "bg-ui-bg-interactive h-2 w-2 rounded",
|
|
@@ -4462,7 +4555,7 @@ var Notification = ({
|
|
|
4462
4555
|
)
|
|
4463
4556
|
] })
|
|
4464
4557
|
] }),
|
|
4465
|
-
!!data.description && /* @__PURE__ */
|
|
4558
|
+
!!data.description && /* @__PURE__ */ jsx19(
|
|
4466
4559
|
Text8,
|
|
4467
4560
|
{
|
|
4468
4561
|
className: "text-ui-fg-subtle whitespace-pre-line",
|
|
@@ -4471,7 +4564,7 @@ var Notification = ({
|
|
|
4471
4564
|
}
|
|
4472
4565
|
)
|
|
4473
4566
|
] }),
|
|
4474
|
-
!!data?.file?.url && /* @__PURE__ */
|
|
4567
|
+
!!data?.file?.url && /* @__PURE__ */ jsx19(
|
|
4475
4568
|
FilePreview,
|
|
4476
4569
|
{
|
|
4477
4570
|
filename: data.file.filename ?? "",
|
|
@@ -4484,9 +4577,9 @@ var Notification = ({
|
|
|
4484
4577
|
};
|
|
4485
4578
|
var NotificationsEmptyState = ({ t: t2 }) => {
|
|
4486
4579
|
return /* @__PURE__ */ jsxs12("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
|
4487
|
-
/* @__PURE__ */
|
|
4488
|
-
/* @__PURE__ */
|
|
4489
|
-
/* @__PURE__ */
|
|
4580
|
+
/* @__PURE__ */ jsx19(BellAlertDone, {}),
|
|
4581
|
+
/* @__PURE__ */ jsx19(Text8, { size: "small", leading: "compact", weight: "plus", className: "mt-3", children: t2("notifications.emptyState.title") }),
|
|
4582
|
+
/* @__PURE__ */ jsx19(
|
|
4490
4583
|
Text8,
|
|
4491
4584
|
{
|
|
4492
4585
|
size: "small",
|