@ozdao/prometheus-framework 0.2.91 → 0.2.92

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. package/dist/events.server.js +5 -3
  2. package/dist/events.server.mjs +5 -3
  3. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  5. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -94
  7. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +94 -1
  9. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
  11. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
  13. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  15. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
  17. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  25. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  27. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  29. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  31. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  33. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  35. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  37. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +14 -48
  47. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  49. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  51. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +85 -25
  53. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  55. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +68 -57
  61. package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.cjs +1 -0
  62. package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.js +74 -0
  63. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/landing/landing.client.js +4 -2
  65. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  67. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +6 -8
  77. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  83. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  87. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  89. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  91. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +36 -25
  95. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  103. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  107. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  117. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  121. package/dist/style.css +1 -1
  122. package/package.json +1 -1
  123. package/src/modules/events/components/layouts/layoutEvents.vue +2 -59
  124. package/src/modules/events/components/pages/Events.vue +106 -23
  125. package/src/modules/events/controllers/events.controller.js +6 -3
  126. package/src/modules/globals/components/blocks/CardHeader.vue +29 -4
  127. package/src/modules/landing/landing.client.js +3 -1
  128. package/src/modules/orders/components/sections/SubscribeNewsletter.vue +2 -2
  129. package/src/modules/orders/router/orders.backoffice.router.js +2 -4
  130. package/src/modules/products/components/blocks/CardProduct.vue +31 -20
  131. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../../../components/Feed/Feed.vue.cjs"),N=require("../../../../components/Block/Block.vue.cjs"),x=require("../../../../components/Popup/Popup.vue.cjs"),u=require("../../../../components/Field/Field.vue.cjs"),d=require("../../../../components/Button/Button.vue.cjs"),V=require("../elements/ButtonCheck.vue.cjs"),q=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs"),b=require("vue-router"),E=require("../../store/events.cjs"),C=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m=require("../../store/tickets.cjs");require("./EditEventTickets.vue2.cjs");const T={key:0,class:"h-100 pd-thin"},P={class:"mn-b-medium flex-v-center flex-nowrap flex"},S=e.createElementVNode("h2",{class:"mn-r-medium"},"Tickets",-1),D=["onClick"],U={class:"radius-big bg-grey gap-small pd-medium flex-v-center flex-nowrap flex pos-relative mn-b-thin"},A=["href"],F=["src"],O={class:"mn-r-auto"},M={class:"h4"},R={class:"h5 t-transp mn-b-thin"},I={class:"pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase"},L={__name:"EditEventTickets",setup(Q){var h;const g=b.useRoute();b.useRouter();let n=e.ref(null);const c=e.ref([{name:"",email:"",target:(h=n.value)==null?void 0:h._id,type:"event",quantity:1}]),i=e.ref(!1);function _(r){var l;i.value=!0,c.value=[{name:"",email:"",target:(l=n.value)==null?void 0:l._id,type:"event",quantity:1}]}function p(){i.value=!1}const s=e.ref(!1);e.onMounted(async()=>{const r=await E.read({user:C.state.user._id,url:g.params.url});n.value=r.pop()});async function w(){try{const r=await m.actions.create(c.value);s.value=!s.value}catch(r){console.log(r)}}async function f(r,l){if(confirm("Are you sure you want to deactivate this event?"))try{const t=await m.actions.update({...r,status:l});s.value=!s.value}catch(t){console.error(t)}}return(r,l)=>e.unref(n)?(e.openBlock(),e.createElementBlock("article",T,[e.createElementVNode("header",P,[S,e.createElementVNode("button",{onClick:l[0]||(l[0]=t=>_()),class:"radius-extra uppercase button-small flex-child flex-child-shrink-0 hover-scale-1 cursor-pointer t-white bg-second"}," Add Tickets "),e.createVNode(V.default,{onQrcodecheck:l[1]||(l[1]=t=>s.value=!s.value),class:"w-100 pd-medium mn-auto"})]),e.createVNode(x.default,{title:"Добавить участника",onClosePopup:p,isPopupOpen:i.value,class:"w-max-40r"},{default:e.withCtx(()=>[e.createVNode(N.default,{title:"Add tickets",placeholder:"No parameters added yet",class:"cols-1 mn-b-thin gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:a},[e.createVNode(u.default,{field:t.name,"onUpdate:field":o=>t.name=o,placeholder:"Name",class:"w-50 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.email,"onUpdate:field":o=>t.email=o,placeholder:"Email",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.quantity,"onUpdate:field":o=>t.quantity=o,placeholder:"Quantity",type:"number",class:"w-25 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),a<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[2]||(l[2]=()=>c.value.push({name:"",value:"",target:e.unref(n)._id,type:"event",quantity:1})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>c.value.splice(a,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(q.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,D))]))),128)),e.createVNode(d.default,{submit:w,callback:p,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Create Tickets ")]),_:1})]),_:1})]),_:1},8,["isPopupOpen"]),e.createVNode(y.default,{search:!0,states:{empty:{title:"No Tickets Found",description:"Currently, there are no tickets."}},store:{read:t=>m.actions.read(t),state:null},options:{target:e.unref(n)._id},external:s.value},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(a,o)=>{var v,k;return e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("a",{href:a.image,target:"_blank"},[e.createElementVNode("img",{src:a.qrcode,class:"radius-small h-5r w-5r"},null,8,F)],8,A),e.createElementVNode("div",O,[e.createElementVNode("p",M,e.toDisplayString(((v=a.client_refactor)==null?void 0:v.name)||"No name")+", "+e.toDisplayString(a.role),1),e.createElementVNode("p",R,e.toDisplayString(((k=a.client_refactor)==null?void 0:k.email)||"No email"),1),e.createElementVNode("span",I,e.toDisplayString(a.status),1)]),a.status!=="deactivated"?(e.openBlock(),e.createBlock(d.default,{key:0,submit:()=>f(a,"deactivated"),callback:r.redirectTo,class:"w-min h-min pd-small bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Deactivate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0),a.status==="deactivated"||a.status==="used"?(e.openBlock(),e.createBlock(d.default,{key:1,submit:()=>f(a,"unused"),callback:r.redirectTo,class:"w-min h-min pd-small bg-green t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Activate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0)])}),256))]),_:1},8,["store","options","external"])])):e.createCommentVNode("",!0)}};exports.default=L;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../../../components/Feed/Feed.vue.cjs"),N=require("../../../../components/Block/Block.vue.cjs"),x=require("../../../../components/Popup/Popup.vue.cjs"),u=require("../../../../components/Field/Field.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),V=require("../elements/ButtonCheck.vue.cjs"),q=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs"),b=require("vue-router"),E=require("../../store/events.cjs"),C=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m=require("../../store/tickets.cjs");require("./EditEventTickets.vue2.cjs");const T={key:0,class:"h-100 pd-thin"},P={class:"mn-b-medium flex-v-center flex-nowrap flex"},S=e.createElementVNode("h2",{class:"mn-r-medium"},"Tickets",-1),D=["onClick"],U={class:"radius-big bg-grey gap-small pd-medium flex-v-center flex-nowrap flex pos-relative mn-b-thin"},A=["href"],F=["src"],O={class:"mn-r-auto"},M={class:"h4"},R={class:"h5 t-transp mn-b-thin"},I={class:"pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase"},L={__name:"EditEventTickets",setup(Q){var h;const g=b.useRoute();b.useRouter();let n=e.ref(null);const c=e.ref([{name:"",email:"",target:(h=n.value)==null?void 0:h._id,type:"event",quantity:1}]),i=e.ref(!1);function _(r){var l;i.value=!0,c.value=[{name:"",email:"",target:(l=n.value)==null?void 0:l._id,type:"event",quantity:1}]}function p(){i.value=!1}const s=e.ref(!1);e.onMounted(async()=>{const r=await E.read({user:C.state.user._id,url:g.params.url});n.value=r.pop()});async function w(){try{const r=await m.actions.create(c.value);s.value=!s.value}catch(r){console.log(r)}}async function f(r,l){if(confirm("Are you sure you want to deactivate this event?"))try{const t=await m.actions.update({...r,status:l});s.value=!s.value}catch(t){console.error(t)}}return(r,l)=>e.unref(n)?(e.openBlock(),e.createElementBlock("article",T,[e.createElementVNode("header",P,[S,e.createElementVNode("button",{onClick:l[0]||(l[0]=t=>_()),class:"radius-extra uppercase button-small flex-child flex-child-shrink-0 hover-scale-1 cursor-pointer t-white bg-second"}," Add Tickets "),e.createVNode(V.default,{onQrcodecheck:l[1]||(l[1]=t=>s.value=!s.value),class:"w-100 pd-medium mn-auto"})]),e.createVNode(x.default,{title:"Добавить участника",onClosePopup:p,isPopupOpen:i.value,class:"w-max-40r"},{default:e.withCtx(()=>[e.createVNode(N.default,{title:"Add tickets",placeholder:"No parameters added yet",class:"cols-1 mn-b-thin gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:a},[e.createVNode(u.default,{field:t.name,"onUpdate:field":o=>t.name=o,placeholder:"Name",class:"w-50 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.email,"onUpdate:field":o=>t.email=o,placeholder:"Email",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.quantity,"onUpdate:field":o=>t.quantity=o,placeholder:"Quantity",type:"number",class:"w-25 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),a<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[2]||(l[2]=()=>c.value.push({name:"",value:"",target:e.unref(n)._id,type:"event",quantity:1})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>c.value.splice(a,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(q.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,D))]))),128)),e.createVNode(d.default,{submit:w,callback:p,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Create Tickets ")]),_:1})]),_:1})]),_:1},8,["isPopupOpen"]),e.createVNode(y.default,{search:!0,states:{empty:{title:"No Tickets Found",description:"Currently, there are no tickets."}},store:{read:t=>m.actions.read(t),state:null},options:{target:e.unref(n)._id},external:s.value},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(a,o)=>{var v,k;return e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("a",{href:a.image,target:"_blank"},[e.createElementVNode("img",{src:a.qrcode,class:"radius-small h-5r w-5r"},null,8,F)],8,A),e.createElementVNode("div",O,[e.createElementVNode("p",M,e.toDisplayString(((v=a.client_refactor)==null?void 0:v.name)||"No name")+", "+e.toDisplayString(a.role),1),e.createElementVNode("p",R,e.toDisplayString(((k=a.client_refactor)==null?void 0:k.email)||"No email"),1),e.createElementVNode("span",I,e.toDisplayString(a.status),1)]),a.status!=="deactivated"?(e.openBlock(),e.createBlock(d.default,{key:0,submit:()=>f(a,"deactivated"),callback:r.redirectTo,class:"w-min h-min pd-small bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Deactivate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0),a.status==="deactivated"||a.status==="used"?(e.openBlock(),e.createBlock(d.default,{key:1,submit:()=>f(a,"unused"),callback:r.redirectTo,class:"w-min h-min pd-small bg-green t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Activate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0)])}),256))]),_:1},8,["store","options","external"])])):e.createCommentVNode("",!0)}};exports.default=L;
@@ -2,8 +2,8 @@ import { ref as p, onMounted as B, unref as _, openBlock as i, createElementBloc
2
2
  import V from "../../../../components/Feed/Feed.vue.js";
3
3
  import F from "../../../../components/Block/Block.vue.js";
4
4
  import O from "../../../../components/Popup/Popup.vue.js";
5
- import g from "../../../../components/Field/Field.vue.js";
6
- import w from "../../../../components/Button/Button.vue.js";
5
+ import g from "../../../../components/Field/Field.vue2.js";
6
+ import w from "../../../../components/Button/Button.vue2.js";
7
7
  import S from "../elements/ButtonCheck.vue.js";
8
8
  import D from "../../../icons/navigation/IconDelete.vue.js";
9
9
  import Q from "../../../icons/navigation/IconAdd.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const o=require("../sections/Feed.vue.cjs"),a=require("../sections/List.vue.cjs");require("../../store/events.cjs");const s=require("../../../auth/store/auth.cjs"),i={class:"pd-thin"},c={class:"mn-b-medium flex-v-center flex-nowrap flex"},d=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),l={__name:"Events",setup(m){const u=t.useRoute(),n=t.useRouter();return(_,r)=>(e.openBlock(),e.createElementBlock("section",i,[e.createVNode(a.default,{user:s.state.user._id,class:"bg-grey mn-b-thin radius-big",phase:"week"},null,8,["user"]),e.createElementVNode("header",c,[d,e.createElementVNode("button",{onClick:r[0]||(r[0]=h=>e.unref(n).push({name:"Create Event"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(o.default,{user:s.state.user._id,owner:e.unref(u).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])]))}};exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Feed/Feed.vue.cjs"),g=require("../../../../components/DatePicker/DatePicker.vue.cjs"),b=require("../sections/List.vue.cjs"),h=require("../blocks/CardEvent.vue.cjs"),a=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),y={class:"pd-thin"},_=e.createElementVNode("header",{class:"mn-b-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"}," Featured ")],-1),q={class:"mn-b-medium flex-v-center flex-nowrap flex"},E=e.createElementVNode("h2",{class:"mn-r-medium"}," All Events ",-1),v={__name:"Events",setup(k){const l=m.useRoute(),d=m.useRouter(),c=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,n={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:c};a.state.filter=n}else{const t={date:c};a.state.filter=t}return e.watch(()=>a.state.filter,(t,n)=>{const r={...l.query};Object.keys(n).forEach(o=>{r[o]&&delete r[o]});const i=Object.fromEntries(Object.entries(t).filter(([o,s])=>Array.isArray(s)&&s.length>0||typeof s=="string"&&s).map(([o,s])=>[o,Array.isArray(s)?s.join(","):s]));Object.assign(r,i),d.push({query:r})},{deep:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("section",y,[_,e.createVNode(b.default,{user:u.state.user._id,class:"bg-grey mn-b-medium radius-big",phase:"planned"},null,8,["user"]),e.createElementVNode("header",q,[E,e.createElementVNode("button",{onClick:n[0]||(n[0]=r=>e.unref(d).push({name:"Create Event"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(g.default,{date:a.state.filter.date,"onUpdate:date":n[1]||(n[1]=r=>a.state.filter.date=r),locale:t.$i18n.locale,class:"radius-semi o-hidden bg-grey mn-b-thin pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),e.createVNode(f.default,{states:{empty:{title:"No Events Found",description:"Currently, there are no events available."}},store:{read:r=>a.read(r),state:a.state},options:{user:u.state.user._id,date:a.state.filter.date,limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,o)=>(e.openBlock(),e.createBlock(h.default,{onClick:s=>t.$router.push({name:"Event",params:{url:i.url}}),key:i._id,event:i,user:u.state.user._id,type:"normal",class:"bg-grey radius-big mn-b-medium"},null,8,["onClick","event","user"]))),128))]),_:1},8,["store","options"])]))}};exports.default=v;
@@ -1,38 +1,98 @@
1
- import { openBlock as m, createElementBlock as a, createVNode as t, createElementVNode as e, unref as s } from "vue";
2
- import { useRoute as u, useRouter as c } from "vue-router";
1
+ import { watch as g, openBlock as m, createElementBlock as f, createVNode as u, createElementVNode as i, unref as b, withCtx as h, Fragment as y, renderList as $, createBlock as w } from "vue";
2
+ import { useRoute as E, useRouter as k } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
- import p from "../sections/Feed.vue.js";
7
- import d from "../sections/List.vue.js";
8
- import "../../store/events.js";
9
- import { state as o } from "../../../auth/store/auth.js";
10
- const l = { class: "pd-thin" }, _ = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, f = /* @__PURE__ */ e("h2", { class: "mn-r-medium" }, " Events ", -1), R = {
6
+ import x from "../../../../components/Feed/Feed.vue.js";
7
+ import v from "../../../../components/DatePicker/DatePicker.vue.js";
8
+ import F from "../sections/List.vue.js";
9
+ import C from "../blocks/CardEvent.vue.js";
10
+ import { state as n, read as D } from "../../store/events.js";
11
+ import { state as d } from "../../../auth/store/auth.js";
12
+ const j = { class: "pd-thin" }, q = /* @__PURE__ */ i("header", { class: "mn-b-medium flex-v-center flex-nowrap flex" }, [
13
+ /* @__PURE__ */ i("h2", { class: "mn-r-medium" }, " Featured ")
14
+ ], -1), A = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, V = /* @__PURE__ */ i("h2", { class: "mn-r-medium" }, " All Events ", -1), I = {
11
15
  __name: "Events",
12
- setup(h) {
13
- const n = u(), i = c();
14
- return (b, r) => (m(), a("section", l, [
15
- t(d, {
16
- user: o.user._id,
17
- class: "bg-grey mn-b-thin radius-big",
18
- phase: "week"
16
+ setup(O) {
17
+ const l = E(), c = k(), p = _(/* @__PURE__ */ new Date());
18
+ function _(e) {
19
+ return `${e.getDate().toString().padStart(2, "0")}${(e.getMonth() + 1).toString().padStart(2, "0")}${e.getFullYear()}`;
20
+ }
21
+ if (l.query) {
22
+ const e = l.query, s = {
23
+ tags: e.tags ? e.tags.split(",") : null,
24
+ date: e.date ? e.date : p
25
+ };
26
+ n.filter = s;
27
+ } else {
28
+ const e = {
29
+ date: p
30
+ };
31
+ n.filter = e;
32
+ }
33
+ return g(() => n.filter, (e, s) => {
34
+ const t = { ...l.query };
35
+ Object.keys(s).forEach((o) => {
36
+ t[o] && delete t[o];
37
+ });
38
+ const a = Object.fromEntries(
39
+ Object.entries(e).filter(([o, r]) => Array.isArray(r) && r.length > 0 || typeof r == "string" && r).map(([o, r]) => [o, Array.isArray(r) ? r.join(",") : r])
40
+ );
41
+ Object.assign(t, a), c.push({ query: t });
42
+ }, { deep: !0 }), (e, s) => (m(), f("section", j, [
43
+ q,
44
+ u(F, {
45
+ user: d.user._id,
46
+ class: "bg-grey mn-b-medium radius-big",
47
+ phase: "planned"
19
48
  }, null, 8, ["user"]),
20
- e("header", _, [
21
- f,
22
- e("button", {
23
- onClick: r[0] || (r[0] = (v) => s(i).push({ name: "Create Event" })),
49
+ i("header", A, [
50
+ V,
51
+ i("button", {
52
+ onClick: s[0] || (s[0] = (t) => b(c).push({ name: "Create Event" })),
24
53
  class: "radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"
25
54
  }, " + ")
26
55
  ]),
27
- t(p, {
28
- user: o.user._id,
29
- owner: s(n).params._id,
30
- sortOrder: "desc",
31
- sortParam: "date.start"
32
- }, null, 8, ["user", "owner"])
56
+ u(v, {
57
+ date: n.filter.date,
58
+ "onUpdate:date": s[1] || (s[1] = (t) => n.filter.date = t),
59
+ locale: e.$i18n.locale,
60
+ class: "radius-semi o-hidden bg-grey mn-b-thin pd-l-zero pd-r-zero pd-medium"
61
+ }, null, 8, ["date", "locale"]),
62
+ u(x, {
63
+ states: {
64
+ empty: {
65
+ title: "No Events Found",
66
+ description: "Currently, there are no events available."
67
+ }
68
+ },
69
+ store: {
70
+ read: (t) => D(t),
71
+ state: n
72
+ },
73
+ options: {
74
+ user: d.user._id,
75
+ date: n.filter.date,
76
+ limit: 10
77
+ }
78
+ }, {
79
+ default: h(({
80
+ items: t
81
+ }) => [
82
+ (m(!0), f(y, null, $(t, (a, o) => (m(), w(C, {
83
+ onClick: (r) => e.$router.push({ name: "Event", params: { url: a.url } }),
84
+ key: a._id,
85
+ event: a,
86
+ user: d.user._id,
87
+ type: "normal",
88
+ class: "bg-grey radius-big mn-b-medium"
89
+ }, null, 8, ["onClick", "event", "user"]))), 128))
90
+ ]),
91
+ _: 1
92
+ }, 8, ["store", "options"])
33
93
  ]));
34
94
  }
35
95
  };
36
96
  export {
37
- R as default
97
+ I as default
38
98
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue.cjs"),q=require("../../../../components/Button/Button.vue.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-c506f5e5"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},D={class:"mn-b-semi flex-v-center flex-nowrap flex"},T=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),U=["data-id"],$=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-b-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-b-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"],y=10,ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let v=1,f=e.ref(null),_=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>k.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(k.value))),V=async()=>{_.value=!0,await s.actions.fetchGallery(v,y),_.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),g=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 k=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(v,y),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(v+=1,V())}).observe(f.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",D,[T,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>g(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(w.value,(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=>g(l.image)},null,8,$)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-b-small h-10r object-fit-cover",onClick:p=>g(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,U))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:f,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-b-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-b-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-b-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-b-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-b-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,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)]))}},ie=j.default(ce,[["__scopeId","data-v-c506f5e5"]]);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-c506f5e5"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},D={class:"mn-b-semi flex-v-center flex-nowrap flex"},T=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),U=["data-id"],$=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-b-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-b-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"],y=10,ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let v=1,f=e.ref(null),_=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>k.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(k.value))),V=async()=>{_.value=!0,await s.actions.fetchGallery(v,y),_.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),g=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 k=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(v,y),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(v+=1,V())}).observe(f.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",D,[T,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>g(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(w.value,(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=>g(l.image)},null,8,$)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-b-small h-10r object-fit-cover",onClick:p=>g(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,U))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:f,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-b-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-b-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-b-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-b-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-b-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,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)]))}},ie=j.default(ce,[["__scopeId","data-v-c506f5e5"]]);exports.default=ie;
@@ -1,6 +1,6 @@
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 E, renderList as M, createVNode as c, Transition as w, withCtx as b, toDisplayString as x, withDirectives as L, vShow as R, createTextVNode as H, pushScopeId as J, popScopeId as K } from "vue";
2
- import Q from "../../../../components/Field/Field.vue.js";
3
- import W from "../../../../components/Button/Button.vue.js";
2
+ import Q from "../../../../components/Field/Field.vue2.js";
3
+ import W from "../../../../components/Button/Button.vue2.js";
4
4
  import X from "../../../../components/Select/Select.vue2.js";
5
5
  import { state as G, actions as d } from "../../store/gallery.js";
6
6
  import Y from "../../../../components/EditImages/EditImages.vue.js";
@@ -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.vue.cjs"),S=require("../../../../components/Button/Button.vue.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.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,7 +1,7 @@
1
1
  import { ref as n, computed as D, onMounted as A, openBlock as o, createElementBlock as i, createElementVNode as s, Fragment as C, renderList as z, normalizeClass as L, unref as x, toDisplayString as S, createCommentVNode as r, createVNode as c, Transition as _, withCtx as p, withDirectives as O, vShow as T, createBlock as W, createTextVNode as q } from "vue";
2
2
  import { useRoute as H } from "vue-router";
3
- import J from "../../../../components/Field/Field.vue.js";
4
- import K from "../../../../components/Button/Button.vue.js";
3
+ import J from "../../../../components/Field/Field.vue2.js";
4
+ import K from "../../../../components/Button/Button.vue2.js";
5
5
  import Q from "../../../../components/Select/Select.vue2.js";
6
6
  import X from "../../../../components/Upload/Upload.vue.js";
7
7
  import { state as E, actions as g } from "../../store/gallery.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../icons/navigation/IconSearch.vue.cjs"),u=require("../../../../components/Field/Field.vue.cjs"),d={class:"flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big"},i={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(l,{emit:a}){const c=a;e.ref(null);const o=t=>{c("search",t)};return(t,r)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(s.default,{class:"i-medium t-transp mn-r-thin"}),e.createVNode(u.default,{placeholder:l.placeholder,"onUpdate:field":r[0]||(r[0]=n=>o(n)),class:"w-100"},null,8,["placeholder"])]))}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../icons/navigation/IconSearch.vue.cjs"),u=require("../../../../components/Field/Field.vue2.cjs"),d={class:"flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big"},i={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(l,{emit:a}){const c=a;e.ref(null);const o=t=>{c("search",t)};return(t,r)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(s.default,{class:"i-medium t-transp mn-r-thin"}),e.createVNode(u.default,{placeholder:l.placeholder,"onUpdate:field":r[0]||(r[0]=n=>o(n)),class:"w-100"},null,8,["placeholder"])]))}};exports.default=i;
@@ -1,6 +1,6 @@
1
1
  import { ref as s, openBlock as p, createElementBlock as i, createVNode as r } from "vue";
2
2
  import d from "../../../icons/navigation/IconSearch.vue.js";
3
- import m from "../../../../components/Field/Field.vue.js";
3
+ import m from "../../../../components/Field/Field.vue2.js";
4
4
  const f = { class: "flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big" }, g = {
5
5
  __name: "BlockSearch",
6
6
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("vue-router"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../reports/components/sections/FormReport.vue.cjs"),x=require("../../../../components/Tooltip/Tooltip.vue.cjs"),C=require("../../../../components/Dropdown/Dropdown.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const N=require("../../../icons/navigation/IconEllipsis.vue.cjs"),p={key:0,class:"pd-b-zero"},v={class:"w-100 flex-v-center flex-nojustify flex"},$={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],q={key:2,class:"t-semi"},R={key:1,class:"pos-relative"},D={key:2},S={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},z={key:0,class:"w-4r i-thin"},P={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},F=["src"],U={class:"bg-black pd-thin radius-small"},T=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),L={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){B.useRouter();function b(o){const r=new Date,d=new Date(o),u=Math.abs(r-d),m=Math.floor(u/1e3),n=Math.floor(m/60),a=Math.floor(n/60),i=Math.floor(a/24),l=Math.floor(i/7);return l>0?`${l} week${l>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:a>0?`${a} hour${a>1?"s":""} ago`:n>0?`${n} minute${n>1?"s":""} ago`:"Just now"}return(o,r)=>{var d,u,m,n,a,i,l,h,f,k,g,y,w;return t.owner?(e.openBlock(),e.createElementBlock("header",p,[e.createElementVNode("div",v,[e.createElementVNode("div",$,[((m=(u=(d=t.owner.target)==null?void 0:d.profile)==null?void 0:u.photo)==null?void 0:m.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((a=(n=t.owner.target)==null?void 0:n.profile)!=null&&a.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(E.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",q,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString((l=(i=t.owner.target)==null?void 0:i.profile)==null?void 0:l.name),1),!t.creator.hidden&&((f=(h=t.owner.target)==null?void 0:h.profile)==null?void 0:f.name)!==((g=(k=t.creator.target)==null?void 0:k.profile)==null?void 0:g.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(c=>{var s;return o.$router.push({name:"User Profile",params:{_id:(s=t.creator.target)==null?void 0:s._id}})},["stop"]))}," · by "+e.toDisplayString((w=(y=t.creator.target)==null?void 0:y.profile)==null?void 0:w.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",R,[t.date?(e.openBlock(),e.createBlock(x.default,{key:0,text:o.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(" · "+e.toDisplayString(b(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",D," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",S,[t.members?(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("span",P,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(c,s)=>(e.openBlock(),e.createElementBlock("img",{key:s,src:(o.FILE_SERVER_URL||"")+c,style:e.normalizeStyle({position:"absolute",top:"0px",right:s*20+20+"%",zIndex:1-s}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,F))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(C.default,{key:3,label:{component:N.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(V.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[T]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=L;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),E=require("vue-router"),w=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),p=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../../components/Tooltip/Tooltip.vue2.cjs"),x=require("../../../../components/Dropdown/Dropdown.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const C=require("../../../icons/navigation/IconEllipsis.vue.cjs"),N={key:0,class:"pd-b-zero"},v={class:"w-100 flex-v-center flex-nojustify flex"},$={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],q={key:2,class:"t-semi"},R={key:1,class:"pos-relative"},S={key:2},z={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},D={key:0,class:"w-4r pos-relative i-thin"},F={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},P=["src"],U={class:"bg-black pd-thin radius-small"},T=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),I={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){E.useRouter();function B(o){const r=new Date,d=new Date(o),u=Math.abs(r-d),m=Math.floor(u/1e3),a=Math.floor(m/60),l=Math.floor(a/60),i=Math.floor(l/24),s=Math.floor(i/7);return s>0?`${s} week${s>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:l>0?`${l} hour${l>1?"s":""} ago`:a>0?`${a} minute${a>1?"s":""} ago`:"Just now"}return(o,r)=>{var d,u,m,a,l,i,s,h,f,k,g,y,b;return t.owner?(e.openBlock(),e.createElementBlock("header",N,[e.createElementVNode("div",v,[e.createElementVNode("div",$,[((m=(u=(d=t.owner.target)==null?void 0:d.profile)==null?void 0:u.photo)==null?void 0:m.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((l=(a=t.owner.target)==null?void 0:a.profile)!=null&&l.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(w.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",q,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString((s=(i=t.owner.target)==null?void 0:i.profile)==null?void 0:s.name),1),!t.creator.hidden&&((f=(h=t.owner.target)==null?void 0:h.profile)==null?void 0:f.name)!==((g=(k=t.creator.target)==null?void 0:k.profile)==null?void 0:g.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(c=>{var n;return o.$router.push({name:"User Profile",params:{_id:(n=t.creator.target)==null?void 0:n._id}})},["stop"]))}," · by "+e.toDisplayString((b=(y=t.creator.target)==null?void 0:y.profile)==null?void 0:b.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",R,[t.date?(e.openBlock(),e.createBlock(V.default,{key:0,text:o.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(" · "+e.toDisplayString(B(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",S," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",z,[t.members?(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("span",F,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(c,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c?(e.openBlock(),e.createElementBlock("img",{key:n,src:(o.FILE_SERVER_URL||"")+c,style:e.normalizeStyle({position:"absolute",top:"0px",right:n*20+20+"%",zIndex:1-n}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,P)):(e.openBlock(),e.createBlock(w.default,{key:1,style:e.normalizeStyle({position:"absolute",top:"0px",right:n*20+20+"%",zIndex:1-n}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,8,["style"]))],64))),256))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(x.default,{key:3,label:{component:C.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[T]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=I;
@@ -1,18 +1,18 @@
1
- import { openBlock as t, createElementBlock as n, createElementVNode as d, withModifiers as b, createCommentVNode as r, createBlock as w, toDisplayString as f, withCtx as k, createTextVNode as C, Fragment as M, renderList as P, normalizeStyle as U } from "vue";
2
- import { useRouter as D } from "vue-router";
3
- import F from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
1
+ import { openBlock as t, createElementBlock as i, createElementVNode as u, withModifiers as w, createCommentVNode as r, createBlock as f, toDisplayString as h, withCtx as k, createTextVNode as U, Fragment as R, renderList as D, normalizeStyle as C } from "vue";
2
+ import { useRouter as F } from "vue-router";
3
+ import M from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
4
4
  import L from "../../../reports/components/sections/FormReport.vue.js";
5
- import T from "../../../../components/Tooltip/Tooltip.vue.js";
5
+ import T from "../../../../components/Tooltip/Tooltip.vue2.js";
6
6
  import V from "../../../../components/Dropdown/Dropdown.vue.js";
7
7
  import "../../../../components/Loader/Loader.vue.js";
8
- import "../../../../components/Button/Button.vue2.js";
8
+ import "../../../../components/Button/Button.vue.js";
9
9
  import "../../../auth/store/auth.js";
10
10
  import "../../../organizations/store/memberships.js";
11
- import S from "../../../icons/navigation/IconEllipsis.vue.js";
12
- const B = {
11
+ import I from "../../../icons/navigation/IconEllipsis.vue.js";
12
+ const S = {
13
13
  key: 0,
14
14
  class: "pd-b-zero"
15
- }, I = { class: "w-100 flex-v-center flex-nojustify flex" }, N = { class: "w-100 flex-nowrap flex-v-center flex" }, O = ["src"], j = {
15
+ }, B = { class: "w-100 flex-v-center flex-nojustify flex" }, N = { class: "w-100 flex-nowrap flex-v-center flex" }, O = ["src"], j = {
16
16
  key: 2,
17
17
  class: "t-semi"
18
18
  }, A = {
@@ -20,7 +20,7 @@ const B = {
20
20
  class: "pos-relative"
21
21
  }, H = { key: 2 }, J = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, q = {
22
22
  key: 0,
23
- class: "w-4r i-thin"
23
+ class: "w-4r pos-relative i-thin"
24
24
  }, G = {
25
25
  style: {
26
26
  position: "absolute",
@@ -28,7 +28,7 @@ const B = {
28
28
  right: "0px"
29
29
  },
30
30
  class: "br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"
31
- }, K = ["src"], Q = { class: "bg-black pd-thin radius-small" }, W = /* @__PURE__ */ d("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), ae = {
31
+ }, K = ["src"], Q = { class: "bg-black pd-thin radius-small" }, W = /* @__PURE__ */ u("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), ae = {
32
32
  __name: "CardHeader",
33
33
  props: [
34
34
  "user",
@@ -43,96 +43,107 @@ const B = {
43
43
  "type"
44
44
  ],
45
45
  setup(e) {
46
- D();
47
- function z(i) {
48
- const o = /* @__PURE__ */ new Date(), h = new Date(i), g = Math.abs(o - h), y = Math.floor(g / 1e3), s = Math.floor(y / 60), a = Math.floor(s / 60), l = Math.floor(a / 24), m = Math.floor(l / 7);
49
- return m > 0 ? `${m} week${m > 1 ? "s" : ""} ago` : l > 0 ? `${l} day${l > 1 ? "s" : ""} ago` : a > 0 ? `${a} hour${a > 1 ? "s" : ""} ago` : s > 0 ? `${s} minute${s > 1 ? "s" : ""} ago` : "Just now";
46
+ F();
47
+ function P(s) {
48
+ const o = /* @__PURE__ */ new Date(), g = new Date(s), y = Math.abs(o - g), b = Math.floor(y / 1e3), a = Math.floor(b / 60), l = Math.floor(a / 60), d = Math.floor(l / 24), m = Math.floor(d / 7);
49
+ return m > 0 ? `${m} week${m > 1 ? "s" : ""} ago` : d > 0 ? `${d} day${d > 1 ? "s" : ""} ago` : l > 0 ? `${l} hour${l > 1 ? "s" : ""} ago` : a > 0 ? `${a} minute${a > 1 ? "s" : ""} ago` : "Just now";
50
50
  }
51
- return (i, o) => {
52
- var h, g, y, s, a, l, m, x, $, v, p, E, R;
53
- return e.owner ? (t(), n("header", B, [
54
- d("div", I, [
55
- d("div", N, [
56
- ((y = (g = (h = e.owner.target) == null ? void 0 : h.profile) == null ? void 0 : g.photo) == null ? void 0 : y.length) > 0 && e.type !== "short" ? (t(), n("img", {
51
+ return (s, o) => {
52
+ var g, y, b, a, l, d, m, x, $, p, v, z, E;
53
+ return e.owner ? (t(), i("header", S, [
54
+ u("div", B, [
55
+ u("div", N, [
56
+ ((b = (y = (g = e.owner.target) == null ? void 0 : g.profile) == null ? void 0 : y.photo) == null ? void 0 : b.length) > 0 && e.type !== "short" ? (t(), i("img", {
57
57
  key: 0,
58
- src: (i.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
58
+ src: (s.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
59
59
  class: "radius-medium object-fit-cover mn-r-thin i-thin",
60
- onClick: o[0] || (o[0] = b((c) => i.$router.push({
60
+ onClick: o[0] || (o[0] = w((c) => s.$router.push({
61
61
  name: e.owner.type === "user" ? "User Profile" : "Organization",
62
62
  params: {
63
63
  _id: e.owner.target._id
64
64
  }
65
65
  }), ["stop"]))
66
66
  }, null, 8, O)) : r("", !0),
67
- !((a = (s = e.owner.target) == null ? void 0 : s.profile) != null && a.photo) && e.type !== "short" ? (t(), w(F, {
67
+ !((l = (a = e.owner.target) == null ? void 0 : a.profile) != null && l.photo) && e.type !== "short" ? (t(), f(M, {
68
68
  key: 1,
69
69
  class: "radius-medium mn-r-thin i-thin",
70
- onClick: o[1] || (o[1] = b((c) => i.$router.push({
70
+ onClick: o[1] || (o[1] = w((c) => s.$router.push({
71
71
  name: e.owner.type === "user" ? "User Profile" : "Organization",
72
72
  params: {
73
73
  _id: e.owner.target._id
74
74
  }
75
75
  }), ["stop"]))
76
76
  })) : r("", !0),
77
- e.type !== "short" ? (t(), n("span", j, [
78
- d("span", {
79
- onClick: o[2] || (o[2] = b((c) => i.$router.push({
77
+ e.type !== "short" ? (t(), i("span", j, [
78
+ u("span", {
79
+ onClick: o[2] || (o[2] = w((c) => s.$router.push({
80
80
  name: e.owner.type === "user" ? "User Profile" : "Organization",
81
81
  params: {
82
82
  _id: e.owner.target._id
83
83
  }
84
84
  }), ["stop"]))
85
- }, f((m = (l = e.owner.target) == null ? void 0 : l.profile) == null ? void 0 : m.name), 1),
86
- !e.creator.hidden && (($ = (x = e.owner.target) == null ? void 0 : x.profile) == null ? void 0 : $.name) !== ((p = (v = e.creator.target) == null ? void 0 : v.profile) == null ? void 0 : p.name) ? (t(), n("span", {
85
+ }, h((m = (d = e.owner.target) == null ? void 0 : d.profile) == null ? void 0 : m.name), 1),
86
+ !e.creator.hidden && (($ = (x = e.owner.target) == null ? void 0 : x.profile) == null ? void 0 : $.name) !== ((v = (p = e.creator.target) == null ? void 0 : p.profile) == null ? void 0 : v.name) ? (t(), i("span", {
87
87
  key: 0,
88
- onClick: o[3] || (o[3] = b((c) => {
89
- var u;
90
- return i.$router.push({
88
+ onClick: o[3] || (o[3] = w((c) => {
89
+ var n;
90
+ return s.$router.push({
91
91
  name: "User Profile",
92
92
  params: {
93
- _id: (u = e.creator.target) == null ? void 0 : u._id
93
+ _id: (n = e.creator.target) == null ? void 0 : n._id
94
94
  }
95
95
  });
96
96
  }, ["stop"]))
97
- }, " · by " + f((R = (E = e.creator.target) == null ? void 0 : E.profile) == null ? void 0 : R.name), 1)) : r("", !0),
98
- e.date ? (t(), n("span", A, [
99
- e.date ? (t(), w(T, {
97
+ }, " · by " + h((E = (z = e.creator.target) == null ? void 0 : z.profile) == null ? void 0 : E.name), 1)) : r("", !0),
98
+ e.date ? (t(), i("span", A, [
99
+ e.date ? (t(), f(T, {
100
100
  key: 0,
101
- text: i.formatDate(e.date)
101
+ text: s.formatDate(e.date)
102
102
  }, {
103
103
  default: k(() => [
104
- C(" · " + f(z(e.date)), 1)
104
+ U(" · " + h(P(e.date)), 1)
105
105
  ]),
106
106
  _: 1
107
107
  }, 8, ["text"])) : r("", !0)
108
108
  ])) : r("", !0),
109
- e.dateFormatted ? (t(), n("span", H, " · " + f(e.dateFormatted), 1)) : r("", !0)
109
+ e.dateFormatted ? (t(), i("span", H, " · " + h(e.dateFormatted), 1)) : r("", !0)
110
110
  ])) : r("", !0),
111
- d("div", J, [
112
- e.members ? (t(), n("div", q, [
113
- d("span", G, f(e.members), 1),
114
- (t(!0), n(M, null, P(e.membersPhotos.slice(0, 2), (c, u) => (t(), n("img", {
115
- key: u,
116
- src: (i.FILE_SERVER_URL || "") + c,
117
- style: U({
118
- position: "absolute",
119
- top: "0px",
120
- right: u * 20 + 20 + "%",
121
- zIndex: 1 - u
122
- }),
123
- class: "br-solid br-2px br-white i-thin bg-grey radius-big"
124
- }, null, 12, K))), 128))
111
+ u("div", J, [
112
+ e.members ? (t(), i("div", q, [
113
+ u("span", G, h(e.members), 1),
114
+ (t(!0), i(R, null, D(e.membersPhotos.slice(0, 2), (c, n) => (t(), i(R, null, [
115
+ c ? (t(), i("img", {
116
+ key: n,
117
+ src: (s.FILE_SERVER_URL || "") + c,
118
+ style: C({
119
+ position: "absolute",
120
+ top: "0px",
121
+ right: n * 20 + 20 + "%",
122
+ zIndex: 1 - n
123
+ }),
124
+ class: "br-solid br-2px br-white i-thin bg-grey radius-big"
125
+ }, null, 12, K)) : (t(), f(M, {
126
+ key: 1,
127
+ style: C({
128
+ position: "absolute",
129
+ top: "0px",
130
+ right: n * 20 + 20 + "%",
131
+ zIndex: 1 - n
132
+ }),
133
+ class: "br-solid br-2px br-white i-thin bg-grey radius-big"
134
+ }, null, 8, ["style"]))
135
+ ], 64))), 256))
125
136
  ])) : r("", !0)
126
137
  ]),
127
- e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), w(V, {
138
+ e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), f(V, {
128
139
  key: 3,
129
- label: { component: S, class: "t-transp i-regular" },
140
+ label: { component: I, class: "t-transp i-regular" },
130
141
  align: "right",
131
142
  class: "cursor-pointer z-index-2"
132
143
  }, {
133
144
  default: k(() => [
134
- d("section", Q, [
135
- e.user !== e.creator.target._id ? (t(), w(L, {
145
+ u("section", Q, [
146
+ e.user !== e.creator.target._id ? (t(), f(L, {
136
147
  key: 0,
137
148
  user: e.user,
138
149
  type: e.entityType,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-i18n"),a={id:"howtobuy",class:"pd-thin"},c={class:"t-center bg-black t-white radius-big pd-big pd-t-big pd-b-big"},l=["innerHTML"],d={class:"cols-3 gap-thin"},u={class:"mn-r-auto mn-l-auto h2 i-extra radius-extra bg-main flex-center flex mn-b-medium"},m={class:"mn-b-medium"},p={class:"t-transp"},h={__name:"SectionFeatures",props:{title:String,textData:{type:Object,default:()=>({messages:{en:{title:'Transform Your View on Smoking with <b class="t-main">Next Industrial Revolution</b>',features:[{icon:"1",title:"United in Growth",description:"Weeder thrives on community participation. As an open-source platform, it invites everyone to contribute and shape the evolution of cannabis culture globally."},{icon:"2",title:"Trust in Crypto",description:"Weeder utilizes the power of blockchain technology and smart contracts, building a trust-rich, transparent environment that ensures secure and smooth transactions."},{icon:"3",title:"Boosted by AI",description:"With AI at the core, Weeder enhances understanding of cannabis, creating personalized tools to enrich the user experience and business goals."}]},ru:{title:"Наши Преимущества",features:[{icon:"📦",headline:"Доставка за 1 час",description:"Мы понимаем, как важно для клиентов получить товар в самый краткий срок. Получите свой заказ в течении часа после подтверждения!"},{icon:"💬",headline:"Поддержка 24/7",description:"Если у вас есть какие-либо вопросы, наша служба поддержки клиентов работает круглосуточно и без выходных. Вы можете связаться с нами в любое время в Telegram!"},{icon:"😊",headline:"Гарантия качества",description:"Непревзойденные цены и самые доступные качественные товары. Больше не тратьте деньги на дорогие некачественные продукты!"}]}}})}},setup(n){const i=n,{t:o,tm:s}=r.useI18n(i.textData);return(b,g)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("section",c,[e.createElementVNode("h2",{class:"w-max-50r mn-l-auto mn-r-auto mn-b-small",innerHTML:e.unref(o)("title")},null,8,l),e.createElementVNode("div",d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s)("features"),t=>(e.openBlock(),e.createElementBlock("div",{key:t.title,class:"pd-medium radius-big"},[e.createElementVNode("p",u,e.toDisplayString(t.icon),1),e.createElementVNode("h3",m,e.toDisplayString(t.title),1),e.createElementVNode("p",p,e.toDisplayString(t.description),1)]))),128))])])]))}};exports.default=h;