ekm-ui 0.4.24 → 0.4.28
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/.turbo/turbo-build.log +24 -24
- package/CHANGELOG.md +12 -0
- package/dist/button.js +1 -1
- package/dist/card-payment-block.js +6 -6
- package/dist/chunk-4HCWPWEE.js +11 -0
- package/dist/chunk-4HCWPWEE.js.map +1 -0
- package/dist/{chunk-JNHB4YNM.js → chunk-F3BF3KTV.js} +2 -2
- package/dist/chunk-PZAUAV7G.js +12 -0
- package/dist/chunk-PZAUAV7G.js.map +1 -0
- package/dist/{chunk-HQIKNKIV.js → chunk-SDIXMJRI.js} +2 -2
- package/dist/chunk-VOFMZ77E.js +11 -0
- package/dist/chunk-VOFMZ77E.js.map +1 -0
- package/dist/{chunk-5YLFQRYH.js → chunk-ZJIHNQR7.js} +5 -5
- package/dist/chunk-ZJIHNQR7.js.map +1 -0
- package/dist/country-picker/country-modal.js +6 -6
- package/dist/date-range-picker.js +2 -2
- package/dist/drag-and-drop.js +6 -6
- package/dist/file-picker/file-picker.js +6 -6
- package/dist/fixed-alert.js +2 -2
- package/dist/index.js +6 -6
- package/dist/layout/layout.js +6 -6
- package/dist/modal.d.ts +4 -1
- package/dist/modal.js +1 -1
- package/dist/product-picker/product-listing.js +1 -1
- package/dist/product-picker/product-modal.js +6 -6
- package/dist/stacked-list-item.js +6 -6
- package/dist/table-result-block.js +6 -6
- package/package.json +1 -1
- package/src/button.tsx +1 -1
- package/src/modal.tsx +6 -4
- package/src/product-picker/product-listing.tsx +10 -6
- package/src/product-picker/product-modal.tsx +4 -1
- package/dist/chunk-2I24LCEG.js +0 -11
- package/dist/chunk-2I24LCEG.js.map +0 -1
- package/dist/chunk-3ER6WKA7.js +0 -12
- package/dist/chunk-3ER6WKA7.js.map +0 -1
- package/dist/chunk-5YLFQRYH.js.map +0 -1
- package/dist/chunk-XUMA37J7.js +0 -11
- package/dist/chunk-XUMA37J7.js.map +0 -1
- /package/dist/{chunk-JNHB4YNM.js.map → chunk-F3BF3KTV.js.map} +0 -0
- /package/dist/{chunk-HQIKNKIV.js.map → chunk-SDIXMJRI.js.map} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -10,7 +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
|
[34mDTS[39m Build start
|
|
13
|
-
|
|
13
|
+
"HiArchive", "HiCurrencyDollar", "HiInbox", "HiLogout", "HiOutlineTicket", "HiShoppingBag", "HiUserCircle", "HiUsers" and "HiViewGrid" are imported from external module "react-icons/hi" but never used in "dist/chunk-XXP5K6Y4.js".
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 70066ms
|
|
14
15
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.59 KB[39m
|
|
15
16
|
[32mDTS[39m [1mdist/footer-heart-icon.d.ts [22m[32m70.00 B[39m
|
|
16
17
|
[32mDTS[39m [1mdist/accordion.d.ts [22m[32m2.25 KB[39m
|
|
@@ -41,7 +42,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
41
42
|
[32mDTS[39m [1mdist/loading-button.d.ts [22m[32m509.00 B[39m
|
|
42
43
|
[32mDTS[39m [1mdist/love-footer.d.ts [22m[32m145.00 B[39m
|
|
43
44
|
[32mDTS[39m [1mdist/mini-feature-block.d.ts [22m[32m254.00 B[39m
|
|
44
|
-
[32mDTS[39m [1mdist/modal.d.ts [22m[32m1.
|
|
45
|
+
[32mDTS[39m [1mdist/modal.d.ts [22m[32m1.89 KB[39m
|
|
45
46
|
[32mDTS[39m [1mdist/no-results-block.d.ts [22m[32m256.00 B[39m
|
|
46
47
|
[32mDTS[39m [1mdist/navbar/navbar.d.ts [22m[32m292.00 B[39m
|
|
47
48
|
[32mDTS[39m [1mdist/sidebar/sidebar.d.ts [22m[32m166.00 B[39m
|
|
@@ -87,25 +88,24 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
87
88
|
[32mDTS[39m [1mdist/featurePageComponents/mini-feature-block.d.ts [22m[32m254.00 B[39m
|
|
88
89
|
[32mDTS[39m [1mdist/file-picker/file-listing.d.ts [22m[32m992.00 B[39m
|
|
89
90
|
[32mDTS[39m [1mdist/product-picker/product-listing.d.ts [22m[32m890.00 B[39m
|
|
90
|
-
"HiArchive", "HiCurrencyDollar", "HiInbox", "HiLogout", "HiOutlineTicket", "HiShoppingBag", "HiUserCircle", "HiUsers" and "HiViewGrid" are imported from external module "react-icons/hi" but never used in "dist/chunk-XXP5K6Y4.js".
|
|
91
|
-
[32mESM[39m [1mdist/product-picker/product-modal.css [22m[32m123.58 KB[39m
|
|
92
|
-
[32mESM[39m [1mdist/file-picker/file-picker.css [22m[32m123.58 KB[39m
|
|
93
|
-
[32mESM[39m [1mdist/layout/layout.css [22m[32m123.57 KB[39m
|
|
94
|
-
[32mESM[39m [1mdist/country-picker/country-modal.css [22m[32m123.58 KB[39m
|
|
95
91
|
[32mESM[39m [1mdist/stacked-list-item.css [22m[32m123.58 KB[39m
|
|
96
92
|
[32mESM[39m [1mdist/table-result-block.css [22m[32m123.58 KB[39m
|
|
97
93
|
[32mESM[39m [1mdist/index.css [22m[32m123.57 KB[39m
|
|
98
94
|
[32mESM[39m [1mdist/card-payment-block.css [22m[32m123.58 KB[39m
|
|
99
95
|
[32mESM[39m [1mdist/drag-and-drop.css [22m[32m123.58 KB[39m
|
|
100
|
-
[32mESM[39m [1mdist/product-picker/product-modal.css
|
|
101
|
-
[32mESM[39m [1mdist/file-picker/file-picker.css
|
|
102
|
-
[32mESM[39m [1mdist/layout/layout.css
|
|
103
|
-
[32mESM[39m [1mdist/country-picker/country-modal.css
|
|
96
|
+
[32mESM[39m [1mdist/product-picker/product-modal.css [22m[32m123.58 KB[39m
|
|
97
|
+
[32mESM[39m [1mdist/file-picker/file-picker.css [22m[32m123.58 KB[39m
|
|
98
|
+
[32mESM[39m [1mdist/layout/layout.css [22m[32m123.57 KB[39m
|
|
99
|
+
[32mESM[39m [1mdist/country-picker/country-modal.css [22m[32m123.58 KB[39m
|
|
104
100
|
[32mESM[39m [1mdist/stacked-list-item.css.map [22m[32m175.52 KB[39m
|
|
105
101
|
[32mESM[39m [1mdist/table-result-block.css.map [22m[32m175.52 KB[39m
|
|
106
102
|
[32mESM[39m [1mdist/index.css.map [22m[32m175.52 KB[39m
|
|
107
103
|
[32mESM[39m [1mdist/card-payment-block.css.map [22m[32m175.52 KB[39m
|
|
108
104
|
[32mESM[39m [1mdist/drag-and-drop.css.map [22m[32m175.52 KB[39m
|
|
105
|
+
[32mESM[39m [1mdist/product-picker/product-modal.css.map [22m[32m175.52 KB[39m
|
|
106
|
+
[32mESM[39m [1mdist/file-picker/file-picker.css.map [22m[32m175.52 KB[39m
|
|
107
|
+
[32mESM[39m [1mdist/layout/layout.css.map [22m[32m175.52 KB[39m
|
|
108
|
+
[32mESM[39m [1mdist/country-picker/country-modal.css.map [22m[32m175.52 KB[39m
|
|
109
109
|
[32mESM[39m [1mdist/chunk-Z4LPO673.js [22m[32m1.34 KB[39m
|
|
110
110
|
[32mESM[39m [1mdist/sort/sort.js [22m[32m176.00 B[39m
|
|
111
111
|
[32mESM[39m [1mdist/table-header/table-header.js [22m[32m284.00 B[39m
|
|
@@ -174,7 +174,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
174
174
|
[32mESM[39m [1mdist/dashboard-notification.js [22m[32m238.00 B[39m
|
|
175
175
|
[32mESM[39m [1mdist/date-range-picker.js [22m[32m347.00 B[39m
|
|
176
176
|
[32mESM[39m [1mdist/drag-and-drop.js [22m[32m2.12 KB[39m
|
|
177
|
-
[32mESM[39m [1mdist/chunk-
|
|
177
|
+
[32mESM[39m [1mdist/chunk-ZJIHNQR7.js [22m[32m29.10 KB[39m
|
|
178
178
|
[32mESM[39m [1mdist/chunk-52VBZOHL.js [22m[32m2.06 KB[39m
|
|
179
179
|
[32mESM[39m [1mdist/chunk-HE5X7TRV.js [22m[32m75.66 KB[39m
|
|
180
180
|
[32mESM[39m [1mdist/chunk-YZ2YZSNQ.js [22m[32m2.37 KB[39m
|
|
@@ -183,7 +183,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
183
183
|
[32mESM[39m [1mdist/chunk-GVNUAH45.js [22m[32m347.00 B[39m
|
|
184
184
|
[32mESM[39m [1mdist/chunk-Y2TFSCAU.js [22m[32m790.00 B[39m
|
|
185
185
|
[32mESM[39m [1mdist/chunk-KRMPO53Y.js [22m[32m6.72 KB[39m
|
|
186
|
-
[32mESM[39m [1mdist/chunk-
|
|
186
|
+
[32mESM[39m [1mdist/chunk-PZAUAV7G.js [22m[32m4.47 KB[39m
|
|
187
187
|
[32mESM[39m [1mdist/chunk-7XYO4SF6.js [22m[32m3.59 KB[39m
|
|
188
188
|
[32mESM[39m [1mdist/chunk-HVNLAQA6.js [22m[32m1.81 KB[39m
|
|
189
189
|
[32mESM[39m [1mdist/chunk-LWTESXND.js [22m[32m1.57 KB[39m
|
|
@@ -215,18 +215,18 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
215
215
|
[32mESM[39m [1mdist/chunk-Y2GINGVR.js [22m[32m2.99 KB[39m
|
|
216
216
|
[32mESM[39m [1mdist/chunk-ESJIQMQJ.js [22m[32m738.00 B[39m
|
|
217
217
|
[32mESM[39m [1mdist/chunk-IY6WVOAI.js [22m[32m764.00 B[39m
|
|
218
|
-
[32mESM[39m [1mdist/chunk-
|
|
218
|
+
[32mESM[39m [1mdist/chunk-4HCWPWEE.js [22m[32m2.54 KB[39m
|
|
219
219
|
[32mESM[39m [1mdist/chunk-AVTJXS4U.js [22m[32m544.00 B[39m
|
|
220
220
|
[32mESM[39m [1mdist/chunk-NDDDT4TO.js [22m[32m1.63 KB[39m
|
|
221
221
|
[32mESM[39m [1mdist/chunk-QMOPWIA3.js [22m[32m3.48 KB[39m
|
|
222
222
|
[32mESM[39m [1mdist/chunk-SLIZ4TDR.js [22m[32m1.68 KB[39m
|
|
223
|
-
[32mESM[39m [1mdist/chunk-
|
|
223
|
+
[32mESM[39m [1mdist/chunk-F3BF3KTV.js [22m[32m723.00 B[39m
|
|
224
224
|
[32mESM[39m [1mdist/chunk-Z44LYPKH.js [22m[32m1003.00 B[39m
|
|
225
225
|
[32mESM[39m [1mdist/chunk-ANU7OAPA.js [22m[32m1.08 KB[39m
|
|
226
226
|
[32mESM[39m [1mdist/chunk-ISA6E23B.js [22m[32m1.14 KB[39m
|
|
227
227
|
[32mESM[39m [1mdist/chunk-3PTVTRDP.js [22m[32m1.16 KB[39m
|
|
228
228
|
[32mESM[39m [1mdist/chunk-ER5CL77P.js [22m[32m588.00 B[39m
|
|
229
|
-
[32mESM[39m [1mdist/chunk-
|
|
229
|
+
[32mESM[39m [1mdist/chunk-SDIXMJRI.js [22m[32m10.23 KB[39m
|
|
230
230
|
[32mESM[39m [1mdist/chunk-DSJ5TRZW.js [22m[32m1.36 KB[39m
|
|
231
231
|
[32mESM[39m [1mdist/chunk-E4USZ2Q3.js [22m[32m655.00 B[39m
|
|
232
232
|
[32mESM[39m [1mdist/chunk-F47A36U7.js [22m[32m438.00 B[39m
|
|
@@ -248,7 +248,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
248
248
|
[32mESM[39m [1mdist/button-group-item.js [22m[32m167.00 B[39m
|
|
249
249
|
[32mESM[39m [1mdist/chunk-XYGVDZRO.js [22m[32m696.00 B[39m
|
|
250
250
|
[32mESM[39m [1mdist/button.js [22m[32m207.00 B[39m
|
|
251
|
-
[32mESM[39m [1mdist/chunk-
|
|
251
|
+
[32mESM[39m [1mdist/chunk-VOFMZ77E.js [22m[32m3.86 KB[39m
|
|
252
252
|
[32mESM[39m [1mdist/chunk-TJMI4DH2.js [22m[32m19.88 KB[39m
|
|
253
253
|
[32mESM[39m [1mdist/chunk-6LHL364H.js [22m[32m15.70 KB[39m
|
|
254
254
|
[32mESM[39m [1mdist/chunk-Z4LPO673.js.map [22m[32m71.00 B[39m
|
|
@@ -319,7 +319,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
319
319
|
[32mESM[39m [1mdist/dashboard-notification.js.map [22m[32m51.00 B[39m
|
|
320
320
|
[32mESM[39m [1mdist/date-range-picker.js.map [22m[32m51.00 B[39m
|
|
321
321
|
[32mESM[39m [1mdist/drag-and-drop.js.map [22m[32m51.00 B[39m
|
|
322
|
-
[32mESM[39m [1mdist/chunk-
|
|
322
|
+
[32mESM[39m [1mdist/chunk-ZJIHNQR7.js.map [22m[32m81.10 KB[39m
|
|
323
323
|
[32mESM[39m [1mdist/chunk-52VBZOHL.js.map [22m[32m4.67 KB[39m
|
|
324
324
|
[32mESM[39m [1mdist/chunk-YZ2YZSNQ.js.map [22m[32m5.68 KB[39m
|
|
325
325
|
[32mESM[39m [1mdist/chunk-THOZT55U.js.map [22m[32m5.31 KB[39m
|
|
@@ -327,7 +327,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
327
327
|
[32mESM[39m [1mdist/chunk-GVNUAH45.js.map [22m[32m525.00 B[39m
|
|
328
328
|
[32mESM[39m [1mdist/chunk-Y2TFSCAU.js.map [22m[32m1.85 KB[39m
|
|
329
329
|
[32mESM[39m [1mdist/chunk-KRMPO53Y.js.map [22m[32m14.11 KB[39m
|
|
330
|
-
[32mESM[39m [1mdist/chunk-
|
|
330
|
+
[32mESM[39m [1mdist/chunk-PZAUAV7G.js.map [22m[32m10.07 KB[39m
|
|
331
331
|
[32mESM[39m [1mdist/chunk-7XYO4SF6.js.map [22m[32m10.15 KB[39m
|
|
332
332
|
[32mESM[39m [1mdist/chunk-HVNLAQA6.js.map [22m[32m5.19 KB[39m
|
|
333
333
|
[32mESM[39m [1mdist/chunk-LWTESXND.js.map [22m[32m2.48 KB[39m
|
|
@@ -359,18 +359,18 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
359
359
|
[32mESM[39m [1mdist/chunk-Y2GINGVR.js.map [22m[32m4.53 KB[39m
|
|
360
360
|
[32mESM[39m [1mdist/chunk-ESJIQMQJ.js.map [22m[32m1.20 KB[39m
|
|
361
361
|
[32mESM[39m [1mdist/chunk-IY6WVOAI.js.map [22m[32m1.57 KB[39m
|
|
362
|
-
[32mESM[39m [1mdist/chunk-
|
|
362
|
+
[32mESM[39m [1mdist/chunk-4HCWPWEE.js.map [22m[32m5.57 KB[39m
|
|
363
363
|
[32mESM[39m [1mdist/chunk-AVTJXS4U.js.map [22m[32m1.06 KB[39m
|
|
364
364
|
[32mESM[39m [1mdist/chunk-NDDDT4TO.js.map [22m[32m3.64 KB[39m
|
|
365
365
|
[32mESM[39m [1mdist/chunk-QMOPWIA3.js.map [22m[32m8.07 KB[39m
|
|
366
366
|
[32mESM[39m [1mdist/chunk-SLIZ4TDR.js.map [22m[32m2.43 KB[39m
|
|
367
|
-
[32mESM[39m [1mdist/chunk-
|
|
367
|
+
[32mESM[39m [1mdist/chunk-F3BF3KTV.js.map [22m[32m1.48 KB[39m
|
|
368
368
|
[32mESM[39m [1mdist/chunk-Z44LYPKH.js.map [22m[32m1.91 KB[39m
|
|
369
369
|
[32mESM[39m [1mdist/chunk-ANU7OAPA.js.map [22m[32m2.27 KB[39m
|
|
370
370
|
[32mESM[39m [1mdist/chunk-ISA6E23B.js.map [22m[32m3.32 KB[39m
|
|
371
371
|
[32mESM[39m [1mdist/chunk-3PTVTRDP.js.map [22m[32m2.56 KB[39m
|
|
372
372
|
[32mESM[39m [1mdist/chunk-ER5CL77P.js.map [22m[32m998.00 B[39m
|
|
373
|
-
[32mESM[39m [1mdist/chunk-
|
|
373
|
+
[32mESM[39m [1mdist/chunk-SDIXMJRI.js.map [22m[32m41.26 KB[39m
|
|
374
374
|
[32mESM[39m [1mdist/chunk-DSJ5TRZW.js.map [22m[32m3.05 KB[39m
|
|
375
375
|
[32mESM[39m [1mdist/chunk-E4USZ2Q3.js.map [22m[32m1.57 KB[39m
|
|
376
376
|
[32mESM[39m [1mdist/chunk-F47A36U7.js.map [22m[32m768.00 B[39m
|
|
@@ -392,8 +392,8 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
392
392
|
[32mESM[39m [1mdist/button-group-item.js.map [22m[32m51.00 B[39m
|
|
393
393
|
[32mESM[39m [1mdist/chunk-XYGVDZRO.js.map [22m[32m1.25 KB[39m
|
|
394
394
|
[32mESM[39m [1mdist/button.js.map [22m[32m51.00 B[39m
|
|
395
|
-
[32mESM[39m [1mdist/chunk-
|
|
395
|
+
[32mESM[39m [1mdist/chunk-VOFMZ77E.js.map [22m[32m7.27 KB[39m
|
|
396
396
|
[32mESM[39m [1mdist/chunk-TJMI4DH2.js.map [22m[32m117.04 KB[39m
|
|
397
397
|
[32mESM[39m [1mdist/chunk-6LHL364H.js.map [22m[32m62.53 KB[39m
|
|
398
398
|
[32mESM[39m [1mdist/chunk-HE5X7TRV.js.map [22m[32m711.41 KB[39m
|
|
399
|
-
[32mESM[39m ⚡️ Build success in
|
|
399
|
+
[32mESM[39m ⚡️ Build success in 74258ms
|
package/CHANGELOG.md
CHANGED
package/dist/button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as CardPaymentBlock } from './chunk-
|
|
1
|
+
export { h as CardPaymentBlock } from './chunk-ZJIHNQR7.js';
|
|
2
2
|
import './chunk-52VBZOHL.js';
|
|
3
3
|
import './chunk-HE5X7TRV.js';
|
|
4
4
|
import './chunk-YZ2YZSNQ.js';
|
|
@@ -7,7 +7,7 @@ import './chunk-7Q6OMA2A.js';
|
|
|
7
7
|
import './chunk-GVNUAH45.js';
|
|
8
8
|
import './chunk-Y2TFSCAU.js';
|
|
9
9
|
import './chunk-KRMPO53Y.js';
|
|
10
|
-
import './chunk-
|
|
10
|
+
import './chunk-PZAUAV7G.js';
|
|
11
11
|
import './chunk-7XYO4SF6.js';
|
|
12
12
|
import './chunk-HVNLAQA6.js';
|
|
13
13
|
import './chunk-LWTESXND.js';
|
|
@@ -39,18 +39,18 @@ import './chunk-GUK5N5Z2.js';
|
|
|
39
39
|
import './chunk-Y2GINGVR.js';
|
|
40
40
|
import './chunk-ESJIQMQJ.js';
|
|
41
41
|
import './chunk-IY6WVOAI.js';
|
|
42
|
-
import './chunk-
|
|
42
|
+
import './chunk-4HCWPWEE.js';
|
|
43
43
|
import './chunk-AVTJXS4U.js';
|
|
44
44
|
import './chunk-NDDDT4TO.js';
|
|
45
45
|
import './chunk-QMOPWIA3.js';
|
|
46
46
|
import './chunk-SLIZ4TDR.js';
|
|
47
|
-
import './chunk-
|
|
47
|
+
import './chunk-F3BF3KTV.js';
|
|
48
48
|
import './chunk-Z44LYPKH.js';
|
|
49
49
|
import './chunk-ANU7OAPA.js';
|
|
50
50
|
import './chunk-ISA6E23B.js';
|
|
51
51
|
import './chunk-3PTVTRDP.js';
|
|
52
52
|
import './chunk-ER5CL77P.js';
|
|
53
|
-
import './chunk-
|
|
53
|
+
import './chunk-SDIXMJRI.js';
|
|
54
54
|
import './chunk-DSJ5TRZW.js';
|
|
55
55
|
import './chunk-E4USZ2Q3.js';
|
|
56
56
|
import './chunk-F47A36U7.js';
|
|
@@ -63,7 +63,7 @@ import './chunk-2OPJLYW6.js';
|
|
|
63
63
|
import './chunk-P5IM3T4M.js';
|
|
64
64
|
import './chunk-TRVGXTCI.js';
|
|
65
65
|
import './chunk-XYGVDZRO.js';
|
|
66
|
-
import './chunk-
|
|
66
|
+
import './chunk-VOFMZ77E.js';
|
|
67
67
|
import './chunk-TJMI4DH2.js';
|
|
68
68
|
import './chunk-6LHL364H.js';
|
|
69
69
|
import './chunk-Z4LPO673.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { a } from './chunk-6LHL364H.js';
|
|
2
|
+
import { e as e$1, c, b, a as a$1 } from './chunk-Z4LPO673.js';
|
|
3
|
+
import { variantProps } from 'classname-variants/react';
|
|
4
|
+
import { FaTimes } from 'react-icons/fa';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var e=e$1(a(),1);var N=variantProps({base:"relative p-4 w-full max-h-full ",variants:{size:{xsm:"max-w-md",sm:"max-w-xl",md:"max-w-2xl",lg:"max-w-3xl"},defaultVariants:{size:"md"}}});function d(k){var m=k,{children:o,title:a,id:t="default-modal",show:c$1=!0}=m,n=c(m,["children","title","id","show"]);if(!c$1)return jsx("div",{});let g=()=>jsxs("div",{className:"flex items-center justify-between rounded-t border-b pb-3 dark:border-gray-600",children:[jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:a}),u()]}),u=(b=!1)=>jsxs("button",{type:"button",className:`${b&&"absolute end-2.5 top-3"} ms-auto inline-flex h-8 w-8 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white`,"data-modal-hide":t,onClick:n.onClose,children:[jsx(FaTimes,{}),jsx("span",{className:"sr-only",children:"Close modal"})]});return jsx("div",{id:t,tabIndex:"-1","aria-hidden":"true",className:"fixed left-0 right-0 top-0 z-50 flex h-[calc(100%-1rem)] max-h-full w-full items-center justify-center overflow-y-auto overflow-x-hidden bg-gray-900 bg-opacity-50 dark:bg-gray-900 dark:bg-opacity-50 md:inset-0",role:"dialog",children:jsx("div",b(a$1({},N(n)),{children:jsxs("div",{className:"relative rounded-lg bg-white pl-4 pr-4 pt-4 shadow dark:bg-gray-700",children:[a?g():u(!0),o]})}))})}function s({children:o}){return jsx("div",{children:o})}function l({children:o,border:a=!0,alignment:t="center"}){return jsx("div",{className:`flex gap-4 ${t=="center"&&"justify-center"} ${t=="left"&&"justify-start"} ${t=="right"&&"justify-end"} items-end p-4 md:p-5 ${a&&"border-t"} rounded-b border-gray-200 dark:border-gray-600`,children:o})}d.Body=s;d.Footer=l;d.defaultProps={size:"md"};d.propTypes={title:e.default.string,show:e.default.bool,size:e.default.oneOf(["xsm","sm","md","lg"]),onClose:e.default.func.isRequired,id:e.default.string,children:e.default.node.isRequired};s.propTypes={children:e.default.node.isRequired};l.propTypes={border:e.default.bool,children:e.default.node.isRequired,alignment:e.default.oneOf(["left","center","right"])};d.displayName="Modal";l.displayName="ModalFooter";s.displayName="ModalBody";
|
|
8
|
+
|
|
9
|
+
export { d as a, s as b, l as c };
|
|
10
|
+
//# sourceMappingURL=out.js.map
|
|
11
|
+
//# sourceMappingURL=chunk-4HCWPWEE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/modal.tsx"],"names":["import_prop_types","variantProps","FaTimes","jsx","jsxs","modalProps","Modal","_a","_b","children","title","id","show","props","__objRest","renderHeadedModal","renderCloseButton","isHeadless","__spreadProps","__spreadValues","ModalBody","ModalFooter","border","alignment","PropTypes"],"mappings":"qGAEA,IAAAA,EAAsB,SADtB,OAAS,gBAAAC,MAAoB,2BAE7B,OAAS,WAAAC,MAAe,iBAkBJ,cAAAC,EAGhB,QAAAC,MAHgB,oBAhBpB,IAAMC,EAAaJ,EAAa,CAC9B,KAAM,kCACN,SAAU,CACR,KAAM,CACJ,IAAK,WACL,GAAI,WACJ,GAAI,YACJ,GAAI,WACN,EACA,gBAAiB,CACf,KAAM,IACR,CACF,CACF,CAAC,EAEM,SAASK,EAAMC,EAAgE,CAAhE,IAAAC,EAAAD,EAAE,UAAAE,EAAU,MAAAC,EAAO,GAAAC,EAAG,gBAAiB,KAAAC,EAAO,EApBpE,EAoBsBJ,EAAuDK,EAAAC,EAAvDN,EAAuD,CAArD,WAAU,QAAO,KAAoB,SAC3D,GAAI,CAACI,EAAM,OAAOT,EAAC,QAAI,EAEvB,IAAMY,EAAoB,IACxBX,EAAC,OAAI,UAAU,iFACb,UAAAD,EAAC,MAAG,UAAU,sDACX,SAAAO,EACH,EACCM,EAAkB,GACrB,EAGIA,EAAoB,CAACC,EAAa,KACtCb,EAAC,UACC,KAAK,SACL,UAAW,GACTa,GAAc,sNAEhB,kBAAiBN,EACjB,QAASE,EAAM,QAEf,UAAAV,EAACD,EAAA,EAAQ,EACTC,EAAC,QAAK,UAAU,UAAU,uBAAW,GACvC,EAGF,OACEA,EAAC,OACC,GAAIQ,EACJ,SAAS,KACT,cAAY,OACZ,UAAU,oNACV,KAAK,SAEL,SAAAR,EAAC,MAAAe,EAAAC,EAAA,GAAQd,EAAWQ,CAAK,GAAxB,CACC,SAAAT,EAAC,OAAI,UAAU,sEACZ,UAAAM,EAAQK,EAAkB,EAAIC,EAAkB,EAAI,EACpDP,GACH,GACF,EACF,CAEJ,CAEO,SAASW,EAAU,CAAE,SAAAX,CAAS,EAAG,CACtC,OAAON,EAAC,OAAK,SAAAM,EAAS,CACxB,CAEO,SAASY,EAAY,CAAE,SAAAZ,EAAU,OAAAa,EAAS,GAAM,UAAAC,EAAY,QAAS,EAAG,CAC7E,OACEpB,EAAC,OACC,UAAW,cAAcoB,GAAa,UAAY,oBAChDA,GAAa,QAAU,mBACrBA,GAAa,SAAW,sCAC1BD,GAAU,4DAGX,SAAAb,EACH,CAEJ,CAEAH,EAAM,KAAOc,EACbd,EAAM,OAASe,EAEff,EAAM,aAAe,CACnB,KAAM,IACR,EAEAA,EAAM,UAAY,CAEhB,MAAO,EAAAkB,QAAU,OAEjB,KAAM,EAAAA,QAAU,KAEhB,KAAM,EAAAA,QAAU,MAAM,CAAC,MAAO,KAAM,KAAM,IAAI,CAAC,EAE/C,QAAS,EAAAA,QAAU,KAAK,WAExB,GAAI,EAAAA,QAAU,OAEd,SAAU,EAAAA,QAAU,KAAK,UAC3B,EAEAJ,EAAU,UAAY,CAEpB,SAAU,EAAAI,QAAU,KAAK,UAC3B,EAEAH,EAAY,UAAY,CAEtB,OAAQ,EAAAG,QAAU,KAClB,SAAU,EAAAA,QAAU,KAAK,WACzB,UAAW,EAAAA,QAAU,MAAM,CAAC,OAAQ,SAAU,OAAO,CAAC,CACxD,EAEAlB,EAAM,YAAc,QACpBe,EAAY,YAAc,cAC1BD,EAAU,YAAc","sourcesContent":["//@ts-nocheck\nimport { variantProps } from \"classname-variants/react\";\nimport PropTypes from \"prop-types\";\nimport { FaTimes } from \"react-icons/fa\";\n\nconst modalProps = variantProps({\n base: \"relative p-4 w-full max-h-full \",\n variants: {\n size: {\n xsm: \"max-w-md\",\n sm: \"max-w-xl\",\n md: \"max-w-2xl\",\n lg: \"max-w-3xl\",\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n});\n\nexport function Modal({ children, title, id='default-modal', show = true, ...props }) {\n if (!show) return <div />;\n\n const renderHeadedModal = () => (\n <div className=\"flex items-center justify-between rounded-t border-b pb-3 dark:border-gray-600\">\n <h3 className=\"text-xl font-semibold text-gray-900 dark:text-white\">\n {title}\n </h3>\n {renderCloseButton()}\n </div>\n );\n\n const renderCloseButton = (isHeadless = false) => (\n <button\n type=\"button\"\n className={`${\n isHeadless && \"absolute end-2.5 top-3\"\n } ms-auto inline-flex h-8 w-8 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white`}\n data-modal-hide={id}\n onClick={props.onClose}\n >\n <FaTimes />\n <span className=\"sr-only\">Close modal</span>\n </button>\n );\n\n return (\n <div\n id={id}\n tabIndex=\"-1\"\n aria-hidden=\"true\"\n className=\"fixed left-0 right-0 top-0 z-50 flex h-[calc(100%-1rem)] max-h-full w-full items-center justify-center overflow-y-auto overflow-x-hidden bg-gray-900 bg-opacity-50 dark:bg-gray-900 dark:bg-opacity-50 md:inset-0\"\n role=\"dialog\"\n >\n <div {...modalProps(props)}>\n <div className=\"relative rounded-lg bg-white pl-4 pr-4 pt-4 shadow dark:bg-gray-700\">\n {title ? renderHeadedModal() : renderCloseButton(true)}\n {children}\n </div>\n </div>\n </div>\n );\n}\n\nexport function ModalBody({ children }) {\n return <div>{children}</div>;\n}\n\nexport function ModalFooter({ children, border = true, alignment = \"center\" }) {\n return (\n <div\n className={`flex gap-4 ${alignment == \"center\" && \"justify-center\"} ${\n alignment == \"left\" && \"justify-start\"\n } ${alignment == \"right\" && \"justify-end\"} items-end p-4 md:p-5 ${\n border && \"border-t\"\n } rounded-b border-gray-200 dark:border-gray-600`}\n >\n {children}\n </div>\n );\n}\n\nModal.Body = ModalBody;\nModal.Footer = ModalFooter;\n\nModal.defaultProps = {\n size: \"md\",\n};\n\nModal.propTypes = {\n /** Tile of the modal not providing a title makes this a headless modal */\n title: PropTypes.string,\n /** Whether or not the modal is visible */\n show: PropTypes.bool,\n /** Size of the modal */\n size: PropTypes.oneOf([\"xsm\", \"sm\", \"md\", \"lg\"]),\n /** Callback for the close action */\n onClose: PropTypes.func.isRequired,\n /** Id for modal */\n id: PropTypes.string,\n /** Modal.Body and Modal.Footer compounds used to build up the modal. The footer is optional */ \n children: PropTypes.node.isRequired,\n};\n\nModalBody.propTypes = {\n /** Markup to make up the Modal content */\n children: PropTypes.node.isRequired,\n};\n\nModalFooter.propTypes = {\n /** Markup to make up the Modal Footer */\n border: PropTypes.bool,\n children: PropTypes.node.isRequired,\n alignment: PropTypes.oneOf([\"left\", \"center\", \"right\"]),\n};\n\nModal.displayName = \"Modal\";\nModalFooter.displayName = \"ModalFooter\";\nModalBody.displayName = \"ModalBody\";\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-VOFMZ77E.js';
|
|
2
2
|
import i from 'clsx';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -6,4 +6,4 @@ function x({title:s,text:p,buttonText:e,position:r}){return jsxs("div",{classNam
|
|
|
6
6
|
|
|
7
7
|
export { x as a };
|
|
8
8
|
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-F3BF3KTV.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-ANU7OAPA.js';
|
|
2
|
+
import { a } from './chunk-6LHL364H.js';
|
|
3
|
+
import { e } from './chunk-Z4LPO673.js';
|
|
4
|
+
import x from 'pluralize';
|
|
5
|
+
import { useRef, useState, useEffect } from 'react';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var s=e(a(),1);function h(e){var o,l;return `${((o=window.resourceSettings)==null?void 0:o.imageBasePath)||""}${e}?v=${((l=window.resourceSettings)==null?void 0:l.version)||""}`}function P({products:e,isMore:o,selected:l,page:f,pages:g,callback:c}){let a=useRef(),[d,m]=useState(!1);useEffect(()=>{let r=document.querySelector("#product-list");return r&&!r.hasAttribute("scroll")&&a.current.addEventListener("scroll",n),a.current!=null&&(a.current.scrollTop=0),()=>{let i=document.querySelector("#product-list");i&&i.hasAttribute("scroll")&&a.current.removeEventListener("scroll",n);}},[]),useEffect(()=>{d&&m(!1);},[e]);let n=()=>{if(!o)return;let r=a.current.scrollHeight-a.current.offsetHeight,i=Math.floor(a.current.scrollTop);(i==r||i+2==r||i-2==r)&&(m(!0),c({type:"FETCH_DATA",payload:!0}));},y=r=>{c({type:"SELECTION",payload:r});};return jsxs("div",{id:"product-list",ref:a,className:"h-[500px] overflow-y-auto rounded-md border",children:[(e||[]).map(r=>jsx(p,{product:r,selected:l.has(r.ProductId),callback:y},`product-row-${r.ProductId}`)),o&&f<g&&d&&jsx(k,{})]})}function p({product:e,selected:o,callback:l}){var g,c,a,d,m;let f=n=>{l(e.ProductId);};return jsxs("div",{className:`mb-1 mt-1 flex items-center pb-4 pt-4 ${o&&"bg-blue-50"} cursor-pointer justify-between border-b border-gray-100 st-productRow`,onClick:f,children:[jsxs("div",{className:"ml-3 flex items-center",children:[jsx("div",{className:"flex-shrink-0",children:jsx(a$1,{id:`cb-prod-${e.ProductId}`,name:e.Name,checked:o,onChange:()=>{}})}),jsx("div",{className:"ml-4 st-image",children:e.ImagePath&&e.ImageName!=="[URL-DownloadRequested]"?jsx("img",{className:"h-10 w-10 rounded-sm",src:e.ImagePath,alt:e.Name,onError:n=>{n.target.onerror=null,n.target.src=`${h("/admin/Content/images/no-image-discount.png")}`;}}):jsx("img",{src:h("/admin/Content/images/no-image-discount.png"),alt:e.Name,className:"h-10 w-10 rounded-sm"})}),jsxs("div",{className:"ml-4",children:[jsx("div",{className:" font-medium text-gray-900 st-name",children:e.Name}),((g=e.Categories)==null?void 0:g.length)>0?jsx("div",{className:"text-xs text-gray-500 st-category",children:`${e.CategoryName} & ${x("other",e.Categories.length,!0)}`}):jsx("div",{className:"text-xs text-gray-500 st-category",children:e.CategoryName})]})]}),jsx("div",{className:"ml-4 flex-shrink-0 st-price",children:jsx("span",{className:"mr-3 text-sm text-gray-500",children:`${(a=(c=globalThis.globalSettings)==null?void 0:c.CurrencySymbol)!=null?a:"\xA3"}${e.Price.toFixed((m=(d=globalThis.globalSettings)==null?void 0:d.CurrencyExponent)!=null?m:2)}`})})]})}P.propTypes={products:s.default.array,isMore:s.default.bool,selected:s.default.instanceOf(Set),page:s.default.number,pages:s.default.number,callback:s.default.func};p.propTypes={product:s.default.object,selected:s.default.bool,callback:s.default.func};function k(){return jsx("div",{className:"mb-1 mt-1 flex justify-center pb-4 pt-4",children:jsx("div",{role:"status",children:jsxs("svg",{"aria-hidden":"true",className:"inline-block h-8 w-8 animate-spin fill-gray-600 text-gray-200 dark:fill-gray-300 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"})]})})})}
|
|
9
|
+
|
|
10
|
+
export { P as a };
|
|
11
|
+
//# sourceMappingURL=out.js.map
|
|
12
|
+
//# sourceMappingURL=chunk-PZAUAV7G.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/product-picker/product-listing.tsx"],"names":["import_prop_types","pluralize","useEffect","useRef","useState","jsx","jsxs","BuildImageUrl","imageUrl","_a","_b","Listing","products","isMore","selected","page","pages","callback","scrollRef","showLoader","setShowLoader","element","handleScroll","offset","scroll","handleProductSelection","id","p","ProductRow","InfiniteLoader","product","_c","_d","_e","e","Checkbox","PropTypes"],"mappings":"wHAEA,IAAAA,EAAsB,SADtB,OAAOC,MAAe,YAEtB,OAAS,aAAAC,EAAW,UAAAC,EAAQ,YAAAC,MAAgB,QAoDxC,OAOM,OAAAC,EAPN,QAAAC,MAAA,oBAhDJ,SAASC,EAAcC,EAAU,CAPjC,IAAAC,EAAAC,EAQE,MAAO,KAAGD,EAAA,OAAO,mBAAP,YAAAA,EAAyB,gBAAiB,KAAKD,SAAcE,EAAA,OAAO,mBAAP,YAAAA,EAAyB,UAAW,IAC7G,CAEO,SAASC,EAAQ,CACtB,SAAAC,EACA,OAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,CACF,EAAG,CACD,IAAMC,EAAYf,EAAO,EACnB,CAACgB,EAAYC,CAAa,EAAIhB,EAAS,EAAK,EAElDF,EAAU,IAAM,CACd,IAAMmB,EAAU,SAAS,cAAc,eAAe,EACtD,OAAIA,GAAW,CAACA,EAAQ,aAAa,QAAQ,GAC3CH,EAAU,QAAQ,iBAAiB,SAAUI,CAAY,EACvDJ,EAAU,SAAW,OAAMA,EAAU,QAAQ,UAAY,GACtD,IAAM,CACX,IAAMG,EAAU,SAAS,cAAc,eAAe,EAClDA,GAAWA,EAAQ,aAAa,QAAQ,GAC1CH,EAAU,QAAQ,oBAAoB,SAAUI,CAAY,CAChE,CACF,EAAG,CAAC,CAAC,EAELpB,EAAU,IAAM,CACXiB,GAAYC,EAAc,EAAK,CACpC,EAAG,CAACR,CAAQ,CAAC,EAEb,IAAMU,EAAe,IAAM,CACzB,GAAI,CAACT,EAAQ,OACb,IAAMU,EACJL,EAAU,QAAQ,aAAeA,EAAU,QAAQ,aAC/CM,EAAS,KAAK,MAAMN,EAAU,QAAQ,SAAS,GAEjDM,GAAUD,GAAUC,EAAS,GAAKD,GAAUC,EAAS,GAAKD,KAC5DH,EAAc,EAAI,EAClBH,EAAS,CAAE,KAAM,aAAc,QAAS,EAAK,CAAC,EAElD,EAEMQ,EAA0BC,GAAO,CACrCT,EAAS,CAAE,KAAM,YAAa,QAASS,CAAG,CAAC,CAC7C,EAEA,OACEpB,EAAC,OACC,GAAG,eACH,IAAKY,EACL,UAAW,8CAET,WAAAN,GAAY,CAAC,GAAG,IAAKe,GAEnBtB,EAACuB,EAAA,CAEC,QAASD,EACT,SAAUb,EAAS,IAAIa,EAAE,SAAS,EAClC,SAAUF,GAHL,eAAeE,EAAE,WAIxB,CAEH,EACAd,GAAUE,EAAOC,GAASG,GAAcd,EAACwB,EAAA,EAAe,GAC3D,CAEJ,CAEA,SAASD,EAAW,CAAE,QAAAE,EAAS,SAAAhB,EAAU,SAAAG,CAAS,EAAG,CA3ErD,IAAAR,EAAAC,EAAAqB,EAAAC,EAAAC,EA4EE,IAAMR,EAA0BS,GAAM,CACpCjB,EAASa,EAAQ,SAAS,CAC5B,EACA,OACExB,EAAC,OACC,UAAW,yCACTQ,GAAY,qFAEd,QAASW,EAET,UAAAnB,EAAC,OAAI,UAAU,yBACb,UAAAD,EAAC,OAAI,UAAU,gBACb,SAAAA,EAAC8B,EAAA,CACC,GAAI,WAAWL,EAAQ,YACvB,KAAMA,EAAQ,KACd,QAAShB,EACT,SAAU,IAAM,CAAC,EACnB,EACF,EACAT,EAAC,OAAI,UAAU,gBACZ,SAAAyB,EAAQ,WAAaA,EAAQ,YAAc,0BAC1CzB,EAAC,OACC,UAAU,uBACV,IAAKyB,EAAQ,UACb,IAAKA,EAAQ,KACb,QAAUI,GAAM,CACdA,EAAE,OAAO,QAAU,KACnBA,EAAE,OAAO,IAAM,GAAG3B,EAChB,6CACF,GACF,EACF,EAEAF,EAAC,OACC,IAAKE,EAAc,6CAA6C,EAChE,IAAKuB,EAAQ,KACb,UAAU,uBACZ,EAEJ,EACAxB,EAAC,OAAI,UAAU,OACb,UAAAD,EAAC,OAAI,UAAU,qCAAsC,SAAAyB,EAAQ,KAAK,IACjErB,EAAAqB,EAAQ,aAAR,YAAArB,EAAoB,QAAS,EAC5BJ,EAAC,OAAI,UAAU,oCAAqC,YAClDyB,EAAQ,kBACJ7B,EAAU,QAAS6B,EAAQ,WAAW,OAAQ,EAAI,IAAI,EAE5DzB,EAAC,OAAI,UAAU,oCAAqC,SAAAyB,EAAQ,aAAa,GAE7E,GACF,EACAzB,EAAC,OAAI,UAAU,8BACb,SAAAA,EAAC,QAAK,UAAU,6BAA8B,aAC5C0B,GAAArB,EAAA,WAAW,iBAAX,YAAAA,EAA2B,iBAA3B,KAAAqB,EAA6C,SAC5CD,EAAQ,MAAM,SACfG,GAAAD,EAAA,WAAW,iBAAX,YAAAA,EAA2B,mBAA3B,KAAAC,EAA+C,CACjD,IAAI,EACN,GACF,CAEJ,CAEAtB,EAAQ,UAAY,CAElB,SAAU,EAAAyB,QAAU,MAEpB,OAAQ,EAAAA,QAAU,KAElB,SAAU,EAAAA,QAAU,WAAW,GAAG,EAElC,KAAM,EAAAA,QAAU,OAEhB,MAAO,EAAAA,QAAU,OAEjB,SAAU,EAAAA,QAAU,IACtB,EAEAR,EAAW,UAAY,CAErB,QAAS,EAAAQ,QAAU,OAEnB,SAAU,EAAAA,QAAU,KAEpB,SAAU,EAAAA,QAAU,IACtB,EAEA,SAASP,GAAiB,CACxB,OACExB,EAAC,OAAI,UAAU,0CACb,SAAAA,EAAC,OAAI,KAAK,SACR,SAAAC,EAAC,OACC,cAAY,OACZ,UAAU,sGACV,QAAQ,cACR,KAAK,OACL,MAAM,6BAEN,UAAAD,EAAC,QACC,EAAE,+WACF,KAAK,eACP,EACAA,EAAC,QACC,EAAE,glBACF,KAAK,cACP,GACF,EACF,EACF,CAEJ","sourcesContent":["// @ts-nocheck\nimport pluralize from \"pluralize\";\nimport PropTypes from \"prop-types\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { Checkbox } from \"../checkbox\";\n// FOR USE WITH THE PRODUCT PICKER COMPONENT - ONLY\n\nfunction BuildImageUrl(imageUrl) {\n return `${window.resourceSettings?.imageBasePath || ''}${imageUrl}?v=${window.resourceSettings?.version || ''}`;\n}\n\nexport function Listing({\n products,\n isMore,\n selected,\n page,\n pages,\n callback,\n}) {\n const scrollRef = useRef();\n const [showLoader, setShowLoader] = useState(false);\n\n useEffect(() => {\n const element = document.querySelector(\"#product-list\");\n if (element && !element.hasAttribute(\"scroll\"))\n scrollRef.current.addEventListener(\"scroll\", handleScroll);\n if (scrollRef.current != null) scrollRef.current.scrollTop = 0;\n return () => {\n const element = document.querySelector(\"#product-list\");\n if (element && element.hasAttribute(\"scroll\"))\n scrollRef.current.removeEventListener(\"scroll\", handleScroll);\n };\n }, []);\n\n useEffect(() => {\n if(showLoader) setShowLoader(false)\n }, [products])\n\n const handleScroll = () => {\n if (!isMore) return;\n const offset =\n scrollRef.current.scrollHeight - scrollRef.current.offsetHeight;\n const scroll = Math.floor(scrollRef.current.scrollTop);\n // the '-2 & +2' is used as a buffer, otherwise '==' positioning of the scroll becomes too accurate.\n if (scroll == offset || scroll + 2 == offset || scroll - 2 == offset) {\n setShowLoader(true);\n callback({ type: \"FETCH_DATA\", payload: true });\n }\n };\n\n const handleProductSelection = (id) => {\n callback({ type: \"SELECTION\", payload: id });\n };\n\n return (\n <div\n id=\"product-list\"\n ref={scrollRef}\n className={`h-[500px] overflow-y-auto rounded-md border`}\n >\n {(products || []).map((p) => {\n return (\n <ProductRow\n key={`product-row-${p.ProductId}`}\n product={p}\n selected={selected.has(p.ProductId)}\n callback={handleProductSelection}\n />\n );\n })}\n {isMore && page < pages && showLoader && <InfiniteLoader />}\n </div>\n );\n}\n\nfunction ProductRow({ product, selected, callback }) {\n const handleProductSelection = (e) => {\n callback(product.ProductId);\n };\n return (\n <div\n className={`mb-1 mt-1 flex items-center pb-4 pt-4 ${\n selected && \"bg-blue-50\"\n } cursor-pointer justify-between border-b border-gray-100 st-productRow`}\n onClick={handleProductSelection}\n >\n <div className=\"ml-3 flex items-center\">\n <div className=\"flex-shrink-0\">\n <Checkbox\n id={`cb-prod-${product.ProductId}`}\n name={product.Name}\n checked={selected}\n onChange={() => {}}\n />\n </div>\n <div className=\"ml-4 st-image\">\n {product.ImagePath && product.ImageName !== \"[URL-DownloadRequested]\" ? (\n <img\n className=\"h-10 w-10 rounded-sm\"\n src={product.ImagePath}\n alt={product.Name}\n onError={(e) => {\n e.target.onerror = null;\n e.target.src = `${BuildImageUrl(\n \"/admin/Content/images/no-image-discount.png\"\n )}`;\n }}\n />\n ) : (\n <img\n src={BuildImageUrl(\"/admin/Content/images/no-image-discount.png\")}\n alt={product.Name}\n className=\"h-10 w-10 rounded-sm\"\n />\n )}\n </div>\n <div className=\"ml-4\">\n <div className=\" font-medium text-gray-900 st-name\">{product.Name}</div>\n {product.Categories?.length > 0 ? (\n <div className=\"text-xs text-gray-500 st-category\">{`${\n product.CategoryName\n } & ${pluralize(\"other\", product.Categories.length, true)}`}</div>\n ) : (\n <div className=\"text-xs text-gray-500 st-category\">{product.CategoryName}</div>\n )}\n </div>\n </div>\n <div className=\"ml-4 flex-shrink-0 st-price\">\n <span className=\"mr-3 text-sm text-gray-500\">{`${\n globalThis.globalSettings?.CurrencySymbol ?? '£'\n }${product.Price.toFixed(\n globalThis.globalSettings?.CurrencyExponent ?? 2\n )}`}</span>\n </div>\n </div>\n );\n}\n\nListing.propTypes = {\n /** Array of products to list */\n products: PropTypes.array,\n /** Boolean to indicate if there are more products to load */\n isMore: PropTypes.bool,\n /** Set of selected ids */\n selected: PropTypes.instanceOf(Set),\n /** Current page */\n page: PropTypes.number,\n /** Total number of pages */\n pages: PropTypes.number,\n /** Callback function to handle events */\n callback: PropTypes.func,\n};\n\nProductRow.propTypes = {\n /** Product object to display */\n product: PropTypes.object,\n /** Boolean to indicate if the file is selected */\n selected: PropTypes.bool,\n /** Callback function to handle events */\n callback: PropTypes.func,\n};\n\nfunction InfiniteLoader() {\n return (\n <div className=\"mb-1 mt-1 flex justify-center pb-4 pt-4\">\n <div role=\"status\">\n <svg\n aria-hidden=\"true\"\n className=\"inline-block h-8 w-8 animate-spin fill-gray-600 text-gray-200 dark:fill-gray-300 dark:text-gray-600\"\n viewBox=\"0 0 100 101\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n 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\"\n fill=\"currentColor\"\n />\n <path\n 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\"\n fill=\"currentFill\"\n />\n </svg>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as a$3 } from './chunk-DSJ5TRZW.js';
|
|
2
2
|
import { a as a$2 } from './chunk-E4USZ2Q3.js';
|
|
3
|
-
import { a as a$4 } from './chunk-
|
|
3
|
+
import { a as a$4 } from './chunk-VOFMZ77E.js';
|
|
4
4
|
import { a } from './chunk-6LHL364H.js';
|
|
5
5
|
import { d, e, b as b$1, a as a$1 } from './chunk-Z4LPO673.js';
|
|
6
6
|
import { createContext, useState, useRef, useEffect, useMemo } from 'react';
|
|
@@ -13,4 +13,4 @@ var P=d((Ft,X)=>{function Le(e){var t=typeof e;return e!=null&&(t=="object"||t==
|
|
|
13
13
|
|
|
14
14
|
export { qe as a };
|
|
15
15
|
//# sourceMappingURL=out.js.map
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-SDIXMJRI.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { a as a$2 } from './chunk-TJMI4DH2.js';
|
|
2
|
+
import { a } from './chunk-6LHL364H.js';
|
|
3
|
+
import { e as e$1, c, b, a as a$1 } from './chunk-Z4LPO673.js';
|
|
4
|
+
import { variantProps } from 'classname-variants/react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var e=e$1(a(),1);var v=variantProps({base:"group flex items-stretch items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-none rounded-lg",variants:{color:{default:"focus:outline-none text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-blue-300 dark:bg-blue-600 dark:enabled:hover:bg-blue-700 dark:focus:ring-blue-800 rounded-lg focus:ring-2",dark:"enabled:hover:bg-gray-900 focus:ring-4 focus:ring-gray-300 dark:bg-gray-800 dark:enabled:hover:bg-gray-700 dark:focus:ring-gray-800 dark:border-gray-700",failure:"enabled:hover:bg-red-800 focus:ring-4 focus:ring-red-300 dark:enabled:hover:bg-red-700 dark:focus:ring-red-900",gray:"text-gray-900 bg-white border border-gray-200 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 :ring-cyan-700 focus:text-cyan-700 dark:bg-transparent dark:text-gray-400 dark:border-gray-600 dark:enabled:hover:text-white dark:enabled:hover:bg-gray-700 focus:ring-2",info:"enabled:hover:bg-cyan-800 focus:ring-4 focus:ring-cyan-300 dark:bg-cyan-600 dark:enabled:hover:bg-cyan-700 dark:focus:ring-cyan-800",light:"text-gray-900 bg-white border border-gray-300 enabled:hover:bg-gray-100 focus:ring-4 focus:ring-cyan-300 dark:bg-gray-600 dark:text-white dark:border-gray-600 dark:enabled:hover:bg-gray-700 dark:enabled:hover:border-gray-700 dark:focus:ring-gray-700",success:"enabled:hover:bg-green-800 focus:ring-4 focus:ring-green-300 dark:enabled:hover:bg-green-700 dark:focus:ring-green-800",warning:"enabled:hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300 dark:focus:ring-yellow-900"},disabled:{true:"cursor-not-allowed opacity-50",false:""},outline:{true:"border",false:""}},compoundVariants:[{variants:{color:"dark",outline:!0},className:"text-gray-800 border-gray-800 hover:text-white"},{variants:{color:"dark",outline:!1},className:"border-0 text-white bg-gray-800"},{variants:{color:"failure",outline:!0},className:"text-red-700 border-red-700 hover:text-white"},{variants:{color:"failure",outline:!1},className:"border-0 text-white bg-red-700"},{variants:{color:"info",outline:!0},className:"text-cyan-700 border-cyan-700 hover:text-white"},{variants:{color:"info",outline:!1},className:"text-white bg-cyan-700"},{variants:{color:"success",outline:!0},className:"text-green-700 border-green-700 hover:text-white"},{variants:{color:"success",outline:!1},className:"text-white bg-green-700"},{variants:{color:"warning",outline:!0},className:"text-yellow-400 border-yellow-400 hover:text-white"},{variants:{color:"warning",outline:!1},className:"text-white bg-yellow-400"},{variants:{color:"gray",outline:!0},className:"text-gray-900 bg-white hover:text-white border border-gray-200"},{variants:{color:"gray",outline:!1},className:"text-gray-900 bg-white border border-gray-200"}]}),m=Object.freeze({xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1.5",md:"text-sm px-4 py-2",lg:"text-base px-5 py-2.5",xl:"text-base px-6 py-3"});function i(k){var t=k,{color:g="default",disabled:d,outline:b$1,size:c$1="md",children:u,className:a}=t,y=c(t,["color","disabled","outline","size","children","className"]);return jsx("button",b(a$1(a$1({},v({color:g,disabled:d,outline:b$1,className:a})),y),{children:jsx("span",{className:a$2("flex items-center justify-center rounded-md transition-all duration-200",m[c$1],a),children:u})}))}i.propTypes={color:e.default.oneOf(["default","dark","failure","gray","info","light","success","warning"]),size:e.default.oneOf(["xs","sm","md","lg","xl"]),disabled:e.default.bool,outline:e.default.bool,addon:e.default.element,icon:e.default.element};i.displayName="Button";
|
|
8
|
+
|
|
9
|
+
export { i as a };
|
|
10
|
+
//# sourceMappingURL=out.js.map
|
|
11
|
+
//# sourceMappingURL=chunk-VOFMZ77E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/button.tsx"],"names":["variantProps","import_prop_types","jsx","buttonProps","sizes","Button","_a","_b","color","disabled","outline","size","children","className","props","__objRest","__spreadProps","__spreadValues","twMerge","PropTypes"],"mappings":"6IACA,OAAS,gBAAAA,MAAoB,2BAE7B,IAAAC,EAAsB,SA4IhB,cAAAC,MAAA,oBA1IN,IAAMC,EAAcH,EAAa,CAC/B,KAAM,uIACN,SAAU,CACR,MAAO,CACL,QACE,qNACF,KAAM,2JACN,QACE,iHACF,KAAM,+QACN,KAAM,sIACN,MACE,4PACF,QACE,yHACF,QACE,2FACJ,EACA,SAAU,CACR,KAAM,gCACN,MAAO,EACT,EACA,QAAS,CACP,KAAM,SACN,MAAO,EACT,CACF,EACA,iBAAkB,CAChB,CACE,SAAU,CACR,MAAO,OACP,QAAS,EACX,EACA,UAAW,gDACb,EACA,CACE,SAAU,CACR,MAAO,OACP,QAAS,EACX,EACA,UAAW,iCACb,EACA,CACE,SAAU,CACR,MAAO,UACP,QAAS,EACX,EACA,UAAW,8CACb,EACA,CACE,SAAU,CACR,MAAO,UACP,QAAS,EACX,EACA,UAAW,gCACb,EACA,CACE,SAAU,CACR,MAAO,OACP,QAAS,EACX,EACA,UAAW,gDACb,EACA,CACE,SAAU,CACR,MAAO,OACP,QAAS,EACX,EACA,UAAW,wBACb,EACA,CACE,SAAU,CACR,MAAO,UACP,QAAS,EACX,EACA,UAAW,kDACb,EACA,CACE,SAAU,CACR,MAAO,UACP,QAAS,EACX,EACA,UAAW,yBACb,EACA,CACE,SAAU,CACR,MAAO,UACP,QAAS,EACX,EACA,UAAW,oDACb,EACA,CACE,SAAU,CACR,MAAO,UACP,QAAS,EACX,EACA,UAAW,0BACb,EACA,CACE,SAAU,CACR,MAAO,OACP,QAAS,EACX,EACA,UACE,gEACJ,EACA,CACE,SAAU,CACR,MAAO,OACP,QAAS,EACX,EACA,UAAW,+CACb,CACF,CACF,CAAC,EAEKI,EAAQ,OAAO,OAAO,CAC1B,GAAI,oBACJ,GAAI,sBACJ,GAAI,oBACJ,GAAI,wBACJ,GAAI,qBACN,CAAC,EAEM,SAASC,EAAOC,EAQpB,CARoB,IAAAC,EAAAD,EACrB,OAAAE,EAAQ,UACR,SAAAC,EACA,QAAAC,EACA,KAAAC,EAAO,KACP,SAAAC,EACA,UAAAC,CAvIF,EAiIuBN,EAOlBO,EAAAC,EAPkBR,EAOlB,CANH,QACA,WACA,UACA,OACA,WACA,cAGA,OACEL,EAAC,SAAAc,EAAAC,IAAA,GACKd,EAAY,CAAE,MAAAK,EAAO,SAAAC,EAAU,QAAAC,EAAS,UAAAG,CAAU,CAAC,GACnDC,GAFL,CAIC,SAAAZ,EAAC,QACC,UAAWgB,EACT,0EACAd,EAAMO,CAAI,EACVE,CACF,EAEC,SAAAD,EACH,GACF,CAEJ,CAEAP,EAAO,UAAY,CAEjB,MAAO,EAAAc,QAAU,MAAM,CACrB,UACA,OACA,UACA,OACA,OACA,QACA,UACA,SACF,CAAC,EAED,KAAM,EAAAA,QAAU,MAAM,CAAC,KAAM,KAAM,KAAM,KAAM,IAAI,CAAC,EAEpD,SAAU,EAAAA,QAAU,KAEpB,QAAS,EAAAA,QAAU,KAEnB,MAAO,EAAAA,QAAU,QAEjB,KAAM,EAAAA,QAAU,OAClB,EAEAd,EAAO,YAAc","sourcesContent":["//@ts-nocheck\nimport { variantProps } from \"classname-variants/react\";\nimport { twMerge } from \"tailwind-merge\";\nimport PropTypes from \"prop-types\";\n\nconst buttonProps = variantProps({\n base: \"group flex items-stretch items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-none rounded-lg\",\n variants: {\n color: {\n default:\n \"focus:outline-none text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-blue-300 dark:bg-blue-600 dark:enabled:hover:bg-blue-700 dark:focus:ring-blue-800 rounded-lg focus:ring-2\",\n dark: \"enabled:hover:bg-gray-900 focus:ring-4 focus:ring-gray-300 dark:bg-gray-800 dark:enabled:hover:bg-gray-700 dark:focus:ring-gray-800 dark:border-gray-700\",\n failure:\n \"enabled:hover:bg-red-800 focus:ring-4 focus:ring-red-300 dark:enabled:hover:bg-red-700 dark:focus:ring-red-900\",\n gray: \"text-gray-900 bg-white border border-gray-200 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 :ring-cyan-700 focus:text-cyan-700 dark:bg-transparent dark:text-gray-400 dark:border-gray-600 dark:enabled:hover:text-white dark:enabled:hover:bg-gray-700 focus:ring-2\",\n info: \"enabled:hover:bg-cyan-800 focus:ring-4 focus:ring-cyan-300 dark:bg-cyan-600 dark:enabled:hover:bg-cyan-700 dark:focus:ring-cyan-800\",\n light:\n \"text-gray-900 bg-white border border-gray-300 enabled:hover:bg-gray-100 focus:ring-4 focus:ring-cyan-300 dark:bg-gray-600 dark:text-white dark:border-gray-600 dark:enabled:hover:bg-gray-700 dark:enabled:hover:border-gray-700 dark:focus:ring-gray-700\",\n success:\n \"enabled:hover:bg-green-800 focus:ring-4 focus:ring-green-300 dark:enabled:hover:bg-green-700 dark:focus:ring-green-800\",\n warning:\n \"enabled:hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300 dark:focus:ring-yellow-900\",\n },\n disabled: {\n true: \"cursor-not-allowed opacity-50\",\n false: \"\",\n },\n outline: {\n true: \"border\",\n false: \"\",\n },\n },\n compoundVariants: [\n {\n variants: {\n color: \"dark\",\n outline: true,\n },\n className: \"text-gray-800 border-gray-800 hover:text-white\",\n },\n {\n variants: {\n color: \"dark\",\n outline: false,\n },\n className: \"border-0 text-white bg-gray-800\",\n },\n {\n variants: {\n color: \"failure\",\n outline: true,\n },\n className: \"text-red-700 border-red-700 hover:text-white\",\n },\n {\n variants: {\n color: \"failure\",\n outline: false,\n },\n className: \"border-0 text-white bg-red-700\",\n },\n {\n variants: {\n color: \"info\",\n outline: true,\n },\n className: \"text-cyan-700 border-cyan-700 hover:text-white\",\n },\n {\n variants: {\n color: \"info\",\n outline: false,\n },\n className: \"text-white bg-cyan-700\",\n },\n {\n variants: {\n color: \"success\",\n outline: true,\n },\n className: \"text-green-700 border-green-700 hover:text-white\",\n },\n {\n variants: {\n color: \"success\",\n outline: false,\n },\n className: \"text-white bg-green-700\",\n },\n {\n variants: {\n color: \"warning\",\n outline: true,\n },\n className: \"text-yellow-400 border-yellow-400 hover:text-white\",\n },\n {\n variants: {\n color: \"warning\",\n outline: false,\n },\n className: \"text-white bg-yellow-400\",\n },\n {\n variants: {\n color: \"gray\",\n outline: true,\n },\n className:\n \"text-gray-900 bg-white hover:text-white border border-gray-200\",\n },\n {\n variants: {\n color: \"gray\",\n outline: false,\n },\n className: \"text-gray-900 bg-white border border-gray-200\",\n },\n ],\n});\n\nconst sizes = Object.freeze({\n xs: \"text-xs px-2 py-1\",\n sm: \"text-sm px-3 py-1.5\",\n md: \"text-sm px-4 py-2\",\n lg: \"text-base px-5 py-2.5\",\n xl: \"text-base px-6 py-3\",\n});\n\nexport function Button({\n color = \"default\",\n disabled,\n outline,\n size = \"md\",\n children,\n className,\n ...props\n}) {\n return (\n <button\n {...buttonProps({ color, disabled, outline, className })}\n {...props}\n >\n <span\n className={twMerge(\n \"flex items-center justify-center rounded-md transition-all duration-200\",\n sizes[size],\n className\n )}\n >\n {children}\n </span>\n </button>\n );\n}\n\nButton.propTypes = {\n /** String for color of button */\n color: PropTypes.oneOf([\n \"default\",\n \"dark\",\n \"failure\",\n \"gray\",\n \"info\",\n \"light\",\n \"success\",\n \"warning\",\n ]),\n /** String to determine the size of the badge. \"xs, sm, md, lg, xl\" */\n size: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\"]),\n /** Bool to disable button */\n disabled: PropTypes.bool,\n /** Bool to outline button */\n outline: PropTypes.bool,\n /** element for addon on button */\n addon: PropTypes.element,\n /** element for icon on button */\n icon: PropTypes.element,\n};\n\nButton.displayName = \"Button\";\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as a$i } from './chunk-
|
|
1
|
+
import { a as a$i } from './chunk-PZAUAV7G.js';
|
|
2
2
|
import { a as a$f } from './chunk-7XYO4SF6.js';
|
|
3
3
|
import { a as a$9, b as b$1 } from './chunk-HVNLAQA6.js';
|
|
4
4
|
import { a as a$j } from './chunk-U26NV6PE.js';
|
|
@@ -8,7 +8,7 @@ import { a as a$5 } from './chunk-TBJGGVSZ.js';
|
|
|
8
8
|
import { a as a$e } from './chunk-AO5TGD7T.js';
|
|
9
9
|
import { a as a$8 } from './chunk-GUK5N5Z2.js';
|
|
10
10
|
import { a as a$b } from './chunk-ESJIQMQJ.js';
|
|
11
|
-
import { a as a$2 } from './chunk-
|
|
11
|
+
import { a as a$2 } from './chunk-4HCWPWEE.js';
|
|
12
12
|
import { a as a$d } from './chunk-AVTJXS4U.js';
|
|
13
13
|
import { a as a$c } from './chunk-NDDDT4TO.js';
|
|
14
14
|
import { a as a$4 } from './chunk-ER5CL77P.js';
|
|
@@ -16,7 +16,7 @@ import { a as a$7 } from './chunk-E4USZ2Q3.js';
|
|
|
16
16
|
import { a as a$6 } from './chunk-F47A36U7.js';
|
|
17
17
|
import { a as a$h } from './chunk-5SEJVYKM.js';
|
|
18
18
|
import { a as a$g } from './chunk-2OPJLYW6.js';
|
|
19
|
-
import { a as a$3 } from './chunk-
|
|
19
|
+
import { a as a$3 } from './chunk-VOFMZ77E.js';
|
|
20
20
|
import { a as a$1 } from './chunk-6LHL364H.js';
|
|
21
21
|
import { e, f as f$1 } from './chunk-Z4LPO673.js';
|
|
22
22
|
import { Badge, Sidebar } from 'flowbite-react';
|
|
@@ -29,8 +29,8 @@ import { BsCloudUpload, BsFillCheckCircleFill, BsFillImageFill } from 'react-ico
|
|
|
29
29
|
import { FaTimesCircle } from 'react-icons/fa';
|
|
30
30
|
import jr from 'pluralize';
|
|
31
31
|
|
|
32
|
-
function Je({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"})})]})]})})]})}Je.displayName="CardPaymentBlock";function We(){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(We,{})}),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 Ke(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:D}){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);},n=t=>{t.preventDefault(),Ke(t.dataTransfer.files[0].name,e)?(m(b.UPLOADING),v(t.dataTransfer.files[0])):(m(b.ERROR),setTimeout(()=>{R();},2e3));},x=t=>{Ke(t.target.files[0].name,e)?m(b.UPLOADING):m(b.ERROR),v(t.target.files[0]);},C=()=>{D&&D();},O=()=>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}),D&&jsx("div",{className:"mt-3 mb-3",children:jsxs(a$3,{color:"default",onClick:C,children:[jsx(BiSearch,{className:"mr-2"}),"Browse File Manager"]})})]}),S=()=>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"})})}),y=()=>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..."})})]}),_=()=>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"})})]}),H=()=>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"})})]}),A=()=>{switch(l){case b.OVER:return S();case b.UPLOADING:return y();case b.ERROR:return _();case b.SUCCESS:return H();default:return O()}};return jsx("div",{onDragEnter:t=>t.preventDefault(),onDragOver:w,onDrop:n,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:[A(),l===b.NONE&&jsx("input",{id:"dropzone-file",type:"file",className:"hidden",onChange:x})]})})}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 X=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"}),Tr=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 Tr;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-[85%]",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 He({appUrl:r,uri:e,show:o,hideDrag:s=!1,onClose:v,callback:R}){let D=useRef(),[l,m]=useReducer(Br,{mode:a.LOADING,footerBorder:"border-t"}),[w,B]=useState(0),n=useRef(1),[x,C]=useState(!1),[O,S]=useState(!1),y=useRef({pages:0,totalEntries:0}),[_,H]=useState(!1),[A,t]=useState(""),[u,k]=useState(null),[j,ee]=useState([]),[ce,G]=useState("none");useEffect(()=>{o&&(m({type:a.LOADING}),k(null),y.current={pages:0,totalEntries:0},Ne(),c(""));},[o]),useEffect(()=>{u&&k(null),O&&S(!1);},[l.mode]);let Ne=()=>{ee([]),G("none"),H(!1),k(null),S(!1),t(""),n.current=1;},c=p=>f$1(this,null,function*(){let M=n.current;try{let J=(p==null?void 0:p.length)>0?`&FileNameIncludesString=${p}`:"&FileNameIncludesString=",Y=yield (yield fetch(`${r}${er}?CurrentPage=${M}&PageSize=10&Uri=${e}${J}`,{method:"GET",credentials:"same-origin",headers:{"Content-Type":"application/json"}})).json();if(Y.Items.Data.length>0&&M>1?ee(Re=>[...Re,...Y.Items.Data]):ee(Y.Items.Data),y.current={pages:Y.Items.NumberOfPages,totalEntries:Y.Items.Total},B(Y.Items.NumberOfPages),(p==null?void 0:p.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"),H(!1),C(!1);}catch(J){m({type:(p==null?void 0:p.length)===0?a.SEARCH_EMPTY:a.EMPTY});}}),L=p=>{s||(C(!0),D.current.removeFocus(),p.preventDefault());},re=p=>{s||C(!1);},$=p=>{var de;let M=(de=p.text)!=null?de:"",J=A!=null?A:"";t(M),(J.length>0&&M.length===0||J.length===0&&M.length>0&&l.mode!==a.LOADING)&&m({type:a.LOADING}),n.current=1,O&&S(!1),c(M);},te=()=>{S(!0),C(!1),G("none");},ir=()=>{R(`https://files.ekmcdn.com/${u.Uri}`),ve();},ve=()=>{v();},ze=p=>f$1(this,null,function*(){if(p==null){G("error"),te();return}try{let M=zr(p.name),J=yield Ur(p),de={Path:`/${e}/`,Name:M,Bytes:Yr(J),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(""),D.current.clear(),n.current=1,ee([]),S(!1),c("")):G("error");}catch(M){G("error");}}),nr=p=>{switch(p.type){case"FETCH_DATA":H(p.payload),n.current<y.current.pages&&!_&&(H(!0),n.current=n.current+1,c(A));break;case"SELECTION":k(p.payload),S(!1);break;}},cr=()=>{switch(l.mode){case a.EMPTY:return jsx(_r,{});case a.LOADING:return jsx(Hr,{});case a.SEARCH_RESULTS:case a.LOADED:case a.LOADED_NO_DRAG:return jsx(a$j,{border:l.listSize,files:j,isMore:n.current<y.current.pages,selected:u==null?void 0:u.Name,page:n.current,pages:w,callback:nr});case a.SEARCH_EMPTY:return jsx(Mr,{});}},dr=()=>jsxs(Fragment,{children:[jsx(a$f,{id:"file-search",ref:D,placeholder:"Search your images",disabled:l.searchDisabled,callback:$,additionalClasses:"pt-4"}),jsxs("div",{className:"mb-4 mt-4",children:[O&&jsxs(a$h,{type:"danger",onDismiss:()=>{S(!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:ze,errorCallback:te})}),(l.mode===a.SEARCH_RESULTS||l.mode===a.SEARCH_EMPTY)&&(A==null?void 0:A.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..."${A}"`})]}),cr()]});return jsxs(a$c,{show:o,onClose:ve,title:"File Picker",onHide:()=>{},children:[jsxs("div",{className:"h-full",onDragEnter:L,children:[o&&x&&!s&&(()=>jsx("div",{className:"absolute z-50 h-[90.666667%] w-[93.666667%]",children:jsx(se,{uploaded:ce,exitCallback:re,callback:ze,errorCallback:te})}))(),o&&dr()]}),jsxs("div",{className:"bottom-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})]})]})}He.propTypes={appUrl:X.default.string.isRequired,uri:X.default.string.isRequired,show:X.default.bool.isRequired,hideDrag:X.default.bool,onClose:X.default.func.isRequired,callback:X.default.func.isRequired};He.displayName="FilePicker";function _r(){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 Hr(){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 Mr(){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 Ur(r){return f$1(this,null,function*(){return new Uint8Array(yield Gr(r))})}function Gr(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 K({title:r,message:e,icon:o,children:s}){return jsx(a$d,{icon:o||jsx(a$e,{}),title:r,text:e,children:s})}K.propTypes={title:le.PropTypes.string.isRequired,message:le.PropTypes.string,useSpinner:le.PropTypes.bool,icon:le.PropTypes.node,children:le.PropTypes.node};K.displayName="TableResultBlock";var ie=e(a$1(),1);var d=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:d.LOADING,searchDisabled:!1});function Xr(r,e){switch(e.type){case d.EMPTY:return {mode:d.EMPTY,searchDisabled:!0};case d.LOADING:return tr;case d.LOADED:return {mode:d.LOADED,searchDisabled:!1};case d.SEARCH_RESULTS:return {mode:d.SEARCH_RESULTS,searchDisabled:!1};case d.SEARCH_EMPTY:return {mode:d.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},D){let l=useRef(),[m,w]=useReducer(Xr,tr),[B,n]=useState(0),x=useRef(1),C=useRef({pages:0,totalEntries:0}),[O,S]=useState(!1),[y,_]=useState({text:"",category:ye[0]}),[H,A]=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:x.current,SearchType:L});};useImperativeHandle(D,()=>({responseHandler:c=>{var L,re;try{c.Result.Data.length>0&&x.current>1?A($=>[...$,...c.Result.Data]):A(c.Result.Data),C.current={pages:c.Result.NumberOfPages,totalEntries:c.Result.Total},n(c.Result.NumberOfPages),((L=y.text)==null?void 0:L.length)>0?w({type:c.Result.Data.length>0?d.SEARCH_RESULTS:d.SEARCH_EMPTY}):w({type:c.Result.Data.length>0?d.LOADED:d.EMPTY}),S(!1);}catch($){console.error("Error fetching products",$),w({type:((re=y.text)==null?void 0:re.length)===0?d.SEARCH_EMPTY:d.EMPTY});}}}));let j=c=>{var $,te;let L=($=c.text)!=null?$:"",re=(te=y.text)!=null?te:"";(L!=re||c.category.value!=y.category.value)&&(x.current=1,w({type:d.LOADING}),k(L,c.category.value)),_({text:L,category:c.category});},ee=()=>{R(Array.from(t));},ce=c=>{switch(c.type){case"FETCH_DATA":S(c.payload),x.current<C.current.pages&&!O&&(S(!0),x.current=x.current+1,k(y.text,y.category.value));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 d.EMPTY:return jsx(Fe,{title:"You Have No Products",msg:"Your products will appear here"});case d.LOADING:return jsx(Fe,{title:"Loading Products",msg:"Don't worry, this won't take long...",showSpinner:!0});case d.SEARCH_RESULTS:case d.LOADED:return jsx(a$i,{products:H,isMore:x.current<C.current.pages,selected:t,page:x.current,pages:B,callback:ce});case d.SEARCH_EMPTY:return jsx(Fe,{title:"No Products Found",msg:"No products were found matching your search",blockHeight:"h-[460px]"});}},Ne=()=>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===d.SEARCH_RESULTS||m.mode===d.SEARCH_EMPTY)&&y.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..."${y.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:Ne()})}),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:ee,disabled:t.size===0,children:"Add Products"})]})})]})}),Fe=({title:r,msg:e,blockHeight:o="h-[500px]",showSpinner:s=!1})=>jsx("div",{className:`${o} flex items-center justify-center`,children:jsx(K,{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,D]=useReducer(at,or),[l,m]=useState(""),[w,B]=useState([]),[n,x]=useState([]),C=useRef([]);useEffect(()=>{((e==null?void 0:e.length)>0||r)&&(C.current=e,S(""));},[e]),useEffect(()=>{x(o);},[o]);let O=t=>{var j;let u=(j=t.text)!=null?j:"",k=l!=null?l:"";u!=k&&(D({type:f.LOADING}),S(u)),m(u);},S=t=>{let u=t?C.current.filter(k=>k.Country.toLowerCase().includes(t.toLowerCase())):C.current;(u==null?void 0:u.length)>0?(B(u),D({type:(t==null?void 0:t.length)>0?f.SEARCH_RESULTS:f.LOADED})):(B([]),D({type:(t==null?void 0:t.length)>0?f.SEARCH_EMPTY:f.EMPTY}));},y=()=>{v(n);},_=(t,u)=>{let k=u?n.filter(j=>j.CountryCode!=t.CountryCode):[...n,t];x(k);},H=()=>{switch(R.mode){case f.EMPTY:return jsx(Ye,{title:"No Countries",msg:"Available countries will appear here"});case f.LOADING:return jsx(Ye,{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:n,countrySelectCallback:_});case f.SEARCH_EMPTY:return jsx(Ye,{title:"No Countries Found",msg:"No countries were found matching your search",blockHeight:"h-[460px]"});}},A=()=>jsxs(Fragment,{children:[(n==null?void 0:n.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",n==null?void 0:n.length,!0)} selected.`,jsx("span",{onClick:()=>x([]),className:"cursor-pointer text-primary-600 hover:underline",children:" Clear Selection."})]})}),jsx(a$f,{id:"locationSearch",placeholder:"Search for countries",disabled:R.searchDisabled,callback:O}),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}"`})}),H()]});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:A()})}),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:y,disabled:(n==null?void 0:n.length)===0,children:"Add Locations"})]})})]})}var Ye=({title:r,msg:e,blockHeight:o="h-[500px]",showSpinner:s=!1})=>jsx("div",{className:`${o} flex items-center justify-center`,children:jsx(K,{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:D,badgeText:l,badgeColor:m,icon:w}){function B(x){var C=x.split(" "),O=C[0],S=C[C.length-1],y=O.charAt(0);if(O!==S)var _=S.charAt(0);else var _="";return y+_}let n=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:n,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:D})})]},r)}lr.displayName="StackedListItem";
|
|
32
|
+
function Je({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"})})]})]})})]})}Je.displayName="CardPaymentBlock";function We(){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(We,{})}),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 Ke(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:D}){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);},n=t=>{t.preventDefault(),Ke(t.dataTransfer.files[0].name,e)?(m(b.UPLOADING),v(t.dataTransfer.files[0])):(m(b.ERROR),setTimeout(()=>{R();},2e3));},x=t=>{Ke(t.target.files[0].name,e)?m(b.UPLOADING):m(b.ERROR),v(t.target.files[0]);},C=()=>{D&&D();},O=()=>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}),D&&jsx("div",{className:"mt-3 mb-3",children:jsxs(a$3,{color:"default",onClick:C,children:[jsx(BiSearch,{className:"mr-2"}),"Browse File Manager"]})})]}),S=()=>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"})})}),y=()=>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..."})})]}),_=()=>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"})})]}),H=()=>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"})})]}),A=()=>{switch(l){case b.OVER:return S();case b.UPLOADING:return y();case b.ERROR:return _();case b.SUCCESS:return H();default:return O()}};return jsx("div",{onDragEnter:t=>t.preventDefault(),onDragOver:w,onDrop:n,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:[A(),l===b.NONE&&jsx("input",{id:"dropzone-file",type:"file",className:"hidden",onChange:x})]})})}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 X=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"}),Tr=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 Tr;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-[85%]",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 He({appUrl:r,uri:e,show:o,hideDrag:s=!1,onClose:v,callback:R}){let D=useRef(),[l,m]=useReducer(Br,{mode:a.LOADING,footerBorder:"border-t"}),[w,B]=useState(0),n=useRef(1),[x,C]=useState(!1),[O,S]=useState(!1),y=useRef({pages:0,totalEntries:0}),[_,H]=useState(!1),[A,t]=useState(""),[u,k]=useState(null),[j,ee]=useState([]),[ce,G]=useState("none");useEffect(()=>{o&&(m({type:a.LOADING}),k(null),y.current={pages:0,totalEntries:0},Ne(),c(""));},[o]),useEffect(()=>{u&&k(null),O&&S(!1);},[l.mode]);let Ne=()=>{ee([]),G("none"),H(!1),k(null),S(!1),t(""),n.current=1;},c=p=>f$1(this,null,function*(){let M=n.current;try{let J=(p==null?void 0:p.length)>0?`&FileNameIncludesString=${p}`:"&FileNameIncludesString=",Y=yield (yield fetch(`${r}${er}?CurrentPage=${M}&PageSize=10&Uri=${e}${J}`,{method:"GET",credentials:"same-origin",headers:{"Content-Type":"application/json"}})).json();if(Y.Items.Data.length>0&&M>1?ee(Re=>[...Re,...Y.Items.Data]):ee(Y.Items.Data),y.current={pages:Y.Items.NumberOfPages,totalEntries:Y.Items.Total},B(Y.Items.NumberOfPages),(p==null?void 0:p.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"),H(!1),C(!1);}catch(J){m({type:(p==null?void 0:p.length)===0?a.SEARCH_EMPTY:a.EMPTY});}}),L=p=>{s||(C(!0),D.current.removeFocus(),p.preventDefault());},re=p=>{s||C(!1);},$=p=>{var de;let M=(de=p.text)!=null?de:"",J=A!=null?A:"";t(M),(J.length>0&&M.length===0||J.length===0&&M.length>0&&l.mode!==a.LOADING)&&m({type:a.LOADING}),n.current=1,O&&S(!1),c(M);},te=()=>{S(!0),C(!1),G("none");},ir=()=>{R(`https://files.ekmcdn.com/${u.Uri}`),ve();},ve=()=>{v();},ze=p=>f$1(this,null,function*(){if(p==null){G("error"),te();return}try{let M=zr(p.name),J=yield Ur(p),de={Path:`/${e}/`,Name:M,Bytes:Yr(J),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(""),D.current.clear(),n.current=1,ee([]),S(!1),c("")):G("error");}catch(M){G("error");}}),nr=p=>{switch(p.type){case"FETCH_DATA":H(p.payload),n.current<y.current.pages&&!_&&(H(!0),n.current=n.current+1,c(A));break;case"SELECTION":k(p.payload),S(!1);break;}},cr=()=>{switch(l.mode){case a.EMPTY:return jsx(_r,{});case a.LOADING:return jsx(Hr,{});case a.SEARCH_RESULTS:case a.LOADED:case a.LOADED_NO_DRAG:return jsx(a$j,{border:l.listSize,files:j,isMore:n.current<y.current.pages,selected:u==null?void 0:u.Name,page:n.current,pages:w,callback:nr});case a.SEARCH_EMPTY:return jsx(Mr,{});}},dr=()=>jsxs(Fragment,{children:[jsx(a$f,{id:"file-search",ref:D,placeholder:"Search your images",disabled:l.searchDisabled,callback:$,additionalClasses:"pt-4"}),jsxs("div",{className:"mb-4 mt-4",children:[O&&jsxs(a$h,{type:"danger",onDismiss:()=>{S(!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:ze,errorCallback:te})}),(l.mode===a.SEARCH_RESULTS||l.mode===a.SEARCH_EMPTY)&&(A==null?void 0:A.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..."${A}"`})]}),cr()]});return jsxs(a$c,{show:o,onClose:ve,title:"File Picker",onHide:()=>{},children:[jsxs("div",{className:"h-full",onDragEnter:L,children:[o&&x&&!s&&(()=>jsx("div",{className:"absolute z-50 h-[90.666667%] w-[93.666667%]",children:jsx(se,{uploaded:ce,exitCallback:re,callback:ze,errorCallback:te})}))(),o&&dr()]}),jsxs("div",{className:"bottom-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})]})]})}He.propTypes={appUrl:X.default.string.isRequired,uri:X.default.string.isRequired,show:X.default.bool.isRequired,hideDrag:X.default.bool,onClose:X.default.func.isRequired,callback:X.default.func.isRequired};He.displayName="FilePicker";function _r(){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 Hr(){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 Mr(){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 Ur(r){return f$1(this,null,function*(){return new Uint8Array(yield Gr(r))})}function Gr(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 K({title:r,message:e,icon:o,children:s}){return jsx(a$d,{icon:o||jsx(a$e,{}),title:r,text:e,children:s})}K.propTypes={title:le.PropTypes.string.isRequired,message:le.PropTypes.string,useSpinner:le.PropTypes.bool,icon:le.PropTypes.node,children:le.PropTypes.node};K.displayName="TableResultBlock";var ie=e(a$1(),1);var d=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:d.LOADING,searchDisabled:!1});function Xr(r,e){switch(e.type){case d.EMPTY:return {mode:d.EMPTY,searchDisabled:!0};case d.LOADING:return tr;case d.LOADED:return {mode:d.LOADED,searchDisabled:!1};case d.SEARCH_RESULTS:return {mode:d.SEARCH_RESULTS,searchDisabled:!1};case d.SEARCH_EMPTY:return {mode:d.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},D){let l=useRef(),[m,w]=useReducer(Xr,tr),[B,n]=useState(0),x=useRef(1),C=useRef({pages:0,totalEntries:0}),[O,S]=useState(!1),[y,_]=useState({text:"",category:ye[0]}),[H,A]=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:x.current,SearchType:L});};useImperativeHandle(D,()=>({responseHandler:c=>{var L,re;try{c.Result.Data.length>0&&x.current>1?A($=>[...$,...c.Result.Data]):A(c.Result.Data),C.current={pages:c.Result.NumberOfPages,totalEntries:c.Result.Total},n(c.Result.NumberOfPages),((L=y.text)==null?void 0:L.length)>0?w({type:c.Result.Data.length>0?d.SEARCH_RESULTS:d.SEARCH_EMPTY}):w({type:c.Result.Data.length>0?d.LOADED:d.EMPTY}),S(!1);}catch($){console.error("Error fetching products",$),w({type:((re=y.text)==null?void 0:re.length)===0?d.SEARCH_EMPTY:d.EMPTY});}}}));let j=c=>{var $,te;let L=($=c.text)!=null?$:"",re=(te=y.text)!=null?te:"";(L!=re||c.category.value!=y.category.value)&&(x.current=1,w({type:d.LOADING}),k(L,c.category.value)),_({text:L,category:c.category});},ee=()=>{R(Array.from(t));},ce=c=>{switch(c.type){case"FETCH_DATA":S(c.payload),x.current<C.current.pages&&!O&&(S(!0),x.current=x.current+1,k(y.text,y.category.value));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 d.EMPTY:return jsx(Fe,{title:"You Have No Products",msg:"Your products will appear here"});case d.LOADING:return jsx(Fe,{title:"Loading Products",msg:"Don't worry, this won't take long...",showSpinner:!0});case d.SEARCH_RESULTS:case d.LOADED:return jsx(a$i,{products:H,isMore:x.current<C.current.pages,selected:t,page:x.current,pages:B,callback:ce});case d.SEARCH_EMPTY:return jsx(Fe,{title:"No Products Found",msg:"No products were found matching your search",blockHeight:"h-[460px]"});}},Ne=()=>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",{id:"btnClear",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===d.SEARCH_RESULTS||m.mode===d.SEARCH_EMPTY)&&y.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..."${y.text}"`})}),G()]});return jsxs(a$2,{show:!0,onClose:o,title:"Choose Products",size:"lg",id:"productSelectModal",children:[jsx(a$2.Body,{children:jsx("div",{className:"h-full",children:Ne()})}),jsx(a$2.Footer,{children:jsxs("div",{className:"flex-grow grid grid-col-2 grid-flow-col gap-4",children:[jsx(a$3,{id:"btnClose",color:"light",onClick:o,children:"Close"}),jsx(a$3,{id:"btnAdd",color:"success",onClick:ee,disabled:t.size===0,children:"Add Products"})]})})]})}),Fe=({title:r,msg:e,blockHeight:o="h-[500px]",showSpinner:s=!1})=>jsx("div",{className:`${o} flex items-center justify-center`,children:jsx(K,{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,D]=useReducer(at,or),[l,m]=useState(""),[w,B]=useState([]),[n,x]=useState([]),C=useRef([]);useEffect(()=>{((e==null?void 0:e.length)>0||r)&&(C.current=e,S(""));},[e]),useEffect(()=>{x(o);},[o]);let O=t=>{var j;let u=(j=t.text)!=null?j:"",k=l!=null?l:"";u!=k&&(D({type:f.LOADING}),S(u)),m(u);},S=t=>{let u=t?C.current.filter(k=>k.Country.toLowerCase().includes(t.toLowerCase())):C.current;(u==null?void 0:u.length)>0?(B(u),D({type:(t==null?void 0:t.length)>0?f.SEARCH_RESULTS:f.LOADED})):(B([]),D({type:(t==null?void 0:t.length)>0?f.SEARCH_EMPTY:f.EMPTY}));},y=()=>{v(n);},_=(t,u)=>{let k=u?n.filter(j=>j.CountryCode!=t.CountryCode):[...n,t];x(k);},H=()=>{switch(R.mode){case f.EMPTY:return jsx(Ye,{title:"No Countries",msg:"Available countries will appear here"});case f.LOADING:return jsx(Ye,{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:n,countrySelectCallback:_});case f.SEARCH_EMPTY:return jsx(Ye,{title:"No Countries Found",msg:"No countries were found matching your search",blockHeight:"h-[460px]"});}},A=()=>jsxs(Fragment,{children:[(n==null?void 0:n.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",n==null?void 0:n.length,!0)} selected.`,jsx("span",{onClick:()=>x([]),className:"cursor-pointer text-primary-600 hover:underline",children:" Clear Selection."})]})}),jsx(a$f,{id:"locationSearch",placeholder:"Search for countries",disabled:R.searchDisabled,callback:O}),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}"`})}),H()]});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:A()})}),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:y,disabled:(n==null?void 0:n.length)===0,children:"Add Locations"})]})})]})}var Ye=({title:r,msg:e,blockHeight:o="h-[500px]",showSpinner:s=!1})=>jsx("div",{className:`${o} flex items-center justify-center`,children:jsx(K,{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:D,badgeText:l,badgeColor:m,icon:w}){function B(x){var C=x.split(" "),O=C[0],S=C[C.length-1],y=O.charAt(0);if(O!==S)var _=S.charAt(0);else var _="";return y+_}let n=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:n,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:D})})]},r)}lr.displayName="StackedListItem";
|
|
33
33
|
|
|
34
34
|
export { lr as a, Cr as b, se as c, He as d, K as e, Ue as f, sr as g, Je as h };
|
|
35
35
|
//# sourceMappingURL=out.js.map
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
36
|
+
//# sourceMappingURL=chunk-ZJIHNQR7.js.map
|