@ozdao/prometheus-framework 0.1.29 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-02c9721b.mjs +304 -0
- package/dist/BackofficeGallery-1d117a40.js +1 -0
- package/dist/BackofficeReports-cb4b180d.mjs +44 -0
- package/dist/BackofficeReports-d021871f.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +1945 -0
- package/dist/Button-2ca405bd.js +1 -0
- package/dist/Button-c59d387c.mjs +283 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +1 -0
- package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +1 -0
- package/dist/CardOrganization-18c1e3fa.mjs +297 -0
- package/dist/CardOrganization-7d679e75.js +1 -0
- package/dist/Chips-2ada5eda.mjs +200 -0
- package/dist/Chips-8d0a1d2c.js +1 -0
- package/dist/Dashboard-239fb7a6.mjs +52 -0
- package/dist/Dashboard-94267906.js +1 -0
- package/dist/EULA-8265b0cf.mjs +4218 -0
- package/dist/EULA-cbb27503.js +1 -0
- package/dist/Feed-66095e66.js +1 -0
- package/dist/Feed-76fc4475.mjs +383 -0
- package/dist/Feed-e55bc6fa.js +1 -0
- package/dist/Feed-ef6c6ca3.mjs +371 -0
- package/dist/IconEdit-c98d3d06.mjs +339 -0
- package/dist/IconEdit-e4d0cc6e.js +1 -0
- package/dist/Image-052a3cc2.mjs +480 -0
- package/dist/Image-c90ee624.js +9 -0
- package/dist/MenuItem-0b249b94.mjs +93 -0
- package/dist/MenuItem-8b70d2cf.js +1 -0
- package/dist/Product-4b58701f.js +7 -0
- package/dist/Product-a6251018.mjs +844 -0
- package/dist/ProductEdit-3ff2af92.js +1 -0
- package/dist/ProductEdit-f901314c.mjs +306 -0
- package/dist/ProfileBlogposts-57931834.mjs +70 -0
- package/dist/ProfileBlogposts-af88ce98.js +1 -0
- package/dist/ProfileEvents-588eadf9.js +1 -0
- package/dist/ProfileEvents-ed7f9603.mjs +62 -0
- package/dist/ProfileOrganizations-7911deec.mjs +219 -0
- package/dist/ProfileOrganizations-ae258581.js +1 -0
- package/dist/Publics-50c0ff6c.js +1 -0
- package/dist/Publics-f34131bf.mjs +45 -0
- package/dist/Select-11ddabf5.mjs +79 -0
- package/dist/Select-3ca5ab39.js +1 -0
- package/dist/Socials-3fe01af1.mjs +275 -0
- package/dist/Socials-b19d0cb1.js +1 -0
- package/dist/addMembersQuantity-ea216f92.mjs +85 -0
- package/dist/addMembersQuantity-f922d82b.js +84 -0
- package/dist/auth-98fe3efb.mjs +612 -0
- package/dist/auth-acbe3ae1.js +7 -0
- package/dist/auth.client.cjs +7 -8
- package/dist/auth.client.js +449 -441
- package/dist/auth.validation-495e9d6d.js +1 -0
- package/dist/auth.validation-e265b496.mjs +23 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +55 -28
- package/dist/click-outside-0b0727d1.js +2 -0
- package/dist/click-outside-6101836c.mjs +19 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +121 -121
- package/dist/community.server.js +35 -5
- package/dist/community.server.mjs +35 -5
- package/dist/components/Button/Button.vue.d.ts +3 -0
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/CardHeader/CardHeader.vue.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Field/Field.vue.d.ts +1 -1
- package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
- package/dist/components/Popup/Popup.vue.d.ts +2 -1
- package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Upload/Upload.vue.d.ts +1 -1
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +219 -217
- package/dist/events.server.js +2 -9
- package/dist/events.server.mjs +2 -9
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +2565 -2545
- package/dist/main.css +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/modules/backoffice/components/pages/Dashboard.vue.d.ts +6 -0
- package/dist/modules/icons/navigation/IconCross.vue.d.ts +4 -0
- package/dist/modules/legal/components/pages/legal/EULA.vue.d.ts +2 -0
- package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +12 -0
- package/dist/modules/organizations/components/sections/DetailsTab.vue.d.ts +2 -58
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +1 -1
- package/dist/modules/reports/components/pages/BackofficeReports.vue.d.ts +2 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +75 -0
- package/dist/modules/reports/store/reports.d.ts +41 -0
- package/dist/organizations-a241b21d.js +1 -0
- package/dist/organizations-ea9de495.mjs +122 -0
- package/dist/organizations.client-292e8444.js +3 -0
- package/dist/organizations.client-6fc91683.mjs +3072 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +51 -49
- package/dist/organizations.server.js +20 -28
- package/dist/organizations.server.mjs +20 -28
- package/dist/prometheus-framework.cjs.js +19 -19
- package/dist/prometheus-framework.es.js +1635 -1608
- package/dist/reports-270f69df.js +1 -0
- package/dist/reports-79cd9459.mjs +91 -0
- package/dist/reports.client.cjs +1 -0
- package/dist/reports.client.js +8 -0
- package/dist/reports.server.js +159 -0
- package/dist/reports.server.mjs +160 -0
- package/dist/states.validation-02ba0aee.js +1 -0
- package/dist/states.validation-e5f4fa3a.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +286 -242
- package/dist/users.server.js +6 -18
- package/dist/users.server.mjs +6 -18
- package/package.json +9 -1
- package/src/components/Button/Button.vue +66 -60
- package/src/components/CardHeader/CardHeader.vue +51 -50
- package/src/components/Dropdown/Dropdown.vue +28 -12
- package/src/components/FieldPhone/click-outside.js +0 -48
- package/src/components/Popup/Popup.vue +74 -23
- package/src/components/Select/Select.vue +10 -6
- package/src/main.ts +1 -1
- package/src/modules/auth/components/pages/EnterPassword.vue +13 -1
- package/src/modules/auth/components/pages/SignIn.vue +7 -1
- package/src/modules/auth/router/auth.js +1 -1
- package/src/modules/auth/store/auth.js +1 -1
- package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -3
- package/src/modules/backoffice/components/pages/Dashboard.vue +62 -0
- package/src/modules/backoffice/router/backoffice.js +26 -0
- package/src/modules/community/components/blocks/CardBlogpost.vue +3 -0
- package/src/modules/community/components/layouts/Community.vue +4 -4
- package/src/modules/community/components/pages/CreateBlogPost.vue +27 -28
- package/src/modules/community/components/sections/Comments.vue +4 -2
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/controllers/blog.controller.js +22 -3
- package/src/modules/community/controllers/comments.controller.js +23 -5
- package/src/modules/events/components/blocks/CardEvent.vue +4 -0
- package/src/modules/events/components/pages/EditEvent.vue +27 -28
- package/src/modules/events/components/sections/Feed.vue +1 -1
- package/src/modules/events/controllers/events.controller.js +3 -10
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +7 -23
- package/src/modules/icons/navigation/IconCross.vue +22 -0
- package/src/modules/legal/components/pages/Legal.vue +3 -0
- package/src/modules/legal/components/pages/legal/EULA.vue +2148 -0
- package/src/modules/legal/router/legal.js +11 -4
- package/src/modules/middlewares/client/auth.validation.js +14 -0
- package/src/modules/mobile/components/Menu/Menu.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/elements/ButtonFollow.vue +9 -7
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +101 -0
- package/src/modules/organizations/components/pages/Organization.vue +1 -34
- package/src/modules/organizations/components/sections/DetailsTab.vue +86 -8
- package/src/modules/organizations/controllers/memberships.controller.js +10 -7
- package/src/modules/organizations/controllers/organizations.controller.js +9 -20
- package/src/modules/organizations/controllers/utils/addMembersQuantity.js +21 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +65 -0
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +18 -0
- package/src/modules/organizations/models/membership.model.js +5 -5
- package/src/modules/organizations/store/memberships.js +6 -6
- package/src/modules/organizations/store/organizations.js +0 -1
- package/src/modules/products/products.server.js +5 -0
- package/src/modules/reports/components/pages/BackofficeReports.vue +67 -0
- package/src/modules/reports/components/sections/FormReport.vue +114 -0
- package/src/modules/reports/controllers/reports.controller.js +67 -0
- package/src/modules/reports/models/report.model.js +58 -0
- package/src/modules/reports/reports.client.js +17 -0
- package/src/modules/reports/reports.server.js +13 -0
- package/src/modules/reports/routes/reports.routes.js +43 -0
- package/src/modules/reports/store/reports.js +118 -0
- package/src/modules/users/components/pages/Profile.vue +57 -10
- package/src/modules/users/controllers/users.controller.js +6 -19
- package/src/styles/base/all.scss +2 -0
- package/src/styles/layout.scss +39 -63
- package/src/styles/theme.scss +0 -1
- package/src/styles/components/popup.scss +0 -55
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const u=require("./_plugin-vue_export-helper-f246444f.js"),d={key:0,class:"t-transp mn-r-small"},m={class:"w-100"},f=["type","value","placeholder"],h=["value","placeholder"],v={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},b={__name:"Field",props:{label:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1},emits:["update:field","focus","blur"],setup(a,{emit:n}){const i=a,o=e.ref(i.field);return(r,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[r.$attrs.class,{"bg-fourth-nano":a.validation}],"flex-center flex-nowrap flex"])},[a.label?(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("span",null,e.toDisplayString(a.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",m,[a.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=l=>o.value=n("update:field",l.target.value)),onFocus:t[1]||(t[1]=l=>n("focus",l)),onBlur:t[2]||(t[2]=l=>n("blur",l)),type:a.type,class:"w-100",value:a.field,placeholder:a.placeholder},null,40,f)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=l=>o.value=n("update:field",l.target.value)),onFocus:t[4]||(t[4]=l=>n("focus",l)),onBlur:t[5]||(t[5]=l=>n("blur",l)),class:"w-100",value:a.field,placeholder:a.placeholder},null,40,h))])],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(a.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},g=u._export_sfc(b,[["__scopeId","data-v-e4056b41"]]),p=["onClick","disabled"],N={key:0},k={key:0,class:"loading"},y=e.createElementVNode("svg",{class:"i-regular",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[e.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])],-1),V=[y],E={key:0,class:"loading t-white"},x={key:0,class:"error"},B={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},setup(a){const n=a,i=e.ref(null),o=e.ref(null),r=e.ref(!1),t=e.ref(!1);async function l(){i.value.style["pointer-events"]="none",o.value=null,r.value=!0;const s=()=>{i.value&&(i.value.classList.replace("bg-light-main","bg-main"),i.value.style.pointerEvents="auto",r.value=!1,t.value=!1,o.value=null)};try{await n.submit(),i.value.classList.replace("bg-main","bg-light-main"),r.value=!1,n.showSucces?(t.value=!0,setTimeout(s,500)):s(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{i.value.classList.replace("bg-main","bg-fourth-nano"),o.value="❌",setTimeout(()=>{s(),i.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(s,c)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(l,["stop"]),disabled:a.validation,ref_key:"button",ref:i,class:"w-100 bg-main button"},[e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[!r.value&&!o.value&&!t.value?(e.openBlock(),e.createElementBlock("span",N,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0)]),_:3}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[r.value&&!o.value?(e.openBlock(),e.createElementBlock("span",k,V)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[t.value&&a.showSucces?(e.openBlock(),e.createElementBlock("span",E,"✔")):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("span",x,e.toDisplayString(o.value),1)):e.createCommentVNode("",!0)]),_:1})],8,p))}};exports.Field=g;exports._sfc_main=B;
|
@@ -0,0 +1,283 @@
|
|
1
|
+
import { ref as m, openBlock as s, createElementBlock as u, Fragment as y, createElementVNode as e, normalizeClass as w, toDisplayString as g, createCommentVNode as d, createVNode as v, Transition as b, withCtx as h, withModifiers as x, renderSlot as k, createTextVNode as f } from "vue";
|
2
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
3
|
+
import { _ as C } from "./_plugin-vue_export-helper-dad06003.mjs";
|
4
|
+
const N = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, T = { class: "w-100" }, B = ["type", "value", "placeholder"], M = ["value", "placeholder"], F = {
|
8
|
+
key: 0,
|
9
|
+
class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
|
10
|
+
}, _ = {
|
11
|
+
__name: "Field",
|
12
|
+
props: {
|
13
|
+
label: null,
|
14
|
+
type: "text",
|
15
|
+
placeholder: "Enter something here",
|
16
|
+
field: null,
|
17
|
+
validation: !1,
|
18
|
+
disabled: !1
|
19
|
+
},
|
20
|
+
emits: ["update:field", "focus", "blur"],
|
21
|
+
setup(a, { emit: n }) {
|
22
|
+
const i = m(a.field);
|
23
|
+
return (r, t) => (s(), u(y, null, [
|
24
|
+
e("div", {
|
25
|
+
class: w([[r.$attrs.class, { "bg-fourth-nano": a.validation }], "flex-center flex-nowrap flex"])
|
26
|
+
}, [
|
27
|
+
a.label ? (s(), u("div", N, [
|
28
|
+
e("span", null, g(a.label), 1)
|
29
|
+
])) : d("", !0),
|
30
|
+
e("div", T, [
|
31
|
+
a.type !== "textarea" ? (s(), u("input", {
|
32
|
+
key: 0,
|
33
|
+
onInput: t[0] || (t[0] = (l) => i.value = n("update:field", l.target.value)),
|
34
|
+
onFocus: t[1] || (t[1] = (l) => n("focus", l)),
|
35
|
+
onBlur: t[2] || (t[2] = (l) => n("blur", l)),
|
36
|
+
type: a.type,
|
37
|
+
class: "w-100",
|
38
|
+
value: a.field,
|
39
|
+
placeholder: a.placeholder
|
40
|
+
}, null, 40, B)) : (s(), u("textarea", {
|
41
|
+
key: 1,
|
42
|
+
onInput: t[3] || (t[3] = (l) => i.value = n("update:field", l.target.value)),
|
43
|
+
onFocus: t[4] || (t[4] = (l) => n("focus", l)),
|
44
|
+
onBlur: t[5] || (t[5] = (l) => n("blur", l)),
|
45
|
+
class: "w-100",
|
46
|
+
value: a.field,
|
47
|
+
placeholder: a.placeholder
|
48
|
+
}, null, 40, M))
|
49
|
+
])
|
50
|
+
], 2),
|
51
|
+
v(b, { name: "fade" }, {
|
52
|
+
default: h(() => [
|
53
|
+
a.validation ? (s(), u("div", F, " * " + g(a.validation.message), 1)) : d("", !0)
|
54
|
+
]),
|
55
|
+
_: 1
|
56
|
+
})
|
57
|
+
], 64));
|
58
|
+
}
|
59
|
+
}, q = /* @__PURE__ */ C(_, [["__scopeId", "data-v-e4056b41"]]), $ = ["onClick", "disabled"], S = { key: 0 }, E = {
|
60
|
+
key: 0,
|
61
|
+
class: "loading"
|
62
|
+
}, L = /* @__PURE__ */ e("svg", {
|
63
|
+
class: "i-regular",
|
64
|
+
width: "135",
|
65
|
+
height: "140",
|
66
|
+
viewBox: "0 0 135 140",
|
67
|
+
xmlns: "http://www.w3.org/2000/svg",
|
68
|
+
fill: "#fff"
|
69
|
+
}, [
|
70
|
+
/* @__PURE__ */ e("rect", {
|
71
|
+
y: "10",
|
72
|
+
width: "15",
|
73
|
+
height: "120",
|
74
|
+
rx: "6"
|
75
|
+
}, [
|
76
|
+
/* @__PURE__ */ e("animate", {
|
77
|
+
attributeName: "height",
|
78
|
+
begin: "0.5s",
|
79
|
+
dur: "1s",
|
80
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
81
|
+
calcMode: "linear",
|
82
|
+
repeatCount: "indefinite"
|
83
|
+
}),
|
84
|
+
/* @__PURE__ */ f(),
|
85
|
+
/* @__PURE__ */ e("animate", {
|
86
|
+
attributeName: "y",
|
87
|
+
begin: "0.5s",
|
88
|
+
dur: "1s",
|
89
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
90
|
+
calcMode: "linear",
|
91
|
+
repeatCount: "indefinite"
|
92
|
+
})
|
93
|
+
]),
|
94
|
+
/* @__PURE__ */ e("rect", {
|
95
|
+
x: "30",
|
96
|
+
y: "10",
|
97
|
+
width: "15",
|
98
|
+
height: "120",
|
99
|
+
rx: "6"
|
100
|
+
}, [
|
101
|
+
/* @__PURE__ */ e("animate", {
|
102
|
+
attributeName: "height",
|
103
|
+
begin: "0.25s",
|
104
|
+
dur: "1s",
|
105
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
106
|
+
calcMode: "linear",
|
107
|
+
repeatCount: "indefinite"
|
108
|
+
}),
|
109
|
+
/* @__PURE__ */ f(),
|
110
|
+
/* @__PURE__ */ e("animate", {
|
111
|
+
attributeName: "y",
|
112
|
+
begin: "0.25s",
|
113
|
+
dur: "1s",
|
114
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
115
|
+
calcMode: "linear",
|
116
|
+
repeatCount: "indefinite"
|
117
|
+
})
|
118
|
+
]),
|
119
|
+
/* @__PURE__ */ e("rect", {
|
120
|
+
x: "60",
|
121
|
+
width: "15",
|
122
|
+
height: "140",
|
123
|
+
rx: "6"
|
124
|
+
}, [
|
125
|
+
/* @__PURE__ */ e("animate", {
|
126
|
+
attributeName: "height",
|
127
|
+
begin: "0s",
|
128
|
+
dur: "1s",
|
129
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
130
|
+
calcMode: "linear",
|
131
|
+
repeatCount: "indefinite"
|
132
|
+
}),
|
133
|
+
/* @__PURE__ */ f(),
|
134
|
+
/* @__PURE__ */ e("animate", {
|
135
|
+
attributeName: "y",
|
136
|
+
begin: "0s",
|
137
|
+
dur: "1s",
|
138
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
139
|
+
calcMode: "linear",
|
140
|
+
repeatCount: "indefinite"
|
141
|
+
})
|
142
|
+
]),
|
143
|
+
/* @__PURE__ */ e("rect", {
|
144
|
+
x: "90",
|
145
|
+
y: "10",
|
146
|
+
width: "15",
|
147
|
+
height: "120",
|
148
|
+
rx: "6"
|
149
|
+
}, [
|
150
|
+
/* @__PURE__ */ e("animate", {
|
151
|
+
attributeName: "height",
|
152
|
+
begin: "0.25s",
|
153
|
+
dur: "1s",
|
154
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
155
|
+
calcMode: "linear",
|
156
|
+
repeatCount: "indefinite"
|
157
|
+
}),
|
158
|
+
/* @__PURE__ */ f(),
|
159
|
+
/* @__PURE__ */ e("animate", {
|
160
|
+
attributeName: "y",
|
161
|
+
begin: "0.25s",
|
162
|
+
dur: "1s",
|
163
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
164
|
+
calcMode: "linear",
|
165
|
+
repeatCount: "indefinite"
|
166
|
+
})
|
167
|
+
]),
|
168
|
+
/* @__PURE__ */ e("rect", {
|
169
|
+
x: "120",
|
170
|
+
y: "10",
|
171
|
+
width: "15",
|
172
|
+
height: "120",
|
173
|
+
rx: "6"
|
174
|
+
}, [
|
175
|
+
/* @__PURE__ */ e("animate", {
|
176
|
+
attributeName: "height",
|
177
|
+
begin: "0.5s",
|
178
|
+
dur: "1s",
|
179
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
180
|
+
calcMode: "linear",
|
181
|
+
repeatCount: "indefinite"
|
182
|
+
}),
|
183
|
+
/* @__PURE__ */ f(),
|
184
|
+
/* @__PURE__ */ e("animate", {
|
185
|
+
attributeName: "y",
|
186
|
+
begin: "0.5s",
|
187
|
+
dur: "1s",
|
188
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
189
|
+
calcMode: "linear",
|
190
|
+
repeatCount: "indefinite"
|
191
|
+
})
|
192
|
+
])
|
193
|
+
], -1), V = [
|
194
|
+
L
|
195
|
+
], Y = {
|
196
|
+
key: 0,
|
197
|
+
class: "loading t-white"
|
198
|
+
}, D = {
|
199
|
+
key: 0,
|
200
|
+
class: "error"
|
201
|
+
}, A = {
|
202
|
+
__name: "Button",
|
203
|
+
props: {
|
204
|
+
submit: {
|
205
|
+
type: Function,
|
206
|
+
default: async () => {
|
207
|
+
console.log("Button click.");
|
208
|
+
}
|
209
|
+
},
|
210
|
+
callback: {
|
211
|
+
type: Function,
|
212
|
+
default: async () => {
|
213
|
+
console.log("Button callback.");
|
214
|
+
}
|
215
|
+
},
|
216
|
+
callbackDelay: {
|
217
|
+
type: Number,
|
218
|
+
default: 750
|
219
|
+
},
|
220
|
+
showSucces: {
|
221
|
+
type: Boolean,
|
222
|
+
default: !0
|
223
|
+
},
|
224
|
+
validation: {
|
225
|
+
type: Boolean,
|
226
|
+
default: !1
|
227
|
+
}
|
228
|
+
},
|
229
|
+
setup(a) {
|
230
|
+
const n = a, o = m(null), i = m(null), r = m(!1), t = m(!1);
|
231
|
+
async function l() {
|
232
|
+
o.value.style["pointer-events"] = "none", i.value = null, r.value = !0;
|
233
|
+
const c = () => {
|
234
|
+
o.value && (o.value.classList.replace("bg-light-main", "bg-main"), o.value.style.pointerEvents = "auto", r.value = !1, t.value = !1, i.value = null);
|
235
|
+
};
|
236
|
+
try {
|
237
|
+
await n.submit(), o.value.classList.replace("bg-main", "bg-light-main"), r.value = !1, n.showSucces ? (t.value = !0, setTimeout(c, 500)) : c(), n.callback && setTimeout(() => n.callback(), n.callbackDelay);
|
238
|
+
} catch {
|
239
|
+
o.value.classList.replace("bg-main", "bg-fourth-nano"), i.value = "❌", setTimeout(() => {
|
240
|
+
c(), o.value.classList.replace("bg-fourth-nano", "bg-main");
|
241
|
+
}, 1330);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
return (c, p) => (s(), u("button", {
|
245
|
+
onClick: x(l, ["stop"]),
|
246
|
+
disabled: a.validation,
|
247
|
+
ref_key: "button",
|
248
|
+
ref: o,
|
249
|
+
class: "w-100 bg-main button"
|
250
|
+
}, [
|
251
|
+
v(b, { name: "TransitionTranslateY-small" }, {
|
252
|
+
default: h(() => [
|
253
|
+
!r.value && !i.value && !t.value ? (s(), u("span", S, [
|
254
|
+
k(c.$slots, "default")
|
255
|
+
])) : d("", !0)
|
256
|
+
]),
|
257
|
+
_: 3
|
258
|
+
}),
|
259
|
+
v(b, { name: "TransitionTranslateY-small" }, {
|
260
|
+
default: h(() => [
|
261
|
+
r.value && !i.value ? (s(), u("span", E, V)) : d("", !0)
|
262
|
+
]),
|
263
|
+
_: 1
|
264
|
+
}),
|
265
|
+
v(b, { name: "TransitionTranslateY-small" }, {
|
266
|
+
default: h(() => [
|
267
|
+
t.value && a.showSucces ? (s(), u("span", Y, "✔")) : d("", !0)
|
268
|
+
]),
|
269
|
+
_: 1
|
270
|
+
}),
|
271
|
+
v(b, { name: "TransitionTranslateY-small" }, {
|
272
|
+
default: h(() => [
|
273
|
+
i.value ? (s(), u("span", D, g(i.value), 1)) : d("", !0)
|
274
|
+
]),
|
275
|
+
_: 1
|
276
|
+
})
|
277
|
+
], 8, $));
|
278
|
+
}
|
279
|
+
};
|
280
|
+
export {
|
281
|
+
q as F,
|
282
|
+
A as _
|
283
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,297 @@
|
|
1
|
+
import { openBlock as n, createElementBlock as i, createCommentVNode as c, createElementVNode as e, createTextVNode as f, toDisplayString as r, ref as C, computed as h, unref as p, createBlock as b, withCtx as _, createVNode as $, Fragment as w, renderList as x, withModifiers as z } from "vue";
|
2
|
+
import { useRouter as y } from "vue-router";
|
3
|
+
import { _ as k } from "./Button-c59d387c.mjs";
|
4
|
+
import "./auth-98fe3efb.mjs";
|
5
|
+
import { a as v } from "./IconEdit-c98d3d06.mjs";
|
6
|
+
import "./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs";
|
7
|
+
import { _ as L } from "./_plugin-vue_export-helper-dad06003.mjs";
|
8
|
+
const I = { class: "flex-stretch flex-nojustify flex-nowrap flex shop-cart-item" }, M = ["src"], S = {
|
9
|
+
key: 1,
|
10
|
+
width: "524",
|
11
|
+
height: "345",
|
12
|
+
viewBox: "0 0 524 345",
|
13
|
+
fill: "none",
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
15
|
+
class: "aspect-1x1",
|
16
|
+
style: { "object-fit": "cover" }
|
17
|
+
}, V = /* @__PURE__ */ e("rect", {
|
18
|
+
width: "524",
|
19
|
+
height: "345",
|
20
|
+
fill: "white"
|
21
|
+
}, null, -1), B = /* @__PURE__ */ e("rect", {
|
22
|
+
width: "524",
|
23
|
+
height: "345",
|
24
|
+
fill: "white"
|
25
|
+
}, null, -1), F = /* @__PURE__ */ e("circle", {
|
26
|
+
cx: "262",
|
27
|
+
cy: "172",
|
28
|
+
r: "56",
|
29
|
+
fill: "#00ff88",
|
30
|
+
"fill-opacity": "0.1"
|
31
|
+
}, null, -1), T = /* @__PURE__ */ e("path", {
|
32
|
+
fill: "#00ff88",
|
33
|
+
d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
|
34
|
+
}, null, -1), q = [
|
35
|
+
V,
|
36
|
+
B,
|
37
|
+
F,
|
38
|
+
T
|
39
|
+
], E = { class: "text-left" }, O = { class: "name" }, R = {
|
40
|
+
key: 0,
|
41
|
+
class: "t-transp"
|
42
|
+
}, H = {
|
43
|
+
key: 1,
|
44
|
+
class: "t-transp"
|
45
|
+
}, Z = {
|
46
|
+
key: 2,
|
47
|
+
class: "t-transp"
|
48
|
+
}, j = { class: "t-main t-demi price mn-small" }, N = { key: 0 }, U = {
|
49
|
+
key: 0,
|
50
|
+
class: "flex-nojustify flex"
|
51
|
+
}, D = { class: "flex-nowrap flex" }, P = /* @__PURE__ */ e("svg", {
|
52
|
+
fill: "none",
|
53
|
+
height: "20",
|
54
|
+
viewBox: "0 0 20 20",
|
55
|
+
width: "20",
|
56
|
+
xmlns: "http://www.w3.org/2000/svg"
|
57
|
+
}, [
|
58
|
+
/* @__PURE__ */ e("path", {
|
59
|
+
"clip-rule": "evenodd",
|
60
|
+
d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
|
61
|
+
fill: "#8a8a8a",
|
62
|
+
"fill-rule": "evenodd"
|
63
|
+
})
|
64
|
+
], -1), A = [
|
65
|
+
P
|
66
|
+
], G = {
|
67
|
+
__name: "CardOrderItem",
|
68
|
+
props: {
|
69
|
+
product: Object,
|
70
|
+
editable: String,
|
71
|
+
increase: Function,
|
72
|
+
decrease: Function,
|
73
|
+
remove: Function
|
74
|
+
},
|
75
|
+
setup(t) {
|
76
|
+
return y(), (o, s) => (n(), i("div", I, [
|
77
|
+
t.product.images[0] ? (n(), i("img", {
|
78
|
+
key: 0,
|
79
|
+
class: "bg-grey aspect-1x1",
|
80
|
+
src: (o.FILE_SERVER_URL || "") + t.product.images[0]
|
81
|
+
}, null, 8, M)) : c("", !0),
|
82
|
+
t.product.images[0] ? c("", !0) : (n(), i("svg", S, q)),
|
83
|
+
e("div", E, [
|
84
|
+
e("p", O, [
|
85
|
+
f(r(t.product.name) + " ", 1),
|
86
|
+
t.product.size ? (n(), i("span", R, ", " + r(t.product.size), 1)) : c("", !0),
|
87
|
+
typeof t.product.color == "string" && t.product.size ? (n(), i("span", H, ", ")) : c("", !0),
|
88
|
+
typeof t.product.color == "string" ? (n(), i("span", Z, r(t.product.color), 1)) : c("", !0)
|
89
|
+
]),
|
90
|
+
e("p", j, [
|
91
|
+
t.editable ? (n(), i("span", N, r(t.product.quantity) + " x ", 1)) : c("", !0),
|
92
|
+
f(r(t.product.price) + " " + r(o.returnCurrency()), 1)
|
93
|
+
]),
|
94
|
+
t.editable ? (n(), i("div", U, [
|
95
|
+
e("div", D, [
|
96
|
+
e("button", {
|
97
|
+
onClick: s[0] || (s[0] = (l) => t.decrease(t.product)),
|
98
|
+
class: "mn-r-thin bg-grey button-square button"
|
99
|
+
}, "-"),
|
100
|
+
e("button", {
|
101
|
+
onClick: s[1] || (s[1] = (l) => t.increase(t.product)),
|
102
|
+
class: "mn-r-thin bg-grey button-square button"
|
103
|
+
}, "+")
|
104
|
+
]),
|
105
|
+
e("button", {
|
106
|
+
onClick: s[2] || (s[2] = (l) => t.remove(t.product)),
|
107
|
+
class: "hover_br-transp hover_br-l-dark bg-transp button-square button"
|
108
|
+
}, A)
|
109
|
+
])) : c("", !0)
|
110
|
+
])
|
111
|
+
]));
|
112
|
+
}
|
113
|
+
}, J = {
|
114
|
+
key: 0,
|
115
|
+
class: "cursor-pointer t-second"
|
116
|
+
}, K = {
|
117
|
+
__name: "Text",
|
118
|
+
props: {
|
119
|
+
maxLen: { type: Number, required: !0 },
|
120
|
+
text: { type: String, required: !0 },
|
121
|
+
showToggleText: { type: Boolean, default: !1 }
|
122
|
+
},
|
123
|
+
setup(t) {
|
124
|
+
const o = t, s = C(!1), l = h(() => o.text.length > o.maxLen ? o.text.slice(0, o.maxLen) + "..." : o.text), a = h(() => o.text), g = () => {
|
125
|
+
s.value = !s.value;
|
126
|
+
}, m = h(() => s.value ? a.value : l.value), d = h(() => o.text.length > o.maxLen), u = h(() => s.value ? "Hide" : "Show more");
|
127
|
+
return (xt, vt) => (n(), i("span", {
|
128
|
+
onClick: g,
|
129
|
+
class: ""
|
130
|
+
}, [
|
131
|
+
f(r(p(m)) + " ", 1),
|
132
|
+
p(d) && t.showToggleText ? (n(), i("span", J, r(p(u)), 1)) : c("", !0)
|
133
|
+
]));
|
134
|
+
}
|
135
|
+
}, Q = {
|
136
|
+
__name: "ButtonFollow",
|
137
|
+
props: {
|
138
|
+
type: {
|
139
|
+
type: String,
|
140
|
+
required: !0
|
141
|
+
},
|
142
|
+
userId: {
|
143
|
+
type: String,
|
144
|
+
required: !0
|
145
|
+
},
|
146
|
+
status: {
|
147
|
+
type: Boolean,
|
148
|
+
required: !0
|
149
|
+
},
|
150
|
+
targetId: {
|
151
|
+
type: String,
|
152
|
+
required: !0
|
153
|
+
}
|
154
|
+
},
|
155
|
+
emits: ["updateMembership"],
|
156
|
+
setup(t, { emit: o }) {
|
157
|
+
const s = t, l = async () => {
|
158
|
+
s.status ? await g(s.targetId) : await a(s.targetId);
|
159
|
+
};
|
160
|
+
async function a(m) {
|
161
|
+
try {
|
162
|
+
const d = {
|
163
|
+
type: s.type,
|
164
|
+
target: m,
|
165
|
+
user: s.userId,
|
166
|
+
role: "subscriber"
|
167
|
+
}, u = await v.create(d);
|
168
|
+
o("updateMembership", { membership: u, status: !0, targetId: s.targetId });
|
169
|
+
} catch (d) {
|
170
|
+
throw console.log(d), d;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
async function g(m) {
|
174
|
+
const d = {
|
175
|
+
type: s.type,
|
176
|
+
target: m,
|
177
|
+
user: s.userId,
|
178
|
+
role: "subscriber"
|
179
|
+
};
|
180
|
+
try {
|
181
|
+
const u = await v.delete(d);
|
182
|
+
o("updateMembership", { membership: u, status: !1, targetId: s.targetId });
|
183
|
+
} catch (u) {
|
184
|
+
throw console.log(u), u;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
return (m, d) => (n(), b(k, {
|
188
|
+
submit: l,
|
189
|
+
class: "bg-main button-small button"
|
190
|
+
}, {
|
191
|
+
default: _(() => [
|
192
|
+
f(r(t.status ? "Unfollow" : "Follow"), 1)
|
193
|
+
]),
|
194
|
+
_: 1
|
195
|
+
}));
|
196
|
+
}
|
197
|
+
}, W = /* @__PURE__ */ L(Q, [["__scopeId", "data-v-0634d4a1"]]), X = { class: "pd-medium flex-v-center flex-nowrap flex" }, Y = ["src"], tt = {
|
198
|
+
key: 1,
|
199
|
+
class: "h-4r w-4r radius-extra",
|
200
|
+
width: "42",
|
201
|
+
height: "42",
|
202
|
+
viewBox: "0 0 42 42",
|
203
|
+
fill: "none",
|
204
|
+
xmlns: "http://www.w3.org/2000/svg"
|
205
|
+
}, et = /* @__PURE__ */ e("circle", {
|
206
|
+
fill: "rgb(var(--main))",
|
207
|
+
cx: "21",
|
208
|
+
cy: "21",
|
209
|
+
r: "21"
|
210
|
+
}, null, -1), st = /* @__PURE__ */ e("path", {
|
211
|
+
fill: "#242424",
|
212
|
+
"fill-opacity": "0.1",
|
213
|
+
"fill-rule": "evenodd",
|
214
|
+
"clip-rule": "evenodd",
|
215
|
+
d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
|
216
|
+
}, null, -1), nt = [
|
217
|
+
et,
|
218
|
+
st
|
219
|
+
], it = { class: "flex-child-1 flex-child mn-l-small w-100" }, ot = { class: "h3 mn-r-semi mn-thin" }, rt = {
|
220
|
+
key: 0,
|
221
|
+
class: "w-max star-container flex-v-center flex"
|
222
|
+
}, at = { class: "mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small" }, lt = ["src"], ct = { class: "p-small t-semi mn-r-thin" }, dt = { class: "p-small" }, ut = { class: "mn-thin" }, mt = {
|
223
|
+
key: 0,
|
224
|
+
class: "pd-medium"
|
225
|
+
}, ht = { class: "mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium" }, gt = { class: "t-black p-medium t-semi" }, ft = /* @__PURE__ */ e("span", { class: "mn-r-small" }, "30-60min", -1), pt = /* @__PURE__ */ e("span", { class: "mn-r-auto" }, "$50 min", -1), bt = { class: "d-block o-scroll flex-nowrap flex" }, wt = /* @__PURE__ */ e("button", { class: "flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button" }, "View menu", -1), It = {
|
226
|
+
__name: "CardOrganization",
|
227
|
+
props: {
|
228
|
+
user: String,
|
229
|
+
organization: Object
|
230
|
+
},
|
231
|
+
emits: ["updateMembership"],
|
232
|
+
setup(t, { emit: o }) {
|
233
|
+
return y(), (s, l) => (n(), i("div", {
|
234
|
+
class: "bg-grey radius-big o-hidden",
|
235
|
+
onClick: l[1] || (l[1] = (a) => s.$router.push({ name: "Organization", params: { _id: t.organization._id } }))
|
236
|
+
}, [
|
237
|
+
e("div", X, [
|
238
|
+
t.organization.profile.photo && t.organization.profile.photo.length > 0 ? (n(), i("img", {
|
239
|
+
key: 0,
|
240
|
+
src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
|
241
|
+
class: "h-4r w-4r radius-extra bg-white"
|
242
|
+
}, null, 8, Y)) : (n(), i("svg", tt, nt)),
|
243
|
+
e("div", it, [
|
244
|
+
e("p", ot, [
|
245
|
+
$(K, {
|
246
|
+
text: t.organization.profile.name ? t.organization.profile.name : "",
|
247
|
+
maxLen: 16
|
248
|
+
}, null, 8, ["text"])
|
249
|
+
]),
|
250
|
+
t.organization.ratingS ? (n(), i("div", rt, [
|
251
|
+
e("span", at, r(t.organization.types[0]), 1),
|
252
|
+
(n(), i(w, null, x(5, (a) => e("img", {
|
253
|
+
class: "i-small mn-r-thin",
|
254
|
+
src: a <= t.organization.rating.median ? "/icons/star.svg" : "/icons/star-stroke.svg"
|
255
|
+
}, null, 8, lt)), 64)),
|
256
|
+
e("span", ct, r(t.organization.rating.median), 1),
|
257
|
+
e("span", dt, "(" + r(t.organization.rating.amount) + ")", 1)
|
258
|
+
])) : c("", !0),
|
259
|
+
e("div", null, [
|
260
|
+
e("p", ut, r(t.organization.numberOfSubscribers) + " followers", 1),
|
261
|
+
t.user._id ? (n(), b(W, {
|
262
|
+
key: 0,
|
263
|
+
type: "organization",
|
264
|
+
isMember: t.organization.isMember,
|
265
|
+
targetId: t.organization._id,
|
266
|
+
userId: t.user,
|
267
|
+
class: "radius-big w-100",
|
268
|
+
onUpdateMembership: l[0] || (l[0] = (a) => o("updateMembership", a))
|
269
|
+
}, null, 8, ["isMember", "targetId", "userId"])) : c("", !0)
|
270
|
+
])
|
271
|
+
])
|
272
|
+
]),
|
273
|
+
t.organization.products.length > 0 ? (n(), i("div", mt, [
|
274
|
+
e("div", ht, [
|
275
|
+
e("p", gt, r(t.organization.products.length) + " items: ", 1),
|
276
|
+
ft,
|
277
|
+
pt
|
278
|
+
]),
|
279
|
+
e("div", bt, [
|
280
|
+
(n(!0), i(w, null, x(t.organization.products, (a) => (n(), b(G, {
|
281
|
+
onClick: z((g) => s.$router.push({ name: "Product Organization", params: { _id: t.organization._id, product: a._id } }), ["stop"]),
|
282
|
+
key: a._id,
|
283
|
+
editable: !1,
|
284
|
+
product: a,
|
285
|
+
class: "pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"
|
286
|
+
}, null, 8, ["onClick", "product"]))), 128)),
|
287
|
+
wt
|
288
|
+
])
|
289
|
+
])) : c("", !0)
|
290
|
+
]));
|
291
|
+
}
|
292
|
+
};
|
293
|
+
export {
|
294
|
+
W as B,
|
295
|
+
It as _,
|
296
|
+
K as a
|
297
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),u=require("vue-router"),g=require("./Button-2ca405bd.js");require("./auth-acbe3ae1.js");const d=require("./IconEdit-e4d0cc6e.js");require("./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js");const p=require("./_plugin-vue_export-helper-f246444f.js");const f={class:"flex-stretch flex-nojustify flex-nowrap flex shop-cart-item"},x=["src"],b={key:1,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aspect-1x1",style:{"object-fit":"cover"}},k=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),y=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),w=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),v=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),V=[k,y,w,v],E={class:"text-left"},C={class:"name"},B={key:0,class:"t-transp"},N={key:1,class:"t-transp"},_={key:2,class:"t-transp"},$={class:"t-main t-demi price mn-small"},z={key:0},S={key:0,class:"flex-nojustify flex"},L={class:"flex-nowrap flex"},I=e.createElementVNode("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),q=[I],M={__name:"CardOrderItem",props:{product:Object,editable:String,increase:Function,decrease:Function,remove:Function},setup(t){return u.useRouter(),(n,o)=>(e.openBlock(),e.createElementBlock("div",f,[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,class:"bg-grey aspect-1x1",src:(n.FILE_SERVER_URL||"")+t.product.images[0]},null,8,x)):e.createCommentVNode("",!0),t.product.images[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",b,V)),e.createElementVNode("div",E,[e.createElementVNode("p",C,[e.createTextVNode(e.toDisplayString(t.product.name)+" ",1),t.product.size?(e.openBlock(),e.createElementBlock("span",B,", "+e.toDisplayString(t.product.size),1)):e.createCommentVNode("",!0),typeof t.product.color=="string"&&t.product.size?(e.openBlock(),e.createElementBlock("span",N,", ")):e.createCommentVNode("",!0),typeof t.product.color=="string"?(e.openBlock(),e.createElementBlock("span",_,e.toDisplayString(t.product.color),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",$,[t.editable?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(t.product.quantity)+" x ",1)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.product.price)+" "+e.toDisplayString(n.returnCurrency()),1)]),t.editable?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",L,[e.createElementVNode("button",{onClick:o[0]||(o[0]=s=>t.decrease(t.product)),class:"mn-r-thin bg-grey button-square button"},"-"),e.createElementVNode("button",{onClick:o[1]||(o[1]=s=>t.increase(t.product)),class:"mn-r-thin bg-grey button-square button"},"+")]),e.createElementVNode("button",{onClick:o[2]||(o[2]=s=>t.remove(t.product)),class:"hover_br-transp hover_br-l-dark bg-transp button-square button"},q)])):e.createCommentVNode("",!0)])]))}},D={key:0,class:"cursor-pointer t-second"},m={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0},showToggleText:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(!1),s=e.computed(()=>n.text.length>n.maxLen?n.text.slice(0,n.maxLen)+"...":n.text),r=e.computed(()=>n.text),c=()=>{o.value=!o.value},i=e.computed(()=>o.value?r.value:s.value),l=e.computed(()=>n.text.length>n.maxLen),a=e.computed(()=>o.value?"Hide":"Show more");return(le,ae)=>(e.openBlock(),e.createElementBlock("span",{onClick:c,class:""},[e.createTextVNode(e.toDisplayString(e.unref(i))+" ",1),e.unref(l)&&t.showToggleText?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0)]))}},T={__name:"ButtonFollow",props:{type:{type:String,required:!0},userId:{type:String,required:!0},status:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateMembership"],setup(t,{emit:n}){const o=t,s=async()=>{o.status?await c(o.targetId):await r(o.targetId)};async function r(i){try{const l={type:o.type,target:i,user:o.userId,role:"subscriber"},a=await d.actions.create(l);n("updateMembership",{membership:a,status:!0,targetId:o.targetId})}catch(l){throw console.log(l),l}}async function c(i){const l={type:o.type,target:i,user:o.userId,role:"subscriber"};try{const a=await d.actions.delete(l);n("updateMembership",{membership:a,status:!1,targetId:o.targetId})}catch(a){throw console.log(a),a}}return(i,l)=>(e.openBlock(),e.createBlock(g._sfc_main,{submit:s,class:"bg-main button-small button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.status?"Unfollow":"Follow"),1)]),_:1}))}},h=p._export_sfc(T,[["__scopeId","data-v-0634d4a1"]]),F={class:"pd-medium flex-v-center flex-nowrap flex"},R=["src"],O={key:1,class:"h-4r w-4r radius-extra",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),Z=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),j=[H,Z],U={class:"flex-child-1 flex-child mn-l-small w-100"},P={class:"h3 mn-r-semi mn-thin"},A={key:0,class:"w-max star-container flex-v-center flex"},G={class:"mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small"},J=["src"],K={class:"p-small t-semi mn-r-thin"},Q={class:"p-small"},W={class:"mn-thin"},X={key:0,class:"pd-medium"},Y={class:"mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},ee={class:"t-black p-medium t-semi"},te=e.createElementVNode("span",{class:"mn-r-small"},"30-60min",-1),oe=e.createElementVNode("span",{class:"mn-r-auto"},"$50 min",-1),ne={class:"d-block o-scroll flex-nowrap flex"},re=e.createElementVNode("button",{class:"flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button"},"View menu",-1),se={__name:"CardOrganization",props:{user:String,organization:Object},emits:["updateMembership"],setup(t,{emit:n}){return u.useRouter(),(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-grey radius-big o-hidden",onClick:s[1]||(s[1]=r=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",F,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,R)):(e.openBlock(),e.createElementBlock("svg",O,j)),e.createElementVNode("div",U,[e.createElementVNode("p",P,[e.createVNode(m,{text:t.organization.profile.name?t.organization.profile.name:"",maxLen:16},null,8,["text"])]),t.organization.ratingS?(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("span",G,e.toDisplayString(t.organization.types[0]),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,r=>e.createElementVNode("img",{class:"i-small mn-r-thin",src:r<=t.organization.rating.median?"/icons/star.svg":"/icons/star-stroke.svg"},null,8,J)),64)),e.createElementVNode("span",K,e.toDisplayString(t.organization.rating.median),1),e.createElementVNode("span",Q,"("+e.toDisplayString(t.organization.rating.amount)+")",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.createElementVNode("p",W,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),t.user._id?(e.openBlock(),e.createBlock(h,{key:0,type:"organization",isMember:t.organization.isMember,targetId:t.organization._id,userId:t.user,class:"radius-big w-100",onUpdateMembership:s[0]||(s[0]=r=>n("updateMembership",r))},null,8,["isMember","targetId","userId"])):e.createCommentVNode("",!0)])])]),t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Y,[e.createElementVNode("p",ee,e.toDisplayString(t.organization.products.length)+" items: ",1),te,oe]),e.createElementVNode("div",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products,r=>(e.openBlock(),e.createBlock(M,{onClick:e.withModifiers(c=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:r._id}}),["stop"]),key:r._id,editable:!1,product:r,class:"pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"},null,8,["onClick","product"]))),128)),re])])):e.createCommentVNode("",!0)]))}};exports.ButtonFollow=h;exports._sfc_main=se;exports._sfc_main$1=m;
|