@ozdao/prometheus-framework 0.1.44 → 0.1.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  2. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
  3. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
  5. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  7. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  9. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  11. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  13. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  15. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  16. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
  17. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  18. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
  19. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  21. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  25. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +20 -0
  27. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -0
  30. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +199 -0
  31. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -0
  32. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +4 -0
  33. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -0
  34. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +8 -0
  35. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +1 -0
  36. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +14 -0
  37. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +1 -0
  38. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.js +29 -0
  39. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -0
  40. package/dist/prometheus-framework/src/modules/icons/icons.client.js +48 -0
  41. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -0
  42. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +21 -0
  43. package/dist/prometheus-framework/src/modules/icons/socials/vk.vue.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/icons/socials/vk.vue.js +21 -0
  45. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -0
  46. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.js +21 -0
  47. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  51. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  53. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  61. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  63. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  77. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  81. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  83. package/dist/style.css +1 -1
  84. package/package.json +1 -1
  85. package/src/modules/gallery/gallery.client.js +2 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Select/Select.vue2.cjs");const f=require("../../../../components/DatePicker/DatePicker.vue.cjs"),i=require("../../store/events.cjs"),m={class:"pd-thin min-h-100vh"},g=e.createElementVNode("div",{class:"mn-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),y={class:""},_={__name:"layoutEvents",setup(b){const l=c.useRoute(),d=c.useRouter(),u=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,s={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:u};i.state.filter=s}else{const t={date:u};i.state.filter=t}return e.watch(()=>i.state.filter,(t,s)=>{const a={...l.query};Object.keys(s).forEach(o=>{a[o]&&delete a[o]});const n=Object.fromEntries(Object.entries(t).filter(([o,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([o,r])=>[o,Array.isArray(r)?r.join(","):r]));Object.assign(a,n),d.push({query:a})},{deep:!0}),(t,s)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createVNode(f.default,{date:i.state.filter.date,"onUpdate:date":s[0]||(s[0]=n=>i.state.filter.date=n),locale:t.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),g,e.createElementVNode("section",y,[e.createVNode(a,null,{default:e.withCtx(({Component:n,route:o})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:o.query}))]),_:2},1024)]),_:1})])])}}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/DatePicker/DatePicker.vue.cjs"),i=require("../../store/events.cjs"),m={class:"pd-thin min-h-100vh"},g=e.createElementVNode("div",{class:"mn-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),y={class:""},_={__name:"layoutEvents",setup(b){const l=c.useRoute(),d=c.useRouter(),u=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,s={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:u};i.state.filter=s}else{const t={date:u};i.state.filter=t}return e.watch(()=>i.state.filter,(t,s)=>{const a={...l.query};Object.keys(s).forEach(o=>{a[o]&&delete a[o]});const n=Object.fromEntries(Object.entries(t).filter(([o,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([o,r])=>[o,Array.isArray(r)?r.join(","):r]));Object.assign(a,n),d.push({query:a})},{deep:!0}),(t,s)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createVNode(f.default,{date:i.state.filter.date,"onUpdate:date":s[0]||(s[0]=n=>i.state.filter.date=n),locale:t.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),g,e.createElementVNode("section",y,[e.createVNode(a,null,{default:e.withCtx(({Component:n,route:o})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:o.query}))]),_:2},1024)]),_:1})])])}}};exports.default=_;
@@ -1,6 +1,6 @@
1
1
  import { watch as y, resolveComponent as g, openBlock as u, createElementBlock as _, createVNode as l, createElementVNode as m, withCtx as d, Transition as b, createBlock as h, resolveDynamicComponent as w } from "vue";
2
2
  import { useRoute as D, useRouter as q } from "vue-router";
3
- import "../../../../components/Select/Select.vue2.js";
3
+ import "../../../../components/Select/Select.vue.js";
4
4
  import j from "../../../../components/DatePicker/DatePicker.vue.js";
5
5
  import { state as s } from "../../store/events.js";
6
6
  const k = { class: "pd-thin min-h-100vh" }, E = /* @__PURE__ */ m("div", { class: "mn-thin br-solid br-1px br-grey bg-grey radius-big" }, null, -1), V = { class: "" }, B = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue2.cjs");const N=require("../../../constructor/components/sections/Constructor.vue.cjs"),E=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const y=require("../../../../components/Popup/Popup.vue.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/FieldTags/BlockTags.vue.cjs"),P=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/UploadImage/UploadImage.vue.cjs"),B=require("../../../../components/Button/Button.vue2.cjs"),v=require("vue-router"),s=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),D=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const U={key:0,class:"h-100 pd-thin"},T={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},z=e.createElementVNode("h4",null,"Upload Event Cover",-1),O=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),$=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),M={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},S={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},A={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},R=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),F=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),j={key:0,class:"mn-thin"},H={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},G={__name:"EditEvent",setup(J){const i=v.useRoute(),d=v.useRouter();let t=e.ref(null),p=e.ref(null);const m=e.ref([]),r=e.ref(null),n=e.ref(),h=()=>({top:0,left:0});e.onMounted(async()=>{if(i.params.url){const a=await s.read({user:u.state.user._id,url:i.params.url});t.value=a.pop();const l=t.value.date.start,_=t.value.date.end;n.value=[l,_]}else{s.clean(),t.value=s.state.current;const a=new Date,l=new Date;n.value=[a,l]}t.value.owner||(t.value.owner={target:u.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:u.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await D.actions.read({user:u.state.user._id,postable:u.state.user._id,limit:100});p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const c=e.ref(!1);function g(){c.value=!0}function b(){c.value=!1}function k(){m.value.length>0&&m.value.map(o=>o.text),t.value.status="draft",t.value.date={start:n.value[0],end:n.value[1]},i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)})}function V(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:n.value[0],end:n.value[1]},console.log(n.value),i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)})}function w(){confirm("Are you sure you want to delete this event?")&&s.remove(t.value._id).then(o=>{d.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.error(o)})}return(o,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",U,[e.createElementVNode("div",T,[e.createVNode(x.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"users/"+u.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),z]),e.createVNode(f.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),O,e.createVNode(e.unref(E.default),{modelValue:n.value,"onUpdate:modelValue":a[3]||(a[3]=l=>n.value=l),"alt-position":h,range:"",class:"mn-semi"},null,8,["modelValue"]),$,e.unref(t)?(e.openBlock(),e.createElementBlock("section",M,[e.createVNode(N.default,{content:e.unref(t).content,onUpdate:a[4]||(a[4]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",S,[e.createElementVNode("div",A,[e.unref(i).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[5]||(a[5]=l=>w()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[6]||(a[6]=l=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[7]||(a[7]=l=>g()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:b,isPopupOpen:c.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[R,e.createVNode(q.default,{onTagsChanged:a[8]||(a[8]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),F,e.createVNode(C.default,{modelValue:r.value,"onUpdate:modelValue":a[9]||(a[9]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",j,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(P.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[10]||(a[10]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(B.default,{submit:V,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=G;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue.cjs");const N=require("../../../constructor/components/sections/Constructor.vue.cjs"),E=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const y=require("../../../../components/Popup/Popup.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/FieldTags/BlockTags.vue.cjs"),P=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/UploadImage/UploadImage.vue.cjs"),B=require("../../../../components/Button/Button.vue2.cjs"),v=require("vue-router"),s=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),D=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const U={key:0,class:"h-100 pd-thin"},T={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},z=e.createElementVNode("h4",null,"Upload Event Cover",-1),O=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),$=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),M={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},S={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},A={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},R=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),F=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),j={key:0,class:"mn-thin"},H={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},G={__name:"EditEvent",setup(J){const i=v.useRoute(),d=v.useRouter();let t=e.ref(null),p=e.ref(null);const m=e.ref([]),r=e.ref(null),n=e.ref(),h=()=>({top:0,left:0});e.onMounted(async()=>{if(i.params.url){const a=await s.read({user:u.state.user._id,url:i.params.url});t.value=a.pop();const l=t.value.date.start,_=t.value.date.end;n.value=[l,_]}else{s.clean(),t.value=s.state.current;const a=new Date,l=new Date;n.value=[a,l]}t.value.owner||(t.value.owner={target:u.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:u.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await D.actions.read({user:u.state.user._id,postable:u.state.user._id,limit:100});p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const c=e.ref(!1);function g(){c.value=!0}function b(){c.value=!1}function k(){m.value.length>0&&m.value.map(o=>o.text),t.value.status="draft",t.value.date={start:n.value[0],end:n.value[1]},i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)})}function V(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:n.value[0],end:n.value[1]},console.log(n.value),i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)})}function w(){confirm("Are you sure you want to delete this event?")&&s.remove(t.value._id).then(o=>{d.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.error(o)})}return(o,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",U,[e.createElementVNode("div",T,[e.createVNode(x.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"users/"+u.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),z]),e.createVNode(f.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),O,e.createVNode(e.unref(E.default),{modelValue:n.value,"onUpdate:modelValue":a[3]||(a[3]=l=>n.value=l),"alt-position":h,range:"",class:"mn-semi"},null,8,["modelValue"]),$,e.unref(t)?(e.openBlock(),e.createElementBlock("section",M,[e.createVNode(N.default,{content:e.unref(t).content,onUpdate:a[4]||(a[4]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",S,[e.createElementVNode("div",A,[e.unref(i).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[5]||(a[5]=l=>w()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[6]||(a[6]=l=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[7]||(a[7]=l=>g()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:b,isPopupOpen:c.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[R,e.createVNode(q.default,{onTagsChanged:a[8]||(a[8]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),F,e.createVNode(C.default,{modelValue:r.value,"onUpdate:modelValue":a[9]||(a[9]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",j,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(P.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[10]||(a[10]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(B.default,{submit:V,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=G;
@@ -1,9 +1,9 @@
1
1
  import { ref as u, onMounted as $, unref as l, openBlock as d, createElementBlock as m, createElementVNode as i, createVNode as s, createCommentVNode as p, withCtx as _, createTextVNode as T } from "vue";
2
- import "../../../constructor/components/elements/Textarea.vue2.js";
2
+ import "../../../constructor/components/elements/Textarea.vue.js";
3
3
  import z from "../../../constructor/components/sections/Constructor.vue.js";
4
4
  import N from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
5
5
  import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
6
- import O from "../../../../components/Popup/Popup.vue.js";
6
+ import O from "../../../../components/Popup/Popup.vue2.js";
7
7
  import w from "../../../../components/Field/Field.vue2.js";
8
8
  import A from "../../../../components/FieldTags/BlockTags.vue.js";
9
9
  import B from "../../../../components/Checkbox/Checkbox.vue.js";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../globals/components/sections/Title.vue.cjs"),l=require("../sections/GalleryWithCategories.vue.cjs"),o={class:"wrapper"},s={style:{"min-height":"100vh"}},a={__name:"Gallery",setup(i){return(t,c)=>(e.openBlock(),e.createElementBlock("div",o,[e.createVNode(r.default,{text:t.$t("gallery.title"),class:"pd-medium"},null,8,["text"]),e.createElementVNode("div",s,[e.createVNode(l.default)])]))}};exports.default=a;
@@ -0,0 +1,20 @@
1
+ import { openBlock as r, createElementBlock as o, createVNode as e, createElementVNode as l } from "vue";
2
+ import a from "../../../globals/components/sections/Title.vue.js";
3
+ import s from "../sections/GalleryWithCategories.vue.js";
4
+ const i = { class: "wrapper" }, c = { style: { "min-height": "100vh" } }, h = {
5
+ __name: "Gallery",
6
+ setup(m) {
7
+ return (t, n) => (r(), o("div", i, [
8
+ e(a, {
9
+ text: t.$t("gallery.title"),
10
+ class: "pd-medium"
11
+ }, null, 8, ["text"]),
12
+ l("div", c, [
13
+ e(s)
14
+ ])
15
+ ]));
16
+ }
17
+ };
18
+ export {
19
+ h as default
20
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/Button/Button.vue2.cjs"),M=require("../../../../components/Select/Select.vue.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-d6a1c805"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},$={class:"mn-semi flex-v-center flex-nowrap flex"},D=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),T=["data-id"],U=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-thin"},A=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Size",-1)),H=c(()=>e.createElementVNode("br",null,null,-1)),R={class:"pd-2px radius-big d-inline-block bg-grey"},J={class:"t-black p-small mn-small uppe"},K=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Categories",-1)),Q=c(()=>e.createElementVNode("br",null,null,-1)),W={class:"pd-2px radius-big d-inline-block bg-grey t-semi"},X={class:"flex-nowrap flex"},Y=["onClick"],Z={class:"modal pd-thin"},ee={class:"modal-content radius-big"},te={class:""},le=["src"],oe={key:0,class:"flex-v-center flex m modal pd-big"},ae={class:"modal-content radius-small pd-medium bg-white"},se=["src"],ne=["src"],ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let g=1;const f=10;let _=e.ref(null),k=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>y.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(y.value))),V=async()=>{k.value=!0,await s.actions.fetchGallery(g,f),k.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),v=o=>{console.log(r.value),r.value?N(o):(u.value="modal",t.value.image=o,b())},N=o=>{u.value="edit-modal",t.value=o||{categories:"",size:"",image:null},b()},n=()=>{t.value={categories:"",size:"",image:!1},m.value=null,B()},b=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},B=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},C=[{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"}],x=async o=>{await s.actions.deletePhoto(o)},S=async()=>{await s.actions.updatePhoto(t.value),n()},z=async o=>{if(d.length<1||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({images:d.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(a=>a.trim()):t.value.categories}),n()};let y=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(g,f),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(g+=1,V())}).observe(_.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",$,[D,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>v(null)),class:"t-white t-black bg-second i-big radius-extra"},"+")):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:h,class:"cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),(l,re)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[!r.value&&h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:p=>v(l.image)},null,8,U)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-small h-10r object-fit-cover",onClick:p=>v(l)},null,8,O),e.createElementVNode("p",L,[A,H,e.createElementVNode("span",R,e.toDisplayString(l.size.name),1)]),e.createElementVNode("p",J,[K,Q,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.categories,p=>(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(p),1))),256))]),e.createElementVNode("div",X,[e.createElementVNode("button",{class:"button-small w-100 button",onClick:p=>x(l._id)},"Delete",8,Y)])]))]),_:2},1024)],8,T))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:_,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,le)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof m.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value,class:"radius-small w-100 mn-small h-20r object-fit-cover"},null,8,se)):e.createCommentVNode("",!0),typeof m.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,ne)):e.createCommentVNode("",!0),e.createVNode(M.default,{options:C,label:"Size",select:t.value.size,"onUpdate:select":a[1]||(a[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-thin t-black"},null,8,["select"]),e.createVNode(I.default,{field:t.value.categories,"onUpdate:field":a[2]||(a[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-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,callback:n,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ie=j.default(ce,[["__scopeId","data-v-d6a1c805"]]);exports.default=ie;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/Button/Button.vue2.cjs"),M=require("../../../../components/Select/Select.vue2.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-d6a1c805"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},$={class:"mn-semi flex-v-center flex-nowrap flex"},D=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),T=["data-id"],U=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-thin"},A=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Size",-1)),H=c(()=>e.createElementVNode("br",null,null,-1)),R={class:"pd-2px radius-big d-inline-block bg-grey"},J={class:"t-black p-small mn-small uppe"},K=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Categories",-1)),Q=c(()=>e.createElementVNode("br",null,null,-1)),W={class:"pd-2px radius-big d-inline-block bg-grey t-semi"},X={class:"flex-nowrap flex"},Y=["onClick"],Z={class:"modal pd-thin"},ee={class:"modal-content radius-big"},te={class:""},le=["src"],oe={key:0,class:"flex-v-center flex m modal pd-big"},ae={class:"modal-content radius-small pd-medium bg-white"},se=["src"],ne=["src"],ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let g=1;const f=10;let _=e.ref(null),k=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>y.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(y.value))),V=async()=>{k.value=!0,await s.actions.fetchGallery(g,f),k.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),v=o=>{console.log(r.value),r.value?N(o):(u.value="modal",t.value.image=o,b())},N=o=>{u.value="edit-modal",t.value=o||{categories:"",size:"",image:null},b()},n=()=>{t.value={categories:"",size:"",image:!1},m.value=null,B()},b=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},B=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},C=[{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"}],x=async o=>{await s.actions.deletePhoto(o)},S=async()=>{await s.actions.updatePhoto(t.value),n()},z=async o=>{if(d.length<1||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({images:d.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(a=>a.trim()):t.value.categories}),n()};let y=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(g,f),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(g+=1,V())}).observe(_.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",$,[D,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>v(null)),class:"t-white t-black bg-second i-big radius-extra"},"+")):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:h,class:"cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),(l,re)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[!r.value&&h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:p=>v(l.image)},null,8,U)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-small h-10r object-fit-cover",onClick:p=>v(l)},null,8,O),e.createElementVNode("p",L,[A,H,e.createElementVNode("span",R,e.toDisplayString(l.size.name),1)]),e.createElementVNode("p",J,[K,Q,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.categories,p=>(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(p),1))),256))]),e.createElementVNode("div",X,[e.createElementVNode("button",{class:"button-small w-100 button",onClick:p=>x(l._id)},"Delete",8,Y)])]))]),_:2},1024)],8,T))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:_,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,le)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof m.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value,class:"radius-small w-100 mn-small h-20r object-fit-cover"},null,8,se)):e.createCommentVNode("",!0),typeof m.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,ne)):e.createCommentVNode("",!0),e.createVNode(M.default,{options:C,label:"Size",select:t.value.size,"onUpdate:select":a[1]||(a[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-thin t-black"},null,8,["select"]),e.createVNode(I.default,{field:t.value.categories,"onUpdate:field":a[2]||(a[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-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,callback:n,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ie=j.default(ce,[["__scopeId","data-v-d6a1c805"]]);exports.default=ie;
@@ -1,7 +1,7 @@
1
1
  import { ref as n, computed as q, onMounted as A, openBlock as a, createElementBlock as o, createElementVNode as t, createCommentVNode as f, Fragment as M, renderList as G, unref as L, createVNode as c, Transition as w, withCtx as b, toDisplayString as x, withDirectives as R, vShow as H, createTextVNode as J, pushScopeId as K, popScopeId as Q } from "vue";
2
2
  import W from "../../../../components/Field/Field.vue2.js";
3
3
  import X from "../../../../components/Button/Button.vue2.js";
4
- import Y from "../../../../components/Select/Select.vue.js";
4
+ import Y from "../../../../components/Select/Select.vue2.js";
5
5
  import { state as $, actions as d } from "../../store/gallery.js";
6
6
  import Z from "../../../../components/EditImages/EditImages.vue.js";
7
7
  import "./BackofficeGallery.vue2.js";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.cjs.cjs");const s=require("../../store/gallery.cjs"),S=require("vue-router");require("./GalleryWithCategories.vue2.cjs");const q=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),d=require("../../../../../../_virtual/prometheus-framework.cjs.cjs"),M={class:"pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},F=["onClick"],j=["data-id"],I=["src","onClick"],P={class:"modal pd-thin"},G={class:"modal-content radius-big"},R={class:""},T=["src"],U={key:0,class:"flex-v-center flex m modal pd-big"},$={class:"modal-content radius-small pd-medium bg-white"},D=["src"],L=["src"],O={__name:"GalleryWithCategories",setup(W){S.useRoute();const _=!1,v=e.ref(null),k=["all","place","drinks","people","events"];let u=1;const p=10;let g=e.ref(null),h=e.ref(!1);const y=e.computed(()=>c.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(c.value))),b=async()=>{h.value=!0,await s.actions.fetchGallery(u,p),h.value=!1},r=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),n=e.ref(null),w=a=>{_.value?V(a):(r.value="modal",t.value.image=a,f())},V=a=>{r.value="edit-modal",t.value=a||{categories:"",size:"",image:null},f()},i=()=>{t.value={categories:"",size:"",image:!1},n.value=null,C()},f=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},C=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},E=[{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"}],N=async()=>{await s.actions.updatePhoto(t.value),i()},B=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=m=>{n.value=m.target.result},l.readAsDataURL(o[0])}},x=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}),i()};let c=e.ref("all");const z=a=>{c.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(u,p),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(u+=1,b())}).observe(g.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",M,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(k,l=>e.createElementVNode("a",{key:l,onClick:m=>z(l),class:e.normalizeClass(["h3 uppercase mn-r-big",{"t-transp":e.unref(c)!==l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,F)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:v,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(l,m)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[v.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:H=>w(l.image)},null,8,I)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:g,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",P,[e.createElementVNode("div",G,[e.createElementVNode("div",R,[e.createElementVNode("span",{class:"close",onClick:i},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,T)])])],512),[[e.vShow,t.value.image!==!1&&r.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&r.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",$,[e.createElementVNode("span",{class:"close",onClick:i},"×"),typeof n.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.value,class:"radius-small w-100 mn-small h-20r object-fit-cover"},null,8,D)):e.createCommentVNode("",!0),typeof n.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,L)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(d.__exports.Upload),{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-thin",onFileChange:B,multiple:"true"})),e.createVNode(e.unref(d.__exports.Select),{options:E,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-thin t-black"},null,8,["select"]),e.createVNode(e.unref(d.__exports.Field),{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-medium t-black"},null,8,["field"]),e.createVNode(e.unref(d.__exports.Button),{submit:t.value._id?N:x,callback:i,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},A=q.default(O,[["__scopeId","data-v-4b6c7282"]]);exports.default=A;
@@ -0,0 +1,199 @@
1
+ import { ref as n, computed as L, onMounted as O, openBlock as o, createElementBlock as i, createElementVNode as s, Fragment as S, renderList as E, normalizeClass as T, unref as r, toDisplayString as F, createCommentVNode as c, createVNode as d, Transition as b, withCtx as g, withDirectives as W, vShow as q, createBlock as H, createTextVNode as J } from "vue";
2
+ import "../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.cjs.js";
3
+ import { state as I, actions as h } from "../../store/gallery.js";
4
+ import { useRoute as K } from "vue-router";
5
+ import "./GalleryWithCategories.vue2.js";
6
+ import Q from "../../../../../../_virtual/_plugin-vue_export-helper.js";
7
+ import { __exports as f } from "../../../../../../_virtual/prometheus-framework.cjs.js";
8
+ const X = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" }, Y = ["onClick"], Z = ["data-id"], ee = ["src", "onClick"], le = { class: "modal pd-thin" }, te = { class: "modal-content radius-big" }, ae = { class: "" }, se = ["src"], oe = {
9
+ key: 0,
10
+ class: "flex-v-center flex m modal pd-big"
11
+ }, ie = { class: "modal-content radius-small pd-medium bg-white" }, ne = ["src"], re = ["src"], ce = {
12
+ __name: "GalleryWithCategories",
13
+ setup(de) {
14
+ K();
15
+ const M = !1, k = n(null), j = ["all", "place", "drinks", "people", "events"];
16
+ let _ = 1;
17
+ const w = 10;
18
+ let C = n(null), z = n(!1);
19
+ const B = L(() => p.value === "all" ? I.gallery : I.gallery.filter((t) => t.categories.includes(p.value))), G = async () => {
20
+ z.value = !0, await h.fetchGallery(_, w), z.value = !1;
21
+ }, v = n(null), e = n({
22
+ categories: "",
23
+ size: "",
24
+ image: !1
25
+ }), u = n(null), P = (t) => {
26
+ M.value ? U(t) : (v.value = "modal", e.value.image = t, x());
27
+ }, U = (t) => {
28
+ v.value = "edit-modal", e.value = t || {
29
+ categories: "",
30
+ size: "",
31
+ image: null
32
+ }, x();
33
+ }, m = () => {
34
+ e.value = {
35
+ categories: "",
36
+ size: "",
37
+ image: !1
38
+ }, u.value = null, N();
39
+ }, x = () => {
40
+ document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden";
41
+ }, N = () => {
42
+ document.body.style.overflow = "", document.documentElement.style.overflow = "";
43
+ }, R = [
44
+ { name: "Small", value: "" },
45
+ { name: "Regular", value: "grid-item--width1 grid-item--height1" },
46
+ { name: "Medium", value: "grid-item--width2 grid-item--height2" },
47
+ { name: "Big", value: "grid-item--width3 grid-item--height3" }
48
+ ], V = async () => {
49
+ await h.updatePhoto(e.value), m();
50
+ }, D = (t) => {
51
+ const a = t.files;
52
+ if (e.value.image = a, a && a.length > 0) {
53
+ const l = new FileReader();
54
+ l.onload = (y) => {
55
+ u.value = y.target.result;
56
+ }, l.readAsDataURL(a[0]);
57
+ }
58
+ }, $ = async (t) => {
59
+ if (!e.value.image || !e.value.categories || !e.value.size) {
60
+ console.error("All fields are required.");
61
+ return;
62
+ }
63
+ await h.createPhoto({
64
+ ...e.value,
65
+ size: e.value.size,
66
+ categories: typeof e.value.categories == "string" ? e.value.categories.split(",").map((a) => a.trim()) : e.value.categories
67
+ }), m();
68
+ };
69
+ let p = n("all");
70
+ const A = (t) => {
71
+ p.value = t;
72
+ };
73
+ return O(async () => {
74
+ await h.fetchGallery(_, w), typeof window < "u" && new IntersectionObserver((a) => {
75
+ a.some((l) => l.isIntersecting) && (_ += 1, G());
76
+ }).observe(C.value);
77
+ }), (t, a) => (o(), i("div", null, [
78
+ s("div", X, [
79
+ (o(), i(S, null, E(j, (l) => s("a", {
80
+ key: l,
81
+ onClick: (y) => A(l),
82
+ class: T(["h3 uppercase mn-r-big", { "t-transp": r(p) !== l }])
83
+ }, F(t.$t("gallery.categories." + l)), 11, Y)), 64)),
84
+ c("", !0)
85
+ ]),
86
+ s("div", {
87
+ ref_key: "grid",
88
+ ref: k,
89
+ class: "pd-medium cols-4 gap-thin"
90
+ }, [
91
+ (o(!0), i(S, null, E(r(B), (l, y) => (o(), i("div", {
92
+ key: l.id,
93
+ "data-id": l.id
94
+ }, [
95
+ d(b, {
96
+ name: "scaleIn",
97
+ mode: "in-out"
98
+ }, {
99
+ default: g(() => [
100
+ k.value ? (o(), i("img", {
101
+ key: 0,
102
+ src: "https://thecommunephuket.com/photos/" + l.cover,
103
+ class: "w-100 h-100 o-hidden radius-medium object-fit-cover",
104
+ onClick: (ue) => P(l.image)
105
+ }, null, 8, ee)) : c("", !0)
106
+ ]),
107
+ _: 2
108
+ }, 1024)
109
+ ], 8, Z))), 128)),
110
+ s("div", {
111
+ ref_key: "sentinel",
112
+ ref: C,
113
+ class: "sentinel"
114
+ }, null, 512),
115
+ d(b, { name: "modal" }, {
116
+ default: g(() => [
117
+ W(s("div", le, [
118
+ s("div", te, [
119
+ s("div", ae, [
120
+ s("span", {
121
+ class: "close",
122
+ onClick: m
123
+ }, "×"),
124
+ s("img", {
125
+ src: "https://thecommunephuket.com/photos/" + e.value.image
126
+ }, null, 8, se)
127
+ ])
128
+ ])
129
+ ], 512), [
130
+ [q, e.value.image !== !1 && v.value === "modal"]
131
+ ])
132
+ ]),
133
+ _: 1
134
+ }),
135
+ d(b, { name: "modal" }, {
136
+ default: g(() => [
137
+ e.value.image !== !1 && v.value === "edit-modal" ? (o(), i("div", oe, [
138
+ s("div", ie, [
139
+ s("span", {
140
+ class: "close",
141
+ onClick: m
142
+ }, "×"),
143
+ typeof u.value == "string" ? (o(), i("img", {
144
+ key: 0,
145
+ src: u.value,
146
+ class: "radius-small w-100 mn-small h-20r object-fit-cover"
147
+ }, null, 8, ne)) : c("", !0),
148
+ typeof u.value == "object" && e.value.image !== null ? (o(), i("img", {
149
+ key: 1,
150
+ class: "radius-small w-100 mn-small h-20r object-fit-cover",
151
+ src: "/photos/" + e.value.cover
152
+ }, null, 8, re)) : c("", !0),
153
+ e.value._id ? c("", !0) : (o(), H(r(f.Upload), {
154
+ key: 2,
155
+ id: "photo",
156
+ name: "photo",
157
+ type: "file",
158
+ class: "t-black bg-grey pd-thin radius-small mn-thin",
159
+ onFileChange: D,
160
+ multiple: "true"
161
+ })),
162
+ d(r(f.Select), {
163
+ options: R,
164
+ label: "Size",
165
+ select: e.value.size,
166
+ "onUpdate:select": a[1] || (a[1] = (l) => e.value.size = l),
167
+ placeholder: "Select Size",
168
+ class: "bg-grey pd-thin radius-small mn-thin t-black"
169
+ }, null, 8, ["select"]),
170
+ d(r(f.Field), {
171
+ field: e.value.categories,
172
+ "onUpdate:field": a[2] || (a[2] = (l) => e.value.categories = l),
173
+ type: "text",
174
+ label: "Categories",
175
+ placeholder: "Enter categories for image (comma separated)",
176
+ class: "bg-grey pd-thin radius-small mn-medium t-black"
177
+ }, null, 8, ["field"]),
178
+ d(r(f.Button), {
179
+ submit: e.value._id ? V : $,
180
+ callback: m,
181
+ class: "mn-thin"
182
+ }, {
183
+ default: g(() => [
184
+ J(F(e.value._id ? "Update" : "Create"), 1)
185
+ ]),
186
+ _: 1
187
+ }, 8, ["submit"])
188
+ ])
189
+ ])) : c("", !0)
190
+ ]),
191
+ _: 1
192
+ })
193
+ ], 512)
194
+ ]));
195
+ }
196
+ }, ye = /* @__PURE__ */ Q(ce, [["__scopeId", "data-v-4b6c7282"]]);
197
+ export {
198
+ ye as default
199
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./store/gallery.cjs"),r=require("./router/gallery.router.cjs"),l=require("./components/pages/Gallery.vue.cjs");exports.galleryStore=e;exports.galleryRouter=r.default;exports.galleryPage=l.default;
@@ -0,0 +1,8 @@
1
+ import * as r from "./store/gallery.js";
2
+ import { default as l } from "./router/gallery.router.js";
3
+ import { default as t } from "./components/pages/Gallery.vue.js";
4
+ export {
5
+ t as galleryPage,
6
+ l as galleryRouter,
7
+ r as galleryStore
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{name:"Gallery",path:"gallery",meta:{title_hide:!0},component:()=>Promise.resolve().then(()=>require("../components/pages/Gallery.vue.cjs"))}];exports.default=e;
@@ -0,0 +1,14 @@
1
+ const e = [{
2
+ name: "Gallery",
3
+ path: "gallery",
4
+ meta: {
5
+ title_hide: !0
6
+ },
7
+ component: () => import(
8
+ /* webpackChunkName: 'Gallery' */
9
+ "../components/pages/Gallery.vue.js"
10
+ )
11
+ }];
12
+ export {
13
+ e as default
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n={class:"w-100",itemprop:"name"},r={class:"h1",itemprop:"headline"},a={class:"text-fade-in"},c={class:"text-splitted"},l={__name:"Title",props:{text:{type:String,default:"Dreamy Moments Captured"}},setup(t){const s=t,{text:o}=e.toRefs(s);return(i,d)=>(e.openBlock(),e.createElementBlock("header",n,[e.createElementVNode("h2",r,[e.createElementVNode("span",a,[e.createElementVNode("span",c,e.toDisplayString(e.unref(o)),1)])])]))}};exports.default=l;
@@ -0,0 +1,29 @@
1
+ import { toRefs as n, openBlock as a, createElementBlock as c, createElementVNode as t, toDisplayString as r, unref as p } from "vue";
2
+ const i = {
3
+ class: "w-100",
4
+ itemprop: "name"
5
+ }, l = {
6
+ class: "h1",
7
+ itemprop: "headline"
8
+ }, _ = { class: "text-fade-in" }, d = { class: "text-splitted" }, u = {
9
+ __name: "Title",
10
+ props: {
11
+ text: {
12
+ type: String,
13
+ default: "Dreamy Moments Captured"
14
+ }
15
+ },
16
+ setup(e) {
17
+ const s = e, { text: o } = n(s);
18
+ return (m, h) => (a(), c("header", i, [
19
+ t("h2", l, [
20
+ t("span", _, [
21
+ t("span", d, r(p(o)), 1)
22
+ ])
23
+ ])
24
+ ]));
25
+ }
26
+ };
27
+ export {
28
+ u as default
29
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./placeholders/PlaceholderUserpic.vue.cjs"),t=require("./labels/LabelGooglePlay.vue.cjs"),o=require("./labels/LabelAppStore.vue.cjs"),r=require("./navigation/IconCross.vue.cjs"),n=require("./navigation/IconChevronRight.vue.cjs"),u=require("./navigation/IconEdit.vue.cjs"),l=require("./skeletons/SkeletonEventShort.vue.cjs"),i=require("./skeletons/SkeletonBlogpost.vue.cjs"),a=require("./skeletons/SkeletonOrganization.vue.cjs"),c=require("./skeletons/SkeletonEvent.vue.cjs"),s=require("./socials/vk.vue.cjs"),d=require("./socials/instagram.vue.cjs"),f=require("./socials/telegram.vue.cjs"),q=require("./socials/twitter.vue.cjs"),b=require("./socials/linkedin.vue.cjs"),g=require("./socials/reddit.vue.cjs"),k=require("./socials/dribbble.vue.cjs"),S=require("./socials/facebook.vue.cjs"),I=require("./socials/youtube.vue.cjs"),p=require("./socials/line.vue.cjs"),v=require("./entities/IconCommunity.vue.cjs"),m=require("./entities/IconEvents.vue.cjs"),h=require("./entities/IconGroups.vue.cjs");exports.PlaceholderUserpic=e.default;exports.LabelGooglePlay=t.default;exports.LabelAppStore=o.default;exports.IconCross=r.default;exports.IconChevronRight=n.default;exports.IconEdit=u.default;exports.SkeletonEventShort=l.default;exports.SkeletonBlogpost=i.default;exports.SkeletonOrganization=a.default;exports.SkeletonEvent=c.default;exports.Vk=s.default;exports.Instagram=d.default;exports.Telegram=f.default;exports.Twitter=q.default;exports.Linkedin=b.default;exports.Reddit=g.default;exports.Dribbble=k.default;exports.Facebook=S.default;exports.Youtube=I.default;exports.Line=p.default;exports.IconCommunity=v.default;exports.IconEvents=m.default;exports.IconGroups=h.default;
@@ -0,0 +1,48 @@
1
+ import { default as t } from "./placeholders/PlaceholderUserpic.vue.js";
2
+ import { default as a } from "./labels/LabelGooglePlay.vue.js";
3
+ import { default as l } from "./labels/LabelAppStore.vue.js";
4
+ import { default as d } from "./navigation/IconCross.vue.js";
5
+ import { default as m } from "./navigation/IconChevronRight.vue.js";
6
+ import { default as x } from "./navigation/IconEdit.vue.js";
7
+ import { default as i } from "./skeletons/SkeletonEventShort.vue.js";
8
+ import { default as b } from "./skeletons/SkeletonBlogpost.vue.js";
9
+ import { default as I } from "./skeletons/SkeletonOrganization.vue.js";
10
+ import { default as S } from "./skeletons/SkeletonEvent.vue.js";
11
+ import { default as v } from "./socials/vk.vue.js";
12
+ import { default as L } from "./socials/instagram.vue.js";
13
+ import { default as y } from "./socials/telegram.vue.js";
14
+ import { default as P } from "./socials/twitter.vue.js";
15
+ import { default as T } from "./socials/linkedin.vue.js";
16
+ import { default as z } from "./socials/reddit.vue.js";
17
+ import { default as B } from "./socials/dribbble.vue.js";
18
+ import { default as F } from "./socials/facebook.vue.js";
19
+ import { default as U } from "./socials/youtube.vue.js";
20
+ import { default as Y } from "./socials/line.vue.js";
21
+ import { default as q } from "./entities/IconCommunity.vue.js";
22
+ import { default as J } from "./entities/IconEvents.vue.js";
23
+ import { default as M } from "./entities/IconGroups.vue.js";
24
+ export {
25
+ B as Dribbble,
26
+ F as Facebook,
27
+ m as IconChevronRight,
28
+ q as IconCommunity,
29
+ d as IconCross,
30
+ x as IconEdit,
31
+ J as IconEvents,
32
+ M as IconGroups,
33
+ L as Instagram,
34
+ l as LabelAppStore,
35
+ a as LabelGooglePlay,
36
+ Y as Line,
37
+ T as Linkedin,
38
+ t as PlaceholderUserpic,
39
+ z as Reddit,
40
+ b as SkeletonBlogpost,
41
+ S as SkeletonEvent,
42
+ i as SkeletonEventShort,
43
+ I as SkeletonOrganization,
44
+ y as Telegram,
45
+ P as Twitter,
46
+ v as Vk,
47
+ U as Youtube
48
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../../../../_virtual/_plugin-vue_export-helper.cjs"),c={},n={fill:"none",height:"40",viewBox:"0 0 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg"},o=e.createElementVNode("path",{d:"m33.8716 34.0867h-5.8864v-9.2823c0-2.2133-.0442-5.0622-3.0702-5.0622-3.068 0-3.5362 2.4089-3.5362 4.9v9.4445h-5.8886v-19.0867h5.6544v2.6h.0773c.7908-1.4978 2.7124-3.0822 5.5838-3.0822 5.9637 0 7.0681 3.9511 7.0681 9.0911v10.4778zm-25.02986-21.6978c-.44937.0006-.89443-.0881-1.30967-.2609s-.7925-.4264-1.11014-.7461c-.31765-.3198-.56944-.6995-.74093-1.1174-.17149-.41791-.25932-.86573-.25845-1.31783.00044-.68037.2014-1.34533.57746-1.91079.37607-.56546.91036-1.00603 1.5353-1.26599s1.31247-.32763 1.97564-.19447c.66315.13317 1.27225.46119 1.75005.94259.4779.48141.8032 1.09457.9347 1.76195s.0633 1.359-.1959 1.98744c-.2592.6284-.6978 1.1654-1.2603 1.543s-1.22372.5789-1.89997.5785zm2.95096 21.6978h-5.9041v-19.0867h5.9063v19.0867zm25.0276-34.0867h-33.88483c-1.62566 0-2.93547 1.28889-2.93547 2.88222v34.23558c0 1.5933 1.31201 2.8822 2.93326 2.8822h33.87824c1.6212 0 2.9465-1.2889 2.9465-2.8822v-34.23558c0-1.59333-1.3253-2.88222-2.9465-2.88222h.0066z",fill:"#fff"},null,-1),s=[o];function r(i,h){return e.openBlock(),e.createElementBlock("svg",n,s)}const l=t.default(c,[["render",r]]);exports.default=l;
@@ -0,0 +1,21 @@
1
+ import { openBlock as c, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, s = {
4
+ fill: "none",
5
+ height: "40",
6
+ viewBox: "0 0 40 40",
7
+ width: "40",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ }, h = /* @__PURE__ */ t("path", {
10
+ d: "m33.8716 34.0867h-5.8864v-9.2823c0-2.2133-.0442-5.0622-3.0702-5.0622-3.068 0-3.5362 2.4089-3.5362 4.9v9.4445h-5.8886v-19.0867h5.6544v2.6h.0773c.7908-1.4978 2.7124-3.0822 5.5838-3.0822 5.9637 0 7.0681 3.9511 7.0681 9.0911v10.4778zm-25.02986-21.6978c-.44937.0006-.89443-.0881-1.30967-.2609s-.7925-.4264-1.11014-.7461c-.31765-.3198-.56944-.6995-.74093-1.1174-.17149-.41791-.25932-.86573-.25845-1.31783.00044-.68037.2014-1.34533.57746-1.91079.37607-.56546.91036-1.00603 1.5353-1.26599s1.31247-.32763 1.97564-.19447c.66315.13317 1.27225.46119 1.75005.94259.4779.48141.8032 1.09457.9347 1.76195s.0633 1.359-.1959 1.98744c-.2592.6284-.6978 1.1654-1.2603 1.543s-1.22372.5789-1.89997.5785zm2.95096 21.6978h-5.9041v-19.0867h5.9063v19.0867zm25.0276-34.0867h-33.88483c-1.62566 0-2.93547 1.28889-2.93547 2.88222v34.23558c0 1.5933 1.31201 2.8822 2.93326 2.8822h33.87824c1.6212 0 2.9465-1.2889 2.9465-2.8822v-34.23558c0-1.59333-1.3253-2.88222-2.9465-2.88222h.0066z",
11
+ fill: "#fff"
12
+ }, null, -1), r = [
13
+ h
14
+ ];
15
+ function i(_, l) {
16
+ return c(), e("svg", s, r);
17
+ }
18
+ const v = /* @__PURE__ */ o(n, [["render", i]]);
19
+ export {
20
+ v as default
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../../_virtual/_plugin-vue_export-helper.cjs"),l={},t={fill:"none",height:"40",viewBox:"0 0 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg"},o=e.createElementVNode("path",{d:"m39.5494 28.7878c-.0507-.103-.0942-.1912-.1377-.2648-.6888-1.2576-2.0083-2.8095-3.9513-4.6408l-.0435-.0441-.0218-.0221-.0217-.0221h-.0218c-.8845-.8531-1.4428-1.4268-1.6748-1.721-.4277-.5589-.522-1.1253-.29-1.6989.1668-.434.7903-1.3533 1.8633-2.7507.5655-.7428 1.015-1.3386 1.3485-1.7872 2.3853-3.2214 3.4221-5.2807 3.1031-6.17066l-.1233-.20593c-.0797-.12503-.2972-.24271-.638-.34567-.348-.10297-.7902-.12503-1.3267-.05149l-5.9596.04413c-.0943-.03677-.232-.02942-.4133.00736-.1813.04413-.2683.06619-.2683.06619l-.1015.05148-.0797.0662c-.0725.04412-.145.11767-.2248.22064-.0797.10297-.1522.228-.203.36774-.6525 1.69161-1.3847 3.26551-2.2185 4.72171-.5075.8679-.9788 1.6181-1.4065 2.258-.4278.6398-.783 1.1032-1.073 1.4047-.2901.3016-.5511.5443-.7903.7208-.232.1838-.4133.2574-.5365.228-.1233-.0294-.2393-.0589-.3553-.0809-.1957-.1251-.348-.2942-.464-.5149-.116-.2206-.1957-.4927-.2392-.8163-.0435-.331-.0653-.6105-.0725-.8532-.0073-.2353 0-.5737.0072-1.0076.0145-.4339.0218-.7281.0218-.8826 0-.5295.0072-1.1105.029-1.7357.0217-.6251.0362-1.1179.0507-1.4783s.0218-.7502.0218-1.1547-.0218-.72076-.0725-.95611c-.0508-.228-.1233-.45599-.2175-.66928-.0943-.21329-.2393-.38245-.4278-.50748-.1885-.11768-.4205-.21329-.696-.28684-.7323-.16915-1.6603-.25741-2.7913-.27212-2.5666-.02942-4.2123.13974-4.9446.50748-.29.15445-.551.36038-.783.63251-.2465.3089-.2828.47806-.1015.50747.8265.12503 1.4138.42657 1.7618.90467l.1232.25c.0943.1839.1958.5075.29.9635.0943.4634.1595.9708.1885 1.5298.0653 1.0223.0653 1.8975 0 2.6256-.0725.7282-.1377 1.2945-.1957 1.699-.0653.4045-.1523.7355-.2828.9855-.1232.2501-.2102.4045-.2465.4634-.0435.0588-.0725.0882-.1015.1029-.1812.0662-.3625.103-.5582.103-.1958 0-.4278-.0956-.7033-.2942s-.5655-.4633-.8555-.809c-.2973-.3457-.6308-.8237-1.0078-1.4415-.3698-.6178-.7613-1.346-1.16-2.1844l-.3335-.6104c-.2103-.3898-.49303-.9635-.84829-1.7137-.3625-.7502-.67426-1.471-.94976-2.177-.10875-.2942-.27551-.51484-.50026-.66929l-.1015-.06619c-.06525-.05884-.18126-.11768-.33351-.17652-.15225-.06619-.31175-.11032-.47851-.13974l-5.6696.04413c-.580007 0-.971514.13239-1.181767.39716l-.0797516.12503c-.058001.09561-.0797514.20593-.0797514.36038 0 .15444.0435008.34564.123252.56634.826515 1.9784 1.732778 3.8759 2.704298 5.7146s1.81978 3.3097 2.53754 4.4276c.71777 1.1179 1.45003 2.177 2.19679 3.1699.74677.9929 1.23977 1.6327 1.47903 1.9122.23925.2795.43501.4928.57276.6325l.51473.5075c.3335.3383.8193.7355 1.4573 1.2062.6453.4707 1.3558.934 2.1315 1.39.7831.456 1.6893.8238 2.7188 1.1106 1.0368.2868 2.0446.4045 3.0233.3457h2.3781c.4857-.0441.8482-.1986 1.0948-.4634l.0797-.1029c.058-.0809.1088-.2133.1523-.3898.0507-.1766.0725-.3678.0725-.5811-.0145-.6031.029-1.1473.1377-1.6254.1015-.4854.2175-.8458.3553-1.0885.1305-.2427.2827-.4486.4422-.6178.1668-.1691.2828-.2721.3553-.3015.0652-.0368.1232-.0589.1667-.0736.3335-.1103.7178 0 1.1673.3236.4495.331.87.7355 1.2615 1.2209.3915.4855.8628 1.0223 1.4211 1.6254.551.6031 1.0367 1.0518 1.45 1.346l.4132.25c.2755.1692.638.3236 1.0803.4634.4423.1397.8265.1765 1.16.1029l5.2999-.0809c.522 0 .9352-.0882 1.218-.2647.29-.1766.464-.3678.5147-.5811.058-.2133.058-.4486.0073-.7134-.0435-.2721-.0943-.456-.1378-.5663z",fill:"#fff"},null,-1),n=[o];function r(i,u){return e.openBlock(),e.createElementBlock("svg",t,n)}const s=c.default(l,[["render",r]]);exports.default=s;
@@ -0,0 +1,21 @@
1
+ import { openBlock as c, createElementBlock as e, createElementVNode as l } from "vue";
2
+ import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const o = {}, n = {
4
+ fill: "none",
5
+ height: "40",
6
+ viewBox: "0 0 40 40",
7
+ width: "40",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ }, s = /* @__PURE__ */ l("path", {
10
+ d: "m39.5494 28.7878c-.0507-.103-.0942-.1912-.1377-.2648-.6888-1.2576-2.0083-2.8095-3.9513-4.6408l-.0435-.0441-.0218-.0221-.0217-.0221h-.0218c-.8845-.8531-1.4428-1.4268-1.6748-1.721-.4277-.5589-.522-1.1253-.29-1.6989.1668-.434.7903-1.3533 1.8633-2.7507.5655-.7428 1.015-1.3386 1.3485-1.7872 2.3853-3.2214 3.4221-5.2807 3.1031-6.17066l-.1233-.20593c-.0797-.12503-.2972-.24271-.638-.34567-.348-.10297-.7902-.12503-1.3267-.05149l-5.9596.04413c-.0943-.03677-.232-.02942-.4133.00736-.1813.04413-.2683.06619-.2683.06619l-.1015.05148-.0797.0662c-.0725.04412-.145.11767-.2248.22064-.0797.10297-.1522.228-.203.36774-.6525 1.69161-1.3847 3.26551-2.2185 4.72171-.5075.8679-.9788 1.6181-1.4065 2.258-.4278.6398-.783 1.1032-1.073 1.4047-.2901.3016-.5511.5443-.7903.7208-.232.1838-.4133.2574-.5365.228-.1233-.0294-.2393-.0589-.3553-.0809-.1957-.1251-.348-.2942-.464-.5149-.116-.2206-.1957-.4927-.2392-.8163-.0435-.331-.0653-.6105-.0725-.8532-.0073-.2353 0-.5737.0072-1.0076.0145-.4339.0218-.7281.0218-.8826 0-.5295.0072-1.1105.029-1.7357.0217-.6251.0362-1.1179.0507-1.4783s.0218-.7502.0218-1.1547-.0218-.72076-.0725-.95611c-.0508-.228-.1233-.45599-.2175-.66928-.0943-.21329-.2393-.38245-.4278-.50748-.1885-.11768-.4205-.21329-.696-.28684-.7323-.16915-1.6603-.25741-2.7913-.27212-2.5666-.02942-4.2123.13974-4.9446.50748-.29.15445-.551.36038-.783.63251-.2465.3089-.2828.47806-.1015.50747.8265.12503 1.4138.42657 1.7618.90467l.1232.25c.0943.1839.1958.5075.29.9635.0943.4634.1595.9708.1885 1.5298.0653 1.0223.0653 1.8975 0 2.6256-.0725.7282-.1377 1.2945-.1957 1.699-.0653.4045-.1523.7355-.2828.9855-.1232.2501-.2102.4045-.2465.4634-.0435.0588-.0725.0882-.1015.1029-.1812.0662-.3625.103-.5582.103-.1958 0-.4278-.0956-.7033-.2942s-.5655-.4633-.8555-.809c-.2973-.3457-.6308-.8237-1.0078-1.4415-.3698-.6178-.7613-1.346-1.16-2.1844l-.3335-.6104c-.2103-.3898-.49303-.9635-.84829-1.7137-.3625-.7502-.67426-1.471-.94976-2.177-.10875-.2942-.27551-.51484-.50026-.66929l-.1015-.06619c-.06525-.05884-.18126-.11768-.33351-.17652-.15225-.06619-.31175-.11032-.47851-.13974l-5.6696.04413c-.580007 0-.971514.13239-1.181767.39716l-.0797516.12503c-.058001.09561-.0797514.20593-.0797514.36038 0 .15444.0435008.34564.123252.56634.826515 1.9784 1.732778 3.8759 2.704298 5.7146s1.81978 3.3097 2.53754 4.4276c.71777 1.1179 1.45003 2.177 2.19679 3.1699.74677.9929 1.23977 1.6327 1.47903 1.9122.23925.2795.43501.4928.57276.6325l.51473.5075c.3335.3383.8193.7355 1.4573 1.2062.6453.4707 1.3558.934 2.1315 1.39.7831.456 1.6893.8238 2.7188 1.1106 1.0368.2868 2.0446.4045 3.0233.3457h2.3781c.4857-.0441.8482-.1986 1.0948-.4634l.0797-.1029c.058-.0809.1088-.2133.1523-.3898.0507-.1766.0725-.3678.0725-.5811-.0145-.6031.029-1.1473.1377-1.6254.1015-.4854.2175-.8458.3553-1.0885.1305-.2427.2827-.4486.4422-.6178.1668-.1691.2828-.2721.3553-.3015.0652-.0368.1232-.0589.1667-.0736.3335-.1103.7178 0 1.1673.3236.4495.331.87.7355 1.2615 1.2209.3915.4855.8628 1.0223 1.4211 1.6254.551.6031 1.0367 1.0518 1.45 1.346l.4132.25c.2755.1692.638.3236 1.0803.4634.4423.1397.8265.1765 1.16.1029l5.2999-.0809c.522 0 .9352-.0882 1.218-.2647.29-.1766.464-.3678.5147-.5811.058-.2133.058-.4486.0073-.7134-.0435-.2721-.0943-.456-.1378-.5663z",
11
+ fill: "#fff"
12
+ }, null, -1), r = [
13
+ s
14
+ ];
15
+ function _(f, i) {
16
+ return c(), e("svg", n, r);
17
+ }
18
+ const m = /* @__PURE__ */ t(o, [["render", _]]);
19
+ export {
20
+ m as default
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../../../../_virtual/_plugin-vue_export-helper.cjs"),o={},n={width:"21",height:"14",viewBox:"0 0 21 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r=e.createElementVNode("path",{d:"M19.6758 2.64453C19.4648 1.80078 18.7969 1.13281 17.9883 0.921875C16.4766 0.5 10.5 0.5 10.5 0.5C10.5 0.5 4.48828 0.5 2.97656 0.921875C2.16797 1.13281 1.5 1.80078 1.28906 2.64453C0.867188 4.12109 0.867188 7.28516 0.867188 7.28516C0.867188 7.28516 0.867188 10.4141 1.28906 11.9258C1.5 12.7695 2.16797 13.4023 2.97656 13.6133C4.48828 14 10.5 14 10.5 14C10.5 14 16.4766 14 17.9883 13.6133C18.7969 13.4023 19.4648 12.7695 19.6758 11.9258C20.0977 10.4141 20.0977 7.28516 20.0977 7.28516C20.0977 7.28516 20.0977 4.12109 19.6758 2.64453ZM8.53125 10.1328V4.4375L13.5234 7.28516L8.53125 10.1328Z",fill:"white"},null,-1),l=[r];function c(s,u){return e.openBlock(),e.createElementBlock("svg",n,l)}const i=t.default(o,[["render",c]]);exports.default=i;
@@ -0,0 +1,21 @@
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
+ import n from "../../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const c = {}, r = {
4
+ width: "21",
5
+ height: "14",
6
+ viewBox: "0 0 21 14",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ }, s = /* @__PURE__ */ o("path", {
10
+ d: "M19.6758 2.64453C19.4648 1.80078 18.7969 1.13281 17.9883 0.921875C16.4766 0.5 10.5 0.5 10.5 0.5C10.5 0.5 4.48828 0.5 2.97656 0.921875C2.16797 1.13281 1.5 1.80078 1.28906 2.64453C0.867188 4.12109 0.867188 7.28516 0.867188 7.28516C0.867188 7.28516 0.867188 10.4141 1.28906 11.9258C1.5 12.7695 2.16797 13.4023 2.97656 13.6133C4.48828 14 10.5 14 10.5 14C10.5 14 16.4766 14 17.9883 13.6133C18.7969 13.4023 19.4648 12.7695 19.6758 11.9258C20.0977 10.4141 20.0977 7.28516 20.0977 7.28516C20.0977 7.28516 20.0977 4.12109 19.6758 2.64453ZM8.53125 10.1328V4.4375L13.5234 7.28516L8.53125 10.1328Z",
11
+ fill: "white"
12
+ }, null, -1), _ = [
13
+ s
14
+ ];
15
+ function i(l, C) {
16
+ return e(), t("svg", r, _);
17
+ }
18
+ const f = /* @__PURE__ */ n(c, [["render", i]]);
19
+ export {
20
+ f as default
21
+ };
@@ -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-small"><h2 class="mn-small">About No More Snow CO., LTD.</h2><p class="mn-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-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-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-small"><h2 class="mn-small">About No More Snow CO., LTD.</h2><p class="mn-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-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-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;