@ozdao/prometheus-framework 0.2.55 → 0.2.57
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/gallery.server.js +4 -0
- package/dist/gallery.server.mjs +4 -0
- package/dist/main-37ee0513.mjs +13715 -0
- package/dist/main-b11c45d0.js +91 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +55 -32
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +70 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +95 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +2 -33
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +6 -4
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +16 -18
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +48 -33
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +52 -43
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +110 -78
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +7 -5
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +27 -27
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
- package/dist/style.css +1 -1
- package/dist/web-021a4053.js +1 -0
- package/dist/web-0a68cf2a.mjs +55 -0
- package/package.json +1 -1
- 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.
|
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.
|
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"),
|
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
|
2
|
-
import
|
3
|
-
import
|
4
|
-
const
|
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(
|
18
|
-
const
|
19
|
-
|
17
|
+
setup(l, { emit: o }) {
|
18
|
+
const a = o;
|
19
|
+
s(null);
|
20
|
+
const c = (e) => {
|
21
|
+
a("search", e);
|
20
22
|
};
|
21
|
-
return (
|
22
|
-
|
23
|
-
|
24
|
-
placeholder:
|
25
|
-
"onUpdate:field":
|
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
|
-
|
34
|
+
g as default
|
37
35
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
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
|
2
|
-
import
|
3
|
-
const
|
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
|
-
}),
|
20
|
+
}), m = {
|
21
21
|
setLoading(e) {
|
22
|
-
|
22
|
+
n.loading = e;
|
23
23
|
},
|
24
24
|
// Black/White Theme
|
25
25
|
toggleTheme() {
|
26
26
|
let e = document.querySelector(":root");
|
27
|
-
|
28
|
-
const
|
29
|
-
|
30
|
-
const s = getComputedStyle(document.documentElement).getPropertyValue(
|
31
|
-
|
32
|
-
})), l(
|
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,
|
35
|
-
const
|
36
|
-
|
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,
|
39
|
-
const
|
40
|
-
|
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,
|
43
|
-
const
|
44
|
-
|
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
|
-
|
83
|
-
|
84
|
-
function
|
85
|
-
var
|
86
|
-
let
|
87
|
-
|
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,
|
90
|
-
e.forEach((
|
91
|
-
const s = o
|
104
|
+
function l(e, t) {
|
105
|
+
e.forEach((o) => {
|
106
|
+
const s = t[o], r = s.split(",").map(Number);
|
92
107
|
let a;
|
93
|
-
|
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
|
-
|
98
|
-
|
99
|
-
|
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.
|
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.
|
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=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,13 +1,4 @@
|
|
1
|
-
|
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
|
-
|
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=
|
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
|
-
|
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
|
-
|
12
|
+
d as default
|
4
13
|
};
|
package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
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
|
2
|
-
import { useRouter as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
const
|
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
|
-
},
|
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
|
-
},
|
13
|
+
}, j = {
|
17
14
|
key: 1,
|
18
15
|
class: "t-transp"
|
19
|
-
},
|
16
|
+
}, z = {
|
20
17
|
key: 2,
|
21
18
|
class: "t-transp"
|
22
|
-
},
|
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
|
-
},
|
22
|
+
}, q = {
|
26
23
|
key: 0,
|
27
24
|
class: "mn-t-thin gap-thin flex-nojustify flex"
|
28
|
-
},
|
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
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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: (
|
45
|
-
}, null, 8,
|
46
|
-
e.product.images[0] ?
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
e.product.size ? (
|
55
|
-
typeof e.product.color == "string" && e.product.size ? (
|
56
|
-
typeof e.product.color == "string" ? (
|
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
|
-
|
59
|
-
e.product.quantity ? (
|
60
|
-
|
61
|
-
e.product.sale ? (
|
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 ? (
|
64
|
-
|
65
|
-
onClick:
|
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
|
-
|
69
|
-
onClick:
|
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
|
-
|
73
|
-
onClick:
|
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
|
-
])) :
|
85
|
+
])) : o("", !0)
|
77
86
|
])
|
78
87
|
])
|
79
88
|
]));
|
80
89
|
}
|
81
90
|
};
|
82
91
|
export {
|
83
|
-
|
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"),
|
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;
|