mehdi-akbari-map 0.0.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/InteractiveMap.d.ts +4 -0
- package/dist/components/InteractiveMap.d.ts.map +1 -0
- package/dist/components/StoreCard.d.ts +10 -0
- package/dist/components/StoreCard.d.ts.map +1 -0
- package/dist/index.css +130 -32
- package/dist/index.css.map +1 -1
- package/dist/styles.css +108 -25
- package/dist/types/index.d.ts +7 -5
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractiveMap.d.ts","sourceRoot":"","sources":["../../src/components/InteractiveMap.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAS,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAuE7C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Store } from '../types';
|
|
3
|
+
interface StoreCardProps {
|
|
4
|
+
store: Store;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
onSelect: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const StoreCard: React.FC<StoreCardProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=StoreCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreCard.d.ts","sourceRoot":"","sources":["../../src/components/StoreCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,UAAU,cAAc;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwC9C,CAAC"}
|
package/dist/index.css
CHANGED
|
@@ -1,40 +1,138 @@
|
|
|
1
1
|
/* src/styles.css */
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
.map-layout-root {
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
direction: rtl;
|
|
7
|
+
font-family: inherit;
|
|
8
|
+
}
|
|
9
|
+
.sidebar {
|
|
10
|
+
width: 350px;
|
|
11
|
+
background: #fff;
|
|
12
|
+
border-left: 1px solid #eee;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
z-index: 10;
|
|
16
|
+
}
|
|
17
|
+
.sidebar-header {
|
|
18
|
+
padding: 20px;
|
|
19
|
+
font-weight: bold;
|
|
20
|
+
border-bottom: 1px solid #eee;
|
|
5
21
|
}
|
|
6
|
-
.
|
|
22
|
+
.sidebar-list {
|
|
23
|
+
flex: 1;
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
}
|
|
26
|
+
.map-container {
|
|
27
|
+
flex: 1;
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
.store-card {
|
|
31
|
+
padding: 15px;
|
|
32
|
+
border-bottom: 1px solid #f0f0f0;
|
|
7
33
|
cursor: pointer;
|
|
8
|
-
|
|
34
|
+
transition: background 0.2s;
|
|
35
|
+
}
|
|
36
|
+
.store-card:hover {
|
|
37
|
+
background: #f9f9f9;
|
|
38
|
+
}
|
|
39
|
+
.store-card.active {
|
|
40
|
+
background: #f0f7ff;
|
|
41
|
+
border-right: 4px solid #3b82f6;
|
|
42
|
+
}
|
|
43
|
+
.store-card-header {
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
margin-bottom: 8px;
|
|
47
|
+
}
|
|
48
|
+
.store-name {
|
|
49
|
+
margin: 0;
|
|
50
|
+
font-size: 15px;
|
|
51
|
+
color: #1a1a1a;
|
|
52
|
+
}
|
|
53
|
+
.store-city {
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
color: #777;
|
|
56
|
+
}
|
|
57
|
+
.store-price {
|
|
58
|
+
color: #059669;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
font-size: 14px;
|
|
9
61
|
}
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
|
|
62
|
+
.store-desc {
|
|
63
|
+
font-size: 12px;
|
|
64
|
+
color: #555;
|
|
65
|
+
line-height: 1.6;
|
|
66
|
+
}
|
|
67
|
+
.store-details-wrapper {
|
|
68
|
+
display: grid;
|
|
69
|
+
grid-template-rows: 0fr;
|
|
70
|
+
transition: grid-template-rows 0.3s ease-out;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
}
|
|
73
|
+
.active .store-details-wrapper {
|
|
74
|
+
grid-template-rows: 1fr;
|
|
75
|
+
margin-top: 12px;
|
|
76
|
+
}
|
|
77
|
+
.store-details-content {
|
|
78
|
+
min-height: 0;
|
|
79
|
+
}
|
|
80
|
+
.action-buttons {
|
|
81
|
+
display: flex;
|
|
82
|
+
gap: 8px;
|
|
83
|
+
}
|
|
84
|
+
.btn {
|
|
85
|
+
flex: 1;
|
|
86
|
+
padding: 8px;
|
|
87
|
+
border-radius: 6px;
|
|
88
|
+
text-align: center;
|
|
89
|
+
text-decoration: none;
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
color: #fff;
|
|
92
|
+
transition: opacity 0.2s;
|
|
93
|
+
}
|
|
94
|
+
.btn:hover {
|
|
95
|
+
opacity: 0.9;
|
|
96
|
+
}
|
|
97
|
+
.btn-call {
|
|
98
|
+
background: #3b82f6;
|
|
99
|
+
}
|
|
100
|
+
.btn-wa {
|
|
101
|
+
background: #10b981;
|
|
102
|
+
}
|
|
103
|
+
.btn-route {
|
|
104
|
+
background: #8b5cf6;
|
|
105
|
+
}
|
|
106
|
+
.is-mobile .mobile-slider {
|
|
107
|
+
position: absolute;
|
|
108
|
+
bottom: 20px;
|
|
109
|
+
left: 0;
|
|
110
|
+
right: 0;
|
|
111
|
+
display: flex;
|
|
112
|
+
gap: 12px;
|
|
113
|
+
padding: 0 20px;
|
|
114
|
+
overflow-x: auto;
|
|
115
|
+
scroll-snap-type: x mandatory;
|
|
116
|
+
pointer-events: none;
|
|
117
|
+
}
|
|
118
|
+
.is-mobile .store-card {
|
|
119
|
+
min-width: 280px;
|
|
120
|
+
background: #fff;
|
|
121
|
+
border-radius: 12px;
|
|
122
|
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
|
|
123
|
+
pointer-events: auto;
|
|
124
|
+
scroll-snap-align: center;
|
|
13
125
|
}
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
126
|
+
.product-badge {
|
|
127
|
+
position: absolute;
|
|
128
|
+
top: 20px;
|
|
129
|
+
right: 20px;
|
|
130
|
+
background: rgba(255, 255, 255, 0.9);
|
|
131
|
+
padding: 8px 15px;
|
|
132
|
+
border-radius: 8px;
|
|
133
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
18
134
|
font-weight: bold;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
margin-top: 4px;
|
|
22
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
23
|
-
white-space: nowrap;
|
|
24
|
-
border: 1px solid #e5e7eb;
|
|
25
|
-
}
|
|
26
|
-
.neshan-marker-selected .neshan-marker-body {
|
|
27
|
-
animation: marker-pulse 1.5s infinite ease-in-out;
|
|
28
|
-
}
|
|
29
|
-
@keyframes marker-pulse {
|
|
30
|
-
0% {
|
|
31
|
-
transform: scale(1.2);
|
|
32
|
-
}
|
|
33
|
-
50% {
|
|
34
|
-
transform: scale(1.3);
|
|
35
|
-
}
|
|
36
|
-
100% {
|
|
37
|
-
transform: scale(1.2);
|
|
38
|
-
}
|
|
135
|
+
font-size: 13px;
|
|
136
|
+
z-index: 5;
|
|
39
137
|
}
|
|
40
138
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles.css"],"sourcesContent":["\r\n
|
|
1
|
+
{"version":3,"sources":["../src/styles.css"],"sourcesContent":[".map-layout-root {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n direction: rtl;\r\n font-family: inherit;\r\n}\r\n\r\n/* Sidebar Desktop */\r\n.sidebar {\r\n width: 350px;\r\n background: #fff;\r\n border-left: 1px solid #eee;\r\n display: flex;\r\n flex-direction: column;\r\n z-index: 10;\r\n}\r\n\r\n.sidebar-header {\r\n padding: 20px;\r\n font-weight: bold;\r\n border-bottom: 1px solid #eee;\r\n}\r\n\r\n.sidebar-list {\r\n flex: 1;\r\n overflow-y: auto;\r\n}\r\n\r\n/* Map Section */\r\n.map-container {\r\n flex: 1;\r\n position: relative;\r\n}\r\n\r\n/* Store Card Style */\r\n.store-card {\r\n padding: 15px;\r\n border-bottom: 1px solid #f0f0f0;\r\n cursor: pointer;\r\n transition: background 0.2s;\r\n}\r\n\r\n.store-card:hover { background: #f9f9f9; }\r\n.store-card.active { background: #f0f7ff; border-right: 4px solid #3b82f6; }\r\n\r\n.store-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }\r\n.store-name { margin: 0; font-size: 15px; color: #1a1a1a; }\r\n.store-city { font-size: 12px; color: #777; }\r\n.store-price { color: #059669; font-weight: bold; font-size: 14px; }\r\n.store-desc { font-size: 12px; color: #555; line-height: 1.6; }\r\n\r\n/* CSS Accordion Effect */\r\n.store-details-wrapper {\r\n display: grid;\r\n grid-template-rows: 0fr;\r\n transition: grid-template-rows 0.3s ease-out;\r\n overflow: hidden;\r\n}\r\n\r\n.active .store-details-wrapper {\r\n grid-template-rows: 1fr;\r\n margin-top: 12px;\r\n}\r\n\r\n.store-details-content { min-height: 0; }\r\n\r\n.action-buttons {\r\n display: flex;\r\n gap: 8px;\r\n}\r\n\r\n.btn {\r\n flex: 1;\r\n padding: 8px;\r\n border-radius: 6px;\r\n text-align: center;\r\n text-decoration: none;\r\n font-size: 12px;\r\n color: #fff;\r\n transition: opacity 0.2s;\r\n}\r\n\r\n.btn:hover { opacity: 0.9; }\r\n.btn-call { background: #3b82f6; }\r\n.btn-wa { background: #10b981; }\r\n.btn-route { background: #8b5cf6; }\r\n\r\n/* Mobile View */\r\n.is-mobile .mobile-slider {\r\n position: absolute;\r\n bottom: 20px;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n gap: 12px;\r\n padding: 0 20px;\r\n overflow-x: auto;\r\n scroll-snap-type: x mandatory;\r\n pointer-events: none; /* اجازه کلیک روی نقشه در جاهای خالی */\r\n}\r\n\r\n.is-mobile .store-card {\r\n min-width: 280px;\r\n background: #fff;\r\n border-radius: 12px;\r\n box-shadow: 0 4px 15px rgba(0,0,0,0.15);\r\n pointer-events: auto;\r\n scroll-snap-align: center;\r\n}\r\n\r\n.product-badge {\r\n position: absolute;\r\n top: 20px;\r\n right: 20px;\r\n background: rgba(255, 255, 255, 0.9);\r\n padding: 8px 15px;\r\n border-radius: 8px;\r\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\r\n font-weight: bold;\r\n font-size: 13px;\r\n z-index: 5;\r\n}"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,SAAO;AACP,UAAQ;AACR,aAAW;AACX,eAAa;AACf;AAGA,CAAC;AACC,SAAO;AACP,cAAY;AACZ,eAAa,IAAI,MAAM;AACvB,WAAS;AACT,kBAAgB;AAChB,WAAS;AACX;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,iBAAe,IAAI,MAAM;AAC3B;AAEA,CAAC;AACC,QAAM;AACN,cAAY;AACd;AAGA,CAAC;AACC,QAAM;AACN,YAAU;AACZ;AAGA,CAAC;AACC,WAAS;AACT,iBAAe,IAAI,MAAM;AACzB,UAAQ;AACR,cAAY,WAAW;AACzB;AAEA,CAP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GAAG,EAAE;AAChC,WAAS,IAAI;AACb,iBAAe;AACf,cAAY,EAAE,IAAI,KAAK,KAAK,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC;AAClC,eAAa;AACb,aAAW;AACX,WAAS;AACX;","names":[]}
|
package/dist/styles.css
CHANGED
|
@@ -1,40 +1,123 @@
|
|
|
1
|
+
.map-layout-root {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
direction: rtl;
|
|
6
|
+
font-family: inherit;
|
|
7
|
+
}
|
|
1
8
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
9
|
+
/* Sidebar Desktop */
|
|
10
|
+
.sidebar {
|
|
11
|
+
width: 350px;
|
|
12
|
+
background: #fff;
|
|
13
|
+
border-left: 1px solid #eee;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
z-index: 10;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sidebar-header {
|
|
20
|
+
padding: 20px;
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
border-bottom: 1px solid #eee;
|
|
5
23
|
}
|
|
6
24
|
|
|
25
|
+
.sidebar-list {
|
|
26
|
+
flex: 1;
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Map Section */
|
|
31
|
+
.map-container {
|
|
32
|
+
flex: 1;
|
|
33
|
+
position: relative;
|
|
34
|
+
}
|
|
7
35
|
|
|
8
|
-
|
|
36
|
+
/* Store Card Style */
|
|
37
|
+
.store-card {
|
|
38
|
+
padding: 15px;
|
|
39
|
+
border-bottom: 1px solid #f0f0f0;
|
|
9
40
|
cursor: pointer;
|
|
10
|
-
|
|
41
|
+
transition: background 0.2s;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.store-card:hover { background: #f9f9f9; }
|
|
45
|
+
.store-card.active { background: #f0f7ff; border-right: 4px solid #3b82f6; }
|
|
46
|
+
|
|
47
|
+
.store-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
|
|
48
|
+
.store-name { margin: 0; font-size: 15px; color: #1a1a1a; }
|
|
49
|
+
.store-city { font-size: 12px; color: #777; }
|
|
50
|
+
.store-price { color: #059669; font-weight: bold; font-size: 14px; }
|
|
51
|
+
.store-desc { font-size: 12px; color: #555; line-height: 1.6; }
|
|
52
|
+
|
|
53
|
+
/* CSS Accordion Effect */
|
|
54
|
+
.store-details-wrapper {
|
|
55
|
+
display: grid;
|
|
56
|
+
grid-template-rows: 0fr;
|
|
57
|
+
transition: grid-template-rows 0.3s ease-out;
|
|
58
|
+
overflow: hidden;
|
|
11
59
|
}
|
|
12
60
|
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
|
|
61
|
+
.active .store-details-wrapper {
|
|
62
|
+
grid-template-rows: 1fr;
|
|
63
|
+
margin-top: 12px;
|
|
16
64
|
}
|
|
17
65
|
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
border:
|
|
66
|
+
.store-details-content { min-height: 0; }
|
|
67
|
+
|
|
68
|
+
.action-buttons {
|
|
69
|
+
display: flex;
|
|
70
|
+
gap: 8px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.btn {
|
|
74
|
+
flex: 1;
|
|
75
|
+
padding: 8px;
|
|
76
|
+
border-radius: 6px;
|
|
77
|
+
text-align: center;
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
color: #fff;
|
|
81
|
+
transition: opacity 0.2s;
|
|
29
82
|
}
|
|
30
83
|
|
|
84
|
+
.btn:hover { opacity: 0.9; }
|
|
85
|
+
.btn-call { background: #3b82f6; }
|
|
86
|
+
.btn-wa { background: #10b981; }
|
|
87
|
+
.btn-route { background: #8b5cf6; }
|
|
31
88
|
|
|
32
|
-
|
|
33
|
-
|
|
89
|
+
/* Mobile View */
|
|
90
|
+
.is-mobile .mobile-slider {
|
|
91
|
+
position: absolute;
|
|
92
|
+
bottom: 20px;
|
|
93
|
+
left: 0;
|
|
94
|
+
right: 0;
|
|
95
|
+
display: flex;
|
|
96
|
+
gap: 12px;
|
|
97
|
+
padding: 0 20px;
|
|
98
|
+
overflow-x: auto;
|
|
99
|
+
scroll-snap-type: x mandatory;
|
|
100
|
+
pointer-events: none; /* اجازه کلیک روی نقشه در جاهای خالی */
|
|
34
101
|
}
|
|
35
102
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
103
|
+
.is-mobile .store-card {
|
|
104
|
+
min-width: 280px;
|
|
105
|
+
background: #fff;
|
|
106
|
+
border-radius: 12px;
|
|
107
|
+
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
|
|
108
|
+
pointer-events: auto;
|
|
109
|
+
scroll-snap-align: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.product-badge {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 20px;
|
|
115
|
+
right: 20px;
|
|
116
|
+
background: rgba(255, 255, 255, 0.9);
|
|
117
|
+
padding: 8px 15px;
|
|
118
|
+
border-radius: 8px;
|
|
119
|
+
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
120
|
+
font-weight: bold;
|
|
121
|
+
font-size: 13px;
|
|
122
|
+
z-index: 5;
|
|
40
123
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,30 +6,32 @@ export interface MapOptions {
|
|
|
6
6
|
zoom?: number;
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface Store {
|
|
10
10
|
id: string | number;
|
|
11
11
|
lat: number;
|
|
12
12
|
lng: number;
|
|
13
|
-
name
|
|
14
|
-
price?: string;
|
|
13
|
+
name: string;
|
|
15
14
|
city?: string;
|
|
16
15
|
performance?: string;
|
|
17
16
|
desc?: string;
|
|
17
|
+
price?: string;
|
|
18
18
|
phone?: string;
|
|
19
19
|
whatsapp?: string;
|
|
20
20
|
[key: string]: any;
|
|
21
21
|
}
|
|
22
|
+
export type MarkerData = Store;
|
|
22
23
|
export interface MapProps {
|
|
23
24
|
options: MapOptions;
|
|
24
|
-
markers?:
|
|
25
|
+
markers?: Store[];
|
|
25
26
|
selectedMarkerId?: string | number | null;
|
|
26
|
-
onMarkerClick?: (marker:
|
|
27
|
+
onMarkerClick?: (marker: Store, index: number, map: MapboxMap) => void;
|
|
27
28
|
onMapLoad?: (map: MapboxMap) => void;
|
|
28
29
|
children?: React.ReactNode;
|
|
29
30
|
className?: string;
|
|
30
31
|
style?: React.CSSProperties;
|
|
31
32
|
markerLogoUrl?: string;
|
|
32
33
|
flyToOnSelect?: boolean;
|
|
34
|
+
productName?: string;
|
|
33
35
|
}
|
|
34
36
|
export type { LngLatLike, LngLatBoundsLike, MapboxMap, MapboxMarker, PointLike };
|
|
35
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,GAAG,IAAI,SAAS,EAChB,MAAM,IAAI,YAAY,EACtB,SAAS,EACV,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,GAAG,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;IACrD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAGD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MA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