@ozdao/prometheus-framework 0.2.102 → 0.2.103

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/dist/main-DfD5hLQo.mjs +13633 -0
  2. package/dist/main-DwyUYWFX.js +92 -0
  3. package/dist/orders.server.js +16 -0
  4. package/dist/orders.server.mjs +16 -0
  5. package/dist/products.server.js +7 -1
  6. package/dist/products.server.mjs +7 -1
  7. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +23 -21
  9. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -36
  11. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +36 -1
  13. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  15. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  16. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  17. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  18. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  19. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  21. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +87 -67
  29. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +30 -31
  31. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +119 -87
  33. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  35. package/dist/prometheus-framework.cjs.js +1 -1
  36. package/dist/prometheus-framework.es.js +1 -1
  37. package/dist/style.css +1 -1
  38. package/dist/web-C0sFgeYh.mjs +54 -0
  39. package/dist/web-kg3KgbAF.js +1 -0
  40. package/package.json +1 -1
  41. package/src/components/Feed/Feed.vue +9 -10
  42. package/src/modules/orders/controllers/orders.controller.js +20 -1
  43. package/src/modules/products/components/blocks/CardPosition.vue +32 -7
  44. package/src/modules/products/components/pages/EditLeftover.vue +0 -3
  45. package/src/modules/products/components/pages/ProductEdit.vue +51 -15
  46. package/src/modules/products/controllers/products.controller.js +1 -2
  47. package/src/modules/products/models/product.model.js +6 -0
  48. package/src/modules/products/routes/products.routes.js +1 -10
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const o=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../../../../components/Field/Field.vue2.cjs"),V=require("../../../../components/Checkbox/Checkbox.vue.cjs"),k=require("../../../../components/Button/Button.vue2.cjs"),B=require("../../../../components/Popup/Popup.vue.cjs"),C=require("../../../../components/EditImages/EditImages.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),b=require("../blocks/CardPosition.vue.cjs"),q=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),N=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const P={class:"for-transition w-100 cols-1 pd-thin gap-thin"},y={class:"mn-r-auto"},E={class:"cols-2 gap-thin"},U={key:0,class:"cols-1 gap-thin"},z={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},I={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},D={__name:"ProductEdit",setup(O){const l=h.useRoute(),m=h.useRouter(),p=e.ref(t.state.all),f=e.ref(!1);function v(d){f.value=!0}function s(){f.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await N.actions.fetchCategories();try{const d=await t.actions.read({organization:l.params._id,limit:100});p.value=d}catch{console.error("error")}});function w(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function g(){m.push({name:"Organization",params:{_id:l.params._id}})}return(d,i)=>(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",y,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(k.default,{key:0,submit:x,callback:g,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(k.default,{submit:w,callback:g,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(C.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":i[0]||(i[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",E,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(q.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>v()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",U,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(b.default,{key:a._id,product:a,array:t.state.current.ingredients,products:p.value,onAdd:i[1]||(i[1]=r=>{u.actions.add(t.state.current.ingredients,r),s()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),s()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),s()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"])]),e.createVNode(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(m).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.state.all,(a,n)=>(e.openBlock(),e.createBlock(V.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(c.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(c.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",z,[e.createVNode(_.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(c.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(c.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",I,[e.createVNode(_.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(B.default,{title:"Add ingredient",onClosePopup:s,isPopupOpen:f.value,class:"bg-white pd-big radius-big"},{default:e.withCtx(()=>[e.createVNode(b.default,{onAdd:i[2]||(i[2]=a=>u.actions.add(t.state.current.ingredients,a)),products:p.value,class:"flex-column"},null,8,["products"])]),_:1},8,["isPopupOpen"])]))}};exports.default=D;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const o=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.vue.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),y=require("../../../../components/EditImages/EditImages.vue.cjs"),b=require("../../../icons/navigation/IconDelete.vue.cjs"),q=require("../blocks/CardPosition.vue.cjs"),P=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),E=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),w=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const U={class:"for-transition w-100 cols-1 pd-thin gap-thin"},z={class:"mn-r-auto"},F={class:"cols-2 gap-thin"},I={key:0,class:"cols-1 gap-thin"},O={class:"bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},D={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},L={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},S={__name:"ProductEdit",setup(T){const l=k.useRoute(),f=k.useRouter(),g=e.ref(t.state.all),p=e.ref(!1);function N(s){p.value=!0}function i(){p.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await w.actions.fetchCategories();try{const s=await t.actions.read({organization:l.params._id,limit:100});g.value=s}catch{console.error("error")}});function v(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function h(){f.push({name:"Organization",params:{_id:l.params._id}})}return(s,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",z,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(_.default,{key:0,submit:x,callback:h,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(_.default,{submit:v,callback:h,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(y.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":c[0]||(c[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",F,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(E.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>N()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(q.default,{key:a._id,product:a,array:t.state.current.ingredients,products:g.value,showPrice:!1,onAdd:c[1]||(c[1]=r=>{u.actions.add(t.state.current.ingredients,r),i()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),i()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),i()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"]),e.createVNode(C.default,{title:"Add ingredient",onClosePopup:i,isPopupOpen:p.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(V.default,{search:{class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:a=>t.actions.read(a),state:null},options:{organization:e.unref(l).params._id},class:""},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(n,r)=>(e.openBlock(),e.createBlock(P.default,{key:n._id,editable:!1,product:n,onClick:()=>{let m={...n};m.quantity=1,m.type="pcs",u.actions.add(t.state.current.ingredients,m),i()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"])]),e.createVNode(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(f).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,(a,n)=>(e.openBlock(),e.createBlock(B.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",D,[e.createVNode(b.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",L,[e.createVNode(b.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]))}};exports.default=S;
@@ -1,83 +1,85 @@
1
- import { ref as U, onMounted as A, openBlock as n, createElementBlock as s, createVNode as a, withCtx as l, createElementVNode as f, toDisplayString as B, unref as g, createBlock as y, createTextVNode as C, createCommentVNode as $, Fragment as _, renderList as h } from "vue";
2
- import { useRoute as E, useRouter as R } from "vue-router";
1
+ import { ref as U, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as l, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as $, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
2
+ import { useRoute as F, useRouter as R } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import d from "../../../../components/Block/Block.vue.js";
7
7
  import "../../../../components/Tab/Tab.vue.js";
8
- import b from "../../../../components/Field/Field.vue2.js";
8
+ import v from "../../../../components/Field/Field.vue2.js";
9
9
  import S from "../../../../components/Checkbox/Checkbox.vue.js";
10
- import z from "../../../../components/Button/Button.vue2.js";
10
+ import N from "../../../../components/Button/Button.vue2.js";
11
11
  import T from "../../../../components/Popup/Popup.vue.js";
12
- import F from "../../../../components/EditImages/EditImages.vue.js";
13
- import N from "../../../icons/navigation/IconDelete.vue.js";
14
- import D from "../blocks/CardPosition.vue.js";
15
- import L from "../sections/EditProductInfo.vue.js";
16
- import { actions as v } from "../../../globals/store/globals.js";
17
- import { state as e, mutations as M, actions as u } from "../../store/products.js";
18
- import { actions as j, state as q } from "../../store/categories.js";
12
+ import A from "../../../../components/Feed/Feed.vue.js";
13
+ import L from "../../../../components/EditImages/EditImages.vue.js";
14
+ import D from "../../../icons/navigation/IconDelete.vue.js";
15
+ import q from "../blocks/CardPosition.vue.js";
16
+ import M from "../../../orders/components/blocks/CardOrderItem.vue.js";
17
+ import j from "../sections/EditProductInfo.vue.js";
18
+ import { actions as w } from "../../../globals/store/globals.js";
19
+ import { state as e, mutations as G, actions as c } from "../../store/products.js";
20
+ import { actions as H, state as J } from "../../store/categories.js";
19
21
  import "./ProductEdit.vue2.js";
20
- const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class: "mn-r-auto" }, J = { class: "cols-2 gap-thin" }, K = {
22
+ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class: "mn-r-auto" }, W = { class: "cols-2 gap-thin" }, X = {
21
23
  key: 0,
22
24
  class: "cols-1 gap-thin"
23
- }, Q = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, W = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, he = {
25
+ }, Y = { class: "bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, ke = {
24
26
  __name: "ProductEdit",
25
- setup(X) {
26
- const i = E(), k = R(), w = U(e.all), x = U(!1);
27
- function O(m) {
28
- x.value = !0;
27
+ setup(te) {
28
+ const o = F(), k = R(), P = U(e.all), y = U(!1);
29
+ function O(g) {
30
+ y.value = !0;
29
31
  }
30
- function p() {
31
- x.value = !1;
32
+ function u() {
33
+ y.value = !1;
32
34
  }
33
- A(async () => {
34
- M.resetProduct(), i.params.product && await u.read({ _id: i.params.product }), e.current.ingredients || (e.current.ingredients = []), await j.fetchCategories();
35
+ B(async () => {
36
+ G.resetProduct(), o.params.product && await c.read({ _id: o.params.product }), e.current.ingredients || (e.current.ingredients = []), await H.fetchCategories();
35
37
  try {
36
- const m = await u.read({
37
- organization: i.params._id,
38
+ const g = await c.read({
39
+ organization: o.params._id,
38
40
  limit: 100
39
41
  });
40
- w.value = m;
42
+ P.value = g;
41
43
  } catch {
42
44
  console.error("error");
43
45
  }
44
46
  });
45
47
  function I() {
46
- i.params.product ? u.update(i.params.product, e.current) : u.create(i.params._id, e.current);
48
+ o.params.product ? c.update(o.params.product, e.current) : c.create(o.params._id, e.current);
47
49
  }
48
50
  function V() {
49
- u.deleteProduct(e.current._id);
51
+ c.deleteProduct(e.current._id);
50
52
  }
51
- function P() {
53
+ function C() {
52
54
  k.push({
53
55
  name: "Organization",
54
56
  params: {
55
- _id: i.params._id
57
+ _id: o.params._id
56
58
  }
57
59
  });
58
60
  }
59
- return (m, c) => (n(), s("div", G, [
61
+ return (g, h) => (n(), s("div", K, [
60
62
  a(d, { class: "flex-nowrap flex-v-center flex" }, {
61
63
  default: l(() => [
62
- f("h1", H, B(g(i).params.product ? e.current.name : "Create Product"), 1),
63
- g(i).params.product ? (n(), y(z, {
64
+ m("h1", Q, E(p(o).params.product ? e.current.name : "Create Product"), 1),
65
+ p(o).params.product ? (n(), b(N, {
64
66
  key: 0,
65
67
  submit: V,
66
- callback: P,
68
+ callback: C,
67
69
  class: "bg-red mn-r-thin"
68
70
  }, {
69
71
  default: l(() => [
70
- C(" Delete ")
72
+ $(" Delete ")
71
73
  ]),
72
74
  _: 1
73
- })) : $("", !0),
74
- a(z, {
75
+ })) : z("", !0),
76
+ a(N, {
75
77
  submit: I,
76
- callback: P,
78
+ callback: C,
77
79
  class: "bg-main"
78
80
  }, {
79
81
  default: l(() => [
80
- C(" Save ")
82
+ $(" Save ")
81
83
  ]),
82
84
  _: 1
83
85
  })
@@ -89,20 +91,20 @@ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class
89
91
  class: "h-min"
90
92
  }, {
91
93
  default: l(() => [
92
- a(F, {
94
+ a(L, {
93
95
  images: e.current.images,
94
96
  uploadPath: "photos",
95
- "onUpdate:images": c[0] || (c[0] = (t) => {
97
+ "onUpdate:images": h[0] || (h[0] = (t) => {
96
98
  e.current.images = t;
97
99
  })
98
100
  }, null, 8, ["images"])
99
101
  ]),
100
102
  _: 1
101
103
  }),
102
- f("div", J, [
104
+ m("div", W, [
103
105
  a(d, { title: "Profile" }, {
104
106
  default: l(() => [
105
- a(L, {
107
+ a(j, {
106
108
  product: e.current
107
109
  }, null, 8, ["product"])
108
110
  ]),
@@ -117,41 +119,89 @@ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class
117
119
  }]
118
120
  }, {
119
121
  default: l(() => [
120
- e.current.ingredients.length > 0 ? (n(), s("div", K, [
121
- (n(!0), s(_, null, h(e.current.ingredients, (t, o) => (n(), y(D, {
122
+ e.current.ingredients.length > 0 ? (n(), s("div", X, [
123
+ (n(!0), s(f, null, _(e.current.ingredients, (t, i) => (n(), b(q, {
122
124
  key: t._id,
123
125
  product: t,
124
126
  array: e.current.ingredients,
125
- products: w.value,
126
- onAdd: c[1] || (c[1] = (r) => {
127
- v.add(e.current.ingredients, r), p();
127
+ products: P.value,
128
+ showPrice: !1,
129
+ onAdd: h[1] || (h[1] = (r) => {
130
+ w.add(e.current.ingredients, r), u();
128
131
  }),
129
132
  onUpdate: (r) => {
130
- v.update(e.current.ingredients, r, o), p();
133
+ w.update(e.current.ingredients, r, i), u();
131
134
  },
132
135
  onDelete: (r) => {
133
- v.delete(e.current.ingredients, r, o), p();
136
+ w.delete(e.current.ingredients, r, i), u();
134
137
  }
135
138
  }, null, 8, ["product", "array", "products", "onUpdate", "onDelete"]))), 128))
136
- ])) : $("", !0)
139
+ ])) : z("", !0)
137
140
  ]),
138
141
  _: 1
139
- }, 8, ["actions"])
142
+ }, 8, ["actions"]),
143
+ a(T, {
144
+ title: "Add ingredient",
145
+ onClosePopup: u,
146
+ isPopupOpen: y.value,
147
+ class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
148
+ }, {
149
+ default: l(() => [
150
+ m("div", Y, [
151
+ a(A, {
152
+ search: {
153
+ class: "bg-white mn-b-thin"
154
+ },
155
+ states: {
156
+ empty: {
157
+ title: "No Products Found",
158
+ description: "Currently, there are no such products available."
159
+ }
160
+ },
161
+ store: {
162
+ read: (t) => c.read(t),
163
+ state: null
164
+ },
165
+ options: {
166
+ organization: p(o).params._id
167
+ },
168
+ class: ""
169
+ }, {
170
+ default: l(({
171
+ items: t
172
+ }) => [
173
+ (n(!0), s(f, null, _(t, (i, r) => (n(), b(M, {
174
+ key: i._id,
175
+ editable: !1,
176
+ product: i,
177
+ onClick: () => {
178
+ let x = { ...i };
179
+ x.quantity = 1, x.type = "pcs", w.add(e.current.ingredients, x), u();
180
+ },
181
+ class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
182
+ }, null, 8, ["product", "onClick"]))), 128))
183
+ ]),
184
+ _: 1
185
+ }, 8, ["store", "options"])
186
+ ])
187
+ ]),
188
+ _: 1
189
+ }, 8, ["isPopupOpen"])
140
190
  ]),
141
191
  a(d, {
142
192
  title: "Categories",
143
193
  actions: [{
144
194
  label: "+",
145
- function: () => g(k).push({
195
+ function: () => p(k).push({
146
196
  name: "Categories Organization",
147
197
  params: {
148
- _id: g(i).params._id
198
+ _id: p(o).params._id
149
199
  }
150
200
  })
151
201
  }]
152
202
  }, {
153
203
  default: l(() => [
154
- (n(!0), s(_, null, h(q.all, (t, o) => (n(), y(S, {
204
+ (n(!0), s(f, null, _(J.all, (t, i) => (n(), b(S, {
155
205
  label: t.name,
156
206
  name: "categories",
157
207
  value: t.url,
@@ -172,25 +222,25 @@ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class
172
222
  class: "cols-1 gap-thin"
173
223
  }, {
174
224
  default: l(() => [
175
- (n(!0), s(_, null, h(e.current.information, (t, o) => (n(), s("div", {
225
+ (n(!0), s(f, null, _(e.current.information, (t, i) => (n(), s("div", {
176
226
  class: "gap-thin flex-nowrap flex",
177
- key: o
227
+ key: i
178
228
  }, [
179
- a(b, {
229
+ a(v, {
180
230
  field: t.name,
181
231
  "onUpdate:field": (r) => t.name = r,
182
232
  placeholder: "Название параметра",
183
233
  class: "w-100 bg-white radius-small pd-medium"
184
234
  }, null, 8, ["field", "onUpdate:field"]),
185
- a(b, {
235
+ a(v, {
186
236
  field: t.value,
187
237
  "onUpdate:field": (r) => t.value = r,
188
238
  placeholder: "Значение параметра",
189
239
  class: "w-100 bg-white radius-small pd-medium"
190
240
  }, null, 8, ["field", "onUpdate:field"]),
191
- f("div", Q, [
192
- a(N, {
193
- onClick: () => e.current.information.splice(o, 1),
241
+ m("div", Z, [
242
+ a(D, {
243
+ onClick: () => e.current.information.splice(i, 1),
194
244
  class: "i-medium"
195
245
  }, null, 8, ["onClick"])
196
246
  ])
@@ -207,53 +257,35 @@ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class
207
257
  }]
208
258
  }, {
209
259
  default: l(() => [
210
- (n(!0), s(_, null, h(e.current.localization, (t, o) => (n(), s("div", {
260
+ (n(!0), s(f, null, _(e.current.localization, (t, i) => (n(), s("div", {
211
261
  class: "gap-thin mn-b-thin flex-nowrap flex",
212
- key: o
262
+ key: i
213
263
  }, [
214
- a(b, {
264
+ a(v, {
215
265
  field: t.name,
216
266
  "onUpdate:field": (r) => t.name = r,
217
267
  placeholder: "Название параметра",
218
268
  class: "w-100 bg-white radius-small pd-medium"
219
269
  }, null, 8, ["field", "onUpdate:field"]),
220
- a(b, {
270
+ a(v, {
221
271
  field: t.value,
222
272
  "onUpdate:field": (r) => t.value = r,
223
273
  placeholder: "Значение параметра",
224
274
  class: "w-100 bg-white radius-small pd-medium"
225
275
  }, null, 8, ["field", "onUpdate:field"]),
226
- f("div", W, [
227
- a(N, {
228
- onClick: () => e.current.localization.splice(o, 1),
276
+ m("div", ee, [
277
+ a(D, {
278
+ onClick: () => e.current.localization.splice(i, 1),
229
279
  class: "i-medium"
230
280
  }, null, 8, ["onClick"])
231
281
  ])
232
282
  ]))), 128))
233
283
  ]),
234
284
  _: 1
235
- }, 8, ["actions"]),
236
- a(T, {
237
- title: "Add ingredient",
238
- onClosePopup: p,
239
- isPopupOpen: x.value,
240
- class: "bg-white pd-big radius-big"
241
- }, {
242
- default: l(() => [
243
- a(D, {
244
- onAdd: c[2] || (c[2] = (t) => v.add(
245
- e.current.ingredients,
246
- t
247
- )),
248
- products: w.value,
249
- class: "flex-column"
250
- }, null, 8, ["products"])
251
- ]),
252
- _: 1
253
- }, 8, ["isPopupOpen"])
285
+ }, 8, ["actions"])
254
286
  ]));
255
287
  }
256
288
  };
257
289
  export {
258
- he as default
290
+ ke as default
259
291
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../components/Spoiler/Spoiler.vue.cjs"),b=require("../../../../components/Checkbox/Checkbox.vue.cjs"),q=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-white-transp-50 radius-big"},F={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small t-transp"},null,-1),B={class:"cursor-pointer mn-r-auto t-medium p-big"},C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();let _={status:"published"};[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories(_)),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const k=h,w=()=>{k("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=q.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",B,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),e.createElementVNode("button",{onClick:w,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),b=require("../../../../components/Checkbox/Checkbox.vue.cjs"),q=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-white-transp-50 radius-big"},F={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small t-transp"},null,-1),B={class:"cursor-pointer mn-r-auto t-medium p-big"},C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();let _={status:"published"};[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories(_)),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const k=h,w=()=>{k("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=q.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",B,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),e.createElementVNode("button",{onClick:w,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
@@ -1,5 +1,5 @@
1
1
  import { withAsyncContext as P, ref as T, watch as V, onMounted as B, openBlock as a, createElementBlock as p, createVNode as h, withCtx as n, createElementVNode as c, toDisplayString as d, unref as f, Fragment as v, renderList as _, createBlock as w } from "vue";
2
- import x from "../../../../components/Spoiler/Spoiler.vue.js";
2
+ import x from "../../../../components/Spoiler/Spoiler.vue2.js";
3
3
  import F from "../../../../components/Checkbox/Checkbox.vue.js";
4
4
  import { useI18n as R } from "vue-i18n";
5
5
  import { useRoute as U, useRouter as $ } from "vue-router";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-pGo7JpSP.js");exports.Address=e.Address;exports.Breadcrumbs=e._sfc_main$9;exports.Button=e._sfc_main;exports.Checkbox=e.Checkbox;exports.Chips=e.Chips;exports.Countdown=e._sfc_main$10;exports.DatePicker=e._sfc_main$11;exports.Dropdown=e.Dropdown;exports.EmptyState=e._sfc_main$12;exports.Error=e._sfc_main$1;exports.Feed=e._sfc_main$13;exports.Field=e.Field;exports.FieldBig=e._sfc_main$14;exports.FieldPhone=e.FieldPhone;exports.FieldTags=e.FieldTags;exports.Loader=e.Loader;exports.LocationMarker=e.LocationMarker;exports.Magnifier=e.Magnifier;exports.Map=e.Map;exports.Popup=e._sfc_main$2;exports.Radio=e._sfc_main$3;exports.Select=e.Select;exports.SelectMulti=e.SelectMulti;exports.Shader=e.Shader;exports.Sidebar=e._sfc_main$15;exports.Slider=e._sfc_main$16;exports.Spoiler=e._sfc_main$4;exports.Status=e._sfc_main$17;exports.Tab=e._sfc_main$5;exports.Text=e._sfc_main$6;exports.Tooltip=e.Tooltip;exports.Upload=e.Upload;exports.UploadImage=e._sfc_main$7;exports.UploadImageMultiple=e._sfc_main$8;exports.default=e.main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-DwyUYWFX.js");exports.Address=e.Address;exports.Breadcrumbs=e._sfc_main$9;exports.Button=e._sfc_main;exports.Checkbox=e.Checkbox;exports.Chips=e.Chips;exports.Countdown=e._sfc_main$10;exports.DatePicker=e._sfc_main$11;exports.Dropdown=e.Dropdown;exports.EmptyState=e._sfc_main$12;exports.Error=e._sfc_main$1;exports.Feed=e._sfc_main$13;exports.Field=e.Field;exports.FieldBig=e._sfc_main$14;exports.FieldPhone=e.FieldPhone;exports.FieldTags=e.FieldTags;exports.Loader=e.Loader;exports.LocationMarker=e.LocationMarker;exports.Magnifier=e.Magnifier;exports.Map=e.Map;exports.Popup=e._sfc_main$2;exports.Radio=e._sfc_main$3;exports.Select=e.Select;exports.SelectMulti=e.SelectMulti;exports.Shader=e.Shader;exports.Sidebar=e._sfc_main$15;exports.Slider=e._sfc_main$16;exports.Spoiler=e._sfc_main$4;exports.Status=e._sfc_main$17;exports.Tab=e._sfc_main$5;exports.Text=e._sfc_main$6;exports.Tooltip=e.Tooltip;exports.Upload=e.Upload;exports.UploadImage=e._sfc_main$7;exports.UploadImageMultiple=e._sfc_main$8;exports.default=e.main;
@@ -1,4 +1,4 @@
1
- import { A as e, k as o, _ as d, C as r, l as t, n as i, o as l, D as p, p as u, a as S, q as n, F as c, r as g, b as m, s as F, t as M, L as b, u as h, M as T, c as f, d as k, S as x, e as C, v as U, w, x as B, f as D, y as L, g as P, h as y, T as A, U as E, i as I, j, m as q } from "./main-BJvlNekm.mjs";
1
+ import { A as e, k as o, _ as d, C as r, l as t, n as i, o as l, D as p, p as u, a as S, q as n, F as c, r as g, b as m, s as F, t as M, L as b, u as h, M as T, c as f, d as k, S as x, e as C, v as U, w, x as B, f as D, y as L, g as P, h as y, T as A, U as E, i as I, j, m as q } from "./main-DfD5hLQo.mjs";
2
2
  export {
3
3
  e as Address,
4
4
  o as Breadcrumbs,