@mercurjs/vendor 2.0.0 → 2.0.2
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]-S6EPH4OO.js → [id]-6WYSWXWC.js} +30 -28
- package/dist/{[id]-SJXBJLAT.js → [id]-CLZ7BUYL.js} +9 -8
- package/dist/{[id]-47FGVJYM.js → [id]-DCCF7277.js} +35 -33
- package/dist/{[id]-ARXBXGNZ.js → [id]-EJAHMOOE.js} +33 -31
- package/dist/{[id]-HD76VJ2P.js → [id]-ENTJSLN2.js} +16 -15
- package/dist/{[id]-XY3A3EMF.js → [id]-LZPT5Y55.js} +32 -31
- package/dist/{[id]-Z4P7XA4G.js → [id]-OGHRZ2VY.js} +232 -103
- package/dist/{[id]-FLIHBDAS.js → [id]-PHS2WYFX.js} +33 -31
- package/dist/{[id]-JF6CCBRE.js → [id]-T64V4G6T.js} +19 -18
- package/dist/{[id]-IWPWKLOH.js → [id]-TLZZ53G7.js} +13 -12
- package/dist/{[id]-6HM66I3E.js → [id]-UAOAQVEM.js} +48 -45
- package/dist/{[id]-Q6HILUAG.js → [id]-VKG2WEIR.js} +39 -37
- package/dist/{[id]-VTFOP3BF.js → [id]-WRA56ZMU.js} +5 -5
- package/dist/{[id]-MIV4U5UW.js → [id]-XRGNT7CY.js} +7 -7
- package/dist/{[location_id]-AWDD2VHW.js → [location_id]-7ZUB2TTU.js} +14 -14
- package/dist/{[province_id]-36QJ2FKC.js → [province_id]-XGA44S7P.js} +30 -29
- package/dist/add-7ZTE42IE.js +158 -0
- package/dist/{add-YUANWTIL.js → add-AKC7LTK3.js} +49 -46
- package/dist/{add-customer-groups-7SLONTS2.js → add-customer-groups-BRC3DKQ2.js} +29 -27
- package/dist/{add-products-ISR3DRPQ.js → add-products-ZSULNZVI.js} +31 -29
- package/dist/{add-promotions-FZRDYHYX.js → add-promotions-TNFVT5ST.js} +12 -11
- package/dist/{add-to-campaign-V6D7JKRS.js → add-to-campaign-HL6NGRR4.js} +6 -6
- package/dist/address-3DSJESKM.js +249 -0
- package/dist/{adjust-inventory-P7AB7VIB.js → adjust-inventory-H4EUP7J3.js} +4 -4
- package/dist/{allocate-items-QAS5PZLR.js → allocate-items-6OAKG25R.js} +8 -8
- package/dist/{areas-Y7VDWH7G.js → areas-JO6L3M7Y.js} +11 -10
- package/dist/{attributes-UEM2VJKV.js → attributes-WRZYJEYN.js} +5 -4
- package/dist/{breadcrumb-6NAAOPIY.js → breadcrumb-3Z7KZG62.js} +4 -4
- package/dist/{breadcrumb-5OTOCYNL.js → breadcrumb-5BXDYVRO.js} +4 -4
- package/dist/{breadcrumb-3QTVWXZB.js → breadcrumb-BS7Y5OKF.js} +5 -5
- package/dist/{breadcrumb-CIGKLKKS.js → breadcrumb-D3UDTWGE.js} +3 -3
- package/dist/breadcrumb-D6QNYOAO.js +45 -0
- package/dist/{breadcrumb-OVMEC5OZ.js → breadcrumb-F3BN5753.js} +3 -3
- package/dist/{breadcrumb-MOQ7GI3Z.js → breadcrumb-KQSFIXQ4.js} +3 -3
- package/dist/{breadcrumb-NCBGPQML.js → breadcrumb-M5Z5WA6I.js} +4 -4
- package/dist/{breadcrumb-EOYLR3IQ.js → breadcrumb-OIGGCB3L.js} +3 -3
- package/dist/{breadcrumb-LENACUAA.js → breadcrumb-UAUX7XCV.js} +3 -3
- package/dist/breadcrumb-UH7FAYU2.js +46 -0
- package/dist/{breadcrumb-ASB2YCNV.js → breadcrumb-Y5UW3I4C.js} +3 -3
- package/dist/{breadcrumb-WP34OXGQ.js → breadcrumb-YBBYFQYG.js} +3 -3
- package/dist/breadcrumb-ZMVHXCOX.js +32 -0
- package/dist/bulk-edit-C6WJKURW.js +244 -0
- package/dist/{campaigns-PMVKUFEA.js → campaigns-SF2YDBID.js} +9 -8
- package/dist/{categories-JARCKR7M.js → categories-WRDJAJ2Q.js} +9 -8
- package/dist/{chunk-HUZG6A3X.js → chunk-2POPPFAP.js} +3 -3
- package/dist/{chunk-S5GQ2SES.js → chunk-2SLAVXFY.js} +5 -5
- package/dist/{chunk-JVBLYMY2.js → chunk-32RYSB2V.js} +2 -2
- package/dist/{chunk-VHMGJUYN.js → chunk-3B34B2M2.js} +1 -1
- package/dist/{chunk-BI2WWFPS.js → chunk-3BZBEC3Y.js} +1 -1
- package/dist/{chunk-LMHJRE4A.js → chunk-3DXMZA7M.js} +2 -2
- package/dist/{chunk-Z2WPXJ6J.js → chunk-4DYUQ3G5.js} +2 -2
- package/dist/{chunk-HBQC3YQZ.js → chunk-573EQEW2.js} +1 -1
- package/dist/{chunk-FBZHM2QZ.js → chunk-5BONGICL.js} +5 -5
- package/dist/{chunk-ZZ7VKT2S.js → chunk-5IWBNPZX.js} +766 -204
- package/dist/{chunk-KHHY7EEM.js → chunk-6WY5X4PE.js} +5 -5
- package/dist/{chunk-CUO22GTM.js → chunk-7TIZP4YG.js} +1 -1
- package/dist/{chunk-52I65K53.js → chunk-7XC7ZRG7.js} +17 -129
- package/dist/{chunk-AONKZGWL.js → chunk-ASEVHHCT.js} +3 -3
- package/dist/{chunk-TG3TCIL6.js → chunk-AW4WN2EK.js} +6 -6
- package/dist/{chunk-DDEIH66R.js → chunk-B5326BWT.js} +4 -4
- package/dist/{chunk-O6PRBSFL.js → chunk-BI2AYXZQ.js} +50 -35
- package/dist/{chunk-HUNGNEPY.js → chunk-BOZJOOGW.js} +1 -1
- package/dist/{chunk-AIFLEWO2.js → chunk-BWGPN6XV.js} +1 -1
- package/dist/{chunk-5XOCUDS2.js → chunk-CUMY2VZ5.js} +1 -1
- package/dist/chunk-DLNNTQRY.js +217 -0
- package/dist/{chunk-B2RVONU7.js → chunk-DRAZNW7J.js} +4 -4
- package/dist/{chunk-CVVYQI5F.js → chunk-EBZ5VZEO.js} +1 -1
- package/dist/{chunk-ZPGWTLF2.js → chunk-EFIF2GCZ.js} +4 -4
- package/dist/{chunk-DHADGZJ5.js → chunk-F4OJN2F2.js} +40 -5
- package/dist/{chunk-PYQJ5N25.js → chunk-FEUCCLKR.js} +6 -6
- package/dist/{chunk-JKSPDM7I.js → chunk-FNG7ZA7N.js} +1 -1
- package/dist/{chunk-UXKKD4AD.js → chunk-FQTYHU6G.js} +5 -5
- package/dist/chunk-FX4V5JCF.js +37 -0
- package/dist/{chunk-ZFFA36DB.js → chunk-GCSQEJMD.js} +2 -2
- package/dist/{chunk-NANYVBFI.js → chunk-GJM5XI3E.js} +1 -1
- package/dist/{chunk-W6ZVQJYB.js → chunk-GYV6SKY7.js} +1 -1
- package/dist/chunk-I5K5USJM.js +330 -0
- package/dist/{chunk-J2XP7VRG.js → chunk-IBTTL6EJ.js} +4 -4
- package/dist/{chunk-3LPVUPZZ.js → chunk-IDYGSAHT.js} +1 -1
- package/dist/{chunk-DC2K6CFQ.js → chunk-IQWK723D.js} +1 -1
- package/dist/{chunk-PWZKFTJS.js → chunk-ITQW6CK2.js} +5 -5
- package/dist/{chunk-NWFWI4IE.js → chunk-JKKRKFCS.js} +55 -62
- package/dist/chunk-JQV7CXEC.js +37 -0
- package/dist/{chunk-RH2NI4BC.js → chunk-JRT2U4UI.js} +448 -101
- package/dist/{chunk-4FCZDRAE.js → chunk-JTCUWZ7D.js} +5 -5
- package/dist/chunk-LA6XSPQG.js +3723 -0
- package/dist/{chunk-JXP5YZ77.js → chunk-LHKHQAAY.js} +1 -1
- package/dist/{chunk-TTFCO5HU.js → chunk-LKA7QM6R.js} +7 -7
- package/dist/{chunk-FGCKXH45.js → chunk-LPOAVK6Y.js} +1 -0
- package/dist/{chunk-VGJTARSA.js → chunk-LRARA622.js} +2 -2
- package/dist/chunk-LRD242C7.js +40 -0
- package/dist/{chunk-PADOWAXM.js → chunk-LWJF63JW.js} +1 -1
- package/dist/{chunk-DYUTYBAQ.js → chunk-M6N4ISXL.js} +1 -1
- package/dist/{chunk-2F3H6ORE.js → chunk-MWQQVKRU.js} +1 -1
- package/dist/{chunk-JK5CK6SW.js → chunk-N2WKLVUX.js} +20 -3
- package/dist/{chunk-R65A4P4H.js → chunk-N335VHD3.js} +1 -1
- package/dist/chunk-NBMM2TZK.js +33 -0
- package/dist/{chunk-SI4ALL7W.js → chunk-NBPMNUKZ.js} +1 -1
- package/dist/{chunk-GDMNHL7E.js → chunk-NCABGI3E.js} +6 -6
- package/dist/chunk-NYRRRCJS.js +339 -0
- package/dist/{chunk-QJ7QW3SZ.js → chunk-O7E4KQAK.js} +6 -6
- package/dist/{chunk-NKB6WTBH.js → chunk-OWPZ3CIR.js} +5 -5
- package/dist/{chunk-RE7YXVFG.js → chunk-PCMNEUMV.js} +3 -3
- package/dist/{chunk-CFETU5BI.js → chunk-QHQWEERJ.js} +1 -36
- package/dist/{chunk-WHTS4G5K.js → chunk-QXUKJDZB.js} +1 -1
- package/dist/{chunk-Y224F4UU.js → chunk-RIN4CBRB.js} +0 -1
- package/dist/{chunk-LWVBKUUL.js → chunk-RL7SFZOF.js} +2 -2
- package/dist/{chunk-UYJ65N46.js → chunk-RLETOWCM.js} +5 -5
- package/dist/{chunk-DVPTD7LZ.js → chunk-RMBCBXWD.js} +1 -1
- package/dist/{chunk-A2BNIZ7D.js → chunk-RTAWYMQP.js} +1 -1
- package/dist/{chunk-VJTYMQVA.js → chunk-RUE5BPC2.js} +2 -2
- package/dist/{chunk-EOOK6473.js → chunk-RV5UTYBG.js} +15 -13
- package/dist/chunk-S2Q7PO7I.js +177 -0
- package/dist/{chunk-Y4VBOHAP.js → chunk-S7EKBD2C.js} +3 -3
- package/dist/{chunk-CELHWX5P.js → chunk-SDSEW72R.js} +5 -5
- package/dist/{chunk-4TBDDMFP.js → chunk-SGT6QYWH.js} +1 -1
- package/dist/chunk-STBCWNZQ.js +57 -0
- package/dist/{chunk-LZ7QV42C.js → chunk-SYNUA6LQ.js} +1 -1
- package/dist/{chunk-CTWSWZ4R.js → chunk-T7LEJIIM.js} +4 -4
- package/dist/{chunk-7EM7WET3.js → chunk-TZTKHOEK.js} +4 -4
- package/dist/chunk-UL4O5M4S.js +45 -0
- package/dist/{chunk-AW77UWCZ.js → chunk-VBRTC2VU.js} +13 -4
- package/dist/{chunk-VDWGP2U6.js → chunk-VV6IKGCN.js} +1 -1
- package/dist/{chunk-JKXAL7WR.js → chunk-VXMOPVRH.js} +2 -2
- package/dist/{chunk-RIILGKYR.js → chunk-VXWN37PT.js} +1 -1
- package/dist/{chunk-CDIZEXFJ.js → chunk-WQX4ASK4.js} +6 -4
- package/dist/{chunk-SOZMJA7V.js → chunk-X22KTLZ7.js} +1 -1
- package/dist/{chunk-SDA5NDMT.js → chunk-XZG2HZYW.js} +2 -2
- package/dist/{chunk-SECZTXSU.js → chunk-YQYRAD5C.js} +1 -1
- package/dist/{chunk-WPFTRRWV.js → chunk-ZEVYT6IX.js} +202 -6
- package/dist/chunk-ZWTCVOHQ.js +14 -0
- package/dist/{chunk-NX26QE2O.js → chunk-ZYOXKUKZ.js} +1 -1
- package/dist/chunk-ZZO3INVE.js +9631 -0
- package/dist/collections-2M4RFH4P.js +66 -0
- package/dist/{configuration-RNWBTRAH.js → configuration-O5GDANA7.js} +5 -5
- package/dist/{configuration-KWAL2QZ5.js → configuration-RHPIO2QT.js} +3 -3
- package/dist/{create-BEVGWF6U.js → create-2TUWGQ2D.js} +33 -32
- package/dist/{create-YPCVTXAK.js → create-33TRLASX.js} +4 -4
- package/dist/{create-BBFTIFI2.js → create-3WUTLUJO.js} +36 -33
- package/dist/create-6IRE6AMF.js +78 -0
- package/dist/{create-F5K53QPH.js → create-D4F457BD.js} +38 -36
- package/dist/{create-7UEEO5TM.js → create-D6EW3EWC.js} +3 -3
- package/dist/{create-EJM5C2XP.js → create-FFKQAZ5D.js} +6 -6
- package/dist/{create-ZU362U3B.js → create-GHM7OTCR.js} +3 -3
- package/dist/{create-VUKGQU4L.js → create-IFMEEHN4.js} +34 -32
- package/dist/{create-IE6MYOIY.js → create-IOUKWPE4.js} +11 -10
- package/dist/{create-XGF6DB5F.js → create-KGOMJUXR.js} +5 -4
- package/dist/{create-TFDUNJSI.js → create-KGYL7FBM.js} +3 -3
- package/dist/{create-UCU73IXX.js → create-OF2OZ7EI.js} +25 -23
- package/dist/{create-MKBBF2V3.js → create-Q6ITSYJM.js} +3 -3
- package/dist/{create-VEWS4QDP.js → create-QK2SSLZK.js} +48 -45
- package/dist/{create-NPSYO6PE.js → create-YITFTHMA.js} +37 -35
- package/dist/{customers-4QWR5UOL.js → customers-OXAD52MC.js} +10 -9
- package/dist/{edit-J3LD76JS.js → edit-4HZHLYI3.js} +6 -6
- package/dist/{edit-47I7VVNB.js → edit-5CJZRHAA.js} +3 -3
- package/dist/{edit-BYXHU3IG.js → edit-7GVP6SRA.js} +3 -3
- package/dist/{edit-J6WCPHDS.js → edit-7HTH2UJF.js} +5 -5
- package/dist/{edit-XU33IVZH.js → edit-ATXE6CM5.js} +3 -3
- package/dist/{edit-ZMINDMGM.js → edit-B5B3XKDM.js} +3 -3
- package/dist/{edit-DG3MY3ZH.js → edit-FC64DWB2.js} +5 -5
- package/dist/{edit-LOKLQGM2.js → edit-FNDDSSMT.js} +3 -3
- package/dist/{edit-S7B7VPM4.js → edit-J5SC7GHQ.js} +29 -28
- package/dist/{edit-7LQATDUD.js → edit-LRRJTHV2.js} +4 -4
- package/dist/{edit-BQLSTFTQ.js → edit-MYSWY6W4.js} +5 -5
- package/dist/edit-ONSN756P.js +237 -0
- package/dist/{edit-JZVEAKJU.js → edit-PIE7Y73J.js} +49 -46
- package/dist/{edit-CZVL3IVY.js → edit-QRJIWTU2.js} +30 -29
- package/dist/{edit-JAKXFAVP.js → edit-SGEECDCR.js} +25 -24
- package/dist/{edit-5BUGSOTL.js → edit-UAXMJAEI.js} +5 -4
- package/dist/edit-UQAQVEUI.js +353 -0
- package/dist/edit-Z7EZRPUP.js +362 -0
- package/dist/{edit-NHU3LJIH.js → edit-ZEIL7EQW.js} +23 -22
- package/dist/{edit-budget-Z5USV462.js → edit-budget-J27CSEZH.js} +3 -3
- package/dist/{edit-inventory-item-YFW2AFRD.js → edit-inventory-item-US77M2FF.js} +3 -3
- package/dist/{edit-inventory-item-attributes-IYAMJDTB.js → edit-inventory-item-attributes-QYNDTUHT.js} +5 -4
- package/dist/edit-stocks-and-prices-543AYFDJ.js +409 -0
- package/dist/{fulfillment-V3D4XU3R.js → fulfillment-5LNFBSBS.js} +26 -25
- package/dist/{fulfillment-providers-YYN3GVV7.js → fulfillment-providers-U7Z7QMOQ.js} +33 -31
- package/dist/{home-PP7YYCSB.js → home-I3OILW5Z.js} +2 -2
- package/dist/index.css +5127 -3
- package/dist/index.js +453 -215
- package/dist/{inventory-AIRQ2KNS.js → inventory-W6S2NIBI.js} +8 -7
- package/dist/invite-P6HTOEIV.js +301 -0
- package/dist/invite-SI2KIPWI.js +370 -0
- package/dist/{locations-SQKM7JWN.js → locations-7SQJ3O2F.js} +4 -4
- package/dist/login-QDS5UXKV.js +36 -0
- package/dist/{manage-locations-4PQS4QY7.js → manage-locations-R4T72DTA.js} +4 -4
- package/dist/{media-UR73M6X2.js → media-RDXCLPKQ.js} +7 -6
- package/dist/{metadata-REBVXJJF.js → metadata-7JKDCVYY.js} +26 -25
- package/dist/{metadata-DIJTVDF7.js → metadata-AWUKZ25V.js} +6 -6
- package/dist/{metadata-ZKG2TRYU.js → metadata-UKBRUFH2.js} +23 -22
- package/dist/{metadata-UBZXDIFG.js → metadata-W5XIPFVU.js} +26 -25
- package/dist/{metadata-OOM44E2U.js → metadata-X4UIPNL6.js} +26 -25
- package/dist/{metadata-OGVHZEKS.js → metadata-ZV5RYLKR.js} +23 -22
- package/dist/{no-match-BO2NNLCM.js → no-match-JLVLPCRH.js} +1 -1
- package/dist/onboarding-DLIBZRKE.js +873 -0
- package/dist/orders-IAL3JNPU.js +61 -0
- package/dist/organization-QCSXE52A.js +303 -0
- package/dist/{organize-5AIJPYS2.js → organize-5W5KNBM2.js} +5 -5
- package/dist/{organize-YXJVI74L.js → organize-U2LVYSOD.js} +5 -5
- package/dist/pages/index.d.ts +222 -49
- package/dist/pages/index.js +96 -93
- package/dist/payment-details-ATUYMVJX.js +234 -0
- package/dist/{payouts-3BY73LZ3.js → payouts-ZLX3KFQT.js} +9 -8
- package/dist/{price-lists-G256JJN7.js → price-lists-JX22K5EO.js} +10 -9
- package/dist/{prices-EW7KBY6R.js → prices-6NY4DELP.js} +14 -13
- package/dist/{pricing-SQNF3KGG.js → pricing-RBESFX5P.js} +33 -31
- package/dist/{product-tags-FR32HXFW.js → product-tags-W4BL6RWV.js} +43 -40
- package/dist/{product-types-WJPLJI7H.js → product-types-MBLFYJOA.js} +10 -9
- package/dist/{product-variant-detail-G5MBDTFL.js → product-variant-detail-KU5OCL7E.js} +270 -56
- package/dist/{product-variant-edit-PW7W5J5E.js → product-variant-edit-5FMMMH2W.js} +8 -7
- package/dist/{products-C4BF2X7D.js → products-3VVYJUH7.js} +31 -29
- package/dist/products-YYLVCOOY.js +93 -0
- package/dist/professional-details-6Y5K6GBL.js +167 -0
- package/dist/profile-Y4AATQES.js +171 -0
- package/dist/{promotions-INYBMACT.js → promotions-NBJTFP6N.js} +10 -9
- package/dist/register-ZLE6MNPF.js +223 -0
- package/dist/{reset-password-CPTU3KHW.js → reset-password-PLCDLFL4.js} +4 -4
- package/dist/{chunk-5NF4OTVV.js → return-reasons-64WZ5Z3Z.js} +46 -5
- package/dist/{sales-channels-6I3U4W4Z.js → sales-channels-UIDLFCX6.js} +10 -9
- package/dist/{sales-channels-SOACADV2.js → sales-channels-UWPEFKAO.js} +12 -11
- package/dist/{settings-MAXHH7EC.js → settings-5MNWE5CR.js} +53 -56
- package/dist/{shipping-profile-7FTHSPY2.js → shipping-profile-JJBIVZPM.js} +4 -4
- package/dist/shipping-profiles-O7XB2DTE.js +45 -0
- package/dist/{stock-LOO5SU5Q.js → stock-2CGEFBXO.js} +30 -30
- package/dist/{stock-4G4PELBV.js → stock-VJAAYYW5.js} +30 -31
- package/dist/store-ZBSMNWFT.js +568 -0
- package/dist/store-closure-43FK32AQ.js +172 -0
- package/dist/store-select-Q2HE572R.js +166 -0
- package/dist/{tax-regions-45JVTUP3.js → tax-regions-FPMGLITT.js} +8 -8
- package/dist/team-ZLZJJWIY.js +269 -0
- package/package.json +9 -6
- package/dist/additional-attributes-XUFDADGP.js +0 -219
- package/dist/breadcrumb-3RAESPC7.js +0 -31
- package/dist/breadcrumb-54IEJEAX.js +0 -45
- package/dist/breadcrumb-CFDJOGTA.js +0 -44
- package/dist/chunk-6EYGH3TB.js +0 -26
- package/dist/chunk-FPJLYWOU.js +0 -190
- package/dist/chunk-GTUR4HSV.js +0 -53
- package/dist/chunk-LODQAVDC.js +0 -179
- package/dist/chunk-NYK5PQIF.js +0 -2078
- package/dist/chunk-PKBMQBKP.js +0 -7
- package/dist/chunk-RNC4NFVK.js +0 -170
- package/dist/collections-2222I5MO.js +0 -63
- package/dist/create-R3SFYWAH.js +0 -69
- package/dist/edit-HBNCGMQO.js +0 -413
- package/dist/login-RDIRFQ7U.js +0 -35
- package/dist/orders-Q347PBOH.js +0 -59
- package/dist/organization-TDDI3HOH.js +0 -233
- package/dist/products-4WTWZIVH.js +0 -85
- package/dist/register-6WOPLDJK.js +0 -366
- package/dist/return-reasons-4V2KVSRI.js +0 -52
- package/dist/seller-44DTDU26.js +0 -36
- package/dist/shipping-profiles-3PYQLYFE.js +0 -43
- /package/dist/{chunk-XG4PTPRM.js → chunk-NXDFDEKP.js} +0 -0
- /package/dist/{chunk-S3PQKKNV.js → chunk-V74Y5NIV.js} +0 -0
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_dist
|
|
3
|
+
} from "./chunk-ZZO3INVE.js";
|
|
4
|
+
import {
|
|
5
|
+
DateRangeDisplay
|
|
6
|
+
} from "./chunk-BWGPN6XV.js";
|
|
7
|
+
import {
|
|
8
|
+
getStylizedAmount
|
|
9
|
+
} from "./chunk-PXYDR7WQ.js";
|
|
10
|
+
import {
|
|
11
|
+
currencies
|
|
12
|
+
} from "./chunk-IQPN4PZJ.js";
|
|
13
|
+
import {
|
|
14
|
+
IconAvatar
|
|
15
|
+
} from "./chunk-U2EI2ZLM.js";
|
|
16
|
+
import {
|
|
17
|
+
TwoColumnPage
|
|
18
|
+
} from "./chunk-RM5RSDYP.js";
|
|
19
|
+
import "./chunk-LRD242C7.js";
|
|
20
|
+
import {
|
|
21
|
+
membersQueryKeys,
|
|
22
|
+
subscriptionQueryKeys,
|
|
23
|
+
useMe,
|
|
24
|
+
useSubscription
|
|
25
|
+
} from "./chunk-NYRRRCJS.js";
|
|
26
|
+
import "./chunk-STBCWNZQ.js";
|
|
27
|
+
import "./chunk-F4OJN2F2.js";
|
|
28
|
+
import "./chunk-LRARA622.js";
|
|
29
|
+
import "./chunk-M6N4ISXL.js";
|
|
30
|
+
import "./chunk-S7EKBD2C.js";
|
|
31
|
+
import "./chunk-VXMOPVRH.js";
|
|
32
|
+
import "./chunk-IQWK723D.js";
|
|
33
|
+
import "./chunk-VV6IKGCN.js";
|
|
34
|
+
import "./chunk-PCMNEUMV.js";
|
|
35
|
+
import "./chunk-BOZJOOGW.js";
|
|
36
|
+
import "./chunk-RL7SFZOF.js";
|
|
37
|
+
import "./chunk-LWJF63JW.js";
|
|
38
|
+
import "./chunk-NBPMNUKZ.js";
|
|
39
|
+
import "./chunk-GCSQEJMD.js";
|
|
40
|
+
import "./chunk-VXWN37PT.js";
|
|
41
|
+
import "./chunk-UL4O5M4S.js";
|
|
42
|
+
import "./chunk-FX4V5JCF.js";
|
|
43
|
+
import {
|
|
44
|
+
ActionMenu
|
|
45
|
+
} from "./chunk-BDGZ4EQO.js";
|
|
46
|
+
import "./chunk-QHQWEERJ.js";
|
|
47
|
+
import "./chunk-3B34B2M2.js";
|
|
48
|
+
import "./chunk-RUE5BPC2.js";
|
|
49
|
+
import "./chunk-LAVHRER2.js";
|
|
50
|
+
import "./chunk-Y7QKP6QU.js";
|
|
51
|
+
import {
|
|
52
|
+
TwoColumnPageSkeleton
|
|
53
|
+
} from "./chunk-INNFZYX2.js";
|
|
54
|
+
import "./chunk-ZEVYT6IX.js";
|
|
55
|
+
import "./chunk-A5DJIOHN.js";
|
|
56
|
+
import {
|
|
57
|
+
queryClient
|
|
58
|
+
} from "./chunk-RHKRREUU.js";
|
|
59
|
+
import "./chunk-ZA2KFUFR.js";
|
|
60
|
+
import {
|
|
61
|
+
sdk
|
|
62
|
+
} from "./chunk-RIN4CBRB.js";
|
|
63
|
+
import {
|
|
64
|
+
__toESM
|
|
65
|
+
} from "./chunk-NBMM2TZK.js";
|
|
66
|
+
|
|
67
|
+
// src/pages/settings/store/store-detail-page.tsx
|
|
68
|
+
import { Children as Children3 } from "react";
|
|
69
|
+
import { Alert, Text as Text6 } from "@medusajs/ui";
|
|
70
|
+
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
71
|
+
var import_types2 = __toESM(require_dist(), 1);
|
|
72
|
+
|
|
73
|
+
// src/pages/settings/store/_components/store-address-section.tsx
|
|
74
|
+
import { BuildingStorefront, PencilSquare } from "@medusajs/icons";
|
|
75
|
+
import { Container, Heading, Text } from "@medusajs/ui";
|
|
76
|
+
import { useTranslation } from "react-i18next";
|
|
77
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
78
|
+
var StoreAddressSection = ({ seller }) => {
|
|
79
|
+
const { t } = useTranslation();
|
|
80
|
+
const address = seller.address;
|
|
81
|
+
const formatAddress = () => {
|
|
82
|
+
const parts = [
|
|
83
|
+
address?.address_1,
|
|
84
|
+
address?.city,
|
|
85
|
+
address?.postal_code,
|
|
86
|
+
address?.country_code?.toUpperCase()
|
|
87
|
+
].filter(Boolean);
|
|
88
|
+
return parts.length > 0 ? parts.join(", ") : null;
|
|
89
|
+
};
|
|
90
|
+
const formattedAddress = formatAddress();
|
|
91
|
+
return /* @__PURE__ */ jsxs(Container, { className: "p-0", children: [
|
|
92
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
93
|
+
/* @__PURE__ */ jsx(Heading, { level: "h2", children: t("store.address.header") }),
|
|
94
|
+
/* @__PURE__ */ jsx(
|
|
95
|
+
ActionMenu,
|
|
96
|
+
{
|
|
97
|
+
groups: [
|
|
98
|
+
{
|
|
99
|
+
actions: [
|
|
100
|
+
{
|
|
101
|
+
label: t("actions.edit"),
|
|
102
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
103
|
+
to: "address"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
112
|
+
/* @__PURE__ */ jsx(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx(BuildingStorefront, {}) }),
|
|
113
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col", children: [
|
|
114
|
+
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: [address?.first_name, address?.last_name].filter(Boolean).join(" ") || "-" }),
|
|
115
|
+
/* @__PURE__ */ jsx(
|
|
116
|
+
Text,
|
|
117
|
+
{
|
|
118
|
+
size: "small",
|
|
119
|
+
leading: "compact",
|
|
120
|
+
className: "text-ui-fg-subtle",
|
|
121
|
+
children: formattedAddress || "-"
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
] })
|
|
125
|
+
] }) }) })
|
|
126
|
+
] });
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
// src/pages/settings/store/_components/store-configuration-section.tsx
|
|
130
|
+
import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
131
|
+
import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
132
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
133
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
134
|
+
var StoreConfigurationSection = ({
|
|
135
|
+
seller
|
|
136
|
+
}) => {
|
|
137
|
+
const { t } = useTranslation2();
|
|
138
|
+
return /* @__PURE__ */ jsxs2(Container2, { className: "flex flex-col gap-y-4", children: [
|
|
139
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between", children: [
|
|
140
|
+
/* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("store.scheduledClosure.header") }),
|
|
141
|
+
/* @__PURE__ */ jsx2(
|
|
142
|
+
ActionMenu,
|
|
143
|
+
{
|
|
144
|
+
groups: [
|
|
145
|
+
{
|
|
146
|
+
actions: [
|
|
147
|
+
{
|
|
148
|
+
label: t("actions.edit"),
|
|
149
|
+
icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
|
|
150
|
+
to: "store-closure"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
] }),
|
|
158
|
+
/* @__PURE__ */ jsx2(
|
|
159
|
+
DateRangeDisplay,
|
|
160
|
+
{
|
|
161
|
+
startsAt: seller.closed_from,
|
|
162
|
+
endsAt: seller.closed_to,
|
|
163
|
+
showTime: true
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
] });
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
// src/pages/settings/store/_components/store-general-section.tsx
|
|
170
|
+
import { Children as Children2 } from "react";
|
|
171
|
+
import { Photo } from "@medusajs/icons";
|
|
172
|
+
import { Badge, Container as Container3, Text as Text2 } from "@medusajs/ui";
|
|
173
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
174
|
+
|
|
175
|
+
// src/pages/settings/store/_components/store-detail-header.tsx
|
|
176
|
+
import { Children } from "react";
|
|
177
|
+
import { PencilSquare as PencilSquare3 } from "@medusajs/icons";
|
|
178
|
+
import { Avatar, Heading as Heading3, StatusBadge } from "@medusajs/ui";
|
|
179
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
180
|
+
var import_types = __toESM(require_dist(), 1);
|
|
181
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
182
|
+
var getStatusColor = (status) => {
|
|
183
|
+
switch (status) {
|
|
184
|
+
case import_types.SellerStatus.OPEN:
|
|
185
|
+
return "green";
|
|
186
|
+
case import_types.SellerStatus.PENDING_APPROVAL:
|
|
187
|
+
return "orange";
|
|
188
|
+
case import_types.SellerStatus.SUSPENDED:
|
|
189
|
+
case import_types.SellerStatus.TERMINATED:
|
|
190
|
+
return "red";
|
|
191
|
+
default:
|
|
192
|
+
return "grey";
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
var getStatusLabel = (status, t) => {
|
|
196
|
+
switch (status) {
|
|
197
|
+
case import_types.SellerStatus.OPEN:
|
|
198
|
+
return t("store.status.active");
|
|
199
|
+
case import_types.SellerStatus.PENDING_APPROVAL:
|
|
200
|
+
return t("store.status.pendingApproval");
|
|
201
|
+
case import_types.SellerStatus.SUSPENDED:
|
|
202
|
+
return t("store.status.suspended");
|
|
203
|
+
case import_types.SellerStatus.TERMINATED:
|
|
204
|
+
return t("store.status.terminated");
|
|
205
|
+
default:
|
|
206
|
+
return status;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
var StoreDetailTitle = ({ seller }) => {
|
|
210
|
+
return /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-4", children: [
|
|
211
|
+
/* @__PURE__ */ jsx3(
|
|
212
|
+
Avatar,
|
|
213
|
+
{
|
|
214
|
+
variant: "squared",
|
|
215
|
+
size: "large",
|
|
216
|
+
src: seller.logo || void 0,
|
|
217
|
+
fallback: seller.name.charAt(0).toUpperCase()
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
/* @__PURE__ */ jsx3(Heading3, { children: seller.name })
|
|
221
|
+
] });
|
|
222
|
+
};
|
|
223
|
+
var StoreDetailEditButton = () => {
|
|
224
|
+
const { t } = useTranslation3();
|
|
225
|
+
return /* @__PURE__ */ jsx3(
|
|
226
|
+
ActionMenu,
|
|
227
|
+
{
|
|
228
|
+
groups: [
|
|
229
|
+
{
|
|
230
|
+
actions: [
|
|
231
|
+
{
|
|
232
|
+
icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
|
|
233
|
+
label: t("actions.edit"),
|
|
234
|
+
to: "edit"
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
);
|
|
241
|
+
};
|
|
242
|
+
var StoreDetailActions = ({
|
|
243
|
+
seller,
|
|
244
|
+
children
|
|
245
|
+
}) => {
|
|
246
|
+
const { t } = useTranslation3();
|
|
247
|
+
return /* @__PURE__ */ jsx3("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
248
|
+
/* @__PURE__ */ jsx3(StatusBadge, { color: getStatusColor(seller.status), children: getStatusLabel(seller.status, t) }),
|
|
249
|
+
/* @__PURE__ */ jsx3(StoreDetailEditButton, {})
|
|
250
|
+
] }) });
|
|
251
|
+
};
|
|
252
|
+
var StoreDetailHeader = ({
|
|
253
|
+
seller,
|
|
254
|
+
children
|
|
255
|
+
}) => {
|
|
256
|
+
return /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-between px-6 py-4", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
257
|
+
/* @__PURE__ */ jsx3(StoreDetailTitle, { seller }),
|
|
258
|
+
/* @__PURE__ */ jsx3(StoreDetailActions, { seller })
|
|
259
|
+
] }) });
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
// src/pages/settings/store/_components/store-general-section.tsx
|
|
263
|
+
import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
264
|
+
var StoreGeneralSection = ({
|
|
265
|
+
seller,
|
|
266
|
+
children
|
|
267
|
+
}) => {
|
|
268
|
+
const { t } = useTranslation4();
|
|
269
|
+
return /* @__PURE__ */ jsx4(Container3, { className: "divide-y p-0", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
270
|
+
/* @__PURE__ */ jsx4("div", { className: "bg-ui-bg-subtle relative h-32 w-full overflow-hidden rounded-t-lg", children: seller.banner ? /* @__PURE__ */ jsx4(
|
|
271
|
+
"img",
|
|
272
|
+
{
|
|
273
|
+
src: seller.banner,
|
|
274
|
+
alt: seller.name,
|
|
275
|
+
className: "h-full w-full object-cover"
|
|
276
|
+
}
|
|
277
|
+
) : /* @__PURE__ */ jsx4("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ jsx4(Photo, { className: "text-ui-fg-muted" }) }) }),
|
|
278
|
+
/* @__PURE__ */ jsx4(StoreDetailHeader, { seller }),
|
|
279
|
+
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
280
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
|
|
281
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.description || "-" })
|
|
282
|
+
] }),
|
|
283
|
+
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
284
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
285
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
|
|
286
|
+
] }),
|
|
287
|
+
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
288
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
289
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
290
|
+
] }),
|
|
291
|
+
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
292
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
|
|
293
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.website_url || "-" })
|
|
294
|
+
] }),
|
|
295
|
+
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
296
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
|
|
297
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
|
|
298
|
+
/* @__PURE__ */ jsx4(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
|
|
299
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: currencies[seller.currency_code?.toUpperCase()]?.name || "-" })
|
|
300
|
+
] })
|
|
301
|
+
] }),
|
|
302
|
+
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
303
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.premium") }),
|
|
304
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.is_premium ? t("general.yes") : t("general.no") })
|
|
305
|
+
] }),
|
|
306
|
+
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
307
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.createdAt") }),
|
|
308
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: new Date(seller.created_at).toLocaleDateString(void 0, {
|
|
309
|
+
year: "numeric",
|
|
310
|
+
month: "long",
|
|
311
|
+
day: "numeric"
|
|
312
|
+
}) })
|
|
313
|
+
] })
|
|
314
|
+
] }) });
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
// src/pages/settings/store/_components/store-subscription-section.tsx
|
|
318
|
+
import { CurrencyDollar } from "@medusajs/icons";
|
|
319
|
+
import { Container as Container4, Heading as Heading4, Text as Text3 } from "@medusajs/ui";
|
|
320
|
+
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
321
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
322
|
+
var StoreSubscriptionSection = ({
|
|
323
|
+
subscription_plan,
|
|
324
|
+
subscription_override
|
|
325
|
+
}) => {
|
|
326
|
+
const { t } = useTranslation5();
|
|
327
|
+
const effectiveMonthlyAmount = subscription_override?.monthly_amount ?? subscription_plan?.monthly_amount;
|
|
328
|
+
if (!subscription_plan) {
|
|
329
|
+
return null;
|
|
330
|
+
}
|
|
331
|
+
return /* @__PURE__ */ jsxs5(Container4, { className: "p-0", children: [
|
|
332
|
+
/* @__PURE__ */ jsx5("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx5(Heading4, { level: "h2", children: t("store.subscription.header") }) }),
|
|
333
|
+
/* @__PURE__ */ jsx5("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx5("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-4", children: [
|
|
334
|
+
/* @__PURE__ */ jsx5(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx5(CurrencyDollar, {}) }),
|
|
335
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-1 flex-col", children: [
|
|
336
|
+
/* @__PURE__ */ jsx5(Text3, { size: "small", leading: "compact", weight: "plus", children: subscription_plan.currency_code?.toUpperCase() }),
|
|
337
|
+
/* @__PURE__ */ jsxs5(
|
|
338
|
+
Text3,
|
|
339
|
+
{
|
|
340
|
+
size: "small",
|
|
341
|
+
leading: "compact",
|
|
342
|
+
className: "text-ui-fg-subtle",
|
|
343
|
+
children: [
|
|
344
|
+
getStylizedAmount(
|
|
345
|
+
effectiveMonthlyAmount ?? 0,
|
|
346
|
+
subscription_plan.currency_code
|
|
347
|
+
),
|
|
348
|
+
"/",
|
|
349
|
+
t("store.subscription.month")
|
|
350
|
+
]
|
|
351
|
+
}
|
|
352
|
+
)
|
|
353
|
+
] })
|
|
354
|
+
] }) }) })
|
|
355
|
+
] });
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
// src/pages/settings/store/_components/store-payment-details-section.tsx
|
|
359
|
+
import { CreditCard, PencilSquare as PencilSquare4 } from "@medusajs/icons";
|
|
360
|
+
import { Container as Container5, Heading as Heading5, Text as Text4 } from "@medusajs/ui";
|
|
361
|
+
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
362
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
363
|
+
var StorePaymentDetailsSection = ({
|
|
364
|
+
seller
|
|
365
|
+
}) => {
|
|
366
|
+
const { t } = useTranslation6();
|
|
367
|
+
const details = seller.payment_details;
|
|
368
|
+
const isABA = details?.country_code === "us";
|
|
369
|
+
const accountIdentifier = isABA ? details?.account_number : details?.iban;
|
|
370
|
+
const subtitle = [details?.bank_name, accountIdentifier].filter(Boolean).join(" \u2022 ");
|
|
371
|
+
return /* @__PURE__ */ jsxs6(Container5, { className: "p-0", children: [
|
|
372
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
373
|
+
/* @__PURE__ */ jsx6(Heading5, { level: "h2", children: t("store.paymentDetails.header") }),
|
|
374
|
+
/* @__PURE__ */ jsx6(
|
|
375
|
+
ActionMenu,
|
|
376
|
+
{
|
|
377
|
+
groups: [
|
|
378
|
+
{
|
|
379
|
+
actions: [
|
|
380
|
+
{
|
|
381
|
+
label: t("actions.edit"),
|
|
382
|
+
icon: /* @__PURE__ */ jsx6(PencilSquare4, {}),
|
|
383
|
+
to: "payment-details"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
)
|
|
390
|
+
] }),
|
|
391
|
+
/* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx6("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-4", children: [
|
|
392
|
+
/* @__PURE__ */ jsx6(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx6(CreditCard, {}) }),
|
|
393
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex flex-1 flex-col", children: [
|
|
394
|
+
/* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: details?.holder_name || "-" }),
|
|
395
|
+
/* @__PURE__ */ jsx6(
|
|
396
|
+
Text4,
|
|
397
|
+
{
|
|
398
|
+
size: "small",
|
|
399
|
+
leading: "compact",
|
|
400
|
+
className: "text-ui-fg-subtle",
|
|
401
|
+
children: subtitle || "-"
|
|
402
|
+
}
|
|
403
|
+
)
|
|
404
|
+
] })
|
|
405
|
+
] }) }) })
|
|
406
|
+
] });
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
// src/pages/settings/store/_components/store-professional-details-section.tsx
|
|
410
|
+
import { Buildings, PencilSquare as PencilSquare5 } from "@medusajs/icons";
|
|
411
|
+
import { Container as Container6, Heading as Heading6, Text as Text5 } from "@medusajs/ui";
|
|
412
|
+
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
413
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
414
|
+
var StoreProfessionalDetailsSection = ({
|
|
415
|
+
seller
|
|
416
|
+
}) => {
|
|
417
|
+
const { t } = useTranslation7();
|
|
418
|
+
const details = seller.professional_details;
|
|
419
|
+
return /* @__PURE__ */ jsxs7(Container6, { className: "p-0", children: [
|
|
420
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
421
|
+
/* @__PURE__ */ jsx7(Heading6, { level: "h2", children: t("store.professionalDetails.header") }),
|
|
422
|
+
/* @__PURE__ */ jsx7(
|
|
423
|
+
ActionMenu,
|
|
424
|
+
{
|
|
425
|
+
groups: [
|
|
426
|
+
{
|
|
427
|
+
actions: [
|
|
428
|
+
{
|
|
429
|
+
label: t("actions.edit"),
|
|
430
|
+
icon: /* @__PURE__ */ jsx7(PencilSquare5, {}),
|
|
431
|
+
to: "professional-details"
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
)
|
|
438
|
+
] }),
|
|
439
|
+
/* @__PURE__ */ jsx7("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx7("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-4", children: [
|
|
440
|
+
/* @__PURE__ */ jsx7(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx7(Buildings, {}) }),
|
|
441
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
|
|
442
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: details?.corporate_name || "-" }),
|
|
443
|
+
/* @__PURE__ */ jsx7(
|
|
444
|
+
Text5,
|
|
445
|
+
{
|
|
446
|
+
size: "small",
|
|
447
|
+
leading: "compact",
|
|
448
|
+
className: "text-ui-fg-subtle",
|
|
449
|
+
children: [details?.registration_number, details?.tax_id].filter(Boolean).join(" \xB7 ") || "-"
|
|
450
|
+
}
|
|
451
|
+
)
|
|
452
|
+
] })
|
|
453
|
+
] }) }) })
|
|
454
|
+
] });
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
// src/pages/settings/store/store-detail-page.tsx
|
|
458
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
459
|
+
var Root = ({ children }) => {
|
|
460
|
+
const { t } = useTranslation8();
|
|
461
|
+
const { seller_member, isPending, isError, error } = useMe();
|
|
462
|
+
const {
|
|
463
|
+
subscription_plan,
|
|
464
|
+
subscription_override,
|
|
465
|
+
isPending: isSubscriptionPending
|
|
466
|
+
} = useSubscription();
|
|
467
|
+
const seller = seller_member?.seller;
|
|
468
|
+
if (isPending || isSubscriptionPending || !seller) {
|
|
469
|
+
return /* @__PURE__ */ jsx8(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 3 });
|
|
470
|
+
}
|
|
471
|
+
if (isError) {
|
|
472
|
+
throw error;
|
|
473
|
+
}
|
|
474
|
+
const statusAlert = (() => {
|
|
475
|
+
switch (seller.status) {
|
|
476
|
+
case import_types2.SellerStatus.PENDING_APPROVAL:
|
|
477
|
+
return {
|
|
478
|
+
variant: "warning",
|
|
479
|
+
title: t("store.alert.pendingApproval.title"),
|
|
480
|
+
description: t("store.alert.pendingApproval.description")
|
|
481
|
+
};
|
|
482
|
+
case import_types2.SellerStatus.SUSPENDED:
|
|
483
|
+
return {
|
|
484
|
+
variant: "error",
|
|
485
|
+
title: t("store.alert.suspended.title"),
|
|
486
|
+
description: seller.status_reason || t("store.alert.suspended.description")
|
|
487
|
+
};
|
|
488
|
+
case import_types2.SellerStatus.TERMINATED:
|
|
489
|
+
return {
|
|
490
|
+
variant: "error",
|
|
491
|
+
title: t("store.alert.terminated.title"),
|
|
492
|
+
description: seller.status_reason || t("store.alert.terminated.description")
|
|
493
|
+
};
|
|
494
|
+
default:
|
|
495
|
+
return null;
|
|
496
|
+
}
|
|
497
|
+
})();
|
|
498
|
+
if (Children3.count(children) > 0) {
|
|
499
|
+
return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-y-3", children: [
|
|
500
|
+
statusAlert && /* @__PURE__ */ jsxs8(Alert, { variant: statusAlert.variant, dismissible: true, className: "p-5", children: [
|
|
501
|
+
/* @__PURE__ */ jsx8("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: statusAlert.title }),
|
|
502
|
+
/* @__PURE__ */ jsx8(Text6, { className: "text-ui-fg-subtle txt-small leading-normal", children: statusAlert.description })
|
|
503
|
+
] }),
|
|
504
|
+
/* @__PURE__ */ jsx8(TwoColumnPage, { data: seller, hasOutlet: true, children })
|
|
505
|
+
] });
|
|
506
|
+
}
|
|
507
|
+
return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-y-3", children: [
|
|
508
|
+
statusAlert && /* @__PURE__ */ jsxs8(Alert, { variant: statusAlert.variant, dismissible: true, className: "p-5", children: [
|
|
509
|
+
/* @__PURE__ */ jsx8("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: statusAlert.title }),
|
|
510
|
+
/* @__PURE__ */ jsx8(Text6, { className: "text-ui-fg-subtle txt-small leading-normal", children: statusAlert.description })
|
|
511
|
+
] }),
|
|
512
|
+
/* @__PURE__ */ jsxs8(TwoColumnPage, { data: seller, hasOutlet: true, children: [
|
|
513
|
+
/* @__PURE__ */ jsx8(TwoColumnPage.Main, { children: /* @__PURE__ */ jsx8(StoreGeneralSection, { seller }) }),
|
|
514
|
+
/* @__PURE__ */ jsxs8(TwoColumnPage.Sidebar, { children: [
|
|
515
|
+
/* @__PURE__ */ jsx8(StoreConfigurationSection, { seller }),
|
|
516
|
+
/* @__PURE__ */ jsx8(StoreAddressSection, { seller }),
|
|
517
|
+
/* @__PURE__ */ jsx8(StoreProfessionalDetailsSection, { seller }),
|
|
518
|
+
/* @__PURE__ */ jsx8(StorePaymentDetailsSection, { seller }),
|
|
519
|
+
/* @__PURE__ */ jsx8(
|
|
520
|
+
StoreSubscriptionSection,
|
|
521
|
+
{
|
|
522
|
+
subscription_plan,
|
|
523
|
+
subscription_override
|
|
524
|
+
}
|
|
525
|
+
)
|
|
526
|
+
] })
|
|
527
|
+
] })
|
|
528
|
+
] });
|
|
529
|
+
};
|
|
530
|
+
var StoreDetailPage = Object.assign(Root, {
|
|
531
|
+
Main: TwoColumnPage.Main,
|
|
532
|
+
Sidebar: TwoColumnPage.Sidebar,
|
|
533
|
+
MainGeneralSection: StoreGeneralSection,
|
|
534
|
+
MainPaymentDetailsSection: StorePaymentDetailsSection,
|
|
535
|
+
MainProfessionalDetailsSection: StoreProfessionalDetailsSection,
|
|
536
|
+
SidebarConfigurationSection: StoreConfigurationSection,
|
|
537
|
+
SidebarAddressSection: StoreAddressSection,
|
|
538
|
+
SidebarSubscriptionSection: StoreSubscriptionSection,
|
|
539
|
+
Header: StoreDetailHeader,
|
|
540
|
+
HeaderTitle: StoreDetailTitle,
|
|
541
|
+
HeaderActions: StoreDetailActions,
|
|
542
|
+
HeaderEditButton: StoreDetailEditButton
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
// src/pages/settings/store/loader.ts
|
|
546
|
+
var meQuery = () => ({
|
|
547
|
+
queryKey: membersQueryKeys.me(),
|
|
548
|
+
queryFn: async () => sdk.vendor.members.me.query()
|
|
549
|
+
});
|
|
550
|
+
var subscriptionQuery = () => ({
|
|
551
|
+
queryKey: subscriptionQueryKeys.details(),
|
|
552
|
+
queryFn: async () => sdk.vendor.subscription.query()
|
|
553
|
+
});
|
|
554
|
+
var storeDetailLoader = async (_) => {
|
|
555
|
+
const meData = await queryClient.ensureQueryData({
|
|
556
|
+
...meQuery(),
|
|
557
|
+
staleTime: 9e4
|
|
558
|
+
});
|
|
559
|
+
queryClient.ensureQueryData({
|
|
560
|
+
...subscriptionQuery(),
|
|
561
|
+
staleTime: 9e4
|
|
562
|
+
});
|
|
563
|
+
return meData;
|
|
564
|
+
};
|
|
565
|
+
export {
|
|
566
|
+
StoreDetailPage,
|
|
567
|
+
storeDetailLoader as loader
|
|
568
|
+
};
|