@medusajs/dashboard 2.12.2-snapshot-20251207121122 → 2.12.2-snapshot-20251207203158
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-JQKPED4U.mjs → add-campaign-promotions-I7HDYMBX.mjs} +1 -2
- package/dist/{adjust-inventory-4UKAL3IT.mjs → adjust-inventory-SDWITRN3.mjs} +3 -5
- package/dist/{api-key-management-create-6EQCRHTT.mjs → api-key-management-create-FHLY4DD4.mjs} +4 -5
- package/dist/{api-key-management-detail-ILTYVBJ5.mjs → api-key-management-detail-JQBB7UNB.mjs} +11 -11
- package/dist/{api-key-management-edit-6HBLLOLH.mjs → api-key-management-edit-5RQXMVDW.mjs} +5 -7
- package/dist/{api-key-management-list-FTLC3ELT.mjs → api-key-management-list-RGLZMUCB.mjs} +3 -3
- package/dist/{api-key-management-sales-channels-YLYYJAKB.mjs → api-key-management-sales-channels-327HJKDQ.mjs} +6 -7
- package/dist/app.css +3 -0
- package/dist/app.js +4708 -5301
- package/dist/app.mjs +11 -11
- package/dist/{campaign-budget-edit-6DMZGUCI.mjs → campaign-budget-edit-H2KQKD7B.mjs} +2 -4
- package/dist/{campaign-configuration-UNFRB5HR.mjs → campaign-configuration-A452A22M.mjs} +2 -4
- package/dist/{campaign-create-QXG7PD3S.mjs → campaign-create-LHL7FKQK.mjs} +2 -3
- package/dist/{campaign-detail-NIMMITXO.mjs → campaign-detail-DLPAADFC.mjs} +9 -9
- package/dist/{campaign-edit-HN4US7DV.mjs → campaign-edit-LZV56AYF.mjs} +2 -4
- package/dist/{categories-metadata-ZKNXQM37.mjs → categories-metadata-IN4T3BQY.mjs} +11 -12
- package/dist/{category-create-HRJJCBMA.mjs → category-create-U277OGU4.mjs} +3 -4
- package/dist/{category-detail-LVP6O7I6.mjs → category-detail-MJYZEZJX.mjs} +12 -12
- package/dist/{category-edit-2UTQ7QJD.mjs → category-edit-I2LT3SZW.mjs} +4 -6
- package/dist/{category-list-IJ3DLPYQ.mjs → category-list-AH2EGTI7.mjs} +3 -3
- package/dist/{category-organize-OE7VJVVT.mjs → category-organize-PNR7ZHPM.mjs} +3 -4
- package/dist/{category-products-MO5PV7AG.mjs → category-products-UH7BGTSC.mjs} +12 -13
- package/dist/{chunk-AF7A24XI.mjs → chunk-34KFHPN6.mjs} +1 -1
- package/dist/{chunk-4V2V73YZ.mjs → chunk-3HRJ5XSF.mjs} +3 -5
- package/dist/{chunk-WPNZNLRN.mjs → chunk-4GPZRJUJ.mjs} +15 -16
- package/dist/{chunk-MWBKAP7W.mjs → chunk-4VNR7DND.mjs} +2 -2
- package/dist/{chunk-GV4XPCM5.mjs → chunk-6BP5RSIK.mjs} +4 -18
- package/dist/{chunk-D4J3CEWH.mjs → chunk-6VRDTPH2.mjs} +2 -4
- package/dist/{chunk-X527GAL2.mjs → chunk-73EHKWNI.mjs} +2 -2
- package/dist/{chunk-56TDUOXV.mjs → chunk-7AX6R6G6.mjs} +1 -1
- package/dist/{chunk-EMOSYFKR.mjs → chunk-7HL4FXK7.mjs} +204 -206
- package/dist/{chunk-L4NOVTH5.mjs → chunk-7V2JZU2B.mjs} +2 -4
- package/dist/{chunk-CZFLKMYE.mjs → chunk-ACJ3PPQJ.mjs} +1 -1
- package/dist/{chunk-42OOM4DJ.mjs → chunk-AERWK3TJ.mjs} +212 -44
- package/dist/{chunk-ETOJCN3Q.mjs → chunk-AH4DORIW.mjs} +1 -1
- package/dist/{chunk-ZUPF2AWJ.mjs → chunk-CPF5RDPF.mjs} +1 -1
- package/dist/{chunk-REUYEF7L.mjs → chunk-EQBVGH3N.mjs} +1 -1
- package/dist/{chunk-WPXYFJEP.mjs → chunk-EUF6RSI7.mjs} +1 -1
- package/dist/{chunk-QHRVYT5N.mjs → chunk-FIFVOKTK.mjs} +3 -3
- package/dist/{chunk-A6PWH2CK.mjs → chunk-FQDPOKEK.mjs} +1 -1
- package/dist/{chunk-DKIUGYWW.mjs → chunk-GN6OCHP4.mjs} +2 -2
- package/dist/{chunk-ND5YSIPU.mjs → chunk-HMY4BGRC.mjs} +1 -1
- package/dist/{chunk-KWP436SM.mjs → chunk-JJGE3EV6.mjs} +2 -2
- package/dist/{chunk-AENRV3N7.mjs → chunk-LEJUZW3P.mjs} +3 -1
- package/dist/{chunk-G4BWCU5P.mjs → chunk-M32MJOJN.mjs} +3 -6
- package/dist/{chunk-K5QWNI6V.mjs → chunk-N3FCYZV6.mjs} +1 -1
- package/dist/{chunk-KLNRCI3K.mjs → chunk-N4O5FAUC.mjs} +1 -1
- package/dist/{chunk-O4RZ3Y65.mjs → chunk-NHDFPGQ3.mjs} +1 -1
- package/dist/{chunk-LHNU4DYZ.mjs → chunk-PMJJI6GO.mjs} +1 -1
- package/dist/{chunk-PCFUZKDS.mjs → chunk-R65S6ZZV.mjs} +4 -1
- package/dist/{chunk-VX2HE7O5.mjs → chunk-SFSBLI7G.mjs} +2 -2
- package/dist/{chunk-3YPRDSZ6.mjs → chunk-T2ANPJ36.mjs} +1 -1
- package/dist/{chunk-KF7ZWW4K.mjs → chunk-T57MRRCF.mjs} +2 -4
- package/dist/{chunk-KCWP7RF5.mjs → chunk-TBEGSDLQ.mjs} +1 -1
- package/dist/{chunk-AZKMRL4P.mjs → chunk-XBJCK4CT.mjs} +8 -5
- package/dist/{chunk-NKDCBX74.mjs → chunk-XHDXZAOR.mjs} +1 -1
- package/dist/{chunk-M3CKVBZC.mjs → chunk-XIVBRONM.mjs} +1 -1
- package/dist/{collection-add-products-5BHQKPB4.mjs → collection-add-products-F7GTK2YV.mjs} +12 -13
- package/dist/{collection-create-S3UK5EKP.mjs → collection-create-WMTSRDDL.mjs} +3 -4
- package/dist/{collection-detail-IMDGOIF5.mjs → collection-detail-EZ6UCFMP.mjs} +11 -11
- package/dist/{collection-edit-C5X34GX7.mjs → collection-edit-PSVEWWPH.mjs} +4 -6
- package/dist/{collection-list-GROVO4YH.mjs → collection-list-YUECGEOO.mjs} +12 -12
- package/dist/{collection-metadata-TN5UCQVV.mjs → collection-metadata-XYMR7UIM.mjs} +11 -12
- package/dist/{customer-create-XCLZENJS.mjs → customer-create-VL6SIRZ2.mjs} +1 -2
- package/dist/{customer-create-address-4HZUIAM7.mjs → customer-create-address-V5C6M52P.mjs} +1 -2
- package/dist/{customer-detail-RD4ADZ3C.mjs → customer-detail-7B35STSY.mjs} +10 -10
- package/dist/{customer-edit-BW5GVTQI.mjs → customer-edit-WTBPVWOF.mjs} +2 -4
- package/dist/{customer-group-add-customers-HUGHHMU6.mjs → customer-group-add-customers-QU4Q56SS.mjs} +1 -2
- package/dist/{customer-group-create-6YV7W6TI.mjs → customer-group-create-A3CB3Z4K.mjs} +1 -2
- package/dist/{customer-group-detail-M2Y6UFOX.mjs → customer-group-detail-TY4AFNQE.mjs} +9 -9
- package/dist/{customer-group-edit-7NXU34BQ.mjs → customer-group-edit-7KV2PNLE.mjs} +2 -4
- package/dist/{customer-group-list-PYSYUVWJ.mjs → customer-group-list-CELWB4WM.mjs} +11 -11
- package/dist/{customer-group-metadata-WK2BGEGO.mjs → customer-group-metadata-4F2SZF4M.mjs} +2 -3
- package/dist/{customer-metadata-ZUWCUTM7.mjs → customer-metadata-LZ3TAXCV.mjs} +2 -3
- package/dist/{customers-add-customer-group-NVHYIS75.mjs → customers-add-customer-group-524NN3AG.mjs} +10 -11
- package/dist/{edit-inventory-item-7P2MPPGK.mjs → edit-inventory-item-O3SDWW2W.mjs} +3 -5
- package/dist/{edit-inventory-item-attributes-NVYPIDCK.mjs → edit-inventory-item-attributes-3QLOZMGC.mjs} +3 -5
- package/dist/{edit-reservation-4BH62PDP.mjs → edit-reservation-ISSU5XAY.mjs} +4 -6
- package/dist/{edit-rules-I3CZ6JJ6.mjs → edit-rules-K2UXPE62.mjs} +11 -13
- package/dist/en.json +0 -7
- package/dist/{inventory-create-2NJLJGI6.mjs → inventory-create-SYD3QXIB.mjs} +10 -11
- package/dist/{inventory-detail-DMAHDXAH.mjs → inventory-detail-IWCB7FND.mjs} +11 -11
- package/dist/{inventory-list-RQBI7UJX.mjs → inventory-list-BQPHK3FV.mjs} +1 -1
- package/dist/{inventory-metadata-WN5VZIHI.mjs → inventory-metadata-YSDEZ4B7.mjs} +11 -12
- package/dist/{inventory-stock-G4BGY6HK.mjs → inventory-stock-JLJEWPUM.mjs} +10 -11
- package/dist/{location-create-RPLEXUZR.mjs → location-create-GDOHM4T3.mjs} +1 -2
- package/dist/{location-detail-37V7YZVV.mjs → location-detail-LNQUKDLQ.mjs} +9 -9
- package/dist/{location-edit-L4ISEQHX.mjs → location-edit-4SEMGQXA.mjs} +2 -4
- package/dist/{location-fulfillment-providers-ZLKGXNU3.mjs → location-fulfillment-providers-566Z6CCG.mjs} +12 -13
- package/dist/{location-list-Z42ZYHUF.mjs → location-list-OYBI7EGV.mjs} +2 -2
- package/dist/{location-sales-channels-QANELWVW.mjs → location-sales-channels-MXFZNLKR.mjs} +5 -6
- package/dist/{location-service-zone-create-NSMZCD5N.mjs → location-service-zone-create-35TTX636.mjs} +3 -5
- package/dist/{location-service-zone-edit-6OUAFEZD.mjs → location-service-zone-edit-RWZS2XYW.mjs} +2 -4
- package/dist/{location-service-zone-manage-areas-SEC6LKCZ.mjs → location-service-zone-manage-areas-RGMM5Y6C.mjs} +3 -5
- package/dist/{location-service-zone-shipping-option-create-52N7W7C2.mjs → location-service-zone-shipping-option-create-VENETBCK.mjs} +12 -14
- package/dist/{location-service-zone-shipping-option-edit-QS6HTWST.mjs → location-service-zone-shipping-option-edit-TTVV3BSV.mjs} +2 -4
- package/dist/{location-service-zone-shipping-option-pricing-23QLNSBT.mjs → location-service-zone-shipping-option-pricing-NQRIEGTX.mjs} +3 -5
- package/dist/{login-NQCTGOAW.mjs → login-R5C7HZ2A.mjs} +9 -9
- package/dist/{manage-locations-S7MCWAUJ.mjs → manage-locations-XEXCUBR7.mjs} +3 -5
- package/dist/{order-allocate-items-VY6KJFRE.mjs → order-allocate-items-W7HUKJ6F.mjs} +4 -5
- package/dist/{order-create-claim-QF2LTPUX.mjs → order-create-claim-M5NNIQWR.mjs} +13 -15
- package/dist/{order-create-edit-Z7LU7AVG.mjs → order-create-edit-A2TMNFRS.mjs} +12 -14
- package/dist/{order-create-exchange-5XWD2Q2E.mjs → order-create-exchange-CIB7URQD.mjs} +13 -15
- package/dist/{order-create-fulfillment-AQJXDSWH.mjs → order-create-fulfillment-YC4GFUTQ.mjs} +10 -11
- package/dist/{order-create-refund-B3WOHTK4.mjs → order-create-refund-EE7SWYLL.mjs} +11 -13
- package/dist/{order-create-return-XNBOIYPL.mjs → order-create-return-UWF4YKOP.mjs} +6 -8
- package/dist/{order-create-shipment-N2CVYZMG.mjs → order-create-shipment-DNVN7NYA.mjs} +10 -11
- package/dist/{order-detail-S3IQ75KS.mjs → order-detail-FZ7PM4K3.mjs} +13 -13
- package/dist/{order-edit-billing-address-6YKACKAU.mjs → order-edit-billing-address-XH37NDI5.mjs} +11 -13
- package/dist/{order-edit-email-HHOPFQEQ.mjs → order-edit-email-NZE32DBD.mjs} +11 -13
- package/dist/{order-edit-shipping-address-OLSZVXOS.mjs → order-edit-shipping-address-KMLTH4SM.mjs} +11 -13
- package/dist/{order-list-H2B5LA5D.mjs → order-list-NT5PQ2WS.mjs} +7 -7
- package/dist/{order-metadata-PGARNQGC.mjs → order-metadata-VWNNC7RO.mjs} +11 -12
- package/dist/{order-receive-return-F3RVWIUS.mjs → order-receive-return-O5P477EZ.mjs} +12 -14
- package/dist/{order-request-transfer-BSA2D7PD.mjs → order-request-transfer-XOAINCAS.mjs} +11 -13
- package/dist/{price-list-configuration-FXGLWS3K.mjs → price-list-configuration-N2WC2QQP.mjs} +5 -7
- package/dist/{price-list-create-Z7GJDHLB.mjs → price-list-create-NOTXIPOJ.mjs} +16 -17
- package/dist/{price-list-detail-SGYXWAHQ.mjs → price-list-detail-BD2QQKAR.mjs} +12 -12
- package/dist/{price-list-edit-S3DCFSO2.mjs → price-list-edit-UB2Z2726.mjs} +4 -6
- package/dist/{price-list-list-FLINOQCK.mjs → price-list-list-D4UPKCNL.mjs} +3 -3
- package/dist/{price-list-prices-add-SXP3V7NI.mjs → price-list-prices-add-25FOFNBS.mjs} +14 -14
- package/dist/{price-list-prices-edit-L4EETPG2.mjs → price-list-prices-edit-CXXOO22Q.mjs} +5 -5
- package/dist/{product-attributes-J6ZXEBZ2.mjs → product-attributes-W6URSOII.mjs} +15 -19
- package/dist/{product-create-7HZSIZI3.mjs → product-create-IJXK2CPJ.mjs} +15 -17
- package/dist/{product-create-option-JSL4OV4M.mjs → product-create-option-AQRYQJSJ.mjs} +7 -6
- package/dist/{product-create-variant-MNWLL3SD.mjs → product-create-variant-YBJ2ZVUG.mjs} +15 -14
- package/dist/{product-detail-GMNO25SN.mjs → product-detail-3QA6OXHI.mjs} +21 -15
- package/dist/{product-edit-LRBW7OOF.mjs → product-edit-WPVM44C2.mjs} +15 -19
- package/dist/{product-edit-option-OL6OBCK6.mjs → product-edit-option-BL5XHROM.mjs} +7 -6
- package/dist/{product-export-SQG7U5CK.mjs → product-export-H4ZOJWIB.mjs} +14 -16
- package/dist/{product-image-variants-edit-7IN3QHSF.mjs → product-image-variants-edit-3YEXAIKS.mjs} +15 -14
- package/dist/{product-import-6ZZIQ6R5.mjs → product-import-PPULHBTB.mjs} +11 -13
- package/dist/{product-list-E4KRZBEX.mjs → product-list-NPLVU37E.mjs} +14 -14
- package/dist/{product-media-NFLMXXXU.mjs → product-media-L4COURP2.mjs} +6 -4
- package/dist/{product-metadata-TY3LCH2W.mjs → product-metadata-SS7DIDYB.mjs} +15 -13
- package/dist/{product-organization-2SS6DA6S.mjs → product-organization-QG53UJ2J.mjs} +16 -20
- package/dist/{product-prices-DI4WDLZZ.mjs → product-prices-UZB2T6UD.mjs} +6 -4
- package/dist/{product-sales-channels-BOCECT5M.mjs → product-sales-channels-BKKIG6BE.mjs} +9 -7
- package/dist/{product-shipping-profile-MP6QBJHY.mjs → product-shipping-profile-MWE5S5TZ.mjs} +5 -53
- package/dist/{product-stock-UXOYOHMR.mjs → product-stock-3A22RDIR.mjs} +10 -11
- package/dist/{product-tag-create-OURLUGEL.mjs → product-tag-create-XIWCLMRJ.mjs} +10 -11
- package/dist/{product-tag-detail-MENTQYX2.mjs → product-tag-detail-NVV6QQMN.mjs} +13 -13
- package/dist/{product-tag-edit-BGPR3BIP.mjs → product-tag-edit-H7YA4HEV.mjs} +11 -13
- package/dist/{product-tag-list-B5YMQ2KC.mjs → product-tag-list-LGVKUJLL.mjs} +13 -13
- package/dist/{product-tag-metadata-5GOTVYAI.mjs → product-tag-metadata-JBYEI3M4.mjs} +11 -12
- package/dist/{product-type-create-HBDROTGB.mjs → product-type-create-Y752WGBV.mjs} +1 -2
- package/dist/{product-type-detail-WIIXVV2K.mjs → product-type-detail-S6YG37AR.mjs} +11 -11
- package/dist/{product-type-edit-H3JCMVRV.mjs → product-type-edit-SMPJ5ZEF.mjs} +2 -4
- package/dist/{product-type-metadata-XACGB4IA.mjs → product-type-metadata-LRTMJT2P.mjs} +11 -12
- package/dist/{product-variant-detail-EFKGSJ5B.mjs → product-variant-detail-GIHXE5YG.mjs} +9 -9
- package/dist/{product-variant-edit-7OJLUVHS.mjs → product-variant-edit-36MBVNPO.mjs} +13 -14
- package/dist/{product-variant-manage-inventory-items-HVU7YWDU.mjs → product-variant-manage-inventory-items-EYKESIRF.mjs} +2 -3
- package/dist/{product-variant-media-3JWQ27SI.mjs → product-variant-media-A3XHS3IZ.mjs} +2 -3
- package/dist/{product-variant-metadata-POPOT4LV.mjs → product-variant-metadata-LH7YGFW4.mjs} +11 -12
- package/dist/{profile-edit-5EEKOEO5.mjs → profile-edit-NFVR5Y4I.mjs} +2 -4
- package/dist/{promotion-add-campaign-JRTM7WBR.mjs → promotion-add-campaign-MKDYE7MW.mjs} +2 -3
- package/dist/{promotion-create-Q7EYW4L2.mjs → promotion-create-XOB4S6H5.mjs} +12 -13
- package/dist/{promotion-detail-Q5INURX6.mjs → promotion-detail-YR4MNPNS.mjs} +9 -9
- package/dist/{promotion-edit-details-AREFQ6O5.mjs → promotion-edit-details-AKKNOCLM.mjs} +2 -4
- package/dist/{refund-reason-create-MXVWKVZ5.mjs → refund-reason-create-LSAPI6XB.mjs} +10 -11
- package/dist/{refund-reason-edit-7EW5QRCM.mjs → refund-reason-edit-R4RV6BFG.mjs} +11 -13
- package/dist/{refund-reason-list-GHMGAXQY.mjs → refund-reason-list-MPTKOWX7.mjs} +12 -12
- package/dist/{region-add-countries-AFWXMQ6W.mjs → region-add-countries-6GB2QDJK.mjs} +1 -2
- package/dist/{region-create-YC4VZ4AS.mjs → region-create-QLPSK6TX.mjs} +2 -4
- package/dist/{region-edit-5GO25GDF.mjs → region-edit-JCJHA6TY.mjs} +2 -4
- package/dist/{region-metadata-MEJEMQ7Y.mjs → region-metadata-4IMJHPZO.mjs} +11 -12
- package/dist/{reservation-create-P66MJ6LN.mjs → reservation-create-UAUWU3UN.mjs} +3 -4
- package/dist/{reservation-detail-ARGPFIAK.mjs → reservation-detail-HWKSPGBU.mjs} +9 -9
- package/dist/{reservation-list-RGL67CIU.mjs → reservation-list-SOJRN5RI.mjs} +2 -2
- package/dist/{reservation-metadata-I5JUAZNA.mjs → reservation-metadata-IIX7FU74.mjs} +11 -12
- package/dist/{return-reason-create-NXWDC6AC.mjs → return-reason-create-PLQNC4KW.mjs} +1 -2
- package/dist/{return-reason-edit-M6IKNNKB.mjs → return-reason-edit-XJCPMZ6U.mjs} +2 -4
- package/dist/{return-reason-list-SGCFBGSL.mjs → return-reason-list-IFFIDA5O.mjs} +1 -1
- package/dist/{sales-channel-add-products-N6CLM26Y.mjs → sales-channel-add-products-VH7V4XWO.mjs} +12 -13
- package/dist/{sales-channel-create-74PCSWSX.mjs → sales-channel-create-YAORCXP3.mjs} +3 -4
- package/dist/{sales-channel-detail-WFCPUJF5.mjs → sales-channel-detail-VMRKBYCG.mjs} +11 -11
- package/dist/{sales-channel-edit-IUGTN65E.mjs → sales-channel-edit-6UDMBSO3.mjs} +4 -6
- package/dist/{sales-channel-list-TEH3IEG5.mjs → sales-channel-list-U7IVFVYC.mjs} +11 -11
- package/dist/{sales-channel-metadata-YYQAM5OW.mjs → sales-channel-metadata-5EO4EB6E.mjs} +11 -12
- package/dist/{shipping-option-type-create-73EVE35U.mjs → shipping-option-type-create-DJEHSOSG.mjs} +10 -11
- package/dist/{shipping-option-type-detail-WX6ZFA3K.mjs → shipping-option-type-detail-GWULT3WO.mjs} +10 -10
- package/dist/{shipping-option-type-edit-YSRIA7FD.mjs → shipping-option-type-edit-FSXPDBLI.mjs} +11 -13
- package/dist/{shipping-option-type-list-OKHJ5XQ3.mjs → shipping-option-type-list-DAKNQ3N6.mjs} +10 -10
- package/dist/{shipping-profile-create-752TMBBE.mjs → shipping-profile-create-NKFUOBVZ.mjs} +1 -2
- package/dist/{shipping-profile-metadata-GZOMZUZ5.mjs → shipping-profile-metadata-37GNDVFQ.mjs} +11 -12
- package/dist/{store-add-currencies-3VMLZ6KB.mjs → store-add-currencies-QVG2SI26.mjs} +1 -2
- package/dist/{store-detail-FU3AMVC5.mjs → store-detail-TTHDKQYD.mjs} +14 -280
- package/dist/store-edit-3XS6IC2Z.mjs +238 -0
- package/dist/{store-metadata-C32LZ5A5.mjs → store-metadata-KLQUPUQ4.mjs} +11 -12
- package/dist/{tax-region-create-JPIGFA7Q.mjs → tax-region-create-FIGRJOC5.mjs} +10 -11
- package/dist/{tax-region-detail-LM3TUUVX.mjs → tax-region-detail-AXT4TMZB.mjs} +16 -17
- package/dist/{tax-region-edit-J3COT5DI.mjs → tax-region-edit-UOGPNA25.mjs} +11 -13
- package/dist/{tax-region-province-create-5JP3PVID.mjs → tax-region-province-create-T2LKEDTK.mjs} +1 -2
- package/dist/{tax-region-province-detail-OLLH4XDG.mjs → tax-region-province-detail-4YCWNZPW.mjs} +16 -17
- package/dist/{tax-region-tax-override-create-BFIJFC4G.mjs → tax-region-tax-override-create-FHUXLTPK.mjs} +15 -17
- package/dist/{tax-region-tax-override-edit-OALFHSLF.mjs → tax-region-tax-override-edit-GQYS6HCW.mjs} +15 -16
- package/dist/{tax-region-tax-rate-create-O2SDSXCH.mjs → tax-region-tax-rate-create-UEOU5QRU.mjs} +1 -2
- package/dist/{tax-region-tax-rate-edit-W62VEVKT.mjs → tax-region-tax-rate-edit-ILCDNXHV.mjs} +2 -4
- package/dist/{user-detail-N6PT3KRP.mjs → user-detail-KEDJ7N3Q.mjs} +1 -1
- package/dist/{user-edit-LXQCTDGA.mjs → user-edit-25HD3BYT.mjs} +2 -4
- package/dist/{user-invite-2OKB7SCF.mjs → user-invite-CRQTVEYA.mjs} +1 -2
- package/dist/{user-list-YYUOQKQY.mjs → user-list-6KATHOTJ.mjs} +2 -2
- package/dist/{user-metadata-3FJIJONR.mjs → user-metadata-RU3Z3BLD.mjs} +11 -12
- package/dist/{workflow-execution-detail-P72V2O2R.mjs → workflow-execution-detail-R2FDAUMD.mjs} +9 -9
- package/package.json +9 -9
- package/src/components/search/use-search-results.tsx +3 -1
- package/src/components/utilities/error-boundary/error-boundary.tsx +20 -0
- package/src/dashboard-app/routes/get-route.map.tsx +0 -4
- package/src/hooks/api/feature-flags.tsx +5 -9
- package/src/hooks/api/index.ts +0 -1
- package/src/hooks/api/products.tsx +5 -1
- package/src/hooks/table/query/use-product-table-query.tsx +2 -1
- package/src/i18n/translations/$schema.json +0 -28
- package/src/i18n/translations/en.json +0 -7
- package/src/i18n/translations/es.json +0 -7
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-prices-form.tsx +3 -1
- package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-prices-form.tsx +3 -1
- package/src/routes/price-lists/price-list-prices-edit/price-list-prices-edit.tsx +3 -1
- package/src/routes/product-variants/product-variant-edit/product-variant-edit.tsx +2 -1
- package/src/routes/products/product-attributes/product-attributes.tsx +3 -2
- package/src/routes/products/product-create-option/product-create-option.tsx +5 -1
- package/src/routes/products/product-create-variant/product-create-variant.tsx +4 -1
- package/src/routes/products/product-detail/breadcrumb.tsx +3 -2
- package/src/routes/products/product-edit/product-edit.tsx +3 -2
- package/src/routes/products/product-edit-option/product-edit-option.tsx +4 -1
- package/src/routes/products/product-image-variants-edit/product-image-variants-edit.tsx +5 -1
- package/src/routes/products/product-media/product-media.tsx +4 -1
- package/src/routes/products/product-metadata/product-metadata.tsx +5 -1
- package/src/routes/products/product-organization/product-organization.tsx +2 -2
- package/src/routes/products/product-prices/product-prices.tsx +4 -1
- package/src/routes/products/product-sales-channels/product-sales-channels.tsx +4 -1
- package/src/routes/products/product-shipping-profile/product-shipping-profile.tsx +3 -2
- package/src/routes/store/store-detail/components/store-general-section/store-general-section.tsx +0 -24
- package/src/routes/store/store-detail/store-detail.tsx +0 -4
- package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +3 -50
- package/src/routes/tax-regions/common/components/target-item/target-item.tsx +5 -1
- package/src/routes/tax-regions/common/components/tax-override-card/tax-override-card.tsx +10 -10
- package/dist/chunk-77XTTZK7.mjs +0 -13
- package/dist/chunk-XNIVMZHA.mjs +0 -50
- package/dist/chunk-XXBP2Z5M.mjs +0 -182
- package/dist/store-add-locales-LXRWHBME.mjs +0 -264
- package/dist/store-edit-EPAHLLKP.mjs +0 -288
- package/src/hooks/api/locales.tsx +0 -52
- package/src/routes/store/common/hooks/use-locales-table-columns.tsx +0 -29
- package/src/routes/store/common/hooks/use-locales-table-query.tsx +0 -21
- package/src/routes/store/store-add-locales/components/add-locales-form/add-locales-form.tsx +0 -240
- package/src/routes/store/store-add-locales/index.ts +0 -1
- package/src/routes/store/store-add-locales/store-add-locales.tsx +0 -29
- package/src/routes/store/store-detail/components/store-locale-section/index.ts +0 -1
- package/src/routes/store/store-detail/components/store-locale-section/store-locale-section.tsx +0 -290
package/dist/chunk-XXBP2Z5M.mjs
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
RouteModalForm,
|
|
3
|
-
RouteModalProvider,
|
|
4
|
-
StackedModalProvider,
|
|
5
|
-
useStackedModal,
|
|
6
|
-
useStateAwareTo
|
|
7
|
-
} from "./chunk-42OOM4DJ.mjs";
|
|
8
|
-
|
|
9
|
-
// src/components/modals/route-drawer/route-drawer.tsx
|
|
10
|
-
import { Drawer, clx } from "@medusajs/ui";
|
|
11
|
-
import { useEffect, useState } from "react";
|
|
12
|
-
import { useNavigate } from "react-router-dom";
|
|
13
|
-
import { jsx } from "react/jsx-runtime";
|
|
14
|
-
var Root = ({ prev = "..", children }) => {
|
|
15
|
-
const navigate = useNavigate();
|
|
16
|
-
const [open, setOpen] = useState(false);
|
|
17
|
-
const [stackedModalOpen, onStackedModalOpen] = useState(false);
|
|
18
|
-
const to = useStateAwareTo(prev);
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
setOpen(true);
|
|
21
|
-
return () => {
|
|
22
|
-
setOpen(false);
|
|
23
|
-
onStackedModalOpen(false);
|
|
24
|
-
};
|
|
25
|
-
}, []);
|
|
26
|
-
const handleOpenChange = (open2) => {
|
|
27
|
-
if (!open2) {
|
|
28
|
-
document.body.style.pointerEvents = "auto";
|
|
29
|
-
navigate(to, { replace: true });
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
setOpen(open2);
|
|
33
|
-
};
|
|
34
|
-
return /* @__PURE__ */ jsx(Drawer, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsx(RouteModalProvider, { prev: to, children: /* @__PURE__ */ jsx(StackedModalProvider, { onOpenChange: onStackedModalOpen, children: /* @__PURE__ */ jsx(
|
|
35
|
-
Drawer.Content,
|
|
36
|
-
{
|
|
37
|
-
"aria-describedby": void 0,
|
|
38
|
-
className: clx({
|
|
39
|
-
"!bg-ui-bg-disabled !inset-y-5 !right-5": stackedModalOpen
|
|
40
|
-
}),
|
|
41
|
-
children
|
|
42
|
-
}
|
|
43
|
-
) }) }) });
|
|
44
|
-
};
|
|
45
|
-
var Header = Drawer.Header;
|
|
46
|
-
var Title = Drawer.Title;
|
|
47
|
-
var Description = Drawer.Description;
|
|
48
|
-
var Body = Drawer.Body;
|
|
49
|
-
var Footer = Drawer.Footer;
|
|
50
|
-
var Close = Drawer.Close;
|
|
51
|
-
var Form = RouteModalForm;
|
|
52
|
-
var RouteDrawer = Object.assign(Root, {
|
|
53
|
-
Header,
|
|
54
|
-
Title,
|
|
55
|
-
Body,
|
|
56
|
-
Description,
|
|
57
|
-
Footer,
|
|
58
|
-
Close,
|
|
59
|
-
Form
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
// src/components/modals/stacked-drawer/stacked-drawer.tsx
|
|
63
|
-
import { Drawer as Drawer2, clx as clx2 } from "@medusajs/ui";
|
|
64
|
-
import {
|
|
65
|
-
forwardRef,
|
|
66
|
-
useEffect as useEffect2
|
|
67
|
-
} from "react";
|
|
68
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
69
|
-
var Root2 = ({ id, children }) => {
|
|
70
|
-
const { register, unregister, getIsOpen, setIsOpen } = useStackedModal();
|
|
71
|
-
useEffect2(() => {
|
|
72
|
-
register(id);
|
|
73
|
-
return () => unregister(id);
|
|
74
|
-
}, []);
|
|
75
|
-
return /* @__PURE__ */ jsx2(Drawer2, { open: getIsOpen(id), onOpenChange: (open) => setIsOpen(id, open), children });
|
|
76
|
-
};
|
|
77
|
-
var Close2 = Drawer2.Close;
|
|
78
|
-
Close2.displayName = "StackedDrawer.Close";
|
|
79
|
-
var Header2 = Drawer2.Header;
|
|
80
|
-
Header2.displayName = "StackedDrawer.Header";
|
|
81
|
-
var Body2 = Drawer2.Body;
|
|
82
|
-
Body2.displayName = "StackedDrawer.Body";
|
|
83
|
-
var Trigger = Drawer2.Trigger;
|
|
84
|
-
Trigger.displayName = "StackedDrawer.Trigger";
|
|
85
|
-
var Footer2 = Drawer2.Footer;
|
|
86
|
-
Footer2.displayName = "StackedDrawer.Footer";
|
|
87
|
-
var Title2 = Drawer2.Title;
|
|
88
|
-
Title2.displayName = "StackedDrawer.Title";
|
|
89
|
-
var Description2 = Drawer2.Description;
|
|
90
|
-
Description2.displayName = "StackedDrawer.Description";
|
|
91
|
-
var Content = forwardRef(({ className, ...props }, ref) => {
|
|
92
|
-
return /* @__PURE__ */ jsx2(
|
|
93
|
-
Drawer2.Content,
|
|
94
|
-
{
|
|
95
|
-
ref,
|
|
96
|
-
className: clx2(className),
|
|
97
|
-
overlayProps: {
|
|
98
|
-
className: "bg-transparent"
|
|
99
|
-
},
|
|
100
|
-
...props
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
});
|
|
104
|
-
Content.displayName = "StackedDrawer.Content";
|
|
105
|
-
var StackedDrawer = Object.assign(Root2, {
|
|
106
|
-
Close: Close2,
|
|
107
|
-
Header: Header2,
|
|
108
|
-
Body: Body2,
|
|
109
|
-
Content,
|
|
110
|
-
Trigger,
|
|
111
|
-
Footer: Footer2,
|
|
112
|
-
Description: Description2,
|
|
113
|
-
Title: Title2
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
// src/components/modals/stacked-focus-modal/stacked-focus-modal.tsx
|
|
117
|
-
import { FocusModal, clx as clx3 } from "@medusajs/ui";
|
|
118
|
-
import {
|
|
119
|
-
forwardRef as forwardRef2,
|
|
120
|
-
useEffect as useEffect3
|
|
121
|
-
} from "react";
|
|
122
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
123
|
-
var Root3 = ({
|
|
124
|
-
id,
|
|
125
|
-
onOpenChangeCallback,
|
|
126
|
-
children
|
|
127
|
-
}) => {
|
|
128
|
-
const { register, unregister, getIsOpen, setIsOpen } = useStackedModal();
|
|
129
|
-
useEffect3(() => {
|
|
130
|
-
register(id);
|
|
131
|
-
return () => unregister(id);
|
|
132
|
-
}, []);
|
|
133
|
-
const handleOpenChange = (open) => {
|
|
134
|
-
setIsOpen(id, open);
|
|
135
|
-
onOpenChangeCallback?.(open);
|
|
136
|
-
};
|
|
137
|
-
return /* @__PURE__ */ jsx3(FocusModal, { open: getIsOpen(id), onOpenChange: handleOpenChange, children });
|
|
138
|
-
};
|
|
139
|
-
var Close3 = FocusModal.Close;
|
|
140
|
-
Close3.displayName = "StackedFocusModal.Close";
|
|
141
|
-
var Header3 = FocusModal.Header;
|
|
142
|
-
Header3.displayName = "StackedFocusModal.Header";
|
|
143
|
-
var Body3 = FocusModal.Body;
|
|
144
|
-
Body3.displayName = "StackedFocusModal.Body";
|
|
145
|
-
var Trigger2 = FocusModal.Trigger;
|
|
146
|
-
Trigger2.displayName = "StackedFocusModal.Trigger";
|
|
147
|
-
var Footer3 = FocusModal.Footer;
|
|
148
|
-
Footer3.displayName = "StackedFocusModal.Footer";
|
|
149
|
-
var Title3 = FocusModal.Title;
|
|
150
|
-
Title3.displayName = "StackedFocusModal.Title";
|
|
151
|
-
var Description3 = FocusModal.Description;
|
|
152
|
-
Description3.displayName = "StackedFocusModal.Description";
|
|
153
|
-
var Content2 = forwardRef2(({ className, ...props }, ref) => {
|
|
154
|
-
return /* @__PURE__ */ jsx3(
|
|
155
|
-
FocusModal.Content,
|
|
156
|
-
{
|
|
157
|
-
ref,
|
|
158
|
-
className: clx3("!top-6", className),
|
|
159
|
-
overlayProps: {
|
|
160
|
-
className: "bg-transparent"
|
|
161
|
-
},
|
|
162
|
-
...props
|
|
163
|
-
}
|
|
164
|
-
);
|
|
165
|
-
});
|
|
166
|
-
Content2.displayName = "StackedFocusModal.Content";
|
|
167
|
-
var StackedFocusModal = Object.assign(Root3, {
|
|
168
|
-
Close: Close3,
|
|
169
|
-
Header: Header3,
|
|
170
|
-
Body: Body3,
|
|
171
|
-
Content: Content2,
|
|
172
|
-
Trigger: Trigger2,
|
|
173
|
-
Footer: Footer3,
|
|
174
|
-
Description: Description3,
|
|
175
|
-
Title: Title3
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
export {
|
|
179
|
-
RouteDrawer,
|
|
180
|
-
StackedDrawer,
|
|
181
|
-
StackedFocusModal
|
|
182
|
-
};
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useLocalesTableColumns,
|
|
3
|
-
useLocalesTableQuery
|
|
4
|
-
} from "./chunk-XNIVMZHA.mjs";
|
|
5
|
-
import "./chunk-MSDRGCRR.mjs";
|
|
6
|
-
import "./chunk-P3UUX2T6.mjs";
|
|
7
|
-
import "./chunk-LQTHYS2Z.mjs";
|
|
8
|
-
import {
|
|
9
|
-
_DataTable,
|
|
10
|
-
useDataTable
|
|
11
|
-
} from "./chunk-YTN73JYH.mjs";
|
|
12
|
-
import "./chunk-HQKGZADC.mjs";
|
|
13
|
-
import "./chunk-EMIHDNB7.mjs";
|
|
14
|
-
import "./chunk-GU5PJRPM.mjs";
|
|
15
|
-
import "./chunk-C76H5USB.mjs";
|
|
16
|
-
import "./chunk-DZWH2RV6.mjs";
|
|
17
|
-
import "./chunk-IUCDCPJU.mjs";
|
|
18
|
-
import {
|
|
19
|
-
KeyboundForm
|
|
20
|
-
} from "./chunk-6HTZNHPT.mjs";
|
|
21
|
-
import {
|
|
22
|
-
RouteFocusModal,
|
|
23
|
-
useRouteModal
|
|
24
|
-
} from "./chunk-42OOM4DJ.mjs";
|
|
25
|
-
import {
|
|
26
|
-
useFeatureFlag
|
|
27
|
-
} from "./chunk-G4BWCU5P.mjs";
|
|
28
|
-
import "./chunk-LPEUYMRK.mjs";
|
|
29
|
-
import "./chunk-OC7BQLYI.mjs";
|
|
30
|
-
import "./chunk-S4DMV3ZT.mjs";
|
|
31
|
-
import "./chunk-SUYYSKCB.mjs";
|
|
32
|
-
import "./chunk-OBQI23QM.mjs";
|
|
33
|
-
import {
|
|
34
|
-
useLocales
|
|
35
|
-
} from "./chunk-GV4XPCM5.mjs";
|
|
36
|
-
import "./chunk-I4OBEAOJ.mjs";
|
|
37
|
-
import "./chunk-HI6URQ7H.mjs";
|
|
38
|
-
import "./chunk-6CLQKVAU.mjs";
|
|
39
|
-
import "./chunk-HKIF5HVL.mjs";
|
|
40
|
-
import "./chunk-M3CKVBZC.mjs";
|
|
41
|
-
import "./chunk-KI7TOXBR.mjs";
|
|
42
|
-
import "./chunk-WAXMT4IY.mjs";
|
|
43
|
-
import "./chunk-DYDGGABK.mjs";
|
|
44
|
-
import "./chunk-LGNTHZ5Y.mjs";
|
|
45
|
-
import "./chunk-CN7JXSGW.mjs";
|
|
46
|
-
import "./chunk-5BQQRHQS.mjs";
|
|
47
|
-
import "./chunk-WPXYFJEP.mjs";
|
|
48
|
-
import "./chunk-5AFMB7XQ.mjs";
|
|
49
|
-
import "./chunk-O4RZ3Y65.mjs";
|
|
50
|
-
import "./chunk-A63RZVX6.mjs";
|
|
51
|
-
import "./chunk-HBXV7ENS.mjs";
|
|
52
|
-
import "./chunk-CDORR33H.mjs";
|
|
53
|
-
import "./chunk-DKIUGYWW.mjs";
|
|
54
|
-
import "./chunk-KLNRCI3K.mjs";
|
|
55
|
-
import "./chunk-56TDUOXV.mjs";
|
|
56
|
-
import "./chunk-K5QWNI6V.mjs";
|
|
57
|
-
import "./chunk-3BF5SC66.mjs";
|
|
58
|
-
import {
|
|
59
|
-
useStore,
|
|
60
|
-
useUpdateStore
|
|
61
|
-
} from "./chunk-VCSSQVPD.mjs";
|
|
62
|
-
import "./chunk-HP2JH45P.mjs";
|
|
63
|
-
import "./chunk-SQDIZZDW.mjs";
|
|
64
|
-
import "./chunk-AENRV3N7.mjs";
|
|
65
|
-
import "./chunk-FXYH54JP.mjs";
|
|
66
|
-
import "./chunk-774WSTCC.mjs";
|
|
67
|
-
import "./chunk-NFEK63OE.mjs";
|
|
68
|
-
import "./chunk-QZ7TP4HQ.mjs";
|
|
69
|
-
|
|
70
|
-
// src/routes/store/store-add-locales/components/add-locales-form/add-locales-form.tsx
|
|
71
|
-
import { z } from "zod";
|
|
72
|
-
import { useTranslation } from "react-i18next";
|
|
73
|
-
import { keepPreviousData } from "@tanstack/react-query";
|
|
74
|
-
import { useForm } from "react-hook-form";
|
|
75
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
76
|
-
import {
|
|
77
|
-
createColumnHelper
|
|
78
|
-
} from "@tanstack/react-table";
|
|
79
|
-
import { useMemo, useState } from "react";
|
|
80
|
-
import { Button, Checkbox, Hint, toast, Tooltip } from "@medusajs/ui";
|
|
81
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
82
|
-
var AddLocalesSchema = z.object({
|
|
83
|
-
locales: z.array(z.string()).min(1)
|
|
84
|
-
});
|
|
85
|
-
var PAGE_SIZE = 50;
|
|
86
|
-
var PREFIX = "al";
|
|
87
|
-
var AddLocalesForm = ({ store }) => {
|
|
88
|
-
const { t } = useTranslation();
|
|
89
|
-
const { handleSuccess } = useRouteModal();
|
|
90
|
-
const { raw, searchParams } = useLocalesTableQuery({
|
|
91
|
-
pageSize: PAGE_SIZE,
|
|
92
|
-
prefix: PREFIX
|
|
93
|
-
});
|
|
94
|
-
const {
|
|
95
|
-
locales,
|
|
96
|
-
count,
|
|
97
|
-
isPending: isLoading,
|
|
98
|
-
isError,
|
|
99
|
-
error
|
|
100
|
-
} = useLocales(searchParams, {
|
|
101
|
-
placeholderData: keepPreviousData
|
|
102
|
-
});
|
|
103
|
-
const form = useForm({
|
|
104
|
-
defaultValues: {
|
|
105
|
-
locales: []
|
|
106
|
-
},
|
|
107
|
-
resolver: zodResolver(AddLocalesSchema)
|
|
108
|
-
});
|
|
109
|
-
const [rowSelection, setRowSelection] = useState({});
|
|
110
|
-
const { setValue } = form;
|
|
111
|
-
const updater = (fn) => {
|
|
112
|
-
const updated = typeof fn === "function" ? fn(rowSelection) : fn;
|
|
113
|
-
const ids = Object.keys(updated);
|
|
114
|
-
setValue("locales", ids, {
|
|
115
|
-
shouldDirty: true,
|
|
116
|
-
shouldTouch: true
|
|
117
|
-
});
|
|
118
|
-
setRowSelection(updated);
|
|
119
|
-
};
|
|
120
|
-
const preSelectedRows = store.supported_locales?.map((l) => l.locale_code) ?? [];
|
|
121
|
-
const columns = useColumns();
|
|
122
|
-
const { table } = useDataTable({
|
|
123
|
-
data: locales ?? [],
|
|
124
|
-
columns,
|
|
125
|
-
count,
|
|
126
|
-
getRowId: (row) => row.code,
|
|
127
|
-
enableRowSelection: (row) => !preSelectedRows.includes(row.original.code),
|
|
128
|
-
enablePagination: true,
|
|
129
|
-
pageSize: PAGE_SIZE,
|
|
130
|
-
prefix: PREFIX,
|
|
131
|
-
rowSelection: {
|
|
132
|
-
state: rowSelection,
|
|
133
|
-
updater
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
const { mutateAsync, isPending } = useUpdateStore(store.id);
|
|
137
|
-
const handleSubmit = form.handleSubmit(async (data) => {
|
|
138
|
-
const locales2 = Array.from(
|
|
139
|
-
/* @__PURE__ */ new Set([...data.locales, ...preSelectedRows])
|
|
140
|
-
);
|
|
141
|
-
let defaultLocale = store.supported_locales?.find(
|
|
142
|
-
(l) => l.is_default
|
|
143
|
-
)?.locale_code;
|
|
144
|
-
if (!locales2.includes(defaultLocale ?? "")) {
|
|
145
|
-
defaultLocale = locales2?.[0];
|
|
146
|
-
}
|
|
147
|
-
await mutateAsync(
|
|
148
|
-
{
|
|
149
|
-
supported_locales: locales2.map((l) => ({
|
|
150
|
-
locale_code: l,
|
|
151
|
-
is_default: l === defaultLocale
|
|
152
|
-
}))
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
onSuccess: () => {
|
|
156
|
-
toast.success(t("store.toast.localesUpdated"));
|
|
157
|
-
handleSuccess();
|
|
158
|
-
},
|
|
159
|
-
onError: (error2) => {
|
|
160
|
-
toast.error(error2.message);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
});
|
|
165
|
-
if (isError) {
|
|
166
|
-
throw error;
|
|
167
|
-
}
|
|
168
|
-
return /* @__PURE__ */ jsx(RouteFocusModal.Form, { form, children: /* @__PURE__ */ jsxs(
|
|
169
|
-
KeyboundForm,
|
|
170
|
-
{
|
|
171
|
-
onSubmit: handleSubmit,
|
|
172
|
-
className: "flex h-full flex-col overflow-hidden",
|
|
173
|
-
children: [
|
|
174
|
-
/* @__PURE__ */ jsx(RouteFocusModal.Header, { children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center justify-between", children: /* @__PURE__ */ jsx("div", { className: "flex items-center", children: form.formState.errors.locales && /* @__PURE__ */ jsx(Hint, { variant: "error", children: form.formState.errors.locales.message }) }) }) }),
|
|
175
|
-
/* @__PURE__ */ jsx(RouteFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
176
|
-
_DataTable,
|
|
177
|
-
{
|
|
178
|
-
table,
|
|
179
|
-
pageSize: PAGE_SIZE,
|
|
180
|
-
count,
|
|
181
|
-
columns,
|
|
182
|
-
layout: "fill",
|
|
183
|
-
pagination: true,
|
|
184
|
-
search: "autofocus",
|
|
185
|
-
prefix: PREFIX,
|
|
186
|
-
orderBy: [
|
|
187
|
-
{ key: "name", label: t("fields.name") },
|
|
188
|
-
{ key: "code", label: t("fields.code") }
|
|
189
|
-
],
|
|
190
|
-
isLoading,
|
|
191
|
-
queryObject: raw
|
|
192
|
-
}
|
|
193
|
-
) }),
|
|
194
|
-
/* @__PURE__ */ jsx(RouteFocusModal.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
195
|
-
/* @__PURE__ */ jsx(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
196
|
-
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: t("actions.save") })
|
|
197
|
-
] }) })
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
) });
|
|
201
|
-
};
|
|
202
|
-
var columnHelper = createColumnHelper();
|
|
203
|
-
var useColumns = () => {
|
|
204
|
-
const { t } = useTranslation();
|
|
205
|
-
const base = useLocalesTableColumns();
|
|
206
|
-
return useMemo(
|
|
207
|
-
() => [
|
|
208
|
-
columnHelper.display({
|
|
209
|
-
id: "select",
|
|
210
|
-
header: ({ table }) => {
|
|
211
|
-
return /* @__PURE__ */ jsx(
|
|
212
|
-
Checkbox,
|
|
213
|
-
{
|
|
214
|
-
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
215
|
-
onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
},
|
|
219
|
-
cell: ({ row }) => {
|
|
220
|
-
const isPreSelected = !row.getCanSelect();
|
|
221
|
-
const isSelected = row.getIsSelected() || isPreSelected;
|
|
222
|
-
const Component = /* @__PURE__ */ jsx(
|
|
223
|
-
Checkbox,
|
|
224
|
-
{
|
|
225
|
-
checked: isSelected,
|
|
226
|
-
disabled: isPreSelected,
|
|
227
|
-
onCheckedChange: (value) => row.toggleSelected(!!value),
|
|
228
|
-
onClick: (e) => {
|
|
229
|
-
e.stopPropagation();
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
);
|
|
233
|
-
if (isPreSelected) {
|
|
234
|
-
return /* @__PURE__ */ jsx(Tooltip, { content: t("store.localeAlreadyAdded"), side: "right", children: Component });
|
|
235
|
-
}
|
|
236
|
-
return Component;
|
|
237
|
-
}
|
|
238
|
-
}),
|
|
239
|
-
...base
|
|
240
|
-
],
|
|
241
|
-
[t, base]
|
|
242
|
-
);
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
// src/routes/store/store-add-locales/store-add-locales.tsx
|
|
246
|
-
import { useNavigate } from "react-router-dom";
|
|
247
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
248
|
-
var StoreAddLocales = () => {
|
|
249
|
-
const isEnabled = useFeatureFlag("translation");
|
|
250
|
-
const navigate = useNavigate();
|
|
251
|
-
if (!isEnabled) {
|
|
252
|
-
navigate(-1);
|
|
253
|
-
return null;
|
|
254
|
-
}
|
|
255
|
-
const { store, isPending, isError, error } = useStore();
|
|
256
|
-
const ready = !!store && !isPending;
|
|
257
|
-
if (isError) {
|
|
258
|
-
throw error;
|
|
259
|
-
}
|
|
260
|
-
return /* @__PURE__ */ jsx2(RouteFocusModal, { children: ready && /* @__PURE__ */ jsx2(AddLocalesForm, { store }) });
|
|
261
|
-
};
|
|
262
|
-
export {
|
|
263
|
-
StoreAddLocales as Component
|
|
264
|
-
};
|