@ozdao/prometheus-framework 0.2.127 → 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 +28 -37
  3. package/dist/auth.server.mjs +28 -37
  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 +32 -48
  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,373 +0,0 @@
1
- import { ref as d, reactive as Ce, onMounted as ge, computed as p, watch as h, nextTick as S, openBlock as y, createElementBlock as m, Fragment as K, createElementVNode as w, normalizeClass as I, normalizeStyle as A, withDirectives as M, withKeys as P, createCommentVNode as x, toDisplayString as D, renderList as be, vShow as Oe, unref as Se, vModelDynamic as we, renderSlot as Ie, createVNode as xe, Transition as Te, withCtx as ke } from "vue";
2
- import je from "./click-outside.js";
3
- import Ae from "./all-countries.js";
4
- import "./FieldPhone.vue2.js";
5
- import De from "../../../../_virtual/_plugin-vue_export-helper.js";
6
- import { parsePhoneNumber as H } from "../../../node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js";
7
- const Be = ["tabindex"], Ee = { class: "flex-nowrap flex flex-v-center p-medium vti__selection" }, Fe = ["innerHTML"], Me = {
8
- key: 1,
9
- class: "vti__country-code"
10
- }, Pe = ["onClick", "onMousemove"], He = ["innerHTML"], Ve = { key: 1 }, Le = ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex"], Re = {
11
- key: 0,
12
- class: "mn-t-thin mn-b-thin invalid-feedback"
13
- }, Ne = {
14
- __name: "FieldPhone",
15
- props: {
16
- modelValue: { type: String, default: "" },
17
- badClass: { type: [String, Array, Object], default: "" },
18
- goodClass: { type: [String, Array, Object], default: "" },
19
- badStyle: { type: [String, Array, Object], default: "" },
20
- goodStyle: { type: [String, Array, Object], default: "" },
21
- badInputClass: { type: [String, Array, Object], default: "" },
22
- goodInputClass: { type: [String, Array, Object], default: "" },
23
- badInputStyle: { type: [String, Array, Object], default: "" },
24
- goodInputStyle: { type: [String, Array, Object], default: "" },
25
- allCountries: { type: Array, default: () => Ae },
26
- autoFormat: { type: Boolean, default: () => !0 },
27
- validation: { type: [Boolean, Object], default: !1 },
28
- customValidate: { type: [Boolean, RegExp], default: () => !1 },
29
- defaultCountry: { type: String, default: () => "" },
30
- disabled: { type: Boolean, default: () => !1 },
31
- autoDefaultCountry: { type: Boolean, default: () => !0 },
32
- ignoredCountries: { type: Array, default: () => [] },
33
- invalidMsg: { type: String, default: () => "" },
34
- mode: { type: String, default: () => "auto" },
35
- onlyCountries: { type: Array, default: () => [] },
36
- preferredCountries: { type: Array, default: () => [] },
37
- validCharactersOnly: { type: Boolean, default: () => !1 },
38
- rootClass: { type: [String, Array, Object], default: () => "" },
39
- inputClass: { type: [String, Array, Object], default: () => "" },
40
- divInputClass: { type: [String, Array, Object], default: () => "" },
41
- rootStyle: { type: [String, Array, Object], default: () => "" },
42
- dropdownStyle: { type: [String, Array, Object], default: () => "" },
43
- listStyle: { type: [String, Array, Object], default: () => "" },
44
- inputStyle: { type: [String, Array, Object], default: () => "" },
45
- inputId: { type: [String, Array, Object], default: () => "" },
46
- Placeholder: { type: [String, Object, Function], default: () => "" },
47
- dropdownOptions: {
48
- type: Object,
49
- default: () => ({
50
- showDialCodeInList: !0,
51
- showDialCodeInSelection: !1,
52
- showFlags: !0,
53
- tabindex: 0
54
- })
55
- },
56
- inputOptions: {
57
- type: Object,
58
- default: () => ({
59
- autocomplete: "on",
60
- autofocus: !1,
61
- id: "",
62
- maxlength: 25,
63
- name: "telephone",
64
- placeholder: "Enter a phone number",
65
- readonly: !1,
66
- required: !1,
67
- tabindex: 0,
68
- type: "tel",
69
- styleClasses: ""
70
- })
71
- }
72
- },
73
- emits: [
74
- "update:modelValue",
75
- "validate",
76
- "country-changed",
77
- "open",
78
- "close",
79
- "blur",
80
- "focus",
81
- "enter",
82
- "space"
83
- ],
84
- setup(l, { emit: W }) {
85
- let G = je;
86
- const t = l, c = W;
87
- d(5), d(5), Ce({
88
- action: null,
89
- amount: null
90
- });
91
- const o = d(t.modelValue ? t.modelValue : ""), v = d(""), f = d(!1), J = d(!1), i = d(null), B = d(""), V = d(null), L = d("below"), R = d(t.Placeholder !== "" ? t.Placeholder : t.inputOptions.placeholder), N = d(null), s = d(null), E = d(null);
92
- ge(async () => {
93
- t.modelValue && (o.value = t.modelValue), ue(), le().then(() => {
94
- var e;
95
- !o.value && ((e = t.inputOptions) != null && e.showDialCode) && v.value && (o.value = `+${v.value}`), c("validate", u.value);
96
- }).catch(console.error).then(() => {
97
- J.value = !0;
98
- });
99
- });
100
- const C = p(() => T(v.value)), Q = p(() => C.value ? C.value.flag : null), X = p(() => t.mode === "auto" ? !o.value || o.value[0] !== "+" ? "national" : "international" : ["international", "national"].includes(t.mode) ? t.mode : (console.error('Invalid value of prop "mode"'), "international")), F = p(() => t.onlyCountries && t.onlyCountries.length ? t.allCountries.filter(({ iso2: e }) => t.onlyCountries.includes(e.toUpperCase())) : t.ignoredCountries && t.ignoredCountries.length ? t.allCountries.filter(
101
- ({ iso2: e }) => !t.ignoredCountries.includes(e.toUpperCase()) && !t.ignoredCountries.includes(e.toLowerCase())
102
- ) : t.allCountries), g = p(() => [...ae(t.preferredCountries).map((n) => ({ ...n, preferred: !0 })), ...F.value]), u = p(() => {
103
- var j, q, z;
104
- let e = {};
105
- ((j = o.value) == null ? void 0 : j[0]) === "+" ? e = H(o.value) || {} : e = H(o.value, v.value) || {};
106
- const { metadata: n, ...a } = e;
107
- let r = (q = e.isValid) == null ? void 0 : q.call(e), O = o.value;
108
- return r && (O = (z = e.format) == null ? void 0 : z.call(e, X.value.toUpperCase(), { nationalPrefix: !1 })), e.country && (t.ignoredCountries.length || t.onlyCountries.length) && (T(e.country) || (r = !1, e = { ...e, country: null })), {
109
- ...a,
110
- countryCode: e.country,
111
- valid: r,
112
- country: C.value,
113
- formatted: O
114
- };
115
- }), Y = p(() => u.value.valid === !0 ? t.goodClass : u.value.valid === !1 ? t.badClass : void 0), Z = p(() => u.value.valid === !0 ? t.goodStyle : u.value.valid === !1 ? t.badStyle : void 0), _ = p(() => u.value.valid === !0 ? t.goodInputClass : u.value.valid === !1 ? t.badInputClass : void 0), ee = p(() => u.value.valid === !0 ? t.goodInputStyle : u.value.valid === !1 ? t.badInputStyle : void 0);
116
- h(C, (e, n) => {
117
- if (!e && (n != null && n.iso2)) {
118
- v.value = n.iso2;
119
- return;
120
- }
121
- e != null && e.iso2 && (c("country-changed", e), $());
122
- }), h(() => u.value.countryCode, (e) => {
123
- v.value = e;
124
- }), h(() => u.value.valid, () => {
125
- c("validate", u.value);
126
- }), h(() => u.value.formatted, (e) => {
127
- !t.autoFormat || t.customValidate || (k(e), S(() => {
128
- e && !t.modelValue && (o.value = e);
129
- }));
130
- }), h(() => t.inputOptions.placeholder, () => {
131
- $();
132
- }), h(() => t.modelValue, (e, n) => {
133
- re() ? o.value = e : S(() => {
134
- o.value = n, U();
135
- });
136
- }), h(f, (e) => {
137
- e ? (he(), c("open")) : c("close");
138
- });
139
- function te() {
140
- return fetch("https://ip2c.org/s").then((e) => e.text()).then((e) => {
141
- const n = (e || "").toString();
142
- if (!n || n[0] !== "1")
143
- throw new Error("unable to fetch the country");
144
- return n.substr(2, 2);
145
- });
146
- }
147
- function ne(e, n) {
148
- if (e.setSelectionRange)
149
- e.focus(), e.setSelectionRange(n, n);
150
- else if (e.createTextRange) {
151
- const a = e.createTextRange();
152
- a.collapse(!0), a.moveEnd("character", n), a.moveStart("character", n), a.select();
153
- }
154
- }
155
- function $() {
156
- R.value = t.inputOptions.placeholder;
157
- }
158
- function le() {
159
- return new Promise((e) => {
160
- var a;
161
- if (((a = o.value) == null ? void 0 : a[0]) === "+") {
162
- e();
163
- return;
164
- }
165
- if (t.defaultCountry) {
166
- b(t.defaultCountry), e();
167
- return;
168
- }
169
- const n = t.preferredCountries[0] || F.value[0];
170
- t.autoDefaultCountry ? te().then((r) => {
171
- b(r || v.value);
172
- }).catch((r) => {
173
- console.warn(r), b(n);
174
- }).finally(() => {
175
- e();
176
- }) : (b(n), e());
177
- });
178
- }
179
- function ae(e = []) {
180
- return e.map((n) => T(n)).filter(Boolean);
181
- }
182
- function T(e = "") {
183
- return F.value.find((n) => n.iso2 === e.toUpperCase());
184
- }
185
- function oe(e, n) {
186
- const a = i.value === e, r = e === t.preferredCountries.length - 1, O = t.preferredCountries.some((j) => j.toUpperCase() === n);
187
- return { highlighted: a, "last-preferred": r, preferred: O };
188
- }
189
- function b(e) {
190
- var a, r;
191
- let n = typeof e == "string" ? T(e) : e;
192
- if (n) {
193
- if (((a = o.value) == null ? void 0 : a[0]) === "+" && n.iso2 && u.value.nationalNumber) {
194
- v.value = n.iso2, o.value = H(u.value.nationalNumber, n.iso2).formatInternational();
195
- return;
196
- }
197
- if ((r = t.inputOptions) != null && r.showDialCode && n) {
198
- o.value = `+${n.dialCode}`;
199
- return;
200
- }
201
- v.value = n.iso2, k(o.value);
202
- }
203
- }
204
- function ue() {
205
- const e = o.value;
206
- if (t.validCharactersOnly) {
207
- const n = o.value.match(/[()\-+0-9\s]*/g);
208
- o.value = n.join("");
209
- }
210
- if (t.customValidate && t.customValidate instanceof RegExp) {
211
- const n = o.value.match(t.customValidate);
212
- o.value = n ? n.join("") : "";
213
- }
214
- e !== o.value && k(o.value);
215
- }
216
- function re() {
217
- return t.validCharactersOnly && !/^[()\-+0-9\s]*$/.test(o.value) ? !1 : t.customValidate ? ie() : !0;
218
- }
219
- function ie() {
220
- return t.customValidate instanceof RegExp ? t.customValidate.test(o.value) : !1;
221
- }
222
- function U() {
223
- E.value.setCustomValidity(u.valid ? "" : t.invalidMsg), k(o.value);
224
- }
225
- function k(e) {
226
- c("update:modelValue", e), u.value.valid ? c("country", u.value.number) : c("country", null);
227
- }
228
- function se() {
229
- c("blur");
230
- }
231
- function de() {
232
- ne(E.value, o.value.length), c("focus");
233
- }
234
- function ce() {
235
- c("enter");
236
- }
237
- function fe() {
238
- c("space");
239
- }
240
- function ve() {
241
- t.disabled || (f.value = !f.value);
242
- }
243
- function pe() {
244
- f.value = !1;
245
- }
246
- function ye(e) {
247
- e.keyCode === 40 ? (e.preventDefault(), f.value = !0, i.value = i.value === null ? 0 : Math.min(g.value.length - 1, i.value + 1), S(() => {
248
- const n = s.value.children[i.value];
249
- n.offsetTop + n.clientHeight > s.value.scrollTop + s.value.clientHeight && (s.value.scrollTop = n.offsetTop - s.value.clientHeight + n.clientHeight);
250
- })) : e.keyCode === 38 ? (e.preventDefault(), f.value = !0, i.value = i.value === null ? g.value.length - 1 : Math.max(0, i.value - 1), S(() => {
251
- const n = s.value.children[i.value];
252
- n.offsetTop < s.value.scrollTop && (s.value.scrollTop = n.offsetTop);
253
- })) : e.keyCode === 13 ? (e.preventDefault(), i.value !== null && b(g.value[i.value]), f.value = !f.value) : (B.value += e.key, clearTimeout(V), V = setTimeout(() => {
254
- B.value = "";
255
- }, 700), S(() => {
256
- const n = g.value.slice(t.preferredCountries.length).findIndex((a) => a.name.toLowerCase().startsWith(B.value));
257
- if (n >= 0) {
258
- i.value = t.preferredCountries.length + n;
259
- const a = s.value.children[i.value];
260
- (a.offsetTop < s.value.scrollTop || a.offsetTop + a.clientHeight > s.value.scrollTop + s.value.clientHeight) && (s.value.scrollTop = a.offsetTop - s.value.clientHeight / 2);
261
- }
262
- }));
263
- }
264
- function me() {
265
- i.value = g.value.map((e) => e.iso2).indexOf(v.value), f.value = !1;
266
- }
267
- function he() {
268
- const n = window.innerHeight - N.value.getBoundingClientRect().bottom > 200;
269
- L.value = n ? "below" : "above";
270
- }
271
- return (e, n) => (y(), m(K, null, [
272
- w("div", {
273
- class: I([[
274
- l.rootClass,
275
- Y.value,
276
- e.$attrs.class,
277
- { "bg-fourth-nano": l.validation },
278
- { disabled: l.disabled }
279
- ], "vue3-reactive-tel-input"]),
280
- style: A([
281
- l.rootStyle,
282
- Z.value
283
- ]),
284
- ref_key: "rootElement",
285
- ref: N
286
- }, [
287
- M((y(), m("div", {
288
- class: I([["vti__dropdown", { open: f.value }], "br-solid br-black-transp br-1px radius-medium"]),
289
- style: A([l.dropdownStyle]),
290
- tabindex: l.dropdownOptions.tabindex,
291
- onKeydown: [
292
- ye,
293
- P(me, ["esc"])
294
- ],
295
- onClick: ve
296
- }, [
297
- w("span", Ee, [
298
- l.dropdownOptions.showFlags ? (y(), m("span", {
299
- key: 0,
300
- innerHTML: Q.value,
301
- class: "mn-r-thin"
302
- }, null, 8, Fe)) : x("", !0),
303
- l.dropdownOptions.showDialCodeInSelection ? (y(), m("span", Me, " +" + D(C.value && C.value.dialCode), 1)) : x("", !0)
304
- ]),
305
- M(w("ul", {
306
- ref_key: "list",
307
- ref: s,
308
- class: I(["bs-black radius-small vti__dropdown-list", L.value]),
309
- style: A([l.listStyle])
310
- }, [
311
- (y(!0), m(K, null, be(g.value, (a, r) => (y(), m("li", {
312
- class: I(["flex-nowrap flex w-max", ["vti__dropdown-item", oe(r, a.iso2)]]),
313
- key: a.iso2 + (a.preferred ? "-preferred" : ""),
314
- onClick: (O) => b(a),
315
- onMousemove: (O) => i.value = r
316
- }, [
317
- l.dropdownOptions.showFlags ? (y(), m("span", {
318
- key: 0,
319
- innerHTML: a.flag,
320
- class: "mn-r-thin"
321
- }, null, 8, He)) : x("", !0),
322
- w("strong", null, D(a.name), 1),
323
- l.dropdownOptions.showDialCodeInList ? (y(), m("span", Ve, " +" + D(a.dialCode), 1)) : x("", !0)
324
- ], 42, Pe))), 128))
325
- ], 6), [
326
- [Oe, f.value]
327
- ])
328
- ], 46, Be)), [
329
- [Se(G), pe]
330
- ]),
331
- M(w("input", {
332
- "onUpdate:modelValue": n[0] || (n[0] = (a) => o.value = a),
333
- inputmode: "numeric",
334
- pattern: "\\d*",
335
- ref_key: "input",
336
- ref: E,
337
- type: l.inputOptions.type,
338
- autocomplete: l.inputOptions.autocomplete,
339
- autofocus: l.inputOptions.autofocus,
340
- class: I(["vti__input", l.inputOptions.styleClasses, l.inputClass, _.value]),
341
- style: A([l.inputStyle, ee.value]),
342
- disabled: l.disabled,
343
- id: l.inputId !== "" ? l.inputId : l.inputOptions.id,
344
- maxlength: l.inputOptions.maxlength,
345
- name: l.inputId !== "" ? l.inputId : l.inputOptions.name,
346
- placeholder: R.value,
347
- readonly: l.inputOptions.readonly,
348
- required: l.inputOptions.required,
349
- tabindex: l.inputOptions.tabindex,
350
- onBlur: se,
351
- onFocus: de,
352
- onInput: U,
353
- onKeyup: [
354
- P(ce, ["enter"]),
355
- P(fe, ["space"])
356
- ]
357
- }, null, 46, Le), [
358
- [we, o.value]
359
- ]),
360
- Ie(e.$slots, "default", {}, void 0, !0)
361
- ], 6),
362
- xe(Te, { name: "fade" }, {
363
- default: ke(() => [
364
- l.validation ? (y(), m("div", Re, " * " + D(l.validation.message), 1)) : x("", !0)
365
- ]),
366
- _: 1
367
- })
368
- ], 64));
369
- }
370
- }, Ge = /* @__PURE__ */ De(Ne, [["__scopeId", "data-v-0ab16817"]]);
371
- export {
372
- Ge as default
373
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./all-countries.cjs");function d(){return fetch("https://ip2c.org/s").then(e=>e.text()).then(e=>{const t=(e||"").toString();if(!t||t[0]!=="1")throw new Error("unable to fetch the country");return t.substr(2,2)})}function l(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){const o=e.createTextRange();o.collapse(!0),o.moveEnd("character",t),o.moveStart("character",t),o.select()}}const i=[{name:"allCountries",type:Array,default:s.default,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:String,description:"Default country, will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}],a=[...i].reduce((e,t)=>{if(t.name.includes(".")){const[o,n]=t.name.split(".");e[o]?Object.assign(e[o],{[n]:t.default}):Object.assign(e,{[o]:{[n]:t.default}})}else Object.assign(e,{[t.name]:t.default});return e},{}),r={options:{...a}};exports.allProps=i;exports.default=r;exports.defaultOptions=a;exports.getCountry=d;exports.setCaretPosition=l;
@@ -1,259 +0,0 @@
1
- import i from "./all-countries.js";
2
- function r() {
3
- return fetch("https://ip2c.org/s").then((e) => e.text()).then((e) => {
4
- const t = (e || "").toString();
5
- if (!t || t[0] !== "1")
6
- throw new Error("unable to fetch the country");
7
- return t.substr(2, 2);
8
- });
9
- }
10
- function l(e, t) {
11
- if (e.setSelectionRange)
12
- e.focus(), e.setSelectionRange(t, t);
13
- else if (e.createTextRange) {
14
- const n = e.createTextRange();
15
- n.collapse(!0), n.moveEnd("character", t), n.moveStart("character", t), n.select();
16
- }
17
- }
18
- const a = [
19
- {
20
- name: "allCountries",
21
- type: Array,
22
- default: i,
23
- description: "All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",
24
- inDemo: !1
25
- },
26
- {
27
- name: "autoFormat",
28
- type: Boolean,
29
- default: !0,
30
- description: "Auto update the input to the formatted phone number when it's valid",
31
- inDemo: !0
32
- },
33
- {
34
- name: "customValidate",
35
- type: [Boolean, RegExp],
36
- default: !1,
37
- description: "Custom validation RegExp for input",
38
- inDemo: !1
39
- },
40
- {
41
- name: "defaultCountry",
42
- default: "",
43
- type: String,
44
- description: "Default country, will override the country fetched from IP address of user",
45
- inDemo: !1
46
- },
47
- {
48
- name: "disabled",
49
- default: !1,
50
- type: Boolean,
51
- description: "Disable <code>vue-tel-input</code>, including the input & flag dropdown",
52
- inDemo: !1
53
- },
54
- {
55
- name: "autoDefaultCountry",
56
- default: !0,
57
- type: Boolean,
58
- description: "To fetch default country based on IP address of user",
59
- inDemo: !1
60
- },
61
- {
62
- name: "dropdownOptions",
63
- type: Object,
64
- description: "Options for dropdown, see below",
65
- inDemo: !1
66
- },
67
- {
68
- name: "dropdownOptions.showDialCodeInList",
69
- default: !0,
70
- type: Boolean,
71
- description: "Show dial code in the dropdown list",
72
- inDemo: !0
73
- },
74
- {
75
- name: "dropdownOptions.showDialCodeInSelection",
76
- default: !1,
77
- type: Boolean,
78
- description: "Show dial code in the dropdown selection",
79
- inDemo: !0
80
- },
81
- {
82
- name: "dropdownOptions.showFlags",
83
- default: !0,
84
- type: Boolean,
85
- description: "Show flags in the dropdown selection and list",
86
- inDemo: !0
87
- },
88
- {
89
- name: "dropdownOptions.tabindex",
90
- default: 0,
91
- type: Number,
92
- description: "Native dropdown <code>tabindex</code> attribute",
93
- inDemo: !1
94
- },
95
- {
96
- name: "ignoredCountries",
97
- default: [],
98
- type: Array,
99
- description: "List of countries will NOT be shown on the dropdown",
100
- inDemo: !1
101
- },
102
- {
103
- name: "inputOptions",
104
- type: Object,
105
- description: "Options for input, see below",
106
- inDemo: !1
107
- },
108
- {
109
- name: "inputOptions.autocomplete",
110
- type: String,
111
- default: "on",
112
- description: "Native input <code>autocomplete</code> attribute",
113
- inDemo: !1
114
- },
115
- {
116
- name: "inputOptions.autofocus",
117
- type: Boolean,
118
- default: !1,
119
- description: "Native input <code>autofocus</code> attribute",
120
- inDemo: !1
121
- },
122
- // {
123
- // name: 'inputOptions.dynamicPlaceholder',
124
- // default: false,
125
- // type: Boolean,
126
- // description: 'Placeholder as a sample phone number in the current country',
127
- // inDemo: false,
128
- // },
129
- {
130
- name: "inputOptions.id",
131
- default: "",
132
- type: String,
133
- description: "Native input <code>id</code> attribute",
134
- inDemo: !1
135
- },
136
- {
137
- name: "inputOptions.maxlength",
138
- default: 25,
139
- type: Number,
140
- description: "Native input <code>maxlength</code> attribute",
141
- inDemo: !1
142
- },
143
- {
144
- name: "inputOptions.name",
145
- default: "telephone",
146
- type: String,
147
- description: "Native input <code>name</code> attribute",
148
- inDemo: !1
149
- },
150
- {
151
- name: "inputOptions.placeholder",
152
- default: "Enter a phone number",
153
- type: String,
154
- description: "Placeholder for the input",
155
- inDemo: !1
156
- },
157
- {
158
- name: "inputOptions.readonly",
159
- default: !1,
160
- type: Boolean,
161
- description: "Native input <code>readonly</code> attribute",
162
- inDemo: !1
163
- },
164
- {
165
- name: "inputOptions.required",
166
- default: !1,
167
- type: Boolean,
168
- description: "Native input <code>required</code> attribute",
169
- inDemo: !1
170
- },
171
- {
172
- name: "inputOptions.tabindex",
173
- default: 0,
174
- type: Number,
175
- description: "Native input <code>tabindex</code> attribute",
176
- inDemo: !1
177
- },
178
- {
179
- name: "inputOptions.type",
180
- default: "tel",
181
- type: String,
182
- description: "Native input <code>type</code> attribute",
183
- inDemo: !1
184
- },
185
- {
186
- name: "inputOptions.styleClasses",
187
- default: "",
188
- type: [String, Array, Object],
189
- description: "Custom classes for the <code>input</code>",
190
- inDemo: !1
191
- },
192
- {
193
- name: "invalidMsg",
194
- default: "",
195
- type: String,
196
- description: "",
197
- inDemo: !1
198
- },
199
- {
200
- name: "mode",
201
- default: "auto",
202
- type: String,
203
- description: "Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",
204
- inDemo: !0,
205
- options: ["auto", "national", "international"]
206
- },
207
- {
208
- name: "onlyCountries",
209
- default: [],
210
- type: Array,
211
- description: "List of countries will be shown on the dropdown",
212
- inDemo: !1
213
- },
214
- {
215
- name: "preferredCountries",
216
- default: [],
217
- type: Array,
218
- description: "Preferred countries list, will be on top of the dropdown",
219
- inDemo: !1
220
- },
221
- {
222
- name: "styleClasses",
223
- default: "",
224
- type: [String, Array, Object],
225
- description: "Custom classes for the wrapper",
226
- inDemo: !1
227
- },
228
- {
229
- name: "validCharactersOnly",
230
- default: !1,
231
- type: Boolean,
232
- description: "Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",
233
- inDemo: !1
234
- }
235
- ], s = [...a].reduce((e, t) => {
236
- if (t.name.includes(".")) {
237
- const [n, o] = t.name.split(".");
238
- e[n] ? Object.assign(e[n], {
239
- [o]: t.default
240
- }) : Object.assign(e, {
241
- [n]: {
242
- [o]: t.default
243
- }
244
- });
245
- } else
246
- Object.assign(e, {
247
- [t.name]: t.default
248
- });
249
- return e;
250
- }, {}), u = {
251
- options: { ...s }
252
- };
253
- export {
254
- a as allProps,
255
- u as default,
256
- s as defaultOptions,
257
- r as getCountry,
258
- l as setCaretPosition
259
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");require("./Magnifier.vue2.cjs");const M=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_=["src"],S={__name:"Magnifier",props:{imageSrc:String,zoomFactor:{type:Number,default:2}},setup(u){const n=u,a=o.ref(!1),r=o.ref({});function l(e){const t=e.target.getBoundingClientRect(),g=e.clientX-t.left,v=e.clientY-t.top,c=200,s=Math.max(0,Math.min(g-c/2,t.width-c)),i=Math.max(0,Math.min(v-c/2,t.height-c));r.value={left:`${s}px`,top:`${i}px`,backgroundPosition:`-${s*n.zoomFactor}px -${i*n.zoomFactor}px`,backgroundImage:`url(${n.imageSrc})`,backgroundSize:`${t.width*n.zoomFactor}px ${t.height*n.zoomFactor}px`}}function m(e){a.value=!0,l(e)}function d(){a.value=!1}function h(e){e.preventDefault(),a.value=!0,l(e.touches[0])}function f(e){e.preventDefault(),l(e.touches[0])}function p(){a.value=!1}return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:"w-100 image-container",onMousemove:m,onMouseleave:d,onTouchstart:h,onTouchmove:f,onTouchend:p},[o.createElementVNode("img",{src:(e.FILE_SERVER_URL||"")+u.imageSrc,class:"w-100"},null,8,_),a.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"zoom-lens",style:o.normalizeStyle(r.value)},null,4)):o.createCommentVNode("",!0)],32))}},z=M.default(S,[["__scopeId","data-v-9fd5ea8e"]]);exports.default=z;