@ozdao/prometheus-framework 0.2.48 → 0.2.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. package/dist/auth.server.js +27 -25
  2. package/dist/auth.server.mjs +27 -25
  3. package/dist/community.server.js +1 -1
  4. package/dist/community.server.mjs +1 -1
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +1 -1
  8. package/dist/files.server.mjs +1 -1
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/index-3981e903.mjs +217 -0
  12. package/dist/index-4eecfdb9.js +216 -0
  13. package/dist/main-203b36b6.mjs +13628 -0
  14. package/dist/main-_b1_i8mt.mjs +13606 -0
  15. package/dist/main-a7ae4ce5.js +91 -0
  16. package/dist/main-uiQFxEks.js +91 -0
  17. package/dist/middlewares.server.js +1 -1
  18. package/dist/middlewares.server.mjs +1 -1
  19. package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -3
  20. package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
  21. package/dist/organizations.server.js +13 -27
  22. package/dist/organizations.server.mjs +13 -27
  23. package/dist/products.server.js +95 -15
  24. package/dist/products.server.mjs +95 -15
  25. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
  27. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -2
  29. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  31. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
  33. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  35. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
  37. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  39. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
  41. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
  43. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
  45. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +44 -32
  53. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  55. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  57. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  59. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/store/auth.js +45 -44
  61. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
  63. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  67. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  73. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  77. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
  83. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  85. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  87. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  89. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +17 -17
  97. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +49 -42
  99. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +47 -15
  101. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +38 -37
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +249 -61
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +78 -45
  109. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +161 -86
  111. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  113. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  117. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +52 -54
  119. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +20 -26
  121. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
  123. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +34 -30
  125. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -28
  127. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +18 -18
  129. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +33 -28
  139. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +123 -113
  141. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  143. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  147. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  153. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  157. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  161. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  163. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
  165. package/dist/prometheus-framework.cjs.js +1 -1
  166. package/dist/prometheus-framework.es.js +1 -1
  167. package/dist/reports.server.js +1 -1
  168. package/dist/reports.server.mjs +1 -1
  169. package/dist/style.css +1 -1
  170. package/dist/web-7p76PGnO.mjs +55 -0
  171. package/dist/web-c63f0ecc.js +1 -0
  172. package/dist/web-d8173758.mjs +55 -0
  173. package/dist/web-dn8vgptQ.js +1 -0
  174. package/package.json +1 -1
  175. package/src/components/SelectMulti/SelectMulti.vue +1 -1
  176. package/src/modules/auth/components/pages/Invite.vue +17 -6
  177. package/src/modules/auth/controllers/auth.controller.js +24 -16
  178. package/src/modules/auth/controllers/invites.controller.js +17 -8
  179. package/src/modules/auth/store/auth.js +8 -1
  180. package/src/modules/auth/store/invites.js +1 -0
  181. package/src/modules/globals/store/globals.js +5 -1
  182. package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
  183. package/src/modules/landing/components/pages/404.vue +3 -0
  184. package/src/modules/landing/components/pages/Governance.vue +155 -0
  185. package/src/modules/landing/components/pages/Home.vue +52 -0
  186. package/src/modules/landing/components/pages/Hotel.vue +54 -0
  187. package/src/modules/landing/components/pages/Page.vue +184 -0
  188. package/src/modules/landing/components/sections/AboutSection.vue +69 -0
  189. package/src/modules/landing/components/sections/Examples.vue +90 -0
  190. package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
  191. package/src/modules/landing/components/sections/GiftSection.vue +63 -0
  192. package/src/modules/landing/components/sections/HeroSection.vue +74 -0
  193. package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
  194. package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
  195. package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
  196. package/src/modules/landing/components/sections/MapSection.vue +91 -0
  197. package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
  198. package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
  199. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
  200. package/src/modules/landing/router/landing.js +34 -0
  201. package/src/modules/middlewares/server/verifySignUp.js +4 -0
  202. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  203. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
  204. package/src/modules/organizations/components/blocks/User.vue +42 -10
  205. package/src/modules/organizations/components/pages/Department.vue +7 -6
  206. package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
  207. package/src/modules/organizations/components/pages/Members.vue +85 -26
  208. package/src/modules/organizations/components/pages/Organization.vue +60 -4
  209. package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
  210. package/src/modules/organizations/components/sections/Organizations.vue +0 -1
  211. package/src/modules/organizations/controllers/memberships.controller.js +6 -2
  212. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  213. package/src/modules/organizations/models/department.model.js +0 -19
  214. package/src/modules/organizations/models/membership.model.js +4 -0
  215. package/src/modules/organizations/organizations.client.js +1 -6
  216. package/src/modules/organizations/store/departments.js +48 -44
  217. package/src/modules/organizations/store/memberships.js +11 -3
  218. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  219. package/src/modules/products/components/pages/Product.vue +6 -1
  220. package/src/modules/products/components/pages/ProductEdit.vue +48 -28
  221. package/src/modules/products/controllers/products.controller.js +87 -24
  222. package/src/modules/products/models/product.model.js +16 -1
  223. package/src/modules/products/store/products.js +1 -1
  224. package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
  225. package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
  226. package/src/modules/organizations/components/sections/MembersList.vue +0 -85
  227. package/src/modules/organizations/store/invites.js +0 -93
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
@@ -1,10 +1,10 @@
1
- import { ref as m, withAsyncContext as b, watch as _, openBlock as e, createElementBlock as n, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
1
+ import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElementBlock as i, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
2
2
  import { useRouter as v, useRoute as z } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
- import "../../../../components/Tab/Tab.vue2.js";
5
- import "../../../../components/Field/Field.vue2.js";
4
+ import "../../../../components/Tab/Tab.vue.js";
5
+ import "../../../../components/Field/Field.vue.js";
6
6
  import "../../../../components/Select/Select.vue.js";
7
- import "../../../../components/Button/Button.vue2.js";
7
+ import "../../../../components/Button/Button.vue.js";
8
8
  import "../../../../components/Dropdown/Dropdown.vue2.js";
9
9
  import "../../../../components/Chips/Chips.vue2.js";
10
10
  import { state as k } from "../../../auth/store/auth.js";
@@ -13,20 +13,14 @@ import "vue-i18n";
13
13
  import "../../../../components/Popup/Popup.vue.js";
14
14
  import "../../../reports/store/reports.js";
15
15
  import { actions as q } from "../../store/organizations.js";
16
+ import $ from "../blocks/CardOrganization.vue.js";
16
17
  import B from "../blocks/EmptyState.vue.js";
17
- import "../../../../components/Spoiler/Spoiler.vue.js";
18
- import "../../../../components/Map/Map.vue.js";
19
- import "../blocks/DepartmentSub.vue2.js";
20
- import "../blocks/User.vue2.js";
21
- import "../blocks/CardDepartment.vue2.js";
22
- import "../../store/departments.js";
23
- import C from "../blocks/CardOrganization.vue.js";
24
18
  import "./Unit.vue.js";
25
19
  import "./Organizations.vue2.js";
26
- const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: "" }, O = {
20
+ const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: "" }, N = {
27
21
  key: 1,
28
22
  class: "cols-1"
29
- }, rt = {
23
+ }, Q = {
30
24
  __name: "Organizations",
31
25
  props: {
32
26
  owner: {
@@ -44,28 +38,28 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: ""
44
38
  },
45
39
  async setup(c) {
46
40
  let r, s;
47
- const i = c, o = m(null);
48
- o.value = ([r, s] = b(() => q.read({ owner: i.owner, user: i.user, onlyuser: i.onlyuser })), r = await r, s(), r);
41
+ const n = c, o = m(null);
42
+ o.value = ([r, s] = b(() => q.read({ owner: n.owner, user: n.user, onlyuser: n.onlyuser })), r = await r, s(), r);
49
43
  const d = v(), a = z();
50
44
  let y = a.query.tab ? a.query.tab : "details";
51
45
  const l = m(y);
52
- return a.query.tab = l.value, _(l, (t) => {
53
- d.replace({ query: { ...a.query, tab: t } });
54
- }), (t, S) => (e(), n("div", M, [
55
- f("div", N, [
56
- o.value < 1 ? (e(), p(B, {
46
+ return a.query.tab = l.value, _(l, (e) => {
47
+ d.replace({ query: { ...a.query, tab: e } });
48
+ }), (e, O) => (t(), i("div", C, [
49
+ f("div", M, [
50
+ o.value < 1 ? (t(), p(B, {
57
51
  key: 0,
58
52
  title: "You Haven't Joined Any Organization Yet",
59
53
  description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
60
54
  action: "Create organization",
61
- callback: t.a = () => t.$router.push("/app/organization/create/details")
62
- }, null, 8, ["callback"])) : (e(), n("div", O, [
63
- (e(!0), n(g, null, h(o.value, (u) => (e(), p(C, {
55
+ callback: e.a = () => e.$router.push("/app/organization/create/details")
56
+ }, null, 8, ["callback"])) : (t(), i("div", N, [
57
+ (t(!0), i(g, null, h(o.value, (u) => (t(), p($, {
64
58
  key: u._id,
65
59
  organization: u,
66
60
  user: k.user,
67
- onUpdateMembership: t.handleMembershipUpdate,
68
- class: w(["w-100", { "mn-r-small": t.index !== o.value.length - 1 }])
61
+ onUpdateMembership: e.handleMembershipUpdate,
62
+ class: w(["w-100", { "mn-r-small": e.index !== o.value.length - 1 }])
69
63
  }, null, 8, ["organization", "user", "onUpdateMembership", "class"]))), 128))
70
64
  ]))
71
65
  ])
@@ -73,5 +67,5 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: ""
73
67
  }
74
68
  };
75
69
  export {
76
- rt as default
70
+ Q as default
77
71
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),i=require("./components/pages/Organizations.vue.cjs"),a=require("./components/pages/DepartmentEdit.vue.cjs"),n=require("./components/blocks/CardOrganization.vue.cjs"),o=require("./components/blocks/EditArray.vue.cjs"),s=require("./components/blocks/User.vue.cjs"),u=require("./components/blocks/Unit.vue.cjs"),d=require("./components/blocks/DepartmentSub.vue.cjs"),c=require("./components/blocks/DepartmentMemberModify.vue.cjs"),l=require("./components/blocks/CardDepartment.vue.cjs"),m=require("./components/blocks/Rating.vue.cjs"),q=require("./components/blocks/EmptyState.vue.cjs"),f=require("./components/blocks/Contacts.vue.cjs"),g=require("./components/blocks/Socials.vue.cjs"),p=require("./components/sections/MembersAdd.vue.cjs"),b=require("./components/sections/FeedDepartments.vue.cjs"),D=require("./components/sections/DetailsTab.vue.cjs"),z=require("./components/sections/Organizations.vue.cjs"),S=require("./components/sections/Publics.vue.cjs"),M=require("./components/sections/Documents.vue.cjs"),O=require("./components/sections/MembersList.vue.cjs"),y=require("./components/elements/ButtonToggleMembership.vue.cjs"),E=require("./store/invites.cjs"),C=require("./store/departments.cjs"),T=require("./store/memberships.cjs"),h=require("./store/organizations.cjs"),A=require("./router/organizations.cjs");exports.Organization=e.default;exports.Department=t.default;exports.OrganizationEdit=r.default;exports.Organizations=i.default;exports.DepartmentEdit=a.default;exports.CardOrganization=n.default;exports.EditArray=o.default;exports.User=s.default;exports.Unit=u.default;exports.DepartmentSub=d.default;exports.DepartmentMemberModify=c.default;exports.CardDepartment=l.default;exports.Rating=m.default;exports.EmptyState=q.default;exports.Contacts=f.default;exports.Socials=g.default;exports.MembersAdd=p.default;exports.FeedDepartments=b.default;exports.DetailsTab=D.default;exports.OrganizationsSection=z.default;exports.Publics=S.default;exports.Documents=M.default;exports.MembersList=O.default;exports.ButtonToggleMembership=y.default;exports.invitesStore=E;exports.departmentsStore=C;exports.membershipsStore=T;exports.organizationStore=h;exports.organizationsRouter=A.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),a=require("./components/pages/Organizations.vue.cjs"),i=require("./components/pages/DepartmentEdit.vue.cjs"),n=require("./components/blocks/CardOrganization.vue.cjs"),o=require("./components/blocks/EditArray.vue.cjs"),u=require("./components/blocks/User.vue.cjs"),s=require("./components/blocks/Unit.vue.cjs"),d=require("./components/blocks/DepartmentSub.vue.cjs"),c=require("./components/blocks/DepartmentMemberModify.vue.cjs"),l=require("./components/blocks/CardDepartment.vue.cjs"),m=require("./components/blocks/Rating.vue.cjs"),f=require("./components/blocks/EmptyState.vue.cjs"),q=require("./components/blocks/Contacts.vue.cjs"),g=require("./components/blocks/Socials.vue.cjs"),p=require("./components/sections/MembersAdd.vue.cjs"),b=require("./components/sections/DetailsTab.vue.cjs"),z=require("./components/sections/Organizations.vue.cjs"),D=require("./components/sections/Publics.vue.cjs"),S=require("./components/sections/Documents.vue.cjs"),O=require("./components/elements/ButtonToggleMembership.vue.cjs"),M=require("./store/departments.cjs"),y=require("./store/memberships.cjs"),E=require("./store/organizations.cjs"),C=require("./router/organizations.cjs");exports.Organization=e.default;exports.Department=t.default;exports.OrganizationEdit=r.default;exports.Organizations=a.default;exports.DepartmentEdit=i.default;exports.CardOrganization=n.default;exports.EditArray=o.default;exports.User=u.default;exports.Unit=s.default;exports.DepartmentSub=d.default;exports.DepartmentMemberModify=c.default;exports.CardDepartment=l.default;exports.Rating=m.default;exports.EmptyState=f.default;exports.Contacts=q.default;exports.Socials=g.default;exports.MembersAdd=p.default;exports.DetailsTab=b.default;exports.OrganizationsSection=z.default;exports.Publics=D.default;exports.Documents=S.default;exports.ButtonToggleMembership=O.default;exports.departmentsStore=M;exports.membershipsStore=y;exports.organizationStore=E;exports.organizationsRouter=C.default;
@@ -1,60 +1,54 @@
1
1
  import { default as f } from "./components/pages/Organization.vue.js";
2
- import { default as p } from "./components/pages/Department.vue.js";
2
+ import { default as m } from "./components/pages/Department.vue.js";
3
3
  import { default as d } from "./components/pages/OrganizationEdit.vue.js";
4
- import { default as u } from "./components/pages/Organizations.vue.js";
5
- import { default as x } from "./components/pages/DepartmentEdit.vue.js";
6
- import { default as b } from "./components/blocks/CardOrganization.vue.js";
7
- import { default as D } from "./components/blocks/EditArray.vue.js";
8
- import { default as c } from "./components/blocks/User.vue.js";
4
+ import { default as n } from "./components/pages/Organizations.vue.js";
5
+ import { default as l } from "./components/pages/DepartmentEdit.vue.js";
6
+ import { default as g } from "./components/blocks/CardOrganization.vue.js";
7
+ import { default as z } from "./components/blocks/EditArray.vue.js";
8
+ import { default as S } from "./components/blocks/User.vue.js";
9
9
  import { default as O } from "./components/blocks/Unit.vue.js";
10
- import { default as h } from "./components/blocks/DepartmentSub.vue.js";
11
- import { default as C } from "./components/blocks/DepartmentMemberModify.vue.js";
10
+ import { default as M } from "./components/blocks/DepartmentSub.vue.js";
11
+ import { default as y } from "./components/blocks/DepartmentMemberModify.vue.js";
12
12
  import { default as A } from "./components/blocks/CardDepartment.vue.js";
13
13
  import { default as T } from "./components/blocks/Rating.vue.js";
14
14
  import { default as B } from "./components/blocks/EmptyState.vue.js";
15
- import { default as L } from "./components/blocks/Contacts.vue.js";
16
- import { default as j } from "./components/blocks/Socials.vue.js";
17
- import { default as q } from "./components/sections/MembersAdd.vue.js";
18
- import { default as G } from "./components/sections/FeedDepartments.vue.js";
19
- import { default as I } from "./components/sections/DetailsTab.vue.js";
20
- import { default as K } from "./components/sections/Organizations.vue.js";
21
- import { default as Q } from "./components/sections/Publics.vue.js";
22
- import { default as W } from "./components/sections/Documents.vue.js";
23
- import { default as Y } from "./components/sections/MembersList.vue.js";
24
- import { default as _ } from "./components/elements/ButtonToggleMembership.vue.js";
25
- import * as t from "./store/invites.js";
26
- import * as e from "./store/departments.js";
27
- import * as r from "./store/memberships.js";
28
- import * as a from "./store/organizations.js";
29
- import { default as tt } from "./router/organizations.js";
15
+ import { default as j } from "./components/blocks/Contacts.vue.js";
16
+ import { default as q } from "./components/blocks/Socials.vue.js";
17
+ import { default as w } from "./components/sections/MembersAdd.vue.js";
18
+ import { default as G } from "./components/sections/DetailsTab.vue.js";
19
+ import { default as I } from "./components/sections/Organizations.vue.js";
20
+ import { default as K } from "./components/sections/Publics.vue.js";
21
+ import { default as N } from "./components/sections/Documents.vue.js";
22
+ import { default as V } from "./components/elements/ButtonToggleMembership.vue.js";
23
+ import * as t from "./store/departments.js";
24
+ import * as a from "./store/memberships.js";
25
+ import * as r from "./store/organizations.js";
26
+ import { default as X } from "./router/organizations.js";
30
27
  export {
31
- _ as ButtonToggleMembership,
28
+ V as ButtonToggleMembership,
32
29
  A as CardDepartment,
33
- b as CardOrganization,
34
- L as Contacts,
35
- p as Department,
36
- x as DepartmentEdit,
37
- C as DepartmentMemberModify,
38
- h as DepartmentSub,
39
- I as DetailsTab,
40
- W as Documents,
41
- D as EditArray,
30
+ g as CardOrganization,
31
+ j as Contacts,
32
+ m as Department,
33
+ l as DepartmentEdit,
34
+ y as DepartmentMemberModify,
35
+ M as DepartmentSub,
36
+ G as DetailsTab,
37
+ N as Documents,
38
+ z as EditArray,
42
39
  B as EmptyState,
43
- G as FeedDepartments,
44
- q as MembersAdd,
45
- Y as MembersList,
40
+ w as MembersAdd,
46
41
  f as Organization,
47
42
  d as OrganizationEdit,
48
- u as Organizations,
49
- K as OrganizationsSection,
50
- Q as Publics,
43
+ n as Organizations,
44
+ I as OrganizationsSection,
45
+ K as Publics,
51
46
  T as Rating,
52
- j as Socials,
47
+ q as Socials,
53
48
  O as Unit,
54
- c as User,
55
- e as departmentsStore,
56
- t as invitesStore,
57
- r as membershipsStore,
58
- a as organizationStore,
59
- tt as organizationsRouter
49
+ S as User,
50
+ t as departmentsStore,
51
+ a as membershipsStore,
52
+ r as organizationStore,
53
+ X as organizationsRouter
60
54
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=i.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),l={async readOne(t){await n.get(`/api/departments/get/${t}`).then(e=>{a.department=e.data,a.error=null}).catch(e=>{s.setError(e)})},async read(t){await n.get(`/api/departments/${t}`).then(e=>{console.log("Response:",e),a.departments=e.data,a.error=null}).catch(e=>{s.setError(e)})},async create(t,e){await n.post(`/api/departments/${t}/create`,e).then(r=>{a.error=null,a.department=r.data}).catch(r=>{s.setError(r)})},async update(t,e){await n.post(`/api/departments/${t}/update`,e).then(()=>{a.error=null}).catch(r=>{s.setError(r)})},async delete(t,e){await n.delete(`/api/departments/${t}/delete`,{data:{_id:e}}).then(()=>{a.error=null}).catch(r=>{s.setError(r)})}};o.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=l.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),c={async readOne(r){try{const e=await n.get(`/api/departments/get/${r}`);return a.department=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async read(r){try{const e=await n.get(`/api/departments/${r}`);return console.log("Response:",e),a.departments=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async create(r,e){try{const t=await n.post(`/api/departments/${r}/create`,e);return a.error=null,a.department=t.data,t.data}catch(t){return s.setError(t),null}},async update(r,e){try{const t=await n.post(`/api/departments/${r}/update`,e);return a.error=null,t}catch(t){return s.setError(t),null}},async delete(r,e){try{return await n.delete(`/api/departments/${r}/delete`,{data:{_id:e}}),a.error=null,!0}catch(t){return s.setError(t),!1}}};o.watch(a,(r,e)=>{});exports.actions=c;exports.state=a;
@@ -1,10 +1,10 @@
1
1
  import s from "../../../../node_modules/axios/lib/axios.js";
2
2
  import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
- import { reactive as i, watch as d } from "vue";
3
+ import { reactive as l, watch as p } from "vue";
4
4
  import { setError as o } from "../../globals/store/globals.js";
5
5
  const n = s.create({ baseURL: process.env.API_URL, withCredentials: !0 });
6
6
  n.defaults.withCredentials = !0;
7
- const a = i({
7
+ const a = l({
8
8
  departments: [],
9
9
  department: {
10
10
  organization: "",
@@ -26,46 +26,50 @@ const a = i({
26
26
  subdepartments: []
27
27
  },
28
28
  error: null
29
- }), h = {
29
+ }), m = {
30
30
  async readOne(t) {
31
- await n.get(`/api/departments/get/${t}`).then((e) => {
32
- a.department = e.data, a.error = null;
33
- }).catch((e) => {
34
- o(e);
35
- });
31
+ try {
32
+ const e = await n.get(`/api/departments/get/${t}`);
33
+ return a.department = e.data, a.error = null, e.data;
34
+ } catch (e) {
35
+ return o(e), null;
36
+ }
36
37
  },
37
38
  async read(t) {
38
- await n.get(`/api/departments/${t}`).then((e) => {
39
- console.log("Response:", e), a.departments = e.data, a.error = null;
40
- }).catch((e) => {
41
- o(e);
42
- });
39
+ try {
40
+ const e = await n.get(`/api/departments/${t}`);
41
+ return console.log("Response:", e), a.departments = e.data, a.error = null, e.data;
42
+ } catch (e) {
43
+ return o(e), null;
44
+ }
43
45
  },
44
46
  async create(t, e) {
45
- await n.post(`/api/departments/${t}/create`, e).then((r) => {
46
- a.error = null, a.department = r.data;
47
- }).catch((r) => {
48
- o(r);
49
- });
47
+ try {
48
+ const r = await n.post(`/api/departments/${t}/create`, e);
49
+ return a.error = null, a.department = r.data, r.data;
50
+ } catch (r) {
51
+ return o(r), null;
52
+ }
50
53
  },
51
54
  async update(t, e) {
52
- await n.post(`/api/departments/${t}/update`, e).then(() => {
53
- a.error = null;
54
- }).catch((r) => {
55
- o(r);
56
- });
55
+ try {
56
+ const r = await n.post(`/api/departments/${t}/update`, e);
57
+ return a.error = null, r;
58
+ } catch (r) {
59
+ return o(r), null;
60
+ }
57
61
  },
58
62
  async delete(t, e) {
59
- await n.delete(`/api/departments/${t}/delete`, { data: { _id: e } }).then(() => {
60
- a.error = null;
61
- }).catch((r) => {
62
- o(r);
63
- });
63
+ try {
64
+ return await n.delete(`/api/departments/${t}/delete`, { data: { _id: e } }), a.error = null, !0;
65
+ } catch (r) {
66
+ return o(r), !1;
67
+ }
64
68
  }
65
69
  };
66
- d(a, (t, e) => {
70
+ p(a, (t, e) => {
67
71
  });
68
72
  export {
69
- h as actions,
73
+ m as actions,
70
74
  a as state
71
75
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),m=require("vue"),n=require("../../globals/store/globals.cjs"),c=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=m.reactive({memberships:[],error:null}),h={async read({user:r,type:e,target:i,role:l}){try{const s=await c.get("/api/memberships",{params:{user:r,type:e,target:i,role:l}});return o.error=null,o.memberships=s.data,Promise.resolve(s.data)}catch(s){return n.setError(s),Promise.reject(s)}},async create(r){try{const e=await c.post("/api/memberships/create",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async update(r){try{const e=await c.post("/api/memberships/update",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async delete(r){try{const e=await c.post("/api/memberships/delete",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}}},y={handleMembershipUpdate(r,e,i,l,s,p){let t;if(Array.isArray(r)?t=r.find(a=>a._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t[s]=i,i)t.memberships.push(e),t[p]+=1;else{const a=t.memberships.findIndex(u=>u._id===e._id);a!==-1&&(t.memberships.splice(a,1),t[p]-=1)}}};m.watch(o,r=>{});exports.actions=h;exports.mutations=y;exports.state=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("vue"),o=require("../../globals/store/globals.cjs"),n=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=l.reactive({memberships:[],error:null}),p={async read(r={}){let e={};r._id&&(e._id=r._id),r.user&&(e.user=r.user),r.target&&(e.target=r.target),r.roles&&(e.roles=r.roles);try{const s=await n.get("/api/memberships",{params:e});return a.error=null,a.memberships=s.data,Promise.resolve(s.data)}catch(s){return o.setError(s),Promise.reject(s)}},async create(r){try{const e=await n.post("/api/memberships/create",r);return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async update(r){try{const e=await n.post("/api/memberships/update",r);return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async delete(r){try{const e=await n.post("/api/memberships/delete",{_id:r});return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}}},h={handleMembershipUpdate(r,e,s,f,u,c){let t;if(Array.isArray(r)?t=r.find(i=>i._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t[u]=s,s)t.memberships.push(e),t[c]+=1;else{const i=t.memberships.findIndex(m=>m._id===e._id);i!==-1&&(t.memberships.splice(i,1),t[c]-=1)}}};l.watch(a,r=>{});exports.actions=p;exports.mutations=h;exports.state=a;
@@ -1,61 +1,63 @@
1
- import d from "../../../../node_modules/axios/lib/axios.js";
2
- import { reactive as h, watch as u } from "vue";
3
- import { setError as n } from "../../globals/store/globals.js";
4
- const c = d.create({
1
+ import p from "../../../../node_modules/axios/lib/axios.js";
2
+ import { reactive as d, watch as u } from "vue";
3
+ import { setError as o } from "../../globals/store/globals.js";
4
+ const c = p.create({
5
5
  baseURL: process.env.API_URL,
6
6
  withCredentials: !0
7
- }), o = h({
7
+ }), a = d({
8
8
  memberships: [],
9
9
  error: null
10
- }), b = {
11
- async read({ user: r, type: e, target: i, role: p }) {
10
+ }), _ = {
11
+ async read(r = {}) {
12
+ let e = {};
13
+ r._id && (e._id = r._id), r.user && (e.user = r.user), r.target && (e.target = r.target), r.roles && (e.roles = r.roles);
12
14
  try {
13
- const s = await c.get("/api/memberships", { params: { user: r, type: e, target: i, role: p } });
14
- return o.error = null, o.memberships = s.data, Promise.resolve(s.data);
15
+ const s = await c.get("/api/memberships", { params: e });
16
+ return a.error = null, a.memberships = s.data, Promise.resolve(s.data);
15
17
  } catch (s) {
16
- return n(s), Promise.reject(s);
18
+ return o(s), Promise.reject(s);
17
19
  }
18
20
  },
19
21
  async create(r) {
20
22
  try {
21
23
  const e = await c.post("/api/memberships/create", r);
22
- return o.error = null, Promise.resolve(e.data);
24
+ return a.error = null, Promise.resolve(e.data);
23
25
  } catch (e) {
24
- return n(e), Promise.reject(e);
26
+ return o(e), Promise.reject(e);
25
27
  }
26
28
  },
27
29
  async update(r) {
28
30
  try {
29
31
  const e = await c.post("/api/memberships/update", r);
30
- return o.error = null, Promise.resolve(e.data);
32
+ return a.error = null, Promise.resolve(e.data);
31
33
  } catch (e) {
32
- return n(e), Promise.reject(e);
34
+ return o(e), Promise.reject(e);
33
35
  }
34
36
  },
35
37
  async delete(r) {
36
38
  try {
37
- const e = await c.post("/api/memberships/delete", r);
38
- return o.error = null, Promise.resolve(e.data);
39
+ const e = await c.post("/api/memberships/delete", { _id: r });
40
+ return a.error = null, Promise.resolve(e.data);
39
41
  } catch (e) {
40
- return n(e), Promise.reject(e);
42
+ return o(e), Promise.reject(e);
41
43
  }
42
44
  }
43
- }, w = {
44
- handleMembershipUpdate(r, e, i, p, s, m) {
45
+ }, b = {
46
+ handleMembershipUpdate(r, e, s, f, m, n) {
45
47
  let t;
46
- if (Array.isArray(r) ? t = r.find((a) => a._id === e.target) : typeof r == "object" && r._id === e.target && (t = r), t)
47
- if (t[s] = i, i)
48
- t.memberships.push(e), t[m] += 1;
48
+ if (Array.isArray(r) ? t = r.find((i) => i._id === e.target) : typeof r == "object" && r._id === e.target && (t = r), t)
49
+ if (t[m] = s, s)
50
+ t.memberships.push(e), t[n] += 1;
49
51
  else {
50
- const a = t.memberships.findIndex((l) => l._id === e._id);
51
- a !== -1 && (t.memberships.splice(a, 1), t[m] -= 1);
52
+ const i = t.memberships.findIndex((l) => l._id === e._id);
53
+ i !== -1 && (t.memberships.splice(i, 1), t[n] -= 1);
52
54
  }
53
55
  }
54
56
  };
55
- u(o, (r) => {
57
+ u(a, (r) => {
56
58
  });
57
59
  export {
58
- b as actions,
59
- w as mutations,
60
- o as state
60
+ _ as actions,
61
+ b as mutations,
62
+ a as state
61
63
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.vue.cjs"),y=require("../../../../components/Select/Select.vue2.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),q={class:"gap-thin flex-nowrap flex"},k=["disabled"],N={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(c,{emit:i}){const t=c,s=i,l=e.ref(null),a=e.ref(null),d=e.ref("pcs"),u=e.ref(null),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type),e.watch([l,a,u,d],()=>{s("update",{...l.value,price:u.value,quantity:a.value,type:d.value})});function m(){s("add",{...l.value,price:u.value,quantity:a.value,type:d.value})}function v(){s("delete",{...l.value,price:u.value,quantity:a.value,type:d.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(b.default,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=o=>l.value=o),options:c.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white h-100 pd-small radius-small"},null,8,["modelValue","options"]),e.createVNode(n.default,{field:u.value,"onUpdate:field":r[1]||(r[1]=o=>u.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(n.default,{field:a.value,"onUpdate:field":r[3]||(r[3]=o=>a.value=o),type:"number",label:"Quantity",class:"bg-white pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(y.default,{select:d.value,"onUpdate:select":r[2]||(r[2]=o=>d.value=o),options:["pcs","g","ml"],class:"h-100 bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),c.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,k)),c.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.vue2.cjs"),y=require("../../../../components/Select/Select.vue2.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),q={class:"gap-thin flex-nowrap flex"},k=["disabled"],N={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(c,{emit:i}){const t=c,s=i,l=e.ref(null),a=e.ref(null),d=e.ref("pcs"),u=e.ref(null),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type),e.watch([l,a,u,d],()=>{s("update",{...l.value,price:u.value,quantity:a.value,type:d.value})});function m(){s("add",{...l.value,price:u.value,quantity:a.value,type:d.value})}function v(){s("delete",{...l.value,price:u.value,quantity:a.value,type:d.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(b.default,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=o=>l.value=o),options:c.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white pd-small radius-small"},null,8,["modelValue","options"]),e.createVNode(n.default,{field:u.value,"onUpdate:field":r[1]||(r[1]=o=>u.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(n.default,{field:a.value,"onUpdate:field":r[3]||(r[3]=o=>a.value=o),type:"number",label:"Quantity",class:"bg-white pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(y.default,{select:d.value,"onUpdate:select":r[2]||(r[2]=o=>d.value=o),options:["pcs","g","ml"],class:"bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),c.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,k)),c.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]))}};exports.default=N;
@@ -1,8 +1,8 @@
1
- import { ref as i, computed as x, watch as m, openBlock as c, createElementBlock as n, createVNode as d, withCtx as C, unref as v, createCommentVNode as f } from "vue";
2
- import y from "../../../../components/Field/Field.vue.js";
3
- import P from "../../../../components/Select/Select.vue2.js";
4
- import V from "../../../../components/SelectMulti/SelectMulti.vue.js";
5
- import q from "../../../icons/navigation/IconAdd.vue.js";
1
+ import { ref as i, computed as C, watch as m, openBlock as c, createElementBlock as n, createVNode as d, withCtx as P, unref as v, createCommentVNode as f } from "vue";
2
+ import y from "../../../../components/Field/Field.vue2.js";
3
+ import V from "../../../../components/Select/Select.vue2.js";
4
+ import q from "../../../../components/SelectMulti/SelectMulti.vue.js";
5
+ import h from "../../../icons/navigation/IconAdd.vue.js";
6
6
  import S from "../../../icons/navigation/IconDelete.vue.js";
7
7
  const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
8
8
  __name: "CardPosition",
@@ -17,7 +17,7 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
17
17
  "update"
18
18
  ],
19
19
  setup(s, { emit: b }) {
20
- const e = s, p = b, l = i(null), t = i(null), u = i("pcs"), a = i(null), g = x(
20
+ const e = s, p = b, l = i(null), t = i(null), u = i("pcs"), a = i(null), g = C(
21
21
  () => l.value && t.value > 0 && a.value > 0
22
22
  );
23
23
  m(e.array, () => {
@@ -30,7 +30,7 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
30
30
  type: u.value
31
31
  });
32
32
  });
33
- function h() {
33
+ function k() {
34
34
  p("add", {
35
35
  ...l.value,
36
36
  price: a.value,
@@ -38,7 +38,7 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
38
38
  type: u.value
39
39
  });
40
40
  }
41
- function k() {
41
+ function w() {
42
42
  p("delete", {
43
43
  ...l.value,
44
44
  price: a.value,
@@ -46,8 +46,8 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
46
46
  type: u.value
47
47
  });
48
48
  }
49
- return (w, o) => (c(), n("div", U, [
50
- d(V, {
49
+ return (x, o) => (c(), n("div", U, [
50
+ d(q, {
51
51
  modelValue: l.value,
52
52
  "onUpdate:modelValue": o[0] || (o[0] = (r) => l.value = r),
53
53
  options: s.products,
@@ -55,14 +55,14 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
55
55
  multiple: !1,
56
56
  taggable: !1,
57
57
  placeholder: "Select a product",
58
- class: "bg-white h-100 pd-small radius-small"
58
+ class: "bg-white pd-small radius-small"
59
59
  }, null, 8, ["modelValue", "options"]),
60
60
  d(y, {
61
61
  field: a.value,
62
62
  "onUpdate:field": o[1] || (o[1] = (r) => a.value = r),
63
63
  type: "number",
64
64
  label: "Price",
65
- symbol: w.returnCurrency(),
65
+ symbol: x.returnCurrency(),
66
66
  class: "bg-white pd-small radius-small"
67
67
  }, null, 8, ["field", "symbol"]),
68
68
  d(y, {
@@ -72,8 +72,8 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
72
72
  label: "Quantity",
73
73
  class: "bg-white pd-small radius-small"
74
74
  }, {
75
- default: C(() => [
76
- d(P, {
75
+ default: P(() => [
76
+ d(V, {
77
77
  select: u.value,
78
78
  "onUpdate:select": o[2] || (o[2] = (r) => u.value = r),
79
79
  options: [
@@ -81,7 +81,7 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
81
81
  "g",
82
82
  "ml"
83
83
  ],
84
- class: "h-100 bg-grey pd-thin radius-thin"
84
+ class: "bg-grey pd-thin radius-thin"
85
85
  }, null, 8, ["select"])
86
86
  ]),
87
87
  _: 1
@@ -89,14 +89,14 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
89
89
  s.product ? f("", !0) : (c(), n("button", {
90
90
  key: 0,
91
91
  disabled: !g.value,
92
- onClick: h,
92
+ onClick: k,
93
93
  class: "bg-main aspect-1x1 radius-small pd-small"
94
94
  }, [
95
- d(v(q), { class: "i-semi" })
95
+ d(v(h), { class: "i-semi" })
96
96
  ], 8, Q)),
97
97
  s.product ? (c(), n("button", {
98
98
  key: 1,
99
- onClick: k,
99
+ onClick: w,
100
100
  class: "bg-red aspect-1x1 radius-small pd-small"
101
101
  }, [
102
102
  d(v(S), { class: "i-semi" })
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),s=require("../../../../components/Field/Field.vue.cjs"),d=require("../../store/leftovers.cjs");require("./LeftoverPositions.vue2.cjs");const u={class:"flex-column flex-wrap block"},m={key:0,class:"w-100"},f={class:"mn-r-regular w-100"},p=["onClick"],y={__name:"LeftoverPositions",props:{order:Object},setup(o){r.useRouter(),r.useRoute();const i=o;function a(n){d.actions.deleteItemFromLeftover(i.order.positions[n])}return(n,b)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",u,[o.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",m," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.order.positions,(t,c)=>(e.openBlock(),e.createElementBlock("li",{key:t._id,class:"w-100 flex-center flex-nowrap flex"},[e.createElementVNode("span",f,e.toDisplayString(t.name),1),e.createVNode(s.default,{field:t.price,"onUpdate:field":l=>t.price=l,type:"number",label:"Price",symbol:n.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","onUpdate:field","symbol"]),e.createVNode(s.default,{field:t.quantity,"onUpdate:field":l=>t.quantity=l,type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small",symbol:t.type},null,8,["field","onUpdate:field","symbol"]),e.createElementVNode("a",{class:"button",onClick:l=>a(c)}," Delete ",8,p)]))),128))])]))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),s=require("../../../../components/Field/Field.vue2.cjs"),d=require("../../store/leftovers.cjs");require("./LeftoverPositions.vue2.cjs");const u={class:"flex-column flex-wrap block"},m={key:0,class:"w-100"},f={class:"mn-r-regular w-100"},p=["onClick"],y={__name:"LeftoverPositions",props:{order:Object},setup(o){r.useRouter(),r.useRoute();const i=o;function a(n){d.actions.deleteItemFromLeftover(i.order.positions[n])}return(n,b)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",u,[o.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",m," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.order.positions,(t,c)=>(e.openBlock(),e.createElementBlock("li",{key:t._id,class:"w-100 flex-center flex-nowrap flex"},[e.createElementVNode("span",f,e.toDisplayString(t.name),1),e.createVNode(s.default,{field:t.price,"onUpdate:field":l=>t.price=l,type:"number",label:"Price",symbol:n.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","onUpdate:field","symbol"]),e.createVNode(s.default,{field:t.quantity,"onUpdate:field":l=>t.quantity=l,type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small",symbol:t.type},null,8,["field","onUpdate:field","symbol"]),e.createElementVNode("a",{class:"button",onClick:l=>a(c)}," Delete ",8,p)]))),128))])]))}};exports.default=y;
@@ -1,6 +1,6 @@
1
1
  import { openBlock as o, createElementBlock as l, createElementVNode as s, createCommentVNode as u, Fragment as f, renderList as p, toDisplayString as y, createVNode as i } from "vue";
2
2
  import { useRouter as b, useRoute as _ } from "vue-router";
3
- import a from "../../../../components/Field/Field.vue.js";
3
+ import a from "../../../../components/Field/Field.vue2.js";
4
4
  import { actions as g } from "../../store/leftovers.js";
5
5
  import "./LeftoverPositions.vue2.js";
6
6
  const k = { class: "flex-column flex-wrap block" }, h = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.vue2.cjs");const i=require("./CardPosition.vue.cjs"),u=require("../../store/leftovers.cjs");require("./ListPositions.vue2.cjs");const a={class:"flex-column flex-wrap"},d={key:0,class:"w-100"},m={class:"flex-v-center flex radius-medium pd-small bg-white w-100"},p={__name:"ListPositions",props:{order:Object},setup(t){n.useRouter(),n.useRoute();const l=t;function s(r){u.actions.deleteItemFromLeftover(l.order.positions[r])}return(r,f)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",a,[t.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",d," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.order.positions,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:o._id,class:"w-100 gap-small flex-stretch flex-center flex-nowrap flex"},[e.createElementVNode("span",m,e.toDisplayString(o.name),1),e.createVNode(i.default,{products:[],product:o,onAdd:_=>s(c)},null,8,["product","onAdd"])]))),128))])]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const i=require("./CardPosition.vue.cjs"),u=require("../../store/leftovers.cjs");require("./ListPositions.vue2.cjs");const a={class:"flex-column flex-wrap"},d={key:0,class:"w-100"},m={class:"flex-v-center flex radius-medium pd-small bg-white w-100"},p={__name:"ListPositions",props:{order:Object},setup(t){n.useRouter(),n.useRoute();const l=t;function s(r){u.actions.deleteItemFromLeftover(l.order.positions[r])}return(r,f)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",a,[t.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",d," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.order.positions,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:o._id,class:"w-100 gap-small flex-stretch flex-center flex-nowrap flex"},[e.createElementVNode("span",m,e.toDisplayString(o.name),1),e.createVNode(i.default,{products:[],product:o,onAdd:_=>s(c)},null,8,["product","onAdd"])]))),128))])]))}};exports.default=p;
@@ -1,6 +1,6 @@
1
1
  import { openBlock as e, createElementBlock as t, createElementVNode as n, createCommentVNode as d, Fragment as a, renderList as m, toDisplayString as p, createVNode as u } from "vue";
2
2
  import { useRouter as f, useRoute as _ } from "vue-router";
3
- import "../../../../components/Field/Field.vue2.js";
3
+ import "../../../../components/Field/Field.vue.js";
4
4
  import x from "./CardPosition.vue.js";
5
5
  import { actions as h } from "../../store/leftovers.js";
6
6
  import "./ListPositions.vue2.js";