@mercurjs/vendor 2.1.2 → 2.2.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{[id]-PDGHF5J2.js → [id]-2DQX3YWJ.js} +35 -31
- package/dist/{[id]-TO6KT3ZE.js → [id]-4OBGG7OH.js} +23 -21
- package/dist/{[id]-X4DDKOMQ.js → [id]-4PKMKNJH.js} +26 -22
- package/dist/[id]-4STHLE4N.js +1442 -0
- package/dist/{[id]-4VCL3MMM.js → [id]-5UFO4RKF.js} +26 -22
- package/dist/{[id]-H3C3ZSC6.js → [id]-6MXCVV5J.js} +25 -21
- package/dist/{[id]-6PXEWRG7.js → [id]-7BAKUHUO.js} +13 -13
- package/dist/{[id]-7RUAH3TI.js → [id]-K2CT7BXQ.js} +4 -4
- package/dist/{[id]-3G5G7ZFV.js → [id]-KJIQTFGE.js} +22 -20
- package/dist/{[id]-INOFZHL7.js → [id]-LTNOHLGE.js} +16 -16
- package/dist/{[id]-B3LHVQM5.js → [id]-PGIT5WJC.js} +25 -21
- package/dist/{[id]-T2ROPEGY.js → [id]-Y2ISCLUD.js} +7 -7
- package/dist/{[id]-Y7GAMNC5.js → [id]-ZCMSBEVM.js} +4 -4
- package/dist/{[id]-UTKO3VG4.js → [id]-ZWWMJAKI.js} +9 -9
- package/dist/{[location_id]-D55RQOXT.js → [location_id]-NUBXDDJC.js} +9 -9
- package/dist/{[province_id]-OFH2ZOFQ.js → [province_id]-H2QAPKVH.js} +20 -18
- package/dist/{add-C6OX5C54.js → add-GZJ7OMV3.js} +34 -30
- package/dist/add-KQAABWCR.js +392 -0
- package/dist/{add-customer-groups-PJRJUWS2.js → add-customer-groups-RAHCP67U.js} +16 -14
- package/dist/{add-products-INOLNPO6.js → add-products-TSVQHC67.js} +23 -19
- package/dist/{add-promotions-AHDOP52Q.js → add-promotions-CSCAJZHV.js} +7 -7
- package/dist/{add-to-campaign-HL6NGRR4.js → add-to-campaign-DLP7PSQB.js} +4 -4
- package/dist/{address-KRENKSLP.js → address-7F5SN7PV.js} +17 -15
- package/dist/{adjust-inventory-H4EUP7J3.js → adjust-inventory-SZF4W7LR.js} +2 -2
- package/dist/{allocate-items-SUCUZU4D.js → allocate-items-SDFS5GYN.js} +6 -6
- package/dist/{areas-UUMZDXLX.js → areas-7Y6BVS5A.js} +8 -8
- package/dist/{attributes-CALEHJJG.js → attributes-MBZ76HVZ.js} +3 -3
- package/dist/{breadcrumb-BS7Y5OKF.js → breadcrumb-65SAGUUL.js} +2 -2
- package/dist/{breadcrumb-6W2VP3OZ.js → breadcrumb-7PURSRTT.js} +13 -11
- package/dist/{breadcrumb-M5Z5WA6I.js → breadcrumb-EDPMEN2P.js} +2 -2
- package/dist/breadcrumb-FLDHJRVY.js +26 -0
- package/dist/{breadcrumb-VNNZ3TTW.js → breadcrumb-HND5FFWC.js} +2 -2
- package/dist/{breadcrumb-OIGGCB3L.js → breadcrumb-QV2IAX7N.js} +8 -2
- package/dist/{breadcrumb-KQSFIXQ4.js → breadcrumb-VWELWDB2.js} +1 -1
- package/dist/{breadcrumb-IG7VZGW2.js → breadcrumb-WRG4SITG.js} +13 -11
- package/dist/{breadcrumb-TW5JEOYS.js → breadcrumb-ZCG2RHIU.js} +12 -10
- package/dist/{campaigns-HS6MIO7X.js → campaigns-L6ULR6KR.js} +5 -5
- package/dist/{categories-PKWR3FM3.js → categories-FUZQKBXV.js} +6 -6
- package/dist/{chunk-PDQSPKG5.js → chunk-2DXNJURE.js} +1 -1
- package/dist/{chunk-ZZO3INVE.js → chunk-2MDGYHWN.js} +128 -25
- package/dist/{chunk-5UD4P6YL.js → chunk-2USXZSTK.js} +4 -4
- package/dist/{chunk-6SBMVLJ2.js → chunk-36L54SQQ.js} +1 -1
- package/dist/chunk-37G4Y5I7.js +101 -0
- package/dist/{chunk-5M3SL4UZ.js → chunk-3CVJA5UE.js} +9 -104
- package/dist/chunk-432S4FGR.js +0 -0
- package/dist/{chunk-KQGVSLUI.js → chunk-44RQ5PTN.js} +1803 -914
- package/dist/{chunk-Y2QI7KWS.js → chunk-4LVP635F.js} +408 -664
- package/dist/{chunk-UL4O5M4S.js → chunk-4S6XGIC6.js} +1 -18
- package/dist/chunk-5ZVWOCAC.js +426 -0
- package/dist/{chunk-WITQNQXN.js → chunk-6BS2AVGJ.js} +3 -3
- package/dist/{chunk-ZYOXKUKZ.js → chunk-7LBY5JLV.js} +1 -1
- package/dist/chunk-7SLWXX6L.js +811 -0
- package/dist/{chunk-LQYMBSRQ.js → chunk-AIZM66CG.js} +1 -1
- package/dist/{chunk-IZ5RG5XI.js → chunk-AJLGY3LQ.js} +1 -21
- package/dist/{chunk-WFE6CT6M.js → chunk-AVOIZO63.js} +21 -77
- package/dist/chunk-C2FG3SX2.js +68 -0
- package/dist/chunk-CFRWIQIZ.js +43 -0
- package/dist/{chunk-WNVEMFIK.js → chunk-CNMY5HVP.js} +2 -2
- package/dist/{chunk-BLVJAKBA.js → chunk-DDH7ULIQ.js} +1 -1
- package/dist/chunk-DIW4GRTI.js +503 -0
- package/dist/{chunk-JQP7MOFH.js → chunk-DVEKYLPV.js} +1 -1
- package/dist/{chunk-QX45GVAL.js → chunk-EIUYXS7E.js} +8 -8
- package/dist/{chunk-N7OVXN72.js → chunk-EROX26D4.js} +1 -1
- package/dist/{chunk-2RHAI7WK.js → chunk-EZ3JOAUS.js} +1 -1
- package/dist/{chunk-HFRHHT36.js → chunk-FDR22JMM.js} +63 -8
- package/dist/{chunk-PEKANQ3T.js → chunk-FJUUGFXL.js} +2 -2
- package/dist/{chunk-3CK6OINO.js → chunk-GDWBOQI5.js} +3 -5
- package/dist/{chunk-47SXTGLN.js → chunk-GXIAIITP.js} +63 -200
- package/dist/{chunk-4MFMCZEJ.js → chunk-H6LZ77GX.js} +2 -2
- package/dist/chunk-IWLDKGYQ.js +95 -0
- package/dist/chunk-K4X324QP.js +18 -0
- package/dist/{chunk-VQ5EKDA3.js → chunk-KD7RYE6R.js} +1 -1
- package/dist/chunk-LEWA4BPH.js +18 -0
- package/dist/{chunk-7Q5SDEK7.js → chunk-LNM2D2I4.js} +4 -4
- package/dist/{chunk-LPOAVK6Y.js → chunk-LQD232FW.js} +47 -12
- package/dist/{chunk-OXXL4WQU.js → chunk-M7KSRYRI.js} +5 -5
- package/dist/chunk-MBFHMJHN.js +2063 -0
- package/dist/{chunk-I2IKYOZX.js → chunk-N4MVIBFM.js} +19 -19
- package/dist/{chunk-PCMNEUMV.js → chunk-NHFEY3EI.js} +1 -1
- package/dist/{chunk-RTAWYMQP.js → chunk-NJMNYS7G.js} +1 -1
- package/dist/{chunk-HGQTL7NX.js → chunk-NSZQERLE.js} +2 -2
- package/dist/{chunk-RL7SFZOF.js → chunk-NXNJQZCP.js} +1 -1
- package/dist/{chunk-CNLP35S7.js → chunk-OD3U3TX4.js} +16 -31
- package/dist/{chunk-D2MA5TAP.js → chunk-PBD36EZJ.js} +2 -2
- package/dist/{chunk-4ZGFODSC.js → chunk-PZ44R4AS.js} +1 -1
- package/dist/{chunk-ZEVYT6IX.js → chunk-QNNJN4H6.js} +116 -286
- package/dist/{chunk-WBI7FEGI.js → chunk-QS6RWIBL.js} +1 -1
- package/dist/chunk-QT7YFHCA.js +198 -0
- package/dist/{chunk-GYV6SKY7.js → chunk-QXLRABYH.js} +4 -6
- package/dist/chunk-RXZFEFNV.js +73 -0
- package/dist/{chunk-RUE5BPC2.js → chunk-RZLN2Q6G.js} +1 -1
- package/dist/{chunk-NYDJTWRL.js → chunk-SGR4DMCW.js} +4 -4
- package/dist/chunk-T6LHVNWO.js +27 -0
- package/dist/{chunk-DKQ4XMSN.js → chunk-TNVYTMBL.js} +6 -6
- package/dist/{chunk-32RYSB2V.js → chunk-TODJFRLH.js} +2 -2
- package/dist/{chunk-P3ZTO6T2.js → chunk-UAF2S447.js} +1 -1
- package/dist/{chunk-J6BRLL3F.js → chunk-UCQKXXLD.js} +2 -2
- package/dist/chunk-UORPTGV2.js +114 -0
- package/dist/{chunk-CYTNBXWF.js → chunk-UX7J5NZG.js} +9 -9
- package/dist/{chunk-X4FLOQ45.js → chunk-WBHFU3MG.js} +2 -2
- package/dist/chunk-WLT7K7K7.js +63 -0
- package/dist/{chunk-4URLUCTD.js → chunk-WUPJADSO.js} +2 -2
- package/dist/{chunk-ITI54CII.js → chunk-X4INVIWL.js} +5 -5
- package/dist/{chunk-PTW7JNAP.js → chunk-XFQJU6FA.js} +4 -4
- package/dist/{collections-DJZI2RM2.js → collections-3OPR3DSD.js} +22 -19
- package/dist/{configuration-RHPIO2QT.js → configuration-C4IGBNXH.js} +1 -1
- package/dist/{configuration-GN3TO77H.js → configuration-UOSNP45I.js} +3 -3
- package/dist/{create-3EK5CNNX.js → create-2MQFQHTE.js} +33 -29
- package/dist/{create-YO55Z3YD.js → create-2PCLG7TV.js} +32 -38
- package/dist/{create-G4T2PAJH.js → create-35MYQPVM.js} +23 -21
- package/dist/{create-HKJVSFB7.js → create-BJ4OO6LS.js} +23 -21
- package/dist/create-DDPIXCXT.js +210 -0
- package/dist/{create-7S7CZWEN.js → create-GB3ZA4LH.js} +4 -4
- package/dist/create-JDGM5KXE.js +193 -0
- package/dist/{create-IDVCZHIX.js → create-ORXYT74H.js} +14 -12
- package/dist/{create-GHM7OTCR.js → create-R7K3ECN6.js} +1 -1
- package/dist/{create-D6EW3EWC.js → create-SFU3W3ZH.js} +1 -1
- package/dist/{create-3ZVXEPX5.js → create-SQ3FYMGI.js} +25 -21
- package/dist/{create-33TRLASX.js → create-UPYB65PD.js} +1 -1
- package/dist/{create-OCFPLNNY.js → create-UQNYMVBM.js} +6 -6
- package/dist/{create-OGLPDVOI.js → create-XAD5NMSJ.js} +37 -35
- package/dist/{create-KGYL7FBM.js → create-XVHOCZHJ.js} +1 -1
- package/dist/{create-4AE3VTWN.js → create-YBF4YGWG.js} +2 -2
- package/dist/{customers-6ZLE65UX.js → customers-ETXVNM3G.js} +5 -5
- package/dist/{edit-QBISX7D3.js → edit-2Q7TRUTL.js} +14 -12
- package/dist/{edit-B5B3XKDM.js → edit-522DG3BY.js} +1 -1
- package/dist/{edit-ATXE6CM5.js → edit-C4OCKQVU.js} +1 -1
- package/dist/{edit-IR6V2IDN.js → edit-FKXIQ6ZI.js} +19 -17
- package/dist/{edit-4HZHLYI3.js → edit-GQNIINRR.js} +1 -1
- package/dist/{edit-LRRJTHV2.js → edit-KAKVPHZZ.js} +1 -1
- package/dist/{edit-ZSOI56BQ.js → edit-L5ZZLMAY.js} +22 -22
- package/dist/{edit-FNDDSSMT.js → edit-NYD45J2Q.js} +37 -8
- package/dist/{edit-GIJXLMC3.js → edit-O4JLGKQR.js} +2 -2
- package/dist/{edit-5CJZRHAA.js → edit-ORXS3A2Y.js} +1 -1
- package/dist/{edit-FC64DWB2.js → edit-Q3UQIOLS.js} +1 -1
- package/dist/{edit-7HTH2UJF.js → edit-REDDBLTA.js} +3 -3
- package/dist/{edit-2KRJIPRK.js → edit-SGUY2CCK.js} +19 -17
- package/dist/{edit-B75KK5ZX.js → edit-SWRWWFW6.js} +35 -31
- package/dist/{edit-7GVP6SRA.js → edit-ZAHCMF5U.js} +1 -1
- package/dist/{edit-RNT555GP.js → edit-ZCXUG42Q.js} +13 -11
- package/dist/{edit-MYSWY6W4.js → edit-ZMERG3L7.js} +1 -1
- package/dist/{edit-budget-J27CSEZH.js → edit-budget-L3CCEWNF.js} +1 -1
- package/dist/{edit-inventory-item-US77M2FF.js → edit-inventory-item-6B7ITDGD.js} +2 -2
- package/dist/{edit-inventory-item-attributes-UGAE2NAZ.js → edit-inventory-item-attributes-Y7MQZLXI.js} +3 -3
- package/dist/{fulfillment-DCS67LTK.js → fulfillment-75Z4H23W.js} +16 -14
- package/dist/{fulfillment-providers-GM5PO6N3.js → fulfillment-providers-KCQWL62T.js} +20 -17
- package/dist/index.css +27 -62
- package/dist/index.d.ts +3 -10
- package/dist/index.js +522 -458
- package/dist/{inventory-OPZ2FSEE.js → inventory-KAUVPMPZ.js} +6 -6
- package/dist/{invite-764K3TJS.js → invite-6CPYVHDX.js} +24 -21
- package/dist/{invite-KEJLNXEZ.js → invite-CI2P4GF6.js} +15 -12
- package/dist/loader-FBB5OQRT.js +31 -0
- package/dist/{locations-ZVPTQCQY.js → locations-INS6FTMJ.js} +4 -4
- package/dist/{login-OUHRNNXA.js → login-KY342RMK.js} +12 -10
- package/dist/{manage-locations-YUKEFCBJ.js → manage-locations-WNHEBS3A.js} +2 -2
- package/dist/{media-4KYFHB5V.js → media-KOYAOXG6.js} +41 -9
- package/dist/{metadata-NYYL26MQ.js → metadata-2CMH4I6U.js} +16 -14
- package/dist/{metadata-AWUKZ25V.js → metadata-5BPOBBU2.js} +3 -3
- package/dist/{metadata-OCE6A3JE.js → metadata-GWI6R4ES.js} +15 -13
- package/dist/{metadata-G7KZXVNE.js → metadata-NUXUC2JA.js} +15 -13
- package/dist/{metadata-XP3ZYW2M.js → metadata-TLDUF5KV.js} +17 -15
- package/dist/{metadata-PYY4IB7K.js → metadata-WR4RFXO5.js} +16 -14
- package/dist/offer-create-page-YKMHHTU5.js +743 -0
- package/dist/offer-detail-page-6MAHNNIO.js +488 -0
- package/dist/offer-edit-page-DYQFU6JU.js +151 -0
- package/dist/offer-inventory-batch-page-WKCWNDNK.js +290 -0
- package/dist/offer-pricing-edit-page-4TYGGSOE.js +195 -0
- package/dist/offers-UGQJNGTD.js +32 -0
- package/dist/{onboarding-WXZHW62K.js → onboarding-43LQQQGQ.js} +22 -20
- package/dist/{orders-LWJ472VM.js → orders-R2LOJ6N5.js} +24 -21
- package/dist/organization-XGFU4YDG.js +375 -0
- package/dist/{organize-RFOMQCBG.js → organize-HNJUHEEG.js} +4 -4
- package/dist/{organize-OVKJ3HZO.js → organize-K6QMAMEN.js} +4 -4
- package/dist/pages/index.d.ts +415 -758
- package/dist/pages/index.js +81 -77
- package/dist/{payment-details-UVXYCTUK.js → payment-details-64US5XWD.js} +17 -15
- package/dist/{payouts-TR7K5I37.js → payouts-UXJDTXDL.js} +6 -6
- package/dist/{price-lists-S2WNELFZ.js → price-lists-KBPUVSZI.js} +8 -8
- package/dist/{pricing-UF27DAXA.js → pricing-DF6C5XK4.js} +35 -32
- package/dist/{product-tags-2CKH2M6D.js → product-tags-CL7HSEDI.js} +32 -28
- package/dist/{product-types-FX43JEO2.js → product-types-UUHBV4IZ.js} +5 -5
- package/dist/product-variant-detail-RVWEYVPC.js +220 -0
- package/dist/{product-variant-edit-P3DSIFE3.js → product-variant-edit-MNCS7ZYW.js} +126 -66
- package/dist/{products-H5EMRJYS.js → products-4KV5Y2JY.js} +23 -19
- package/dist/{products-2LHGS7X3.js → products-SXYTQFJ3.js} +40 -43
- package/dist/{professional-details-HYKTH44B.js → professional-details-5T2VS6MM.js} +16 -14
- package/dist/{profile-PB27WIRW.js → profile-6XGHAT7H.js} +20 -18
- package/dist/{promotions-5EYPGHJP.js → promotions-O7U4BTK6.js} +8 -8
- package/dist/{register-4O4F6YZK.js → register-GDKN3SKM.js} +16 -14
- package/dist/{reset-password-GTWLBOFK.js → reset-password-EICPAY2N.js} +1 -1
- package/dist/{return-reasons-LOKYRGMI.js → return-reasons-M6IR77XW.js} +16 -14
- package/dist/{sales-channels-7R2IY3KG.js → sales-channels-B6FULRWI.js} +8 -7
- package/dist/{sales-channels-Y4LRP7JC.js → sales-channels-JW3QUYR7.js} +8 -7
- package/dist/{settings-2XDLFYMS.js → settings-SAAHTUZZ.js} +39 -35
- package/dist/{shipment-4GW2JFWB.js → shipment-Q33QBMXX.js} +13 -11
- package/dist/{shipping-profile-R3NABPQF.js → shipping-profile-Y4SNEPZX.js} +2 -2
- package/dist/{shipping-profiles-QVKNFLCW.js → shipping-profiles-2NWKCEJK.js} +18 -16
- package/dist/{stock-5RXNUPUT.js → stock-7CSVEJJU.js} +19 -17
- package/dist/{store-DE2RGX7T.js → store-GHFWU7EV.js} +28 -25
- package/dist/{store-closure-DNMCHUXD.js → store-closure-P5PD2RSV.js} +16 -14
- package/dist/{store-select-GZEJHRZ7.js → store-select-KDT6USQA.js} +17 -15
- package/dist/{tax-regions-UD6P5FVC.js → tax-regions-YXZW7UVX.js} +5 -5
- package/dist/{team-JXKAVRPU.js → team-EDJ62747.js} +25 -23
- package/dist/types-CtCEtTE6.d.ts +16 -0
- package/package.json +3 -3
- package/dist/[id]-BYP37PU4.js +0 -1314
- package/dist/add-KRAGFFBJ.js +0 -158
- package/dist/bulk-edit-3SMBLIOA.js +0 -244
- package/dist/chunk-4KX6CBJ4.js +0 -178
- package/dist/chunk-DLNNTQRY.js +0 -217
- package/dist/chunk-FX4V5JCF.js +0 -37
- package/dist/chunk-GC33DBKG.js +0 -143
- package/dist/chunk-NK4NR6MN.js +0 -173
- package/dist/chunk-PFU6FSXY.js +0 -430
- package/dist/chunk-QJEOPT2P.js +0 -330
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-STR3NGWE.js +0 -3736
- package/dist/create-3DOO3RNH.js +0 -716
- package/dist/create-I7HV3RM6.js +0 -150
- package/dist/edit-K2AD335I.js +0 -237
- package/dist/edit-VO5XLIEL.js +0 -362
- package/dist/edit-stocks-and-prices-MHHQFWFA.js +0 -408
- package/dist/organization-LPYQRTQC.js +0 -303
- package/dist/prices-3OXV5RGY.js +0 -270
- package/dist/product-variant-detail-WV4KXVXR.js +0 -590
- package/dist/stock-GPC3BCL6.js +0 -500
- package/dist/{chunk-SDSEW72R.js → chunk-E2HQPY32.js} +3 -3
- package/dist/{chunk-6WY5X4PE.js → chunk-L7QKFC5N.js} +7 -7
- /package/dist/{chunk-CAS74NLJ.js → chunk-YV6MK4PZ.js} +0 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OFFER_DETAIL_FIELDS
|
|
3
|
+
} from "./chunk-RXZFEFNV.js";
|
|
4
|
+
import {
|
|
5
|
+
DataGrid,
|
|
6
|
+
DataGridReadonlyCell,
|
|
7
|
+
DataGridTogglableNumberCell,
|
|
8
|
+
createDataGridHelper
|
|
9
|
+
} from "./chunk-4LVP635F.js";
|
|
10
|
+
import "./chunk-IQPN4PZJ.js";
|
|
11
|
+
import {
|
|
12
|
+
castNumber
|
|
13
|
+
} from "./chunk-SMQT3ZNO.js";
|
|
14
|
+
import "./chunk-TKGWSUEI.js";
|
|
15
|
+
import {
|
|
16
|
+
KeyboundForm
|
|
17
|
+
} from "./chunk-U2ZFCAPX.js";
|
|
18
|
+
import {
|
|
19
|
+
RouteFocusModal,
|
|
20
|
+
useRouteModal
|
|
21
|
+
} from "./chunk-GDWBOQI5.js";
|
|
22
|
+
import "./chunk-3QSRE5LS.js";
|
|
23
|
+
import {
|
|
24
|
+
Thumbnail
|
|
25
|
+
} from "./chunk-WIYFXWRI.js";
|
|
26
|
+
import "./chunk-INNFZYX2.js";
|
|
27
|
+
import {
|
|
28
|
+
useOffer
|
|
29
|
+
} from "./chunk-UORPTGV2.js";
|
|
30
|
+
import {
|
|
31
|
+
useStockLocations
|
|
32
|
+
} from "./chunk-NBPMNUKZ.js";
|
|
33
|
+
import "./chunk-LAVHRER2.js";
|
|
34
|
+
import "./chunk-Y7QKP6QU.js";
|
|
35
|
+
import {
|
|
36
|
+
useBatchInventoryItemsLocationLevels
|
|
37
|
+
} from "./chunk-QNNJN4H6.js";
|
|
38
|
+
import "./chunk-A5DJIOHN.js";
|
|
39
|
+
import "./chunk-RHKRREUU.js";
|
|
40
|
+
import "./chunk-ZA2KFUFR.js";
|
|
41
|
+
import "./chunk-RIN4CBRB.js";
|
|
42
|
+
import "./chunk-NBMM2TZK.js";
|
|
43
|
+
|
|
44
|
+
// src/pages/offers/[id]/inventory/offer-inventory-batch-page.tsx
|
|
45
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
46
|
+
import { useParams } from "react-router-dom";
|
|
47
|
+
|
|
48
|
+
// src/pages/offers/[id]/inventory/inventory-batch-form/inventory-batch-form.tsx
|
|
49
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
50
|
+
import { Button, toast, usePrompt } from "@medusajs/ui";
|
|
51
|
+
import { useMemo as useMemo2, useRef, useState } from "react";
|
|
52
|
+
import { useForm } from "react-hook-form";
|
|
53
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
54
|
+
|
|
55
|
+
// src/pages/offers/[id]/inventory/inventory-batch-form/hooks/use-offer-stock-columns.tsx
|
|
56
|
+
import { useMemo } from "react";
|
|
57
|
+
import { useTranslation } from "react-i18next";
|
|
58
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
59
|
+
var helper = createDataGridHelper();
|
|
60
|
+
var useOfferStockColumns = (locations = []) => {
|
|
61
|
+
const { t } = useTranslation();
|
|
62
|
+
return useMemo(
|
|
63
|
+
() => [
|
|
64
|
+
helper.column({
|
|
65
|
+
id: "title",
|
|
66
|
+
name: t("fields.title"),
|
|
67
|
+
header: t("fields.title"),
|
|
68
|
+
cell: (context) => {
|
|
69
|
+
const item = context.row.original;
|
|
70
|
+
return /* @__PURE__ */ jsx(DataGridReadonlyCell, { context, color: "normal", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2 overflow-hidden", children: [
|
|
71
|
+
/* @__PURE__ */ jsx(Thumbnail, { src: item.thumbnail ?? null }),
|
|
72
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", title: item.title ?? "", children: item.title || "-" })
|
|
73
|
+
] }) });
|
|
74
|
+
},
|
|
75
|
+
disableHiding: true
|
|
76
|
+
}),
|
|
77
|
+
helper.column({
|
|
78
|
+
id: "sku",
|
|
79
|
+
name: t("offers.fields.sku"),
|
|
80
|
+
header: t("offers.fields.sku"),
|
|
81
|
+
cell: (context) => {
|
|
82
|
+
const item = context.row.original;
|
|
83
|
+
return /* @__PURE__ */ jsx(DataGridReadonlyCell, { context, color: "normal", children: item.sku || "-" });
|
|
84
|
+
},
|
|
85
|
+
disableHiding: true
|
|
86
|
+
}),
|
|
87
|
+
...locations.map(
|
|
88
|
+
(location) => helper.column({
|
|
89
|
+
id: `location_${location.id}`,
|
|
90
|
+
name: location.name,
|
|
91
|
+
header: location.name,
|
|
92
|
+
field: (context) => `inventory_items.${context.row.original.id}.locations.${location.id}`,
|
|
93
|
+
type: "togglable-number",
|
|
94
|
+
cell: (context) => /* @__PURE__ */ jsx(
|
|
95
|
+
DataGridTogglableNumberCell,
|
|
96
|
+
{
|
|
97
|
+
context,
|
|
98
|
+
disabledToggleTooltip: t("inventory.stock.disabledToggleTooltip"),
|
|
99
|
+
placeholder: t("inventory.stock.placeholder")
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
})
|
|
103
|
+
)
|
|
104
|
+
],
|
|
105
|
+
[locations, t]
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// src/pages/offers/[id]/inventory/inventory-batch-form/schema.ts
|
|
110
|
+
import { z } from "zod";
|
|
111
|
+
var LocationQuantitySchema = z.object({
|
|
112
|
+
id: z.string().optional(),
|
|
113
|
+
quantity: z.union([z.number(), z.string()]),
|
|
114
|
+
checked: z.boolean(),
|
|
115
|
+
disabledToggle: z.boolean()
|
|
116
|
+
});
|
|
117
|
+
var InventoryItemLocationsSchema = z.record(
|
|
118
|
+
z.string(),
|
|
119
|
+
LocationQuantitySchema
|
|
120
|
+
);
|
|
121
|
+
var InventoryItemSchema = z.object({
|
|
122
|
+
locations: InventoryItemLocationsSchema
|
|
123
|
+
});
|
|
124
|
+
var OfferStockSchema = z.object({
|
|
125
|
+
inventory_items: z.record(z.string(), InventoryItemSchema)
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
// src/pages/offers/[id]/inventory/inventory-batch-form/inventory-batch-form.tsx
|
|
129
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
130
|
+
var InventoryBatchForm = ({
|
|
131
|
+
offer,
|
|
132
|
+
locations
|
|
133
|
+
}) => {
|
|
134
|
+
const { t } = useTranslation2();
|
|
135
|
+
const { handleSuccess, setCloseOnEscape } = useRouteModal();
|
|
136
|
+
const prompt = usePrompt();
|
|
137
|
+
const [isPromptOpen, setIsPromptOpen] = useState(false);
|
|
138
|
+
const rows = useMemo2(() => buildRows(offer), [offer]);
|
|
139
|
+
const defaults = useMemo2(
|
|
140
|
+
() => getDefaultValue(offer, locations),
|
|
141
|
+
[offer, locations]
|
|
142
|
+
);
|
|
143
|
+
const initialValues = useRef(defaults);
|
|
144
|
+
const form = useForm({
|
|
145
|
+
defaultValues: defaults,
|
|
146
|
+
resolver: zodResolver(OfferStockSchema)
|
|
147
|
+
});
|
|
148
|
+
const columns = useOfferStockColumns(locations);
|
|
149
|
+
const { mutateAsync, isPending } = useBatchInventoryItemsLocationLevels();
|
|
150
|
+
const onSubmit = form.handleSubmit(async (data) => {
|
|
151
|
+
const payload = {
|
|
152
|
+
create: [],
|
|
153
|
+
update: [],
|
|
154
|
+
delete: [],
|
|
155
|
+
force: true
|
|
156
|
+
};
|
|
157
|
+
for (const [inventory_item_id, item] of Object.entries(
|
|
158
|
+
data.inventory_items
|
|
159
|
+
)) {
|
|
160
|
+
for (const [location_id, level] of Object.entries(item.locations)) {
|
|
161
|
+
if (level.id) {
|
|
162
|
+
const wasChecked = initialValues.current.inventory_items?.[inventory_item_id]?.locations?.[location_id]?.checked;
|
|
163
|
+
if (wasChecked && !level.checked) {
|
|
164
|
+
payload.delete.push(level.id);
|
|
165
|
+
} else {
|
|
166
|
+
const newQuantity = level.quantity !== "" ? castNumber(level.quantity) : 0;
|
|
167
|
+
const originalQuantity = initialValues.current.inventory_items?.[inventory_item_id]?.locations?.[location_id]?.quantity;
|
|
168
|
+
if (newQuantity !== originalQuantity) {
|
|
169
|
+
payload.update.push({
|
|
170
|
+
inventory_item_id,
|
|
171
|
+
location_id,
|
|
172
|
+
stocked_quantity: newQuantity
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (!level.id && level.quantity !== "") {
|
|
178
|
+
payload.create.push({
|
|
179
|
+
inventory_item_id,
|
|
180
|
+
location_id,
|
|
181
|
+
stocked_quantity: castNumber(level.quantity)
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (payload.delete && payload.delete.length > 0) {
|
|
187
|
+
setIsPromptOpen(true);
|
|
188
|
+
const confirm = await prompt({
|
|
189
|
+
title: t("general.areYouSure"),
|
|
190
|
+
description: t("inventory.stock.disablePrompt", {
|
|
191
|
+
count: payload.delete.length
|
|
192
|
+
}),
|
|
193
|
+
confirmText: t("actions.continue"),
|
|
194
|
+
cancelText: t("actions.cancel"),
|
|
195
|
+
variant: "confirmation"
|
|
196
|
+
});
|
|
197
|
+
setIsPromptOpen(false);
|
|
198
|
+
if (!confirm) return;
|
|
199
|
+
}
|
|
200
|
+
await mutateAsync(payload, {
|
|
201
|
+
onSuccess: () => {
|
|
202
|
+
toast.success(t("offers.inventory.successToast"));
|
|
203
|
+
handleSuccess();
|
|
204
|
+
},
|
|
205
|
+
onError: (error) => toast.error(error.message)
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
return /* @__PURE__ */ jsx2(RouteFocusModal.Form, { form, "data-testid": "offer-inventory-batch-form", children: /* @__PURE__ */ jsxs2(KeyboundForm, { onSubmit, className: "flex size-full flex-col", children: [
|
|
209
|
+
/* @__PURE__ */ jsx2(RouteFocusModal.Header, {}),
|
|
210
|
+
/* @__PURE__ */ jsx2(RouteFocusModal.Body, { className: "flex flex-col overflow-hidden", children: /* @__PURE__ */ jsx2(
|
|
211
|
+
DataGrid,
|
|
212
|
+
{
|
|
213
|
+
state: form,
|
|
214
|
+
columns,
|
|
215
|
+
data: rows,
|
|
216
|
+
onEditingChange: (editing) => setCloseOnEscape(!editing),
|
|
217
|
+
disableInteractions: isPending || isPromptOpen,
|
|
218
|
+
multiColumnSelection: true
|
|
219
|
+
}
|
|
220
|
+
) }),
|
|
221
|
+
/* @__PURE__ */ jsx2(RouteFocusModal.Footer, { children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
222
|
+
/* @__PURE__ */ jsx2(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx2(Button, { variant: "secondary", size: "small", type: "button", children: t("actions.cancel") }) }),
|
|
223
|
+
/* @__PURE__ */ jsx2(Button, { type: "submit", size: "small", isLoading: isPending, children: t("actions.save") })
|
|
224
|
+
] }) })
|
|
225
|
+
] }) });
|
|
226
|
+
};
|
|
227
|
+
function buildRows(offer) {
|
|
228
|
+
return (offer.inventory_item_link ?? []).map((link) => {
|
|
229
|
+
const item = link.inventory_item;
|
|
230
|
+
if (!item?.id) return null;
|
|
231
|
+
return {
|
|
232
|
+
id: item.id,
|
|
233
|
+
title: item.title,
|
|
234
|
+
sku: item.sku,
|
|
235
|
+
thumbnail: null
|
|
236
|
+
};
|
|
237
|
+
}).filter((row) => row !== null);
|
|
238
|
+
}
|
|
239
|
+
function getDefaultValue(offer, locations) {
|
|
240
|
+
const inventory_items = {};
|
|
241
|
+
for (const link of offer.inventory_item_link ?? []) {
|
|
242
|
+
const item = link.inventory_item;
|
|
243
|
+
if (!item?.id) continue;
|
|
244
|
+
const locationMap = {};
|
|
245
|
+
for (const location of locations) {
|
|
246
|
+
const level = item.location_levels?.find(
|
|
247
|
+
(l) => l.location_id === location.id
|
|
248
|
+
);
|
|
249
|
+
locationMap[location.id] = {
|
|
250
|
+
id: level?.id,
|
|
251
|
+
quantity: level?.stocked_quantity !== void 0 && level?.stocked_quantity !== null ? level.stocked_quantity : "",
|
|
252
|
+
checked: !!level,
|
|
253
|
+
disabledToggle: (level?.incoming_quantity ?? 0) > 0 || (level?.reserved_quantity ?? 0) > 0
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
inventory_items[item.id] = { locations: locationMap };
|
|
257
|
+
}
|
|
258
|
+
return { inventory_items };
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// src/pages/offers/[id]/inventory/offer-inventory-batch-page.tsx
|
|
262
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
263
|
+
var OfferInventoryBatchPage = () => {
|
|
264
|
+
const { id } = useParams();
|
|
265
|
+
const { t } = useTranslation3();
|
|
266
|
+
const { offer, isPending, isError, error } = useOffer(id, {
|
|
267
|
+
fields: OFFER_DETAIL_FIELDS
|
|
268
|
+
});
|
|
269
|
+
const { stock_locations, isPending: isLocationsPending } = useStockLocations({
|
|
270
|
+
limit: 100
|
|
271
|
+
});
|
|
272
|
+
if (isError) throw error;
|
|
273
|
+
const ready = !isPending && !!offer && !isLocationsPending && !!stock_locations;
|
|
274
|
+
return /* @__PURE__ */ jsxs3(RouteFocusModal, { children: [
|
|
275
|
+
/* @__PURE__ */ jsx3(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsx3("span", { className: "sr-only", children: t("offers.inventory.header") }) }),
|
|
276
|
+
/* @__PURE__ */ jsx3(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsx3("span", { className: "sr-only", children: t("offers.inventory.description") }) }),
|
|
277
|
+
ready && /* @__PURE__ */ jsx3(
|
|
278
|
+
InventoryBatchForm,
|
|
279
|
+
{
|
|
280
|
+
offer,
|
|
281
|
+
locations: stock_locations
|
|
282
|
+
}
|
|
283
|
+
)
|
|
284
|
+
] });
|
|
285
|
+
};
|
|
286
|
+
var Component = OfferInventoryBatchPage;
|
|
287
|
+
export {
|
|
288
|
+
Component,
|
|
289
|
+
OfferInventoryBatchPage
|
|
290
|
+
};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OFFER_DETAIL_FIELDS
|
|
3
|
+
} from "./chunk-RXZFEFNV.js";
|
|
4
|
+
import {
|
|
5
|
+
DataGrid,
|
|
6
|
+
createDataGridHelper,
|
|
7
|
+
createDataGridPriceColumns
|
|
8
|
+
} from "./chunk-4LVP635F.js";
|
|
9
|
+
import "./chunk-IQPN4PZJ.js";
|
|
10
|
+
import "./chunk-TKGWSUEI.js";
|
|
11
|
+
import {
|
|
12
|
+
KeyboundForm
|
|
13
|
+
} from "./chunk-U2ZFCAPX.js";
|
|
14
|
+
import {
|
|
15
|
+
RouteFocusModal,
|
|
16
|
+
useRouteModal
|
|
17
|
+
} from "./chunk-GDWBOQI5.js";
|
|
18
|
+
import "./chunk-3QSRE5LS.js";
|
|
19
|
+
import "./chunk-WIYFXWRI.js";
|
|
20
|
+
import "./chunk-INNFZYX2.js";
|
|
21
|
+
import {
|
|
22
|
+
usePricePreferences
|
|
23
|
+
} from "./chunk-4S6XGIC6.js";
|
|
24
|
+
import {
|
|
25
|
+
useCurrentSeller
|
|
26
|
+
} from "./chunk-QT7YFHCA.js";
|
|
27
|
+
import {
|
|
28
|
+
useOffer,
|
|
29
|
+
useUpdateOffer
|
|
30
|
+
} from "./chunk-UORPTGV2.js";
|
|
31
|
+
import "./chunk-LAVHRER2.js";
|
|
32
|
+
import "./chunk-Y7QKP6QU.js";
|
|
33
|
+
import "./chunk-RHKRREUU.js";
|
|
34
|
+
import "./chunk-ZA2KFUFR.js";
|
|
35
|
+
import "./chunk-RIN4CBRB.js";
|
|
36
|
+
import "./chunk-NBMM2TZK.js";
|
|
37
|
+
|
|
38
|
+
// src/pages/offers/[id]/pricing/offer-pricing-edit-page.tsx
|
|
39
|
+
import { useParams } from "react-router-dom";
|
|
40
|
+
|
|
41
|
+
// src/pages/offers/[id]/pricing/pricing-form/pricing-form.tsx
|
|
42
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
43
|
+
import { Button, toast } from "@medusajs/ui";
|
|
44
|
+
import { useMemo } from "react";
|
|
45
|
+
import { useForm, useWatch } from "react-hook-form";
|
|
46
|
+
import { useTranslation } from "react-i18next";
|
|
47
|
+
|
|
48
|
+
// src/pages/offers/[id]/pricing/pricing-form/schema.ts
|
|
49
|
+
import { z } from "zod";
|
|
50
|
+
var PriceCellSchema = z.union([z.coerce.number().min(0), z.literal("")]);
|
|
51
|
+
var PriceRowSchema = z.object({
|
|
52
|
+
id: z.string(),
|
|
53
|
+
currency_prices: z.record(z.string(), PriceCellSchema).default({})
|
|
54
|
+
});
|
|
55
|
+
var PricingFormSchema = z.object({
|
|
56
|
+
prices: z.array(PriceRowSchema).min(1)
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// src/pages/offers/[id]/pricing/pricing-form/pricing-form.tsx
|
|
60
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
61
|
+
var hasRules = (price) => (price.rules_count ?? 0) > 0;
|
|
62
|
+
var buildDefaults = (offer, currencies) => {
|
|
63
|
+
const basePrice = {
|
|
64
|
+
id: offer.id,
|
|
65
|
+
currency_prices: currencies.reduce(
|
|
66
|
+
(acc, code) => {
|
|
67
|
+
const existing = offer.price_set?.prices?.find(
|
|
68
|
+
(p) => !hasRules(p) && p.currency_code === code
|
|
69
|
+
);
|
|
70
|
+
acc[code] = existing?.amount ?? "";
|
|
71
|
+
return acc;
|
|
72
|
+
},
|
|
73
|
+
{}
|
|
74
|
+
)
|
|
75
|
+
};
|
|
76
|
+
return { prices: [basePrice] };
|
|
77
|
+
};
|
|
78
|
+
var PricingForm = ({ offer }) => {
|
|
79
|
+
const { currency_code, isPending: isSellerPending } = useCurrentSeller();
|
|
80
|
+
const currencies = useMemo(
|
|
81
|
+
() => currency_code ? [currency_code] : [],
|
|
82
|
+
[currency_code]
|
|
83
|
+
);
|
|
84
|
+
if (isSellerPending || !currencies.length) return null;
|
|
85
|
+
return /* @__PURE__ */ jsx(PricingFormInner, { offer, currencies });
|
|
86
|
+
};
|
|
87
|
+
var PricingFormInner = ({
|
|
88
|
+
offer,
|
|
89
|
+
currencies
|
|
90
|
+
}) => {
|
|
91
|
+
const { t } = useTranslation();
|
|
92
|
+
const { handleSuccess, setCloseOnEscape } = useRouteModal();
|
|
93
|
+
const { price_preferences: pricePreferences } = usePricePreferences({});
|
|
94
|
+
const defaults = useMemo(
|
|
95
|
+
() => buildDefaults(offer, currencies),
|
|
96
|
+
[offer, currencies]
|
|
97
|
+
);
|
|
98
|
+
const form = useForm({
|
|
99
|
+
defaultValues: defaults,
|
|
100
|
+
resolver: zodResolver(PricingFormSchema)
|
|
101
|
+
});
|
|
102
|
+
const columns = usePriceGridColumns({
|
|
103
|
+
currencies,
|
|
104
|
+
pricePreferences
|
|
105
|
+
});
|
|
106
|
+
const prices = useWatch({
|
|
107
|
+
control: form.control,
|
|
108
|
+
name: "prices",
|
|
109
|
+
defaultValue: defaults.prices
|
|
110
|
+
});
|
|
111
|
+
const { mutateAsync, isPending } = useUpdateOffer(offer.id);
|
|
112
|
+
const handleSubmit = form.handleSubmit(async (values) => {
|
|
113
|
+
const row = values.prices[0];
|
|
114
|
+
const submitted = [];
|
|
115
|
+
for (const [currency_code, amount] of Object.entries(
|
|
116
|
+
row.currency_prices ?? {}
|
|
117
|
+
)) {
|
|
118
|
+
if (amount === "" || amount === void 0 || amount === null) continue;
|
|
119
|
+
const num = Number(amount);
|
|
120
|
+
if (!Number.isFinite(num)) continue;
|
|
121
|
+
submitted.push({ amount: num, currency_code });
|
|
122
|
+
}
|
|
123
|
+
await mutateAsync(
|
|
124
|
+
{ prices: submitted },
|
|
125
|
+
{
|
|
126
|
+
onSuccess: () => {
|
|
127
|
+
toast.success(t("offers.pricing.successToast"));
|
|
128
|
+
handleSuccess();
|
|
129
|
+
},
|
|
130
|
+
onError: (e) => toast.error(e.message)
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
});
|
|
134
|
+
return /* @__PURE__ */ jsx(RouteFocusModal.Form, { form, "data-testid": "offer-pricing-edit-form", children: /* @__PURE__ */ jsxs(KeyboundForm, { onSubmit: handleSubmit, className: "flex size-full flex-col", children: [
|
|
135
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Header, {}),
|
|
136
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Body, { className: "flex flex-col overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
137
|
+
DataGrid,
|
|
138
|
+
{
|
|
139
|
+
state: form,
|
|
140
|
+
columns,
|
|
141
|
+
data: prices,
|
|
142
|
+
onEditingChange: (editing) => setCloseOnEscape(!editing)
|
|
143
|
+
}
|
|
144
|
+
) }),
|
|
145
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
146
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "small", type: "button", children: t("actions.cancel") }) }),
|
|
147
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", size: "small", isLoading: isPending, children: t("actions.save") })
|
|
148
|
+
] }) })
|
|
149
|
+
] }) });
|
|
150
|
+
};
|
|
151
|
+
var columnHelper = createDataGridHelper();
|
|
152
|
+
var usePriceGridColumns = ({
|
|
153
|
+
currencies = [],
|
|
154
|
+
pricePreferences = []
|
|
155
|
+
}) => {
|
|
156
|
+
const { t } = useTranslation();
|
|
157
|
+
return useMemo(() => {
|
|
158
|
+
return [
|
|
159
|
+
columnHelper.column({
|
|
160
|
+
id: "title",
|
|
161
|
+
name: t("fields.title"),
|
|
162
|
+
header: t("fields.title"),
|
|
163
|
+
cell: (context) => /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context, children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center gap-x-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: t("labels.prices") }) }) }),
|
|
164
|
+
disableHiding: true
|
|
165
|
+
}),
|
|
166
|
+
...createDataGridPriceColumns({
|
|
167
|
+
currencies,
|
|
168
|
+
pricePreferences,
|
|
169
|
+
getFieldName: (context, value) => {
|
|
170
|
+
if (context.column.id?.startsWith("currency_prices")) {
|
|
171
|
+
return `prices.${context.row.index}.currency_prices.${value}`;
|
|
172
|
+
}
|
|
173
|
+
return null;
|
|
174
|
+
},
|
|
175
|
+
t
|
|
176
|
+
})
|
|
177
|
+
];
|
|
178
|
+
}, [t, currencies, pricePreferences]);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
// src/pages/offers/[id]/pricing/offer-pricing-edit-page.tsx
|
|
182
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
183
|
+
var OfferPricingEditPage = () => {
|
|
184
|
+
const { id } = useParams();
|
|
185
|
+
const { offer, isPending, isError, error } = useOffer(id, {
|
|
186
|
+
fields: OFFER_DETAIL_FIELDS
|
|
187
|
+
});
|
|
188
|
+
if (isError) throw error;
|
|
189
|
+
return /* @__PURE__ */ jsx2(RouteFocusModal, { "data-testid": "offer-pricing-modal", children: !isPending && offer && /* @__PURE__ */ jsx2(PricingForm, { offer }) });
|
|
190
|
+
};
|
|
191
|
+
var Component = OfferPricingEditPage;
|
|
192
|
+
export {
|
|
193
|
+
Component,
|
|
194
|
+
OfferPricingEditPage
|
|
195
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OfferListPage
|
|
3
|
+
} from "./chunk-5ZVWOCAC.js";
|
|
4
|
+
import "./chunk-CFRWIQIZ.js";
|
|
5
|
+
import "./chunk-RXZFEFNV.js";
|
|
6
|
+
import "./chunk-C2FG3SX2.js";
|
|
7
|
+
import "./chunk-FQERBIVS.js";
|
|
8
|
+
import "./chunk-DB6ANJBO.js";
|
|
9
|
+
import "./chunk-PHOCVOZ5.js";
|
|
10
|
+
import "./chunk-AIF2KTEE.js";
|
|
11
|
+
import "./chunk-YN3FGNJM.js";
|
|
12
|
+
import "./chunk-KAZ5BYTQ.js";
|
|
13
|
+
import "./chunk-3EF54XFY.js";
|
|
14
|
+
import "./chunk-YV6MK4PZ.js";
|
|
15
|
+
import "./chunk-LRD242C7.js";
|
|
16
|
+
import "./chunk-QHQWEERJ.js";
|
|
17
|
+
import "./chunk-THHRRYRS.js";
|
|
18
|
+
import "./chunk-2MDGYHWN.js";
|
|
19
|
+
import "./chunk-WIYFXWRI.js";
|
|
20
|
+
import "./chunk-INNFZYX2.js";
|
|
21
|
+
import "./chunk-IQWK723D.js";
|
|
22
|
+
import "./chunk-UORPTGV2.js";
|
|
23
|
+
import "./chunk-BDGZ4EQO.js";
|
|
24
|
+
import "./chunk-LAVHRER2.js";
|
|
25
|
+
import "./chunk-Y7QKP6QU.js";
|
|
26
|
+
import "./chunk-RHKRREUU.js";
|
|
27
|
+
import "./chunk-ZA2KFUFR.js";
|
|
28
|
+
import "./chunk-RIN4CBRB.js";
|
|
29
|
+
import "./chunk-NBMM2TZK.js";
|
|
30
|
+
export {
|
|
31
|
+
OfferListPage
|
|
32
|
+
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CountrySelect
|
|
3
|
+
} from "./chunk-7CAFYKKA.js";
|
|
1
4
|
import {
|
|
2
5
|
assetUrl
|
|
3
6
|
} from "./chunk-KVKO6N4G.js";
|
|
7
|
+
import "./chunk-JRTZWK77.js";
|
|
4
8
|
import {
|
|
5
9
|
HandleInput
|
|
6
10
|
} from "./chunk-HJ56YXBU.js";
|
|
7
|
-
import {
|
|
8
|
-
CountrySelect
|
|
9
|
-
} from "./chunk-7CAFYKKA.js";
|
|
10
11
|
import {
|
|
11
12
|
Form
|
|
12
13
|
} from "./chunk-3QSRE5LS.js";
|
|
13
|
-
import "./chunk-JRTZWK77.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
retrieveActiveStore,
|
|
16
|
+
storeQueryKeys,
|
|
17
|
+
useStore
|
|
18
|
+
} from "./chunk-GXIAIITP.js";
|
|
18
19
|
import {
|
|
19
20
|
useLogout
|
|
20
21
|
} from "./chunk-F4OJN2F2.js";
|
|
@@ -22,24 +23,25 @@ import "./chunk-LRARA622.js";
|
|
|
22
23
|
import "./chunk-M6N4ISXL.js";
|
|
23
24
|
import "./chunk-S7EKBD2C.js";
|
|
24
25
|
import "./chunk-VXMOPVRH.js";
|
|
25
|
-
import "./chunk-IQWK723D.js";
|
|
26
26
|
import "./chunk-VV6IKGCN.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-NHFEY3EI.js";
|
|
28
28
|
import "./chunk-BOZJOOGW.js";
|
|
29
|
-
import "./chunk-RL7SFZOF.js";
|
|
30
29
|
import "./chunk-LWJF63JW.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-VXWN37PT.js";
|
|
34
|
-
import "./chunk-UL4O5M4S.js";
|
|
30
|
+
import "./chunk-T6LHVNWO.js";
|
|
31
|
+
import "./chunk-4S6XGIC6.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
useCreateSellerAccount,
|
|
34
|
+
useSellers
|
|
35
|
+
} from "./chunk-QT7YFHCA.js";
|
|
36
|
+
import "./chunk-IQWK723D.js";
|
|
37
|
+
import "./chunk-UORPTGV2.js";
|
|
38
|
+
import "./chunk-NXNJQZCP.js";
|
|
39
|
+
import "./chunk-VXWN37PT.js";
|
|
40
|
+
import "./chunk-RZLN2Q6G.js";
|
|
41
|
+
import "./chunk-NBPMNUKZ.js";
|
|
42
|
+
import "./chunk-QS6RWIBL.js";
|
|
40
43
|
import "./chunk-3B34B2M2.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-ZEVYT6IX.js";
|
|
44
|
+
import "./chunk-QNNJN4H6.js";
|
|
43
45
|
import "./chunk-A5DJIOHN.js";
|
|
44
46
|
import {
|
|
45
47
|
queryClient
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OrderListPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LNM2D2I4.js";
|
|
4
|
+
import "./chunk-L7QKFC5N.js";
|
|
4
5
|
import "./chunk-HHD2VUED.js";
|
|
5
6
|
import "./chunk-2ZFELO2L.js";
|
|
6
7
|
import "./chunk-26OOAKQ6.js";
|
|
7
8
|
import "./chunk-S2WEYEQR.js";
|
|
8
9
|
import "./chunk-X22KTLZ7.js";
|
|
9
|
-
import "./chunk-6WY5X4PE.js";
|
|
10
10
|
import "./chunk-6YA3C4NB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-AIZM66CG.js";
|
|
12
12
|
import "./chunk-CMHI2RPL.js";
|
|
13
|
-
import "./chunk-LQSLDDPT.js";
|
|
14
|
-
import "./chunk-UAE6XBYL.js";
|
|
15
13
|
import "./chunk-HB3BP55W.js";
|
|
16
14
|
import "./chunk-SYNUA6LQ.js";
|
|
15
|
+
import "./chunk-UAE6XBYL.js";
|
|
16
|
+
import "./chunk-LQSLDDPT.js";
|
|
17
17
|
import "./chunk-PXYDR7WQ.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JRTZWK77.js";
|
|
19
|
+
import "./chunk-OD3U3TX4.js";
|
|
19
20
|
import "./chunk-DB6ANJBO.js";
|
|
20
21
|
import "./chunk-PHOCVOZ5.js";
|
|
21
22
|
import "./chunk-AIF2KTEE.js";
|
|
@@ -23,33 +24,35 @@ import "./chunk-YN3FGNJM.js";
|
|
|
23
24
|
import "./chunk-KAZ5BYTQ.js";
|
|
24
25
|
import "./chunk-3EF54XFY.js";
|
|
25
26
|
import "./chunk-IQPN4PZJ.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-THHRRYRS.js";
|
|
27
|
+
import "./chunk-YV6MK4PZ.js";
|
|
28
28
|
import "./chunk-LRD242C7.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-QHQWEERJ.js";
|
|
30
|
+
import "./chunk-THHRRYRS.js";
|
|
31
|
+
import "./chunk-2MDGYHWN.js";
|
|
32
|
+
import "./chunk-INNFZYX2.js";
|
|
33
|
+
import "./chunk-GXIAIITP.js";
|
|
31
34
|
import "./chunk-F4OJN2F2.js";
|
|
32
35
|
import "./chunk-LRARA622.js";
|
|
33
36
|
import "./chunk-M6N4ISXL.js";
|
|
34
37
|
import "./chunk-S7EKBD2C.js";
|
|
35
38
|
import "./chunk-VXMOPVRH.js";
|
|
36
|
-
import "./chunk-IQWK723D.js";
|
|
37
39
|
import "./chunk-VV6IKGCN.js";
|
|
38
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-NHFEY3EI.js";
|
|
39
41
|
import "./chunk-BOZJOOGW.js";
|
|
40
|
-
import "./chunk-RL7SFZOF.js";
|
|
41
42
|
import "./chunk-LWJF63JW.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-T6LHVNWO.js";
|
|
44
|
+
import "./chunk-4S6XGIC6.js";
|
|
45
|
+
import "./chunk-QT7YFHCA.js";
|
|
46
|
+
import "./chunk-IQWK723D.js";
|
|
47
|
+
import "./chunk-UORPTGV2.js";
|
|
48
|
+
import "./chunk-NXNJQZCP.js";
|
|
44
49
|
import "./chunk-VXWN37PT.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-RZLN2Q6G.js";
|
|
51
|
+
import "./chunk-NBPMNUKZ.js";
|
|
52
|
+
import "./chunk-QS6RWIBL.js";
|
|
48
53
|
import "./chunk-3B34B2M2.js";
|
|
49
|
-
import "./chunk-RUE5BPC2.js";
|
|
50
54
|
import "./chunk-Y7QKP6QU.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-ZEVYT6IX.js";
|
|
55
|
+
import "./chunk-QNNJN4H6.js";
|
|
53
56
|
import "./chunk-A5DJIOHN.js";
|
|
54
57
|
import "./chunk-RHKRREUU.js";
|
|
55
58
|
import "./chunk-ZA2KFUFR.js";
|