@mercurjs/admin 2.3.8-canary.0 → 2.3.8-canary.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/{add-campaign-promotions-6BYWL6AA.js → add-campaign-promotions-XGOTWIPC.js} +7 -6
- package/dist/{adjust-inventory-D26HHGKH.js → adjust-inventory-POHCAHIY.js} +4 -5
- package/dist/{api-key-management-detail-HNC43TZY.js → api-key-management-detail-UGPPDBZJ.js} +4 -5
- package/dist/{api-key-management-list-7L7OLDGO.js → api-key-management-list-HTIDXZPK.js} +2 -2
- package/dist/{attribute-create-OYSJIWSD.js → attribute-create-RQN3G47R.js} +6 -7
- package/dist/{attribute-detail-5AB2NEZE.js → attribute-detail-DGX6DAM2.js} +6 -7
- package/dist/{attribute-edit-JFYEZ3MP.js → attribute-edit-3QCSOFRH.js} +2 -2
- package/dist/{attribute-edit-possible-value-7FN2TK7Z.js → attribute-edit-possible-value-D4UDLXX5.js} +2 -2
- package/dist/{attribute-list-QPJM77HR.js → attribute-list-7I2EJM2K.js} +6 -7
- package/dist/campaign-create-AJ7MTML5.js +1 -1
- package/dist/{campaign-detail-VT62HOSX.js → campaign-detail-MMBFOZQQ.js} +10 -11
- package/dist/{campaign-list-4UPMYKLS.js → campaign-list-2JPJGXHC.js} +4 -3
- package/dist/{categories-metadata-2PUEPCPF.js → categories-metadata-7ZD3EQUL.js} +4 -5
- package/dist/{category-detail-WM5PKZHS.js → category-detail-QCAHWH2R.js} +10 -11
- package/dist/{category-list-67JSNVXT.js → category-list-ICSYAEYY.js} +2 -2
- package/dist/{category-products-RYOQ5TM5.js → category-products-CI2FEZAI.js} +9 -10
- package/dist/{chunk-RP3J3X7P.js → chunk-2A5ZKUXK.js} +122 -17
- package/dist/{chunk-CXZYKHP3.js → chunk-2AFJMHDQ.js} +1 -1
- package/dist/{chunk-ONTZADVX.js → chunk-2KJCCHFH.js} +1 -1
- package/dist/{chunk-GIFVQPFT.js → chunk-2SPWEVJM.js} +4 -4
- package/dist/{chunk-OHL76ICJ.js → chunk-34S2KY5H.js} +2 -2
- package/dist/{chunk-JOIE6CIR.js → chunk-3BW7OZC5.js} +2 -2
- package/dist/{chunk-BJCD2G3U.js → chunk-4END3ACP.js} +1 -1
- package/dist/{chunk-H2SE3EHA.js → chunk-4I37X3VR.js} +1 -1
- package/dist/{chunk-AJZPQDDW.js → chunk-4JXRBULR.js} +9 -0
- package/dist/{chunk-66L2TV2T.js → chunk-4TE6D4KL.js} +1 -1
- package/dist/{chunk-IG6ODEES.js → chunk-4YP5MNMC.js} +2 -2
- package/dist/{chunk-ZQMCTQ2T.js → chunk-5B5KCRXP.js} +1 -1
- package/dist/{chunk-YZ7TYYVL.js → chunk-5QJTHTHZ.js} +31 -3
- package/dist/{chunk-PFP6ZXLY.js → chunk-6ELMO4BK.js} +2 -2
- package/dist/{chunk-WISQFAJG.js → chunk-6TTTVOSM.js} +6 -6
- package/dist/{chunk-O3JRFTHJ.js → chunk-6YQGQT3U.js} +246 -11
- package/dist/{chunk-VHO5PEEO.js → chunk-7FO4ZIXV.js} +3 -3
- package/dist/{chunk-T3IV6KW3.js → chunk-7ITAM2D5.js} +1 -1
- package/dist/{chunk-DQJV4IVE.js → chunk-AJF67M56.js} +3 -2
- package/dist/{chunk-BUNQ5YLD.js → chunk-B53ELFQL.js} +2 -2
- package/dist/chunk-COSQDX5E.js +186 -0
- package/dist/{chunk-6QXWDLBA.js → chunk-CR6UNNGK.js} +2 -2
- package/dist/{chunk-Q2ZJOBFJ.js → chunk-CVP27VJG.js} +3 -3
- package/dist/{chunk-U57QUIXU.js → chunk-CZNXPBVQ.js} +6 -6
- package/dist/{chunk-PCV2JPWV.js → chunk-D5CZENGV.js} +1 -1
- package/dist/{chunk-37GE6N5V.js → chunk-DAM74G6Y.js} +3 -3
- package/dist/chunk-DPZXLZNV.js +82 -0
- package/dist/{chunk-UUQEZYGA.js → chunk-EIZ75GWK.js} +3 -3
- package/dist/{chunk-PTE652T6.js → chunk-EPQQ5YVY.js} +7 -7
- package/dist/{chunk-V2N6JLWD.js → chunk-FEBVY4B3.js} +1 -1
- package/dist/{chunk-35TFC2OI.js → chunk-FVQSHBUC.js} +1 -1
- package/dist/{chunk-EZIUJWDF.js → chunk-FWUQ4J3Q.js} +1 -1
- package/dist/{chunk-QHWI5KGN.js → chunk-G75WKZUH.js} +3 -3
- package/dist/{chunk-O5W5DCKH.js → chunk-GELSC2GR.js} +1 -1
- package/dist/{chunk-OWSAXYGH.js → chunk-GHSEP2GQ.js} +1 -1
- package/dist/{chunk-WQFQQK24.js → chunk-GQ2YKIPT.js} +5 -1
- package/dist/{chunk-BRC3VJXF.js → chunk-HI7YT22S.js} +2 -2
- package/dist/{chunk-7ZFSINKL.js → chunk-HK4AGDWR.js} +1 -1
- package/dist/{chunk-NGYIAHMG.js → chunk-HLRQHPJD.js} +2 -2
- package/dist/{chunk-O4P7LFSP.js → chunk-HM3W4RZ6.js} +4 -4
- package/dist/{chunk-V6OUOIBQ.js → chunk-HOW2PD6R.js} +2 -2
- package/dist/{chunk-LUFKMNHC.js → chunk-HW35YR3I.js} +1 -1
- package/dist/{chunk-PGOJH3NS.js → chunk-IUVOUIAX.js} +73 -2
- package/dist/{chunk-ZCPG6OV7.js → chunk-JED7GXMZ.js} +1 -1
- package/dist/{chunk-DU7LGV7G.js → chunk-JPANHFPJ.js} +102 -27
- package/dist/{chunk-GF4BJFSQ.js → chunk-K3JOZVWF.js} +2 -2
- package/dist/{chunk-ITDTXNYW.js → chunk-KCKOWWD4.js} +1 -1
- package/dist/{chunk-WDTE56OU.js → chunk-KFMV55EY.js} +1 -1
- package/dist/{chunk-AOCKUTE5.js → chunk-KOZ7LHHQ.js} +3 -3
- package/dist/{chunk-4NMCASJ4.js → chunk-KWGR4UXF.js} +3 -3
- package/dist/{chunk-EBAFVGM3.js → chunk-LBZNQHGV.js} +21 -1
- package/dist/{chunk-QPMAY54N.js → chunk-MXVCQYLH.js} +4 -4
- package/dist/{chunk-PIDI676T.js → chunk-N5L3TZWN.js} +2 -2
- package/dist/{chunk-WUCZ7VH3.js → chunk-N66XUGPQ.js} +3 -3
- package/dist/{chunk-ZPKQWWCF.js → chunk-O7P5NI2O.js} +3 -3
- package/dist/{chunk-OHTFAHSD.js → chunk-OQXYCHBP.js} +2 -2
- package/dist/{chunk-HXHUCDFL.js → chunk-PU6G3CCU.js} +2 -2
- package/dist/{chunk-Q254WWFS.js → chunk-PXPLW6S2.js} +1 -1
- package/dist/{chunk-ODBRDDOZ.js → chunk-PYSHD7WA.js} +3 -3
- package/dist/{chunk-CDFZKJSC.js → chunk-QKHSHWGZ.js} +2 -2
- package/dist/{chunk-FVC2Z3LR.js → chunk-QLIA7VXN.js} +5 -5
- package/dist/{chunk-D7PXCIZX.js → chunk-S2W3ESWN.js} +1 -1
- package/dist/{chunk-64EWPXUL.js → chunk-S62X2IXN.js} +3 -3
- package/dist/{chunk-O4L5V6TE.js → chunk-SA2BNJKG.js} +3 -3
- package/dist/{chunk-7WTDVMPJ.js → chunk-SLUAV5CI.js} +5 -5
- package/dist/{chunk-2FX4JEC4.js → chunk-SR6TZZEV.js} +1 -1
- package/dist/{chunk-FB2PJHN5.js → chunk-T662AJTV.js} +1 -1
- package/dist/{chunk-7CGMFCSU.js → chunk-T6KTEXIQ.js} +1 -1
- package/dist/{chunk-PTEWKH52.js → chunk-TFMCNFSP.js} +1 -1
- package/dist/{chunk-WVHNOE7Y.js → chunk-TWIM3BKS.js} +1 -1
- package/dist/{chunk-2D5NZTA6.js → chunk-UBBI4VVN.js} +3 -3
- package/dist/chunk-VSA35Z34.js +156 -0
- package/dist/{chunk-5MXEKSK4.js → chunk-WB3R4EDK.js} +1 -1
- package/dist/{chunk-YRMMQMSK.js → chunk-WF6XBAYW.js} +1 -1
- package/dist/{chunk-NIOVQSKK.js → chunk-WPTMYAHA.js} +1 -1
- package/dist/{chunk-MXIRZGYW.js → chunk-WQ7DGZUJ.js} +261 -138
- package/dist/{chunk-FYLUWJ65.js → chunk-WTHNGITU.js} +3 -3
- package/dist/{chunk-Y3P5VQ64.js → chunk-XZ3RO7U6.js} +2 -2
- package/dist/{chunk-ESRIX7ZH.js → chunk-YJI74L4M.js} +18 -0
- package/dist/{chunk-66YS5LUL.js → chunk-YN4BYOTF.js} +29 -106
- package/dist/{chunk-7CNMMPNC.js → chunk-ZN6MKZHK.js} +1 -1
- package/dist/{collection-add-products-YQP5YOZO.js → collection-add-products-ATEZXIJC.js} +9 -10
- package/dist/{collection-detail-IQV54EVJ.js → collection-detail-4X4UBX5Z.js} +10 -11
- package/dist/{collection-list-Z7IA57OF.js → collection-list-N2XHLQIB.js} +12 -13
- package/dist/{collection-metadata-WAIDRGO4.js → collection-metadata-XFHVGDOD.js} +4 -5
- package/dist/{commission-rule-detail-5D557BUZ.js → commission-rule-detail-HSXGPG2B.js} +4 -3
- package/dist/{commissions-list-4MRDFAN6.js → commissions-list-FKYBFSOA.js} +5 -4
- package/dist/{customer-detail-KOWSLCSV.js → customer-detail-7MWXRKMQ.js} +8 -9
- package/dist/{customer-group-add-customers-KF432FE3.js → customer-group-add-customers-DBRDFXWE.js} +1 -1
- package/dist/{customer-group-detail-KYEP2WK5.js → customer-group-detail-LOBHXY4K.js} +6 -7
- package/dist/{customer-group-list-GOAFY7WR.js → customer-group-list-F7Q7ZVGG.js} +7 -8
- package/dist/{customer-group-metadata-YGQZXDVY.js → customer-group-metadata-5F5K34SG.js} +4 -5
- package/dist/{customer-list-NVJX3U6Z.js → customer-list-X3ZBHUKU.js} +2 -2
- package/dist/{customer-metadata-72NYZNAR.js → customer-metadata-6G46GY4X.js} +4 -5
- package/dist/{customers-add-customer-group-CAPDOFBQ.js → customers-add-customer-group-HBJTFW3P.js} +6 -7
- package/dist/{edit-inventory-item-VCSYYUXB.js → edit-inventory-item-532BJSOA.js} +4 -5
- package/dist/{edit-inventory-item-attributes-3ZWTM5UW.js → edit-inventory-item-attributes-DN7MP2FH.js} +4 -5
- package/dist/{edit-rules-FQYZY37X.js → edit-rules-6ATJQOMU.js} +4 -5
- package/dist/extension-targets.d.ts +4 -1
- package/dist/{home-ET6TYEZ5.js → home-5HJJIWZE.js} +5 -6
- package/dist/index.js +218 -178
- package/dist/{inventory-detail-5MBZ3WUH.js → inventory-detail-HIZQAPQD.js} +6 -7
- package/dist/{inventory-list-PUHEUY6U.js → inventory-list-WZWLOTY2.js} +4 -3
- package/dist/{inventory-metadata-T3W4TYRL.js → inventory-metadata-KS4NKZBJ.js} +4 -5
- package/dist/{inventory-stock-UN5D4LSC.js → inventory-stock-3XPTIXNG.js} +4 -5
- package/dist/{location-detail-CVYFZAUR.js → location-detail-LBSJWM7P.js} +4 -5
- package/dist/{location-fulfillment-providers-RHFROGUA.js → location-fulfillment-providers-NEGD7BBS.js} +10 -11
- package/dist/{location-list-YOIWEJPH.js → location-list-335KUY5E.js} +4 -5
- package/dist/{location-service-zone-create-76EAFAJQ.js → location-service-zone-create-ZW2XTMUN.js} +2 -2
- package/dist/{location-service-zone-manage-areas-AU6O2R7D.js → location-service-zone-manage-areas-6TSND57M.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-3Z4YH6UT.js → location-service-zone-shipping-option-create-OOIP22WR.js} +5 -6
- package/dist/{location-service-zone-shipping-option-pricing-LLBUNXIJ.js → location-service-zone-shipping-option-pricing-AYDYNP43.js} +6 -6
- package/dist/{login-3ZFTVHBT.js → login-T5YMPN4J.js} +4 -5
- package/dist/{marketplace-add-currencies-LP54QP2F.js → marketplace-add-currencies-DDKSYGNL.js} +1 -1
- package/dist/{marketplace-detail-XIWEU2BP.js → marketplace-detail-XVPUQGBH.js} +6 -7
- package/dist/{marketplace-metadata-4Z6XHHC3.js → marketplace-metadata-RCZGL5JN.js} +4 -5
- package/dist/offer-condition-create-TMTPLH5L.js +260 -0
- package/dist/offer-condition-edit-HUF54R35.js +245 -0
- package/dist/offer-condition-list-UVSMDY7T.js +104 -0
- package/dist/{offer-detail-page-XNA63LSW.js → offer-detail-page-LX7BGYIB.js} +4 -3
- package/dist/{offer-variant-detail-page-UATB4UIF.js → offer-variant-detail-page-JYNPIOLD.js} +4 -2
- package/dist/{offers-3VVLBXXT.js → offers-RWSO5ZXU.js} +8 -9
- package/dist/{order-create-claim-SA7G3BF7.js → order-create-claim-DEXNHM76.js} +1 -1
- package/dist/{order-create-edit-MTLZ4MH6.js → order-create-edit-SFMSQGVI.js} +1 -1
- package/dist/{order-create-exchange-EY5GJP46.js → order-create-exchange-I4NZMN2Y.js} +5 -6
- package/dist/{order-create-refund-NXUEIIMT.js → order-create-refund-RC3FREJ3.js} +4 -5
- package/dist/{order-create-return-A7F4OQUD.js → order-create-return-LXJGPQNH.js} +1 -1
- package/dist/{order-detail-RJFKE5JR.js → order-detail-CARRAQQP.js} +6 -7
- package/dist/{order-edit-billing-address-FZENX5AN.js → order-edit-billing-address-DO3VI2C3.js} +5 -6
- package/dist/{order-edit-email-HB3MPHUU.js → order-edit-email-3RWA6UR7.js} +4 -5
- package/dist/{order-edit-shipping-address-2WTLOIG3.js → order-edit-shipping-address-VM3KJJNP.js} +4 -5
- package/dist/{order-list-V5SXVY4C.js → order-list-FCDXC4I3.js} +7 -6
- package/dist/{order-metadata-2DOHAY2R.js → order-metadata-XD6W5K2O.js} +4 -5
- package/dist/{order-request-transfer-NOFW5BH6.js → order-request-transfer-PUP5X2BQ.js} +4 -5
- package/dist/pages/index.d.ts +23 -1
- package/dist/pages/index.js +97 -93
- package/dist/{payout-list-J5QBFBDQ.js → payout-list-W3I74MBK.js} +2 -2
- package/dist/{price-list-create-M7DT7DIB.js → price-list-create-BDLZBSJG.js} +11 -12
- package/dist/{price-list-detail-K5GT75MR.js → price-list-detail-QLZRZUAT.js} +9 -10
- package/dist/{price-list-list-RVA2BXQB.js → price-list-list-VGW4LCI2.js} +2 -2
- package/dist/{price-list-prices-add-MNDRESKR.js → price-list-prices-add-RERUUCAD.js} +10 -11
- package/dist/{price-list-prices-edit-4H5QDLIO.js → price-list-prices-edit-YELMWLHR.js} +5 -6
- package/dist/{product-add-existing-attributes-PY75RBOT.js → product-add-existing-attributes-D6KLIN2I.js} +6 -7
- package/dist/{product-create-UZOSX5CO.js → product-create-ORVIPAKR.js} +9 -10
- package/dist/{product-create-attribute-TNLWM3N2.js → product-create-attribute-VHJVWSHE.js} +1 -1
- package/dist/{product-create-variant-MEERTVXZ.js → product-create-variant-KW5RVKGR.js} +3 -3
- package/dist/{product-detail-P5TG7T7B.js → product-detail-FVJBRAYF.js} +7 -8
- package/dist/{product-list-YDYL765G.js → product-list-V2ZU4RWD.js} +10 -11
- package/dist/{product-media-K2EC5Z2P.js → product-media-MZTWTN5L.js} +3 -3
- package/dist/{product-metadata-VRF6DJAO.js → product-metadata-RI4FVXBM.js} +4 -5
- package/dist/{product-organization-MPWKHV3M.js → product-organization-DIY2VOMK.js} +1 -1
- package/dist/{product-tag-create-XSOEKCJ5.js → product-tag-create-Z7NVJFJV.js} +4 -5
- package/dist/{product-tag-detail-VJW4TMI6.js → product-tag-detail-RT52RFSO.js} +17 -17
- package/dist/{product-tag-edit-JP3SNJHG.js → product-tag-edit-EC4ZR4LT.js} +4 -5
- package/dist/{product-tag-list-ZF44FBU3.js → product-tag-list-IUVB5IP7.js} +17 -17
- package/dist/{product-tag-metadata-FDOGSBZL.js → product-tag-metadata-AB2SFC3P.js} +4 -5
- package/dist/{product-type-detail-O5MQCKY2.js → product-type-detail-LEQIP6AU.js} +10 -11
- package/dist/{product-type-list-B6RRMREU.js → product-type-list-NB77MNFR.js} +2 -2
- package/dist/{product-type-metadata-OXY6JBQN.js → product-type-metadata-SGJLT575.js} +4 -5
- package/dist/{product-variant-detail-CFU26SH6.js → product-variant-detail-IZNFBZ3U.js} +4 -5
- package/dist/{product-variant-edit-67NDBD3H.js → product-variant-edit-SN6BX4C3.js} +6 -7
- package/dist/{product-variant-metadata-UAKLODU7.js → product-variant-metadata-MWHJ5FCE.js} +4 -5
- package/dist/{promotion-create-EJNGNDXT.js → promotion-create-MA6HOBDD.js} +4 -5
- package/dist/{promotion-detail-ZZFSTZNW.js → promotion-detail-ENSGRRUE.js} +7 -8
- package/dist/{promotion-list-AKK3OZJO.js → promotion-list-34SCRAYC.js} +8 -7
- package/dist/{refund-reason-create-ER2HYGF7.js → refund-reason-create-565K7ZBB.js} +4 -5
- package/dist/{refund-reason-edit-352MH6YM.js → refund-reason-edit-7DTDR7KP.js} +4 -5
- package/dist/{refund-reason-list-I4A25O6S.js → refund-reason-list-GKR4OGHA.js} +11 -11
- package/dist/{region-add-countries-IA2HWUQX.js → region-add-countries-CHIU5ZTX.js} +2 -2
- package/dist/region-add-sellers-4CSFPQSS.js +267 -0
- package/dist/{region-create-HRJDZSAK.js → region-create-2V4THOCG.js} +4 -4
- package/dist/{region-detail-UDNWHURY.js → region-detail-ENWOQP5Y.js} +22 -4
- package/dist/{region-edit-I5NPINKO.js → region-edit-QP7H2ADZ.js} +4 -4
- package/dist/{region-list-QQ3XRZBU.js → region-list-EJ63EBF2.js} +3 -3
- package/dist/{region-metadata-TOCGHS2U.js → region-metadata-IZUCWJS3.js} +7 -8
- package/dist/{reservation-detail-P6ZNCGCG.js → reservation-detail-TOQEPEO3.js} +4 -5
- package/dist/{reservation-list-FJEIO3S2.js → reservation-list-EWOCWJ66.js} +4 -3
- package/dist/{reservation-metadata-SLIXYJH6.js → reservation-metadata-UWN7NEJC.js} +4 -5
- package/dist/{reset-password-BEYWFFRO.js → reset-password-DWUYBTRN.js} +1 -1
- package/dist/{return-reason-list-3PS25BKE.js → return-reason-list-TXY3YHEE.js} +8 -7
- package/dist/{review-list-TWXSIZOP.js → review-list-H7BT5OYV.js} +4 -3
- package/dist/{sales-channel-add-products-KC4RYJT3.js → sales-channel-add-products-TCPN5EEY.js} +9 -10
- package/dist/{sales-channel-detail-2NIKTQNB.js → sales-channel-detail-S3SWDOGX.js} +10 -11
- package/dist/{sales-channel-list-LX2Z5CJT.js → sales-channel-list-O72NCOLG.js} +4 -5
- package/dist/{sales-channel-metadata-2DMUXR5C.js → sales-channel-metadata-FN2YCPIL.js} +4 -5
- package/dist/{settings-B77FRGCP.js → settings-FRGTPPUI.js} +6 -7
- package/dist/{shipping-option-type-create-C4LVYJKK.js → shipping-option-type-create-NQZZTMBB.js} +4 -5
- package/dist/{shipping-option-type-detail-GWVNQNE7.js → shipping-option-type-detail-ZZS3YVYC.js} +6 -7
- package/dist/{shipping-option-type-edit-I4RWXP5D.js → shipping-option-type-edit-LXJTIH5R.js} +4 -5
- package/dist/{shipping-option-type-list-SC3AKZ3A.js → shipping-option-type-list-GVN6RVYE.js} +7 -8
- package/dist/{shipping-profile-metadata-L7655VUS.js → shipping-profile-metadata-NFXAXJRD.js} +4 -5
- package/dist/{shipping-profiles-list-OC45TR2L.js → shipping-profiles-list-MXAS4BOF.js} +2 -2
- package/dist/store-add-regions-QBL4A6MX.js +253 -0
- package/dist/{store-address-edit-G7TW4RAA.js → store-address-edit-CJPADFHM.js} +2 -1
- package/dist/{store-bulk-edit-HCQXZJYA.js → store-bulk-edit-IKUGDUMX.js} +3 -2
- package/dist/{store-closure-edit-XM7AJFED.js → store-closure-edit-LZERMK2P.js} +2 -1
- package/dist/{store-create-COW4AFYQ.js → store-create-NW47CN5C.js} +58 -8
- package/dist/{store-details-CGAKQDWN.js → store-details-UMQ2WHVA.js} +11 -12
- package/dist/{store-edit-XBWOY5CE.js → store-edit-L4GXEMRE.js} +5 -4
- package/dist/{store-list-7FX5VPU2.js → store-list-UZW63PM4.js} +13 -13
- package/dist/{store-member-invite-BS2GUZUY.js → store-member-invite-3OZFSH7X.js} +3 -2
- package/dist/{store-payment-details-edit-UQ2KX2QR.js → store-payment-details-edit-GRC6QX4H.js} +2 -1
- package/dist/{store-professional-details-edit-IRQM4XK2.js → store-professional-details-edit-CCRUKH2E.js} +2 -1
- package/dist/{tax-region-create-37XJSH57.js → tax-region-create-XEYJT5QR.js} +5 -6
- package/dist/{tax-region-detail-54WL3VGW.js → tax-region-detail-QUULJTSG.js} +7 -8
- package/dist/{tax-region-edit-R3LK752M.js → tax-region-edit-BF3ZVA6J.js} +4 -5
- package/dist/{tax-region-metadata-LU6WHANR.js → tax-region-metadata-KSHKVHO7.js} +4 -5
- package/dist/{tax-region-province-detail-BTSXYMTC.js → tax-region-province-detail-ZZPIBT27.js} +7 -8
- package/dist/{tax-region-tax-override-create-5FUN3FYU.js → tax-region-tax-override-create-CFP4LT4X.js} +16 -16
- package/dist/{tax-region-tax-override-edit-AGHJ76KK.js → tax-region-tax-override-edit-6YZ6UYUA.js} +16 -16
- package/dist/{user-invite-DMUC4EQ4.js → user-invite-FPLKGQVT.js} +1 -1
- package/dist/{user-list-ZK63T6SJ.js → user-list-FCX5QBTR.js} +2 -2
- package/dist/{user-metadata-KHYWKURL.js → user-metadata-B2U6IAVD.js} +4 -5
- package/package.json +6 -6
- package/dist/chunk-I2EYFPSO.js +0 -89
- package/dist/chunk-KPNSESNF.js +0 -109
- package/dist/{chunk-HHJDAVVR.js → chunk-KOEIQFBH.js} +3 -3
- package/dist/{promotion-add-campaign-2YKHR4CY.js → promotion-add-campaign-BGRGDRB4.js} +1 -1
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
useOfferTableColumns,
|
|
9
9
|
useOfferTableFilters,
|
|
10
10
|
useOfferTableQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HM3W4RZ6.js";
|
|
12
12
|
import {
|
|
13
13
|
IconAvatar
|
|
14
14
|
} from "./chunk-U2EI2ZLM.js";
|
|
15
15
|
import {
|
|
16
16
|
useOrderTableFilters
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HW35YR3I.js";
|
|
18
18
|
import {
|
|
19
19
|
useOffers
|
|
20
20
|
} from "./chunk-U4FPQ62Q.js";
|
|
21
21
|
import {
|
|
22
22
|
useMemberTableQuery
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LBZNQHGV.js";
|
|
24
24
|
import {
|
|
25
25
|
useOrderTableQuery
|
|
26
26
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
} from "./chunk-E74OUNA3.js";
|
|
39
39
|
import {
|
|
40
40
|
require_dist
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YJI74L4M.js";
|
|
42
42
|
import {
|
|
43
43
|
_DataTable,
|
|
44
44
|
useDataTable
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-4JXRBULR.js";
|
|
46
46
|
import {
|
|
47
47
|
NoRecords
|
|
48
48
|
} from "./chunk-4J74G7N2.js";
|
|
@@ -55,6 +55,7 @@ import {
|
|
|
55
55
|
import {
|
|
56
56
|
sellersQueryKeys,
|
|
57
57
|
useApproveSeller,
|
|
58
|
+
useBatchSellerRegions,
|
|
58
59
|
useDeleteSellerInvite,
|
|
59
60
|
useRemoveSellerMember,
|
|
60
61
|
useResendSellerInvite,
|
|
@@ -62,7 +63,7 @@ import {
|
|
|
62
63
|
useSellerInvites,
|
|
63
64
|
useSellerMembers,
|
|
64
65
|
useSuspendSeller
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-2A5ZKUXK.js";
|
|
66
67
|
import {
|
|
67
68
|
TwoColumnPageSkeleton
|
|
68
69
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -78,7 +79,7 @@ import {
|
|
|
78
79
|
|
|
79
80
|
// src/pages/stores/store-details/loader.ts
|
|
80
81
|
import { getLinkQuery } from "@mercurjs/dashboard-shared";
|
|
81
|
-
var STORE_DETAIL_FIELDS = "+address.*,+payment_details.*,+professional_details.*";
|
|
82
|
+
var STORE_DETAIL_FIELDS = "+address.*,+payment_details.*,+professional_details.*,+regions.*";
|
|
82
83
|
var sellerDetailQuery = (id) => {
|
|
83
84
|
const query = getLinkQuery("seller", STORE_DETAIL_FIELDS);
|
|
84
85
|
return {
|
|
@@ -97,7 +98,7 @@ var storeDetailLoader = async ({ params }) => {
|
|
|
97
98
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
98
99
|
import { Children as Children3, useState as useState3 } from "react";
|
|
99
100
|
import { useParams } from "react-router-dom";
|
|
100
|
-
import { useTranslation as
|
|
101
|
+
import { useTranslation as useTranslation13 } from "react-i18next";
|
|
101
102
|
import {
|
|
102
103
|
WidgetZone,
|
|
103
104
|
useLinkQuery,
|
|
@@ -507,22 +508,142 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
507
508
|
] });
|
|
508
509
|
};
|
|
509
510
|
|
|
511
|
+
// src/pages/stores/store-details/components/store-regions-section.tsx
|
|
512
|
+
import { MapPin, PlusMini, Trash } from "@medusajs/icons";
|
|
513
|
+
import { Badge as Badge2, Container as Container6, Heading as Heading6, Text as Text5, toast, usePrompt } from "@medusajs/ui";
|
|
514
|
+
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
515
|
+
import { DisplayExtensionZone as DisplayExtensionZone6 } from "@mercurjs/dashboard-shared";
|
|
516
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
517
|
+
var StoreRegionsSection = ({ seller }) => {
|
|
518
|
+
const { t } = useTranslation7();
|
|
519
|
+
const regions = seller.regions ?? [];
|
|
520
|
+
return /* @__PURE__ */ jsxs7(Container6, { className: "divide-y p-0", "data-testid": "store-regions-section", children: [
|
|
521
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
522
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-y-1", children: [
|
|
523
|
+
/* @__PURE__ */ jsx7(Heading6, { level: "h2", children: t("stores.regions.header") }),
|
|
524
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", className: "text-ui-fg-subtle", children: t("stores.regions.hint") })
|
|
525
|
+
] }),
|
|
526
|
+
/* @__PURE__ */ jsx7(
|
|
527
|
+
ActionMenu,
|
|
528
|
+
{
|
|
529
|
+
groups: [
|
|
530
|
+
{
|
|
531
|
+
actions: [
|
|
532
|
+
{
|
|
533
|
+
label: t("stores.regions.add"),
|
|
534
|
+
icon: /* @__PURE__ */ jsx7(PlusMini, {}),
|
|
535
|
+
to: `/stores/${seller.id}/regions/add`,
|
|
536
|
+
permission: "sellers:edit"
|
|
537
|
+
}
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"data-testid": "store-regions-section-action-menu"
|
|
542
|
+
}
|
|
543
|
+
)
|
|
544
|
+
] }),
|
|
545
|
+
regions.length > 0 ? regions.map((region) => /* @__PURE__ */ jsx7(
|
|
546
|
+
RegionRow,
|
|
547
|
+
{
|
|
548
|
+
sellerId: seller.id,
|
|
549
|
+
region,
|
|
550
|
+
isLast: regions.length === 1
|
|
551
|
+
},
|
|
552
|
+
region.id
|
|
553
|
+
)) : /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center gap-y-1 px-6 py-6", children: [
|
|
554
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: t("stores.regions.empty.title") }),
|
|
555
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", className: "text-ui-fg-muted", children: t("stores.regions.empty.message") })
|
|
556
|
+
] }),
|
|
557
|
+
/* @__PURE__ */ jsx7(DisplayExtensionZone6, { model: "seller", zone: "regions", data: seller })
|
|
558
|
+
] });
|
|
559
|
+
};
|
|
560
|
+
var RegionRow = ({
|
|
561
|
+
sellerId,
|
|
562
|
+
region,
|
|
563
|
+
isLast
|
|
564
|
+
}) => {
|
|
565
|
+
const { t } = useTranslation7();
|
|
566
|
+
const prompt = usePrompt();
|
|
567
|
+
const { mutateAsync } = useBatchSellerRegions(sellerId);
|
|
568
|
+
const handleRemove = async () => {
|
|
569
|
+
const res = await prompt({
|
|
570
|
+
title: t("general.areYouSure"),
|
|
571
|
+
description: t("stores.regions.removeWarning", { name: region.name }),
|
|
572
|
+
cancelText: t("actions.cancel"),
|
|
573
|
+
confirmText: t("actions.remove")
|
|
574
|
+
});
|
|
575
|
+
if (!res) {
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
578
|
+
await mutateAsync(
|
|
579
|
+
{ remove: [region.id] },
|
|
580
|
+
{
|
|
581
|
+
onSuccess: () => {
|
|
582
|
+
toast.success(t("stores.regions.toast.removed"));
|
|
583
|
+
},
|
|
584
|
+
onError: (e) => {
|
|
585
|
+
toast.error(e.message);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
);
|
|
589
|
+
};
|
|
590
|
+
return /* @__PURE__ */ jsxs7(
|
|
591
|
+
"div",
|
|
592
|
+
{
|
|
593
|
+
className: "flex items-center justify-between gap-x-4 px-6 py-4",
|
|
594
|
+
"data-testid": `store-regions-section-row-${region.id}`,
|
|
595
|
+
children: [
|
|
596
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-3", children: [
|
|
597
|
+
/* @__PURE__ */ jsx7(IconAvatar, { children: /* @__PURE__ */ jsx7(MapPin, { className: "text-ui-fg-subtle" }) }),
|
|
598
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col", children: [
|
|
599
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: region.name }),
|
|
600
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: region.currency_code.toUpperCase() })
|
|
601
|
+
] })
|
|
602
|
+
] }),
|
|
603
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
|
|
604
|
+
/* @__PURE__ */ jsx7(Badge2, { size: "2xsmall", children: region.currency_code.toUpperCase() }),
|
|
605
|
+
/* @__PURE__ */ jsx7(
|
|
606
|
+
ActionMenu,
|
|
607
|
+
{
|
|
608
|
+
groups: [
|
|
609
|
+
{
|
|
610
|
+
actions: [
|
|
611
|
+
{
|
|
612
|
+
label: t("actions.remove"),
|
|
613
|
+
icon: /* @__PURE__ */ jsx7(Trash, {}),
|
|
614
|
+
onClick: handleRemove,
|
|
615
|
+
permission: "sellers:edit",
|
|
616
|
+
disabled: isLast,
|
|
617
|
+
disabledTooltip: t("stores.regions.lastRegion")
|
|
618
|
+
}
|
|
619
|
+
]
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"data-testid": `store-regions-section-row-action-menu-${region.id}`
|
|
623
|
+
}
|
|
624
|
+
)
|
|
625
|
+
] })
|
|
626
|
+
]
|
|
627
|
+
}
|
|
628
|
+
);
|
|
629
|
+
};
|
|
630
|
+
|
|
510
631
|
// src/pages/stores/store-details/components/store-members-section/store-members-section.tsx
|
|
511
|
-
import { Button, Container as
|
|
512
|
-
import { useTranslation as
|
|
632
|
+
import { Button, Container as Container7, Heading as Heading7 } from "@medusajs/ui";
|
|
633
|
+
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
513
634
|
import { Link } from "react-router-dom";
|
|
514
|
-
import { DisplayExtensionZone as
|
|
635
|
+
import { DisplayExtensionZone as DisplayExtensionZone7, PermissionAction } from "@mercurjs/dashboard-shared";
|
|
515
636
|
|
|
516
637
|
// src/pages/stores/store-details/components/store-members-section/store-members-data-table.tsx
|
|
517
638
|
import { useCan } from "@mercurjs/dashboard-shared";
|
|
518
639
|
import { useMemo } from "react";
|
|
519
|
-
import { ArrowPath, Link as LinkIcon, Trash, User } from "@medusajs/icons";
|
|
520
|
-
import { Badge as
|
|
640
|
+
import { ArrowPath, Link as LinkIcon, Trash as Trash2, User } from "@medusajs/icons";
|
|
641
|
+
import { Badge as Badge3, toast as toast2 } from "@medusajs/ui";
|
|
521
642
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
522
643
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
523
|
-
import { useTranslation as
|
|
644
|
+
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
524
645
|
var import_types2 = __toESM(require_dist(), 1);
|
|
525
|
-
import { jsx as
|
|
646
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
526
647
|
var PAGE_SIZE = 20;
|
|
527
648
|
var ROLE_TRANSLATION_MAP = {
|
|
528
649
|
[import_types2.SellerRole.SELLER_ADMINISTRATION]: "users.roles.administration",
|
|
@@ -550,7 +671,7 @@ var buildVendorInviteUrl = (token) => {
|
|
|
550
671
|
var StoreMembersDataTable = ({
|
|
551
672
|
sellerId
|
|
552
673
|
}) => {
|
|
553
|
-
const { t } =
|
|
674
|
+
const { t } = useTranslation8();
|
|
554
675
|
const { raw } = useMemberTableQuery({ pageSize: PAGE_SIZE });
|
|
555
676
|
const {
|
|
556
677
|
seller_members,
|
|
@@ -606,7 +727,7 @@ var StoreMembersDataTable = ({
|
|
|
606
727
|
if (isError) {
|
|
607
728
|
throw error;
|
|
608
729
|
}
|
|
609
|
-
return /* @__PURE__ */
|
|
730
|
+
return /* @__PURE__ */ jsx8(
|
|
610
731
|
_DataTable,
|
|
611
732
|
{
|
|
612
733
|
table,
|
|
@@ -626,22 +747,22 @@ var StoreMembersDataTable = ({
|
|
|
626
747
|
"stores.emptyStates.users.message",
|
|
627
748
|
"Invite the first user to manage this store."
|
|
628
749
|
),
|
|
629
|
-
icon: /* @__PURE__ */
|
|
750
|
+
icon: /* @__PURE__ */ jsx8(User, { className: "text-ui-fg-subtle" })
|
|
630
751
|
}
|
|
631
752
|
}
|
|
632
753
|
);
|
|
633
754
|
};
|
|
634
755
|
var columnHelper = createColumnHelper();
|
|
635
756
|
var useColumns = (sellerId) => {
|
|
636
|
-
const { t } =
|
|
757
|
+
const { t } = useTranslation8();
|
|
637
758
|
return useMemo(
|
|
638
759
|
() => [
|
|
639
760
|
columnHelper.accessor("email", {
|
|
640
|
-
header: () => /* @__PURE__ */
|
|
641
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
642
|
-
/* @__PURE__ */
|
|
643
|
-
row.original.is_owner && /* @__PURE__ */
|
|
644
|
-
|
|
761
|
+
header: () => /* @__PURE__ */ jsx8("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx8("span", { children: t("fields.email") }) }),
|
|
762
|
+
cell: ({ row }) => /* @__PURE__ */ jsxs8("div", { className: "flex size-full items-center gap-x-2 overflow-hidden", children: [
|
|
763
|
+
/* @__PURE__ */ jsx8("span", { className: "truncate", children: row.original.email }),
|
|
764
|
+
row.original.is_owner && /* @__PURE__ */ jsx8(
|
|
765
|
+
Badge3,
|
|
645
766
|
{
|
|
646
767
|
size: "2xsmall",
|
|
647
768
|
color: "grey",
|
|
@@ -652,20 +773,20 @@ var useColumns = (sellerId) => {
|
|
|
652
773
|
] })
|
|
653
774
|
}),
|
|
654
775
|
columnHelper.accessor("role_id", {
|
|
655
|
-
header: () => /* @__PURE__ */
|
|
776
|
+
header: () => /* @__PURE__ */ jsx8("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx8("span", { children: t("fields.role") }) }),
|
|
656
777
|
cell: ({ row }) => {
|
|
657
778
|
const roleId = row.original.role_id;
|
|
658
779
|
const translationKey = ROLE_TRANSLATION_MAP[roleId];
|
|
659
780
|
const label = translationKey ? t(translationKey) : "-";
|
|
660
|
-
return /* @__PURE__ */
|
|
781
|
+
return /* @__PURE__ */ jsx8("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx8("span", { className: "truncate", children: label }) });
|
|
661
782
|
}
|
|
662
783
|
}),
|
|
663
784
|
columnHelper.display({
|
|
664
785
|
id: "status",
|
|
665
|
-
header: () => /* @__PURE__ */
|
|
786
|
+
header: () => /* @__PURE__ */ jsx8("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx8("span", { children: t("fields.status") }) }),
|
|
666
787
|
cell: ({ row }) => {
|
|
667
788
|
const isPending = row.original.kind === "invite";
|
|
668
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ jsx8(DataTableStatusCell, { color: isPending ? "orange" : "green", children: isPending ? t("users.status.pending") : t("users.status.active") });
|
|
669
790
|
}
|
|
670
791
|
}),
|
|
671
792
|
columnHelper.display({
|
|
@@ -673,7 +794,7 @@ var useColumns = (sellerId) => {
|
|
|
673
794
|
cell: ({ row }) => {
|
|
674
795
|
if (row.original.kind === "member") {
|
|
675
796
|
if (row.original.is_owner) return null;
|
|
676
|
-
return /* @__PURE__ */
|
|
797
|
+
return /* @__PURE__ */ jsx8(
|
|
677
798
|
MemberActions,
|
|
678
799
|
{
|
|
679
800
|
member: row.original.member,
|
|
@@ -681,7 +802,7 @@ var useColumns = (sellerId) => {
|
|
|
681
802
|
}
|
|
682
803
|
);
|
|
683
804
|
}
|
|
684
|
-
return /* @__PURE__ */
|
|
805
|
+
return /* @__PURE__ */ jsx8(InviteActions, { invite: row.original, sellerId });
|
|
685
806
|
}
|
|
686
807
|
})
|
|
687
808
|
],
|
|
@@ -692,17 +813,17 @@ var InviteActions = ({
|
|
|
692
813
|
invite,
|
|
693
814
|
sellerId
|
|
694
815
|
}) => {
|
|
695
|
-
const { t } =
|
|
816
|
+
const { t } = useTranslation8();
|
|
696
817
|
const { mutateAsync: resend } = useResendSellerInvite(sellerId);
|
|
697
818
|
const { mutateAsync: deleteInvite } = useDeleteSellerInvite(sellerId);
|
|
698
819
|
const handleResend = async () => {
|
|
699
820
|
try {
|
|
700
821
|
await resend({ invite_id: invite.id });
|
|
701
|
-
|
|
822
|
+
toast2.success(
|
|
702
823
|
t("stores.members.invite.resendSuccess", { email: invite.email })
|
|
703
824
|
);
|
|
704
825
|
} catch (e) {
|
|
705
|
-
|
|
826
|
+
toast2.error(e.message);
|
|
706
827
|
}
|
|
707
828
|
};
|
|
708
829
|
const handleCopyLink = async () => {
|
|
@@ -713,36 +834,36 @@ var InviteActions = ({
|
|
|
713
834
|
token = response?.member_invite?.token ?? null;
|
|
714
835
|
}
|
|
715
836
|
if (!token) {
|
|
716
|
-
|
|
837
|
+
toast2.error(t("stores.members.invite.noVendorUrl"));
|
|
717
838
|
return;
|
|
718
839
|
}
|
|
719
840
|
await navigator.clipboard.writeText(buildVendorInviteUrl(token));
|
|
720
|
-
|
|
841
|
+
toast2.success(t("stores.members.invite.linkCopied"));
|
|
721
842
|
} catch (e) {
|
|
722
|
-
|
|
843
|
+
toast2.error(e.message);
|
|
723
844
|
}
|
|
724
845
|
};
|
|
725
846
|
const handleDelete = async () => {
|
|
726
847
|
try {
|
|
727
848
|
await deleteInvite({ invite_id: invite.id });
|
|
728
|
-
|
|
849
|
+
toast2.success(
|
|
729
850
|
t("stores.members.invite.deleteSuccess", { email: invite.email })
|
|
730
851
|
);
|
|
731
852
|
} catch (e) {
|
|
732
|
-
|
|
853
|
+
toast2.error(e.message);
|
|
733
854
|
}
|
|
734
855
|
};
|
|
735
856
|
const groups = [
|
|
736
857
|
{
|
|
737
858
|
actions: [
|
|
738
859
|
{
|
|
739
|
-
icon: /* @__PURE__ */
|
|
860
|
+
icon: /* @__PURE__ */ jsx8(ArrowPath, {}),
|
|
740
861
|
label: t("users.resendInvite"),
|
|
741
862
|
onClick: handleResend,
|
|
742
863
|
permission: "members.invites:edit"
|
|
743
864
|
},
|
|
744
865
|
{
|
|
745
|
-
icon: /* @__PURE__ */
|
|
866
|
+
icon: /* @__PURE__ */ jsx8(LinkIcon, {}),
|
|
746
867
|
label: t("users.copyInviteLink"),
|
|
747
868
|
onClick: handleCopyLink
|
|
748
869
|
}
|
|
@@ -751,7 +872,7 @@ var InviteActions = ({
|
|
|
751
872
|
{
|
|
752
873
|
actions: [
|
|
753
874
|
{
|
|
754
|
-
icon: /* @__PURE__ */
|
|
875
|
+
icon: /* @__PURE__ */ jsx8(Trash2, {}),
|
|
755
876
|
label: t("actions.delete"),
|
|
756
877
|
onClick: handleDelete,
|
|
757
878
|
permission: "members.invites:manage"
|
|
@@ -759,13 +880,13 @@ var InviteActions = ({
|
|
|
759
880
|
]
|
|
760
881
|
}
|
|
761
882
|
];
|
|
762
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ jsx8(ActionMenu, { groups });
|
|
763
884
|
};
|
|
764
885
|
var MemberActions = ({
|
|
765
886
|
member,
|
|
766
887
|
sellerId
|
|
767
888
|
}) => {
|
|
768
|
-
const { t } =
|
|
889
|
+
const { t } = useTranslation8();
|
|
769
890
|
const { mutateAsync: removeMember } = useRemoveSellerMember(
|
|
770
891
|
sellerId,
|
|
771
892
|
member.id
|
|
@@ -773,23 +894,23 @@ var MemberActions = ({
|
|
|
773
894
|
const handleRemove = async () => {
|
|
774
895
|
try {
|
|
775
896
|
await removeMember();
|
|
776
|
-
|
|
897
|
+
toast2.success(
|
|
777
898
|
t("users.deleteUserSuccess", {
|
|
778
899
|
name: member.member?.email
|
|
779
900
|
})
|
|
780
901
|
);
|
|
781
902
|
} catch (e) {
|
|
782
|
-
|
|
903
|
+
toast2.error(e.message);
|
|
783
904
|
}
|
|
784
905
|
};
|
|
785
|
-
return /* @__PURE__ */
|
|
906
|
+
return /* @__PURE__ */ jsx8(
|
|
786
907
|
ActionMenu,
|
|
787
908
|
{
|
|
788
909
|
groups: [
|
|
789
910
|
{
|
|
790
911
|
actions: [
|
|
791
912
|
{
|
|
792
|
-
icon: /* @__PURE__ */
|
|
913
|
+
icon: /* @__PURE__ */ jsx8(Trash2, {}),
|
|
793
914
|
label: t("actions.remove"),
|
|
794
915
|
onClick: handleRemove,
|
|
795
916
|
permission: "members:manage"
|
|
@@ -802,16 +923,16 @@ var MemberActions = ({
|
|
|
802
923
|
};
|
|
803
924
|
|
|
804
925
|
// src/pages/stores/store-details/components/store-members-section/store-members-section.tsx
|
|
805
|
-
import { jsx as
|
|
926
|
+
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
806
927
|
var StoreMembersSection = ({ sellerId }) => {
|
|
807
|
-
const { t } =
|
|
808
|
-
return /* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */
|
|
811
|
-
/* @__PURE__ */
|
|
928
|
+
const { t } = useTranslation9();
|
|
929
|
+
return /* @__PURE__ */ jsxs9(Container7, { className: "divide-y p-0", children: [
|
|
930
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
931
|
+
/* @__PURE__ */ jsx9(Heading7, { level: "h2", children: t("users.domain") }),
|
|
932
|
+
/* @__PURE__ */ jsx9(PermissionAction, { permission: "members.invites:edit", children: /* @__PURE__ */ jsx9(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx9(Link, { to: "invite", children: t("stores.members.addUser.action") }) }) })
|
|
812
933
|
] }),
|
|
813
|
-
/* @__PURE__ */
|
|
814
|
-
/* @__PURE__ */
|
|
934
|
+
/* @__PURE__ */ jsx9(StoreMembersDataTable, { sellerId }),
|
|
935
|
+
/* @__PURE__ */ jsx9(DisplayExtensionZone7, { model: "seller", zone: "members", data: sellerId })
|
|
815
936
|
] });
|
|
816
937
|
};
|
|
817
938
|
|
|
@@ -820,23 +941,23 @@ import { useState } from "react";
|
|
|
820
941
|
import { ExclamationCircleSolid } from "@medusajs/icons";
|
|
821
942
|
import {
|
|
822
943
|
Button as Button2,
|
|
823
|
-
Container as
|
|
824
|
-
Heading as
|
|
944
|
+
Container as Container8,
|
|
945
|
+
Heading as Heading8,
|
|
825
946
|
Prompt,
|
|
826
|
-
Text as
|
|
947
|
+
Text as Text6,
|
|
827
948
|
Textarea,
|
|
828
|
-
toast as
|
|
949
|
+
toast as toast3
|
|
829
950
|
} from "@medusajs/ui";
|
|
830
|
-
import { useTranslation as
|
|
951
|
+
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
831
952
|
import {
|
|
832
|
-
DisplayExtensionZone as
|
|
953
|
+
DisplayExtensionZone as DisplayExtensionZone8,
|
|
833
954
|
PermissionAction as PermissionAction2,
|
|
834
955
|
useCan as useCan2,
|
|
835
956
|
usePermissionGate
|
|
836
957
|
} from "@mercurjs/dashboard-shared";
|
|
837
|
-
import { jsx as
|
|
958
|
+
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
838
959
|
var StoreRequestSection = ({ seller }) => {
|
|
839
|
-
const { t } =
|
|
960
|
+
const { t } = useTranslation10();
|
|
840
961
|
const { mutateAsync: approveSeller, isPending: isApproving } = useApproveSeller(seller.id);
|
|
841
962
|
const { mutateAsync: suspendSeller, isPending: isRejecting } = useSuspendSeller(seller.id);
|
|
842
963
|
const canViewMembers = useCan2("members");
|
|
@@ -850,17 +971,17 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
850
971
|
);
|
|
851
972
|
const ownerFullName = [owner?.member?.first_name, owner?.member?.last_name].filter(Boolean).join(" ").trim();
|
|
852
973
|
const requesterLabel = ownerFullName || owner?.member?.email || seller.email || seller.name;
|
|
853
|
-
return /* @__PURE__ */
|
|
854
|
-
/* @__PURE__ */
|
|
855
|
-
/* @__PURE__ */
|
|
856
|
-
/* @__PURE__ */
|
|
974
|
+
return /* @__PURE__ */ jsxs10(Container8, { className: "p-0", children: [
|
|
975
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-x-3 border-b border-ui-border-base px-6 py-4", children: [
|
|
976
|
+
/* @__PURE__ */ jsx10(ExclamationCircleSolid, { className: "text-ui-tag-blue-icon" }),
|
|
977
|
+
/* @__PURE__ */ jsx10(Heading8, { level: "h2", children: t("stores.request.title") })
|
|
857
978
|
] }),
|
|
858
|
-
/* @__PURE__ */
|
|
859
|
-
/* @__PURE__ */
|
|
860
|
-
/* @__PURE__ */
|
|
979
|
+
/* @__PURE__ */ jsx10("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsx10(Text6, { className: "text-ui-fg-subtle", children: t("stores.request.description", { requester: requesterLabel }) }) }),
|
|
980
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center justify-end gap-x-2 rounded-b-lg border-t border-ui-border-base bg-ui-bg-subtle px-6 py-4", children: [
|
|
981
|
+
/* @__PURE__ */ jsx10(
|
|
861
982
|
RequestActionPrompt,
|
|
862
983
|
{
|
|
863
|
-
trigger: /* @__PURE__ */
|
|
984
|
+
trigger: /* @__PURE__ */ jsx10(Button2, { size: "small", variant: "secondary", children: t("stores.request.confirm") }),
|
|
864
985
|
title: t("stores.request.confirmTitle"),
|
|
865
986
|
description: t(
|
|
866
987
|
"stores.request.confirmDescription",
|
|
@@ -875,18 +996,18 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
875
996
|
onConfirm: async (_note) => {
|
|
876
997
|
try {
|
|
877
998
|
await approveSeller();
|
|
878
|
-
|
|
999
|
+
toast3.success(t("stores.request.confirmSuccess"));
|
|
879
1000
|
} catch (error) {
|
|
880
|
-
|
|
1001
|
+
toast3.error(error.message);
|
|
881
1002
|
throw error;
|
|
882
1003
|
}
|
|
883
1004
|
}
|
|
884
1005
|
}
|
|
885
1006
|
),
|
|
886
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ jsx10(
|
|
887
1008
|
RequestActionPrompt,
|
|
888
1009
|
{
|
|
889
|
-
trigger: /* @__PURE__ */
|
|
1010
|
+
trigger: /* @__PURE__ */ jsx10(Button2, { size: "small", variant: "secondary", children: t("stores.request.reject") }),
|
|
890
1011
|
title: t("stores.request.rejectTitle"),
|
|
891
1012
|
description: t(
|
|
892
1013
|
"stores.request.rejectDescription",
|
|
@@ -901,16 +1022,16 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
901
1022
|
onConfirm: async (note) => {
|
|
902
1023
|
try {
|
|
903
1024
|
await suspendSeller({ reason: note || void 0 });
|
|
904
|
-
|
|
1025
|
+
toast3.success(t("stores.request.rejectSuccess"));
|
|
905
1026
|
} catch (error) {
|
|
906
|
-
|
|
1027
|
+
toast3.error(error.message);
|
|
907
1028
|
throw error;
|
|
908
1029
|
}
|
|
909
1030
|
}
|
|
910
1031
|
}
|
|
911
1032
|
)
|
|
912
1033
|
] }),
|
|
913
|
-
/* @__PURE__ */
|
|
1034
|
+
/* @__PURE__ */ jsx10(DisplayExtensionZone8, { model: "seller", zone: "requests", data: seller })
|
|
914
1035
|
] });
|
|
915
1036
|
};
|
|
916
1037
|
var RequestActionPrompt = ({
|
|
@@ -922,7 +1043,7 @@ var RequestActionPrompt = ({
|
|
|
922
1043
|
isLoading,
|
|
923
1044
|
onConfirm
|
|
924
1045
|
}) => {
|
|
925
|
-
const { t } =
|
|
1046
|
+
const { t } = useTranslation10();
|
|
926
1047
|
const [open, setOpen] = useState(false);
|
|
927
1048
|
const [note, setNote] = useState("");
|
|
928
1049
|
const gate = usePermissionGate("sellers.approval:edit");
|
|
@@ -934,25 +1055,25 @@ var RequestActionPrompt = ({
|
|
|
934
1055
|
} catch {
|
|
935
1056
|
}
|
|
936
1057
|
};
|
|
937
|
-
return /* @__PURE__ */
|
|
938
|
-
gate.allowed ? /* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
940
|
-
/* @__PURE__ */
|
|
941
|
-
/* @__PURE__ */
|
|
942
|
-
/* @__PURE__ */
|
|
1058
|
+
return /* @__PURE__ */ jsxs10(Prompt, { open, onOpenChange: setOpen, children: [
|
|
1059
|
+
gate.allowed ? /* @__PURE__ */ jsx10(Prompt.Trigger, { asChild: true, children: trigger }) : /* @__PURE__ */ jsx10(PermissionAction2, { permission: "sellers.approval:edit", children: trigger }),
|
|
1060
|
+
/* @__PURE__ */ jsxs10(Prompt.Content, { children: [
|
|
1061
|
+
/* @__PURE__ */ jsxs10(Prompt.Header, { children: [
|
|
1062
|
+
/* @__PURE__ */ jsx10(Prompt.Title, { children: title }),
|
|
1063
|
+
/* @__PURE__ */ jsx10(Prompt.Description, { children: description })
|
|
943
1064
|
] }),
|
|
944
|
-
/* @__PURE__ */
|
|
945
|
-
/* @__PURE__ */
|
|
946
|
-
/* @__PURE__ */
|
|
1065
|
+
/* @__PURE__ */ jsx10("div", { className: "border-ui-border-base border-t mt-3" }),
|
|
1066
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-y-3 px-6 py-3", children: [
|
|
1067
|
+
/* @__PURE__ */ jsxs10(Text6, { size: "small", weight: "plus", className: "text-ui-fg-base", children: [
|
|
947
1068
|
t("stores.request.noteLabel"),
|
|
948
1069
|
" ",
|
|
949
|
-
/* @__PURE__ */
|
|
1070
|
+
/* @__PURE__ */ jsxs10("span", { className: "text-ui-fg-muted font-normal", children: [
|
|
950
1071
|
"(",
|
|
951
1072
|
t("fields.optional"),
|
|
952
1073
|
")"
|
|
953
1074
|
] })
|
|
954
1075
|
] }),
|
|
955
|
-
/* @__PURE__ */
|
|
1076
|
+
/* @__PURE__ */ jsx10(
|
|
956
1077
|
Textarea,
|
|
957
1078
|
{
|
|
958
1079
|
placeholder: notePlaceholder,
|
|
@@ -961,10 +1082,10 @@ var RequestActionPrompt = ({
|
|
|
961
1082
|
}
|
|
962
1083
|
)
|
|
963
1084
|
] }),
|
|
964
|
-
/* @__PURE__ */
|
|
965
|
-
/* @__PURE__ */
|
|
966
|
-
/* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ jsx10("div", { className: "border-ui-border-base border-t mt-2" }),
|
|
1086
|
+
/* @__PURE__ */ jsxs10(Prompt.Footer, { children: [
|
|
1087
|
+
/* @__PURE__ */ jsx10(Prompt.Cancel, { disabled: isLoading, children: t("actions.cancel") }),
|
|
1088
|
+
/* @__PURE__ */ jsx10(
|
|
968
1089
|
Button2,
|
|
969
1090
|
{
|
|
970
1091
|
size: "small",
|
|
@@ -981,17 +1102,17 @@ var RequestActionPrompt = ({
|
|
|
981
1102
|
|
|
982
1103
|
// src/pages/stores/store-details/components/store-orders-section.tsx
|
|
983
1104
|
import { ShoppingCart } from "@medusajs/icons";
|
|
984
|
-
import { Container as
|
|
1105
|
+
import { Container as Container9, Heading as Heading9 } from "@medusajs/ui";
|
|
985
1106
|
import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
|
|
986
|
-
import { useTranslation as
|
|
987
|
-
import { DisplayExtensionZone as
|
|
988
|
-
import { jsx as
|
|
1107
|
+
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
1108
|
+
import { DisplayExtensionZone as DisplayExtensionZone9 } from "@mercurjs/dashboard-shared";
|
|
1109
|
+
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
989
1110
|
var PAGE_SIZE2 = 10;
|
|
990
1111
|
var PREFIX = "store-orders";
|
|
991
1112
|
var DEFAULT_RELATIONS = "*customer,*items,*sales_channel";
|
|
992
1113
|
var DEFAULT_FIELDS = "id,status,display_id,created_at,email,fulfillment_status,payment_status,total,currency_code";
|
|
993
1114
|
var StoreOrdersSection = ({ sellerId }) => {
|
|
994
|
-
const { t } =
|
|
1115
|
+
const { t } = useTranslation11();
|
|
995
1116
|
const { searchParams, raw } = useOrderTableQuery({
|
|
996
1117
|
pageSize: PAGE_SIZE2,
|
|
997
1118
|
prefix: PREFIX
|
|
@@ -1021,16 +1142,16 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
1021
1142
|
if (isError) {
|
|
1022
1143
|
throw error;
|
|
1023
1144
|
}
|
|
1024
|
-
return /* @__PURE__ */
|
|
1025
|
-
/* @__PURE__ */
|
|
1145
|
+
return /* @__PURE__ */ jsxs11(Container9, { className: "divide-y p-0", "data-testid": "store-orders-section", children: [
|
|
1146
|
+
/* @__PURE__ */ jsx11(
|
|
1026
1147
|
"div",
|
|
1027
1148
|
{
|
|
1028
1149
|
className: "flex items-center justify-between px-6 py-4",
|
|
1029
1150
|
"data-testid": "store-orders-section-header",
|
|
1030
|
-
children: /* @__PURE__ */
|
|
1151
|
+
children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-orders-section-heading", children: t("orders.domain") })
|
|
1031
1152
|
}
|
|
1032
1153
|
),
|
|
1033
|
-
/* @__PURE__ */
|
|
1154
|
+
/* @__PURE__ */ jsx11(
|
|
1034
1155
|
_DataTable,
|
|
1035
1156
|
{
|
|
1036
1157
|
columns,
|
|
@@ -1055,26 +1176,26 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
1055
1176
|
"stores.emptyStates.orders.message",
|
|
1056
1177
|
"Orders placed at this store will appear here."
|
|
1057
1178
|
),
|
|
1058
|
-
icon: /* @__PURE__ */
|
|
1179
|
+
icon: /* @__PURE__ */ jsx11(ShoppingCart, { className: "text-ui-fg-subtle" })
|
|
1059
1180
|
}
|
|
1060
1181
|
}
|
|
1061
1182
|
),
|
|
1062
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ jsx11(DisplayExtensionZone9, { model: "seller", zone: "orders", data: sellerId })
|
|
1063
1184
|
] });
|
|
1064
1185
|
};
|
|
1065
1186
|
|
|
1066
1187
|
// src/pages/stores/store-details/components/store-offers-section.tsx
|
|
1067
1188
|
import { Tag } from "@medusajs/icons";
|
|
1068
|
-
import { Container as
|
|
1189
|
+
import { Container as Container10, Heading as Heading10 } from "@medusajs/ui";
|
|
1069
1190
|
import { keepPreviousData as keepPreviousData3 } from "@tanstack/react-query";
|
|
1070
1191
|
import { useState as useState2 } from "react";
|
|
1071
|
-
import { useTranslation as
|
|
1072
|
-
import { DisplayExtensionZone as
|
|
1073
|
-
import { jsx as
|
|
1192
|
+
import { useTranslation as useTranslation12 } from "react-i18next";
|
|
1193
|
+
import { DisplayExtensionZone as DisplayExtensionZone10 } from "@mercurjs/dashboard-shared";
|
|
1194
|
+
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1074
1195
|
var PAGE_SIZE3 = 10;
|
|
1075
1196
|
var PREFIX2 = "store-offers";
|
|
1076
1197
|
var StoreOffersSection = ({ sellerId }) => {
|
|
1077
|
-
const { t } =
|
|
1198
|
+
const { t } = useTranslation12();
|
|
1078
1199
|
const [selection, setSelection] = useState2({});
|
|
1079
1200
|
const { raw, searchParams } = useOfferTableQuery({
|
|
1080
1201
|
pageSize: PAGE_SIZE3,
|
|
@@ -1107,16 +1228,16 @@ var StoreOffersSection = ({ sellerId }) => {
|
|
|
1107
1228
|
if (isError) {
|
|
1108
1229
|
throw error;
|
|
1109
1230
|
}
|
|
1110
|
-
return /* @__PURE__ */
|
|
1111
|
-
/* @__PURE__ */
|
|
1231
|
+
return /* @__PURE__ */ jsxs12(Container10, { className: "divide-y p-0", "data-testid": "store-offers-section", children: [
|
|
1232
|
+
/* @__PURE__ */ jsx12(
|
|
1112
1233
|
"div",
|
|
1113
1234
|
{
|
|
1114
1235
|
className: "flex items-center justify-between px-6 py-4",
|
|
1115
1236
|
"data-testid": "store-offers-section-header",
|
|
1116
|
-
children: /* @__PURE__ */
|
|
1237
|
+
children: /* @__PURE__ */ jsx12(Heading10, { level: "h2", "data-testid": "store-offers-section-heading", children: t("offers.domain") })
|
|
1117
1238
|
}
|
|
1118
1239
|
),
|
|
1119
|
-
/* @__PURE__ */
|
|
1240
|
+
/* @__PURE__ */ jsx12(
|
|
1120
1241
|
_DataTable,
|
|
1121
1242
|
{
|
|
1122
1243
|
table,
|
|
@@ -1138,24 +1259,24 @@ var StoreOffersSection = ({ sellerId }) => {
|
|
|
1138
1259
|
noRecords: {
|
|
1139
1260
|
title: t("offers.empty.heading"),
|
|
1140
1261
|
message: t("offers.empty.storeDescription"),
|
|
1141
|
-
icon: /* @__PURE__ */
|
|
1262
|
+
icon: /* @__PURE__ */ jsx12(Tag, { className: "text-ui-fg-subtle" })
|
|
1142
1263
|
},
|
|
1143
1264
|
commands
|
|
1144
1265
|
}
|
|
1145
1266
|
),
|
|
1146
|
-
/* @__PURE__ */
|
|
1267
|
+
/* @__PURE__ */ jsx12(DisplayExtensionZone10, { model: "seller", zone: "offers", data: sellerId })
|
|
1147
1268
|
] });
|
|
1148
1269
|
};
|
|
1149
1270
|
|
|
1150
1271
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
1151
|
-
import { jsx as
|
|
1272
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1152
1273
|
var TabBar = ({
|
|
1153
1274
|
tabs,
|
|
1154
1275
|
activeTab,
|
|
1155
1276
|
onTabChange
|
|
1156
1277
|
}) => {
|
|
1157
|
-
const { t } =
|
|
1158
|
-
return /* @__PURE__ */
|
|
1278
|
+
const { t } = useTranslation13();
|
|
1279
|
+
return /* @__PURE__ */ jsx13(
|
|
1159
1280
|
"div",
|
|
1160
1281
|
{
|
|
1161
1282
|
role: "tablist",
|
|
@@ -1164,7 +1285,7 @@ var TabBar = ({
|
|
|
1164
1285
|
"data-testid": "store-detail-tabs",
|
|
1165
1286
|
children: tabs.map(({ id, label }) => {
|
|
1166
1287
|
const isActive = activeTab === id;
|
|
1167
|
-
return /* @__PURE__ */
|
|
1288
|
+
return /* @__PURE__ */ jsx13(
|
|
1168
1289
|
"button",
|
|
1169
1290
|
{
|
|
1170
1291
|
type: "button",
|
|
@@ -1185,25 +1306,25 @@ var TabBar = ({
|
|
|
1185
1306
|
};
|
|
1186
1307
|
var Root = ({ children }) => {
|
|
1187
1308
|
const { id } = useParams();
|
|
1188
|
-
const { t } =
|
|
1309
|
+
const { t } = useTranslation13();
|
|
1189
1310
|
const [selectedTab, setActiveTab] = useState3("orders");
|
|
1190
1311
|
const { can } = usePermissions();
|
|
1191
1312
|
const customTabs = useWidgetTabs("stores.detail.tabs");
|
|
1192
1313
|
const query = useLinkQuery("seller", STORE_DETAIL_FIELDS);
|
|
1193
1314
|
const { seller, isLoading, isError, error } = useSeller(id, query);
|
|
1194
1315
|
if (isLoading || !seller) {
|
|
1195
|
-
return /* @__PURE__ */
|
|
1316
|
+
return /* @__PURE__ */ jsx13(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 4 });
|
|
1196
1317
|
}
|
|
1197
1318
|
if (isError) {
|
|
1198
1319
|
throw error;
|
|
1199
1320
|
}
|
|
1200
1321
|
if (Children3.count(children) > 0) {
|
|
1201
|
-
return /* @__PURE__ */
|
|
1322
|
+
return /* @__PURE__ */ jsx13(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children });
|
|
1202
1323
|
}
|
|
1203
1324
|
const toTab = ({ id: id2, label, Component }) => ({
|
|
1204
1325
|
id: id2,
|
|
1205
1326
|
label: t(label, { defaultValue: label }),
|
|
1206
|
-
content: /* @__PURE__ */
|
|
1327
|
+
content: /* @__PURE__ */ jsx13(Component, { data: seller })
|
|
1207
1328
|
});
|
|
1208
1329
|
const tabs = [
|
|
1209
1330
|
...customTabs.before.map(toTab),
|
|
@@ -1211,37 +1332,37 @@ var Root = ({ children }) => {
|
|
|
1211
1332
|
{
|
|
1212
1333
|
id: "orders",
|
|
1213
1334
|
label: t("orders.domain"),
|
|
1214
|
-
content: /* @__PURE__ */
|
|
1335
|
+
content: /* @__PURE__ */ jsx13(StoreOrdersSection, { sellerId: seller.id })
|
|
1215
1336
|
}
|
|
1216
1337
|
] : [],
|
|
1217
1338
|
...can("offers") ? [
|
|
1218
1339
|
{
|
|
1219
1340
|
id: "offers",
|
|
1220
1341
|
label: t("offers.domain"),
|
|
1221
|
-
content: /* @__PURE__ */
|
|
1342
|
+
content: /* @__PURE__ */ jsx13(StoreOffersSection, { sellerId: seller.id })
|
|
1222
1343
|
}
|
|
1223
1344
|
] : [],
|
|
1224
1345
|
...can("members") ? [
|
|
1225
1346
|
{
|
|
1226
1347
|
id: "users",
|
|
1227
1348
|
label: t("users.domain"),
|
|
1228
|
-
content: /* @__PURE__ */
|
|
1349
|
+
content: /* @__PURE__ */ jsx13(StoreMembersSection, { sellerId: seller.id })
|
|
1229
1350
|
}
|
|
1230
1351
|
] : [],
|
|
1231
1352
|
{
|
|
1232
1353
|
id: "timeOff",
|
|
1233
1354
|
label: t("store.timeOff.header"),
|
|
1234
|
-
content: /* @__PURE__ */
|
|
1355
|
+
content: /* @__PURE__ */ jsx13(StoreConfigurationSection, { seller })
|
|
1235
1356
|
},
|
|
1236
1357
|
...customTabs.after.map(toTab)
|
|
1237
1358
|
];
|
|
1238
1359
|
const activeTab = tabs.find((tab) => tab.id === selectedTab) ?? tabs[0];
|
|
1239
|
-
return /* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */
|
|
1241
|
-
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
/* @__PURE__ */
|
|
1244
|
-
/* @__PURE__ */
|
|
1360
|
+
return /* @__PURE__ */ jsxs13(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
|
|
1361
|
+
/* @__PURE__ */ jsx13(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs13(WidgetZone, { id: "stores.detail.main", data: seller, children: [
|
|
1362
|
+
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */ jsx13(StoreRequestSection, { seller }),
|
|
1363
|
+
/* @__PURE__ */ jsx13(StoreGeneralSection, { seller }),
|
|
1364
|
+
/* @__PURE__ */ jsx13(TabBar, { tabs, activeTab: activeTab.id, onTabChange: setActiveTab }),
|
|
1365
|
+
/* @__PURE__ */ jsx13(
|
|
1245
1366
|
"div",
|
|
1246
1367
|
{
|
|
1247
1368
|
role: "tabpanel",
|
|
@@ -1252,10 +1373,11 @@ var Root = ({ children }) => {
|
|
|
1252
1373
|
activeTab.id
|
|
1253
1374
|
)
|
|
1254
1375
|
] }) }),
|
|
1255
|
-
/* @__PURE__ */
|
|
1256
|
-
/* @__PURE__ */
|
|
1257
|
-
/* @__PURE__ */
|
|
1258
|
-
/* @__PURE__ */
|
|
1376
|
+
/* @__PURE__ */ jsx13(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs13(WidgetZone, { id: "stores.detail.side", data: seller, children: [
|
|
1377
|
+
/* @__PURE__ */ jsx13(StoreAddressSection, { seller }),
|
|
1378
|
+
/* @__PURE__ */ jsx13(StoreRegionsSection, { seller }),
|
|
1379
|
+
/* @__PURE__ */ jsx13(StoreCompanyDetailsSection, { seller }),
|
|
1380
|
+
/* @__PURE__ */ jsx13(StorePaymentDetailsSection, { seller })
|
|
1259
1381
|
] }) })
|
|
1260
1382
|
] });
|
|
1261
1383
|
};
|
|
@@ -1267,6 +1389,7 @@ var StoreDetailPage = Object.assign(Root, {
|
|
|
1267
1389
|
MainPaymentDetailsSection: StorePaymentDetailsSection,
|
|
1268
1390
|
MainCompanyDetailsSection: StoreCompanyDetailsSection,
|
|
1269
1391
|
SidebarAddressSection: StoreAddressSection,
|
|
1392
|
+
SidebarRegionsSection: StoreRegionsSection,
|
|
1270
1393
|
SidebarMembersSection: StoreMembersSection,
|
|
1271
1394
|
Header: StoreDetailHeader,
|
|
1272
1395
|
HeaderTitle: StoreDetailTitle,
|