@ozdao/prometheus-framework 0.2.25 → 0.2.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/dist/auth.server.js +1 -1
  2. package/dist/auth.server.mjs +1 -1
  3. package/dist/globals.server.js +1 -1
  4. package/dist/globals.server.mjs +1 -1
  5. package/dist/mailing-18191799.mjs +50 -0
  6. package/dist/mailing-263ed61c.js +49 -0
  7. package/dist/main.css +1 -1
  8. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  10. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  12. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  14. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  16. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  18. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  20. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  22. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  24. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  28. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  30. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  32. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  34. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  36. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  38. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  40. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  42. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  44. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  46. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  52. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  54. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  56. package/dist/style.css +1 -1
  57. package/package.json +1 -1
  58. package/src/modules/globals/utils/mailing.js +2 -2
  59. package/src/styles/base/all.scss +1 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue2.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-v-center gap-big flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,f=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),h=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>r.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(r.value))),b=async()=>{g.value=!0,await s.actions.fetchGallery(d,f),g.value=!1},c=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),k=a=>{W.value?y(a):(c.value="modal",t.value.image=a,p())},y=a=>{c.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let r=e.ref("all");const B=a=>{r.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,f),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,b())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase",{"t-transp":e.unref(r)!==l,"pd-thin bg-main radius-small":e.unref(r)===l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-big object-fit-cover",onClick:Q=>k(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&c.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&c.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-b-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-4c5bced8"]]);exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-v-center gap-big flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,f=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),h=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>r.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(r.value))),b=async()=>{g.value=!0,await s.actions.fetchGallery(d,f),g.value=!1},c=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),k=a=>{W.value?y(a):(c.value="modal",t.value.image=a,p())},y=a=>{c.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let r=e.ref("all");const B=a=>{r.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,f),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,b())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase",{"t-transp":e.unref(r)!==l,"pd-thin bg-main radius-small":e.unref(r)===l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-big object-fit-cover",onClick:Q=>k(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&c.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&c.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-b-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-4c5bced8"]]);exports.default=J;
@@ -2,7 +2,7 @@ import { ref as n, computed as D, onMounted as A, openBlock as o, createElementB
2
2
  import { useRoute as H } from "vue-router";
3
3
  import J from "../../../../components/Field/Field.vue2.js";
4
4
  import K from "../../../../components/Button/Button.vue2.js";
5
- import Q from "../../../../components/Select/Select.vue2.js";
5
+ import Q from "../../../../components/Select/Select.vue.js";
6
6
  import X from "../../../../components/Upload/Upload.vue.js";
7
7
  import { state as E, actions as g } from "../../store/gallery.js";
8
8
  import "./GalleryWithCategories.vue2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
@@ -1,7 +1,7 @@
1
1
  import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, withCtx as o, unref as r, createStaticVNode as c, createElementVNode as a } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import "../../../../components/Button/Button.vue.js";
4
- import p from "../../../mobile/components/Menu/Menu.vue.js";
4
+ import p from "../../../mobile/components/Menu/Menu.vue2.js";
5
5
  import n from "../../../mobile/components/Menu/MenuItem.vue.js";
6
6
  import { useRoute as d, useRouter as h } from "vue-router";
7
7
  import "../../../auth/store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Menu.vue2.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,13 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
2
- import "./Menu.vue2.js";
3
- const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
4
- __name: "Menu",
5
- setup(s) {
6
- return (e, i) => (t(), o("section", r, [
7
- n(e.$slots, "default")
8
- ]));
9
- }
10
- };
1
+ const e = "";
11
2
  export {
12
- d as default
3
+ e as default
13
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("./Menu.vue.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
@@ -1,4 +1,13 @@
1
- const e = "";
1
+ import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
2
+ import "./Menu.vue.js";
3
+ const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
4
+ __name: "Menu",
5
+ setup(s) {
6
+ return (e, i) => (t(), o("section", r, [
7
+ n(e.$slots, "default")
8
+ ]));
9
+ }
10
+ };
2
11
  export {
3
- e as default
12
+ d as default
4
13
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../../../../components/Field/Field.vue.cjs");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Select/Select.vue.cjs");require("./DepartmentMemberModify.vue2.cjs");const k={class:"br-grey radius-small mn-b-small"},v={key:1,class:"pd-small br-grey br-1px br-solid"},y=["disabled"],B={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(u,{emit:m}){const t=u,a=m,n=e.ref({subdepartment:null});t.department!==null&&(n.value=t.departments[t.department]);function d(o,l,r){return o.filter(s=>!(l.some(b=>b._id===s._id)||r._id===s._id))}const c=e.computed(()=>d(t.alldepartments,t.departments,t.maindepartment));async function i(){t.departments.push(n.value.subdepartment),a("callback")}async function p(){t.departments.splice(t.department,1),a("callback")}return(o,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",k,[t.department===null?(e.openBlock(),e.createBlock(e.unref(f.default),{key:0,modelValue:n.value.subdepartment,"onUpdate:modelValue":l[0]||(l[0]=r=>n.value.subdepartment=r),options:c.value,"get-option-label":r=>r.name,class:"w-100 mn-b-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",v,e.toDisplayString(n.value.name?n.value.name:"Безымянный"),1))]),t.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!n.value.subdepartment,onClick:i,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,y)):e.createCommentVNode("",!0),t.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},g=_.default(B,[["__scopeId","data-v-5e4dcced"]]);exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../../../../components/Field/Field.vue.cjs");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Select/Select.vue2.cjs");require("./DepartmentMemberModify.vue2.cjs");const k={class:"br-grey radius-small mn-b-small"},v={key:1,class:"pd-small br-grey br-1px br-solid"},y=["disabled"],B={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(u,{emit:m}){const t=u,a=m,n=e.ref({subdepartment:null});t.department!==null&&(n.value=t.departments[t.department]);function d(o,l,r){return o.filter(s=>!(l.some(b=>b._id===s._id)||r._id===s._id))}const c=e.computed(()=>d(t.alldepartments,t.departments,t.maindepartment));async function i(){t.departments.push(n.value.subdepartment),a("callback")}async function p(){t.departments.splice(t.department,1),a("callback")}return(o,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",k,[t.department===null?(e.openBlock(),e.createBlock(e.unref(f.default),{key:0,modelValue:n.value.subdepartment,"onUpdate:modelValue":l[0]||(l[0]=r=>n.value.subdepartment=r),options:c.value,"get-option-label":r=>r.name,class:"w-100 mn-b-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",v,e.toDisplayString(n.value.name?n.value.name:"Безымянный"),1))]),t.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!n.value.subdepartment,onClick:i,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,y)):e.createCommentVNode("",!0),t.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},g=_.default(B,[["__scopeId","data-v-5e4dcced"]]);exports.default=g;
@@ -2,7 +2,7 @@ import { ref as v, computed as y, openBlock as r, createElementBlock as l, creat
2
2
  import D from "../../../../../../node_modules/vue-select/dist/vue-select.es.js";
3
3
  import "../../../../components/Field/Field.vue.js";
4
4
  import M from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- import "../../../../components/Select/Select.vue.js";
5
+ import "../../../../components/Select/Select.vue2.js";
6
6
  import "./DepartmentMemberModify.vue2.js";
7
7
  const V = { class: "br-grey radius-small mn-b-small" }, x = {
8
8
  key: 1,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");const v=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs"),N=require("../../../../components/UploadImage/UploadImage.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const m=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const V=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),r=require("../../../../components/Checkbox/Checkbox.vue.cjs"),g=require("../../../../components/Address/Address.vue.cjs"),y=require("../../../../components/LocationMarker/LocationMarker.vue.cjs"),p=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../blocks/EditArray.vue2.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/DepartmentMemberModify.vue2.cjs");require("../blocks/User.vue2.cjs");const t=require("../../../spots/store/spots.cjs"),c=require("../../store/memberships.cjs");require("./DepartmentEdit.vue2.cjs");const l=i=>(e.pushScopeId("data-v-d4f32aeb"),i=i(),e.popScopeId(),i),w={class:"for-transition w-100"},E={class:"pd-b-zero pd-t-zero pd-thin"},q={class:"pd-thin"},x={class:"flex-nowrap flex bg-grey pd-medium radius-big"},k={key:0,class:"mn-r-auto"},P={key:1,class:"mn-r-auto"},S={class:"flex-nowrap flex pd-thin"},D={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},B={class:"flex-stretch flex-column flex"},U={class:"mn-b-thin bg-grey pd-medium o-hidden radius-big"},z=l(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Profile",-1)),I={class:"radius-small flex-nowrap flex"},O={class:"w-100 flex-child-grow-1 flex-child"},A={class:"bg-grey pd-medium o-hidden radius-big"},C=l(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Details",-1)),K=l(()=>e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please the available delivery options:",-1)),T={class:"mn-b-medium flex-nowrap flex"},M=l(()=>e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select the available payment methods:",-1)),G={class:"flex-nowrap flex"},L={class:"bg-grey pd-medium o-hidden radius-big"},R=l(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Location",-1)),Y=l(()=>e.createElementVNode("p",{class:"mn-b-small p-medium"},"Or choose on map:",-1)),j={class:"flex-nowrap flex pd-thin"},F={__name:"DepartmentEdit",setup(i){const u=n.useRouter(),d=n.useRoute();e.ref("details"),e.ref(!1);async function f(){d.params.department&&await c.actions.read(d.params.department),e.ref(c.state.memberships),await t.actions.read(d.params._id),d.params.department&&await t.actions.readOne(d.params.department)}f(),e.ref(t.state.department.members),e.ref(!1),e.ref(null),e.ref(!1),e.ref(null);async function h(){d.params.department&&await t.actions.update(d.params._id,t.state.department),d.params.department||await t.actions.create(d.params._id,t.state.department)}function b(){u.replace({name:"Department",params:{_id:d.params._id,department:t.state.department._id}})}async function _(){await t.actions.delete(d.params._id,t.state.department)}return(o,a)=>(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",E,[e.createVNode(v.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",q,[e.createElementVNode("header",x,[e.unref(d).params.department?(e.openBlock(),e.createElementBlock("h1",k,"Edit Spot")):(e.openBlock(),e.createElementBlock("h1",P,"Create Spot")),e.createElementVNode("section",S,[e.createVNode(p.default,{submit:h,callback:b},{default:e.withCtx(()=>[e.createTextVNode("Save Spot")]),_:1})])])]),e.createElementVNode("div",D,[e.createElementVNode("div",B,[e.createElementVNode("div",U,[z,e.createElementVNode("div",I,[e.createVNode(N.default,{photo:t.state.department.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.department.profile.photo=s),uploadPath:"organizations/"+t.state.department.name+"/avatars",class:"w-8r aspect-1x1 o-hidden mn-r-small radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",O,[e.createVNode(m.default,{field:t.state.department.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.department.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-b-small bg-white radius-small pd-medium",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(m.default,{field:t.state.department.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.department.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:o.organizationName},null,8,["field","validation"])])])]),e.createElementVNode("div",A,[C,K,e.createElementVNode("div",T,[e.createVNode(r.default,{label:"Pickup",name:"Delivery",value:"pickup",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),e.createVNode(r.default,{label:"Delivery",name:"Delivery",value:"courier",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),e.createVNode(r.default,{label:"Post",name:"Delivery",value:"post",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"])]),M,e.createElementVNode("div",G,[e.createVNode(r.default,{label:"Cash",name:"Payment",value:"cash",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.payment},null,8,["radio"]),e.createVNode(r.default,{label:"Bank Transfer",name:"Payment",value:"bank",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.payment},null,8,["radio"]),e.createVNode(r.default,{label:"Crypto",name:"Payment",value:"crypto",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.payment},null,8,["radio"])])])]),e.createElementVNode("div",L,[R,e.createVNode(g.default,{apiKey:o.GOOGLE_MAPS_API_KEY,address:t.state.department.address,location:t.state.department.location,label:"Address",placeholder:"Enter delivery address",class:"bg-white radius-small pd-small mn-b-small","onUpdate:location":a[3]||(a[3]=s=>{t.state.department.location=s}),"onUpdate:address":a[4]||(a[4]=s=>{t.state.department.address=s})},null,8,["apiKey","address","location"]),Y,e.createVNode(y.default,{address:t.state.department.address,location:t.state.department.location,apiKey:o.GOOGLE_MAPS_API_KEY,class:"radius-big o-hidden","onUpdate:location":a[5]||(a[5]=s=>{t.state.department.location=s}),"onUpdate:address":a[6]||(a[6]=s=>{t.state.department.address=s})},null,8,["address","location","apiKey"])])]),e.createElementVNode("section",j,[e.createVNode(p.default,{submit:_,callback:o.redirectToDash,class:"bg-grey"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])])]))}},H=V.default(F,[["__scopeId","data-v-d4f32aeb"]]);exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");const v=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs"),N=require("../../../../components/UploadImage/UploadImage.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const m=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");const V=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),r=require("../../../../components/Checkbox/Checkbox.vue.cjs"),g=require("../../../../components/Address/Address.vue.cjs"),y=require("../../../../components/LocationMarker/LocationMarker.vue.cjs"),p=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../../../node_modules/vue-select/dist/vue-select.es.cjs");require("../blocks/EditArray.vue2.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/DepartmentMemberModify.vue2.cjs");require("../blocks/User.vue2.cjs");const t=require("../../../spots/store/spots.cjs"),c=require("../../store/memberships.cjs");require("./DepartmentEdit.vue2.cjs");const l=i=>(e.pushScopeId("data-v-d4f32aeb"),i=i(),e.popScopeId(),i),w={class:"for-transition w-100"},E={class:"pd-b-zero pd-t-zero pd-thin"},q={class:"pd-thin"},x={class:"flex-nowrap flex bg-grey pd-medium radius-big"},k={key:0,class:"mn-r-auto"},P={key:1,class:"mn-r-auto"},S={class:"flex-nowrap flex pd-thin"},D={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},B={class:"flex-stretch flex-column flex"},U={class:"mn-b-thin bg-grey pd-medium o-hidden radius-big"},z=l(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Profile",-1)),I={class:"radius-small flex-nowrap flex"},O={class:"w-100 flex-child-grow-1 flex-child"},A={class:"bg-grey pd-medium o-hidden radius-big"},C=l(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Details",-1)),K=l(()=>e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please the available delivery options:",-1)),T={class:"mn-b-medium flex-nowrap flex"},M=l(()=>e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select the available payment methods:",-1)),G={class:"flex-nowrap flex"},L={class:"bg-grey pd-medium o-hidden radius-big"},R=l(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Location",-1)),Y=l(()=>e.createElementVNode("p",{class:"mn-b-small p-medium"},"Or choose on map:",-1)),j={class:"flex-nowrap flex pd-thin"},F={__name:"DepartmentEdit",setup(i){const u=n.useRouter(),d=n.useRoute();e.ref("details"),e.ref(!1);async function f(){d.params.department&&await c.actions.read(d.params.department),e.ref(c.state.memberships),await t.actions.read(d.params._id),d.params.department&&await t.actions.readOne(d.params.department)}f(),e.ref(t.state.department.members),e.ref(!1),e.ref(null),e.ref(!1),e.ref(null);async function h(){d.params.department&&await t.actions.update(d.params._id,t.state.department),d.params.department||await t.actions.create(d.params._id,t.state.department)}function b(){u.replace({name:"Department",params:{_id:d.params._id,department:t.state.department._id}})}async function _(){await t.actions.delete(d.params._id,t.state.department)}return(o,a)=>(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",E,[e.createVNode(v.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",q,[e.createElementVNode("header",x,[e.unref(d).params.department?(e.openBlock(),e.createElementBlock("h1",k,"Edit Spot")):(e.openBlock(),e.createElementBlock("h1",P,"Create Spot")),e.createElementVNode("section",S,[e.createVNode(p.default,{submit:h,callback:b},{default:e.withCtx(()=>[e.createTextVNode("Save Spot")]),_:1})])])]),e.createElementVNode("div",D,[e.createElementVNode("div",B,[e.createElementVNode("div",U,[z,e.createElementVNode("div",I,[e.createVNode(N.default,{photo:t.state.department.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.department.profile.photo=s),uploadPath:"organizations/"+t.state.department.name+"/avatars",class:"w-8r aspect-1x1 o-hidden mn-r-small radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",O,[e.createVNode(m.default,{field:t.state.department.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.department.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-b-small bg-white radius-small pd-medium",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(m.default,{field:t.state.department.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.department.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:o.organizationName},null,8,["field","validation"])])])]),e.createElementVNode("div",A,[C,K,e.createElementVNode("div",T,[e.createVNode(r.default,{label:"Pickup",name:"Delivery",value:"pickup",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),e.createVNode(r.default,{label:"Delivery",name:"Delivery",value:"courier",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"]),e.createVNode(r.default,{label:"Post",name:"Delivery",value:"post",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.delivery},null,8,["radio"])]),M,e.createElementVNode("div",G,[e.createVNode(r.default,{label:"Cash",name:"Payment",value:"cash",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.payment},null,8,["radio"]),e.createVNode(r.default,{label:"Bank Transfer",name:"Payment",value:"bank",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.payment},null,8,["radio"]),e.createVNode(r.default,{label:"Crypto",name:"Payment",value:"crypto",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.payment},null,8,["radio"])])])]),e.createElementVNode("div",L,[R,e.createVNode(g.default,{apiKey:o.GOOGLE_MAPS_API_KEY,address:t.state.department.address,location:t.state.department.location,label:"Address",placeholder:"Enter delivery address",class:"bg-white radius-small pd-small mn-b-small","onUpdate:location":a[3]||(a[3]=s=>{t.state.department.location=s}),"onUpdate:address":a[4]||(a[4]=s=>{t.state.department.address=s})},null,8,["apiKey","address","location"]),Y,e.createVNode(y.default,{address:t.state.department.address,location:t.state.department.location,apiKey:o.GOOGLE_MAPS_API_KEY,class:"radius-big o-hidden","onUpdate:location":a[5]||(a[5]=s=>{t.state.department.location=s}),"onUpdate:address":a[6]||(a[6]=s=>{t.state.department.address=s})},null,8,["address","location","apiKey"])])]),e.createElementVNode("section",j,[e.createVNode(p.default,{submit:_,callback:o.redirectToDash,class:"bg-grey"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])])]))}},H=V.default(F,[["__scopeId","data-v-d4f32aeb"]]);exports.default=H;
@@ -5,14 +5,14 @@ import z from "../../../../components/Breadcrumbs/Breadcrumbs.vue2.js";
5
5
  import N from "../../../../components/UploadImage/UploadImage.vue.js";
6
6
  import "../../../../components/Tab/Tab.vue.js";
7
7
  import _ from "../../../../components/Field/Field.vue2.js";
8
- import "../../../../components/Select/Select.vue.js";
8
+ import "../../../../components/Select/Select.vue2.js";
9
9
  import U from "../../../../../../_virtual/_plugin-vue_export-helper.js";
10
10
  import d from "../../../../components/Checkbox/Checkbox.vue.js";
11
11
  import A from "../../../../components/Address/Address.vue.js";
12
12
  import I from "../../../../components/LocationMarker/LocationMarker.vue.js";
13
13
  import b from "../../../../components/Button/Button.vue2.js";
14
14
  import "vue-i18n";
15
- import "../../../../components/Popup/Popup.vue.js";
15
+ import "../../../../components/Popup/Popup.vue2.js";
16
16
  import "../../../../../../node_modules/vue-select/dist/vue-select.es.js";
17
17
  import "../blocks/EditArray.vue2.js";
18
18
  import "../blocks/DepartmentSub.vue2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const q=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../mobile/components/Menu/Menu.vue2.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const _=require("../../../events/components/sections/Feed.vue.cjs"),p=require("../../../community/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/sections/Feed.vue.cjs"),f=require("../sections/DetailsTab.vue.cjs"),b=require("../../../products/components/pages/Products.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 a=require("../../../auth/store/auth.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("../../store/invites.cjs");const l=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs");require("./Organization.vue2.cjs");const y={key:0,class:"pd-thin for-transition w-100"},g={class:"pos-relative"},h={key:0},k={__name:"Organization",setup(N){const c=i.useRouter(),r=i.useRoute();let d=r.query.tab?r.query.tab:"events";const u=e.ref(null);e.onMounted(async()=>{u.value=await o.actions.read({_id:r.params._id,user:a.state.user._id}),await l.actions.read(r.params._id)});const t=e.ref(d);return r.query.tab=t.value,e.watch(t,n=>{c.replace({query:{...r.query,tab:n}})}),(n,s)=>u.value?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{organization:o.state.current,user:a.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(q.default,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=m=>t.value=m),tabs:[{name:"Community",value:"community"},{name:"Events",value:"events"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",g,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="community"?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="events"?(e.openBlock(),e.createBlock(_.default,{key:0,user:a.state.user._id,owner:e.unref(r).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="products"?(e.openBlock(),e.createBlock(b.default,{key:0,organization:o.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="spots"?(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(v.default,{organization:o.state.current,memberships:l.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const q=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const _=require("../../../events/components/sections/Feed.vue.cjs"),p=require("../../../community/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/sections/Feed.vue.cjs"),f=require("../sections/DetailsTab.vue.cjs"),b=require("../../../products/components/pages/Products.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 a=require("../../../auth/store/auth.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("../../store/invites.cjs");const l=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs");require("./Organization.vue2.cjs");const y={key:0,class:"pd-thin for-transition w-100"},g={class:"pos-relative"},h={key:0},k={__name:"Organization",setup(N){const c=i.useRouter(),r=i.useRoute();let d=r.query.tab?r.query.tab:"events";const u=e.ref(null);e.onMounted(async()=>{u.value=await o.actions.read({_id:r.params._id,user:a.state.user._id}),await l.actions.read(r.params._id)});const t=e.ref(d);return r.query.tab=t.value,e.watch(t,n=>{c.replace({query:{...r.query,tab:n}})}),(n,s)=>u.value?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{organization:o.state.current,user:a.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(q.default,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=m=>t.value=m),tabs:[{name:"Community",value:"community"},{name:"Events",value:"events"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",g,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="community"?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="events"?(e.openBlock(),e.createBlock(_.default,{key:0,user:a.state.user._id,owner:e.unref(r).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="products"?(e.openBlock(),e.createBlock(b.default,{key:0,organization:o.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="spots"?(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(v.default,{organization:o.state.current,memberships:l.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}};exports.default=k;
@@ -4,7 +4,7 @@ import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import k from "../../../../components/Tab/Tab.vue2.js";
7
- import "../../../mobile/components/Menu/Menu.vue2.js";
7
+ import "../../../mobile/components/Menu/Menu.vue.js";
8
8
  import "../../../mobile/components/Menu/MenuItem.vue.js";
9
9
  import q from "../../../events/components/sections/Feed.vue.js";
10
10
  import x from "../../../community/components/sections/Feed.vue.js";
@@ -19,7 +19,7 @@ import "../blocks/CardDepartment.vue2.js";
19
19
  import "../../store/departments.js";
20
20
  import { state as n } from "../../../auth/store/auth.js";
21
21
  import "../../../../components/Field/Field.vue.js";
22
- import "../../../../components/Select/Select.vue.js";
22
+ import "../../../../components/Select/Select.vue2.js";
23
23
  import "../../../../components/Button/Button.vue.js";
24
24
  import "../../../middlewares/client/inputs.validation.js";
25
25
  import "../../store/invites.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Popup/Popup.vue.cjs");const h=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const y={class:"for-transition pd-thin"},_=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),V=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),N=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(k){let o,i;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([o,i]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await o,i());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,h.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(E,a)=>(t.openBlock(),t.createElementBlock("div",y,[_,V,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=r=>e.state.current.types=r),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),N,t.createElementVNode("div",q,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=r=>e.state.current.profile.photo=r),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),v]),t.createVNode(l.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=r=>e.state.current.profile.name=r),placeholder:"Name of organization",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=r=>e.state.current.profile.description=r),placeholder:"Brief description of your group",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=r=>e.state.current.profile.tags=r),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(l.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=r=>e.state.current.socials.instagram=r),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=r=>e.state.current.socials.twitter=r),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=r=>e.state.current.socials.facebook=r),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=r=>e.state.current.socials.telegram=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(b.default,{submit:c,callback:m,class:"mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Popup/Popup.vue2.cjs");const h=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const y={class:"for-transition pd-thin"},_=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),V=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),N=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(k){let o,i;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([o,i]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await o,i());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,h.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(E,a)=>(t.openBlock(),t.createElementBlock("div",y,[_,V,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=r=>e.state.current.types=r),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),N,t.createElementVNode("div",q,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=r=>e.state.current.profile.photo=r),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),v]),t.createVNode(l.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=r=>e.state.current.profile.name=r),placeholder:"Name of organization",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=r=>e.state.current.profile.description=r),placeholder:"Brief description of your group",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=r=>e.state.current.profile.tags=r),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(l.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=r=>e.state.current.socials.instagram=r),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=r=>e.state.current.socials.twitter=r),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=r=>e.state.current.socials.facebook=r),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=r=>e.state.current.socials.telegram=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(b.default,{submit:c,callback:m,class:"mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
@@ -6,11 +6,11 @@ import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import v from "../../../../components/FieldTags/BlockTags.vue.js";
7
7
  import "../../../../components/Tab/Tab.vue.js";
8
8
  import i from "../../../../components/Field/Field.vue2.js";
9
- import "../../../../components/Select/Select.vue.js";
9
+ import "../../../../components/Select/Select.vue2.js";
10
10
  import U from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
11
  import k from "../../../../components/UploadImage/UploadImage.vue.js";
12
12
  import T from "../../../../components/Button/Button.vue2.js";
13
- import "../../../../components/Popup/Popup.vue.js";
13
+ import "../../../../components/Popup/Popup.vue2.js";
14
14
  import { state as z } from "../../../auth/store/auth.js";
15
15
  import { actions as s, state as e } from "../../store/organizations.js";
16
16
  import "../../store/memberships.js";
@@ -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-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={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,x)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,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:P=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),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-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);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-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={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,x)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,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:P=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),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-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);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 = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), N = { class: "mn-b-big cols-4" }, O = ["onClick"], R = { class: "mn-b-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"),_=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"),b={class:"mn-b-medium radius-medium pd-semi bg-white"},h=e.createElementVNode("h3",{class:"mn-b-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-b-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",b,[h,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-b-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-b-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"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.vue.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),b={class:"mn-b-medium radius-medium pd-semi bg-white"},h=e.createElementVNode("h3",{class:"mn-b-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-b-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",b,[h,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-b-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-b-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,6 +1,6 @@
1
1
  import { ref as m, openBlock as l, createElementBlock as o, createElementVNode as e, Fragment as b, renderList as h, 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";
3
+ import k from "../../../../components/Select/Select.vue.js";
4
4
  import C from "../../../../components/Button/Button.vue2.js";
5
5
  import "../../../middlewares/client/inputs.validation.js";
6
6
  import { state as y, actions as V } from "../../store/invites.js";
@@ -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.vue2.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;
@@ -3,13 +3,13 @@ import { useRouter as v, useRoute as z } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/src/js.cookie.js";
4
4
  import "../../../../components/Tab/Tab.vue.js";
5
5
  import "../../../../components/Field/Field.vue.js";
6
- import "../../../../components/Select/Select.vue.js";
6
+ import "../../../../components/Select/Select.vue2.js";
7
7
  import "../../../../components/Button/Button.vue.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";
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
15
  import B from "../blocks/EmptyState.vue.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"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-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),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__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(()=>[b,g,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-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,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=h;
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.vue.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-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),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__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(()=>[b,g,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-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,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=h;
@@ -1,7 +1,7 @@
1
1
  import { reactive as d, ref as f, openBlock as b, createElementBlock as g, 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
- import S from "../../../../components/Select/Select.vue2.js";
4
+ import S from "../../../../components/Select/Select.vue.js";
5
5
  import { actions as k } from "../../store/reports.js";
6
6
  const P = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, " Report Content ", -1), R = /* @__PURE__ */ o("p", { class: "p-medium mn-b-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), x = /* @__PURE__ */ o("p", { class: "p-medium mn-b-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), V = {
7
7
  __name: "FormReport",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const k=require("../../../../components/Dropdown/Dropdown.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.vue.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),h=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../organizations/components/blocks/Socials.vue.cjs"),N=require("../sections/ProfileCompletion.vue.cjs"),V=require("../../../icons/entities/IconEvents.vue.cjs"),B=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),E=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("vue-router"),a=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),y=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const v={key:0,class:"for-transition w-100"},x={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-grey"},M={class:"bg-black pd-thin radius-small"},R=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),U=["src"],D={class:"mn-b-thin"},O={class:"mn-b-thin t-main t-semi"},$={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},L={class:"t-semi mn-b-small"},P={key:5,class:"mn-t-small mn-b-thin"},F=e.createElementVNode("span",null," Backoffice ",-1),j=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),T=e.createElementVNode("span",null,"Posts",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),H=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),J={__name:"Profile",setup(K){const o=f.useRoute(),n=f.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:a.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,b)=>{y.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,b)};function _(){a.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",v,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",x," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(o).params._id===a.state.user._id&&u.value?(e.openBlock(),e.createBlock(N.default,{key:0,user:a.state.user._id,target:t.state.current,cta:!0},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(k.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",M,[e.createVNode(h.default,{user:a.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[R]),_:1},8,["user","target"]),a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(o).params._id===a.state.user._id?(e.openBlock(),e.createBlock(E.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:a.state.user._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,U)):(e.openBlock(),e.createBlock(C.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",D,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Not specified"),1),e.createElementVNode("p",O," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1),e.createElementVNode("p",$,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",L," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),a.state.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:4,user:a.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",P," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(g.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),a.state.access.roles&&a.state.user._id===e.unref(o).params._id&&(a.state.access.roles.includes("ROLE_MODERATOR")||a.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[F]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(V.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),T]),_:1})]),_:1}),a.state.user._id===e.unref(o).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>_())},{default:e.withCtx(()=>[H]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const k=require("../../../../components/Dropdown/Dropdown.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.vue2.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),h=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../organizations/components/blocks/Socials.vue.cjs"),N=require("../sections/ProfileCompletion.vue.cjs"),V=require("../../../icons/entities/IconEvents.vue.cjs"),B=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),E=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("vue-router"),a=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),y=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const v={key:0,class:"for-transition w-100"},x={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-grey"},M={class:"bg-black pd-thin radius-small"},R=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),U=["src"],D={class:"mn-b-thin"},O={class:"mn-b-thin t-main t-semi"},$={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},L={class:"t-semi mn-b-small"},P={key:5,class:"mn-t-small mn-b-thin"},F=e.createElementVNode("span",null," Backoffice ",-1),j=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),T=e.createElementVNode("span",null,"Posts",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),H=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),J={__name:"Profile",setup(K){const o=f.useRoute(),n=f.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:a.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,b)=>{y.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,b)};function _(){a.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",v,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",x," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(o).params._id===a.state.user._id&&u.value?(e.openBlock(),e.createBlock(N.default,{key:0,user:a.state.user._id,target:t.state.current,cta:!0},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(k.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",M,[e.createVNode(h.default,{user:a.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[R]),_:1},8,["user","target"]),a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(o).params._id===a.state.user._id?(e.openBlock(),e.createBlock(E.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:a.state.user._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,U)):(e.openBlock(),e.createBlock(C.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",D,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Not specified"),1),e.createElementVNode("p",O," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1),e.createElementVNode("p",$,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",L," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),a.state.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:4,user:a.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",P," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(g.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),a.state.access.roles&&a.state.user._id===e.unref(o).params._id&&(a.state.access.roles.includes("ROLE_MODERATOR")||a.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[F]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(V.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),T]),_:1})]),_:1}),a.state.user._id===e.unref(o).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>_())},{default:e.withCtx(()=>[H]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=J;
@@ -2,7 +2,7 @@ import { ref as $, onMounted as E, openBlock as a, createElementBlock as p, unre
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import "../../../../components/Button/Button.vue.js";
4
4
  import S from "../../../../components/Dropdown/Dropdown.vue.js";
5
- import k from "../../../mobile/components/Menu/Menu.vue.js";
5
+ import k from "../../../mobile/components/Menu/Menu.vue2.js";
6
6
  import _ from "../../../mobile/components/Menu/MenuItem.vue.js";
7
7
  import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
8
8
  import B from "../../../reports/components/sections/FormReport.vue.js";