@ozdao/martyrs 0.2.565 → 0.2.566

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.
Files changed (99) hide show
  1. package/dist/martyrs/dist/main-B9o1iBAZ.js +943 -0
  2. package/dist/martyrs/dist/main-B9o1iBAZ.js.map +1 -0
  3. package/dist/martyrs/dist/web-BF3ijvEr.js +55 -0
  4. package/dist/martyrs/dist/web-BF3ijvEr.js.map +1 -0
  5. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js +96 -0
  6. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js.map +1 -0
  7. package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
  8. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +1 -0
  9. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
  10. package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +1 -1
  11. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  12. package/dist/martyrs/src/modules/events/events.client.js +15 -12
  13. package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
  14. package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +95 -0
  15. package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js.map +1 -0
  16. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +5 -2
  17. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
  18. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +24 -24
  19. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js.map +1 -1
  20. package/dist/martyrs/src/modules/music/components/layouts/MusicBottomPlayer.vue.js +31 -6
  21. package/dist/martyrs/src/modules/music/components/layouts/MusicBottomPlayer.vue.js.map +1 -1
  22. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +120 -205
  23. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
  24. package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js +9 -13
  25. package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js.map +1 -1
  26. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +166 -245
  27. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
  28. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +135 -220
  29. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
  30. package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +171 -0
  31. package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -0
  32. package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +31 -153
  33. package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js.map +1 -1
  34. package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js +96 -0
  35. package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js.map +1 -0
  36. package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +55 -27
  37. package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js.map +1 -1
  38. package/dist/martyrs/src/modules/music/components/player/tonar.png.js +5 -0
  39. package/dist/martyrs/src/modules/music/components/player/tonar.png.js.map +1 -0
  40. package/dist/martyrs/src/modules/music/store/albums.js +8 -2
  41. package/dist/martyrs/src/modules/music/store/albums.js.map +1 -1
  42. package/dist/martyrs/src/modules/music/store/player.js +83 -65
  43. package/dist/martyrs/src/modules/music/store/player.js.map +1 -1
  44. package/dist/martyrs/src/modules/music/store/tracks.js +4 -13
  45. package/dist/martyrs/src/modules/music/store/tracks.js.map +1 -1
  46. package/dist/martyrs/src/modules/notifications/notifications.client.js +2 -2
  47. package/dist/martyrs.css +1 -1
  48. package/dist/music.server.js +33 -6
  49. package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js +1 -0
  50. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +1 -0
  51. package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +1 -1
  52. package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js.map +1 -1
  53. package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +16 -1
  54. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +1 -0
  55. package/dist/node_modules/.pnpm/{@capacitor_core@7.0.1 → @capacitor_core@7.4.4}/node_modules/@capacitor/core/dist/index.js +2 -1
  56. package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +1 -0
  57. package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/index.js +1 -1
  58. package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/index.js.map +1 -1
  59. package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/web.js +1 -1
  60. package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/web.js.map +1 -1
  61. package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/definitions.js.map +1 -1
  62. package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/index.js +1 -1
  63. package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/index.js.map +1 -1
  64. package/dist/node_modules/.pnpm/{@capacitor_push-notifications@7.0.0_@capacitor_core@7.0.1 → @capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4}/node_modules/@capacitor/push-notifications/dist/esm/index.js +1 -1
  65. package/dist/node_modules/.pnpm/{@capacitor_push-notifications@7.0.0_@capacitor_core@7.0.1 → @capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4}/node_modules/@capacitor/push-notifications/dist/esm/index.js.map +1 -1
  66. package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +1 -1
  67. package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js.map +1 -1
  68. package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +1 -1
  69. package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js.map +1 -1
  70. package/dist/style.css +214 -138
  71. package/package.json +1 -1
  72. package/src/components/BottomSheet/BottomSheet.vue +4 -4
  73. package/src/modules/LAYOUT.MD +767 -0
  74. package/src/modules/core/views/components/layouts/Client.vue +1 -1
  75. package/src/modules/events/events.client.js +3 -0
  76. package/src/modules/music/components/blocks/ActionButtons.vue +74 -0
  77. package/src/modules/music/components/cards/AlbumCard.vue +1 -1
  78. package/src/modules/music/components/cards/ArtistCardSmall.vue +8 -6
  79. package/src/modules/music/components/layouts/MusicBottomPlayer.vue +94 -4
  80. package/src/modules/music/components/pages/Album.vue +55 -67
  81. package/src/modules/music/components/pages/MusicHome.vue +4 -6
  82. package/src/modules/music/components/pages/Playlist.vue +61 -70
  83. package/src/modules/music/components/pages/Track.vue +54 -71
  84. package/src/modules/music/components/player/FullscreenPlayer.vue +248 -0
  85. package/src/modules/music/components/player/MusicPlayer.vue +21 -216
  86. package/src/modules/music/components/player/PlayerControls.vue +112 -0
  87. package/src/modules/music/components/player/Visualizer.vue +151 -0
  88. package/src/modules/music/components/player/VolumeControl.vue +75 -23
  89. package/src/modules/music/components/player/tonar.png +0 -0
  90. package/src/modules/music/routes/albums.routes.js +13 -12
  91. package/src/modules/music/routes/tracks.routes.js +39 -0
  92. package/src/modules/music/store/albums.js +10 -2
  93. package/src/modules/music/store/player.js +101 -89
  94. package/src/modules/music/store/tracks.js +5 -21
  95. package/src/styles/config.scss +6 -6
  96. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +0 -1
  97. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +0 -1
  98. package/dist/node_modules/.pnpm/@capacitor_core@7.0.1/node_modules/@capacitor/core/dist/index.js.map +0 -1
  99. /package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/definitions.js +0 -0
@@ -0,0 +1,943 @@
1
+ import { ref, computed, createElementBlock, createCommentVNode, onMounted, onBeforeUnmount, watch, openBlock, normalizeStyle, normalizeClass, createElementVNode, renderSlot, Fragment, renderList, nextTick, defineComponent, h, reactive, isReactive } from "vue";
2
+ import "vue-router";
3
+ import "vue-i18n";
4
+ import "axios";
5
+ var Ve;
6
+ (function(e) {
7
+ e[e.INITIALIZED = 0] = "INITIALIZED", e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILURE = 3] = "FAILURE";
8
+ })(Ve || (Ve = {}));
9
+ const fe = (e, n) => {
10
+ const t = e.__vccOpts || e;
11
+ for (const [a, l] of n)
12
+ t[a] = l;
13
+ return t;
14
+ };
15
+ const yo = [
16
+ ["‫افغانستان‬‎", "af", "93", , "🇦🇫"],
17
+ ["Shqipëri", "al", "355", , "🇦🇱"],
18
+ ["‫الجزائر‬‎", "dz", "213", , "🇩🇿"],
19
+ ["American Samoa", "as", "1684", , "🇦🇸"],
20
+ ["Andorra", "ad", "376", , "🇦🇩"],
21
+ ["Angola", "ao", "244", , "🇦🇴"],
22
+ ["Anguilla", "ai", "1264", , "🇦🇮"],
23
+ ["Antigua and Barbuda", "ag", "1268", , "🇦🇬"],
24
+ ["Argentina", "ar", "54", , "🇦🇷"],
25
+ ["Հայաստան", "am", "374", , "🇦🇲"],
26
+ ["Aruba", "aw", "297", , "🇦🇼"],
27
+ ["Australia", "au", "61", 0, , "🇦🇺"],
28
+ ["Österreich", "at", "43", , "🇦🇹"],
29
+ ["Azərbaycan", "az", "994", , "🇦🇿"],
30
+ ["Bahamas", "bs", "1242", , "🇧🇸"],
31
+ ["‫البحرين‬‎", "bh", "973", , "🇧🇭"],
32
+ ["বাংলাদেশ", "bd", "880", , "🇧🇩"],
33
+ ["Barbados", "bb", "1246", , "🇧🇧"],
34
+ ["Беларусь", "by", "375", , "🇧🇾"],
35
+ ["België", "be", "32", , "🇧🇪"],
36
+ ["Belize", "bz", "501", , "🇧🇿"],
37
+ ["Bénin", "bj", "229", , "🇧🇯"],
38
+ ["Bermuda", "bm", "1441", , "🇧🇲"],
39
+ ["འབྲུག", "bt", "975", , "🇧🇹"],
40
+ ["Bolivia", "bo", "591", , "🇧🇴"],
41
+ ["Босна и Херцеговина", "ba", "387", , "🇧🇦"],
42
+ ["Botswana", "bw", "267", , "🇧🇼"],
43
+ ["Brasil", "br", "55", , "🇧🇷"],
44
+ ["British Indian Ocean Territory", "io", "246", , "🇮🇴"],
45
+ ["British Virgin Islands", "vg", "1284", , "🇻🇬"],
46
+ ["Brunei", "bn", "673", , "🇧🇳"],
47
+ ["България", "bg", "359", , "🇧🇬"],
48
+ ["Burkina Faso", "bf", "226", , "🇧🇫"],
49
+ ["Uburundi", "bi", "257", , "🇧🇮"],
50
+ ["កម្ពុជា", "kh", "855", , "🇰🇭"],
51
+ ["Cameroun", "cm", "237", , "🇨🇲"],
52
+ ["Canada", "ca", "1", 1, "🇨🇦"],
53
+ ["Kabu Verdi", "cv", "238", , "🇨🇻"],
54
+ ["Caribbean Netherlands", "bq", "599", 1, , "🇧🇶"],
55
+ ["Cayman Islands", "ky", "1345", , "🇰🇾"],
56
+ ["République centrafricaine", "cf", "236", , "🇨🇫"],
57
+ ["Tchad", "td", "235", , "🇹🇩"],
58
+ ["Chile", "cl", "56", , "🇨🇱"],
59
+ ["中国", "cn", "86", , "🇨🇳"],
60
+ ["Christmas Island", "cx", "61", 2, , "🇨🇽"],
61
+ ["Keeling", "cc", "61", 1, , "🇨🇨"],
62
+ ["Colombia", "co", "57", , "🇨🇴"],
63
+ ["‫جزر القمر‬‎", "km", "269", , "🇰🇲"],
64
+ ["DRC", "cd", "243", , "🇨🇩"],
65
+ ["Republic", "cg", "242", , "🇨🇬"],
66
+ ["Cook Islands", "ck", "682", , "🇨🇰"],
67
+ ["Costa Rica", "cr", "506", , "🇨🇷"],
68
+ ["Côte d’Ivoire", "ci", "225", , "🇨🇮"],
69
+ ["Hrvatska", "hr", "385", , "🇭🇷"],
70
+ ["Cuba", "cu", "53", , "🇨🇺"],
71
+ ["Curaçao", "cw", "599", 0, , "🇨🇼"],
72
+ ["Κύπρος", "cy", "357", , "🇨🇾"],
73
+ ["Česká republika", "cz", "420", , "🇨🇿"],
74
+ ["Danmark", "dk", "45", , "🇩🇰"],
75
+ ["Djibouti", "dj", "253", , "🇩🇯"],
76
+ ["Dominica", "dm", "1767", , "🇩🇲"],
77
+ ["República Dominicana", "do", "1", 2, ["809", "829", "849", "🇩🇴"]],
78
+ ["Ecuador", "ec", "593", , "🇪🇨"],
79
+ ["‫مصر‬‎", "eg", "20", , "🇪🇬"],
80
+ ["El Salvador", "sv", "503", , "🇸🇻"],
81
+ ["Guinea Ecuatorial", "gq", "240", , "🇬🇶"],
82
+ ["Eritrea", "er", "291", , "🇪🇷"],
83
+ ["Eesti", "ee", "372", , "🇪🇪"],
84
+ ["Ethiopia", "et", "251", , "🇪🇹"],
85
+ ["Islas Malvinas", "fk", "500", , "🇫🇰"],
86
+ ["Føroyar", "fo", "298", , "🇫🇴"],
87
+ ["Fiji", "fj", "679", , "🇫🇯"],
88
+ ["Suomi", "fi", "358", 0, , "🇫🇮"],
89
+ ["France", "fr", "33", , "🇫🇷"],
90
+ ["Guyane française", "gf", "594", , "🇬🇫"],
91
+ ["Polynésie française", "pf", "689", , "🇵🇫"],
92
+ ["Gabon", "ga", "241", , "🇬🇦"],
93
+ ["Gambia", "gm", "220", , "🇬🇲"],
94
+ ["საქართველო", "ge", "995", , "🇬🇪"],
95
+ ["Deutschland", "de", "49", , "🇩🇪"],
96
+ ["Gaana", "gh", "233", , "🇬🇭"],
97
+ ["Gibraltar", "gi", "350", , "🇬🇮"],
98
+ ["Ελλάδα", "gr", "30", , "🇬🇷"],
99
+ ["Kalaallit Nunaat", "gl", "299", , "🇬🇱"],
100
+ ["Grenada", "gd", "1473", , "🇬🇩"],
101
+ ["Guadeloupe", "gp", "590", 0, , "🇬🇵"],
102
+ ["Guam", "gu", "1671", , "🇬🇺"],
103
+ ["Guatemala", "gt", "502", , "🇬🇹"],
104
+ ["Guernsey", "gg", "44", 1, , "🇬🇬"],
105
+ ["Guinée", "gn", "224", , "🇬🇳"],
106
+ ["Guiné Bissau", "gw", "245", , "🇬🇼"],
107
+ ["Guyana", "gy", "592", , "🇬🇾"],
108
+ ["Haiti", "ht", "509", , "🇭🇹"],
109
+ ["Honduras", "hn", "504", , "🇭🇳"],
110
+ ["香港", "hk", "852", , "🇭🇰"],
111
+ ["Magyarország", "hu", "36", , "🇭🇺"],
112
+ ["Ísland", "is", "354", , "🇮🇸"],
113
+ ["भारत", "in", "91", , "🇮🇳"],
114
+ ["Indonesia", "id", "62", , "🇮🇩"],
115
+ ["‫ایران‬‎", "ir", "98", , "🇮🇷"],
116
+ ["‫العراق‬‎", "iq", "964", , "🇮🇶"],
117
+ ["Ireland", "ie", "353", , "🇮🇪"],
118
+ ["Isle of Man", "im", "44", 2, , "🇮🇲"],
119
+ ["‫ישראל‬‎", "il", "972", , "🇮🇱"],
120
+ ["Italia", "it", "39", 0, , "🇮🇹"],
121
+ ["Jamaica", "jm", "1876", , "🇯🇲"],
122
+ ["日本", "jp", "81", , "🇯🇵"],
123
+ ["Jersey", "je", "44", 3, , "🇯🇪"],
124
+ ["‫الأردن‬‎", "jo", "962", , "🇯🇴"],
125
+ ["Казахстан", "kz", "7", 1, , "🇰🇿"],
126
+ ["Kenya", "ke", "254", , "🇰🇪"],
127
+ ["Kiribati", "ki", "686", , "🇰🇮"],
128
+ ["Kosovo", "xk", "383", , "🇽🇰"],
129
+ ["‫الكويت‬‎", "kw", "965", , "🇰🇼"],
130
+ ["Кыргызстан", "kg", "996", , "🇰🇬"],
131
+ ["ລາວ", "la", "856", , "🇱🇦"],
132
+ ["Latvija", "lv", "371", , "🇱🇻"],
133
+ ["‫لبنان‬‎", "lb", "961", , "🇱🇧"],
134
+ ["Lesotho", "ls", "266", , "🇱🇸"],
135
+ ["Liberia", "lr", "231", , "🇱🇷"],
136
+ ["‫ليبيا‬‎", "ly", "218", , "🇱🇾"],
137
+ ["Liechtenstein", "li", "423", , "🇱🇮"],
138
+ ["Lietuva", "lt", "370", , "🇱🇹"],
139
+ ["Luxembourg", "lu", "352", , "🇱🇺"],
140
+ ["澳門", "mo", "853", , "🇲🇴"],
141
+ ["FYROM", "mk", "389", , "🇲🇰"],
142
+ ["Madagasikara", "mg", "261", , "🇲🇬"],
143
+ ["Malawi", "mw", "265", , "🇲🇼"],
144
+ ["Malaysia", "my", "60", , "🇲🇾"],
145
+ ["Maldives", "mv", "960", , "🇲🇻"],
146
+ ["Mali", "ml", "223", , "🇲🇱"],
147
+ ["Malta", "mt", "356", , "🇲🇹"],
148
+ ["Marshall Islands", "mh", "692", , "🇲🇭"],
149
+ ["Martinique", "mq", "596", , "🇲🇶"],
150
+ ["‫موريتانيا‬‎", "mr", "222", , "🇲🇷"],
151
+ ["Moris", "mu", "230", , "🇲🇺"],
152
+ ["Mayotte", "yt", "262", 1, , "🇾🇹"],
153
+ ["México", "mx", "52", , "🇲🇽"],
154
+ ["Micronesia", "fm", "691", , "🇫🇲"],
155
+ ["Republica Moldova", "md", "373", , "🇲🇩"],
156
+ ["Monaco", "mc", "377", , "🇲🇨"],
157
+ ["Монгол", "mn", "976", , "🇲🇳"],
158
+ ["Crna Gora", "me", "382", , "🇲🇪"],
159
+ ["Montserrat", "ms", "1664", , "🇲🇸"],
160
+ ["‫المغرب‬‎", "ma", "212", 0, , "🇲🇦"],
161
+ ["Moçambique", "mz", "258", , "🇲🇿"],
162
+ ["Burma", "mm", "95", , "🇲🇲"],
163
+ ["Namibië", "na", "264", , "🇳🇦"],
164
+ ["Nauru", "nr", "674", , "🇳🇷"],
165
+ ["नेपाल", "np", "977", , "🇳🇵"],
166
+ ["Nederland", "nl", "31", , "🇳🇱"],
167
+ ["Nouvelle-Calédonie", "nc", "687", , "🇳🇨"],
168
+ ["New Zealand", "nz", "64", , "🇳🇿"],
169
+ ["Nicaragua", "ni", "505", , "🇳🇮"],
170
+ ["Nijar", "ne", "227", , "🇳🇪"],
171
+ ["Nigeria", "ng", "234", , "🇳🇬"],
172
+ ["Niue", "nu", "683", , "🇳🇺"],
173
+ ["Norfolk Island", "nf", "672", , "🇳🇫"],
174
+ ["조선 민주주의 인민 공화국", "kp", "850", , "🇰🇵"],
175
+ ["Northern Mariana Islands", "mp", "1670", , "🇲🇵"],
176
+ ["Norge", "no", "47", 0, , "🇳🇴"],
177
+ ["‫عُمان‬‎", "om", "968", , "🇴🇲"],
178
+ ["‫پاکستان‬‎", "pk", "92", , "🇵🇰"],
179
+ ["Palau", "pw", "680", , "🇵🇼"],
180
+ ["‫فلسطين‬‎", "ps", "970", , "🇵🇸"],
181
+ ["Panamá", "pa", "507", , "🇵🇦"],
182
+ ["Papua New Guinea", "pg", "675", , "🇵🇬"],
183
+ ["Paraguay", "py", "595", , "🇵🇾"],
184
+ ["Perú", "pe", "51", , "🇵🇪"],
185
+ ["Philippines", "ph", "63", , "🇵🇭"],
186
+ ["Polska", "pl", "48", , "🇵🇱"],
187
+ ["Portugal", "pt", "351", , "🇵🇹"],
188
+ ["Puerto Rico", "pr", "1", 3, ["787", "939", "🇵🇷"]],
189
+ ["‫قطر‬‎", "qa", "974", , "🇶🇦"],
190
+ ["La Réunion", "re", "262", 0, , "🇷🇪"],
191
+ ["România", "ro", "40", , "🇷🇴"],
192
+ ["Россия", "ru", "7", 0, , "🇷🇺"],
193
+ ["Rwanda", "rw", "250", , "🇷🇼"],
194
+ ["Saint Barthélemy", "bl", "590", 1, , "🇧🇱"],
195
+ ["Saint Helena", "sh", "290", , "🇸🇭"],
196
+ ["Saint Kitts and Nevis", "kn", "1869", , "🇰🇳"],
197
+ ["Saint Lucia", "lc", "1758", , "🇱🇨"],
198
+ ["Saint-Martin (partie française", "mf", "590", 2, , "🇲🇫"],
199
+ ["Saint-Pierre-et-Miquelon", "pm", "508", , "🇵🇲"],
200
+ ["Saint Vincent and the Grenadines", "vc", "1784", , "🇻🇨"],
201
+ ["Samoa", "ws", "685", , "🇼🇸"],
202
+ ["San Marino", "sm", "378", , "🇸🇲"],
203
+ ["São Tomé e Príncipe", "st", "239", , "🇸🇹"],
204
+ ["‫المملكة العربية السعودية‬‎", "sa", "966", , "🇸🇦"],
205
+ ["Sénégal", "sn", "221", , "🇸🇳"],
206
+ ["Србија", "rs", "381", , "🇷🇸"],
207
+ ["Seychelles", "sc", "248", , "🇸🇨"],
208
+ ["Sierra Leone", "sl", "232", , "🇸🇱"],
209
+ ["Singapore", "sg", "65", , "🇸🇬"],
210
+ ["Sint Maarten", "sx", "1721", , "🇸🇽"],
211
+ ["Slovensko", "sk", "421", , "🇸🇰"],
212
+ ["Slovenija", "si", "386", , "🇸🇮"],
213
+ ["Solomon Islands", "sb", "677", , "🇸🇧"],
214
+ ["Soomaaliya", "so", "252", , "🇸🇴"],
215
+ ["South Africa", "za", "27", , "🇿🇦"],
216
+ ["대한민국", "kr", "82", , "🇰🇷"],
217
+ ["‫جنوب السودان‬‎", "ss", "211", , "🇸🇸"],
218
+ ["España", "es", "34", , "🇪🇸"],
219
+ ["ශ්‍රී ලංකාව", "lk", "94", , "🇱🇰"],
220
+ ["‫السودان‬‎", "sd", "249", , "🇸🇩"],
221
+ ["Suriname", "sr", "597", , "🇸🇷"],
222
+ ["Svalbard and Jan Mayen", "sj", "47", 1, , "🇸🇯"],
223
+ ["Swaziland", "sz", "268", , "🇸🇿"],
224
+ ["Sverige", "se", "46", , "🇸🇪"],
225
+ ["Schweiz", "ch", "41", , "🇨🇭"],
226
+ ["‫سوريا‬‎", "sy", "963", , "🇸🇾"],
227
+ ["台灣", "tw", "886", , "🇹🇼"],
228
+ ["Tajikistan", "tj", "992", , "🇹🇯"],
229
+ ["Tanzania", "tz", "255", , "🇹🇿"],
230
+ ["ไทย", "th", "66", , "🇹🇭"],
231
+ ["Timor-Leste", "tl", "670", , "🇹🇱"],
232
+ ["Togo", "tg", "228", , "🇹🇬"],
233
+ ["Tokelau", "tk", "690", , "🇹🇰"],
234
+ ["Tonga", "to", "676", , "🇹🇴"],
235
+ ["Trinidad and Tobago", "tt", "1868", , "🇹🇹"],
236
+ ["‫تونس‬‎", "tn", "216", , "🇹🇳"],
237
+ ["Türkiye", "tr", "90", , "🇹🇷"],
238
+ ["Turkmenistan", "tm", "993", , "🇹🇲"],
239
+ ["Turks and Caicos Islands", "tc", "1649", , "🇹🇨"],
240
+ ["Tuvalu", "tv", "688", , "🇹🇻"],
241
+ ["U.S. Virgin Islands", "vi", "1340", , "🇻🇮"],
242
+ ["Uganda", "ug", "256", , "🇺🇬"],
243
+ ["Україна", "ua", "380", , "🇺🇦"],
244
+ ["‫الإمارات العربية المتحدة‬‎", "ae", "971", , "🇦🇪"],
245
+ ["United Kingdom", "gb", "44", 0, , "🇬🇧"],
246
+ ["United States", "us", "1", 0, , "🇺🇸"],
247
+ ["Uruguay", "uy", "598", , "🇺🇾"],
248
+ ["Oʻzbekiston", "uz", "998", , "🇺🇿"],
249
+ ["Vanuatu", "vu", "678", , "🇻🇺"],
250
+ ["Città del Vaticano", "va", "39", 1, , "🇻🇦"],
251
+ ["Venezuela", "ve", "58", , "🇻🇪"],
252
+ ["Việt Nam", "vn", "84", , "🇻🇳"],
253
+ ["Wallis-et-Futuna", "wf", "681", , "🇼🇫"],
254
+ ["‫الصحراء الغربية‬‎", "eh", "212", 1, , "🇪🇭"],
255
+ ["‫اليمن‬‎", "ye", "967", , "🇾🇪"],
256
+ ["Zambia", "zm", "260", , "🇿🇲"],
257
+ ["Zimbabwe", "zw", "263", , "🇿🇼"],
258
+ ["Åland Islands", "ax", "358", 1, , "🇦🇽"]
259
+ ];
260
+ yo.map((e) => ({
261
+ name: e[0],
262
+ iso2: e[1].toUpperCase(),
263
+ dialCode: e[2],
264
+ priority: e[3] || 0,
265
+ areaCodes: e[4] || null,
266
+ flag: e[e.length - 1] || null
267
+ }));
268
+ /*! Capacitor: https://capacitorjs.com/ - MIT License */
269
+ var ze;
270
+ (function(e) {
271
+ e.Unimplemented = "UNIMPLEMENTED", e.Unavailable = "UNAVAILABLE";
272
+ })(ze || (ze = {}));
273
+ class yt extends Error {
274
+ constructor(n, t, a) {
275
+ super(n), this.message = n, this.code = t, this.data = a;
276
+ }
277
+ }
278
+ const Cs = (e) => {
279
+ var n, t;
280
+ return e?.androidBridge ? "android" : !((t = (n = e?.webkit) === null || n === void 0 ? void 0 : n.messageHandlers) === null || t === void 0) && t.bridge ? "ios" : "web";
281
+ }, ws = (e) => {
282
+ const n = e.CapacitorCustomPlatform || null, t = e.Capacitor || {}, a = t.Plugins = t.Plugins || {}, l = () => n !== null ? n.name : Cs(e), r = () => l() !== "web", o = (m) => {
283
+ const f = d.get(m);
284
+ return !!(f?.platforms.has(l()) || s(m));
285
+ }, s = (m) => {
286
+ var f;
287
+ return (f = t.PluginHeaders) === null || f === void 0 ? void 0 : f.find((h2) => h2.name === m);
288
+ }, i = (m) => e.console.error(m), d = /* @__PURE__ */ new Map(), c = (m, f = {}) => {
289
+ const h2 = d.get(m);
290
+ if (h2)
291
+ return console.warn(`Capacitor plugin "${m}" already registered. Cannot register plugins twice.`), h2.proxy;
292
+ const g = l(), b = s(m);
293
+ let L;
294
+ const E = async () => (!L && g in f ? L = typeof f[g] == "function" ? L = await f[g]() : L = f[g] : n !== null && !L && "web" in f && (L = typeof f.web == "function" ? L = await f.web() : L = f.web), L), _ = (j, J) => {
295
+ var O, S;
296
+ if (b) {
297
+ const D = b?.methods.find((T) => J === T.name);
298
+ if (D)
299
+ return D.rtype === "promise" ? (T) => t.nativePromise(m, J.toString(), T) : (T, V) => t.nativeCallback(m, J.toString(), T, V);
300
+ if (j)
301
+ return (O = j[J]) === null || O === void 0 ? void 0 : O.bind(j);
302
+ } else {
303
+ if (j)
304
+ return (S = j[J]) === null || S === void 0 ? void 0 : S.bind(j);
305
+ throw new yt(`"${m}" plugin is not implemented on ${g}`, ze.Unimplemented);
306
+ }
307
+ }, p = (j) => {
308
+ let J;
309
+ const O = (...S) => {
310
+ const D = E().then((T) => {
311
+ const V = _(T, j);
312
+ if (V) {
313
+ const le = V(...S);
314
+ return J = le?.remove, le;
315
+ } else
316
+ throw new yt(`"${m}.${j}()" is not implemented on ${g}`, ze.Unimplemented);
317
+ });
318
+ return j === "addListener" && (D.remove = async () => J()), D;
319
+ };
320
+ return O.toString = () => `${j.toString()}() { [capacitor code] }`, Object.defineProperty(O, "name", {
321
+ value: j,
322
+ writable: false,
323
+ configurable: false
324
+ }), O;
325
+ }, C = p("addListener"), k = p("removeListener"), K = (j, J) => {
326
+ const O = C({ eventName: j }, J), S = async () => {
327
+ const T = await O;
328
+ k({
329
+ eventName: j,
330
+ callbackId: T
331
+ }, J);
332
+ }, D = new Promise((T) => O.then(() => T({ remove: S })));
333
+ return D.remove = async () => {
334
+ console.warn("Using addListener() without 'await' is deprecated."), await S();
335
+ }, D;
336
+ }, G = new Proxy({}, {
337
+ get(j, J) {
338
+ switch (J) {
339
+ // https://github.com/facebook/react/issues/20030
340
+ case "$$typeof":
341
+ return;
342
+ case "toJSON":
343
+ return () => ({});
344
+ case "addListener":
345
+ return b ? K : C;
346
+ case "removeListener":
347
+ return k;
348
+ default:
349
+ return p(J);
350
+ }
351
+ }
352
+ });
353
+ return a[m] = G, d.set(m, {
354
+ name: m,
355
+ proxy: G,
356
+ platforms: /* @__PURE__ */ new Set([...Object.keys(f), ...b ? [g] : []])
357
+ }), G;
358
+ };
359
+ return t.convertFileSrc || (t.convertFileSrc = (m) => m), t.getPlatform = l, t.handleError = i, t.isNativePlatform = r, t.isPluginAvailable = o, t.registerPlugin = c, t.Exception = yt, t.DEBUG = !!t.DEBUG, t.isLoggingEnabled = !!t.isLoggingEnabled, t;
360
+ }, xs = (e) => e.Capacitor = ws(e), Tt = /* @__PURE__ */ xs(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), Vt = Tt.registerPlugin;
361
+ class Nn {
362
+ constructor() {
363
+ this.listeners = {}, this.retainedEventArguments = {}, this.windowListeners = {};
364
+ }
365
+ addListener(n, t) {
366
+ let a = false;
367
+ this.listeners[n] || (this.listeners[n] = [], a = true), this.listeners[n].push(t);
368
+ const r = this.windowListeners[n];
369
+ r && !r.registered && this.addWindowListener(r), a && this.sendRetainedArgumentsForEvent(n);
370
+ const o = async () => this.removeListener(n, t);
371
+ return Promise.resolve({ remove: o });
372
+ }
373
+ async removeAllListeners() {
374
+ this.listeners = {};
375
+ for (const n in this.windowListeners)
376
+ this.removeWindowListener(this.windowListeners[n]);
377
+ this.windowListeners = {};
378
+ }
379
+ notifyListeners(n, t, a) {
380
+ const l = this.listeners[n];
381
+ if (!l) {
382
+ if (a) {
383
+ let r = this.retainedEventArguments[n];
384
+ r || (r = []), r.push(t), this.retainedEventArguments[n] = r;
385
+ }
386
+ return;
387
+ }
388
+ l.forEach((r) => r(t));
389
+ }
390
+ hasListeners(n) {
391
+ return !!this.listeners[n].length;
392
+ }
393
+ registerWindowListener(n, t) {
394
+ this.windowListeners[t] = {
395
+ registered: false,
396
+ windowEventName: n,
397
+ pluginEventName: t,
398
+ handler: (a) => {
399
+ this.notifyListeners(t, a);
400
+ }
401
+ };
402
+ }
403
+ unimplemented(n = "not implemented") {
404
+ return new Tt.Exception(n, ze.Unimplemented);
405
+ }
406
+ unavailable(n = "not available") {
407
+ return new Tt.Exception(n, ze.Unavailable);
408
+ }
409
+ async removeListener(n, t) {
410
+ const a = this.listeners[n];
411
+ if (!a)
412
+ return;
413
+ const l = a.indexOf(t);
414
+ this.listeners[n].splice(l, 1), this.listeners[n].length || this.removeWindowListener(this.windowListeners[n]);
415
+ }
416
+ addWindowListener(n) {
417
+ window.addEventListener(n.windowEventName, n.handler), n.registered = true;
418
+ }
419
+ removeWindowListener(n) {
420
+ n && (window.removeEventListener(n.windowEventName, n.handler), n.registered = false);
421
+ }
422
+ sendRetainedArgumentsForEvent(n) {
423
+ const t = this.retainedEventArguments[n];
424
+ t && (delete this.retainedEventArguments[n], t.forEach((a) => {
425
+ this.notifyListeners(n, a);
426
+ }));
427
+ }
428
+ }
429
+ const gn = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), yn = (e) => e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
430
+ class Ss extends Nn {
431
+ async getCookies() {
432
+ const n = document.cookie, t = {};
433
+ return n.split(";").forEach((a) => {
434
+ if (a.length <= 0)
435
+ return;
436
+ let [l, r] = a.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
437
+ l = yn(l).trim(), r = yn(r).trim(), t[l] = r;
438
+ }), t;
439
+ }
440
+ async setCookie(n) {
441
+ try {
442
+ const t = gn(n.key), a = gn(n.value), l = `; expires=${(n.expires || "").replace("expires=", "")}`, r = (n.path || "/").replace("path=", ""), o = n.url != null && n.url.length > 0 ? `domain=${n.url}` : "";
443
+ document.cookie = `${t}=${a || ""}${l}; path=${r}; ${o};`;
444
+ } catch (t) {
445
+ return Promise.reject(t);
446
+ }
447
+ }
448
+ async deleteCookie(n) {
449
+ try {
450
+ document.cookie = `${n.key}=; Max-Age=0`;
451
+ } catch (t) {
452
+ return Promise.reject(t);
453
+ }
454
+ }
455
+ async clearCookies() {
456
+ try {
457
+ const n = document.cookie.split(";") || [];
458
+ for (const t of n)
459
+ document.cookie = t.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
460
+ } catch (n) {
461
+ return Promise.reject(n);
462
+ }
463
+ }
464
+ async clearAllCookies() {
465
+ try {
466
+ await this.clearCookies();
467
+ } catch (n) {
468
+ return Promise.reject(n);
469
+ }
470
+ }
471
+ }
472
+ Vt("CapacitorCookies", {
473
+ web: () => new Ss()
474
+ });
475
+ const ks = async (e) => new Promise((n, t) => {
476
+ const a = new FileReader();
477
+ a.onload = () => {
478
+ const l = a.result;
479
+ n(l.indexOf(",") >= 0 ? l.split(",")[1] : l);
480
+ }, a.onerror = (l) => t(l), a.readAsDataURL(e);
481
+ }), _s = (e = {}) => {
482
+ const n = Object.keys(e);
483
+ return Object.keys(e).map((l) => l.toLocaleLowerCase()).reduce((l, r, o) => (l[r] = e[n[o]], l), {});
484
+ }, Ps = (e, n = true) => e ? Object.entries(e).reduce((a, l) => {
485
+ const [r, o] = l;
486
+ let s, i;
487
+ return Array.isArray(o) ? (i = "", o.forEach((d) => {
488
+ s = n ? encodeURIComponent(d) : d, i += `${r}=${s}&`;
489
+ }), i.slice(0, -1)) : (s = n ? encodeURIComponent(o) : o, i = `${r}=${s}`), `${a}&${i}`;
490
+ }, "").substr(1) : null, Os = (e, n = {}) => {
491
+ const t = Object.assign({ method: e.method || "GET", headers: e.headers }, n), l = _s(e.headers)["content-type"] || "";
492
+ if (typeof e.data == "string")
493
+ t.body = e.data;
494
+ else if (l.includes("application/x-www-form-urlencoded")) {
495
+ const r = new URLSearchParams();
496
+ for (const [o, s] of Object.entries(e.data || {}))
497
+ r.set(o, s);
498
+ t.body = r.toString();
499
+ } else if (l.includes("multipart/form-data") || e.data instanceof FormData) {
500
+ const r = new FormData();
501
+ if (e.data instanceof FormData)
502
+ e.data.forEach((s, i) => {
503
+ r.append(i, s);
504
+ });
505
+ else
506
+ for (const s of Object.keys(e.data))
507
+ r.append(s, e.data[s]);
508
+ t.body = r;
509
+ const o = new Headers(t.headers);
510
+ o.delete("content-type"), t.headers = o;
511
+ } else (l.includes("application/json") || typeof e.data == "object") && (t.body = JSON.stringify(e.data));
512
+ return t;
513
+ };
514
+ class Ts extends Nn {
515
+ /**
516
+ * Perform an Http request given a set of options
517
+ * @param options Options to build the HTTP request
518
+ */
519
+ async request(n) {
520
+ const t = Os(n, n.webFetchExtra), a = Ps(n.params, n.shouldEncodeUrlParams), l = a ? `${n.url}?${a}` : n.url, r = await fetch(l, t), o = r.headers.get("content-type") || "";
521
+ let { responseType: s = "text" } = r.ok ? n : {};
522
+ o.includes("application/json") && (s = "json");
523
+ let i, d;
524
+ switch (s) {
525
+ case "arraybuffer":
526
+ case "blob":
527
+ d = await r.blob(), i = await ks(d);
528
+ break;
529
+ case "json":
530
+ i = await r.json();
531
+ break;
532
+ case "document":
533
+ case "text":
534
+ default:
535
+ i = await r.text();
536
+ }
537
+ const c = {};
538
+ return r.headers.forEach((m, f) => {
539
+ c[f] = m;
540
+ }), {
541
+ data: i,
542
+ headers: c,
543
+ status: r.status,
544
+ url: r.url
545
+ };
546
+ }
547
+ /**
548
+ * Perform an Http GET request given a set of options
549
+ * @param options Options to build the HTTP request
550
+ */
551
+ async get(n) {
552
+ return this.request(Object.assign(Object.assign({}, n), { method: "GET" }));
553
+ }
554
+ /**
555
+ * Perform an Http POST request given a set of options
556
+ * @param options Options to build the HTTP request
557
+ */
558
+ async post(n) {
559
+ return this.request(Object.assign(Object.assign({}, n), { method: "POST" }));
560
+ }
561
+ /**
562
+ * Perform an Http PUT request given a set of options
563
+ * @param options Options to build the HTTP request
564
+ */
565
+ async put(n) {
566
+ return this.request(Object.assign(Object.assign({}, n), { method: "PUT" }));
567
+ }
568
+ /**
569
+ * Perform an Http PATCH request given a set of options
570
+ * @param options Options to build the HTTP request
571
+ */
572
+ async patch(n) {
573
+ return this.request(Object.assign(Object.assign({}, n), { method: "PATCH" }));
574
+ }
575
+ /**
576
+ * Perform an Http DELETE request given a set of options
577
+ * @param options Options to build the HTTP request
578
+ */
579
+ async delete(n) {
580
+ return this.request(Object.assign(Object.assign({}, n), { method: "DELETE" }));
581
+ }
582
+ }
583
+ Vt("CapacitorHttp", {
584
+ web: () => new Ts()
585
+ });
586
+ const Is = Vt("Preferences", {
587
+ web: () => import("./web-BF3ijvEr.js").then((e) => new e.PreferencesWeb())
588
+ });
589
+ class Ls {
590
+ constructor(n) {
591
+ this.sessionState = n, this.listeners = [];
592
+ }
593
+ get state() {
594
+ return this.sessionState;
595
+ }
596
+ set(n) {
597
+ this.sessionState.token = n.accessToken, this.sessionState.userId = n._id, this.sessionState.roles = n.roles, this.sessionState.accesses = n.accesses || [], this.emit("change", this.sessionState);
598
+ }
599
+ clear() {
600
+ this.sessionState.token = null, this.sessionState.userId = null, this.sessionState.roles = null, this.sessionState.accesses = [], this.emit("change", this.sessionState);
601
+ }
602
+ hydrate(n) {
603
+ n && (this.sessionState.token = n.accessToken, this.sessionState.userId = n._id, this.sessionState.roles = n.roles, this.sessionState.accesses = n.accesses || []);
604
+ }
605
+ isAuthenticated() {
606
+ return !!this.sessionState.token;
607
+ }
608
+ getAccesses() {
609
+ return this.sessionState.accesses;
610
+ }
611
+ getUserId() {
612
+ return this.sessionState.userId;
613
+ }
614
+ onChange(n) {
615
+ this.listeners.push(n);
616
+ }
617
+ emit(n, t) {
618
+ this.listeners.forEach((a) => a(n, t));
619
+ }
620
+ }
621
+ function Es(e, n, t) {
622
+ e.forEach((a) => {
623
+ const l = n[a], r = l.split(",").map(Number);
624
+ let o;
625
+ a === "--white" ? o = r.map((s) => 255 - s / 1.075) : a === "--black" ? o = r.map((s) => 255 - s) : a === "--grey" ? o = r.map((s) => 255 - s * 2) : o = r.map((s) => 255 - s / 1.075), document.documentElement.style.setProperty(a, t ? o.join(", ") : l);
626
+ });
627
+ }
628
+ function bn() {
629
+ const e = reactive({
630
+ loading: false,
631
+ isOpenLocationPopup: false,
632
+ isOpenSidebar: false,
633
+ position: null,
634
+ search: null,
635
+ theme: {
636
+ darkmode: false
637
+ },
638
+ navigation_bar: {
639
+ name: null,
640
+ actions: null
641
+ },
642
+ error: {
643
+ status: "",
644
+ headers: "",
645
+ data: "",
646
+ show: false,
647
+ name: "",
648
+ message: ""
649
+ },
650
+ snack: {
651
+ show: false,
652
+ type: "notification",
653
+ message: "",
654
+ duration: 3e3
655
+ },
656
+ // Session state - данные сессии хранятся здесь
657
+ session: {
658
+ token: null,
659
+ userId: null,
660
+ roles: null,
661
+ accesses: []
662
+ }
663
+ }), n = {
664
+ setLoading(r) {
665
+ e.loading = r;
666
+ },
667
+ // Black/White Theme
668
+ async setTheme(r) {
669
+ e.theme.rootElement || (e.theme.rootElement = document.documentElement);
670
+ const o = e.theme.rootElement;
671
+ e.theme.darkmode = r, await Is.set({
672
+ key: "darkmode",
673
+ value: JSON.stringify(e.theme.darkmode)
674
+ }), r ? o.classList.add("dark-theme") : o.classList.remove("dark-theme");
675
+ const s = ["--white", "--light", "--grey", "--dark", "--black"];
676
+ if (!e.theme.originalColors) {
677
+ e.theme.originalColors = {};
678
+ const i = getComputedStyle(o);
679
+ s.forEach((d) => {
680
+ e.theme.originalColors[d] = i.getPropertyValue(d).trim();
681
+ });
682
+ }
683
+ r ? Es(s, e.theme.originalColors, r) : s.forEach((i) => {
684
+ o.style.setProperty(i, e.theme.originalColors[i]);
685
+ });
686
+ },
687
+ toggleTheme() {
688
+ this.setTheme(!e.theme.darkmode);
689
+ },
690
+ add(r, o) {
691
+ const s = r.findIndex((i) => i._id === o._id);
692
+ s === -1 ? r.push(o) : r[s] = o;
693
+ },
694
+ update(r, o) {
695
+ const s = r.findIndex((i) => i._id === o._id);
696
+ s === -1 ? r.push(o) : Object.assign(r[s], o);
697
+ },
698
+ delete(r, o) {
699
+ const s = r.findIndex((i) => i._id === o._id);
700
+ s !== -1 && r.splice(s, 1);
701
+ },
702
+ increment(r, o) {
703
+ console.log(r), console.log(o);
704
+ const s = r.find((i) => i._id === o._id);
705
+ s && s.quantity++;
706
+ },
707
+ decrement(r, o) {
708
+ const s = r.find((d) => d._id === o._id), i = r.indexOf(s);
709
+ i > -1 && (s.quantity--, s.quantity < 1 && r.splice(i, 1));
710
+ },
711
+ reset(r) {
712
+ }
713
+ }, t = new Ls(e.session), a = reactive({
714
+ modules: [],
715
+ // Core module registered by default
716
+ core: { state: e, actions: n, session: t },
717
+ addStore(r, o) {
718
+ this[r] = o, this.modules.push(r);
719
+ },
720
+ async getInitialState() {
721
+ const r = {};
722
+ for (const [o, s] of Object.entries(this))
723
+ o !== "modules" && o !== "addStore" && o !== "getInitialState" && o !== "setInitialState" && s.state && (r[o] = JSON.parse(JSON.stringify(s.state)));
724
+ return r;
725
+ },
726
+ async setInitialState(r, o = false) {
727
+ const s = Object.entries(r);
728
+ for (const [i, d] of s)
729
+ this[i] && this[i].state && (o ? Object.assign(this[i].state, d) : l(this[i].state, d));
730
+ }
731
+ });
732
+ function l(r, o) {
733
+ const s = Object.keys(o);
734
+ for (let i = 0; i < s.length; i++) {
735
+ const d = s[i], c = o[d];
736
+ c !== null && typeof c == "object" && !Array.isArray(c) && isReactive(r[d]) ? l(r[d], c) : r[d] = c;
737
+ }
738
+ }
739
+ return a;
740
+ }
741
+ let bt = null;
742
+ function ot() {
743
+ return typeof window > "u" ? (console.warn("[WARN] SSR store not in AsyncLocalStorage, creating new store instance"), bn()) : (bt || (bt = bn()), bt);
744
+ }
745
+ ot();
746
+ const Li = {
747
+ props: {
748
+ fill: {
749
+ type: String,
750
+ default: "rgb(var(--black)"
751
+ }
752
+ }
753
+ }, Ei = {
754
+ xmlns: "http://www.w3.org/2000/svg",
755
+ width: "80",
756
+ height: "80",
757
+ viewBox: "0 0 80 80",
758
+ fill: "none"
759
+ }, Di = ["fill"];
760
+ function Mi(e, n, t, a, l, r) {
761
+ return openBlock(), createElementBlock("svg", Ei, [
762
+ createElementVNode("path", {
763
+ fill: t.fill,
764
+ d: "M25.2765 9.37509L29.0265 5.93759C30.589 4.53134 32.9327 4.68759 34.339 6.25009L63.2453 37.8126C64.339 39.0626 64.339 40.9376 63.2453 42.1876L34.339 73.7501C32.9327 75.3126 30.589 75.4689 29.0265 74.0626L25.2765 70.6251C23.714 69.3751 23.5577 66.8751 24.964 65.4689L48.4015 40.0001L24.964 14.5313C23.5577 13.1251 23.714 10.6251 25.2765 9.37509Z"
765
+ }, null, 8, Di)
766
+ ]);
767
+ }
768
+ const Ai = /* @__PURE__ */ fe(Li, [["render", Mi]]);
769
+ defineComponent({
770
+ props: {},
771
+ setup(e, { slots: n }) {
772
+ return () => {
773
+ const t = n.default ? n.default() : [], a = [], l = [];
774
+ return t.forEach((r) => {
775
+ r.toString(), r.props && r.props.icon ? a.push(r) : l.push(r);
776
+ }), h(
777
+ "div",
778
+ {
779
+ class: [
780
+ "w-100",
781
+ "t-left",
782
+ "flex-nowrap",
783
+ "flex-v-center",
784
+ "flex",
785
+ "border-bottom-except-last"
786
+ ]
787
+ },
788
+ [
789
+ // Conditionally include the div for iconSlot
790
+ ...a.length ? [
791
+ h(
792
+ "div",
793
+ {
794
+ class: ["mn-b-thin", "mn-t-thin", "flex-center", "flex", "mn-r-small", "flex-child", "flex-child-shrink-0", "i-big", "bg-main", "radius-thin"]
795
+ },
796
+ a
797
+ )
798
+ ] : [],
799
+ h(
800
+ "div",
801
+ {
802
+ class: ["w-100", "mn-b-thin", "mn-t-thin", "mn-r-small", "i-big", "flex-v-center", "flex"]
803
+ },
804
+ [
805
+ h(
806
+ "span",
807
+ {
808
+ class: ["p-medium", "t-medium", "mn-r-auto"]
809
+ },
810
+ l
811
+ )
812
+ ]
813
+ ),
814
+ h(Ai, { class: "i-medium mn-r-medium", type: "chevron" })
815
+ ]
816
+ );
817
+ };
818
+ }
819
+ });
820
+ const cu = {
821
+ class: "marquee",
822
+ "aria-hidden": true
823
+ }, fu = {
824
+ __name: "Marquee",
825
+ props: {
826
+ vertical: { type: Boolean, default: false },
827
+ direction: { type: String, default: "normal" },
828
+ duration: { type: Number, default: 20 },
829
+ delay: { type: Number, default: 0 },
830
+ loop: { type: Number, default: 0 },
831
+ clone: { type: Boolean, default: false },
832
+ gradient: { type: Boolean, default: false },
833
+ gradientColor: { type: [Array, String], default: () => [255, 255, 255] },
834
+ gradientLength: { type: String },
835
+ pauseOnHover: { type: Boolean, default: false },
836
+ pauseOnClick: { type: Boolean, default: false },
837
+ pause: { type: Boolean, default: false }
838
+ },
839
+ emits: ["onComplete", "onLoopComplete", "onPause", "onResume"],
840
+ setup(e, { emit: n }) {
841
+ const t = e, a = n, l = ref(false), r = ref(0), o = ref(0), s = ref(null), i = ref(null), d = ref(null), c = ref(null), m = ref({ width: 0, height: 0 }), f = ref("100%"), h2 = ref(0), g = ref(0), b = ref("100%"), L = ref(0), E = ref(0), _ = ref("200px"), p = ref(false), C = ref(null), k = ref(null), K = async () => {
842
+ t.vertical && (p.value = true), await nextTick();
843
+ const T = () => {
844
+ if (f.value = "0%", b.value = "0%", C.value !== null && k.value !== null)
845
+ if (C.value && k.value)
846
+ if (t.vertical && "clientHeight" in C.value && "clientHeight" in k.value) {
847
+ E.value = C.value.clientHeight, L.value = k.value.clientHeight;
848
+ const V = Math.ceil(L.value / E.value);
849
+ return r.value = isFinite(V) ? V : 0, p.value = false, r.value;
850
+ } else if (!t.vertical && "clientWidth" in C.value && "clientWidth" in k.value) {
851
+ g.value = C.value.clientWidth, h2.value = k.value.clientWidth;
852
+ const V = Math.ceil(h2.value / g.value);
853
+ return r.value = isFinite(V) ? V : 0, r.value;
854
+ } else
855
+ return f.value = "100%", b.value = "100%", 0;
856
+ else
857
+ return f.value = "100%", b.value = "100%", 0;
858
+ else
859
+ return f.value = "100%", b.value = "100%", 0;
860
+ };
861
+ T(), typeof ResizeObserver < "u" && k.value ? (i.value && i.value.disconnect(), i.value = new ResizeObserver((V) => {
862
+ const le = V[0], ne = le.contentRect.width, oe = le.contentRect.height, be = Math.abs(ne - m.value.width) > 1, Fe = Math.abs(oe - m.value.height) > 1;
863
+ (be || Fe) && (m.value = { width: ne, height: oe }, clearTimeout(c.value), c.value = setTimeout(() => {
864
+ T();
865
+ }, 300));
866
+ }), i.value.observe(k.value)) : (d.value && clearInterval(d.value), d.value = setTimeout(() => {
867
+ T(), d.value = null;
868
+ }, 500));
869
+ }, G = () => {
870
+ t.pauseOnHover && a("onPause");
871
+ }, j = () => {
872
+ t.pauseOnHover && a("onResume");
873
+ }, J = () => {
874
+ t.pauseOnClick && a("onPause");
875
+ }, O = () => {
876
+ t.pauseOnClick && a("onResume");
877
+ }, S = computed(() => ({
878
+ "--loops": `${t.loop === 0 ? "infinite" : t.loop}`,
879
+ "--duration": `${t.duration}s`,
880
+ "--delay": `${t.delay}s`,
881
+ "--direction": `${t.direction}`,
882
+ "--pauseOnHover": `${t.pauseOnHover ? "paused" : "running"}`,
883
+ "--pauseOnClick": `${t.pauseOnClick ? "paused" : "running"}`,
884
+ "--pauseAnimation": `${t.vertical && p.value || t.pause ? "paused" : "running"}`,
885
+ "--gradient-color": t.gradientColor,
886
+ "--gradient-length": `${_.value}`,
887
+ "--min-width": `${f.value}`,
888
+ "--min-height": `${b.value}`,
889
+ "--orientation": t.vertical ? "scrollY" : "scrollX"
890
+ })), D = async () => {
891
+ t.vertical ? (b.value = "100%", f.value = "auto") : (b.value = "auto", f.value = "100%"), t.gradient && t.gradientLength && (_.value = t.gradientLength), t.clone && await K(), l.value = true;
892
+ };
893
+ return onMounted(async () => {
894
+ D(), s.value = setInterval(() => {
895
+ o.value++, t.loop !== 0 && o.value === t.loop && (a("onComplete"), clearInterval(s.value)), a("onLoopComplete");
896
+ }, t.duration * 1e3);
897
+ }), onBeforeUnmount(() => {
898
+ clearInterval(s.value), i.value && (i.value.disconnect(), i.value = null), d.value && (clearInterval(d.value), d.value = null), c.value && (clearTimeout(c.value), c.value = null);
899
+ }), watch(
900
+ () => t.pause,
901
+ (T, V) => {
902
+ T !== V && a(T ? "onPause" : "onResume");
903
+ }
904
+ ), (T, V) => l.value ? (openBlock(), createElementBlock("div", {
905
+ key: 0,
906
+ class: normalizeClass(["vue3-marquee", { vertical: e.vertical, horizontal: !e.vertical }]),
907
+ style: normalizeStyle(S.value),
908
+ onMouseenter: G,
909
+ onMouseleave: j,
910
+ onMousedown: J,
911
+ onMouseup: O
912
+ }, [
913
+ createElementVNode("div", {
914
+ class: normalizeClass(["transparent-overlay", { vertical: e.vertical, horizontal: !e.vertical, overlay: e.gradient }]),
915
+ ref_key: "marqueeOverlayContainer",
916
+ ref: k,
917
+ "aria-hidden": true
918
+ }, null, 2),
919
+ createElementVNode("div", {
920
+ class: "marquee",
921
+ ref_key: "marqueeContent",
922
+ ref: C
923
+ }, [
924
+ renderSlot(T.$slots, "default")
925
+ ], 512),
926
+ createElementVNode("div", cu, [
927
+ renderSlot(T.$slots, "default")
928
+ ]),
929
+ (openBlock(true), createElementBlock(Fragment, null, renderList(r.value, (le) => (openBlock(), createElementBlock("div", {
930
+ key: le,
931
+ "aria-hidden": true,
932
+ class: "marquee cloned"
933
+ }, [
934
+ renderSlot(T.$slots, "default")
935
+ ]))), 128))
936
+ ], 38)) : createCommentVNode("", true);
937
+ }
938
+ };
939
+ export {
940
+ Nn as W,
941
+ fu as r
942
+ };
943
+ //# sourceMappingURL=main-B9o1iBAZ.js.map