@webority/ui-react 0.0.10 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-react.js +1458 -334
- package/package.json +4 -8
package/dist/ui-react.js
CHANGED
|
@@ -131,7 +131,7 @@ function A({ name: e, size: r = 16, className: i, color: a, style: o }) {
|
|
|
131
131
|
}), /* @__PURE__ */ t("path", { d: "M3.2 22.5C3.2 17.4 7.5 14.9 11 14.7L12 17.4l1-2.7C16.5 14.9 20.8 17.4 20.8 22.5z" })]
|
|
132
132
|
})
|
|
133
133
|
});
|
|
134
|
-
let s = ee[e];
|
|
134
|
+
let s = ee[e] || e;
|
|
135
135
|
return s ? /* @__PURE__ */ t("i", {
|
|
136
136
|
className: `bi bi-${s}${i ? ` ${i}` : ""}`,
|
|
137
137
|
"data-icon": e,
|
|
@@ -146,24 +146,37 @@ function A({ name: e, size: r = 16, className: i, color: a, style: o }) {
|
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region src/components/ActionIcon.jsx
|
|
149
|
-
function te({
|
|
150
|
-
return /* @__PURE__ */ t(
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
function te({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20, onClick: o, className: s = "", ...c }) {
|
|
150
|
+
return /* @__PURE__ */ t("button", {
|
|
151
|
+
type: "button",
|
|
152
|
+
className: [
|
|
153
|
+
"u-action",
|
|
154
|
+
r ? "danger" : "",
|
|
155
|
+
s
|
|
156
|
+
].filter(Boolean).join(" "),
|
|
157
|
+
"aria-label": n,
|
|
158
|
+
title: n,
|
|
159
|
+
disabled: i,
|
|
160
|
+
onClick: o,
|
|
161
|
+
...c,
|
|
162
|
+
children: /* @__PURE__ */ t(A, {
|
|
163
|
+
name: e,
|
|
164
|
+
size: a,
|
|
165
|
+
variant: "Bold"
|
|
166
|
+
})
|
|
154
167
|
});
|
|
155
168
|
}
|
|
156
169
|
//#endregion
|
|
157
170
|
//#region src/components/AppAlert.jsx
|
|
158
|
-
function ne({ variant: e = "danger", children: n, className: i = "", onClose: a,
|
|
171
|
+
function ne({ variant: e = "danger", children: n, className: i = "", onClose: a, dismissible: o, role: s = "alert", ...c }) {
|
|
159
172
|
return /* @__PURE__ */ t(r, {
|
|
160
173
|
variant: e,
|
|
161
174
|
className: i || void 0,
|
|
162
175
|
onClose: a,
|
|
163
|
-
dismissible: typeof a == "function",
|
|
176
|
+
dismissible: o ?? typeof a == "function",
|
|
164
177
|
transition: !1,
|
|
165
|
-
role:
|
|
166
|
-
...
|
|
178
|
+
role: s,
|
|
179
|
+
...c,
|
|
167
180
|
children: n
|
|
168
181
|
});
|
|
169
182
|
}
|
|
@@ -220,13 +233,20 @@ var re = class extends HTMLElement {
|
|
|
220
233
|
let e = Number(this.getAttribute("debounce"));
|
|
221
234
|
return Number.isFinite(e) && e >= 0 ? e : 250;
|
|
222
235
|
}
|
|
223
|
-
|
|
224
|
-
|
|
236
|
+
_snapshotDeclared() {
|
|
237
|
+
if (this._declared) return;
|
|
238
|
+
let e = [...this.querySelectorAll(":scope > wui-option")];
|
|
239
|
+
e.length && (this._declared = e.map((e) => ({
|
|
225
240
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
226
|
-
label: e.innerHTML
|
|
227
|
-
|
|
241
|
+
label: e.innerHTML,
|
|
242
|
+
selected: e.hasAttribute("selected")
|
|
243
|
+
})));
|
|
244
|
+
}
|
|
245
|
+
_readOptions() {
|
|
246
|
+
return this._optionsProp ? this._optionsProp : (this._snapshotDeclared(), this._declared || []);
|
|
228
247
|
}
|
|
229
248
|
render() {
|
|
249
|
+
this._snapshotDeclared();
|
|
230
250
|
let e = this.getAttribute("placeholder") || "Search…";
|
|
231
251
|
this.innerHTML = `
|
|
232
252
|
<div class="search-select">
|
|
@@ -491,17 +511,24 @@ var re = class extends HTMLElement {
|
|
|
491
511
|
get options() {
|
|
492
512
|
return this._readOptions();
|
|
493
513
|
}
|
|
494
|
-
|
|
495
|
-
|
|
514
|
+
_snapshotDeclared() {
|
|
515
|
+
if (this._declared) return;
|
|
516
|
+
let e = [...this.querySelectorAll(":scope > wui-option")];
|
|
517
|
+
e.length && (this._declared = e.map((e) => ({
|
|
496
518
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
497
|
-
label: e.innerHTML
|
|
498
|
-
|
|
519
|
+
label: e.innerHTML,
|
|
520
|
+
selected: e.hasAttribute("selected")
|
|
521
|
+
})));
|
|
522
|
+
}
|
|
523
|
+
_readOptions() {
|
|
524
|
+
return this._optionsProp ? this._optionsProp : (this._snapshotDeclared(), this._declared || []);
|
|
499
525
|
}
|
|
500
526
|
_labelFor(e) {
|
|
501
527
|
let t = this._readOptions().find((t) => String(t.value) === String(e));
|
|
502
528
|
return t ? t.label : e;
|
|
503
529
|
}
|
|
504
530
|
render() {
|
|
531
|
+
this._snapshotDeclared();
|
|
505
532
|
let e = this.hasAttribute("searchable"), t = this.getAttribute("search-placeholder") || "Search…";
|
|
506
533
|
this._internals?.setFormValue(this._values.join(",")), this.innerHTML = `
|
|
507
534
|
<div class="search-select">
|
|
@@ -591,69 +618,1054 @@ var re = class extends HTMLElement {
|
|
|
591
618
|
}
|
|
592
619
|
}, I = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), le = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<"), ue = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), L = [
|
|
593
620
|
[
|
|
594
|
-
"
|
|
595
|
-
"
|
|
596
|
-
"
|
|
621
|
+
"AF",
|
|
622
|
+
"Afghanistan",
|
|
623
|
+
"93"
|
|
624
|
+
],
|
|
625
|
+
[
|
|
626
|
+
"AX",
|
|
627
|
+
"Åland Islands",
|
|
628
|
+
"358"
|
|
629
|
+
],
|
|
630
|
+
[
|
|
631
|
+
"AL",
|
|
632
|
+
"Albania",
|
|
633
|
+
"355"
|
|
634
|
+
],
|
|
635
|
+
[
|
|
636
|
+
"DZ",
|
|
637
|
+
"Algeria",
|
|
638
|
+
"213"
|
|
639
|
+
],
|
|
640
|
+
[
|
|
641
|
+
"AS",
|
|
642
|
+
"American Samoa",
|
|
643
|
+
"1"
|
|
644
|
+
],
|
|
645
|
+
[
|
|
646
|
+
"AD",
|
|
647
|
+
"Andorra",
|
|
648
|
+
"376"
|
|
649
|
+
],
|
|
650
|
+
[
|
|
651
|
+
"AO",
|
|
652
|
+
"Angola",
|
|
653
|
+
"244"
|
|
654
|
+
],
|
|
655
|
+
[
|
|
656
|
+
"AI",
|
|
657
|
+
"Anguilla",
|
|
658
|
+
"1"
|
|
659
|
+
],
|
|
660
|
+
[
|
|
661
|
+
"AG",
|
|
662
|
+
"Antigua & Barbuda",
|
|
663
|
+
"1"
|
|
664
|
+
],
|
|
665
|
+
[
|
|
666
|
+
"AR",
|
|
667
|
+
"Argentina",
|
|
668
|
+
"54"
|
|
669
|
+
],
|
|
670
|
+
[
|
|
671
|
+
"AM",
|
|
672
|
+
"Armenia",
|
|
673
|
+
"374"
|
|
674
|
+
],
|
|
675
|
+
[
|
|
676
|
+
"AW",
|
|
677
|
+
"Aruba",
|
|
678
|
+
"297"
|
|
679
|
+
],
|
|
680
|
+
[
|
|
681
|
+
"AC",
|
|
682
|
+
"Ascension Island",
|
|
683
|
+
"247"
|
|
684
|
+
],
|
|
685
|
+
[
|
|
686
|
+
"AU",
|
|
687
|
+
"Australia",
|
|
688
|
+
"61"
|
|
689
|
+
],
|
|
690
|
+
[
|
|
691
|
+
"AT",
|
|
692
|
+
"Austria",
|
|
693
|
+
"43"
|
|
694
|
+
],
|
|
695
|
+
[
|
|
696
|
+
"AZ",
|
|
697
|
+
"Azerbaijan",
|
|
698
|
+
"994"
|
|
699
|
+
],
|
|
700
|
+
[
|
|
701
|
+
"BS",
|
|
702
|
+
"Bahamas",
|
|
703
|
+
"1"
|
|
704
|
+
],
|
|
705
|
+
[
|
|
706
|
+
"BH",
|
|
707
|
+
"Bahrain",
|
|
708
|
+
"973"
|
|
709
|
+
],
|
|
710
|
+
[
|
|
711
|
+
"BD",
|
|
712
|
+
"Bangladesh",
|
|
713
|
+
"880"
|
|
714
|
+
],
|
|
715
|
+
[
|
|
716
|
+
"BB",
|
|
717
|
+
"Barbados",
|
|
718
|
+
"1"
|
|
719
|
+
],
|
|
720
|
+
[
|
|
721
|
+
"BY",
|
|
722
|
+
"Belarus",
|
|
723
|
+
"375"
|
|
724
|
+
],
|
|
725
|
+
[
|
|
726
|
+
"BE",
|
|
727
|
+
"Belgium",
|
|
728
|
+
"32"
|
|
729
|
+
],
|
|
730
|
+
[
|
|
731
|
+
"BZ",
|
|
732
|
+
"Belize",
|
|
733
|
+
"501"
|
|
734
|
+
],
|
|
735
|
+
[
|
|
736
|
+
"BJ",
|
|
737
|
+
"Benin",
|
|
738
|
+
"229"
|
|
739
|
+
],
|
|
740
|
+
[
|
|
741
|
+
"BM",
|
|
742
|
+
"Bermuda",
|
|
743
|
+
"1"
|
|
744
|
+
],
|
|
745
|
+
[
|
|
746
|
+
"BT",
|
|
747
|
+
"Bhutan",
|
|
748
|
+
"975"
|
|
749
|
+
],
|
|
750
|
+
[
|
|
751
|
+
"BO",
|
|
752
|
+
"Bolivia",
|
|
753
|
+
"591"
|
|
754
|
+
],
|
|
755
|
+
[
|
|
756
|
+
"BA",
|
|
757
|
+
"Bosnia & Herzegovina",
|
|
758
|
+
"387"
|
|
759
|
+
],
|
|
760
|
+
[
|
|
761
|
+
"BW",
|
|
762
|
+
"Botswana",
|
|
763
|
+
"267"
|
|
764
|
+
],
|
|
765
|
+
[
|
|
766
|
+
"BR",
|
|
767
|
+
"Brazil",
|
|
768
|
+
"55"
|
|
769
|
+
],
|
|
770
|
+
[
|
|
771
|
+
"IO",
|
|
772
|
+
"British Indian Ocean Territory",
|
|
773
|
+
"246"
|
|
774
|
+
],
|
|
775
|
+
[
|
|
776
|
+
"VG",
|
|
777
|
+
"British Virgin Islands",
|
|
778
|
+
"1"
|
|
779
|
+
],
|
|
780
|
+
[
|
|
781
|
+
"BN",
|
|
782
|
+
"Brunei",
|
|
783
|
+
"673"
|
|
784
|
+
],
|
|
785
|
+
[
|
|
786
|
+
"BG",
|
|
787
|
+
"Bulgaria",
|
|
788
|
+
"359"
|
|
789
|
+
],
|
|
790
|
+
[
|
|
791
|
+
"BF",
|
|
792
|
+
"Burkina Faso",
|
|
793
|
+
"226"
|
|
794
|
+
],
|
|
795
|
+
[
|
|
796
|
+
"BI",
|
|
797
|
+
"Burundi",
|
|
798
|
+
"257"
|
|
799
|
+
],
|
|
800
|
+
[
|
|
801
|
+
"KH",
|
|
802
|
+
"Cambodia",
|
|
803
|
+
"855"
|
|
804
|
+
],
|
|
805
|
+
[
|
|
806
|
+
"CM",
|
|
807
|
+
"Cameroon",
|
|
808
|
+
"237"
|
|
809
|
+
],
|
|
810
|
+
[
|
|
811
|
+
"CA",
|
|
812
|
+
"Canada",
|
|
813
|
+
"1"
|
|
814
|
+
],
|
|
815
|
+
[
|
|
816
|
+
"CV",
|
|
817
|
+
"Cape Verde",
|
|
818
|
+
"238"
|
|
819
|
+
],
|
|
820
|
+
[
|
|
821
|
+
"BQ",
|
|
822
|
+
"Caribbean Netherlands",
|
|
823
|
+
"599"
|
|
824
|
+
],
|
|
825
|
+
[
|
|
826
|
+
"KY",
|
|
827
|
+
"Cayman Islands",
|
|
828
|
+
"1"
|
|
829
|
+
],
|
|
830
|
+
[
|
|
831
|
+
"CF",
|
|
832
|
+
"Central African Republic",
|
|
833
|
+
"236"
|
|
834
|
+
],
|
|
835
|
+
[
|
|
836
|
+
"TD",
|
|
837
|
+
"Chad",
|
|
838
|
+
"235"
|
|
839
|
+
],
|
|
840
|
+
[
|
|
841
|
+
"CL",
|
|
842
|
+
"Chile",
|
|
843
|
+
"56"
|
|
844
|
+
],
|
|
845
|
+
[
|
|
846
|
+
"CN",
|
|
847
|
+
"China",
|
|
848
|
+
"86"
|
|
849
|
+
],
|
|
850
|
+
[
|
|
851
|
+
"CX",
|
|
852
|
+
"Christmas Island",
|
|
853
|
+
"61"
|
|
854
|
+
],
|
|
855
|
+
[
|
|
856
|
+
"CC",
|
|
857
|
+
"Cocos (Keeling) Islands",
|
|
858
|
+
"61"
|
|
859
|
+
],
|
|
860
|
+
[
|
|
861
|
+
"CO",
|
|
862
|
+
"Colombia",
|
|
863
|
+
"57"
|
|
864
|
+
],
|
|
865
|
+
[
|
|
866
|
+
"KM",
|
|
867
|
+
"Comoros",
|
|
868
|
+
"269"
|
|
869
|
+
],
|
|
870
|
+
[
|
|
871
|
+
"CG",
|
|
872
|
+
"Congo - Brazzaville",
|
|
873
|
+
"242"
|
|
874
|
+
],
|
|
875
|
+
[
|
|
876
|
+
"CD",
|
|
877
|
+
"Congo - Kinshasa",
|
|
878
|
+
"243"
|
|
879
|
+
],
|
|
880
|
+
[
|
|
881
|
+
"CK",
|
|
882
|
+
"Cook Islands",
|
|
883
|
+
"682"
|
|
884
|
+
],
|
|
885
|
+
[
|
|
886
|
+
"CR",
|
|
887
|
+
"Costa Rica",
|
|
888
|
+
"506"
|
|
889
|
+
],
|
|
890
|
+
[
|
|
891
|
+
"CI",
|
|
892
|
+
"Côte d’Ivoire",
|
|
893
|
+
"225"
|
|
894
|
+
],
|
|
895
|
+
[
|
|
896
|
+
"HR",
|
|
897
|
+
"Croatia",
|
|
898
|
+
"385"
|
|
899
|
+
],
|
|
900
|
+
[
|
|
901
|
+
"CU",
|
|
902
|
+
"Cuba",
|
|
903
|
+
"53"
|
|
904
|
+
],
|
|
905
|
+
[
|
|
906
|
+
"CW",
|
|
907
|
+
"Curaçao",
|
|
908
|
+
"599"
|
|
909
|
+
],
|
|
910
|
+
[
|
|
911
|
+
"CY",
|
|
912
|
+
"Cyprus",
|
|
913
|
+
"357"
|
|
914
|
+
],
|
|
915
|
+
[
|
|
916
|
+
"CZ",
|
|
917
|
+
"Czechia",
|
|
918
|
+
"420"
|
|
919
|
+
],
|
|
920
|
+
[
|
|
921
|
+
"DK",
|
|
922
|
+
"Denmark",
|
|
923
|
+
"45"
|
|
924
|
+
],
|
|
925
|
+
[
|
|
926
|
+
"DJ",
|
|
927
|
+
"Djibouti",
|
|
928
|
+
"253"
|
|
929
|
+
],
|
|
930
|
+
[
|
|
931
|
+
"DM",
|
|
932
|
+
"Dominica",
|
|
933
|
+
"1"
|
|
934
|
+
],
|
|
935
|
+
[
|
|
936
|
+
"DO",
|
|
937
|
+
"Dominican Republic",
|
|
938
|
+
"1"
|
|
939
|
+
],
|
|
940
|
+
[
|
|
941
|
+
"EC",
|
|
942
|
+
"Ecuador",
|
|
943
|
+
"593"
|
|
944
|
+
],
|
|
945
|
+
[
|
|
946
|
+
"EG",
|
|
947
|
+
"Egypt",
|
|
948
|
+
"20"
|
|
949
|
+
],
|
|
950
|
+
[
|
|
951
|
+
"SV",
|
|
952
|
+
"El Salvador",
|
|
953
|
+
"503"
|
|
954
|
+
],
|
|
955
|
+
[
|
|
956
|
+
"GQ",
|
|
957
|
+
"Equatorial Guinea",
|
|
958
|
+
"240"
|
|
959
|
+
],
|
|
960
|
+
[
|
|
961
|
+
"ER",
|
|
962
|
+
"Eritrea",
|
|
963
|
+
"291"
|
|
964
|
+
],
|
|
965
|
+
[
|
|
966
|
+
"EE",
|
|
967
|
+
"Estonia",
|
|
968
|
+
"372"
|
|
969
|
+
],
|
|
970
|
+
[
|
|
971
|
+
"SZ",
|
|
972
|
+
"Eswatini",
|
|
973
|
+
"268"
|
|
974
|
+
],
|
|
975
|
+
[
|
|
976
|
+
"ET",
|
|
977
|
+
"Ethiopia",
|
|
978
|
+
"251"
|
|
979
|
+
],
|
|
980
|
+
[
|
|
981
|
+
"FK",
|
|
982
|
+
"Falkland Islands",
|
|
983
|
+
"500"
|
|
984
|
+
],
|
|
985
|
+
[
|
|
986
|
+
"FO",
|
|
987
|
+
"Faroe Islands",
|
|
988
|
+
"298"
|
|
989
|
+
],
|
|
990
|
+
[
|
|
991
|
+
"FJ",
|
|
992
|
+
"Fiji",
|
|
993
|
+
"679"
|
|
994
|
+
],
|
|
995
|
+
[
|
|
996
|
+
"FI",
|
|
997
|
+
"Finland",
|
|
998
|
+
"358"
|
|
999
|
+
],
|
|
1000
|
+
[
|
|
1001
|
+
"FR",
|
|
1002
|
+
"France",
|
|
1003
|
+
"33"
|
|
1004
|
+
],
|
|
1005
|
+
[
|
|
1006
|
+
"GF",
|
|
1007
|
+
"French Guiana",
|
|
1008
|
+
"594"
|
|
1009
|
+
],
|
|
1010
|
+
[
|
|
1011
|
+
"PF",
|
|
1012
|
+
"French Polynesia",
|
|
1013
|
+
"689"
|
|
1014
|
+
],
|
|
1015
|
+
[
|
|
1016
|
+
"GA",
|
|
1017
|
+
"Gabon",
|
|
1018
|
+
"241"
|
|
1019
|
+
],
|
|
1020
|
+
[
|
|
1021
|
+
"GM",
|
|
1022
|
+
"Gambia",
|
|
1023
|
+
"220"
|
|
1024
|
+
],
|
|
1025
|
+
[
|
|
1026
|
+
"GE",
|
|
1027
|
+
"Georgia",
|
|
1028
|
+
"995"
|
|
1029
|
+
],
|
|
1030
|
+
[
|
|
1031
|
+
"DE",
|
|
1032
|
+
"Germany",
|
|
1033
|
+
"49"
|
|
1034
|
+
],
|
|
1035
|
+
[
|
|
1036
|
+
"GH",
|
|
1037
|
+
"Ghana",
|
|
1038
|
+
"233"
|
|
1039
|
+
],
|
|
1040
|
+
[
|
|
1041
|
+
"GI",
|
|
1042
|
+
"Gibraltar",
|
|
1043
|
+
"350"
|
|
1044
|
+
],
|
|
1045
|
+
[
|
|
1046
|
+
"GR",
|
|
1047
|
+
"Greece",
|
|
1048
|
+
"30"
|
|
1049
|
+
],
|
|
1050
|
+
[
|
|
1051
|
+
"GL",
|
|
1052
|
+
"Greenland",
|
|
1053
|
+
"299"
|
|
1054
|
+
],
|
|
1055
|
+
[
|
|
1056
|
+
"GD",
|
|
1057
|
+
"Grenada",
|
|
1058
|
+
"1"
|
|
1059
|
+
],
|
|
1060
|
+
[
|
|
1061
|
+
"GP",
|
|
1062
|
+
"Guadeloupe",
|
|
1063
|
+
"590"
|
|
1064
|
+
],
|
|
1065
|
+
[
|
|
1066
|
+
"GU",
|
|
1067
|
+
"Guam",
|
|
1068
|
+
"1"
|
|
1069
|
+
],
|
|
1070
|
+
[
|
|
1071
|
+
"GT",
|
|
1072
|
+
"Guatemala",
|
|
1073
|
+
"502"
|
|
1074
|
+
],
|
|
1075
|
+
[
|
|
1076
|
+
"GG",
|
|
1077
|
+
"Guernsey",
|
|
1078
|
+
"44"
|
|
1079
|
+
],
|
|
1080
|
+
[
|
|
1081
|
+
"GN",
|
|
1082
|
+
"Guinea",
|
|
1083
|
+
"224"
|
|
1084
|
+
],
|
|
1085
|
+
[
|
|
1086
|
+
"GW",
|
|
1087
|
+
"Guinea-Bissau",
|
|
1088
|
+
"245"
|
|
1089
|
+
],
|
|
1090
|
+
[
|
|
1091
|
+
"GY",
|
|
1092
|
+
"Guyana",
|
|
1093
|
+
"592"
|
|
1094
|
+
],
|
|
1095
|
+
[
|
|
1096
|
+
"HT",
|
|
1097
|
+
"Haiti",
|
|
1098
|
+
"509"
|
|
1099
|
+
],
|
|
1100
|
+
[
|
|
1101
|
+
"HN",
|
|
1102
|
+
"Honduras",
|
|
1103
|
+
"504"
|
|
1104
|
+
],
|
|
1105
|
+
[
|
|
1106
|
+
"HK",
|
|
1107
|
+
"Hong Kong SAR China",
|
|
1108
|
+
"852"
|
|
1109
|
+
],
|
|
1110
|
+
[
|
|
1111
|
+
"HU",
|
|
1112
|
+
"Hungary",
|
|
1113
|
+
"36"
|
|
1114
|
+
],
|
|
1115
|
+
[
|
|
1116
|
+
"IS",
|
|
1117
|
+
"Iceland",
|
|
1118
|
+
"354"
|
|
1119
|
+
],
|
|
1120
|
+
[
|
|
1121
|
+
"IN",
|
|
1122
|
+
"India",
|
|
1123
|
+
"91"
|
|
1124
|
+
],
|
|
1125
|
+
[
|
|
1126
|
+
"ID",
|
|
1127
|
+
"Indonesia",
|
|
1128
|
+
"62"
|
|
1129
|
+
],
|
|
1130
|
+
[
|
|
1131
|
+
"IR",
|
|
1132
|
+
"Iran",
|
|
1133
|
+
"98"
|
|
1134
|
+
],
|
|
1135
|
+
[
|
|
1136
|
+
"IQ",
|
|
1137
|
+
"Iraq",
|
|
1138
|
+
"964"
|
|
1139
|
+
],
|
|
1140
|
+
[
|
|
1141
|
+
"IE",
|
|
1142
|
+
"Ireland",
|
|
1143
|
+
"353"
|
|
1144
|
+
],
|
|
1145
|
+
[
|
|
1146
|
+
"IM",
|
|
1147
|
+
"Isle of Man",
|
|
1148
|
+
"44"
|
|
1149
|
+
],
|
|
1150
|
+
[
|
|
1151
|
+
"IL",
|
|
1152
|
+
"Israel",
|
|
1153
|
+
"972"
|
|
1154
|
+
],
|
|
1155
|
+
[
|
|
1156
|
+
"IT",
|
|
1157
|
+
"Italy",
|
|
1158
|
+
"39"
|
|
1159
|
+
],
|
|
1160
|
+
[
|
|
1161
|
+
"JM",
|
|
1162
|
+
"Jamaica",
|
|
1163
|
+
"1"
|
|
1164
|
+
],
|
|
1165
|
+
[
|
|
1166
|
+
"JP",
|
|
1167
|
+
"Japan",
|
|
1168
|
+
"81"
|
|
1169
|
+
],
|
|
1170
|
+
[
|
|
1171
|
+
"JE",
|
|
1172
|
+
"Jersey",
|
|
1173
|
+
"44"
|
|
1174
|
+
],
|
|
1175
|
+
[
|
|
1176
|
+
"JO",
|
|
1177
|
+
"Jordan",
|
|
1178
|
+
"962"
|
|
1179
|
+
],
|
|
1180
|
+
[
|
|
1181
|
+
"KZ",
|
|
1182
|
+
"Kazakhstan",
|
|
1183
|
+
"7"
|
|
1184
|
+
],
|
|
1185
|
+
[
|
|
1186
|
+
"KE",
|
|
1187
|
+
"Kenya",
|
|
1188
|
+
"254"
|
|
1189
|
+
],
|
|
1190
|
+
[
|
|
1191
|
+
"KI",
|
|
1192
|
+
"Kiribati",
|
|
1193
|
+
"686"
|
|
1194
|
+
],
|
|
1195
|
+
[
|
|
1196
|
+
"XK",
|
|
1197
|
+
"Kosovo",
|
|
1198
|
+
"383"
|
|
1199
|
+
],
|
|
1200
|
+
[
|
|
1201
|
+
"KW",
|
|
1202
|
+
"Kuwait",
|
|
1203
|
+
"965"
|
|
1204
|
+
],
|
|
1205
|
+
[
|
|
1206
|
+
"KG",
|
|
1207
|
+
"Kyrgyzstan",
|
|
1208
|
+
"996"
|
|
1209
|
+
],
|
|
1210
|
+
[
|
|
1211
|
+
"LA",
|
|
1212
|
+
"Laos",
|
|
1213
|
+
"856"
|
|
1214
|
+
],
|
|
1215
|
+
[
|
|
1216
|
+
"LV",
|
|
1217
|
+
"Latvia",
|
|
1218
|
+
"371"
|
|
1219
|
+
],
|
|
1220
|
+
[
|
|
1221
|
+
"LB",
|
|
1222
|
+
"Lebanon",
|
|
1223
|
+
"961"
|
|
1224
|
+
],
|
|
1225
|
+
[
|
|
1226
|
+
"LS",
|
|
1227
|
+
"Lesotho",
|
|
1228
|
+
"266"
|
|
1229
|
+
],
|
|
1230
|
+
[
|
|
1231
|
+
"LR",
|
|
1232
|
+
"Liberia",
|
|
1233
|
+
"231"
|
|
1234
|
+
],
|
|
1235
|
+
[
|
|
1236
|
+
"LY",
|
|
1237
|
+
"Libya",
|
|
1238
|
+
"218"
|
|
1239
|
+
],
|
|
1240
|
+
[
|
|
1241
|
+
"LI",
|
|
1242
|
+
"Liechtenstein",
|
|
1243
|
+
"423"
|
|
1244
|
+
],
|
|
1245
|
+
[
|
|
1246
|
+
"LT",
|
|
1247
|
+
"Lithuania",
|
|
1248
|
+
"370"
|
|
1249
|
+
],
|
|
1250
|
+
[
|
|
1251
|
+
"LU",
|
|
1252
|
+
"Luxembourg",
|
|
1253
|
+
"352"
|
|
1254
|
+
],
|
|
1255
|
+
[
|
|
1256
|
+
"MO",
|
|
1257
|
+
"Macao SAR China",
|
|
1258
|
+
"853"
|
|
1259
|
+
],
|
|
1260
|
+
[
|
|
1261
|
+
"MG",
|
|
1262
|
+
"Madagascar",
|
|
1263
|
+
"261"
|
|
1264
|
+
],
|
|
1265
|
+
[
|
|
1266
|
+
"MW",
|
|
1267
|
+
"Malawi",
|
|
1268
|
+
"265"
|
|
1269
|
+
],
|
|
1270
|
+
[
|
|
1271
|
+
"MY",
|
|
1272
|
+
"Malaysia",
|
|
1273
|
+
"60"
|
|
1274
|
+
],
|
|
1275
|
+
[
|
|
1276
|
+
"MV",
|
|
1277
|
+
"Maldives",
|
|
1278
|
+
"960"
|
|
1279
|
+
],
|
|
1280
|
+
[
|
|
1281
|
+
"ML",
|
|
1282
|
+
"Mali",
|
|
1283
|
+
"223"
|
|
1284
|
+
],
|
|
1285
|
+
[
|
|
1286
|
+
"MT",
|
|
1287
|
+
"Malta",
|
|
1288
|
+
"356"
|
|
1289
|
+
],
|
|
1290
|
+
[
|
|
1291
|
+
"MH",
|
|
1292
|
+
"Marshall Islands",
|
|
1293
|
+
"692"
|
|
1294
|
+
],
|
|
1295
|
+
[
|
|
1296
|
+
"MQ",
|
|
1297
|
+
"Martinique",
|
|
1298
|
+
"596"
|
|
1299
|
+
],
|
|
1300
|
+
[
|
|
1301
|
+
"MR",
|
|
1302
|
+
"Mauritania",
|
|
1303
|
+
"222"
|
|
1304
|
+
],
|
|
1305
|
+
[
|
|
1306
|
+
"MU",
|
|
1307
|
+
"Mauritius",
|
|
1308
|
+
"230"
|
|
1309
|
+
],
|
|
1310
|
+
[
|
|
1311
|
+
"YT",
|
|
1312
|
+
"Mayotte",
|
|
1313
|
+
"262"
|
|
1314
|
+
],
|
|
1315
|
+
[
|
|
1316
|
+
"MX",
|
|
1317
|
+
"Mexico",
|
|
1318
|
+
"52"
|
|
1319
|
+
],
|
|
1320
|
+
[
|
|
1321
|
+
"FM",
|
|
1322
|
+
"Micronesia",
|
|
1323
|
+
"691"
|
|
1324
|
+
],
|
|
1325
|
+
[
|
|
1326
|
+
"MD",
|
|
1327
|
+
"Moldova",
|
|
1328
|
+
"373"
|
|
1329
|
+
],
|
|
1330
|
+
[
|
|
1331
|
+
"MC",
|
|
1332
|
+
"Monaco",
|
|
1333
|
+
"377"
|
|
1334
|
+
],
|
|
1335
|
+
[
|
|
1336
|
+
"MN",
|
|
1337
|
+
"Mongolia",
|
|
1338
|
+
"976"
|
|
1339
|
+
],
|
|
1340
|
+
[
|
|
1341
|
+
"ME",
|
|
1342
|
+
"Montenegro",
|
|
1343
|
+
"382"
|
|
1344
|
+
],
|
|
1345
|
+
[
|
|
1346
|
+
"MS",
|
|
1347
|
+
"Montserrat",
|
|
1348
|
+
"1"
|
|
1349
|
+
],
|
|
1350
|
+
[
|
|
1351
|
+
"MA",
|
|
1352
|
+
"Morocco",
|
|
1353
|
+
"212"
|
|
1354
|
+
],
|
|
1355
|
+
[
|
|
1356
|
+
"MZ",
|
|
1357
|
+
"Mozambique",
|
|
1358
|
+
"258"
|
|
1359
|
+
],
|
|
1360
|
+
[
|
|
1361
|
+
"MM",
|
|
1362
|
+
"Myanmar (Burma)",
|
|
1363
|
+
"95"
|
|
1364
|
+
],
|
|
1365
|
+
[
|
|
1366
|
+
"NA",
|
|
1367
|
+
"Namibia",
|
|
1368
|
+
"264"
|
|
1369
|
+
],
|
|
1370
|
+
[
|
|
1371
|
+
"NR",
|
|
1372
|
+
"Nauru",
|
|
1373
|
+
"674"
|
|
1374
|
+
],
|
|
1375
|
+
[
|
|
1376
|
+
"NP",
|
|
1377
|
+
"Nepal",
|
|
1378
|
+
"977"
|
|
1379
|
+
],
|
|
1380
|
+
[
|
|
1381
|
+
"NL",
|
|
1382
|
+
"Netherlands",
|
|
1383
|
+
"31"
|
|
1384
|
+
],
|
|
1385
|
+
[
|
|
1386
|
+
"NC",
|
|
1387
|
+
"New Caledonia",
|
|
1388
|
+
"687"
|
|
1389
|
+
],
|
|
1390
|
+
[
|
|
1391
|
+
"NZ",
|
|
1392
|
+
"New Zealand",
|
|
1393
|
+
"64"
|
|
1394
|
+
],
|
|
1395
|
+
[
|
|
1396
|
+
"NI",
|
|
1397
|
+
"Nicaragua",
|
|
1398
|
+
"505"
|
|
1399
|
+
],
|
|
1400
|
+
[
|
|
1401
|
+
"NE",
|
|
1402
|
+
"Niger",
|
|
1403
|
+
"227"
|
|
1404
|
+
],
|
|
1405
|
+
[
|
|
1406
|
+
"NG",
|
|
1407
|
+
"Nigeria",
|
|
1408
|
+
"234"
|
|
1409
|
+
],
|
|
1410
|
+
[
|
|
1411
|
+
"NU",
|
|
1412
|
+
"Niue",
|
|
1413
|
+
"683"
|
|
1414
|
+
],
|
|
1415
|
+
[
|
|
1416
|
+
"NF",
|
|
1417
|
+
"Norfolk Island",
|
|
1418
|
+
"672"
|
|
1419
|
+
],
|
|
1420
|
+
[
|
|
1421
|
+
"KP",
|
|
1422
|
+
"North Korea",
|
|
1423
|
+
"850"
|
|
1424
|
+
],
|
|
1425
|
+
[
|
|
1426
|
+
"MK",
|
|
1427
|
+
"North Macedonia",
|
|
1428
|
+
"389"
|
|
1429
|
+
],
|
|
1430
|
+
[
|
|
1431
|
+
"MP",
|
|
1432
|
+
"Northern Mariana Islands",
|
|
1433
|
+
"1"
|
|
1434
|
+
],
|
|
1435
|
+
[
|
|
1436
|
+
"NO",
|
|
1437
|
+
"Norway",
|
|
1438
|
+
"47"
|
|
1439
|
+
],
|
|
1440
|
+
[
|
|
1441
|
+
"OM",
|
|
1442
|
+
"Oman",
|
|
1443
|
+
"968"
|
|
1444
|
+
],
|
|
1445
|
+
[
|
|
1446
|
+
"PK",
|
|
1447
|
+
"Pakistan",
|
|
1448
|
+
"92"
|
|
1449
|
+
],
|
|
1450
|
+
[
|
|
1451
|
+
"PW",
|
|
1452
|
+
"Palau",
|
|
1453
|
+
"680"
|
|
1454
|
+
],
|
|
1455
|
+
[
|
|
1456
|
+
"PS",
|
|
1457
|
+
"Palestinian Territories",
|
|
1458
|
+
"970"
|
|
1459
|
+
],
|
|
1460
|
+
[
|
|
1461
|
+
"PA",
|
|
1462
|
+
"Panama",
|
|
1463
|
+
"507"
|
|
1464
|
+
],
|
|
1465
|
+
[
|
|
1466
|
+
"PG",
|
|
1467
|
+
"Papua New Guinea",
|
|
1468
|
+
"675"
|
|
1469
|
+
],
|
|
1470
|
+
[
|
|
1471
|
+
"PY",
|
|
1472
|
+
"Paraguay",
|
|
1473
|
+
"595"
|
|
1474
|
+
],
|
|
1475
|
+
[
|
|
1476
|
+
"PE",
|
|
1477
|
+
"Peru",
|
|
1478
|
+
"51"
|
|
1479
|
+
],
|
|
1480
|
+
[
|
|
1481
|
+
"PH",
|
|
1482
|
+
"Philippines",
|
|
1483
|
+
"63"
|
|
1484
|
+
],
|
|
1485
|
+
[
|
|
1486
|
+
"PL",
|
|
1487
|
+
"Poland",
|
|
1488
|
+
"48"
|
|
1489
|
+
],
|
|
1490
|
+
[
|
|
1491
|
+
"PT",
|
|
1492
|
+
"Portugal",
|
|
1493
|
+
"351"
|
|
1494
|
+
],
|
|
1495
|
+
[
|
|
1496
|
+
"PR",
|
|
1497
|
+
"Puerto Rico",
|
|
1498
|
+
"1"
|
|
1499
|
+
],
|
|
1500
|
+
[
|
|
1501
|
+
"QA",
|
|
1502
|
+
"Qatar",
|
|
1503
|
+
"974"
|
|
1504
|
+
],
|
|
1505
|
+
[
|
|
1506
|
+
"RE",
|
|
1507
|
+
"Réunion",
|
|
1508
|
+
"262"
|
|
1509
|
+
],
|
|
1510
|
+
[
|
|
1511
|
+
"RO",
|
|
1512
|
+
"Romania",
|
|
1513
|
+
"40"
|
|
1514
|
+
],
|
|
1515
|
+
[
|
|
1516
|
+
"RU",
|
|
1517
|
+
"Russia",
|
|
1518
|
+
"7"
|
|
1519
|
+
],
|
|
1520
|
+
[
|
|
1521
|
+
"RW",
|
|
1522
|
+
"Rwanda",
|
|
1523
|
+
"250"
|
|
1524
|
+
],
|
|
1525
|
+
[
|
|
1526
|
+
"WS",
|
|
1527
|
+
"Samoa",
|
|
1528
|
+
"685"
|
|
1529
|
+
],
|
|
1530
|
+
[
|
|
1531
|
+
"SM",
|
|
1532
|
+
"San Marino",
|
|
1533
|
+
"378"
|
|
1534
|
+
],
|
|
1535
|
+
[
|
|
1536
|
+
"ST",
|
|
1537
|
+
"São Tomé & Príncipe",
|
|
1538
|
+
"239"
|
|
1539
|
+
],
|
|
1540
|
+
[
|
|
1541
|
+
"SA",
|
|
1542
|
+
"Saudi Arabia",
|
|
1543
|
+
"966"
|
|
1544
|
+
],
|
|
1545
|
+
[
|
|
1546
|
+
"SN",
|
|
1547
|
+
"Senegal",
|
|
1548
|
+
"221"
|
|
1549
|
+
],
|
|
1550
|
+
[
|
|
1551
|
+
"RS",
|
|
1552
|
+
"Serbia",
|
|
1553
|
+
"381"
|
|
1554
|
+
],
|
|
1555
|
+
[
|
|
1556
|
+
"SC",
|
|
1557
|
+
"Seychelles",
|
|
1558
|
+
"248"
|
|
1559
|
+
],
|
|
1560
|
+
[
|
|
1561
|
+
"SL",
|
|
1562
|
+
"Sierra Leone",
|
|
1563
|
+
"232"
|
|
1564
|
+
],
|
|
1565
|
+
[
|
|
1566
|
+
"SG",
|
|
1567
|
+
"Singapore",
|
|
1568
|
+
"65"
|
|
1569
|
+
],
|
|
1570
|
+
[
|
|
1571
|
+
"SX",
|
|
1572
|
+
"Sint Maarten",
|
|
1573
|
+
"1"
|
|
1574
|
+
],
|
|
1575
|
+
[
|
|
1576
|
+
"SK",
|
|
1577
|
+
"Slovakia",
|
|
1578
|
+
"421"
|
|
1579
|
+
],
|
|
1580
|
+
[
|
|
1581
|
+
"SI",
|
|
1582
|
+
"Slovenia",
|
|
1583
|
+
"386"
|
|
1584
|
+
],
|
|
1585
|
+
[
|
|
1586
|
+
"SB",
|
|
1587
|
+
"Solomon Islands",
|
|
1588
|
+
"677"
|
|
1589
|
+
],
|
|
1590
|
+
[
|
|
1591
|
+
"SO",
|
|
1592
|
+
"Somalia",
|
|
1593
|
+
"252"
|
|
1594
|
+
],
|
|
1595
|
+
[
|
|
1596
|
+
"ZA",
|
|
1597
|
+
"South Africa",
|
|
1598
|
+
"27"
|
|
1599
|
+
],
|
|
1600
|
+
[
|
|
1601
|
+
"KR",
|
|
1602
|
+
"South Korea",
|
|
1603
|
+
"82"
|
|
597
1604
|
],
|
|
598
1605
|
[
|
|
599
|
-
"
|
|
600
|
-
"
|
|
601
|
-
"
|
|
1606
|
+
"SS",
|
|
1607
|
+
"South Sudan",
|
|
1608
|
+
"211"
|
|
602
1609
|
],
|
|
603
1610
|
[
|
|
604
|
-
"
|
|
605
|
-
"
|
|
606
|
-
"
|
|
1611
|
+
"ES",
|
|
1612
|
+
"Spain",
|
|
1613
|
+
"34"
|
|
607
1614
|
],
|
|
608
1615
|
[
|
|
609
|
-
"
|
|
610
|
-
"
|
|
611
|
-
"
|
|
1616
|
+
"LK",
|
|
1617
|
+
"Sri Lanka",
|
|
1618
|
+
"94"
|
|
612
1619
|
],
|
|
613
1620
|
[
|
|
614
|
-
"
|
|
615
|
-
"
|
|
616
|
-
"
|
|
1621
|
+
"BL",
|
|
1622
|
+
"St. Barthélemy",
|
|
1623
|
+
"590"
|
|
617
1624
|
],
|
|
618
1625
|
[
|
|
619
|
-
"
|
|
620
|
-
"
|
|
621
|
-
"
|
|
1626
|
+
"SH",
|
|
1627
|
+
"St. Helena",
|
|
1628
|
+
"290"
|
|
622
1629
|
],
|
|
623
1630
|
[
|
|
624
|
-
"
|
|
625
|
-
"
|
|
1631
|
+
"KN",
|
|
1632
|
+
"St. Kitts & Nevis",
|
|
626
1633
|
"1"
|
|
627
1634
|
],
|
|
628
1635
|
[
|
|
629
|
-
"
|
|
630
|
-
"
|
|
631
|
-
"
|
|
1636
|
+
"LC",
|
|
1637
|
+
"St. Lucia",
|
|
1638
|
+
"1"
|
|
632
1639
|
],
|
|
633
1640
|
[
|
|
634
|
-
"
|
|
635
|
-
"
|
|
636
|
-
"
|
|
1641
|
+
"MF",
|
|
1642
|
+
"St. Martin",
|
|
1643
|
+
"590"
|
|
637
1644
|
],
|
|
638
1645
|
[
|
|
639
|
-
"
|
|
640
|
-
"
|
|
641
|
-
"
|
|
1646
|
+
"PM",
|
|
1647
|
+
"St. Pierre & Miquelon",
|
|
1648
|
+
"508"
|
|
642
1649
|
],
|
|
643
1650
|
[
|
|
644
|
-
"
|
|
645
|
-
"
|
|
646
|
-
"
|
|
1651
|
+
"VC",
|
|
1652
|
+
"St. Vincent & Grenadines",
|
|
1653
|
+
"1"
|
|
647
1654
|
],
|
|
648
1655
|
[
|
|
649
|
-
"
|
|
650
|
-
"
|
|
651
|
-
"
|
|
1656
|
+
"SD",
|
|
1657
|
+
"Sudan",
|
|
1658
|
+
"249"
|
|
652
1659
|
],
|
|
653
1660
|
[
|
|
654
|
-
"
|
|
655
|
-
"
|
|
656
|
-
"
|
|
1661
|
+
"SR",
|
|
1662
|
+
"Suriname",
|
|
1663
|
+
"597"
|
|
1664
|
+
],
|
|
1665
|
+
[
|
|
1666
|
+
"SJ",
|
|
1667
|
+
"Svalbard & Jan Mayen",
|
|
1668
|
+
"47"
|
|
657
1669
|
],
|
|
658
1670
|
[
|
|
659
1671
|
"SE",
|
|
@@ -661,155 +1673,180 @@ var re = class extends HTMLElement {
|
|
|
661
1673
|
"46"
|
|
662
1674
|
],
|
|
663
1675
|
[
|
|
664
|
-
"
|
|
665
|
-
"
|
|
666
|
-
"
|
|
1676
|
+
"CH",
|
|
1677
|
+
"Switzerland",
|
|
1678
|
+
"41"
|
|
667
1679
|
],
|
|
668
1680
|
[
|
|
669
|
-
"
|
|
670
|
-
"
|
|
671
|
-
"
|
|
1681
|
+
"SY",
|
|
1682
|
+
"Syria",
|
|
1683
|
+
"963"
|
|
672
1684
|
],
|
|
673
1685
|
[
|
|
674
|
-
"
|
|
675
|
-
"
|
|
676
|
-
"
|
|
1686
|
+
"TW",
|
|
1687
|
+
"Taiwan",
|
|
1688
|
+
"886"
|
|
677
1689
|
],
|
|
678
1690
|
[
|
|
679
|
-
"
|
|
680
|
-
"
|
|
681
|
-
"
|
|
1691
|
+
"TJ",
|
|
1692
|
+
"Tajikistan",
|
|
1693
|
+
"992"
|
|
682
1694
|
],
|
|
683
1695
|
[
|
|
684
|
-
"
|
|
685
|
-
"
|
|
686
|
-
"
|
|
1696
|
+
"TZ",
|
|
1697
|
+
"Tanzania",
|
|
1698
|
+
"255"
|
|
687
1699
|
],
|
|
688
1700
|
[
|
|
689
|
-
"
|
|
690
|
-
"
|
|
691
|
-
"
|
|
1701
|
+
"TH",
|
|
1702
|
+
"Thailand",
|
|
1703
|
+
"66"
|
|
692
1704
|
],
|
|
693
1705
|
[
|
|
694
|
-
"
|
|
695
|
-
"
|
|
696
|
-
"
|
|
1706
|
+
"TL",
|
|
1707
|
+
"Timor-Leste",
|
|
1708
|
+
"670"
|
|
697
1709
|
],
|
|
698
1710
|
[
|
|
699
|
-
"
|
|
700
|
-
"
|
|
701
|
-
"
|
|
1711
|
+
"TG",
|
|
1712
|
+
"Togo",
|
|
1713
|
+
"228"
|
|
702
1714
|
],
|
|
703
1715
|
[
|
|
704
|
-
"
|
|
705
|
-
"
|
|
706
|
-
"
|
|
1716
|
+
"TK",
|
|
1717
|
+
"Tokelau",
|
|
1718
|
+
"690"
|
|
707
1719
|
],
|
|
708
1720
|
[
|
|
709
|
-
"
|
|
710
|
-
"
|
|
711
|
-
"
|
|
1721
|
+
"TO",
|
|
1722
|
+
"Tonga",
|
|
1723
|
+
"676"
|
|
712
1724
|
],
|
|
713
1725
|
[
|
|
714
|
-
"
|
|
715
|
-
"
|
|
716
|
-
"
|
|
1726
|
+
"TT",
|
|
1727
|
+
"Trinidad & Tobago",
|
|
1728
|
+
"1"
|
|
717
1729
|
],
|
|
718
1730
|
[
|
|
719
|
-
"
|
|
720
|
-
"
|
|
721
|
-
"
|
|
1731
|
+
"TA",
|
|
1732
|
+
"Tristan da Cunha",
|
|
1733
|
+
"290"
|
|
722
1734
|
],
|
|
723
1735
|
[
|
|
724
|
-
"
|
|
725
|
-
"
|
|
726
|
-
"
|
|
1736
|
+
"TN",
|
|
1737
|
+
"Tunisia",
|
|
1738
|
+
"216"
|
|
727
1739
|
],
|
|
728
1740
|
[
|
|
729
|
-
"
|
|
730
|
-
"
|
|
731
|
-
"
|
|
1741
|
+
"TR",
|
|
1742
|
+
"Türkiye",
|
|
1743
|
+
"90"
|
|
732
1744
|
],
|
|
733
1745
|
[
|
|
734
|
-
"
|
|
735
|
-
"
|
|
736
|
-
"
|
|
1746
|
+
"TM",
|
|
1747
|
+
"Turkmenistan",
|
|
1748
|
+
"993"
|
|
737
1749
|
],
|
|
738
1750
|
[
|
|
739
|
-
"
|
|
740
|
-
"
|
|
741
|
-
"
|
|
1751
|
+
"TC",
|
|
1752
|
+
"Turks & Caicos Islands",
|
|
1753
|
+
"1"
|
|
742
1754
|
],
|
|
743
1755
|
[
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
"
|
|
1756
|
+
"TV",
|
|
1757
|
+
"Tuvalu",
|
|
1758
|
+
"688"
|
|
747
1759
|
],
|
|
748
1760
|
[
|
|
749
|
-
"
|
|
750
|
-
"
|
|
751
|
-
"
|
|
1761
|
+
"VI",
|
|
1762
|
+
"U.S. Virgin Islands",
|
|
1763
|
+
"1"
|
|
752
1764
|
],
|
|
753
1765
|
[
|
|
754
|
-
"
|
|
755
|
-
"
|
|
756
|
-
"
|
|
1766
|
+
"UG",
|
|
1767
|
+
"Uganda",
|
|
1768
|
+
"256"
|
|
757
1769
|
],
|
|
758
1770
|
[
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
"
|
|
1771
|
+
"UA",
|
|
1772
|
+
"Ukraine",
|
|
1773
|
+
"380"
|
|
762
1774
|
],
|
|
763
1775
|
[
|
|
764
|
-
"
|
|
765
|
-
"
|
|
766
|
-
"
|
|
1776
|
+
"AE",
|
|
1777
|
+
"United Arab Emirates",
|
|
1778
|
+
"971"
|
|
767
1779
|
],
|
|
768
1780
|
[
|
|
769
|
-
"
|
|
770
|
-
"
|
|
771
|
-
"
|
|
1781
|
+
"GB",
|
|
1782
|
+
"United Kingdom",
|
|
1783
|
+
"44"
|
|
772
1784
|
],
|
|
773
1785
|
[
|
|
774
|
-
"
|
|
775
|
-
"
|
|
776
|
-
"
|
|
1786
|
+
"US",
|
|
1787
|
+
"United States",
|
|
1788
|
+
"1"
|
|
777
1789
|
],
|
|
778
1790
|
[
|
|
779
|
-
"
|
|
780
|
-
"
|
|
781
|
-
"
|
|
1791
|
+
"UY",
|
|
1792
|
+
"Uruguay",
|
|
1793
|
+
"598"
|
|
782
1794
|
],
|
|
783
1795
|
[
|
|
784
|
-
"
|
|
785
|
-
"
|
|
786
|
-
"
|
|
1796
|
+
"UZ",
|
|
1797
|
+
"Uzbekistan",
|
|
1798
|
+
"998"
|
|
787
1799
|
],
|
|
788
1800
|
[
|
|
789
|
-
"
|
|
790
|
-
"
|
|
791
|
-
"
|
|
1801
|
+
"VU",
|
|
1802
|
+
"Vanuatu",
|
|
1803
|
+
"678"
|
|
792
1804
|
],
|
|
793
1805
|
[
|
|
794
|
-
"
|
|
795
|
-
"
|
|
796
|
-
"
|
|
1806
|
+
"VA",
|
|
1807
|
+
"Vatican City",
|
|
1808
|
+
"39"
|
|
797
1809
|
],
|
|
798
1810
|
[
|
|
799
|
-
"
|
|
800
|
-
"
|
|
801
|
-
"
|
|
1811
|
+
"VE",
|
|
1812
|
+
"Venezuela",
|
|
1813
|
+
"58"
|
|
802
1814
|
],
|
|
803
1815
|
[
|
|
804
|
-
"
|
|
805
|
-
"
|
|
806
|
-
"
|
|
1816
|
+
"VN",
|
|
1817
|
+
"Vietnam",
|
|
1818
|
+
"84"
|
|
1819
|
+
],
|
|
1820
|
+
[
|
|
1821
|
+
"WF",
|
|
1822
|
+
"Wallis & Futuna",
|
|
1823
|
+
"681"
|
|
1824
|
+
],
|
|
1825
|
+
[
|
|
1826
|
+
"EH",
|
|
1827
|
+
"Western Sahara",
|
|
1828
|
+
"212"
|
|
1829
|
+
],
|
|
1830
|
+
[
|
|
1831
|
+
"YE",
|
|
1832
|
+
"Yemen",
|
|
1833
|
+
"967"
|
|
1834
|
+
],
|
|
1835
|
+
[
|
|
1836
|
+
"ZM",
|
|
1837
|
+
"Zambia",
|
|
1838
|
+
"260"
|
|
1839
|
+
],
|
|
1840
|
+
[
|
|
1841
|
+
"ZW",
|
|
1842
|
+
"Zimbabwe",
|
|
1843
|
+
"263"
|
|
807
1844
|
]
|
|
808
|
-
], R = (e) =>
|
|
1845
|
+
], R = (e) => (L.find((t) => t[0] === e) || [
|
|
809
1846
|
"",
|
|
810
1847
|
"",
|
|
811
1848
|
""
|
|
812
|
-
])[2], de = class extends HTMLElement {
|
|
1849
|
+
])[2], z = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, de = class extends HTMLElement {
|
|
813
1850
|
static formAssociated = !0;
|
|
814
1851
|
static get observedAttributes() {
|
|
815
1852
|
return [
|
|
@@ -829,7 +1866,7 @@ var re = class extends HTMLElement {
|
|
|
829
1866
|
this._rendered && (e === "country" && (this._country = n || "IN"), this.render());
|
|
830
1867
|
}
|
|
831
1868
|
get value() {
|
|
832
|
-
return `+${
|
|
1869
|
+
return `+${R(this._country)}${this._national}`;
|
|
833
1870
|
}
|
|
834
1871
|
set value(e) {
|
|
835
1872
|
this._national = String(e ?? "").replace(/[^0-9]/g, ""), this._commit();
|
|
@@ -840,14 +1877,14 @@ var re = class extends HTMLElement {
|
|
|
840
1877
|
render() {
|
|
841
1878
|
let e = this.getAttribute("placeholder") || "Enter phone number";
|
|
842
1879
|
this._country = this.getAttribute("country") || this._country;
|
|
843
|
-
let t = L.map(([e, t, n]) => `<button type="button" role="option" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}"><span class="
|
|
1880
|
+
let t = L.map(([e, t, n]) => `<button type="button" role="option" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}"><span class="${z(e)}" aria-hidden="true"></span><span class="country-name-text">${t}<span class="country-code-text">+${n}</span></span></button>`).join("");
|
|
844
1881
|
this.innerHTML = `
|
|
845
1882
|
<div class="phone-input-wrap">
|
|
846
1883
|
<div class="phone-country-adornment">
|
|
847
1884
|
<button type="button" class="country-toggle" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
848
|
-
<span class="
|
|
1885
|
+
<span class="${z(this._country)}" data-flag aria-hidden="true"></span>
|
|
849
1886
|
<i class="bi bi-chevron-down phone-chevron" aria-hidden="true"></i>
|
|
850
|
-
<span class="phone-dial" data-dial>+${
|
|
1887
|
+
<span class="phone-dial" data-dial>+${R(this._country)}</span>
|
|
851
1888
|
</button>
|
|
852
1889
|
<div class="country-dropdown-menu" role="listbox" hidden>
|
|
853
1890
|
<div class="dropdown-search-wrapper"><span class="dropdown-search-icon"><i class="bi bi-search" aria-hidden="true"></i></span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" /></div>
|
|
@@ -861,32 +1898,39 @@ var re = class extends HTMLElement {
|
|
|
861
1898
|
let e = this.querySelector(".country-toggle"), t = this.querySelector(".country-dropdown-menu"), n = this.querySelector(".dropdown-search-input"), r = this.querySelector(".country-list-scroll"), i = this.querySelector(".country-empty"), a = this.querySelector("input[type=tel]"), o = this.querySelector("[data-flag]"), s = this.querySelector("[data-dial]");
|
|
862
1899
|
if (!e || !t) return;
|
|
863
1900
|
let c = () => !t.hidden, l = () => {
|
|
864
|
-
t.
|
|
1901
|
+
let n = e.getBoundingClientRect(), r = t.offsetWidth || 320, i = t.offsetHeight || 320, a = window.innerHeight - n.bottom, o = a < i + 6 && n.top > a ? n.top - i - 6 : n.bottom + 6, s = Math.min(Math.max(8, n.left), Math.max(8, window.innerWidth - r - 8));
|
|
1902
|
+
t.style.top = `${Math.max(8, o)}px`, t.style.left = `${s}px`;
|
|
865
1903
|
}, u = () => {
|
|
1904
|
+
t.hidden = !1, e.setAttribute("aria-expanded", "true"), n.value = "", f(""), l(), n.focus();
|
|
1905
|
+
}, d = () => {
|
|
866
1906
|
t.hidden = !0, e.setAttribute("aria-expanded", "false");
|
|
867
|
-
}
|
|
1907
|
+
};
|
|
1908
|
+
this._reposition = () => {
|
|
1909
|
+
c() && l();
|
|
1910
|
+
}, window.addEventListener("scroll", this._reposition, !0), window.addEventListener("resize", this._reposition);
|
|
1911
|
+
let f = (e) => {
|
|
868
1912
|
let t = e.trim().toLowerCase(), n = 0;
|
|
869
1913
|
for (let e of r.querySelectorAll(".country-dropdown-item")) {
|
|
870
1914
|
let r = !t || e.textContent.toLowerCase().includes(t);
|
|
871
1915
|
e.hidden = !r, r && (n += 1);
|
|
872
1916
|
}
|
|
873
1917
|
i && (i.hidden = n > 0);
|
|
874
|
-
},
|
|
875
|
-
this._country = e, this.setAttribute("country", e), o && (o.
|
|
1918
|
+
}, p = (e) => {
|
|
1919
|
+
this._country = e, this.setAttribute("country", e), o && (o.className = z(e)), s && (s.textContent = `+${R(e)}`);
|
|
876
1920
|
for (let t of r.querySelectorAll(".country-dropdown-item")) t.classList.toggle("selected", t.dataset.iso === e);
|
|
877
|
-
|
|
1921
|
+
d(), this._commit();
|
|
878
1922
|
};
|
|
879
|
-
e.addEventListener("click", () => c() ?
|
|
1923
|
+
e.addEventListener("click", () => c() ? d() : u()), n.addEventListener("input", () => f(n.value)), r.addEventListener("click", (e) => {
|
|
880
1924
|
let t = e.target.closest(".country-dropdown-item");
|
|
881
|
-
t &&
|
|
1925
|
+
t && p(t.dataset.iso);
|
|
882
1926
|
}), a.addEventListener("input", () => {
|
|
883
1927
|
this._national = a.value.replace(/[^0-9]/g, ""), this._commit();
|
|
884
1928
|
}), this._onDocClick = (e) => {
|
|
885
|
-
c() && !this.contains(e.target) &&
|
|
1929
|
+
c() && !this.contains(e.target) && d();
|
|
886
1930
|
}, document.addEventListener("click", this._onDocClick), this._internals?.setFormValue(this.value);
|
|
887
1931
|
}
|
|
888
1932
|
disconnectedCallback() {
|
|
889
|
-
this._onDocClick && document.removeEventListener("click", this._onDocClick);
|
|
1933
|
+
this._reposition && (window.removeEventListener("scroll", this._reposition, !0), window.removeEventListener("resize", this._reposition)), this._onDocClick && document.removeEventListener("click", this._onDocClick);
|
|
890
1934
|
}
|
|
891
1935
|
}, B = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), fe = class extends HTMLElement {
|
|
892
1936
|
static formAssociated = !0;
|
|
@@ -921,14 +1965,20 @@ var re = class extends HTMLElement {
|
|
|
921
1965
|
get options() {
|
|
922
1966
|
return this._readOptions();
|
|
923
1967
|
}
|
|
924
|
-
|
|
925
|
-
|
|
1968
|
+
_snapshotDeclared() {
|
|
1969
|
+
if (this._declared) return;
|
|
1970
|
+
let e = [...this.querySelectorAll(":scope > wui-option")];
|
|
1971
|
+
e.length && (this._declared = e.map((e) => ({
|
|
926
1972
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
927
1973
|
label: e.innerHTML,
|
|
928
1974
|
selected: e.hasAttribute("selected")
|
|
929
|
-
}));
|
|
1975
|
+
})));
|
|
1976
|
+
}
|
|
1977
|
+
_readOptions() {
|
|
1978
|
+
return this._optionsProp ? this._optionsProp : (this._snapshotDeclared(), this._declared || []);
|
|
930
1979
|
}
|
|
931
1980
|
render() {
|
|
1981
|
+
this._snapshotDeclared();
|
|
932
1982
|
let e = this._readOptions(), t = this.hasAttribute("searchable"), n = this.getAttribute("placeholder") || "Select...", r = this.getAttribute("search-placeholder") || "Search...", i = e.find((e) => String(e.value) === String(this._value)) || e.find((e) => e.selected);
|
|
933
1983
|
i && (this._value = String(i.value)), this._internals?.setFormValue(this._value);
|
|
934
1984
|
let a = e.map((e) => {
|
|
@@ -1076,6 +2126,7 @@ function me({ value: e, onChange: r, options: i, loadOptions: a, placeholder: s
|
|
|
1076
2126
|
children: [p, g && /* @__PURE__ */ t(U, {})]
|
|
1077
2127
|
}),
|
|
1078
2128
|
/* @__PURE__ */ t("wui-autocomplete", {
|
|
2129
|
+
id: f,
|
|
1079
2130
|
ref: v,
|
|
1080
2131
|
name: f,
|
|
1081
2132
|
placeholder: s,
|
|
@@ -1113,12 +2164,14 @@ function ge({ name: e, src: n, className: r = "" }) {
|
|
|
1113
2164
|
})
|
|
1114
2165
|
}) : /* @__PURE__ */ t("span", {
|
|
1115
2166
|
className: i,
|
|
2167
|
+
role: "img",
|
|
2168
|
+
"aria-label": e,
|
|
1116
2169
|
children: he(e)
|
|
1117
2170
|
});
|
|
1118
2171
|
}
|
|
1119
2172
|
//#endregion
|
|
1120
2173
|
//#region src/components/AppBadge.jsx
|
|
1121
|
-
function _e({ children: e,
|
|
2174
|
+
function _e({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
|
|
1122
2175
|
return /* @__PURE__ */ t(d, {
|
|
1123
2176
|
bg: !1,
|
|
1124
2177
|
className: [
|
|
@@ -1161,12 +2214,12 @@ function W({ children: e, variant: r = "primary", size: i = "md", type: a = "but
|
|
|
1161
2214
|
}
|
|
1162
2215
|
//#endregion
|
|
1163
2216
|
//#region src/components/AppCard.jsx
|
|
1164
|
-
function ye({ title: r, titleClassName: i = "", header: a, headerExtra: o, headerActions: s, children: c, className: l = "", bodyClassName: u = "", headerClassName: d = "", body: f = !0,
|
|
1165
|
-
let
|
|
2217
|
+
function ye({ title: r, titleClassName: i = "", header: a, headerExtra: o, headerActions: s, children: c, className: l = "", bodyClassName: u = "", headerClassName: d = "", body: f = !0, lifted: m = !1, ...h }) {
|
|
2218
|
+
let g = a != null || r != null || o != null || s != null;
|
|
1166
2219
|
return /* @__PURE__ */ n(p, {
|
|
1167
|
-
className: l || void 0,
|
|
1168
|
-
...
|
|
1169
|
-
children: [
|
|
2220
|
+
className: [m ? "card-lifted" : "", l].filter(Boolean).join(" ") || void 0,
|
|
2221
|
+
...h,
|
|
2222
|
+
children: [g && /* @__PURE__ */ t(p.Header, {
|
|
1170
2223
|
className: d || void 0,
|
|
1171
2224
|
children: a ?? /* @__PURE__ */ n(e, { children: [
|
|
1172
2225
|
r != null && /* @__PURE__ */ t(p.Title, {
|
|
@@ -1185,13 +2238,22 @@ function ye({ title: r, titleClassName: i = "", header: a, headerExtra: o, heade
|
|
|
1185
2238
|
}
|
|
1186
2239
|
//#endregion
|
|
1187
2240
|
//#region src/components/AppCheckbox.jsx
|
|
1188
|
-
var be = i(function({ label: e, className:
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
2241
|
+
var be = i(function({ label: e, id: r, name: i, className: a = "", ...o }, c) {
|
|
2242
|
+
let l = s(), u = r || i || l;
|
|
2243
|
+
return /* @__PURE__ */ n("div", {
|
|
2244
|
+
className: `form-check${a ? ` ${a}` : ""}`,
|
|
2245
|
+
children: [/* @__PURE__ */ t("input", {
|
|
2246
|
+
type: "checkbox",
|
|
2247
|
+
className: "form-check-input",
|
|
2248
|
+
id: u,
|
|
2249
|
+
name: i,
|
|
2250
|
+
ref: c,
|
|
2251
|
+
...o
|
|
2252
|
+
}), e != null && /* @__PURE__ */ t("label", {
|
|
2253
|
+
className: "form-check-label",
|
|
2254
|
+
htmlFor: u,
|
|
2255
|
+
children: e
|
|
2256
|
+
})]
|
|
1195
2257
|
});
|
|
1196
2258
|
});
|
|
1197
2259
|
//#endregion
|
|
@@ -1249,48 +2311,48 @@ function xe({ label: r, children: i, tone: a = "neutral", size: o = "md", leadin
|
|
|
1249
2311
|
}
|
|
1250
2312
|
//#endregion
|
|
1251
2313
|
//#region src/components/AppChoiceCard.jsx
|
|
1252
|
-
function Se({ name: r,
|
|
2314
|
+
function Se({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon: c, iconNode: l, iconSize: u = 18, image: d, imageAlt: f = "", children: p, title: m, description: h, checkIcon: g = "check", checkSize: _ = 12, checkVariant: v, className: y = "" }) {
|
|
1253
2315
|
return /* @__PURE__ */ n("label", {
|
|
1254
|
-
className: `struct-card${
|
|
2316
|
+
className: `struct-card${d ? " struct-card-img-card" : ""}${o ? " checked" : ""}${y ? ` ${y}` : ""}`,
|
|
1255
2317
|
children: [
|
|
1256
2318
|
/* @__PURE__ */ t("input", {
|
|
1257
|
-
type: "radio",
|
|
2319
|
+
type: i ? "checkbox" : "radio",
|
|
1258
2320
|
name: r,
|
|
1259
|
-
value:
|
|
2321
|
+
value: a,
|
|
1260
2322
|
className: "struct-card-input",
|
|
1261
|
-
checked:
|
|
1262
|
-
onChange:
|
|
2323
|
+
checked: o,
|
|
2324
|
+
onChange: s
|
|
1263
2325
|
}),
|
|
1264
|
-
|
|
2326
|
+
d ? /* @__PURE__ */ t("span", {
|
|
1265
2327
|
className: "struct-card-media",
|
|
1266
2328
|
children: /* @__PURE__ */ t("img", {
|
|
1267
2329
|
className: "struct-card-img",
|
|
1268
|
-
src:
|
|
1269
|
-
alt:
|
|
2330
|
+
src: d,
|
|
2331
|
+
alt: f
|
|
1270
2332
|
})
|
|
1271
|
-
}) :
|
|
2333
|
+
}) : l || c ? /* @__PURE__ */ t("span", {
|
|
1272
2334
|
className: "struct-card-ic",
|
|
1273
|
-
children:
|
|
1274
|
-
name:
|
|
1275
|
-
size:
|
|
2335
|
+
children: l || /* @__PURE__ */ t(A, {
|
|
2336
|
+
name: c,
|
|
2337
|
+
size: u
|
|
1276
2338
|
})
|
|
1277
2339
|
}) : null,
|
|
1278
2340
|
/* @__PURE__ */ t("span", {
|
|
1279
2341
|
className: "struct-card-body",
|
|
1280
|
-
children:
|
|
2342
|
+
children: p || /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
1281
2343
|
className: "struct-card-title",
|
|
1282
|
-
children: p
|
|
1283
|
-
}), m && /* @__PURE__ */ t("span", {
|
|
1284
|
-
className: "struct-card-desc",
|
|
1285
2344
|
children: m
|
|
2345
|
+
}), h && /* @__PURE__ */ t("span", {
|
|
2346
|
+
className: "struct-card-desc",
|
|
2347
|
+
children: h
|
|
1286
2348
|
})] })
|
|
1287
2349
|
}),
|
|
1288
2350
|
/* @__PURE__ */ t("span", {
|
|
1289
2351
|
className: "struct-card-check",
|
|
1290
2352
|
children: /* @__PURE__ */ t(A, {
|
|
1291
|
-
name:
|
|
1292
|
-
size:
|
|
1293
|
-
variant:
|
|
2353
|
+
name: g,
|
|
2354
|
+
size: _,
|
|
2355
|
+
variant: v
|
|
1294
2356
|
})
|
|
1295
2357
|
})
|
|
1296
2358
|
]
|
|
@@ -1298,15 +2360,16 @@ function Se({ name: r, value: i, checked: a, onChange: o, icon: s, iconNode: c,
|
|
|
1298
2360
|
}
|
|
1299
2361
|
//#endregion
|
|
1300
2362
|
//#region src/components/AppChoiceChip.jsx
|
|
1301
|
-
function Ce({
|
|
2363
|
+
function Ce({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChange: s, children: c, className: l = "" }) {
|
|
1302
2364
|
return /* @__PURE__ */ n("label", {
|
|
1303
|
-
className: `choice-chip${
|
|
2365
|
+
className: `choice-chip${o ? " checked" : ""}${l ? ` ${l}` : ""}`,
|
|
1304
2366
|
children: [/* @__PURE__ */ t("input", {
|
|
1305
|
-
type: e,
|
|
1306
|
-
name:
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
2367
|
+
type: e ? "checkbox" : "radio",
|
|
2368
|
+
name: i,
|
|
2369
|
+
value: a,
|
|
2370
|
+
checked: o,
|
|
2371
|
+
onChange: s
|
|
2372
|
+
}), /* @__PURE__ */ t("span", { children: r ?? c })]
|
|
1310
2373
|
});
|
|
1311
2374
|
}
|
|
1312
2375
|
//#endregion
|
|
@@ -1371,6 +2434,7 @@ var K = i(function({ label: e, required: r = !1, error: i, hint: a, help: o, hel
|
|
|
1371
2434
|
type: E,
|
|
1372
2435
|
className: D,
|
|
1373
2436
|
disabled: y,
|
|
2437
|
+
required: r,
|
|
1374
2438
|
"aria-invalid": i ? "true" : "false",
|
|
1375
2439
|
ref: x,
|
|
1376
2440
|
...b
|
|
@@ -1885,38 +2949,38 @@ var J = {
|
|
|
1885
2949
|
};
|
|
1886
2950
|
//#endregion
|
|
1887
2951
|
//#region src/components/AppConfirmDialog.jsx
|
|
1888
|
-
function Ae({ open: r, title: i,
|
|
1889
|
-
let [
|
|
2952
|
+
function Ae({ open: r, title: i, message: a, confirmLabel: s = "Confirm", cancelLabel: c = "Cancel", danger: l = !1, tone: d, confirmPhrase: f, onConfirm: p, onClose: m }) {
|
|
2953
|
+
let [h, g] = u("");
|
|
1890
2954
|
if (o(() => {
|
|
1891
|
-
r ||
|
|
2955
|
+
r || g("");
|
|
1892
2956
|
}, [r]), !r) return null;
|
|
1893
|
-
let
|
|
2957
|
+
let _ = !!f && h.trim() !== f, v = J[d || (l ? "delete" : "info")];
|
|
1894
2958
|
return /* @__PURE__ */ t(q, {
|
|
1895
2959
|
open: r,
|
|
1896
2960
|
hideHeader: !0,
|
|
1897
2961
|
title: i,
|
|
1898
2962
|
maxWidth: 440,
|
|
1899
|
-
onClose:
|
|
2963
|
+
onClose: m,
|
|
1900
2964
|
className: "lx-confirm",
|
|
1901
2965
|
footer: /* @__PURE__ */ n("div", {
|
|
1902
2966
|
className: "lx-confirm-actions",
|
|
1903
2967
|
children: [/* @__PURE__ */ t(W, {
|
|
1904
2968
|
variant: "secondary",
|
|
1905
|
-
onClick:
|
|
1906
|
-
children:
|
|
2969
|
+
onClick: m,
|
|
2970
|
+
children: c
|
|
1907
2971
|
}), /* @__PURE__ */ t(W, {
|
|
1908
|
-
variant:
|
|
1909
|
-
disabled:
|
|
1910
|
-
onClick:
|
|
2972
|
+
variant: l ? "danger" : "primary",
|
|
2973
|
+
disabled: _,
|
|
2974
|
+
onClick: p,
|
|
1911
2975
|
children: s
|
|
1912
2976
|
})]
|
|
1913
2977
|
}),
|
|
1914
2978
|
children: /* @__PURE__ */ n("div", {
|
|
1915
2979
|
className: "lx-confirm-content",
|
|
1916
2980
|
children: [
|
|
1917
|
-
|
|
2981
|
+
v && /* @__PURE__ */ t("span", {
|
|
1918
2982
|
className: "lx-confirm-icon",
|
|
1919
|
-
children: /* @__PURE__ */ t(
|
|
2983
|
+
children: /* @__PURE__ */ t(v, { size: 104 })
|
|
1920
2984
|
}),
|
|
1921
2985
|
/* @__PURE__ */ t("h3", {
|
|
1922
2986
|
className: "lx-confirm-title",
|
|
@@ -1926,16 +2990,16 @@ function Ae({ open: r, title: i, body: a, confirmLabel: s = "Confirm", danger: c
|
|
|
1926
2990
|
className: "lx-confirm-msg",
|
|
1927
2991
|
children: a
|
|
1928
2992
|
}),
|
|
1929
|
-
|
|
2993
|
+
f && /* @__PURE__ */ t(K, {
|
|
1930
2994
|
fieldClassName: "mt-3 mb-0 w-100 text-start",
|
|
1931
2995
|
label: /* @__PURE__ */ n(e, { children: [
|
|
1932
2996
|
"Type ",
|
|
1933
|
-
/* @__PURE__ */ t("strong", { children:
|
|
2997
|
+
/* @__PURE__ */ t("strong", { children: f }),
|
|
1934
2998
|
" to confirm"
|
|
1935
2999
|
] }),
|
|
1936
|
-
value:
|
|
1937
|
-
onChange: (e) =>
|
|
1938
|
-
"aria-label": `Type ${
|
|
3000
|
+
value: h,
|
|
3001
|
+
onChange: (e) => g(e.target.value),
|
|
3002
|
+
"aria-label": `Type ${f} to confirm`
|
|
1939
3003
|
})
|
|
1940
3004
|
]
|
|
1941
3005
|
})
|
|
@@ -1943,7 +3007,7 @@ function Ae({ open: r, title: i, body: a, confirmLabel: s = "Confirm", danger: c
|
|
|
1943
3007
|
}
|
|
1944
3008
|
//#endregion
|
|
1945
3009
|
//#region src/components/AppSkeleton.jsx
|
|
1946
|
-
function Y({
|
|
3010
|
+
function Y({ width: e = "100%", height: n = 14, radius: r = 6, className: i = "", style: a }) {
|
|
1947
3011
|
return /* @__PURE__ */ t("span", {
|
|
1948
3012
|
className: `skeleton${i ? ` ${i}` : ""}`,
|
|
1949
3013
|
"aria-hidden": "true",
|
|
@@ -1976,34 +3040,35 @@ var je = [
|
|
|
1976
3040
|
];
|
|
1977
3041
|
function X({ rows: e = 4, cols: n = 5 }) {
|
|
1978
3042
|
return je.slice(0, e).map((e) => /* @__PURE__ */ t("tr", { children: Me.slice(0, n).map((e, n) => /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t(Y, {
|
|
1979
|
-
|
|
1980
|
-
|
|
3043
|
+
width: n === 0 ? "70%" : "50%",
|
|
3044
|
+
height: 12
|
|
1981
3045
|
}) }, e)) }, e));
|
|
1982
3046
|
}
|
|
1983
3047
|
//#endregion
|
|
1984
3048
|
//#region src/components/AppSelectMini.jsx
|
|
1985
|
-
function Z({ value: e, onChange: n, options: r = [], placeholder: i = "Select...",
|
|
1986
|
-
let
|
|
3049
|
+
function Z({ value: e, onChange: n, options: r = [], placeholder: i = "Select...", name: a, ariaLabel: s, id: c, disabled: u }) {
|
|
3050
|
+
let d = l(null);
|
|
1987
3051
|
return o(() => {
|
|
1988
|
-
|
|
3052
|
+
d.current && (d.current.options = r.map((e) => ({
|
|
1989
3053
|
value: e.value,
|
|
1990
3054
|
label: e.label ?? e.text ?? ""
|
|
1991
3055
|
})));
|
|
1992
3056
|
}, [r]), o(() => {
|
|
1993
|
-
let t =
|
|
3057
|
+
let t = d.current;
|
|
1994
3058
|
t && String(t.value ?? "") !== String(e ?? "") && (t.value = e ?? "");
|
|
1995
3059
|
}, [e]), o(() => {
|
|
1996
|
-
let e =
|
|
3060
|
+
let e = d.current;
|
|
1997
3061
|
if (!e) return;
|
|
1998
3062
|
let t = () => n?.(e.value);
|
|
1999
3063
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
2000
3064
|
}, [n]), /* @__PURE__ */ t("wui-select", {
|
|
2001
|
-
ref:
|
|
3065
|
+
ref: d,
|
|
3066
|
+
name: a,
|
|
2002
3067
|
compact: "",
|
|
2003
|
-
id:
|
|
3068
|
+
id: c,
|
|
2004
3069
|
placeholder: i,
|
|
2005
|
-
"aria-label":
|
|
2006
|
-
disabled:
|
|
3070
|
+
"aria-label": s,
|
|
3071
|
+
disabled: u ? "" : void 0
|
|
2007
3072
|
});
|
|
2008
3073
|
}
|
|
2009
3074
|
//#endregion
|
|
@@ -2178,36 +3243,62 @@ function Le({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
2178
3243
|
}
|
|
2179
3244
|
//#endregion
|
|
2180
3245
|
//#region src/components/AppDatePicker.jsx
|
|
2181
|
-
function Re({ value: e, onChange:
|
|
2182
|
-
let
|
|
2183
|
-
|
|
2184
|
-
let t =
|
|
3246
|
+
function Re({ value: e, onChange: r, label: i, required: a = !1, hint: c, error: u, name: d, min: f, max: p, placeholder: m = "Enter Date", disabled: h, id: g, ariaLabel: _, className: v = "" }) {
|
|
3247
|
+
let y = l(null), b = s(), x = g || d || b;
|
|
3248
|
+
o(() => {
|
|
3249
|
+
let t = y.current;
|
|
2185
3250
|
t && t.value !== (e ?? "") && (t.value = e ?? "");
|
|
2186
3251
|
}, [e]), o(() => {
|
|
2187
|
-
let e =
|
|
3252
|
+
let e = y.current;
|
|
2188
3253
|
if (!e) return;
|
|
2189
|
-
let t = () =>
|
|
3254
|
+
let t = () => r?.(e.value);
|
|
2190
3255
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
2191
|
-
}, [
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
3256
|
+
}, [r]);
|
|
3257
|
+
let S = /* @__PURE__ */ t("wui-datepicker", {
|
|
3258
|
+
ref: y,
|
|
3259
|
+
id: x,
|
|
3260
|
+
name: d,
|
|
3261
|
+
min: f,
|
|
3262
|
+
max: p,
|
|
3263
|
+
placeholder: m,
|
|
3264
|
+
"aria-label": _,
|
|
3265
|
+
"aria-invalid": u ? "true" : void 0,
|
|
3266
|
+
disabled: h ? "" : void 0
|
|
3267
|
+
});
|
|
3268
|
+
return !i && !u && !c ? S : /* @__PURE__ */ n("div", {
|
|
3269
|
+
className: `field${v ? ` ${v}` : ""}`,
|
|
3270
|
+
children: [
|
|
3271
|
+
i && /* @__PURE__ */ n("label", {
|
|
3272
|
+
className: "label",
|
|
3273
|
+
htmlFor: x,
|
|
3274
|
+
children: [i, a && /* @__PURE__ */ t("span", {
|
|
3275
|
+
className: "required",
|
|
3276
|
+
"aria-hidden": "true",
|
|
3277
|
+
children: "*"
|
|
3278
|
+
})]
|
|
3279
|
+
}),
|
|
3280
|
+
S,
|
|
3281
|
+
u && /* @__PURE__ */ t("div", {
|
|
3282
|
+
className: "field-error",
|
|
3283
|
+
children: u
|
|
3284
|
+
}),
|
|
3285
|
+
!u && c && /* @__PURE__ */ t("div", {
|
|
3286
|
+
className: "field-hint",
|
|
3287
|
+
children: c
|
|
3288
|
+
})
|
|
3289
|
+
]
|
|
2199
3290
|
});
|
|
2200
3291
|
}
|
|
2201
3292
|
//#endregion
|
|
2202
3293
|
//#region src/components/AppDropdown.jsx
|
|
2203
|
-
var ze = i(function({ icon: e, iconSize: n = 20,
|
|
3294
|
+
var ze = i(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-btn", label: i, align: a = "end", "aria-label": o, className: s, ...c }, l) {
|
|
2204
3295
|
return /* @__PURE__ */ t("button", {
|
|
2205
|
-
ref:
|
|
3296
|
+
ref: l,
|
|
2206
3297
|
type: "button",
|
|
2207
3298
|
className: r,
|
|
2208
3299
|
title: i,
|
|
2209
|
-
"aria-label":
|
|
2210
|
-
...
|
|
3300
|
+
"aria-label": o,
|
|
3301
|
+
...c,
|
|
2211
3302
|
children: /* @__PURE__ */ t(A, {
|
|
2212
3303
|
name: e,
|
|
2213
3304
|
size: n,
|
|
@@ -2215,14 +3306,14 @@ var ze = i(function({ icon: e, iconSize: n = 20, btnClass: r = "topbar-icon-btn"
|
|
|
2215
3306
|
})
|
|
2216
3307
|
});
|
|
2217
3308
|
});
|
|
2218
|
-
function Be({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn",
|
|
3309
|
+
function Be({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", label: a, ariaLabel: o, align: s = "end", items: c = [], menuClassName: l = "", linkComponent: u }) {
|
|
2219
3310
|
return /* @__PURE__ */ n(_, {
|
|
2220
3311
|
align: s,
|
|
2221
3312
|
children: [/* @__PURE__ */ t(_.Toggle, {
|
|
2222
3313
|
as: ze,
|
|
2223
3314
|
icon: e,
|
|
2224
3315
|
iconSize: r,
|
|
2225
|
-
|
|
3316
|
+
btnClassName: i,
|
|
2226
3317
|
title: a,
|
|
2227
3318
|
"aria-label": o
|
|
2228
3319
|
}), /* @__PURE__ */ t(_.Menu, {
|
|
@@ -2257,9 +3348,12 @@ function Be({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", titl
|
|
|
2257
3348
|
//#endregion
|
|
2258
3349
|
//#region src/components/AppEmptyState.jsx
|
|
2259
3350
|
function Ve({ icon: e, iconSize: r = 24, iconVariant: i, size: a = "md", title: o, text: s, action: c, className: l = "", style: u }) {
|
|
2260
|
-
let d = `fw-semibold text-body-emphasis${a === "sm" ? " lx-text-sm" : ""}`, f = a === "sm" ? "lx-text-xs mt-1" : "lx-text-sm mt-1";
|
|
2261
3351
|
return /* @__PURE__ */ n("div", {
|
|
2262
|
-
className:
|
|
3352
|
+
className: [
|
|
3353
|
+
"empty-state",
|
|
3354
|
+
a === "sm" ? "empty-state-sm" : "",
|
|
3355
|
+
l
|
|
3356
|
+
].filter(Boolean).join(" "),
|
|
2263
3357
|
style: u,
|
|
2264
3358
|
children: [
|
|
2265
3359
|
/* @__PURE__ */ t("div", {
|
|
@@ -2271,14 +3365,17 @@ function Ve({ icon: e, iconSize: r = 24, iconVariant: i, size: a = "md", title:
|
|
|
2271
3365
|
})
|
|
2272
3366
|
}),
|
|
2273
3367
|
o != null && /* @__PURE__ */ t("div", {
|
|
2274
|
-
className:
|
|
3368
|
+
className: "empty-state-title",
|
|
2275
3369
|
children: o
|
|
2276
3370
|
}),
|
|
2277
3371
|
s != null && /* @__PURE__ */ t("div", {
|
|
2278
|
-
className:
|
|
3372
|
+
className: "empty-state-message",
|
|
2279
3373
|
children: s
|
|
2280
3374
|
}),
|
|
2281
|
-
c
|
|
3375
|
+
c && /* @__PURE__ */ t("div", {
|
|
3376
|
+
className: "empty-state-action",
|
|
3377
|
+
children: c
|
|
3378
|
+
})
|
|
2282
3379
|
]
|
|
2283
3380
|
});
|
|
2284
3381
|
}
|
|
@@ -2441,54 +3538,55 @@ function Je(e) {
|
|
|
2441
3538
|
}
|
|
2442
3539
|
//#endregion
|
|
2443
3540
|
//#region src/components/AppFilePicker.jsx
|
|
2444
|
-
function Ye({ label: e, value: r,
|
|
2445
|
-
let [
|
|
3541
|
+
function Ye({ label: e, value: r, name: i, onPick: a, accept: c = ".jpg,.jpeg,.png", required: d, error: f }) {
|
|
3542
|
+
let [p, m] = u(null), [h, g] = u(!1), _ = l(null), v = s(), y = i || v;
|
|
2446
3543
|
o(() => {
|
|
2447
3544
|
if (r instanceof File) {
|
|
2448
3545
|
let e = URL.createObjectURL(r);
|
|
2449
|
-
return
|
|
3546
|
+
return m(e), () => URL.revokeObjectURL(e);
|
|
2450
3547
|
}
|
|
2451
|
-
|
|
3548
|
+
m(null);
|
|
2452
3549
|
}, [r]);
|
|
2453
|
-
let
|
|
3550
|
+
let b = r?.url || p, x = (e) => {
|
|
2454
3551
|
let t = Ke(e);
|
|
2455
|
-
return t ? ($(t, "error"), !1) : (
|
|
2456
|
-
},
|
|
3552
|
+
return t ? ($(t, "error"), !1) : (a(e), !0);
|
|
3553
|
+
}, S = (e) => {
|
|
2457
3554
|
let t = e.target.files?.[0] || null;
|
|
2458
|
-
t && (
|
|
2459
|
-
},
|
|
2460
|
-
e.preventDefault(),
|
|
3555
|
+
t && (x(t) || (e.target.value = ""));
|
|
3556
|
+
}, C = (e) => {
|
|
3557
|
+
e.preventDefault(), g(!1);
|
|
2461
3558
|
let t = e.dataTransfer.files?.[0];
|
|
2462
|
-
t &&
|
|
2463
|
-
},
|
|
2464
|
-
id:
|
|
2465
|
-
|
|
3559
|
+
t && x(t);
|
|
3560
|
+
}, w = () => _.current?.click(), T = /* @__PURE__ */ t("input", {
|
|
3561
|
+
id: y,
|
|
3562
|
+
name: i,
|
|
3563
|
+
ref: _,
|
|
2466
3564
|
type: "file",
|
|
2467
|
-
accept:
|
|
2468
|
-
|
|
3565
|
+
accept: c,
|
|
3566
|
+
hidden: !0,
|
|
2469
3567
|
onClick: (e) => {
|
|
2470
3568
|
e.currentTarget.value = "";
|
|
2471
3569
|
},
|
|
2472
|
-
onChange:
|
|
3570
|
+
onChange: S
|
|
2473
3571
|
});
|
|
2474
3572
|
return /* @__PURE__ */ n("div", {
|
|
2475
3573
|
className: "field",
|
|
2476
3574
|
children: [
|
|
2477
3575
|
/* @__PURE__ */ n("label", {
|
|
2478
3576
|
className: "label",
|
|
2479
|
-
htmlFor:
|
|
2480
|
-
children: [e,
|
|
3577
|
+
htmlFor: y,
|
|
3578
|
+
children: [e, d && /* @__PURE__ */ t(U, {})]
|
|
2481
3579
|
}),
|
|
2482
|
-
|
|
2483
|
-
className: `file-preview${
|
|
3580
|
+
b ? /* @__PURE__ */ n("div", {
|
|
3581
|
+
className: `file-preview${f ? " error" : ""}`,
|
|
2484
3582
|
children: [
|
|
2485
3583
|
/* @__PURE__ */ n("button", {
|
|
2486
3584
|
type: "button",
|
|
2487
3585
|
className: "file-preview-open",
|
|
2488
3586
|
"aria-label": `Change ${e}`,
|
|
2489
|
-
onClick:
|
|
3587
|
+
onClick: w,
|
|
2490
3588
|
children: [/* @__PURE__ */ t("img", {
|
|
2491
|
-
src:
|
|
3589
|
+
src: b,
|
|
2492
3590
|
alt: `${e} preview`,
|
|
2493
3591
|
className: "file-preview-img"
|
|
2494
3592
|
}), /* @__PURE__ */ t("span", {
|
|
@@ -2508,26 +3606,26 @@ function Ye({ label: e, value: r, onPick: i, required: a, error: c }) {
|
|
|
2508
3606
|
className: "file-preview-remove",
|
|
2509
3607
|
"aria-label": `Remove ${e}`,
|
|
2510
3608
|
title: "Remove image",
|
|
2511
|
-
onClick: () =>
|
|
3609
|
+
onClick: () => a(null),
|
|
2512
3610
|
children: /* @__PURE__ */ t(A, {
|
|
2513
3611
|
name: "x",
|
|
2514
3612
|
size: 16,
|
|
2515
3613
|
variant: "Linear"
|
|
2516
3614
|
})
|
|
2517
3615
|
}),
|
|
2518
|
-
|
|
3616
|
+
T
|
|
2519
3617
|
]
|
|
2520
3618
|
}) : /* @__PURE__ */ n("div", {
|
|
2521
|
-
className: `file-input file-input-tall${
|
|
3619
|
+
className: `file-input file-input-tall${h ? " dragging" : ""}${f ? " error" : ""}`,
|
|
2522
3620
|
onDragOver: (e) => {
|
|
2523
|
-
e.preventDefault(),
|
|
3621
|
+
e.preventDefault(), h || g(!0);
|
|
2524
3622
|
},
|
|
2525
3623
|
onDragLeave: (e) => {
|
|
2526
|
-
e.preventDefault(),
|
|
3624
|
+
e.preventDefault(), g(!1);
|
|
2527
3625
|
},
|
|
2528
|
-
onDrop:
|
|
3626
|
+
onDrop: C,
|
|
2529
3627
|
children: [/* @__PURE__ */ n("label", {
|
|
2530
|
-
htmlFor:
|
|
3628
|
+
htmlFor: y,
|
|
2531
3629
|
className: "file-input-zone-label",
|
|
2532
3630
|
children: [
|
|
2533
3631
|
/* @__PURE__ */ t("span", {
|
|
@@ -2550,11 +3648,11 @@ function Ye({ label: e, value: r, onPick: i, required: a, error: c }) {
|
|
|
2550
3648
|
children: "JPG, JPEG or PNG · up to 5 MB"
|
|
2551
3649
|
})
|
|
2552
3650
|
]
|
|
2553
|
-
}),
|
|
3651
|
+
}), T]
|
|
2554
3652
|
}),
|
|
2555
|
-
|
|
3653
|
+
f && /* @__PURE__ */ t("div", {
|
|
2556
3654
|
className: "field-error",
|
|
2557
|
-
children:
|
|
3655
|
+
children: f
|
|
2558
3656
|
})
|
|
2559
3657
|
]
|
|
2560
3658
|
});
|
|
@@ -2619,42 +3717,44 @@ function Xe({ value: r, fallback: i, onPick: a, loading: o = !1, accept: s = "im
|
|
|
2619
3717
|
}
|
|
2620
3718
|
//#endregion
|
|
2621
3719
|
//#region src/components/AppMultiSelect.jsx
|
|
2622
|
-
function Ze({ values: e, onChange: r, options: i, placeholder: a = "Select…",
|
|
2623
|
-
let
|
|
3720
|
+
function Ze({ values: e, onChange: r, options: i, placeholder: a = "Select…", searchPlaceholder: s = "Search…", searchable: c = !0, disabled: u = !1, name: d, label: f, error: p, hint: m, required: h = !1, fieldClassName: g = "" }) {
|
|
3721
|
+
let _ = l(null);
|
|
2624
3722
|
return o(() => {
|
|
2625
|
-
let e =
|
|
3723
|
+
let e = _.current;
|
|
2626
3724
|
e && (e.options = i || []);
|
|
2627
3725
|
}, [i]), o(() => {
|
|
2628
|
-
let t =
|
|
3726
|
+
let t = _.current;
|
|
2629
3727
|
if (!t) return;
|
|
2630
3728
|
let n = e || [], r = t.values || [];
|
|
2631
3729
|
n.join(",") !== r.join(",") && (t.values = n);
|
|
2632
3730
|
}, [e]), o(() => {
|
|
2633
|
-
let e =
|
|
3731
|
+
let e = _.current;
|
|
2634
3732
|
if (!e) return;
|
|
2635
3733
|
let t = () => r?.(e.values);
|
|
2636
3734
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
2637
3735
|
}, [r]), /* @__PURE__ */ n("div", {
|
|
2638
|
-
className: `field${
|
|
3736
|
+
className: `field${g ? ` ${g}` : ""}`,
|
|
2639
3737
|
children: [
|
|
2640
|
-
|
|
3738
|
+
f && /* @__PURE__ */ n("label", {
|
|
2641
3739
|
className: "label",
|
|
2642
|
-
htmlFor:
|
|
2643
|
-
children: [
|
|
3740
|
+
htmlFor: d,
|
|
3741
|
+
children: [f, h && /* @__PURE__ */ t(U, {})]
|
|
2644
3742
|
}),
|
|
2645
3743
|
/* @__PURE__ */ t("wui-multiselect", {
|
|
2646
|
-
|
|
2647
|
-
|
|
3744
|
+
id: d,
|
|
3745
|
+
ref: _,
|
|
3746
|
+
name: d,
|
|
2648
3747
|
placeholder: a,
|
|
2649
|
-
|
|
2650
|
-
|
|
3748
|
+
"search-placeholder": s,
|
|
3749
|
+
searchable: c ? "" : void 0,
|
|
3750
|
+
disabled: u ? "" : void 0
|
|
2651
3751
|
}),
|
|
2652
|
-
|
|
3752
|
+
p ? /* @__PURE__ */ t("div", {
|
|
2653
3753
|
className: "field-error",
|
|
2654
|
-
children: f
|
|
2655
|
-
}) : p ? /* @__PURE__ */ t("div", {
|
|
2656
|
-
className: "field-hint",
|
|
2657
3754
|
children: p
|
|
3755
|
+
}) : m ? /* @__PURE__ */ t("div", {
|
|
3756
|
+
className: "field-hint",
|
|
3757
|
+
children: m
|
|
2658
3758
|
}) : null
|
|
2659
3759
|
]
|
|
2660
3760
|
});
|
|
@@ -2678,7 +3778,7 @@ function Qe({ title: e, subtitle: r, actions: i, className: a = "" }) {
|
|
|
2678
3778
|
}
|
|
2679
3779
|
//#endregion
|
|
2680
3780
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
2681
|
-
function $e({ value: e, onChange: r,
|
|
3781
|
+
function $e({ value: e, onChange: r, country: i, disabled: a = !1, name: s, label: c = "Phone number", placeholder: u = "Enter phone number", required: d = !1, error: f, fieldClassName: p = "" }) {
|
|
2682
3782
|
let m = l(null);
|
|
2683
3783
|
return o(() => {
|
|
2684
3784
|
let t = m.current;
|
|
@@ -2712,13 +3812,22 @@ function $e({ value: e, onChange: r, countryCode: i, disabled: a = !1, name: s,
|
|
|
2712
3812
|
}
|
|
2713
3813
|
//#endregion
|
|
2714
3814
|
//#region src/components/AppRadio.jsx
|
|
2715
|
-
var et = i(function({ label: e, className:
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
3815
|
+
var et = i(function({ label: e, id: r, name: i, className: a = "", ...o }, c) {
|
|
3816
|
+
let l = s(), u = r || i || l;
|
|
3817
|
+
return /* @__PURE__ */ n("div", {
|
|
3818
|
+
className: `form-check${a ? ` ${a}` : ""}`,
|
|
3819
|
+
children: [/* @__PURE__ */ t("input", {
|
|
3820
|
+
type: "radio",
|
|
3821
|
+
className: "form-check-input",
|
|
3822
|
+
id: u,
|
|
3823
|
+
name: i,
|
|
3824
|
+
ref: c,
|
|
3825
|
+
...o
|
|
3826
|
+
}), e != null && /* @__PURE__ */ t("label", {
|
|
3827
|
+
className: "form-check-label",
|
|
3828
|
+
htmlFor: u,
|
|
3829
|
+
children: e
|
|
3830
|
+
})]
|
|
2722
3831
|
});
|
|
2723
3832
|
});
|
|
2724
3833
|
//#endregion
|
|
@@ -2727,17 +3836,18 @@ function tt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize
|
|
|
2727
3836
|
return /* @__PURE__ */ n("div", {
|
|
2728
3837
|
className: [
|
|
2729
3838
|
"search-wrap",
|
|
2730
|
-
"search-field",
|
|
2731
3839
|
e ? "has-value" : "",
|
|
2732
3840
|
s
|
|
2733
3841
|
].filter(Boolean).join(" "),
|
|
2734
3842
|
children: [
|
|
2735
3843
|
/* @__PURE__ */ t(A, {
|
|
2736
3844
|
name: "search",
|
|
2737
|
-
size: o
|
|
3845
|
+
size: o,
|
|
3846
|
+
className: "search-icon"
|
|
2738
3847
|
}),
|
|
2739
3848
|
/* @__PURE__ */ t(m.Control, {
|
|
2740
|
-
|
|
3849
|
+
type: "search",
|
|
3850
|
+
className: "input search-input",
|
|
2741
3851
|
placeholder: i,
|
|
2742
3852
|
value: e,
|
|
2743
3853
|
onChange: (e) => r(e.target.value),
|
|
@@ -2780,6 +3890,7 @@ function rt({ value: e, onChange: r, options: i = [], placeholder: a = "Select..
|
|
|
2780
3890
|
let x = /* @__PURE__ */ t("wui-select", {
|
|
2781
3891
|
ref: b,
|
|
2782
3892
|
id: _ || v,
|
|
3893
|
+
name: v,
|
|
2783
3894
|
placeholder: a,
|
|
2784
3895
|
"search-placeholder": s,
|
|
2785
3896
|
searchable: c ? "" : void 0,
|
|
@@ -2878,13 +3989,22 @@ function ot({ label: e, tone: n = "", className: r = "" }) {
|
|
|
2878
3989
|
}
|
|
2879
3990
|
//#endregion
|
|
2880
3991
|
//#region src/components/AppSwitch.jsx
|
|
2881
|
-
var st = i(function({ label: e, className:
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
3992
|
+
var st = i(function({ label: e, id: r, name: i, className: a = "", ...o }, c) {
|
|
3993
|
+
let l = s(), u = r || i || l;
|
|
3994
|
+
return /* @__PURE__ */ n("div", {
|
|
3995
|
+
className: `form-check form-switch${a ? ` ${a}` : ""}`,
|
|
3996
|
+
children: [/* @__PURE__ */ t("input", {
|
|
3997
|
+
type: "checkbox",
|
|
3998
|
+
className: "form-check-input",
|
|
3999
|
+
id: u,
|
|
4000
|
+
name: i,
|
|
4001
|
+
ref: c,
|
|
4002
|
+
...o
|
|
4003
|
+
}), e != null && /* @__PURE__ */ t("label", {
|
|
4004
|
+
className: "form-check-label",
|
|
4005
|
+
htmlFor: u,
|
|
4006
|
+
children: e
|
|
4007
|
+
})]
|
|
2888
4008
|
});
|
|
2889
4009
|
});
|
|
2890
4010
|
//#endregion
|
|
@@ -2918,40 +4038,44 @@ function ct({ icon: e, title: r, text: i, action: a }) {
|
|
|
2918
4038
|
}
|
|
2919
4039
|
//#endregion
|
|
2920
4040
|
//#region src/components/AppTabs.jsx
|
|
2921
|
-
function lt({ tabs: e, value: r, onChange: i,
|
|
2922
|
-
let
|
|
2923
|
-
function
|
|
4041
|
+
function lt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabel: o, className: s = "" }) {
|
|
4042
|
+
let c = l(null);
|
|
4043
|
+
function u(t) {
|
|
2924
4044
|
let n = e.findIndex((e) => e.key === r);
|
|
2925
4045
|
if (n < 0) return;
|
|
2926
4046
|
let a = null;
|
|
2927
4047
|
if (t.key === "ArrowRight" ? a = e[(n + 1) % e.length] : t.key === "ArrowLeft" ? a = e[(n - 1 + e.length) % e.length] : t.key === "Home" ? a = e[0] : t.key === "End" && (a = e[e.length - 1]), !a) return;
|
|
2928
4048
|
t.preventDefault(), i(a.key);
|
|
2929
4049
|
let o = CSS.escape(String(a.key));
|
|
2930
|
-
|
|
4050
|
+
c.current?.querySelector(`[data-rr-ui-event-key="${o}"]`)?.focus();
|
|
2931
4051
|
}
|
|
2932
4052
|
return /* @__PURE__ */ t(k, {
|
|
2933
4053
|
as: "div",
|
|
2934
4054
|
role: "tablist",
|
|
2935
|
-
ref:
|
|
4055
|
+
ref: c,
|
|
2936
4056
|
activeKey: r,
|
|
2937
4057
|
onSelect: (e) => {
|
|
2938
4058
|
e != null && i(e);
|
|
2939
4059
|
},
|
|
2940
|
-
onKeyDown:
|
|
2941
|
-
className:
|
|
2942
|
-
|
|
4060
|
+
onKeyDown: u,
|
|
4061
|
+
className: [
|
|
4062
|
+
"app-tabs",
|
|
4063
|
+
a === "pills" ? "app-tabs-pills" : "",
|
|
4064
|
+
s
|
|
4065
|
+
].filter(Boolean).join(" "),
|
|
4066
|
+
"aria-label": o,
|
|
2943
4067
|
children: e.map((e) => /* @__PURE__ */ n(k.Link, {
|
|
2944
4068
|
as: "button",
|
|
2945
4069
|
type: "button",
|
|
2946
4070
|
eventKey: e.key,
|
|
2947
4071
|
role: "tab",
|
|
2948
|
-
bsPrefix: "
|
|
2949
|
-
className: e.danger ? "
|
|
4072
|
+
bsPrefix: "app-tab",
|
|
4073
|
+
className: e.danger ? "danger" : void 0,
|
|
2950
4074
|
children: [
|
|
2951
4075
|
e.icon,
|
|
2952
4076
|
e.label,
|
|
2953
4077
|
e.count != null && /* @__PURE__ */ t("span", {
|
|
2954
|
-
className: `
|
|
4078
|
+
className: `app-tab-count${e.tone ? ` ${e.tone}` : ""}`,
|
|
2955
4079
|
children: e.count
|
|
2956
4080
|
})
|
|
2957
4081
|
]
|