@ozdao/prometheus-framework 0.1.69 → 0.1.72

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. package/dist/auth.server.js +1 -1
  2. package/dist/auth.server.mjs +1 -1
  3. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  4. package/dist/main.css +1 -1
  5. package/dist/modules/constructor/components/elements/H2.vue.d.ts +1 -1
  6. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +1 -1
  7. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -1
  8. package/dist/modules/products/components/sections/EditProductInfo.vue.d.ts +5 -1
  9. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  11. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  13. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/auth/auth.client.js +27 -24
  15. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +5 -2
  17. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/community/community.client.js +33 -30
  21. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +24 -21
  27. package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/events/events.client.js +21 -18
  29. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +7 -4
  31. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/globals/globals.client.js +9 -6
  33. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/icons/icons.client.js +49 -46
  35. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +3 -3
  36. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +3 -3
  41. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +3 -3
  43. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/landing/landing.client.js +5 -2
  45. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/legal/legal.client.js +14 -10
  49. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +8 -1
  51. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  53. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  55. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
  56. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +9 -9
  68. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +61 -58
  70. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +2 -78
  76. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +78 -2
  78. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/reports/reports.client.js +7 -1
  86. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/users/users.client.js +11 -8
  90. package/dist/prometheus-framework.cjs.js +21 -21
  91. package/dist/prometheus-framework.es.js +705 -687
  92. package/dist/style.css +1 -1
  93. package/package.json +40 -39
  94. package/src/components/Button/Button.vue +1 -1
  95. package/src/components/Search/Search.vue +1 -1
  96. package/src/components/Sidebar/Sidebar.vue +8 -10
  97. package/src/components/Status/Status.vue +1 -1
  98. package/src/components/Upload/Upload.vue +28 -8
  99. package/src/{main.ts → main.js} +1 -2
  100. package/src/modules/auth/auth.client.js +1 -1
  101. package/src/modules/auth/controllers/auth.controller.js +1 -1
  102. package/src/modules/auth/store/auth.js +24 -21
  103. package/src/modules/backoffice/backoffice.client.js +1 -1
  104. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  105. package/src/modules/backoffice/components/admin/Categories.vue +1 -1
  106. package/src/modules/backoffice/components/admin/CategoryEdit.vue +1 -1
  107. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  108. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  109. package/src/modules/backoffice/components/admin/PageEdit.vue +1 -1
  110. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  111. package/src/modules/backoffice/components/admin/ProductEdit.vue +0 -2
  112. package/src/modules/backoffice/components/admin/User.vue +1 -1
  113. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  114. package/src/modules/community/community.client.js +1 -1
  115. package/src/modules/constructor/components/elements/Audio.vue +82 -0
  116. package/src/modules/constructor/components/elements/Embed.vue +85 -0
  117. package/src/modules/constructor/components/sections/Constructor.vue +54 -7
  118. package/src/modules/events/components/pages/Events.vue +2 -2
  119. package/src/modules/events/events.client.js +1 -1
  120. package/src/modules/gallery/components/pages/Gallery.vue +1 -7
  121. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +8 -24
  122. package/src/modules/gallery/gallery.client.js +2 -6
  123. package/src/modules/globals/globals.client.js +1 -1
  124. package/src/modules/globals/mixins/mixins.js +52 -0
  125. package/src/modules/globals/router/routerGuards.js +28 -0
  126. package/src/modules/icons/icons.client.js +1 -1
  127. package/src/modules/landing/landing.client.js +1 -1
  128. package/src/modules/legal/legal.client.js +1 -1
  129. package/src/modules/marketplace/components/layouts/Marketplace.vue +0 -1
  130. package/src/modules/middlewares/middlewares.client.js +1 -1
  131. package/src/modules/orders/components/blocks/Positions.vue +1 -1
  132. package/src/modules/orders/components/pages/ViewOrder.vue +1 -1
  133. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  134. package/src/modules/organizations/organizations.client.js +1 -1
  135. package/src/modules/payments/components/pages/Payments.vue +3 -4
  136. package/src/modules/products/components/blocks/CardLeftover.vue +1 -0
  137. package/src/modules/products/components/blocks/CardProduct.vue +1 -15
  138. package/src/modules/products/components/sections/EditProductInfo.vue +14 -16
  139. package/src/modules/products/components/sections/FilterProducts.vue +2 -0
  140. package/src/modules/products/components/sections/ProductInformationSection.vue +2 -5
  141. package/src/modules/products/components/sections/SectionProduct.vue +0 -1
  142. package/src/modules/products/components/sections/SortProducts.vue +0 -2
  143. package/src/modules/products/store/categories.js +9 -9
  144. package/src/modules/products/store/leftovers.js +9 -6
  145. package/src/modules/products/store/products.js +0 -2
  146. package/src/modules/reports/reports.client.js +1 -1
  147. package/src/modules/users/components/pages/Profile.vue +5 -3
  148. package/src/modules/users/users.client.js +1 -1
  149. package/src/modules/wallet/components/pages/Wallet.vue +1 -1
  150. package/src/styles/theme.scss +0 -1
  151. package/src/styles/components/button.scss +0 -253
  152. /package/src/components/{index.ts → index.js} +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-20739d92"),o=o(),e.popScopeId(),o),h={class:"documents"},v=f(()=>e.createElementVNode("h3",{class:"mn-small"},"Список документов",-1)),k={class:"mn-big cols-4"},y=["onClick"],E={class:"mn-small"},B={class:"t-semi t-transp radius-small"},b={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",h,[v,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:x=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",E,e.toDisplayString(t.name),1),e.createElementVNode("p",B,e.toDisplayString(t.status),1)],8,y))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(b,[["__scopeId","data-v-20739d92"]]);exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-20739d92"),o=o(),e.popScopeId(),o),h={class:"documents"},v=f(()=>e.createElementVNode("h3",{class:"mn-small"},"Список документов",-1)),k={class:"mn-big cols-4"},y=["onClick"],E={class:"mn-small"},B={class:"t-semi t-transp radius-small"},b={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",h,[v,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:x=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",E,e.toDisplayString(t.name),1),e.createElementVNode("p",B,e.toDisplayString(t.status),1)],8,y))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(b,[["__scopeId","data-v-20739d92"]]);exports.default=g;
@@ -3,7 +3,7 @@ import { useRouter as I, useRoute as g } from "vue-router";
3
3
  import D from "../../../../components/Field/Field.vue2.js";
4
4
  import "vue-i18n";
5
5
  import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
6
- import "../../../../components/Popup/Popup.vue.js";
6
+ import "../../../../components/Popup/Popup.vue2.js";
7
7
  import "../../../../components/Button/Button.vue.js";
8
8
  import "./Documents.vue2.js";
9
9
  const E = (n) => (w("data-v-20739d92"), n = n(), C(), n), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-small" }, "Список документов", -1)), N = { class: "mn-big cols-4" }, O = ["onClick"], R = { class: "mn-small" }, U = { class: "t-semi t-transp radius-small" }, V = {
@@ -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.vue.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/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;
@@ -9,20 +9,20 @@ import "../../../../components/Dropdown/Dropdown.vue2.js";
9
9
  import { state as k } from "../../../auth/store/auth.js";
10
10
  import "../../store/memberships.js";
11
11
  import "vue-i18n";
12
- import "../../../../components/Popup/Popup.vue.js";
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 B from "../blocks/EmptyState.vue.js";
15
+ import $ 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 C from "../blocks/CardOrganization.vue.js";
22
+ import B from "../blocks/CardOrganization.vue.js";
23
23
  import "./Unit.vue.js";
24
24
  import "./Organizations.vue2.js";
25
- const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: "" }, O = {
25
+ const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: "" }, N = {
26
26
  key: 1,
27
27
  class: "cols-1"
28
28
  }, te = {
@@ -50,16 +50,16 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { 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, S) => (t(), n("div", M, [
54
- f("div", N, [
55
- o.value < 1 ? (t(), p(B, {
53
+ }), (e, O) => (t(), n("div", C, [
54
+ f("div", M, [
55
+ o.value < 1 ? (t(), p($, {
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", O, [
62
- (t(!0), n(g, null, h(o.value, (u) => (t(), p(C, {
61
+ }, null, 8, ["callback"])) : (t(), n("div", N, [
62
+ (t(!0), n(g, null, h(o.value, (u) => (t(), p(B, {
63
63
  key: u._id,
64
64
  organization: u,
65
65
  user: k.user,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),i=require("./components/pages/Organizations.vue.cjs"),a=require("./components/pages/DepartmentEdit.vue.cjs"),n=require("./components/blocks/CardOrganization.vue.cjs"),o=require("./components/blocks/EditArray.vue.cjs"),s=require("./components/blocks/User.vue.cjs"),u=require("./components/blocks/Unit.vue.cjs"),d=require("./components/blocks/DepartmentSub.vue.cjs"),c=require("./components/blocks/DepartmentMemberModify.vue.cjs"),l=require("./components/blocks/CardDepartment.vue.cjs"),m=require("./components/blocks/Rating.vue.cjs"),q=require("./components/blocks/EmptyState.vue.cjs"),f=require("./components/blocks/Contacts.vue.cjs"),g=require("./components/blocks/Socials.vue.cjs"),p=require("./components/sections/MembersAdd.vue.cjs"),b=require("./components/sections/FeedDepartments.vue.cjs"),D=require("./components/sections/DetailsTab.vue.cjs"),z=require("./components/sections/Organizations.vue.cjs"),S=require("./components/sections/Publics.vue.cjs"),M=require("./components/sections/Documents.vue.cjs"),O=require("./components/sections/MembersList.vue.cjs"),y=require("./components/elements/ButtonToggleMembership.vue.cjs"),E=require("./store/invites.cjs"),C=require("./store/departments.cjs"),T=require("./store/memberships.cjs"),h=require("./store/organizations.cjs"),A=require("./router/organizations.cjs");exports.Organization=e.default;exports.Department=t.default;exports.OrganizationEdit=r.default;exports.Organizations=i.default;exports.DepartmentEdit=a.default;exports.CardOrganization=n.default;exports.EditArray=o.default;exports.User=s.default;exports.Unit=u.default;exports.DepartmentSub=d.default;exports.DepartmentMemberModify=c.default;exports.CardDepartment=l.default;exports.Rating=m.default;exports.EmptyState=q.default;exports.Contacts=f.default;exports.Socials=g.default;exports.MembersAdd=p.default;exports.FeedDepartments=b.default;exports.DetailsTab=D.default;exports.OrganizationsSection=z.default;exports.Publics=S.default;exports.Documents=M.default;exports.MembersList=O.default;exports.ButtonToggleMembership=y.default;exports.invitesStore=E;exports.departmentsStore=C;exports.membershipsStore=T;exports.organizationStore=h;exports.organizationsRouter=A.default;
1
+ "use strict";Object.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,60 +1,63 @@
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";
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
+ };
30
61
  export {
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
62
+ mm as default
60
63
  };
@@ -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.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
+ "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,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.vue.js";
3
+ import u from "../elements/THC.vue2.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.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
+ "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,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.vue2.js";
2
+ import g from "../../../../components/Popup/Popup.vue.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=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
+ "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.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
- };
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="";exports.default=e;
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,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.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
+ };
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"),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;
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;
@@ -7,7 +7,7 @@ import "../../../../components/Select/Select.vue.js";
7
7
  import C from "../../../../components/Checkbox/Checkbox.vue.js";
8
8
  import L from "../../../../components/Button/Button.vue2.js";
9
9
  import "vue-i18n";
10
- import "../../../../components/Popup/Popup.vue.js";
10
+ import "../../../../components/Popup/Popup.vue2.js";
11
11
  import A from "../sections/EditProductInfo.vue.js";
12
12
  import u from "../sections/EditParameters.vue.js";
13
13
  import B from "../sections/EditProductImages.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../blocks/Images360.vue.cjs"),u=require("../blocks/ImagesThumbnails.vue.cjs"),h=require("../../../icons/navigation/IconEdit.vue.cjs");require("../elements/THC.vue2.cjs");const g=require("../elements/Price.vue.cjs"),f=require("vue-i18n"),p=require("../../../orders/store/shopcart.cjs"),C={class:"cols-2-1_2 gap-big product-data-wrapper"},k={class:"flex-nowrap flex-column flex"},V={class:"h-100 bg-white radius-medium o-hidden"},E=["src"],w={key:2,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"h-100 w-100",style:{"object-fit":"cover"}},y=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),N=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),B=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),v=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),b=[y,N,B,v],L={class:"h-100 flex-justify flex col"},S={key:0,class:"t-main t-semi p-big"},q={class:"w-100 h1-product mn-thin"},x={key:1,class:"mn-semi"},D={key:2,class:"w-100 mn-medium t-transp"},I={key:3,class:"w-100 mn-medium t-transp"},P={class:"cols-2 w-100 gap-small mn-semi"},M={class:"w-100 pd-small radius-small bg-white product-information"},$={class:"t-demi"},j={class:"max-w-33rem mobile-w-100 t-white gap-small cols-2"},z=["disabled"],T={__name:"SectionProduct",props:{product:{type:Object,required:!0},recommendation:{type:String}},setup(t){const a=t,n=e.computed(()=>a.product.images),l={messages:{en:{airecommend:"AI Recommends You",description:"",addtoorder:"Add to order",fastorder:"Fast Order"},ru:{airecommend:"AI Рекомендует вам",description:"",addtoorder:"Добавить в корзину",fastorder:"Быстрый заказ"}}},{t:i}=f.useI18n(l);function d(o){return!(o.quantity>0)}function s(o){p.actions.addProductToCart(o)}return(o,c)=>(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",k,[e.createElementVNode("div",V,[t.product&&t.product.image3d?(e.openBlock(),e.createBlock(m.default,{key:0,class:"h-100 w-100",imagePath:`/assets/images/products/${t.product.image3d}`,imageCount:36},null,8,["imagePath"])):e.createCommentVNode("",!0),e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-100 w-100",style:{"object-fit":"cover"},src:(o.FILE_SERVER_URL||"")+e.unref(n)[0]},null,8,E)):e.createCommentVNode("",!0),!e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("svg",w,b)):e.createCommentVNode("",!0)]),e.unref(n).length>1?(e.openBlock(),e.createBlock(u.default,{key:0,images:e.unref(n),class:"mn-t-medium"},null,8,["images"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",L,[e.createVNode(h.default,{onClick:c[0]||(c[0]=r=>o.$router.push({name:"ProductEdit",params:{_id:t.product.organization,product:t.product._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),t.recommendation?(e.openBlock(),e.createElementBlock("h2",S,e.toDisplayString(e.unref(i)("airecommend")),1)):e.createCommentVNode("",!0),e.createElementVNode("h1",q,e.toDisplayString(t.product.name),1),e.createVNode(g.default,{product:t.product,size:"big",class:"mn-semi"},null,8,["product"]),t.recommendation?(e.openBlock(),e.createElementBlock("h3",x,e.toDisplayString(t.recommendation),1)):e.createCommentVNode("",!0),t.product.description&&!t.product.localization&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",D,e.toDisplayString(t.product.description),1)):e.createCommentVNode("",!0),t.product.localization&&t.product.localization.length>1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",I,e.toDisplayString(e.unref(i)("description")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",P,[t.product.information.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.product.information,r=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("p",$,e.toDisplayString(r.name),1),e.createElementVNode("p",null,e.toDisplayString(r.value),1)]))),256)):e.createCommentVNode("",!0)]),e.createElementVNode("div",j,[e.createElementVNode("button",{disabled:d(t.product),onClick:c[1]||(c[1]=r=>s(t.product)),class:"w-100 mn-r-small bg-main button"},e.toDisplayString(e.unref(i)("addtoorder")),9,z)])])]))}};exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../blocks/Images360.vue.cjs"),u=require("../blocks/ImagesThumbnails.vue.cjs"),h=require("../../../icons/navigation/IconEdit.vue.cjs");require("../elements/THC.vue.cjs");const g=require("../elements/Price.vue.cjs"),f=require("vue-i18n"),p=require("../../../orders/store/shopcart.cjs"),C={class:"cols-2-1_2 gap-big product-data-wrapper"},k={class:"flex-nowrap flex-column flex"},V={class:"h-100 bg-white radius-medium o-hidden"},E=["src"],w={key:2,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"h-100 w-100",style:{"object-fit":"cover"}},y=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),N=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),B=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),v=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),b=[y,N,B,v],L={class:"h-100 flex-justify flex col"},S={key:0,class:"t-main t-semi p-big"},q={class:"w-100 h1-product mn-thin"},x={key:1,class:"mn-semi"},D={key:2,class:"w-100 mn-medium t-transp"},I={key:3,class:"w-100 mn-medium t-transp"},P={class:"cols-2 w-100 gap-small mn-semi"},M={class:"w-100 pd-small radius-small bg-white product-information"},$={class:"t-demi"},j={class:"max-w-33rem mobile-w-100 t-white gap-small cols-2"},z=["disabled"],T={__name:"SectionProduct",props:{product:{type:Object,required:!0},recommendation:{type:String}},setup(t){const a=t,n=e.computed(()=>a.product.images),l={messages:{en:{airecommend:"AI Recommends You",description:"",addtoorder:"Add to order",fastorder:"Fast Order"},ru:{airecommend:"AI Рекомендует вам",description:"",addtoorder:"Добавить в корзину",fastorder:"Быстрый заказ"}}},{t:i}=f.useI18n(l);function d(o){return!(o.quantity>0)}function s(o){p.actions.addProductToCart(o)}return(o,c)=>(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",k,[e.createElementVNode("div",V,[t.product&&t.product.image3d?(e.openBlock(),e.createBlock(m.default,{key:0,class:"h-100 w-100",imagePath:`/assets/images/products/${t.product.image3d}`,imageCount:36},null,8,["imagePath"])):e.createCommentVNode("",!0),e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-100 w-100",style:{"object-fit":"cover"},src:(o.FILE_SERVER_URL||"")+e.unref(n)[0]},null,8,E)):e.createCommentVNode("",!0),!e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("svg",w,b)):e.createCommentVNode("",!0)]),e.unref(n).length>1?(e.openBlock(),e.createBlock(u.default,{key:0,images:e.unref(n),class:"mn-t-medium"},null,8,["images"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",L,[e.createVNode(h.default,{onClick:c[0]||(c[0]=r=>o.$router.push({name:"ProductEdit",params:{_id:t.product.organization,product:t.product._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),t.recommendation?(e.openBlock(),e.createElementBlock("h2",S,e.toDisplayString(e.unref(i)("airecommend")),1)):e.createCommentVNode("",!0),e.createElementVNode("h1",q,e.toDisplayString(t.product.name),1),e.createVNode(g.default,{product:t.product,size:"big",class:"mn-semi"},null,8,["product"]),t.recommendation?(e.openBlock(),e.createElementBlock("h3",x,e.toDisplayString(t.recommendation),1)):e.createCommentVNode("",!0),t.product.description&&!t.product.localization&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",D,e.toDisplayString(t.product.description),1)):e.createCommentVNode("",!0),t.product.localization&&t.product.localization.length>1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",I,e.toDisplayString(e.unref(i)("description")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",P,[t.product.information.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.product.information,r=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("p",$,e.toDisplayString(r.name),1),e.createElementVNode("p",null,e.toDisplayString(r.value),1)]))),256)):e.createCommentVNode("",!0)]),e.createElementVNode("div",j,[e.createElementVNode("button",{disabled:d(t.product),onClick:c[1]||(c[1]=r=>s(t.product)),class:"w-100 mn-r-small bg-main button"},e.toDisplayString(e.unref(i)("addtoorder")),9,z)])])]))}};exports.default=T;
@@ -2,7 +2,7 @@ import { computed as w, openBlock as o, createElementBlock as i, createElementVN
2
2
  import v from "../blocks/Images360.vue.js";
3
3
  import k from "../blocks/ImagesThumbnails.vue.js";
4
4
  import L from "../../../icons/navigation/IconEdit.vue.js";
5
- import "../elements/THC.vue2.js";
5
+ import "../elements/THC.vue.js";
6
6
  import x from "../elements/Price.vue.js";
7
7
  import { useI18n as V } from "vue-i18n";
8
8
  import { actions as E } from "../../../orders/store/shopcart.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),g=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),b=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),h=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),v={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(l){const t=l,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function i(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:o[0]||(o[0]=n=>u())},[e.renderSlot(p.$slots,"default")]),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[g,b,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[1]||(o[1]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),h,e.createVNode(d.default,{submit:i,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),g=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),b=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),h=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),v={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(l){const t=l,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function i(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:o[0]||(o[0]=n=>u())},[e.renderSlot(p.$slots,"default")]),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[g,b,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[1]||(o[1]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),h,e.createVNode(d.default,{submit:i,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};exports.default=v;
@@ -1,5 +1,5 @@
1
1
  import { reactive as d, ref as f, openBlock as g, createElementBlock as b, Fragment as h, createElementVNode as o, renderSlot as y, createVNode as a, withCtx as l, createTextVNode as _ } from "vue";
2
- import v from "../../../../components/Popup/Popup.vue2.js";
2
+ import v from "../../../../components/Popup/Popup.vue.js";
3
3
  import w from "../../../../components/Button/Button.vue2.js";
4
4
  import S from "../../../../components/Select/Select.vue2.js";
5
5
  import { actions as k } from "../../store/reports.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./store/reports.cjs");exports.reportsStore=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./store/reports.cjs"),t={reportsStore:e};exports.default=t;
@@ -1,4 +1,10 @@
1
1
  import * as r from "./store/reports.js";
2
+ const t = {
3
+ // Profile,
4
+ // ProfileEdit,
5
+ reportsStore: r
6
+ // usersRoutes
7
+ };
2
8
  export {
3
- r as reportsStore
9
+ t as default
4
10
  };