@ozdao/prometheus-framework 0.2.70 → 0.2.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. package/dist/auth.server.js +8 -21
  2. package/dist/auth.server.mjs +8 -21
  3. package/dist/community.server.js +1 -1
  4. package/dist/community.server.mjs +1 -1
  5. package/dist/events.server.js +306 -48
  6. package/dist/events.server.mjs +306 -48
  7. package/dist/files.server.js +9 -9
  8. package/dist/files.server.mjs +9 -9
  9. package/dist/gallery.server.js +2 -2
  10. package/dist/gallery.server.mjs +2 -2
  11. package/dist/globals.server.js +1 -1
  12. package/dist/globals.server.mjs +1 -1
  13. package/dist/mailing-BX0q8DIs.js +77 -0
  14. package/dist/mailing-Cdp8NXhP.mjs +78 -0
  15. package/dist/main-C0wbYN41.mjs +13744 -0
  16. package/dist/main-vACUb_p5.js +91 -0
  17. package/dist/main.css +1 -1
  18. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -0
  19. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3174 -0
  20. package/dist/organizations.server.js +1 -1
  21. package/dist/organizations.server.mjs +1 -1
  22. package/dist/ownership.schema-BQmRnCsc.mjs +184 -0
  23. package/dist/ownership.schema-D13NqEgo.js +183 -0
  24. package/dist/products.server.js +1 -1
  25. package/dist/products.server.mjs +1 -1
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
  28. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -1
  30. package/dist/prometheus-framework/src/components/Completion/Completion.vue.cjs +1 -0
  31. package/dist/prometheus-framework/src/components/Completion/Completion.vue.js +53 -0
  32. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +56 -57
  34. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
  36. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
  38. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  40. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +373 -1
  42. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
  44. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +51 -1
  46. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +1 -51
  48. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  50. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  52. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
  54. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
  56. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -46
  58. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
  60. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  64. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +19 -20
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +3 -3
  80. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  86. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  90. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  93. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  94. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  95. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  96. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -0
  99. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +81 -0
  100. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.cjs +1 -0
  101. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.js +1 -0
  102. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  104. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  106. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +127 -83
  108. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  110. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/events/router/events.js +8 -5
  118. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/events/store/tickets.js +24 -24
  120. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  122. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +21 -14
  130. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  132. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  134. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  136. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -0
  137. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +205 -0
  138. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.cjs +1 -0
  139. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.js +1 -0
  140. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +157 -72
  142. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -0
  143. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +65 -0
  144. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -0
  145. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +79 -0
  146. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -0
  147. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +34 -0
  148. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/orders/store/orders.js +27 -22
  150. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  160. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  162. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  164. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  166. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  170. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  172. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  174. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  176. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  188. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  190. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  194. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  196. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  198. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  202. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  204. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  206. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  208. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  210. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +24 -20
  212. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  214. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  216. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  218. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +39 -27
  220. package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue.cjs +1 -0
  221. package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue.js +57 -0
  222. package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue2.cjs +1 -0
  223. package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue2.js +1 -0
  224. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
  226. package/dist/prometheus-framework.cjs.js +1 -1
  227. package/dist/prometheus-framework.es.js +1 -1
  228. package/dist/style.css +1 -1
  229. package/dist/users.server.js +5 -5
  230. package/dist/users.server.mjs +5 -5
  231. package/dist/web-BJSg7vH_.js +1 -0
  232. package/dist/web-DOXRo6XB.mjs +54 -0
  233. package/package.json +1 -1
  234. package/src/modules/users/users.server.js +0 -1
@@ -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 mailing = require("./mailing-CxEcQ8NY.js");
10
+ const mailing = require("./mailing-BX0q8DIs.js");
11
11
  const index = require("./index-CL9l0HRS.js");
12
12
  const require$$0$2 = require("mongodb");
13
13
  const controllerFactory$6 = (db) => {
@@ -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 { m as mailing } from "./mailing-DT2ZSkCD.mjs";
9
+ import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
10
10
  import { s as server } from "./index-CGIn4v5E.mjs";
11
11
  import require$$0$2 from "mongodb";
12
12
  const controllerFactory$6 = (db) => {
@@ -0,0 +1,184 @@
1
+ import require$$0 from "mongoose";
2
+ const ObjectId = require$$0.Types.ObjectId;
3
+ function getBasicOptions(query) {
4
+ const { _id, url, status, type, owner, creator } = query;
5
+ const conditions = [];
6
+ if (_id) {
7
+ conditions.push({ _id: new ObjectId(_id) });
8
+ }
9
+ if (url) {
10
+ conditions.push({ url });
11
+ }
12
+ if (status) {
13
+ conditions.push({ status });
14
+ }
15
+ if (type) {
16
+ conditions.push({ type });
17
+ }
18
+ if (owner) {
19
+ conditions.push({ "owner.target": new ObjectId(owner) });
20
+ }
21
+ if (creator) {
22
+ conditions.push({ "creator.target": new ObjectId(creator) });
23
+ }
24
+ if (conditions.length > 0) {
25
+ return [{ $match: { $and: conditions } }];
26
+ } else {
27
+ return [];
28
+ }
29
+ }
30
+ function getTagsOptions(tags) {
31
+ if (tags && tags.length > 0) {
32
+ [{ $in: tags.split(",") }];
33
+ } else {
34
+ return [];
35
+ }
36
+ }
37
+ function getSortingOptions(param = "createdAt", order = "desc") {
38
+ let sort = {
39
+ [param]: order === "desc" ? -1 : 1,
40
+ "_id": 1
41
+ };
42
+ return [{ $sort: sort }];
43
+ }
44
+ function getPaginationOptions(skip, limit) {
45
+ let pagination = {
46
+ skip: parseInt(skip) || 0,
47
+ limit: parseInt(limit) || 20
48
+ };
49
+ return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
50
+ }
51
+ function getCreatorUserLookupStage() {
52
+ return {
53
+ $lookup: {
54
+ from: "users",
55
+ localField: "creator.target",
56
+ foreignField: "_id",
57
+ as: "creatorUser"
58
+ }
59
+ };
60
+ }
61
+ function getCreatorOrganizationLookupStage() {
62
+ return {
63
+ $lookup: {
64
+ from: "organizations",
65
+ localField: "creator.target",
66
+ foreignField: "_id",
67
+ as: "creatorOrganization"
68
+ }
69
+ };
70
+ }
71
+ function getCreatorCustomerLookupStage() {
72
+ return {
73
+ $lookup: {
74
+ from: "clients",
75
+ localField: "creator.target",
76
+ foreignField: "_id",
77
+ as: "creatorClient"
78
+ }
79
+ };
80
+ }
81
+ function getOwnerUserLookupStage() {
82
+ return {
83
+ $lookup: {
84
+ from: "users",
85
+ localField: "owner.target",
86
+ foreignField: "_id",
87
+ as: "ownerUser"
88
+ }
89
+ };
90
+ }
91
+ function getOwnerOrganizationLookupStage() {
92
+ return {
93
+ $lookup: {
94
+ from: "organizations",
95
+ localField: "owner.target",
96
+ foreignField: "_id",
97
+ as: "ownerOrganization"
98
+ }
99
+ };
100
+ }
101
+ function getAddFieldsCreatorOwnerStage() {
102
+ return {
103
+ $addFields: {
104
+ "creator.target": {
105
+ $switch: {
106
+ branches: [
107
+ {
108
+ case: { $eq: ["$creator.type", "user"] },
109
+ then: { $arrayElemAt: ["$creatorUser", 0] }
110
+ },
111
+ {
112
+ case: { $eq: ["$creator.type", "organization"] },
113
+ then: { $arrayElemAt: ["$creatorOrganization", 0] }
114
+ },
115
+ {
116
+ case: { $eq: ["$creator.type", "client"] },
117
+ then: { $arrayElemAt: ["$creatorClient", 0] }
118
+ }
119
+ ],
120
+ default: "Unknown type"
121
+ // или любое другое значение по умолчанию, которое вы хотите использовать
122
+ }
123
+ },
124
+ "owner.target": {
125
+ $cond: [
126
+ { $eq: ["$owner.type", "user"] },
127
+ { $arrayElemAt: ["$ownerUser", 0] },
128
+ { $arrayElemAt: ["$ownerOrganization", 0] }
129
+ ]
130
+ }
131
+ }
132
+ };
133
+ }
134
+ var queryProcessor = {
135
+ getBasicOptions,
136
+ getSortingOptions,
137
+ getPaginationOptions,
138
+ getTagsOptions,
139
+ // Creator and Owner
140
+ getCreatorUserLookupStage,
141
+ getCreatorOrganizationLookupStage,
142
+ getCreatorCustomerLookupStage,
143
+ getOwnerUserLookupStage,
144
+ getOwnerOrganizationLookupStage,
145
+ getAddFieldsCreatorOwnerStage
146
+ };
147
+ var ownership_schema = function applyOwnershipSchema(schema, db) {
148
+ schema.add({
149
+ owner: {
150
+ type: {
151
+ type: String,
152
+ required: true
153
+ },
154
+ target: {
155
+ type: db.mongoose.Schema.Types.ObjectId,
156
+ refPath: "owner.type",
157
+ required: true
158
+ }
159
+ },
160
+ creator: {
161
+ hidden: {
162
+ type: Boolean,
163
+ default: false
164
+ },
165
+ type: {
166
+ type: String,
167
+ required: true
168
+ },
169
+ target: {
170
+ type: db.mongoose.Schema.Types.ObjectId,
171
+ refPath: "creator.type",
172
+ required: true
173
+ }
174
+ }
175
+ });
176
+ schema.index({
177
+ "owner.target": 1,
178
+ "creator.target": 1
179
+ });
180
+ };
181
+ export {
182
+ ownership_schema as o,
183
+ queryProcessor as q
184
+ };
@@ -0,0 +1,183 @@
1
+ "use strict";
2
+ const require$$0 = require("mongoose");
3
+ const ObjectId = require$$0.Types.ObjectId;
4
+ function getBasicOptions(query) {
5
+ const { _id, url, status, type, owner, creator } = query;
6
+ const conditions = [];
7
+ if (_id) {
8
+ conditions.push({ _id: new ObjectId(_id) });
9
+ }
10
+ if (url) {
11
+ conditions.push({ url });
12
+ }
13
+ if (status) {
14
+ conditions.push({ status });
15
+ }
16
+ if (type) {
17
+ conditions.push({ type });
18
+ }
19
+ if (owner) {
20
+ conditions.push({ "owner.target": new ObjectId(owner) });
21
+ }
22
+ if (creator) {
23
+ conditions.push({ "creator.target": new ObjectId(creator) });
24
+ }
25
+ if (conditions.length > 0) {
26
+ return [{ $match: { $and: conditions } }];
27
+ } else {
28
+ return [];
29
+ }
30
+ }
31
+ function getTagsOptions(tags) {
32
+ if (tags && tags.length > 0) {
33
+ [{ $in: tags.split(",") }];
34
+ } else {
35
+ return [];
36
+ }
37
+ }
38
+ function getSortingOptions(param = "createdAt", order = "desc") {
39
+ let sort = {
40
+ [param]: order === "desc" ? -1 : 1,
41
+ "_id": 1
42
+ };
43
+ return [{ $sort: sort }];
44
+ }
45
+ function getPaginationOptions(skip, limit) {
46
+ let pagination = {
47
+ skip: parseInt(skip) || 0,
48
+ limit: parseInt(limit) || 20
49
+ };
50
+ return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
51
+ }
52
+ function getCreatorUserLookupStage() {
53
+ return {
54
+ $lookup: {
55
+ from: "users",
56
+ localField: "creator.target",
57
+ foreignField: "_id",
58
+ as: "creatorUser"
59
+ }
60
+ };
61
+ }
62
+ function getCreatorOrganizationLookupStage() {
63
+ return {
64
+ $lookup: {
65
+ from: "organizations",
66
+ localField: "creator.target",
67
+ foreignField: "_id",
68
+ as: "creatorOrganization"
69
+ }
70
+ };
71
+ }
72
+ function getCreatorCustomerLookupStage() {
73
+ return {
74
+ $lookup: {
75
+ from: "clients",
76
+ localField: "creator.target",
77
+ foreignField: "_id",
78
+ as: "creatorClient"
79
+ }
80
+ };
81
+ }
82
+ function getOwnerUserLookupStage() {
83
+ return {
84
+ $lookup: {
85
+ from: "users",
86
+ localField: "owner.target",
87
+ foreignField: "_id",
88
+ as: "ownerUser"
89
+ }
90
+ };
91
+ }
92
+ function getOwnerOrganizationLookupStage() {
93
+ return {
94
+ $lookup: {
95
+ from: "organizations",
96
+ localField: "owner.target",
97
+ foreignField: "_id",
98
+ as: "ownerOrganization"
99
+ }
100
+ };
101
+ }
102
+ function getAddFieldsCreatorOwnerStage() {
103
+ return {
104
+ $addFields: {
105
+ "creator.target": {
106
+ $switch: {
107
+ branches: [
108
+ {
109
+ case: { $eq: ["$creator.type", "user"] },
110
+ then: { $arrayElemAt: ["$creatorUser", 0] }
111
+ },
112
+ {
113
+ case: { $eq: ["$creator.type", "organization"] },
114
+ then: { $arrayElemAt: ["$creatorOrganization", 0] }
115
+ },
116
+ {
117
+ case: { $eq: ["$creator.type", "client"] },
118
+ then: { $arrayElemAt: ["$creatorClient", 0] }
119
+ }
120
+ ],
121
+ default: "Unknown type"
122
+ // или любое другое значение по умолчанию, которое вы хотите использовать
123
+ }
124
+ },
125
+ "owner.target": {
126
+ $cond: [
127
+ { $eq: ["$owner.type", "user"] },
128
+ { $arrayElemAt: ["$ownerUser", 0] },
129
+ { $arrayElemAt: ["$ownerOrganization", 0] }
130
+ ]
131
+ }
132
+ }
133
+ };
134
+ }
135
+ var queryProcessor = {
136
+ getBasicOptions,
137
+ getSortingOptions,
138
+ getPaginationOptions,
139
+ getTagsOptions,
140
+ // Creator and Owner
141
+ getCreatorUserLookupStage,
142
+ getCreatorOrganizationLookupStage,
143
+ getCreatorCustomerLookupStage,
144
+ getOwnerUserLookupStage,
145
+ getOwnerOrganizationLookupStage,
146
+ getAddFieldsCreatorOwnerStage
147
+ };
148
+ var ownership_schema = function applyOwnershipSchema(schema, db) {
149
+ schema.add({
150
+ owner: {
151
+ type: {
152
+ type: String,
153
+ required: true
154
+ },
155
+ target: {
156
+ type: db.mongoose.Schema.Types.ObjectId,
157
+ refPath: "owner.type",
158
+ required: true
159
+ }
160
+ },
161
+ creator: {
162
+ hidden: {
163
+ type: Boolean,
164
+ default: false
165
+ },
166
+ type: {
167
+ type: String,
168
+ required: true
169
+ },
170
+ target: {
171
+ type: db.mongoose.Schema.Types.ObjectId,
172
+ refPath: "creator.type",
173
+ required: true
174
+ }
175
+ }
176
+ });
177
+ schema.index({
178
+ "owner.target": 1,
179
+ "creator.target": 1
180
+ });
181
+ };
182
+ exports.ownership_schema = ownership_schema;
183
+ exports.queryProcessor = queryProcessor;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
4
- const ownership_schema = require("./ownership.schema-CGqscZIi.js");
4
+ const ownership_schema = require("./ownership.schema-D13NqEgo.js");
5
5
  require("uuid");
6
6
  const require$$0 = require("mongoose");
7
7
  require("path");
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
- import { o as ownership_schema, q as queryProcessor } from "./ownership.schema-DtT2IgqC.mjs";
2
+ import { o as ownership_schema, q as queryProcessor } from "./ownership.schema-BQmRnCsc.mjs";
3
3
  import "uuid";
4
4
  import require$$0 from "mongoose";
5
5
  import "path";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Button.vue2.cjs");const u=["disabled"],d={key:1,class:"loading"},m=e.createElementVNode("svg",{class:"i-regular",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[e.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])],-1),b=[m],h={key:2,class:"t-semi loading t-black"},f={key:3,class:"error"},g={key:0,class:"button-counter"},v={__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}},setup(t){const n=t,a=e.ref(null),l=e.ref(null),o=e.ref(!1),r=e.ref(!1);async function c(){a.value.style["pointer-events"]="none",l.value=null,o.value=!0;const i=()=>{a.value&&(a.value.classList.replace("bg-second","bg-main"),a.value.style.pointerEvents="auto",o.value=!1,r.value=!1,l.value=null)};try{await n.submit(),a.value.classList.replace("bg-main","bg-second"),o.value=!1,n.showSucces?(r.value=!0,setTimeout(i,500)):i(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{a.value.classList.replace("bg-main","bg-fourth-nano"),l.value=n.error,setTimeout(()=>{i(),a.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(i,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(c,["stop"]),disabled:t.validation,ref_key:"button",ref:a,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!o.value&&!l.value&&!r.value||!t.showLoader?e.renderSlot(i.$slots,"default",{key:0}):o.value&&!l.value&&t.showLoader?(e.openBlock(),e.createElementBlock("span",d,b)):r.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",h,e.toDisplayString(t.text.success),1)):l.value?(e.openBlock(),e.createElementBlock("span",f,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,u))}};exports.default=v;
1
+ "use strict";
@@ -1,225 +1 @@
1
- import { ref as d, openBlock as u, createElementBlock as o, withModifiers as v, createVNode as g, Transition as y, withCtx as p, renderSlot as w, toDisplayString as b, createCommentVNode as h, createElementVNode as e, createTextVNode as r } from "vue";
2
- import "./Button.vue2.js";
3
- const k = ["disabled"], x = {
4
- key: 1,
5
- class: "loading"
6
- }, N = /* @__PURE__ */ e("svg", {
7
- class: "i-regular",
8
- width: "135",
9
- height: "140",
10
- viewBox: "0 0 135 140",
11
- xmlns: "http://www.w3.org/2000/svg",
12
- fill: "#fff"
13
- }, [
14
- /* @__PURE__ */ e("rect", {
15
- y: "10",
16
- width: "15",
17
- height: "120",
18
- rx: "6"
19
- }, [
20
- /* @__PURE__ */ e("animate", {
21
- attributeName: "height",
22
- begin: "0.5s",
23
- dur: "1s",
24
- values: "120;110;100;90;80;70;60;50;40;140;120",
25
- calcMode: "linear",
26
- repeatCount: "indefinite"
27
- }),
28
- /* @__PURE__ */ r(),
29
- /* @__PURE__ */ e("animate", {
30
- attributeName: "y",
31
- begin: "0.5s",
32
- dur: "1s",
33
- values: "10;15;20;25;30;35;40;45;50;0;10",
34
- calcMode: "linear",
35
- repeatCount: "indefinite"
36
- })
37
- ]),
38
- /* @__PURE__ */ e("rect", {
39
- x: "30",
40
- y: "10",
41
- width: "15",
42
- height: "120",
43
- rx: "6"
44
- }, [
45
- /* @__PURE__ */ e("animate", {
46
- attributeName: "height",
47
- begin: "0.25s",
48
- dur: "1s",
49
- values: "120;110;100;90;80;70;60;50;40;140;120",
50
- calcMode: "linear",
51
- repeatCount: "indefinite"
52
- }),
53
- /* @__PURE__ */ r(),
54
- /* @__PURE__ */ e("animate", {
55
- attributeName: "y",
56
- begin: "0.25s",
57
- dur: "1s",
58
- values: "10;15;20;25;30;35;40;45;50;0;10",
59
- calcMode: "linear",
60
- repeatCount: "indefinite"
61
- })
62
- ]),
63
- /* @__PURE__ */ e("rect", {
64
- x: "60",
65
- width: "15",
66
- height: "140",
67
- rx: "6"
68
- }, [
69
- /* @__PURE__ */ e("animate", {
70
- attributeName: "height",
71
- begin: "0s",
72
- dur: "1s",
73
- values: "120;110;100;90;80;70;60;50;40;140;120",
74
- calcMode: "linear",
75
- repeatCount: "indefinite"
76
- }),
77
- /* @__PURE__ */ r(),
78
- /* @__PURE__ */ e("animate", {
79
- attributeName: "y",
80
- begin: "0s",
81
- dur: "1s",
82
- values: "10;15;20;25;30;35;40;45;50;0;10",
83
- calcMode: "linear",
84
- repeatCount: "indefinite"
85
- })
86
- ]),
87
- /* @__PURE__ */ e("rect", {
88
- x: "90",
89
- y: "10",
90
- width: "15",
91
- height: "120",
92
- rx: "6"
93
- }, [
94
- /* @__PURE__ */ e("animate", {
95
- attributeName: "height",
96
- begin: "0.25s",
97
- dur: "1s",
98
- values: "120;110;100;90;80;70;60;50;40;140;120",
99
- calcMode: "linear",
100
- repeatCount: "indefinite"
101
- }),
102
- /* @__PURE__ */ r(),
103
- /* @__PURE__ */ e("animate", {
104
- attributeName: "y",
105
- begin: "0.25s",
106
- dur: "1s",
107
- values: "10;15;20;25;30;35;40;45;50;0;10",
108
- calcMode: "linear",
109
- repeatCount: "indefinite"
110
- })
111
- ]),
112
- /* @__PURE__ */ e("rect", {
113
- x: "120",
114
- y: "10",
115
- width: "15",
116
- height: "120",
117
- rx: "6"
118
- }, [
119
- /* @__PURE__ */ e("animate", {
120
- attributeName: "height",
121
- begin: "0.5s",
122
- dur: "1s",
123
- values: "120;110;100;90;80;70;60;50;40;140;120",
124
- calcMode: "linear",
125
- repeatCount: "indefinite"
126
- }),
127
- /* @__PURE__ */ r(),
128
- /* @__PURE__ */ e("animate", {
129
- attributeName: "y",
130
- begin: "0.5s",
131
- dur: "1s",
132
- values: "10;15;20;25;30;35;40;45;50;0;10",
133
- calcMode: "linear",
134
- repeatCount: "indefinite"
135
- })
136
- ])
137
- ], -1), C = [
138
- N
139
- ], M = {
140
- key: 2,
141
- class: "t-semi loading t-black"
142
- }, B = {
143
- key: 3,
144
- class: "error"
145
- }, L = {
146
- key: 0,
147
- class: "button-counter"
148
- }, T = {
149
- __name: "Button",
150
- props: {
151
- submit: {
152
- type: Function,
153
- default: async () => {
154
- console.log("Button click.");
155
- }
156
- },
157
- text: {
158
- type: Object,
159
- default: (t) => (console.log(t), t = {
160
- ...t.text,
161
- success: "✔",
162
- error: "✖"
163
- })
164
- },
165
- counter: {
166
- type: Object
167
- },
168
- callback: {
169
- type: Function,
170
- default: async () => {
171
- console.log("Button callback.");
172
- }
173
- },
174
- callbackDelay: {
175
- type: Number,
176
- default: 750
177
- },
178
- showSucces: {
179
- type: Boolean,
180
- default: !0
181
- },
182
- showLoader: {
183
- type: Boolean,
184
- default: !0
185
- },
186
- validation: {
187
- type: Boolean,
188
- default: !1
189
- }
190
- },
191
- setup(t) {
192
- const n = t, a = d(null), i = d(null), l = d(!1), c = d(!1);
193
- async function f() {
194
- a.value.style["pointer-events"] = "none", i.value = null, l.value = !0;
195
- const s = () => {
196
- a.value && (a.value.classList.replace("bg-second", "bg-main"), a.value.style.pointerEvents = "auto", l.value = !1, c.value = !1, i.value = null);
197
- };
198
- try {
199
- await n.submit(), a.value.classList.replace("bg-main", "bg-second"), l.value = !1, n.showSucces ? (c.value = !0, setTimeout(s, 500)) : s(), n.callback && setTimeout(() => n.callback(), n.callbackDelay);
200
- } catch {
201
- a.value.classList.replace("bg-main", "bg-fourth-nano"), i.value = n.error, setTimeout(() => {
202
- s(), a.value.classList.replace("bg-fourth-nano", "bg-main");
203
- }, 1330);
204
- }
205
- }
206
- return (s, m) => (u(), o("button", {
207
- onClick: v(f, ["stop"]),
208
- disabled: t.validation,
209
- ref_key: "button",
210
- ref: a,
211
- class: "button"
212
- }, [
213
- g(y, { name: "moveFromTopAbsolute" }, {
214
- default: p(() => [
215
- !l.value && !i.value && !c.value || !t.showLoader ? w(s.$slots, "default", { key: 0 }) : l.value && !i.value && t.showLoader ? (u(), o("span", x, C)) : c.value && t.showSucces ? (u(), o("span", M, b(t.text.success), 1)) : i.value ? (u(), o("span", B, b(i.value), 1)) : h("", !0)
216
- ]),
217
- _: 3
218
- }),
219
- t.counter ? (u(), o("p", L, b(t.counter), 1)) : h("", !0)
220
- ], 8, k));
221
- }
222
- };
223
- export {
224
- T as default
225
- };
1
+
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Button.vue.cjs");const u=["disabled"],d={key:1,class:"loading"},m=e.createElementVNode("svg",{class:"i-regular",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[e.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])],-1),b=[m],h={key:2,class:"t-semi loading t-black"},f={key:3,class:"error"},g={key:0,class:"button-counter"},v={__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}},setup(t){const n=t,a=e.ref(null),l=e.ref(null),o=e.ref(!1),r=e.ref(!1);async function c(){a.value.style["pointer-events"]="none",l.value=null,o.value=!0;const i=()=>{a.value&&(a.value.classList.replace("bg-second","bg-main"),a.value.style.pointerEvents="auto",o.value=!1,r.value=!1,l.value=null)};try{await n.submit(),a.value.classList.replace("bg-main","bg-second"),o.value=!1,n.showSucces?(r.value=!0,setTimeout(i,500)):i(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{a.value.classList.replace("bg-main","bg-fourth-nano"),l.value=n.error,setTimeout(()=>{i(),a.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(i,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(c,["stop"]),disabled:t.validation,ref_key:"button",ref:a,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!o.value&&!l.value&&!r.value||!t.showLoader?e.renderSlot(i.$slots,"default",{key:0}):o.value&&!l.value&&t.showLoader?(e.openBlock(),e.createElementBlock("span",d,b)):r.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",h,e.toDisplayString(t.text.success),1)):l.value?(e.openBlock(),e.createElementBlock("span",f,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,u))}};exports.default=v;