@ozdao/prometheus-framework 0.2.130 → 0.2.133

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. package/dist/auth.server.js +0 -1
  2. package/dist/auth.server.mjs +0 -1
  3. package/dist/community.server.js +172 -31
  4. package/dist/community.server.mjs +172 -31
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +38 -4
  8. package/dist/files.server.mjs +38 -4
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/main-CI9l9xMs.js +92 -0
  12. package/dist/main-DPg58GOU.mjs +14509 -0
  13. package/dist/main.css +1 -1
  14. package/dist/orders.server.js +1 -1
  15. package/dist/orders.server.mjs +1 -1
  16. package/dist/organizations.server.js +4 -3
  17. package/dist/organizations.server.mjs +4 -3
  18. package/dist/products.server.js +2 -1
  19. package/dist/products.server.mjs +2 -1
  20. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
  22. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
  24. package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
  25. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
  27. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
  29. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  30. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
  31. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
  33. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
  35. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
  37. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
  38. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
  39. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
  41. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
  42. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
  43. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
  45. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
  47. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
  49. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
  51. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
  52. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
  53. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  54. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
  55. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
  57. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
  59. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
  60. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
  61. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
  62. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
  63. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
  65. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
  67. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
  72. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
  74. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
  76. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +54 -71
  78. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
  80. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +86 -76
  82. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
  84. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
  86. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
  87. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
  88. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
  90. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +27 -28
  92. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
  94. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
  96. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
  98. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
  99. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
  100. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
  102. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
  104. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  105. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +22 -22
  113. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -27
  115. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
  117. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
  118. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  124. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
  125. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +112 -85
  133. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -35
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
  142. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
  144. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
  146. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  148. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
  154. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
  156. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
  159. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
  161. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
  164. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  165. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
  166. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
  167. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
  168. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
  169. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
  170. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
  171. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
  172. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
  173. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
  174. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +154 -77
  176. package/dist/prometheus-framework.cjs.js +1 -1
  177. package/dist/prometheus-framework.es.js +14 -14
  178. package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
  179. package/dist/queryProcessor-iewDZq_f.js +178 -0
  180. package/dist/style.css +1 -1
  181. package/dist/wallet.server.js +80 -27
  182. package/dist/wallet.server.mjs +80 -27
  183. package/dist/web-DZUec7pP.js +1 -0
  184. package/dist/web-krQQeSb6.mjs +54 -0
  185. package/package.json +1 -1
  186. package/src/components/Address/Address.vue +1 -1
  187. package/src/components/Chips/Chips.vue +1 -1
  188. package/src/components/Completion/Completion.vue +1 -4
  189. package/src/components/DatePicker/Calendar.vue +1 -1
  190. package/src/components/Draggable/Draggable.vue +113 -0
  191. package/src/components/Dropdown/Dropdown.vue +1 -1
  192. package/src/components/Feed/Feed.vue +18 -12
  193. package/src/components/FieldBig/FieldBig.vue +11 -1
  194. package/src/components/FieldPhone/FieldPhone.vue +1 -1
  195. package/src/components/FieldTags/FieldTags.vue +2 -1
  196. package/src/components/FieldTags/tag-input.vue +1 -1
  197. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  198. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  199. package/src/components/Shader/Shader.vue +2 -2
  200. package/src/components/Slider/Slider.vue +1 -5
  201. package/src/components/Spoiler/Spoiler.vue +1 -1
  202. package/src/components/Text/Text.vue +1 -4
  203. package/src/components/Tooltip/Tooltip.vue +1 -1
  204. package/src/components/Upload/Upload.vue +5 -3
  205. package/src/modules/auth/controllers/auth.controller.js +0 -2
  206. package/src/modules/auth/store/auth.js +2 -2
  207. package/src/modules/community/DOCUMENTATION.MD +4 -0
  208. package/src/modules/community/community.client.js +0 -2
  209. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
  210. package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
  211. package/src/modules/community/components/layouts/Community.vue +15 -11
  212. package/src/modules/community/components/pages/Blog.vue +25 -32
  213. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
  214. package/src/modules/community/components/sections/Comment.vue +123 -0
  215. package/src/modules/community/components/sections/Comments.vue +90 -19
  216. package/src/modules/community/components/sections/HotPosts.vue +3 -6
  217. package/src/modules/community/controllers/blog.controller.js +1 -1
  218. package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
  219. package/src/modules/community/controllers/comments.controller.js +187 -38
  220. package/src/modules/community/controllers/comments.controller.populate.js +180 -0
  221. package/src/modules/community/models/comment.model.js +15 -0
  222. package/src/modules/community/store/blogposts.js +20 -2
  223. package/src/modules/constructor/components/elements/Audio.vue +28 -40
  224. package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
  225. package/src/modules/constructor/components/elements/Video.vue +10 -18
  226. package/src/modules/constructor/components/sections/Constructor.vue +54 -47
  227. package/src/modules/files/controllers/files.controller.js +2 -0
  228. package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
  229. package/src/modules/files/routes/files.routes.js +8 -0
  230. package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
  231. package/src/modules/globals/components/partials/Header.vue +12 -7
  232. package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
  233. package/src/modules/icons/logos/Logotype.vue +8 -6
  234. package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
  235. package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
  236. package/src/modules/marketplace/store/marketplace.js +2 -8
  237. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  238. package/src/modules/organizations/components/pages/Members.vue +1 -1
  239. package/src/modules/organizations/components/pages/Organization.vue +33 -5
  240. package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
  241. package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
  242. package/src/modules/organizations/components/sections/Publics.vue +2 -2
  243. package/src/modules/organizations/controllers/memberships.controller.js +2 -3
  244. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  245. package/src/modules/organizations/store/memberships.js +4 -1
  246. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  247. package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
  248. package/src/modules/products/models/product.model.js +2 -1
  249. package/src/modules/spots/components/layouts/Spots.vue +0 -3
  250. package/src/modules/spots/components/pages/Map.vue +13 -3
  251. package/src/modules/users/components/blocks/CardUser.vue +2 -2
  252. package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
  253. package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
  254. package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
  255. package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
  256. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
  257. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
  258. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
  259. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
  260. package/src/modules/wallet/localization/Wallet.json +22 -0
  261. package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
  262. package/src/styles/base/all.scss +16 -26
  263. package/src/styles/config.scss +70 -34
  264. package/src/styles/typography.scss +5 -5
  265. package/src/modules/community/components/sections/Feed.vue +0 -148
  266. package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
  267. package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -1,16 +1,15 @@
1
- import { ref as d, reactive as ge, onMounted as Ce, 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";
1
+ import { ref as d, reactive as ge, onMounted as Ce, 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 F, 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
2
  import je from "./click-outside.js";
3
3
  import Ae from "./all-countries.js";
4
4
  /* empty css */
5
- import De from "../../../../_virtual/_plugin-vue_export-helper.js";
6
5
  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 = {
6
+ const De = ["tabindex"], Be = { class: "flex-nowrap flex flex-v-center p-medium vti__selection" }, Ee = ["innerHTML"], Me = {
8
7
  key: 1,
9
8
  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 = {
9
+ }, Fe = ["onClick", "onMousemove"], Pe = ["innerHTML"], He = { key: 1 }, Ve = ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex"], Le = {
11
10
  key: 0,
12
11
  class: "mn-t-thin mn-b-thin invalid-feedback"
13
- }, Ne = {
12
+ }, ze = {
14
13
  __name: "FieldPhone",
15
14
  props: {
16
15
  modelValue: { type: String, default: "" },
@@ -98,9 +97,9 @@ const Be = ["tabindex"], Ee = { class: "flex-nowrap flex flex-v-center p-medium
98
97
  J.value = !0;
99
98
  });
100
99
  });
101
- const g = p(() => T(v.value)), Q = p(() => g.value ? g.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(
100
+ const g = p(() => T(v.value)), Q = p(() => g.value ? g.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")), M = p(() => t.onlyCountries && t.onlyCountries.length ? t.allCountries.filter(({ iso2: e }) => t.onlyCountries.includes(e.toUpperCase())) : t.ignoredCountries && t.ignoredCountries.length ? t.allCountries.filter(
102
101
  ({ iso2: e }) => !t.ignoredCountries.includes(e.toUpperCase()) && !t.ignoredCountries.includes(e.toLowerCase())
103
- ) : t.allCountries), C = p(() => [...ae(t.preferredCountries).map((n) => ({ ...n, preferred: !0 })), ...F.value]), u = p(() => {
102
+ ) : t.allCountries), C = p(() => [...ae(t.preferredCountries).map((n) => ({ ...n, preferred: !0 })), ...M.value]), u = p(() => {
104
103
  var j, q, z;
105
104
  let e = {};
106
105
  ((j = o.value) == null ? void 0 : j[0]) === "+" ? e = H(o.value) || {} : e = H(o.value, v.value) || {};
@@ -167,7 +166,7 @@ const Be = ["tabindex"], Ee = { class: "flex-nowrap flex flex-v-center p-medium
167
166
  b(t.defaultCountry), e();
168
167
  return;
169
168
  }
170
- const n = t.preferredCountries[0] || F.value[0];
169
+ const n = t.preferredCountries[0] || M.value[0];
171
170
  t.autoDefaultCountry ? te().then((r) => {
172
171
  b(r || v.value);
173
172
  }).catch((r) => {
@@ -181,7 +180,7 @@ const Be = ["tabindex"], Ee = { class: "flex-nowrap flex flex-v-center p-medium
181
180
  return e.map((n) => T(n)).filter(Boolean);
182
181
  }
183
182
  function T(e = "") {
184
- return F.value.find((n) => n.iso2 === e.toUpperCase());
183
+ return M.value.find((n) => n.iso2 === e.toUpperCase());
185
184
  }
186
185
  function oe(e, n) {
187
186
  const a = i.value === e, r = e === t.preferredCountries.length - 1, O = t.preferredCountries.some((j) => j.toUpperCase() === n);
@@ -285,7 +284,7 @@ const Be = ["tabindex"], Ee = { class: "flex-nowrap flex flex-v-center p-medium
285
284
  ref_key: "rootElement",
286
285
  ref: N
287
286
  }, [
288
- M((y(), m("div", {
287
+ F((y(), m("div", {
289
288
  class: I([["vti__dropdown", { open: f.value }], "br-solid br-black-transp br-1px radius-thin"]),
290
289
  style: A([l.dropdownStyle]),
291
290
  tabindex: l.dropdownOptions.tabindex,
@@ -295,15 +294,15 @@ const Be = ["tabindex"], Ee = { class: "flex-nowrap flex flex-v-center p-medium
295
294
  ],
296
295
  onClick: ve
297
296
  }, [
298
- w("span", Ee, [
297
+ w("span", Be, [
299
298
  l.dropdownOptions.showFlags ? (y(), m("span", {
300
299
  key: 0,
301
300
  innerHTML: Q.value,
302
301
  class: "mn-r-nano"
303
- }, null, 8, Fe)) : x("", !0),
302
+ }, null, 8, Ee)) : x("", !0),
304
303
  l.dropdownOptions.showDialCodeInSelection ? (y(), m("span", Me, " +" + D(g.value && g.value.dialCode), 1)) : x("", !0)
305
304
  ]),
306
- M(w("ul", {
305
+ F(w("ul", {
307
306
  ref_key: "list",
308
307
  ref: s,
309
308
  class: I(["bs-black radius-small vti__dropdown-list", L.value]),
@@ -319,17 +318,17 @@ const Be = ["tabindex"], Ee = { class: "flex-nowrap flex flex-v-center p-medium
319
318
  key: 0,
320
319
  innerHTML: a.flag,
321
320
  class: "mn-r-thin"
322
- }, null, 8, He)) : x("", !0),
321
+ }, null, 8, Pe)) : x("", !0),
323
322
  w("strong", null, D(a.name), 1),
324
- l.dropdownOptions.showDialCodeInList ? (y(), m("span", Ve, " +" + D(a.dialCode), 1)) : x("", !0)
325
- ], 42, Pe))), 128))
323
+ l.dropdownOptions.showDialCodeInList ? (y(), m("span", He, " +" + D(a.dialCode), 1)) : x("", !0)
324
+ ], 42, Fe))), 128))
326
325
  ], 6), [
327
326
  [Oe, f.value]
328
327
  ])
329
- ], 46, Be)), [
328
+ ], 46, De)), [
330
329
  [Se(G), pe]
331
330
  ]),
332
- M(w("input", {
331
+ F(w("input", {
333
332
  "onUpdate:modelValue": n[0] || (n[0] = (a) => o.value = a),
334
333
  inputmode: "numeric",
335
334
  pattern: "\\d*",
@@ -355,20 +354,20 @@ const Be = ["tabindex"], Ee = { class: "flex-nowrap flex flex-v-center p-medium
355
354
  P(ce, ["enter"]),
356
355
  P(fe, ["space"])
357
356
  ]
358
- }, null, 46, Le), [
357
+ }, null, 46, Ve), [
359
358
  [we, o.value]
360
359
  ]),
361
- Ie(e.$slots, "default", {}, void 0, !0)
360
+ Ie(e.$slots, "default")
362
361
  ], 6),
363
362
  xe(Te, { name: "fade" }, {
364
363
  default: ke(() => [
365
- l.validation ? (y(), m("div", Re, " * " + D(l.validation.message), 1)) : x("", !0)
364
+ l.validation ? (y(), m("div", Le, " * " + D(l.validation.message), 1)) : x("", !0)
366
365
  ]),
367
366
  _: 1
368
367
  })
369
368
  ], 64));
370
369
  }
371
- }, Ge = /* @__PURE__ */ De(Ne, [["__scopeId", "data-v-550fb753"]]);
370
+ };
372
371
  export {
373
- Ge as default
372
+ ze as default
374
373
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./vue-tags-input.cjs"),t=require("vue");;/* empty css */const i=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),d={class:"ti-input"},m={key:0,class:"ti-tags"},u=["onClick"],p={class:"ti-content"},g={key:0,class:"ti-tag-left"},f=["onClick"],k={key:1,class:"ti-tag-right"},E={class:"ti-actions"},v=["onClick"],c=["onClick"],C={class:"ti-new-tag-input-wrapper"},S=["placeholder","value","maxlength","disabled"],y=["onMouseover"],T=["onClick"];function $(e,r,h,w,N,V){const a=t.resolveComponent("tag-input");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue-tags-input",[{"ti-disabled":e.disabled},{"ti-focus":e.focused},e.$attrs.class]]),style:t.normalizeStyle(e.$attrs.style)},[t.createElementVNode("div",d,[e.tagsCopy?(t.openBlock(),t.createElementBlock("ul",m,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tagsCopy,(o,l)=>(t.openBlock(),t.createElementBlock("li",{key:l,style:t.normalizeStyle(o.style),class:t.normalizeClass([[{"ti-editing":e.tagsEditStatus[l]},o.tiClasses,o.classes,{"ti-deletion-mark":e.isMarked(l)}],"ti-tag t-medium"]),tabindex:"0",onClick:s=>e.$emit("tag-clicked",{tag:o,index:l})},[t.createElementVNode("div",p,[e.$slots["tag-left"]?(t.openBlock(),t.createElementBlock("div",g,[t.renderSlot(e.$slots,"tag-left",{tag:o,index:l,edit:e.tagsEditStatus[l],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(l)},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_for:!0,ref:e.setTagCenter,class:"ti-tag-center"},[e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass({"ti-hidden":e.tagsEditStatus[l]}),onClick:s=>e.performEditTag(l)},t.toDisplayString(o.text),11,f)),e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:1,scope:{edit:e.tagsEditStatus[l],maxlength:e.maxlength,tag:o,index:l,validateTag:e.createChangedTag,performCancelEdit:e.cancelEdit,performSaveEdit:e.performSaveTag}},null,8,["scope"])),t.renderSlot(e.$slots,"tag-center",{tag:o,index:l,maxlength:e.maxlength,edit:e.tagsEditStatus[l],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,validateTag:e.createChangedTag,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(l)},void 0,!0)],512),e.$slots["tag-right"]?(t.openBlock(),t.createElementBlock("div",k,[t.renderSlot(e.$slots,"tag-right",{tag:o,index:l,edit:e.tagsEditStatus[l],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(l)},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",E,[e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:0,class:"ti-icon-undo",onClick:s=>e.cancelEdit(l)},null,8,v)),[[t.vShow,e.tagsEditStatus[l]]]),e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:1,class:"ti-icon-close",onClick:s=>e.performDeleteTag(l)},null,8,c)),[[t.vShow,!e.tagsEditStatus[l]]]),e.$slots["tag-actions"]?t.renderSlot(e.$slots,"tag-actions",{key:2,tag:o,index:l,edit:e.tagsEditStatus[l],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(l)},void 0,!0):t.createCommentVNode("",!0)])],14,u))),128)),t.createElementVNode("li",C,[t.createElementVNode("input",t.mergeProps({ref:"newTagInput"},e.$attrs,{class:[[e.createClasses(e.newTag,e.tags,e.validation,e.isDuplicate)],"ti-new-tag-input"],placeholder:e.placeholder,value:e.newTag,maxlength:e.maxlength,disabled:e.disabled,type:"text",size:"1",onKeydown:[r[0]||(r[0]=o=>e.performAddTags(e.filteredAutocompleteItems[e.selectedItem]||e.newTag,o)),r[2]||(r[2]=t.withKeys((...o)=>e.invokeDelete&&e.invokeDelete(...o),["delete"])),r[3]||(r[3]=t.withKeys((...o)=>e.performBlur&&e.performBlur(...o),["tab"])),r[4]||(r[4]=t.withKeys(o=>e.selectItem(o,"before"),["up"])),r[5]||(r[5]=t.withKeys(o=>e.selectItem(o,"after"),["down"]))],onPaste:r[1]||(r[1]=(...o)=>e.addTagsFromPaste&&e.addTagsFromPaste(...o)),onInput:r[6]||(r[6]=(...o)=>e.updateNewTag&&e.updateNewTag(...o)),onFocus:r[7]||(r[7]=o=>e.focused=!0),onClick:r[8]||(r[8]=o=>e.addOnlyFromAutocomplete?!1:e.selectedItem=null)}),null,16,S)])])):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"between-elements",{},void 0,!0),e.autocompleteOpen?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["ti-autocomplete",e.$attrs.class]),onMouseout:r[9]||(r[9]=o=>e.selectedItem=null)},[t.renderSlot(e.$slots,"autocomplete-header",{},void 0,!0),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredAutocompleteItems,(o,l)=>(t.openBlock(),t.createElementBlock("li",{key:l,style:t.normalizeStyle(o.style),class:t.normalizeClass([[o.tiClasses,o.classes,{"ti-selected-item":e.isSelected(l)}],"ti-item"]),onMouseover:s=>e.disabled?!1:e.selectedItem=l},[e.$slots["autocomplete-item"]?t.renderSlot(e.$slots,"autocomplete-item",{key:1,item:o,index:l,performAdd:s=>e.performAddTags(s,void 0,"autocomplete"),selected:e.isSelected(l)},void 0,!0):(t.openBlock(),t.createElementBlock("div",{key:0,onClick:s=>e.performAddTags(o,void 0,"autocomplete")},t.toDisplayString(o.text),9,T))],46,y))),128))]),t.renderSlot(e.$slots,"autocomplete-footer",{},void 0,!0)],34)):t.createCommentVNode("",!0)],6)}const B=i.default(n.default,[["render",$],["__scopeId","data-v-7792d8ec"]]);exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./vue-tags-input.cjs"),t=require("vue");;/* empty css */const i=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),d={class:"ti-input"},m={key:0,class:"ti-tags"},p=["onClick"],u={class:"ti-content"},g={key:0,class:"ti-tag-left"},k=["onClick"],f={key:1,class:"ti-tag-right"},E={class:"ti-actions"},v=["onClick"],c=["onClick"],C={class:"ti-new-tag-input-wrapper"},S=["placeholder","value","maxlength","disabled"],y=["onMouseover"],T=["onClick"];function $(e,s,h,w,N,V){const a=t.resolveComponent("tag-input");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue-tags-input",[{"ti-disabled":e.disabled},{"ti-focus":e.focused},e.$attrs.class]]),style:t.normalizeStyle(e.$attrs.style)},[t.createElementVNode("div",d,[e.tagsCopy?(t.openBlock(),t.createElementBlock("ul",m,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tagsCopy,(o,l)=>(t.openBlock(),t.createElementBlock("li",{key:l,style:t.normalizeStyle(o.style),class:t.normalizeClass([[{"ti-editing":e.tagsEditStatus[l]},o.tiClasses,o.classes,{"ti-deletion-mark":e.isMarked(l)}],"ti-tag t-medium"]),tabindex:"0",onClick:r=>e.$emit("tag-clicked",{tag:o,index:l})},[t.createElementVNode("div",u,[e.$slots["tag-left"]?(t.openBlock(),t.createElementBlock("div",g,[t.renderSlot(e.$slots,"tag-left",{tag:o,index:l,edit:e.tagsEditStatus[l],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(l)})])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_for:!0,ref:e.setTagCenter,class:"ti-tag-center"},[e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass({"ti-hidden":e.tagsEditStatus[l]}),onClick:r=>e.performEditTag(l)},t.toDisplayString(o.text),11,k)),e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:1,scope:{edit:e.tagsEditStatus[l],maxlength:e.maxlength,tag:o,index:l,validateTag:e.createChangedTag,performCancelEdit:e.cancelEdit,performSaveEdit:e.performSaveTag}},null,8,["scope"])),t.renderSlot(e.$slots,"tag-center",{tag:o,index:l,maxlength:e.maxlength,edit:e.tagsEditStatus[l],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,validateTag:e.createChangedTag,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(l)})],512),e.$slots["tag-right"]?(t.openBlock(),t.createElementBlock("div",f,[t.renderSlot(e.$slots,"tag-right",{tag:o,index:l,edit:e.tagsEditStatus[l],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(l)})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",E,[e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:0,class:"ti-icon-undo",onClick:r=>e.cancelEdit(l)},null,8,v)),[[t.vShow,e.tagsEditStatus[l]]]),e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:1,class:"ti-icon-close",onClick:r=>e.performDeleteTag(l)},null,8,c)),[[t.vShow,!e.tagsEditStatus[l]]]),e.$slots["tag-actions"]?t.renderSlot(e.$slots,"tag-actions",{key:2,tag:o,index:l,edit:e.tagsEditStatus[l],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(l)}):t.createCommentVNode("",!0)])],14,p))),128)),t.createElementVNode("li",C,[t.createElementVNode("input",t.mergeProps({ref:"newTagInput"},e.$attrs,{class:[[e.createClasses(e.newTag,e.tags,e.validation,e.isDuplicate)],"ti-new-tag-input"],placeholder:e.placeholder,value:e.newTag,maxlength:e.maxlength,disabled:e.disabled,type:"text",size:"1",onKeydown:[s[0]||(s[0]=o=>e.performAddTags(e.filteredAutocompleteItems[e.selectedItem]||e.newTag,o)),s[2]||(s[2]=t.withKeys((...o)=>e.invokeDelete&&e.invokeDelete(...o),["delete"])),s[3]||(s[3]=t.withKeys((...o)=>e.performBlur&&e.performBlur(...o),["tab"])),s[4]||(s[4]=t.withKeys(o=>e.selectItem(o,"before"),["up"])),s[5]||(s[5]=t.withKeys(o=>e.selectItem(o,"after"),["down"]))],onPaste:s[1]||(s[1]=(...o)=>e.addTagsFromPaste&&e.addTagsFromPaste(...o)),onInput:s[6]||(s[6]=(...o)=>e.updateNewTag&&e.updateNewTag(...o)),onFocus:s[7]||(s[7]=o=>e.focused=!0),onClick:s[8]||(s[8]=o=>e.addOnlyFromAutocomplete?!1:e.selectedItem=null)}),null,16,S)])])):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"between-elements"),e.autocompleteOpen?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["ti-autocomplete",e.$attrs.class]),onMouseout:s[9]||(s[9]=o=>e.selectedItem=null)},[t.renderSlot(e.$slots,"autocomplete-header"),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredAutocompleteItems,(o,l)=>(t.openBlock(),t.createElementBlock("li",{key:l,style:t.normalizeStyle(o.style),class:t.normalizeClass([[o.tiClasses,o.classes,{"ti-selected-item":e.isSelected(l)}],"ti-item"]),onMouseover:r=>e.disabled?!1:e.selectedItem=l},[e.$slots["autocomplete-item"]?t.renderSlot(e.$slots,"autocomplete-item",{key:1,item:o,index:l,performAdd:r=>e.performAddTags(r,void 0,"autocomplete"),selected:e.isSelected(l)}):(t.openBlock(),t.createElementBlock("div",{key:0,onClick:r=>e.performAddTags(o,void 0,"autocomplete")},t.toDisplayString(o.text),9,T))],46,y))),128))]),t.renderSlot(e.$slots,"autocomplete-footer")],34)):t.createCommentVNode("",!0)],6)}const B=i.default(n.default,[["render",$]]);exports.default=B;
@@ -1,11 +1,11 @@
1
1
  import T from "./vue-tags-input.js";
2
- import { resolveComponent as y, openBlock as a, createElementBlock as r, normalizeClass as u, normalizeStyle as m, createElementVNode as d, Fragment as g, renderList as f, renderSlot as i, createCommentVNode as l, toDisplayString as v, createBlock as C, withDirectives as k, vShow as E, mergeProps as S, withKeys as p } from "vue";
2
+ import { resolveComponent as y, openBlock as a, createElementBlock as l, normalizeClass as p, normalizeStyle as u, createElementVNode as d, Fragment as g, renderList as f, renderSlot as i, createCommentVNode as r, toDisplayString as v, createBlock as C, withDirectives as k, vShow as E, mergeProps as S, withKeys as m } from "vue";
3
3
  /* empty css */
4
4
  import h from "../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const w = { class: "ti-input" }, D = {
6
6
  key: 0,
7
7
  class: "ti-tags"
8
- }, M = ["onClick"], I = { class: "ti-content" }, b = {
8
+ }, M = ["onClick"], b = { class: "ti-content" }, I = {
9
9
  key: 0,
10
10
  class: "ti-tag-left"
11
11
  }, A = ["onClick"], F = {
@@ -14,16 +14,16 @@ const w = { class: "ti-input" }, D = {
14
14
  }, O = { class: "ti-actions" }, B = ["onClick"], N = ["onClick"], P = { class: "ti-new-tag-input-wrapper" }, z = ["placeholder", "value", "maxlength", "disabled"], K = ["onMouseover"], V = ["onClick"];
15
15
  function L(e, o, j, q, G, H) {
16
16
  const $ = y("tag-input");
17
- return a(), r("div", {
18
- class: u(["vue-tags-input", [{ "ti-disabled": e.disabled }, { "ti-focus": e.focused }, e.$attrs.class]]),
19
- style: m(e.$attrs.style)
17
+ return a(), l("div", {
18
+ class: p(["vue-tags-input", [{ "ti-disabled": e.disabled }, { "ti-focus": e.focused }, e.$attrs.class]]),
19
+ style: u(e.$attrs.style)
20
20
  }, [
21
21
  d("div", w, [
22
- e.tagsCopy ? (a(), r("ul", D, [
23
- (a(!0), r(g, null, f(e.tagsCopy, (t, s) => (a(), r("li", {
22
+ e.tagsCopy ? (a(), l("ul", D, [
23
+ (a(!0), l(g, null, f(e.tagsCopy, (t, s) => (a(), l("li", {
24
24
  key: s,
25
- style: m(t.style),
26
- class: u([[
25
+ style: u(t.style),
26
+ class: p([[
27
27
  { "ti-editing": e.tagsEditStatus[s] },
28
28
  t.tiClasses,
29
29
  t.classes,
@@ -32,8 +32,8 @@ function L(e, o, j, q, G, H) {
32
32
  tabindex: "0",
33
33
  onClick: (n) => e.$emit("tag-clicked", { tag: t, index: s })
34
34
  }, [
35
- d("div", I, [
36
- e.$slots["tag-left"] ? (a(), r("div", b, [
35
+ d("div", b, [
36
+ e.$slots["tag-left"] ? (a(), l("div", I, [
37
37
  i(e.$slots, "tag-left", {
38
38
  tag: t,
39
39
  index: s,
@@ -43,19 +43,19 @@ function L(e, o, j, q, G, H) {
43
43
  performCancelEdit: e.cancelEdit,
44
44
  performOpenEdit: e.performEditTag,
45
45
  deletionMark: e.isMarked(s)
46
- }, void 0, !0)
47
- ])) : l("", !0),
46
+ })
47
+ ])) : r("", !0),
48
48
  d("div", {
49
49
  ref_for: !0,
50
50
  ref: e.setTagCenter,
51
51
  class: "ti-tag-center"
52
52
  }, [
53
- e.$slots["tag-center"] ? l("", !0) : (a(), r("span", {
53
+ e.$slots["tag-center"] ? r("", !0) : (a(), l("span", {
54
54
  key: 0,
55
- class: u({ "ti-hidden": e.tagsEditStatus[s] }),
55
+ class: p({ "ti-hidden": e.tagsEditStatus[s] }),
56
56
  onClick: (n) => e.performEditTag(s)
57
57
  }, v(t.text), 11, A)),
58
- e.$slots["tag-center"] ? l("", !0) : (a(), C($, {
58
+ e.$slots["tag-center"] ? r("", !0) : (a(), C($, {
59
59
  key: 1,
60
60
  scope: {
61
61
  edit: e.tagsEditStatus[s],
@@ -78,9 +78,9 @@ function L(e, o, j, q, G, H) {
78
78
  validateTag: e.createChangedTag,
79
79
  performOpenEdit: e.performEditTag,
80
80
  deletionMark: e.isMarked(s)
81
- }, void 0, !0)
81
+ })
82
82
  ], 512),
83
- e.$slots["tag-right"] ? (a(), r("div", F, [
83
+ e.$slots["tag-right"] ? (a(), l("div", F, [
84
84
  i(e.$slots, "tag-right", {
85
85
  tag: t,
86
86
  index: s,
@@ -90,18 +90,18 @@ function L(e, o, j, q, G, H) {
90
90
  performCancelEdit: e.cancelEdit,
91
91
  performOpenEdit: e.performEditTag,
92
92
  deletionMark: e.isMarked(s)
93
- }, void 0, !0)
94
- ])) : l("", !0)
93
+ })
94
+ ])) : r("", !0)
95
95
  ]),
96
96
  d("div", O, [
97
- e.$slots["tag-actions"] ? l("", !0) : k((a(), r("i", {
97
+ e.$slots["tag-actions"] ? r("", !0) : k((a(), l("i", {
98
98
  key: 0,
99
99
  class: "ti-icon-undo",
100
100
  onClick: (n) => e.cancelEdit(s)
101
101
  }, null, 8, B)), [
102
102
  [E, e.tagsEditStatus[s]]
103
103
  ]),
104
- e.$slots["tag-actions"] ? l("", !0) : k((a(), r("i", {
104
+ e.$slots["tag-actions"] ? r("", !0) : k((a(), l("i", {
105
105
  key: 1,
106
106
  class: "ti-icon-close",
107
107
  onClick: (n) => e.performDeleteTag(s)
@@ -118,7 +118,7 @@ function L(e, o, j, q, G, H) {
118
118
  performCancelEdit: e.cancelEdit,
119
119
  performOpenEdit: e.performEditTag,
120
120
  deletionMark: e.isMarked(s)
121
- }, void 0, !0) : l("", !0)
121
+ }) : r("", !0)
122
122
  ])
123
123
  ], 14, M))), 128)),
124
124
  d("li", P, [
@@ -135,10 +135,10 @@ function L(e, o, j, q, G, H) {
135
135
  e.filteredAutocompleteItems[e.selectedItem] || e.newTag,
136
136
  t
137
137
  )),
138
- o[2] || (o[2] = p((...t) => e.invokeDelete && e.invokeDelete(...t), ["delete"])),
139
- o[3] || (o[3] = p((...t) => e.performBlur && e.performBlur(...t), ["tab"])),
140
- o[4] || (o[4] = p((t) => e.selectItem(t, "before"), ["up"])),
141
- o[5] || (o[5] = p((t) => e.selectItem(t, "after"), ["down"]))
138
+ o[2] || (o[2] = m((...t) => e.invokeDelete && e.invokeDelete(...t), ["delete"])),
139
+ o[3] || (o[3] = m((...t) => e.performBlur && e.performBlur(...t), ["tab"])),
140
+ o[4] || (o[4] = m((t) => e.selectItem(t, "before"), ["up"])),
141
+ o[5] || (o[5] = m((t) => e.selectItem(t, "after"), ["down"]))
142
142
  ],
143
143
  onPaste: o[1] || (o[1] = (...t) => e.addTagsFromPaste && e.addTagsFromPaste(...t)),
144
144
  onInput: o[6] || (o[6] = (...t) => e.updateNewTag && e.updateNewTag(...t)),
@@ -146,20 +146,20 @@ function L(e, o, j, q, G, H) {
146
146
  onClick: o[8] || (o[8] = (t) => e.addOnlyFromAutocomplete ? !1 : e.selectedItem = null)
147
147
  }), null, 16, z)
148
148
  ])
149
- ])) : l("", !0)
149
+ ])) : r("", !0)
150
150
  ]),
151
- i(e.$slots, "between-elements", {}, void 0, !0),
152
- e.autocompleteOpen ? (a(), r("div", {
151
+ i(e.$slots, "between-elements"),
152
+ e.autocompleteOpen ? (a(), l("div", {
153
153
  key: 0,
154
- class: u(["ti-autocomplete", e.$attrs.class]),
154
+ class: p(["ti-autocomplete", e.$attrs.class]),
155
155
  onMouseout: o[9] || (o[9] = (t) => e.selectedItem = null)
156
156
  }, [
157
- i(e.$slots, "autocomplete-header", {}, void 0, !0),
157
+ i(e.$slots, "autocomplete-header"),
158
158
  d("ul", null, [
159
- (a(!0), r(g, null, f(e.filteredAutocompleteItems, (t, s) => (a(), r("li", {
159
+ (a(!0), l(g, null, f(e.filteredAutocompleteItems, (t, s) => (a(), l("li", {
160
160
  key: s,
161
- style: m(t.style),
162
- class: u([[
161
+ style: u(t.style),
162
+ class: p([[
163
163
  t.tiClasses,
164
164
  t.classes,
165
165
  { "ti-selected-item": e.isSelected(s) }
@@ -172,17 +172,17 @@ function L(e, o, j, q, G, H) {
172
172
  index: s,
173
173
  performAdd: (n) => e.performAddTags(n, void 0, "autocomplete"),
174
174
  selected: e.isSelected(s)
175
- }, void 0, !0) : (a(), r("div", {
175
+ }) : (a(), l("div", {
176
176
  key: 0,
177
177
  onClick: (n) => e.performAddTags(t, void 0, "autocomplete")
178
178
  }, v(t.text), 9, V))
179
179
  ], 46, K))), 128))
180
180
  ]),
181
- i(e.$slots, "autocomplete-footer", {}, void 0, !0)
182
- ], 34)) : l("", !0)
181
+ i(e.$slots, "autocomplete-footer")
182
+ ], 34)) : r("", !0)
183
183
  ], 6);
184
184
  }
185
- const W = /* @__PURE__ */ h(T, [["render", L], ["__scopeId", "data-v-7792d8ec"]]);
185
+ const W = /* @__PURE__ */ h(T, [["render", L]]);
186
186
  export {
187
187
  W as default
188
188
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");;/* empty css */const i=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),u={name:"TagInput",props:{scope:{type:Object}}},l=["maxlength"];function a(s,t,e,r,c,p){return e.scope.edit?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=n=>e.scope.tag.text=n),maxlength:e.scope.maxlength,type:"text",class:"ti-tag-input",size:"1",onInput:t[1]||(t[1]=n=>e.scope.validateTag(e.scope.index,n)),onBlur:t[2]||(t[2]=n=>e.scope.performCancelEdit(e.scope.index)),onKeydown:t[3]||(t[3]=n=>e.scope.performSaveEdit(e.scope.index,n))},null,40,l)),[[o.vModelText,e.scope.tag.text]]):o.createCommentVNode("",!0)}const d=i.default(u,[["render",a],["__scopeId","data-v-a1f1c345"]]);exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");;/* empty css */const i=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),u={name:"TagInput",props:{scope:{type:Object}}},l=["maxlength"];function d(a,t,e,r,c,g){return e.scope.edit?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=n=>e.scope.tag.text=n),maxlength:e.scope.maxlength,type:"text",class:"ti-tag-input",size:"1",onInput:t[1]||(t[1]=n=>e.scope.validateTag(e.scope.index,n)),onBlur:t[2]||(t[2]=n=>e.scope.performCancelEdit(e.scope.index)),onKeydown:t[3]||(t[3]=n=>e.scope.performSaveEdit(e.scope.index,n))},null,40,l)),[[o.vModelText,e.scope.tag.text]]):o.createCommentVNode("",!0)}const s=i.default(u,[["render",d]]);exports.default=s;
@@ -8,8 +8,8 @@ const m = {
8
8
  type: Object
9
9
  }
10
10
  }
11
- }, c = ["maxlength"];
12
- function p(r, t, e, u, x, f) {
11
+ }, r = ["maxlength"];
12
+ function c(p, t, e, u, x, f) {
13
13
  return e.scope.edit ? o((i(), a("input", {
14
14
  key: 0,
15
15
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.scope.tag.text = n),
@@ -20,11 +20,11 @@ function p(r, t, e, u, x, f) {
20
20
  onInput: t[1] || (t[1] = (n) => e.scope.validateTag(e.scope.index, n)),
21
21
  onBlur: t[2] || (t[2] = (n) => e.scope.performCancelEdit(e.scope.index)),
22
22
  onKeydown: t[3] || (t[3] = (n) => e.scope.performSaveEdit(e.scope.index, n))
23
- }, null, 40, c)), [
23
+ }, null, 40, r)), [
24
24
  [d, e.scope.tag.text]
25
25
  ]) : s("", !0);
26
26
  }
27
- const I = /* @__PURE__ */ l(m, [["render", p], ["__scopeId", "data-v-a1f1c345"]]);
27
+ const T = /* @__PURE__ */ l(m, [["render", c]]);
28
28
  export {
29
- I as default
29
+ T as default
30
30
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs"),w=require("../Loader/Loader.vue2.cjs");;/* empty css */const L=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_=s=>(e.pushScopeId("data-v-7af36552"),s=s(),e.popScopeId(),s),k={class:"pos-relative"},b={key:0,class:"i-regular",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M=_(()=>e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"rgb(var(--white))"},null,-1)),E=_(()=>e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"rgb(var(--white))"},null,-1)),V=[M,E],x={__name:"LocationMarker",props:{location:{type:Object,default:()=>({lat:15.87,lng:100.9925})},address:{type:String,default:null},apiKey:String,locale:{type:String,default:"en"}},emits:["update:location","update:address","update:country","update:state","update:city"],setup(s,{emit:y}){const o=s,n=y,u=e.ref(null),c=e.ref(!1);let i,d;e.onMounted(()=>{new v.Loader({apiKey:o.apiKey,version:"weekly",libraries:["places"],language:o.locale}).load().then(()=>{i=new google.maps.Map(u.value,{center:o.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1,disableDefaultUI:!0}),d=new google.maps.Marker({position:o.location,map:i,draggable:!0}),d.addListener("dragend",t=>{const l={lat:t.latLng.lat(),lng:t.latLng.lng()};n("update:location",l),p(l)})}).catch(t=>{console.error(t)})}),e.watchEffect(()=>{o.location&&d&&d.setPosition(new google.maps.LatLng(o.location.lat,o.location.lng))}),e.watchEffect(()=>{if(o.location&&i){const a=new google.maps.LatLng(o.location.lat,o.location.lng);i.setCenter(a),i.setZoom(15)}});function p(a){new google.maps.Geocoder().geocode({location:a},(l,g)=>{if(g==="OK")if(l[0]){n("update:address",l[0].formatted_address);let f="",m="",C="";l[0].address_components.forEach(r=>{r.types.includes("country")&&(f=r.long_name),r.types.includes("administrative_area_level_1")&&(m=r.long_name),r.types.includes("locality")&&(C=r.long_name)}),n("update:country",f),n("update:state",m),n("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+g)})}async function h(){c.value=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(a=>{const t={lat:a.coords.latitude,lng:a.coords.longitude};n("update:location",t),p(t),c.value=!1},()=>{console.error("Error getting location"),c.value=!1}):(console.error("Geolocation is not supported by this browser."),c.value=!1)}return(a,t)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",{ref_key:"mapContainer",ref:u,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",onClick:h},[e.createVNode(e.Transition,{name:"ScaleOut",mode:"out-in"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(w.default,{key:1,class:"pos-t-0 pos-l-0 i-small"})):(e.openBlock(),e.createElementBlock("svg",b,V))]),_:1})])]))}},S=L.default(x,[["__scopeId","data-v-7af36552"]]);exports.default=S;
@@ -0,0 +1,127 @@
1
+ import { ref as y, onMounted as b, watchEffect as h, openBlock as p, createElementBlock as w, createElementVNode as d, createVNode as x, Transition as M, withCtx as S, createBlock as V, pushScopeId as E, popScopeId as I } from "vue";
2
+ import { Loader as Z } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
3
+ import B from "../Loader/Loader.vue2.js";
4
+ /* empty css */
5
+ import H from "../../../../_virtual/_plugin-vue_export-helper.js";
6
+ const v = (r) => (E("data-v-7af36552"), r = r(), I(), r), K = { class: "pos-relative" }, G = {
7
+ key: 0,
8
+ class: "i-regular",
9
+ width: "98",
10
+ height: "98",
11
+ viewBox: "0 0 98 98",
12
+ fill: "none",
13
+ xmlns: "http://www.w3.org/2000/svg"
14
+ }, N = /* @__PURE__ */ v(() => /* @__PURE__ */ d("path", {
15
+ d: "M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",
16
+ fill: "rgb(var(--white))"
17
+ }, null, -1)), O = /* @__PURE__ */ v(() => /* @__PURE__ */ d("path", {
18
+ d: "M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",
19
+ fill: "rgb(var(--white))"
20
+ }, null, -1)), P = [
21
+ N,
22
+ O
23
+ ], T = {
24
+ __name: "LocationMarker",
25
+ props: {
26
+ location: {
27
+ type: Object,
28
+ default: () => ({ lat: 15.87, lng: 100.9925 })
29
+ },
30
+ address: {
31
+ type: String,
32
+ default: null
33
+ },
34
+ apiKey: String,
35
+ locale: {
36
+ type: String,
37
+ default: "en"
38
+ }
39
+ },
40
+ emits: ["update:location", "update:address", "update:country", "update:state", "update:city"],
41
+ setup(r, { emit: L }) {
42
+ const e = r, a = L, u = y(null), s = y(!1);
43
+ let i, c;
44
+ b(() => {
45
+ new Z({
46
+ apiKey: e.apiKey,
47
+ version: "weekly",
48
+ libraries: ["places"],
49
+ language: e.locale
50
+ }).load().then(() => {
51
+ i = new google.maps.Map(u.value, {
52
+ center: e.location,
53
+ zoom: 15,
54
+ mapTypeControl: !1,
55
+ fullscreenControl: !1,
56
+ disableDefaultUI: !0
57
+ }), c = new google.maps.Marker({
58
+ position: e.location,
59
+ map: i,
60
+ draggable: !0
61
+ }), c.addListener("dragend", (o) => {
62
+ const n = { lat: o.latLng.lat(), lng: o.latLng.lng() };
63
+ a("update:location", n), g(n);
64
+ });
65
+ }).catch((o) => {
66
+ console.error(o);
67
+ });
68
+ }), h(() => {
69
+ e.location && c && c.setPosition(new google.maps.LatLng(e.location.lat, e.location.lng));
70
+ }), h(() => {
71
+ if (e.location && i) {
72
+ const t = new google.maps.LatLng(e.location.lat, e.location.lng);
73
+ i.setCenter(t), i.setZoom(15);
74
+ }
75
+ });
76
+ function g(t) {
77
+ new google.maps.Geocoder().geocode({ location: t }, (n, f) => {
78
+ if (f === "OK")
79
+ if (n[0]) {
80
+ a("update:address", n[0].formatted_address);
81
+ let m = "", C = "", _ = "";
82
+ n[0].address_components.forEach((l) => {
83
+ l.types.includes("country") && (m = l.long_name), l.types.includes("administrative_area_level_1") && (C = l.long_name), l.types.includes("locality") && (_ = l.long_name);
84
+ }), a("update:country", m), a("update:state", C), a("update:city", _);
85
+ } else
86
+ console.error("No results found");
87
+ else
88
+ console.error("Geocoder failed due to: " + f);
89
+ });
90
+ }
91
+ async function k() {
92
+ s.value = !0, navigator.geolocation ? navigator.geolocation.getCurrentPosition((t) => {
93
+ const o = { lat: t.coords.latitude, lng: t.coords.longitude };
94
+ a("update:location", o), g(o), s.value = !1;
95
+ }, () => {
96
+ console.error("Error getting location"), s.value = !1;
97
+ }) : (console.error("Geolocation is not supported by this browser."), s.value = !1);
98
+ }
99
+ return (t, o) => (p(), w("div", K, [
100
+ d("div", {
101
+ ref_key: "mapContainer",
102
+ ref: u,
103
+ class: "w-100 h-100"
104
+ }, null, 512),
105
+ d("button", {
106
+ class: "cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",
107
+ onClick: k
108
+ }, [
109
+ x(M, {
110
+ name: "ScaleOut",
111
+ mode: "out-in"
112
+ }, {
113
+ default: S(() => [
114
+ s.value ? (p(), V(B, {
115
+ key: 1,
116
+ class: "pos-t-0 pos-l-0 i-small"
117
+ })) : (p(), w("svg", G, P))
118
+ ]),
119
+ _: 1
120
+ })
121
+ ])
122
+ ]));
123
+ }
124
+ }, F = /* @__PURE__ */ H(T, [["__scopeId", "data-v-7af36552"]]);
125
+ export {
126
+ F as default
127
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs"),w=require("../Loader/Loader.vue2.cjs");;/* empty css */const L=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_=s=>(e.pushScopeId("data-v-7af36552"),s=s(),e.popScopeId(),s),k={class:"pos-relative"},b={key:0,class:"i-regular",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M=_(()=>e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"rgb(var(--white))"},null,-1)),E=_(()=>e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"rgb(var(--white))"},null,-1)),V=[M,E],x={__name:"LocationMarker",props:{location:{type:Object,default:()=>({lat:15.87,lng:100.9925})},address:{type:String,default:null},apiKey:String,locale:{type:String,default:"en"}},emits:["update:location","update:address","update:country","update:state","update:city"],setup(s,{emit:y}){const o=s,n=y,u=e.ref(null),c=e.ref(!1);let i,d;e.onMounted(()=>{new v.Loader({apiKey:o.apiKey,version:"weekly",libraries:["places"],language:o.locale}).load().then(()=>{i=new google.maps.Map(u.value,{center:o.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1,disableDefaultUI:!0}),d=new google.maps.Marker({position:o.location,map:i,draggable:!0}),d.addListener("dragend",t=>{const l={lat:t.latLng.lat(),lng:t.latLng.lng()};n("update:location",l),p(l)})}).catch(t=>{console.error(t)})}),e.watchEffect(()=>{o.location&&d&&d.setPosition(new google.maps.LatLng(o.location.lat,o.location.lng))}),e.watchEffect(()=>{if(o.location&&i){const a=new google.maps.LatLng(o.location.lat,o.location.lng);i.setCenter(a),i.setZoom(15)}});function p(a){new google.maps.Geocoder().geocode({location:a},(l,g)=>{if(g==="OK")if(l[0]){n("update:address",l[0].formatted_address);let f="",m="",C="";l[0].address_components.forEach(r=>{r.types.includes("country")&&(f=r.long_name),r.types.includes("administrative_area_level_1")&&(m=r.long_name),r.types.includes("locality")&&(C=r.long_name)}),n("update:country",f),n("update:state",m),n("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+g)})}async function h(){c.value=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(a=>{const t={lat:a.coords.latitude,lng:a.coords.longitude};n("update:location",t),p(t),c.value=!1},()=>{console.error("Error getting location"),c.value=!1}):(console.error("Geolocation is not supported by this browser."),c.value=!1)}return(a,t)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",{ref_key:"mapContainer",ref:u,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",onClick:h},[e.createVNode(e.Transition,{name:"ScaleOut",mode:"out-in"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(w.default,{key:1,class:"pos-t-0 pos-l-0 i-small"})):(e.openBlock(),e.createElementBlock("svg",b,V))]),_:1})])]))}},S=L.default(x,[["__scopeId","data-v-7af36552"]]);exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs"),h=require("../Loader/Loader.vue2.cjs");;/* empty css */const v={class:"pos-relative"},L={key:0,class:"i-regular",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k=e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"rgb(var(--white))"},null,-1),b=e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"rgb(var(--white))"},null,-1),E=[k,b],M={__name:"LocationMarker",props:{location:{type:Object,default:()=>({lat:15.87,lng:100.9925})},address:{type:String,default:null},apiKey:String,locale:{type:String,default:"en"}},emits:["update:location","update:address","update:country","update:state","update:city"],setup(C,{emit:_}){const o=C,n=_,d=e.ref(null),s=e.ref(!1);let c,i;e.onMounted(()=>{new w.Loader({apiKey:o.apiKey,version:"weekly",libraries:["places"],language:o.locale}).load().then(()=>{c=new google.maps.Map(d.value,{center:o.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1,disableDefaultUI:!0}),i=new google.maps.Marker({position:o.location,map:c,draggable:!0}),i.addListener("dragend",t=>{const l={lat:t.latLng.lat(),lng:t.latLng.lng()};n("update:location",l),u(l)})}).catch(t=>{console.error(t)})}),e.watchEffect(()=>{o.location&&i&&i.setPosition(new google.maps.LatLng(o.location.lat,o.location.lng))}),e.watchEffect(()=>{if(o.location&&c){const a=new google.maps.LatLng(o.location.lat,o.location.lng);c.setCenter(a),c.setZoom(15)}});function u(a){new google.maps.Geocoder().geocode({location:a},(l,g)=>{if(g==="OK")if(l[0]){n("update:address",l[0].formatted_address);let p="",f="",m="";l[0].address_components.forEach(r=>{r.types.includes("country")&&(p=r.long_name),r.types.includes("administrative_area_level_1")&&(f=r.long_name),r.types.includes("locality")&&(m=r.long_name)}),n("update:country",p),n("update:state",f),n("update:city",m)}else console.error("No results found");else console.error("Geocoder failed due to: "+g)})}async function y(){s.value=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(a=>{const t={lat:a.coords.latitude,lng:a.coords.longitude};n("update:location",t),u(t),s.value=!1},()=>{console.error("Error getting location"),s.value=!1}):(console.error("Geolocation is not supported by this browser."),s.value=!1)}return(a,t)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",onClick:y},[e.createVNode(e.Transition,{name:"ScaleOut",mode:"out-in"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createBlock(h.default,{key:1,class:"pos-t-0 pos-l-0 i-small"})):(e.openBlock(),e.createElementBlock("svg",L,E))]),_:1})])]))}};exports.default=M;