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