@mercurjs/admin 2.4.0 → 2.4.2-canary.0
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-HBMPYBWL.js → add-campaign-promotions-I2RE2TFI.js} +21 -20
- package/dist/{adjust-inventory-RTMTGO5T.js → adjust-inventory-VN7VTEHC.js} +24 -23
- package/dist/{api-key-management-create-R2QRXLWU.js → api-key-management-create-E5MDWSPT.js} +5 -5
- package/dist/{api-key-management-detail-2FMETKXR.js → api-key-management-detail-QPIDG4YL.js} +18 -17
- package/dist/{api-key-management-edit-3UJ7DIH2.js → api-key-management-edit-4LF2QQ7K.js} +6 -6
- package/dist/{api-key-management-list-3YBD5KNP.js → api-key-management-list-QR65GHKN.js} +8 -8
- package/dist/{api-key-management-sales-channels-VP5FPCMF.js → api-key-management-sales-channels-ODNVPGYF.js} +13 -13
- package/dist/{attribute-create-R56WADNB.js → attribute-create-KXP2BR3A.js} +27 -27
- package/dist/{attribute-detail-PU3LWSEC.js → attribute-detail-EXGOXBSF.js} +35 -35
- package/dist/{attribute-edit-RK2QASAT.js → attribute-edit-JHXYOZAS.js} +6 -6
- package/dist/{attribute-edit-possible-value-WV5FR3A7.js → attribute-edit-possible-value-SA5JMQXA.js} +6 -6
- package/dist/{attribute-list-GXZY4A2K.js → attribute-list-YGW7T57X.js} +24 -23
- package/dist/{breadcrumb-2IXSJGVH.js → breadcrumb-5WEYNHQL.js} +1 -1
- package/dist/{campaign-create-ZPHJYED3.js → campaign-create-GI44VXL5.js} +5 -5
- package/dist/{campaign-detail-ZNFVVNX4.js → campaign-detail-CQLFD5TR.js} +28 -27
- package/dist/{campaign-list-27HCFLS7.js → campaign-list-MHCSLAYG.js} +9 -8
- package/dist/{categories-metadata-VOKG26IC.js → categories-metadata-5WRCUAYB.js} +23 -22
- package/dist/{category-create-MKENO5UC.js → category-create-T6KSFJFR.js} +3 -3
- package/dist/{category-detail-SJPQSYH2.js → category-detail-XYXPRDG6.js} +31 -30
- package/dist/{category-edit-SKLDLRHW.js → category-edit-OE4ONHT6.js} +5 -5
- package/dist/{category-icon-edit-XJMM3O74.js → category-icon-edit-PW5CAWMU.js} +5 -5
- package/dist/{category-list-KI2XDQ3A.js → category-list-I32XZHH5.js} +8 -8
- package/dist/{category-media-HLDRYNWZ.js → category-media-WNBMNSD7.js} +5 -5
- package/dist/{category-organize-SKRZFHUJ.js → category-organize-EPEKZLIU.js} +5 -5
- package/dist/{category-products-6JFOCWYN.js → category-products-AE44IYFB.js} +40 -39
- package/dist/{chunk-EQKM37O2.js → chunk-2BUD2E7H.js} +1 -1
- package/dist/{chunk-VHAJNIVQ.js → chunk-2DCSR6PN.js} +6 -6
- package/dist/{chunk-35PCKHL7.js → chunk-2IBXBHN4.js} +5 -5
- package/dist/{chunk-SQYHUF4Y.js → chunk-2JJKODRU.js} +4 -4
- package/dist/{chunk-ZYK6RTG2.js → chunk-2LJB5MG5.js} +13 -13
- package/dist/{chunk-AQBW6KVN.js → chunk-2LSMPTXI.js} +1 -1
- package/dist/{chunk-QEUNVKSA.js → chunk-2SPKAU6B.js} +7 -7
- package/dist/{chunk-KP3LZSTC.js → chunk-3AYEOPR7.js} +5 -5
- package/dist/{chunk-6NR2MKZT.js → chunk-3FW25NHA.js} +1 -1
- package/dist/{chunk-KVM4YVFU.js → chunk-3LMHCJEX.js} +4 -4
- package/dist/{chunk-ZSBHQBTB.js → chunk-3XDYPQNV.js} +48 -45
- package/dist/{chunk-CEW7IUTB.js → chunk-3XE5GSUK.js} +7 -7
- package/dist/{chunk-IIAKP25M.js → chunk-3YN2ZMOJ.js} +10 -10
- package/dist/{chunk-K2VXSJUF.js → chunk-42EOT2GS.js} +1 -1
- package/dist/{chunk-5F7OAHRW.js → chunk-4E7M7XYS.js} +4 -4
- package/dist/{chunk-LTAR5MLU.js → chunk-4HKO3FVW.js} +51 -15
- package/dist/{chunk-KXEXGXFV.js → chunk-4I65EBC3.js} +8 -8
- package/dist/{chunk-YCAFOH7B.js → chunk-5TFDVLNS.js} +4 -4
- package/dist/{chunk-VSA35Z34.js → chunk-5V7TZO2C.js} +4 -4
- package/dist/{chunk-7ZSLJUXV.js → chunk-5ZF2SG36.js} +11 -11
- package/dist/{chunk-W3FZMS7E.js → chunk-65UMNTRR.js} +6 -6
- package/dist/{chunk-4TKGJDGK.js → chunk-6IE322SZ.js} +9 -9
- package/dist/{chunk-ZEXGMG5L.js → chunk-6JO4K4QK.js} +1 -1
- package/dist/{chunk-XJV4PVT5.js → chunk-6W57K3PC.js} +57 -0
- package/dist/{chunk-VYPJCJ5T.js → chunk-732GOB5M.js} +1617 -1492
- package/dist/{chunk-3MT6RTJD.js → chunk-73UGQNLW.js} +1 -1
- package/dist/{chunk-2GD4XTO7.js → chunk-77XMRJKQ.js} +8 -8
- package/dist/{chunk-PSNKTHKS.js → chunk-7F6ILJAJ.js} +5 -5
- package/dist/{chunk-ZHI5INXR.js → chunk-7LJ6Z5TK.js} +1 -1
- package/dist/{chunk-JT47JVMM.js → chunk-7NDIA2SN.js} +29 -29
- package/dist/{chunk-PTXXNVII.js → chunk-A4LXFSDU.js} +7 -7
- package/dist/{chunk-SSHDOORP.js → chunk-A6I4LURU.js} +5 -5
- package/dist/{chunk-KQPZRFFT.js → chunk-AET2AAKT.js} +6 -6
- package/dist/{chunk-IXSNEWUQ.js → chunk-AHXURBQK.js} +36 -36
- package/dist/{chunk-3F5TBRXC.js → chunk-AUFNEWYR.js} +4 -4
- package/dist/{chunk-TPHZ6MH5.js → chunk-BKNZMLN6.js} +8 -8
- package/dist/{chunk-FNBJK2TJ.js → chunk-BYAFLPPK.js} +8 -8
- package/dist/{chunk-BYW3OPEN.js → chunk-C54WZEEX.js} +19 -0
- package/dist/{chunk-VWFT6TH3.js → chunk-CAWQT5KV.js} +6 -6
- package/dist/{chunk-CCJPJKTY.js → chunk-CJ44WLY3.js} +4 -4
- package/dist/{chunk-SI47AGBI.js → chunk-EYIEFDQM.js} +3 -3
- package/dist/{chunk-N2YEPXWG.js → chunk-EZ3A5EME.js} +1 -1
- package/dist/{chunk-YHSJFILH.js → chunk-F523UP2R.js} +10 -10
- package/dist/{chunk-GIPLONYW.js → chunk-FKQAVXJB.js} +2 -2
- package/dist/{chunk-MAAVSBM6.js → chunk-FMARCJU2.js} +14 -14
- package/dist/{chunk-GLQH2FNY.js → chunk-GTWQFFLT.js} +1 -1
- package/dist/{chunk-AF4UKAMF.js → chunk-GVEY7LY4.js} +6 -6
- package/dist/{chunk-HU6Z5HMO.js → chunk-H77B5JE2.js} +1 -1
- package/dist/{chunk-FT2MLA4F.js → chunk-HYNF4MXN.js} +26 -25
- package/dist/{chunk-7ASMQGI2.js → chunk-IRX6H6PX.js} +5 -5
- package/dist/{chunk-OUTMAZS3.js → chunk-JD7F6TNN.js} +2 -2
- package/dist/{chunk-46XA3DMZ.js → chunk-JKV66HIB.js} +11 -11
- package/dist/{chunk-GUNKK5PA.js → chunk-JVQ5ILSP.js} +18 -18
- package/dist/{chunk-XPRFPBDC.js → chunk-JXRIOU6S.js} +5 -5
- package/dist/{chunk-3YHS5YGW.js → chunk-LHSJXV22.js} +32 -0
- package/dist/{chunk-CYV4ULEF.js → chunk-M65R6KJ7.js} +6 -6
- package/dist/{chunk-I7SKIUQJ.js → chunk-M7DJHW7Y.js} +9 -9
- package/dist/{chunk-DTZLKSWU.js → chunk-MABKQJLL.js} +4 -4
- package/dist/{chunk-HEHM26GN.js → chunk-MB457RHR.js} +1 -1
- package/dist/{chunk-EYOPD6DG.js → chunk-MD36ZSRC.js} +1 -1
- package/dist/{chunk-3435VAEX.js → chunk-MG4HOHXJ.js} +7 -7
- package/dist/{chunk-I4UQLLSP.js → chunk-MUQ6XTZG.js} +1 -1
- package/dist/{chunk-3QEYOHBB.js → chunk-MVZBABWL.js} +4 -4
- package/dist/{chunk-4Y2LVCLK.js → chunk-N3MOQFE2.js} +7 -7
- package/dist/chunk-N72547NA.js +33 -0
- package/dist/{chunk-JCXX4DNP.js → chunk-N7FZLLOS.js} +2 -2
- package/dist/{chunk-OKXPZIGO.js → chunk-NE5GEZYD.js} +8 -8
- package/dist/{chunk-ZTUJNVXJ.js → chunk-PJUW7FBR.js} +1 -1
- package/dist/{chunk-QFZK43H2.js → chunk-PQ6UCU26.js} +8 -7
- package/dist/{chunk-OA6BLEVL.js → chunk-PZKPLLCK.js} +9 -9
- package/dist/chunk-Q25CKL6P.js +158 -0
- package/dist/{chunk-E2R5JEQC.js → chunk-QCPXVVAM.js} +2 -2
- package/dist/chunk-QE6OUQVH.js +64 -0
- package/dist/{chunk-DQPTTURI.js → chunk-QMURCXV6.js} +1 -1
- package/dist/{chunk-ZRVOEBMM.js → chunk-QNH2UAGS.js} +4 -2
- package/dist/{chunk-5QORIQSD.js → chunk-RAVKYLQV.js} +14 -12
- package/dist/{chunk-WH7WEJMX.js → chunk-RJ62M6VM.js} +8 -8
- package/dist/{chunk-VG3FVZJW.js → chunk-T5VQZAUQ.js} +12 -12
- package/dist/{chunk-TQ7X7BTA.js → chunk-TJJBEBVO.js} +18 -18
- package/dist/{chunk-L7UVRJU6.js → chunk-TNW5SNAA.js} +4 -4
- package/dist/{chunk-EKXHGK7S.js → chunk-TPXDWHKN.js} +1 -1
- package/dist/{chunk-L6ZOJ3F5.js → chunk-TRFZWFQP.js} +6 -6
- package/dist/{chunk-2MJHJ3VY.js → chunk-UG2TX3DW.js} +9 -9
- package/dist/{chunk-JV3J45SY.js → chunk-V5ILLJVE.js} +12 -12
- package/dist/{chunk-6ZNREXHT.js → chunk-VCCCWNJ2.js} +1 -1
- package/dist/{chunk-C24M2TDZ.js → chunk-VOIYFZUD.js} +6 -6
- package/dist/{chunk-XZTJCIW5.js → chunk-W2WJU2F7.js} +3 -3
- package/dist/{chunk-JPZ5C6FD.js → chunk-W34INFPB.js} +1 -1
- package/dist/{chunk-ZTHL4V67.js → chunk-X6IEU5BN.js} +20 -20
- package/dist/{chunk-5G4ZVGO7.js → chunk-XJ4VE6B6.js} +6 -6
- package/dist/chunk-XSACPXD4.js +30 -0
- package/dist/{chunk-OPMPCYJX.js → chunk-XYQHDLH7.js} +4 -4
- package/dist/{chunk-FYON63D2.js → chunk-YNFKPKE2.js} +1 -1
- package/dist/{chunk-ITMSX2KQ.js → chunk-YP2DOA53.js} +1 -1
- package/dist/{chunk-65S7FFIR.js → chunk-YRUD4KEK.js} +7 -7
- package/dist/{chunk-KPYRXLOI.js → chunk-Z5JATDR6.js} +1 -1
- package/dist/{chunk-23XQKZVI.js → chunk-ZFJ4JK2G.js} +10 -10
- package/dist/{chunk-ENSULQYA.js → chunk-ZREELPMV.js} +1 -1
- package/dist/{collection-add-products-HGAABSQG.js → collection-add-products-YGSJTBLG.js} +37 -36
- package/dist/{collection-create-IROC3TUS.js → collection-create-OFAKZT3H.js} +4 -4
- package/dist/{collection-detail-POPHBJTD.js → collection-detail-SA3GXCYV.js} +29 -28
- package/dist/{collection-edit-VLCCN534.js → collection-edit-VVUKOHZO.js} +5 -5
- package/dist/{collection-icon-edit-HGOORQUL.js → collection-icon-edit-ZEOV47DV.js} +5 -5
- package/dist/{collection-list-QYOZOLH6.js → collection-list-T7LIHCSO.js} +30 -30
- package/dist/{collection-media-YK4XDMDC.js → collection-media-SW6O54X5.js} +5 -5
- package/dist/{collection-metadata-NAUKYDWG.js → collection-metadata-D56TMA2O.js} +20 -19
- package/dist/{commission-rule-commission-edit-ORXDQKCX.js → commission-rule-commission-edit-CQEL6X4K.js} +31 -15
- package/dist/{commission-rule-create-3E62CKHW.js → commission-rule-create-TIBT26QY.js} +40 -17
- package/dist/{commission-rule-detail-3NH7ULIN.js → commission-rule-detail-KXOBJ7ZE.js} +10 -8
- package/dist/{commission-rule-edit-4JVK6S76.js → commission-rule-edit-YJXOOLIR.js} +32 -14
- package/dist/{commissions-list-BADK7MSY.js → commissions-list-NOHWTAL6.js} +14 -12
- package/dist/{customer-detail-SZT2SUP7.js → customer-detail-X4QO7R4I.js} +29 -28
- package/dist/{customer-group-detail-FFMUXNIB.js → customer-group-detail-5SI2UEWT.js} +24 -23
- package/dist/{customer-group-list-EOSIHWXE.js → customer-group-list-W6AAEMJZ.js} +24 -23
- package/dist/{customer-group-metadata-TJIDSJ6Z.js → customer-group-metadata-ZULCBXZT.js} +21 -20
- package/dist/{customer-list-Y76GVUYI.js → customer-list-NAWGRWW3.js} +4 -4
- package/dist/{customer-metadata-DE3WIXFE.js → customer-metadata-PX4675YG.js} +21 -20
- package/dist/{customers-add-customer-group-6ITTWDUT.js → customers-add-customer-group-MRUPG2NL.js} +37 -36
- package/dist/{edit-inventory-item-JHEJ663F.js → edit-inventory-item-E4HTJCLW.js} +24 -23
- package/dist/{edit-inventory-item-attributes-GXSPW442.js → edit-inventory-item-attributes-DTFCKHA3.js} +24 -23
- package/dist/{edit-reservation-FJR7ZYJF.js → edit-reservation-7XALDPYA.js} +8 -8
- package/dist/{edit-rules-ACC2CU4N.js → edit-rules-D2ETXYOG.js} +23 -22
- package/dist/extension-targets.d.ts +12 -0
- package/dist/{global-commission-edit-6UEKJHWH.js → global-commission-edit-RPDJHLOU.js} +31 -15
- package/dist/{home-DBMCSDAX.js → home-ZMWPB7Z4.js} +17 -15
- package/dist/index.css +10 -0
- package/dist/index.js +413 -441
- package/dist/{inventory-detail-NLQA355J.js → inventory-detail-2QWJSRLT.js} +26 -25
- package/dist/{inventory-list-YH3VIQ4F.js → inventory-list-DPV4VMBB.js} +7 -6
- package/dist/{inventory-metadata-NGKWP7VG.js → inventory-metadata-ZOFBU2CS.js} +22 -21
- package/dist/{inventory-stock-MHGGME6C.js → inventory-stock-2KPY45VX.js} +35 -34
- package/dist/{loader-PKVN2RNN.js → loader-HZFVOO6G.js} +1 -1
- package/dist/{location-detail-5J76LVYZ.js → location-detail-CQFXKIW2.js} +15 -14
- package/dist/{location-fulfillment-providers-BXNGW5FD.js → location-fulfillment-providers-K3IF56D3.js} +41 -41
- package/dist/{location-list-SJZNHDQ5.js → location-list-CVMIBMT7.js} +16 -15
- package/dist/{location-sales-channels-TNLIHLYK.js → location-sales-channels-M5UZFBFQ.js} +13 -13
- package/dist/{location-service-zone-create-2UEUMJ33.js → location-service-zone-create-SPDMYFPB.js} +17 -17
- package/dist/{location-service-zone-manage-areas-5ALQ3XTP.js → location-service-zone-manage-areas-PGGAYMK7.js} +15 -15
- package/dist/{location-service-zone-shipping-option-create-6D242QKG.js → location-service-zone-shipping-option-create-RL7Q7P3U.js} +24 -23
- package/dist/{location-service-zone-shipping-option-pricing-7PC7CUC4.js → location-service-zone-shipping-option-pricing-THSABNGZ.js} +18 -17
- package/dist/{login-NVTT2EHC.js → login-GB4TZ3KN.js} +16 -15
- package/dist/{manage-locations-VKDYHYYV.js → manage-locations-AWAF7NHT.js} +4 -4
- package/dist/{marketplace-detail-HT4HIW5I.js → marketplace-detail-BGGEDBMZ.js} +24 -24
- package/dist/{marketplace-edit-TTP44LZN.js → marketplace-edit-P3NH6JDD.js} +8 -8
- package/dist/{marketplace-metadata-2XEMGXBZ.js → marketplace-metadata-AV4IYMSI.js} +22 -21
- package/dist/{offer-condition-create-J5Z3Q5MH.js → offer-condition-create-ELOPMTVF.js} +14 -13
- package/dist/{offer-condition-edit-CPBKK54R.js → offer-condition-edit-X47KO53G.js} +14 -13
- package/dist/{offer-condition-list-ELVULPI6.js → offer-condition-list-F2UTHYW5.js} +33 -32
- package/dist/{offer-detail-page-4P2NUI5V.js → offer-detail-page-KBX4DEFJ.js} +15 -14
- package/dist/{offer-variant-detail-page-WPBDFISE.js → offer-variant-detail-page-TNNLDDNI.js} +10 -9
- package/dist/{offers-SQQ5SVNW.js → offers-BCT5ZNVV.js} +28 -27
- package/dist/{order-create-edit-KSOUDYKT.js → order-create-edit-ZOXREL6X.js} +26 -26
- package/dist/{order-create-exchange-GJ6VZUXC.js → order-create-exchange-BJK7VBZJ.js} +50 -49
- package/dist/{order-create-refund-I24FCJLL.js → order-create-refund-HCWHO7UA.js} +32 -31
- package/dist/{order-detail-74FNI5EP.js → order-detail-UGTEV6YA.js} +28 -27
- package/dist/{order-edit-billing-address-BQUX6XE4.js → order-edit-billing-address-L7OB7DT4.js} +25 -24
- package/dist/{order-edit-email-PIF3KMMY.js → order-edit-email-6W3ZFJP3.js} +24 -23
- package/dist/{order-edit-shipping-address-IWAXYN6Y.js → order-edit-shipping-address-EAN3RL44.js} +24 -23
- package/dist/{order-list-X5UIPQ2L.js → order-list-JQHYTMPK.js} +14 -14
- package/dist/{order-metadata-4IZB4TSA.js → order-metadata-H55SOYPV.js} +20 -19
- package/dist/{order-request-transfer-RRFZTO2H.js → order-request-transfer-5Z5ASYLA.js} +27 -26
- package/dist/pages/index.js +168 -167
- package/dist/{payout-account-detail-XHWAJWNR.js → payout-account-detail-MHGZZIRD.js} +20 -19
- package/dist/{payout-account-list-XCQFSEMY.js → payout-account-list-RQNRNFIV.js} +7 -6
- package/dist/{payout-detail-3Y4CDLYC.js → payout-detail-TLN5EW23.js} +12 -12
- package/dist/{payout-list-GPITXLNR.js → payout-list-LMWL45PW.js} +12 -11
- package/dist/{price-list-configuration-TIVJZ4CD.js → price-list-configuration-OT3FSLYS.js} +6 -6
- package/dist/{price-list-create-2OSDP6YG.js → price-list-create-MZBAANRE.js} +37 -36
- package/dist/{price-list-customer-availability-XUW5CXVO.js → price-list-customer-availability-W5MPRJAP.js} +8 -8
- package/dist/{price-list-detail-VBGZ56NK.js → price-list-detail-GHBU34II.js} +27 -26
- package/dist/{price-list-edit-VO6QAM7N.js → price-list-edit-HTL5XNKZ.js} +6 -6
- package/dist/{price-list-list-AOJQ3DYT.js → price-list-list-HTAI5DW4.js} +8 -8
- package/dist/{price-list-prices-add-K6UW7LCI.js → price-list-prices-add-PU3QIZ6C.js} +35 -34
- package/dist/{price-list-prices-edit-IR2HYR5F.js → price-list-prices-edit-U5JMSZR2.js} +30 -29
- package/dist/{product-add-existing-attributes-SMP52KCJ.js → product-add-existing-attributes-BUPTMRVD.js} +32 -32
- package/dist/{product-attributes-RREAPT6T.js → product-attributes-5PMGQBIW.js} +4 -4
- package/dist/{product-bulk-edit-UMEOJQKA.js → product-bulk-edit-ETVMA4TH.js} +3 -3
- package/dist/{product-create-HBGQNARV.js → product-create-W3RUAYN2.js} +37 -37
- package/dist/{product-create-attribute-G3AUSBVE.js → product-create-attribute-JRUTWHLJ.js} +4 -4
- package/dist/{product-create-variant-MO7Z452J.js → product-create-variant-G3XZ572E.js} +5 -5
- package/dist/{product-detail-SW2QUQRB.js → product-detail-56VBJ5BZ.js} +24 -24
- package/dist/{product-edit-OLKZ6FO2.js → product-edit-HVV6HFPP.js} +4 -4
- package/dist/{product-edit-attribute-DIZFQ6ZP.js → product-edit-attribute-3JHAMGZG.js} +1 -1
- package/dist/product-inbox-BBAXGADC.js +305 -0
- package/dist/{product-list-MEHDACOH.js → product-list-UTRXPARK.js} +29 -28
- package/dist/{product-media-DNP46LTI.js → product-media-W3QHRCXX.js} +7 -7
- package/dist/{product-metadata-SKGGZGMW.js → product-metadata-Y3M4ZZ2H.js} +20 -19
- package/dist/{product-organization-DLJBYZU3.js → product-organization-BPTXZPF2.js} +7 -7
- package/dist/{product-sales-channels-PK2FKY2X.js → product-sales-channels-HFMSJZVI.js} +10 -10
- package/dist/{product-shipping-profile-YLE4YIDL.js → product-shipping-profile-MM74FN47.js} +4 -4
- package/dist/{product-tag-create-BC7ACPGU.js → product-tag-create-GNJTKAUY.js} +24 -23
- package/dist/{product-tag-detail-74SRZY5I.js → product-tag-detail-PWYCRCC3.js} +43 -42
- package/dist/{product-tag-edit-HSOUEU5D.js → product-tag-edit-IEYXMMU3.js} +24 -23
- package/dist/{product-tag-list-YC6BIXAJ.js → product-tag-list-LNKN323U.js} +43 -42
- package/dist/{product-tag-metadata-2AIAO4B3.js → product-tag-metadata-Q4JIK46H.js} +20 -19
- package/dist/{product-type-detail-6R4BJSSQ.js → product-type-detail-7P2M7JIS.js} +28 -27
- package/dist/{product-type-list-I3YSKNZ2.js → product-type-list-YJCXTJQE.js} +7 -7
- package/dist/{product-type-metadata-34AOQ56P.js → product-type-metadata-S7ZPZFPU.js} +20 -19
- package/dist/{product-variant-detail-Y2JPURSC.js → product-variant-detail-K5L2YBZ5.js} +16 -15
- package/dist/{product-variant-edit-FYT5JOLH.js → product-variant-edit-2A6AJ74P.js} +27 -27
- package/dist/{product-variant-metadata-BJ4ESS42.js → product-variant-metadata-DNMZY323.js} +20 -19
- package/dist/{profile-detail-NJV3B3QG.js → profile-detail-4FHCZL5O.js} +2 -2
- package/dist/{promotion-add-campaign-USH5DBXT.js → promotion-add-campaign-AM7UUMYW.js} +7 -7
- package/dist/{promotion-create-SIOUY7KZ.js → promotion-create-6Q2ZXHUG.js} +24 -23
- package/dist/{promotion-detail-QDF7I6KQ.js → promotion-detail-QYNXRGMO.js} +19 -18
- package/dist/{promotion-list-35QHP535.js → promotion-list-DTEMWIUT.js} +13 -12
- package/dist/{refund-reason-create-NYGRLVIC.js → refund-reason-create-25ZABWC3.js} +24 -23
- package/dist/{refund-reason-edit-C2QOTJSU.js → refund-reason-edit-5DZPMYVZ.js} +24 -23
- package/dist/{refund-reason-list-QZ2Z7MNL.js → refund-reason-list-YJN3YBCX.js} +34 -33
- package/dist/{region-add-countries-OL553I4U.js → region-add-countries-AJM47ID6.js} +12 -11
- package/dist/{region-add-sellers-K3AHYJYP.js → region-add-sellers-KN5PRYNT.js} +14 -14
- package/dist/{region-create-ISLRLCWK.js → region-create-V4YPSF33.js} +20 -19
- package/dist/{region-detail-73CVUMEC.js → region-detail-TRHQFBTW.js} +10 -10
- package/dist/{region-edit-YFHA3XUW.js → region-edit-KEAWUONT.js} +11 -10
- package/dist/{region-list-TV3DT5F6.js → region-list-UE6RO2PZ.js} +6 -5
- package/dist/{region-metadata-MIQHNJWB.js → region-metadata-R6S3KUOD.js} +22 -21
- package/dist/{reservation-create-UAEX2IIQ.js → reservation-create-M7U5YGMU.js} +7 -7
- package/dist/{reservation-detail-7LNYITL4.js → reservation-detail-FCLXXM7P.js} +16 -15
- package/dist/{reservation-list-HI4E5SD3.js → reservation-list-MK6AFJ5N.js} +8 -7
- package/dist/{reservation-metadata-S3364EKD.js → reservation-metadata-35N7FCGC.js} +22 -21
- package/dist/{reset-password-RGFOVPEN.js → reset-password-CRA4KXXZ.js} +4 -4
- package/dist/{return-reason-list-CVANLLJB.js → return-reason-list-2GUYWZLY.js} +23 -22
- package/dist/{review-list-PA6S6M3K.js → review-list-PR4KAUEG.js} +6 -5
- package/dist/{sales-channel-add-products-MGVP4FFA.js → sales-channel-add-products-XSGA433D.js} +39 -38
- package/dist/{sales-channel-create-KCEMVUFL.js → sales-channel-create-JLRHY4I3.js} +4 -4
- package/dist/{sales-channel-detail-R7NN5C34.js → sales-channel-detail-WUA6WCD3.js} +28 -27
- package/dist/{sales-channel-edit-EE4HMRMK.js → sales-channel-edit-F6WEJPJD.js} +5 -5
- package/dist/{sales-channel-list-KAGUTX7P.js → sales-channel-list-OA3BS44A.js} +18 -17
- package/dist/{sales-channel-metadata-6MT5BCGH.js → sales-channel-metadata-EQEMA7ZK.js} +22 -21
- package/dist/{settings-5AJC22SM.js → settings-SQMRZHLN.js} +18 -16
- package/dist/{shipping-option-type-create-LGGBUTPM.js → shipping-option-type-create-JNVJYWQ4.js} +24 -23
- package/dist/{shipping-option-type-detail-RDKLCL3M.js → shipping-option-type-detail-FWMONUZX.js} +13 -12
- package/dist/{shipping-option-type-edit-K2DRIE6Q.js → shipping-option-type-edit-2ORVYAS2.js} +24 -23
- package/dist/{shipping-option-type-list-JIGYSRUS.js → shipping-option-type-list-XOC4A2K5.js} +25 -24
- package/dist/{shipping-profile-detail-HY362D6V.js → shipping-profile-detail-2BO5PJLM.js} +3 -3
- package/dist/{shipping-profile-metadata-INM6HD5Y.js → shipping-profile-metadata-TQJUPQDT.js} +20 -19
- package/dist/{shipping-profiles-list-4L2FFQ7C.js → shipping-profiles-list-6XJ2BCAN.js} +4 -4
- package/dist/{store-add-regions-2D5WXXAC.js → store-add-regions-EOGPCBH4.js} +13 -12
- package/dist/{store-address-edit-3FUQAVO6.js → store-address-edit-BWDVQ4AO.js} +6 -5
- package/dist/{store-bulk-edit-WIPY4OI5.js → store-bulk-edit-26DGX4KW.js} +36 -48
- package/dist/{store-closure-edit-F2UB2UE3.js → store-closure-edit-7SUR4F2K.js} +6 -5
- package/dist/{store-create-XWRAEDU5.js → store-create-XODKGAQB.js} +25 -24
- package/dist/{store-details-VPNLJEQW.js → store-details-CTXOMJ4F.js} +40 -39
- package/dist/{store-edit-6Z2ORG5F.js → store-edit-6G62NLNK.js} +38 -21
- package/dist/{store-list-FV2HPPVE.js → store-list-MSXINJBB.js} +29 -29
- package/dist/{store-member-invite-HJ3HSQ6P.js → store-member-invite-KHZD23MS.js} +13 -13
- package/dist/{store-payment-details-edit-JRHVAWFJ.js → store-payment-details-edit-RQNDJCYW.js} +6 -5
- package/dist/{store-professional-details-edit-623AGHEB.js → store-professional-details-edit-QRB6EBTP.js} +6 -5
- package/dist/{tax-region-create-NRY2FH4O.js → tax-region-create-27DNVEWH.js} +25 -24
- package/dist/{tax-region-detail-JA7S5HWF.js → tax-region-detail-TL34TZ74.js} +22 -21
- package/dist/{tax-region-edit-KYF2TUAA.js → tax-region-edit-WMTF547K.js} +24 -23
- package/dist/tax-region-list-EN2XGZLJ.js +4 -4
- package/dist/{tax-region-metadata-PZNTQZ66.js → tax-region-metadata-XTERQTSO.js} +22 -21
- package/dist/{tax-region-province-detail-QPZUP6LC.js → tax-region-province-detail-V4O4LIEL.js} +21 -20
- package/dist/{tax-region-tax-override-create-U5654PKU.js → tax-region-tax-override-create-MGQYCSLB.js} +57 -56
- package/dist/{tax-region-tax-override-edit-DQCSKCYZ.js → tax-region-tax-override-edit-PWH2ZJVM.js} +57 -56
- package/dist/{user-detail-JVJCU3AN.js → user-detail-W5HUECIC.js} +1 -1
- package/dist/{user-list-KBRBDW2H.js → user-list-TC6EBLIK.js} +4 -4
- package/dist/{user-metadata-A2GTLQEJ.js → user-metadata-P4XDYLXJ.js} +22 -21
- package/package.json +13 -13
- package/dist/chunk-EVWDEDPV.js +0 -106
- package/dist/chunk-PZRMVDNF.js +0 -60
- package/dist/{attribute-create-possible-value-3R4XNSXB.js → attribute-create-possible-value-BYZBIM67.js} +4 -4
- package/dist/{attribute-edit-ranking-53TCHOGF.js → attribute-edit-ranking-ITKTUZNK.js} +4 -4
- package/dist/{campaign-budget-edit-OG4JZ5Q4.js → campaign-budget-edit-JFWPF2NO.js} +4 -4
- package/dist/{campaign-configuration-ASHJSSD3.js → campaign-configuration-WDDM7RZ2.js} +4 -4
- package/dist/{campaign-edit-RIQCPM5M.js → campaign-edit-YIGWVRGP.js} +4 -4
- package/dist/{chunk-CEAFREUV.js → chunk-2DG56CBS.js} +3 -3
- package/dist/{chunk-J3U2QLEW.js → chunk-5ZBFCBQR.js} +7 -7
- package/dist/{chunk-DRURWEJR.js → chunk-CSNREXFJ.js} +4 -4
- package/dist/{chunk-JPYECNPC.js → chunk-CVB2POLW.js} +3 -3
- package/dist/{chunk-DPGIKIH6.js → chunk-GJCMUX7T.js} +3 -3
- package/dist/{chunk-VKEUZPVJ.js → chunk-HJYNCOC7.js} +3 -3
- package/dist/{chunk-4END3ACP.js → chunk-JH7QZCDE.js} +4 -4
- package/dist/{chunk-VLNTJXXO.js → chunk-MU7RXGLY.js} +3 -3
- package/dist/{chunk-WJAFVDOO.js → chunk-PA3BZFOS.js} +6 -6
- package/dist/{chunk-X5PMVI7H.js → chunk-PSWHADBT.js} +3 -3
- package/dist/{chunk-JQ6JP5U3.js → chunk-PW6I5D3O.js} +9 -9
- package/dist/{chunk-NMC4FYSN.js → chunk-QO3LBQVW.js} +3 -3
- package/dist/{chunk-7VO6VJZJ.js → chunk-RSBKZYJ7.js} +3 -3
- package/dist/{chunk-UKL34M7K.js → chunk-RZON6NUL.js} +4 -4
- package/dist/{chunk-E7HU64ES.js → chunk-TVQDFXGM.js} +4 -4
- package/dist/{chunk-4BPYFH72.js → chunk-US4ODTG4.js} +3 -3
- package/dist/{chunk-JJUA3AUY.js → chunk-X7YXQYAJ.js} +3 -3
- package/dist/{chunk-E6DSHSYR.js → chunk-ZDWFCRK2.js} +11 -11
- package/dist/{chunk-ZASF7XBG.js → chunk-ZFPHVI5D.js} +3 -3
- package/dist/{customer-create-HPOKBBWF.js → customer-create-XAXPKUME.js} +3 -3
- package/dist/{customer-create-address-X74BQEEF.js → customer-create-address-DK7B6UQG.js} +3 -3
- package/dist/{customer-edit-23V25VEJ.js → customer-edit-I7P7LOHG.js} +4 -4
- package/dist/{customer-edit-address-IKTNWMCQ.js → customer-edit-address-Z3ITANMQ.js} +4 -4
- package/dist/{customer-group-add-customers-Z3ZKTWF4.js → customer-group-add-customers-OIRQOJFT.js} +12 -12
- package/dist/{customer-group-create-B33PV7LT.js → customer-group-create-F4UVX2LS.js} +3 -3
- package/dist/{customer-group-edit-R7GY2M7U.js → customer-group-edit-6YA2JKV5.js} +4 -4
- package/dist/{invite-IDVA7HGQ.js → invite-RQPJ24XM.js} +3 -3
- package/dist/{location-create-6YTSKD7F.js → location-create-XEAFZKL4.js} +3 -3
- package/dist/{location-edit-M6MJAFKF.js → location-edit-2CMYJ5IV.js} +4 -4
- package/dist/{location-service-zone-edit-YHMPLIBL.js → location-service-zone-edit-EBP2VFWK.js} +7 -7
- package/dist/{location-service-zone-shipping-option-edit-K6UP33QH.js → location-service-zone-shipping-option-edit-K7SOAJHY.js} +5 -5
- package/dist/{marketplace-add-currencies-3MQIZY5Q.js → marketplace-add-currencies-OESXX47Z.js} +16 -16
- package/dist/{order-create-claim-SK6YC7UT.js → order-create-claim-RSZ3M7TG.js} +31 -31
- package/dist/{order-create-return-M7UE3KTN.js → order-create-return-6H2QQN4E.js} +31 -31
- package/dist/{product-type-create-J7ELRHCC.js → product-type-create-KAIH2IH4.js} +3 -3
- package/dist/{product-type-edit-Y5ZIXWE4.js → product-type-edit-KQK7OWC2.js} +4 -4
- package/dist/{profile-edit-5LG6ZD34.js → profile-edit-BQ27KAP6.js} +7 -7
- package/dist/{promotion-edit-details-JUKUUBUL.js → promotion-edit-details-7RJ5KQDZ.js} +5 -5
- package/dist/{shipping-profile-create-RKD7BJGH.js → shipping-profile-create-SLVMPOV7.js} +3 -3
- package/dist/{tax-region-province-create-DY7IEM2A.js → tax-region-province-create-HBUNRYHU.js} +4 -4
- package/dist/{tax-region-tax-rate-create-N5FHHGV2.js → tax-region-tax-rate-create-FSLLYJFU.js} +6 -6
- package/dist/{tax-region-tax-rate-edit-7E45DXUP.js → tax-region-tax-rate-edit-Y3GFJAR5.js} +5 -5
- package/dist/{user-edit-UJMTZBPX.js → user-edit-ERWEAGP3.js} +4 -4
- package/dist/{user-invite-VDNGXSV3.js → user-invite-O4EIKZZ5.js} +15 -15
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useProductTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QNH2UAGS.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7F6ILJAJ.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableQuery
|
|
9
9
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
SingleColumnPage
|
|
12
12
|
} from "./chunk-H6MYB7GB.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
ActionMenu
|
|
15
|
+
} from "./chunk-3UOYBH5O.js";
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
19
|
} from "./chunk-4JXRBULR.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
PRODUCT_IDS_KEY
|
|
22
|
+
} from "./chunk-LO2ZWQGL.js";
|
|
23
23
|
import {
|
|
24
24
|
useBatchProducts,
|
|
25
25
|
useDeleteProduct,
|
|
26
26
|
useProducts
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-C54WZEEX.js";
|
|
28
28
|
|
|
29
29
|
// src/pages/products/product-list/product-list.tsx
|
|
30
30
|
import { Children as Children2 } from "react";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StatusCell
|
|
3
|
+
} from "./chunk-DB6ANJBO.js";
|
|
4
|
+
import {
|
|
5
|
+
require_dist
|
|
6
|
+
} from "./chunk-732GOB5M.js";
|
|
7
|
+
import {
|
|
8
|
+
__toESM
|
|
9
|
+
} from "./chunk-NBMM2TZK.js";
|
|
10
|
+
|
|
11
|
+
// src/components/table/table-cells/product/product-status-cell/product-status-cell.tsx
|
|
12
|
+
import { useTranslation } from "react-i18next";
|
|
13
|
+
var import_types = __toESM(require_dist(), 1);
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var ProductStatusCell = ({ status }) => {
|
|
16
|
+
const { t } = useTranslation();
|
|
17
|
+
const [color, text] = {
|
|
18
|
+
[import_types.ProductStatus.DRAFT]: ["grey", t("products.productStatus.draft")],
|
|
19
|
+
[import_types.ProductStatus.PROPOSED]: ["orange", t("products.productStatus.proposed")],
|
|
20
|
+
[import_types.ProductStatus.PUBLISHED]: ["green", t("products.productStatus.published")],
|
|
21
|
+
[import_types.ProductStatus.REJECTED]: ["red", t("products.productStatus.rejected")]
|
|
22
|
+
}[status];
|
|
23
|
+
return /* @__PURE__ */ jsx(StatusCell, { color, children: text });
|
|
24
|
+
};
|
|
25
|
+
var ProductStatusHeader = () => {
|
|
26
|
+
const { t } = useTranslation();
|
|
27
|
+
return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx("span", { children: t("fields.status") }) });
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
ProductStatusCell,
|
|
32
|
+
ProductStatusHeader
|
|
33
|
+
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-NFZEX33S.js";
|
|
7
7
|
import {
|
|
8
8
|
DataTable
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MU7RXGLY.js";
|
|
10
10
|
import {
|
|
11
11
|
SingleColumnPage
|
|
12
12
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
useDeleteSalesChannelLazy,
|
|
18
18
|
useSalesChannels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TPXDWHKN.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/sales-channels/sales-channel-list/sales-channel-list.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useOrderGroupTableFilters
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CJ44WLY3.js";
|
|
4
4
|
import {
|
|
5
5
|
useOrderTableQuery
|
|
6
6
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -10,10 +10,6 @@ import {
|
|
|
10
10
|
PaymentStatusCell,
|
|
11
11
|
PaymentStatusHeader
|
|
12
12
|
} from "./chunk-TZSOL34K.js";
|
|
13
|
-
import {
|
|
14
|
-
DateCell,
|
|
15
|
-
DateHeader
|
|
16
|
-
} from "./chunk-F3XPA5ID.js";
|
|
17
13
|
import {
|
|
18
14
|
getStylizedAmount
|
|
19
15
|
} from "./chunk-PXYDR7WQ.js";
|
|
@@ -21,16 +17,20 @@ import {
|
|
|
21
17
|
TextCell,
|
|
22
18
|
TextHeader
|
|
23
19
|
} from "./chunk-JHIMVLB2.js";
|
|
20
|
+
import {
|
|
21
|
+
DateCell,
|
|
22
|
+
DateHeader
|
|
23
|
+
} from "./chunk-F3XPA5ID.js";
|
|
24
24
|
import {
|
|
25
25
|
SingleColumnPage
|
|
26
26
|
} from "./chunk-H6MYB7GB.js";
|
|
27
|
+
import {
|
|
28
|
+
useOrderGroups
|
|
29
|
+
} from "./chunk-RYOXVZEX.js";
|
|
27
30
|
import {
|
|
28
31
|
_DataTable,
|
|
29
32
|
useDataTable
|
|
30
33
|
} from "./chunk-4JXRBULR.js";
|
|
31
|
-
import {
|
|
32
|
-
useOrderGroups
|
|
33
|
-
} from "./chunk-RYOXVZEX.js";
|
|
34
34
|
|
|
35
35
|
// src/pages/orders/order-list/order-list.tsx
|
|
36
36
|
import { Children as Children3 } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteCommissionRuleAction,
|
|
3
3
|
useScopeReferenceNames
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q25CKL6P.js";
|
|
5
5
|
import {
|
|
6
6
|
formatCommissionValue,
|
|
7
7
|
getIsActiveProps,
|
|
@@ -9,18 +9,18 @@ import {
|
|
|
9
9
|
getScopeTypeLabel,
|
|
10
10
|
referenceIds
|
|
11
11
|
} from "./chunk-CGIVQ7D2.js";
|
|
12
|
-
import {
|
|
13
|
-
SingleColumnPage
|
|
14
|
-
} from "./chunk-H6MYB7GB.js";
|
|
15
12
|
import {
|
|
16
13
|
SectionRow
|
|
17
14
|
} from "./chunk-3XPXUIK3.js";
|
|
15
|
+
import {
|
|
16
|
+
SingleColumnPage
|
|
17
|
+
} from "./chunk-H6MYB7GB.js";
|
|
18
18
|
import {
|
|
19
19
|
ActionMenu
|
|
20
20
|
} from "./chunk-3UOYBH5O.js";
|
|
21
21
|
import {
|
|
22
22
|
useCommissionRule
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-H77B5JE2.js";
|
|
24
24
|
|
|
25
25
|
// src/pages/commissions/commission-rule-detail/commission-rule-detail.tsx
|
|
26
26
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -31,7 +31,7 @@ import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
|
31
31
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
32
32
|
var ScopeSection = ({ rule }) => {
|
|
33
33
|
const { t } = useTranslation();
|
|
34
|
-
const handleDelete = useDeleteCommissionRuleAction(rule);
|
|
34
|
+
const { handleDelete, deleteDialog } = useDeleteCommissionRuleAction(rule);
|
|
35
35
|
const statusProps = getIsActiveProps(rule.is_enabled, t);
|
|
36
36
|
const { names } = useScopeReferenceNames(rule.rules);
|
|
37
37
|
const stores = referenceIds(rule.rules, "seller");
|
|
@@ -68,7 +68,8 @@ var ScopeSection = ({ rule }) => {
|
|
|
68
68
|
}
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
|
-
)
|
|
71
|
+
),
|
|
72
|
+
deleteDialog
|
|
72
73
|
] })
|
|
73
74
|
] }),
|
|
74
75
|
/* @__PURE__ */ jsx(
|
|
@@ -7,13 +7,6 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
SingleColumnPage
|
|
9
9
|
} from "./chunk-H6MYB7GB.js";
|
|
10
|
-
import {
|
|
11
|
-
useQueryParams
|
|
12
|
-
} from "./chunk-THHRRYRS.js";
|
|
13
|
-
import {
|
|
14
|
-
_DataTable,
|
|
15
|
-
useDataTable
|
|
16
|
-
} from "./chunk-4JXRBULR.js";
|
|
17
10
|
import {
|
|
18
11
|
ActionMenu
|
|
19
12
|
} from "./chunk-3UOYBH5O.js";
|
|
@@ -23,10 +16,17 @@ import {
|
|
|
23
16
|
import {
|
|
24
17
|
useDeleteReservationItem,
|
|
25
18
|
useReservationItems
|
|
26
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PJUW7FBR.js";
|
|
20
|
+
import {
|
|
21
|
+
useQueryParams
|
|
22
|
+
} from "./chunk-THHRRYRS.js";
|
|
23
|
+
import {
|
|
24
|
+
_DataTable,
|
|
25
|
+
useDataTable
|
|
26
|
+
} from "./chunk-4JXRBULR.js";
|
|
27
27
|
import {
|
|
28
28
|
useSellers
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6W57K3PC.js";
|
|
30
30
|
|
|
31
31
|
// src/pages/reservations/reservation-list/reservation-list.tsx
|
|
32
32
|
import { Children as Children2 } from "react";
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useProductTypes
|
|
3
|
+
} from "./chunk-TOAE7XZ7.js";
|
|
4
|
+
import {
|
|
5
|
+
useDeleteCommissionRule
|
|
6
|
+
} from "./chunk-H77B5JE2.js";
|
|
7
|
+
import {
|
|
8
|
+
useProductCategories
|
|
9
|
+
} from "./chunk-YP2DOA53.js";
|
|
10
|
+
import {
|
|
11
|
+
useSellers
|
|
12
|
+
} from "./chunk-6W57K3PC.js";
|
|
13
|
+
import {
|
|
14
|
+
Form
|
|
15
|
+
} from "./chunk-3QSRE5LS.js";
|
|
16
|
+
|
|
17
|
+
// src/pages/commissions/common/hooks/use-delete-commission-rule-action.tsx
|
|
18
|
+
import { Prompt, toast } from "@medusajs/ui";
|
|
19
|
+
import {
|
|
20
|
+
FormExtensionZone,
|
|
21
|
+
useExtendableForm,
|
|
22
|
+
useExtension
|
|
23
|
+
} from "@mercurjs/dashboard-shared";
|
|
24
|
+
import { useState } from "react";
|
|
25
|
+
import { useTranslation } from "react-i18next";
|
|
26
|
+
import { useNavigate } from "react-router-dom";
|
|
27
|
+
import * as zod from "zod";
|
|
28
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
|
+
var DeleteCommissionRuleSchema = zod.object({});
|
|
30
|
+
var useDeleteCommissionRuleAction = (rule) => {
|
|
31
|
+
const { t } = useTranslation();
|
|
32
|
+
const navigate = useNavigate();
|
|
33
|
+
const [open, setOpen] = useState(false);
|
|
34
|
+
const { mutateAsync, isPending } = useDeleteCommissionRule(rule.id);
|
|
35
|
+
const hasCustomFields = useExtension().getFormFields("commission_rate", "delete").length > 0;
|
|
36
|
+
const form = useExtendableForm({
|
|
37
|
+
schema: DeleteCommissionRuleSchema,
|
|
38
|
+
model: "commission_rate",
|
|
39
|
+
zone: "delete",
|
|
40
|
+
data: rule,
|
|
41
|
+
defaultValues: {}
|
|
42
|
+
});
|
|
43
|
+
const handleOpenChange = (next) => {
|
|
44
|
+
if (isPending) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (next) {
|
|
48
|
+
form.reset();
|
|
49
|
+
}
|
|
50
|
+
setOpen(next);
|
|
51
|
+
};
|
|
52
|
+
const handleSubmit = form.handleSubmit(async (values) => {
|
|
53
|
+
await mutateAsync(
|
|
54
|
+
{ additional_data: values.additional_data },
|
|
55
|
+
{
|
|
56
|
+
onSuccess: () => {
|
|
57
|
+
toast.success(t("commissions.delete.successToast"));
|
|
58
|
+
setOpen(false);
|
|
59
|
+
navigate("/settings/commissions");
|
|
60
|
+
},
|
|
61
|
+
onError: (e) => {
|
|
62
|
+
toast.error(e.message);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
});
|
|
67
|
+
const deleteDialog = /* @__PURE__ */ jsx(Prompt, { open, onOpenChange: handleOpenChange, variant: "danger", children: /* @__PURE__ */ jsx(Prompt.Content, { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxs(Form, { ...form, children: [
|
|
68
|
+
/* @__PURE__ */ jsxs(Prompt.Header, { className: hasCustomFields ? "pb-6" : void 0, children: [
|
|
69
|
+
/* @__PURE__ */ jsx(Prompt.Title, { children: t("commissions.delete.title") }),
|
|
70
|
+
/* @__PURE__ */ jsx(Prompt.Description, { children: t("commissions.delete.description", {
|
|
71
|
+
name: rule.name,
|
|
72
|
+
defaultValue: `You are about to delete commission rule ${rule.name}. This action cannot be undone.`
|
|
73
|
+
}) })
|
|
74
|
+
] }),
|
|
75
|
+
hasCustomFields ? /* @__PURE__ */ jsx("div", { className: "border-ui-border-base border-y px-6 py-4", children: /* @__PURE__ */ jsx(
|
|
76
|
+
FormExtensionZone,
|
|
77
|
+
{
|
|
78
|
+
model: "commission_rate",
|
|
79
|
+
zone: "delete",
|
|
80
|
+
control: form.control,
|
|
81
|
+
data: rule
|
|
82
|
+
}
|
|
83
|
+
) }) : null,
|
|
84
|
+
/* @__PURE__ */ jsxs(Prompt.Footer, { children: [
|
|
85
|
+
/* @__PURE__ */ jsx(Prompt.Cancel, { disabled: isPending, children: t("actions.cancel") }),
|
|
86
|
+
/* @__PURE__ */ jsx(
|
|
87
|
+
Prompt.Action,
|
|
88
|
+
{
|
|
89
|
+
onClick: (e) => {
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
void handleSubmit();
|
|
92
|
+
},
|
|
93
|
+
disabled: isPending,
|
|
94
|
+
children: t("actions.delete")
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] })
|
|
98
|
+
] }) }) });
|
|
99
|
+
return { handleDelete: () => handleOpenChange(true), deleteDialog };
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// src/pages/commissions/common/hooks/use-scope-reference-names.tsx
|
|
103
|
+
import { useMemo } from "react";
|
|
104
|
+
import { usePermissions } from "@mercurjs/dashboard-shared";
|
|
105
|
+
var idsFor = (rules = [], reference) => rules.filter((r) => r.reference === reference).map((r) => r.reference_id);
|
|
106
|
+
var useScopeReferenceNames = (rules = []) => {
|
|
107
|
+
const sellerIds = useMemo(() => idsFor(rules, "seller"), [rules]);
|
|
108
|
+
const productTypeIds = useMemo(
|
|
109
|
+
() => idsFor(rules, "product_type"),
|
|
110
|
+
[rules]
|
|
111
|
+
);
|
|
112
|
+
const categoryIds = useMemo(
|
|
113
|
+
() => idsFor(rules, "product_category"),
|
|
114
|
+
[rules]
|
|
115
|
+
);
|
|
116
|
+
const { can } = usePermissions();
|
|
117
|
+
const canViewSellers = can("sellers");
|
|
118
|
+
const canViewProductTypes = can("product_types");
|
|
119
|
+
const canViewCategories = can("product_categories");
|
|
120
|
+
const { sellers, isLoading: sellersLoading } = useSellers(
|
|
121
|
+
{ id: sellerIds, fields: "id,name", limit: sellerIds.length || 1 },
|
|
122
|
+
{ enabled: sellerIds.length > 0 && canViewSellers }
|
|
123
|
+
);
|
|
124
|
+
const { product_types: productTypes, isLoading: typesLoading } = useProductTypes(
|
|
125
|
+
{ id: productTypeIds, fields: "id,value", limit: productTypeIds.length || 1 },
|
|
126
|
+
{ enabled: productTypeIds.length > 0 && canViewProductTypes }
|
|
127
|
+
);
|
|
128
|
+
const { product_categories: categories, isLoading: categoriesLoading } = useProductCategories(
|
|
129
|
+
{
|
|
130
|
+
id: categoryIds,
|
|
131
|
+
fields: "id,name",
|
|
132
|
+
limit: categoryIds.length || 1
|
|
133
|
+
},
|
|
134
|
+
{ enabled: categoryIds.length > 0 && canViewCategories }
|
|
135
|
+
);
|
|
136
|
+
const names = useMemo(() => {
|
|
137
|
+
const map = {};
|
|
138
|
+
for (const s of sellers ?? []) {
|
|
139
|
+
map[s.id] = s.name;
|
|
140
|
+
}
|
|
141
|
+
for (const pt of productTypes ?? []) {
|
|
142
|
+
map[pt.id] = pt.value;
|
|
143
|
+
}
|
|
144
|
+
for (const c of categories ?? []) {
|
|
145
|
+
map[c.id] = c.name;
|
|
146
|
+
}
|
|
147
|
+
return map;
|
|
148
|
+
}, [sellers, productTypes, categories]);
|
|
149
|
+
return {
|
|
150
|
+
names,
|
|
151
|
+
isLoading: sellerIds.length > 0 && canViewSellers && sellersLoading || productTypeIds.length > 0 && canViewProductTypes && typesLoading || categoryIds.length > 0 && canViewCategories && categoriesLoading
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export {
|
|
156
|
+
useDeleteCommissionRuleAction,
|
|
157
|
+
useScopeReferenceNames
|
|
158
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reservationItemsQueryKeys
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PJUW7FBR.js";
|
|
4
4
|
import {
|
|
5
5
|
ordersQueryKeys
|
|
6
6
|
} from "./chunk-KDGQJ37N.js";
|
|
7
7
|
import {
|
|
8
8
|
inventoryItemsQueryKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C54WZEEX.js";
|
|
10
10
|
import {
|
|
11
11
|
queryClient
|
|
12
12
|
} from "./chunk-2KCF3ZIB.js";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery
|
|
3
|
+
} from "./chunk-PFJ2C667.js";
|
|
4
|
+
|
|
5
|
+
// src/providers/feature-flag-provider/index.tsx
|
|
6
|
+
import { createContext, useCallback, useContext, useMemo } from "react";
|
|
7
|
+
|
|
8
|
+
// src/hooks/api/feature-flags.tsx
|
|
9
|
+
import { useQuery } from "@tanstack/react-query";
|
|
10
|
+
var useFeatureFlags = () => {
|
|
11
|
+
return useQuery({
|
|
12
|
+
queryKey: ["admin", "feature-flags"],
|
|
13
|
+
queryFn: async () => {
|
|
14
|
+
const response = await fetchQuery("/admin/feature-flags", {
|
|
15
|
+
method: "GET"
|
|
16
|
+
});
|
|
17
|
+
return response.feature_flags;
|
|
18
|
+
},
|
|
19
|
+
staleTime: 5 * 60 * 1e3,
|
|
20
|
+
gcTime: 10 * 60 * 1e3
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// src/providers/feature-flag-provider/index.tsx
|
|
25
|
+
import { jsx } from "react/jsx-runtime";
|
|
26
|
+
var FeatureFlagContext = createContext(null);
|
|
27
|
+
var useFeatureFlag = (flag) => {
|
|
28
|
+
const context = useContext(FeatureFlagContext);
|
|
29
|
+
if (!context) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return context.isFeatureEnabled(flag);
|
|
33
|
+
};
|
|
34
|
+
var useFeatureFlagContext = () => {
|
|
35
|
+
const context = useContext(FeatureFlagContext);
|
|
36
|
+
if (!context) {
|
|
37
|
+
throw new Error(
|
|
38
|
+
"useFeatureFlagContext must be used within FeatureFlagProvider"
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
return context;
|
|
42
|
+
};
|
|
43
|
+
var FeatureFlagProvider = ({
|
|
44
|
+
children
|
|
45
|
+
}) => {
|
|
46
|
+
const { data: flags = {}, isLoading } = useFeatureFlags();
|
|
47
|
+
const isFeatureEnabled = useCallback(
|
|
48
|
+
(flag) => {
|
|
49
|
+
return flags[flag] === true;
|
|
50
|
+
},
|
|
51
|
+
[flags]
|
|
52
|
+
);
|
|
53
|
+
const value = useMemo(
|
|
54
|
+
() => ({ flags, isLoading, isFeatureEnabled }),
|
|
55
|
+
[flags, isLoading, isFeatureEnabled]
|
|
56
|
+
);
|
|
57
|
+
return /* @__PURE__ */ jsx(FeatureFlagContext.Provider, { value, children });
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
useFeatureFlag,
|
|
62
|
+
useFeatureFlagContext,
|
|
63
|
+
FeatureFlagProvider
|
|
64
|
+
};
|
|
@@ -3,10 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-4KXDWQ5F.js";
|
|
4
4
|
import {
|
|
5
5
|
CategoryCell,
|
|
6
|
-
CategoryHeader
|
|
6
|
+
CategoryHeader
|
|
7
|
+
} from "./chunk-XSACPXD4.js";
|
|
8
|
+
import {
|
|
7
9
|
ProductStatusCell,
|
|
8
10
|
ProductStatusHeader
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-N72547NA.js";
|
|
10
12
|
import {
|
|
11
13
|
ProductCell,
|
|
12
14
|
ProductHeader
|
|
@@ -14,12 +16,6 @@ import {
|
|
|
14
16
|
import {
|
|
15
17
|
PlaceholderCell
|
|
16
18
|
} from "./chunk-PHOCVOZ5.js";
|
|
17
|
-
import {
|
|
18
|
-
useQueryParams
|
|
19
|
-
} from "./chunk-THHRRYRS.js";
|
|
20
|
-
import {
|
|
21
|
-
require_dist
|
|
22
|
-
} from "./chunk-VYPJCJ5T.js";
|
|
23
19
|
import {
|
|
24
20
|
ActionMenu
|
|
25
21
|
} from "./chunk-3UOYBH5O.js";
|
|
@@ -31,13 +27,19 @@ import {
|
|
|
31
27
|
} from "./chunk-TOAE7XZ7.js";
|
|
32
28
|
import {
|
|
33
29
|
useCollections
|
|
34
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2BUD2E7H.js";
|
|
31
|
+
import {
|
|
32
|
+
useProductCategories
|
|
33
|
+
} from "./chunk-YP2DOA53.js";
|
|
34
|
+
import {
|
|
35
|
+
useQueryParams
|
|
36
|
+
} from "./chunk-THHRRYRS.js";
|
|
35
37
|
import {
|
|
36
38
|
useSellers
|
|
37
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6W57K3PC.js";
|
|
38
40
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
require_dist
|
|
42
|
+
} from "./chunk-732GOB5M.js";
|
|
41
43
|
import {
|
|
42
44
|
__toESM
|
|
43
45
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -7,6 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
SingleColumnPage
|
|
9
9
|
} from "./chunk-H6MYB7GB.js";
|
|
10
|
+
import {
|
|
11
|
+
ActionMenu
|
|
12
|
+
} from "./chunk-3UOYBH5O.js";
|
|
13
|
+
import {
|
|
14
|
+
useStockLocations
|
|
15
|
+
} from "./chunk-Y5ZZOV2D.js";
|
|
10
16
|
import {
|
|
11
17
|
useQueryParams
|
|
12
18
|
} from "./chunk-THHRRYRS.js";
|
|
@@ -14,19 +20,13 @@ import {
|
|
|
14
20
|
_DataTable,
|
|
15
21
|
useDataTable
|
|
16
22
|
} from "./chunk-4JXRBULR.js";
|
|
17
|
-
import {
|
|
18
|
-
ActionMenu
|
|
19
|
-
} from "./chunk-3UOYBH5O.js";
|
|
20
|
-
import {
|
|
21
|
-
useStockLocations
|
|
22
|
-
} from "./chunk-Y5ZZOV2D.js";
|
|
23
23
|
import {
|
|
24
24
|
useSellers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6W57K3PC.js";
|
|
26
26
|
import {
|
|
27
27
|
useDeleteInventoryItem,
|
|
28
28
|
useInventoryItems
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-C54WZEEX.js";
|
|
30
30
|
|
|
31
31
|
// src/pages/inventory/inventory-list/inventory-list.tsx
|
|
32
32
|
import { Children as Children2 } from "react";
|
|
@@ -8,39 +8,39 @@ import {
|
|
|
8
8
|
} from "./chunk-4F5GP7J7.js";
|
|
9
9
|
import {
|
|
10
10
|
useSellersTableColumns
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MB457RHR.js";
|
|
12
|
+
import {
|
|
13
|
+
useSellersTableQuery
|
|
14
|
+
} from "./chunk-MD36ZSRC.js";
|
|
12
15
|
import {
|
|
13
16
|
formatProvider
|
|
14
17
|
} from "./chunk-VW56KWO2.js";
|
|
15
18
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
SectionRow
|
|
20
|
+
} from "./chunk-3XPXUIK3.js";
|
|
18
21
|
import {
|
|
19
22
|
SingleColumnPage
|
|
20
23
|
} from "./chunk-H6MYB7GB.js";
|
|
21
24
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
SectionRow
|
|
26
|
-
} from "./chunk-3XPXUIK3.js";
|
|
25
|
+
ActionMenu
|
|
26
|
+
} from "./chunk-3UOYBH5O.js";
|
|
27
27
|
import {
|
|
28
28
|
_DataTable,
|
|
29
29
|
useDataTable
|
|
30
30
|
} from "./chunk-4JXRBULR.js";
|
|
31
|
-
import {
|
|
32
|
-
ActionMenu
|
|
33
|
-
} from "./chunk-3UOYBH5O.js";
|
|
34
31
|
import {
|
|
35
32
|
useBatchRegionSellers,
|
|
36
33
|
useDeleteRegion,
|
|
37
34
|
useRegion,
|
|
38
35
|
useSellers,
|
|
39
36
|
useUpdateRegion
|
|
40
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-6W57K3PC.js";
|
|
41
38
|
import {
|
|
42
39
|
usePricePreferences
|
|
43
40
|
} from "./chunk-J6FNB3IE.js";
|
|
41
|
+
import {
|
|
42
|
+
currencies
|
|
43
|
+
} from "./chunk-IQPN4PZJ.js";
|
|
44
44
|
import {
|
|
45
45
|
SingleColumnPageSkeleton
|
|
46
46
|
} from "./chunk-INNFZYX2.js";
|