@mercurjs/admin 2.2.0-canary.37 → 2.2.0-canary.39
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-26SSHLLG.js → add-campaign-promotions-NT4LQZQJ.js} +4 -4
- package/dist/{adjust-inventory-TECW4NNX.js → adjust-inventory-X45NEQFK.js} +1 -1
- package/dist/{api-key-management-detail-2LYSINFY.js → api-key-management-detail-HKNZPPR2.js} +3 -4
- package/dist/{api-key-management-list-RLATJRDL.js → api-key-management-list-SXHZJUJB.js} +2 -2
- package/dist/{api-key-management-sales-channels-EEM7UDTZ.js → api-key-management-sales-channels-4GLVMHU6.js} +1 -2
- package/dist/{attribute-create-HSR7XVKG.js → attribute-create-D4RUU5OT.js} +1 -1
- package/dist/{attribute-detail-G6APXXFT.js → attribute-detail-OU6557XI.js} +11 -2
- package/dist/{attribute-list-42GDF2PV.js → attribute-list-5LGYNGO7.js} +3 -3
- package/dist/{breadcrumb-DZTALOFP.js → breadcrumb-GHBR74WM.js} +2 -2
- package/dist/{breadcrumb-EPNBJF4V.js → breadcrumb-IEEJTH47.js} +1 -1
- package/dist/{campaign-detail-VMJQISAE.js → campaign-detail-EHNTH6A7.js} +6 -6
- package/dist/{campaign-list-W2YZAPUI.js → campaign-list-FFGRXEVJ.js} +2 -2
- package/dist/{categories-metadata-SWFS4FL4.js → categories-metadata-EKY6TSUK.js} +1 -1
- package/dist/{category-detail-I3EEPAQR.js → category-detail-HCRJDDA2.js} +3 -3
- package/dist/{category-list-QLHQST3D.js → category-list-7ILXI55P.js} +2 -2
- package/dist/{category-products-XGLUDL73.js → category-products-LZQATT5Z.js} +2 -2
- package/dist/{chunk-QM343PBJ.js → chunk-23OLYWMR.js} +1 -1
- package/dist/{chunk-E6VCLJNF.js → chunk-2DSCC2VR.js} +1 -1
- package/dist/{chunk-CMZ4KATG.js → chunk-2S2SBRZP.js} +3 -3
- package/dist/{chunk-L4KT5CLI.js → chunk-2YAVXVET.js} +1 -1
- package/dist/{chunk-SWQC5UPD.js → chunk-325DZAT2.js} +4 -4
- package/dist/{chunk-HMKXCYCJ.js → chunk-3SHHDCA6.js} +8 -3
- package/dist/{chunk-C4N5EJAD.js → chunk-4BCUGMOR.js} +0 -13
- package/dist/{chunk-FU3QYH6H.js → chunk-4C7L7TJT.js} +2 -26
- package/dist/{chunk-3UJQT6UR.js → chunk-4NAIC6RG.js} +5 -6
- package/dist/{chunk-BWRQJXHB.js → chunk-5DQED4UT.js} +1 -1
- package/dist/{chunk-U725ING6.js → chunk-5NC6SI6J.js} +1 -1
- package/dist/{chunk-4JUT54KO.js → chunk-73Y6HKIG.js} +1 -1
- package/dist/{chunk-57MFJ2HE.js → chunk-74WEDBZ7.js} +1 -1
- package/dist/{chunk-RWAEZQCV.js → chunk-7OKYEA6I.js} +96 -6
- package/dist/{chunk-57GNGL6K.js → chunk-7RWFRMQG.js} +1 -1
- package/dist/{chunk-MKNQ6BT6.js → chunk-7TWARCNU.js} +1 -1
- package/dist/{chunk-6YEVK7JJ.js → chunk-AVATBB62.js} +11 -17
- package/dist/{chunk-NS3GQ2J6.js → chunk-BILFRATX.js} +0 -9
- package/dist/{chunk-MIKJRLQI.js → chunk-BO4V6CQN.js} +2 -3
- package/dist/{chunk-6YEU2ZAD.js → chunk-CE2WRTS7.js} +1 -1
- package/dist/{chunk-N5H2J6HE.js → chunk-CN4FCZPK.js} +2 -2
- package/dist/{chunk-RLGMY7JJ.js → chunk-CY263OE4.js} +1 -1
- package/dist/{chunk-KUKBV4XN.js → chunk-CYACZXMQ.js} +1 -1
- package/dist/{chunk-YAJDG3W7.js → chunk-DI2KBXVH.js} +1 -1
- package/dist/{chunk-YLQCULOV.js → chunk-DISTPZNS.js} +1 -1
- package/dist/{chunk-NXMD36QG.js → chunk-EUXCKJPT.js} +1 -1
- package/dist/{chunk-2MRYNLVT.js → chunk-F6NPDZHW.js} +1 -1
- package/dist/{chunk-AIEPAHO5.js → chunk-FLPKTLXN.js} +2 -2
- package/dist/{chunk-OI4DJXUL.js → chunk-FMJBQE56.js} +1 -1
- package/dist/{chunk-PAUULPNC.js → chunk-FNJEXQ2Z.js} +2 -2
- package/dist/{chunk-V7YJ53P5.js → chunk-FZPSX44L.js} +2 -2
- package/dist/{chunk-POMQZ6PN.js → chunk-GUDWUAMT.js} +1 -1
- package/dist/{chunk-TG5BBZ3B.js → chunk-HI7NZVSJ.js} +1 -1
- package/dist/{chunk-SJHBNENS.js → chunk-HSL5IICN.js} +15 -6
- package/dist/{chunk-MHCIHDGF.js → chunk-HWWET5ZP.js} +1 -1
- package/dist/{chunk-5YWQDIVG.js → chunk-I3ARNGRC.js} +1 -1
- package/dist/{chunk-EMW5WXXR.js → chunk-IQDZZ5EQ.js} +1 -1
- package/dist/{chunk-S6A4FVM2.js → chunk-IWBQZK6E.js} +0 -4
- package/dist/{chunk-LBLWPBST.js → chunk-IZDTQFCP.js} +3 -1
- package/dist/{chunk-YRGPQ2C4.js → chunk-JUMT5GX7.js} +1 -1
- package/dist/{chunk-4OCWOY2F.js → chunk-JXSXBSV6.js} +8 -8
- package/dist/{chunk-AQIW7R4Y.js → chunk-KC4J2WOM.js} +1 -1
- package/dist/{chunk-GX7YQ6GM.js → chunk-LRJNSCMR.js} +1 -1
- package/dist/{chunk-RZ43M34Q.js → chunk-LZEEPVQY.js} +61 -57
- package/dist/{chunk-U5MDOZS7.js → chunk-MANRAV52.js} +1 -1
- package/dist/{chunk-4NE4EIHO.js → chunk-MYJJMHR5.js} +1 -1
- package/dist/{chunk-OTXOV6YU.js → chunk-NEGOGYEO.js} +1 -1
- package/dist/{chunk-ENSI7NL7.js → chunk-O5MW4WPZ.js} +1 -1
- package/dist/{chunk-7DHSWPU2.js → chunk-PRSTCHB5.js} +1 -1
- package/dist/{chunk-XQCG2ORD.js → chunk-PSGHE5YJ.js} +2 -2
- package/dist/{chunk-4X4MNAXL.js → chunk-PWLDTJJX.js} +1 -1
- package/dist/{chunk-XEB5I2KE.js → chunk-Q4R2O7XF.js} +2 -2
- package/dist/{chunk-AHUVAYZD.js → chunk-QH34LF36.js} +1 -1
- package/dist/{chunk-GML7DINQ.js → chunk-RDUSAVT3.js} +1 -1
- package/dist/{chunk-PPMWEQP3.js → chunk-RIURQMDE.js} +71 -34
- package/dist/{chunk-LRKN7IQH.js → chunk-RNDDYLHV.js} +1 -1
- package/dist/{chunk-EA3XMVOS.js → chunk-S22SK4KO.js} +1 -1
- package/dist/{chunk-QEXIOKNZ.js → chunk-SLKOHWKT.js} +1 -1
- package/dist/{chunk-THNFAN23.js → chunk-VGXJXU7X.js} +1 -1
- package/dist/{chunk-GCYUOP4W.js → chunk-VSKHV5QF.js} +1 -1
- package/dist/{offers-T4ARWA47.js → chunk-VSLKILOI.js} +124 -253
- package/dist/{chunk-E32O3DUM.js → chunk-WKR3Y2KD.js} +2 -2
- package/dist/{chunk-ZDEIYWCK.js → chunk-WNTHKSLS.js} +1 -1
- package/dist/{chunk-DUVTXDNA.js → chunk-XFKDDRB6.js} +1 -1
- package/dist/{chunk-X3TWPSUM.js → chunk-Y62TJJ3P.js} +1 -1
- package/dist/{chunk-CDVQK7JZ.js → chunk-YNK25LVO.js} +1 -1
- package/dist/{chunk-HBT7GVJD.js → chunk-YUUDST4E.js} +57 -49
- package/dist/{chunk-C6AU3U22.js → chunk-ZO3OJ2UQ.js} +1 -1
- package/dist/{collection-add-products-2G37ZL2J.js → collection-add-products-QIEQCILA.js} +2 -2
- package/dist/{collection-detail-AB6HGJDM.js → collection-detail-PTVRSXT3.js} +3 -3
- package/dist/{collection-list-UHFUKA5U.js → collection-list-O5XBGFTN.js} +5 -5
- package/dist/{collection-metadata-UEYHULPR.js → collection-metadata-TOHJL5WW.js} +1 -1
- package/dist/{commission-rule-detail-RO5KXLGT.js → commission-rule-detail-VTP2JKEG.js} +3 -3
- package/dist/{commissions-list-KQ2TUJAW.js → commissions-list-T7735Y35.js} +4 -4
- package/dist/{customer-detail-ZYJDB47Y.js → customer-detail-IPM3SBHE.js} +5 -5
- package/dist/{customer-group-add-customers-GSEUGBTJ.js → customer-group-add-customers-QBRVKXGO.js} +1 -1
- package/dist/{customer-group-detail-5VSUJTR3.js → customer-group-detail-3HV3BJOU.js} +3 -3
- package/dist/{customer-group-list-BRQRKORR.js → customer-group-list-IR6CW36P.js} +4 -4
- package/dist/{customer-group-metadata-S6NJRGYO.js → customer-group-metadata-4W32YXXP.js} +1 -1
- package/dist/{customer-list-6PRFTWMO.js → customer-list-276YPXTE.js} +2 -2
- package/dist/{customer-metadata-C66G3AS7.js → customer-metadata-L622ZJ43.js} +1 -1
- package/dist/{customers-add-customer-group-56GS7TR7.js → customers-add-customer-group-PWKJZJBP.js} +3 -3
- package/dist/{edit-inventory-item-IIJH26PK.js → edit-inventory-item-73BY4I5T.js} +1 -1
- package/dist/{edit-inventory-item-attributes-KTMOGG4V.js → edit-inventory-item-attributes-ZMB343AB.js} +1 -1
- package/dist/{edit-rules-WOQNXKZZ.js → edit-rules-OK44K33O.js} +1 -1
- package/dist/index.css +5187 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.js +173 -173
- package/dist/{inventory-create-WJ3CCFTD.js → inventory-create-66YM6FST.js} +3 -3
- package/dist/{inventory-detail-QY56I2KX.js → inventory-detail-RYFIUKTJ.js} +3 -3
- package/dist/{inventory-list-AB4OHYMU.js → inventory-list-U4W4AP4E.js} +2 -2
- package/dist/{inventory-metadata-OS6KHY52.js → inventory-metadata-W6Z6J2Z2.js} +1 -1
- package/dist/{inventory-stock-F2BKMXY3.js → inventory-stock-A3TSIGMD.js} +2 -2
- package/dist/loader-HRFMJ5TM.js +36 -0
- package/dist/{loader-P2HT7LSL.js → loader-TIPLOZF7.js} +2 -2
- package/dist/{location-detail-LK736WHY.js → location-detail-CNETNX3M.js} +1 -1
- package/dist/{location-fulfillment-providers-VVJGPYJI.js → location-fulfillment-providers-TMPZH2KQ.js} +4 -4
- package/dist/{location-list-HFVPD3JF.js → location-list-RHUT7IRA.js} +1 -1
- package/dist/{location-sales-channels-WZJ3JWQF.js → location-sales-channels-ZQBQ3VDH.js} +1 -2
- package/dist/{location-service-zone-create-WPSYG3NX.js → location-service-zone-create-U77V3ROT.js} +2 -2
- package/dist/{location-service-zone-manage-areas-ZH2ICSC7.js → location-service-zone-manage-areas-FUUAAIDJ.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-OLABLTSL.js → location-service-zone-shipping-option-create-3PQ2EYD7.js} +4 -4
- package/dist/{location-service-zone-shipping-option-pricing-TARZ34TW.js → location-service-zone-shipping-option-pricing-UZ577SNK.js} +2 -2
- package/dist/{login-IOW5R2ZZ.js → login-OKBXMSKY.js} +1 -1
- package/dist/{marketplace-add-currencies-FPDYEYCL.js → marketplace-add-currencies-KDNMN57C.js} +1 -1
- package/dist/{marketplace-detail-7WGPHRQM.js → marketplace-detail-KBJSCI2N.js} +3 -3
- package/dist/{marketplace-metadata-RNNA4S3F.js → marketplace-metadata-VXFQ3JZW.js} +1 -1
- package/dist/{offer-detail-page-3RAFKFK4.js → offer-detail-page-D3J547CC.js} +134 -121
- package/dist/{offer-variant-detail-page-5FS6D46I.js → offer-variant-detail-page-P4CKF442.js} +5 -5
- package/dist/offers-7JTHN6FI.js +183 -0
- package/dist/{order-create-claim-GOP565XH.js → order-create-claim-CHXOZH2C.js} +4 -4
- package/dist/{order-create-edit-DK4QG2CR.js → order-create-edit-O4AOAOF7.js} +4 -4
- package/dist/{order-create-exchange-ZHJ3T5QJ.js → order-create-exchange-CG3ODKTK.js} +5 -5
- package/dist/{order-create-refund-DWIGXSYJ.js → order-create-refund-4ZO73NWS.js} +1 -1
- package/dist/{order-create-return-63X5PUTT.js → order-create-return-DDOYLDT7.js} +1 -1
- package/dist/{order-detail-6UAWPZI2.js → order-detail-V6AL4RWB.js} +3 -3
- package/dist/{order-edit-billing-address-IU6W76P3.js → order-edit-billing-address-KVX4EPM7.js} +2 -2
- package/dist/{order-edit-email-OAU3YX45.js → order-edit-email-GLAQZCIT.js} +1 -1
- package/dist/{order-edit-shipping-address-RAO5IKGM.js → order-edit-shipping-address-PF54SFAG.js} +1 -1
- package/dist/{order-list-FFPY5OGR.js → order-list-WHZJ6B4G.js} +4 -4
- package/dist/{order-metadata-IUBTCJQW.js → order-metadata-L6SCT4MO.js} +1 -1
- package/dist/{order-request-transfer-2J4CN5JP.js → order-request-transfer-BLQQ66IF.js} +1 -1
- package/dist/pages/index.d.ts +9 -9
- package/dist/pages/index.js +64 -63
- package/dist/{payout-list-A2KQTZMZ.js → payout-list-SOWVPSFQ.js} +2 -2
- package/dist/{price-list-configuration-2NFE4MNW.js → price-list-configuration-OTSYJ3AQ.js} +4 -4
- package/dist/{price-list-create-UMA2NB3L.js → price-list-create-2422HUBU.js} +7 -7
- package/dist/{price-list-detail-7ANY3XOC.js → price-list-detail-CL3FMPVN.js} +3 -3
- package/dist/{price-list-list-6II3XYUA.js → price-list-list-A42VGE3L.js} +2 -2
- package/dist/{price-list-prices-add-XLFLGFVG.js → price-list-prices-add-OOG6526Y.js} +5 -5
- package/dist/{price-list-prices-edit-MT6BFF3M.js → price-list-prices-edit-ZQE3Z3NK.js} +3 -3
- package/dist/{product-add-existing-attributes-3BJ5KV2V.js → product-add-existing-attributes-DKKPTZMB.js} +1 -1
- package/dist/{product-bulk-edit-3AJGOE6E.js → product-bulk-edit-TRI2KKHW.js} +1 -1
- package/dist/{product-create-2SELD5CI.js → product-create-IX4TOFNU.js} +5 -5
- package/dist/{product-detail-O7MVTHSN.js → product-detail-BLZYOXLS.js} +3 -3
- package/dist/{product-list-SIQDX4AT.js → product-list-PLXUL3YW.js} +3 -3
- package/dist/{product-media-S6L3IHUO.js → product-media-TDEPDO3W.js} +2 -2
- package/dist/{product-metadata-4O5YDITE.js → product-metadata-KBT4QGRF.js} +1 -1
- package/dist/{product-organization-BYPV5QSZ.js → product-organization-HFC44AOV.js} +1 -1
- package/dist/{product-sales-channels-73JEGJIY.js → product-sales-channels-C6UUHWGB.js} +1 -2
- package/dist/{product-tag-create-PSLHVOED.js → product-tag-create-AHG3Y4GE.js} +1 -1
- package/dist/{product-tag-detail-SVDEVPMA.js → product-tag-detail-222RARIO.js} +5 -5
- package/dist/{product-tag-edit-7RYZN7ZP.js → product-tag-edit-ACHNVZZP.js} +1 -1
- package/dist/{product-tag-list-4ECQFBOA.js → product-tag-list-EZ4JUW4U.js} +5 -5
- package/dist/{product-tag-metadata-Z26DWSRN.js → product-tag-metadata-4EUBENJ6.js} +1 -1
- package/dist/{product-type-detail-WSHUE56F.js → product-type-detail-SSMTOG47.js} +3 -3
- package/dist/{product-type-list-EP2YCYLK.js → product-type-list-XTVTT7ZA.js} +2 -2
- package/dist/{product-type-metadata-2YKEGWRE.js → product-type-metadata-RAVB4BK2.js} +1 -1
- package/dist/{product-variant-detail-OZYQPDVX.js → product-variant-detail-7CFNAI3A.js} +1 -1
- package/dist/{product-variant-edit-M74OAUM5.js → product-variant-edit-QJK2CLID.js} +1 -1
- package/dist/{product-variant-metadata-VA4NDA53.js → product-variant-metadata-7VHJ4U6L.js} +1 -1
- package/dist/{promotion-create-TOOHWR6S.js → promotion-create-AWZ7YA5T.js} +1 -1
- package/dist/{promotion-detail-25JCCLU2.js → promotion-detail-EEDQ3GQD.js} +4 -4
- package/dist/{promotion-list-RXLVU4G2.js → promotion-list-SXUXYV6R.js} +5 -5
- package/dist/{refund-reason-create-NA42SWWI.js → refund-reason-create-UA3XS6DP.js} +1 -1
- package/dist/{refund-reason-edit-WMKHZ6SN.js → refund-reason-edit-3TAGKV3U.js} +1 -1
- package/dist/{refund-reason-list-XMDZO34F.js → refund-reason-list-OVTNXVLP.js} +1 -1
- package/dist/{region-add-countries-NFJYG4JA.js → region-add-countries-IIHNNE76.js} +1 -1
- package/dist/{region-create-RW42MXKY.js → region-create-PHZNUCJR.js} +1 -1
- package/dist/{region-detail-S7GNXX5B.js → region-detail-AECQQ62I.js} +2 -2
- package/dist/{region-list-ZP7QIWQ3.js → region-list-IBQW5J3R.js} +2 -2
- package/dist/{region-metadata-GWN4DS4V.js → region-metadata-3KASKFZ3.js} +1 -1
- package/dist/{reservation-detail-JSLACR7K.js → reservation-detail-MAWHNY2H.js} +1 -1
- package/dist/{reservation-list-UGXB2P7K.js → reservation-list-IUYMT4U6.js} +2 -2
- package/dist/{reservation-metadata-YNCMFQIX.js → reservation-metadata-ENY4V2ED.js} +1 -1
- package/dist/{reset-password-GBVMOKXP.js → reset-password-UIDUOHVW.js} +1 -1
- package/dist/{return-reason-list-AW6MMUKD.js → return-reason-list-FRHFRNKK.js} +2 -2
- package/dist/{sales-channel-add-products-LRANEISZ.js → sales-channel-add-products-ZCUVTJQN.js} +2 -2
- package/dist/{sales-channel-detail-5XXO3BXP.js → sales-channel-detail-EZVCWMMS.js} +3 -3
- package/dist/{sales-channel-list-PPESHWHA.js → sales-channel-list-LVW7XE7K.js} +3 -4
- package/dist/{sales-channel-metadata-7HVLURGB.js → sales-channel-metadata-RXC4IDD3.js} +1 -1
- package/dist/{shipping-option-type-create-UFXLX52L.js → shipping-option-type-create-GHOCZT64.js} +1 -1
- package/dist/{shipping-option-type-detail-OCOL5H4I.js → shipping-option-type-detail-W32EHTBS.js} +1 -1
- package/dist/{shipping-option-type-edit-2WVBG2XS.js → shipping-option-type-edit-KRIP6HTC.js} +1 -1
- package/dist/{shipping-option-type-list-UCTCZPAM.js → shipping-option-type-list-Y43XD2XM.js} +3 -3
- package/dist/{shipping-profile-metadata-N2AXNBZT.js → shipping-profile-metadata-HMQZ6LGB.js} +1 -1
- package/dist/{shipping-profiles-list-CBTZYI33.js → shipping-profiles-list-4VHKTKIL.js} +2 -2
- package/dist/{store-address-edit-KITVKFMG.js → store-address-edit-B4LWVP73.js} +1 -1
- package/dist/{store-bulk-edit-I6QHGMEC.js → store-bulk-edit-IXWGUFY2.js} +2 -2
- package/dist/{store-closure-edit-MMGDJGV3.js → store-closure-edit-H3EKROXP.js} +1 -1
- package/dist/{store-create-QUGCV5IG.js → store-create-PL2XGIR5.js} +1 -1
- package/dist/{store-details-XNBFIWDL.js → store-details-4DAUF3CD.js} +6 -6
- package/dist/{store-edit-BBOEDZNV.js → store-edit-ESFC2UXE.js} +3 -3
- package/dist/{store-list-RVZG3UD3.js → store-list-KANREHW5.js} +5 -5
- package/dist/{store-member-invite-3G4PCBJ2.js → store-member-invite-U4UQS5VC.js} +1 -1
- package/dist/{store-payment-details-edit-5LT4OIMA.js → store-payment-details-edit-ERRJDLBO.js} +1 -1
- package/dist/{store-professional-details-edit-ARR5WRGC.js → store-professional-details-edit-VD2J4VYV.js} +1 -1
- package/dist/{tax-region-create-7432IFN5.js → tax-region-create-4YEJ3HFY.js} +2 -2
- package/dist/{tax-region-detail-Q3NZI26Z.js → tax-region-detail-L7STT6C7.js} +1 -1
- package/dist/{tax-region-edit-UMPFELDL.js → tax-region-edit-6JOV3POI.js} +1 -1
- package/dist/{tax-region-metadata-UAGL3HYV.js → tax-region-metadata-N3QNTXME.js} +1 -1
- package/dist/{tax-region-province-detail-JQQQXONY.js → tax-region-province-detail-2GRPOSWS.js} +1 -1
- package/dist/{tax-region-tax-override-create-WRUNCP67.js → tax-region-tax-override-create-JZHOHCXF.js} +5 -5
- package/dist/{tax-region-tax-override-edit-EOIDY4LX.js → tax-region-tax-override-edit-SZRD23P4.js} +5 -5
- package/dist/{user-invite-WIHSREOW.js → user-invite-UN6NCCII.js} +1 -1
- package/dist/{user-list-3C6GRWMJ.js → user-list-27ZKEJXN.js} +2 -2
- package/dist/{user-metadata-EKIWOTII.js → user-metadata-BD73LJWB.js} +1 -1
- package/package.json +9 -6
- package/dist/chunk-DGCPYCHU.js +0 -98
- package/dist/loader-DHCULYGY.js +0 -32
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OFFERS_PAGE_SIZE,
|
|
3
|
-
OFFER_PRODUCT_LIST_FIELDS
|
|
4
|
-
} from "./chunk-S6A4FVM2.js";
|
|
5
1
|
import {
|
|
6
2
|
useBulkDeleteOffers
|
|
7
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IZDTQFCP.js";
|
|
8
4
|
import {
|
|
9
5
|
CategoryCell,
|
|
10
6
|
CategoryHeader,
|
|
@@ -15,25 +11,9 @@ import {
|
|
|
15
11
|
ProductCell,
|
|
16
12
|
ProductHeader
|
|
17
13
|
} from "./chunk-FWPGOIFA.js";
|
|
18
|
-
import "./chunk-DB6ANJBO.js";
|
|
19
14
|
import {
|
|
20
15
|
PlaceholderCell
|
|
21
16
|
} from "./chunk-PHOCVOZ5.js";
|
|
22
|
-
import "./chunk-E74OUNA3.js";
|
|
23
|
-
import "./chunk-WIYFXWRI.js";
|
|
24
|
-
import "./chunk-FQERBIVS.js";
|
|
25
|
-
import {
|
|
26
|
-
_DataTable,
|
|
27
|
-
useDataTable
|
|
28
|
-
} from "./chunk-SJHBNENS.js";
|
|
29
|
-
import "./chunk-YN3FGNJM.js";
|
|
30
|
-
import "./chunk-ZAOEFQ6K.js";
|
|
31
|
-
import "./chunk-PAYQJPGK.js";
|
|
32
|
-
import {
|
|
33
|
-
SingleColumnPage
|
|
34
|
-
} from "./chunk-H6MYB7GB.js";
|
|
35
|
-
import "./chunk-UZWFZMOX.js";
|
|
36
|
-
import "./chunk-XQNVC4Q7.js";
|
|
37
17
|
import {
|
|
38
18
|
useQueryParams
|
|
39
19
|
} from "./chunk-THHRRYRS.js";
|
|
@@ -43,79 +23,25 @@ import {
|
|
|
43
23
|
import {
|
|
44
24
|
useProductTags
|
|
45
25
|
} from "./chunk-ABS7HMLY.js";
|
|
46
|
-
import "./chunk-R325CPYC.js";
|
|
47
|
-
import "./chunk-YNN2YNSE.js";
|
|
48
|
-
import "./chunk-J54BZXZX.js";
|
|
49
|
-
import "./chunk-JI7HMGMO.js";
|
|
50
|
-
import "./chunk-F5NW4XBU.js";
|
|
51
|
-
import "./chunk-HLL6GLZO.js";
|
|
52
|
-
import "./chunk-CARSKIPW.js";
|
|
53
|
-
import "./chunk-R4O667NT.js";
|
|
54
|
-
import "./chunk-MO7TNIVQ.js";
|
|
55
26
|
import {
|
|
56
27
|
useProductTypes
|
|
57
28
|
} from "./chunk-EWFOFSF7.js";
|
|
58
|
-
import "./chunk-G5KNNOXX.js";
|
|
59
|
-
import "./chunk-VHCDSNXF.js";
|
|
60
|
-
import "./chunk-A2F5MDPU.js";
|
|
61
|
-
import "./chunk-IC2PLPRP.js";
|
|
62
|
-
import "./chunk-L7DIEO5B.js";
|
|
63
|
-
import "./chunk-LSMTJU6Y.js";
|
|
64
29
|
import {
|
|
65
30
|
useCollections
|
|
66
31
|
} from "./chunk-BNFTJW4L.js";
|
|
67
|
-
import "./chunk-EJY35WBK.js";
|
|
68
|
-
import "./chunk-GYRTURN7.js";
|
|
69
|
-
import "./chunk-GCEOEV6P.js";
|
|
70
|
-
import "./chunk-Q6GUA5VE.js";
|
|
71
|
-
import "./chunk-VXW3BCN2.js";
|
|
72
|
-
import "./chunk-GLZLBHFC.js";
|
|
73
|
-
import "./chunk-WF3ZDT5Z.js";
|
|
74
|
-
import "./chunk-PYF5EER5.js";
|
|
75
32
|
import {
|
|
76
33
|
useSellers
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-RGS5ZOY7.js";
|
|
34
|
+
} from "./chunk-BILFRATX.js";
|
|
79
35
|
import {
|
|
80
36
|
ActionMenu
|
|
81
37
|
} from "./chunk-BDGZ4EQO.js";
|
|
82
|
-
import "./chunk-MW47LDBT.js";
|
|
83
38
|
import {
|
|
84
39
|
useProductCategories
|
|
85
40
|
} from "./chunk-JZJT26E3.js";
|
|
86
|
-
import "./chunk-LAVHRER2.js";
|
|
87
|
-
import "./chunk-Y7QKP6QU.js";
|
|
88
|
-
import "./chunk-INNFZYX2.js";
|
|
89
|
-
import {
|
|
90
|
-
useProducts
|
|
91
|
-
} from "./chunk-ZKHF75MZ.js";
|
|
92
|
-
import "./chunk-RHKRREUU.js";
|
|
93
|
-
import "./chunk-ZA2KFUFR.js";
|
|
94
|
-
import "./chunk-LXZXXOJ3.js";
|
|
95
41
|
import {
|
|
96
42
|
__toESM
|
|
97
43
|
} from "./chunk-NBMM2TZK.js";
|
|
98
44
|
|
|
99
|
-
// src/pages/offers/offer-list-page.tsx
|
|
100
|
-
import { Children as Children2 } from "react";
|
|
101
|
-
|
|
102
|
-
// src/pages/offers/_components/offer-list-table.tsx
|
|
103
|
-
import { Container } from "@medusajs/ui";
|
|
104
|
-
import { Children } from "react";
|
|
105
|
-
import { Outlet } from "react-router-dom";
|
|
106
|
-
|
|
107
|
-
// src/pages/offers/_components/offer-list-data-table.tsx
|
|
108
|
-
import { toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
109
|
-
import { keepPreviousData } from "@tanstack/react-query";
|
|
110
|
-
import { useState } from "react";
|
|
111
|
-
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
112
|
-
|
|
113
|
-
// src/pages/offers/_components/use-offer-table-columns.tsx
|
|
114
|
-
import { Checkbox, Text } from "@medusajs/ui";
|
|
115
|
-
import { createColumnHelper } from "@tanstack/react-table";
|
|
116
|
-
import { useMemo } from "react";
|
|
117
|
-
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
118
|
-
|
|
119
45
|
// src/pages/offers/_components/offer-actions.tsx
|
|
120
46
|
import { BuildingStorefront, Trash } from "@medusajs/icons";
|
|
121
47
|
import { toast, usePrompt } from "@medusajs/ui";
|
|
@@ -180,24 +106,15 @@ var OfferActions = ({ product }) => {
|
|
|
180
106
|
};
|
|
181
107
|
|
|
182
108
|
// src/pages/offers/_components/use-offer-table-columns.tsx
|
|
109
|
+
import { Checkbox, Text } from "@medusajs/ui";
|
|
110
|
+
import { createColumnHelper } from "@tanstack/react-table";
|
|
111
|
+
import { useMemo } from "react";
|
|
112
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
183
113
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
184
114
|
var columnHelper = createColumnHelper();
|
|
185
|
-
var
|
|
186
|
-
var collectOfferIds = (row) => (row.variants ?? []).flatMap((v) => (v.offers ?? []).map((o) => o.id));
|
|
187
|
-
var collectOfferSellers = (row) => {
|
|
188
|
-
const seen = /* @__PURE__ */ new Map();
|
|
189
|
-
for (const variant of row.variants ?? []) {
|
|
190
|
-
for (const offer of variant.offers ?? []) {
|
|
191
|
-
const seller = offer.seller;
|
|
192
|
-
if (seller?.id && !seen.has(seller.id)) {
|
|
193
|
-
seen.set(seller.id, seller);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return Array.from(seen.values());
|
|
198
|
-
};
|
|
199
|
-
var useOfferTableColumns = () => {
|
|
115
|
+
var useOfferTableColumns = (options) => {
|
|
200
116
|
const { t } = useTranslation2();
|
|
117
|
+
const hideStoreAction = options?.hideStoreAction ?? false;
|
|
201
118
|
return useMemo(
|
|
202
119
|
() => [
|
|
203
120
|
columnHelper.display({
|
|
@@ -225,19 +142,30 @@ var useOfferTableColumns = () => {
|
|
|
225
142
|
ProductCell,
|
|
226
143
|
{
|
|
227
144
|
product: {
|
|
228
|
-
title: row.original.title ?? "",
|
|
229
|
-
thumbnail: row.original.thumbnail ?? null
|
|
145
|
+
title: row.original.product?.title ?? "",
|
|
146
|
+
thumbnail: row.original.product?.thumbnail ?? null
|
|
230
147
|
}
|
|
231
148
|
}
|
|
232
149
|
)
|
|
233
150
|
}),
|
|
151
|
+
...hideStoreAction ? [] : [
|
|
152
|
+
columnHelper.display({
|
|
153
|
+
id: "store",
|
|
154
|
+
header: t("offers.fields.store"),
|
|
155
|
+
cell: ({ row }) => {
|
|
156
|
+
const name = row.original.seller?.name;
|
|
157
|
+
if (!name) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
158
|
+
return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: name });
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
],
|
|
234
162
|
columnHelper.display({
|
|
235
163
|
id: "categories",
|
|
236
164
|
header: () => /* @__PURE__ */ jsx2(CategoryHeader, {}),
|
|
237
165
|
cell: ({ row }) => /* @__PURE__ */ jsx2(
|
|
238
166
|
CategoryCell,
|
|
239
167
|
{
|
|
240
|
-
categories: row.original.categories ?? void 0
|
|
168
|
+
categories: row.original.product?.categories ?? void 0
|
|
241
169
|
}
|
|
242
170
|
)
|
|
243
171
|
}),
|
|
@@ -245,53 +173,105 @@ var useOfferTableColumns = () => {
|
|
|
245
173
|
id: "collection",
|
|
246
174
|
header: t("fields.collection"),
|
|
247
175
|
cell: ({ row }) => {
|
|
248
|
-
const collection = row.original.collection;
|
|
176
|
+
const collection = row.original.product?.collection;
|
|
249
177
|
if (!collection?.title) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
250
178
|
return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: collection.title });
|
|
251
179
|
}
|
|
252
180
|
}),
|
|
253
181
|
columnHelper.display({
|
|
254
182
|
id: "variants",
|
|
255
|
-
header: t("
|
|
256
|
-
cell: ({ row }) =>
|
|
257
|
-
count
|
|
258
|
-
|
|
183
|
+
header: () => /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx2("span", { children: t("fields.variants") }) }),
|
|
184
|
+
cell: ({ row }) => {
|
|
185
|
+
const count = row.original.variant_count;
|
|
186
|
+
if (!count) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
187
|
+
return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: t("products.variantCount", { count }) });
|
|
188
|
+
}
|
|
259
189
|
}),
|
|
260
190
|
columnHelper.display({
|
|
261
191
|
id: "status",
|
|
262
192
|
header: () => /* @__PURE__ */ jsx2(ProductStatusHeader, {}),
|
|
263
193
|
cell: ({ row }) => {
|
|
264
|
-
const status = row.original.status;
|
|
194
|
+
const status = row.original.product?.status;
|
|
265
195
|
if (!status) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
266
196
|
return /* @__PURE__ */ jsx2(ProductStatusCell, { status });
|
|
267
197
|
}
|
|
268
198
|
}),
|
|
269
199
|
columnHelper.display({
|
|
270
200
|
id: "actions",
|
|
271
|
-
cell: ({ row }) =>
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
offerIds: collectOfferIds(row.original),
|
|
279
|
-
sellerId: sellers.length === 1 ? sellers[0].id ?? null : null
|
|
280
|
-
}
|
|
201
|
+
cell: ({ row }) => /* @__PURE__ */ jsx2(
|
|
202
|
+
OfferActions,
|
|
203
|
+
{
|
|
204
|
+
product: {
|
|
205
|
+
id: row.original.product_id,
|
|
206
|
+
offerIds: [row.original.id],
|
|
207
|
+
sellerId: hideStoreAction ? null : row.original.seller_id ?? null
|
|
281
208
|
}
|
|
282
|
-
|
|
283
|
-
|
|
209
|
+
}
|
|
210
|
+
)
|
|
284
211
|
})
|
|
285
212
|
],
|
|
286
|
-
[t]
|
|
213
|
+
[t, hideStoreAction]
|
|
214
|
+
);
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
// src/pages/offers/_components/use-offer-table-commands.tsx
|
|
218
|
+
import { toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
219
|
+
import { useMemo as useMemo2 } from "react";
|
|
220
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
221
|
+
var useOfferTableCommands = (options) => {
|
|
222
|
+
const { t } = useTranslation3();
|
|
223
|
+
const prompt = usePrompt2();
|
|
224
|
+
const { mutateAsync: bulkDelete } = useBulkDeleteOffers();
|
|
225
|
+
const onDeleted = options?.onDeleted;
|
|
226
|
+
return useMemo2(
|
|
227
|
+
() => [
|
|
228
|
+
{
|
|
229
|
+
label: t("offers.actions.bulkDelete"),
|
|
230
|
+
shortcut: "d",
|
|
231
|
+
action: async (currentSelection) => {
|
|
232
|
+
const offerIds = Object.keys(currentSelection);
|
|
233
|
+
if (offerIds.length === 0) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
const confirmed = await prompt({
|
|
237
|
+
title: t("general.areYouSure"),
|
|
238
|
+
description: t("offers.bulkDelete.description", {
|
|
239
|
+
count: offerIds.length
|
|
240
|
+
}),
|
|
241
|
+
confirmText: t("actions.delete"),
|
|
242
|
+
cancelText: t("actions.cancel"),
|
|
243
|
+
variant: "danger"
|
|
244
|
+
});
|
|
245
|
+
if (!confirmed) {
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
const result = await bulkDelete(offerIds);
|
|
249
|
+
if (result.failed.length === 0) {
|
|
250
|
+
toast2.success(
|
|
251
|
+
t("offers.bulkDelete.successToast", {
|
|
252
|
+
count: result.succeeded.length
|
|
253
|
+
})
|
|
254
|
+
);
|
|
255
|
+
onDeleted?.();
|
|
256
|
+
} else {
|
|
257
|
+
toast2.warning(
|
|
258
|
+
t("offers.bulkDelete.errorToast", {
|
|
259
|
+
message: `${result.succeeded.length}/${offerIds.length} succeeded`
|
|
260
|
+
})
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
[t, prompt, bulkDelete, onDeleted]
|
|
287
267
|
);
|
|
288
268
|
};
|
|
289
269
|
|
|
290
270
|
// src/pages/offers/_components/use-offer-table-filters.tsx
|
|
291
271
|
var import_types = __toESM(require_dist(), 1);
|
|
292
|
-
import { useTranslation as
|
|
272
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
293
273
|
var useOfferTableFilters = () => {
|
|
294
|
-
const { t } =
|
|
274
|
+
const { t } = useTranslation4();
|
|
295
275
|
const { sellers } = useSellers({ limit: 1e3 });
|
|
296
276
|
const { product_categories } = useProductCategories({
|
|
297
277
|
limit: 1e3,
|
|
@@ -409,6 +389,28 @@ var useOfferTableFilters = () => {
|
|
|
409
389
|
};
|
|
410
390
|
|
|
411
391
|
// src/pages/offers/_components/use-offer-table-query.tsx
|
|
392
|
+
var OFFER_LIST_FIELDS = [
|
|
393
|
+
"id",
|
|
394
|
+
"product_id",
|
|
395
|
+
"seller_id",
|
|
396
|
+
"variant_id",
|
|
397
|
+
"sku",
|
|
398
|
+
"variant_count",
|
|
399
|
+
"created_at",
|
|
400
|
+
"updated_at",
|
|
401
|
+
"product.id",
|
|
402
|
+
"product.title",
|
|
403
|
+
"product.handle",
|
|
404
|
+
"product.status",
|
|
405
|
+
"product.thumbnail",
|
|
406
|
+
"product.collection.id",
|
|
407
|
+
"product.collection.title",
|
|
408
|
+
"product.categories.id",
|
|
409
|
+
"product.categories.name",
|
|
410
|
+
"seller.id",
|
|
411
|
+
"seller.name",
|
|
412
|
+
"seller.handle"
|
|
413
|
+
].join(",");
|
|
412
414
|
var useOfferTableQuery = ({
|
|
413
415
|
pageSize = 10,
|
|
414
416
|
prefix
|
|
@@ -445,7 +447,7 @@ var useOfferTableQuery = ({
|
|
|
445
447
|
const searchParams = {
|
|
446
448
|
limit: pageSize,
|
|
447
449
|
offset: offset ? parseInt(offset, 10) : 0,
|
|
448
|
-
order: order || "
|
|
450
|
+
order: order || "-created_at",
|
|
449
451
|
q,
|
|
450
452
|
category_id: category_id ? category_id.split(",") : void 0,
|
|
451
453
|
collection_id: collection_id ? collection_id.split(",") : void 0,
|
|
@@ -455,8 +457,8 @@ var useOfferTableQuery = ({
|
|
|
455
457
|
seller_id: seller_id ? seller_id.split(",") : void 0,
|
|
456
458
|
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
457
459
|
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
|
458
|
-
|
|
459
|
-
fields:
|
|
460
|
+
group_by_seller: "true",
|
|
461
|
+
fields: OFFER_LIST_FIELDS
|
|
460
462
|
};
|
|
461
463
|
return {
|
|
462
464
|
searchParams,
|
|
@@ -464,140 +466,9 @@ var useOfferTableQuery = ({
|
|
|
464
466
|
};
|
|
465
467
|
};
|
|
466
468
|
|
|
467
|
-
// src/pages/offers/_components/offer-list-data-table.tsx
|
|
468
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
469
|
-
var OfferListDataTable = () => {
|
|
470
|
-
const { t } = useTranslation4();
|
|
471
|
-
const prompt = usePrompt2();
|
|
472
|
-
const [selection, setSelection] = useState({});
|
|
473
|
-
const { raw, searchParams } = useOfferTableQuery({
|
|
474
|
-
pageSize: OFFERS_PAGE_SIZE
|
|
475
|
-
});
|
|
476
|
-
const { products, count, isLoading, isError, error } = useProducts(
|
|
477
|
-
searchParams,
|
|
478
|
-
{ placeholderData: keepPreviousData }
|
|
479
|
-
);
|
|
480
|
-
const rows = products ?? [];
|
|
481
|
-
const filters = useOfferTableFilters();
|
|
482
|
-
const columns = useOfferTableColumns();
|
|
483
|
-
const { mutateAsync: bulkDelete } = useBulkDeleteOffers();
|
|
484
|
-
const { table } = useDataTable({
|
|
485
|
-
data: rows,
|
|
486
|
-
columns,
|
|
487
|
-
count,
|
|
488
|
-
enablePagination: true,
|
|
489
|
-
getRowId: (row) => row.id,
|
|
490
|
-
pageSize: OFFERS_PAGE_SIZE,
|
|
491
|
-
enableRowSelection: true,
|
|
492
|
-
rowSelection: {
|
|
493
|
-
state: selection,
|
|
494
|
-
updater: setSelection
|
|
495
|
-
}
|
|
496
|
-
});
|
|
497
|
-
if (isError) {
|
|
498
|
-
throw error;
|
|
499
|
-
}
|
|
500
|
-
return /* @__PURE__ */ jsx3(
|
|
501
|
-
_DataTable,
|
|
502
|
-
{
|
|
503
|
-
table,
|
|
504
|
-
columns,
|
|
505
|
-
pageSize: OFFERS_PAGE_SIZE,
|
|
506
|
-
count,
|
|
507
|
-
isLoading,
|
|
508
|
-
pagination: true,
|
|
509
|
-
search: true,
|
|
510
|
-
filters,
|
|
511
|
-
queryObject: raw,
|
|
512
|
-
orderBy: [
|
|
513
|
-
{ key: "title", label: t("fields.title") },
|
|
514
|
-
{ key: "created_at", label: t("fields.createdAt") },
|
|
515
|
-
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
516
|
-
],
|
|
517
|
-
defaultOrderBy: "title",
|
|
518
|
-
navigateTo: (row) => `${row.id}`,
|
|
519
|
-
noRecords: {
|
|
520
|
-
title: t("offers.empty.heading"),
|
|
521
|
-
message: t("offers.empty.description")
|
|
522
|
-
},
|
|
523
|
-
commands: [
|
|
524
|
-
{
|
|
525
|
-
label: t("offers.actions.bulkDelete"),
|
|
526
|
-
shortcut: "d",
|
|
527
|
-
action: async (currentSelection) => {
|
|
528
|
-
const productIds = Object.keys(currentSelection);
|
|
529
|
-
if (productIds.length === 0) return;
|
|
530
|
-
const selectedRows = rows.filter((r) => productIds.includes(r.id));
|
|
531
|
-
const offerIds = selectedRows.flatMap((r) => collectOfferIds(r));
|
|
532
|
-
if (offerIds.length === 0) return;
|
|
533
|
-
const confirmed = await prompt({
|
|
534
|
-
title: t("general.areYouSure"),
|
|
535
|
-
description: t("offers.bulkDelete.description", {
|
|
536
|
-
count: offerIds.length
|
|
537
|
-
}),
|
|
538
|
-
confirmText: t("actions.delete"),
|
|
539
|
-
cancelText: t("actions.cancel"),
|
|
540
|
-
variant: "danger"
|
|
541
|
-
});
|
|
542
|
-
if (!confirmed) return;
|
|
543
|
-
const result = await bulkDelete(offerIds);
|
|
544
|
-
const succeededCount = result.succeeded.length;
|
|
545
|
-
const failedCount = result.failed.length;
|
|
546
|
-
if (failedCount === 0) {
|
|
547
|
-
toast2.success(
|
|
548
|
-
t("offers.bulkDelete.successToast", { count: succeededCount })
|
|
549
|
-
);
|
|
550
|
-
setSelection({});
|
|
551
|
-
} else {
|
|
552
|
-
toast2.warning(
|
|
553
|
-
t("offers.bulkDelete.errorToast", {
|
|
554
|
-
message: `${succeededCount}/${offerIds.length} succeeded`
|
|
555
|
-
})
|
|
556
|
-
);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
]
|
|
561
|
-
}
|
|
562
|
-
);
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
// src/pages/offers/_components/offer-list-header.tsx
|
|
566
|
-
import { Heading } from "@medusajs/ui";
|
|
567
|
-
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
568
|
-
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
569
|
-
var OfferListTitle = () => {
|
|
570
|
-
const { t } = useTranslation5();
|
|
571
|
-
return /* @__PURE__ */ jsx4(Heading, { children: t("offers.domain") });
|
|
572
|
-
};
|
|
573
|
-
var OfferListActions = () => null;
|
|
574
|
-
var OfferListHeader = () => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
575
|
-
/* @__PURE__ */ jsx4(OfferListTitle, {}),
|
|
576
|
-
/* @__PURE__ */ jsx4(OfferListActions, {})
|
|
577
|
-
] });
|
|
578
|
-
|
|
579
|
-
// src/pages/offers/_components/offer-list-table.tsx
|
|
580
|
-
import { Fragment, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
581
|
-
var OfferListTable = ({ children }) => /* @__PURE__ */ jsxs2(Container, { className: "divide-y p-0", "data-testid": "offer-list-table", children: [
|
|
582
|
-
Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
583
|
-
/* @__PURE__ */ jsx5(OfferListHeader, {}),
|
|
584
|
-
/* @__PURE__ */ jsx5(OfferListDataTable, {})
|
|
585
|
-
] }),
|
|
586
|
-
/* @__PURE__ */ jsx5(Outlet, {})
|
|
587
|
-
] });
|
|
588
|
-
|
|
589
|
-
// src/pages/offers/offer-list-page.tsx
|
|
590
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
591
|
-
var Root = ({ children }) => /* @__PURE__ */ jsx6(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(OfferListTable, {}) });
|
|
592
|
-
var OfferListPage = Object.assign(Root, {
|
|
593
|
-
Table: OfferListTable,
|
|
594
|
-
Header: OfferListHeader,
|
|
595
|
-
HeaderTitle: OfferListTitle,
|
|
596
|
-
HeaderActions: OfferListActions,
|
|
597
|
-
DataTable: OfferListDataTable
|
|
598
|
-
});
|
|
599
|
-
var Component = Root;
|
|
600
469
|
export {
|
|
601
|
-
|
|
602
|
-
|
|
470
|
+
useOfferTableColumns,
|
|
471
|
+
useOfferTableCommands,
|
|
472
|
+
useOfferTableFilters,
|
|
473
|
+
useOfferTableQuery
|
|
603
474
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EUXCKJPT.js";
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableFilters
|
|
7
7
|
} from "./chunk-S2WEYEQR.js";
|
|
8
8
|
import {
|
|
9
9
|
_DataTable,
|
|
10
10
|
useDataTable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HSL5IICN.js";
|
|
12
12
|
import {
|
|
13
13
|
SingleColumnPage
|
|
14
14
|
} from "./chunk-H6MYB7GB.js";
|