@ozdao/prometheus-framework 0.2.128 → 0.2.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (396) hide show
  1. package/LICENSE +1 -1
  2. package/dist/auth.server.js +12 -14
  3. package/dist/auth.server.mjs +12 -14
  4. package/dist/community.server.js +1 -1
  5. package/dist/community.server.mjs +1 -1
  6. package/dist/events.server.js +1 -1
  7. package/dist/events.server.mjs +1 -1
  8. package/dist/files.server.js +1 -1
  9. package/dist/files.server.mjs +1 -1
  10. package/dist/gallery.server.js +6 -2
  11. package/dist/gallery.server.mjs +6 -2
  12. package/dist/{index-BCCiEK_u.js → index-BshfsiQG.js} +8 -4
  13. package/dist/{index-B6a1mPgp.mjs → index-DKtnWDNC.mjs} +8 -4
  14. package/dist/{main-CmL_j3wv.mjs → main-DvdaURTh.mjs} +3261 -3154
  15. package/dist/main-hLtpe4Hr.js +92 -0
  16. package/dist/main.css +1 -1
  17. package/dist/middlewares.server.js +1 -1
  18. package/dist/middlewares.server.mjs +1 -1
  19. package/dist/node_modules/zod/lib/index.cjs +1 -1
  20. package/dist/node_modules/zod/lib/index.js +1162 -1033
  21. package/dist/orders.server.js +1 -1
  22. package/dist/orders.server.mjs +1 -1
  23. package/dist/organizations.server.js +1 -1
  24. package/dist/organizations.server.mjs +1 -1
  25. package/dist/products.server.js +1 -1
  26. package/dist/products.server.mjs +1 -1
  27. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -1
  29. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +1 -89
  31. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  33. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +73 -0
  35. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +23 -22
  37. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +1 -27
  39. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +27 -1
  41. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -58
  43. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +58 -1
  45. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +144 -112
  47. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -1
  51. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  52. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -127
  53. package/dist/prometheus-framework/src/components/Menu/MenuItem.vue.cjs +1 -0
  54. package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/MenuItem.vue.js +1 -1
  55. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue.js +6 -6
  57. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +77 -1
  59. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  60. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -77
  61. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
  63. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
  65. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  67. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  69. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/auth/store/auth.js +7 -6
  71. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +114 -77
  73. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -22
  75. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +62 -70
  77. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  83. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +17 -16
  85. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  86. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  87. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  89. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
  101. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +9 -9
  103. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +1 -0
  104. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +18 -0
  105. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -0
  106. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +46 -0
  107. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +20 -16
  109. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +10 -10
  113. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  115. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +27 -4
  117. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +14 -12
  119. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +111 -93
  123. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +13 -14
  127. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +20 -22
  133. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +5 -4
  137. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -0
  146. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +154 -0
  147. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  157. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -0
  158. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +27 -0
  159. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -7
  161. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +26 -27
  165. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  167. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +22 -23
  171. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +30 -29
  175. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +72 -51
  179. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +5 -5
  181. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +51 -53
  183. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +22 -22
  185. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  187. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +62 -48
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +43 -44
  193. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -5
  195. package/dist/prometheus-framework.cjs.js +1 -1
  196. package/dist/prometheus-framework.es.js +24 -25
  197. package/dist/reports.server.js +1 -1
  198. package/dist/reports.server.mjs +1 -1
  199. package/dist/style.css +1 -1
  200. package/dist/wallet.server.js +1 -1
  201. package/dist/wallet.server.mjs +1 -1
  202. package/dist/{web-Bk_OtXgv.js → web-CVIepGUM.js} +1 -1
  203. package/dist/{web-BHzpMOmk.mjs → web-Dt2JR41o.mjs} +1 -1
  204. package/package.json +3 -2
  205. package/src/{modules/mobile/components → components}/BottomSheet/BottomSheet.vue +24 -21
  206. package/src/components/Button/Button.vue +20 -3
  207. package/src/components/Feed/Feed.vue +28 -3
  208. package/src/components/FieldBig/FieldBig.vue +2 -2
  209. package/src/components/Sidebar/Sidebar.vue +13 -5
  210. package/src/components/index.js +0 -1
  211. package/src/main.js +0 -4
  212. package/src/modules/auth/controllers/auth.controller.js +14 -16
  213. package/src/modules/auth/router/auth.js +1 -4
  214. package/src/modules/auth/store/auth.js +28 -24
  215. package/src/modules/backoffice/components/pages/Dashboard.vue +29 -56
  216. package/src/modules/backoffice/router/backoffice.js +4 -15
  217. package/src/modules/community/components/blocks/CardBlogpost.vue +28 -26
  218. package/src/modules/community/components/layouts/Community.vue +1 -1
  219. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  220. package/src/modules/gallery/components/pages/Gallery.vue +1 -2
  221. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -1
  222. package/src/modules/gallery/router/gallery.backoffice.router.js +14 -0
  223. package/src/modules/globals/components/blocks/BlockFilter.vue +44 -0
  224. package/src/modules/globals/components/blocks/CardHeader.vue +5 -3
  225. package/src/modules/globals/components/layouts/Client.vue +99 -43
  226. package/src/modules/globals/components/pages/401.vue +5 -0
  227. package/src/modules/globals/components/pages/404.vue +5 -0
  228. package/src/modules/globals/components/partials/Footer.vue +17 -5
  229. package/src/modules/globals/components/partials/Header.vue +37 -18
  230. package/src/modules/globals/components/partials/Navigation.vue +7 -2
  231. package/src/modules/landing/components/sections/MobileApp.vue +2 -2
  232. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  233. package/src/modules/landing/router/landing.js +2 -12
  234. package/src/modules/legal/components/pages/Legal.vue +2 -2
  235. package/src/modules/marketplace/components/layouts/Marketplace.vue +30 -13
  236. package/src/modules/marketplace/components/pages/Catalog.vue +2 -1
  237. package/src/modules/marketplace/router/marketplace.js +12 -10
  238. package/src/modules/marketplace/store/marketplace.js +25 -1
  239. package/src/modules/middlewares/client/auth.validation.js +5 -2
  240. package/src/modules/middlewares/server/authJwt.js +12 -6
  241. package/src/modules/middlewares/server/verifyAccesses.js +7 -3
  242. package/src/modules/orders/components/pages/OrderCreate.vue +34 -22
  243. package/src/modules/orders/components/sections/AskToLogin.vue +8 -7
  244. package/src/modules/orders/components/sections/FormDelivery.vue +6 -6
  245. package/src/modules/orders/router/orders.router.js +6 -3
  246. package/src/modules/organizations/components/pages/Members.vue +2 -2
  247. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  248. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +204 -0
  249. package/src/modules/organizations/router/backoffice.router.js +25 -0
  250. package/src/modules/organizations/router/organizations.js +3 -1
  251. package/src/modules/pages/router/pages.router.js +15 -0
  252. package/src/modules/products/components/blocks/ImagesThumbnails.vue +11 -12
  253. package/src/modules/products/components/pages/Product.vue +7 -3
  254. package/src/modules/products/components/pages/ProductRecommmendation.vue +6 -5
  255. package/src/modules/products/components/sections/FilterProducts.vue +6 -6
  256. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  257. package/src/modules/products/components/sections/PopularProducts.vue +1 -3
  258. package/src/modules/products/components/sections/SectionProduct.vue +8 -8
  259. package/src/modules/spots/components/layouts/Spots.vue +33 -31
  260. package/src/modules/spots/components/pages/Map.vue +380 -353
  261. package/src/modules/spots/router/spots.js +3 -1
  262. package/src/modules/users/components/pages/Profile.vue +4 -4
  263. package/src/modules/users/components/pages/ProfileEdit.vue +4 -3
  264. package/src/modules/wallet/controllers/routes/payments.routes.js +0 -1
  265. package/src/styles/base/all.scss +4 -0
  266. package/src/styles/config.scss +2 -1
  267. package/src/styles/layout.scss +0 -1
  268. package/dist/credentials.schema-CDZCKfEI.mjs +0 -106
  269. package/dist/credentials.schema-CfhPcsuI.js +0 -105
  270. package/dist/index-CGIn4v5E.mjs +0 -217
  271. package/dist/index-CL9l0HRS.js +0 -216
  272. package/dist/main-8APITHuW.mjs +0 -14201
  273. package/dist/main-8N2Jmsuk.js +0 -91
  274. package/dist/main-BJvlNekm.mjs +0 -13631
  275. package/dist/main-BQisDfLk.js +0 -92
  276. package/dist/main-BV1Yv9Hy.js +0 -92
  277. package/dist/main-Ba3zK8PO.js +0 -92
  278. package/dist/main-Btlny-89.mjs +0 -14207
  279. package/dist/main-Bw0PvTs-.mjs +0 -13616
  280. package/dist/main-ByCtZbHD.mjs +0 -13752
  281. package/dist/main-CF35oB7q.js +0 -92
  282. package/dist/main-CX2ISR43.mjs +0 -13629
  283. package/dist/main-CXObXjv-.js +0 -92
  284. package/dist/main-CkeuHuCY.mjs +0 -13619
  285. package/dist/main-CnfcBov2.mjs +0 -13740
  286. package/dist/main-D0va05OD.js +0 -92
  287. package/dist/main-D50VqYhy.js +0 -91
  288. package/dist/main-D8gNZLSa.js +0 -92
  289. package/dist/main-DL3vRQCi.js +0 -92
  290. package/dist/main-DPsHxX0l.mjs +0 -13633
  291. package/dist/main-DTlUA63C.mjs +0 -13617
  292. package/dist/main-DfD5hLQo.mjs +0 -13633
  293. package/dist/main-Dh6Zfei9.js +0 -92
  294. package/dist/main-DmNP-t33.mjs +0 -13625
  295. package/dist/main-Ds3Z5x5d.mjs +0 -14206
  296. package/dist/main-DwyUYWFX.js +0 -92
  297. package/dist/main-VcxO-jAt.js +0 -92
  298. package/dist/main-cffh4bbv.js +0 -92
  299. package/dist/main-o_2eO2tP.mjs +0 -14208
  300. package/dist/main-pGo7JpSP.js +0 -92
  301. package/dist/metadata.schema-BLGSCSmy.mjs +0 -55
  302. package/dist/metadata.schema-Cu_mPkjE.js +0 -77
  303. package/dist/metadata.schema-DWR97jhW.js +0 -54
  304. package/dist/metadata.schema-cbFgazeK.mjs +0 -78
  305. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +0 -1
  306. package/dist/node_modules/@noble/hashes/esm/sha512.js +0 -126
  307. package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs +0 -7
  308. package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.js +0 -38
  309. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.cjs +0 -2
  310. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +0 -43
  311. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +0 -1
  312. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +0 -1
  313. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +0 -1
  314. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +0 -373
  315. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +0 -1
  316. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +0 -1
  317. package/dist/prometheus-framework/src/components/FieldPhone/utils.cjs +0 -1
  318. package/dist/prometheus-framework/src/components/FieldPhone/utils.js +0 -259
  319. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +0 -1
  320. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +0 -62
  321. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +0 -1
  322. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +0 -1
  323. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +0 -1
  324. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +0 -1
  325. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +0 -1
  326. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +0 -1
  327. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +0 -110
  328. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +0 -1
  329. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +0 -1
  330. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +0 -1
  331. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +0 -27
  332. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +0 -1
  333. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.js +0 -29
  334. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +0 -1
  335. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +0 -1
  336. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +0 -65
  337. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +0 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +0 -87
  339. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +0 -1
  340. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +0 -1
  341. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +0 -1
  342. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +0 -51
  343. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +0 -1
  344. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +0 -1
  345. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +0 -1
  346. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +0 -53
  347. package/dist/queryProcessor-BJdKh0Ow.mjs +0 -162
  348. package/dist/queryProcessor-BJoJAetd.mjs +0 -162
  349. package/dist/queryProcessor-BUDoM96e.js +0 -148
  350. package/dist/queryProcessor-Cl6sU582.mjs +0 -149
  351. package/dist/queryProcessor-DRMo_GWK.js +0 -161
  352. package/dist/queryProcessor-DWf9tsis.js +0 -161
  353. package/dist/web-B2xhKZNK.js +0 -1
  354. package/dist/web-B8tq3Fda.mjs +0 -54
  355. package/dist/web-BDaOF322.js +0 -1
  356. package/dist/web-BEJCRWop.mjs +0 -54
  357. package/dist/web-BNKN7kk3.mjs +0 -54
  358. package/dist/web-BX5um81l.js +0 -1
  359. package/dist/web-ByJkgGrt.js +0 -1
  360. package/dist/web-C0sFgeYh.mjs +0 -54
  361. package/dist/web-CQQEUA9l.js +0 -1
  362. package/dist/web-CQiHBOEN.mjs +0 -54
  363. package/dist/web-CXzcKdk4.mjs +0 -54
  364. package/dist/web-CciQvENI.js +0 -1
  365. package/dist/web-CkrMHYIU.js +0 -1
  366. package/dist/web-CtVocufd.js +0 -1
  367. package/dist/web-CvRd3N_J.mjs +0 -54
  368. package/dist/web-D0ugI6ra.js +0 -1
  369. package/dist/web-D2Em-p-C.mjs +0 -54
  370. package/dist/web-D9Cfcy5k.js +0 -1
  371. package/dist/web-DEysqj0n.js +0 -1
  372. package/dist/web-DNq1tHCE.mjs +0 -54
  373. package/dist/web-DTzbVshr.mjs +0 -54
  374. package/dist/web-Douq6xn6.js +0 -1
  375. package/dist/web-DtWmpLE-.mjs +0 -54
  376. package/dist/web-TGdVOTnw.js +0 -1
  377. package/dist/web-VFuzUsNl.mjs +0 -54
  378. package/dist/web-_W9a_nWD.mjs +0 -54
  379. package/dist/web-kg3KgbAF.js +0 -1
  380. package/dist/web-nVxTNRH4.mjs +0 -54
  381. package/src/components/Magnifier/Magnifier.vue +0 -89
  382. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.cjs +0 -0
  383. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.js +0 -0
  384. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.cjs +0 -0
  385. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.js +0 -0
  386. /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.cjs +0 -0
  387. /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.js +0 -0
  388. /package/src/{modules/mobile/components → components}/Menu/Menu.vue +0 -0
  389. /package/src/{modules/mobile/components → components}/Menu/MenuItem.vue +0 -0
  390. /package/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue +0 -0
  391. /package/src/modules/{mobile/components/BottomNavigation → globals/components/partials}/BottomNavigation.vue +0 -0
  392. /package/src/modules/{mobile/components/NavigationBar → globals/components/partials}/NavigationBar.vue +0 -0
  393. /package/src/modules/{mobile/components/Walkthrough → globals/components/sections}/Walkthrough.vue +0 -0
  394. /package/src/modules/{landing → pages}/components/pages/Page.vue +0 -0
  395. /package/src/modules/{backoffice/components/admin → pages/components/pages}/PageEdit.vue +0 -0
  396. /package/src/modules/{backoffice/components/admin → pages/components/pages}/Pages.vue +0 -0
@@ -1,55 +0,0 @@
1
- var common_schema = function applyCommonSchema(schema, db) {
2
- schema.add({
3
- status: {
4
- type: String,
5
- enum: ["draft", "published", "removed"],
6
- default: "draft",
7
- required: true
8
- }
9
- });
10
- };
11
- var engagement_schema = function applyEngagementSchema(schema, db) {
12
- schema.add({ views: { type: Number, default: 0 } });
13
- schema.post("aggregate", async function(docs) {
14
- if (docs.length === 0)
15
- return;
16
- console.log("Post-aggregate hook in engagement schema triggered");
17
- const model = this._model;
18
- if (!model) {
19
- console.error("No model is associated with this schema!");
20
- return;
21
- }
22
- try {
23
- await updateDocumentViews(docs, model);
24
- } catch (error) {
25
- console.error("Error updating views:", error);
26
- }
27
- });
28
- async function updateDocumentViews(docs, model) {
29
- const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
30
- { _id: doc._id },
31
- { $inc: { views: 1 } }
32
- ).exec());
33
- await Promise.all(updateViewsPromises);
34
- }
35
- };
36
- var metadata_schema = function applyMetadataSchema(schema, db) {
37
- schema.add({
38
- url: {
39
- type: String,
40
- required: true
41
- },
42
- tags: [{
43
- type: String
44
- }]
45
- });
46
- schema.index({
47
- "url": 1,
48
- "tags": 1
49
- });
50
- };
51
- export {
52
- common_schema as c,
53
- engagement_schema as e,
54
- metadata_schema as m
55
- };
@@ -1,77 +0,0 @@
1
- "use strict";
2
- var common_schema = function applyCommonSchema(schema, db) {
3
- schema.add({
4
- status: {
5
- type: String,
6
- enum: ["draft", "published", "removed"],
7
- default: "draft",
8
- required: true
9
- }
10
- });
11
- };
12
- var engagement_schema = function applyEngagementSchema(schema, db) {
13
- schema.add({ views: { type: Number, default: 0 } });
14
- schema.post("aggregate", async function(docs) {
15
- if (docs.length === 0)
16
- return;
17
- console.log("Post-aggregate hook in engagement schema triggered");
18
- const model = this._model;
19
- if (!model) {
20
- console.error("No model is associated with this schema!");
21
- return;
22
- }
23
- try {
24
- await updateDocumentViews(docs, model);
25
- } catch (error) {
26
- console.error("Error updating views:", error);
27
- }
28
- });
29
- async function updateDocumentViews(docs, model) {
30
- const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
31
- { _id: doc._id },
32
- { $inc: { views: 1 } }
33
- ).exec());
34
- await Promise.all(updateViewsPromises);
35
- }
36
- };
37
- function createFriendlyURL$1(str) {
38
- if (typeof str !== "string") {
39
- throw new Error("Входные данные должны быть строкой");
40
- }
41
- str = str.trim().toLowerCase();
42
- str = str.replace(/ /g, "-").replace(/[^\w-]+/g, "");
43
- str = str.replace(/-+/g, "-");
44
- str = str.replace(/^-+|-+$/g, "");
45
- return str;
46
- }
47
- var seoFriendlyUrl = createFriendlyURL$1;
48
- const createFriendlyURL = seoFriendlyUrl;
49
- var metadata_schema = function applyMetadataSchema(schema, db) {
50
- schema.add({
51
- url: {
52
- type: String,
53
- unique: true,
54
- required: true
55
- },
56
- tags: [{
57
- type: String
58
- }]
59
- });
60
- schema.pre("save", function(next) {
61
- if (!this.url) {
62
- const name = this.name || this.title || (this.profile ? this.profile.name : "");
63
- if (name) {
64
- this.url = createFriendlyURL(name);
65
- }
66
- }
67
- next();
68
- });
69
- schema.index({
70
- "url": 1,
71
- "tags": 1
72
- });
73
- };
74
- exports.common_schema = common_schema;
75
- exports.engagement_schema = engagement_schema;
76
- exports.metadata_schema = metadata_schema;
77
- exports.seoFriendlyUrl = seoFriendlyUrl;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var common_schema = function applyCommonSchema(schema, db) {
3
- schema.add({
4
- status: {
5
- type: String,
6
- enum: ["draft", "published", "removed"],
7
- default: "draft",
8
- required: true
9
- }
10
- });
11
- };
12
- var engagement_schema = function applyEngagementSchema(schema, db) {
13
- schema.add({ views: { type: Number, default: 0 } });
14
- schema.post("aggregate", async function(docs) {
15
- if (docs.length === 0)
16
- return;
17
- console.log("Post-aggregate hook in engagement schema triggered");
18
- const model = this._model;
19
- if (!model) {
20
- console.error("No model is associated with this schema!");
21
- return;
22
- }
23
- try {
24
- await updateDocumentViews(docs, model);
25
- } catch (error) {
26
- console.error("Error updating views:", error);
27
- }
28
- });
29
- async function updateDocumentViews(docs, model) {
30
- const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
31
- { _id: doc._id },
32
- { $inc: { views: 1 } }
33
- ).exec());
34
- await Promise.all(updateViewsPromises);
35
- }
36
- };
37
- var metadata_schema = function applyMetadataSchema(schema, db) {
38
- schema.add({
39
- url: {
40
- type: String,
41
- required: true
42
- },
43
- tags: [{
44
- type: String
45
- }]
46
- });
47
- schema.index({
48
- "url": 1,
49
- "tags": 1
50
- });
51
- };
52
- exports.common_schema = common_schema;
53
- exports.engagement_schema = engagement_schema;
54
- exports.metadata_schema = metadata_schema;
@@ -1,78 +0,0 @@
1
- var common_schema = function applyCommonSchema(schema, db) {
2
- schema.add({
3
- status: {
4
- type: String,
5
- enum: ["draft", "published", "removed"],
6
- default: "draft",
7
- required: true
8
- }
9
- });
10
- };
11
- var engagement_schema = function applyEngagementSchema(schema, db) {
12
- schema.add({ views: { type: Number, default: 0 } });
13
- schema.post("aggregate", async function(docs) {
14
- if (docs.length === 0)
15
- return;
16
- console.log("Post-aggregate hook in engagement schema triggered");
17
- const model = this._model;
18
- if (!model) {
19
- console.error("No model is associated with this schema!");
20
- return;
21
- }
22
- try {
23
- await updateDocumentViews(docs, model);
24
- } catch (error) {
25
- console.error("Error updating views:", error);
26
- }
27
- });
28
- async function updateDocumentViews(docs, model) {
29
- const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
30
- { _id: doc._id },
31
- { $inc: { views: 1 } }
32
- ).exec());
33
- await Promise.all(updateViewsPromises);
34
- }
35
- };
36
- function createFriendlyURL$1(str) {
37
- if (typeof str !== "string") {
38
- throw new Error("Входные данные должны быть строкой");
39
- }
40
- str = str.trim().toLowerCase();
41
- str = str.replace(/ /g, "-").replace(/[^\w-]+/g, "");
42
- str = str.replace(/-+/g, "-");
43
- str = str.replace(/^-+|-+$/g, "");
44
- return str;
45
- }
46
- var seoFriendlyUrl = createFriendlyURL$1;
47
- const createFriendlyURL = seoFriendlyUrl;
48
- var metadata_schema = function applyMetadataSchema(schema, db) {
49
- schema.add({
50
- url: {
51
- type: String,
52
- unique: true,
53
- required: true
54
- },
55
- tags: [{
56
- type: String
57
- }]
58
- });
59
- schema.pre("save", function(next) {
60
- if (!this.url) {
61
- const name = this.name || this.title || (this.profile ? this.profile.name : "");
62
- if (name) {
63
- this.url = createFriendlyURL(name);
64
- }
65
- }
66
- next();
67
- });
68
- schema.index({
69
- "url": 1,
70
- "tags": 1
71
- });
72
- };
73
- export {
74
- common_schema as c,
75
- engagement_schema as e,
76
- metadata_schema as m,
77
- seoFriendlyUrl as s
78
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./_sha2.cjs"),t=require("./_u64.cjs"),I=require("./utils.cjs"),[J,K]=t.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(y=>BigInt(y))),L=new Uint32Array(80),C=new Uint32Array(80);class T extends w.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:D,Al:g,Bh:a,Bl:d,Ch:l,Cl:h,Dh:s,Dl:b,Eh:u,El:n,Fh:c,Fl:f,Gh:x,Gl:i,Hh:r,Hl:o}=this;return[D,g,a,d,l,h,s,b,u,n,c,f,x,i,r,o]}set(D,g,a,d,l,h,s,b,u,n,c,f,x,i,r,o){this.Ah=D|0,this.Al=g|0,this.Bh=a|0,this.Bl=d|0,this.Ch=l|0,this.Cl=h|0,this.Dh=s|0,this.Dl=b|0,this.Eh=u|0,this.El=n|0,this.Fh=c|0,this.Fl=f|0,this.Gh=x|0,this.Gl=i|0,this.Hh=r|0,this.Hl=o|0}process(D,g){for(let e=0;e<16;e++,g+=4)L[e]=D.getUint32(g),C[e]=D.getUint32(g+=4);for(let e=16;e<80;e++){const A=L[e-15]|0,B=C[e-15]|0,m=t.default.rotrSH(A,B,1)^t.default.rotrSH(A,B,8)^t.default.shrSH(A,B,7),p=t.default.rotrSL(A,B,1)^t.default.rotrSL(A,B,8)^t.default.shrSL(A,B,7),H=L[e-2]|0,S=C[e-2]|0,G=t.default.rotrSH(H,S,19)^t.default.rotrBH(H,S,61)^t.default.shrSH(H,S,6),U=t.default.rotrSL(H,S,19)^t.default.rotrBL(H,S,61)^t.default.shrSL(H,S,6),_=t.default.add4L(p,U,C[e-7],C[e-16]),W=t.default.add4H(_,m,G,L[e-7],L[e-16]);L[e]=W|0,C[e]=_|0}let{Ah:a,Al:d,Bh:l,Bl:h,Ch:s,Cl:b,Dh:u,Dl:n,Eh:c,El:f,Fh:x,Fl:i,Gh:r,Gl:o,Hh:E,Hl:F}=this;for(let e=0;e<80;e++){const A=t.default.rotrSH(c,f,14)^t.default.rotrSH(c,f,18)^t.default.rotrBH(c,f,41),B=t.default.rotrSL(c,f,14)^t.default.rotrSL(c,f,18)^t.default.rotrBL(c,f,41),m=c&x^~c&r,p=f&i^~f&o,H=t.default.add5L(F,B,p,K[e],C[e]),S=t.default.add5H(H,E,A,m,J[e],L[e]),G=H|0,U=t.default.rotrSH(a,d,28)^t.default.rotrBH(a,d,34)^t.default.rotrBH(a,d,39),_=t.default.rotrSL(a,d,28)^t.default.rotrBL(a,d,34)^t.default.rotrBL(a,d,39),W=a&l^a&s^l&s,q=d&h^d&b^h&b;E=r|0,F=o|0,r=x|0,o=i|0,x=c|0,i=f|0,{h:c,l:f}=t.default.add(u|0,n|0,S|0,G|0),u=s|0,n=b|0,s=l|0,b=h|0,l=a|0,h=d|0;const M=t.default.add3L(G,_,q);a=t.default.add3H(M,S,U,W),d=M|0}({h:a,l:d}=t.default.add(this.Ah|0,this.Al|0,a|0,d|0)),{h:l,l:h}=t.default.add(this.Bh|0,this.Bl|0,l|0,h|0),{h:s,l:b}=t.default.add(this.Ch|0,this.Cl|0,s|0,b|0),{h:u,l:n}=t.default.add(this.Dh|0,this.Dl|0,u|0,n|0),{h:c,l:f}=t.default.add(this.Eh|0,this.El|0,c|0,f|0),{h:x,l:i}=t.default.add(this.Fh|0,this.Fl|0,x|0,i|0),{h:r,l:o}=t.default.add(this.Gh|0,this.Gl|0,r|0,o|0),{h:E,l:F}=t.default.add(this.Hh|0,this.Hl|0,E|0,F|0),this.set(a,d,l,h,s,b,u,n,c,f,x,i,r,o,E,F)}roundClean(){L.fill(0),C.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const j=I.wrapConstructor(()=>new T);exports.SHA512=T;exports.sha512=j;
@@ -1,126 +0,0 @@
1
- import { SHA2 as I } from "./_sha2.js";
2
- import c from "./_u64.js";
3
- import { wrapConstructor as T } from "./utils.js";
4
- const [J, K] = c.split([
5
- "0x428a2f98d728ae22",
6
- "0x7137449123ef65cd",
7
- "0xb5c0fbcfec4d3b2f",
8
- "0xe9b5dba58189dbbc",
9
- "0x3956c25bf348b538",
10
- "0x59f111f1b605d019",
11
- "0x923f82a4af194f9b",
12
- "0xab1c5ed5da6d8118",
13
- "0xd807aa98a3030242",
14
- "0x12835b0145706fbe",
15
- "0x243185be4ee4b28c",
16
- "0x550c7dc3d5ffb4e2",
17
- "0x72be5d74f27b896f",
18
- "0x80deb1fe3b1696b1",
19
- "0x9bdc06a725c71235",
20
- "0xc19bf174cf692694",
21
- "0xe49b69c19ef14ad2",
22
- "0xefbe4786384f25e3",
23
- "0x0fc19dc68b8cd5b5",
24
- "0x240ca1cc77ac9c65",
25
- "0x2de92c6f592b0275",
26
- "0x4a7484aa6ea6e483",
27
- "0x5cb0a9dcbd41fbd4",
28
- "0x76f988da831153b5",
29
- "0x983e5152ee66dfab",
30
- "0xa831c66d2db43210",
31
- "0xb00327c898fb213f",
32
- "0xbf597fc7beef0ee4",
33
- "0xc6e00bf33da88fc2",
34
- "0xd5a79147930aa725",
35
- "0x06ca6351e003826f",
36
- "0x142929670a0e6e70",
37
- "0x27b70a8546d22ffc",
38
- "0x2e1b21385c26c926",
39
- "0x4d2c6dfc5ac42aed",
40
- "0x53380d139d95b3df",
41
- "0x650a73548baf63de",
42
- "0x766a0abb3c77b2a8",
43
- "0x81c2c92e47edaee6",
44
- "0x92722c851482353b",
45
- "0xa2bfe8a14cf10364",
46
- "0xa81a664bbc423001",
47
- "0xc24b8b70d0f89791",
48
- "0xc76c51a30654be30",
49
- "0xd192e819d6ef5218",
50
- "0xd69906245565a910",
51
- "0xf40e35855771202a",
52
- "0x106aa07032bbd1b8",
53
- "0x19a4c116b8d2d0c8",
54
- "0x1e376c085141ab53",
55
- "0x2748774cdf8eeb99",
56
- "0x34b0bcb5e19b48a8",
57
- "0x391c0cb3c5c95a63",
58
- "0x4ed8aa4ae3418acb",
59
- "0x5b9cca4f7763e373",
60
- "0x682e6ff3d6b2b8a3",
61
- "0x748f82ee5defb2fc",
62
- "0x78a5636f43172f60",
63
- "0x84c87814a1f0ab72",
64
- "0x8cc702081a6439ec",
65
- "0x90befffa23631e28",
66
- "0xa4506cebde82bde9",
67
- "0xbef9a3f7b2c67915",
68
- "0xc67178f2e372532b",
69
- "0xca273eceea26619c",
70
- "0xd186b8c721c0c207",
71
- "0xeada7dd6cde0eb1e",
72
- "0xf57d4f7fee6ed178",
73
- "0x06f067aa72176fba",
74
- "0x0a637dc5a2c898a6",
75
- "0x113f9804bef90dae",
76
- "0x1b710b35131c471b",
77
- "0x28db77f523047d84",
78
- "0x32caab7b40c72493",
79
- "0x3c9ebe0a15c9bebc",
80
- "0x431d67c49c100d4c",
81
- "0x4cc5d4becb3e42b6",
82
- "0x597f299cfc657e2a",
83
- "0x5fcb6fab3ad6faec",
84
- "0x6c44198c4a475817"
85
- ].map((M) => BigInt(M))), C = /* @__PURE__ */ new Uint32Array(80), m = /* @__PURE__ */ new Uint32Array(80);
86
- class j extends I {
87
- constructor() {
88
- super(128, 64, 16, !1), this.Ah = 1779033703, this.Al = -205731576, this.Bh = -1150833019, this.Bl = -2067093701, this.Ch = 1013904242, this.Cl = -23791573, this.Dh = -1521486534, this.Dl = 1595750129, this.Eh = 1359893119, this.El = -1377402159, this.Fh = -1694144372, this.Fl = 725511199, this.Gh = 528734635, this.Gl = -79577749, this.Hh = 1541459225, this.Hl = 327033209;
89
- }
90
- // prettier-ignore
91
- get() {
92
- const { Ah: E, Al: D, Bh: h, Bl: a, Ch: s, Cl: d, Dh: x, Dl: f, Eh: n, El: H, Fh: e, Fl: b, Gh: l, Gl: i, Hh: r, Hl: o } = this;
93
- return [E, D, h, a, s, d, x, f, n, H, e, b, l, i, r, o];
94
- }
95
- // prettier-ignore
96
- set(E, D, h, a, s, d, x, f, n, H, e, b, l, i, r, o) {
97
- this.Ah = E | 0, this.Al = D | 0, this.Bh = h | 0, this.Bl = a | 0, this.Ch = s | 0, this.Cl = d | 0, this.Dh = x | 0, this.Dl = f | 0, this.Eh = n | 0, this.El = H | 0, this.Fh = e | 0, this.Fl = b | 0, this.Gh = l | 0, this.Gl = i | 0, this.Hh = r | 0, this.Hl = o | 0;
98
- }
99
- process(E, D) {
100
- for (let t = 0; t < 16; t++, D += 4)
101
- C[t] = E.getUint32(D), m[t] = E.getUint32(D += 4);
102
- for (let t = 16; t < 80; t++) {
103
- const B = C[t - 15] | 0, L = m[t - 15] | 0, u = c.rotrSH(B, L, 1) ^ c.rotrSH(B, L, 8) ^ c.shrSH(B, L, 7), U = c.rotrSL(B, L, 1) ^ c.rotrSL(B, L, 8) ^ c.shrSL(B, L, 7), S = C[t - 2] | 0, A = m[t - 2] | 0, p = c.rotrSH(S, A, 19) ^ c.rotrBH(S, A, 61) ^ c.shrSH(S, A, 6), W = c.rotrSL(S, A, 19) ^ c.rotrBL(S, A, 61) ^ c.shrSL(S, A, 6), g = c.add4L(U, W, m[t - 7], m[t - 16]), _ = c.add4H(g, u, p, C[t - 7], C[t - 16]);
104
- C[t] = _ | 0, m[t] = g | 0;
105
- }
106
- let { Ah: h, Al: a, Bh: s, Bl: d, Ch: x, Cl: f, Dh: n, Dl: H, Eh: e, El: b, Fh: l, Fl: i, Gh: r, Gl: o, Hh: F, Hl: G } = this;
107
- for (let t = 0; t < 80; t++) {
108
- const B = c.rotrSH(e, b, 14) ^ c.rotrSH(e, b, 18) ^ c.rotrBH(e, b, 41), L = c.rotrSL(e, b, 14) ^ c.rotrSL(e, b, 18) ^ c.rotrBL(e, b, 41), u = e & l ^ ~e & r, U = b & i ^ ~b & o, S = c.add5L(G, L, U, K[t], m[t]), A = c.add5H(S, F, B, u, J[t], C[t]), p = S | 0, W = c.rotrSH(h, a, 28) ^ c.rotrBH(h, a, 34) ^ c.rotrBH(h, a, 39), g = c.rotrSL(h, a, 28) ^ c.rotrBL(h, a, 34) ^ c.rotrBL(h, a, 39), _ = h & s ^ h & x ^ s & x, y = a & d ^ a & f ^ d & f;
109
- F = r | 0, G = o | 0, r = l | 0, o = i | 0, l = e | 0, i = b | 0, { h: e, l: b } = c.add(n | 0, H | 0, A | 0, p | 0), n = x | 0, H = f | 0, x = s | 0, f = d | 0, s = h | 0, d = a | 0;
110
- const w = c.add3L(p, g, y);
111
- h = c.add3H(w, A, W, _), a = w | 0;
112
- }
113
- ({ h, l: a } = c.add(this.Ah | 0, this.Al | 0, h | 0, a | 0)), { h: s, l: d } = c.add(this.Bh | 0, this.Bl | 0, s | 0, d | 0), { h: x, l: f } = c.add(this.Ch | 0, this.Cl | 0, x | 0, f | 0), { h: n, l: H } = c.add(this.Dh | 0, this.Dl | 0, n | 0, H | 0), { h: e, l: b } = c.add(this.Eh | 0, this.El | 0, e | 0, b | 0), { h: l, l: i } = c.add(this.Fh | 0, this.Fl | 0, l | 0, i | 0), { h: r, l: o } = c.add(this.Gh | 0, this.Gl | 0, r | 0, o | 0), { h: F, l: G } = c.add(this.Hh | 0, this.Hl | 0, F | 0, G | 0), this.set(h, a, s, d, x, f, n, H, e, b, l, i, r, o, F, G);
114
- }
115
- roundClean() {
116
- C.fill(0), m.fill(0);
117
- }
118
- destroy() {
119
- this.buffer.fill(0), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
120
- }
121
- }
122
- const N = /* @__PURE__ */ T(() => new j());
123
- export {
124
- j as SHA512,
125
- N as sha512
126
- };
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");/**
2
- * vue-meta v3.0.0-alpha.10
3
- * (c) 2022
4
- * - Pim (@pimlie)
5
- * - All the amazing contributors
6
- * @license MIT
7
- */const u=n=>n!==null&&typeof n=="object";function a(n,r,t){for(const e in r)e in t?u(n[e])?a(n[e],r[e],t[e]):r[e]!==t[e]&&(n[e]=r[e]):n[e]=r[e];for(const e in t)r&&e in r||delete n[e]}function i(n){if(n||(n=o.getCurrentInstance()||void 0),n)return n.appContext.config.globalProperties.$metaManager}function f(n,r){const t=o.getCurrentInstance()||void 0;if(!r&&t&&(r=i(t)),!r)throw new Error("No manager or current instance");o.isProxy(n)&&(o.watch(n,(s,c)=>{a(e.meta,s,c)}),n=n.value);const e=r.addMeta(n,t);return e}o.defineComponent({name:"Metainfo",inheritAttrs:!1,setup:(n,{slots:r})=>()=>{const t=i();if(t)return t.render({slots:r})}});exports.getCurrentManager=i;exports.useMeta=f;
@@ -1,38 +0,0 @@
1
- import { getCurrentInstance as o, isProxy as f, watch as u, defineComponent as l } from "vue";
2
- /**
3
- * vue-meta v3.0.0-alpha.10
4
- * (c) 2022
5
- * - Pim (@pimlie)
6
- * - All the amazing contributors
7
- * @license MIT
8
- */
9
- const p = (n) => n !== null && typeof n == "object";
10
- function i(n, t, e) {
11
- for (const r in t)
12
- r in e ? p(n[r]) ? i(n[r], t[r], e[r]) : t[r] !== e[r] && (n[r] = t[r]) : n[r] = t[r];
13
- for (const r in e)
14
- t && r in t || delete n[r];
15
- }
16
- function a(n) {
17
- if (n || (n = o() || void 0), n)
18
- return n.appContext.config.globalProperties.$metaManager;
19
- }
20
- function g(n, t) {
21
- const e = o() || void 0;
22
- if (!t && e && (t = a(e)), !t)
23
- throw new Error("No manager or current instance");
24
- f(n) && (u(n, (s, c) => {
25
- i(r.meta, s, c);
26
- }), n = n.value);
27
- const r = t.addMeta(n, e);
28
- return r;
29
- }
30
- l({ name: "Metainfo", inheritAttrs: !1, setup: (n, { slots: t }) => () => {
31
- const e = a();
32
- if (e)
33
- return e.render({ slots: t });
34
- } });
35
- export {
36
- a as getCurrentManager,
37
- g as useMeta
38
- };
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function l(r,t){var e=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e)return(e=e.call(r)).next.bind(e);if(Array.isArray(r)||(e=c(r))||t&&r&&typeof r.length=="number"){e&&(r=e);var n=0;return function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(r,t){if(r){if(typeof r=="string")return i(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(r,t)}}function i(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function s(r,t){for(var e=r.slice(),n=l(t),a;!(a=n()).done;){var u=a.value;r.indexOf(u)<0&&e.push(u)}return e.sort(function(o,f){return o-f})}exports.default=s;
@@ -1,43 +0,0 @@
1
- function l(r, e) {
2
- var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
3
- if (t)
4
- return (t = t.call(r)).next.bind(t);
5
- if (Array.isArray(r) || (t = c(r)) || e && r && typeof r.length == "number") {
6
- t && (r = t);
7
- var n = 0;
8
- return function() {
9
- return n >= r.length ? { done: !0 } : { done: !1, value: r[n++] };
10
- };
11
- }
12
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14
- }
15
- function c(r, e) {
16
- if (r) {
17
- if (typeof r == "string")
18
- return u(r, e);
19
- var t = Object.prototype.toString.call(r).slice(8, -1);
20
- if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set")
21
- return Array.from(r);
22
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
23
- return u(r, e);
24
- }
25
- }
26
- function u(r, e) {
27
- (e == null || e > r.length) && (e = r.length);
28
- for (var t = 0, n = new Array(e); t < e; t++)
29
- n[t] = r[t];
30
- return n;
31
- }
32
- function y(r, e) {
33
- for (var t = r.slice(), n = l(e), a; !(a = n()).done; ) {
34
- var i = a.value;
35
- r.indexOf(i) < 0 && t.push(i);
36
- }
37
- return t.sort(function(o, f) {
38
- return o - f;
39
- });
40
- }
41
- export {
42
- y as default
43
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),oe=require("./click-outside.cjs"),re=require("./all-countries.cjs");require("./FieldPhone.vue2.cjs");const ue=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),w=require("../../../node_modules/libphonenumber-js/min/exports/parsePhoneNumber.cjs"),ie=["tabindex"],se={class:"flex-nowrap flex flex-v-center p-medium vti__selection"},de=["innerHTML"],ce={key:1,class:"vti__country-code"},fe=["onClick","onMousemove"],ve=["innerHTML"],pe={key:1},ye=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex"],me={key:0,class:"mn-t-thin mn-b-thin invalid-feedback"},he={__name:"FieldPhone",props:{modelValue:{type:String,default:""},badClass:{type:[String,Array,Object],default:""},goodClass:{type:[String,Array,Object],default:""},badStyle:{type:[String,Array,Object],default:""},goodStyle:{type:[String,Array,Object],default:""},badInputClass:{type:[String,Array,Object],default:""},goodInputClass:{type:[String,Array,Object],default:""},badInputStyle:{type:[String,Array,Object],default:""},goodInputStyle:{type:[String,Array,Object],default:""},allCountries:{type:Array,default:()=>re.default},autoFormat:{type:Boolean,default:()=>!0},validation:{type:[Boolean,Object],default:!1},customValidate:{type:[Boolean,RegExp],default:()=>!1},defaultCountry:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1},autoDefaultCountry:{type:Boolean,default:()=>!0},ignoredCountries:{type:Array,default:()=>[]},invalidMsg:{type:String,default:()=>""},mode:{type:String,default:()=>"auto"},onlyCountries:{type:Array,default:()=>[]},preferredCountries:{type:Array,default:()=>[]},validCharactersOnly:{type:Boolean,default:()=>!1},rootClass:{type:[String,Array,Object],default:()=>""},inputClass:{type:[String,Array,Object],default:()=>""},divInputClass:{type:[String,Array,Object],default:()=>""},rootStyle:{type:[String,Array,Object],default:()=>""},dropdownStyle:{type:[String,Array,Object],default:()=>""},listStyle:{type:[String,Array,Object],default:()=>""},inputStyle:{type:[String,Array,Object],default:()=>""},inputId:{type:[String,Array,Object],default:()=>""},Placeholder:{type:[String,Object,Function],default:()=>""},dropdownOptions:{type:Object,default:()=>({showDialCodeInList:!0,showDialCodeInSelection:!1,showFlags:!0,tabindex:0})},inputOptions:{type:Object,default:()=>({autocomplete:"on",autofocus:!1,id:"",maxlength:25,name:"telephone",placeholder:"Enter a phone number",readonly:!1,required:!1,tabindex:0,type:"tel",styleClasses:""})}},emits:["update:modelValue","validate","country-changed","open","close","blur","focus","enter","space"],setup(a,{emit:V}){let N=oe.default;const n=a,c=V;e.ref(5),e.ref(5),e.reactive({action:null,amount:null});const r=e.ref(n.modelValue?n.modelValue:""),v=e.ref(""),f=e.ref(!1),P=e.ref(!1),s=e.ref(null),S=e.ref(""),x=e.ref(null),T=e.ref("below"),I=e.ref(n.Placeholder!==""?n.Placeholder:n.inputOptions.placeholder),B=e.ref(null),d=e.ref(null),O=e.ref(null);e.onMounted(async()=>{n.modelValue&&(r.value=n.modelValue),G(),U().then(()=>{var t;!r.value&&((t=n.inputOptions)!=null&&t.showDialCode)&&v.value&&(r.value=`+${v.value}`),c("validate",u.value)}).catch(console.error).then(()=>{P.value=!0})});const p=e.computed(()=>C(v.value)),M=e.computed(()=>p.value?p.value.flag:null),F=e.computed(()=>n.mode==="auto"?!r.value||r.value[0]!=="+"?"national":"international":["international","national"].includes(n.mode)?n.mode:(console.error('Invalid value of prop "mode"'),"international")),k=e.computed(()=>n.onlyCountries&&n.onlyCountries.length?n.allCountries.filter(({iso2:t})=>n.onlyCountries.includes(t.toUpperCase())):n.ignoredCountries&&n.ignoredCountries.length?n.allCountries.filter(({iso2:t})=>!n.ignoredCountries.includes(t.toUpperCase())&&!n.ignoredCountries.includes(t.toLowerCase())):n.allCountries),y=e.computed(()=>[...K(n.preferredCountries).map(l=>({...l,preferred:!0})),...k.value]),u=e.computed(()=>{var b,D,A;let t={};((b=r.value)==null?void 0:b[0])==="+"?t=w.parsePhoneNumber(r.value)||{}:t=w.parsePhoneNumber(r.value,v.value)||{};const{metadata:l,...o}=t;let i=(D=t.isValid)==null?void 0:D.call(t),h=r.value;return i&&(h=(A=t.format)==null?void 0:A.call(t,F.value.toUpperCase(),{nationalPrefix:!1})),t.country&&(n.ignoredCountries.length||n.onlyCountries.length)&&(C(t.country)||(i=!1,t={...t,country:null})),{...o,countryCode:t.country,valid:i,country:p.value,formatted:h}}),H=e.computed(()=>u.value.valid===!0?n.goodClass:u.value.valid===!1?n.badClass:void 0),q=e.computed(()=>u.value.valid===!0?n.goodStyle:u.value.valid===!1?n.badStyle:void 0),z=e.computed(()=>u.value.valid===!0?n.goodInputClass:u.value.valid===!1?n.badInputClass:void 0),L=e.computed(()=>u.value.valid===!0?n.goodInputStyle:u.value.valid===!1?n.badInputStyle:void 0);e.watch(p,(t,l)=>{if(!t&&(l!=null&&l.iso2)){v.value=l.iso2;return}t!=null&&t.iso2&&(c("country-changed",t),E())}),e.watch(()=>u.value.countryCode,t=>{v.value=t}),e.watch(()=>u.value.valid,()=>{c("validate",u.value)}),e.watch(()=>u.value.formatted,t=>{!n.autoFormat||n.customValidate||(g(t),e.nextTick(()=>{t&&!n.modelValue&&(r.value=t)}))}),e.watch(()=>n.inputOptions.placeholder,()=>{E()}),e.watch(()=>n.modelValue,(t,l)=>{J()?r.value=t:e.nextTick(()=>{r.value=l,j()})}),e.watch(f,t=>{t?(ae(),c("open")):c("close")});function R(){return fetch("https://ip2c.org/s").then(t=>t.text()).then(t=>{const l=(t||"").toString();if(!l||l[0]!=="1")throw new Error("unable to fetch the country");return l.substr(2,2)})}function $(t,l){if(t.setSelectionRange)t.focus(),t.setSelectionRange(l,l);else if(t.createTextRange){const o=t.createTextRange();o.collapse(!0),o.moveEnd("character",l),o.moveStart("character",l),o.select()}}function E(){I.value=n.inputOptions.placeholder}function U(){return new Promise(t=>{var o;if(((o=r.value)==null?void 0:o[0])==="+"){t();return}if(n.defaultCountry){m(n.defaultCountry),t();return}const l=n.preferredCountries[0]||k.value[0];n.autoDefaultCountry?R().then(i=>{m(i||v.value)}).catch(i=>{console.warn(i),m(l)}).finally(()=>{t()}):(m(l),t())})}function K(t=[]){return t.map(l=>C(l)).filter(Boolean)}function C(t=""){return k.value.find(l=>l.iso2===t.toUpperCase())}function W(t,l){const o=s.value===t,i=t===n.preferredCountries.length-1,h=n.preferredCountries.some(b=>b.toUpperCase()===l);return{highlighted:o,"last-preferred":i,preferred:h}}function m(t){var o,i;let l=typeof t=="string"?C(t):t;if(l){if(((o=r.value)==null?void 0:o[0])==="+"&&l.iso2&&u.value.nationalNumber){v.value=l.iso2,r.value=w.parsePhoneNumber(u.value.nationalNumber,l.iso2).formatInternational();return}if((i=n.inputOptions)!=null&&i.showDialCode&&l){r.value=`+${l.dialCode}`;return}v.value=l.iso2,g(r.value)}}function G(){const t=r.value;if(n.validCharactersOnly){const l=r.value.match(/[()\-+0-9\s]*/g);r.value=l.join("")}if(n.customValidate&&n.customValidate instanceof RegExp){const l=r.value.match(n.customValidate);r.value=l?l.join(""):""}t!==r.value&&g(r.value)}function J(){return n.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(r.value)?!1:n.customValidate?Q():!0}function Q(){return n.customValidate instanceof RegExp?n.customValidate.test(r.value):!1}function j(){O.value.setCustomValidity(u.valid?"":n.invalidMsg),g(r.value)}function g(t){c("update:modelValue",t),u.value.valid?c("country",u.value.number):c("country",null)}function X(){c("blur")}function Y(){$(O.value,r.value.length),c("focus")}function Z(){c("enter")}function _(){c("space")}function ee(){n.disabled||(f.value=!f.value)}function te(){f.value=!1}function ne(t){t.keyCode===40?(t.preventDefault(),f.value=!0,s.value=s.value===null?0:Math.min(y.value.length-1,s.value+1),e.nextTick(()=>{const l=d.value.children[s.value];l.offsetTop+l.clientHeight>d.value.scrollTop+d.value.clientHeight&&(d.value.scrollTop=l.offsetTop-d.value.clientHeight+l.clientHeight)})):t.keyCode===38?(t.preventDefault(),f.value=!0,s.value=s.value===null?y.value.length-1:Math.max(0,s.value-1),e.nextTick(()=>{const l=d.value.children[s.value];l.offsetTop<d.value.scrollTop&&(d.value.scrollTop=l.offsetTop)})):t.keyCode===13?(t.preventDefault(),s.value!==null&&m(y.value[s.value]),f.value=!f.value):(S.value+=t.key,clearTimeout(x),x=setTimeout(()=>{S.value=""},700),e.nextTick(()=>{const l=y.value.slice(n.preferredCountries.length).findIndex(o=>o.name.toLowerCase().startsWith(S.value));if(l>=0){s.value=n.preferredCountries.length+l;const o=d.value.children[s.value];(o.offsetTop<d.value.scrollTop||o.offsetTop+o.clientHeight>d.value.scrollTop+d.value.clientHeight)&&(d.value.scrollTop=o.offsetTop-d.value.clientHeight/2)}}))}function le(){s.value=y.value.map(t=>t.iso2).indexOf(v.value),f.value=!1}function ae(){const l=window.innerHeight-B.value.getBoundingClientRect().bottom>200;T.value=l?"below":"above"}return(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[a.rootClass,H.value,t.$attrs.class,{"bg-fourth-nano":a.validation},{disabled:a.disabled}],"vue3-reactive-tel-input"]),style:e.normalizeStyle([a.rootStyle,q.value]),ref_key:"rootElement",ref:B},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([["vti__dropdown",{open:f.value}],"br-solid br-black-transp br-1px radius-medium"]),style:e.normalizeStyle([a.dropdownStyle]),tabindex:a.dropdownOptions.tabindex,onKeydown:[ne,e.withKeys(le,["esc"])],onClick:ee},[e.createElementVNode("span",se,[a.dropdownOptions.showFlags?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:M.value,class:"mn-r-thin"},null,8,de)):e.createCommentVNode("",!0),a.dropdownOptions.showDialCodeInSelection?(e.openBlock(),e.createElementBlock("span",ce," +"+e.toDisplayString(p.value&&p.value.dialCode),1)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("ul",{ref_key:"list",ref:d,class:e.normalizeClass(["bs-black radius-small vti__dropdown-list",T.value]),style:e.normalizeStyle([a.listStyle])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,i)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["flex-nowrap flex w-max",["vti__dropdown-item",W(i,o.iso2)]]),key:o.iso2+(o.preferred?"-preferred":""),onClick:h=>m(o),onMousemove:h=>s.value=i},[a.dropdownOptions.showFlags?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.flag,class:"mn-r-thin"},null,8,ve)):e.createCommentVNode("",!0),e.createElementVNode("strong",null,e.toDisplayString(o.name),1),a.dropdownOptions.showDialCodeInList?(e.openBlock(),e.createElementBlock("span",pe," +"+e.toDisplayString(o.dialCode),1)):e.createCommentVNode("",!0)],42,fe))),128))],6),[[e.vShow,f.value]])],46,ie)),[[e.unref(N),te]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=o=>r.value=o),inputmode:"numeric",pattern:"\\d*",ref_key:"input",ref:O,type:a.inputOptions.type,autocomplete:a.inputOptions.autocomplete,autofocus:a.inputOptions.autofocus,class:e.normalizeClass(["vti__input",a.inputOptions.styleClasses,a.inputClass,z.value]),style:e.normalizeStyle([a.inputStyle,L.value]),disabled:a.disabled,id:a.inputId!==""?a.inputId:a.inputOptions.id,maxlength:a.inputOptions.maxlength,name:a.inputId!==""?a.inputId:a.inputOptions.name,placeholder:I.value,readonly:a.inputOptions.readonly,required:a.inputOptions.required,tabindex:a.inputOptions.tabindex,onBlur:X,onFocus:Y,onInput:j,onKeyup:[e.withKeys(Z,["enter"]),e.withKeys(_,["space"])]},null,46,ye),[[e.vModelDynamic,r.value]]),e.renderSlot(t.$slots,"default",{},void 0,!0)],6),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.validation?(e.openBlock(),e.createElementBlock("div",me," * "+e.toDisplayString(a.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},Ce=ue.default(he,[["__scopeId","data-v-0ab16817"]]);exports.default=Ce;