@ozdao/prometheus-framework 0.1.72 → 0.1.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -1
  2. package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
  6. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
  8. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  17. package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  20. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  22. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
  25. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  26. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  27. package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/auth.client.js +24 -27
  30. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  43. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +2 -5
  46. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +133 -177
  51. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/community/community.client.js +30 -33
  53. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  58. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
  66. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  67. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
  68. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  77. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/events/events.client.js +18 -21
  82. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  88. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +4 -7
  90. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/globals/components/layouts/Empty.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/globals/globals.client.js +6 -9
  97. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/icons/icons.client.js +46 -49
  101. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +3 -3
  109. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +3 -3
  116. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +3 -3
  118. package/dist/prometheus-framework/src/modules/icons/socials/vk.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/landing/landing.client.js +2 -5
  122. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/legal/legal.client.js +10 -14
  130. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +1 -8
  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 +2 -11
  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 +11 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
  146. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Unit.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -4
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  165. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +11 -11
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +58 -61
  172. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +6 -9
  174. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +78 -2
  180. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +2 -78
  182. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  189. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/reports/reports.client.js +1 -7
  191. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +1 -1
  195. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  197. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  201. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  203. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
  205. package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/users/users.client.js +8 -11
  207. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  208. package/dist/style.css +1 -1
  209. package/package.json +1 -1
  210. package/src/modules/auth/auth.client.js +1 -1
  211. package/src/modules/backoffice/backoffice.client.js +1 -1
  212. package/src/modules/backoffice/router/backoffice.js +130 -128
  213. package/src/modules/community/community.client.js +1 -1
  214. package/src/modules/events/events.client.js +1 -1
  215. package/src/modules/gallery/gallery.client.js +1 -1
  216. package/src/modules/globals/globals.client.js +1 -1
  217. package/src/modules/icons/icons.client.js +1 -1
  218. package/src/modules/landing/landing.client.js +1 -1
  219. package/src/modules/legal/legal.client.js +1 -1
  220. package/src/modules/middlewares/middlewares.client.js +1 -1
  221. package/src/modules/organizations/organizations.client.js +1 -1
  222. package/src/modules/organizations/router/organizations.js +6 -6
  223. package/src/modules/reports/reports.client.js +1 -1
  224. package/src/modules/users/users.client.js +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let u,l;const o=a;e.ref("departments"),[u,l]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await u,l();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(i).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),e.unref(i).length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let u,l;const o=a;e.ref("departments"),[u,l]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await u,l();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(i).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),e.unref(i).length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
@@ -1,5 +1,5 @@
1
1
  import { ref as f, withAsyncContext as b, computed as y, openBlock as n, createBlock as d, Transition as _, withCtx as h, createElementVNode as u, unref as m, createCommentVNode as c, createElementBlock as g, Fragment as z, renderList as k } from "vue";
2
- import "../../../../components/Tab/Tab.vue.js";
2
+ import "../../../../components/Tab/Tab.vue2.js";
3
3
  import $ from "../blocks/EmptyState.vue.js";
4
4
  import A from "../blocks/CardDepartment.vue.js";
5
5
  import { actions as v, state as w } from "../../store/departments.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),h={class:"mn-medium radius-medium pd-semi bg-white"},b=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),w=[g],B=e.createElementVNode("span",null,"Отправить приглашения ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",h,[b,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",E,[e.createVNode(_.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email или телефон",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"×",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(v.default,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:l,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/Select/Select.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),h={class:"mn-medium radius-medium pd-semi bg-white"},b=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),w=[g],B=e.createElementVNode("span",null,"Отправить приглашения ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",h,[b,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",E,[e.createVNode(v.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email или телефон",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"×",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(_.default,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:l,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
@@ -1,7 +1,7 @@
1
1
  import { ref as m, openBlock as l, createElementBlock as o, createElementVNode as e, Fragment as h, renderList as b, createVNode as i, createCommentVNode as w, withCtx as x } from "vue";
2
2
  import g from "../../../../components/Field/Field.vue2.js";
3
- import k from "../../../../components/Select/Select.vue2.js";
4
- import C from "../../../../components/Button/Button.vue2.js";
3
+ import k from "../../../../components/Select/Select.vue.js";
4
+ import C from "../../../../components/Button/Button.vue.js";
5
5
  import "../../../middlewares/client/inputs.validation.js";
6
6
  import { state as y, actions as V } from "../../store/invites.js";
7
7
  const z = { class: "mn-medium radius-medium pd-semi bg-white" }, E = /* @__PURE__ */ e("h3", { class: "mn-medium" }, "Добавить участников", -1), M = /* @__PURE__ */ e("p", { class: "mn-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), N = { class: "w-100 flex-nowrap flex" }, B = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Tab/Tab.vue2.cjs"),p={class:"mn-big radius-medium bg-white"},v={key:0,class:"pd-semi"},b={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},_={class:"w-100 mn-r-small"},k={class:"t-transp"},h={key:0,class:"mn-l-medium flex-v-center flex"},B=["onClick"],f={key:1,class:"pd-semi"},g={key:0},E={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},y={class:"w-100 mn-r-small"},x={class:"t-transp"},N={class:"mn-l-medium flex-v-center flex"},V=["onClick"],C={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:i}){const c=n,o=e.ref("members");function a(l,s){c.memberships.splice(l,1),i("removeMember",s)}function m(l,s){c.invites.splice(l,1),i("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",p,[e.createVNode(u.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",_,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",k,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("button",{onClick:d=>a(r,t),class:"button-small button"},"×",8,B)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",f,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",g,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("span",y,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",x,e.toDisplayString(t.status),1),e.createElementVNode("div",N,[e.createElementVNode("button",{onClick:d=>m(r,t),class:"button-small button"},"×",8,V)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Tab/Tab.vue.cjs"),p={class:"mn-big radius-medium bg-white"},v={key:0,class:"pd-semi"},b={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},_={class:"w-100 mn-r-small"},k={class:"t-transp"},h={key:0,class:"mn-l-medium flex-v-center flex"},B=["onClick"],f={key:1,class:"pd-semi"},g={key:0},E={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},y={class:"w-100 mn-r-small"},x={class:"t-transp"},N={class:"mn-l-medium flex-v-center flex"},V=["onClick"],C={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:i}){const c=n,o=e.ref("members");function a(l,s){c.memberships.splice(l,1),i("removeMember",s)}function m(l,s){c.invites.splice(l,1),i("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",p,[e.createVNode(u.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",_,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",k,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("button",{onClick:d=>a(r,t),class:"button-small button"},"×",8,B)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",f,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",g,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("span",y,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",x,e.toDisplayString(t.status),1),e.createElementVNode("div",N,[e.createElementVNode("button",{onClick:d=>m(r,t),class:"button-small button"},"×",8,V)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=C;
@@ -1,5 +1,5 @@
1
1
  import { ref as f, openBlock as s, createElementBlock as t, createVNode as x, Fragment as v, renderList as p, createElementVNode as n, toDisplayString as o, createCommentVNode as m } from "vue";
2
- import k from "../../../../components/Tab/Tab.vue2.js";
2
+ import k from "../../../../components/Tab/Tab.vue.js";
3
3
  const y = { class: "mn-big radius-medium bg-white" }, g = {
4
4
  key: 0,
5
5
  class: "pd-semi"
@@ -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/src/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");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.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/src/js.cookie.cjs");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.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,10 +1,10 @@
1
1
  import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElementBlock as n, 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/src/js.cookie.js";
4
- import "../../../../components/Tab/Tab.vue.js";
4
+ import "../../../../components/Tab/Tab.vue2.js";
5
5
  import "../../../../components/Field/Field.vue.js";
6
- import "../../../../components/Select/Select.vue.js";
7
- import "../../../../components/Button/Button.vue.js";
6
+ import "../../../../components/Select/Select.vue2.js";
7
+ import "../../../../components/Button/Button.vue2.js";
8
8
  import "../../../../components/Dropdown/Dropdown.vue2.js";
9
9
  import { state as k } from "../../../auth/store/auth.js";
10
10
  import "../../store/memberships.js";
@@ -12,17 +12,17 @@ import "vue-i18n";
12
12
  import "../../../../components/Popup/Popup.vue2.js";
13
13
  import "../../../reports/store/reports.js";
14
14
  import { actions as q } from "../../store/organizations.js";
15
- import $ from "../blocks/EmptyState.vue.js";
15
+ import B from "../blocks/EmptyState.vue.js";
16
16
  import "../../../../components/Spoiler/Spoiler.vue.js";
17
17
  import "../../../../components/Map/Map.vue.js";
18
18
  import "../blocks/DepartmentSub.vue2.js";
19
19
  import "../blocks/User.vue2.js";
20
20
  import "../blocks/CardDepartment.vue2.js";
21
21
  import "../../store/departments.js";
22
- import B from "../blocks/CardOrganization.vue.js";
22
+ import C from "../blocks/CardOrganization.vue.js";
23
23
  import "./Unit.vue.js";
24
24
  import "./Organizations.vue2.js";
25
- const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: "" }, N = {
25
+ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: "" }, O = {
26
26
  key: 1,
27
27
  class: "cols-1"
28
28
  }, te = {
@@ -50,16 +50,16 @@ const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: ""
50
50
  const l = m(y);
51
51
  return a.query.tab = l.value, _(l, (e) => {
52
52
  d.replace({ query: { ...a.query, tab: e } });
53
- }), (e, O) => (t(), n("div", C, [
54
- f("div", M, [
55
- o.value < 1 ? (t(), p($, {
53
+ }), (e, S) => (t(), n("div", M, [
54
+ f("div", N, [
55
+ o.value < 1 ? (t(), p(B, {
56
56
  key: 0,
57
57
  title: "You Haven't Joined Any Organization Yet",
58
58
  description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
59
59
  action: "Create organization",
60
60
  callback: e.a = () => e.$router.push("/app/organization/create/details")
61
- }, null, 8, ["callback"])) : (t(), n("div", N, [
62
- (t(!0), n(g, null, h(o.value, (u) => (t(), p(B, {
61
+ }, null, 8, ["callback"])) : (t(), n("div", O, [
62
+ (t(!0), n(g, null, h(o.value, (u) => (t(), p(C, {
63
63
  key: u._id,
64
64
  organization: u,
65
65
  user: k.user,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),i=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");require("./Publics.vue2.cjs");const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},h={__name:"Publics",setup(_){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:i.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const a=({membership:n,status:o,target:r},s,u)=>{m.mutations.handleMembershipUpdate(organizations.state.current,n,o,r,s,u)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(r,s)=>(e.openBlock(),e.createBlock(l.default,{key:r._id,organization:r,user:i.state.user,onUpdateMembership:a,class:"flex-child-1 flex-child w-25r"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),a=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");require("./Publics.vue2.cjs");const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},h={__name:"Publics",setup(_){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:a.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const i=({membership:n,status:o,target:r},s,u)=>{m.mutations.handleMembershipUpdate(organizations.state.current,n,o,r,s,u)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(r,s)=>(e.openBlock(),e.createBlock(l.default,{key:r._id,organization:r,user:a.state.user,onUpdateMembership:i,class:"flex-child-1 flex-child w-25r"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=h;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[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"),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/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"),E=require("./components/elements/ButtonToggleMembership.vue.cjs"),y=require("./store/invites.cjs"),C=require("./store/departments.cjs"),T=require("./store/memberships.cjs"),h=require("./store/organizations.cjs"),v=require("./router/organizations.cjs"),A={Organization:e.default,Department:t.default,OrganizationEdit:r.default,Organizations:i.default,DepartmentEdit:a.default,CardOrganization:n.default,EditArray:o.default,User:s.default,Unit:u.default,DepartmentSub:d.default,DepartmentMemberModify:c.default,CardDepartment:l.default,Rating:m.default,EmptyState:f.default,Contacts:q.default,Socials:g.default,MembersAdd:p.default,FeedDepartments:b.default,DetailsTab:D.default,OrganizationsSection:z.default,Publics:S.default,Documents:M.default,MembersList:O.default,ButtonToggleMembership:E.default,invitesStore:y,departmentsStore:C,membershipsStore:T,organizationStore:h,organizationsRouter:v.default};exports.default=A;
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,63 +1,60 @@
1
- import m from "./components/pages/Organization.vue.js";
2
- import r from "./components/pages/Department.vue.js";
3
- import o from "./components/pages/OrganizationEdit.vue.js";
4
- import i from "./components/pages/Organizations.vue.js";
5
- import t from "./components/pages/DepartmentEdit.vue.js";
6
- import a from "./components/blocks/CardOrganization.vue.js";
7
- import n from "./components/blocks/EditArray.vue.js";
8
- import f from "./components/blocks/User.vue.js";
9
- import s from "./components/blocks/Unit.vue.js";
10
- import e from "./components/blocks/DepartmentSub.vue.js";
11
- import p from "./components/blocks/DepartmentMemberModify.vue.js";
12
- import _ from "./components/blocks/CardDepartment.vue.js";
13
- import c from "./components/blocks/Rating.vue.js";
14
- import $ from "./components/blocks/EmptyState.vue.js";
15
- import g from "./components/blocks/Contacts.vue.js";
16
- import d from "./components/blocks/Socials.vue.js";
17
- import b from "./components/sections/MembersAdd.vue.js";
18
- import z from "./components/sections/FeedDepartments.vue.js";
19
- import D from "./components/sections/DetailsTab.vue.js";
20
- import S from "./components/sections/Organizations.vue.js";
21
- import l from "./components/sections/Publics.vue.js";
22
- import u from "./components/sections/Documents.vue.js";
23
- import M from "./components/sections/MembersList.vue.js";
24
- import O from "./components/elements/ButtonToggleMembership.vue.js";
25
- import * as h from "./store/invites.js";
26
- import * as E from "./store/departments.js";
27
- import * as y from "./store/memberships.js";
28
- import * as C from "./store/organizations.js";
29
- import v from "./router/organizations.js";
30
- const mm = {
31
- Organization: m,
32
- Department: r,
33
- OrganizationEdit: o,
34
- Organizations: i,
35
- DepartmentEdit: t,
36
- CardOrganization: a,
37
- EditArray: n,
38
- User: f,
39
- Unit: s,
40
- DepartmentSub: e,
41
- DepartmentMemberModify: p,
42
- CardDepartment: _,
43
- Rating: c,
44
- EmptyState: $,
45
- Contacts: g,
46
- Socials: d,
47
- MembersAdd: b,
48
- FeedDepartments: z,
49
- DetailsTab: D,
50
- OrganizationsSection: S,
51
- Publics: l,
52
- Documents: u,
53
- MembersList: M,
54
- ButtonToggleMembership: O,
55
- invitesStore: h,
56
- departmentsStore: E,
57
- membershipsStore: y,
58
- organizationStore: C,
59
- organizationsRouter: v
60
- };
1
+ import { default as f } from "./components/pages/Organization.vue.js";
2
+ import { default as p } from "./components/pages/Department.vue.js";
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";
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";
12
+ import { default as A } from "./components/blocks/CardDepartment.vue.js";
13
+ import { default as T } from "./components/blocks/Rating.vue.js";
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";
61
30
  export {
62
- mm as default
31
+ _ as ButtonToggleMembership,
32
+ 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,
42
+ B as EmptyState,
43
+ G as FeedDepartments,
44
+ q as MembersAdd,
45
+ Y as MembersList,
46
+ f as Organization,
47
+ d as OrganizationEdit,
48
+ u as Organizations,
49
+ K as OrganizationsSection,
50
+ Q as Publics,
51
+ T as Rating,
52
+ j as Socials,
53
+ 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
63
60
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./organizations.router.cjs"),r=require("./departments.router.cjs"),o=require("./members.router.cjs"),u=require("./products.router.cjs"),n=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"Организации"}},children:[...t.default,...r.default,...u.default,...o.default]}];exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./organizations.router.cjs"),o=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"Организации"}},children:[...t.default]}];exports.default=o;
@@ -1,9 +1,6 @@
1
1
  import o from "../../globals/components/layouts/Empty.vue.js";
2
2
  import t from "./organizations.router.js";
3
- import r from "./departments.router.js";
4
- import m from "./members.router.js";
5
- import e from "./products.router.js";
6
- const u = [{
3
+ const i = [{
7
4
  path: "organizations",
8
5
  component: o,
9
6
  meta: {
@@ -13,12 +10,12 @@ const u = [{
13
10
  }
14
11
  },
15
12
  children: [
16
- ...t,
17
- ...r,
18
- ...e,
19
- ...m
13
+ ...t
14
+ // ...departmentRoutes,
15
+ // ...productRoutes,
16
+ // ...membersRoutes
20
17
  ]
21
18
  }];
22
19
  export {
23
- u as default
20
+ i as default
24
21
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),l=require("../elements/THC.vue2.cjs"),n=require("../elements/Price.vue.cjs");require("./CardProduct.vue2.cjs");const i=["src"],r={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),d=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),s=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),u=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),m=[a,d,s,u],h={class:"pd-medium t-left product-card-content"},C={class:"mn-thin h4"},f={key:1,class:"mn-small t-transp p-small"},g=e.createElementVNode("div",null,null,-1),k={__name:"CardProduct",props:["product"],setup(t){return c.useI18n(),(o,V)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"w-100 h-100"},null,8,i)):(e.openBlock(),e.createElementBlock("svg",r,m)),t.product.information.length>0?(e.openBlock(),e.createBlock(l.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",h,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",C,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(n.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])]),g],2))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),l=require("../elements/THC.vue.cjs"),n=require("../elements/Price.vue.cjs");require("./CardProduct.vue2.cjs");const i=["src"],r={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),d=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),s=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),u=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),m=[a,d,s,u],h={class:"pd-medium t-left product-card-content"},C={class:"mn-thin h4"},f={key:1,class:"mn-small t-transp p-small"},g=e.createElementVNode("div",null,null,-1),k={__name:"CardProduct",props:["product"],setup(t){return c.useI18n(),(o,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"w-100 h-100"},null,8,i)):(e.openBlock(),e.createElementBlock("svg",r,m)),t.product.information.length>0?(e.openBlock(),e.createBlock(l.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",h,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",C,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(n.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])]),g],2))}};exports.default=k;
@@ -1,6 +1,6 @@
1
1
  import { openBlock as o, createElementBlock as e, normalizeClass as c, createElementVNode as i, createBlock as d, createCommentVNode as n, toDisplayString as l, createVNode as a } from "vue";
2
2
  import { useI18n as s } from "vue-i18n";
3
- import u from "../elements/THC.vue2.js";
3
+ import u from "../elements/THC.vue.js";
4
4
  import m from "../elements/Price.vue.js";
5
5
  import "./CardProduct.vue2.js";
6
6
  const h = ["src"], f = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 thumbnails"},g=["src","onClick"],_={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),r=e.ref(0),i=s=>{r.value=s,t.value=!0},l=()=>{t.value=!1};return(s,h)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(n,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(s.FILE_SERVER_URL||"")+n,onClick:v=>i(a),class:"radius-medium bg-white o-hidden thumbnail"},null,8,g))),128))]),e.createVNode(u.default,{onClosePopup:l,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:s.path+o.images[r.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(_,[["__scopeId","data-v-732c99c3"]]);exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue2.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 thumbnails"},g=["src","onClick"],_={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),r=e.ref(0),i=s=>{r.value=s,t.value=!0},l=()=>{t.value=!1};return(s,h)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(n,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(s.FILE_SERVER_URL||"")+n,onClick:v=>i(a),class:"radius-medium bg-white o-hidden thumbnail"},null,8,g))),128))]),e.createVNode(u.default,{onClosePopup:l,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:s.path+o.images[r.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(_,[["__scopeId","data-v-732c99c3"]]);exports.default=f;
@@ -1,5 +1,5 @@
1
1
  import { ref as r, openBlock as o, createElementBlock as i, createElementVNode as p, Fragment as d, renderList as _, createVNode as c, withCtx as f } from "vue";
2
- import g from "../../../../components/Popup/Popup.vue.js";
2
+ import g from "../../../../components/Popup/Popup.vue2.js";
3
3
  import h from "../../../../components/Magnifier/Magnifier.vue.js";
4
4
  import "./ImagesThumbnails.vue2.js";
5
5
  import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./THC.vue2.cjs");const o={key:0,class:"thc"},n={class:"t-bold t-white"},i=e.createElementVNode("p",{class:"t-white h6"},"THC",-1),l={key:0,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r=e.createElementVNode("path",{fill:"#FF0000",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),c=[r],s={key:1,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d=e.createElementVNode("path",{fill:"#FF0099",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),h=[d],a={key:2,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u=e.createElementVNode("path",{fill:"#EB00FF",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),m=[u],w={key:3,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C=e.createElementVNode("path",{fill:"#00FF29",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),_=[C],k={__name:"THC",props:{product:Object},setup(t){return(v,f)=>t.product.information[1]?(e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("p",n,e.toDisplayString(t.product.information[1].value)+" %",1),i,Number(t.product.information[1].value)>=18?(e.openBlock(),e.createElementBlock("svg",l,c)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=18&&Number(t.product.information[1].value)>=14?(e.openBlock(),e.createElementBlock("svg",s,h)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=14&&Number(t.product.information[1].value)>=10?(e.openBlock(),e.createElementBlock("svg",a,m)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=10?(e.openBlock(),e.createElementBlock("svg",w,_)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}};exports.default=k;
@@ -1,4 +1,80 @@
1
- const e = "";
1
+ import { openBlock as o, createElementBlock as i, createElementVNode as e, toDisplayString as s, createCommentVNode as n } from "vue";
2
+ import "./THC.vue2.js";
3
+ const h = {
4
+ key: 0,
5
+ class: "thc"
6
+ }, r = { class: "t-bold t-white" }, l = /* @__PURE__ */ e("p", { class: "t-white h6" }, "THC", -1), d = {
7
+ key: 0,
8
+ width: "60",
9
+ height: "66",
10
+ viewBox: "0 0 60 66",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg"
13
+ }, c = /* @__PURE__ */ e("path", {
14
+ fill: "#FF0000",
15
+ stroke: "white",
16
+ "stroke-width": "3",
17
+ d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
18
+ }, null, -1), u = [
19
+ c
20
+ ], w = {
21
+ key: 1,
22
+ width: "60",
23
+ height: "66",
24
+ viewBox: "0 0 60 66",
25
+ fill: "none",
26
+ xmlns: "http://www.w3.org/2000/svg"
27
+ }, a = /* @__PURE__ */ e("path", {
28
+ fill: "#FF0099",
29
+ stroke: "white",
30
+ "stroke-width": "3",
31
+ d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
32
+ }, null, -1), m = [
33
+ a
34
+ ], C = {
35
+ key: 2,
36
+ width: "60",
37
+ height: "66",
38
+ viewBox: "0 0 60 66",
39
+ fill: "none",
40
+ xmlns: "http://www.w3.org/2000/svg"
41
+ }, _ = /* @__PURE__ */ e("path", {
42
+ fill: "#EB00FF",
43
+ stroke: "white",
44
+ "stroke-width": "3",
45
+ d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
46
+ }, null, -1), v = [
47
+ _
48
+ ], f = {
49
+ key: 3,
50
+ width: "60",
51
+ height: "66",
52
+ viewBox: "0 0 60 66",
53
+ fill: "none",
54
+ xmlns: "http://www.w3.org/2000/svg"
55
+ }, g = /* @__PURE__ */ e("path", {
56
+ fill: "#00FF29",
57
+ stroke: "white",
58
+ "stroke-width": "3",
59
+ d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
60
+ }, null, -1), L = [
61
+ g
62
+ ], b = {
63
+ __name: "THC",
64
+ props: {
65
+ product: Object
66
+ },
67
+ setup(t) {
68
+ return (k, p) => t.product.information[1] ? (o(), i("div", h, [
69
+ e("p", r, s(t.product.information[1].value) + " %", 1),
70
+ l,
71
+ Number(t.product.information[1].value) >= 18 ? (o(), i("svg", d, u)) : n("", !0),
72
+ Number(t.product.information[1].value) <= 18 && Number(t.product.information[1].value) >= 14 ? (o(), i("svg", w, m)) : n("", !0),
73
+ Number(t.product.information[1].value) <= 14 && Number(t.product.information[1].value) >= 10 ? (o(), i("svg", C, v)) : n("", !0),
74
+ Number(t.product.information[1].value) <= 10 ? (o(), i("svg", f, L)) : n("", !0)
75
+ ])) : n("", !0);
76
+ }
77
+ };
2
78
  export {
3
- e as default
79
+ b as default
4
80
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./THC.vue.cjs");const o={key:0,class:"thc"},n={class:"t-bold t-white"},i=e.createElementVNode("p",{class:"t-white h6"},"THC",-1),l={key:0,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r=e.createElementVNode("path",{fill:"#FF0000",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),c=[r],s={key:1,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d=e.createElementVNode("path",{fill:"#FF0099",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),h=[d],a={key:2,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u=e.createElementVNode("path",{fill:"#EB00FF",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),m=[u],w={key:3,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C=e.createElementVNode("path",{fill:"#00FF29",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),_=[C],k={__name:"THC",props:{product:Object},setup(t){return(v,f)=>t.product.information[1]?(e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("p",n,e.toDisplayString(t.product.information[1].value)+" %",1),i,Number(t.product.information[1].value)>=18?(e.openBlock(),e.createElementBlock("svg",l,c)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=18&&Number(t.product.information[1].value)>=14?(e.openBlock(),e.createElementBlock("svg",s,h)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=14&&Number(t.product.information[1].value)>=10?(e.openBlock(),e.createElementBlock("svg",a,m)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=10?(e.openBlock(),e.createElementBlock("svg",w,_)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,80 +1,4 @@
1
- import { openBlock as o, createElementBlock as i, createElementVNode as e, toDisplayString as s, createCommentVNode as n } from "vue";
2
- import "./THC.vue.js";
3
- const h = {
4
- key: 0,
5
- class: "thc"
6
- }, r = { class: "t-bold t-white" }, l = /* @__PURE__ */ e("p", { class: "t-white h6" }, "THC", -1), d = {
7
- key: 0,
8
- width: "60",
9
- height: "66",
10
- viewBox: "0 0 60 66",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- }, c = /* @__PURE__ */ e("path", {
14
- fill: "#FF0000",
15
- stroke: "white",
16
- "stroke-width": "3",
17
- d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
18
- }, null, -1), u = [
19
- c
20
- ], w = {
21
- key: 1,
22
- width: "60",
23
- height: "66",
24
- viewBox: "0 0 60 66",
25
- fill: "none",
26
- xmlns: "http://www.w3.org/2000/svg"
27
- }, a = /* @__PURE__ */ e("path", {
28
- fill: "#FF0099",
29
- stroke: "white",
30
- "stroke-width": "3",
31
- d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
32
- }, null, -1), m = [
33
- a
34
- ], C = {
35
- key: 2,
36
- width: "60",
37
- height: "66",
38
- viewBox: "0 0 60 66",
39
- fill: "none",
40
- xmlns: "http://www.w3.org/2000/svg"
41
- }, _ = /* @__PURE__ */ e("path", {
42
- fill: "#EB00FF",
43
- stroke: "white",
44
- "stroke-width": "3",
45
- d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
46
- }, null, -1), v = [
47
- _
48
- ], f = {
49
- key: 3,
50
- width: "60",
51
- height: "66",
52
- viewBox: "0 0 60 66",
53
- fill: "none",
54
- xmlns: "http://www.w3.org/2000/svg"
55
- }, g = /* @__PURE__ */ e("path", {
56
- fill: "#00FF29",
57
- stroke: "white",
58
- "stroke-width": "3",
59
- d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
60
- }, null, -1), L = [
61
- g
62
- ], b = {
63
- __name: "THC",
64
- props: {
65
- product: Object
66
- },
67
- setup(t) {
68
- return (k, p) => t.product.information[1] ? (o(), i("div", h, [
69
- e("p", r, s(t.product.information[1].value) + " %", 1),
70
- l,
71
- Number(t.product.information[1].value) >= 18 ? (o(), i("svg", d, u)) : n("", !0),
72
- Number(t.product.information[1].value) <= 18 && Number(t.product.information[1].value) >= 14 ? (o(), i("svg", w, m)) : n("", !0),
73
- Number(t.product.information[1].value) <= 14 && Number(t.product.information[1].value) >= 10 ? (o(), i("svg", C, v)) : n("", !0),
74
- Number(t.product.information[1].value) <= 10 ? (o(), i("svg", f, L)) : n("", !0)
75
- ])) : n("", !0);
76
- }
77
- };
1
+ const e = "";
78
2
  export {
79
- b as default
3
+ e as default
80
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),g=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");const E=require("../sections/EditProductInfo.vue.cjs"),i=require("../sections/EditParameters.vue.cjs"),V=require("../sections/EditProductImages.vue.cjs"),t=require("../../store/products.cjs"),d=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const v={class:"for-transition w-100"},q={class:"pd-b-zero pd-t-zero pd-thin"},k={class:"pd-thin"},y={class:"flex-nowrap flex bg-grey pd-medium radius-big"},B={key:0,class:"mn-r-auto"},x={key:1,class:"mn-r-auto"},P={class:"flex-nowrap flex pd-thin"},w={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},z={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},I=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),C={class:"mn-semi"},A=e.createElementVNode("h5",null,"Categories",-1),L={class:""},M={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},S=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),R={__name:"ProductEdit",async setup(T){let a,r;const o=c.useRoute(),l=c.useRouter();[a,r]=e.withAsyncContext(()=>d.actions.fetchCategories()),await a,r(),o.params.product&&([a,r]=e.withAsyncContext(()=>t.actions.read({_id:o.params.product})),await a,r());function u(){t.state.current.information.push({name:"",value:""})}function m(s){t.state.current.information.splice(s,1)}function p(){t.state.current.localization.push({locale:"",text:""})}function _(s){t.state.current.localization.splice(s,1)}function h(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:o.params._id,product:t.state.current._id}})}return(s,D)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",q,[e.createVNode(g.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",k,[e.createElementVNode("header",y,[e.unref(o).params.product?(e.openBlock(),e.createElementBlock("h1",B,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",x,"Create Product")),e.createElementVNode("section",P,[e.createVNode(b.default,{submit:h,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[I,e.createVNode(E.default,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",C,[A,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.all,(n,$)=>(e.openBlock(),e.createBlock(N.default,{label:n.name,name:"categories",value:n.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(i.default,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:u,onDeleteInfo:m},null,8,["items"]),e.createVNode(i.default,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:p,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",L,[e.createElementVNode("div",M,[S,e.createVNode(V.default,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=R;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),g=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");const E=require("../sections/EditProductInfo.vue.cjs"),i=require("../sections/EditParameters.vue.cjs"),V=require("../sections/EditProductImages.vue.cjs"),t=require("../../store/products.cjs"),d=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const v={class:"for-transition w-100"},q={class:"pd-b-zero pd-t-zero pd-thin"},k={class:"pd-thin"},y={class:"flex-nowrap flex bg-grey pd-medium radius-big"},B={key:0,class:"mn-r-auto"},x={key:1,class:"mn-r-auto"},P={class:"flex-nowrap flex pd-thin"},w={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},z={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},I=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),C={class:"mn-semi"},A=e.createElementVNode("h5",null,"Categories",-1),L={class:""},M={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},S=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),R={__name:"ProductEdit",async setup(T){let a,r;const o=c.useRoute(),l=c.useRouter();[a,r]=e.withAsyncContext(()=>d.actions.fetchCategories()),await a,r(),o.params.product&&([a,r]=e.withAsyncContext(()=>t.actions.read({_id:o.params.product})),await a,r());function u(){t.state.current.information.push({name:"",value:""})}function m(s){t.state.current.information.splice(s,1)}function p(){t.state.current.localization.push({locale:"",text:""})}function _(s){t.state.current.localization.splice(s,1)}function h(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:o.params._id,product:t.state.current._id}})}return(s,D)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",q,[e.createVNode(g.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",k,[e.createElementVNode("header",y,[e.unref(o).params.product?(e.openBlock(),e.createElementBlock("h1",B,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",x,"Create Product")),e.createElementVNode("section",P,[e.createVNode(b.default,{submit:h,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[I,e.createVNode(E.default,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",C,[A,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.all,(n,$)=>(e.openBlock(),e.createBlock(N.default,{label:n.name,name:"categories",value:n.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(i.default,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:u,onDeleteInfo:m},null,8,["items"]),e.createVNode(i.default,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:p,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",L,[e.createElementVNode("div",M,[S,e.createVNode(V.default,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=R;