@ozdao/prometheus-framework 0.2.130 → 0.2.132

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. package/dist/auth.server.js +0 -1
  2. package/dist/auth.server.mjs +0 -1
  3. package/dist/community.server.js +172 -31
  4. package/dist/community.server.mjs +172 -31
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +38 -4
  8. package/dist/files.server.mjs +38 -4
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/main-CI9l9xMs.js +92 -0
  12. package/dist/main-DPg58GOU.mjs +14509 -0
  13. package/dist/main.css +1 -1
  14. package/dist/orders.server.js +1 -1
  15. package/dist/orders.server.mjs +1 -1
  16. package/dist/organizations.server.js +4 -3
  17. package/dist/organizations.server.mjs +4 -3
  18. package/dist/products.server.js +2 -1
  19. package/dist/products.server.mjs +2 -1
  20. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
  22. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
  24. package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
  25. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
  27. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  28. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
  29. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
  31. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
  32. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
  33. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
  35. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
  37. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
  38. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
  39. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
  41. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
  43. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
  45. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
  47. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
  48. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
  51. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
  52. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
  53. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
  55. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
  57. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
  59. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
  61. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
  63. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  65. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +31 -31
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +32 -32
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +20 -20
  77. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
  79. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
  83. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +55 -72
  85. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
  87. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +87 -77
  89. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
  91. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  93. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
  95. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
  96. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
  97. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
  99. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +29 -30
  101. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
  103. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
  105. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
  109. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
  110. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
  111. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
  113. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
  115. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  117. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  123. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +21 -21
  126. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +30 -30
  128. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
  130. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +18 -18
  134. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  136. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
  138. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  140. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  142. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
  144. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
  150. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +113 -86
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +37 -36
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +10 -10
  164. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  166. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
  170. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
  172. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
  174. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  176. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
  178. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  179. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
  187. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  189. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  191. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
  193. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  195. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  197. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
  199. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  203. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
  205. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
  207. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +33 -33
  209. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
  211. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  213. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  214. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
  215. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
  216. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
  217. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
  218. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
  219. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
  220. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
  221. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
  223. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +158 -81
  225. package/dist/prometheus-framework.cjs.js +1 -1
  226. package/dist/prometheus-framework.es.js +14 -14
  227. package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
  228. package/dist/queryProcessor-iewDZq_f.js +178 -0
  229. package/dist/style.css +1 -1
  230. package/dist/wallet.server.js +80 -27
  231. package/dist/wallet.server.mjs +80 -27
  232. package/dist/web-DZUec7pP.js +1 -0
  233. package/dist/web-krQQeSb6.mjs +54 -0
  234. package/package.json +1 -1
  235. package/src/components/Address/Address.vue +1 -1
  236. package/src/components/Chips/Chips.vue +1 -1
  237. package/src/components/Completion/Completion.vue +1 -4
  238. package/src/components/DatePicker/Calendar.vue +1 -1
  239. package/src/components/Draggable/Draggable.vue +113 -0
  240. package/src/components/Dropdown/Dropdown.vue +1 -1
  241. package/src/components/Feed/Feed.vue +18 -12
  242. package/src/components/FieldBig/FieldBig.vue +11 -1
  243. package/src/components/FieldPhone/FieldPhone.vue +1 -1
  244. package/src/components/FieldTags/FieldTags.vue +2 -1
  245. package/src/components/FieldTags/tag-input.vue +1 -1
  246. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  247. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  248. package/src/components/Shader/Shader.vue +2 -2
  249. package/src/components/Slider/Slider.vue +1 -5
  250. package/src/components/Spoiler/Spoiler.vue +1 -1
  251. package/src/components/Text/Text.vue +1 -4
  252. package/src/components/Tooltip/Tooltip.vue +1 -1
  253. package/src/components/Upload/Upload.vue +5 -3
  254. package/src/modules/auth/controllers/auth.controller.js +0 -2
  255. package/src/modules/auth/store/auth.js +2 -2
  256. package/src/modules/community/DOCUMENTATION.MD +4 -0
  257. package/src/modules/community/community.client.js +0 -2
  258. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
  259. package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
  260. package/src/modules/community/components/layouts/Community.vue +15 -11
  261. package/src/modules/community/components/pages/Blog.vue +25 -32
  262. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
  263. package/src/modules/community/components/sections/Comment.vue +123 -0
  264. package/src/modules/community/components/sections/Comments.vue +90 -19
  265. package/src/modules/community/components/sections/HotPosts.vue +3 -6
  266. package/src/modules/community/controllers/blog.controller.js +1 -1
  267. package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
  268. package/src/modules/community/controllers/comments.controller.js +187 -38
  269. package/src/modules/community/controllers/comments.controller.populate.js +180 -0
  270. package/src/modules/community/models/comment.model.js +15 -0
  271. package/src/modules/community/store/blogposts.js +20 -2
  272. package/src/modules/constructor/components/elements/Audio.vue +28 -40
  273. package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
  274. package/src/modules/constructor/components/elements/Video.vue +10 -18
  275. package/src/modules/constructor/components/sections/Constructor.vue +54 -47
  276. package/src/modules/files/controllers/files.controller.js +2 -0
  277. package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
  278. package/src/modules/files/routes/files.routes.js +8 -0
  279. package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
  280. package/src/modules/globals/components/partials/Header.vue +12 -7
  281. package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
  282. package/src/modules/icons/logos/Logotype.vue +8 -6
  283. package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
  284. package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
  285. package/src/modules/marketplace/store/marketplace.js +2 -8
  286. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  287. package/src/modules/organizations/components/pages/Members.vue +1 -1
  288. package/src/modules/organizations/components/pages/Organization.vue +33 -5
  289. package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
  290. package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
  291. package/src/modules/organizations/components/sections/Publics.vue +2 -2
  292. package/src/modules/organizations/controllers/memberships.controller.js +2 -3
  293. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  294. package/src/modules/organizations/store/memberships.js +4 -1
  295. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  296. package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
  297. package/src/modules/products/models/product.model.js +2 -1
  298. package/src/modules/spots/components/layouts/Spots.vue +0 -3
  299. package/src/modules/spots/components/pages/Map.vue +13 -3
  300. package/src/modules/users/components/blocks/CardUser.vue +2 -2
  301. package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
  302. package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
  303. package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
  304. package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
  305. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
  306. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
  307. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
  308. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
  309. package/src/modules/wallet/localization/Wallet.json +22 -0
  310. package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
  311. package/src/styles/base/all.scss +16 -26
  312. package/src/styles/config.scss +70 -34
  313. package/src/styles/typography.scss +5 -5
  314. package/src/modules/community/components/sections/Feed.vue +0 -148
  315. package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
  316. package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -3,7 +3,7 @@ const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
3
3
  const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
4
4
  const profile_schema = require("./profile.schema-CkOhhf37.js");
5
5
  const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
6
- const queryProcessor = require("./queryProcessor-haY_gPGg.js");
6
+ const queryProcessor = require("./queryProcessor-iewDZq_f.js");
7
7
  const mailing = require("./mailing-BX0q8DIs.js");
8
8
  const index = require("./index-BshfsiQG.js");
9
9
  const require$$0 = require("node-cache");
@@ -2,7 +2,7 @@ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
2
  import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
3
3
  import { p as profile_schema } from "./profile.schema-24ZpZQJe.mjs";
4
4
  import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
5
- import { q as queryProcessor } from "./queryProcessor-g8208K6g.mjs";
5
+ import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
6
6
  import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
7
7
  import { s as server } from "./index-DKtnWDNC.mjs";
8
8
  import require$$0 from "node-cache";
@@ -7,7 +7,7 @@ const require$$3 = require("uuidv4");
7
7
  const require$$0 = require("mongoose");
8
8
  const require$$5 = require("@googlemaps/google-maps-services-js");
9
9
  const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
10
- const queryProcessor = require("./queryProcessor-haY_gPGg.js");
10
+ const queryProcessor = require("./queryProcessor-iewDZq_f.js");
11
11
  const mailing = require("./mailing-BX0q8DIs.js");
12
12
  const index = require("./index-BshfsiQG.js");
13
13
  const engagement_schema = require("./engagement.schema-D-9md46B.js");
@@ -100,8 +100,8 @@ const controllerFactory$5 = (db) => {
100
100
  const sortOrder = req.query.sortOrder || "desc";
101
101
  const sort = {
102
102
  ...sortParam === "distance" ? { "distanceExist": -1 } : {},
103
- "numberOfProducts": -1,
104
103
  [sortParam]: sortOrder === "desc" ? -1 : 1,
104
+ "numberOfProducts": -1,
105
105
  "_id": 1
106
106
  };
107
107
  console.log(sort);
@@ -537,9 +537,10 @@ const controllerFactory$4 = (db) => {
537
537
  }
538
538
  };
539
539
  const deleteMembership = async (req, res) => {
540
+ const { _id, type, target, user: user2, role } = req.body;
540
541
  console.log(req.body);
541
542
  try {
542
- const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) });
543
+ const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) }) : await Membership.findOne({ type, target, user: user2, role });
543
544
  if (!membership) {
544
545
  return res.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
545
546
  } else {
@@ -6,7 +6,7 @@ import require$$3 from "uuidv4";
6
6
  import require$$0 from "mongoose";
7
7
  import require$$5 from "@googlemaps/google-maps-services-js";
8
8
  import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-BXp_LeQd.mjs";
9
- import { q as queryProcessor } from "./queryProcessor-g8208K6g.mjs";
9
+ import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
10
10
  import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
11
11
  import { s as server } from "./index-DKtnWDNC.mjs";
12
12
  import { e as engagement_schema } from "./engagement.schema-CCdSLKd4.mjs";
@@ -99,8 +99,8 @@ const controllerFactory$5 = (db) => {
99
99
  const sortOrder = req.query.sortOrder || "desc";
100
100
  const sort = {
101
101
  ...sortParam === "distance" ? { "distanceExist": -1 } : {},
102
- "numberOfProducts": -1,
103
102
  [sortParam]: sortOrder === "desc" ? -1 : 1,
103
+ "numberOfProducts": -1,
104
104
  "_id": 1
105
105
  };
106
106
  console.log(sort);
@@ -536,9 +536,10 @@ const controllerFactory$4 = (db) => {
536
536
  }
537
537
  };
538
538
  const deleteMembership = async (req, res) => {
539
+ const { _id, type, target, user: user2, role } = req.body;
539
540
  console.log(req.body);
540
541
  try {
541
- const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) });
542
+ const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) }) : await Membership.findOne({ type, target, user: user2, role });
542
543
  if (!membership) {
543
544
  return res.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
544
545
  } else {
@@ -7,7 +7,7 @@ const require$$0 = require("mongoose");
7
7
  require("path");
8
8
  const require$$3 = require("openai");
9
9
  const index = require("./index-BshfsiQG.js");
10
- const queryProcessor = require("./queryProcessor-haY_gPGg.js");
10
+ const queryProcessor = require("./queryProcessor-iewDZq_f.js");
11
11
  var product_model = (mongoose) => {
12
12
  const ProductSchema = new mongoose.Schema({
13
13
  status: { type: String },
@@ -26,6 +26,7 @@ var product_model = (mongoose) => {
26
26
  }],
27
27
  // ЗАДАЧА: Нужно отрефачить price, перенести его в default variant
28
28
  price: { type: Number },
29
+ prices: { type: Array },
29
30
  //
30
31
  variants: [{
31
32
  _id: { type: mongoose.Schema.Types.ObjectId, auto: true },
@@ -5,7 +5,7 @@ import require$$0 from "mongoose";
5
5
  import "path";
6
6
  import require$$3 from "openai";
7
7
  import { s as server } from "./index-DKtnWDNC.mjs";
8
- import { q as queryProcessor } from "./queryProcessor-g8208K6g.mjs";
8
+ import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
9
9
  var product_model = (mongoose) => {
10
10
  const ProductSchema = new mongoose.Schema({
11
11
  status: { type: String },
@@ -24,6 +24,7 @@ var product_model = (mongoose) => {
24
24
  }],
25
25
  // ЗАДАЧА: Нужно отрефачить price, перенести его в default variant
26
26
  price: { type: Number },
27
+ prices: { type: Array },
27
28
  //
28
29
  variants: [{
29
30
  _id: { type: mongoose.Schema.Types.ObjectId, auto: true },
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");;/* empty css */const v=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_={key:0,class:"t-transp mn-r-small"},h=["placeholder","value"],k={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},locale:{type:String,default:"en"}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(l,{emit:p}){const c=l,o=p,i=e.ref(null);let d;const m=()=>{const t=d.getPlace();if(!t.geometry||!t.address_components)return;let a="",s="",u="";for(let r=0;r<t.address_components.length;r++){let n=t.address_components[r];n.types.includes("country")&&(a=n.long_name),n.types.includes("administrative_area_level_1")&&(s=n.long_name),n.types.includes("locality")&&(u=n.long_name)}const y=t.formatted_address,g={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};o("update:address",y),o("update:location",g),o("update:country",a),o("update:state",s),o("update:city",u)};return e.onMounted(()=>{new f.Loader({apiKey:c.apiKey,version:"weekly",libraries:["places"],language:c.locale}).load().then(()=>{d=new google.maps.places.Autocomplete(i.value),d.addListener("place_changed",m)}).catch(a=>{console.error(a)})}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.$attrs.class,"flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:i,class:"w-100",placeholder:l.placeholder,value:l.address,onInput:a[0]||(a[0]=(...s)=>t.onInput&&t.onInput(...s))},null,40,h),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",k," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},w=v.default(b,[["__scopeId","data-v-0fc64e8d"]]);exports.default=w;
@@ -0,0 +1,89 @@
1
+ import { ref as w, onMounted as k, openBlock as r, createElementBlock as i, normalizeClass as b, createElementVNode as m, toDisplayString as y, createCommentVNode as f, createVNode as I, Transition as A, withCtx as C } from "vue";
2
+ import { Loader as S } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
3
+ /* empty css */
4
+ import E from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const K = {
6
+ key: 0,
7
+ class: "t-transp mn-r-small"
8
+ }, L = ["placeholder", "value"], N = {
9
+ key: 0,
10
+ class: "mn-t-thin invalid-feedback"
11
+ }, V = {
12
+ __name: "Address",
13
+ props: {
14
+ apiKey: {
15
+ type: String,
16
+ required: !0
17
+ },
18
+ label: null,
19
+ placeholder: "Enter something here",
20
+ field: null,
21
+ location: {
22
+ type: Object,
23
+ default: { lat: 48.6900735, lng: 41.1620239 }
24
+ },
25
+ address: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ locale: {
30
+ type: String,
31
+ default: "en"
32
+ }
33
+ },
34
+ emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
35
+ setup(n, { emit: g }) {
36
+ const c = n, l = g, p = w(null);
37
+ let s;
38
+ const h = () => {
39
+ const e = s.getPlace();
40
+ if (!e.geometry || !e.address_components)
41
+ return;
42
+ let t = "", o = "", u = "";
43
+ for (let d = 0; d < e.address_components.length; d++) {
44
+ let a = e.address_components[d];
45
+ a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (o = a.long_name), a.types.includes("locality") && (u = a.long_name);
46
+ }
47
+ const _ = e.formatted_address, v = { lat: e.geometry.location.lat(), lng: e.geometry.location.lng() };
48
+ l("update:address", _), l("update:location", v), l("update:country", t), l("update:state", o), l("update:city", u);
49
+ };
50
+ return k(() => {
51
+ new S({
52
+ apiKey: c.apiKey,
53
+ version: "weekly",
54
+ libraries: ["places"],
55
+ language: c.locale
56
+ }).load().then(() => {
57
+ s = new google.maps.places.Autocomplete(p.value), s.addListener("place_changed", h);
58
+ }).catch((t) => {
59
+ console.error(t);
60
+ });
61
+ }), (e, t) => (r(), i("div", {
62
+ class: b([e.$attrs.class, "flex-nowrap flex"])
63
+ }, [
64
+ n.label ? (r(), i("div", K, [
65
+ m("span", null, y(n.label), 1)
66
+ ])) : f("", !0),
67
+ m("input", {
68
+ ref_key: "addressInput",
69
+ ref: p,
70
+ class: "w-100",
71
+ placeholder: n.placeholder,
72
+ value: n.address,
73
+ onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o))
74
+ }, null, 40, L),
75
+ I(A, {
76
+ mode: "out-in",
77
+ name: "fade"
78
+ }, {
79
+ default: C(() => [
80
+ e.validation ? (r(), i("div", N, " * " + y(e.validation.message), 1)) : f("", !0)
81
+ ]),
82
+ _: 1
83
+ })
84
+ ], 2));
85
+ }
86
+ }, x = /* @__PURE__ */ E(V, [["__scopeId", "data-v-0fc64e8d"]]);
87
+ export {
88
+ x as default
89
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");;/* empty css */const v=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_={key:0,class:"t-transp mn-r-small"},h=["placeholder","value"],k={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},locale:{type:String,default:"en"}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(l,{emit:p}){const c=l,o=p,i=e.ref(null);let d;const m=()=>{const t=d.getPlace();if(!t.geometry||!t.address_components)return;let a="",s="",u="";for(let r=0;r<t.address_components.length;r++){let n=t.address_components[r];n.types.includes("country")&&(a=n.long_name),n.types.includes("administrative_area_level_1")&&(s=n.long_name),n.types.includes("locality")&&(u=n.long_name)}const y=t.formatted_address,g={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};o("update:address",y),o("update:location",g),o("update:country",a),o("update:state",s),o("update:city",u)};return e.onMounted(()=>{new f.Loader({apiKey:c.apiKey,version:"weekly",libraries:["places"],language:c.locale}).load().then(()=>{d=new google.maps.places.Autocomplete(i.value),d.addListener("place_changed",m)}).catch(a=>{console.error(a)})}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.$attrs.class,"flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:i,class:"w-100",placeholder:l.placeholder,value:l.address,onInput:a[0]||(a[0]=(...s)=>t.onInput&&t.onInput(...s))},null,40,h),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",k," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},w=v.default(b,[["__scopeId","data-v-0fc64e8d"]]);exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");;/* empty css */const h={key:0,class:"t-transp mn-r-small"},v=["placeholder","value"],_={key:0,class:"mn-t-thin invalid-feedback"},k={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},locale:{type:String,default:"en"}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(l,{emit:p}){const c=l,o=p,i=e.ref(null);let d;const m=()=>{const t=d.getPlace();if(!t.geometry||!t.address_components)return;let a="",s="",u="";for(let r=0;r<t.address_components.length;r++){let n=t.address_components[r];n.types.includes("country")&&(a=n.long_name),n.types.includes("administrative_area_level_1")&&(s=n.long_name),n.types.includes("locality")&&(u=n.long_name)}const y=t.formatted_address,g={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};o("update:address",y),o("update:location",g),o("update:country",a),o("update:state",s),o("update:city",u)};return e.onMounted(()=>{new f.Loader({apiKey:c.apiKey,version:"weekly",libraries:["places"],language:c.locale}).load().then(()=>{d=new google.maps.places.Autocomplete(i.value),d.addListener("place_changed",m)}).catch(a=>{console.error(a)})}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.$attrs.class,"flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:i,class:"w-100",placeholder:l.placeholder,value:l.address,onInput:a[0]||(a[0]=(...s)=>t.onInput&&t.onInput(...s))},null,40,v),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}};exports.default=k;
@@ -1,14 +1,13 @@
1
- import { ref as w, onMounted as k, openBlock as r, createElementBlock as i, normalizeClass as b, createElementVNode as m, toDisplayString as y, createCommentVNode as f, createVNode as I, Transition as A, withCtx as C } from "vue";
2
- import { Loader as S } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
1
+ import { ref as w, onMounted as k, openBlock as r, createElementBlock as i, normalizeClass as b, createElementVNode as m, toDisplayString as y, createCommentVNode as g, createVNode as I, Transition as C, withCtx as S } from "vue";
2
+ import { Loader as A } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
3
3
  /* empty css */
4
- import E from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const K = {
4
+ const E = {
6
5
  key: 0,
7
6
  class: "t-transp mn-r-small"
8
- }, L = ["placeholder", "value"], N = {
7
+ }, K = ["placeholder", "value"], L = {
9
8
  key: 0,
10
9
  class: "mn-t-thin invalid-feedback"
11
- }, V = {
10
+ }, P = {
12
11
  __name: "Address",
13
12
  props: {
14
13
  apiKey: {
@@ -32,58 +31,58 @@ const K = {
32
31
  }
33
32
  },
34
33
  emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
35
- setup(n, { emit: g }) {
36
- const c = n, l = g, p = w(null);
34
+ setup(n, { emit: f }) {
35
+ const c = n, l = f, u = w(null);
37
36
  let s;
38
37
  const h = () => {
39
38
  const e = s.getPlace();
40
39
  if (!e.geometry || !e.address_components)
41
40
  return;
42
- let t = "", o = "", u = "";
41
+ let t = "", o = "", p = "";
43
42
  for (let d = 0; d < e.address_components.length; d++) {
44
43
  let a = e.address_components[d];
45
- a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (o = a.long_name), a.types.includes("locality") && (u = a.long_name);
44
+ a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (o = a.long_name), a.types.includes("locality") && (p = a.long_name);
46
45
  }
47
- const _ = e.formatted_address, v = { lat: e.geometry.location.lat(), lng: e.geometry.location.lng() };
48
- l("update:address", _), l("update:location", v), l("update:country", t), l("update:state", o), l("update:city", u);
46
+ const v = e.formatted_address, _ = { lat: e.geometry.location.lat(), lng: e.geometry.location.lng() };
47
+ l("update:address", v), l("update:location", _), l("update:country", t), l("update:state", o), l("update:city", p);
49
48
  };
50
49
  return k(() => {
51
- new S({
50
+ new A({
52
51
  apiKey: c.apiKey,
53
52
  version: "weekly",
54
53
  libraries: ["places"],
55
54
  language: c.locale
56
55
  }).load().then(() => {
57
- s = new google.maps.places.Autocomplete(p.value), s.addListener("place_changed", h);
56
+ s = new google.maps.places.Autocomplete(u.value), s.addListener("place_changed", h);
58
57
  }).catch((t) => {
59
58
  console.error(t);
60
59
  });
61
60
  }), (e, t) => (r(), i("div", {
62
61
  class: b([e.$attrs.class, "flex-nowrap flex"])
63
62
  }, [
64
- n.label ? (r(), i("div", K, [
63
+ n.label ? (r(), i("div", E, [
65
64
  m("span", null, y(n.label), 1)
66
- ])) : f("", !0),
65
+ ])) : g("", !0),
67
66
  m("input", {
68
67
  ref_key: "addressInput",
69
- ref: p,
68
+ ref: u,
70
69
  class: "w-100",
71
70
  placeholder: n.placeholder,
72
71
  value: n.address,
73
72
  onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o))
74
- }, null, 40, L),
75
- I(A, {
73
+ }, null, 40, K),
74
+ I(C, {
76
75
  mode: "out-in",
77
76
  name: "fade"
78
77
  }, {
79
- default: C(() => [
80
- e.validation ? (r(), i("div", N, " * " + y(e.validation.message), 1)) : f("", !0)
78
+ default: S(() => [
79
+ e.validation ? (r(), i("div", L, " * " + y(e.validation.message), 1)) : g("", !0)
81
80
  ]),
82
81
  _: 1
83
82
  })
84
83
  ], 2));
85
84
  }
86
- }, x = /* @__PURE__ */ E(V, [["__scopeId", "data-v-0fc64e8d"]]);
85
+ };
87
86
  export {
88
- x as default
87
+ P as default
89
88
  };
@@ -1,4 +1,4 @@
1
- import { useSlots as u, openBlock as l, createElementBlock as n, toDisplayString as o, createCommentVNode as r, Fragment as c, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as p, createElementVNode as y, Comment as g } from "vue";
1
+ import { useSlots as c, openBlock as l, createElementBlock as n, toDisplayString as s, createCommentVNode as r, Fragment as u, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as y, createElementVNode as g, Comment as p } from "vue";
2
2
  import b from "../Tooltip/Tooltip.vue.js";
3
3
  const k = { class: "bg-light pd-medium radius-big" }, C = {
4
4
  key: 0,
@@ -6,10 +6,10 @@ const k = { class: "bg-light pd-medium radius-big" }, C = {
6
6
  }, S = {
7
7
  key: 0,
8
8
  class: "mn-r-thin t-medium p-big"
9
- }, x = ["onClick"], w = /* @__PURE__ */ y("p", { class: "bg-main radius-small t-center i-medium" }, "i", -1), B = {
9
+ }, x = ["onClick"], _ = /* @__PURE__ */ g("p", { class: "bg-main radius-small t-center i-medium" }, "i", -1), w = {
10
10
  key: 1,
11
11
  class: "w-100"
12
- }, _ = {
12
+ }, N = {
13
13
  __name: "Block",
14
14
  props: {
15
15
  title: {
@@ -36,30 +36,30 @@ const k = { class: "bg-light pd-medium radius-big" }, C = {
36
36
  }
37
37
  },
38
38
  setup(t) {
39
- u();
40
- const a = (i, s = {}) => i ? i(s).some((e) => Array.isArray(e.children) ? !!e.children.length : e.type !== g) : !1;
41
- return (i, s) => (l(), n("div", k, [
39
+ c();
40
+ const o = (i, a = {}) => i ? i(a).some((e) => Array.isArray(e.children) ? !!e.children.length : e.type !== p) : !1;
41
+ return (i, a) => (l(), n("div", k, [
42
42
  t.title || t.actions ? (l(), n("div", C, [
43
- t.title ? (l(), n("p", S, o(t.title), 1)) : r("", !0),
44
- (l(!0), n(c, null, d(t.actions, (e) => (l(), n("button", {
43
+ t.title ? (l(), n("p", S, s(t.title), 1)) : r("", !0),
44
+ (l(!0), n(u, null, d(t.actions, (e) => (l(), n("button", {
45
45
  onClick: e.function,
46
46
  class: m(["pd-thin button-delete button", e.class || "bg-main radius-small t-center i-medium"])
47
- }, o(e.label), 11, x))), 256)),
47
+ }, s(e.label), 11, x))), 256)),
48
48
  t.tooltip ? (l(), h(b, {
49
49
  key: 1,
50
50
  text: t.tooltip
51
51
  }, {
52
52
  default: f(() => [
53
- w
53
+ _
54
54
  ]),
55
55
  _: 1
56
56
  }, 8, ["text"])) : r("", !0)
57
57
  ])) : r("", !0),
58
- a(i.$slots.default) ? r("", !0) : (l(), n("span", B, o(t.placeholder), 1)),
59
- p(i.$slots, "default")
58
+ o(i.$slots.default) ? r("", !0) : (l(), n("span", w, s(t.placeholder), 1)),
59
+ y(i.$slots, "default")
60
60
  ]));
61
61
  }
62
62
  };
63
63
  export {
64
- _ as default
64
+ N as default
65
65
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../Loader/Loader.vue2.cjs");;/* empty css */const v=["disabled"],b={key:0},m={key:1},k={key:2,class:"t-semi loading t-black"},y={key:3,class:"error"},p={key:0,class:"button-counter"},g={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},emits:["error"],setup(t,{emit:r}){const o=t,i=r,l=e.ref(null),a=e.ref(null),s=e.ref(!1),n=e.ref(!1);async function d(){l.value.style["pointer-events"]="none",a.value=null,s.value=!0;const c=()=>{l.value&&(l.value.classList.replace("bg-second","bg-main"),l.value.style.pointerEvents="auto",s.value=!1,n.value=!1,a.value=null)};try{await o.submit(),l.value.classList.replace("bg-main","bg-second"),s.value=!1,o.showSucces?(n.value=!0,setTimeout(c,500)):c(),o.callback&&setTimeout(()=>o.callback(),o.callbackDelay)}catch(u){i("error",u),l.value.classList.replace("bg-main","bg-fourth-nano"),a.value=o.error,setTimeout(()=>{c(),l.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(c,u)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(d,["stop"]),disabled:t.validation,ref_key:"button",ref:l,class:"button"},[e.createVNode(e.Transition,{name:"FromTop"},{default:e.withCtx(()=>[!s.value&&!a.value&&!n.value||!t.showLoader?(e.openBlock(),e.createElementBlock("span",b,[e.renderSlot(c.$slots,"default")])):s.value&&!a.value&&t.showLoader?(e.openBlock(),e.createElementBlock("span",m,[e.createVNode(f.default,{class:"pos-relative pos-t-0 pos-l-0 loading"})])):n.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",k,e.toDisplayString(t.text.success),1)):a.value?(e.openBlock(),e.createElementBlock("span",y,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",p,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,v))}};exports.default=g;
@@ -0,0 +1,95 @@
1
+ import { ref as r, openBlock as o, createElementBlock as s, withModifiers as h, createVNode as f, Transition as p, withCtx as k, renderSlot as g, toDisplayString as i, createCommentVNode as b } from "vue";
2
+ import w from "../Loader/Loader.vue2.js";
3
+ /* empty css */
4
+ const B = ["disabled"], L = { key: 0 }, S = { key: 1 }, T = {
5
+ key: 2,
6
+ class: "t-semi loading t-black"
7
+ }, _ = {
8
+ key: 3,
9
+ class: "error"
10
+ }, x = {
11
+ key: 0,
12
+ class: "button-counter"
13
+ }, j = {
14
+ __name: "Button",
15
+ props: {
16
+ submit: {
17
+ type: Function,
18
+ default: async () => {
19
+ console.log("Button click.");
20
+ }
21
+ },
22
+ text: {
23
+ type: Object,
24
+ default: (e) => (console.log(e), e = {
25
+ ...e.text,
26
+ success: "✔",
27
+ error: "✖"
28
+ })
29
+ },
30
+ counter: {
31
+ type: Object
32
+ },
33
+ callback: {
34
+ type: Function,
35
+ default: async () => {
36
+ console.log("Button callback.");
37
+ }
38
+ },
39
+ callbackDelay: {
40
+ type: Number,
41
+ default: 750
42
+ },
43
+ showSucces: {
44
+ type: Boolean,
45
+ default: !0
46
+ },
47
+ showLoader: {
48
+ type: Boolean,
49
+ default: !0
50
+ },
51
+ validation: {
52
+ type: Boolean,
53
+ default: !1
54
+ }
55
+ },
56
+ emits: ["error"],
57
+ setup(e, { emit: v }) {
58
+ const l = e, m = v, t = r(null), a = r(null), n = r(!1), u = r(!1);
59
+ async function y() {
60
+ t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
61
+ const c = () => {
62
+ t.value && (t.value.classList.replace("bg-second", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, u.value = !1, a.value = null);
63
+ };
64
+ try {
65
+ await l.submit(), t.value.classList.replace("bg-main", "bg-second"), n.value = !1, l.showSucces ? (u.value = !0, setTimeout(c, 500)) : c(), l.callback && setTimeout(() => l.callback(), l.callbackDelay);
66
+ } catch (d) {
67
+ m("error", d), t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = l.error, setTimeout(() => {
68
+ c(), t.value.classList.replace("bg-fourth-nano", "bg-main");
69
+ }, 1330);
70
+ }
71
+ }
72
+ return (c, d) => (o(), s("button", {
73
+ onClick: h(y, ["stop"]),
74
+ disabled: e.validation,
75
+ ref_key: "button",
76
+ ref: t,
77
+ class: "button"
78
+ }, [
79
+ f(p, { name: "FromTop" }, {
80
+ default: k(() => [
81
+ !n.value && !a.value && !u.value || !e.showLoader ? (o(), s("span", L, [
82
+ g(c.$slots, "default")
83
+ ])) : n.value && !a.value && e.showLoader ? (o(), s("span", S, [
84
+ f(w, { class: "pos-relative pos-t-0 pos-l-0 loading" })
85
+ ])) : u.value && e.showSucces ? (o(), s("span", T, i(e.text.success), 1)) : a.value ? (o(), s("span", _, i(a.value), 1)) : b("", !0)
86
+ ]),
87
+ _: 3
88
+ }),
89
+ e.counter ? (o(), s("p", x, i(e.counter), 1)) : b("", !0)
90
+ ], 8, B));
91
+ }
92
+ };
93
+ export {
94
+ j as default
95
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i={class:"t-trimmed font-main"},l={class:"font-main t-truncate"},o={key:1,class:"pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"},a={__name:"Chips",props:["chips"],setup(n){return(s,c)=>{var r;return e.openBlock(),e.createElementBlock("div",i,[(r=n.chips)!=null&&r.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.chips,(t,d)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([s.$attrs.class||"p-medium","mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])},[e.createElementVNode("span",l,e.toDisplayString(t.text?t.text:t),1)],2))),256)):(e.openBlock(),e.createElementBlock("div",o,[e.renderSlot(s.$slots,"default")]))])}}};exports.default=a;
@@ -0,0 +1,26 @@
1
+ import { openBlock as t, createElementBlock as e, Fragment as a, renderList as m, normalizeClass as o, createElementVNode as d, toDisplayString as l, renderSlot as c } from "vue";
2
+ /* empty css */
3
+ const p = { class: "t-trimmed font-main" }, h = { class: "font-main t-truncate" }, u = {
4
+ key: 1,
5
+ class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
6
+ }, k = {
7
+ __name: "Chips",
8
+ props: ["chips"],
9
+ setup(n) {
10
+ return (i, _) => {
11
+ var r;
12
+ return t(), e("div", p, [
13
+ (r = n.chips) != null && r.length ? (t(!0), e(a, { key: 0 }, m(n.chips, (s, f) => (t(), e("span", {
14
+ class: o([i.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
15
+ }, [
16
+ d("span", h, l(s.text ? s.text : s), 1)
17
+ ], 2))), 256)) : (t(), e("div", u, [
18
+ c(i.$slots, "default")
19
+ ]))
20
+ ]);
21
+ };
22
+ }
23
+ };
24
+ export {
25
+ k as default
26
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */const x=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),O={class:"calendar"},N={key:0,class:"br-b br-solid br-grey-transp-25 gap-thin flex flex-nowrap pd-thin"},B={class:"pd-thin flex flex-nowrap flex-v-center flex-justify-between"},I={class:"t-semi"},L={class:"pd-thin calendar__body"},W={class:"calendar__week"},H={class:"gap-micro calendar__dates"},R=["onClick"],j={__name:"Calendar",props:t.mergeModels({modelValue:[Date,Object],allowRange:Boolean},{date:{},dateModifiers:{}}),emits:t.mergeModels(["update:modelValue"],["update:date"]),setup(g,{emit:$}){const C=g,c=t.useModel(g,"date"),m=new Date,r=t.ref(m),v=t.ref(null),l=t.ref(null),s=t.ref(null),U=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],p=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),d=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59)),h=t.computed(()=>{const e=r.value.toLocaleString("default",{month:"long",timeZone:"UTC"}),a=r.value.getUTCFullYear();return`${e} ${a}`}),f=t.computed(()=>{const e=[],a=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth(),1)),n=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()+1,0)),u=a.getUTCDay();let o=new Date(a);o.setUTCDate(o.getUTCDate()-u);for(let i=0;i<u;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);let D=1;for(o=a;o<=n;o.setUTCDate(o.getUTCDate()+1))e.push({date:new Date(o),day:D,isToday:T(o)}),D++;const Y=e[e.length-1].date.getUTCDay();for(let i=Y+1;i<=6;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);return e}),T=e=>{const a=new Date;return e.getUTCDate()===a.getUTCDate()&&e.getUTCMonth()===a.getUTCMonth()&&e.getUTCFullYear()===a.getUTCFullYear()},w=e=>e.getUTCMonth()===r.value.getUTCMonth()&&e.getUTCFullYear()===r.value.getUTCFullYear(),_=e=>{if(C.allowRange){if(l.value&&s.value)return e>=new Date(l.value)&&d(e)<=new Date(s.value);if(l.value)return e.getTime()===new Date(l.value).getTime()}else return v.value&&e.getTime()===new Date(v.value).getTime()},y=e=>l.value&&s.value?e>l.value&&d(e)<s.value:!1,M=e=>{const a=p(e);if(!C.allowRange)v.value=a,c.value=a;else if(!l.value&&!s.value)l.value=a,c.value.start=a;else if(s.value)l.value=a,s.value=null,c.value={start:a,end:null};else{if(s.value=d(e),a<l.value){const n=d(l.value);l.value=a,s.value=n}c.value={start:l.value,end:s.value}}},k=()=>{r.value=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()-1,1))},b=()=>{r.value=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()+1,1))},S=()=>{const e=new Date,a=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0)),n=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),23,59,59,999));l.value=a.toISOString(),s.value=n.toISOString(),c.value={start:l.value,end:s.value}},E=()=>{const e=new Date,a=new Date(e);a.setUTCDate(e.getUTCDate()-7),a.setUTCHours(0,0,0,0),l.value=a,s.value=d(e),e.setUTCHours(23,59,59,999);const n=a.toISOString(),u=e.toISOString();c.value={start:n,end:u}},F=()=>{const e=new Date,a=new Date(e);a.setUTCMonth(e.getUTCMonth()-1),a.setUTCHours(0,0,0,0),l.value=a,s.value=d(e),e.setUTCHours(23,59,59,999);const n=a.toISOString(),u=e.toISOString();c.value={start:n,end:u}},V=()=>{l.value=null,s.value=null,c.value={start:null,end:null}};return(e,a)=>(t.openBlock(),t.createElementBlock("div",O,[g.allowRange?(t.openBlock(),t.createElementBlock("div",N,[t.createElementVNode("button",{onClick:S,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Today"),t.createElementVNode("button",{onClick:E,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Week"),t.createElementVNode("button",{onClick:F,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Month"),t.createElementVNode("button",{onClick:V,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"All time")])):t.createCommentVNode("",!0),t.createElementVNode("div",B,[t.createElementVNode("button",{onClick:t.withModifiers(k,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},"<"),t.createElementVNode("span",I,t.toDisplayString(h.value),1),t.createElementVNode("button",{onClick:t.withModifiers(b,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},">")]),t.createElementVNode("div",L,[t.createElementVNode("div",W,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(U,(n,u)=>t.createElementVNode("div",{key:u,class:"calendar__weekday"},t.toDisplayString(n),1)),64))]),t.createElementVNode("div",H,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,n=>(t.openBlock(),t.createElementBlock("div",{key:n.date,class:t.normalizeClass(["flex flex-center cursor-pointer aspect-ratio-1x1 radius-small",{"bg-main t-white":n.isToday},{"calendar__date--selected":_(n.date)},{"calendar__date--range":y(n.date)},{"calendar__date--disabled":!w(n.date)}]),onClick:t.withModifiers(u=>M(n.date),["stop"])},t.toDisplayString(n.day),11,R))),128))])])]))}},q=x.default(j,[["__scopeId","data-v-6bc137b0"]]);exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */const O={class:"calendar"},x={key:0,class:"br-b br-solid br-grey-transp-25 gap-thin flex flex-nowrap pd-thin"},N={class:"pd-thin flex flex-nowrap flex-v-center flex-justify-between"},B={class:"t-semi"},I={class:"pd-thin calendar__body"},L={class:"calendar__week"},W={class:"gap-micro calendar__dates"},R=["onClick"],H={__name:"Calendar",props:t.mergeModels({modelValue:[Date,Object],allowRange:Boolean},{date:{},dateModifiers:{}}),emits:t.mergeModels(["update:modelValue"],["update:date"]),setup(g,{emit:j}){const C=g,c=t.useModel(g,"date"),m=new Date,r=t.ref(m),v=t.ref(null),l=t.ref(null),s=t.ref(null),U=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],h=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),d=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59)),p=t.computed(()=>{const e=r.value.toLocaleString("default",{month:"long",timeZone:"UTC"}),a=r.value.getUTCFullYear();return`${e} ${a}`}),f=t.computed(()=>{const e=[],a=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth(),1)),n=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()+1,0)),u=a.getUTCDay();let o=new Date(a);o.setUTCDate(o.getUTCDate()-u);for(let i=0;i<u;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);let D=1;for(o=a;o<=n;o.setUTCDate(o.getUTCDate()+1))e.push({date:new Date(o),day:D,isToday:T(o)}),D++;const Y=e[e.length-1].date.getUTCDay();for(let i=Y+1;i<=6;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);return e}),T=e=>{const a=new Date;return e.getUTCDate()===a.getUTCDate()&&e.getUTCMonth()===a.getUTCMonth()&&e.getUTCFullYear()===a.getUTCFullYear()},w=e=>e.getUTCMonth()===r.value.getUTCMonth()&&e.getUTCFullYear()===r.value.getUTCFullYear(),y=e=>{if(C.allowRange){if(l.value&&s.value)return e>=new Date(l.value)&&d(e)<=new Date(s.value);if(l.value)return e.getTime()===new Date(l.value).getTime()}else return v.value&&e.getTime()===new Date(v.value).getTime()},_=e=>l.value&&s.value?e>l.value&&d(e)<s.value:!1,M=e=>{const a=h(e);if(!C.allowRange)v.value=a,c.value=a;else if(!l.value&&!s.value)l.value=a,c.value.start=a;else if(s.value)l.value=a,s.value=null,c.value={start:a,end:null};else{if(s.value=d(e),a<l.value){const n=d(l.value);l.value=a,s.value=n}c.value={start:l.value,end:s.value}}},k=()=>{r.value=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()-1,1))},b=()=>{r.value=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()+1,1))},S=()=>{const e=new Date,a=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0)),n=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),23,59,59,999));l.value=a.toISOString(),s.value=n.toISOString(),c.value={start:l.value,end:s.value}},E=()=>{const e=new Date,a=new Date(e);a.setUTCDate(e.getUTCDate()-7),a.setUTCHours(0,0,0,0),l.value=a,s.value=d(e),e.setUTCHours(23,59,59,999);const n=a.toISOString(),u=e.toISOString();c.value={start:n,end:u}},F=()=>{const e=new Date,a=new Date(e);a.setUTCMonth(e.getUTCMonth()-1),a.setUTCHours(0,0,0,0),l.value=a,s.value=d(e),e.setUTCHours(23,59,59,999);const n=a.toISOString(),u=e.toISOString();c.value={start:n,end:u}},V=()=>{l.value=null,s.value=null,c.value={start:null,end:null}};return(e,a)=>(t.openBlock(),t.createElementBlock("div",O,[g.allowRange?(t.openBlock(),t.createElementBlock("div",x,[t.createElementVNode("button",{onClick:S,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Today"),t.createElementVNode("button",{onClick:E,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Week"),t.createElementVNode("button",{onClick:F,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Month"),t.createElementVNode("button",{onClick:V,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"All time")])):t.createCommentVNode("",!0),t.createElementVNode("div",N,[t.createElementVNode("button",{onClick:t.withModifiers(k,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},"<"),t.createElementVNode("span",B,t.toDisplayString(p.value),1),t.createElementVNode("button",{onClick:t.withModifiers(b,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},">")]),t.createElementVNode("div",I,[t.createElementVNode("div",L,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(U,(n,u)=>t.createElementVNode("div",{key:u,class:"calendar__weekday"},t.toDisplayString(n),1)),64))]),t.createElementVNode("div",W,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,n=>(t.openBlock(),t.createElementBlock("div",{key:n.date,class:t.normalizeClass(["flex flex-center cursor-pointer aspect-ratio-1x1 radius-small",{"bg-main t-white":n.isToday},{"calendar__date--selected":y(n.date)},{"calendar__date--range":_(n.date)},{"calendar__date--disabled":!w(n.date)}]),onClick:t.withModifiers(u=>M(n.date),["stop"])},t.toDisplayString(n.day),11,R))),128))])])]))}};exports.default=H;