@ozdao/prometheus-framework 0.2.55 → 0.2.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. package/dist/gallery.server.js +4 -0
  2. package/dist/gallery.server.mjs +4 -0
  3. package/dist/main-37ee0513.mjs +13715 -0
  4. package/dist/main-b11c45d0.js +91 -0
  5. package/dist/main.css +1 -1
  6. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +55 -32
  8. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  10. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +70 -2
  12. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
  14. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +95 -2
  16. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +2 -33
  18. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  20. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +6 -4
  22. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  24. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  26. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +3 -2
  28. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  29. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  30. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  31. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +65 -2
  32. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  34. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  36. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  38. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  40. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  42. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +16 -18
  46. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/globals/store/globals.js +48 -33
  48. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  52. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  54. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +52 -43
  56. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +110 -78
  58. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  62. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -3
  64. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  68. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  74. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +7 -5
  76. package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.js +1 -1
  78. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +15 -15
  80. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  86. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/products/store/products.js +27 -27
  92. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  94. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  98. package/dist/prometheus-framework.cjs.js +1 -1
  99. package/dist/prometheus-framework.es.js +1 -1
  100. package/dist/style.css +1 -1
  101. package/dist/web-021a4053.js +1 -0
  102. package/dist/web-0a68cf2a.mjs +55 -0
  103. package/package.json +1 -1
  104. package/src/modules/organizations/router/organizations.router.js +2 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-v-center gap-big flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,f=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),h=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>r.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(r.value))),b=async()=>{g.value=!0,await s.actions.fetchGallery(d,f),g.value=!1},c=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),k=a=>{W.value?y(a):(c.value="modal",t.value.image=a,p())},y=a=>{c.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let r=e.ref("all");const B=a=>{r.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,f),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,b())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase",{"t-transp":e.unref(r)!==l,"pd-thin bg-main radius-small":e.unref(r)===l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-big object-fit-cover",onClick:Q=>k(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&c.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&c.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-b-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-4c5bced8"]]);exports.default=J;
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;
@@ -2,7 +2,7 @@ import { ref as n, computed as D, onMounted as A, openBlock as o, createElementB
2
2
  import { useRoute as H } from "vue-router";
3
3
  import J from "../../../../components/Field/Field.vue2.js";
4
4
  import K from "../../../../components/Button/Button.vue2.js";
5
- import Q from "../../../../components/Select/Select.vue.js";
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";
8
8
  import "./GalleryWithCategories.vue2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../icons/navigation/IconSearch.vue.cjs"),d=require("../../../../components/Field/Field.vue2.cjs"),i={class:"flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big"},p={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(r,{emit:s}){const o=s,l=e.ref(null),c=a=>{o("search",a)};return(a,t)=>(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(u.default,{class:"i-medium t-transp mn-r-thin"}),e.createVNode(d.default,{placeholder:r.placeholder,"onUpdate:field":t[0]||(t[0]=n=>l.value=n),class:"w-100"},null,8,["placeholder"]),e.createElementVNode("button",{class:"pd-r-small pd-l-small pd-t-thin pd-b-thin p-medium uppercase p-small t-medium cursor-pointer radius-extra bg-main",onClick:t[1]||(t[1]=n=>c(l.value))},e.toDisplayString(r.button),1)]))}};exports.default=p;
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,7 +1,7 @@
1
- import { ref as p, openBlock as c, createElementBlock as m, createVNode as n, createElementVNode as d, toDisplayString as u } from "vue";
2
- import f from "../../../icons/navigation/IconSearch.vue.js";
3
- import h from "../../../../components/Field/Field.vue2.js";
4
- const b = { class: "flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big" }, v = {
1
+ import { ref as s, openBlock as p, createElementBlock as i, createVNode as r } from "vue";
2
+ import d from "../../../icons/navigation/IconSearch.vue.js";
3
+ import m from "../../../../components/Field/Field.vue2.js";
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: {
7
7
  placeholder: {
@@ -14,24 +14,22 @@ const b = { class: "flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius
14
14
  }
15
15
  },
16
16
  emits: ["search"],
17
- setup(t, { emit: o }) {
18
- const s = o, r = p(null), i = (l) => {
19
- s("search", l);
17
+ setup(l, { emit: o }) {
18
+ const a = o;
19
+ s(null);
20
+ const c = (e) => {
21
+ a("search", e);
20
22
  };
21
- return (l, e) => (c(), m("div", b, [
22
- n(f, { class: "i-medium t-transp mn-r-thin" }),
23
- n(h, {
24
- placeholder: t.placeholder,
25
- "onUpdate:field": e[0] || (e[0] = (a) => r.value = a),
23
+ return (e, t) => (p(), i("div", f, [
24
+ r(d, { class: "i-medium t-transp mn-r-thin" }),
25
+ r(m, {
26
+ placeholder: l.placeholder,
27
+ "onUpdate:field": t[0] || (t[0] = (n) => c(n)),
26
28
  class: "w-100"
27
- }, null, 8, ["placeholder"]),
28
- d("button", {
29
- class: "pd-r-small pd-l-small pd-t-thin pd-b-thin p-medium uppercase p-small t-medium cursor-pointer radius-extra bg-main",
30
- onClick: e[1] || (e[1] = (a) => i(r.value))
31
- }, u(t.button), 1)
29
+ }, null, 8, ["placeholder"])
32
30
  ]));
33
31
  }
34
32
  };
35
33
  export {
36
- v as default
34
+ g as default
37
35
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("vue"),d=require("../localization/vue-i18n.cjs"),s=_.reactive({loading:!1,isOpenLocationPopup:!1,isOpenSidebar:!1,position:null,search:null,theme:{darkmode:!1},error:{status:"",headers:"",data:"",show:"",name:"",message:""}}),l={setLoading(e){s.loading=e},toggleTheme(){let e=document.querySelector(":root");s.theme.darkmode=!s.theme.darkmode,e.classList.toggle("dark-theme");const o=["--white","--black","--grey"];s.theme.originalColors||(s.theme.originalColors={},o.forEach(t=>{const r=getComputedStyle(document.documentElement).getPropertyValue(t).trim();s.theme.originalColors[t]=r})),c(o,s.theme.originalColors)},add(e,o){const t=e.findIndex(r=>r._id===o._id);t===-1?e.push(o):e[t]=o},update(e,o,t){const r=e.findIndex(n=>n._id===o._id);r===-1?e.push(o):e[r]=o},delete(e,o,t){const r=e.findIndex(n=>n._id===o._id);r!==-1&&e.splice(r,1)}},E={ru:{errors:{USER_ALREADY_REGISTERED:"Такой пользователь уже зарегистрирован!",USER_NOT_REGISTERED_YET:"Такой пользователь еще не зарегистрирован!",USER_PHONE_OR_PASSWORD_NOT_FOUND:"Пользователь с таким телефоном или паролем не найден!",INCORRECT_PASSWORD_ENTERED:"Вы ввели неверный пароль!",INVALID_INVITATION_CODE:"Неверный код приглашения",MISSING_REQUIRED_PARAMETERS:"Отсутствуют необходимые параметры.",ERROR_UPDATING_USER:"Произошла ошибка при обновлении пользователя.",PASSWORDS_DO_NOT_MATCH:"Введенные вами пароли не совпадают. Исправьте ошибки и попробуйте еще раз.",CODE_NOT_SENT:"Что-то пошло не так и код не был отправлен. Попробуйте еще раз.",INPUT_ERROR:"Вставьте только четырехзначный код.",WRONG_CODE:"Вы ввели неверный код. Попробуйте еще раз.",POST_URL_ALREADY_IN_USE:"Ошибка! Публикация с этим URL уже используется!",NAME_CANNOT_BE_EMPTY:"Ошибка: Название не может быть пустым. Пожалуйста, введите название."}},en:{errors:{USER_ALREADY_REGISTERED:"Such user is already registered!",USER_NOT_REGISTERED_YET:"This user has not been registered yet!",USER_PHONE_OR_PASSWORD_NOT_FOUND:"User with such phone or password not found!",INCORRECT_PASSWORD_ENTERED:"You entered an incorrect password!",INVALID_INVITATION_CODE:"Incorrect invitation code.",MISSING_REQUIRED_PARAMETERS:"Missing required parameters.",ERROR_UPDATING_USER:"Something wrong when updating user.",PASSWORDS_DO_NOT_MATCH:"The passwords you entered do not match. Please correct the errors and try again.",CODE_NOT_SENT:"Something went wrong and the code was not sent. Please try again.",INPUT_ERROR:"Please enter only a four-digit code.",WRONG_CODE:"You entered an incorrect code. Please try again.",POST_URL_ALREADY_IN_USE:"Failed! Blogpost with this URL is already in use!",NAME_CANNOT_BE_EMPTY:"Error: Name cannot be empty. Please enter a name."}}};d.default.global.mergeLocaleMessage("ru",E.ru);d.default.global.mergeLocaleMessage("en",E.en);function R(e){var t;let o;o=e,(t=e==null?void 0:e.response)!=null&&t.data&&(o=e.response.data),e&&o.errorCode?s.error.message=d.default.global.t(`errors.${o.errorCode}`):s.error.message=o.message||"Unknown error",s.error.show=!0,setTimeout(()=>s.error.show=!1,3e3)}function c(e,o){e.forEach(t=>{const r=o[t],n=r.split(",").map(Number);let a;t==="--white"?a=n.map(i=>255-i/1.075):t==="--black"?a=n.map(i=>255-i):t==="--grey"&&(a=n.map(i=>255-i*2)),document.documentElement.style.setProperty(t,s.theme.darkmode?a.join(", "):r)})}exports.actions=l;exports.setError=R;exports.state=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),d=require("../localization/vue-i18n.cjs"),n=l.reactive({loading:!1,isOpenLocationPopup:!1,isOpenSidebar:!1,position:null,search:null,theme:{darkmode:!1},error:{status:"",headers:"",data:"",show:"",name:"",message:""}}),E={setLoading(e){n.loading=e},toggleTheme(){let e=document.querySelector(":root");n.theme.darkmode=!n.theme.darkmode,e.classList.toggle("dark-theme");const o=["--white","--black","--grey"];n.theme.originalColors||(n.theme.originalColors={},o.forEach(t=>{const s=getComputedStyle(document.documentElement).getPropertyValue(t).trim();n.theme.originalColors[t]=s})),R(o,n.theme.originalColors)},add(e,o){const t=e.findIndex(s=>s._id===o._id);t===-1?e.push(o):e[t]=o},update(e,o){const t=e.findIndex(s=>s._id===o._id);t===-1?e.push(o):e[t]=o},delete(e,o){const t=e.findIndex(s=>s._id===o._id);t!==-1&&e.splice(t,1)},increment(e,o){console.log(e),console.log(o);const t=e.find(s=>s._id===o._id);t&&t.quantity++},decrement(e,o){const t=e.find(r=>r._id===o._id),s=e.indexOf(t);s>-1&&(t.quantity--,t.quantity<1&&e.splice(s,1))},reset(e){}},_={ru:{errors:{USER_ALREADY_REGISTERED:"Такой пользователь уже зарегистрирован!",USER_NOT_REGISTERED_YET:"Такой пользователь еще не зарегистрирован!",USER_PHONE_OR_PASSWORD_NOT_FOUND:"Пользователь с таким телефоном или паролем не найден!",INCORRECT_PASSWORD_ENTERED:"Вы ввели неверный пароль!",INVALID_INVITATION_CODE:"Неверный код приглашения",MISSING_REQUIRED_PARAMETERS:"Отсутствуют необходимые параметры.",ERROR_UPDATING_USER:"Произошла ошибка при обновлении пользователя.",PASSWORDS_DO_NOT_MATCH:"Введенные вами пароли не совпадают. Исправьте ошибки и попробуйте еще раз.",CODE_NOT_SENT:"Что-то пошло не так и код не был отправлен. Попробуйте еще раз.",INPUT_ERROR:"Вставьте только четырехзначный код.",WRONG_CODE:"Вы ввели неверный код. Попробуйте еще раз.",POST_URL_ALREADY_IN_USE:"Ошибка! Публикация с этим URL уже используется!",NAME_CANNOT_BE_EMPTY:"Ошибка: Название не может быть пустым. Пожалуйста, введите название."}},en:{errors:{USER_ALREADY_REGISTERED:"Such user is already registered!",USER_NOT_REGISTERED_YET:"This user has not been registered yet!",USER_PHONE_OR_PASSWORD_NOT_FOUND:"User with such phone or password not found!",INCORRECT_PASSWORD_ENTERED:"You entered an incorrect password!",INVALID_INVITATION_CODE:"Incorrect invitation code.",MISSING_REQUIRED_PARAMETERS:"Missing required parameters.",ERROR_UPDATING_USER:"Something wrong when updating user.",PASSWORDS_DO_NOT_MATCH:"The passwords you entered do not match. Please correct the errors and try again.",CODE_NOT_SENT:"Something went wrong and the code was not sent. Please try again.",INPUT_ERROR:"Please enter only a four-digit code.",WRONG_CODE:"You entered an incorrect code. Please try again.",POST_URL_ALREADY_IN_USE:"Failed! Blogpost with this URL is already in use!",NAME_CANNOT_BE_EMPTY:"Error: Name cannot be empty. Please enter a name."}}};d.default.global.mergeLocaleMessage("ru",_.ru);d.default.global.mergeLocaleMessage("en",_.en);function c(e){var t;let o;o=e,(t=e==null?void 0:e.response)!=null&&t.data&&(o=e.response.data),e&&o.errorCode?n.error.message=d.default.global.t(`errors.${o.errorCode}`):n.error.message=o.message||"Unknown error",n.error.show=!0,setTimeout(()=>n.error.show=!1,3e3)}function R(e,o){e.forEach(t=>{const s=o[t],r=s.split(",").map(Number);let a;t==="--white"?a=r.map(i=>255-i/1.075):t==="--black"?a=r.map(i=>255-i):t==="--grey"&&(a=r.map(i=>255-i*2)),document.documentElement.style.setProperty(t,n.theme.darkmode?a.join(", "):s)})}exports.actions=E;exports.setError=c;exports.state=n;
@@ -1,6 +1,6 @@
1
- import { reactive as d } from "vue";
2
- import E from "../localization/vue-i18n.js";
3
- const r = d({
1
+ import { reactive as E } from "vue";
2
+ import d from "../localization/vue-i18n.js";
3
+ const n = E({
4
4
  loading: !1,
5
5
  isOpenLocationPopup: !1,
6
6
  isOpenSidebar: !1,
@@ -17,31 +17,46 @@ const r = d({
17
17
  name: "",
18
18
  message: ""
19
19
  }
20
- }), O = {
20
+ }), m = {
21
21
  setLoading(e) {
22
- r.loading = e;
22
+ n.loading = e;
23
23
  },
24
24
  // Black/White Theme
25
25
  toggleTheme() {
26
26
  let e = document.querySelector(":root");
27
- r.theme.darkmode = !r.theme.darkmode, e.classList.toggle("dark-theme");
28
- const o = ["--white", "--black", "--grey"];
29
- r.theme.originalColors || (r.theme.originalColors = {}, o.forEach((t) => {
30
- const s = getComputedStyle(document.documentElement).getPropertyValue(t).trim();
31
- r.theme.originalColors[t] = s;
32
- })), l(o, r.theme.originalColors);
27
+ n.theme.darkmode = !n.theme.darkmode, e.classList.toggle("dark-theme");
28
+ const t = ["--white", "--black", "--grey"];
29
+ n.theme.originalColors || (n.theme.originalColors = {}, t.forEach((o) => {
30
+ const s = getComputedStyle(document.documentElement).getPropertyValue(o).trim();
31
+ n.theme.originalColors[o] = s;
32
+ })), l(t, n.theme.originalColors);
33
33
  },
34
- add(e, o) {
35
- const t = e.findIndex((s) => s._id === o._id);
36
- t === -1 ? e.push(o) : e[t] = o;
34
+ add(e, t) {
35
+ const o = e.findIndex((s) => s._id === t._id);
36
+ o === -1 ? e.push(t) : e[o] = t;
37
37
  },
38
- update(e, o, t) {
39
- const s = e.findIndex((n) => n._id === o._id);
40
- s === -1 ? e.push(o) : e[s] = o;
38
+ update(e, t) {
39
+ const o = e.findIndex((s) => s._id === t._id);
40
+ o === -1 ? e.push(t) : e[o] = t;
41
41
  },
42
- delete(e, o, t) {
43
- const s = e.findIndex((n) => n._id === o._id);
44
- s !== -1 && e.splice(s, 1);
42
+ delete(e, t) {
43
+ const o = e.findIndex((s) => s._id === t._id);
44
+ o !== -1 && e.splice(o, 1);
45
+ },
46
+ increment(e, t) {
47
+ console.log(e), console.log(t);
48
+ const o = e.find(
49
+ (s) => s._id === t._id
50
+ );
51
+ o && o.quantity++;
52
+ },
53
+ decrement(e, t) {
54
+ const o = e.find(
55
+ (r) => r._id === t._id
56
+ ), s = e.indexOf(o);
57
+ s > -1 && (o.quantity--, o.quantity < 1 && e.splice(s, 1));
58
+ },
59
+ reset(e) {
45
60
  }
46
61
  }, _ = {
47
62
  ru: {
@@ -79,22 +94,22 @@ const r = d({
79
94
  }
80
95
  }
81
96
  };
82
- E.global.mergeLocaleMessage("ru", _.ru);
83
- E.global.mergeLocaleMessage("en", _.en);
84
- function S(e) {
85
- var t;
86
- let o;
87
- o = e, (t = e == null ? void 0 : e.response) != null && t.data && (o = e.response.data), e && o.errorCode ? r.error.message = E.global.t(`errors.${o.errorCode}`) : r.error.message = o.message || "Unknown error", r.error.show = !0, setTimeout(() => r.error.show = !1, 3e3);
97
+ d.global.mergeLocaleMessage("ru", _.ru);
98
+ d.global.mergeLocaleMessage("en", _.en);
99
+ function g(e) {
100
+ var o;
101
+ let t;
102
+ t = e, (o = e == null ? void 0 : e.response) != null && o.data && (t = e.response.data), e && t.errorCode ? n.error.message = d.global.t(`errors.${t.errorCode}`) : n.error.message = t.message || "Unknown error", n.error.show = !0, setTimeout(() => n.error.show = !1, 3e3);
88
103
  }
89
- function l(e, o) {
90
- e.forEach((t) => {
91
- const s = o[t], n = s.split(",").map(Number);
104
+ function l(e, t) {
105
+ e.forEach((o) => {
106
+ const s = t[o], r = s.split(",").map(Number);
92
107
  let a;
93
- t === "--white" ? a = n.map((i) => 255 - i / 1.075) : t === "--black" ? a = n.map((i) => 255 - i) : t === "--grey" && (a = n.map((i) => 255 - i * 2)), document.documentElement.style.setProperty(t, r.theme.darkmode ? a.join(", ") : s);
108
+ o === "--white" ? a = r.map((i) => 255 - i / 1.075) : o === "--black" ? a = r.map((i) => 255 - i) : o === "--grey" && (a = r.map((i) => 255 - i * 2)), document.documentElement.style.setProperty(o, n.theme.darkmode ? a.join(", ") : s);
94
109
  });
95
110
  }
96
111
  export {
97
- O as actions,
98
- S as setError,
99
- r as state
112
+ m as actions,
113
+ g as setError,
114
+ n as state
100
115
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
@@ -1,7 +1,7 @@
1
1
  import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, withCtx as o, unref as r, createStaticVNode as c, createElementVNode as a } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import "../../../../components/Button/Button.vue.js";
4
- import p from "../../../mobile/components/Menu/Menu.vue.js";
4
+ import p from "../../../mobile/components/Menu/Menu.vue2.js";
5
5
  import n from "../../../mobile/components/Menu/MenuItem.vue.js";
6
6
  import { useRoute as d, useRouter as h } from "vue-router";
7
7
  import "../../../auth/store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Menu.vue2.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,13 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
2
- import "./Menu.vue2.js";
3
- const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
4
- __name: "Menu",
5
- setup(s) {
6
- return (e, i) => (t(), o("section", r, [
7
- n(e.$slots, "default")
8
- ]));
9
- }
10
- };
1
+ const e = "";
11
2
  export {
12
- d as default
3
+ e as default
13
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Menu.vue.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
@@ -1,4 +1,13 @@
1
- const e = "";
1
+ import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
2
+ import "./Menu.vue.js";
3
+ const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
4
+ __name: "Menu",
5
+ setup(s) {
6
+ return (e, i) => (t(), o("section", r, [
7
+ n(e.$slots, "default")
8
+ ]));
9
+ }
10
+ };
2
11
  export {
3
- e as default
12
+ d as default
4
13
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),s=require("../../../icons/navigation/IconAdd.vue.cjs"),l=require("../../../icons/navigation/IconMinus.vue.cjs"),a=require("../../../icons/navigation/IconDelete.vue.cjs"),i=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),d={class:"gap-small pos-relative cols-1",style:{"box-sizing":"content-box"}},u={class:"pos-relative w-100 gap-thin flex-stretch flex-nowrap flex"},m={class:"bg-grey h-100 o-hidden pos-relative radius-small aspect-1x1",style:{flex:"1 0 auto"}},g=["src"],p={class:"w-100 pos-relative"},y={class:"t-truncate t-medium"},k={key:0,class:"t-transp"},h={key:1,class:"t-transp"},v={key:2,class:"t-transp"},V={class:"t-main t-demi"},b={key:0},B={key:1,class:"pd-r-small t-transp t-transp p-medium line-through price"},N={key:0,class:"mn-t-thin gap-thin flex-nojustify flex"},f={__name:"CardOrderItem",props:{product:Object,editable:String,increase:Function,decrease:Function,remove:Function},setup(t){return n.useRouter(),(r,o)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",u,[e.createElementVNode("div",m,[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,class:"w-100 object-fit-cover pos-absolute h-100",src:(r.FILE_SERVER_URL||"")+t.product.images[0]},null,8,g)):e.createCommentVNode("",!0),t.product.images[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,class:"bg-grey pos-absolute radius-small w-100 h-100"}))]),e.createElementVNode("div",p,[e.createElementVNode("p",y,[e.createTextVNode(e.toDisplayString(t.product.name)+" ",1),t.product.size?(e.openBlock(),e.createElementBlock("span",k,", "+e.toDisplayString(t.product.size),1)):e.createCommentVNode("",!0),typeof t.product.color=="string"&&t.product.size?(e.openBlock(),e.createElementBlock("span",h,", ")):e.createCommentVNode("",!0),typeof t.product.color=="string"?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(t.product.color),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",V,[t.product.quantity?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(t.product.quantity)+" x ",1)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.product.price)+" "+e.toDisplayString(r.returnCurrency())+" ",1),t.product.sale?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(t.product.price/100*(100+t.product.sale))+" "+e.toDisplayString(r.returnCurrency()),1)):e.createCommentVNode("",!0)]),t.editable?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(s.default,{onClick:o[0]||(o[0]=c=>t.increase(t.product)),class:"hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"}),e.createVNode(l.default,{onClick:o[1]||(o[1]=c=>t.decrease(t.product)),class:"hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"}),e.createVNode(a.default,{onClick:o[2]||(o[2]=c=>t.remove(t.product)),class:"hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"})])):e.createCommentVNode("",!0)])])]))}};exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),m=require("../../../icons/navigation/IconAdd.vue.cjs"),p=require("../../../icons/navigation/IconMinus.vue.cjs"),g=require("../../../icons/navigation/IconDelete.vue.cjs"),y=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),k={class:"gap-small pos-relative cols-1"},v={class:"pos-relative w-100 gap-thin flex-stretch flex-nowrap flex"},h={class:"bg-grey h-100 o-hidden pos-relative radius-small aspect-1x1",style:{flex:"1 0 auto"}},f=["src"],V={class:"w-100 pos-relative"},B={class:"t-truncate t-medium"},N={key:0,class:"t-transp"},b={key:1,class:"t-transp"},E={key:2,class:"t-transp"},C={class:"t-main t-demi"},S={key:0},D={key:1,class:"pd-r-small t-transp t-transp p-medium line-through price"},q={key:0,class:"mn-t-thin gap-thin flex-nojustify flex"},x={__name:"CardOrderItem",props:{product:Object,editable:String,increase:Function,decrease:Function,remove:Function},emits:["increase","decrease","remove"],setup(t,{emit:a}){u.useRouter();const s=a,r=t;function i(o){r.increase&&r.increase(o),s("increase",o)}function l(o){r.decrease&&r.decrease(o),s("decrease",o)}function d(o){r.remove&&r.remove(o),s("remove",o)}return(o,c)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",v,[e.createElementVNode("div",h,[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,class:"w-100 object-fit-cover pos-absolute h-100",src:(o.FILE_SERVER_URL||"")+t.product.images[0]},null,8,f)):e.createCommentVNode("",!0),t.product.images[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y.default,{key:1,class:"bg-grey pos-absolute radius-small w-100 h-100"}))]),e.createElementVNode("div",V,[e.createElementVNode("p",B,[e.createTextVNode(e.toDisplayString(t.product.name)+" ",1),t.product.size?(e.openBlock(),e.createElementBlock("span",N,", "+e.toDisplayString(t.product.size),1)):e.createCommentVNode("",!0),typeof t.product.color=="string"&&t.product.size?(e.openBlock(),e.createElementBlock("span",b,", ")):e.createCommentVNode("",!0),typeof t.product.color=="string"?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(t.product.color),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",C,[t.product.quantity?(e.openBlock(),e.createElementBlock("span",S,e.toDisplayString(t.product.quantity)+" x ",1)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.product.price)+" "+e.toDisplayString(o.returnCurrency())+" ",1),t.product.sale?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(t.product.price/100*(100+t.product.sale))+" "+e.toDisplayString(o.returnCurrency()),1)):e.createCommentVNode("",!0)]),t.editable?(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(m.default,{onClick:c[0]||(c[0]=n=>i(t.product)),class:"hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"}),e.createVNode(p.default,{onClick:c[1]||(c[1]=n=>l(t.product)),class:"hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"}),e.createVNode(g.default,{onClick:c[2]||(c[2]=n=>d(t.product)),class:"hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"})])):e.createCommentVNode("",!0)])])]))}};exports.default=x;
@@ -1,31 +1,28 @@
1
- import { openBlock as t, createElementBlock as s, createElementVNode as c, createCommentVNode as r, createBlock as u, createTextVNode as d, toDisplayString as o, createVNode as n } from "vue";
2
- import { useRouter as m } from "vue-router";
3
- import g from "../../../icons/navigation/IconAdd.vue.js";
4
- import h from "../../../icons/navigation/IconMinus.vue.js";
5
- import p from "../../../icons/navigation/IconDelete.vue.js";
6
- import y from "../../../icons/placeholders/PlaceholderImage.vue.js";
7
- const f = {
8
- class: "gap-small pos-relative cols-1",
9
- style: { "box-sizing": "content-box" }
10
- }, v = { class: "pos-relative w-100 gap-thin flex-stretch flex-nowrap flex" }, b = {
1
+ import { openBlock as s, createElementBlock as r, createElementVNode as n, createCommentVNode as o, createBlock as v, createTextVNode as m, toDisplayString as i, createVNode as d } from "vue";
2
+ import { useRouter as y } from "vue-router";
3
+ import b from "../../../icons/navigation/IconAdd.vue.js";
4
+ import k from "../../../icons/navigation/IconMinus.vue.js";
5
+ import x from "../../../icons/navigation/IconDelete.vue.js";
6
+ import C from "../../../icons/placeholders/PlaceholderImage.vue.js";
7
+ const $ = { class: "gap-small pos-relative cols-1" }, w = { class: "pos-relative w-100 gap-thin flex-stretch flex-nowrap flex" }, E = {
11
8
  class: "bg-grey h-100 o-hidden pos-relative radius-small aspect-1x1",
12
9
  style: { flex: "1 0 auto" }
13
- }, k = ["src"], x = { class: "w-100 pos-relative" }, C = { class: "t-truncate t-medium" }, $ = {
10
+ }, V = ["src"], F = { class: "w-100 pos-relative" }, N = { class: "t-truncate t-medium" }, R = {
14
11
  key: 0,
15
12
  class: "t-transp"
16
- }, w = {
13
+ }, j = {
17
14
  key: 1,
18
15
  class: "t-transp"
19
- }, E = {
16
+ }, z = {
20
17
  key: 2,
21
18
  class: "t-transp"
22
- }, V = { class: "t-main t-demi" }, z = { key: 0 }, F = {
19
+ }, B = { class: "t-main t-demi" }, I = { key: 0 }, S = {
23
20
  key: 1,
24
21
  class: "pd-r-small t-transp t-transp p-medium line-through price"
25
- }, N = {
22
+ }, q = {
26
23
  key: 0,
27
24
  class: "mn-t-thin gap-thin flex-nojustify flex"
28
- }, L = {
25
+ }, A = {
29
26
  __name: "CardOrderItem",
30
27
  props: {
31
28
  product: Object,
@@ -34,51 +31,63 @@ const f = {
34
31
  decrease: Function,
35
32
  remove: Function
36
33
  },
37
- setup(e) {
38
- return m(), (a, i) => (t(), s("div", f, [
39
- c("div", v, [
40
- c("div", b, [
41
- e.product.images[0] ? (t(), s("img", {
34
+ emits: ["increase", "decrease", "remove"],
35
+ setup(e, { emit: f }) {
36
+ y();
37
+ const l = f, c = e;
38
+ function p(t) {
39
+ c.increase && c.increase(t), l("increase", t);
40
+ }
41
+ function g(t) {
42
+ c.decrease && c.decrease(t), l("decrease", t);
43
+ }
44
+ function h(t) {
45
+ c.remove && c.remove(t), l("remove", t);
46
+ }
47
+ return (t, a) => (s(), r("div", $, [
48
+ n("div", w, [
49
+ n("div", E, [
50
+ e.product.images[0] ? (s(), r("img", {
42
51
  key: 0,
43
52
  class: "w-100 object-fit-cover pos-absolute h-100",
44
- src: (a.FILE_SERVER_URL || "") + e.product.images[0]
45
- }, null, 8, k)) : r("", !0),
46
- e.product.images[0] ? r("", !0) : (t(), u(y, {
53
+ src: (t.FILE_SERVER_URL || "") + e.product.images[0]
54
+ }, null, 8, V)) : o("", !0),
55
+ e.product.images[0] ? o("", !0) : (s(), v(C, {
47
56
  key: 1,
48
57
  class: "bg-grey pos-absolute radius-small w-100 h-100"
49
58
  }))
50
59
  ]),
51
- c("div", x, [
52
- c("p", C, [
53
- d(o(e.product.name) + " ", 1),
54
- e.product.size ? (t(), s("span", $, ", " + o(e.product.size), 1)) : r("", !0),
55
- typeof e.product.color == "string" && e.product.size ? (t(), s("span", w, ", ")) : r("", !0),
56
- typeof e.product.color == "string" ? (t(), s("span", E, o(e.product.color), 1)) : r("", !0)
60
+ n("div", F, [
61
+ n("p", N, [
62
+ m(i(e.product.name) + " ", 1),
63
+ e.product.size ? (s(), r("span", R, ", " + i(e.product.size), 1)) : o("", !0),
64
+ typeof e.product.color == "string" && e.product.size ? (s(), r("span", j, ", ")) : o("", !0),
65
+ typeof e.product.color == "string" ? (s(), r("span", z, i(e.product.color), 1)) : o("", !0)
57
66
  ]),
58
- c("p", V, [
59
- e.product.quantity ? (t(), s("span", z, o(e.product.quantity) + " x ", 1)) : r("", !0),
60
- d(o(e.product.price) + " " + o(a.returnCurrency()) + " ", 1),
61
- e.product.sale ? (t(), s("span", F, o(e.product.price / 100 * (100 + e.product.sale)) + " " + o(a.returnCurrency()), 1)) : r("", !0)
67
+ n("p", B, [
68
+ e.product.quantity ? (s(), r("span", I, i(e.product.quantity) + " x ", 1)) : o("", !0),
69
+ m(i(e.product.price) + " " + i(t.returnCurrency()) + " ", 1),
70
+ e.product.sale ? (s(), r("span", S, i(e.product.price / 100 * (100 + e.product.sale)) + " " + i(t.returnCurrency()), 1)) : o("", !0)
62
71
  ]),
63
- e.editable ? (t(), s("div", N, [
64
- n(g, {
65
- onClick: i[0] || (i[0] = (l) => e.increase(e.product)),
72
+ e.editable ? (s(), r("div", q, [
73
+ d(b, {
74
+ onClick: a[0] || (a[0] = (u) => p(e.product)),
66
75
  class: "hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"
67
76
  }),
68
- n(h, {
69
- onClick: i[1] || (i[1] = (l) => e.decrease(e.product)),
77
+ d(k, {
78
+ onClick: a[1] || (a[1] = (u) => g(e.product)),
70
79
  class: "hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"
71
80
  }),
72
- n(p, {
73
- onClick: i[2] || (i[2] = (l) => e.remove(e.product)),
81
+ d(x, {
82
+ onClick: a[2] || (a[2] = (u) => h(e.product)),
74
83
  class: "hover-scale-1 cursor-pointer bg-grey i-big pd-thin radius-small"
75
84
  })
76
- ])) : r("", !0)
85
+ ])) : o("", !0)
77
86
  ])
78
87
  ])
79
88
  ]));
80
89
  }
81
90
  };
82
91
  export {
83
- L as default
92
+ A as default
84
93
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),N=require("vue-router"),f=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const _=require("../../../products/components/blocks/CardPosition.vue.cjs");require("../../../products/store/leftovers.cjs");require("../../../products/components/blocks/ListPositions.vue2.cjs");const r=require("../../store/orders.cjs"),V=require("../../../products/store/products.cjs");require("./EditOrder.vue2.cjs");const E=e.createElementVNode("header",{class:"mn-b-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Edit Order")],-1),g={key:0,class:"w-100"},b={class:"mn-thinw-100 flex-v-center flex block"},P={class:"p-big"},x={key:0,class:"p-big t-semi"},q={key:1,class:"p-big t-semi"},C={key:2,class:"p-big t-semi"},w={key:3},S={key:4},D={key:5},T=e.createElementVNode("button",{class:"mn-l-auto button"},"Запросить онлайн",-1),O={__name:"EditOrder",props:["showProduct"],setup(k){const h=N.useRoute(),v=k;v.showProduct=[];function s(t){r.actions.addProduct(t)}function y(t){r.actions.deleteProduct(t)}let B=e.reactive([]);e.toRefs(B),e.ref(!1);const c=e.ref([]);let o=e.ref({});e.onMounted(async()=>{try{const t=await V.actions.read({organization:"65141c476cf9860013b49f6d"});console.log(t),c.value=t}catch{console.error("error")}await r.actions.fetchOrder(h.params.id),o.value=r.state.current});const n=e.computed(()=>100);return e.computed(()=>[]),(t,R)=>{var a,l,d,i,u,m;return e.openBlock(),e.createElementBlock(e.Fragment,null,[E,e.createVNode(f.default,{title:"Add Position",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(_.default,{onAdd:s,products:c.value},null,8,["products"])]),_:1}),e.createVNode(f.default,{title:"Invetory Sheet",class:"mn-b-semi"},{default:e.withCtx(()=>[r.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",g," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.state.current.positions,(p,A)=>(e.openBlock(),e.createBlock(_.default,{key:p._id,product:p,products:c.value,onAdd:s,onDelete:y,onUpdate:t.updateProduct},null,8,["product","products","onUpdate"]))),128))]),_:1}),e.createElementVNode("div",b,[e.createElementVNode("p",P,[e.createTextVNode("Сумма к оплате: "),((a=e.unref(o).info)==null?void 0:a.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",x,e.toDisplayString(n.value/100)+" ₽",1)):e.createCommentVNode("",!0),((l=e.unref(o).info)==null?void 0:l.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(n.value/100+350)+" ₽",1)):e.createCommentVNode("",!0),((d=e.unref(o).info)==null?void 0:d.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",C,e.toDisplayString(n.value/100+550)+" ₽",1)):e.createCommentVNode("",!0),e.createTextVNode(" (Заказ "+e.toDisplayString(n.value/100)+" ₽ + доставка ",1),((i=e.unref(o).info)==null?void 0:i.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",w,"0")):e.createCommentVNode("",!0),((u=e.unref(o).info)==null?void 0:u.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",S,"350")):e.createCommentVNode("",!0),((m=e.unref(o).info)==null?void 0:m.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",D,"550")):e.createCommentVNode("",!0),e.createTextVNode(" ₽) ")]),T])],64)}}};exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),E=require("vue-router"),C=require("../../../../components/Feed/Feed.vue.cjs"),P=require("../../../../components/Popup/Popup.vue2.cjs"),q=require("../../../../components/Block/Block.vue.cjs"),v=require("../blocks/CardOrderItem.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const i=require("../../../globals/store/globals.cjs"),r=require("../../store/orders.cjs"),w=require("../../../products/store/products.cjs");require("./EditOrder.vue2.cjs");const x=e.createElementVNode("header",{class:"mn-b-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Create Order")],-1),T=e.createElementVNode("h3",{class:"mn-b-small"},"Add to order",-1),O={class:"bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},S={key:0,class:"w-100"},D={class:"mn-thinw-100 flex-v-center flex block"},F={class:"p-big"},I={key:0,class:"p-big t-semi"},R={key:1,class:"p-big t-semi"},M={key:2,class:"p-big t-semi"},L={key:3},j={key:4},z={key:5},A=e.createElementVNode("button",{class:"mn-l-auto button"},"Запросить онлайн",-1),G={__name:"EditOrder",setup(H){const N=E.useRoute(),c=e.ref(!1);function V(){c.value=!0}function a(){c.value=!1}let o=e.ref(null);return e.onMounted(async()=>{}),(n,J)=>{var l,d,u,m,p,_,f,k,h,y,b,B;return e.openBlock(),e.createElementBlock("div",null,[x,e.createVNode(P.default,{title:"Добавить участника",onClosePopup:a,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[T,e.createElementVNode("div",O,[e.createVNode(C.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:t=>w.actions.read(t),state:null},options:{organization:e.unref(N).params._id},class:""},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(s,K)=>(e.openBlock(),e.createBlock(v.default,{key:s._id,editable:!1,product:s,onClick:()=>{let g={...s};g.quantity=1,i.actions.add(r.state.current.positions,g),a()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(q.default,{title:"Invetory Sheet",actions:[{label:"+",function:()=>V()}],class:"mn-b-semi"},{default:e.withCtx(()=>[r.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",S," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.state.current.positions,(t,s)=>(e.openBlock(),e.createBlock(v.default,{key:t._id,editable:!0,product:t,onIncrease:()=>{i.actions.increment(r.state.current.positions,t)},onDecrease:()=>{i.actions.decrement(r.state.current.positions,t)},onRemove:()=>{i.actions.delete(r.state.current.positions,t)},class:"mn-b-thin pd-thin radius-medium bg-white"},null,8,["product","onIncrease","onDecrease","onRemove"]))),128))]),_:1},8,["actions"]),e.createElementVNode("div",D,[e.createElementVNode("p",F,[e.createTextVNode("Сумма к оплате: "),((d=(l=e.unref(o))==null?void 0:l.info)==null?void 0:d.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",I,e.toDisplayString(n.orderTotalPrice/100)+" ₽",1)):e.createCommentVNode("",!0),((m=(u=e.unref(o))==null?void 0:u.info)==null?void 0:m.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",R,e.toDisplayString(n.orderTotalPrice/100+350)+" ₽",1)):e.createCommentVNode("",!0),((_=(p=e.unref(o))==null?void 0:p.info)==null?void 0:_.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",M,e.toDisplayString(n.orderTotalPrice/100+550)+" ₽",1)):e.createCommentVNode("",!0),e.createTextVNode(" (Заказ "+e.toDisplayString(n.orderTotalPrice/100)+" ₽ + доставка ",1),((k=(f=e.unref(o))==null?void 0:f.info)==null?void 0:k.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",L,"0")):e.createCommentVNode("",!0),((y=(h=e.unref(o))==null?void 0:h.info)==null?void 0:y.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",j,"350")):e.createCommentVNode("",!0),((B=(b=e.unref(o))==null?void 0:b.info)==null?void 0:B.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",z,"550")):e.createCommentVNode("",!0),e.createTextVNode(" ₽) ")]),A])])}}};exports.default=G;