ekm-ui 0.3.91 → 0.3.93

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.
@@ -1,5 +1,5 @@
1
1
  $ tsup
2
- CLI Building entry: src/accordion.tsx, src/alert-banner.tsx, src/alert.tsx, src/avatar.tsx, src/badge.tsx, src/breadcrumb.tsx, src/button-group-item.tsx, src/button.tsx, src/card-payment-block.tsx, src/card.tsx, src/checkbox.tsx, src/color-picker.tsx, src/dashboard-notification.tsx, src/date-range-picker.tsx, src/drag-and-drop.tsx, src/draggable-stacked-list-item.tsx, src/drawer.tsx, src/dropdown.tsx, src/ekm-logo.tsx, src/fixed-alert.tsx, src/footer-heart-icon.tsx, src/form-row.tsx, src/image-thumbnail.tsx, src/index.tsx, src/input-addon.tsx, src/input-copy.tsx, src/label.tsx, src/loading-button.tsx, src/love-footer.tsx, src/mini-feature-block.tsx, src/modal.tsx, src/no-results-block.tsx, src/page-header.tsx, src/progress-bar.tsx, src/radio.tsx, src/select.tsx, src/spinner.tsx, src/stacked-list-item.tsx, src/table-result-block.tsx, src/test-component.tsx, src/text-row.tsx, src/textarea.tsx, src/textinput.tsx, src/toggleswitch.tsx, src/video-dashboard-notification.tsx, src/video-modal.tsx, src/feature-cards/feature-card.tsx, src/feature-cards/staff-pick-card.tsx, src/featurePageComponents/feature-page-group.tsx, src/featurePageComponents/mini-feature-block.tsx, src/file-picker/file-listing.tsx, src/file-picker/file-picker.tsx, src/layout/layout.tsx, src/navbar/navbar.tsx, src/nbui/nbui-card.tsx, src/nbui/nbui-container.tsx, src/pagination/pagination.tsx, src/product-picker/product-listing.tsx, src/product-picker/product-modal.tsx, src/search/search.tsx, src/sidebar/sidebar.tsx, src/sort/sort.tsx, src/table-header/table-header.tsx, src/toast/index.tsx, src/tooltip/tooltip.tsx
2
+ CLI Building entry: src/accordion.tsx, src/alert-banner.tsx, src/alert.tsx, src/avatar.tsx, src/badge.tsx, src/breadcrumb.tsx, src/button-group-item.tsx, src/button.tsx, src/card-payment-block.tsx, src/card.tsx, src/checkbox.tsx, src/color-picker.tsx, src/dashboard-notification.tsx, src/date-range-picker.tsx, src/drag-and-drop.tsx, src/draggable-stacked-list-item.tsx, src/drawer.tsx, src/dropdown.tsx, src/ekm-logo.tsx, src/fixed-alert.tsx, src/footer-heart-icon.tsx, src/form-row.tsx, src/image-thumbnail.tsx, src/index.tsx, src/input-addon.tsx, src/input-copy.tsx, src/label.tsx, src/loading-button.tsx, src/love-footer.tsx, src/mini-feature-block.tsx, src/modal.tsx, src/no-results-block.tsx, src/page-header.tsx, src/progress-bar.tsx, src/radio.tsx, src/select.tsx, src/spinner.tsx, src/stacked-list-item.tsx, src/table-result-block.tsx, src/test-component.tsx, src/text-row.tsx, src/textarea.tsx, src/textinput.tsx, src/toggleswitch.tsx, src/video-dashboard-notification.tsx, src/video-modal.tsx, src/country-picker/country-listing.tsx, src/country-picker/country-modal.tsx, src/feature-cards/feature-card.tsx, src/feature-cards/staff-pick-card.tsx, src/featurePageComponents/feature-page-group.tsx, src/featurePageComponents/mini-feature-block.tsx, src/file-picker/file-listing.tsx, src/file-picker/file-picker.tsx, src/layout/layout.tsx, src/navbar/navbar.tsx, src/nbui/nbui-card.tsx, src/nbui/nbui-container.tsx, src/pagination/pagination.tsx, src/product-picker/product-listing.tsx, src/product-picker/product-modal.tsx, src/search/search.tsx, src/sidebar/sidebar.tsx, src/sort/sort.tsx, src/table-header/table-header.tsx, src/toast/index.tsx, src/tooltip/tooltip.tsx
3
3
  CLI Using tsconfig: tsconfig.json
4
4
  CLI tsup v6.7.0
5
5
  CLI Using tsup config: /home/runner/work/dev/dev/frontend/packages/ekm-ui/tsup.config.ts
@@ -10,8 +10,8 @@ Browserslist: caniuse-lite is outdated. Please run:
10
10
  npx update-browserslist-db@latest
11
11
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 58018ms
14
- DTS dist/index.d.ts 2.97 KB
13
+ DTS ⚡️ Build success in 66298ms
14
+ DTS dist/index.d.ts 3.04 KB
15
15
  DTS dist/footer-heart-icon.d.ts 70.00 B
16
16
  DTS dist/accordion.d.ts 2.25 KB
17
17
  DTS dist/alert-banner.d.ts 1.12 KB
@@ -73,6 +73,8 @@ Browserslist: caniuse-lite is outdated. Please run:
73
73
  DTS dist/test-component.d.ts 136.00 B
74
74
  DTS dist/nbui/nbui-container.d.ts 112.00 B
75
75
  DTS dist/nbui/nbui-card.d.ts 66.00 B
76
+ DTS dist/country-picker/country-modal.d.ts 1.15 KB
77
+ DTS dist/country-picker/country-listing.d.ts 763.00 B
76
78
  DTS dist/featurePageComponents/mini-feature-block.d.ts 254.00 B
77
79
  DTS dist/file-picker/file-listing.d.ts 992.00 B
78
80
  DTS dist/product-picker/product-listing.d.ts 890.00 B
@@ -80,6 +82,7 @@ Browserslist: caniuse-lite is outdated. Please run:
80
82
  ESM dist/product-picker/product-modal.css 123.15 KB
81
83
  ESM dist/file-picker/file-picker.css 123.14 KB
82
84
  ESM dist/layout/layout.css 123.14 KB
85
+ ESM dist/country-picker/country-modal.css 123.15 KB
83
86
  ESM dist/stacked-list-item.css 123.15 KB
84
87
  ESM dist/table-result-block.css 123.15 KB
85
88
  ESM dist/index.css 123.14 KB
@@ -87,89 +90,92 @@ Browserslist: caniuse-lite is outdated. Please run:
87
90
  ESM dist/drag-and-drop.css 123.15 KB
88
91
  ESM dist/product-picker/product-modal.css.map 174.79 KB
89
92
  ESM dist/file-picker/file-picker.css.map 174.79 KB
93
+ ESM dist/country-picker/country-modal.css.map 174.79 KB
90
94
  ESM dist/layout/layout.css.map 174.79 KB
91
95
  ESM dist/stacked-list-item.css.map 174.79 KB
92
96
  ESM dist/table-result-block.css.map 174.79 KB
93
- ESM dist/index.css.map 174.79 KB
94
97
  ESM dist/card-payment-block.css.map 174.79 KB
98
+ ESM dist/index.css.map 174.79 KB
95
99
  ESM dist/drag-and-drop.css.map 174.79 KB
96
100
  ESM dist/chunk-Z4LPO673.js 1.34 KB
101
+ ESM dist/table-header/table-header.js 284.00 B
102
+ ESM dist/toast/index.js 189.00 B
97
103
  ESM dist/tooltip/tooltip.js 151.00 B
104
+ ESM dist/nbui/nbui-card.js 155.00 B
105
+ ESM dist/nbui/nbui-container.js 165.00 B
98
106
  ESM dist/pagination/pagination.js 157.00 B
99
107
  ESM dist/product-picker/product-listing.js 252.00 B
100
- ESM dist/product-picker/product-modal.js 1.88 KB
108
+ ESM dist/product-picker/product-modal.js 1.92 KB
101
109
  ESM dist/search/search.js 180.00 B
102
110
  ESM dist/sidebar/sidebar.js 151.00 B
103
111
  ESM dist/sort/sort.js 176.00 B
104
- ESM dist/table-header/table-header.js 284.00 B
105
- ESM dist/toast/index.js 189.00 B
112
+ ESM dist/feature-cards/feature-card.js 253.00 B
113
+ ESM dist/feature-cards/staff-pick-card.js 165.00 B
106
114
  ESM dist/featurePageComponents/feature-page-group.js 171.00 B
107
115
  ESM dist/featurePageComponents/mini-feature-block.js 738.00 B
108
116
  ESM dist/file-picker/file-listing.js 218.00 B
109
- ESM dist/file-picker/file-picker.js 1.88 KB
110
- ESM dist/layout/layout.js 1.87 KB
117
+ ESM dist/file-picker/file-picker.js 1.91 KB
118
+ ESM dist/layout/layout.js 1.90 KB
111
119
  ESM dist/navbar/navbar.js 180.00 B
112
- ESM dist/nbui/nbui-card.js 155.00 B
113
- ESM dist/nbui/nbui-container.js 165.00 B
114
120
  ESM dist/text-row.js 180.00 B
115
121
  ESM dist/textarea.js 181.00 B
116
- ESM dist/textinput.js 183.00 B
117
122
  ESM dist/toggleswitch.js 189.00 B
118
- ESM dist/video-dashboard-notification.js 189.00 B
123
+ ESM dist/textinput.js 183.00 B
119
124
  ESM dist/video-modal.js 156.00 B
120
- ESM dist/feature-cards/feature-card.js 253.00 B
121
- ESM dist/feature-cards/staff-pick-card.js 165.00 B
125
+ ESM dist/video-dashboard-notification.js 189.00 B
126
+ ESM dist/country-picker/country-modal.js 1.92 KB
127
+ ESM dist/country-picker/country-listing.js 259.00 B
122
128
  ESM dist/page-header.js 216.00 B
123
129
  ESM dist/progress-bar.js 188.00 B
124
130
  ESM dist/radio.js 175.00 B
125
131
  ESM dist/select.js 177.00 B
126
132
  ESM dist/spinner.js 149.00 B
127
- ESM dist/stacked-list-item.js 1.83 KB
128
- ESM dist/table-result-block.js 1.83 KB
133
+ ESM dist/stacked-list-item.js 1.86 KB
129
134
  ESM dist/test-component.js 162.00 B
130
- ESM dist/input-addon.js 156.00 B
135
+ ESM dist/table-result-block.js 1.86 KB
131
136
  ESM dist/input-copy.js 214.00 B
137
+ ESM dist/input-addon.js 156.00 B
132
138
  ESM dist/label.js 145.00 B
133
139
  ESM dist/loading-button.js 192.00 B
134
- ESM dist/love-footer.js 156.00 B
135
140
  ESM dist/mini-feature-block.js 259.00 B
136
- ESM dist/modal.js 209.00 B
141
+ ESM dist/love-footer.js 156.00 B
137
142
  ESM dist/no-results-block.js 165.00 B
138
- ESM dist/drawer.js 147.00 B
143
+ ESM dist/modal.js 209.00 B
139
144
  ESM dist/dropdown.js 222.00 B
145
+ ESM dist/drawer.js 147.00 B
140
146
  ESM dist/ekm-logo.js 150.00 B
141
147
  ESM dist/fixed-alert.js 246.00 B
142
- ESM dist/footer-heart-icon.js 56.43 KB
143
148
  ESM dist/form-row.js 180.00 B
144
149
  ESM dist/image-thumbnail.js 164.00 B
145
- ESM dist/index.js 3.25 KB
146
- ESM dist/card-payment-block.js 1.83 KB
150
+ ESM dist/index.js 3.29 KB
151
+ ESM dist/card-payment-block.js 1.86 KB
147
152
  ESM dist/card.js 173.00 B
148
153
  ESM dist/checkbox.js 211.00 B
149
154
  ESM dist/color-picker.js 188.00 B
150
155
  ESM dist/dashboard-notification.js 238.00 B
156
+ ESM dist/footer-heart-icon.js 56.43 KB
151
157
  ESM dist/date-range-picker.js 347.00 B
152
- ESM dist/drag-and-drop.js 1.83 KB
153
- ESM dist/chunk-44UX4FUN.js 25.60 KB
154
- ESM dist/chunk-RHBXFO7R.js 6.56 KB
158
+ ESM dist/drag-and-drop.js 1.85 KB
159
+ ESM dist/chunk-46XKR7EO.js 29.07 KB
160
+ ESM dist/chunk-YZ2YZSNQ.js 2.37 KB
161
+ ESM dist/chunk-E62SCYLR.js 2.13 KB
162
+ ESM dist/chunk-X6RBGNFS.js 827.00 B
163
+ ESM dist/chunk-7Q6OMA2A.js 782.00 B
164
+ ESM dist/chunk-ZHMUFBQM.js 75.15 KB
155
165
  ESM dist/chunk-5VOOMPCL.js 4.26 KB
156
166
  ESM dist/chunk-N7JQ6EAC.js 3.53 KB
157
167
  ESM dist/chunk-HVNLAQA6.js 1.81 KB
158
168
  ESM dist/chunk-52VBZOHL.js 2.06 KB
159
- ESM dist/chunk-ZHMUFBQM.js 75.15 KB
160
- ESM dist/chunk-E62SCYLR.js 2.13 KB
161
- ESM dist/chunk-YZ2YZSNQ.js 2.37 KB
169
+ ESM dist/chunk-7WJGATIR.js 1.35 KB
170
+ ESM dist/chunk-RTRHNOTP.js 690.00 B
162
171
  ESM dist/chunk-JHGOFDVG.js 1017.00 B
163
172
  ESM dist/chunk-4E6CDLVE.js 3.79 KB
164
173
  ESM dist/chunk-XXP5K6Y4.js 10.39 KB
165
- ESM dist/chunk-X6RBGNFS.js 827.00 B
166
- ESM dist/chunk-7Q6OMA2A.js 782.00 B
167
174
  ESM dist/chunk-5GLAT3VP.js 624.00 B
168
175
  ESM dist/chunk-QCHLLBHM.js 1.39 KB
169
176
  ESM dist/chunk-LIXVY47P.js 1.20 KB
170
177
  ESM dist/chunk-G2WGEIWK.js 1.75 KB
171
- ESM dist/chunk-7WJGATIR.js 1.35 KB
172
- ESM dist/chunk-RTRHNOTP.js 690.00 B
178
+ ESM dist/chunk-3NO5IHBO.js 1.69 KB
173
179
  ESM dist/chunk-SFEJDNIA.js 1.14 KB
174
180
  ESM dist/chunk-E5KIDP3Z.js 1.04 KB
175
181
  ESM dist/chunk-TBJGGVSZ.js 741.00 B
@@ -217,53 +223,55 @@ Browserslist: caniuse-lite is outdated. Please run:
217
223
  ESM dist/chunk-BLUJNMXF.js 3.88 KB
218
224
  ESM dist/chunk-TJMI4DH2.js 19.88 KB
219
225
  ESM dist/chunk-6LHL364H.js 15.70 KB
226
+ ESM dist/chunk-RHBXFO7R.js 6.56 KB
220
227
  ESM dist/chunk-Z4LPO673.js.map 71.00 B
228
+ ESM dist/table-header/table-header.js.map 51.00 B
229
+ ESM dist/toast/index.js.map 51.00 B
221
230
  ESM dist/tooltip/tooltip.js.map 51.00 B
231
+ ESM dist/nbui/nbui-card.js.map 51.00 B
232
+ ESM dist/nbui/nbui-container.js.map 51.00 B
222
233
  ESM dist/pagination/pagination.js.map 51.00 B
223
234
  ESM dist/product-picker/product-listing.js.map 51.00 B
224
235
  ESM dist/product-picker/product-modal.js.map 51.00 B
225
236
  ESM dist/search/search.js.map 51.00 B
226
237
  ESM dist/sidebar/sidebar.js.map 51.00 B
227
238
  ESM dist/sort/sort.js.map 51.00 B
228
- ESM dist/table-header/table-header.js.map 51.00 B
229
- ESM dist/toast/index.js.map 51.00 B
239
+ ESM dist/feature-cards/feature-card.js.map 51.00 B
240
+ ESM dist/feature-cards/staff-pick-card.js.map 51.00 B
230
241
  ESM dist/featurePageComponents/feature-page-group.js.map 51.00 B
231
242
  ESM dist/featurePageComponents/mini-feature-block.js.map 1.53 KB
232
243
  ESM dist/file-picker/file-listing.js.map 51.00 B
233
244
  ESM dist/file-picker/file-picker.js.map 51.00 B
234
245
  ESM dist/layout/layout.js.map 51.00 B
235
246
  ESM dist/navbar/navbar.js.map 51.00 B
236
- ESM dist/nbui/nbui-card.js.map 51.00 B
237
- ESM dist/nbui/nbui-container.js.map 51.00 B
238
247
  ESM dist/text-row.js.map 51.00 B
239
248
  ESM dist/textarea.js.map 51.00 B
240
- ESM dist/textinput.js.map 51.00 B
241
249
  ESM dist/toggleswitch.js.map 51.00 B
242
- ESM dist/video-dashboard-notification.js.map 51.00 B
250
+ ESM dist/textinput.js.map 51.00 B
243
251
  ESM dist/video-modal.js.map 51.00 B
244
- ESM dist/feature-cards/feature-card.js.map 51.00 B
245
- ESM dist/feature-cards/staff-pick-card.js.map 51.00 B
252
+ ESM dist/video-dashboard-notification.js.map 51.00 B
253
+ ESM dist/country-picker/country-modal.js.map 51.00 B
254
+ ESM dist/country-picker/country-listing.js.map 51.00 B
246
255
  ESM dist/page-header.js.map 51.00 B
247
256
  ESM dist/progress-bar.js.map 51.00 B
248
257
  ESM dist/radio.js.map 51.00 B
249
258
  ESM dist/select.js.map 51.00 B
250
259
  ESM dist/spinner.js.map 51.00 B
251
260
  ESM dist/stacked-list-item.js.map 51.00 B
252
- ESM dist/table-result-block.js.map 51.00 B
253
261
  ESM dist/test-component.js.map 51.00 B
254
- ESM dist/input-addon.js.map 51.00 B
262
+ ESM dist/table-result-block.js.map 51.00 B
255
263
  ESM dist/input-copy.js.map 51.00 B
264
+ ESM dist/input-addon.js.map 51.00 B
256
265
  ESM dist/label.js.map 51.00 B
257
266
  ESM dist/loading-button.js.map 51.00 B
258
- ESM dist/love-footer.js.map 51.00 B
259
267
  ESM dist/mini-feature-block.js.map 51.00 B
260
- ESM dist/modal.js.map 51.00 B
268
+ ESM dist/love-footer.js.map 51.00 B
261
269
  ESM dist/no-results-block.js.map 51.00 B
262
- ESM dist/drawer.js.map 51.00 B
270
+ ESM dist/modal.js.map 51.00 B
263
271
  ESM dist/dropdown.js.map 51.00 B
272
+ ESM dist/drawer.js.map 51.00 B
264
273
  ESM dist/ekm-logo.js.map 51.00 B
265
274
  ESM dist/fixed-alert.js.map 51.00 B
266
- ESM dist/footer-heart-icon.js.map 57.05 KB
267
275
  ESM dist/form-row.js.map 51.00 B
268
276
  ESM dist/image-thumbnail.js.map 51.00 B
269
277
  ESM dist/index.js.map 51.00 B
@@ -272,27 +280,28 @@ Browserslist: caniuse-lite is outdated. Please run:
272
280
  ESM dist/checkbox.js.map 51.00 B
273
281
  ESM dist/color-picker.js.map 51.00 B
274
282
  ESM dist/dashboard-notification.js.map 51.00 B
283
+ ESM dist/footer-heart-icon.js.map 57.05 KB
275
284
  ESM dist/date-range-picker.js.map 51.00 B
276
285
  ESM dist/drag-and-drop.js.map 51.00 B
277
- ESM dist/chunk-44UX4FUN.js.map 70.33 KB
278
- ESM dist/chunk-RHBXFO7R.js.map 13.70 KB
286
+ ESM dist/chunk-46XKR7EO.js.map 81.40 KB
287
+ ESM dist/chunk-YZ2YZSNQ.js.map 5.68 KB
288
+ ESM dist/chunk-E62SCYLR.js.map 4.29 KB
289
+ ESM dist/chunk-X6RBGNFS.js.map 1.18 KB
290
+ ESM dist/chunk-7Q6OMA2A.js.map 1.28 KB
279
291
  ESM dist/chunk-5VOOMPCL.js.map 9.68 KB
280
292
  ESM dist/chunk-N7JQ6EAC.js.map 9.87 KB
281
293
  ESM dist/chunk-HVNLAQA6.js.map 5.19 KB
282
294
  ESM dist/chunk-52VBZOHL.js.map 4.67 KB
283
- ESM dist/chunk-E62SCYLR.js.map 4.29 KB
284
- ESM dist/chunk-YZ2YZSNQ.js.map 5.68 KB
295
+ ESM dist/chunk-7WJGATIR.js.map 2.92 KB
296
+ ESM dist/chunk-RTRHNOTP.js.map 1.27 KB
285
297
  ESM dist/chunk-JHGOFDVG.js.map 1.76 KB
286
298
  ESM dist/chunk-4E6CDLVE.js.map 8.56 KB
287
299
  ESM dist/chunk-XXP5K6Y4.js.map 24.62 KB
288
- ESM dist/chunk-X6RBGNFS.js.map 1.18 KB
289
- ESM dist/chunk-7Q6OMA2A.js.map 1.28 KB
290
300
  ESM dist/chunk-5GLAT3VP.js.map 1.29 KB
291
301
  ESM dist/chunk-QCHLLBHM.js.map 2.86 KB
292
302
  ESM dist/chunk-LIXVY47P.js.map 2.16 KB
293
303
  ESM dist/chunk-G2WGEIWK.js.map 3.33 KB
294
- ESM dist/chunk-7WJGATIR.js.map 2.92 KB
295
- ESM dist/chunk-RTRHNOTP.js.map 1.27 KB
304
+ ESM dist/chunk-3NO5IHBO.js.map 4.07 KB
296
305
  ESM dist/chunk-SFEJDNIA.js.map 2.56 KB
297
306
  ESM dist/chunk-E5KIDP3Z.js.map 2.20 KB
298
307
  ESM dist/chunk-TBJGGVSZ.js.map 1.36 KB
@@ -340,5 +349,6 @@ Browserslist: caniuse-lite is outdated. Please run:
340
349
  ESM dist/chunk-BLUJNMXF.js.map 7.29 KB
341
350
  ESM dist/chunk-TJMI4DH2.js.map 117.04 KB
342
351
  ESM dist/chunk-6LHL364H.js.map 62.53 KB
352
+ ESM dist/chunk-RHBXFO7R.js.map 13.70 KB
343
353
  ESM dist/chunk-ZHMUFBQM.js.map 710.25 KB
344
- ESM ⚡️ Build success in 69736ms
354
+ ESM ⚡️ Build success in 73091ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ekm-ui
2
2
 
3
+ ## 0.3.93
4
+
5
+ ### Patch Changes
6
+
7
+ - 281e9953: Country picker modal
8
+
3
9
  ## 0.3.91
4
10
 
5
11
  ### Patch Changes
@@ -1,23 +1,24 @@
1
- export { g as CardPaymentBlock } from './chunk-44UX4FUN.js';
1
+ export { h as CardPaymentBlock } from './chunk-46XKR7EO.js';
2
+ import './chunk-ZHMUFBQM.js';
3
+ import './chunk-YZ2YZSNQ.js';
4
+ import './chunk-E62SCYLR.js';
5
+ import './chunk-X6RBGNFS.js';
6
+ import './chunk-7Q6OMA2A.js';
2
7
  import './chunk-RHBXFO7R.js';
3
8
  import './chunk-5VOOMPCL.js';
4
9
  import './chunk-N7JQ6EAC.js';
5
10
  import './chunk-HVNLAQA6.js';
6
11
  import './chunk-52VBZOHL.js';
7
- import './chunk-ZHMUFBQM.js';
8
- import './chunk-E62SCYLR.js';
9
- import './chunk-YZ2YZSNQ.js';
12
+ import './chunk-7WJGATIR.js';
13
+ import './chunk-RTRHNOTP.js';
10
14
  import './chunk-JHGOFDVG.js';
11
15
  import './chunk-4E6CDLVE.js';
12
16
  import './chunk-XXP5K6Y4.js';
13
- import './chunk-X6RBGNFS.js';
14
- import './chunk-7Q6OMA2A.js';
15
17
  import './chunk-5GLAT3VP.js';
16
18
  import './chunk-QCHLLBHM.js';
17
19
  import './chunk-LIXVY47P.js';
18
20
  import './chunk-G2WGEIWK.js';
19
- import './chunk-7WJGATIR.js';
20
- import './chunk-RTRHNOTP.js';
21
+ import './chunk-3NO5IHBO.js';
21
22
  import './chunk-SFEJDNIA.js';
22
23
  import './chunk-E5KIDP3Z.js';
23
24
  import './chunk-TBJGGVSZ.js';
@@ -0,0 +1,10 @@
1
+ import { a as a$2 } from './chunk-6YBVKGQW.js';
2
+ import { a as a$1 } from './chunk-6LHL364H.js';
3
+ import { e } from './chunk-Z4LPO673.js';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ var o=e(a$1(),1);function m({countryData:e,selectedCountries:t,countrySelectCallback:n}){return jsx("div",{id:"country-list",className:"h-[500px] overflow-y-auto rounded-md border",children:(e||[]).map(s=>{let i=t.some(c=>c.CountryCode===s.CountryCode);return jsx(a,{country:s,selected:i,callback:n},`country-row-${s.ID}`)})})}var a=({country:e,selected:t,callback:n})=>{let s=()=>{n({Id:e.ID,Country:e.Country,CountryCode:e.CountryCode},t);};return jsx("div",{className:`flex items-center pt-4 pb-4 mt-1 mb-1 ${t&&"bg-blue-50"} justify-between border-b border-gray-100 cursor-pointer`,onClick:s,children:jsxs("div",{className:"flex items-center ml-3",children:[jsx("div",{className:"flex-shrink-0",children:jsx(a$2,{id:`cb-country-${e.ID}`,checked:t,onChange:()=>{}})}),jsx("div",{className:"ml-4",children:jsx("img",{src:`https://shared.ekmcdn.com/images/uifw/flags/4x3/${e.CountryCode.toLowerCase()}.svg`,alt:e.CountryName,onError:i=>{i.target.onerror=null,i.target.src="https://shared.ekmcdn.com/images/uifw/flags/4x3/unknown.svg";},className:"h-9 w-12 rounded-sm"})}),jsx("div",{className:"ml-4",children:jsx("div",{className:"font-medium text-gray-900",children:e.Country})})]})})};m.propTypes={countryData:o.default.array.isRequired,selectedCountries:o.default.array.isRequired,countrySelectCallback:o.default.func.isRequired};a.propTypes={country:o.default.object.isRequired,selected:o.default.bool.isRequired,callback:o.default.func.isRequired};
7
+
8
+ export { m as a };
9
+ //# sourceMappingURL=out.js.map
10
+ //# sourceMappingURL=chunk-3NO5IHBO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/country-picker/country-listing.tsx"],"names":["import_prop_types","jsx","jsxs","CountryListing","countryData","selectedCountries","countrySelectCallback","c","countrySelected","s","CountryRow","country","selected","callback","handleCountrySelection","Checkbox","e","PropTypes"],"mappings":"wHACA,IAAAA,EAAsB,SAaZ,cAAAC,EAuBJ,QAAAC,MAvBI,oBAVH,SAASC,EAAe,CAAC,YAAAC,EAAa,kBAAAC,EAAmB,sBAAAC,CAAqB,EAAG,CAEtF,OACEL,EAAC,OACC,GAAG,eACH,UAAW,8CAET,UAAAG,GAAe,CAAC,GAAG,IAAKG,GAAM,CAC9B,IAAMC,EAAkBH,EAAkB,KAAKI,GAAKA,EAAE,cAAgBF,EAAE,WAAW,EACnF,OACEN,EAACS,EAAA,CAEC,QAASH,EACT,SAAUC,EACV,SAAUF,GAHL,eAAeC,EAAE,IAIxB,CAEJ,CAAC,EACH,CAEJ,CAEA,IAAMG,EAAa,CAAC,CAAC,QAAAC,EAAS,SAAAC,EAAU,SAAAC,CAAQ,IAAM,CAEpD,IAAMC,EAAyB,IAAM,CACnCD,EAAS,CAAC,GAAIF,EAAQ,GAAI,QAASA,EAAQ,QAAS,YAAaA,EAAQ,WAAW,EAAGC,CAAQ,CACjG,EAEA,OACEX,EAAC,OACC,UAAW,yCAAyCW,GAAY,uEAChE,QAASE,EAET,SAAAZ,EAAC,OAAI,UAAU,yBACb,UAAAD,EAAC,OAAI,UAAU,gBACb,SAAAA,EAACc,EAAA,CAAS,GAAI,cAAcJ,EAAQ,KAAM,QAASC,EAAU,SAAU,IAAM,CAAC,EAAG,EACnF,EACAX,EAAC,OAAI,UAAU,OACb,SAAAA,EAAC,OACC,IAAK,mDAAmDU,EAAQ,YAAY,YAAY,QACxF,IAAKA,EAAQ,YACb,QAAUK,GAAM,CACdA,EAAE,OAAO,QAAU,KACnBA,EAAE,OAAO,IAAM,6DACjB,EACA,UAAU,sBACZ,EACF,EACAf,EAAC,OAAI,UAAU,OACb,SAAAA,EAAC,OAAI,UAAU,4BAA6B,SAAAU,EAAQ,QAAQ,EAC9D,GACF,EACF,CAEJ,EAEAR,EAAe,UAAY,CAEzB,YAAa,EAAAc,QAAU,MAAM,WAE7B,kBAAmB,EAAAA,QAAU,MAAM,WAEnC,sBAAuB,EAAAA,QAAU,KAAK,UACxC,EAEAP,EAAW,UAAY,CAErB,QAAS,EAAAO,QAAU,OAAO,WAE1B,SAAU,EAAAA,QAAU,KAAK,WAEzB,SAAU,EAAAA,QAAU,KAAK,UAC3B","sourcesContent":["// @ts-nocheck\nimport PropTypes from \"prop-types\";\nimport { Checkbox } from \"../checkbox\";\n\nexport function CountryListing({countryData, selectedCountries, countrySelectCallback}) {\n\n return (\n <div\n id=\"country-list\"\n className={`h-[500px] overflow-y-auto rounded-md border`}\n >\n {(countryData || []).map((c) => {\n const countrySelected = selectedCountries.some(s => s.CountryCode === c.CountryCode)\n return (\n <CountryRow\n key={`country-row-${c.ID}`}\n country={c}\n selected={countrySelected}\n callback={countrySelectCallback}\n />\n );\n })}\n </div>\n );\n}\n\nconst CountryRow = ({country, selected, callback}) => {\n\n const handleCountrySelection = () => {\n callback({Id: country.ID, Country: country.Country, CountryCode: country.CountryCode}, selected)\n }\n\n return (\n <div\n className={`flex items-center pt-4 pb-4 mt-1 mb-1 ${selected && 'bg-blue-50'} justify-between border-b border-gray-100 cursor-pointer`}\n onClick={handleCountrySelection}\n >\n <div className=\"flex items-center ml-3\">\n <div className=\"flex-shrink-0\">\n <Checkbox id={`cb-country-${country.ID}`} checked={selected} onChange={() => {}} />\n </div>\n <div className=\"ml-4\">\n <img\n src={`https://shared.ekmcdn.com/images/uifw/flags/4x3/${country.CountryCode.toLowerCase()}.svg`}\n alt={country.CountryName}\n onError={(e) => {\n e.target.onerror = null\n e.target.src = 'https://shared.ekmcdn.com/images/uifw/flags/4x3/unknown.svg'\n }}\n className=\"h-9 w-12 rounded-sm\"\n />\n </div>\n <div className=\"ml-4\">\n <div className=\"font-medium text-gray-900\">{country.Country}</div>\n </div>\n </div>\n </div>\n )\n}\n\nCountryListing.propTypes = {\n /** Array of countries to list in the form { Id: 383, CountryCode 'CN': Country: 'China'} */\n countryData: PropTypes.array.isRequired, \n /** Array of selected countries in the form { Id: 383, CountryCode 'CN': Country: 'China'} */\n selectedCountries: PropTypes.array.isRequired, \n /** Callback to handle selection of a country */\n countrySelectCallback: PropTypes.func.isRequired,\n}\n\nCountryRow.propTypes = {\n /** Details of country */\n country: PropTypes.object.isRequired,\n /** Whether country is selected */\n selected: PropTypes.bool.isRequired, \n /** Callback to handle selection of the country */\n callback: PropTypes.func.isRequired,\n}"]}
@@ -0,0 +1,36 @@
1
+ import { a as a$i } from './chunk-5VOOMPCL.js';
2
+ import { a as a$f } from './chunk-N7JQ6EAC.js';
3
+ import { a as a$9, b as b$1 } from './chunk-HVNLAQA6.js';
4
+ import { a as a$j } from './chunk-4E6CDLVE.js';
5
+ import { a as a$a } from './chunk-XXP5K6Y4.js';
6
+ import { a as a$k } from './chunk-3NO5IHBO.js';
7
+ import { a as a$5 } from './chunk-TBJGGVSZ.js';
8
+ import { a as a$e } from './chunk-QKHEEDZ4.js';
9
+ import { a as a$8 } from './chunk-HTXOCBXA.js';
10
+ import { a as a$b } from './chunk-LTMZ5RRZ.js';
11
+ import { a as a$2 } from './chunk-VGGEDWFD.js';
12
+ import { a as a$d } from './chunk-AVTJXS4U.js';
13
+ import { a as a$c } from './chunk-F7AUKLLE.js';
14
+ import { a as a$4 } from './chunk-WSRPB5OU.js';
15
+ import { a as a$7 } from './chunk-E4USZ2Q3.js';
16
+ import { a as a$6 } from './chunk-F47A36U7.js';
17
+ import { a as a$h } from './chunk-ELWZ674J.js';
18
+ import { a as a$g } from './chunk-2OPJLYW6.js';
19
+ import { a as a$3 } from './chunk-BLUJNMXF.js';
20
+ import { a as a$1 } from './chunk-6LHL364H.js';
21
+ import { e, f as f$1 } from './chunk-Z4LPO673.js';
22
+ import { Badge, Sidebar } from 'flowbite-react';
23
+ import { HiCreditCard, HiClipboardList, HiOutlineSearch } from 'react-icons/hi';
24
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
25
+ import { forwardRef, useRef, useReducer, useState, useEffect, useImperativeHandle, useMemo } from 'react';
26
+ import { HiChartPie, HiTag, HiShoppingBag, HiPaintBrush, HiStar, HiDocument, HiRocketLaunch, HiGlobeAlt } from 'react-icons/hi2';
27
+ import { BiSearch } from 'react-icons/bi';
28
+ import { BsCloudUpload, BsFillCheckCircleFill, BsFillImageFill } from 'react-icons/bs';
29
+ import { FaTimesCircle } from 'react-icons/fa';
30
+ import jr from 'pluralize';
31
+
32
+ function We({cardPayment:r,enablePayPal:e}){return jsxs(a$4,{className:"border-0 shadow-sm ",children:[jsx("h3",{className:"text-xl font-semibold dark:text-white",children:"Billing Details"}),jsx("div",{className:"flex items-center justify-between pb-4",children:jsxs("fieldset",{className:"flex w-full flex-col gap-4",id:"radio",children:[jsxs("div",{className:"flex flex-col gap-2",children:[jsxs("div",{className:"flex items-center gap-2",children:[e&&jsx(a$5,{id:"creditDebitCard",name:"paymentType",value:"creditDebitCard"}),jsx(a$6,{htmlFor:"creditDebitCard",children:"Pay by Credit or Debit card"})]}),jsxs("div",{className:e?"ml-6 flex gap-2":"flex gap-2",children:[jsx("img",{src:"https://shared.ekmcdn.com/images/uifw/cards/visa.png",alt:"VISA Card Logo"}),jsx("img",{src:"https://shared.ekmcdn.com/images/uifw/cards/mastercard.png",alt:"MasterCard Card Logo"}),jsx("img",{src:"https://shared.ekmcdn.com/images/uifw/cards/maestro.png",alt:"Maestro Card Logo"}),jsx("img",{src:"https://shared.ekmcdn.com/images/uifw/cards/amex.png",alt:"AMEX Card Logo"})]})]}),r&&jsxs(Fragment,{children:[jsxs("div",{className:"grid grid-cols-1 content-start gap-6 md:grid-cols-2",children:[jsx(a$7,{label:"Name on Card *",htmlFor:"nameOnCard",helperText:"This is your name as is appears on the front of your credit or debit card.",children:jsx(a$8,{id:"nameOnCard",name:"nameOnCard",placeholder:"Your name",type:"text",required:!0})}),jsx(a$7,{label:"Card Number *",htmlFor:"cardNumber",helperText:"This is the long number on the front of your credit or debit card.",children:jsx(a$8,{id:"nameOnCard",name:"nameOnCard",placeholder:"0000 0000 0000 0000",type:"number",rightIcon:HiCreditCard,required:!0})})]}),jsxs("div",{className:"grid grid-cols-1 content-start gap-6 sm:grid-cols-3 md:grid-cols-4",children:[jsx(a$7,{label:"Expiry Date *",htmlFor:"nameOnCard",helperText:"The expiry date as it appears on your card.",children:jsx(a$8,{id:"nameOnCard",name:"nameOnCard",placeholder:"MM / YY",type:"text",required:!0})}),jsx(a$7,{label:"Security Code (CVC) *",htmlFor:"cardNumber",helperText:"The last three digits on the back of your card\u2019s signature strip.",children:jsx(a$8,{id:"nameOnCard",name:"nameOnCard",placeholder:"123",type:"text",rightIcon:HiCreditCard,required:!0})}),jsx("img",{className:"mt-7 hidden h-auto w-16 sm:block",src:"https://shared.ekmcdn.com/images/rise/cvc-reminder-image.png",alt:""})]})]}),e&&jsxs("div",{className:"flex flex-col gap-2",children:[jsxs("div",{className:"flex items-center gap-2",children:[jsx(a$5,{id:"PayPal",name:"paymentType",value:"PayPal"}),jsx(a$6,{htmlFor:"PayPal",children:"PayPal"})]}),jsx("div",{className:"ml-6",children:jsx("img",{src:"https://shared.ekmcdn.com/images/uifw/cards/paypal.png",alt:"PayPal Icon"})})]})]})})]})}We.displayName="CardPaymentBlock";function Xe(){return jsxs(Sidebar.Items,{children:[jsxs(Sidebar.ItemGroup,{children:[jsx(Sidebar.Item,{href:"/",icon:HiChartPie,className:"bg-gray-100 dark:bg-gray-700",children:"Dashboard"}),jsx(Sidebar.Item,{href:"/products",icon:HiTag,className:"",children:"Products"}),jsx(Sidebar.Item,{href:"/orders",icon:HiShoppingBag,label:"27",className:"",children:"Orders"}),jsxs(Sidebar.Collapse,{icon:HiPaintBrush,label:"Design",children:[jsx(Sidebar.Item,{href:"/design/design",className:"",children:"Theme"}),jsx(Sidebar.Item,{href:"/design/editor",className:"",children:"Editor"}),jsx(Sidebar.Item,{href:"/theme/webpages",className:"",children:"Webpages"})]}),jsx(Sidebar.Item,{href:"/features",icon:HiStar,className:"",children:"Features"})]}),jsxs(Sidebar.ItemGroup,{children:[jsx(Sidebar.Item,{href:"https://github.com/themesberg/flowbite-react/",icon:HiDocument,children:"Docs"}),jsx(Sidebar.Item,{href:"https://flowbite-react.com/",icon:HiRocketLaunch,children:"What's New"}),jsx(Sidebar.Item,{href:"https://github.com/themesberg/flowbite-react/issues",icon:HiGlobeAlt,children:"Support Centre"})]})]})}function Cr({children:r,hasHeader:e}){let[o,s]=useState(!1),[v,R]=useState(!1);return useMemo(()=>{a$9()&&!o&&R(!0);},[o]),jsxs(Fragment,{children:[jsx(a$a,{onMenuButtonClick:()=>{s(!o);},showCloseButton:v,avatarImg:"https://avatars.githubusercontent.com/u/49406022?v=4"}),jsxs("div",{className:"flex",children:[jsx(b$1,{collapsed:o,children:jsx(Xe,{})}),jsxs("div",{className:"flex w-3/4 flex-grow flex-col",children:[jsx("main",{className:`"relative dark:bg-gray-900" flex h-full flex-grow flex-col gap-4 overflow-y-auto bg-gray-50 ${e?"":"p-4"}`,children:r}),jsx(a$b,{companyName:"EKM"})]})]})]})}var q=e(a$1(),1);var b=Object.freeze({NONE:"none",OVER:"drag-over",UPLOADING:"uploading",ERROR:"error",SUCCESS:"success"}),Lr=Object.freeze({[b.NONE]:"border-gray-300 bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600",[b.OVER]:"border-blue-300 bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-blue-600 dark:hover:border-blue-500 dark:hover:bg-blue-600",[b.UPLOADING]:"border-blue-300 bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-blue-600 dark:hover:border-blue-500 dark:hover:bg-blue-600",[b.ERROR]:"border-red-300 bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-red-600 dark:hover:border-red-500 dark:hover:bg-red-600",[b.SUCCESS]:"border-green-300 bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-green-600 dark:hover:border-green-500 dark:hover:bg-green-600"}),Pr=["png","webp","jpg","gif","jpeg"];function Qe(r,e){let o=!e||e.length===0?Pr:e;if(!r||r.length===0)return !1;let s=r.split(".").pop().toLowerCase();return o.includes(s)}function se({subtitle:r="PNG, WEBP, JPG, JPEG or GIF",filetypes:e,uploaded:o,exitCallback:s,callback:v,errorCallback:R,pickerCallback:A}){let[l,m]=useState(b.NONE);useEffect(()=>{Object.values(b).includes(o)&&(m(o),setTimeout(()=>{o===b.ERROR&&R?R():m(b.NONE);},2e3));},[o]);let w=t=>{t.preventDefault(),m(b.OVER);},B=t=>{t.preventDefault(),s&&s(),m(b.NONE);},d=t=>{t.preventDefault(),Qe(t.dataTransfer.files[0].name,e)?(m(b.UPLOADING),v(t.dataTransfer.files[0])):(m(b.ERROR),setTimeout(()=>{R();},2e3));},S=t=>{Qe(t.target.files[0].name,e)?m(b.UPLOADING):m(b.ERROR),v(t.target.files[0]);},y=()=>{A&&A();},T=()=>jsxs("div",{className:"flex flex-col items-center justify-center pb-6 pt-5",children:[jsx(BsCloudUpload,{className:"h-12 w-12 text-gray-400 dark:text-gray-500"}),jsxs("p",{className:"mb-2 mt-5 text-sm text-gray-500 dark:text-gray-400",children:[jsx("span",{className:"font-semibold",children:"Click to upload"})," or drag and drop"]}),jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:r}),A&&jsx("div",{className:"mt-5",children:jsxs(a$3,{color:"default",onClick:y,children:[jsx(BiSearch,{className:"mr-2"}),"Browse File Manager"]})})]}),x=()=>jsx("div",{className:"flex flex-col items-center justify-center pb-6 pt-5",children:jsx("p",{className:"mb-2 mt-5 text-sm text-blue-500 dark:text-blue-400",children:jsx("span",{className:"font-semibold",children:"Drop here to upload"})})}),C=()=>jsxs("div",{className:"flex flex-col items-center justify-center pb-6 pt-5",children:[jsxs("svg",{"aria-hidden":"true",className:"mr-2 inline h-10 w-10 animate-spin text-gray-200 dark:text-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),jsx("p",{className:"mb-2 mt-5 text-sm text-blue-500 dark:text-blue-400",children:jsx("span",{className:"font-semibold",children:"Uploading..."})})]}),H=()=>jsxs("div",{className:"flex flex-col items-center justify-center pb-6 pt-5",children:[jsx(FaTimesCircle,{className:"h-12 w-12 text-red-400 dark:text-red-500"}),jsx("p",{className:"mb-2 mt-5 text-sm text-red-500 dark:text-red-400",children:jsx("span",{className:"font-semibold",children:"Unable to upload"})})]}),M=()=>jsxs("div",{className:"flex flex-col items-center justify-center pb-6 pt-5",children:[jsx(BsFillCheckCircleFill,{className:"h-12 w-12 text-green-400 dark:text-green-500"}),jsx("p",{className:"mb-2 mt-5 text-sm text-green-500 dark:text-green-400",children:jsx("span",{className:"font-semibold",children:"Uploaded"})})]}),n=()=>{switch(l){case b.OVER:return x();case b.UPLOADING:return C();case b.ERROR:return H();case b.SUCCESS:return M();default:return T()}};return jsx("div",{onDragEnter:t=>t.preventDefault(),onDragOver:w,onDrop:d,onDragLeave:B,className:"flex h-full w-full items-center justify-center",children:jsxs("label",{htmlFor:"dropzone-file",className:`flex h-full w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed ${Lr[l]}`,children:[n(),l===b.NONE&&jsx("input",{id:"dropzone-file",type:"file",className:"hidden",onChange:S})]})})}se.propTypes={filetypes:q.default.arrayOf(q.default.string),subtitle:q.default.string,uploaded:q.default.oneOf(["none","success","error"]).isRequired,exitCallback:q.default.func,errorCallback:q.default.func.isRequired,callback:q.default.func.isRequired,pickerCallback:q.default.func};se.displayName="DragAndDrop";var W=e(a$1(),1);var er="/admin/api/common/directoryinformation/",a=Object.freeze({EMPTY:"EMPTY",SEARCH_LOADING:"SEARCH-LOADING",LOADING:"LOADING",LOADED:"LOADED",LOADED_NO_DRAG:"LOADED_NO_DRAG",SEARCH_RESULTS:"SEARCH-RESULTS",SEARCH_EMPTY:"SEARCH-EMPTY",UPLOAD_ERROR:"ERROR",DRAGGING:"DRAGGING"}),Ir=Object.freeze({mode:a.LOADING,actionBtnTxt:"I Accept",actionBtnColor:"success",listSize:"h-5/6",listBorder:"",searchDisabled:!1});function Br(r,e){switch(e.type){case a.EMPTY:return {mode:a.EMPTY,actionBtnTxt:"Add Image",actionBtnColor:"default",listSize:"h-5/6",listBorder:"",searchDisabled:!0};case a.LOADING:return Ir;case a.LOADED:return {mode:a.LOADED,actionBtnTxt:"I Accept",actionBtnColor:"success",listSize:"h-[68.666667%]",listBorder:"border",searchDisabled:!1};case a.LOADED_NO_DRAG:return {mode:a.LOADED_NO_DRAG,actionBtnTxt:"I Accept",actionBtnColor:"success",listSize:"h-[87.666667%]",listBorder:"border",searchDisabled:!1};case a.SEARCH_RESULTS:return {mode:a.SEARCH_RESULTS,actionBtnTxt:"I Accept",actionBtnColor:"success",listSize:"h-5/6",listBorder:"border",searchDisabled:!1};case a.SEARCH_EMPTY:return {mode:a.SEARCH_EMPTY,actionBtnTxt:"I Accept",actionBtnColor:"success",listSize:"h-5/6",listBorder:"",searchDisabled:!1};default:throw new Error("Unknown file picker state: "+e.page)}}function _e({appUrl:r,uri:e,show:o,hideDrag:s=!1,onClose:v,callback:R}){let A=useRef(),[l,m]=useReducer(Br,{mode:a.LOADING,footerBorder:"border-t"}),[w,B]=useState(0),d=useRef(1),[S,y]=useState(!1),[T,x]=useState(!1),C=useRef({pages:0,totalEntries:0}),[H,M]=useState(!1),[n,t]=useState(null),[u,k]=useState(null),[j,Q]=useState([]),[ce,G]=useState("none");useEffect(()=>{o&&(m({type:a.LOADING}),k(null),C.current={pages:0,totalEntries:0},ge(),c(1));},[o]),useEffect(()=>{o&&(d.current=1,c(),x(!1));},[n]),useEffect(()=>{u&&k(null),T&&x(!1);},[l.mode]);let ge=()=>{Q([]),G("none"),M(!1),k(null),x(!1);},c=(D=0)=>f$1(this,null,function*(){try{let U=D===0?d.current:D,te=(n==null?void 0:n.length)>0?`&FileNameIncludesString=${n}`:"&FileNameIncludesString=",Y=yield (yield fetch(`${r}${er}?CurrentPage=${U}&PageSize=10&Uri=${e}${te}`,{method:"GET",credentials:"same-origin",headers:{"Content-Type":"application/json"}})).json();if((n==null?void 0:n.length)>0&&m({type:a.SEARCH_RESULTS}),Y.Items.Data.length>0&&U>1?Q(Re=>[...Re,...Y.Items.Data]):Q(Y.Items.Data),C.current={pages:Y.Items.NumberOfPages,totalEntries:Y.Items.Total},B(Y.Items.NumberOfPages),(n==null?void 0:n.length)>0)m({type:Y.Items.Data.length>0?a.SEARCH_RESULTS:a.SEARCH_EMPTY});else {let Re=s?a.LOADED_NO_DRAG:a.LOADED;m({type:Y.Items.Data.length>0?Re:a.EMPTY});}G("none"),M(!1),y(!1);}catch(U){m({type:(n==null?void 0:n.length)===0?a.SEARCH_EMPTY:a.EMPTY});}}),L=D=>{s||(y(!0),A.current.removeFocus(),D.preventDefault());},ee=D=>{s||y(!1);},$=D=>{var de;let U=(de=D.text)!=null?de:"",te=n!=null?n:"";t(D.text),(te.length>0&&U.length===0||te.length===0&&U.length>0&&l.mode!==a.LOADING)&&m({type:a.LOADING});},re=()=>{x(!0),y(!1),G("none");},ir=()=>{R(`https://files.ekmcdn.com/${u.Uri}`),ve();},ve=()=>{ge(),v();},qe=D=>f$1(this,null,function*(){if(D==null){G("error"),re();return}try{let U=zr(D.name),te=yield Gr(D),de={Path:`/${e}/`,Name:U,Bytes:Yr(te),ForceOverwriteFile:!0};(yield fetch(`${r}${er}`,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(de)})).status===200?(G("success"),t(null),A.current.clear(),Q([]),x(!1),c(1)):G("error");}catch(U){G("error");}}),nr=D=>{switch(D.type){case"FETCH_DATA":M(D.payload),d.current<C.current.pages&&!H&&(M(!0),d.current=d.current+1,c());break;case"SELECTION":k(D.payload),x(!1);break;}},cr=()=>{switch(l.mode){case a.EMPTY:return jsx(Hr,{});case a.LOADING:return jsx(Mr,{});case a.SEARCH_RESULTS:case a.LOADED:case a.LOADED_NO_DRAG:return jsx(a$j,{border:l.listSize,files:j,isMore:d.current<C.current.pages,selected:u==null?void 0:u.Name,page:d.current,pages:w,callback:nr});case a.SEARCH_EMPTY:return jsx(_r,{});}},dr=()=>jsxs(Fragment,{children:[jsx(a$f,{id:"file-search",ref:A,placeholder:"Search your images",disabled:l.searchDisabled,callback:$}),jsxs("div",{className:"mb-4 mt-4",children:[T&&jsxs(a$h,{type:"danger",onDismiss:()=>{x(!1);},children:[jsx("p",{className:"font-semibold",children:"File could not be uploaded"}),jsx("p",{children:"There was an error uploading the file. Please try again."})]}),l.mode!==a.SEARCH_RESULTS&&l.mode!==a.SEARCH_EMPTY&&!s&&jsx("div",{className:"h-68",children:jsx(se,{uploaded:ce,callback:qe,errorCallback:re})}),(l.mode===a.SEARCH_RESULTS||l.mode===a.SEARCH_EMPTY)&&(n==null?void 0:n.length)>0&&jsx("span",{className:"ms-1 text-sm font-medium text-gray-500 dark:text-gray-400 md:ms-2",children:`Showing results for..."${n}"`})]}),cr()]});return jsxs(a$c,{show:o,onClose:ve,title:"File Picker",onHide:()=>{},children:[jsxs("div",{className:"h-full",onDragEnter:L,children:[o&&S&&!s&&(()=>jsx("div",{className:"absolute z-50 h-[90.666667%] w-[93.666667%]",children:jsx(se,{uploaded:ce,exitCallback:ee,callback:qe,errorCallback:re})}))(),o&&dr()]}),jsxs("div",{className:"bottom-0 mt-0 grid grid-flow-col grid-cols-2 gap-4 bg-white pt-2 dark:border-gray-600",style:{marginTop:"-50px"},children:[jsx(a$3,{color:"light",onClick:ve,children:"Close"}),jsx(a$3,{color:l.actionBtnColor,onClick:ir,disabled:u==null,children:l.actionBtnTxt})]})]})}_e.propTypes={appUrl:W.default.string.isRequired,uri:W.default.string.isRequired,show:W.default.bool.isRequired,hideDrag:W.default.bool,onClose:W.default.func.isRequired,callback:W.default.func.isRequired};_e.displayName="FilePicker";function Hr(){return jsxs("div",{className:"mt-5 flex flex-col items-center justify-center",children:[jsx("h1",{children:jsx(BsFillImageFill,{className:"text-9xl text-gray-700"})}),jsx("p",{className:"mt-4 text-2xl font-semibold text-gray-900",children:"You Have No Images"}),jsx("p",{className:"mt-4 text-sm text-gray-500",children:"Images will appear here when you upload them"})]})}function Mr(){return jsx("div",{className:"flex h-2/3 items-center justify-center overflow-y-auto",children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsx("h1",{children:jsx(Fr,{})}),jsx("p",{className:"mt-4 text-2xl font-semibold text-gray-900",children:"Loading Files"}),jsx("p",{className:"mt-4 text-sm text-gray-500",children:"Don't worry, this won't take long..."})]})})}function _r(){return jsx("div",{className:"flex h-5/6 items-center justify-center overflow-y-auto",children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsx("h1",{children:jsx(HiOutlineSearch,{className:"text-9xl text-gray-700"})}),jsx("p",{className:"mt-4 text-2xl font-semibold text-gray-900",children:"No Files Found"}),jsx("p",{className:"mt-4 text-sm text-gray-500",children:"No files were found matching your search"})]})})}function Fr(){return jsxs("div",{role:"status",children:[jsxs("svg",{"aria-hidden":"true",className:"inline h-14 w-14 animate-spin fill-blue-600 text-gray-200 dark:text-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),jsx("span",{className:"sr-only",children:"Loading..."})]})}function Gr(r){return f$1(this,null,function*(){return new Uint8Array(yield Ur(r))})}function Ur(r){return new Promise((e,o)=>{let s=new FileReader;s.onloadend=v=>e(v.target.result),s.onerror=v=>o(v),s.readAsArrayBuffer(r);})}function Yr(r){return btoa(Array.from(r).map(e=>String.fromCharCode(e)).join(""))}function zr(r){return r.replace(/[^a-z0-9_\.-]/gi,"_").toLowerCase()}var le=e(a$1(),1);function X({title:r,message:e,icon:o,children:s}){return jsx(a$d,{icon:o||jsx(a$e,{}),title:r,text:e,children:s})}X.propTypes={title:le.PropTypes.string.isRequired,message:le.PropTypes.string,useSpinner:le.PropTypes.bool,icon:le.PropTypes.node,children:le.PropTypes.node};X.displayName="TableResultBlock";var ie=e(a$1(),1);var p=Object.freeze({EMPTY:"EMPTY",SEARCH_LOADING:"SEARCH-LOADING",LOADING:"LOADING",LOADED:"LOADED",SEARCH_RESULTS:"SEARCH-RESULTS",SEARCH_EMPTY:"SEARCH-EMPTY"}),ye=[{display:"Name",value:"Name"},{display:"Category",value:"Category"},{display:"Product Code",value:"ProductCode"}],tr=Object.freeze({mode:p.LOADING,searchDisabled:!1});function Xr(r,e){switch(e.type){case p.EMPTY:return {mode:p.EMPTY,searchDisabled:!0};case p.LOADING:return tr;case p.LOADED:return {mode:p.LOADED,searchDisabled:!1};case p.SEARCH_RESULTS:return {mode:p.SEARCH_RESULTS,searchDisabled:!1};case p.SEARCH_EMPTY:return {mode:p.SEARCH_EMPTY,searchDisabled:!1};default:throw new Error("Unknown file picker state: "+e.page)}}var Ue=forwardRef(function({preSelected:e=[],onClose:o,productCodeEnabled:s,requestCallback:v,callback:R},A){let l=useRef(),[m,w]=useReducer(Xr,tr),[B,d]=useState(0),S=useRef(1),y=useRef({pages:0,totalEntries:0}),[T,x]=useState(!1),[C,H]=useState({text:"",category:ye[0]}),[M,n]=useState([]),[t,u]=useState(new Set([]));useEffect(()=>{k("",ye[0].value),u(new Set(e));},[]);let k=(c,L)=>{v({SearchText:c||"",PageSize:11,Page:S.current,SearchType:L});};useImperativeHandle(A,()=>({responseHandler:c=>{var L,ee;try{c.Result.Data.length>0&&S.current>1?n($=>[...$,...c.Result.Data]):n(c.Result.Data),y.current={pages:c.Result.NumberOfPages,totalEntries:c.Result.Total},d(c.Result.NumberOfPages),((L=C.text)==null?void 0:L.length)>0?w({type:c.Result.Data.length>0?p.SEARCH_RESULTS:p.SEARCH_EMPTY}):w({type:c.Result.Data.length>0?p.LOADED:p.EMPTY}),x(!1);}catch($){console.error("Error fetching products",$),w({type:((ee=C.text)==null?void 0:ee.length)===0?p.SEARCH_EMPTY:p.EMPTY});}}}));let j=c=>{var $,re;let L=($=c.text)!=null?$:"",ee=(re=C.text)!=null?re:"";(L!=ee||c.category.value!=C.category.value)&&(S.current=1,w({type:p.LOADING}),k(L,c.category.value)),H({text:L,category:c.category});},Q=()=>{R(Array.from(t));},ce=c=>{switch(c.type){case"FETCH_DATA":x(c.payload),S.current<y.current.pages&&!T&&(x(!0),S.current=S.current+1,k());break;case"SELECTION":t.has(c.payload)?(t.delete(c.payload),u(L=>new Set(L))):(t.add(c.payload),u(L=>new Set(L)));break;case"DESELECT_ALL":u(new Set([]));break;}},G=()=>{switch(m.mode){case p.EMPTY:return jsx(Ge,{title:"You Have No Products",msg:"Your products will appear here"});case p.LOADING:return jsx(Ge,{title:"Loading Products",msg:"Don't worry, this won't take long...",showSpinner:!0});case p.SEARCH_RESULTS:case p.LOADED:return jsx(a$i,{products:M,isMore:S.current<y.current.pages,selected:t,page:S.current,pages:B,callback:ce});case p.SEARCH_EMPTY:return jsx(Ge,{title:"No Products Found",msg:"No products were found matching your search",blockHeight:"h-[460px]"});}},ge=()=>jsxs(Fragment,{children:[t.size>0&&jsx("div",{className:"mb-4 rounded-md border border-orange-200 bg-yellow-50 p-4",children:jsxs("p",{className:"text-center text-sm text-yellow-800",children:[`${jr("product",t.size,!0)} selected.`,jsx("span",{onClick:()=>ce({type:"DESELECT_ALL",payload:null}),className:"cursor-pointer text-primary-600 hover:underline",children:" Clear Selection."})]})}),jsx(a$f,{id:"file-search",ref:l,categories:s?ye:ye.filter(c=>c.value!=="ProductCode"),placeholder:"Search your products",disabled:m.searchDisabled,callback:j}),jsx("div",{className:"mb-4 mt-4",children:(m.mode===p.SEARCH_RESULTS||m.mode===p.SEARCH_EMPTY)&&C.text.length>0&&jsx("span",{className:"ms-1 text-sm font-medium text-gray-500 dark:text-gray-400 md:ms-2",children:`Showing results for..."${C.text}"`})}),G()]});return jsxs(a$2,{show:!0,onClose:o,title:"Choose Products",size:"lg",children:[jsx(a$2.Body,{children:jsx("div",{className:"h-full",children:ge()})}),jsx(a$2.Footer,{children:jsxs("div",{className:"flex-grow grid grid-col-2 grid-flow-col gap-4",children:[jsx(a$3,{color:"light",onClick:o,children:"Close"}),jsx(a$3,{color:"success",onClick:Q,disabled:t.size===0,children:"Add Products"})]})})]})}),Ge=({title:r,msg:e,blockHeight:o="h-[500px]",showSpinner:s=!1})=>jsx("div",{className:`${o} flex items-center justify-center`,children:jsx(X,{icon:!s&&jsx(HiClipboardList,{className:"mb-4 h-16 w-16 text-gray-500 dark:text-gray-400"}),title:r,message:e,spinner:s})});Ue.propTypes={preSelected:ie.default.array,onClose:ie.default.func.isRequired,productCodeEnabled:ie.default.bool,requestCallback:ie.default.func.isRequired,callback:ie.default.func.isRequired};Ue.displayName="ProductPicker";var ne=e(a$1(),1);var f=Object.freeze({EMPTY:"EMPTY",LOADING:"LOADING",LOADED:"LOADED",SEARCH_RESULTS:"SEARCH-RESULTS",SEARCH_EMPTY:"SEARCH-EMPTY"}),or=Object.freeze({mode:f.LOADING,searchDisabled:!1});function at(r,e){switch(e.type){case f.EMPTY:return {mode:f.EMPTY,searchDisabled:!0};case f.LOADING:return or;case f.LOADED:return {mode:f.LOADED,searchDisabled:!1};case f.SEARCH_RESULTS:return {mode:f.SEARCH_RESULTS,searchDisabled:!1};case f.SEARCH_EMPTY:return {mode:f.SEARCH_EMPTY,searchDisabled:!1};default:throw new Error("Unknown file picker state: "+e.page)}}function sr({initialLoadComplete:r,allCountryData:e,preSelected:o=[],onClose:s,callback:v}){let[R,A]=useReducer(at,or),[l,m]=useState(""),[w,B]=useState([]),[d,S]=useState([]),y=useRef([]);useEffect(()=>{((e==null?void 0:e.length)>0||r)&&(y.current=e,x(""));},[e]),useEffect(()=>{S(o);},[o]);let T=t=>{var j;let u=(j=t.text)!=null?j:"",k=l!=null?l:"";u!=k&&(A({type:f.LOADING}),x(u)),m(u);},x=t=>{let u=t?y.current.filter(k=>k.Country.toLowerCase().includes(t.toLowerCase())):y.current;(u==null?void 0:u.length)>0?(B(u),A({type:(t==null?void 0:t.length)>0?f.SEARCH_RESULTS:f.LOADED})):(B([]),A({type:(t==null?void 0:t.length)>0?f.SEARCH_EMPTY:f.EMPTY}));},C=()=>{v(d);},H=(t,u)=>{let k=u?d.filter(j=>j.CountryCode!=t.CountryCode):[...d,t];S(k);},M=()=>{switch(R.mode){case f.EMPTY:return jsx(ze,{title:"No Countries",msg:"Available countries will appear here"});case f.LOADING:return jsx(ze,{title:"Loading Countries",msg:"Don't worry, this won't take long...",showSpinner:!0});case f.SEARCH_RESULTS:case f.LOADED:return jsx(a$k,{countryData:w,selectedCountries:d,countrySelectCallback:H});case f.SEARCH_EMPTY:return jsx(ze,{title:"No Countries Found",msg:"No countries were found matching your search",blockHeight:"h-[460px]"});}},n=()=>jsxs(Fragment,{children:[(d==null?void 0:d.length)>0&&jsx("div",{className:"mb-4 rounded-md border border-orange-200 bg-yellow-50 p-4",children:jsxs("p",{className:"text-center text-sm text-yellow-800",children:[`${jr("country",d==null?void 0:d.length,!0)} selected.`,jsx("span",{onClick:()=>S([]),className:"cursor-pointer text-primary-600 hover:underline",children:" Clear Selection."})]})}),jsx(a$f,{id:"locationSearch",placeholder:"Search for countries",disabled:R.searchDisabled,callback:T}),jsx("div",{className:"mb-4 mt-4",children:(R.mode===f.SEARCH_RESULTS||R.mode===f.SEARCH_EMPTY)&&l.length>0&&jsx("span",{className:"ms-1 text-sm font-medium text-gray-500 dark:text-gray-400 md:ms-2",children:`Showing results for..."${l}"`})}),M()]});return jsxs(a$2,{show:!0,onClose:s,title:"Choose Locations",size:"md",children:[jsx(a$2.Body,{children:jsx("div",{className:"h-full",children:n()})}),jsx(a$2.Footer,{children:jsxs("div",{className:"flex-grow grid grid-col-2 grid-flow-col gap-4",children:[jsx(a$3,{color:"light",onClick:s,children:"Close"}),jsx(a$3,{color:"success",onClick:C,disabled:(d==null?void 0:d.length)===0,children:"Add Locations"})]})})]})}var ze=({title:r,msg:e,blockHeight:o="h-[500px]",showSpinner:s=!1})=>jsx("div",{className:`${o} flex items-center justify-center`,children:jsx(X,{icon:!s&&jsx(HiClipboardList,{className:"mb-4 h-16 w-16 text-gray-500 dark:text-gray-400"}),title:r,message:e,spinner:s})});sr.propTypes={initialLoadComplete:ne.default.bool.isRequired,allCountryData:ne.default.array.isRequired,preSelected:ne.default.array.isRequired,onClose:ne.default.func.isRequired,callback:ne.default.func.isRequired};function lr({id:r,title:e,text:o,avatarShow:s,avatarColor:v,avatarBorder:R,children:A,badgeText:l,badgeColor:m,icon:w}){function B(S){var y=S.split(" "),T=y[0],x=y[y.length-1],C=T.charAt(0);if(T!==x)var H=x.charAt(0);else var H="";return C+H}let d=B(e);return jsxs("li",{className:"hover:bg-gray-90 relative flex justify-between gap-x-6 px-4 py-5 dark:hover:bg-gray-900",children:[jsxs("div",{className:"flex min-w-0 flex-auto items-center gap-x-4",children:[s&&jsx(a$g,{placeholderInitials:d,color:v,border:R}),w&&w,jsxs("div",{className:"min-w-0 flex-auto",children:[jsxs("div",{className:"flex gap-2",children:[jsx("p",{className:"truncate text-sm font-semibold text-gray-900 dark:text-white",children:e}),l&&jsx(Badge,{color:m||"info",children:l})]}),jsx("p",{className:"mt-1 flex text-xs text-gray-500 dark:text-gray-400",children:jsx("span",{className:"relative truncate",children:o})})]})]}),jsx("div",{className:"flex flex-shrink-0 items-center gap-x-4",children:jsx("div",{className:"sm:flex sm:flex-col sm:items-end",children:A})})]},r)}lr.displayName="StackedListItem";
33
+
34
+ export { lr as a, Cr as b, se as c, _e as d, X as e, Ue as f, sr as g, We as h };
35
+ //# sourceMappingURL=out.js.map
36
+ //# sourceMappingURL=chunk-46XKR7EO.js.map