@ozdao/prometheus-framework 0.2.38 → 0.2.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) hide show
  1. package/dist/auth.server.js +1 -2
  2. package/dist/auth.server.mjs +1 -2
  3. package/dist/files.server.js +1 -2
  4. package/dist/files.server.mjs +1 -2
  5. package/dist/globals.server.js +1 -1
  6. package/dist/globals.server.mjs +1 -1
  7. package/dist/mailing-10560277.mjs +78 -0
  8. package/dist/mailing-902d13d5.js +77 -0
  9. package/dist/main.css +1 -1
  10. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Button/Button.vue.js +225 -2
  12. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
  14. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  16. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
  18. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +13 -9
  20. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -0
  22. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +26 -22
  24. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +29 -30
  26. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
  28. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
  30. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
  34. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  36. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
  38. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -0
  39. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +69 -0
  40. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
  42. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  44. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +10 -7
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +18 -15
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  52. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +16 -13
  54. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  56. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +23 -20
  58. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/store/auth.js +8 -8
  62. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/community/community.client.js +18 -20
  64. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +88 -62
  66. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +97 -68
  68. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +35 -34
  70. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +18 -18
  72. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
  73. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
  75. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +4 -4
  77. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +65 -19
  79. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +9 -9
  81. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +8 -7
  83. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -6
  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 +65 -2
  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 +2 -65
  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 +64 -70
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  92. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
  98. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +6 -5
  100. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +43 -42
  106. package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.cjs +1 -0
  107. package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.js +30 -0
  108. package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.cjs +1 -0
  109. package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.js +47 -0
  110. package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.cjs +1 -0
  111. package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.js +28 -0
  112. package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.cjs +1 -0
  113. package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.js +45 -0
  114. package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.cjs +1 -0
  115. package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.js +32 -0
  116. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +3 -3
  118. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.js +25 -14
  120. package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.cjs +1 -0
  121. package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.js +44 -0
  122. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +90 -67
  124. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  126. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  132. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -42
  134. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +60 -55
  148. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +18 -17
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +20 -21
  160. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +7 -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 +2 -2
  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 +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  167. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  169. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +6 -6
  171. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  175. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +37 -34
  179. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +23 -23
  181. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  183. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  184. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +6 -6
  186. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  188. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  190. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +31 -30
  194. package/dist/prometheus-framework.cjs.js +20 -20
  195. package/dist/prometheus-framework.es.js +1003 -999
  196. package/dist/style.css +1 -1
  197. package/package.json +1 -1
  198. package/src/components/Button/Button.vue +2 -3
  199. package/src/components/Chips/Chips.vue +9 -3
  200. package/src/components/Dropdown/Dropdown.vue +9 -3
  201. package/src/components/Feed/Feed.vue +7 -11
  202. package/src/components/Feed/Masonry.vue +177 -0
  203. package/src/components/FieldBig/FieldBig.vue +3 -3
  204. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  205. package/src/components/Navigation/Navigation.vue +2 -0
  206. package/src/components/Shader/Shader.vue +161 -116
  207. package/src/components/Slider/Slider.vue +92 -0
  208. package/src/modules/applications/applications.client.js +2 -0
  209. package/src/modules/applications/components/sections/SubscribeNewsletter.vue +114 -0
  210. package/src/modules/applications/controllers/applications.controller.js +125 -136
  211. package/src/modules/applications/models/application.model.js +22 -7
  212. package/src/modules/applications/routes/applications.routes.js +29 -13
  213. package/src/modules/auth/components/pages/EnterCode.vue +4 -1
  214. package/src/modules/auth/components/pages/EnterPassword.vue +4 -1
  215. package/src/modules/auth/components/pages/ResetPassword.vue +4 -1
  216. package/src/modules/auth/components/pages/SignUp.vue +4 -1
  217. package/src/modules/auth/controllers/auth.controller.js +2 -3
  218. package/src/modules/auth/localization/SignUp.json +1 -1
  219. package/src/modules/auth/store/auth.js +3 -5
  220. package/src/modules/chats/components/blocks/ChatMessage.vue +3 -2
  221. package/src/modules/chats/components/pages/ChatPage.vue +6 -6
  222. package/src/modules/chats/components/sections/ChatWindow.vue +57 -12
  223. package/src/modules/chats/store/chat.store.js +6 -1
  224. package/src/modules/community/community.client.js +0 -2
  225. package/src/modules/community/components/blocks/CardBlogpost.vue +71 -33
  226. package/src/modules/community/components/layouts/Community.vue +63 -24
  227. package/src/modules/community/components/pages/Blog.vue +37 -0
  228. package/src/modules/community/components/pages/BlogPost.vue +5 -6
  229. package/src/modules/community/components/pages/Community.vue +1 -0
  230. package/src/modules/community/components/sections/Feed.vue +1 -1
  231. package/src/modules/community/components/sections/HotPosts.vue +64 -24
  232. package/src/modules/community/components/sections/JoinUs.vue +4 -5
  233. package/src/modules/community/store/blogposts.js +1 -0
  234. package/src/modules/constructor/components/elements/Embed.vue +7 -6
  235. package/src/modules/constructor/components/elements/Image.vue +2 -2
  236. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  237. package/src/modules/constructor/components/sections/Constructor.vue +2 -18
  238. package/src/modules/files/middlewares/server/middlewareBusboy.js +1 -1
  239. package/src/modules/files/routes/files.routes.js +9 -1
  240. package/src/modules/globals/components/blocks/CardHeader.vue +6 -3
  241. package/src/modules/globals/utils/mailing.js +12 -0
  242. package/src/modules/icons/entities/IconEarn.vue +20 -0
  243. package/src/modules/icons/entities/IconFeatured.vue +14 -0
  244. package/src/modules/icons/entities/IconFollowing.vue +17 -0
  245. package/src/modules/icons/entities/IconPopular.vue +14 -0
  246. package/src/modules/icons/entities/IconRecent.vue +17 -0
  247. package/src/modules/icons/navigation/IconAdd.vue +1 -3
  248. package/src/modules/icons/navigation/IconArrow.vue +21 -0
  249. package/src/modules/icons/navigation/IconCheckmark.vue +16 -0
  250. package/src/modules/icons/navigation/IconChevronRight.vue +2 -2
  251. package/src/modules/icons/navigation/IconEdit.vue +16 -2
  252. package/src/modules/icons/navigation/IconEllipsis.vue +16 -0
  253. package/src/modules/icons/placeholders/PlaceholderChat.vue +9 -0
  254. package/src/modules/landing/components/sections/MobileApp.vue +38 -21
  255. package/src/modules/landing/components/sections/SectionEarn.vue +104 -0
  256. package/src/modules/landing/components/sections/SectionFeatures.vue +80 -0
  257. package/src/modules/landing/components/sections/{Guide.vue → SectionGuide.vue} +1 -1
  258. package/src/modules/landing/components/sections/SectionHeroToken.vue +138 -0
  259. package/src/modules/landing/components/sections/SectionRoadmap.vue +108 -0
  260. package/src/modules/marketplace/components/layouts/Marketplace.vue +2 -2
  261. package/src/modules/orders/components/blocks/StatusHistory.vue +7 -1
  262. package/src/modules/orders/components/pages/Order.vue +3 -4
  263. package/src/modules/organizations/components/blocks/CardOrganization.vue +6 -6
  264. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  265. package/src/modules/organizations/components/sections/DetailsTab.vue +42 -43
  266. package/src/modules/organizations/components/sections/Publics.vue +3 -4
  267. package/src/modules/products/components/sections/HeroRecommendation.vue +9 -170
  268. package/src/modules/products/components/sections/MenuSection.vue +4 -4
  269. package/src/modules/products/components/sections/PopularProducts.vue +3 -3
  270. package/src/modules/spots/components/layouts/Spots.vue +2 -2
  271. package/src/modules/wallet/components/pages/Wallet.vue +1 -1
  272. package/src/styles/base/all.scss +4 -0
  273. package/src/styles/base/backgrounds.scss +2 -2
  274. package/src/styles/base/shadow_transitions_hover_refactor.scss +11 -1
  275. package/src/styles/typography.scss +19 -12
  276. package/src/modules/community/components/sections/SubscribeNewsletter.vue +0 -67
  277. package/src/modules/constructor/components/elements/Youtube.vue +0 -52
  278. package/src/modules/landing/components/sections/HeroGovernance.vue +0 -156
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-i18n"),i=require("../../../icons/labels/LabelAppStore.vue.cjs"),l=require("../../../icons/labels/LabelGooglePlay.vue.cjs");require("./MobileApp.vue2.cjs");const c={id:"mobileApp",class:"pd-thin"},r={class:"pos-relative flex-nowrap flex gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big"},d={class:"z-index-1 h-100"},m=["src"],p=["src"],u={class:"z-index-1 w-1/2"},g={class:"mn-t-medium mn-b-semi w-m-40r"},_={class:"t-transp mn-b-big p-big w-m-33r"},h={class:"mn-b-big gap-medium cols-2"},f={class:"feature"},b={class:"mn-b-small"},E={class:"t-transp p-medium"},y={class:"feature"},V={class:"mn-b-small"},v={class:"t-transp p-medium"},N={class:"feature"},w={class:"mn-b-small"},S={class:"t-transp p-medium"},x={class:"feature"},k={class:"mn-b-small"},D={class:"t-transp p-medium"},I={class:"w-m-33r flex-nowrap flex gap-medium"},z={class:"pos-relative w-100 h-100"},L={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},A={class:"pos-relative w-100 h-100"},M={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},R={key:0,class:"grid-lines"},U={__name:"MobileApp",props:{mockupImage:{type:String,default:"/landing/mockup.png"},mockupMobile:{type:String,default:"/landing/mockup-mobile.png"},bgImage:{type:String,default:""},textData:{type:Object,default:()=>({messages:{en:{title:"Explore the Cannabis World at Your Fingertips",description:"Intuitive, Efficient, and Customized for Your Cannabis Needs",features:{soonLabel:"Soon",instantUpdates:{title:"Instant Updates",text:"Receive real-time notifications for new product releases and community updates. Always stay in the loop."},locate:{title:"Locate with Ease",text:"Discover nearby dispensaries and cannabis events with our integrated geolocation services."},wallet:{title:"Wallet Integration",text:"Quickly and securely manage your transactions with integrated digital wallet functionality. Safety and convenience come together."},customization:{title:"Customization by AI",text:"Experience the AI difference with personalized recommendations based on your preferences and trends in the community."}}}}})}},setup(s){const o=s,{t}=n.useI18n(o.textData);return(a,q)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("section",r,[e.createElementVNode("div",d,[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+s.mockupImage,alt:"Mobile App Mockup",class:"desktop-only h-100 w-100 object-fit-contain"},null,8,m),e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+s.mockupMobile,alt:"Mobile App Mockup",class:"mobile-only h-100 w-100 object-fit-contain"},null,8,p)]),e.createElementVNode("div",u,[e.createElementVNode("h2",g,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",_,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",h,[e.createElementVNode("div",f,[e.createElementVNode("h3",b,e.toDisplayString(e.unref(t)("features.instantUpdates.title")),1),e.createElementVNode("p",E,e.toDisplayString(e.unref(t)("features.instantUpdates.text")),1)]),e.createElementVNode("div",y,[e.createElementVNode("h3",V,e.toDisplayString(e.unref(t)("features.locate.title")),1),e.createElementVNode("p",v,e.toDisplayString(e.unref(t)("features.locate.text")),1)]),e.createElementVNode("div",N,[e.createElementVNode("h3",w,e.toDisplayString(e.unref(t)("features.wallet.title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("features.wallet.text")),1)]),e.createElementVNode("div",x,[e.createElementVNode("h3",k,e.toDisplayString(e.unref(t)("features.customization.title")),1),e.createElementVNode("p",D,e.toDisplayString(e.unref(t)("features.customization.text")),1)])]),e.createElementVNode("div",I,[e.createElementVNode("div",z,[e.createElementVNode("span",L,e.toDisplayString(e.unref(t)("features.soonLabel")),1),e.createVNode(i.default,{class:"w-100 h-100",alt:"Download on App Store"})]),e.createElementVNode("div",A,[e.createElementVNode("span",M,e.toDisplayString(e.unref(t)("features.soonLabel")),1),e.createVNode(l.default,{class:"w-100 h-100",alt:"Download on Google Play"})])])]),e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-0 pos-r-0 z-index-0 grid",style:e.normalizeStyle({backgroundImage:`url(${s.bgImage})`})},[s.bgImage?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",R))],4)])]))}};exports.default=U;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-i18n"),r=require("../../../icons/labels/LabelAppStore.vue.cjs"),c=require("../../../icons/labels/LabelGooglePlay.vue.cjs");require("./MobileApp.vue2.cjs");const d={id:"mobileApp",class:"pd-thin"},u={class:"pos-relative cols-2 pd-thin o-hidden bg-black t-white radius-extra"},p={class:"z-index-1 h-100"},m=["src"],f={class:"pd-big flex flex-h-center flex-column z-index-1 w-1/2"},g={class:"mn-t-medium mn-b-semi w-m-40r"},h={class:"t-transp mn-b-big p-big w-m-33r"},_={class:"mn-b-big gap-medium cols-2"},b={class:"feature"},y={class:"t-transp p-medium"},x={class:"feature"},N={class:"t-transp p-medium"},V={class:"feature"},v={class:"t-transp p-medium"},E={class:"feature"},w={class:"t-transp p-medium"},k={class:"w-m-25r flex-nowrap flex gap-medium"},S=["href","target"],D={key:0,class:"z-index-2 radius-big bg-main t-semi uppercase pd-l-thin pd-r-thin pos-absolute pos-r-small-negative pos-t-small-negative"},A=["href","target"],C={key:0,class:"z-index-2 pd-l-thin pd-r-thin radius-big bg-main t-semi uppercase pos-absolute pos-r-small-negative pos-t-small-negative"},I={__name:"MobileApp",props:{mockupImage:{type:String,default:"/landing/mockup.png"},mockupMobile:{type:String,default:"/landing/mockup-mobile.png"},bgImage:{type:String,default:""},textData:{type:Object,default:()=>({messages:{en:{title:"Explore the Cannabis World at Your Fingertips",description:"Intuitive, Efficient, and Customized for Your Cannabis Needs",features:{soonLabel:"Soon",instantUpdates:{title:"Instant Updates",text:"Receive real-time notifications for new product releases and community updates. Always stay in the loop."},locate:{title:"Locate with Ease",text:"Discover nearby dispensaries and cannabis events with our integrated geolocation services."},wallet:{title:"Wallet Integration",text:"Quickly and securely manage your transactions with integrated digital wallet functionality. Safety and convenience come together."},customization:{title:"Customization by AI",text:"Experience the AI difference with personalized recommendations based on your preferences and trends in the community."}}}}})}},setup(s){const o=s,{t,te:a}=l.useI18n(o.textData);return(i,z)=>{const n=e.resolveComponent("H4");return e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("section",u,[e.createElementVNode("div",p,[e.createElementVNode("img",{src:(i.FILE_SERVER_URL||"")+s.mockupImage,alt:"Desktop App Mockup",class:"radius-extra h-100 w-100 object-fit-cover"},null,8,m)]),e.createElementVNode("div",f,[e.createElementVNode("h2",g,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",h,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",_,[e.createElementVNode("div",b,[e.createVNode(n,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("features.instantUpdates.title")),1)]),_:1}),e.createElementVNode("p",y,e.toDisplayString(e.unref(t)("features.instantUpdates.text")),1)]),e.createElementVNode("div",x,[e.createVNode(n,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("features.locate.title")),1)]),_:1}),e.createElementVNode("p",N,e.toDisplayString(e.unref(t)("features.locate.text")),1)]),e.createElementVNode("div",V,[e.createVNode(n,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("features.wallet.title")),1)]),_:1}),e.createElementVNode("p",v,e.toDisplayString(e.unref(t)("features.wallet.text")),1)]),e.createElementVNode("div",E,[e.createVNode(n,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("features.customization.title")),1)]),_:1}),e.createElementVNode("p",w,e.toDisplayString(e.unref(t)("features.customization.text")),1)])]),e.createElementVNode("div",k,[e.createElementVNode("a",{href:e.unref(a)("features.linkAppStore")?e.unref(t)("features.linkAppStore"):null,target:e.unref(a)("features.linkAppStore")?"_blank":null,class:"pos-relative w-100 h-100"},[e.unref(a)("features.soonLabel")?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(e.unref(t)("features.soonLabel")),1)):e.createCommentVNode("",!0),e.createVNode(r.default,{class:"w-100 h-100",alt:"Download on App Store"})],8,S),e.createElementVNode("a",{href:e.unref(a)("features.linkGooglePlay")?e.unref(t)("features.linkGooglePlay"):null,target:e.unref(a)("features.linkGooglePlay")?"_blank":null,class:"pos-relative w-100 h-100"},[e.unref(a)("features.soonLabel")?(e.openBlock(),e.createElementBlock("span",C,e.toDisplayString(e.unref(t)("features.soonLabel")),1)):e.createCommentVNode("",!0),e.createVNode(c.default,{class:"w-100 h-100",alt:"Download on Google Play"})],8,A)])])])])}}};exports.default=I;
@@ -1,15 +1,18 @@
1
- import { openBlock as n, createElementBlock as l, createElementVNode as e, toDisplayString as s, unref as o, createVNode as c, normalizeStyle as r, createCommentVNode as p } from "vue";
2
- import { useI18n as m } from "vue-i18n";
3
- import u from "../../../icons/labels/LabelAppStore.vue.js";
4
- import _ from "../../../icons/labels/LabelGooglePlay.vue.js";
1
+ import { resolveComponent as h, openBlock as c, createElementBlock as d, createElementVNode as t, toDisplayString as a, unref as e, createVNode as n, withCtx as l, createTextVNode as r, createCommentVNode as u } from "vue";
2
+ import { useI18n as _ } from "vue-i18n";
3
+ import g from "../../../icons/labels/LabelAppStore.vue.js";
4
+ import b from "../../../icons/labels/LabelGooglePlay.vue.js";
5
5
  import "./MobileApp.vue2.js";
6
- const h = {
6
+ const x = {
7
7
  id: "mobileApp",
8
8
  class: "pd-thin"
9
- }, g = { class: "pos-relative flex-nowrap flex gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big" }, b = { class: "z-index-1 h-100" }, f = ["src"], v = ["src"], w = { class: "z-index-1 w-1/2" }, y = { class: "mn-t-medium mn-b-semi w-m-40r" }, x = { class: "t-transp mn-b-big p-big w-m-33r" }, k = { class: "mn-b-big gap-medium cols-2" }, I = { class: "feature" }, z = { class: "mn-b-small" }, E = { class: "t-transp p-medium" }, S = { class: "feature" }, L = { class: "mn-b-small" }, A = { class: "t-transp p-medium" }, M = { class: "feature" }, R = { class: "mn-b-small" }, D = { class: "t-transp p-medium" }, U = { class: "feature" }, C = { class: "mn-b-small" }, V = { class: "t-transp p-medium" }, N = { class: "w-m-33r flex-nowrap flex gap-medium" }, j = { class: "pos-relative w-100 h-100" }, F = { class: "z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative" }, B = { class: "pos-relative w-100 h-100" }, G = { class: "z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative" }, P = {
9
+ }, v = { class: "pos-relative cols-2 pd-thin o-hidden bg-black t-white radius-extra" }, w = { class: "z-index-1 h-100" }, y = ["src"], k = { class: "pd-big flex flex-h-center flex-column z-index-1 w-1/2" }, S = { class: "mn-t-medium mn-b-semi w-m-40r" }, A = { class: "t-transp mn-b-big p-big w-m-33r" }, z = { class: "mn-b-big gap-medium cols-2" }, I = { class: "feature" }, L = { class: "t-transp p-medium" }, E = { class: "feature" }, C = { class: "t-transp p-medium" }, D = { class: "feature" }, G = { class: "t-transp p-medium" }, N = { class: "feature" }, P = { class: "t-transp p-medium" }, U = { class: "w-m-25r flex-nowrap flex gap-medium" }, V = ["href", "target"], R = {
10
10
  key: 0,
11
- class: "grid-lines"
12
- }, H = {
11
+ class: "z-index-2 radius-big bg-main t-semi uppercase pd-l-thin pd-r-thin pos-absolute pos-r-small-negative pos-t-small-negative"
12
+ }, M = ["href", "target"], j = {
13
+ key: 0,
14
+ class: "z-index-2 pd-l-thin pd-r-thin radius-big bg-main t-semi uppercase pos-absolute pos-r-small-negative pos-t-small-negative"
15
+ }, Q = {
13
16
  __name: "MobileApp",
14
17
  props: {
15
18
  mockupImage: {
@@ -56,70 +59,90 @@ const h = {
56
59
  })
57
60
  }
58
61
  },
59
- setup(a) {
60
- const d = a, { t } = m(d.textData);
61
- return (i, W) => (n(), l("div", h, [
62
- e("section", g, [
63
- e("div", b, [
64
- e("img", {
65
- src: (i.FILE_SERVER_URL || "") + a.mockupImage,
66
- alt: "Mobile App Mockup",
67
- class: "desktop-only h-100 w-100 object-fit-contain"
68
- }, null, 8, f),
69
- e("img", {
70
- src: (i.FILE_SERVER_URL || "") + a.mockupMobile,
71
- alt: "Mobile App Mockup",
72
- class: "mobile-only h-100 w-100 object-fit-contain"
73
- }, null, 8, v)
74
- ]),
75
- e("div", w, [
76
- e("h2", y, s(o(t)("title")), 1),
77
- e("p", x, s(o(t)("description")), 1),
78
- e("div", k, [
79
- e("div", I, [
80
- e("h3", z, s(o(t)("features.instantUpdates.title")), 1),
81
- e("p", E, s(o(t)("features.instantUpdates.text")), 1)
82
- ]),
83
- e("div", S, [
84
- e("h3", L, s(o(t)("features.locate.title")), 1),
85
- e("p", A, s(o(t)("features.locate.text")), 1)
86
- ]),
87
- e("div", M, [
88
- e("h3", R, s(o(t)("features.wallet.title")), 1),
89
- e("p", D, s(o(t)("features.wallet.text")), 1)
90
- ]),
91
- e("div", U, [
92
- e("h3", C, s(o(t)("features.customization.title")), 1),
93
- e("p", V, s(o(t)("features.customization.text")), 1)
94
- ])
62
+ setup(p) {
63
+ const m = p, { t: s, te: o } = _(m.textData);
64
+ return (f, B) => {
65
+ const i = h("H4");
66
+ return c(), d("div", x, [
67
+ t("section", v, [
68
+ t("div", w, [
69
+ t("img", {
70
+ src: (f.FILE_SERVER_URL || "") + p.mockupImage,
71
+ alt: "Desktop App Mockup",
72
+ class: "radius-extra h-100 w-100 object-fit-cover"
73
+ }, null, 8, y)
95
74
  ]),
96
- e("div", N, [
97
- e("div", j, [
98
- e("span", F, s(o(t)("features.soonLabel")), 1),
99
- c(u, {
100
- class: "w-100 h-100",
101
- alt: "Download on App Store"
102
- })
75
+ t("div", k, [
76
+ t("h2", S, a(e(s)("title")), 1),
77
+ t("p", A, a(e(s)("description")), 1),
78
+ t("div", z, [
79
+ t("div", I, [
80
+ n(i, { class: "mn-b-thin" }, {
81
+ default: l(() => [
82
+ r(a(e(s)("features.instantUpdates.title")), 1)
83
+ ]),
84
+ _: 1
85
+ }),
86
+ t("p", L, a(e(s)("features.instantUpdates.text")), 1)
87
+ ]),
88
+ t("div", E, [
89
+ n(i, { class: "mn-b-thin" }, {
90
+ default: l(() => [
91
+ r(a(e(s)("features.locate.title")), 1)
92
+ ]),
93
+ _: 1
94
+ }),
95
+ t("p", C, a(e(s)("features.locate.text")), 1)
96
+ ]),
97
+ t("div", D, [
98
+ n(i, { class: "mn-b-thin" }, {
99
+ default: l(() => [
100
+ r(a(e(s)("features.wallet.title")), 1)
101
+ ]),
102
+ _: 1
103
+ }),
104
+ t("p", G, a(e(s)("features.wallet.text")), 1)
105
+ ]),
106
+ t("div", N, [
107
+ n(i, { class: "mn-b-thin" }, {
108
+ default: l(() => [
109
+ r(a(e(s)("features.customization.title")), 1)
110
+ ]),
111
+ _: 1
112
+ }),
113
+ t("p", P, a(e(s)("features.customization.text")), 1)
114
+ ])
103
115
  ]),
104
- e("div", B, [
105
- e("span", G, s(o(t)("features.soonLabel")), 1),
106
- c(_, {
107
- class: "w-100 h-100",
108
- alt: "Download on Google Play"
109
- })
116
+ t("div", U, [
117
+ t("a", {
118
+ href: e(o)("features.linkAppStore") ? e(s)("features.linkAppStore") : null,
119
+ target: e(o)("features.linkAppStore") ? "_blank" : null,
120
+ class: "pos-relative w-100 h-100"
121
+ }, [
122
+ e(o)("features.soonLabel") ? (c(), d("span", R, a(e(s)("features.soonLabel")), 1)) : u("", !0),
123
+ n(g, {
124
+ class: "w-100 h-100",
125
+ alt: "Download on App Store"
126
+ })
127
+ ], 8, V),
128
+ t("a", {
129
+ href: e(o)("features.linkGooglePlay") ? e(s)("features.linkGooglePlay") : null,
130
+ target: e(o)("features.linkGooglePlay") ? "_blank" : null,
131
+ class: "pos-relative w-100 h-100"
132
+ }, [
133
+ e(o)("features.soonLabel") ? (c(), d("span", j, a(e(s)("features.soonLabel")), 1)) : u("", !0),
134
+ n(b, {
135
+ class: "w-100 h-100",
136
+ alt: "Download on Google Play"
137
+ })
138
+ ], 8, M)
110
139
  ])
111
140
  ])
112
- ]),
113
- e("div", {
114
- class: "w-100 h-100 pos-absolute pos-t-0 pos-r-0 z-index-0 grid",
115
- style: r({ backgroundImage: `url(${a.bgImage})` })
116
- }, [
117
- a.bgImage ? p("", !0) : (n(), l("div", P))
118
- ], 4)
119
- ])
120
- ]));
141
+ ])
142
+ ]);
143
+ };
121
144
  }
122
145
  };
123
146
  export {
124
- H as default
147
+ Q as default
125
148
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
@@ -1,6 +1,6 @@
1
1
  import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, withCtx as o, unref as r, createStaticVNode as c, createElementVNode as a } from "vue";
2
- import "../../../../components/Field/Field.vue.js";
3
- import "../../../../components/Button/Button.vue.js";
2
+ import "../../../../components/Field/Field.vue2.js";
3
+ import "../../../../components/Button/Button.vue2.js";
4
4
  import p from "../../../mobile/components/Menu/Menu.vue2.js";
5
5
  import n from "../../../mobile/components/Menu/MenuItem.vue.js";
6
6
  import { useRoute as d, useRouter as h } from "vue-router";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("vue-router"),f=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const b=require("../../../products/components/blocks/CardPosition.vue.cjs");require("../../../products/store/leftovers.cjs");require("../../../products/components/blocks/ListPositions.vue.cjs");const v=require("../sections/FormOrderDetails.vue.cjs"),r=require("../../store/orders.cjs"),E=require("../../../products/store/products.cjs");require("./EditOrder.vue2.cjs");const B=e.createElementVNode("header",{class:"mn-b-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Edit Order")],-1),x={class:"gap-thin flex-nowrap flex mn-b-semi"},C={class:"w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium"},w={class:"mn-b-small p-big"},P=e.createElementVNode("br",null,null,-1),q=e.createElementVNode("button",{class:"button"},"Подтвердить заказ",-1),S={class:"w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium"},T={class:"mn-b-semi p-big"},D=e.createElementVNode("br",null,null,-1),O=e.createElementVNode("button",{class:"button"},"Изменить статус оплаты",-1),R={key:0,class:"w-100"},A={class:"mn-thinw-100 flex-v-center flex block"},F={class:"p-big"},M={key:0,class:"p-big t-semi"},U={key:1,class:"p-big t-semi"},j={key:2,class:"p-big t-semi"},z={key:3},I={key:4},L={key:5},G=e.createElementVNode("button",{class:"mn-l-auto button"},"Запросить онлайн",-1),H={__name:"EditOrder",props:["showProduct"],setup(h){const N=g.useRoute(),k=h;k.showProduct=[];function c(t){r.actions.addProduct(t)}function V(t){r.actions.deleteProduct(t)}let y=e.reactive([]);e.toRefs(y),e.ref(!1);const s=e.ref([]);let o=e.ref({});e.onMounted(async()=>{try{const t=await E.actions.read({organization:"65141c476cf9860013b49f6d"});console.log(t),s.value=t}catch{console.error("error")}await r.actions.fetchOrder(N.params.id),o.value=r.state.current});const n=e.computed(()=>100);return e.computed(()=>[]),(t,J)=>{var a,l,d,i,u,m,p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[B,e.createElementVNode("section",x,[e.createElementVNode("div",C,[e.createElementVNode("p",w,[e.createTextVNode(" Статус заказа:"),P,e.createTextVNode(e.toDisplayString(e.unref(o).status),1)]),q]),e.createElementVNode("div",S,[e.createElementVNode("p",T,[e.createTextVNode("Статус оплаты:"),D,e.createTextVNode(e.toDisplayString((a=e.unref(o).payment)==null?void 0:a.status),1)]),O])]),e.createVNode(f.default,{title:"Add Position",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(b.default,{onAdd:c,products:s.value},null,8,["products"])]),_:1}),e.createVNode(f.default,{title:"Invetory Sheet",class:"mn-b-semi"},{default:e.withCtx(()=>[r.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",R," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.state.current.positions,(_,K)=>(e.openBlock(),e.createBlock(b.default,{key:_._id,product:_,products:s.value,onAdd:c,onDelete:V,onUpdate:t.updateProduct},null,8,["product","products","onUpdate"]))),128))]),_:1}),e.createVNode(v.default,{order:r.state.current,onCreate:t.handleCreate,class:"bg-grey pd-medium radius-big mn-b-semi"},null,8,["order","onCreate"]),e.createElementVNode("div",A,[e.createElementVNode("p",F,[e.createTextVNode("Сумма к оплате: "),((l=e.unref(o).info)==null?void 0:l.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",M,e.toDisplayString(n.value/100)+" ₽",1)):e.createCommentVNode("",!0),((d=e.unref(o).info)==null?void 0:d.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(n.value/100+350)+" ₽",1)):e.createCommentVNode("",!0),((i=e.unref(o).info)==null?void 0:i.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",j,e.toDisplayString(n.value/100+550)+" ₽",1)):e.createCommentVNode("",!0),e.createTextVNode(" (Заказ "+e.toDisplayString(n.value/100)+" ₽ + доставка ",1),((u=e.unref(o).info)==null?void 0:u.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",z,"0")):e.createCommentVNode("",!0),((m=e.unref(o).info)==null?void 0:m.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",I,"350")):e.createCommentVNode("",!0),((p=e.unref(o).info)==null?void 0:p.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",L,"550")):e.createCommentVNode("",!0),e.createTextVNode(" ₽) ")]),G])],64)}}};exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("vue-router"),f=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue2.cjs");const b=require("../../../products/components/blocks/CardPosition.vue.cjs");require("../../../products/store/leftovers.cjs");require("../../../products/components/blocks/ListPositions.vue.cjs");const v=require("../sections/FormOrderDetails.vue.cjs"),r=require("../../store/orders.cjs"),E=require("../../../products/store/products.cjs");require("./EditOrder.vue2.cjs");const B=e.createElementVNode("header",{class:"mn-b-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Edit Order")],-1),x={class:"gap-thin flex-nowrap flex mn-b-semi"},C={class:"w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium"},w={class:"mn-b-small p-big"},P=e.createElementVNode("br",null,null,-1),q=e.createElementVNode("button",{class:"button"},"Подтвердить заказ",-1),S={class:"w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium"},T={class:"mn-b-semi p-big"},D=e.createElementVNode("br",null,null,-1),O=e.createElementVNode("button",{class:"button"},"Изменить статус оплаты",-1),R={key:0,class:"w-100"},A={class:"mn-thinw-100 flex-v-center flex block"},F={class:"p-big"},M={key:0,class:"p-big t-semi"},U={key:1,class:"p-big t-semi"},j={key:2,class:"p-big t-semi"},z={key:3},I={key:4},L={key:5},G=e.createElementVNode("button",{class:"mn-l-auto button"},"Запросить онлайн",-1),H={__name:"EditOrder",props:["showProduct"],setup(h){const N=g.useRoute(),k=h;k.showProduct=[];function c(t){r.actions.addProduct(t)}function V(t){r.actions.deleteProduct(t)}let y=e.reactive([]);e.toRefs(y),e.ref(!1);const s=e.ref([]);let o=e.ref({});e.onMounted(async()=>{try{const t=await E.actions.read({organization:"65141c476cf9860013b49f6d"});console.log(t),s.value=t}catch{console.error("error")}await r.actions.fetchOrder(N.params.id),o.value=r.state.current});const n=e.computed(()=>100);return e.computed(()=>[]),(t,J)=>{var a,l,d,i,u,m,p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[B,e.createElementVNode("section",x,[e.createElementVNode("div",C,[e.createElementVNode("p",w,[e.createTextVNode(" Статус заказа:"),P,e.createTextVNode(e.toDisplayString(e.unref(o).status),1)]),q]),e.createElementVNode("div",S,[e.createElementVNode("p",T,[e.createTextVNode("Статус оплаты:"),D,e.createTextVNode(e.toDisplayString((a=e.unref(o).payment)==null?void 0:a.status),1)]),O])]),e.createVNode(f.default,{title:"Add Position",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(b.default,{onAdd:c,products:s.value},null,8,["products"])]),_:1}),e.createVNode(f.default,{title:"Invetory Sheet",class:"mn-b-semi"},{default:e.withCtx(()=>[r.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",R," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.state.current.positions,(_,K)=>(e.openBlock(),e.createBlock(b.default,{key:_._id,product:_,products:s.value,onAdd:c,onDelete:V,onUpdate:t.updateProduct},null,8,["product","products","onUpdate"]))),128))]),_:1}),e.createVNode(v.default,{order:r.state.current,onCreate:t.handleCreate,class:"bg-grey pd-medium radius-big mn-b-semi"},null,8,["order","onCreate"]),e.createElementVNode("div",A,[e.createElementVNode("p",F,[e.createTextVNode("Сумма к оплате: "),((l=e.unref(o).info)==null?void 0:l.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",M,e.toDisplayString(n.value/100)+" ₽",1)):e.createCommentVNode("",!0),((d=e.unref(o).info)==null?void 0:d.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(n.value/100+350)+" ₽",1)):e.createCommentVNode("",!0),((i=e.unref(o).info)==null?void 0:i.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",j,e.toDisplayString(n.value/100+550)+" ₽",1)):e.createCommentVNode("",!0),e.createTextVNode(" (Заказ "+e.toDisplayString(n.value/100)+" ₽ + доставка ",1),((u=e.unref(o).info)==null?void 0:u.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",z,"0")):e.createCommentVNode("",!0),((m=e.unref(o).info)==null?void 0:m.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",I,"350")):e.createCommentVNode("",!0),((p=e.unref(o).info)==null?void 0:p.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",L,"550")):e.createCommentVNode("",!0),e.createTextVNode(" ₽) ")]),G])],64)}}};exports.default=H;
@@ -1,7 +1,7 @@
1
1
  import { reactive as D, toRefs as S, ref as m, onMounted as T, computed as P, openBlock as o, createElementBlock as r, Fragment as C, createElementVNode as e, createTextVNode as i, toDisplayString as a, unref as n, createVNode as l, withCtx as N, createCommentVNode as d, renderList as U, createBlock as z } from "vue";
2
2
  import { useRoute as F } from "vue-router";
3
3
  import E from "../../../../components/Block/Block.vue.js";
4
- import "../../../../components/Field/Field.vue.js";
4
+ import "../../../../components/Field/Field.vue2.js";
5
5
  import V from "../../../products/components/blocks/CardPosition.vue.js";
6
6
  import "../../../products/store/leftovers.js";
7
7
  import "../../../products/components/blocks/ListPositions.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../store/orders.cjs");require("../blocks/CardOrder.vue.cjs");const c={class:"mn-b-medium flex-v-center flex-nowrap flex"},u=e.createElementVNode("h2",{class:"mn-r-medium"},"Orders",-1),m={class:"cols-3 gap-thin"},p={class:"bg-grey pd-small radius-big"},_={class:"w-100 mn-b-thin p-big"},b=e.createElementVNode("p",{class:"mn-b-small t-transp w-100"},null,-1),g={__name:"Orders",setup(h){const n=o.useRoute();o.useRouter();const r=e.ref(n.query.tab?n.query.tab:"posts");return e.onMounted(async()=>{await l.actions.read()}),(a,s)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",c,[u,e.createElementVNode("button",{onClick:s[0]||(s[0]=t=>a.$router.push({name:"AdminOrder"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(d.default,{selected:r.value,"onUpdate:selected":s[1]||(s[1]=t=>r.value=t),tabs:[{name:"All",value:"all"},{name:"New",value:"new"},{name:"Confirmed",value:"confirmed"},{name:"Finished",value:"finished"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("section",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.all,t=>(e.openBlock(),e.createElementBlock("div",p,[e.createTextVNode(" Status: "+e.toDisplayString(t.status)+" ",1),e.createElementVNode("p",_," Order No.: #"+e.toDisplayString(t._id),1),b,e.createElementVNode("p",{class:e.normalizeClass([{new:t.status==="Создан"},"mn-b-small"])},[e.createTextVNode(" Order Created: "+e.toDisplayString(a.formatDate(t.createdAt))+" ",1),e.createVNode(i,{to:{name:"AdminOrderEdit",params:{order:t._id}},class:"i-small"},{default:e.withCtx(()=>[e.createTextVNode(" EDIT ")]),_:2},1032,["to"])],2)]))),256))])],64)}}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("vue-router"),d=require("../../../../components/Tab/Tab.vue.cjs"),l=require("../../store/orders.cjs");require("../blocks/CardOrder.vue.cjs");const c={class:"mn-b-medium flex-v-center flex-nowrap flex"},u=e.createElementVNode("h2",{class:"mn-r-medium"},"Orders",-1),m={class:"cols-3 gap-thin"},p={class:"bg-grey pd-small radius-big"},_={class:"w-100 mn-b-thin p-big"},b=e.createElementVNode("p",{class:"mn-b-small t-transp w-100"},null,-1),g={__name:"Orders",setup(h){const n=o.useRoute();o.useRouter();const r=e.ref(n.query.tab?n.query.tab:"posts");return e.onMounted(async()=>{await l.actions.read()}),(a,s)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",c,[u,e.createElementVNode("button",{onClick:s[0]||(s[0]=t=>a.$router.push({name:"AdminOrder"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(d.default,{selected:r.value,"onUpdate:selected":s[1]||(s[1]=t=>r.value=t),tabs:[{name:"All",value:"all"},{name:"New",value:"new"},{name:"Confirmed",value:"confirmed"},{name:"Finished",value:"finished"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("section",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.all,t=>(e.openBlock(),e.createElementBlock("div",p,[e.createTextVNode(" Status: "+e.toDisplayString(t.status)+" ",1),e.createElementVNode("p",_," Order No.: #"+e.toDisplayString(t._id),1),b,e.createElementVNode("p",{class:e.normalizeClass([{new:t.status==="Создан"},"mn-b-small"])},[e.createTextVNode(" Order Created: "+e.toDisplayString(a.formatDate(t.createdAt))+" ",1),e.createVNode(i,{to:{name:"AdminOrderEdit",params:{order:t._id}},class:"i-small"},{default:e.withCtx(()=>[e.createTextVNode(" EDIT ")]),_:2},1032,["to"])],2)]))),256))])],64)}}};exports.default=g;
@@ -1,6 +1,6 @@
1
1
  import { ref as p, onMounted as _, resolveComponent as b, openBlock as n, createElementBlock as a, Fragment as d, createElementVNode as t, createVNode as u, renderList as f, createTextVNode as r, toDisplayString as o, normalizeClass as h, withCtx as g } from "vue";
2
2
  import { useRoute as v, useRouter as w } from "vue-router";
3
- import y from "../../../../components/Tab/Tab.vue2.js";
3
+ import y from "../../../../components/Tab/Tab.vue.js";
4
4
  import { actions as C, state as O } from "../../store/orders.js";
5
5
  import "../blocks/CardOrder.vue.js";
6
6
  const k = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, x = /* @__PURE__ */ t("h2", { class: "mn-r-medium" }, "Orders", -1), N = { class: "cols-3 gap-thin" }, A = { class: "bg-grey pd-small radius-big" }, E = { class: "w-100 mn-b-thin p-big" }, D = /* @__PURE__ */ t("p", { class: "mn-b-small t-transp w-100" }, null, -1), S = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../../globals/store/globals.cjs");require("../../store/orders.cjs");const a=require("../../../../components/Block/Block.vue.cjs"),o=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/FieldPhone/FieldPhone2.vue.cjs"),s=require("../../../../components/Select/Select.vue2.cjs"),m=require("../../../../components/Address/Address.vue2.cjs"),c=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),n=require("../../../../components/Radio/Radio.vue.cjs"),y={class:"order-form col"},f=t.createElementVNode("p",{class:"mn-b-small"}," Prefer to chat instead of calling? Just drop your messenger info here: ",-1),v={class:"flex-nowrap flex"},b={class:"mn-b-small flex-nowrap flex"},p={class:"mn-b-small flex-nowrap flex"},g={__name:"FormOrderDetails",props:{order:Object},setup(l){const i=l;return t.onMounted(()=>{r.state.position&&(i.order.delivery.address=r.state.position.address),r.state.position&&(i.order.delivery.location=r.state.position.location)}),(w,e)=>(t.openBlock(),t.createElementBlock("div",y,[t.createVNode(a.default,{title:"Personal Data",class:"mn-b-thin"},{default:t.withCtx(()=>[t.createVNode(o.default,{field:l.order.user.name,"onUpdate:field":e[0]||(e[0]=d=>l.order.user.name=d),label:"Name*",placeholder:"Enter your name",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"]),t.createVNode(u.default,{modelValue:l.order.user.phone,"onUpdate:modelValue":e[1]||(e[1]=d=>l.order.user.phone=d),onCountry:e[2]||(e[2]=d=>{l.order.user.number=d}),inputOptions:{placeholder:"Enter contact phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["modelValue"]),f,t.createElementVNode("div",v,[t.createVNode(s.default,{options:[{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"},{name:"Line",value:"line"}],"onUpdate:select":e[3]||(e[3]=d=>l.order.user.messenger.type=d.value),placeholder:"Messenger",size:"small",class:"bg-white pd-medium radius-small mn-r-small"}),t.createVNode(o.default,{field:l.order.user.messenger.value,"onUpdate:field":e[4]||(e[4]=d=>l.order.user.messenger.value=d),placeholder:"Enter your contact here",class:"bg-white pd-medium radius-small w-100"},null,8,["field"])])]),_:1}),t.createVNode(a.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:t.withCtx(()=>[t.createElementVNode("div",b,[t.createVNode(n.default,{radio:l.order.delivery.type,"onUpdate:radio":e[5]||(e[5]=d=>l.order.delivery.type=d),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),t.createVNode(n.default,{radio:l.order.delivery.type,"onUpdate:radio":e[6]||(e[6]=d=>l.order.delivery.type=d),label:"Post",value:"Post",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"])]),t.createVNode(m.default,{label:"Address",apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:l.order.delivery.address,location:l.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium","onUpdate:location":e[7]||(e[7]=d=>{l.order.delivery.location=d}),"onUpdate:address":e[8]||(e[8]=d=>{l.order.delivery.address=d})},null,8,["address","location"]),t.createVNode(c.default,{apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:l.order.delivery.address,location:l.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":e[9]||(e[9]=d=>{l.order.delivery.location=d}),"onUpdate:address":e[10]||(e[10]=d=>{l.order.delivery.address=d})},null,8,["address","location"]),t.createVNode(o.default,{field:l.order.comment,"onUpdate:field":e[11]||(e[11]=d=>l.order.comment=d),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1},8,["tooltip"]),t.createVNode(a.default,{title:"Payment"},{default:t.withCtx(()=>[t.createElementVNode("div",p,[t.createVNode(s.default,{select:l.order.payment.type,"onUpdate:select":e[12]||(e[12]=d=>l.order.payment.type=d),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1})]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../../globals/store/globals.cjs");require("../../store/orders.cjs");const a=require("../../../../components/Block/Block.vue.cjs"),o=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/FieldPhone/FieldPhone2.vue.cjs"),s=require("../../../../components/Select/Select.vue.cjs"),m=require("../../../../components/Address/Address.vue2.cjs"),c=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),n=require("../../../../components/Radio/Radio.vue.cjs"),y={class:"order-form col"},f=t.createElementVNode("p",{class:"mn-b-small"}," Prefer to chat instead of calling? Just drop your messenger info here: ",-1),v={class:"flex-nowrap flex"},b={class:"mn-b-small flex-nowrap flex"},p={class:"mn-b-small flex-nowrap flex"},g={__name:"FormOrderDetails",props:{order:Object},setup(l){const i=l;return t.onMounted(()=>{r.state.position&&(i.order.delivery.address=r.state.position.address),r.state.position&&(i.order.delivery.location=r.state.position.location)}),(w,e)=>(t.openBlock(),t.createElementBlock("div",y,[t.createVNode(a.default,{title:"Personal Data",class:"mn-b-thin"},{default:t.withCtx(()=>[t.createVNode(o.default,{field:l.order.user.name,"onUpdate:field":e[0]||(e[0]=d=>l.order.user.name=d),label:"Name*",placeholder:"Enter your name",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"]),t.createVNode(u.default,{modelValue:l.order.user.phone,"onUpdate:modelValue":e[1]||(e[1]=d=>l.order.user.phone=d),onCountry:e[2]||(e[2]=d=>{l.order.user.number=d}),inputOptions:{placeholder:"Enter contact phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["modelValue"]),f,t.createElementVNode("div",v,[t.createVNode(s.default,{options:[{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"},{name:"Line",value:"line"}],"onUpdate:select":e[3]||(e[3]=d=>l.order.user.messenger.type=d.value),placeholder:"Messenger",size:"small",class:"bg-white pd-medium radius-small mn-r-small"}),t.createVNode(o.default,{field:l.order.user.messenger.value,"onUpdate:field":e[4]||(e[4]=d=>l.order.user.messenger.value=d),placeholder:"Enter your contact here",class:"bg-white pd-medium radius-small w-100"},null,8,["field"])])]),_:1}),t.createVNode(a.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:t.withCtx(()=>[t.createElementVNode("div",b,[t.createVNode(n.default,{radio:l.order.delivery.type,"onUpdate:radio":e[5]||(e[5]=d=>l.order.delivery.type=d),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),t.createVNode(n.default,{radio:l.order.delivery.type,"onUpdate:radio":e[6]||(e[6]=d=>l.order.delivery.type=d),label:"Post",value:"Post",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"])]),t.createVNode(m.default,{label:"Address",apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:l.order.delivery.address,location:l.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium","onUpdate:location":e[7]||(e[7]=d=>{l.order.delivery.location=d}),"onUpdate:address":e[8]||(e[8]=d=>{l.order.delivery.address=d})},null,8,["address","location"]),t.createVNode(c.default,{apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:l.order.delivery.address,location:l.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":e[9]||(e[9]=d=>{l.order.delivery.location=d}),"onUpdate:address":e[10]||(e[10]=d=>{l.order.delivery.address=d})},null,8,["address","location"]),t.createVNode(o.default,{field:l.order.comment,"onUpdate:field":e[11]||(e[11]=d=>l.order.comment=d),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1},8,["tooltip"]),t.createVNode(a.default,{title:"Payment"},{default:t.withCtx(()=>[t.createElementVNode("div",p,[t.createVNode(s.default,{select:l.order.payment.type,"onUpdate:select":e[12]||(e[12]=d=>l.order.payment.type=d),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1})]))}};exports.default=g;
@@ -2,9 +2,9 @@ import { onMounted as y, openBlock as p, createElementBlock as f, createVNode as
2
2
  import { state as t } from "../../../globals/store/globals.js";
3
3
  import "../../store/orders.js";
4
4
  import i from "../../../../components/Block/Block.vue.js";
5
- import s from "../../../../components/Field/Field.vue2.js";
5
+ import s from "../../../../components/Field/Field.vue.js";
6
6
  import v from "../../../../components/FieldPhone/FieldPhone2.vue.js";
7
- import m from "../../../../components/Select/Select.vue2.js";
7
+ import m from "../../../../components/Select/Select.vue.js";
8
8
  import b from "../../../../components/Address/Address.vue2.js";
9
9
  import c from "../../../../components/LocationMarker/LocationMarker.vue2.js";
10
10
  import u from "../../../../components/Radio/Radio.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),s=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),c=require("../../../../components/Chips/Chips.vue.cjs"),d=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),u=require("../../../icons/entities/IconPrice.vue.cjs"),m=require("../../../icons/entities/IconShopcart.vue.cjs"),h=require("../../../icons/entities/IconTime.vue.cjs"),g=require("../elements/ButtonToggleMembership.vue.cjs"),f={class:"flex pos-relative"},k=["src"],w={class:"pos-relative w-100 flex-child-1 flex-child mn-l-small w-100"},b={class:"h3 t-truncate"},B={key:1},z={class:"mn-b-thin"},p={key:0,class:"mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},y={class:"mn-r-thin"},V={key:0,class:"t-transp mn-r-thin"},v={class:"mn-r-thin"},E={class:"mn-r-thin"},N={class:"mn-r-thin"},S={key:1,class:"w-100 o-scroll"},C={class:"w-max flex-nowrap flex gap-thin"},M=e.createElementVNode("button",{class:"pd-thin w-15r radius-medium bg-main button"}," View menu ",-1),q={__name:"CardOrganization",props:{user:String,organization:Object,showProducts:{type:Boolean,default:!1},showFollowers:{type:Boolean,default:!0},showRating:{type:Boolean,default:!1},showFeatured:{type:Boolean,default:!0},showTags:{type:Boolean,default:!0}},emits:["updateMembership"],setup(t,{emit:O}){return l.useRouter(),(n,a)=>{var i,r;return e.openBlock(),e.createElementBlock("div",{class:"o-hidden pos-relative cursor-pointer bg-grey pd-small",onClick:a[1]||(a[1]=o=>n.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",f,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,k)):(e.openBlock(),e.createBlock(d.default,{key:1,class:"h-4r w-4r"})),e.createElementVNode("div",w,[e.createElementVNode("p",b,e.toDisplayString(t.organization.profile.name),1),t.showTags&&((i=t.organization.profile.tags)==null?void 0:i.length)>0?(e.openBlock(),e.createBlock(c.default,{key:0,chips:t.organization.profile.tags.slice(0,3),class:"pos-relative p-small"},null,8,["chips"])):e.createCommentVNode("",!0),t.showFollowers?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("p",z,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),(r=t.user)!=null&&r._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:a[0]||(a[0]=o=>n.handleMembershipUpdate(o,"isSubscriber","numberOfSubscribers")),class:"w-min"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.showProducts?(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(h.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",y,e.toDisplayString(t.organization.distance?Math.ceil((5+5+3*t.organization.distance)/5)*5+"-"+Math.ceil((15+5+3*t.organization.distance)/5)*5+" MIN":"Unavailable"),1),t.organization.distance?(e.openBlock(),e.createElementBlock("span",V,"|")):e.createCommentVNode("",!0),e.createElementVNode("span",v,e.toDisplayString(t.organization.distance?t.organization.distance.toFixed(1)+" KM":""),1),e.createVNode(u.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",E,e.toDisplayString(n.returnCurrency())+"500 ",1),e.createVNode(m.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",N,e.toDisplayString(t.organization.products.length)+" products",1)])):e.createCommentVNode("",!0),t.showProducts&&t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products.slice(0,10),o=>(e.openBlock(),e.createBlock(s.default,{onClick:e.withModifiers(x=>n.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:o._id}}),["stop"]),key:o._id,editable:!1,product:o,class:"pd-thin w-15r radius-medium bg-white"},null,8,["onClick","product"]))),128)),M])])):e.createCommentVNode("",!0)])}}};exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),s=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),c=require("../../../../components/Chips/Chips.vue.cjs"),d=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),u=require("../../../icons/entities/IconPrice.vue.cjs"),m=require("../../../icons/entities/IconShopcart.vue.cjs"),h=require("../../../icons/entities/IconTime.vue.cjs"),g=require("../elements/ButtonToggleMembership.vue.cjs"),f={class:"flex pos-relative"},k=["src"],w={class:"pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100"},b={class:"h4 t-truncate"},p={key:1,class:"flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},B={class:"mn-t-thin mn-b-thin"},z={key:0,class:"mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},y={class:"mn-r-thin"},V={key:0,class:"t-transp mn-r-thin"},v={class:"mn-r-thin"},E={class:"mn-r-thin"},N={class:"mn-r-thin"},x={key:1,class:"w-100 o-scroll"},S={class:"w-max flex-nowrap flex gap-thin"},C=e.createElementVNode("button",{class:"pd-thin w-15r radius-medium bg-main button"}," View menu ",-1),M={__name:"CardOrganization",props:{user:String,organization:Object,showProducts:{type:Boolean,default:!1},showFollowers:{type:Boolean,default:!0},showRating:{type:Boolean,default:!1},showFeatured:{type:Boolean,default:!0},showTags:{type:Boolean,default:!0}},emits:["updateMembership"],setup(t,{emit:q}){return l.useRouter(),(o,i)=>{var a,r;return e.openBlock(),e.createElementBlock("div",{class:"o-hidden pos-relative cursor-pointer bg-grey pd-small",onClick:i[1]||(i[1]=n=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",f,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,k)):(e.openBlock(),e.createBlock(d.default,{key:1,class:"h-4r w-4r"})),e.createElementVNode("div",w,[e.createElementVNode("p",b,e.toDisplayString(t.organization.profile.name),1),t.showTags&&((a=t.organization.profile.tags)==null?void 0:a.length)>0?(e.openBlock(),e.createBlock(c.default,{key:0,chips:t.organization.profile.tags.slice(0,3),class:"pos-relative p-small"},null,8,["chips"])):e.createCommentVNode("",!0),t.showFollowers?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("p",B,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),(r=t.user)!=null&&r._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[0]||(i[0]=n=>o.handleMembershipUpdate(n,"isSubscriber","numberOfSubscribers")),class:"i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.showProducts?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(h.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",y,e.toDisplayString(t.organization.distance?Math.ceil((5+5+3*t.organization.distance)/5)*5+"-"+Math.ceil((15+5+3*t.organization.distance)/5)*5+" MIN":"Unavailable"),1),t.organization.distance?(e.openBlock(),e.createElementBlock("span",V,"|")):e.createCommentVNode("",!0),e.createElementVNode("span",v,e.toDisplayString(t.organization.distance?t.organization.distance.toFixed(1)+" KM":""),1),e.createVNode(u.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",E,e.toDisplayString(o.returnCurrency())+"500 ",1),e.createVNode(m.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",N,e.toDisplayString(t.organization.products.length)+" products",1)])):e.createCommentVNode("",!0),t.showProducts&&t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products.slice(0,10),n=>(e.openBlock(),e.createBlock(s.default,{onClick:e.withModifiers(O=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:n._id}}),["stop"]),key:n._id,editable:!1,product:n,class:"pd-thin w-15r radius-medium bg-white"},null,8,["onClick","product"]))),128)),C])])):e.createCommentVNode("",!0)])}}};exports.default=M;
@@ -1,22 +1,25 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as i, createBlock as c, toDisplayString as a, createCommentVNode as s, createVNode as d, Fragment as h, renderList as g, withModifiers as f } from "vue";
1
+ import { openBlock as t, createElementBlock as n, createElementVNode as i, createBlock as c, toDisplayString as o, createCommentVNode as r, createVNode as d, Fragment as h, renderList as g, withModifiers as f } from "vue";
2
2
  import { useRouter as w } from "vue-router";
3
3
  import b from "../../../orders/components/blocks/CardOrderItem.vue.js";
4
4
  import z from "../../../../components/Chips/Chips.vue.js";
5
- import y from "../../../icons/placeholders/PlaceholderOrganizationPic.vue.js";
6
- import p from "../../../icons/entities/IconPrice.vue.js";
7
- import v from "../../../icons/entities/IconShopcart.vue.js";
8
- import k from "../../../icons/entities/IconTime.vue.js";
9
- import x from "../elements/ButtonToggleMembership.vue.js";
10
- const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relative w-100 flex-child-1 flex-child mn-l-small w-100" }, F = { class: "h3 t-truncate" }, O = { key: 1 }, P = { class: "mn-b-thin" }, $ = {
5
+ import p from "../../../icons/placeholders/PlaceholderOrganizationPic.vue.js";
6
+ import y from "../../../icons/entities/IconPrice.vue.js";
7
+ import x from "../../../icons/entities/IconShopcart.vue.js";
8
+ import v from "../../../icons/entities/IconTime.vue.js";
9
+ import k from "../elements/ButtonToggleMembership.vue.js";
10
+ const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100" }, C = { class: "h4 t-truncate" }, O = {
11
+ key: 1,
12
+ class: "flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"
13
+ }, P = { class: "mn-t-thin mn-b-thin" }, F = {
11
14
  key: 0,
12
15
  class: "mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"
13
- }, C = { class: "mn-r-thin" }, E = {
16
+ }, $ = { class: "mn-r-thin" }, E = {
14
17
  key: 0,
15
18
  class: "t-transp mn-r-thin"
16
- }, I = { class: "mn-r-thin" }, R = { class: "mn-r-thin" }, U = { class: "mn-r-thin" }, V = {
19
+ }, I = { class: "mn-r-thin" }, R = { class: "mn-r-thin" }, V = { class: "mn-r-thin" }, N = {
17
20
  key: 1,
18
21
  class: "w-100 o-scroll"
19
- }, N = { class: "w-max flex-nowrap flex gap-thin" }, L = /* @__PURE__ */ i("button", { class: "pd-thin w-15r radius-medium bg-main button" }, " View menu ", -1), X = {
22
+ }, U = { class: "w-max flex-nowrap flex gap-thin" }, L = /* @__PURE__ */ i("button", { class: "pd-thin w-15r radius-medium bg-main button" }, " View menu ", -1), X = {
20
23
  __name: "CardOrganization",
21
24
  props: {
22
25
  // Model
@@ -46,66 +49,66 @@ const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relativ
46
49
  },
47
50
  emits: ["updateMembership"],
48
51
  setup(e, { emit: T }) {
49
- return w(), (r, l) => {
52
+ return w(), (s, l) => {
50
53
  var m, u;
51
- return t(), o("div", {
54
+ return t(), n("div", {
52
55
  class: "o-hidden pos-relative cursor-pointer bg-grey pd-small",
53
- onClick: l[1] || (l[1] = (n) => r.$router.push({ name: "Organization", params: { _id: e.organization._id } }))
56
+ onClick: l[1] || (l[1] = (a) => s.$router.push({ name: "Organization", params: { _id: e.organization._id } }))
54
57
  }, [
55
58
  i("div", B, [
56
- e.organization.profile.photo && e.organization.profile.photo.length > 0 ? (t(), o("img", {
59
+ e.organization.profile.photo && e.organization.profile.photo.length > 0 ? (t(), n("img", {
57
60
  key: 0,
58
- src: (r.FILE_SERVER_URL || "") + e.organization.profile.photo,
61
+ src: (s.FILE_SERVER_URL || "") + e.organization.profile.photo,
59
62
  class: "h-4r w-4r radius-extra bg-white"
60
- }, null, 8, M)) : (t(), c(y, {
63
+ }, null, 8, M)) : (t(), c(p, {
61
64
  key: 1,
62
65
  class: "h-4r w-4r"
63
66
  })),
64
67
  i("div", S, [
65
- i("p", F, a(e.organization.profile.name), 1),
68
+ i("p", C, o(e.organization.profile.name), 1),
66
69
  e.showTags && ((m = e.organization.profile.tags) == null ? void 0 : m.length) > 0 ? (t(), c(z, {
67
70
  key: 0,
68
71
  chips: e.organization.profile.tags.slice(0, 3),
69
72
  class: "pos-relative p-small"
70
- }, null, 8, ["chips"])) : s("", !0),
71
- e.showFollowers ? (t(), o("div", O, [
72
- i("p", P, a(e.organization.numberOfSubscribers) + " followers", 1),
73
- (u = e.user) != null && u._id && e.organization.owner !== e.user._id ? (t(), c(x, {
73
+ }, null, 8, ["chips"])) : r("", !0),
74
+ e.showFollowers ? (t(), n("div", O, [
75
+ i("p", P, o(e.organization.numberOfSubscribers) + " followers", 1),
76
+ (u = e.user) != null && u._id && e.organization.owner !== e.user._id ? (t(), c(k, {
74
77
  key: 0,
75
78
  user: e.user._id,
76
79
  type: "organization",
77
80
  role: "subscriber",
78
81
  target: e.organization._id,
79
82
  status: e.organization.isSubscriber,
80
- text: { create: "Follow", remove: "Unfollow" },
81
- onUpdateMembership: l[0] || (l[0] = (n) => r.handleMembershipUpdate(n, "isSubscriber", "numberOfSubscribers")),
82
- class: "w-min"
83
- }, null, 8, ["user", "target", "status"])) : s("", !0)
84
- ])) : s("", !0)
83
+ text: { create: "+", remove: "-" },
84
+ onUpdateMembership: l[0] || (l[0] = (a) => s.handleMembershipUpdate(a, "isSubscriber", "numberOfSubscribers")),
85
+ class: "i-semi"
86
+ }, null, 8, ["user", "target", "status"])) : r("", !0)
87
+ ])) : r("", !0)
85
88
  ])
86
89
  ]),
87
- e.showProducts ? (t(), o("div", $, [
88
- d(k, { class: "i-medium mn-r-micro" }),
89
- i("span", C, a(e.organization.distance ? Math.ceil((5 + 5 + 3 * e.organization.distance) / 5) * 5 + "-" + Math.ceil((15 + 5 + 3 * e.organization.distance) / 5) * 5 + " MIN" : "Unavailable"), 1),
90
- e.organization.distance ? (t(), o("span", E, "|")) : s("", !0),
91
- i("span", I, a(e.organization.distance ? e.organization.distance.toFixed(1) + " KM" : ""), 1),
92
- d(p, { class: "i-medium mn-r-micro" }),
93
- i("span", R, a(r.returnCurrency()) + "500 ", 1),
90
+ e.showProducts ? (t(), n("div", F, [
94
91
  d(v, { class: "i-medium mn-r-micro" }),
95
- i("span", U, a(e.organization.products.length) + " products", 1)
96
- ])) : s("", !0),
97
- e.showProducts && e.organization.products.length > 0 ? (t(), o("div", V, [
98
- i("div", N, [
99
- (t(!0), o(h, null, g(e.organization.products.slice(0, 10), (n) => (t(), c(b, {
100
- onClick: f((j) => r.$router.push({ name: "Product Organization", params: { _id: e.organization._id, product: n._id } }), ["stop"]),
101
- key: n._id,
92
+ i("span", $, o(e.organization.distance ? Math.ceil((5 + 5 + 3 * e.organization.distance) / 5) * 5 + "-" + Math.ceil((15 + 5 + 3 * e.organization.distance) / 5) * 5 + " MIN" : "Unavailable"), 1),
93
+ e.organization.distance ? (t(), n("span", E, "|")) : r("", !0),
94
+ i("span", I, o(e.organization.distance ? e.organization.distance.toFixed(1) + " KM" : ""), 1),
95
+ d(y, { class: "i-medium mn-r-micro" }),
96
+ i("span", R, o(s.returnCurrency()) + "500 ", 1),
97
+ d(x, { class: "i-medium mn-r-micro" }),
98
+ i("span", V, o(e.organization.products.length) + " products", 1)
99
+ ])) : r("", !0),
100
+ e.showProducts && e.organization.products.length > 0 ? (t(), n("div", N, [
101
+ i("div", U, [
102
+ (t(!0), n(h, null, g(e.organization.products.slice(0, 10), (a) => (t(), c(b, {
103
+ onClick: f((j) => s.$router.push({ name: "Product Organization", params: { _id: e.organization._id, product: a._id } }), ["stop"]),
104
+ key: a._id,
102
105
  editable: !1,
103
- product: n,
106
+ product: a,
104
107
  class: "pd-thin w-15r radius-medium bg-white"
105
108
  }, null, 8, ["onClick", "product"]))), 128)),
106
109
  L
107
110
  ])
108
- ])) : s("", !0)
111
+ ])) : r("", !0)
109
112
  ]);
110
113
  };
111
114
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../../../../components/Field/Field.vue.cjs");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Select/Select.vue.cjs");require("./DepartmentMemberModify.vue2.cjs");const k={class:"br-grey radius-small mn-b-small"},v={key:1,class:"pd-small br-grey br-1px br-solid"},y=["disabled"],B={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(u,{emit:m}){const t=u,a=m,n=e.ref({subdepartment:null});t.department!==null&&(n.value=t.departments[t.department]);function d(o,l,r){return o.filter(s=>!(l.some(b=>b._id===s._id)||r._id===s._id))}const c=e.computed(()=>d(t.alldepartments,t.departments,t.maindepartment));async function i(){t.departments.push(n.value.subdepartment),a("callback")}async function p(){t.departments.splice(t.department,1),a("callback")}return(o,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",k,[t.department===null?(e.openBlock(),e.createBlock(e.unref(f.default),{key:0,modelValue:n.value.subdepartment,"onUpdate:modelValue":l[0]||(l[0]=r=>n.value.subdepartment=r),options:c.value,"get-option-label":r=>r.name,class:"w-100 mn-b-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",v,e.toDisplayString(n.value.name?n.value.name:"Безымянный"),1))]),t.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!n.value.subdepartment,onClick:i,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,y)):e.createCommentVNode("",!0),t.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},g=_.default(B,[["__scopeId","data-v-5e4dcced"]]);exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../../../../components/Field/Field.vue2.cjs");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Select/Select.vue2.cjs");require("./DepartmentMemberModify.vue2.cjs");const k={class:"br-grey radius-small mn-b-small"},v={key:1,class:"pd-small br-grey br-1px br-solid"},y=["disabled"],B={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(u,{emit:m}){const t=u,a=m,n=e.ref({subdepartment:null});t.department!==null&&(n.value=t.departments[t.department]);function d(o,l,r){return o.filter(s=>!(l.some(b=>b._id===s._id)||r._id===s._id))}const c=e.computed(()=>d(t.alldepartments,t.departments,t.maindepartment));async function i(){t.departments.push(n.value.subdepartment),a("callback")}async function p(){t.departments.splice(t.department,1),a("callback")}return(o,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",k,[t.department===null?(e.openBlock(),e.createBlock(e.unref(f.default),{key:0,modelValue:n.value.subdepartment,"onUpdate:modelValue":l[0]||(l[0]=r=>n.value.subdepartment=r),options:c.value,"get-option-label":r=>r.name,class:"w-100 mn-b-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",v,e.toDisplayString(n.value.name?n.value.name:"Безымянный"),1))]),t.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!n.value.subdepartment,onClick:i,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,y)):e.createCommentVNode("",!0),t.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},g=_.default(B,[["__scopeId","data-v-5e4dcced"]]);exports.default=g;
@@ -1,8 +1,8 @@
1
1
  import { ref as v, computed as y, openBlock as r, createElementBlock as l, createElementVNode as k, createBlock as g, unref as h, toDisplayString as w, createCommentVNode as d } from "vue";
2
2
  import D from "../../../../../../node_modules/vue-select/dist/vue-select.es.js";
3
- import "../../../../components/Field/Field.vue.js";
3
+ import "../../../../components/Field/Field.vue2.js";
4
4
  import M from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- import "../../../../components/Select/Select.vue.js";
5
+ import "../../../../components/Select/Select.vue2.js";
6
6
  import "./DepartmentMemberModify.vue2.js";
7
7
  const V = { class: "br-grey radius-small mn-b-small" }, x = {
8
8
  key: 1,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),m=require("../../../../components/Button/Button.vue2.cjs");require("../../../auth/store/auth.cjs");const i=require("../../store/memberships.cjs"),g={__name:"ButtonToggleMembership",props:{user:{type:String,required:!0},type:{type:String,required:!0},role:{type:String,required:!1},target:{type:String,required:!0},text:{type:Object,default:{create:"join",remove:"leave"}},status:{type:Boolean,required:!0}},emits:["updateMembership"],setup(o,{emit:n}){const u=n,e=o,c=async()=>{e.status?await l():await p()};async function p(){try{const t={user:e.user,type:e.type,role:e.role,target:e.target},s=await i.actions.create(t);u("updateMembership",{membership:s,target:e.target,status:!0})}catch(t){throw console.log(t),t}}async function l(t){const s={user:e.user,type:e.type,role:e.role,target:e.target};try{const a=await i.actions.delete(s);u("updateMembership",{membership:a,target:e.target,status:!1})}catch(a){throw console.log(a),a}}return(t,s)=>(r.openBlock(),r.createBlock(m.default,{submit:c,showSucces:!1,class:"bg-main button-small button"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(o.status?e.text.remove:e.text.create),1)]),_:1}))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),m=require("../../../../components/Button/Button.vue.cjs");require("../../../auth/store/auth.cjs");const i=require("../../store/memberships.cjs"),g={__name:"ButtonToggleMembership",props:{user:{type:String,required:!0},type:{type:String,required:!0},role:{type:String,required:!1},target:{type:String,required:!0},text:{type:Object,default:{create:"join",remove:"leave"}},status:{type:Boolean,required:!0}},emits:["updateMembership"],setup(o,{emit:n}){const u=n,e=o,c=async()=>{e.status?await l():await p()};async function p(){try{const t={user:e.user,type:e.type,role:e.role,target:e.target},s=await i.actions.create(t);u("updateMembership",{membership:s,target:e.target,status:!0})}catch(t){throw console.log(t),t}}async function l(t){const s={user:e.user,type:e.type,role:e.role,target:e.target};try{const a=await i.actions.delete(s);u("updateMembership",{membership:a,target:e.target,status:!1})}catch(a){throw console.log(a),a}}return(t,s)=>(r.openBlock(),r.createBlock(m.default,{submit:c,showSucces:!1,class:"bg-main button-small button"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(o.status?e.text.remove:e.text.create),1)]),_:1}))}};exports.default=g;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as m, createBlock as l, withCtx as g, createTextVNode as h, toDisplayString as y } from "vue";
2
- import b from "../../../../components/Button/Button.vue2.js";
2
+ import b from "../../../../components/Button/Button.vue.js";
3
3
  import "../../../auth/store/auth.js";
4
4
  import { actions as i } from "../../store/memberships.js";
5
5
  const M = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const p=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const m=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Checkbox/Checkbox.vue.cjs");require("../../../../components/Address/Address.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/LocationMarker/LocationMarker.vue.cjs");const s=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../blocks/EditArray.vue2.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/DepartmentMemberModify.vue2.cjs");require("../blocks/User.vue2.cjs");const r=require("../../../spots/store/spots.cjs"),i=require("../../store/memberships.cjs");require("./DepartmentEdit.vue2.cjs");const _={class:"for-transition w-100"},f={class:"pd-b-zero pd-t-zero pd-thin"},q={class:"pd-thin"},h={class:"flex-nowrap flex bg-grey pd-medium radius-big"},b={key:0,class:"mn-r-auto"},w={key:1,class:"mn-r-auto"},g={class:"flex-nowrap flex pd-thin"},k={class:"flex-nowrap flex pd-thin"},x={__name:"DepartmentEdit",setup(V){const n=a.useRouter(),t=a.useRoute();e.ref("details"),e.ref(!1);async function o(){t.params.department&&await i.actions.read(t.params.department),e.ref(i.state.memberships),await r.actions.read(t.params._id),t.params.department&&await r.actions.readOne(t.params.department)}o(),e.ref(!1),e.ref(null),e.ref(!1),e.ref(null);async function c(){t.params.department&&await r.actions.update(t.params._id,r.state.department),t.params.department||await r.actions.create(t.params._id,r.state.department)}function d(){n.replace({name:"Department",params:{_id:t.params._id,department:r.state.department._id}})}async function u(){await r.actions.delete(t.params._id,r.state.department)}return(l,N)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",f,[e.createVNode(p.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",q,[e.createElementVNode("header",h,[e.unref(t).params.department?(e.openBlock(),e.createElementBlock("h1",b,"Edit Spot")):(e.openBlock(),e.createElementBlock("h1",w,"Create Spot")),e.createElementVNode("section",g,[e.createVNode(s.default,{submit:c,callback:d},{default:e.withCtx(()=>[e.createTextVNode("Save Spot")]),_:1})])])]),e.createElementVNode("section",k,[e.createVNode(s.default,{submit:u,callback:l.redirectToDash,class:"bg-grey"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])])]))}},E=m.default(x,[["__scopeId","data-v-190683d5"]]);exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const p=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");const m=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Checkbox/Checkbox.vue2.cjs");require("../../../../components/Address/Address.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/LocationMarker/LocationMarker.vue.cjs");const s=require("../../../../components/Button/Button.vue.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../blocks/EditArray.vue2.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/DepartmentMemberModify.vue2.cjs");require("../blocks/User.vue2.cjs");const r=require("../../../spots/store/spots.cjs"),i=require("../../store/memberships.cjs");require("./DepartmentEdit.vue2.cjs");const _={class:"for-transition w-100"},f={class:"pd-b-zero pd-t-zero pd-thin"},q={class:"pd-thin"},h={class:"flex-nowrap flex bg-grey pd-medium radius-big"},b={key:0,class:"mn-r-auto"},w={key:1,class:"mn-r-auto"},g={class:"flex-nowrap flex pd-thin"},k={class:"flex-nowrap flex pd-thin"},x={__name:"DepartmentEdit",setup(V){const n=a.useRouter(),t=a.useRoute();e.ref("details"),e.ref(!1);async function o(){t.params.department&&await i.actions.read(t.params.department),e.ref(i.state.memberships),await r.actions.read(t.params._id),t.params.department&&await r.actions.readOne(t.params.department)}o(),e.ref(!1),e.ref(null),e.ref(!1),e.ref(null);async function c(){t.params.department&&await r.actions.update(t.params._id,r.state.department),t.params.department||await r.actions.create(t.params._id,r.state.department)}function d(){n.replace({name:"Department",params:{_id:t.params._id,department:r.state.department._id}})}async function u(){await r.actions.delete(t.params._id,r.state.department)}return(l,N)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",f,[e.createVNode(p.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",q,[e.createElementVNode("header",h,[e.unref(t).params.department?(e.openBlock(),e.createElementBlock("h1",b,"Edit Spot")):(e.openBlock(),e.createElementBlock("h1",w,"Create Spot")),e.createElementVNode("section",g,[e.createVNode(s.default,{submit:c,callback:d},{default:e.withCtx(()=>[e.createTextVNode("Save Spot")]),_:1})])])]),e.createElementVNode("section",k,[e.createVNode(s.default,{submit:u,callback:l.redirectToDash,class:"bg-grey"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])])]))}},E=m.default(x,[["__scopeId","data-v-190683d5"]]);exports.default=E;