@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
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ListSummary
|
|
3
|
-
} from "./chunk-4F5GP7J7.js";
|
|
4
1
|
import {
|
|
5
2
|
useCountries,
|
|
6
3
|
useCountryTableColumns,
|
|
7
4
|
useCountryTableQuery
|
|
8
5
|
} from "./chunk-TUJIAA5O.js";
|
|
6
|
+
import {
|
|
7
|
+
ListSummary
|
|
8
|
+
} from "./chunk-4F5GP7J7.js";
|
|
9
|
+
import {
|
|
10
|
+
useSellersTableColumns
|
|
11
|
+
} from "./chunk-DPZXLZNV.js";
|
|
9
12
|
import {
|
|
10
13
|
formatProvider
|
|
11
14
|
} from "./chunk-VW56KWO2.js";
|
|
15
|
+
import {
|
|
16
|
+
useSellersTableQuery
|
|
17
|
+
} from "./chunk-LBZNQHGV.js";
|
|
12
18
|
import {
|
|
13
19
|
currencies
|
|
14
20
|
} from "./chunk-IQPN4PZJ.js";
|
|
@@ -21,15 +27,17 @@ import {
|
|
|
21
27
|
import {
|
|
22
28
|
_DataTable,
|
|
23
29
|
useDataTable
|
|
24
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4JXRBULR.js";
|
|
25
31
|
import {
|
|
26
32
|
ActionMenu
|
|
27
33
|
} from "./chunk-3UOYBH5O.js";
|
|
28
34
|
import {
|
|
35
|
+
useBatchRegionSellers,
|
|
29
36
|
useDeleteRegion,
|
|
30
37
|
useRegion,
|
|
38
|
+
useSellers,
|
|
31
39
|
useUpdateRegion
|
|
32
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2A5ZKUXK.js";
|
|
33
41
|
import {
|
|
34
42
|
usePricePreferences
|
|
35
43
|
} from "./chunk-LDLZJB4B.js";
|
|
@@ -401,6 +409,231 @@ var RegionActions = ({ region }) => {
|
|
|
401
409
|
);
|
|
402
410
|
};
|
|
403
411
|
|
|
412
|
+
// src/pages/regions/region-detail/components/region-seller-section/region-seller-section.tsx
|
|
413
|
+
import { PlusMini as PlusMini2, Trash as Trash3 } from "@medusajs/icons";
|
|
414
|
+
import { Checkbox as Checkbox2, Container as Container3, Heading as Heading3, toast as toast3, usePrompt as usePrompt3 } from "@medusajs/ui";
|
|
415
|
+
import { keepPreviousData } from "@tanstack/react-query";
|
|
416
|
+
import {
|
|
417
|
+
createColumnHelper as createColumnHelper2
|
|
418
|
+
} from "@tanstack/react-table";
|
|
419
|
+
import { useMemo as useMemo2, useState as useState2 } from "react";
|
|
420
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
421
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
422
|
+
var PREFIX2 = "rs";
|
|
423
|
+
var PAGE_SIZE2 = 10;
|
|
424
|
+
var RegionSellerSection = ({ region }) => {
|
|
425
|
+
const { t } = useTranslation3();
|
|
426
|
+
const prompt = usePrompt3();
|
|
427
|
+
const [rowSelection, setRowSelection] = useState2({});
|
|
428
|
+
const { searchParams, raw } = useSellersTableQuery({
|
|
429
|
+
pageSize: PAGE_SIZE2,
|
|
430
|
+
prefix: PREFIX2
|
|
431
|
+
});
|
|
432
|
+
const { sellers, count, isPending, isError, error } = useSellers(
|
|
433
|
+
{ ...searchParams, region_id: region.id },
|
|
434
|
+
{ placeholderData: keepPreviousData }
|
|
435
|
+
);
|
|
436
|
+
const columns = useColumns2();
|
|
437
|
+
const { table } = useDataTable({
|
|
438
|
+
data: sellers ?? [],
|
|
439
|
+
columns,
|
|
440
|
+
count: count ?? 0,
|
|
441
|
+
enablePagination: true,
|
|
442
|
+
enableRowSelection: true,
|
|
443
|
+
getRowId: (row) => row.id,
|
|
444
|
+
pageSize: PAGE_SIZE2,
|
|
445
|
+
rowSelection: {
|
|
446
|
+
state: rowSelection,
|
|
447
|
+
updater: setRowSelection
|
|
448
|
+
},
|
|
449
|
+
prefix: PREFIX2,
|
|
450
|
+
meta: {
|
|
451
|
+
regionId: region.id
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
const { mutateAsync } = useBatchRegionSellers(region.id);
|
|
455
|
+
const handleRemoveSellers = async () => {
|
|
456
|
+
const ids = Object.keys(rowSelection).filter((k) => rowSelection[k]);
|
|
457
|
+
const res = await prompt({
|
|
458
|
+
title: t("general.areYouSure"),
|
|
459
|
+
description: t("regions.sellers.removeWarning", {
|
|
460
|
+
count: ids.length
|
|
461
|
+
}),
|
|
462
|
+
cancelText: t("actions.cancel"),
|
|
463
|
+
confirmText: t("actions.remove")
|
|
464
|
+
});
|
|
465
|
+
if (!res) {
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
await mutateAsync(
|
|
469
|
+
{ remove: ids },
|
|
470
|
+
{
|
|
471
|
+
onSuccess: () => {
|
|
472
|
+
toast3.success(t("regions.sellers.toast.removed"));
|
|
473
|
+
setRowSelection({});
|
|
474
|
+
},
|
|
475
|
+
onError: (e) => {
|
|
476
|
+
toast3.error(e.message);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
);
|
|
480
|
+
};
|
|
481
|
+
if (isError) {
|
|
482
|
+
throw error;
|
|
483
|
+
}
|
|
484
|
+
return /* @__PURE__ */ jsxs3(
|
|
485
|
+
Container3,
|
|
486
|
+
{
|
|
487
|
+
className: "divide-y p-0",
|
|
488
|
+
"data-testid": "region-seller-section-container",
|
|
489
|
+
children: [
|
|
490
|
+
/* @__PURE__ */ jsxs3(
|
|
491
|
+
"div",
|
|
492
|
+
{
|
|
493
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
494
|
+
"data-testid": "region-seller-section-header",
|
|
495
|
+
children: [
|
|
496
|
+
/* @__PURE__ */ jsx3(Heading3, { level: "h2", "data-testid": "region-seller-section-heading", children: t("regions.sellers.header") }),
|
|
497
|
+
/* @__PURE__ */ jsx3(
|
|
498
|
+
ActionMenu,
|
|
499
|
+
{
|
|
500
|
+
groups: [
|
|
501
|
+
{
|
|
502
|
+
actions: [
|
|
503
|
+
{
|
|
504
|
+
permission: "regions:edit",
|
|
505
|
+
label: t("regions.sellers.add"),
|
|
506
|
+
icon: /* @__PURE__ */ jsx3(PlusMini2, {}),
|
|
507
|
+
to: "sellers/add"
|
|
508
|
+
}
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"data-testid": "region-seller-section-action-menu"
|
|
513
|
+
}
|
|
514
|
+
)
|
|
515
|
+
]
|
|
516
|
+
}
|
|
517
|
+
),
|
|
518
|
+
/* @__PURE__ */ jsx3(
|
|
519
|
+
_DataTable,
|
|
520
|
+
{
|
|
521
|
+
table,
|
|
522
|
+
columns,
|
|
523
|
+
pageSize: PAGE_SIZE2,
|
|
524
|
+
count: count ?? 0,
|
|
525
|
+
isLoading: isPending,
|
|
526
|
+
search: true,
|
|
527
|
+
pagination: true,
|
|
528
|
+
queryObject: raw,
|
|
529
|
+
prefix: PREFIX2,
|
|
530
|
+
navigateTo: (row) => `/stores/${row.original.id}`,
|
|
531
|
+
commands: [
|
|
532
|
+
{
|
|
533
|
+
action: handleRemoveSellers,
|
|
534
|
+
permission: "regions:edit",
|
|
535
|
+
label: t("actions.remove"),
|
|
536
|
+
shortcut: "r"
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
noRecords: {
|
|
540
|
+
message: t("regions.sellers.empty")
|
|
541
|
+
},
|
|
542
|
+
"data-testid": "region-seller-section-table"
|
|
543
|
+
}
|
|
544
|
+
)
|
|
545
|
+
]
|
|
546
|
+
}
|
|
547
|
+
);
|
|
548
|
+
};
|
|
549
|
+
var SellerActions = ({
|
|
550
|
+
seller,
|
|
551
|
+
regionId
|
|
552
|
+
}) => {
|
|
553
|
+
const { t } = useTranslation3();
|
|
554
|
+
const prompt = usePrompt3();
|
|
555
|
+
const { mutateAsync } = useBatchRegionSellers(regionId);
|
|
556
|
+
const handleRemove = async () => {
|
|
557
|
+
const res = await prompt({
|
|
558
|
+
title: t("general.areYouSure"),
|
|
559
|
+
description: t("regions.sellers.removeWarning", { count: 1 }),
|
|
560
|
+
cancelText: t("actions.cancel"),
|
|
561
|
+
confirmText: t("actions.remove")
|
|
562
|
+
});
|
|
563
|
+
if (!res) {
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
await mutateAsync(
|
|
567
|
+
{ remove: [seller.id] },
|
|
568
|
+
{
|
|
569
|
+
onSuccess: () => {
|
|
570
|
+
toast3.success(t("regions.sellers.toast.removed"));
|
|
571
|
+
},
|
|
572
|
+
onError: (e) => {
|
|
573
|
+
toast3.error(e.message);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
);
|
|
577
|
+
};
|
|
578
|
+
return /* @__PURE__ */ jsx3(
|
|
579
|
+
ActionMenu,
|
|
580
|
+
{
|
|
581
|
+
groups: [
|
|
582
|
+
{
|
|
583
|
+
actions: [
|
|
584
|
+
{
|
|
585
|
+
icon: /* @__PURE__ */ jsx3(Trash3, {}),
|
|
586
|
+
permission: "regions:edit",
|
|
587
|
+
label: t("actions.remove"),
|
|
588
|
+
onClick: handleRemove
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
"data-testid": `region-seller-section-row-action-menu-${seller.id}`
|
|
594
|
+
}
|
|
595
|
+
);
|
|
596
|
+
};
|
|
597
|
+
var columnHelper2 = createColumnHelper2();
|
|
598
|
+
var useColumns2 = () => {
|
|
599
|
+
const base = useSellersTableColumns();
|
|
600
|
+
return useMemo2(
|
|
601
|
+
() => [
|
|
602
|
+
columnHelper2.display({
|
|
603
|
+
id: "select",
|
|
604
|
+
header: ({ table }) => /* @__PURE__ */ jsx3(
|
|
605
|
+
Checkbox2,
|
|
606
|
+
{
|
|
607
|
+
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
608
|
+
onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value),
|
|
609
|
+
"data-testid": "region-seller-section-select-all-checkbox"
|
|
610
|
+
}
|
|
611
|
+
),
|
|
612
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(
|
|
613
|
+
Checkbox2,
|
|
614
|
+
{
|
|
615
|
+
checked: row.getIsSelected(),
|
|
616
|
+
onCheckedChange: (value) => row.toggleSelected(!!value),
|
|
617
|
+
onClick: (e) => {
|
|
618
|
+
e.stopPropagation();
|
|
619
|
+
},
|
|
620
|
+
"data-testid": `region-seller-section-select-checkbox-${row.original.id}`
|
|
621
|
+
}
|
|
622
|
+
)
|
|
623
|
+
}),
|
|
624
|
+
...base,
|
|
625
|
+
columnHelper2.display({
|
|
626
|
+
id: "actions",
|
|
627
|
+
cell: ({ row, table }) => {
|
|
628
|
+
const { regionId } = table.options.meta;
|
|
629
|
+
return /* @__PURE__ */ jsx3(SellerActions, { seller: row.original, regionId });
|
|
630
|
+
}
|
|
631
|
+
})
|
|
632
|
+
],
|
|
633
|
+
[base]
|
|
634
|
+
);
|
|
635
|
+
};
|
|
636
|
+
|
|
404
637
|
// src/pages/regions/region-detail/region-detail.tsx
|
|
405
638
|
import { WidgetZone, isForbidden, useCan } from "@mercurjs/dashboard-shared";
|
|
406
639
|
|
|
@@ -408,7 +641,7 @@ import { WidgetZone, isForbidden, useCan } from "@mercurjs/dashboard-shared";
|
|
|
408
641
|
var REGION_DETAIL_FIELDS = "*payment_providers,*countries,+automatic_taxes";
|
|
409
642
|
|
|
410
643
|
// src/pages/regions/region-detail/region-detail.tsx
|
|
411
|
-
import { jsx as
|
|
644
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
412
645
|
var Root = ({ children }) => {
|
|
413
646
|
const initialData = useLoaderData();
|
|
414
647
|
const { id } = useParams();
|
|
@@ -439,7 +672,7 @@ var Root = ({ children }) => {
|
|
|
439
672
|
);
|
|
440
673
|
const preferencesForbidden = !canViewPreferences || isForbidden(preferencesError);
|
|
441
674
|
if (isLoading || !preferencesForbidden && isLoadingPreferences || !region) {
|
|
442
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ jsx4(SingleColumnPageSkeleton, { sections: 3, showJSON: true, showMetadata: true });
|
|
443
676
|
}
|
|
444
677
|
if (isRegionError) {
|
|
445
678
|
throw regionError;
|
|
@@ -447,20 +680,22 @@ var Root = ({ children }) => {
|
|
|
447
680
|
if (isPreferencesError && !preferencesForbidden) {
|
|
448
681
|
throw preferencesError;
|
|
449
682
|
}
|
|
450
|
-
return Children.count(children) > 0 ? /* @__PURE__ */
|
|
451
|
-
/* @__PURE__ */
|
|
683
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx4(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children }) : /* @__PURE__ */ jsx4(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children: /* @__PURE__ */ jsxs4(WidgetZone, { id: "regions.detail.main", data: region, children: [
|
|
684
|
+
/* @__PURE__ */ jsx4(
|
|
452
685
|
RegionGeneralSection,
|
|
453
686
|
{
|
|
454
687
|
region,
|
|
455
688
|
pricePreferences: preferencesForbidden ? void 0 : pricePreferences ?? []
|
|
456
689
|
}
|
|
457
690
|
),
|
|
458
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ jsx4(RegionCountrySection, { region }),
|
|
692
|
+
/* @__PURE__ */ jsx4(RegionSellerSection, { region })
|
|
459
693
|
] }) });
|
|
460
694
|
};
|
|
461
695
|
var RegionDetailPage = Object.assign(Root, {
|
|
462
696
|
GeneralSection: RegionGeneralSection,
|
|
463
|
-
CountrySection: RegionCountrySection
|
|
697
|
+
CountrySection: RegionCountrySection,
|
|
698
|
+
SellerSection: RegionSellerSection
|
|
464
699
|
});
|
|
465
700
|
|
|
466
701
|
export {
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
buildOfferGridData,
|
|
4
4
|
usePriceListCurrencyData,
|
|
5
5
|
usePriceListGridColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WTHNGITU.js";
|
|
7
7
|
import {
|
|
8
8
|
useOfferTableColumns,
|
|
9
9
|
useOfferTableFilters,
|
|
10
10
|
useOfferTableQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HM3W4RZ6.js";
|
|
12
12
|
import {
|
|
13
13
|
extractPricesFromOffers
|
|
14
14
|
} from "./chunk-KVAD5JGS.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
_DataTable,
|
|
32
32
|
useDataTable
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4JXRBULR.js";
|
|
34
34
|
import {
|
|
35
35
|
useBatchPriceListPrices,
|
|
36
36
|
usePriceList
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-U3I6S3RO.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JPANHFPJ.js";
|
|
13
13
|
import {
|
|
14
14
|
useLogout
|
|
15
15
|
} from "./chunk-ZWDKCCPR.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-DEEY267U.js";
|
|
44
44
|
import {
|
|
45
45
|
useSellers
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-2A5ZKUXK.js";
|
|
47
47
|
import {
|
|
48
48
|
useProductCategories
|
|
49
49
|
} from "./chunk-NAUPLWEC.js";
|
|
@@ -496,6 +496,7 @@ var ROUTE_PERMISSIONS = {
|
|
|
496
496
|
"/settings/shipping-option-types": "shipping_options:view",
|
|
497
497
|
"/settings/return-reasons": "return_reasons:view",
|
|
498
498
|
"/settings/refund-reasons": "refund_reasons:view",
|
|
499
|
+
"/settings/offer-conditions": "offers:view",
|
|
499
500
|
"/settings/tax-regions": "tax_regions:view",
|
|
500
501
|
"/settings/publishable-api-keys": "api_keys:view",
|
|
501
502
|
"/settings/secret-api-keys": "api_keys:view"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteShippingOptionTypeAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4I37X3VR.js";
|
|
4
4
|
import {
|
|
5
5
|
SingleColumnPage
|
|
6
6
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-3UOYBH5O.js";
|
|
10
10
|
import {
|
|
11
11
|
useShippingOptionType
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JPANHFPJ.js";
|
|
13
13
|
import {
|
|
14
14
|
SingleColumnPageSkeleton
|
|
15
15
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useOfferConditionTableColumns
|
|
3
|
+
} from "./chunk-VSA35Z34.js";
|
|
4
|
+
import {
|
|
5
|
+
useOfferConditionTableQuery
|
|
6
|
+
} from "./chunk-LBZNQHGV.js";
|
|
7
|
+
import {
|
|
8
|
+
useDeleteOfferConditionLazy,
|
|
9
|
+
useOfferConditions
|
|
10
|
+
} from "./chunk-JPANHFPJ.js";
|
|
11
|
+
|
|
12
|
+
// src/pages/offer-conditions/offer-condition-list/offer-condition-list.tsx
|
|
13
|
+
import { Children as Children3 } from "react";
|
|
14
|
+
import { SingleColumnPage, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
15
|
+
|
|
16
|
+
// src/pages/offer-conditions/offer-condition-list/components/offer-condition-list-table/offer-condition-list-table.tsx
|
|
17
|
+
import { Children as Children2 } from "react";
|
|
18
|
+
|
|
19
|
+
// src/pages/offer-conditions/offer-condition-list/components/offer-condition-list-table/offer-condition-list-data-table.tsx
|
|
20
|
+
import { useCallback, useMemo } from "react";
|
|
21
|
+
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
22
|
+
import {
|
|
23
|
+
Container,
|
|
24
|
+
createDataTableColumnHelper,
|
|
25
|
+
toast,
|
|
26
|
+
usePrompt
|
|
27
|
+
} from "@medusajs/ui";
|
|
28
|
+
import { DataTable, usePermissions } from "@mercurjs/dashboard-shared";
|
|
29
|
+
import { keepPreviousData } from "@tanstack/react-query";
|
|
30
|
+
import { useTranslation } from "react-i18next";
|
|
31
|
+
import { useNavigate } from "react-router-dom";
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
|
+
var PAGE_SIZE = 20;
|
|
34
|
+
var OfferConditionListDataTable = () => {
|
|
35
|
+
const { t } = useTranslation();
|
|
36
|
+
const { searchParams } = useOfferConditionTableQuery({
|
|
37
|
+
pageSize: PAGE_SIZE
|
|
38
|
+
});
|
|
39
|
+
const { offer_conditions, count, isLoading, isError, error } = useOfferConditions(searchParams, {
|
|
40
|
+
placeholderData: keepPreviousData
|
|
41
|
+
});
|
|
42
|
+
const columns = useColumns();
|
|
43
|
+
if (isError) {
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
return /* @__PURE__ */ jsx(Container, { className: "divide-y px-0 py-0", children: /* @__PURE__ */ jsx(
|
|
47
|
+
DataTable,
|
|
48
|
+
{
|
|
49
|
+
data: offer_conditions,
|
|
50
|
+
columns,
|
|
51
|
+
rowCount: count,
|
|
52
|
+
pageSize: PAGE_SIZE,
|
|
53
|
+
getRowId: (row) => row.id,
|
|
54
|
+
heading: t("offerConditions.domain"),
|
|
55
|
+
subHeading: t("offerConditions.subtitle"),
|
|
56
|
+
emptyState: {
|
|
57
|
+
empty: {
|
|
58
|
+
heading: t("general.noRecordsMessage")
|
|
59
|
+
},
|
|
60
|
+
filtered: {
|
|
61
|
+
heading: t("general.noRecordsMessage"),
|
|
62
|
+
description: t("general.noRecordsMessageFiltered")
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
actions: [
|
|
66
|
+
{
|
|
67
|
+
permission: "offers:manage",
|
|
68
|
+
label: t("actions.create"),
|
|
69
|
+
to: "create"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
isLoading,
|
|
73
|
+
enableSearch: true
|
|
74
|
+
}
|
|
75
|
+
) });
|
|
76
|
+
};
|
|
77
|
+
var columnHelper = createDataTableColumnHelper();
|
|
78
|
+
var useColumns = () => {
|
|
79
|
+
const { t } = useTranslation();
|
|
80
|
+
const { can } = usePermissions();
|
|
81
|
+
const prompt = usePrompt();
|
|
82
|
+
const navigate = useNavigate();
|
|
83
|
+
const base = useOfferConditionTableColumns();
|
|
84
|
+
const { mutateAsync } = useDeleteOfferConditionLazy();
|
|
85
|
+
const handleDelete = useCallback(
|
|
86
|
+
async (offerCondition) => {
|
|
87
|
+
const confirm = await prompt({
|
|
88
|
+
title: t("general.areYouSure"),
|
|
89
|
+
description: t("offerConditions.delete.confirmation", {
|
|
90
|
+
label: offerCondition.label
|
|
91
|
+
}),
|
|
92
|
+
confirmText: t("actions.delete"),
|
|
93
|
+
cancelText: t("actions.cancel")
|
|
94
|
+
});
|
|
95
|
+
if (!confirm) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
await mutateAsync(offerCondition.id, {
|
|
99
|
+
onSuccess: () => {
|
|
100
|
+
toast.success(t("offerConditions.delete.successToast"));
|
|
101
|
+
},
|
|
102
|
+
onError: (e) => {
|
|
103
|
+
toast.error(e.message);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
[t, prompt, mutateAsync]
|
|
108
|
+
);
|
|
109
|
+
return useMemo(
|
|
110
|
+
() => [
|
|
111
|
+
...base,
|
|
112
|
+
columnHelper.action({
|
|
113
|
+
actions: (ctx) => !can("offers", "manage") ? [] : [
|
|
114
|
+
[
|
|
115
|
+
{
|
|
116
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
117
|
+
label: t("actions.edit"),
|
|
118
|
+
onClick: () => navigate(
|
|
119
|
+
`/settings/offer-conditions/${ctx.row.original.id}/edit`
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
[
|
|
124
|
+
{
|
|
125
|
+
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
126
|
+
label: t("actions.delete"),
|
|
127
|
+
onClick: () => handleDelete(ctx.row.original)
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
]
|
|
131
|
+
})
|
|
132
|
+
],
|
|
133
|
+
[base, handleDelete, navigate, t, can]
|
|
134
|
+
);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// src/pages/offer-conditions/offer-condition-list/components/offer-condition-list-table/offer-condition-list-header.tsx
|
|
138
|
+
import { Children } from "react";
|
|
139
|
+
import { Heading, Text } from "@medusajs/ui";
|
|
140
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
141
|
+
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
142
|
+
var OfferConditionListTitle = () => {
|
|
143
|
+
const { t } = useTranslation2();
|
|
144
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
145
|
+
/* @__PURE__ */ jsx2(Heading, { children: t("offerConditions.domain") }),
|
|
146
|
+
/* @__PURE__ */ jsx2(Text, { className: "text-ui-fg-subtle", size: "small", children: t("offerConditions.subtitle") })
|
|
147
|
+
] });
|
|
148
|
+
};
|
|
149
|
+
var OfferConditionListActions = ({
|
|
150
|
+
children
|
|
151
|
+
}) => {
|
|
152
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-center gap-x-2", children });
|
|
153
|
+
};
|
|
154
|
+
var OfferConditionListHeader = ({
|
|
155
|
+
children
|
|
156
|
+
}) => {
|
|
157
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-between px-6 py-4", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
158
|
+
/* @__PURE__ */ jsx2(OfferConditionListTitle, {}),
|
|
159
|
+
/* @__PURE__ */ jsx2(OfferConditionListActions, {})
|
|
160
|
+
] }) });
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
// src/pages/offer-conditions/offer-condition-list/components/offer-condition-list-table/offer-condition-list-table.tsx
|
|
164
|
+
import { Fragment as Fragment2, jsx as jsx3 } from "react/jsx-runtime";
|
|
165
|
+
var OfferConditionListTable = ({
|
|
166
|
+
children
|
|
167
|
+
}) => {
|
|
168
|
+
return Children2.count(children) > 0 ? /* @__PURE__ */ jsx3(Fragment2, { children }) : /* @__PURE__ */ jsx3(OfferConditionListDataTable, {});
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
// src/pages/offer-conditions/offer-condition-list/offer-condition-list.tsx
|
|
172
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
173
|
+
var Root = ({ children }) => {
|
|
174
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: /* @__PURE__ */ jsx4(WidgetZone, { id: "offer-conditions.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(OfferConditionListTable, {}) }) });
|
|
175
|
+
};
|
|
176
|
+
var OfferConditionList = Object.assign(Root, {
|
|
177
|
+
Table: OfferConditionListTable,
|
|
178
|
+
Header: OfferConditionListHeader,
|
|
179
|
+
HeaderTitle: OfferConditionListTitle,
|
|
180
|
+
HeaderActions: OfferConditionListActions,
|
|
181
|
+
DataTable: OfferConditionListDataTable
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
export {
|
|
185
|
+
OfferConditionList
|
|
186
|
+
};
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4JXRBULR.js";
|
|
17
17
|
import {
|
|
18
18
|
ActionMenu
|
|
19
19
|
} from "./chunk-3UOYBH5O.js";
|
|
20
20
|
import {
|
|
21
21
|
useDeleteRegion,
|
|
22
22
|
useRegions
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2A5ZKUXK.js";
|
|
24
24
|
|
|
25
25
|
// src/pages/regions/region-list/region-list.tsx
|
|
26
26
|
import { Children as Children3 } from "react";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-VGV7NE5T.js";
|
|
5
5
|
import {
|
|
6
6
|
useProductTableColumns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2KJCCHFH.js";
|
|
8
8
|
import {
|
|
9
9
|
useProductTableFilters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PU6G3CCU.js";
|
|
11
11
|
import {
|
|
12
12
|
useProductTableQuery
|
|
13
13
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
_DataTable,
|
|
19
19
|
useDataTable
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4JXRBULR.js";
|
|
21
21
|
import {
|
|
22
22
|
ActionMenu
|
|
23
23
|
} from "./chunk-3UOYBH5O.js";
|
|
@@ -44,15 +44,9 @@ import {
|
|
|
44
44
|
import {
|
|
45
45
|
ConditionalTooltip
|
|
46
46
|
} from "./chunk-LAVHRER2.js";
|
|
47
|
-
import {
|
|
48
|
-
useRegions
|
|
49
|
-
} from "./chunk-I2EYFPSO.js";
|
|
50
47
|
import {
|
|
51
48
|
useStore
|
|
52
49
|
} from "./chunk-DSH4HYI2.js";
|
|
53
|
-
import {
|
|
54
|
-
usePricePreferences
|
|
55
|
-
} from "./chunk-LDLZJB4B.js";
|
|
56
50
|
import {
|
|
57
51
|
useCreateShippingOptions
|
|
58
52
|
} from "./chunk-D2WH4C7A.js";
|
|
@@ -60,6 +54,12 @@ import {
|
|
|
60
54
|
useFulfillmentProviderOptions,
|
|
61
55
|
useStockLocation
|
|
62
56
|
} from "./chunk-WDIFZQLC.js";
|
|
57
|
+
import {
|
|
58
|
+
useRegions
|
|
59
|
+
} from "./chunk-2A5ZKUXK.js";
|
|
60
|
+
import {
|
|
61
|
+
usePricePreferences
|
|
62
|
+
} from "./chunk-LDLZJB4B.js";
|
|
63
63
|
import {
|
|
64
64
|
useDocumentDirection
|
|
65
65
|
} from "./chunk-Y7QKP6QU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteShippingOptionTypeAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4I37X3VR.js";
|
|
4
4
|
import {
|
|
5
5
|
useDateTableFilters
|
|
6
6
|
} from "./chunk-26OOAKQ6.js";
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
_DataTable,
|
|
21
21
|
useDataTable
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4JXRBULR.js";
|
|
23
23
|
import {
|
|
24
24
|
ActionMenu
|
|
25
25
|
} from "./chunk-3UOYBH5O.js";
|
|
26
26
|
import {
|
|
27
27
|
useShippingOptionTypes
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JPANHFPJ.js";
|
|
29
29
|
|
|
30
30
|
// src/pages/shipping-option-types/shipping-option-type-list/shipping-option-type-list.tsx
|
|
31
31
|
import { Children as Children3 } from "react";
|