@ozdao/prometheus-framework 0.1.62 → 0.1.66
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-30022293.js +1 -0
- package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
- package/dist/BackofficeReports-cb4b180d.mjs +44 -0
- package/dist/BackofficeReports-d021871f.js +1 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -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/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
- package/dist/ButtonToggleMembership-b9352cec.js +1 -0
- package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
- package/dist/CardBlogpost-c7364b1e.js +1 -0
- package/dist/CardOrganization-647cb571.js +1 -0
- package/dist/CardOrganization-facb77f7.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-0fdb31c9.js +1 -0
- package/dist/Chips-f1a0d085.mjs +214 -0
- package/dist/Community-534d473c.mjs +132 -0
- package/dist/Community-e9aff969.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EULA-e05236af.mjs +4210 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-46ae8fc6.mjs +123 -0
- package/dist/Events-813c8c7b.js +1 -0
- package/dist/Feed-2d443ad2.mjs +146 -0
- package/dist/Feed-3a4e7a9c.js +1 -0
- package/dist/Feed-8b554fc1.js +1 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-a21d6007.mjs +124 -0
- package/dist/Feed-b39138c8.js +1 -0
- package/dist/Feed-c41ef736.mjs +361 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/Gallery-46b5f939.js +1 -0
- package/dist/Gallery-762a9c2d.mjs +241 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-4dcfddb8.js +9 -0
- package/dist/Image-e0da17ac.mjs +571 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-5a8988d9.js +1 -0
- package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
- package/dist/Leftovers-470a1689.js +1 -0
- package/dist/Leftovers-69c7dcd9.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-04273cd4.mjs +114 -0
- package/dist/Members-0685a15f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-46aab2c8.mjs +73 -0
- package/dist/Organizations-a8627bc5.js +1 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-7e001b81.js +7 -0
- package/dist/Product-f3f42158.mjs +653 -0
- package/dist/ProductEdit-959b3cd3.mjs +295 -0
- package/dist/ProductEdit-bae5e898.js +1 -0
- package/dist/ProductsBackoffice-0716123f.js +1 -0
- package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
- package/dist/ProfileBlogposts-c790d1b2.js +1 -0
- package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
- package/dist/ProfileEvents-12f80fff.mjs +70 -0
- package/dist/ProfileEvents-585570a3.js +1 -0
- package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
- package/dist/ProfileOrganizations-d7103514.js +1 -0
- package/dist/Publics-094f3c2c.mjs +45 -0
- package/dist/Publics-1032c0f4.js +1 -0
- package/dist/Select-11ddabf5.mjs +79 -0
- package/dist/Select-3ca5ab39.js +1 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Upload-06d93178.js +1 -0
- package/dist/Upload-23212d9d.mjs +74 -0
- package/dist/UploadImage-0f488170.js +1 -0
- package/dist/UploadImage-3c627d89.mjs +83 -0
- package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
- package/dist/UploadImageMultiple-eddaac87.js +1 -0
- package/dist/Wallet-2043b611.mjs +24682 -0
- package/dist/Wallet-8fa7386a.js +55 -0
- package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
- package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
- package/dist/auth-56dc2ba7.mjs +607 -0
- package/dist/auth-f018f5b3.js +7 -0
- package/dist/auth.client.cjs +7 -0
- package/dist/auth.client.js +3874 -0
- package/dist/auth.validation-c31a60e7.mjs +24 -0
- package/dist/auth.validation-d049b341.js +1 -0
- package/dist/backoffice.client.cjs +1 -0
- package/dist/backoffice.client.js +265 -0
- package/dist/carousel.es-44c501bc.mjs +383 -0
- package/dist/carousel.es-cdfb392c.js +5 -0
- package/dist/categories-5b08da53.mjs +121 -0
- package/dist/categories-7ccd6be9.js +1 -0
- package/dist/click-outside-0b0727d1.js +2 -0
- package/dist/click-outside-6101836c.mjs +19 -0
- package/dist/community.client.cjs +1 -0
- package/dist/community.client.js +692 -0
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -0
- package/dist/events.client.js +8885 -0
- package/dist/files.client.cjs +1 -0
- package/dist/files.client.js +1 -0
- package/dist/gallery-d4297191.mjs +54 -0
- package/dist/gallery-f92912df.js +1 -0
- package/dist/gallery.client.cjs +1 -0
- package/dist/gallery.client.js +18 -0
- package/dist/globals-928eb13c.js +1 -0
- package/dist/globals-96ba60e4.mjs +91 -0
- package/dist/globals.client.cjs +1 -0
- package/dist/globals.client.js +12 -0
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/index-a661083c.mjs +934 -0
- package/dist/index-b41aac19.js +2 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -0
- package/dist/landing.client.js +111 -0
- package/dist/leftovers-5d1ff88b.mjs +67 -0
- package/dist/leftovers-b60180cf.js +1 -0
- package/dist/legal.client.cjs +1 -0
- package/dist/legal.client.js +8512 -0
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/middlewares.client.cjs +1 -0
- package/dist/middlewares.client.js +1 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-587d5a4d.mjs +122 -0
- package/dist/organizations-b4d902a2.js +1 -0
- package/dist/organizations.client-35b74e44.mjs +2997 -0
- package/dist/organizations.client-f982f55a.js +3 -0
- package/dist/organizations.client.cjs +1 -0
- package/dist/organizations.client.js +86 -0
- package/dist/products-3c43eb18.js +1 -0
- package/dist/products-943fb95e.mjs +107 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -67
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -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 +1 -1
- 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/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 +1 -1
- 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 +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 +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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.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/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- 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/states.validation-3b70f83a.js +1 -0
- package/dist/states.validation-944e334c.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -0
- package/dist/users.client.js +632 -0
- package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
- package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
- package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
- package/dist/vuex.esm-bundler-685cf29f.js +5 -0
- package/package.json +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +2 -2
@@ -0,0 +1,75 @@
|
|
1
|
+
import { ref as f, openBlock as n, createElementBlock as s, Fragment as m, createElementVNode as o, normalizeClass as v, toDisplayString as d, createCommentVNode as i, renderSlot as c, createVNode as b, Transition as y, withCtx as p } from "vue";
|
2
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
3
|
+
import { _ as h } from "./_plugin-vue_export-helper-dad06003.mjs";
|
4
|
+
const x = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, k = { class: "w-100" }, g = ["type", "value", "placeholder"], F = ["value", "placeholder"], w = {
|
8
|
+
key: 1,
|
9
|
+
class: "t-transp mn-l-small"
|
10
|
+
}, B = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
|
13
|
+
}, C = {
|
14
|
+
__name: "Field",
|
15
|
+
props: {
|
16
|
+
label: null,
|
17
|
+
symbol: null,
|
18
|
+
type: "text",
|
19
|
+
placeholder: "Enter something here",
|
20
|
+
field: null,
|
21
|
+
validation: !1,
|
22
|
+
disabled: !1
|
23
|
+
},
|
24
|
+
emits: ["update:field", "focus", "blur"],
|
25
|
+
setup(e, { emit: a }) {
|
26
|
+
const u = f(e.field);
|
27
|
+
return (r, l) => (n(), s(m, null, [
|
28
|
+
o("div", {
|
29
|
+
class: v([[
|
30
|
+
r.$attrs.class,
|
31
|
+
{
|
32
|
+
"bg-fourth-nano": e.validation
|
33
|
+
}
|
34
|
+
], "flex-center flex-nowrap flex"])
|
35
|
+
}, [
|
36
|
+
e.label ? (n(), s("div", x, [
|
37
|
+
o("span", null, d(e.label), 1)
|
38
|
+
])) : i("", !0),
|
39
|
+
o("div", k, [
|
40
|
+
e.type !== "textarea" ? (n(), s("input", {
|
41
|
+
key: 0,
|
42
|
+
onInput: l[0] || (l[0] = (t) => u.value = a("update:field", t.target.value)),
|
43
|
+
onFocus: l[1] || (l[1] = (t) => a("focus", t)),
|
44
|
+
onBlur: l[2] || (l[2] = (t) => a("blur", t)),
|
45
|
+
type: e.type,
|
46
|
+
class: "w-100",
|
47
|
+
value: e.field,
|
48
|
+
placeholder: e.placeholder
|
49
|
+
}, null, 40, g)) : (n(), s("textarea", {
|
50
|
+
key: 1,
|
51
|
+
onInput: l[3] || (l[3] = (t) => u.value = a("update:field", t.target.value)),
|
52
|
+
onFocus: l[4] || (l[4] = (t) => a("focus", t)),
|
53
|
+
onBlur: l[5] || (l[5] = (t) => a("blur", t)),
|
54
|
+
class: "w-100",
|
55
|
+
value: e.field,
|
56
|
+
placeholder: e.placeholder
|
57
|
+
}, null, 40, F))
|
58
|
+
]),
|
59
|
+
c(r.$slots, "default", {}, void 0, !0),
|
60
|
+
e.symbol ? (n(), s("div", w, [
|
61
|
+
o("span", null, d(e.symbol), 1)
|
62
|
+
])) : i("", !0)
|
63
|
+
], 2),
|
64
|
+
b(y, { name: "fade" }, {
|
65
|
+
default: p(() => [
|
66
|
+
e.validation ? (n(), s("div", B, " * " + d(e.validation.message), 1)) : i("", !0)
|
67
|
+
]),
|
68
|
+
_: 1
|
69
|
+
})
|
70
|
+
], 64));
|
71
|
+
}
|
72
|
+
}, S = /* @__PURE__ */ h(C, [["__scopeId", "data-v-f4a29b0d"]]);
|
73
|
+
export {
|
74
|
+
S as F
|
75
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),$=require("vue-router"),q=require("./Field-e2a43424.js"),z=require("./Button-7643c9aa.js"),M=require("./Select-3ca5ab39.js"),F=require("./Upload-06d93178.js"),s=require("./gallery-f92912df.js"),G=require("./_plugin-vue_export-helper-f246444f.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./index-b41aac19.js");const D={class:"w-100",itemprop:"name"},I={class:"h1",itemprop:"headline"},P={class:"text-fade-in"},R={class:"text-splitted"},T={__name:"Title",props:{text:{type:String,default:"Dreamy Moments Captured"}},setup(p){const n=p,{text:i}=e.toRefs(n);return(h,d)=>(e.openBlock(),e.createElementBlock("header",D,[e.createElementVNode("h2",I,[e.createElementVNode("span",P,[e.createElementVNode("span",R,e.toDisplayString(e.unref(i)),1)])])]))}};const U={class:"pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},j=["onClick"],L=["data-id"],O=["src","onClick"],W={class:"modal pd-thin"},A={class:"modal-content radius-big"},H={class:""},J=["src"],K={key:0,class:"flex-v-center flex m modal pd-big"},Q={class:"modal-content radius-small pd-medium bg-white"},X=["src"],Y=["src"],Z={__name:"GalleryWithCategories",setup(p){$.useRoute();const n=!1,i=e.ref(null),h=["all","place","drinks","people","events"];let d=1;const g=10;let _=e.ref(null),f=e.ref(!1);const k=e.computed(()=>m.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(m.value))),b=async()=>{f.value=!0,await s.actions.fetchGallery(d,g),f.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),r=e.ref(null),V=a=>{n.value?E(a):(u.value="modal",t.value.image=a,y())},E=a=>{u.value="edit-modal",t.value=a||{categories:"",size:"",image:null},y()},c=()=>{t.value={categories:"",size:"",image:!1},r.value=null,N()},y=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},N=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},w=[{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),c()},B=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=v=>{r.value=v.target.result},l.readAsDataURL(o[0])}},x=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}),c()};let m=e.ref("all");const S=a=>{m.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,g),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,b())}).observe(_.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",U,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,l=>e.createElementVNode("a",{key:l,onClick:v=>S(l),class:e.normalizeClass(["h3 uppercase mn-r-big",{"t-transp":e.unref(m)!==l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,j)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:i,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(l,v)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:oe=>V(l.image)},null,8,O)):e.createCommentVNode("",!0)]),_:2},1024)],8,L))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:_,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",W,[e.createElementVNode("div",A,[e.createElementVNode("div",H,[e.createElementVNode("span",{class:"close",onClick:c},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,J)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",Q,[e.createElementVNode("span",{class:"close",onClick:c},"×"),typeof r.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.value,class:"radius-small w-100 mn-small h-20r object-fit-cover"},null,8,X)):e.createCommentVNode("",!0),typeof r.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,Y)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F.Upload,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-thin",onFileChange:B,multiple:"true"})),e.createVNode(M.Select,{options:w,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-thin t-black"},null,8,["select"]),e.createVNode(q.Field,{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-medium t-black"},null,8,["field"]),e.createVNode(z._sfc_main,{submit:t.value._id?C:x,callback:c,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ee=G._export_sfc(Z,[["__scopeId","data-v-34379ac8"]]),te={class:"wrapper"},le={style:{"min-height":"100vh"}},ae={__name:"Gallery",setup(p){return(n,i)=>(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(T,{text:n.$t("gallery.title"),class:"pd-medium"},null,8,["text"]),e.createElementVNode("div",le,[e.createVNode(ee)])]))}};exports.default=ae;
|
@@ -0,0 +1,241 @@
|
|
1
|
+
import { toRefs as W, openBlock as o, createElementBlock as i, createElementVNode as l, toDisplayString as k, unref as x, ref as r, computed as A, onMounted as L, Fragment as G, renderList as M, normalizeClass as O, createCommentVNode as c, createVNode as n, Transition as w, withCtx as g, withDirectives as q, vShow as H, createBlock as J, createTextVNode as K } from "vue";
|
2
|
+
import { useRoute as Q } from "vue-router";
|
3
|
+
import { F as X } from "./Field-e5ad88d3.mjs";
|
4
|
+
import { _ as Y } from "./Button-9e1a9284.mjs";
|
5
|
+
import { S as Z } from "./Select-11ddabf5.mjs";
|
6
|
+
import { U as ee } from "./Upload-23212d9d.mjs";
|
7
|
+
import { s as F, a as f } from "./gallery-d4297191.mjs";
|
8
|
+
import { _ as te } from "./_plugin-vue_export-helper-dad06003.mjs";
|
9
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
10
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
11
|
+
import "./index-a661083c.mjs";
|
12
|
+
const le = {
|
13
|
+
class: "w-100",
|
14
|
+
itemprop: "name"
|
15
|
+
}, ae = {
|
16
|
+
class: "h1",
|
17
|
+
itemprop: "headline"
|
18
|
+
}, se = { class: "text-fade-in" }, oe = { class: "text-splitted" }, ie = {
|
19
|
+
__name: "Title",
|
20
|
+
props: {
|
21
|
+
text: {
|
22
|
+
type: String,
|
23
|
+
default: "Dreamy Moments Captured"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
setup(y) {
|
27
|
+
const d = y, { text: u } = W(d);
|
28
|
+
return (C, v) => (o(), i("header", le, [
|
29
|
+
l("h2", ae, [
|
30
|
+
l("span", se, [
|
31
|
+
l("span", oe, k(x(u)), 1)
|
32
|
+
])
|
33
|
+
])
|
34
|
+
]));
|
35
|
+
}
|
36
|
+
};
|
37
|
+
const ne = { class: "pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll" }, re = ["onClick"], ce = ["data-id"], de = ["src", "onClick"], ue = { class: "modal pd-thin" }, me = { class: "modal-content radius-big" }, pe = { class: "" }, ve = ["src"], he = {
|
38
|
+
key: 0,
|
39
|
+
class: "flex-v-center flex m modal pd-big"
|
40
|
+
}, _e = { class: "modal-content radius-small pd-medium bg-white" }, ge = ["src"], fe = ["src"], ye = {
|
41
|
+
__name: "GalleryWithCategories",
|
42
|
+
setup(y) {
|
43
|
+
Q();
|
44
|
+
const d = !1, u = r(null), C = ["all", "place", "drinks", "people", "events"];
|
45
|
+
let v = 1;
|
46
|
+
const $ = 10;
|
47
|
+
let z = r(null), S = r(!1);
|
48
|
+
const I = A(() => _.value === "all" ? F.gallery : F.gallery.filter((a) => a.categories.includes(_.value))), U = async () => {
|
49
|
+
S.value = !0, await f.fetchGallery(v, $), S.value = !1;
|
50
|
+
}, h = r(null), e = r({
|
51
|
+
categories: "",
|
52
|
+
size: "",
|
53
|
+
image: !1
|
54
|
+
}), m = r(null), P = (a) => {
|
55
|
+
d.value ? R(a) : (h.value = "modal", e.value.image = a, E());
|
56
|
+
}, R = (a) => {
|
57
|
+
h.value = "edit-modal", e.value = a || {
|
58
|
+
categories: "",
|
59
|
+
size: "",
|
60
|
+
image: null
|
61
|
+
}, E();
|
62
|
+
}, p = () => {
|
63
|
+
e.value = {
|
64
|
+
categories: "",
|
65
|
+
size: "",
|
66
|
+
image: !1
|
67
|
+
}, m.value = null, j();
|
68
|
+
}, E = () => {
|
69
|
+
document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden";
|
70
|
+
}, j = () => {
|
71
|
+
document.body.style.overflow = "", document.documentElement.style.overflow = "";
|
72
|
+
}, B = [
|
73
|
+
{ name: "Small", value: "" },
|
74
|
+
{ name: "Regular", value: "grid-item--width1 grid-item--height1" },
|
75
|
+
{ name: "Medium", value: "grid-item--width2 grid-item--height2" },
|
76
|
+
{ name: "Big", value: "grid-item--width3 grid-item--height3" }
|
77
|
+
], D = async () => {
|
78
|
+
await f.updatePhoto(e.value), p();
|
79
|
+
}, N = (a) => {
|
80
|
+
const s = a.files;
|
81
|
+
if (e.value.image = s, s && s.length > 0) {
|
82
|
+
const t = new FileReader();
|
83
|
+
t.onload = (b) => {
|
84
|
+
m.value = b.target.result;
|
85
|
+
}, t.readAsDataURL(s[0]);
|
86
|
+
}
|
87
|
+
}, V = async (a) => {
|
88
|
+
if (!e.value.image || !e.value.categories || !e.value.size) {
|
89
|
+
console.error("All fields are required.");
|
90
|
+
return;
|
91
|
+
}
|
92
|
+
await f.createPhoto({
|
93
|
+
...e.value,
|
94
|
+
size: e.value.size,
|
95
|
+
categories: typeof e.value.categories == "string" ? e.value.categories.split(",").map((s) => s.trim()) : e.value.categories
|
96
|
+
}), p();
|
97
|
+
};
|
98
|
+
let _ = r("all");
|
99
|
+
const T = (a) => {
|
100
|
+
_.value = a;
|
101
|
+
};
|
102
|
+
return L(async () => {
|
103
|
+
await f.fetchGallery(v, $), typeof window < "u" && new IntersectionObserver((s) => {
|
104
|
+
s.some((t) => t.isIntersecting) && (v += 1, U());
|
105
|
+
}).observe(z.value);
|
106
|
+
}), (a, s) => (o(), i("div", null, [
|
107
|
+
l("div", ne, [
|
108
|
+
(o(), i(G, null, M(C, (t) => l("a", {
|
109
|
+
key: t,
|
110
|
+
onClick: (b) => T(t),
|
111
|
+
class: O(["h3 uppercase mn-r-big", { "t-transp": x(_) !== t }])
|
112
|
+
}, k(a.$t("gallery.categories." + t)), 11, re)), 64)),
|
113
|
+
c("", !0)
|
114
|
+
]),
|
115
|
+
l("div", {
|
116
|
+
ref_key: "grid",
|
117
|
+
ref: u,
|
118
|
+
class: "pd-medium cols-4 gap-thin"
|
119
|
+
}, [
|
120
|
+
(o(!0), i(G, null, M(x(I), (t, b) => (o(), i("div", {
|
121
|
+
key: t.id,
|
122
|
+
"data-id": t.id
|
123
|
+
}, [
|
124
|
+
n(w, {
|
125
|
+
name: "scaleIn",
|
126
|
+
mode: "in-out"
|
127
|
+
}, {
|
128
|
+
default: g(() => [
|
129
|
+
u.value ? (o(), i("img", {
|
130
|
+
key: 0,
|
131
|
+
src: "https://thecommunephuket.com/photos/" + t.cover,
|
132
|
+
class: "w-100 h-100 o-hidden radius-medium object-fit-cover",
|
133
|
+
onClick: (xe) => P(t.image)
|
134
|
+
}, null, 8, de)) : c("", !0)
|
135
|
+
]),
|
136
|
+
_: 2
|
137
|
+
}, 1024)
|
138
|
+
], 8, ce))), 128)),
|
139
|
+
l("div", {
|
140
|
+
ref_key: "sentinel",
|
141
|
+
ref: z,
|
142
|
+
class: "sentinel"
|
143
|
+
}, null, 512),
|
144
|
+
n(w, { name: "modal" }, {
|
145
|
+
default: g(() => [
|
146
|
+
q(l("div", ue, [
|
147
|
+
l("div", me, [
|
148
|
+
l("div", pe, [
|
149
|
+
l("span", {
|
150
|
+
class: "close",
|
151
|
+
onClick: p
|
152
|
+
}, "×"),
|
153
|
+
l("img", {
|
154
|
+
src: "https://thecommunephuket.com/photos/" + e.value.image
|
155
|
+
}, null, 8, ve)
|
156
|
+
])
|
157
|
+
])
|
158
|
+
], 512), [
|
159
|
+
[H, e.value.image !== !1 && h.value === "modal"]
|
160
|
+
])
|
161
|
+
]),
|
162
|
+
_: 1
|
163
|
+
}),
|
164
|
+
n(w, { name: "modal" }, {
|
165
|
+
default: g(() => [
|
166
|
+
e.value.image !== !1 && h.value === "edit-modal" ? (o(), i("div", he, [
|
167
|
+
l("div", _e, [
|
168
|
+
l("span", {
|
169
|
+
class: "close",
|
170
|
+
onClick: p
|
171
|
+
}, "×"),
|
172
|
+
typeof m.value == "string" ? (o(), i("img", {
|
173
|
+
key: 0,
|
174
|
+
src: m.value,
|
175
|
+
class: "radius-small w-100 mn-small h-20r object-fit-cover"
|
176
|
+
}, null, 8, ge)) : c("", !0),
|
177
|
+
typeof m.value == "object" && e.value.image !== null ? (o(), i("img", {
|
178
|
+
key: 1,
|
179
|
+
class: "radius-small w-100 mn-small h-20r object-fit-cover",
|
180
|
+
src: "/photos/" + e.value.cover
|
181
|
+
}, null, 8, fe)) : c("", !0),
|
182
|
+
e.value._id ? c("", !0) : (o(), J(ee, {
|
183
|
+
key: 2,
|
184
|
+
id: "photo",
|
185
|
+
name: "photo",
|
186
|
+
type: "file",
|
187
|
+
class: "t-black bg-grey pd-thin radius-small mn-thin",
|
188
|
+
onFileChange: N,
|
189
|
+
multiple: "true"
|
190
|
+
})),
|
191
|
+
n(Z, {
|
192
|
+
options: B,
|
193
|
+
label: "Size",
|
194
|
+
select: e.value.size,
|
195
|
+
"onUpdate:select": s[1] || (s[1] = (t) => e.value.size = t),
|
196
|
+
placeholder: "Select Size",
|
197
|
+
class: "bg-grey pd-thin radius-small mn-thin t-black"
|
198
|
+
}, null, 8, ["select"]),
|
199
|
+
n(X, {
|
200
|
+
field: e.value.categories,
|
201
|
+
"onUpdate:field": s[2] || (s[2] = (t) => e.value.categories = t),
|
202
|
+
type: "text",
|
203
|
+
label: "Categories",
|
204
|
+
placeholder: "Enter categories for image (comma separated)",
|
205
|
+
class: "bg-grey pd-thin radius-small mn-medium t-black"
|
206
|
+
}, null, 8, ["field"]),
|
207
|
+
n(Y, {
|
208
|
+
submit: e.value._id ? D : V,
|
209
|
+
callback: p,
|
210
|
+
class: "mn-thin"
|
211
|
+
}, {
|
212
|
+
default: g(() => [
|
213
|
+
K(k(e.value._id ? "Update" : "Create"), 1)
|
214
|
+
]),
|
215
|
+
_: 1
|
216
|
+
}, 8, ["submit"])
|
217
|
+
])
|
218
|
+
])) : c("", !0)
|
219
|
+
]),
|
220
|
+
_: 1
|
221
|
+
})
|
222
|
+
], 512)
|
223
|
+
]));
|
224
|
+
}
|
225
|
+
}, be = /* @__PURE__ */ te(ye, [["__scopeId", "data-v-34379ac8"]]), we = { class: "wrapper" }, ke = { style: { "min-height": "100vh" } }, Re = {
|
226
|
+
__name: "Gallery",
|
227
|
+
setup(y) {
|
228
|
+
return (d, u) => (o(), i("div", we, [
|
229
|
+
n(ie, {
|
230
|
+
text: d.$t("gallery.title"),
|
231
|
+
class: "pd-medium"
|
232
|
+
}, null, 8, ["text"]),
|
233
|
+
l("div", ke, [
|
234
|
+
n(be)
|
235
|
+
])
|
236
|
+
]));
|
237
|
+
}
|
238
|
+
};
|
239
|
+
export {
|
240
|
+
Re as default
|
241
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),n=require("./_plugin-vue_export-helper-f246444f.js"),o={props:{theme:{type:String,default:"black"}}},r={width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c=["fill"];function i(l,h,t,_,p,u){return e.openBlock(),e.createElementBlock("svg",r,[e.createElementVNode("path",{fill:t.theme,d:"M16.25 9.375L20 5.9375C21.5625 4.53125 23.9062 4.6875 25.3125 6.25L54.2188 37.8125C55.3125 39.0625 55.3125 40.9375 54.2188 42.1875L25.3125 73.75C23.9062 75.3125 21.5625 75.4688 20 74.0625L16.25 70.625C14.6875 69.375 14.5312 66.875 15.9375 65.4688L39.375 40L15.9375 14.5312C14.5312 13.125 14.6875 10.625 16.25 9.375Z"},null,8,c)])}const s=n._export_sfc(o,[["render",i]]);exports.IconChevronRight=s;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
|
2
|
+
import { _ as r } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
const c = {
|
4
|
+
props: {
|
5
|
+
theme: {
|
6
|
+
type: String,
|
7
|
+
default: "black"
|
8
|
+
}
|
9
|
+
}
|
10
|
+
}, s = {
|
11
|
+
width: "80",
|
12
|
+
height: "80",
|
13
|
+
viewBox: "0 0 80 80",
|
14
|
+
fill: "none",
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
16
|
+
}, i = ["fill"];
|
17
|
+
function l(_, h, e, p, a, f) {
|
18
|
+
return t(), o("svg", s, [
|
19
|
+
n("path", {
|
20
|
+
fill: e.theme,
|
21
|
+
d: "M16.25 9.375L20 5.9375C21.5625 4.53125 23.9062 4.6875 25.3125 6.25L54.2188 37.8125C55.3125 39.0625 55.3125 40.9375 54.2188 42.1875L25.3125 73.75C23.9062 75.3125 21.5625 75.4688 20 74.0625L16.25 70.625C14.6875 69.375 14.5312 66.875 15.9375 65.4688L39.375 40L15.9375 14.5312C14.5312 13.125 14.6875 10.625 16.25 9.375Z"
|
22
|
+
}, null, 8, i)
|
23
|
+
]);
|
24
|
+
}
|
25
|
+
const g = /* @__PURE__ */ r(c, [["render", l]]);
|
26
|
+
export {
|
27
|
+
g as I
|
28
|
+
};
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as n, createElementVNode as C } from "vue";
|
2
|
+
import { _ as e } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
const i = {}, _ = {
|
4
|
+
width: "80",
|
5
|
+
height: "80",
|
6
|
+
viewBox: "0 0 80 80",
|
7
|
+
fill: "none",
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
9
|
+
}, c = /* @__PURE__ */ C("path", {
|
10
|
+
d: "M12 66V32H68V66C68 69.25 65.25 72 62 72H18C14.75 72 12 69.25 12 66ZM52 42V46C52 47.125 52.875 48 54 48H58C59.125 48 60 47.125 60 46V42C60 40.875 59.125 40 58 40H54C52.875 40 52 40.875 52 42ZM52 58V62C52 63.125 52.875 64 54 64H58C59.125 64 60 63.125 60 62V58C60 56.875 59.125 56 58 56H54C52.875 56 52 56.875 52 58ZM36 42V46C36 47.125 36.875 48 38 48H42C43.125 48 44 47.125 44 46V42C44 40.875 43.125 40 42 40H38C36.875 40 36 40.875 36 42ZM36 58V62C36 63.125 36.875 64 38 64H42C43.125 64 44 63.125 44 62V58C44 56.875 43.125 56 42 56H38C36.875 56 36 56.875 36 58ZM20 42V46C20 47.125 20.875 48 22 48H26C27.125 48 28 47.125 28 46V42C28 40.875 27.125 40 26 40H22C20.875 40 20 40.875 20 42ZM20 58V62C20 63.125 20.875 64 22 64H26C27.125 64 28 63.125 28 62V58C28 56.875 27.125 56 26 56H22C20.875 56 20 56.875 20 58ZM62 16C65.25 16 68 18.75 68 22V28H12V22C12 18.75 14.75 16 18 16H24V10C24 8.875 24.875 8 26 8H30C31.125 8 32 8.875 32 10V16H48V10C48 8.875 48.875 8 50 8H54C55.125 8 56 8.875 56 10V16H62Z",
|
11
|
+
fill: "white"
|
12
|
+
}, null, -1), h = [
|
13
|
+
c
|
14
|
+
];
|
15
|
+
function l(o, s) {
|
16
|
+
return t(), n("svg", _, h);
|
17
|
+
}
|
18
|
+
const $ = /* @__PURE__ */ e(i, [["render", l]]), V = {}, r = {
|
19
|
+
width: "80",
|
20
|
+
height: "80",
|
21
|
+
viewBox: "0 0 80 80",
|
22
|
+
fill: "none",
|
23
|
+
xmlns: "http://www.w3.org/2000/svg"
|
24
|
+
}, d = /* @__PURE__ */ C("path", {
|
25
|
+
d: "M9 19C9 17.1435 9.7375 15.363 11.0503 14.0503C12.363 12.7375 14.1435 12 16 12C17.8565 12 19.637 12.7375 20.9497 14.0503C22.2625 15.363 23 17.1435 23 19C23 20.8565 22.2625 22.637 20.9497 23.9497C19.637 25.2625 17.8565 26 16 26C14.1435 26 12.363 25.2625 11.0503 23.9497C9.7375 22.637 9 20.8565 9 19ZM8 38.7125C6.75 40.1125 6 41.975 6 44C6 46.025 6.75 47.8875 8 49.2875V38.7125ZM26.05 32.55C22.3375 35.8375 20 40.65 20 46C20 50.2875 21.5 54.225 24 57.3125V60C24 62.2125 22.2125 64 20 64H12C9.7875 64 8 62.2125 8 60V56.65C3.275 54.4 0 49.5875 0 44C0 36.2625 6.2625 30 14 30H18C21 30 23.775 30.9375 26.05 32.5375V32.55ZM56 60V57.3125C58.5 54.225 60 50.2875 60 46C60 40.65 57.6625 35.8375 53.95 32.5375C56.225 30.9375 59 30 62 30H66C73.7375 30 80 36.2625 80 44C80 49.5875 76.725 54.4 72 56.65V60C72 62.2125 70.2125 64 68 64H60C57.7875 64 56 62.2125 56 60ZM57 19C57 17.1435 57.7375 15.363 59.0503 14.0503C60.363 12.7375 62.1435 12 64 12C65.8565 12 67.637 12.7375 68.9497 14.0503C70.2625 15.363 71 17.1435 71 19C71 20.8565 70.2625 22.637 68.9497 23.9497C67.637 25.2625 65.8565 26 64 26C62.1435 26 60.363 25.2625 59.0503 23.9497C57.7375 22.637 57 20.8565 57 19ZM72 38.7125V49.3C73.25 47.8875 74 46.0375 74 44.0125C74 41.9875 73.25 40.125 72 38.725V38.7125ZM40 12C42.1217 12 44.1566 12.8429 45.6569 14.3431C47.1571 15.8434 48 17.8783 48 20C48 22.1217 47.1571 24.1566 45.6569 25.6569C44.1566 27.1571 42.1217 28 40 28C37.8783 28 35.8434 27.1571 34.3431 25.6569C32.8429 24.1566 32 22.1217 32 20C32 17.8783 32.8429 15.8434 34.3431 14.3431C35.8434 12.8429 37.8783 12 40 12ZM30 46C30 48.025 30.75 49.875 32 51.2875V40.7125C30.75 42.125 30 43.975 30 46ZM48 40.7125V51.3C49.25 49.8875 50 48.0375 50 46.0125C50 43.9875 49.25 42.125 48 40.725V40.7125ZM56 46C56 51.5875 52.725 56.4 48 58.65V64C48 66.2125 46.2125 68 44 68H36C33.7875 68 32 66.2125 32 64V58.65C27.275 56.4 24 51.5875 24 46C24 38.2625 30.2625 32 38 32H42C49.7375 32 56 38.2625 56 46Z",
|
26
|
+
fill: "white"
|
27
|
+
}, null, -1), H = [
|
28
|
+
d
|
29
|
+
];
|
30
|
+
function w(o, s) {
|
31
|
+
return t(), n("svg", r, H);
|
32
|
+
}
|
33
|
+
const B = /* @__PURE__ */ e(V, [["render", w]]), M = {}, Z = {
|
34
|
+
width: "56",
|
35
|
+
height: "56",
|
36
|
+
viewBox: "0 0 56 56",
|
37
|
+
fill: "none",
|
38
|
+
xmlns: "http://www.w3.org/2000/svg"
|
39
|
+
}, f = /* @__PURE__ */ C("path", {
|
40
|
+
d: "M28.2899 50C24.4282 50.007 20.6332 48.9927 17.2899 47.06L12.5299 49.17C11.6317 49.567 10.6307 49.6695 9.67068 49.4627C8.71061 49.2558 7.84068 48.7503 7.1856 48.0186C6.53051 47.2869 6.12391 46.3666 6.02409 45.3896C5.92426 44.4126 6.13634 43.4291 6.62991 42.58L8.96991 38.58C6.65145 34.3531 5.78562 29.4816 6.50556 24.7147C7.22549 19.9478 9.49132 15.5493 12.9546 12.1956C16.418 8.84187 20.887 6.71863 25.6747 6.15233C30.4623 5.58604 35.3034 6.60805 39.4536 9.06121C43.6037 11.5144 46.8332 15.2629 48.6454 19.7303C50.4576 24.1977 50.7522 29.1367 49.4839 33.7879C48.2155 38.4391 45.4545 42.5448 41.6254 45.4739C37.7962 48.403 33.1109 49.9932 28.2899 50ZM17.4799 42.81C17.8631 42.811 18.238 42.9221 18.5599 43.13C22.2995 45.5441 26.7982 46.4939 31.1945 45.7975C35.5908 45.1011 39.5757 42.8075 42.3861 39.3558C45.1966 35.9041 46.6349 31.537 46.4258 27.0908C46.2167 22.6446 44.3748 18.4318 41.2529 15.2591C38.1309 12.0864 33.9483 10.1769 29.5061 9.89616C25.0638 9.61544 20.6741 10.9833 17.1776 13.7377C13.6811 16.4921 11.3235 20.4396 10.5563 24.8241C9.78918 29.2086 10.6664 33.722 13.0199 37.5C13.2068 37.8111 13.3055 38.1671 13.3055 38.53C13.3055 38.8929 13.2068 39.2489 13.0199 39.56L10.0899 44.56C10.0202 44.6791 9.99023 44.8174 10.0043 44.9547C10.0184 45.0919 10.0759 45.2212 10.1683 45.3237C10.2608 45.4262 10.3834 45.4966 10.5186 45.5247C10.6537 45.5528 10.7943 45.5371 10.9199 45.48L16.6699 43C16.9236 42.8806 17.1996 42.8159 17.4799 42.81Z",
|
41
|
+
fill: "white"
|
42
|
+
}, null, -1), a = /* @__PURE__ */ C("path", {
|
43
|
+
d: "M28.2898 30C27.7594 30 27.2507 29.7893 26.8756 29.4142C26.5005 29.0391 26.2898 28.5304 26.2898 28C26.2898 27.4696 26.5005 26.9609 26.8756 26.5858C27.2507 26.2107 27.7594 26 28.2898 26C28.8202 26 29.3289 26.2107 29.704 26.5858C30.0791 26.9609 30.2898 27.4696 30.2898 28C30.2898 28.5304 30.0791 29.0391 29.704 29.4142C29.3289 29.7893 28.8202 30 28.2898 30Z",
|
44
|
+
fill: "white"
|
45
|
+
}, null, -1), p = /* @__PURE__ */ C("path", {
|
46
|
+
d: "M20.2898 30C19.7594 30 19.2507 29.7893 18.8756 29.4142C18.5005 29.0391 18.2898 28.5304 18.2898 28C18.2898 27.4696 18.5005 26.9609 18.8756 26.5858C19.2507 26.2107 19.7594 26 20.2898 26C20.8202 26 21.3289 26.2107 21.704 26.5858C22.0791 26.9609 22.2898 27.4696 22.2898 28C22.2898 28.5304 22.0791 29.0391 21.704 29.4142C21.3289 29.7893 20.8202 30 20.2898 30Z",
|
47
|
+
fill: "white"
|
48
|
+
}, null, -1), m = /* @__PURE__ */ C("path", {
|
49
|
+
d: "M36.2898 30C35.7594 30 35.2507 29.7893 34.8756 29.4142C34.5005 29.0391 34.2898 28.5304 34.2898 28C34.2898 27.4696 34.5005 26.9609 34.8756 26.5858C35.2507 26.2107 35.7594 26 36.2898 26C36.8202 26 37.3289 26.2107 37.704 26.5858C38.0791 26.9609 38.2898 27.4696 38.2898 28C38.2898 28.5304 38.0791 29.0391 37.704 29.4142C37.3289 29.7893 36.8202 30 36.2898 30Z",
|
50
|
+
fill: "white"
|
51
|
+
}, null, -1), u = [
|
52
|
+
f,
|
53
|
+
a,
|
54
|
+
p,
|
55
|
+
m
|
56
|
+
];
|
57
|
+
function g(o, s) {
|
58
|
+
return t(), n("svg", Z, u);
|
59
|
+
}
|
60
|
+
const I = /* @__PURE__ */ e(M, [["render", g]]);
|
61
|
+
export {
|
62
|
+
I,
|
63
|
+
$ as a,
|
64
|
+
B as b
|
65
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const C=require("vue"),e=require("./_plugin-vue_export-helper-f246444f.js"),o={},c={width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s=C.createElementVNode("path",{d:"M12 66V32H68V66C68 69.25 65.25 72 62 72H18C14.75 72 12 69.25 12 66ZM52 42V46C52 47.125 52.875 48 54 48H58C59.125 48 60 47.125 60 46V42C60 40.875 59.125 40 58 40H54C52.875 40 52 40.875 52 42ZM52 58V62C52 63.125 52.875 64 54 64H58C59.125 64 60 63.125 60 62V58C60 56.875 59.125 56 58 56H54C52.875 56 52 56.875 52 58ZM36 42V46C36 47.125 36.875 48 38 48H42C43.125 48 44 47.125 44 46V42C44 40.875 43.125 40 42 40H38C36.875 40 36 40.875 36 42ZM36 58V62C36 63.125 36.875 64 38 64H42C43.125 64 44 63.125 44 62V58C44 56.875 43.125 56 42 56H38C36.875 56 36 56.875 36 58ZM20 42V46C20 47.125 20.875 48 22 48H26C27.125 48 28 47.125 28 46V42C28 40.875 27.125 40 26 40H22C20.875 40 20 40.875 20 42ZM20 58V62C20 63.125 20.875 64 22 64H26C27.125 64 28 63.125 28 62V58C28 56.875 27.125 56 26 56H22C20.875 56 20 56.875 20 58ZM62 16C65.25 16 68 18.75 68 22V28H12V22C12 18.75 14.75 16 18 16H24V10C24 8.875 24.875 8 26 8H30C31.125 8 32 8.875 32 10V16H48V10C48 8.875 48.875 8 50 8H54C55.125 8 56 8.875 56 10V16H62Z",fill:"white"},null,-1),l=[s];function _(t,n){return C.openBlock(),C.createElementBlock("svg",c,l)}const i=e._export_sfc(o,[["render",_]]),r={},V={width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h=C.createElementVNode("path",{d:"M9 19C9 17.1435 9.7375 15.363 11.0503 14.0503C12.363 12.7375 14.1435 12 16 12C17.8565 12 19.637 12.7375 20.9497 14.0503C22.2625 15.363 23 17.1435 23 19C23 20.8565 22.2625 22.637 20.9497 23.9497C19.637 25.2625 17.8565 26 16 26C14.1435 26 12.363 25.2625 11.0503 23.9497C9.7375 22.637 9 20.8565 9 19ZM8 38.7125C6.75 40.1125 6 41.975 6 44C6 46.025 6.75 47.8875 8 49.2875V38.7125ZM26.05 32.55C22.3375 35.8375 20 40.65 20 46C20 50.2875 21.5 54.225 24 57.3125V60C24 62.2125 22.2125 64 20 64H12C9.7875 64 8 62.2125 8 60V56.65C3.275 54.4 0 49.5875 0 44C0 36.2625 6.2625 30 14 30H18C21 30 23.775 30.9375 26.05 32.5375V32.55ZM56 60V57.3125C58.5 54.225 60 50.2875 60 46C60 40.65 57.6625 35.8375 53.95 32.5375C56.225 30.9375 59 30 62 30H66C73.7375 30 80 36.2625 80 44C80 49.5875 76.725 54.4 72 56.65V60C72 62.2125 70.2125 64 68 64H60C57.7875 64 56 62.2125 56 60ZM57 19C57 17.1435 57.7375 15.363 59.0503 14.0503C60.363 12.7375 62.1435 12 64 12C65.8565 12 67.637 12.7375 68.9497 14.0503C70.2625 15.363 71 17.1435 71 19C71 20.8565 70.2625 22.637 68.9497 23.9497C67.637 25.2625 65.8565 26 64 26C62.1435 26 60.363 25.2625 59.0503 23.9497C57.7375 22.637 57 20.8565 57 19ZM72 38.7125V49.3C73.25 47.8875 74 46.0375 74 44.0125C74 41.9875 73.25 40.125 72 38.725V38.7125ZM40 12C42.1217 12 44.1566 12.8429 45.6569 14.3431C47.1571 15.8434 48 17.8783 48 20C48 22.1217 47.1571 24.1566 45.6569 25.6569C44.1566 27.1571 42.1217 28 40 28C37.8783 28 35.8434 27.1571 34.3431 25.6569C32.8429 24.1566 32 22.1217 32 20C32 17.8783 32.8429 15.8434 34.3431 14.3431C35.8434 12.8429 37.8783 12 40 12ZM30 46C30 48.025 30.75 49.875 32 51.2875V40.7125C30.75 42.125 30 43.975 30 46ZM48 40.7125V51.3C49.25 49.8875 50 48.0375 50 46.0125C50 43.9875 49.25 42.125 48 40.725V40.7125ZM56 46C56 51.5875 52.725 56.4 48 58.65V64C48 66.2125 46.2125 68 44 68H36C33.7875 68 32 66.2125 32 64V58.65C27.275 56.4 24 51.5875 24 46C24 38.2625 30.2625 32 38 32H42C49.7375 32 56 38.2625 56 46Z",fill:"white"},null,-1),d=[h];function H(t,n){return C.openBlock(),C.createElementBlock("svg",V,d)}const w=e._export_sfc(r,[["render",H]]),M={},Z={width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u=C.createElementVNode("path",{d:"M28.2899 50C24.4282 50.007 20.6332 48.9927 17.2899 47.06L12.5299 49.17C11.6317 49.567 10.6307 49.6695 9.67068 49.4627C8.71061 49.2558 7.84068 48.7503 7.1856 48.0186C6.53051 47.2869 6.12391 46.3666 6.02409 45.3896C5.92426 44.4126 6.13634 43.4291 6.62991 42.58L8.96991 38.58C6.65145 34.3531 5.78562 29.4816 6.50556 24.7147C7.22549 19.9478 9.49132 15.5493 12.9546 12.1956C16.418 8.84187 20.887 6.71863 25.6747 6.15233C30.4623 5.58604 35.3034 6.60805 39.4536 9.06121C43.6037 11.5144 46.8332 15.2629 48.6454 19.7303C50.4576 24.1977 50.7522 29.1367 49.4839 33.7879C48.2155 38.4391 45.4545 42.5448 41.6254 45.4739C37.7962 48.403 33.1109 49.9932 28.2899 50ZM17.4799 42.81C17.8631 42.811 18.238 42.9221 18.5599 43.13C22.2995 45.5441 26.7982 46.4939 31.1945 45.7975C35.5908 45.1011 39.5757 42.8075 42.3861 39.3558C45.1966 35.9041 46.6349 31.537 46.4258 27.0908C46.2167 22.6446 44.3748 18.4318 41.2529 15.2591C38.1309 12.0864 33.9483 10.1769 29.5061 9.89616C25.0638 9.61544 20.6741 10.9833 17.1776 13.7377C13.6811 16.4921 11.3235 20.4396 10.5563 24.8241C9.78918 29.2086 10.6664 33.722 13.0199 37.5C13.2068 37.8111 13.3055 38.1671 13.3055 38.53C13.3055 38.8929 13.2068 39.2489 13.0199 39.56L10.0899 44.56C10.0202 44.6791 9.99023 44.8174 10.0043 44.9547C10.0184 45.0919 10.0759 45.2212 10.1683 45.3237C10.2608 45.4262 10.3834 45.4966 10.5186 45.5247C10.6537 45.5528 10.7943 45.5371 10.9199 45.48L16.6699 43C16.9236 42.8806 17.1996 42.8159 17.4799 42.81Z",fill:"white"},null,-1),a=C.createElementVNode("path",{d:"M28.2898 30C27.7594 30 27.2507 29.7893 26.8756 29.4142C26.5005 29.0391 26.2898 28.5304 26.2898 28C26.2898 27.4696 26.5005 26.9609 26.8756 26.5858C27.2507 26.2107 27.7594 26 28.2898 26C28.8202 26 29.3289 26.2107 29.704 26.5858C30.0791 26.9609 30.2898 27.4696 30.2898 28C30.2898 28.5304 30.0791 29.0391 29.704 29.4142C29.3289 29.7893 28.8202 30 28.2898 30Z",fill:"white"},null,-1),f=C.createElementVNode("path",{d:"M20.2898 30C19.7594 30 19.2507 29.7893 18.8756 29.4142C18.5005 29.0391 18.2898 28.5304 18.2898 28C18.2898 27.4696 18.5005 26.9609 18.8756 26.5858C19.2507 26.2107 19.7594 26 20.2898 26C20.8202 26 21.3289 26.2107 21.704 26.5858C22.0791 26.9609 22.2898 27.4696 22.2898 28C22.2898 28.5304 22.0791 29.0391 21.704 29.4142C21.3289 29.7893 20.8202 30 20.2898 30Z",fill:"white"},null,-1),p=C.createElementVNode("path",{d:"M36.2898 30C35.7594 30 35.2507 29.7893 34.8756 29.4142C34.5005 29.0391 34.2898 28.5304 34.2898 28C34.2898 27.4696 34.5005 26.9609 34.8756 26.5858C35.2507 26.2107 35.7594 26 36.2898 26C36.8202 26 37.3289 26.2107 37.704 26.5858C38.0791 26.9609 38.2898 27.4696 38.2898 28C38.2898 28.5304 38.0791 29.0391 37.704 29.4142C37.3289 29.7893 36.8202 30 36.2898 30Z",fill:"white"},null,-1),m=[u,a,f,p];function g(t,n){return C.openBlock(),C.createElementBlock("svg",Z,m)}const x=e._export_sfc(M,[["render",g]]);exports.IconCommunity=x;exports.IconEvents=i;exports.IconGroups=w;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./_plugin-vue_export-helper-f246444f.js"),n={},o={width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r=e.createElementVNode("rect",{width:"24",height:"24",transform:"translate(1 1)"},null,-1),c=e.createElementVNode("path",{fill:"rgb(var(--black))","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z"},null,-1),s=[r,c];function l(_,d){return e.openBlock(),e.createElementBlock("svg",o,s)}const i=t._export_sfc(n,[["render",l]]);exports.IconCross=i;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
|
2
|
+
import { _ as n } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
const r = {}, s = {
|
4
|
+
width: "26",
|
5
|
+
height: "26",
|
6
|
+
viewBox: "0 0 26 26",
|
7
|
+
fill: "none",
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
9
|
+
}, c = /* @__PURE__ */ e("rect", {
|
10
|
+
width: "24",
|
11
|
+
height: "24",
|
12
|
+
transform: "translate(1 1)"
|
13
|
+
}, null, -1), l = /* @__PURE__ */ e("path", {
|
14
|
+
fill: "rgb(var(--black))",
|
15
|
+
"fill-rule": "evenodd",
|
16
|
+
"clip-rule": "evenodd",
|
17
|
+
d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z"
|
18
|
+
}, null, -1), i = [
|
19
|
+
c,
|
20
|
+
l
|
21
|
+
];
|
22
|
+
function _(d, h) {
|
23
|
+
return t(), o("svg", s, i);
|
24
|
+
}
|
25
|
+
const f = /* @__PURE__ */ n(r, [["render", _]]);
|
26
|
+
export {
|
27
|
+
f as I
|
28
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as e, createElementVNode as o } from "vue";
|
2
|
+
import { _ as n } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
const c = {}, r = {
|
4
|
+
width: "652",
|
5
|
+
height: "652",
|
6
|
+
viewBox: "0 0 652 652",
|
7
|
+
fill: "none",
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
9
|
+
}, s = /* @__PURE__ */ o("path", {
|
10
|
+
fill: "rgb(var(--black))",
|
11
|
+
d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z"
|
12
|
+
}, null, -1), L = [
|
13
|
+
s
|
14
|
+
];
|
15
|
+
function _(i, l) {
|
16
|
+
return t(), e("svg", r, L);
|
17
|
+
}
|
18
|
+
const h = /* @__PURE__ */ n(c, [["render", _]]);
|
19
|
+
export {
|
20
|
+
h as I
|
21
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./_plugin-vue_export-helper-f246444f.js"),n={},c={width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o=e.createElementVNode("path",{fill:"rgb(var(--black))",d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z"},null,-1),r=[o];function s(L,_){return e.openBlock(),e.createElementBlock("svg",c,r)}const i=t._export_sfc(n,[["render",s]]);exports.IconEdit=i;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";const e=require("vue"),b=require("./index-b41aac19.js"),$=require("./Field-e2a43424.js"),C=require("./Upload-06d93178.js"),_=require("./vue-draggable-next.esm-bundler-21a209c6.js"),V=require("./Chips-0fdb31c9.js");const N=["placeholder"],B={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);e.ref(0);function d(l){let c=l.target.value.split(/\n+/);if(c.length>1){n.prop[n.content]=c[0],e.nextTick(()=>{a()});let i=c.slice(1).map(f=>({__name:"Textarea",content:f}));r("addBlock","Textarea","",n.index,{blocks:i,ref:t})}else l.target.value.trim()===""&&l.target.value.includes(`
|
2
|
+
|
3
|
+
`)&&(console.log("We are adding new block:"+n.index+newBlocks+t),r("addBlock","Textarea","",n.index,{blocks:newBlocks,ref:t})),a()}function u(l){(l.keyCode===8||l.keyCode===46)&&n.prop[n.content].trim()===""&&r("deleteBlock",n.prop)}function s(){e.nextTick(()=>{t.value.focus(),r("updateBlock",n.prop,{setFocus:!1})})}function a(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{n.setFocus&&e.nextTick(()=>{s()}),a()}),e.onMounted(()=>{n.setFocus&&e.nextTick(()=>{s()}),a()}),(l,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":c[0]||(c[0]=i=>o.prop[o.content]=i),placeholder:o.placeholder?o.placeholder:"Enter text",onInput:d,onFocus:c[1]||(c[1]=i=>r("focus",t.value)),onKeyup:u,ref_key:"textarea",ref:t,class:"text-area mn-thin"},`
|
4
|
+
`,40,N),[[e.vModelText,o.prop[o.content]]])]))}};const T=["placeholder"],U={__name:"H2",props:["obj","label","prop","value","content","textarea","placeholder","index","ref","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);e.ref(0);function d(l){let c=l.target.value.split(/\n+/);if(c.length>1){n.prop[n.content]=c[0],e.nextTick(()=>{a()});let i=c.slice(1).map(f=>({type:"Textarea",content:f}));r("addBlock","Textarea","",n.index,{blocks:i,ref:t})}else l.target.value.trim()===""&&l.target.value.includes(`
|
5
|
+
|
6
|
+
`)&&(console.log("We are adding new block:"+n.index+newBlocks+t),r("addBlock","Textarea","",n.index,{blocks:newBlocks,ref:t})),a()}function u(l){(l.keyCode===8||l.keyCode===46)&&n.prop[n.content].trim()===""&&r("deleteBlock",n.prop)}function s(){e.nextTick(()=>{t.value.focus(),r("updateBlock",n.prop,{setFocus:!1})})}function a(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{n.setFocus&&e.nextTick(()=>{s()}),a()}),e.onMounted(()=>{n.setFocus&&e.nextTick(()=>{s()}),a()}),e.watch(()=>n.prop[n.content],l=>{}),(l,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":c[0]||(c[0]=i=>o.prop[o.content]=i),placeholder:o.placeholder?o.placeholder:"Enter text",onInput:d,onFocus:c[1]||(c[1]=i=>r("focus",t.value)),onKeyup:u,ref_key:"textarea",ref:t,class:"h3 text-area mn-thin"},`
|
7
|
+
`,40,T),[[e.vModelText,o.prop[o.content]]])]))}},F=["placeholder"],I={__name:"Caption",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);function d(s){const a=/^\s*[-*]\s+(.*)/;let c=s.target.value.split(/\n+/).map(i=>{const f=a.exec(i);return f?f[1]:null}).filter(i=>i!==null);c.length>0?(n.prop[n.content]=c,u()):s.target.value.trim()===""&&(n.prop[n.content]=[],u())}function u(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{u()}),e.onMounted(()=>{u()}),e.watch(()=>n.prop[n.content],s=>{(!s||s.length===0)&&r("deleteBlock",n.prop)}),(s,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":a[0]||(a[0]=l=>o.prop[o.content]=l),placeholder:o.placeholder?o.placeholder:"Enter text",onInput:d,onFocus:a[1]||(a[1]=l=>r("focus",t.value)),ref_key:"textarea",ref:t,class:"br-l br-solid br-main pd-l-small text-area mn-small"},`
|
8
|
+
`,40,F),[[e.vModelText,o.prop[o.content]]])]))}},D=["placeholder"],M={__name:"Bullets",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);function d(s){const a=/^\s*[-*]\s+(.*)/;let c=s.target.value.split(/\n+/).map(i=>{const f=a.exec(i);return f?f[1]:null}).filter(i=>i!==null);c.length>0?(n.prop[n.content]=c,u()):s.target.value.trim()===""&&(n.prop[n.content]=[],u())}function u(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{u()}),e.onMounted(()=>{u()}),e.watch(()=>n.prop[n.content],s=>{(!s||s.length===0)&&r("deleteBlock",n.prop)}),(s,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(o.prop[o.content])+" ",1),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":a[0]||(a[0]=l=>o.prop[o.content]=l),placeholder:o.placeholder?o.placeholder:"Enter text",onInput:d,onFocus:a[1]||(a[1]=l=>r("focus",t.value)),ref_key:"textarea",ref:t,class:"text-area mn-small"},`
|
9
|
+
`,40,D),[[e.vModelText,o.prop[o.content]]])]))}},S=["src"],L={key:1,class:"t-transp pd-extra"},A={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(o,{emit:r}){const n=o,t=e.ref(null),d=e.ref(null);function u(){d.value.click()}async function s(l){let c=l.target.files[0];console.log(c);let i=new FormData,f="unsorted";i.append("file",c),console.log(i.has("file"));try{let h=await b.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(f)}`,i,{headers:{"Content-Type":"multipart/form-data"}});t.value=h.data.filepath,console.log(t.value),r("input",t.value),r("updateBlock",n.prop,{content:t.value})}catch(g){console.error(g)}}function a(l){l.preventDefault(),s({target:{files:l.dataTransfer.files}})}return(l,c)=>(e.openBlock(),e.createElementBlock("div",{onClick:u,onDrop:a,onDragover:c[0]||(c[0]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"},[o.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(l.FILE_SERVER_URL||"")+o.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,S)):(e.openBlock(),e.createElementBlock("span",L,"Click or drag-and-drop your image")),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:d,onChange:s,style:{display:"none"}},null,544)],32))}},R={class:"mn-thin w-100 pd-medium bg-white radius-medium"},H=["innerHTML"],z={key:1,class:""},q=e.createElementVNode("p",{class:"t-center"},"Embeds from youtube.com, vimeo.com, soundcloud.com are allowed",-1),j={__name:"Embed",props:["label","value","prop"],emits:["input","updateBlock"],setup(o,{emit:r}){const n=o,t=e.ref(null);function d(s){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(l=>l.test(s))}function u(){t.value&&d(t.value)?(r("input",t.value),r("updateBlock",n.prop,{content:t.value})):alert("Invalid embed code or source not allowed.")}return(s,a)=>(e.openBlock(),e.createElementBlock("div",R,[o.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:o.prop.content,class:"flex-center flex"},null,8,H)):(e.openBlock(),e.createElementBlock("div",z,[e.createVNode($.Field,{field:t.value,"onUpdate:field":a[0]||(a[0]=l=>t.value=l),type:"textarea",placeholder:"Paste your embed code here",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"},null,8,["field"]),e.createElementVNode("div",{class:"flex-v-center flex-nowrap flex gap-small"},[q,e.createElementVNode("button",{onClick:u,class:"button-small button"}," Save ")])]))]))}},P={class:"mn-thin w-100 pd-medium bg-white radius-medium"},K=["innerHTML"],W={key:1,class:""},G={__name:"Audio",props:["label","value","prop"],emits:["input","updateBlock"],setup(o,{emit:r}){const n=o,t=e.ref(null);function d(s){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(l=>l.test(s))}function u(s){t.value=s,t.value&&d(t.value)?(r("input",t.value),r("updateBlock",n.prop,{content:t.value})):alert("Invalid embed code or source not allowed.")}return(s,a)=>(e.openBlock(),e.createElementBlock("div",P,[o.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:o.prop.content,class:"flex-center flex"},null,8,K)):(e.openBlock(),e.createElementBlock("div",W,[e.createVNode(C.Upload,{field:t.value,"onUpdate:field":a[0]||(a[0]=l=>t.value=l),onFileChange:u,type:"file",placeholder:"Enter embed code",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"},null,8,["field"]),e.createElementVNode("button",{onClick:u,class:"button-small button"}," Save ")]))]))}},J=["onMouseover"],O={key:0,class:"z-index-5 radius-thin pd-thin bg-white w-max mn-small flex-nowrap flex-column flex"},Q=["onClick"],X=["onClick"],Y=["onClick"],Z=["onClick"],ee={__name:"Constructor",props:["content"],emits:["update"],setup(o,{emit:r}){const n=o;let t=e.ref(null);e.ref(null),t.value={content:n.content};const d={Textarea:B,H2:U,Bullets:M,Caption:I,ImageUpload:A,Embed:j,Audio:G};function u(h="Textarea",k="",p,m){console.log("We are adding new block (functuin HandleAddBlock):"+h+k+p+m);let v={order:t.value.content.length+1,type:h,style:"",class:"",content:k,blocks:[],setFocus:!0};if(m&&m.blocks&&Array.isArray(m.blocks)){let x=m.blocks.map(E=>({...v,content:E.content})),w=[(m.index||p)+1,0].concat(x);t.value.content.splice.apply(t.value.content,w);const y=x[x.length-1];console.log("New block is"+y)}else p!==void 0?(t.value.content.splice(p+1,0,v),console.log("Latest block is"+v)):(console.log("Another block is"+v),t.value.content.push(v));l.value=null,r("update",t.value.content)}function s(h,k){const p=t.value.content.findIndex(m=>m===h);p!==-1&&(t.value.content[p]={...t.value.content[p],...k}),r("update",t.value.content)}function a(h){let k=t.value.content.findIndex(p=>p===h);k!==-1&&t.value.content.splice(k,1),t.value.content[k-1].setFocus=!0,r("update",t.value.content)}const l=e.ref(null),c=e.ref(!1),i=e.ref(!1);function f(){c.value=!0}function g(){c.value=!1}return e.watchEffect(()=>{t.value&&t.value.content.length===0&&u("Textarea",""),r("update",t.value.content)}),(h,k)=>(e.openBlock(),e.createElementBlock("section",null,[e.unref(t).content?(e.openBlock(),e.createBlock(e.unref(_.VueDraggableNext),{key:0,class:"w-full",list:e.unref(t).content,onStart:f,onEnd:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).content,(p,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"pos-relative"},[e.createElementVNode("div",{onMouseover:v=>(l.value=m,i.value=!1),class:"pos-relative w-full h-full"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d[p.type]),{index:m,component:p,prop:p,class:e.normalizeClass(p.class),setFocus:p.setFocus,content:"content",onDeleteBlock:a,onAddBlock:u,onUpdateBlock:s},null,40,["index","component","prop","class","setFocus"]))],40,J),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.value===m?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pos-absolute z-index-4 i-semi",style:{right:"calc(100% + 0.5rem)",top:"calc(50% - 1.125rem)"},onMousedown:k[1]||(k[1]=e.withModifiers(v=>c.value=!0,["prevent"]))},[e.createElementVNode("button",{onClick:k[0]||(k[0]=v=>i.value=!i.value),class:"mn-small cursor-pointer w-100 i-semi bg-white radius-thin"},e.toDisplayString(p.content?"...":"+"),1),i.value?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("span",{onClick:v=>a(p),class:"mn-thin w-max t-red bg-white button-small button"}," Remove ",8,Q),e.createElementVNode("span",{onClick:v=>u("ImageUpload","",m),class:"mn-thin w-max t-black bg-white button-small button"}," Add Image ",8,X),e.createElementVNode("span",{onClick:v=>u("H2","",m),class:"w-max button-small t-black bg-white button"}," Add Title ",8,Y),e.createElementVNode("span",{onClick:v=>u("Embed","",m),class:"w-max button-small t-black bg-white button"}," Add Embed ",8,Z)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["list"])):e.createCommentVNode("",!0)]))}},te={class:"mn-small"},ne=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),oe=[ne],le={key:1,class:"mn-small"},ae=["onSubmit"],ce=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),re={class:"pd-t-zero"},se={class:"p-big"},ue={__name:"Comments",props:["target","owner","type"],setup(o){const r=o,n=b.axios.create({baseURL:process.env.API_URL}),t=e.ref([]),d=e.ref(""),u=async()=>{const{data:a}=await n.get(`/comments/read?type=${r.type}&target=${r.target}&user=${r.owner}`);t.value=a},s=async()=>{if(d.value)try{const a=await n.post("/comments/create",{target:r.target,user:r.owner,type:r.type,content:d.value});a.data.owner=r.owner,t.value.push(a.data),d.value=""}catch(a){console.error(a)}};return u(),(a,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",te,e.toDisplayString(t.value.length)+" comments",1),o.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[0]||(l[0]=c=>a.$router.push({name:"Sign In"})),class:"cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"},oe)),o.owner?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("form",{onSubmit:e.withModifiers(s,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[1]||(l[1]=c=>d.value=c),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,d.value]]),ce],40,ae)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,c=>(e.openBlock(),e.createElementBlock("div",{key:c._id,class:"comment mn-small radius-big pd-medium bg-grey"},[e.createVNode(V._sfc_main,{class:"mn-medium",entity:c,entityType:"comment",user:o.owner,owner:{target:c.user},creator:{target:c.user},date:c.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",re,[e.createElementVNode("p",se,e.toDisplayString(c.content),1)])]))),128))]))}},ie={class:"w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small"},de=["src"],pe={__name:"Image",props:["label","value","prop"],setup(o){return e.ref(null),(r,n)=>(e.openBlock(),e.createElementBlock("div",ie,[o.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(r.FILE_SERVER_URL||"")+o.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,de)):e.createCommentVNode("",!0)]))}};exports._sfc_main=B;exports._sfc_main$1=ee;exports._sfc_main$2=ue;exports._sfc_main$3=pe;
|