@mercurjs/vendor 2.2.0-canary.18 → 2.2.0-canary.19
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]-VB5UCO3O.js → [id]-6JK6GFGO.js} +11 -11
- package/dist/{[id]-IBI7RQ5U.js → [id]-ANFHIIIC.js} +8 -8
- package/dist/{[id]-I2SLURKY.js → [id]-EU4S66CZ.js} +6 -6
- package/dist/{[id]-WFTES472.js → [id]-FCQDNWHV.js} +180 -88
- package/dist/{[id]-DZC5AXL5.js → [id]-HMFL5X3H.js} +9 -9
- package/dist/{[id]-WLX5IYWH.js → [id]-IRSZ7QXA.js} +9 -9
- package/dist/{[id]-2TI2PRRJ.js → [id]-P2YSRJFY.js} +11 -11
- package/dist/{[id]-SSZPPKKA.js → [id]-XZ7N73BX.js} +418 -369
- package/dist/{[id]-NGAIPW6P.js → [id]-ZEQYK7YQ.js} +5 -5
- package/dist/{[province_id]-24DPO3NE.js → [province_id]-KBLIWQL6.js} +5 -5
- package/dist/{add-XFF273OG.js → add-4TF2XHR5.js} +2 -2
- package/dist/{add-DEMEX3H3.js → add-J26RSK7C.js} +11 -11
- package/dist/{add-customer-groups-RAN4XHUY.js → add-customer-groups-Y5ZSHB5U.js} +7 -10
- package/dist/{add-products-QBRJJQFE.js → add-products-SWO6Y4UH.js} +9 -9
- package/dist/{address-TVAAQLLV.js → address-EQJ4VHY7.js} +5 -5
- package/dist/{allocate-items-4OHVHEHB.js → allocate-items-3QJCZKPS.js} +1 -1
- package/dist/{breadcrumb-PV4XAZQW.js → breadcrumb-3KLKU7BK.js} +5 -5
- package/dist/{breadcrumb-6MIWWTK2.js → breadcrumb-FCSEL2SM.js} +2 -2
- package/dist/{breadcrumb-T5AIM6N3.js → breadcrumb-GFPWXRZW.js} +5 -5
- package/dist/{breadcrumb-YBBYFQYG.js → breadcrumb-LBO2I4OJ.js} +1 -1
- package/dist/{breadcrumb-PEKYMNVH.js → breadcrumb-OF3TDBWD.js} +1 -1
- package/dist/breadcrumb-PIDJ23EZ.js +13 -0
- package/dist/{breadcrumb-NNFO7JCI.js → breadcrumb-ZUMWNLV4.js} +6 -6
- package/dist/{chunk-Y34BG5JZ.js → chunk-4OIOYUQE.js} +2 -2
- package/dist/{chunk-5EIRIDGB.js → chunk-7RJYW5OO.js} +1 -1
- package/dist/{chunk-NXSUJYZ4.js → chunk-AH35DA4C.js} +1 -1
- package/dist/{chunk-U5G3AVED.js → chunk-AP53Q5AX.js} +1 -1
- package/dist/{chunk-LHYR6BUR.js → chunk-AT46YMV2.js} +2 -2
- package/dist/{chunk-UZQKGNIW.js → chunk-BFYLTUR6.js} +1 -1
- package/dist/{chunk-YMDSGETV.js → chunk-BJKWNSXY.js} +2 -2
- package/dist/{chunk-GXZTYSQA.js → chunk-FQJBRONE.js} +1 -1
- package/dist/{chunk-ADGVQVHP.js → chunk-G6QKAXHN.js} +1 -1
- package/dist/chunk-GL7F6NDU.js +30 -0
- package/dist/{chunk-QCAMAXTE.js → chunk-GTVPGJGC.js} +10 -1
- package/dist/{chunk-BER45EYD.js → chunk-H2YVO2EV.js} +1 -1
- package/dist/chunk-H7BVANDX.js +407 -0
- package/dist/{chunk-JI5BZTBK.js → chunk-HSO2VQMX.js} +2 -2
- package/dist/{chunk-4NCZB4A3.js → chunk-IUJVKJNQ.js} +2 -2
- package/dist/{chunk-CCGKFRKX.js → chunk-JNBCPIRA.js} +1 -1
- package/dist/{chunk-AUMAF6RS.js → chunk-K6LLC3OU.js} +4 -4
- package/dist/{chunk-Z2OUSXGV.js → chunk-KTZWYRGG.js} +1 -1
- package/dist/{chunk-N7RHA7GE.js → chunk-L6N3NEVK.js} +1 -1
- package/dist/{chunk-LWJF63JW.js → chunk-LTQQRVZG.js} +89 -14
- package/dist/{chunk-PR4GU3GB.js → chunk-M633CHJV.js} +1 -1
- package/dist/{chunk-D2KMKWPI.js → chunk-NP6OBDJM.js} +1 -1
- package/dist/{chunk-JM5J2RH7.js → chunk-Q4RS4QMY.js} +1 -1
- package/dist/{chunk-RIF5X77T.js → chunk-QBTRFABM.js} +2 -2
- package/dist/chunk-SPFLYPY6.js +6 -0
- package/dist/{chunk-X22KTLZ7.js → chunk-UO6IX5Y7.js} +1 -1
- package/dist/{chunk-4HA7WTJJ.js → chunk-VCFCT42H.js} +2 -2
- package/dist/{chunk-3Z46N7A4.js → chunk-WNDSCHPT.js} +1 -1
- package/dist/{chunk-UCYSCKZV.js → chunk-Y7FNFQCU.js} +1 -6
- package/dist/{chunk-HDPP7NAH.js → chunk-YVDBL3WZ.js} +2 -2
- package/dist/{collections-R7DDMVEO.js → collections-AP33YEEV.js} +8 -8
- package/dist/{configuration-T75P2HCF.js → configuration-XU35CKVZ.js} +2 -2
- package/dist/{create-EXPTTUZO.js → create-4C6SQS56.js} +10 -10
- package/dist/{create-VWNQIVNZ.js → create-55U2A2F7.js} +5 -5
- package/dist/{create-RDUR6KJL.js → create-6ECS53N7.js} +11 -11
- package/dist/{create-LL2T7OYE.js → create-6LDRS3OX.js} +11 -11
- package/dist/{create-5AMF4EUU.js → create-A5FUOXYC.js} +5 -5
- package/dist/{create-TICEJWHQ.js → create-CDJBCPET.js} +5 -5
- package/dist/{create-XYD4RK4Z.js → create-H3IJRNEM.js} +2 -2
- package/dist/{create-7DTTZP3R.js → create-HYKFTU4B.js} +2 -2
- package/dist/{create-ETLMKXIM.js → create-UAQR5HZ5.js} +3 -3
- package/dist/{create-7GQDTYKQ.js → create-UYSKBLHN.js} +2 -2
- package/dist/{create-QKINJHTJ.js → create-XYPKABRQ.js} +7 -7
- package/dist/customer-group-add-customers-GTM556QA.js +251 -0
- package/dist/customer-group-create-OYHAXX2T.js +140 -0
- package/dist/customer-group-detail-KW62TLWA.js +58 -0
- package/dist/customer-group-edit-WH7O4N4L.js +137 -0
- package/dist/customer-groups-UJFZBZ2B.js +276 -0
- package/dist/{customers-PPCUFKDS.js → customers-4WKIFPUU.js} +3 -3
- package/dist/{edit-NMKAE2Y4.js → edit-2EW2CYQK.js} +11 -11
- package/dist/{edit-RSRNWEKW.js → edit-2IK6MPNR.js} +6 -6
- package/dist/{edit-UJ5IIV4W.js → edit-3Y7B67RO.js} +2 -2
- package/dist/{edit-2GQSJXEO.js → edit-HI7SCO54.js} +5 -5
- package/dist/{edit-PJCUMB6W.js → edit-JVJCEX6R.js} +7 -7
- package/dist/{edit-6DK6L3ZI.js → edit-K4WAX7Z4.js} +7 -7
- package/dist/{edit-SHHOKKZT.js → edit-K7G356BB.js} +2 -2
- package/dist/{edit-ABKSKVBA.js → edit-NJWM75LI.js} +5 -5
- package/dist/{edit-GQH3ZU4F.js → edit-PJ4GWQZ6.js} +5 -5
- package/dist/{edit-7CSEVJUJ.js → edit-UFLFRIEP.js} +2 -2
- package/dist/{fulfillment-YGUMAF56.js → fulfillment-OHZBGEID.js} +5 -5
- package/dist/{fulfillment-providers-VSCNFCAB.js → fulfillment-providers-GSNUWSSJ.js} +8 -8
- package/dist/index.css +3 -0
- package/dist/index.js +165 -115
- package/dist/{invite-WVCIYV32.js → invite-BXTPUAZV.js} +6 -6
- package/dist/{invite-QLA3ZZLF.js → invite-RTNMLB27.js} +5 -5
- package/dist/{login-7GCYZIPX.js → login-2TL6L5BA.js} +5 -5
- package/dist/{media-5YGSQZDI.js → media-CI5ZRUTM.js} +6 -6
- package/dist/{media-OJY6FYZZ.js → media-OU4RC3RX.js} +6 -6
- package/dist/{metadata-KS7EYPMD.js → metadata-KGGJTYPU.js} +5 -5
- package/dist/{metadata-XIUJTRBY.js → metadata-LOKW5KCQ.js} +5 -5
- package/dist/{metadata-2NVBJV7J.js → metadata-OW7NTIKW.js} +5 -5
- package/dist/{metadata-W7MOLOHZ.js → metadata-U3IAFLZK.js} +5 -5
- package/dist/{metadata-BCIFAEXH.js → metadata-V5UXIIYQ.js} +5 -5
- package/dist/{offer-create-page-KT4HKQWZ.js → offer-create-page-FUBZBKX7.js} +8 -8
- package/dist/{offers-ZM3AEZNM.js → offers-HPADYZE2.js} +9 -9
- package/dist/{onboarding-SLDOWDFW.js → onboarding-3CBI3Z5E.js} +5 -5
- package/dist/{orders-2L73IOGC.js → orders-G22N7MFB.js} +9 -9
- package/dist/{organization-YSOQXGGR.js → organization-W2ZDNKOV.js} +6 -6
- package/dist/pages/index.js +23 -23
- package/dist/{payment-details-CSYYFVJ4.js → payment-details-ZO6GAFV2.js} +5 -5
- package/dist/{price-lists-JBG6FR57.js → price-lists-YRDRX3RM.js} +4 -4
- package/dist/{pricing-EZX3DQ5U.js → pricing-Z654DISX.js} +5 -5
- package/dist/{product-tags-AQN35DDX.js → product-tags-AHRGK2PT.js} +11 -11
- package/dist/{product-variant-detail-CQCURDL2.js → product-variant-detail-QZN24FWY.js} +5 -5
- package/dist/{product-variant-edit-F4AO6XQX.js → product-variant-edit-N7MOFTXQ.js} +2 -2
- package/dist/{products-3W3HNFG2.js → products-2RYEPR6P.js} +11 -11
- package/dist/{products-QND6FIDH.js → products-QTCUXM7G.js} +9 -9
- package/dist/{professional-details-QT73KUKG.js → professional-details-6GBIUPNO.js} +5 -5
- package/dist/{profile-BTN7M4HA.js → profile-C5PISJML.js} +5 -5
- package/dist/{receive-XGCTH7US.js → receive-F7U2QFRA.js} +2 -2
- package/dist/{refund-O4DJH7Y6.js → refund-CHTHYEGV.js} +2 -2
- package/dist/{register-SOKUKD7W.js → register-GFUB76ZQ.js} +6 -6
- package/dist/{return-reasons-WAS4YMAP.js → return-reasons-FVI3RSZS.js} +3 -3
- package/dist/{settings-4OJUBMGV.js → settings-ZZ6KHMKJ.js} +14 -14
- package/dist/{shipment-WYCW7YTA.js → shipment-AYVNUCMF.js} +5 -5
- package/dist/{shipping-profiles-CUCOF54J.js → shipping-profiles-4ZX7KG4G.js} +5 -5
- package/dist/{stock-GUHPX6TN.js → stock-XYRDUNYY.js} +5 -5
- package/dist/{store-R2UVGQN5.js → store-SW5HKQTP.js} +6 -6
- package/dist/{store-closure-D5M3F3DG.js → store-closure-4CRLDSFZ.js} +5 -5
- package/dist/{store-select-XICZEMFW.js → store-select-UPAKKTX2.js} +6 -6
- package/dist/{team-U6XLUSDE.js → team-XNYOGCBN.js} +6 -6
- package/package.json +1 -1
- package/dist/edit-JSAWDK47.js +0 -192
- package/dist/metadata-BCB4YCJI.js +0 -45
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductTagDetailBreadcrumb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FQJBRONE.js";
|
|
4
4
|
import "./chunk-N335VHD3.js";
|
|
5
5
|
import "./chunk-EBZ5VZEO.js";
|
|
6
6
|
import "./chunk-4F5GP7J7.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-S2WEYEQR.js";
|
|
|
24
24
|
import "./chunk-XBKWFLJG.js";
|
|
25
25
|
import "./chunk-LFX6WU4A.js";
|
|
26
26
|
import "./chunk-CMHI2RPL.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-UO6IX5Y7.js";
|
|
28
28
|
import "./chunk-HB3BP55W.js";
|
|
29
29
|
import "./chunk-UAE6XBYL.js";
|
|
30
30
|
import "./chunk-SYNUA6LQ.js";
|
|
@@ -35,8 +35,8 @@ import "./chunk-3BXCPHN6.js";
|
|
|
35
35
|
import "./chunk-JRTZWK77.js";
|
|
36
36
|
import {
|
|
37
37
|
useProductTableColumns
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-H2YVO2EV.js";
|
|
39
|
+
import "./chunk-AP53Q5AX.js";
|
|
40
40
|
import {
|
|
41
41
|
useProductTableQuery
|
|
42
42
|
} from "./chunk-MJCL3WID.js";
|
|
@@ -44,7 +44,7 @@ import "./chunk-FWPGOIFA.js";
|
|
|
44
44
|
import "./chunk-FQERBIVS.js";
|
|
45
45
|
import {
|
|
46
46
|
useProductTableFilters
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-QBTRFABM.js";
|
|
48
48
|
import "./chunk-DB6ANJBO.js";
|
|
49
49
|
import "./chunk-PHOCVOZ5.js";
|
|
50
50
|
import "./chunk-26OOAKQ6.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
} from "./chunk-YV6MK4PZ.js";
|
|
62
62
|
import "./chunk-THHRRYRS.js";
|
|
63
63
|
import "./chunk-LRD242C7.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-Y7FNFQCU.js";
|
|
65
65
|
import "./chunk-WIYFXWRI.js";
|
|
66
66
|
import {
|
|
67
67
|
SingleColumnPageSkeleton
|
|
@@ -70,26 +70,26 @@ import {
|
|
|
70
70
|
productTagsQueryKeys,
|
|
71
71
|
useDeleteProductTag,
|
|
72
72
|
useProductTag
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-BFYLTUR6.js";
|
|
74
74
|
import "./chunk-F4OJN2F2.js";
|
|
75
75
|
import "./chunk-LRARA622.js";
|
|
76
76
|
import "./chunk-M6N4ISXL.js";
|
|
77
77
|
import "./chunk-S7EKBD2C.js";
|
|
78
78
|
import "./chunk-VV6IKGCN.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-NP6OBDJM.js";
|
|
80
80
|
import "./chunk-BOZJOOGW.js";
|
|
81
81
|
import "./chunk-IQWK723D.js";
|
|
82
82
|
import "./chunk-4S6XGIC6.js";
|
|
83
83
|
import "./chunk-S23FD6FA.js";
|
|
84
84
|
import "./chunk-AQ7HHCHJ.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-LTQQRVZG.js";
|
|
86
86
|
import "./chunk-VXWN37PT.js";
|
|
87
87
|
import "./chunk-TFGWDC2N.js";
|
|
88
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-KTZWYRGG.js";
|
|
89
89
|
import "./chunk-VXMOPVRH.js";
|
|
90
90
|
import "./chunk-NBPMNUKZ.js";
|
|
91
91
|
import "./chunk-5ZJE3O2T.js";
|
|
92
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-GTVPGJGC.js";
|
|
93
93
|
import "./chunk-3B34B2M2.js";
|
|
94
94
|
import {
|
|
95
95
|
ActionMenu
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
} from "./chunk-BDZOSMAX.js";
|
|
8
8
|
import {
|
|
9
9
|
useProductTableColumns
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-H2YVO2EV.js";
|
|
11
|
+
import "./chunk-AP53Q5AX.js";
|
|
12
12
|
import {
|
|
13
13
|
useProductTableQuery
|
|
14
14
|
} from "./chunk-MJCL3WID.js";
|
|
@@ -28,35 +28,35 @@ import {
|
|
|
28
28
|
} from "./chunk-YV6MK4PZ.js";
|
|
29
29
|
import "./chunk-THHRRYRS.js";
|
|
30
30
|
import "./chunk-LRD242C7.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-Y7FNFQCU.js";
|
|
32
32
|
import "./chunk-WIYFXWRI.js";
|
|
33
33
|
import {
|
|
34
34
|
Skeleton,
|
|
35
35
|
TwoColumnPageSkeleton
|
|
36
36
|
} from "./chunk-INNFZYX2.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-BFYLTUR6.js";
|
|
38
38
|
import "./chunk-F4OJN2F2.js";
|
|
39
39
|
import "./chunk-LRARA622.js";
|
|
40
40
|
import "./chunk-M6N4ISXL.js";
|
|
41
41
|
import "./chunk-S7EKBD2C.js";
|
|
42
42
|
import "./chunk-VV6IKGCN.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-NP6OBDJM.js";
|
|
44
44
|
import "./chunk-BOZJOOGW.js";
|
|
45
45
|
import "./chunk-IQWK723D.js";
|
|
46
46
|
import "./chunk-4S6XGIC6.js";
|
|
47
47
|
import "./chunk-S23FD6FA.js";
|
|
48
48
|
import "./chunk-AQ7HHCHJ.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-LTQQRVZG.js";
|
|
50
50
|
import "./chunk-VXWN37PT.js";
|
|
51
51
|
import {
|
|
52
52
|
categoriesQueryKeys,
|
|
53
53
|
useProductCategory
|
|
54
54
|
} from "./chunk-TFGWDC2N.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-KTZWYRGG.js";
|
|
56
56
|
import "./chunk-VXMOPVRH.js";
|
|
57
57
|
import "./chunk-NBPMNUKZ.js";
|
|
58
58
|
import "./chunk-5ZJE3O2T.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-GTVPGJGC.js";
|
|
60
60
|
import "./chunk-3B34B2M2.js";
|
|
61
61
|
import "./chunk-QHQWEERJ.js";
|
|
62
62
|
import "./chunk-Y7QKP6QU.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import "./chunk-LRD242C7.js";
|
|
28
28
|
import {
|
|
29
29
|
require_dist
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Y7FNFQCU.js";
|
|
31
31
|
import {
|
|
32
32
|
Thumbnail
|
|
33
33
|
} from "./chunk-WIYFXWRI.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-INNFZYX2.js";
|
|
37
37
|
import {
|
|
38
38
|
useProductTag
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-BFYLTUR6.js";
|
|
40
40
|
import "./chunk-F4OJN2F2.js";
|
|
41
41
|
import "./chunk-LRARA622.js";
|
|
42
42
|
import "./chunk-M6N4ISXL.js";
|
|
@@ -44,7 +44,7 @@ import "./chunk-S7EKBD2C.js";
|
|
|
44
44
|
import {
|
|
45
45
|
useProductType
|
|
46
46
|
} from "./chunk-VV6IKGCN.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-NP6OBDJM.js";
|
|
48
48
|
import "./chunk-BOZJOOGW.js";
|
|
49
49
|
import "./chunk-IQWK723D.js";
|
|
50
50
|
import "./chunk-4S6XGIC6.js";
|
|
@@ -52,16 +52,16 @@ import "./chunk-S23FD6FA.js";
|
|
|
52
52
|
import {
|
|
53
53
|
useCollection
|
|
54
54
|
} from "./chunk-AQ7HHCHJ.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-LTQQRVZG.js";
|
|
56
56
|
import "./chunk-VXWN37PT.js";
|
|
57
57
|
import {
|
|
58
58
|
useProductCategory
|
|
59
59
|
} from "./chunk-TFGWDC2N.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-KTZWYRGG.js";
|
|
61
61
|
import "./chunk-VXMOPVRH.js";
|
|
62
62
|
import "./chunk-NBPMNUKZ.js";
|
|
63
63
|
import "./chunk-5ZJE3O2T.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-GTVPGJGC.js";
|
|
65
65
|
import {
|
|
66
66
|
useSalesChannels
|
|
67
67
|
} from "./chunk-3B34B2M2.js";
|
|
@@ -22,6 +22,9 @@ import "./chunk-SYNUA6LQ.js";
|
|
|
22
22
|
import "./chunk-L57USMYC.js";
|
|
23
23
|
import "./chunk-LQSLDDPT.js";
|
|
24
24
|
import "./chunk-3BXCPHN6.js";
|
|
25
|
+
import {
|
|
26
|
+
getCountryByIso2
|
|
27
|
+
} from "./chunk-JRTZWK77.js";
|
|
25
28
|
import "./chunk-FQERBIVS.js";
|
|
26
29
|
import "./chunk-DB6ANJBO.js";
|
|
27
30
|
import "./chunk-PHOCVOZ5.js";
|
|
@@ -31,23 +34,25 @@ import {
|
|
|
31
34
|
} from "./chunk-WKRW5OPL.js";
|
|
32
35
|
import "./chunk-YN3FGNJM.js";
|
|
33
36
|
import "./chunk-KCHYLLVG.js";
|
|
34
|
-
import
|
|
37
|
+
import {
|
|
38
|
+
NoRecords
|
|
39
|
+
} from "./chunk-3EF54XFY.js";
|
|
35
40
|
import "./chunk-IQPN4PZJ.js";
|
|
36
41
|
import {
|
|
37
|
-
|
|
42
|
+
TwoColumnPage
|
|
38
43
|
} from "./chunk-YV6MK4PZ.js";
|
|
39
44
|
import "./chunk-THHRRYRS.js";
|
|
40
45
|
import "./chunk-LRD242C7.js";
|
|
41
46
|
import {
|
|
42
|
-
|
|
47
|
+
TwoColumnPageSkeleton
|
|
43
48
|
} from "./chunk-INNFZYX2.js";
|
|
44
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-BFYLTUR6.js";
|
|
45
50
|
import "./chunk-F4OJN2F2.js";
|
|
46
51
|
import "./chunk-LRARA622.js";
|
|
47
52
|
import "./chunk-M6N4ISXL.js";
|
|
48
53
|
import "./chunk-S7EKBD2C.js";
|
|
49
54
|
import "./chunk-VV6IKGCN.js";
|
|
50
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-NP6OBDJM.js";
|
|
51
56
|
import "./chunk-BOZJOOGW.js";
|
|
52
57
|
import "./chunk-IQWK723D.js";
|
|
53
58
|
import "./chunk-4S6XGIC6.js";
|
|
@@ -58,16 +63,16 @@ import {
|
|
|
58
63
|
useCustomer,
|
|
59
64
|
useCustomerGroups,
|
|
60
65
|
useRemoveCustomersFromGroup
|
|
61
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-LTQQRVZG.js";
|
|
62
67
|
import "./chunk-VXWN37PT.js";
|
|
63
68
|
import "./chunk-TFGWDC2N.js";
|
|
64
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-KTZWYRGG.js";
|
|
65
70
|
import "./chunk-VXMOPVRH.js";
|
|
66
71
|
import "./chunk-NBPMNUKZ.js";
|
|
67
72
|
import "./chunk-5ZJE3O2T.js";
|
|
68
73
|
import {
|
|
69
74
|
useOrders
|
|
70
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-GTVPGJGC.js";
|
|
71
76
|
import "./chunk-3B34B2M2.js";
|
|
72
77
|
import {
|
|
73
78
|
ActionMenu
|
|
@@ -106,33 +111,120 @@ var loader = async ({ params }) => {
|
|
|
106
111
|
import { Children } from "react";
|
|
107
112
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
108
113
|
|
|
109
|
-
// src/pages/customers/[id]/_components/customer-
|
|
110
|
-
import { Container, Heading,
|
|
114
|
+
// src/pages/customers/[id]/_components/customer-address-section/customer-address-section.tsx
|
|
115
|
+
import { Container, Heading, Text } from "@medusajs/ui";
|
|
111
116
|
import { useTranslation } from "react-i18next";
|
|
112
117
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
113
|
-
var
|
|
118
|
+
var getAddressLabel = (address) => {
|
|
119
|
+
if (address.address_name) {
|
|
120
|
+
return address.address_name;
|
|
121
|
+
}
|
|
122
|
+
const name = [address.first_name, address.last_name].filter(Boolean).join(" ");
|
|
123
|
+
return name || "Address";
|
|
124
|
+
};
|
|
125
|
+
var CustomerAddressSection = ({
|
|
114
126
|
customer
|
|
115
127
|
}) => {
|
|
116
128
|
const { t: t2 } = useTranslation();
|
|
129
|
+
const addresses = customer.addresses ?? [];
|
|
130
|
+
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "customer-address-section", children: [
|
|
131
|
+
/* @__PURE__ */ jsx(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
135
|
+
"data-testid": "customer-address-section-header",
|
|
136
|
+
children: /* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "customer-address-section-heading", children: t2("customers.addresses.title") })
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
addresses.length === 0 ? /* @__PURE__ */ jsx("div", { "data-testid": "customer-address-section-empty", children: /* @__PURE__ */ jsx(
|
|
140
|
+
NoRecords,
|
|
141
|
+
{
|
|
142
|
+
className: "flex h-full flex-col overflow-hidden p-6",
|
|
143
|
+
icon: null,
|
|
144
|
+
title: t2("general.noRecordsTitle"),
|
|
145
|
+
message: t2("general.noRecordsMessage")
|
|
146
|
+
}
|
|
147
|
+
) }) : /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-2 p-3", children: addresses.map((address) => {
|
|
148
|
+
const country = getCountryByIso2(address.country_code)?.display_name ?? address.country_code?.toUpperCase();
|
|
149
|
+
const cityLine = [address.city, address.postal_code].filter(Boolean).join(", ");
|
|
150
|
+
return /* @__PURE__ */ jsxs(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
className: "bg-ui-bg-subtle border-ui-border-base flex flex-col gap-y-1 rounded-lg border px-3 py-2",
|
|
154
|
+
"data-testid": `customer-address-section-address-${address.id}`,
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", leading: "compact", children: getAddressLabel(address) }),
|
|
157
|
+
address.address_1 && /* @__PURE__ */ jsx(
|
|
158
|
+
Text,
|
|
159
|
+
{
|
|
160
|
+
size: "small",
|
|
161
|
+
leading: "compact",
|
|
162
|
+
className: "text-ui-fg-subtle",
|
|
163
|
+
children: address.address_1
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
address.address_2 && /* @__PURE__ */ jsx(
|
|
167
|
+
Text,
|
|
168
|
+
{
|
|
169
|
+
size: "small",
|
|
170
|
+
leading: "compact",
|
|
171
|
+
className: "text-ui-fg-subtle",
|
|
172
|
+
children: address.address_2
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
cityLine && /* @__PURE__ */ jsx(
|
|
176
|
+
Text,
|
|
177
|
+
{
|
|
178
|
+
size: "small",
|
|
179
|
+
leading: "compact",
|
|
180
|
+
className: "text-ui-fg-subtle",
|
|
181
|
+
children: cityLine
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
country && /* @__PURE__ */ jsx(
|
|
185
|
+
Text,
|
|
186
|
+
{
|
|
187
|
+
size: "small",
|
|
188
|
+
leading: "compact",
|
|
189
|
+
className: "text-ui-fg-subtle",
|
|
190
|
+
children: country
|
|
191
|
+
}
|
|
192
|
+
)
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
address.id
|
|
196
|
+
);
|
|
197
|
+
}) })
|
|
198
|
+
] });
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// src/pages/customers/[id]/_components/customer-general-section/customer-general-section.tsx
|
|
202
|
+
import { Container as Container2, Heading as Heading2, StatusBadge, Text as Text2 } from "@medusajs/ui";
|
|
203
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
204
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
205
|
+
var CustomerGeneralSection = ({
|
|
206
|
+
customer
|
|
207
|
+
}) => {
|
|
208
|
+
const { t: t2 } = useTranslation2();
|
|
117
209
|
const name = [customer.first_name, customer.last_name].filter(Boolean).join(" ");
|
|
118
210
|
const statusColor = customer.has_account ? "green" : "orange";
|
|
119
211
|
const statusText = customer.has_account ? t2("customers.fields.registered") : t2("customers.fields.guest");
|
|
120
|
-
return /* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
212
|
+
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", children: [
|
|
213
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
214
|
+
/* @__PURE__ */ jsx2(Heading2, { children: customer.email }),
|
|
215
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx2(StatusBadge, { color: statusColor, children: statusText }) })
|
|
124
216
|
] }),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
218
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.name") }),
|
|
219
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: name || "-" })
|
|
128
220
|
] }),
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
222
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.company") }),
|
|
223
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: customer.company_name || "-" })
|
|
132
224
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
226
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.phone") }),
|
|
227
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: customer.phone || "-" })
|
|
136
228
|
] })
|
|
137
229
|
] });
|
|
138
230
|
};
|
|
@@ -141,8 +233,8 @@ var CustomerGeneralSection = ({
|
|
|
141
233
|
import {
|
|
142
234
|
Button,
|
|
143
235
|
Checkbox,
|
|
144
|
-
Container as
|
|
145
|
-
Heading as
|
|
236
|
+
Container as Container3,
|
|
237
|
+
Heading as Heading3,
|
|
146
238
|
toast,
|
|
147
239
|
usePrompt
|
|
148
240
|
} from "@medusajs/ui";
|
|
@@ -150,9 +242,9 @@ import { createColumnHelper } from "@tanstack/react-table";
|
|
|
150
242
|
import { t } from "i18next";
|
|
151
243
|
import { useMemo, useState } from "react";
|
|
152
244
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
153
|
-
import { useTranslation as
|
|
245
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
154
246
|
import { Link } from "react-router-dom";
|
|
155
|
-
import { jsx as
|
|
247
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
156
248
|
var PAGE_SIZE = 10;
|
|
157
249
|
var PREFIX = "cusgr";
|
|
158
250
|
var CustomerGroupSection = ({
|
|
@@ -160,36 +252,23 @@ var CustomerGroupSection = ({
|
|
|
160
252
|
}) => {
|
|
161
253
|
const prompt = usePrompt();
|
|
162
254
|
const [rowSelection, setRowSelection] = useState({});
|
|
163
|
-
const { raw
|
|
255
|
+
const { raw } = useCustomerGroupTableQuery({
|
|
164
256
|
pageSize: PAGE_SIZE,
|
|
165
257
|
prefix: PREFIX
|
|
166
258
|
});
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
} = useCustomerGroups(
|
|
173
|
-
{
|
|
174
|
-
...searchParams,
|
|
175
|
-
fields: "+customers.id"
|
|
176
|
-
},
|
|
177
|
-
void 0,
|
|
178
|
-
{
|
|
179
|
-
created_at: searchParams.created_at,
|
|
180
|
-
updated_at: searchParams.updated_at,
|
|
181
|
-
sort: searchParams.order
|
|
182
|
-
}
|
|
183
|
-
);
|
|
184
|
-
const filteredCustomerGroups = customerGroups?.filter(
|
|
185
|
-
(cg) => customer.groups?.some((g) => g.id === cg.customer_group_id)
|
|
259
|
+
const flatCustomerGroups = customer.groups ?? [];
|
|
260
|
+
const groupIds = flatCustomerGroups.map((g) => g.id);
|
|
261
|
+
const { customer_groups: groupsWithCounts } = useCustomerGroups(
|
|
262
|
+
{ id: groupIds, fields: "id,customers.id", limit: groupIds.length || 1 },
|
|
263
|
+
{ enabled: groupIds.length > 0 }
|
|
186
264
|
);
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
265
|
+
const customerCountByGroup = {};
|
|
266
|
+
for (const g of groupsWithCounts ?? []) {
|
|
267
|
+
customerCountByGroup[g.id] = g.customers?.length ?? 0;
|
|
268
|
+
}
|
|
190
269
|
const { mutateAsync: batchCustomerCustomerGroups } = useBatchCustomerCustomerGroups(customer.id);
|
|
191
270
|
const filters = useCustomerGroupTableFilters();
|
|
192
|
-
const columns = useColumns(customer.id);
|
|
271
|
+
const columns = useColumns(customer.id, customerCountByGroup);
|
|
193
272
|
const { table } = useDataTable({
|
|
194
273
|
data: flatCustomerGroups ?? [],
|
|
195
274
|
columns,
|
|
@@ -228,27 +307,24 @@ var CustomerGroupSection = ({
|
|
|
228
307
|
})
|
|
229
308
|
);
|
|
230
309
|
},
|
|
231
|
-
onError: (
|
|
232
|
-
toast.error(
|
|
310
|
+
onError: (error) => {
|
|
311
|
+
toast.error(error.message);
|
|
233
312
|
}
|
|
234
313
|
}
|
|
235
314
|
);
|
|
236
315
|
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
242
|
-
/* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("customerGroups.domain") }),
|
|
243
|
-
/* @__PURE__ */ jsx2(Link, { to: `/customers/${customer.id}/add-customer-groups`, children: /* @__PURE__ */ jsx2(Button, { variant: "secondary", size: "small", children: t("general.add") }) })
|
|
316
|
+
return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
|
|
317
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
318
|
+
/* @__PURE__ */ jsx3(Heading3, { level: "h2", children: t("customerGroups.domain") }),
|
|
319
|
+
/* @__PURE__ */ jsx3(Link, { to: `/customers/${customer.id}/add-customer-groups`, children: /* @__PURE__ */ jsx3(Button, { variant: "secondary", size: "small", children: t("general.add") }) })
|
|
244
320
|
] }),
|
|
245
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ jsx3(
|
|
246
322
|
_DataTable,
|
|
247
323
|
{
|
|
248
324
|
table,
|
|
249
325
|
columns,
|
|
250
326
|
pageSize: PAGE_SIZE,
|
|
251
|
-
isLoading,
|
|
327
|
+
isLoading: false,
|
|
252
328
|
count: flatCustomerGroups?.length ?? 0,
|
|
253
329
|
prefix: PREFIX,
|
|
254
330
|
navigateTo: (row) => `/customer-groups/${row.original.id}`,
|
|
@@ -280,7 +356,7 @@ var CustomerGroupRowActions = ({
|
|
|
280
356
|
customerId
|
|
281
357
|
}) => {
|
|
282
358
|
const prompt = usePrompt();
|
|
283
|
-
const { t: t2 } =
|
|
359
|
+
const { t: t2 } = useTranslation3();
|
|
284
360
|
const { mutateAsync } = useRemoveCustomersFromGroup(group.id);
|
|
285
361
|
const onRemove = async () => {
|
|
286
362
|
const res = await prompt({
|
|
@@ -300,7 +376,7 @@ var CustomerGroupRowActions = ({
|
|
|
300
376
|
}
|
|
301
377
|
});
|
|
302
378
|
};
|
|
303
|
-
return /* @__PURE__ */
|
|
379
|
+
return /* @__PURE__ */ jsx3(
|
|
304
380
|
ActionMenu,
|
|
305
381
|
{
|
|
306
382
|
groups: [
|
|
@@ -308,13 +384,13 @@ var CustomerGroupRowActions = ({
|
|
|
308
384
|
actions: [
|
|
309
385
|
{
|
|
310
386
|
label: t2("actions.edit"),
|
|
311
|
-
icon: /* @__PURE__ */
|
|
387
|
+
icon: /* @__PURE__ */ jsx3(PencilSquare, {}),
|
|
312
388
|
to: `/customer-groups/${group.id}/edit`
|
|
313
389
|
},
|
|
314
390
|
{
|
|
315
391
|
label: t2("actions.remove"),
|
|
316
392
|
onClick: onRemove,
|
|
317
|
-
icon: /* @__PURE__ */
|
|
393
|
+
icon: /* @__PURE__ */ jsx3(Trash, {})
|
|
318
394
|
}
|
|
319
395
|
]
|
|
320
396
|
}
|
|
@@ -323,14 +399,14 @@ var CustomerGroupRowActions = ({
|
|
|
323
399
|
);
|
|
324
400
|
};
|
|
325
401
|
var columnHelper = createColumnHelper();
|
|
326
|
-
var useColumns = (customerId) => {
|
|
327
|
-
const { t: t2 } =
|
|
402
|
+
var useColumns = (customerId, customerCountByGroup = {}) => {
|
|
403
|
+
const { t: t2 } = useTranslation3();
|
|
328
404
|
return useMemo(
|
|
329
405
|
() => [
|
|
330
406
|
columnHelper.display({
|
|
331
407
|
id: "select",
|
|
332
408
|
header: ({ table }) => {
|
|
333
|
-
return /* @__PURE__ */
|
|
409
|
+
return /* @__PURE__ */ jsx3(
|
|
334
410
|
Checkbox,
|
|
335
411
|
{
|
|
336
412
|
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
@@ -339,7 +415,7 @@ var useColumns = (customerId) => {
|
|
|
339
415
|
);
|
|
340
416
|
},
|
|
341
417
|
cell: ({ row }) => {
|
|
342
|
-
return /* @__PURE__ */
|
|
418
|
+
return /* @__PURE__ */ jsx3(
|
|
343
419
|
Checkbox,
|
|
344
420
|
{
|
|
345
421
|
checked: row.getIsSelected(),
|
|
@@ -352,14 +428,21 @@ var useColumns = (customerId) => {
|
|
|
352
428
|
}
|
|
353
429
|
}),
|
|
354
430
|
columnHelper.accessor("name", {
|
|
355
|
-
header: () => /* @__PURE__ */
|
|
431
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t2("fields.name") }),
|
|
432
|
+
cell: ({ row }) => {
|
|
433
|
+
return /* @__PURE__ */ jsx3(TextCell, { text: row.original?.name || "-" });
|
|
434
|
+
}
|
|
435
|
+
}),
|
|
436
|
+
columnHelper.display({
|
|
437
|
+
id: "customers",
|
|
438
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t2("customers.domain") }),
|
|
356
439
|
cell: ({ row }) => {
|
|
357
|
-
return /* @__PURE__ */
|
|
440
|
+
return /* @__PURE__ */ jsx3(TextCell, { text: `${customerCountByGroup[row.original.id] ?? 0}` });
|
|
358
441
|
}
|
|
359
442
|
}),
|
|
360
443
|
columnHelper.display({
|
|
361
444
|
id: "actions",
|
|
362
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
445
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(
|
|
363
446
|
CustomerGroupRowActions,
|
|
364
447
|
{
|
|
365
448
|
group: row.original,
|
|
@@ -368,15 +451,15 @@ var useColumns = (customerId) => {
|
|
|
368
451
|
)
|
|
369
452
|
})
|
|
370
453
|
],
|
|
371
|
-
[customerId, t2]
|
|
454
|
+
[customerId, t2, customerCountByGroup]
|
|
372
455
|
);
|
|
373
456
|
};
|
|
374
457
|
|
|
375
458
|
// src/pages/customers/[id]/_components/customer-order-section/customer-order-section.tsx
|
|
376
|
-
import { Container as
|
|
459
|
+
import { Container as Container4, Heading as Heading4 } from "@medusajs/ui";
|
|
377
460
|
import { useMemo as useMemo2 } from "react";
|
|
378
|
-
import { useTranslation as
|
|
379
|
-
import { jsx as
|
|
461
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
462
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
380
463
|
var PREFIX2 = "cusord";
|
|
381
464
|
var PAGE_SIZE2 = 10;
|
|
382
465
|
var DEFAULT_RELATIONS = "*customer,*items,*sales_channel";
|
|
@@ -384,7 +467,7 @@ var DEFAULT_FIELDS = "id,status,display_id,created_at,updated_at,email,fulfillme
|
|
|
384
467
|
var CustomerOrderSection = ({
|
|
385
468
|
customer
|
|
386
469
|
}) => {
|
|
387
|
-
const { t: t2 } =
|
|
470
|
+
const { t: t2 } = useTranslation4();
|
|
388
471
|
const { searchParams, raw } = useOrderTableQuery({
|
|
389
472
|
pageSize: PAGE_SIZE2,
|
|
390
473
|
prefix: PREFIX2
|
|
@@ -412,9 +495,9 @@ var CustomerOrderSection = ({
|
|
|
412
495
|
if (isError) {
|
|
413
496
|
throw error;
|
|
414
497
|
}
|
|
415
|
-
return /* @__PURE__ */
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
498
|
+
return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", children: [
|
|
499
|
+
/* @__PURE__ */ jsx4("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx4(Heading4, { level: "h2", children: t2("orders.domain") }) }),
|
|
500
|
+
/* @__PURE__ */ jsx4(
|
|
418
501
|
_DataTable,
|
|
419
502
|
{
|
|
420
503
|
columns,
|
|
@@ -453,7 +536,7 @@ var useColumns2 = () => {
|
|
|
453
536
|
};
|
|
454
537
|
|
|
455
538
|
// src/pages/customers/[id]/customer-detail-page.tsx
|
|
456
|
-
import { Fragment, jsx as
|
|
539
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
457
540
|
var Root = ({ children }) => {
|
|
458
541
|
const { id } = useParams();
|
|
459
542
|
const initialData = useLoaderData();
|
|
@@ -462,17 +545,26 @@ var Root = ({ children }) => {
|
|
|
462
545
|
{},
|
|
463
546
|
{ initialData }
|
|
464
547
|
);
|
|
465
|
-
if (isLoading || !customer)
|
|
548
|
+
if (isLoading || !customer) {
|
|
549
|
+
return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1 });
|
|
550
|
+
}
|
|
466
551
|
if (isError) throw error;
|
|
467
|
-
return /* @__PURE__ */
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
-
|
|
552
|
+
return /* @__PURE__ */ jsx5(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: customer, showJSON: true, hasOutlet: true, children: [
|
|
553
|
+
/* @__PURE__ */ jsxs5(TwoColumnPage.Main, { children: [
|
|
554
|
+
/* @__PURE__ */ jsx5(CustomerGeneralSection, { customer }),
|
|
555
|
+
/* @__PURE__ */ jsx5(CustomerOrderSection, { customer }),
|
|
556
|
+
/* @__PURE__ */ jsx5(CustomerGroupSection, { customer })
|
|
557
|
+
] }),
|
|
558
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(CustomerAddressSection, { customer }) })
|
|
470
559
|
] }) });
|
|
471
560
|
};
|
|
472
561
|
var CustomerDetailPage = Object.assign(Root, {
|
|
562
|
+
Main: TwoColumnPage.Main,
|
|
563
|
+
Sidebar: TwoColumnPage.Sidebar,
|
|
473
564
|
GeneralSection: CustomerGeneralSection,
|
|
474
565
|
OrderSection: CustomerOrderSection,
|
|
475
|
-
GroupSection: CustomerGroupSection
|
|
566
|
+
GroupSection: CustomerGroupSection,
|
|
567
|
+
AddressSection: CustomerAddressSection
|
|
476
568
|
});
|
|
477
569
|
export {
|
|
478
570
|
CustomerDetailPage,
|