@ozdao/prometheus-framework 0.0.95 → 0.0.96

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/dist/CardOrganization-1b0da77c.mjs +230 -0
  2. package/dist/CardOrganization-43e80590.js +1 -0
  3. package/dist/Chips-4316f652.mjs +110 -0
  4. package/dist/Chips-92ccc11f.js +1 -0
  5. package/dist/Feed-361761f5.mjs +366 -0
  6. package/dist/Feed-8acc6844.js +1 -0
  7. package/dist/Feed-8f6eb29d.mjs +439 -0
  8. package/dist/Feed-c8dc4359.js +1 -0
  9. package/dist/IconEdit-4cfe2115.js +1 -0
  10. package/dist/IconEdit-eacf3856.mjs +44 -0
  11. package/dist/Image-661e2fbc.mjs +477 -0
  12. package/dist/Image-f66dbbf4.js +9 -0
  13. package/dist/Product-601a9d5b.mjs +838 -0
  14. package/dist/Product-f017e6cd.js +7 -0
  15. package/dist/ProductEdit-dae66a53.js +1 -0
  16. package/dist/ProductEdit-fa0117b6.mjs +350 -0
  17. package/dist/ProfileBlogposts-69beaa14.js +1 -0
  18. package/dist/ProfileBlogposts-92c4addb.mjs +64 -0
  19. package/dist/ProfileComments-bae499e9.js +1 -0
  20. package/dist/ProfileComments-cdaccefe.mjs +44 -0
  21. package/dist/ProfileEvents-3089a526.mjs +56 -0
  22. package/dist/ProfileEvents-e62e76cf.js +1 -0
  23. package/dist/ProfileLikes-6cf19687.js +1 -0
  24. package/dist/ProfileLikes-75215d15.mjs +44 -0
  25. package/dist/ProfileOrganizations-55914b43.js +1 -0
  26. package/dist/ProfileOrganizations-ec908108.mjs +212 -0
  27. package/dist/Publics-6b7c97bd.js +1 -0
  28. package/dist/Publics-abbe2e0c.mjs +123 -0
  29. package/dist/Socials-8193477c.mjs +189 -0
  30. package/dist/Socials-821bd677.js +1 -0
  31. package/dist/UploadImage-1b4c2a5e.mjs +83 -0
  32. package/dist/UploadImage-39d42048.js +1 -0
  33. package/dist/community.client.cjs +1 -1
  34. package/dist/community.client.js +7 -7
  35. package/dist/components/Text/Text.vue.d.ts +1 -0
  36. package/dist/components/Text/Text.vue.d.ts.map +1 -1
  37. package/dist/events.client.cjs +1 -1
  38. package/dist/events.client.js +8 -8
  39. package/dist/landing.client.cjs +1 -1
  40. package/dist/landing.client.js +38 -38
  41. package/dist/main.css +1 -1
  42. package/dist/organizations.client-8aa34e80.mjs +3017 -0
  43. package/dist/organizations.client-b0878617.js +3 -0
  44. package/dist/organizations.client.cjs +1 -1
  45. package/dist/organizations.client.js +9 -9
  46. package/dist/prometheus-framework.cjs.js +2 -2
  47. package/dist/prometheus-framework.es.js +4 -3
  48. package/dist/style.css +1 -1
  49. package/dist/users.client.cjs +1 -1
  50. package/dist/users.client.js +45 -45
  51. package/package.json +1 -1
  52. package/src/components/CardHeader/CardHeader.vue +2 -2
  53. package/src/components/Magnifier/Magnifier.vue +1 -1
  54. package/src/components/Text/Text.vue +4 -3
  55. package/src/components/UploadImage/UploadImage.vue +8 -1
  56. package/src/modules/backoffice/components/pages/Organizations.vue +1 -1
  57. package/src/modules/community/components/blocks/CardBlogpost.vue +16 -1
  58. package/src/modules/constructor/components/elements/Image.vue +1 -1
  59. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  60. package/src/modules/events/components/blocks/CardEvent.vue +18 -6
  61. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  62. package/src/modules/landing/components/sections/MobileApp.vue +1 -1
  63. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  64. package/src/modules/orders/components/blocks/Positions.vue +2 -2
  65. package/src/modules/organizations/components/blocks/CardOrganization.vue +5 -5
  66. package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
  67. package/src/modules/organizations/components/blocks/User.vue +1 -1
  68. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  69. package/src/modules/organizations/components/pages/OrganizationsAccount.vue +1 -1
  70. package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
  71. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  72. package/src/modules/products/components/blocks/Images360.vue +1 -1
  73. package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
  74. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  75. package/src/modules/products/components/blocks/ProductCard.vue +1 -1
  76. package/src/modules/products/components/sections/EditProductImages.vue +1 -1
  77. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  78. package/src/modules/products/components/sections/SectionProduct.vue +1 -1
  79. package/src/modules/users/components/pages/Profile.vue +3 -3
  80. package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
  81. package/src/styles/base/all.scss +1 -0
@@ -0,0 +1,83 @@
1
+ import { ref as d, watch as v, openBlock as l, createElementBlock as n, withModifiers as g, createElementVNode as i } from "vue";
2
+ import { a as w } from "./auth-cfeacd61.mjs";
3
+ const x = ["src"], _ = {
4
+ key: 1,
5
+ class: "flex-v-center flex-h-center flex w-100 h-100 bg-second"
6
+ }, y = /* @__PURE__ */ i("svg", {
7
+ class: "i-medium",
8
+ width: "104",
9
+ height: "104",
10
+ viewBox: "0 0 104 104",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg"
13
+ }, [
14
+ /* @__PURE__ */ i("path", {
15
+ fill: "white",
16
+ d: "M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"
17
+ })
18
+ ], -1), k = [
19
+ y
20
+ ], D = {
21
+ __name: "UploadImage",
22
+ props: [
23
+ "uploadPath",
24
+ // only necessary prop
25
+ "photo"
26
+ // new prop for holding the image url
27
+ ],
28
+ emits: ["update:photo"],
29
+ setup(a, { emit: u }) {
30
+ const r = a, t = d(null), s = d(null);
31
+ v(r, ({ photo: e }) => {
32
+ e && (t.value = e);
33
+ });
34
+ function h() {
35
+ s.value.click();
36
+ }
37
+ async function c(e) {
38
+ let o = e.target.files[0], p = new FormData();
39
+ p.append("file", o);
40
+ try {
41
+ let m = await w.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(r.uploadPath)}`, p, {
42
+ headers: {
43
+ "Content-Type": "multipart/form-data"
44
+ }
45
+ });
46
+ t.value = m.data.filepath, u("update:photo", t.value);
47
+ } catch (f) {
48
+ console.error(f);
49
+ }
50
+ }
51
+ function C(e) {
52
+ e.preventDefault(), c({
53
+ target: {
54
+ files: e.dataTransfer.files
55
+ }
56
+ });
57
+ }
58
+ return (e, o) => (l(), n("div", {
59
+ onClick: h,
60
+ onDrop: C,
61
+ onDragover: o[0] || (o[0] = g(() => {
62
+ }, ["prevent"])),
63
+ class: "image-upload-area flex-v-center flex-h-center flex"
64
+ }, [
65
+ t.value || a.photo ? (l(), n("img", {
66
+ key: 0,
67
+ src: (e.FILE_SERVER_URL || "") + (t.value || a.photo),
68
+ alt: "Uploaded image",
69
+ class: "w-100 h-100 object-fit-fill"
70
+ }, null, 8, x)) : (l(), n("div", _, k)),
71
+ i("input", {
72
+ type: "file",
73
+ ref_key: "fileInput",
74
+ ref: s,
75
+ onChange: c,
76
+ style: { display: "none" }
77
+ }, null, 544)
78
+ ], 32));
79
+ }
80
+ };
81
+ export {
82
+ D as _
83
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),h=require("./auth-b61483ce.js"),C=["src"],m={key:1,class:"flex-v-center flex-h-center flex w-100 h-100 bg-second"},v=e.createElementVNode("svg",{class:"i-medium",width:"104",height:"104",viewBox:"0 0 104 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"white",d:"M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"})],-1),g=[v],w={__name:"UploadImage",props:["uploadPath","photo"],emits:["update:photo"],setup(n,{emit:p}){const a=n,o=e.ref(null),i=e.ref(null);e.watch(a,({photo:t})=>{t&&(o.value=t)});function f(){i.value.click()}async function r(t){let l=t.target.files[0],s=new FormData;s.append("file",l);try{let d=await h.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(a.uploadPath)}`,s,{headers:{"Content-Type":"multipart/form-data"}});o.value=d.data.filepath,p("update:photo",o.value)}catch(c){console.error(c)}}function u(t){t.preventDefault(),r({target:{files:t.dataTransfer.files}})}return(t,l)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:u,onDragover:l[0]||(l[0]=e.withModifiers(()=>{},["prevent"])),class:"image-upload-area flex-v-center flex-h-center flex"},[o.value||n.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+(o.value||n.photo),alt:"Uploaded image",class:"w-100 h-100 object-fit-fill"},null,8,C)):(e.openBlock(),e.createElementBlock("div",m,g)),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:i,onChange:r,style:{display:"none"}},null,544)],32))}};exports._sfc_main=w;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("vue-router"),$=require("./Publics-4db36606.js"),u=require("./Feed-f0a40b33.js"),g=require("./auth-b61483ce.js"),x=require("./Image-d01026cf.js"),I=require("./Popup-0b38b537.js"),V=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js"),z=require("./organizations-49a10611.js"),D=require("./EmptyState-7658d7d6.js"),P=require("./_plugin-vue_export-helper-f246444f.js"),F=require("vue-i18n");require("./globals-928eb13c.js");require("./CardOrganization-b2098e42.js");require("./ButtonFollow-4049a57e.js");require("./Chips-2a0d9bfe.js");require("./PlaceholderUserpic-20d58460.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const O={class:"min-h-100vh pd-thin"},L={class:"mn-thin flex-v-center t-left flex-nowrap flex"},j={class:"flex-v-center flex-nowrap flex t-left"},U=e.createElementVNode("span",{class:""},"Topics for ",-1),A={class:"bg-grey pd-medium radius-big mn-semi flex-nowrap flex"},H={class:""},T={__name:"Community",setup(c){const r=w.useRoute(),n=w.useRouter();return(t,a)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("header",L,[e.createElementVNode("h2",j,[U,e.createVNode($.Select,{options:["today","week","month","year"],select:u.state.filter.period,"onUpdate:select":a[0]||(a[0]=o=>u.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",A,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[1]||(a[1]=o=>e.unref(n).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[2]||(a[2]=o=>e.unref(n).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[3]||(a[3]=o=>e.unref(n).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),g.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="following"},"t-medium pd-small radius-small"]),onClick:a[4]||(a[4]=o=>e.unref(n).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",H,[e.createVNode(d,null,{default:e.withCtx(({Component:o,route:m})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:m.query}))]),_:2},1024)]),_:1})])])}}},R={class:"pd-thin"},J={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},G={class:"w-full h-full"},Q={key:1,class:"pd-thin pos-fixed pos-l-0 pos-b-0 w-100"},W={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},K={class:"w-m-66r t-left pd-big bg-white radius-big"},X=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),Y=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),Z={key:0,class:"mn-thin"},ee={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},S={__name:"CreateBlogPost",setup(c){const r=w.useRoute(),n=w.useRouter();let t=e.ref(null),a=e.ref(null);const d=e.ref([]),o=e.ref(null);e.onMounted(async()=>{if(r.params.url){const i=await u.read({user:g.state.user._id,url:r.params.url});t.value=i.pop()}else u.clean(),t.value=u.state.current;t.value.owner||(t.value.owner={target:g.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:g.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(o.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const l=await z.actions.read({user:g.state.user._id,postable:g.state.user._id,limit:100});console.log(l),a.value=l.map(i=>({name:i.profile.name,_id:i._id,photo:i.profile.photo}))});const m=e.ref(""),s=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>s.value.filter(l=>l.text.toLowerCase().includes(m.value.toLowerCase()))),e.computed(()=>s.value.filter(l=>!d.value.some(i=>i.text===l.text)));const p=e.ref(!1);function b(){p.value=!0}function v(){p.value=!1}function k(){d.value.length>0&&d.value.map(l=>l.text),t.value.status="draft",r.params.url?u.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):u.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function B(){o.value&&(t.value.owner={target:o.value._id,type:"organization"}),o.value||(t.value.creator.hidden=!1),o.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?u.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):u.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function N(){confirm("Are you sure you want to delete this post?")&&u.remove(t.value._id).then(l=>{n.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(l=>{console.log(l)})}return(l,i)=>(e.openBlock(),e.createElementBlock("article",R,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",J,[e.createElementVNode("div",G,[e.createVNode(x._sfc_main$3,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(x._sfc_main,{content:e.unref(t).content,onUpdate:i[0]||(i[0]=f=>e.unref(t).content=f)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",Q,[e.createElementVNode("div",W,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i[1]||(i[1]=f=>N()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:i[2]||(i[2]=f=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:i[3]||(i[3]=f=>b()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(I._sfc_main,{title:"Добавить участника",onClosePopup:v,isPopupOpen:p.value},{default:e.withCtx(()=>[e.createElementVNode("div",K,[X,e.createVNode(V._sfc_main,{onTagsChanged:i[4]||(i[4]=f=>e.unref(t).tags=f),tags:e.unref(t).tags},null,8,["tags"]),Y,e.createVNode(V.SelectMulti,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=f=>o.value=f),options:e.unref(a),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",Z,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(V.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":i[6]||(i[6]=f=>e.unref(t).creator.hidden=f),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(g._sfc_main,{submit:B,callback:l.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])])]),_:1},8,["isPopupOpen"])]))}},C=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),te={},oe={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},ne=e.createStaticVNode('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',6),ae=[ne];function re(c,r){return e.openBlock(),e.createElementBlock("svg",oe,ae)}const se=P._export_sfc(te,[["render",re]]),le={class:"pd-thin"},q={__name:"BlogPost",setup(c){const r=w.useRoute(),n=e.ref(null),t=e.ref(!0);e.onMounted(async()=>{t.value=!0;const o=await u.read({user:g.state.user._id,url:r.params.url});n.value=o[0],t.value=!1});const a={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:x._sfc_main$2};function d(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}return(o,m)=>(e.openBlock(),e.createElementBlock("section",le,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,s=>e.createVNode(se,{key:s})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&!n.value?(e.openBlock(),e.createBlock(D._sfc_main,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!t.value&&n.value?(e.openBlock(),e.createBlock(u._sfc_main$1,{key:0,onClick:m[0]||(m[0]=s=>o.$router.push({name:"Blogpost",params:{url:n.value.url}})),blogpost:n.value,user:g.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-medium",{"br-b br-solid br-black-transp-10":o.index!==n.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[n.value&&n.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value.content,(s,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a[s.type]),e.mergeProps({key:p,index:p,component:s,prop:s,class:s.class,content:"content"},d(s),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode($._sfc_main,{class:"mn-small"}),!t.value&&n.value?(e.openBlock(),e.createBlock(x._sfc_main$1,{key:1,type:"blogpost",target:n.value._id,owner:g.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},ie=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),M={__name:"Blog",setup(c){const r=w.useRoute(),n=w.useRouter();return r.params.category||(r.params.category="featured"),e.onMounted(()=>{if(r.query){const t=r.query,a={tags:t.tags?t.tags.split(","):[],period:t.period?t.period:"week"};u.state.filter=a}}),e.watch(()=>u.state.filter,(t,a)=>{const d={...r.query};Object.keys(a).forEach(m=>{d[m]&&delete d[m]});const o=Object.fromEntries(Object.entries(t).filter(([m,s])=>Array.isArray(s)&&s.length>0||typeof s=="string"&&s).map(([m,s])=>[m,Array.isArray(s)?s.join(","):s]));Object.assign(d,o),n.push({query:d})},{deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(u._sfc_main,{category:e.unref(r).params.category,user:g.state.user._id,period:e.unref(r).query.period},null,8,["category","user","period"])]))}},ce=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),ue={class:"w-100 cols-4 t-left flex-nowrap flex"},de={key:0,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},me=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),pe={class:"t-semi uppercase"},ge=e.createElementVNode("br",null,null,-1),fe={key:1,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},_e=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"💬",-1),he={class:"t-semi uppercase"},ve=e.createElementVNode("br",null,null,-1),be={key:2,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ye=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),we={class:"t-semi uppercase"},ke=e.createElementVNode("br",null,null,-1),xe={__name:"Activity",props:{likes:Number,comments:Number,subscriptions:Number},setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",ue,[c.likes?(e.openBlock(),e.createElementBlock("div",de,[me,e.createElementVNode("span",pe,[e.createTextVNode(e.toDisplayString(c.likes),1),ge,e.createTextVNode("likes")])])):e.createCommentVNode("",!0),c.comments?(e.openBlock(),e.createElementBlock("div",fe,[_e,e.createElementVNode("span",he,[e.createTextVNode(e.toDisplayString(c.comments),1),ve,e.createTextVNode("comments")])])):e.createCommentVNode("",!0),c.subscriptions?(e.openBlock(),e.createElementBlock("div",be,[ye,e.createElementVNode("span",we,[e.createTextVNode(e.toDisplayString(c.subscriptions),1),ke,e.createTextVNode("subscriptions")])])):e.createCommentVNode("",!0)]))}},Be={class:"pd-thin radius-extra flex-nowrap flex"},Ne=["innerHTML"],Ve={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:r}){const n=c,{t,locale:a}=F.useI18n();let d=e.ref(0),o=e.ref(n.input),m=e.ref(n.placeholder),s=e.ref(n.enableTyping),p=e.ref(null),b=e.ref(""),v=e.ref(!0),k=null;function B(){r("action")}function N(h){r("update:input",h),b.value=h}function l(){d.value=(d.value+1)%n.placeholderTexts[a.value].length}function i(){s.value=!1,clearInterval(p.value),m.value=n.placeholder,b.value||(o.value="")}function f(){!b.value&&n.enableTyping&&(s.value=!0,m.value="",E())}function E(){let h=n.placeholderTexts[a.value][d.value],_=0,y=!1;k=setInterval(()=>{v.value=!v.value},200),p.value=setInterval(()=>{s.value&&(y?(o.value=o.value.slice(0,-1),o.value=h.substring(0,_)+(v.value&&_%2?"|":""),_--):(o.value=h.substring(0,_)+(v.value&&_%2?"|":""),_++),_>h.length&&n.loopTyping&&setTimeout(()=>{y=!0,o.value=h.substring(0,_)},333),_===0&&y&&(y=!1,l(),h=n.placeholderTexts[a.value][d.value]))},n.typingSpeed)}return e.onMounted(()=>{n.enableTyping&&E()}),e.watchEffect(()=>{s.value||(clearInterval(p.value),clearInterval(k))}),(h,_)=>(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(g.Field,{field:e.unref(o),"onUpdate:field":[_[0]||(_[0]=y=>e.isRef(o)?o.value=y:o=y),N],placeholder:e.unref(m),onInput:l,onFocus:i,onBlur:f,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:B,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,Ne)):e.createCommentVNode("",!0)]))}};const Ee={class:"pd-thin"},Ce={class:"o-hidden t-black bg-main pd-big radius-big"},$e=e.createElementVNode("header",{class:"t-center z-index-1 mn-big"},[e.createElementVNode("h2",{class:"mn-l-auto mn-r-auto w-m-40r mn-medium"},"Stay Updated with The Latest in Cannabis."),e.createElementVNode("p",{class:"t-transp p-big"},"Subscribe to our newsletter for news, insights, and more from the Weeder universe.")],-1),Pe={class:"z-index-1 mn-big w-100 flex-nowrap flex"},Te=e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1),Se={__name:"SubscribeNewsletter",setup(c){let r=e.ref("");return(n,t)=>(e.openBlock(),e.createElementBlock("section",Ee,[e.createElementVNode("div",Ce,[$e,e.createElementVNode("div",Pe,[e.createVNode(Ve,{input:e.unref(r),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:"Please enter your email",action:"Subscribe","onUpdate:input":t[0]||(t[0]=a=>e.isRef(r)?r.value=a:r=a),onAction:t[1]||(t[1]=a=>n.router.push({name:"Product Recommmendation",query:{mood:n.mood}})),class:"mn-l-auto mn-r-auto bg-white t-black w-50"},null,8,["input"])]),Te])]))}};const qe={class:"container container-joinus"},Me={class:"content"},Ie={class:"h0 mn-big"},ze=e.createElementVNode("p",{class:"w-m-33r t-center mn-small p-big"},"Together, we're shaping the future of the globals cannabis community.",-1),De=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),Fe={__name:"JoinUs",setup(c){const r=e.ref(120950),n=e.ref(["/assets/images/reviews/01.png","/assets/images/reviews/02.png","/assets/images/reviews/03.png","/assets/images/reviews/04.png","/assets/images/reviews/05.png","/assets/images/reviews/06.png"]),t=()=>{setInterval(()=>{r.value+=Math.floor(Math.random()*5)+1},330)},a={minSize:"6rem",maxSize:"10rem",minDuration:5,maxDuration:15,spawnPoints:[10,90]};e.onMounted(()=>{d(),t()});const d=()=>{n.value.forEach((o,m)=>{let s=document.createElement("img");s.src=o,s.classList.add("floating-image");let p=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],b=(Math.random()-.5)*2*10;s.style.left=`${p+b}%`,s.style.animationDuration=`${Math.random()*(a.maxDuration-a.minDuration)+a.minDuration}s`,document.querySelector(".container").appendChild(s),s.addEventListener("animationiteration",()=>{const v=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],k=(Math.random()-.5)*2*10;s.style.left=`${v+k}%`})})};return(o,m)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",Me,[e.createElementVNode("span",Ie,e.toDisplayString(r.value.toLocaleString()),1),ze,De])]))}};const Oe=c=>(e.pushScopeId("data-v-18db0d1b"),c=c(),e.popScopeId(),c),Le={class:"community-feed"},je=Oe(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),Ue={class:"grid-container"},Ae={__name:"HotPosts",async setup(c){let r,n;const t=e.ref([]),a=async()=>{const o=await u.read({skip:0,limit:7,period:"year"});console.log(o),t.value=o};[r,n]=e.withAsyncContext(()=>a()),await r,n();const d=o=>{switch(o){case 0:return"grid-item-2x2";case 1:return"grid-item-2x1";case 2:return"grid-item-1x1";case 3:case 4:return"grid-item-1x1";case 6:return"grid-item-2x1";default:return""}};return(o,m)=>(e.openBlock(),e.createElementBlock("section",Le,[je,e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,p)=>(e.openBlock(),e.createBlock(u._sfc_main$1,{blogpost:s,owner:g.state.user._id,key:p,class:e.normalizeClass(d(p))},null,8,["blogpost","owner","class"]))),128))])]))}},He=P._export_sfc(Ae,[["__scopeId","data-v-18db0d1b"]]),Re=[{path:"community",component:T,meta:{title:{en:"Community",ru:"Коммьюнити"}},children:[{path:":category?",name:"Blog",component:()=>Promise.resolve().then(()=>ce)}]},{path:"community/posts/create",name:"Create BlogPost",meta:{title:{en:"Create Post",ru:"Создать Пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)},{path:"community/posts/:url",name:"BlogPost",meta:{title:{en:"Post",ru:"Пост"}},component:()=>Promise.resolve().then(()=>ie)},{path:"community/posts/:url/edit",name:"Edit BlogPost",meta:{title:{en:"Edit Post",ru:"Редактировать пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)}];exports.CardBlogpost=u._sfc_main$1;exports.Feed=u._sfc_main;exports.FooterBlogpost=u._sfc_main$2;exports.blogpostsStore=u.blogposts;exports.reactionsStore=u.reactions;exports.Comments=x._sfc_main$1;exports.Activity=xe;exports.Blog=M;exports.BlogPost=q;exports.Community=T;exports.CreateBlogPost=S;exports.HotPosts=He;exports.JoinUs=Fe;exports.SubscribeNewsletter=Se;exports.blogpostsRoutes=Re;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("vue-router"),$=require("./Publics-6b7c97bd.js"),u=require("./Feed-8acc6844.js"),g=require("./auth-b61483ce.js"),x=require("./Image-f66dbbf4.js"),I=require("./Popup-0b38b537.js"),V=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js"),z=require("./organizations-49a10611.js"),D=require("./EmptyState-7658d7d6.js"),P=require("./_plugin-vue_export-helper-f246444f.js"),F=require("vue-i18n");require("./globals-928eb13c.js");require("./CardOrganization-43e80590.js");require("./ButtonFollow-4049a57e.js");require("./Chips-92ccc11f.js");require("./IconEdit-4cfe2115.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const O={class:"min-h-100vh pd-thin"},L={class:"mn-thin flex-v-center t-left flex-nowrap flex"},j={class:"flex-v-center flex-nowrap flex t-left"},U=e.createElementVNode("span",{class:""},"Topics for ",-1),A={class:"bg-grey pd-medium radius-big mn-semi flex-nowrap flex"},H={class:""},T={__name:"Community",setup(c){const r=w.useRoute(),n=w.useRouter();return(t,a)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("header",L,[e.createElementVNode("h2",j,[U,e.createVNode($.Select,{options:["today","week","month","year"],select:u.state.filter.period,"onUpdate:select":a[0]||(a[0]=o=>u.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",A,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[1]||(a[1]=o=>e.unref(n).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[2]||(a[2]=o=>e.unref(n).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[3]||(a[3]=o=>e.unref(n).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),g.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="following"},"t-medium pd-small radius-small"]),onClick:a[4]||(a[4]=o=>e.unref(n).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",H,[e.createVNode(d,null,{default:e.withCtx(({Component:o,route:m})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:m.query}))]),_:2},1024)]),_:1})])])}}},R={class:"pd-thin"},J={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},G={class:"w-full h-full"},Q={key:1,class:"pd-thin pos-fixed pos-l-0 pos-b-0 w-100"},W={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},K={class:"w-m-66r t-left pd-big bg-white radius-big"},X=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),Y=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),Z={key:0,class:"mn-thin"},ee={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},S={__name:"CreateBlogPost",setup(c){const r=w.useRoute(),n=w.useRouter();let t=e.ref(null),a=e.ref(null);const d=e.ref([]),o=e.ref(null);e.onMounted(async()=>{if(r.params.url){const i=await u.read({user:g.state.user._id,url:r.params.url});t.value=i.pop()}else u.clean(),t.value=u.state.current;t.value.owner||(t.value.owner={target:g.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:g.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(o.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const l=await z.actions.read({user:g.state.user._id,postable:g.state.user._id,limit:100});console.log(l),a.value=l.map(i=>({name:i.profile.name,_id:i._id,photo:i.profile.photo}))});const m=e.ref(""),s=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>s.value.filter(l=>l.text.toLowerCase().includes(m.value.toLowerCase()))),e.computed(()=>s.value.filter(l=>!d.value.some(i=>i.text===l.text)));const p=e.ref(!1);function b(){p.value=!0}function v(){p.value=!1}function k(){d.value.length>0&&d.value.map(l=>l.text),t.value.status="draft",r.params.url?u.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):u.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function B(){o.value&&(t.value.owner={target:o.value._id,type:"organization"}),o.value||(t.value.creator.hidden=!1),o.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?u.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):u.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function N(){confirm("Are you sure you want to delete this post?")&&u.remove(t.value._id).then(l=>{n.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(l=>{console.log(l)})}return(l,i)=>(e.openBlock(),e.createElementBlock("article",R,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",J,[e.createElementVNode("div",G,[e.createVNode(x._sfc_main$3,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(x._sfc_main,{content:e.unref(t).content,onUpdate:i[0]||(i[0]=f=>e.unref(t).content=f)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",Q,[e.createElementVNode("div",W,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i[1]||(i[1]=f=>N()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:i[2]||(i[2]=f=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:i[3]||(i[3]=f=>b()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(I._sfc_main,{title:"Добавить участника",onClosePopup:v,isPopupOpen:p.value},{default:e.withCtx(()=>[e.createElementVNode("div",K,[X,e.createVNode(V._sfc_main,{onTagsChanged:i[4]||(i[4]=f=>e.unref(t).tags=f),tags:e.unref(t).tags},null,8,["tags"]),Y,e.createVNode(V.SelectMulti,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=f=>o.value=f),options:e.unref(a),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",Z,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(V.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":i[6]||(i[6]=f=>e.unref(t).creator.hidden=f),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(g._sfc_main,{submit:B,callback:l.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])])]),_:1},8,["isPopupOpen"])]))}},C=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),te={},oe={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},ne=e.createStaticVNode('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',6),ae=[ne];function re(c,r){return e.openBlock(),e.createElementBlock("svg",oe,ae)}const se=P._export_sfc(te,[["render",re]]),le={class:"pd-thin"},q={__name:"BlogPost",setup(c){const r=w.useRoute(),n=e.ref(null),t=e.ref(!0);e.onMounted(async()=>{t.value=!0;const o=await u.read({user:g.state.user._id,url:r.params.url});n.value=o[0],t.value=!1});const a={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:x._sfc_main$2};function d(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}return(o,m)=>(e.openBlock(),e.createElementBlock("section",le,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,s=>e.createVNode(se,{key:s})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&!n.value?(e.openBlock(),e.createBlock(D._sfc_main,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!t.value&&n.value?(e.openBlock(),e.createBlock(u._sfc_main$1,{key:0,onClick:m[0]||(m[0]=s=>o.$router.push({name:"Blogpost",params:{url:n.value.url}})),blogpost:n.value,user:g.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-medium",{"br-b br-solid br-black-transp-10":o.index!==n.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[n.value&&n.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value.content,(s,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a[s.type]),e.mergeProps({key:p,index:p,component:s,prop:s,class:s.class,content:"content"},d(s),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode($._sfc_main,{class:"mn-small"}),!t.value&&n.value?(e.openBlock(),e.createBlock(x._sfc_main$1,{key:1,type:"blogpost",target:n.value._id,owner:g.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},ie=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),M={__name:"Blog",setup(c){const r=w.useRoute(),n=w.useRouter();return r.params.category||(r.params.category="featured"),e.onMounted(()=>{if(r.query){const t=r.query,a={tags:t.tags?t.tags.split(","):[],period:t.period?t.period:"week"};u.state.filter=a}}),e.watch(()=>u.state.filter,(t,a)=>{const d={...r.query};Object.keys(a).forEach(m=>{d[m]&&delete d[m]});const o=Object.fromEntries(Object.entries(t).filter(([m,s])=>Array.isArray(s)&&s.length>0||typeof s=="string"&&s).map(([m,s])=>[m,Array.isArray(s)?s.join(","):s]));Object.assign(d,o),n.push({query:d})},{deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(u._sfc_main,{category:e.unref(r).params.category,user:g.state.user._id,period:e.unref(r).query.period},null,8,["category","user","period"])]))}},ce=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),ue={class:"w-100 cols-4 t-left flex-nowrap flex"},de={key:0,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},me=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),pe={class:"t-semi uppercase"},ge=e.createElementVNode("br",null,null,-1),fe={key:1,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},_e=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"💬",-1),he={class:"t-semi uppercase"},ve=e.createElementVNode("br",null,null,-1),be={key:2,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ye=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),we={class:"t-semi uppercase"},ke=e.createElementVNode("br",null,null,-1),xe={__name:"Activity",props:{likes:Number,comments:Number,subscriptions:Number},setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",ue,[c.likes?(e.openBlock(),e.createElementBlock("div",de,[me,e.createElementVNode("span",pe,[e.createTextVNode(e.toDisplayString(c.likes),1),ge,e.createTextVNode("likes")])])):e.createCommentVNode("",!0),c.comments?(e.openBlock(),e.createElementBlock("div",fe,[_e,e.createElementVNode("span",he,[e.createTextVNode(e.toDisplayString(c.comments),1),ve,e.createTextVNode("comments")])])):e.createCommentVNode("",!0),c.subscriptions?(e.openBlock(),e.createElementBlock("div",be,[ye,e.createElementVNode("span",we,[e.createTextVNode(e.toDisplayString(c.subscriptions),1),ke,e.createTextVNode("subscriptions")])])):e.createCommentVNode("",!0)]))}},Be={class:"pd-thin radius-extra flex-nowrap flex"},Ne=["innerHTML"],Ve={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:r}){const n=c,{t,locale:a}=F.useI18n();let d=e.ref(0),o=e.ref(n.input),m=e.ref(n.placeholder),s=e.ref(n.enableTyping),p=e.ref(null),b=e.ref(""),v=e.ref(!0),k=null;function B(){r("action")}function N(h){r("update:input",h),b.value=h}function l(){d.value=(d.value+1)%n.placeholderTexts[a.value].length}function i(){s.value=!1,clearInterval(p.value),m.value=n.placeholder,b.value||(o.value="")}function f(){!b.value&&n.enableTyping&&(s.value=!0,m.value="",E())}function E(){let h=n.placeholderTexts[a.value][d.value],_=0,y=!1;k=setInterval(()=>{v.value=!v.value},200),p.value=setInterval(()=>{s.value&&(y?(o.value=o.value.slice(0,-1),o.value=h.substring(0,_)+(v.value&&_%2?"|":""),_--):(o.value=h.substring(0,_)+(v.value&&_%2?"|":""),_++),_>h.length&&n.loopTyping&&setTimeout(()=>{y=!0,o.value=h.substring(0,_)},333),_===0&&y&&(y=!1,l(),h=n.placeholderTexts[a.value][d.value]))},n.typingSpeed)}return e.onMounted(()=>{n.enableTyping&&E()}),e.watchEffect(()=>{s.value||(clearInterval(p.value),clearInterval(k))}),(h,_)=>(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(g.Field,{field:e.unref(o),"onUpdate:field":[_[0]||(_[0]=y=>e.isRef(o)?o.value=y:o=y),N],placeholder:e.unref(m),onInput:l,onFocus:i,onBlur:f,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:B,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,Ne)):e.createCommentVNode("",!0)]))}};const Ee={class:"pd-thin"},Ce={class:"o-hidden t-black bg-main pd-big radius-big"},$e=e.createElementVNode("header",{class:"t-center z-index-1 mn-big"},[e.createElementVNode("h2",{class:"mn-l-auto mn-r-auto w-m-40r mn-medium"},"Stay Updated with The Latest in Cannabis."),e.createElementVNode("p",{class:"t-transp p-big"},"Subscribe to our newsletter for news, insights, and more from the Weeder universe.")],-1),Pe={class:"z-index-1 mn-big w-100 flex-nowrap flex"},Te=e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1),Se={__name:"SubscribeNewsletter",setup(c){let r=e.ref("");return(n,t)=>(e.openBlock(),e.createElementBlock("section",Ee,[e.createElementVNode("div",Ce,[$e,e.createElementVNode("div",Pe,[e.createVNode(Ve,{input:e.unref(r),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:"Please enter your email",action:"Subscribe","onUpdate:input":t[0]||(t[0]=a=>e.isRef(r)?r.value=a:r=a),onAction:t[1]||(t[1]=a=>n.router.push({name:"Product Recommmendation",query:{mood:n.mood}})),class:"mn-l-auto mn-r-auto bg-white t-black w-50"},null,8,["input"])]),Te])]))}};const qe={class:"container container-joinus"},Me={class:"content"},Ie={class:"h0 mn-big"},ze=e.createElementVNode("p",{class:"w-m-33r t-center mn-small p-big"},"Together, we're shaping the future of the globals cannabis community.",-1),De=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),Fe={__name:"JoinUs",setup(c){const r=e.ref(120950),n=e.ref(["/assets/images/reviews/01.png","/assets/images/reviews/02.png","/assets/images/reviews/03.png","/assets/images/reviews/04.png","/assets/images/reviews/05.png","/assets/images/reviews/06.png"]),t=()=>{setInterval(()=>{r.value+=Math.floor(Math.random()*5)+1},330)},a={minSize:"6rem",maxSize:"10rem",minDuration:5,maxDuration:15,spawnPoints:[10,90]};e.onMounted(()=>{d(),t()});const d=()=>{n.value.forEach((o,m)=>{let s=document.createElement("img");s.src=o,s.classList.add("floating-image");let p=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],b=(Math.random()-.5)*2*10;s.style.left=`${p+b}%`,s.style.animationDuration=`${Math.random()*(a.maxDuration-a.minDuration)+a.minDuration}s`,document.querySelector(".container").appendChild(s),s.addEventListener("animationiteration",()=>{const v=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],k=(Math.random()-.5)*2*10;s.style.left=`${v+k}%`})})};return(o,m)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",Me,[e.createElementVNode("span",Ie,e.toDisplayString(r.value.toLocaleString()),1),ze,De])]))}};const Oe=c=>(e.pushScopeId("data-v-18db0d1b"),c=c(),e.popScopeId(),c),Le={class:"community-feed"},je=Oe(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),Ue={class:"grid-container"},Ae={__name:"HotPosts",async setup(c){let r,n;const t=e.ref([]),a=async()=>{const o=await u.read({skip:0,limit:7,period:"year"});console.log(o),t.value=o};[r,n]=e.withAsyncContext(()=>a()),await r,n();const d=o=>{switch(o){case 0:return"grid-item-2x2";case 1:return"grid-item-2x1";case 2:return"grid-item-1x1";case 3:case 4:return"grid-item-1x1";case 6:return"grid-item-2x1";default:return""}};return(o,m)=>(e.openBlock(),e.createElementBlock("section",Le,[je,e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,p)=>(e.openBlock(),e.createBlock(u._sfc_main$1,{blogpost:s,owner:g.state.user._id,key:p,class:e.normalizeClass(d(p))},null,8,["blogpost","owner","class"]))),128))])]))}},He=P._export_sfc(Ae,[["__scopeId","data-v-18db0d1b"]]),Re=[{path:"community",component:T,meta:{title:{en:"Community",ru:"Коммьюнити"}},children:[{path:":category?",name:"Blog",component:()=>Promise.resolve().then(()=>ce)}]},{path:"community/posts/create",name:"Create BlogPost",meta:{title:{en:"Create Post",ru:"Создать Пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)},{path:"community/posts/:url",name:"BlogPost",meta:{title:{en:"Post",ru:"Пост"}},component:()=>Promise.resolve().then(()=>ie)},{path:"community/posts/:url/edit",name:"Edit BlogPost",meta:{title:{en:"Edit Post",ru:"Редактировать пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)}];exports.CardBlogpost=u._sfc_main$1;exports.Feed=u._sfc_main;exports.FooterBlogpost=u._sfc_main$2;exports.blogpostsStore=u.blogposts;exports.reactionsStore=u.reactions;exports.Comments=x._sfc_main$1;exports.Activity=xe;exports.Blog=M;exports.BlogPost=q;exports.Community=T;exports.CreateBlogPost=S;exports.HotPosts=He;exports.JoinUs=Fe;exports.SubscribeNewsletter=Se;exports.blogpostsRoutes=Re;
@@ -1,10 +1,10 @@
1
1
  import { resolveComponent as Y, openBlock as i, createElementBlock as p, createElementVNode as o, createVNode as h, normalizeClass as B, unref as c, createCommentVNode as v, withCtx as k, Transition as G, createBlock as I, resolveDynamicComponent as Q, ref as g, onMounted as F, computed as V, createTextVNode as T, createStaticVNode as Z, TransitionGroup as H, Fragment as D, renderList as U, mergeProps as ee, watch as te, toDisplayString as N, watchEffect as se, isRef as W, withAsyncContext as ae, pushScopeId as oe, popScopeId as ne } from "vue";
2
2
  import { useRoute as z, useRouter as A } from "vue-router";
3
- import { S as le, _ as re } from "./Publics-cbb8eaaa.mjs";
4
- import { s as M, r as L, c as ie, u as q, a as R, b as ue, d as K, _ as ce } from "./Feed-13499a3a.mjs";
5
- import { e as ts, f as ss, g as as } from "./Feed-13499a3a.mjs";
3
+ import { S as le, _ as re } from "./Publics-abbe2e0c.mjs";
4
+ import { s as M, r as L, c as ie, u as q, a as R, b as ue, d as K, _ as ce } from "./Feed-8f6eb29d.mjs";
5
+ import { e as ts, f as ss, g as as } from "./Feed-8f6eb29d.mjs";
6
6
  import { s as w, _ as pe, F as de } from "./auth-cfeacd61.mjs";
7
- import { c as me, _ as ge, a as _e, b as he } from "./Image-b2131fa0.mjs";
7
+ import { c as me, _ as ge, a as _e, b as he } from "./Image-661e2fbc.mjs";
8
8
  import { _ as fe } from "./Popup-e6685f31.mjs";
9
9
  import { _ as ve, S as be, C as ye } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs";
10
10
  import { a as we } from "./organizations-8ffdf84d.mjs";
@@ -12,10 +12,10 @@ import { _ as xe } from "./EmptyState-34d85f10.mjs";
12
12
  import { _ as X } from "./_plugin-vue_export-helper-dad06003.mjs";
13
13
  import { useI18n as $e } from "vue-i18n";
14
14
  import "./globals-96ba60e4.mjs";
15
- import "./CardOrganization-c2e7e903.mjs";
15
+ import "./CardOrganization-1b0da77c.mjs";
16
16
  import "./ButtonFollow-6765c266.mjs";
17
- import "./Chips-f0b7ce36.mjs";
18
- import "./PlaceholderUserpic-14c6ea7e.mjs";
17
+ import "./Chips-4316f652.mjs";
18
+ import "./IconEdit-eacf3856.mjs";
19
19
  import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
20
20
  const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Ce = { class: "flex-v-center flex-nowrap flex t-left" }, Te = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), Se = { class: "bg-grey pd-medium radius-big mn-semi flex-nowrap flex" }, Be = { class: "" }, Ie = {
21
21
  __name: "Community",
@@ -2,6 +2,7 @@ declare const _default: import("vue").DefineComponent<{}, {
2
2
  $props: {
3
3
  readonly text?: string | undefined;
4
4
  readonly maxLen?: number | undefined;
5
+ readonly showToggleText?: boolean | undefined;
5
6
  };
6
7
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
7
8
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Text.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAiDd,CAAA;AAID,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"Text.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAkDd,CAAA;AAID,eAAe,SAAS,CAAA"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./Feed-c6b67df4.js"),e=require("vue"),V=require("./EmptyState-7658d7d6.js"),C=require("./_plugin-vue_export-helper-f246444f.js"),y=require("vue-router"),E=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js"),B=require("./Image-d01026cf.js"),$=require("./Popup-0b38b537.js"),v=require("./auth-b61483ce.js"),q=require("./UploadImage-739cab04.js"),I=require("./organizations-49a10611.js"),b=require("./globals-928eb13c.js");require("vue-i18n");require("./Chips-2a0d9bfe.js");require("./PlaceholderUserpic-20d58460.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const L={},O={width:"100%",height:"50",xmlns:"http://www.w3.org/2000/svg"},U=e.createStaticVNode('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',7),F=[U];function j(p,r){return e.openBlock(),e.createElementBlock("svg",O,F)}const z=C._export_sfc(L,[["render",j]]);const M={class:"today-events"},R={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(p){const r=p,n=e.ref([]),t=e.ref(!0),i=e.ref(0),c=e.ref(5);return e.onMounted(async()=>{const a=await g.read({skip:i.value,limit:c.value,sortOrder:"desc",category:r.category,user:r.user,owner:r.owner,organization:r.organization,period:r.period,status:r.status});n.value=a,t.value=!1}),(a,o)=>(e.openBlock(),e.createElementBlock("section",M,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,d=>(e.openBlock(),e.createBlock(z,{key:d}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&n.value.length<1?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!t.value&&n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(d,f)=>(e.openBlock(),e.createBlock(g._sfc_main$1,{onClick:_=>a.$router.push({name:"Event",params:{url:d.url}}),key:d._id,event:d,owner:p.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":f!==n.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}},A=["onClick"],H={class:"t-transp"},J={__name:"DatePicker",props:["date","locale"],setup(p,{emit:r}){const n=p,t=e.ref(null);let i;if(n.date){const u=parseInt(n.date.substring(0,2)),h=parseInt(n.date.substring(2,4))-1,s=parseInt(n.date.substring(4));i=new Date(s,h,u),console.log("Data"+i)}else i=new Date,console.log("No data"+i);i.setHours(0,0,0,0);const c=e.ref(new Date(i)),a=_(i,30);e.onMounted(()=>{if(t.value){const u=t.value.getElementsByClassName("selected")[0]||t.value.getElementsByClassName("bg-main")[0];u&&(t.value.scrollLeft=u.offsetLeft-t.value.offsetWidth/2+u.offsetWidth/2)}});function o(u){c.value=u;const h=d(u);r("update:date",h)}function d(u){return`${u.getDate().toString().padStart(2,"0")}${(u.getMonth()+1).toString().padStart(2,"0")}${u.getFullYear()}`}function f(u){return u.toLocaleDateString(n.locale?n.locale:"en",{weekday:"narrow"}).toUpperCase()}function _(u,h){const s=[];for(let l=-15;l<h-15;l++){const m=new Date(u);m.setDate(u.getDate()+l),m.setHours(0,0,0,0),s.push(m)}return s}return(u,h)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:"w-100 o-scroll flex-nowrap flex",ref_key:"scrollContainer",ref:t,style:{"scroll-snap-type":"x mandatory"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),s=>(e.openBlock(),e.createElementBlock("div",{key:s.toString(),onClick:l=>o(s),class:e.normalizeClass([{selected:c.value.toDateString()===s.toDateString()},"cursor-pointer mn-r-small mn-l-small flex-column flex-center flex"])},[e.createElementVNode("span",H,e.toDisplayString(f(s)),1),e.createElementVNode("span",{class:e.normalizeClass([{"bg-main":c.value.toDateString()===s.toDateString()},"transition-ease-in-out t-semi flex-center flex radius-big i-semi day-number"])},e.toDisplayString(s.getDate()),3)],10,A))),128))],512)]))}},G={class:"pd-thin min-h-100vh"},W=e.createElementVNode("div",{class:"mn-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),Y={class:""},D={__name:"layoutEvents",setup(p){const r=y.useRoute(),n=y.useRouter(),i=c(new Date);function c(a){return`${a.getDate().toString().padStart(2,"0")}${(a.getMonth()+1).toString().padStart(2,"0")}${a.getFullYear()}`}if(r.query){const a=r.query,o={tags:a.tags?a.tags.split(","):null,date:a.date?a.date:i};g.state.filter=o}else{const a={date:i};g.state.filter=a}return e.watch(()=>g.state.filter,(a,o)=>{const d={...r.query};Object.keys(o).forEach(_=>{d[_]&&delete d[_]});const f=Object.fromEntries(Object.entries(a).filter(([_,u])=>Array.isArray(u)&&u.length>0||typeof u=="string"&&u).map(([_,u])=>[_,Array.isArray(u)?u.join(","):u]));Object.assign(d,f),n.push({query:d})},{deep:!0}),(a,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",G,[e.createVNode(J,{date:g.state.filter.date,"onUpdate:date":o[0]||(o[0]=f=>g.state.filter.date=f),locale:a.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),W,e.createElementVNode("section",Y,[e.createVNode(d,null,{default:e.withCtx(({Component:f,route:_})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f),{ref:"page",key:_.query}))]),_:2},1024)]),_:1})])])}}},Q={key:0,class:"pd-thin"},K={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},X=e.createElementVNode("h4",null,"Upload Event Cover",-1),Z=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),ee=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),te={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},re={key:1,class:"pd-thin pos-fixed pos-l-0 pos-b-0 w-100"},ae={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},ne={class:"w-m-66r t-left pd-big bg-white radius-big"},oe=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),se=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),le={key:0,class:"mn-thin"},ie={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},S={__name:"EditEvent",setup(p){const r=y.useRoute(),n=y.useRouter();let t=e.ref(null),i=e.ref(null);const c=e.ref([]),a=e.ref(null);e.onMounted(async()=>{if(r.params.url){const l=await g.read({user:v.state.user._id,url:r.params.url});t.value=l.pop(),t.value.date.start=t.value.date.start.slice(0,16),t.value.date.end=t.value.date.end.slice(0,16)}else g.clean(),t.value=g.state.current;t.value.owner||(t.value.owner={target:v.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:v.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(a.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const s=await I.actions.read({user:v.state.user._id,postable:v.state.user._id,limit:100});i.value=s.map(l=>({name:l.profile.name,_id:l._id,photo:l.profile.photo}))});const o=e.ref(!1);function d(){o.value=!0}function f(){o.value=!1}function _(){c.value.length>0&&c.value.map(s=>s.text),t.value.status="draft",r.params.url?g.update(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):g.create(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function u(){confirm("Are you sure you want to delete this event?")&&(void 0)(t.value._id).then(s=>{n.push({name:"Drafts"})}).catch(s=>{console.error(s)})}function h(){a.value&&(t.value.owner={target:a.value._id,type:"organization"}),a.value||(t.value.creator.hidden=!1),a.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?g.update(t.value).then(s=>{n.push({name:"Blogevent",params:{url:s.url}})}).catch(s=>{console.log(s)}):g.create(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}return(s,l)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",Q,[e.createElementVNode("div",K,[e.createVNode(q._sfc_main,{photo:e.unref(t).cover,"onUpdate:photo":l[0]||(l[0]=m=>e.unref(t).cover=m),uploadPath:"users/"+v.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),X]),e.createVNode(v.Field,{field:e.unref(t).name,"onUpdate:field":l[1]||(l[1]=m=>e.unref(t).name=m),placeholder:"Event name",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(v.Field,{field:e.unref(t).description,"onUpdate:field":l[2]||(l[2]=m=>e.unref(t).description=m),type:"textfield",placeholder:"Enter short description",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),Z,e.createTextVNode(" "+e.toDisplayString(e.unref(t).date.start)+" ",1),e.createVNode(v.Field,{field:e.unref(t).date.start,"onUpdate:field":l[3]||(l[3]=m=>e.unref(t).date.start=m),label:"Start",type:"datetime-local",placeholder:"Not specified",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(v.Field,{field:e.unref(t).date.end,"onUpdate:field":l[4]||(l[4]=m=>e.unref(t).date.end=m),label:"End",type:"datetime-local",placeholder:"Not specified",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),ee,e.unref(t)?(e.openBlock(),e.createElementBlock("section",te,[e.createVNode(B._sfc_main,{content:e.unref(t).content,onUpdate:l[5]||(l[5]=m=>e.unref(t).content=m)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",re,[e.createElementVNode("div",ae,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:l[6]||(l[6]=m=>u()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:l[7]||(l[7]=m=>_()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:l[8]||(l[8]=m=>d()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode($._sfc_main,{title:"Добавить участника",onClosePopup:f,isPopupOpen:o.value},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[oe,e.createVNode(E._sfc_main,{onTagsChanged:l[9]||(l[9]=m=>e.unref(t).tags=m),tags:e.unref(t).tags},null,8,["tags"]),se,e.createVNode(E.SelectMulti,{modelValue:a.value,"onUpdate:modelValue":l[10]||(l[10]=m=>a.value=m),options:e.unref(i),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),a.value?(e.openBlock(),e.createElementBlock("h5",le,"Options:")):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(E.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":l[11]||(l[11]=m=>e.unref(t).creator.hidden=m),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(v._sfc_main,{submit:h,callback:s.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}},N=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),w=v.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),k=e.reactive({tickets:[],error:null}),x={async read({user:p,type:r,target:n,role:t}){try{const i=await w.get("/api/tickets",{params:{user:p,type:r,target:n,role:t}});return k.error=null,k.tickets=i.data,Promise.resolve(i.data)}catch(i){return b.setError(i),Promise.reject(i)}},async create(p){try{const r=await w.post("/api/tickets/create",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}},async update(p){try{const r=await w.post("/api/tickets/update",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}},async delete(p){try{const r=await w.post("/api/tickets/delete",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}}},ce={handleTicketUpdate(p,r,n){let t;if(Array.isArray(p)?t=p.find(i=>i._id===r.target):typeof p=="object"&&p._id===r.target&&(t=p),t)if(t.hasTicket=n,n)t.tickets.push(r),t.numberOfTickets+=1;else{const i=t.tickets.findIndex(c=>c._id===r._id);i!==-1&&(t.tickets.splice(i,1),t.numberOfTickets-=1)}}};e.watch(k,p=>{});const ue={__name:"ButtonJoin",props:{type:{type:String,required:!0},userId:{type:String,required:!0},hasTicket:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateTicket"],setup(p,{emit:r}){const n=p,t=async()=>{n.hasTicket?await c(n.targetId):await i(n.targetId)};async function i(a){try{const o={type:n.type,target:a,user:n.userId},d=await x.create(o);r("updateTicket",{ticket:d,hasTicket:!0,targetId:n.targetId})}catch(o){throw console.log(o),o}}async function c(a){const o={type:n.type,target:a,user:n.userId};try{const d=await x.delete(o);r("updateTicket",{ticket:d,hasTicket:!1,targetId:n.targetId})}catch(d){throw console.log(d),d}}return(a,o)=>(e.openBlock(),e.createBlock(v._sfc_main,{submit:t,class:"bg-main button-small button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.hasTicket?"Leave":"Join"),1)]),_:1}))}},de=C._export_sfc(ue,[["__scopeId","data-v-d5c351bb"]]),pe={class:"pd-thin"},T={__name:"Event",setup(p){const r=y.useRoute(),n=({ticket:o,hasTicket:d,targetId:f})=>{ce.handleTicketUpdate(c.value,o,d,f)},t={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:B._sfc_main$2};function i(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}const c=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const o=await g.read({user:v.state.user._id,url:r.params.url});c.value=o[0],a.value=!1}),(o,d)=>(e.openBlock(),e.createElementBlock("section",pe,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,f=>e.createVNode(g.SkeletonEvent,{key:f})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!c.value?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!a.value&&c.value?(e.openBlock(),e.createBlock(g._sfc_main$1,{key:0,onClick:d[0]||(d[0]=f=>o.$router.push({name:"Event",params:{url:c.value.url}})),event:c.value,owner:c.value.owner,user:v.state.user._id,type:"normal",class:"mn-medium bg-grey radius-big"},{default:e.withCtx(()=>[v.state.user._id?(e.openBlock(),e.createBlock(de,{key:0,type:"event",hasTicket:c.value.hasTicket,targetId:c.value._id,userId:v.state.user._id,class:"mn-small w-100 pd-medium mn-auto",onUpdateTicket:n},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[c.value&&c.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value.content,(f,_)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t[f.type]),e.mergeProps({key:_,index:_,component:f,prop:f,class:f.class,content:"content"},i(f),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&c.value?(e.openBlock(),e.createBlock(B._sfc_main$1,{key:1,type:"event",target:c.value._id,owner:v.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},me=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),P={__name:"Events",setup(p){const r=y.useRoute();return y.useRouter(),(n,t)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(g._sfc_main,{category:e.unref(r).params.category,user:v.state.user._id,period:e.unref(r).query.period,selectedDate:g.state.filter.date},null,8,["category","user","period","selectedDate"])]))}},fe=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),ge=[{path:"events",component:D,meta:{title:{en:"Events",ru:"События"}},children:[{path:":category?",name:"Events",component:()=>Promise.resolve().then(()=>fe)}]},{path:"events/create",name:"Create Event",meta:{title:{en:"Create Event",ru:"Создать Событие"},authorize:[]},component:()=>Promise.resolve().then(()=>N)},{path:"events/:url",name:"Event",meta:{title:{en:"Event",ru:"Событие"}},component:()=>Promise.resolve().then(()=>me)},{path:"events/:url/edit",name:"Edit Event",meta:{authorize:[]},component:()=>Promise.resolve().then(()=>N)}];exports.CardEvent=g._sfc_main$1;exports.Feed=g._sfc_main;exports.eventsStore=g.events;exports.EditEvent=S;exports.EventPage=T;exports.EventsLayout=D;exports.EventsPage=P;exports.List=R;exports.eventsRoutes=ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./Feed-c8dc4359.js"),e=require("vue"),V=require("./EmptyState-7658d7d6.js"),C=require("./_plugin-vue_export-helper-f246444f.js"),y=require("vue-router"),E=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js"),x=require("./Image-f66dbbf4.js"),$=require("./Popup-0b38b537.js"),v=require("./auth-b61483ce.js"),q=require("./UploadImage-39d42048.js"),I=require("./organizations-49a10611.js"),b=require("./globals-928eb13c.js");require("vue-i18n");require("./Chips-92ccc11f.js");require("./IconEdit-4cfe2115.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const L={},O={width:"100%",height:"50",xmlns:"http://www.w3.org/2000/svg"},U=e.createStaticVNode('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',7),F=[U];function j(p,r){return e.openBlock(),e.createElementBlock("svg",O,F)}const z=C._export_sfc(L,[["render",j]]);const M={class:"today-events"},R={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(p){const r=p,n=e.ref([]),t=e.ref(!0),i=e.ref(0),c=e.ref(5);return e.onMounted(async()=>{const a=await g.read({skip:i.value,limit:c.value,sortOrder:"desc",category:r.category,user:r.user,owner:r.owner,organization:r.organization,period:r.period,status:r.status});n.value=a,t.value=!1}),(a,o)=>(e.openBlock(),e.createElementBlock("section",M,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,d=>(e.openBlock(),e.createBlock(z,{key:d}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&n.value.length<1?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!t.value&&n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(d,f)=>(e.openBlock(),e.createBlock(g._sfc_main$1,{onClick:_=>a.$router.push({name:"Event",params:{url:d.url}}),key:d._id,event:d,owner:p.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":f!==n.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}},A=["onClick"],H={class:"t-transp"},J={__name:"DatePicker",props:["date","locale"],setup(p,{emit:r}){const n=p,t=e.ref(null);let i;if(n.date){const u=parseInt(n.date.substring(0,2)),h=parseInt(n.date.substring(2,4))-1,s=parseInt(n.date.substring(4));i=new Date(s,h,u),console.log("Data"+i)}else i=new Date,console.log("No data"+i);i.setHours(0,0,0,0);const c=e.ref(new Date(i)),a=_(i,30);e.onMounted(()=>{if(t.value){const u=t.value.getElementsByClassName("selected")[0]||t.value.getElementsByClassName("bg-main")[0];u&&(t.value.scrollLeft=u.offsetLeft-t.value.offsetWidth/2+u.offsetWidth/2)}});function o(u){c.value=u;const h=d(u);r("update:date",h)}function d(u){return`${u.getDate().toString().padStart(2,"0")}${(u.getMonth()+1).toString().padStart(2,"0")}${u.getFullYear()}`}function f(u){return u.toLocaleDateString(n.locale?n.locale:"en",{weekday:"narrow"}).toUpperCase()}function _(u,h){const s=[];for(let l=-15;l<h-15;l++){const m=new Date(u);m.setDate(u.getDate()+l),m.setHours(0,0,0,0),s.push(m)}return s}return(u,h)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:"w-100 o-scroll flex-nowrap flex",ref_key:"scrollContainer",ref:t,style:{"scroll-snap-type":"x mandatory"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),s=>(e.openBlock(),e.createElementBlock("div",{key:s.toString(),onClick:l=>o(s),class:e.normalizeClass([{selected:c.value.toDateString()===s.toDateString()},"cursor-pointer mn-r-small mn-l-small flex-column flex-center flex"])},[e.createElementVNode("span",H,e.toDisplayString(f(s)),1),e.createElementVNode("span",{class:e.normalizeClass([{"bg-main":c.value.toDateString()===s.toDateString()},"transition-ease-in-out t-semi flex-center flex radius-big i-semi day-number"])},e.toDisplayString(s.getDate()),3)],10,A))),128))],512)]))}},G={class:"pd-thin min-h-100vh"},W=e.createElementVNode("div",{class:"mn-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),Y={class:""},D={__name:"layoutEvents",setup(p){const r=y.useRoute(),n=y.useRouter(),i=c(new Date);function c(a){return`${a.getDate().toString().padStart(2,"0")}${(a.getMonth()+1).toString().padStart(2,"0")}${a.getFullYear()}`}if(r.query){const a=r.query,o={tags:a.tags?a.tags.split(","):null,date:a.date?a.date:i};g.state.filter=o}else{const a={date:i};g.state.filter=a}return e.watch(()=>g.state.filter,(a,o)=>{const d={...r.query};Object.keys(o).forEach(_=>{d[_]&&delete d[_]});const f=Object.fromEntries(Object.entries(a).filter(([_,u])=>Array.isArray(u)&&u.length>0||typeof u=="string"&&u).map(([_,u])=>[_,Array.isArray(u)?u.join(","):u]));Object.assign(d,f),n.push({query:d})},{deep:!0}),(a,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",G,[e.createVNode(J,{date:g.state.filter.date,"onUpdate:date":o[0]||(o[0]=f=>g.state.filter.date=f),locale:a.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),W,e.createElementVNode("section",Y,[e.createVNode(d,null,{default:e.withCtx(({Component:f,route:_})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f),{ref:"page",key:_.query}))]),_:2},1024)]),_:1})])])}}},Q={key:0,class:"pd-thin"},K={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},X=e.createElementVNode("h4",null,"Upload Event Cover",-1),Z=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),ee=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),te={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},re={key:1,class:"pd-thin pos-fixed pos-l-0 pos-b-0 w-100"},ae={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},ne={class:"w-m-66r t-left pd-big bg-white radius-big"},oe=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),se=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),le={key:0,class:"mn-thin"},ie={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},S={__name:"EditEvent",setup(p){const r=y.useRoute(),n=y.useRouter();let t=e.ref(null),i=e.ref(null);const c=e.ref([]),a=e.ref(null);e.onMounted(async()=>{if(r.params.url){const l=await g.read({user:v.state.user._id,url:r.params.url});t.value=l.pop(),t.value.date.start=t.value.date.start.slice(0,16),t.value.date.end=t.value.date.end.slice(0,16)}else g.clean(),t.value=g.state.current;t.value.owner||(t.value.owner={target:v.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:v.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(a.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const s=await I.actions.read({user:v.state.user._id,postable:v.state.user._id,limit:100});i.value=s.map(l=>({name:l.profile.name,_id:l._id,photo:l.profile.photo}))});const o=e.ref(!1);function d(){o.value=!0}function f(){o.value=!1}function _(){c.value.length>0&&c.value.map(s=>s.text),t.value.status="draft",r.params.url?g.update(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):g.create(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function u(){confirm("Are you sure you want to delete this event?")&&(void 0)(t.value._id).then(s=>{n.push({name:"Drafts"})}).catch(s=>{console.error(s)})}function h(){a.value&&(t.value.owner={target:a.value._id,type:"organization"}),a.value||(t.value.creator.hidden=!1),a.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?g.update(t.value).then(s=>{n.push({name:"Blogevent",params:{url:s.url}})}).catch(s=>{console.log(s)}):g.create(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}return(s,l)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",Q,[e.createElementVNode("div",K,[e.createVNode(q._sfc_main,{photo:e.unref(t).cover,"onUpdate:photo":l[0]||(l[0]=m=>e.unref(t).cover=m),uploadPath:"users/"+v.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),X]),e.createVNode(v.Field,{field:e.unref(t).name,"onUpdate:field":l[1]||(l[1]=m=>e.unref(t).name=m),placeholder:"Event name",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(v.Field,{field:e.unref(t).description,"onUpdate:field":l[2]||(l[2]=m=>e.unref(t).description=m),type:"textfield",placeholder:"Enter short description",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),Z,e.createTextVNode(" "+e.toDisplayString(e.unref(t).date.start)+" ",1),e.createVNode(v.Field,{field:e.unref(t).date.start,"onUpdate:field":l[3]||(l[3]=m=>e.unref(t).date.start=m),label:"Start",type:"datetime-local",placeholder:"Not specified",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(v.Field,{field:e.unref(t).date.end,"onUpdate:field":l[4]||(l[4]=m=>e.unref(t).date.end=m),label:"End",type:"datetime-local",placeholder:"Not specified",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),ee,e.unref(t)?(e.openBlock(),e.createElementBlock("section",te,[e.createVNode(x._sfc_main,{content:e.unref(t).content,onUpdate:l[5]||(l[5]=m=>e.unref(t).content=m)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",re,[e.createElementVNode("div",ae,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:l[6]||(l[6]=m=>u()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:l[7]||(l[7]=m=>_()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:l[8]||(l[8]=m=>d()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode($._sfc_main,{title:"Добавить участника",onClosePopup:f,isPopupOpen:o.value},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[oe,e.createVNode(E._sfc_main,{onTagsChanged:l[9]||(l[9]=m=>e.unref(t).tags=m),tags:e.unref(t).tags},null,8,["tags"]),se,e.createVNode(E.SelectMulti,{modelValue:a.value,"onUpdate:modelValue":l[10]||(l[10]=m=>a.value=m),options:e.unref(i),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),a.value?(e.openBlock(),e.createElementBlock("h5",le,"Options:")):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(E.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":l[11]||(l[11]=m=>e.unref(t).creator.hidden=m),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(v._sfc_main,{submit:h,callback:s.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}},B=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),w=v.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),k=e.reactive({tickets:[],error:null}),N={async read({user:p,type:r,target:n,role:t}){try{const i=await w.get("/api/tickets",{params:{user:p,type:r,target:n,role:t}});return k.error=null,k.tickets=i.data,Promise.resolve(i.data)}catch(i){return b.setError(i),Promise.reject(i)}},async create(p){try{const r=await w.post("/api/tickets/create",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}},async update(p){try{const r=await w.post("/api/tickets/update",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}},async delete(p){try{const r=await w.post("/api/tickets/delete",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}}},ce={handleTicketUpdate(p,r,n){let t;if(Array.isArray(p)?t=p.find(i=>i._id===r.target):typeof p=="object"&&p._id===r.target&&(t=p),t)if(t.hasTicket=n,n)t.tickets.push(r),t.numberOfTickets+=1;else{const i=t.tickets.findIndex(c=>c._id===r._id);i!==-1&&(t.tickets.splice(i,1),t.numberOfTickets-=1)}}};e.watch(k,p=>{});const ue={__name:"ButtonJoin",props:{type:{type:String,required:!0},userId:{type:String,required:!0},hasTicket:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateTicket"],setup(p,{emit:r}){const n=p,t=async()=>{n.hasTicket?await c(n.targetId):await i(n.targetId)};async function i(a){try{const o={type:n.type,target:a,user:n.userId},d=await N.create(o);r("updateTicket",{ticket:d,hasTicket:!0,targetId:n.targetId})}catch(o){throw console.log(o),o}}async function c(a){const o={type:n.type,target:a,user:n.userId};try{const d=await N.delete(o);r("updateTicket",{ticket:d,hasTicket:!1,targetId:n.targetId})}catch(d){throw console.log(d),d}}return(a,o)=>(e.openBlock(),e.createBlock(v._sfc_main,{submit:t,class:"bg-main button-small radius-extra button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.hasTicket?"Leave":"Join"),1)]),_:1}))}},de=C._export_sfc(ue,[["__scopeId","data-v-872ff798"]]),pe={class:"pd-thin"},T={__name:"Event",setup(p){const r=y.useRoute(),n=({ticket:o,hasTicket:d,targetId:f})=>{ce.handleTicketUpdate(c.value,o,d,f)},t={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:x._sfc_main$2};function i(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}const c=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const o=await g.read({user:v.state.user._id,url:r.params.url});c.value=o[0],a.value=!1}),(o,d)=>(e.openBlock(),e.createElementBlock("section",pe,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,f=>e.createVNode(g.SkeletonEvent,{key:f})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!c.value?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!a.value&&c.value?(e.openBlock(),e.createBlock(g._sfc_main$1,{key:0,onClick:d[0]||(d[0]=f=>o.$router.push({name:"Event",params:{url:c.value.url}})),event:c.value,owner:c.value.owner,user:v.state.user._id,type:"normal",class:"mn-medium bg-grey radius-big"},{default:e.withCtx(()=>[v.state.user._id?(e.openBlock(),e.createBlock(de,{key:0,type:"event",hasTicket:c.value.hasTicket,targetId:c.value._id,userId:v.state.user._id,class:"mn-small w-100 pd-medium mn-auto",onUpdateTicket:n},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[c.value&&c.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value.content,(f,_)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t[f.type]),e.mergeProps({key:_,index:_,component:f,prop:f,class:f.class,content:"content"},i(f),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&c.value?(e.openBlock(),e.createBlock(x._sfc_main$1,{key:1,type:"event",target:c.value._id,owner:v.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},me=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),P={__name:"Events",setup(p){const r=y.useRoute();return y.useRouter(),(n,t)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(g._sfc_main,{category:e.unref(r).params.category,user:v.state.user._id,period:e.unref(r).query.period,selectedDate:g.state.filter.date},null,8,["category","user","period","selectedDate"])]))}},fe=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),ge=[{path:"events",component:D,meta:{title:{en:"Events",ru:"События"}},children:[{path:":category?",name:"Events",component:()=>Promise.resolve().then(()=>fe)}]},{path:"events/create",name:"Create Event",meta:{title:{en:"Create Event",ru:"Создать Событие"},authorize:[]},component:()=>Promise.resolve().then(()=>B)},{path:"events/:url",name:"Event",meta:{title:{en:"Event",ru:"Событие"}},component:()=>Promise.resolve().then(()=>me)},{path:"events/:url/edit",name:"Edit Event",meta:{authorize:[]},component:()=>Promise.resolve().then(()=>B)}];exports.CardEvent=g._sfc_main$1;exports.Feed=g._sfc_main;exports.eventsStore=g.events;exports.EditEvent=S;exports.EventPage=T;exports.EventsLayout=D;exports.EventsPage=P;exports.List=R;exports.eventsRoutes=ge;
@@ -1,19 +1,19 @@
1
- import { r as F, a as J, s as D, c as X, u as V, b as A, S as Z, _ as ee } from "./Feed-345d8513.mjs";
2
- import { e as _t } from "./Feed-345d8513.mjs";
1
+ import { r as F, a as J, s as D, c as X, u as V, b as A, S as Z, _ as ee } from "./Feed-361761f5.mjs";
2
+ import { e as _t } from "./Feed-361761f5.mjs";
3
3
  import { openBlock as d, createElementBlock as _, createStaticVNode as te, ref as w, onMounted as j, createVNode as v, TransitionGroup as U, withCtx as x, Fragment as P, renderList as T, createBlock as $, createCommentVNode as b, Transition as q, normalizeClass as N, createElementVNode as h, unref as m, toDisplayString as L, watch as W, resolveComponent as ae, resolveDynamicComponent as Y, createTextVNode as B, reactive as re, mergeProps as ne } from "vue";
4
4
  import { _ as G } from "./EmptyState-34d85f10.mjs";
5
5
  import { _ as Q } from "./_plugin-vue_export-helper-dad06003.mjs";
6
6
  import { useRoute as z, useRouter as M } from "vue-router";
7
7
  import { _ as se, S as oe, C as le } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs";
8
- import { _ as ie, a as ue, b as ce } from "./Image-b2131fa0.mjs";
8
+ import { _ as ie, a as ue, b as ce } from "./Image-661e2fbc.mjs";
9
9
  import { _ as de } from "./Popup-e6685f31.mjs";
10
10
  import { s as k, F as C, _ as K, a as pe } from "./auth-cfeacd61.mjs";
11
- import { _ as me } from "./UploadImage-8835be69.mjs";
11
+ import { _ as me } from "./UploadImage-1b4c2a5e.mjs";
12
12
  import { a as fe } from "./organizations-8ffdf84d.mjs";
13
13
  import { s as I } from "./globals-96ba60e4.mjs";
14
14
  import "vue-i18n";
15
- import "./Chips-f0b7ce36.mjs";
16
- import "./PlaceholderUserpic-14c6ea7e.mjs";
15
+ import "./Chips-4316f652.mjs";
16
+ import "./IconEdit-eacf3856.mjs";
17
17
  import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
18
18
  const ge = {}, ve = {
19
19
  width: "100%",
@@ -549,7 +549,7 @@ const He = {
549
549
  }
550
550
  return (a, n) => (d(), $(K, {
551
551
  submit: e,
552
- class: "bg-main button-small button"
552
+ class: "bg-main button-small radius-extra button"
553
553
  }, {
554
554
  default: x(() => [
555
555
  B(L(p.hasTicket ? "Leave" : "Join"), 1)
@@ -557,7 +557,7 @@ const He = {
557
557
  _: 1
558
558
  }));
559
559
  }
560
- }, Re = /* @__PURE__ */ Q(He, [["__scopeId", "data-v-d5c351bb"]]), Je = { class: "pd-thin" }, We = {
560
+ }, Re = /* @__PURE__ */ Q(He, [["__scopeId", "data-v-872ff798"]]), Je = { class: "pd-thin" }, We = {
561
561
  __name: "Event",
562
562
  setup(p) {
563
563
  const t = z(), r = ({ ticket: n, hasTicket: c, targetId: g }) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("vue-i18n"),s=require("./_plugin-vue_export-helper-f246444f.js"),a={},l={width:"205",height:"59",viewBox:"0 0 205 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n=t.createStaticVNode('<path d="M203.096 52.1958C203.096 55.34 200.496 57.8869 197.281 57.8869H6.9581C3.74381 57.8869 1.13477 55.34 1.13477 52.1958V6.81174C1.13477 3.66904 3.74381 1.11328 6.9581 1.11328H197.279C200.496 1.11328 203.095 3.66904 203.095 6.81174L203.096 52.1958Z" fill="black"></path><path d="M196.667 1.18185C200.169 1.18185 203.019 3.96038 203.019 7.375V51.625C203.019 55.0396 200.169 57.8182 196.667 57.8182H7.5641C4.06192 57.8182 1.21215 55.0396 1.21215 51.625V7.375C1.21215 3.96038 4.06192 1.18185 7.5641 1.18185H196.667ZM196.667 5.4802e-06H7.5641C3.40574 5.4802e-06 0 3.3206 0 7.375V51.625C0 55.6794 3.40574 59 7.5641 59H196.667C200.825 59 204.231 55.6794 204.231 51.625V7.375C204.231 3.3206 200.825 5.4802e-06 196.667 5.4802e-06Z" fill="#A6A6A6"></path><path d="M45.578 29.1812C45.5341 24.4273 49.5703 22.1145 49.7549 22.0068C47.469 18.7574 43.926 18.3134 42.6809 18.278C39.7052 17.9727 36.8187 20.0141 35.3029 20.0141C33.7568 20.0141 31.4225 18.3075 28.9067 18.3577C25.6692 18.4064 22.6406 20.2339 20.9795 23.0718C17.5515 28.8582 20.1081 37.3616 23.3925 42.0388C25.0354 44.3295 26.9551 46.8871 29.4679 46.7972C31.9263 46.6983 32.8446 45.2691 35.8112 45.2691C38.7506 45.2691 39.6129 46.7972 42.1756 46.7396C44.814 46.6983 46.4751 44.4386 48.0605 42.1273C49.9591 39.5018 50.7216 36.9161 50.7518 36.7834C50.6898 36.7627 45.6279 34.8792 45.578 29.1812Z" fill="white"></path><path d="M40.7369 15.2012C42.0591 13.589 42.9638 11.3957 42.7127 9.16992C40.799 9.25252 38.4057 10.4605 37.0275 12.0373C35.8082 13.4268 34.7189 15.7042 35.0003 17.8459C37.15 18.0022 39.3572 16.7883 40.7369 15.2012Z" fill="white"></path><path d="M81.1547 46.4691H77.7191L75.8372 40.7034H69.2957L67.503 46.4691H64.1582L70.6391 26.8398H74.642L81.1547 46.4691ZM75.2699 38.2844L73.5679 33.1587C73.3879 32.6351 73.0506 31.402 72.5528 29.4609H72.4923C72.2941 30.2958 71.9749 31.5289 71.5362 33.1587L69.8646 38.2844H75.2699V38.2844Z" fill="white"></path><path d="M97.8218 39.218C97.8218 41.6252 97.1546 43.5279 95.8203 44.9248C94.6252 46.1682 93.1411 46.7892 91.3696 46.7892C89.4574 46.7892 88.0837 46.1195 87.2472 44.7802H87.1866V52.2363H83.9613V36.9745C83.9613 35.4612 83.9205 33.908 83.8418 32.315H86.6783L86.8584 34.5585H86.9189C87.9945 32.8681 89.6268 32.0244 91.8174 32.0244C93.5299 32.0244 94.9595 32.6837 96.1032 34.0039C97.2499 35.3255 97.8218 37.063 97.8218 39.218ZM94.5359 39.333C94.5359 37.9554 94.2182 36.8196 93.5798 35.9258C92.8824 34.9936 91.946 34.5275 90.772 34.5275C89.9763 34.5275 89.2532 34.7871 88.6072 35.2989C87.9597 35.8152 87.5361 36.4892 87.3379 37.3241C87.2381 37.7135 87.1882 38.0321 87.1882 38.2828V40.6428C87.1882 41.6724 87.5119 42.5412 88.1594 43.2506C88.8069 43.9601 89.648 44.3141 90.6828 44.3141C91.8976 44.3141 92.8431 43.8569 93.5193 42.9453C94.1971 42.0323 94.5359 40.8287 94.5359 39.333Z" fill="white"></path><path d="M114.518 39.218C114.518 41.6252 113.85 43.5279 112.515 44.9248C111.321 46.1682 109.837 46.7892 108.065 46.7892C106.153 46.7892 104.779 46.1195 103.944 44.7802H103.884V52.2363H100.659V36.9745C100.659 35.4612 100.618 33.908 100.539 32.315H103.376L103.556 34.5585H103.616C104.69 32.8681 106.323 32.0244 108.515 32.0244C110.226 32.0244 111.655 32.6837 112.802 34.0039C113.944 35.3255 114.518 37.063 114.518 39.218ZM111.232 39.333C111.232 37.9554 110.912 36.8196 110.274 35.9258C109.577 34.9936 108.643 34.5275 107.468 34.5275C106.671 34.5275 105.949 34.7871 105.301 35.2989C104.654 35.8152 104.232 36.4892 104.034 37.3241C103.935 37.7135 103.884 38.0321 103.884 38.2828V40.6428C103.884 41.6724 104.208 42.5412 104.852 43.2506C105.5 43.9586 106.341 44.3141 107.379 44.3141C108.593 44.3141 109.539 43.8569 110.215 42.9453C110.893 42.0323 111.232 40.8287 111.232 39.333Z" fill="white"></path><path d="M133.187 40.964C133.187 42.6337 132.593 43.9922 131.399 45.0409C130.087 46.187 128.261 46.7593 125.915 46.7593C123.749 46.7593 122.012 46.3522 120.697 45.5365L121.445 42.9154C122.861 43.7503 124.414 44.1692 126.107 44.1692C127.322 44.1692 128.267 43.9007 128.947 43.3668C129.623 42.8328 129.96 42.116 129.96 41.2221C129.96 40.4256 129.682 39.7545 129.124 39.2102C128.568 38.6659 127.641 38.16 126.346 37.6924C122.821 36.4107 121.06 34.533 121.06 32.0638C121.06 30.4502 121.678 29.1271 122.914 28.0976C124.145 27.0665 125.788 26.5518 127.842 26.5518C129.674 26.5518 131.196 26.863 132.411 27.484L131.605 30.0475C130.47 29.4457 129.187 29.1448 127.752 29.1448C126.617 29.1448 125.73 29.4177 125.095 29.9605C124.558 30.4458 124.289 31.0372 124.289 31.7379C124.289 32.5137 124.596 33.1553 125.213 33.6598C125.75 34.1259 126.726 34.6303 128.142 35.1746C129.874 35.8546 131.146 36.6496 131.965 37.5612C132.78 38.4698 133.187 39.607 133.187 40.964Z" fill="white"></path><path d="M143.851 34.6748H140.296V41.5468C140.296 43.2947 140.922 44.1679 142.178 44.1679C142.754 44.1679 143.232 44.1192 143.61 44.0219L143.699 46.4099C143.064 46.6415 142.227 46.758 141.191 46.758C139.917 46.758 138.922 46.3789 138.203 45.6223C137.488 44.8641 137.128 43.5927 137.128 41.8064V34.6719H135.01V32.3119H137.128V29.7203L140.296 28.7881V32.3119H143.851V34.6748Z" fill="white"></path><path d="M159.891 39.275C159.891 41.4506 159.252 43.2369 157.979 44.6337C156.643 46.0718 154.87 46.7887 152.66 46.7887C150.53 46.7887 148.834 46.0998 147.569 44.7222C146.304 43.3445 145.672 41.6055 145.672 39.5095C145.672 37.3162 146.322 35.5197 147.628 34.1228C148.93 32.7245 150.688 32.0254 152.899 32.0254C155.029 32.0254 156.743 32.7142 158.036 34.0933C159.274 35.4312 159.891 37.1584 159.891 39.275ZM156.545 39.3768C156.545 38.0714 156.259 36.9519 155.679 36.0182C155.003 34.8884 154.036 34.3249 152.784 34.3249C151.487 34.3249 150.502 34.8898 149.826 36.0182C149.247 36.9534 148.961 38.0906 148.961 39.4358C148.961 40.7412 149.247 41.8607 149.826 42.7929C150.523 43.9227 151.498 44.4862 152.755 44.4862C153.986 44.4862 154.953 43.9109 155.65 42.7634C156.245 41.812 156.545 40.6807 156.545 39.3768Z" fill="white"></path><path d="M170.374 35.0806C170.055 35.0231 169.715 34.9936 169.358 34.9936C168.223 34.9936 167.346 35.411 166.728 36.2473C166.191 36.9848 165.922 37.917 165.922 39.0425V46.4691H162.698L162.728 36.7724C162.728 35.1411 162.688 33.6558 162.607 32.3165H165.417L165.535 35.0246H165.624C165.964 34.0938 166.501 33.3445 167.237 32.7826C167.955 32.2766 168.731 32.0244 169.568 32.0244C169.866 32.0244 170.135 32.0451 170.374 32.0819V35.0806Z" fill="white"></path><path d="M184.8 38.7216C184.8 39.285 184.762 39.76 184.682 40.1479H175.006C175.044 41.5462 175.511 42.6156 176.41 43.3531C177.225 44.0124 178.28 44.3428 179.574 44.3428C181.007 44.3428 182.314 44.1201 183.49 43.6732L183.995 45.8562C182.621 46.4403 181 46.7308 179.128 46.7308C176.877 46.7308 175.11 46.0848 173.824 44.7942C172.541 43.5035 171.898 41.7704 171.898 39.5963C171.898 37.4619 172.496 35.6846 173.693 34.2671C174.945 32.7537 176.638 31.9971 178.768 31.9971C180.86 31.9971 182.444 32.7537 183.52 34.2671C184.372 35.4692 184.8 36.956 184.8 38.7216ZM181.724 37.9059C181.745 36.9737 181.535 36.1684 181.098 35.4884C180.54 34.6137 179.682 34.1771 178.528 34.1771C177.473 34.1771 176.615 34.6034 175.96 35.4589C175.423 36.1389 175.104 36.9545 175.006 37.9044H181.724V37.9059Z" fill="white"></path><path d="M74.2041 14.7631C74.2041 16.4992 73.6701 17.806 72.6036 18.6836C71.6157 19.4934 70.2118 19.899 68.3934 19.899C67.4917 19.899 66.7202 19.8607 66.0742 19.784V10.2983C66.9169 10.1655 67.8246 10.0977 68.8049 10.0977C70.537 10.0977 71.8426 10.4649 72.7231 11.1995C73.7094 12.0299 74.2041 13.2173 74.2041 14.7631ZM72.5325 14.8059C72.5325 13.6804 72.2269 12.8176 71.6157 12.2158C71.0045 11.6154 70.1119 11.3145 68.9365 11.3145C68.4372 11.3145 68.0121 11.347 67.6597 11.4148V18.6261C67.8548 18.6556 68.2118 18.6689 68.7307 18.6689C69.944 18.6689 70.8805 18.34 71.54 17.6821C72.1996 17.0243 72.5325 16.0655 72.5325 14.8059Z" fill="white"></path><path d="M83.0687 16.2794C83.0687 17.3488 82.7555 18.2249 82.1292 18.9123C81.4727 19.6188 80.6028 19.9713 79.5166 19.9713C78.4697 19.9713 77.6361 19.6335 77.0144 18.955C76.3941 18.278 76.084 17.424 76.084 16.3944C76.084 15.3177 76.4032 14.4342 77.0446 13.7483C77.6861 13.0624 78.5484 12.7188 79.6346 12.7188C80.6814 12.7188 81.5226 13.0565 82.1595 13.7335C82.7646 14.3914 83.0687 15.241 83.0687 16.2794ZM81.4242 16.3295C81.4242 15.6879 81.282 15.1377 80.9991 14.679C80.6663 14.1244 80.1928 13.8471 79.5771 13.8471C78.9402 13.8471 78.4561 14.1244 78.1233 14.679C77.8389 15.1377 77.6982 15.6968 77.6982 16.3576C77.6982 16.9992 77.8404 17.5494 78.1233 18.0081C78.4667 18.5627 78.9447 18.84 79.562 18.84C80.1671 18.84 80.6421 18.5583 80.984 17.9933C81.2775 17.5258 81.4242 16.9712 81.4242 16.3295Z" fill="white"></path><path d="M94.9517 12.8604L92.7203 19.8135H91.268L90.3437 16.7942C90.1092 16.0405 89.9185 15.2912 89.7703 14.5478H89.7415C89.6039 15.3118 89.4133 16.0596 89.1682 16.7942L88.1864 19.8135H86.7174L84.6191 12.8604H86.2484L87.0548 16.1658C87.2499 16.9476 87.4103 17.6925 87.5389 18.3975H87.5676C87.6856 17.8164 87.8808 17.0759 88.1561 16.1806L89.1682 12.8618H90.4601L91.4299 16.1098C91.6643 16.9019 91.855 17.6644 92.0017 18.399H92.0456C92.153 17.6836 92.3149 16.921 92.5297 16.1098L93.395 12.8618H94.9517V12.8604Z" fill="white"></path><path d="M103.171 19.813H101.585V15.8305C101.585 14.6033 101.107 13.9897 100.148 13.9897C99.6778 13.9897 99.2981 14.1579 99.0031 14.4957C98.7111 14.8334 98.5628 15.2317 98.5628 15.6875V19.8116H96.9774V14.8467C96.9774 14.2361 96.9577 13.5738 96.9199 12.8569H98.3132L98.3874 13.944H98.4312C98.6158 13.6062 98.8911 13.3275 99.2527 13.1047C99.6823 12.8451 100.163 12.7139 100.69 12.7139C101.355 12.7139 101.909 12.9233 102.349 13.3437C102.897 13.8585 103.171 14.6269 103.171 15.6476V19.813V19.813Z" fill="white"></path><path d="M107.543 19.8135H105.959V9.66992H107.543V19.8135Z" fill="white"></path><path d="M116.877 16.2794C116.877 17.3488 116.564 18.2249 115.938 18.9123C115.281 19.6188 114.41 19.9713 113.325 19.9713C112.277 19.9713 111.443 19.6335 110.823 18.955C110.203 18.278 109.893 17.424 109.893 16.3944C109.893 15.3177 110.212 14.4342 110.853 13.7483C111.495 13.0624 112.357 12.7188 113.442 12.7188C114.49 12.7188 115.33 13.0565 115.968 13.7335C116.573 14.3914 116.877 15.241 116.877 16.2794ZM115.231 16.3295C115.231 15.6879 115.089 15.1377 114.806 14.679C114.475 14.1244 114 13.8471 113.386 13.8471C112.747 13.8471 112.263 14.1244 111.932 14.679C111.647 15.1377 111.507 15.6968 111.507 16.3576C111.507 16.9992 111.649 17.5494 111.932 18.0081C112.275 18.5627 112.753 18.84 113.371 18.84C113.976 18.84 114.449 18.5583 114.791 17.9933C115.086 17.5258 115.231 16.9712 115.231 16.3295Z" fill="white"></path><path d="M124.55 19.8135H123.126L123.008 19.0126H122.964C122.477 19.6512 121.783 19.9713 120.881 19.9713C120.208 19.9713 119.664 19.7604 119.254 19.3415C118.881 18.9609 118.695 18.4875 118.695 17.9255C118.695 17.0759 119.058 16.4284 119.789 15.98C120.518 15.5316 121.544 15.3118 122.865 15.3221V15.1923C122.865 14.2763 122.371 13.8191 121.384 13.8191C120.68 13.8191 120.06 13.9917 119.524 14.3339L119.202 13.3191C119.865 12.9193 120.683 12.7188 121.648 12.7188C123.512 12.7188 124.447 13.6775 124.447 15.595V18.1556C124.447 18.8503 124.482 19.4034 124.55 19.8135ZM122.904 17.424V16.3517C121.155 16.3222 120.281 16.7897 120.281 17.7529C120.281 18.1158 120.381 18.3872 120.585 18.5686C120.789 18.75 121.049 18.84 121.359 18.84C121.707 18.84 122.033 18.7323 122.329 18.5184C122.627 18.3031 122.81 18.0302 122.878 17.6954C122.895 17.6202 122.904 17.5287 122.904 17.424Z" fill="white"></path><path d="M133.56 19.8135H132.153L132.079 18.6969H132.035C131.585 19.5465 130.82 19.9713 129.744 19.9713C128.885 19.9713 128.169 19.6424 127.602 18.9845C127.035 18.3267 126.752 17.4727 126.752 16.4239C126.752 15.2985 127.059 14.387 127.676 13.6908C128.274 13.0418 129.006 12.7173 129.877 12.7173C130.835 12.7173 131.505 13.0314 131.886 13.6613H131.917V9.66992H133.504V17.9402C133.504 18.6173 133.522 19.2412 133.56 19.8135ZM131.917 16.8812V15.7218C131.917 15.5212 131.902 15.359 131.873 15.2351C131.784 14.8634 131.591 14.5507 131.299 14.2985C131.004 14.0462 130.649 13.9194 130.239 13.9194C129.647 13.9194 129.185 14.148 128.844 14.6067C128.507 15.0655 128.336 15.651 128.336 16.3664C128.336 17.0538 128.498 17.6113 128.823 18.0405C129.166 18.4978 129.629 18.7264 130.209 18.7264C130.729 18.7264 131.145 18.5361 131.461 18.1541C131.767 17.8016 131.917 17.3768 131.917 16.8812Z" fill="white"></path><path d="M147.119 16.2794C147.119 17.3488 146.806 18.2249 146.18 18.9123C145.523 19.6188 144.655 19.9713 143.567 19.9713C142.522 19.9713 141.688 19.6335 141.065 18.955C140.445 18.278 140.135 17.424 140.135 16.3944C140.135 15.3177 140.454 14.4342 141.095 13.7483C141.737 13.0624 142.599 12.7188 143.687 12.7188C144.732 12.7188 145.575 13.0565 146.21 13.7335C146.815 14.3914 147.119 15.241 147.119 16.2794ZM145.477 16.3295C145.477 15.6879 145.334 15.1377 145.051 14.679C144.717 14.1244 144.245 13.8471 143.628 13.8471C142.992 13.8471 142.508 14.1244 142.174 14.679C141.89 15.1377 141.749 15.6968 141.749 16.3576C141.749 16.9992 141.891 17.5494 142.174 18.0081C142.517 18.5627 142.996 18.84 143.613 18.84C144.218 18.84 144.694 18.5583 145.036 17.9933C145.328 17.5258 145.477 16.9712 145.477 16.3295Z" fill="white"></path><path d="M155.644 19.813H154.06V15.8305C154.06 14.6033 153.582 13.9897 152.621 13.9897C152.151 13.9897 151.771 14.1579 151.478 14.4957C151.184 14.8334 151.037 15.2317 151.037 15.6875V19.8116H149.451V14.8467C149.451 14.2361 149.432 13.5738 149.395 12.8569H150.786L150.86 13.944H150.904C151.09 13.6062 151.366 13.3275 151.726 13.1047C152.157 12.8451 152.637 12.7139 153.164 12.7139C153.829 12.7139 154.382 12.9233 154.823 13.3437C155.372 13.8585 155.644 14.6269 155.644 15.6476V19.813V19.813Z" fill="white"></path><path d="M166.314 14.0184H164.568V17.3962C164.568 18.2546 164.878 18.6839 165.493 18.6839C165.777 18.6839 166.013 18.6603 166.199 18.6116L166.24 19.7842C165.927 19.8993 165.515 19.9568 165.008 19.9568C164.382 19.9568 163.895 19.7709 163.543 19.3992C163.189 19.0275 163.013 18.4021 163.013 17.5245V14.0184H161.971V12.8606H163.013V11.5862L164.567 11.1289V12.8591H166.312V14.0184H166.314Z" fill="white"></path><path d="M174.707 19.8135H173.12V15.8605C173.12 14.6141 172.642 13.9902 171.685 13.9902C170.949 13.9902 170.447 14.3516 170.172 15.0743C170.125 15.2262 170.098 15.4121 170.098 15.6304V19.812H168.514V9.66992H170.098V13.8604H170.128C170.627 13.0978 171.343 12.7173 172.27 12.7173C172.927 12.7173 173.47 12.9267 173.901 13.3471C174.438 13.8707 174.707 14.6495 174.707 15.6791V19.8135V19.8135Z" fill="white"></path><path d="M183.366 16.0076C183.366 16.2849 183.344 16.518 183.307 16.7082H178.552C178.573 17.3956 178.8 17.9192 179.24 18.2821C179.643 18.6066 180.161 18.7688 180.797 18.7688C181.5 18.7688 182.142 18.6597 182.72 18.4399L182.968 19.5137C182.292 19.7998 181.496 19.9429 180.574 19.9429C179.47 19.9429 178.6 19.6258 177.971 18.9915C177.339 18.3573 177.025 17.5062 177.025 16.4383C177.025 15.3896 177.317 14.5164 177.906 13.8202C178.52 13.0768 179.351 12.7051 180.399 12.7051C181.425 12.7051 182.204 13.0768 182.73 13.8202C183.155 14.4102 183.366 15.1403 183.366 16.0076ZM181.853 15.6079C181.865 15.1492 181.761 14.7539 181.546 14.4205C181.27 13.9913 180.851 13.7759 180.284 13.7759C179.767 13.7759 179.345 13.9854 179.022 14.4058C178.759 14.7406 178.603 15.1403 178.552 15.6079H181.853Z" fill="white"></path>',25),r=[n];function p(C,i){return t.openBlock(),t.createElementBlock("svg",l,r)}const d=s._export_sfc(a,[["render",p]]),c={},h={width:"204",height:"59",viewBox:"0 0 204 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V=t.createStaticVNode('<path d="M196.396 59H7.55371C3.40106 59 0 55.6794 0 51.625V7.375C0 3.32059 3.40106 7.56029e-07 7.55371 7.56029e-07H196.396C200.549 7.56029e-07 203.95 3.32059 203.95 7.375V51.625C203.95 55.6794 200.549 59 196.396 59Z" fill="black"></path><path d="M196.396 1.18184C199.894 1.18184 202.74 3.96038 202.74 7.375V51.625C202.74 55.0396 199.894 57.8182 196.396 57.8182H7.55371C4.05634 57.8182 1.21048 55.0396 1.21048 51.625V7.375C1.21048 3.96038 4.05634 1.18184 7.55371 1.18184H196.396ZM196.396 7.56029e-07H7.55371C3.40106 7.56029e-07 0 3.32059 0 7.375V51.625C0 55.6794 3.40106 59 7.55371 59H196.396C200.549 59 203.95 55.6794 203.95 51.625V7.375C203.95 3.32059 200.549 7.56029e-07 196.396 7.56029e-07Z" fill="#A6A6A6"></path><path d="M71.6353 15.1096C71.6353 16.3413 71.2576 17.3277 70.5136 18.0633C69.6581 18.9354 68.5439 19.3742 67.1786 19.3742C65.8737 19.3742 64.7595 18.928 63.8455 18.0486C62.9297 17.1562 62.4727 16.061 62.4727 14.7501C62.4727 13.4392 62.9297 12.344 63.8455 11.459C64.7595 10.5722 65.8737 10.126 67.1786 10.126C67.8282 10.126 68.4476 10.2569 69.0387 10.5003C69.6279 10.7455 70.1076 11.0774 70.455 11.4867L69.6657 12.2647C69.0595 11.5659 68.2342 11.2212 67.1786 11.2212C66.2268 11.2212 65.4016 11.5457 64.701 12.2002C64.0079 12.8566 63.6605 13.7065 63.6605 14.7501C63.6605 15.7937 64.0079 16.651 64.701 17.3074C65.4016 17.9545 66.2268 18.2864 67.1786 18.2864C68.1889 18.2864 69.0387 17.9545 69.7091 17.3C70.151 16.8667 70.4022 16.2694 70.4683 15.506H67.1786V14.4404H71.5673C71.6202 14.6708 71.6353 14.8939 71.6353 15.1096V15.1096Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M78.5981 11.4151H74.4756V14.2176H78.1921V15.2833H74.4756V18.0858H78.5981V19.1717H73.3086V10.3291H78.5981V11.4151Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M83.5121 19.1717H82.345V11.4151H79.8164V10.3291H86.0425V11.4151H83.5121V19.1717V19.1717Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M90.5488 19.1717V10.3291H91.714V19.1717H90.5488Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M96.8773 19.1717H95.7197V11.4151H93.1816V10.3291H99.4153V11.4151H96.8773V19.1717Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M111.203 18.0338C110.31 18.928 109.203 19.3742 107.883 19.3742C106.556 19.3742 105.449 18.928 104.556 18.0338C103.664 17.1414 103.221 16.0463 103.221 14.7501C103.221 13.4539 103.664 12.3588 104.556 11.4664C105.449 10.5722 106.556 10.126 107.883 10.126C109.196 10.126 110.302 10.5722 111.196 11.4738C112.094 12.3735 112.538 13.4613 112.538 14.7501C112.538 16.0463 112.094 17.1414 111.203 18.0338ZM105.419 17.2926C106.091 17.9545 106.909 18.2864 107.883 18.2864C108.85 18.2864 109.675 17.9545 110.34 17.2926C111.01 16.6307 111.35 15.7808 111.35 14.7501C111.35 13.7194 111.01 12.8695 110.34 12.2076C109.675 11.5457 108.85 11.2138 107.883 11.2138C106.909 11.2138 106.091 11.5457 105.419 12.2076C104.748 12.8695 104.409 13.7194 104.409 14.7501C104.409 15.7808 104.748 16.6307 105.419 17.2926V17.2926Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M114.176 19.1717V10.3291H115.592L119.996 17.2063H120.047L119.996 15.5063V10.3291H121.161V19.1717H119.945L115.333 11.9553H115.282L115.333 13.6626V19.1717H114.176V19.1717Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M102.934 32.0853C99.3852 32.0853 96.4864 34.7218 96.4864 38.3596C96.4864 41.9678 99.3852 44.632 102.934 44.632C106.489 44.632 109.388 41.9678 109.388 38.3596C109.388 34.7218 106.489 32.0853 102.934 32.0853ZM102.934 42.1614C100.987 42.1614 99.3115 40.5923 99.3115 38.3596C99.3115 36.0973 100.987 34.5559 102.934 34.5559C104.88 34.5559 106.563 36.0973 106.563 38.3596C106.563 40.5923 104.88 42.1614 102.934 42.1614V42.1614ZM88.8666 32.0853C85.3107 32.0853 82.4195 34.7218 82.4195 38.3596C82.4195 41.9678 85.3107 44.632 88.8666 44.632C92.4206 44.632 95.3137 41.9678 95.3137 38.3596C95.3137 34.7218 92.4206 32.0853 88.8666 32.0853ZM88.8666 42.1614C86.9178 42.1614 85.2371 40.5923 85.2371 38.3596C85.2371 36.0973 86.9178 34.5559 88.8666 34.5559C90.8136 34.5559 92.4886 36.0973 92.4886 38.3596C92.4886 40.5923 90.8136 42.1614 88.8666 42.1614ZM72.1276 34.0083V36.6744H78.6484C78.4576 38.1641 77.9478 39.2593 77.1659 40.0226C76.2142 40.9445 74.7318 41.9678 72.1276 41.9678C68.1147 41.9678 64.9724 38.8057 64.9724 34.8878C64.9724 30.9698 68.1147 27.8078 72.1276 27.8078C74.2974 27.8078 75.8762 28.6356 77.0413 29.7087L78.9656 27.8299C77.3359 26.3107 75.168 25.1436 72.1276 25.1436C66.6248 25.1436 62 29.5151 62 34.8878C62 40.2605 66.6248 44.632 72.1276 44.632C75.1019 44.632 77.3359 43.6806 79.0921 41.8959C80.8918 40.1388 81.4527 37.6682 81.4527 35.6732C81.4527 35.0537 81.3998 34.484 81.3054 34.0083H72.1276ZM140.576 36.0752C140.045 34.6721 138.408 32.0853 135.073 32.0853C131.768 32.0853 129.016 34.6278 129.016 38.3596C129.016 41.8737 131.74 44.632 135.39 44.632C138.341 44.632 140.045 42.8749 140.745 41.8516L138.555 40.4264C137.824 41.47 136.829 42.1614 135.39 42.1614C133.96 42.1614 132.935 41.5216 132.278 40.2605L140.872 36.7887L140.576 36.0752V36.0752ZM131.813 38.1641C131.74 35.7451 133.738 34.5061 135.169 34.5061C136.291 34.5061 137.242 35.0537 137.56 35.8373L131.813 38.1641V38.1641ZM124.828 44.2503H127.653V25.8128H124.828V44.2503ZM120.201 33.4828H120.107C119.472 32.749 118.262 32.0853 116.728 32.0853C113.511 32.0853 110.568 34.8435 110.568 38.3798C110.568 41.8959 113.511 44.632 116.728 44.632C118.262 44.632 119.472 43.9627 120.107 43.2068H120.201V44.1065C120.201 46.5052 118.889 47.794 116.772 47.794C115.046 47.794 113.975 46.5771 113.533 45.5539L111.076 46.555C111.785 48.2181 113.66 50.2646 116.772 50.2646C120.084 50.2646 122.879 48.3619 122.879 43.7322V32.4669H120.201V33.4828V33.4828ZM116.97 42.1614C115.023 42.1614 113.393 40.5702 113.393 38.3798C113.393 36.1692 115.023 34.5559 116.97 34.5559C118.889 34.5559 120.401 36.1692 120.401 38.3798C120.401 40.5702 118.889 42.1614 116.97 42.1614V42.1614ZM153.802 25.8128H147.045V44.2503H149.863V37.2644H153.802C156.931 37.2644 160 35.0537 160 31.5377C160 28.0235 156.924 25.8128 153.802 25.8128V25.8128ZM153.876 34.6997H149.863V28.3775H153.876C155.979 28.3775 157.18 30.083 157.18 31.5377C157.18 32.9647 155.979 34.6997 153.876 34.6997ZM171.293 32.0502C169.257 32.0502 167.14 32.9279 166.269 34.873L168.77 35.8963C169.308 34.873 170.297 34.5412 171.344 34.5412C172.805 34.5412 174.288 35.3985 174.31 36.9122V37.1058C173.8 36.8182 172.709 36.3923 171.366 36.3923C168.673 36.3923 165.929 37.8396 165.929 40.5407C165.929 43.0113 168.135 44.6025 170.615 44.6025C172.511 44.6025 173.557 43.7673 174.214 42.7956H174.31V44.2208H177.032V37.1482C177.032 33.8792 174.531 32.0502 171.293 32.0502ZM170.953 42.154C170.031 42.154 168.747 41.7078 168.747 40.5923C168.747 39.1653 170.348 38.6177 171.735 38.6177C172.975 38.6177 173.557 38.885 174.31 39.2372C174.089 40.9445 172.584 42.154 170.953 42.154V42.154ZM186.946 32.454L183.707 40.4467H183.611L180.263 32.454H177.224L182.255 43.6235L179.385 49.8387H182.329L190.081 32.454H186.946V32.454ZM161.548 44.2503H164.373V25.8128H161.548V44.2503Z" fill="white"></path><path d="M15.7651 11.1197C15.3213 11.5732 15.0645 12.2794 15.0645 13.1939V45.8135C15.0645 46.728 15.3213 47.4342 15.7651 47.8877L15.8746 47.9873L34.5964 29.7157V29.2843L15.8746 11.0127L15.7651 11.1197Z" fill="url(#paint0_linear_1523_1188)"></path><path d="M40.8294 35.8096L34.5957 29.716V29.2845L40.837 23.1909L40.9767 23.2702L48.368 27.3763C50.4774 28.5415 50.4774 30.459 48.368 31.6316L40.9767 35.7303L40.8294 35.8096V35.8096Z" fill="url(#paint1_linear_1523_1188)"></path><path d="M40.976 35.7304L34.5951 29.5004L15.7637 47.8881C16.4643 48.6071 17.6068 48.6938 18.906 47.9747L40.976 35.7304" fill="url(#paint2_linear_1523_1188)"></path><path d="M40.976 23.27L18.906 11.0256C17.6068 10.3139 16.4643 10.4006 15.7637 11.1197L34.5951 29.5L40.976 23.27Z" fill="url(#paint3_linear_1523_1188)"></path><defs><linearGradient id="paint0_linear_1523_1188" x1="32.9342" y1="46.1532" x2="8.18722" y2="20.8066" gradientUnits="userSpaceOnUse"><stop stop-color="#00A0FF"></stop><stop offset="0.0066" stop-color="#00A1FF"></stop><stop offset="0.2601" stop-color="#00BEFF"></stop><stop offset="0.5122" stop-color="#00D2FF"></stop><stop offset="0.7604" stop-color="#00DFFF"></stop><stop offset="1" stop-color="#00E3FF"></stop></linearGradient><linearGradient id="paint1_linear_1523_1188" x1="51.1147" y1="29.4982" x2="14.5595" y2="29.4982" gradientUnits="userSpaceOnUse"><stop stop-color="#FFE000"></stop><stop offset="0.4087" stop-color="#FFBD00"></stop><stop offset="0.7754" stop-color="#FFA500"></stop><stop offset="1" stop-color="#FF9C00"></stop></linearGradient><linearGradient id="paint2_linear_1523_1188" x1="37.5063" y1="26.1136" x2="3.94738" y2="-8.25843" gradientUnits="userSpaceOnUse"><stop stop-color="#FF3A44"></stop><stop offset="1" stop-color="#C31162"></stop></linearGradient><linearGradient id="paint3_linear_1523_1188" x1="11.0234" y1="58.7401" x2="26.009" y2="43.3916" gradientUnits="userSpaceOnUse"><stop stop-color="#32A071"></stop><stop offset="0.0685" stop-color="#2DA771"></stop><stop offset="0.4762" stop-color="#15CF74"></stop><stop offset="0.8009" stop-color="#06E775"></stop><stop offset="1" stop-color="#00F076"></stop></linearGradient></defs>',15),f=[V];function m(C,i){return t.openBlock(),t.createElementBlock("svg",h,f)}const H=s._export_sfc(c,[["render",m]]);const _={id:"mobileApp"},u={class:"cols-2-1_2 gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big"},w={class:"z-index-1 w-1/2"},g=["src"],M={class:"z-index-1 w-1/2"},L={class:"mn-t-medium mn-semi w-m-40r"},Z={class:"t-transp mn-big p-big w-m-33r"},y={class:"mn-big gap-medium cols-2"},b={class:"feature"},k={class:"mn-small"},x={class:"t-transp p-medium"},E={class:"feature"},v={class:"mn-small"},N={class:"t-transp p-medium"},F={class:"feature"},S={class:"mn-small"},A={class:"t-transp p-medium"},D={class:"feature"},I={class:"mn-small"},z={class:"t-transp p-medium"},B={class:"w-m-33r flex-nowrap flex gap-medium"},U={class:"w-100 h-100"},G={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},$={class:"w-100 h-100"},O={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},q={key:0,class:"grid-lines"},P={__name:"MobileApp",props:{mockupImage:{type:String,default:"/assets/images/landing/mockup.png"},bgImage:{type:String,default:""},textData:{type:Object,default:()=>({messages:{en:{title:"Explore the Cannabis World at Your Fingertips",description:"Intuitive, Efficient, and Customized for Your Cannabis Needs",features:{instantUpdates:{title:"Instant Updates",text:"Receive real-time notifications for new product releases and community updates. Always stay in the loop."},locate:{title:"Locate with Ease",text:"Discover nearby dispensaries and cannabis events with our integrated geolocation services."},wallet:{title:"Wallet Integration",text:"Quickly and securely manage your transactions with integrated digital wallet functionality. Safety and convenience come together."},customization:{title:"Customization by AI",text:"Experience the AI difference with personalized recommendations based on your preferences and trends in the community."}}}}})}},setup(C){const i=C,{t:e}=o.useI18n(i.textData);return(j,W)=>(t.openBlock(),t.createElementBlock("div",_,[t.createElementVNode("section",u,[t.createElementVNode("div",w,[t.createElementVNode("img",{src:C.mockupImage,alt:"Mobile App Mockup",class:"app-mockup"},null,8,g)]),t.createElementVNode("div",M,[t.createElementVNode("h2",L,t.toDisplayString(t.unref(e)("title")),1),t.createElementVNode("p",Z,t.toDisplayString(t.unref(e)("description")),1),t.createElementVNode("div",y,[t.createElementVNode("div",b,[t.createElementVNode("h3",k,t.toDisplayString(t.unref(e)("features.instantUpdates.title")),1),t.createElementVNode("p",x,t.toDisplayString(t.unref(e)("features.instantUpdates.text")),1)]),t.createElementVNode("div",E,[t.createElementVNode("h3",v,t.toDisplayString(t.unref(e)("features.locate.title")),1),t.createElementVNode("p",N,t.toDisplayString(t.unref(e)("features.locate.text")),1)]),t.createElementVNode("div",F,[t.createElementVNode("h3",S,t.toDisplayString(t.unref(e)("features.wallet.title")),1),t.createElementVNode("p",A,t.toDisplayString(t.unref(e)("features.wallet.text")),1)]),t.createElementVNode("div",D,[t.createElementVNode("h3",I,t.toDisplayString(t.unref(e)("features.customization.title")),1),t.createElementVNode("p",z,t.toDisplayString(t.unref(e)("features.customization.text")),1)])]),t.createElementVNode("div",B,[t.createElementVNode("div",U,[t.createElementVNode("span",G,t.toDisplayString(t.unref(e)("features.soonLabel")),1),t.createVNode(d,{class:"w-100 h-100",alt:"Download on App Store"})]),t.createElementVNode("div",$,[t.createElementVNode("span",O,t.toDisplayString(t.unref(e)("features.soonLabel")),1),t.createVNode(H,{class:"w-100 h-100",alt:"Download on Google Play"})])])]),t.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-0 pos-r-0 z-index-0 grid",style:t.normalizeStyle({backgroundImage:`url(${C.bgImage})`})},[C.bgImage?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",q))],4)])]))}};exports.MobileApp=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("vue-i18n"),s=require("./_plugin-vue_export-helper-f246444f.js"),l={},n={width:"205",height:"59",viewBox:"0 0 205 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r=t.createStaticVNode('<path d="M203.096 52.1958C203.096 55.34 200.496 57.8869 197.281 57.8869H6.9581C3.74381 57.8869 1.13477 55.34 1.13477 52.1958V6.81174C1.13477 3.66904 3.74381 1.11328 6.9581 1.11328H197.279C200.496 1.11328 203.095 3.66904 203.095 6.81174L203.096 52.1958Z" fill="black"></path><path d="M196.667 1.18185C200.169 1.18185 203.019 3.96038 203.019 7.375V51.625C203.019 55.0396 200.169 57.8182 196.667 57.8182H7.5641C4.06192 57.8182 1.21215 55.0396 1.21215 51.625V7.375C1.21215 3.96038 4.06192 1.18185 7.5641 1.18185H196.667ZM196.667 5.4802e-06H7.5641C3.40574 5.4802e-06 0 3.3206 0 7.375V51.625C0 55.6794 3.40574 59 7.5641 59H196.667C200.825 59 204.231 55.6794 204.231 51.625V7.375C204.231 3.3206 200.825 5.4802e-06 196.667 5.4802e-06Z" fill="#A6A6A6"></path><path d="M45.578 29.1812C45.5341 24.4273 49.5703 22.1145 49.7549 22.0068C47.469 18.7574 43.926 18.3134 42.6809 18.278C39.7052 17.9727 36.8187 20.0141 35.3029 20.0141C33.7568 20.0141 31.4225 18.3075 28.9067 18.3577C25.6692 18.4064 22.6406 20.2339 20.9795 23.0718C17.5515 28.8582 20.1081 37.3616 23.3925 42.0388C25.0354 44.3295 26.9551 46.8871 29.4679 46.7972C31.9263 46.6983 32.8446 45.2691 35.8112 45.2691C38.7506 45.2691 39.6129 46.7972 42.1756 46.7396C44.814 46.6983 46.4751 44.4386 48.0605 42.1273C49.9591 39.5018 50.7216 36.9161 50.7518 36.7834C50.6898 36.7627 45.6279 34.8792 45.578 29.1812Z" fill="white"></path><path d="M40.7369 15.2012C42.0591 13.589 42.9638 11.3957 42.7127 9.16992C40.799 9.25252 38.4057 10.4605 37.0275 12.0373C35.8082 13.4268 34.7189 15.7042 35.0003 17.8459C37.15 18.0022 39.3572 16.7883 40.7369 15.2012Z" fill="white"></path><path d="M81.1547 46.4691H77.7191L75.8372 40.7034H69.2957L67.503 46.4691H64.1582L70.6391 26.8398H74.642L81.1547 46.4691ZM75.2699 38.2844L73.5679 33.1587C73.3879 32.6351 73.0506 31.402 72.5528 29.4609H72.4923C72.2941 30.2958 71.9749 31.5289 71.5362 33.1587L69.8646 38.2844H75.2699V38.2844Z" fill="white"></path><path d="M97.8218 39.218C97.8218 41.6252 97.1546 43.5279 95.8203 44.9248C94.6252 46.1682 93.1411 46.7892 91.3696 46.7892C89.4574 46.7892 88.0837 46.1195 87.2472 44.7802H87.1866V52.2363H83.9613V36.9745C83.9613 35.4612 83.9205 33.908 83.8418 32.315H86.6783L86.8584 34.5585H86.9189C87.9945 32.8681 89.6268 32.0244 91.8174 32.0244C93.5299 32.0244 94.9595 32.6837 96.1032 34.0039C97.2499 35.3255 97.8218 37.063 97.8218 39.218ZM94.5359 39.333C94.5359 37.9554 94.2182 36.8196 93.5798 35.9258C92.8824 34.9936 91.946 34.5275 90.772 34.5275C89.9763 34.5275 89.2532 34.7871 88.6072 35.2989C87.9597 35.8152 87.5361 36.4892 87.3379 37.3241C87.2381 37.7135 87.1882 38.0321 87.1882 38.2828V40.6428C87.1882 41.6724 87.5119 42.5412 88.1594 43.2506C88.8069 43.9601 89.648 44.3141 90.6828 44.3141C91.8976 44.3141 92.8431 43.8569 93.5193 42.9453C94.1971 42.0323 94.5359 40.8287 94.5359 39.333Z" fill="white"></path><path d="M114.518 39.218C114.518 41.6252 113.85 43.5279 112.515 44.9248C111.321 46.1682 109.837 46.7892 108.065 46.7892C106.153 46.7892 104.779 46.1195 103.944 44.7802H103.884V52.2363H100.659V36.9745C100.659 35.4612 100.618 33.908 100.539 32.315H103.376L103.556 34.5585H103.616C104.69 32.8681 106.323 32.0244 108.515 32.0244C110.226 32.0244 111.655 32.6837 112.802 34.0039C113.944 35.3255 114.518 37.063 114.518 39.218ZM111.232 39.333C111.232 37.9554 110.912 36.8196 110.274 35.9258C109.577 34.9936 108.643 34.5275 107.468 34.5275C106.671 34.5275 105.949 34.7871 105.301 35.2989C104.654 35.8152 104.232 36.4892 104.034 37.3241C103.935 37.7135 103.884 38.0321 103.884 38.2828V40.6428C103.884 41.6724 104.208 42.5412 104.852 43.2506C105.5 43.9586 106.341 44.3141 107.379 44.3141C108.593 44.3141 109.539 43.8569 110.215 42.9453C110.893 42.0323 111.232 40.8287 111.232 39.333Z" fill="white"></path><path d="M133.187 40.964C133.187 42.6337 132.593 43.9922 131.399 45.0409C130.087 46.187 128.261 46.7593 125.915 46.7593C123.749 46.7593 122.012 46.3522 120.697 45.5365L121.445 42.9154C122.861 43.7503 124.414 44.1692 126.107 44.1692C127.322 44.1692 128.267 43.9007 128.947 43.3668C129.623 42.8328 129.96 42.116 129.96 41.2221C129.96 40.4256 129.682 39.7545 129.124 39.2102C128.568 38.6659 127.641 38.16 126.346 37.6924C122.821 36.4107 121.06 34.533 121.06 32.0638C121.06 30.4502 121.678 29.1271 122.914 28.0976C124.145 27.0665 125.788 26.5518 127.842 26.5518C129.674 26.5518 131.196 26.863 132.411 27.484L131.605 30.0475C130.47 29.4457 129.187 29.1448 127.752 29.1448C126.617 29.1448 125.73 29.4177 125.095 29.9605C124.558 30.4458 124.289 31.0372 124.289 31.7379C124.289 32.5137 124.596 33.1553 125.213 33.6598C125.75 34.1259 126.726 34.6303 128.142 35.1746C129.874 35.8546 131.146 36.6496 131.965 37.5612C132.78 38.4698 133.187 39.607 133.187 40.964Z" fill="white"></path><path d="M143.851 34.6748H140.296V41.5468C140.296 43.2947 140.922 44.1679 142.178 44.1679C142.754 44.1679 143.232 44.1192 143.61 44.0219L143.699 46.4099C143.064 46.6415 142.227 46.758 141.191 46.758C139.917 46.758 138.922 46.3789 138.203 45.6223C137.488 44.8641 137.128 43.5927 137.128 41.8064V34.6719H135.01V32.3119H137.128V29.7203L140.296 28.7881V32.3119H143.851V34.6748Z" fill="white"></path><path d="M159.891 39.275C159.891 41.4506 159.252 43.2369 157.979 44.6337C156.643 46.0718 154.87 46.7887 152.66 46.7887C150.53 46.7887 148.834 46.0998 147.569 44.7222C146.304 43.3445 145.672 41.6055 145.672 39.5095C145.672 37.3162 146.322 35.5197 147.628 34.1228C148.93 32.7245 150.688 32.0254 152.899 32.0254C155.029 32.0254 156.743 32.7142 158.036 34.0933C159.274 35.4312 159.891 37.1584 159.891 39.275ZM156.545 39.3768C156.545 38.0714 156.259 36.9519 155.679 36.0182C155.003 34.8884 154.036 34.3249 152.784 34.3249C151.487 34.3249 150.502 34.8898 149.826 36.0182C149.247 36.9534 148.961 38.0906 148.961 39.4358C148.961 40.7412 149.247 41.8607 149.826 42.7929C150.523 43.9227 151.498 44.4862 152.755 44.4862C153.986 44.4862 154.953 43.9109 155.65 42.7634C156.245 41.812 156.545 40.6807 156.545 39.3768Z" fill="white"></path><path d="M170.374 35.0806C170.055 35.0231 169.715 34.9936 169.358 34.9936C168.223 34.9936 167.346 35.411 166.728 36.2473C166.191 36.9848 165.922 37.917 165.922 39.0425V46.4691H162.698L162.728 36.7724C162.728 35.1411 162.688 33.6558 162.607 32.3165H165.417L165.535 35.0246H165.624C165.964 34.0938 166.501 33.3445 167.237 32.7826C167.955 32.2766 168.731 32.0244 169.568 32.0244C169.866 32.0244 170.135 32.0451 170.374 32.0819V35.0806Z" fill="white"></path><path d="M184.8 38.7216C184.8 39.285 184.762 39.76 184.682 40.1479H175.006C175.044 41.5462 175.511 42.6156 176.41 43.3531C177.225 44.0124 178.28 44.3428 179.574 44.3428C181.007 44.3428 182.314 44.1201 183.49 43.6732L183.995 45.8562C182.621 46.4403 181 46.7308 179.128 46.7308C176.877 46.7308 175.11 46.0848 173.824 44.7942C172.541 43.5035 171.898 41.7704 171.898 39.5963C171.898 37.4619 172.496 35.6846 173.693 34.2671C174.945 32.7537 176.638 31.9971 178.768 31.9971C180.86 31.9971 182.444 32.7537 183.52 34.2671C184.372 35.4692 184.8 36.956 184.8 38.7216ZM181.724 37.9059C181.745 36.9737 181.535 36.1684 181.098 35.4884C180.54 34.6137 179.682 34.1771 178.528 34.1771C177.473 34.1771 176.615 34.6034 175.96 35.4589C175.423 36.1389 175.104 36.9545 175.006 37.9044H181.724V37.9059Z" fill="white"></path><path d="M74.2041 14.7631C74.2041 16.4992 73.6701 17.806 72.6036 18.6836C71.6157 19.4934 70.2118 19.899 68.3934 19.899C67.4917 19.899 66.7202 19.8607 66.0742 19.784V10.2983C66.9169 10.1655 67.8246 10.0977 68.8049 10.0977C70.537 10.0977 71.8426 10.4649 72.7231 11.1995C73.7094 12.0299 74.2041 13.2173 74.2041 14.7631ZM72.5325 14.8059C72.5325 13.6804 72.2269 12.8176 71.6157 12.2158C71.0045 11.6154 70.1119 11.3145 68.9365 11.3145C68.4372 11.3145 68.0121 11.347 67.6597 11.4148V18.6261C67.8548 18.6556 68.2118 18.6689 68.7307 18.6689C69.944 18.6689 70.8805 18.34 71.54 17.6821C72.1996 17.0243 72.5325 16.0655 72.5325 14.8059Z" fill="white"></path><path d="M83.0687 16.2794C83.0687 17.3488 82.7555 18.2249 82.1292 18.9123C81.4727 19.6188 80.6028 19.9713 79.5166 19.9713C78.4697 19.9713 77.6361 19.6335 77.0144 18.955C76.3941 18.278 76.084 17.424 76.084 16.3944C76.084 15.3177 76.4032 14.4342 77.0446 13.7483C77.6861 13.0624 78.5484 12.7188 79.6346 12.7188C80.6814 12.7188 81.5226 13.0565 82.1595 13.7335C82.7646 14.3914 83.0687 15.241 83.0687 16.2794ZM81.4242 16.3295C81.4242 15.6879 81.282 15.1377 80.9991 14.679C80.6663 14.1244 80.1928 13.8471 79.5771 13.8471C78.9402 13.8471 78.4561 14.1244 78.1233 14.679C77.8389 15.1377 77.6982 15.6968 77.6982 16.3576C77.6982 16.9992 77.8404 17.5494 78.1233 18.0081C78.4667 18.5627 78.9447 18.84 79.562 18.84C80.1671 18.84 80.6421 18.5583 80.984 17.9933C81.2775 17.5258 81.4242 16.9712 81.4242 16.3295Z" fill="white"></path><path d="M94.9517 12.8604L92.7203 19.8135H91.268L90.3437 16.7942C90.1092 16.0405 89.9185 15.2912 89.7703 14.5478H89.7415C89.6039 15.3118 89.4133 16.0596 89.1682 16.7942L88.1864 19.8135H86.7174L84.6191 12.8604H86.2484L87.0548 16.1658C87.2499 16.9476 87.4103 17.6925 87.5389 18.3975H87.5676C87.6856 17.8164 87.8808 17.0759 88.1561 16.1806L89.1682 12.8618H90.4601L91.4299 16.1098C91.6643 16.9019 91.855 17.6644 92.0017 18.399H92.0456C92.153 17.6836 92.3149 16.921 92.5297 16.1098L93.395 12.8618H94.9517V12.8604Z" fill="white"></path><path d="M103.171 19.813H101.585V15.8305C101.585 14.6033 101.107 13.9897 100.148 13.9897C99.6778 13.9897 99.2981 14.1579 99.0031 14.4957C98.7111 14.8334 98.5628 15.2317 98.5628 15.6875V19.8116H96.9774V14.8467C96.9774 14.2361 96.9577 13.5738 96.9199 12.8569H98.3132L98.3874 13.944H98.4312C98.6158 13.6062 98.8911 13.3275 99.2527 13.1047C99.6823 12.8451 100.163 12.7139 100.69 12.7139C101.355 12.7139 101.909 12.9233 102.349 13.3437C102.897 13.8585 103.171 14.6269 103.171 15.6476V19.813V19.813Z" fill="white"></path><path d="M107.543 19.8135H105.959V9.66992H107.543V19.8135Z" fill="white"></path><path d="M116.877 16.2794C116.877 17.3488 116.564 18.2249 115.938 18.9123C115.281 19.6188 114.41 19.9713 113.325 19.9713C112.277 19.9713 111.443 19.6335 110.823 18.955C110.203 18.278 109.893 17.424 109.893 16.3944C109.893 15.3177 110.212 14.4342 110.853 13.7483C111.495 13.0624 112.357 12.7188 113.442 12.7188C114.49 12.7188 115.33 13.0565 115.968 13.7335C116.573 14.3914 116.877 15.241 116.877 16.2794ZM115.231 16.3295C115.231 15.6879 115.089 15.1377 114.806 14.679C114.475 14.1244 114 13.8471 113.386 13.8471C112.747 13.8471 112.263 14.1244 111.932 14.679C111.647 15.1377 111.507 15.6968 111.507 16.3576C111.507 16.9992 111.649 17.5494 111.932 18.0081C112.275 18.5627 112.753 18.84 113.371 18.84C113.976 18.84 114.449 18.5583 114.791 17.9933C115.086 17.5258 115.231 16.9712 115.231 16.3295Z" fill="white"></path><path d="M124.55 19.8135H123.126L123.008 19.0126H122.964C122.477 19.6512 121.783 19.9713 120.881 19.9713C120.208 19.9713 119.664 19.7604 119.254 19.3415C118.881 18.9609 118.695 18.4875 118.695 17.9255C118.695 17.0759 119.058 16.4284 119.789 15.98C120.518 15.5316 121.544 15.3118 122.865 15.3221V15.1923C122.865 14.2763 122.371 13.8191 121.384 13.8191C120.68 13.8191 120.06 13.9917 119.524 14.3339L119.202 13.3191C119.865 12.9193 120.683 12.7188 121.648 12.7188C123.512 12.7188 124.447 13.6775 124.447 15.595V18.1556C124.447 18.8503 124.482 19.4034 124.55 19.8135ZM122.904 17.424V16.3517C121.155 16.3222 120.281 16.7897 120.281 17.7529C120.281 18.1158 120.381 18.3872 120.585 18.5686C120.789 18.75 121.049 18.84 121.359 18.84C121.707 18.84 122.033 18.7323 122.329 18.5184C122.627 18.3031 122.81 18.0302 122.878 17.6954C122.895 17.6202 122.904 17.5287 122.904 17.424Z" fill="white"></path><path d="M133.56 19.8135H132.153L132.079 18.6969H132.035C131.585 19.5465 130.82 19.9713 129.744 19.9713C128.885 19.9713 128.169 19.6424 127.602 18.9845C127.035 18.3267 126.752 17.4727 126.752 16.4239C126.752 15.2985 127.059 14.387 127.676 13.6908C128.274 13.0418 129.006 12.7173 129.877 12.7173C130.835 12.7173 131.505 13.0314 131.886 13.6613H131.917V9.66992H133.504V17.9402C133.504 18.6173 133.522 19.2412 133.56 19.8135ZM131.917 16.8812V15.7218C131.917 15.5212 131.902 15.359 131.873 15.2351C131.784 14.8634 131.591 14.5507 131.299 14.2985C131.004 14.0462 130.649 13.9194 130.239 13.9194C129.647 13.9194 129.185 14.148 128.844 14.6067C128.507 15.0655 128.336 15.651 128.336 16.3664C128.336 17.0538 128.498 17.6113 128.823 18.0405C129.166 18.4978 129.629 18.7264 130.209 18.7264C130.729 18.7264 131.145 18.5361 131.461 18.1541C131.767 17.8016 131.917 17.3768 131.917 16.8812Z" fill="white"></path><path d="M147.119 16.2794C147.119 17.3488 146.806 18.2249 146.18 18.9123C145.523 19.6188 144.655 19.9713 143.567 19.9713C142.522 19.9713 141.688 19.6335 141.065 18.955C140.445 18.278 140.135 17.424 140.135 16.3944C140.135 15.3177 140.454 14.4342 141.095 13.7483C141.737 13.0624 142.599 12.7188 143.687 12.7188C144.732 12.7188 145.575 13.0565 146.21 13.7335C146.815 14.3914 147.119 15.241 147.119 16.2794ZM145.477 16.3295C145.477 15.6879 145.334 15.1377 145.051 14.679C144.717 14.1244 144.245 13.8471 143.628 13.8471C142.992 13.8471 142.508 14.1244 142.174 14.679C141.89 15.1377 141.749 15.6968 141.749 16.3576C141.749 16.9992 141.891 17.5494 142.174 18.0081C142.517 18.5627 142.996 18.84 143.613 18.84C144.218 18.84 144.694 18.5583 145.036 17.9933C145.328 17.5258 145.477 16.9712 145.477 16.3295Z" fill="white"></path><path d="M155.644 19.813H154.06V15.8305C154.06 14.6033 153.582 13.9897 152.621 13.9897C152.151 13.9897 151.771 14.1579 151.478 14.4957C151.184 14.8334 151.037 15.2317 151.037 15.6875V19.8116H149.451V14.8467C149.451 14.2361 149.432 13.5738 149.395 12.8569H150.786L150.86 13.944H150.904C151.09 13.6062 151.366 13.3275 151.726 13.1047C152.157 12.8451 152.637 12.7139 153.164 12.7139C153.829 12.7139 154.382 12.9233 154.823 13.3437C155.372 13.8585 155.644 14.6269 155.644 15.6476V19.813V19.813Z" fill="white"></path><path d="M166.314 14.0184H164.568V17.3962C164.568 18.2546 164.878 18.6839 165.493 18.6839C165.777 18.6839 166.013 18.6603 166.199 18.6116L166.24 19.7842C165.927 19.8993 165.515 19.9568 165.008 19.9568C164.382 19.9568 163.895 19.7709 163.543 19.3992C163.189 19.0275 163.013 18.4021 163.013 17.5245V14.0184H161.971V12.8606H163.013V11.5862L164.567 11.1289V12.8591H166.312V14.0184H166.314Z" fill="white"></path><path d="M174.707 19.8135H173.12V15.8605C173.12 14.6141 172.642 13.9902 171.685 13.9902C170.949 13.9902 170.447 14.3516 170.172 15.0743C170.125 15.2262 170.098 15.4121 170.098 15.6304V19.812H168.514V9.66992H170.098V13.8604H170.128C170.627 13.0978 171.343 12.7173 172.27 12.7173C172.927 12.7173 173.47 12.9267 173.901 13.3471C174.438 13.8707 174.707 14.6495 174.707 15.6791V19.8135V19.8135Z" fill="white"></path><path d="M183.366 16.0076C183.366 16.2849 183.344 16.518 183.307 16.7082H178.552C178.573 17.3956 178.8 17.9192 179.24 18.2821C179.643 18.6066 180.161 18.7688 180.797 18.7688C181.5 18.7688 182.142 18.6597 182.72 18.4399L182.968 19.5137C182.292 19.7998 181.496 19.9429 180.574 19.9429C179.47 19.9429 178.6 19.6258 177.971 18.9915C177.339 18.3573 177.025 17.5062 177.025 16.4383C177.025 15.3896 177.317 14.5164 177.906 13.8202C178.52 13.0768 179.351 12.7051 180.399 12.7051C181.425 12.7051 182.204 13.0768 182.73 13.8202C183.155 14.4102 183.366 15.1403 183.366 16.0076ZM181.853 15.6079C181.865 15.1492 181.761 14.7539 181.546 14.4205C181.27 13.9913 180.851 13.7759 180.284 13.7759C179.767 13.7759 179.345 13.9854 179.022 14.4058C178.759 14.7406 178.603 15.1403 178.552 15.6079H181.853Z" fill="white"></path>',25),p=[r];function d(C,i){return t.openBlock(),t.createElementBlock("svg",n,p)}const c=s._export_sfc(l,[["render",d]]),h={},V={width:"204",height:"59",viewBox:"0 0 204 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f=t.createStaticVNode('<path d="M196.396 59H7.55371C3.40106 59 0 55.6794 0 51.625V7.375C0 3.32059 3.40106 7.56029e-07 7.55371 7.56029e-07H196.396C200.549 7.56029e-07 203.95 3.32059 203.95 7.375V51.625C203.95 55.6794 200.549 59 196.396 59Z" fill="black"></path><path d="M196.396 1.18184C199.894 1.18184 202.74 3.96038 202.74 7.375V51.625C202.74 55.0396 199.894 57.8182 196.396 57.8182H7.55371C4.05634 57.8182 1.21048 55.0396 1.21048 51.625V7.375C1.21048 3.96038 4.05634 1.18184 7.55371 1.18184H196.396ZM196.396 7.56029e-07H7.55371C3.40106 7.56029e-07 0 3.32059 0 7.375V51.625C0 55.6794 3.40106 59 7.55371 59H196.396C200.549 59 203.95 55.6794 203.95 51.625V7.375C203.95 3.32059 200.549 7.56029e-07 196.396 7.56029e-07Z" fill="#A6A6A6"></path><path d="M71.6353 15.1096C71.6353 16.3413 71.2576 17.3277 70.5136 18.0633C69.6581 18.9354 68.5439 19.3742 67.1786 19.3742C65.8737 19.3742 64.7595 18.928 63.8455 18.0486C62.9297 17.1562 62.4727 16.061 62.4727 14.7501C62.4727 13.4392 62.9297 12.344 63.8455 11.459C64.7595 10.5722 65.8737 10.126 67.1786 10.126C67.8282 10.126 68.4476 10.2569 69.0387 10.5003C69.6279 10.7455 70.1076 11.0774 70.455 11.4867L69.6657 12.2647C69.0595 11.5659 68.2342 11.2212 67.1786 11.2212C66.2268 11.2212 65.4016 11.5457 64.701 12.2002C64.0079 12.8566 63.6605 13.7065 63.6605 14.7501C63.6605 15.7937 64.0079 16.651 64.701 17.3074C65.4016 17.9545 66.2268 18.2864 67.1786 18.2864C68.1889 18.2864 69.0387 17.9545 69.7091 17.3C70.151 16.8667 70.4022 16.2694 70.4683 15.506H67.1786V14.4404H71.5673C71.6202 14.6708 71.6353 14.8939 71.6353 15.1096V15.1096Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M78.5981 11.4151H74.4756V14.2176H78.1921V15.2833H74.4756V18.0858H78.5981V19.1717H73.3086V10.3291H78.5981V11.4151Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M83.5121 19.1717H82.345V11.4151H79.8164V10.3291H86.0425V11.4151H83.5121V19.1717V19.1717Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M90.5488 19.1717V10.3291H91.714V19.1717H90.5488Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M96.8773 19.1717H95.7197V11.4151H93.1816V10.3291H99.4153V11.4151H96.8773V19.1717Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M111.203 18.0338C110.31 18.928 109.203 19.3742 107.883 19.3742C106.556 19.3742 105.449 18.928 104.556 18.0338C103.664 17.1414 103.221 16.0463 103.221 14.7501C103.221 13.4539 103.664 12.3588 104.556 11.4664C105.449 10.5722 106.556 10.126 107.883 10.126C109.196 10.126 110.302 10.5722 111.196 11.4738C112.094 12.3735 112.538 13.4613 112.538 14.7501C112.538 16.0463 112.094 17.1414 111.203 18.0338ZM105.419 17.2926C106.091 17.9545 106.909 18.2864 107.883 18.2864C108.85 18.2864 109.675 17.9545 110.34 17.2926C111.01 16.6307 111.35 15.7808 111.35 14.7501C111.35 13.7194 111.01 12.8695 110.34 12.2076C109.675 11.5457 108.85 11.2138 107.883 11.2138C106.909 11.2138 106.091 11.5457 105.419 12.2076C104.748 12.8695 104.409 13.7194 104.409 14.7501C104.409 15.7808 104.748 16.6307 105.419 17.2926V17.2926Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M114.176 19.1717V10.3291H115.592L119.996 17.2063H120.047L119.996 15.5063V10.3291H121.161V19.1717H119.945L115.333 11.9553H115.282L115.333 13.6626V19.1717H114.176V19.1717Z" fill="white" stroke="white" stroke-width="0.16" stroke-miterlimit="10"></path><path d="M102.934 32.0853C99.3852 32.0853 96.4864 34.7218 96.4864 38.3596C96.4864 41.9678 99.3852 44.632 102.934 44.632C106.489 44.632 109.388 41.9678 109.388 38.3596C109.388 34.7218 106.489 32.0853 102.934 32.0853ZM102.934 42.1614C100.987 42.1614 99.3115 40.5923 99.3115 38.3596C99.3115 36.0973 100.987 34.5559 102.934 34.5559C104.88 34.5559 106.563 36.0973 106.563 38.3596C106.563 40.5923 104.88 42.1614 102.934 42.1614V42.1614ZM88.8666 32.0853C85.3107 32.0853 82.4195 34.7218 82.4195 38.3596C82.4195 41.9678 85.3107 44.632 88.8666 44.632C92.4206 44.632 95.3137 41.9678 95.3137 38.3596C95.3137 34.7218 92.4206 32.0853 88.8666 32.0853ZM88.8666 42.1614C86.9178 42.1614 85.2371 40.5923 85.2371 38.3596C85.2371 36.0973 86.9178 34.5559 88.8666 34.5559C90.8136 34.5559 92.4886 36.0973 92.4886 38.3596C92.4886 40.5923 90.8136 42.1614 88.8666 42.1614ZM72.1276 34.0083V36.6744H78.6484C78.4576 38.1641 77.9478 39.2593 77.1659 40.0226C76.2142 40.9445 74.7318 41.9678 72.1276 41.9678C68.1147 41.9678 64.9724 38.8057 64.9724 34.8878C64.9724 30.9698 68.1147 27.8078 72.1276 27.8078C74.2974 27.8078 75.8762 28.6356 77.0413 29.7087L78.9656 27.8299C77.3359 26.3107 75.168 25.1436 72.1276 25.1436C66.6248 25.1436 62 29.5151 62 34.8878C62 40.2605 66.6248 44.632 72.1276 44.632C75.1019 44.632 77.3359 43.6806 79.0921 41.8959C80.8918 40.1388 81.4527 37.6682 81.4527 35.6732C81.4527 35.0537 81.3998 34.484 81.3054 34.0083H72.1276ZM140.576 36.0752C140.045 34.6721 138.408 32.0853 135.073 32.0853C131.768 32.0853 129.016 34.6278 129.016 38.3596C129.016 41.8737 131.74 44.632 135.39 44.632C138.341 44.632 140.045 42.8749 140.745 41.8516L138.555 40.4264C137.824 41.47 136.829 42.1614 135.39 42.1614C133.96 42.1614 132.935 41.5216 132.278 40.2605L140.872 36.7887L140.576 36.0752V36.0752ZM131.813 38.1641C131.74 35.7451 133.738 34.5061 135.169 34.5061C136.291 34.5061 137.242 35.0537 137.56 35.8373L131.813 38.1641V38.1641ZM124.828 44.2503H127.653V25.8128H124.828V44.2503ZM120.201 33.4828H120.107C119.472 32.749 118.262 32.0853 116.728 32.0853C113.511 32.0853 110.568 34.8435 110.568 38.3798C110.568 41.8959 113.511 44.632 116.728 44.632C118.262 44.632 119.472 43.9627 120.107 43.2068H120.201V44.1065C120.201 46.5052 118.889 47.794 116.772 47.794C115.046 47.794 113.975 46.5771 113.533 45.5539L111.076 46.555C111.785 48.2181 113.66 50.2646 116.772 50.2646C120.084 50.2646 122.879 48.3619 122.879 43.7322V32.4669H120.201V33.4828V33.4828ZM116.97 42.1614C115.023 42.1614 113.393 40.5702 113.393 38.3798C113.393 36.1692 115.023 34.5559 116.97 34.5559C118.889 34.5559 120.401 36.1692 120.401 38.3798C120.401 40.5702 118.889 42.1614 116.97 42.1614V42.1614ZM153.802 25.8128H147.045V44.2503H149.863V37.2644H153.802C156.931 37.2644 160 35.0537 160 31.5377C160 28.0235 156.924 25.8128 153.802 25.8128V25.8128ZM153.876 34.6997H149.863V28.3775H153.876C155.979 28.3775 157.18 30.083 157.18 31.5377C157.18 32.9647 155.979 34.6997 153.876 34.6997ZM171.293 32.0502C169.257 32.0502 167.14 32.9279 166.269 34.873L168.77 35.8963C169.308 34.873 170.297 34.5412 171.344 34.5412C172.805 34.5412 174.288 35.3985 174.31 36.9122V37.1058C173.8 36.8182 172.709 36.3923 171.366 36.3923C168.673 36.3923 165.929 37.8396 165.929 40.5407C165.929 43.0113 168.135 44.6025 170.615 44.6025C172.511 44.6025 173.557 43.7673 174.214 42.7956H174.31V44.2208H177.032V37.1482C177.032 33.8792 174.531 32.0502 171.293 32.0502ZM170.953 42.154C170.031 42.154 168.747 41.7078 168.747 40.5923C168.747 39.1653 170.348 38.6177 171.735 38.6177C172.975 38.6177 173.557 38.885 174.31 39.2372C174.089 40.9445 172.584 42.154 170.953 42.154V42.154ZM186.946 32.454L183.707 40.4467H183.611L180.263 32.454H177.224L182.255 43.6235L179.385 49.8387H182.329L190.081 32.454H186.946V32.454ZM161.548 44.2503H164.373V25.8128H161.548V44.2503Z" fill="white"></path><path d="M15.7651 11.1197C15.3213 11.5732 15.0645 12.2794 15.0645 13.1939V45.8135C15.0645 46.728 15.3213 47.4342 15.7651 47.8877L15.8746 47.9873L34.5964 29.7157V29.2843L15.8746 11.0127L15.7651 11.1197Z" fill="url(#paint0_linear_1523_1188)"></path><path d="M40.8294 35.8096L34.5957 29.716V29.2845L40.837 23.1909L40.9767 23.2702L48.368 27.3763C50.4774 28.5415 50.4774 30.459 48.368 31.6316L40.9767 35.7303L40.8294 35.8096V35.8096Z" fill="url(#paint1_linear_1523_1188)"></path><path d="M40.976 35.7304L34.5951 29.5004L15.7637 47.8881C16.4643 48.6071 17.6068 48.6938 18.906 47.9747L40.976 35.7304" fill="url(#paint2_linear_1523_1188)"></path><path d="M40.976 23.27L18.906 11.0256C17.6068 10.3139 16.4643 10.4006 15.7637 11.1197L34.5951 29.5L40.976 23.27Z" fill="url(#paint3_linear_1523_1188)"></path><defs><linearGradient id="paint0_linear_1523_1188" x1="32.9342" y1="46.1532" x2="8.18722" y2="20.8066" gradientUnits="userSpaceOnUse"><stop stop-color="#00A0FF"></stop><stop offset="0.0066" stop-color="#00A1FF"></stop><stop offset="0.2601" stop-color="#00BEFF"></stop><stop offset="0.5122" stop-color="#00D2FF"></stop><stop offset="0.7604" stop-color="#00DFFF"></stop><stop offset="1" stop-color="#00E3FF"></stop></linearGradient><linearGradient id="paint1_linear_1523_1188" x1="51.1147" y1="29.4982" x2="14.5595" y2="29.4982" gradientUnits="userSpaceOnUse"><stop stop-color="#FFE000"></stop><stop offset="0.4087" stop-color="#FFBD00"></stop><stop offset="0.7754" stop-color="#FFA500"></stop><stop offset="1" stop-color="#FF9C00"></stop></linearGradient><linearGradient id="paint2_linear_1523_1188" x1="37.5063" y1="26.1136" x2="3.94738" y2="-8.25843" gradientUnits="userSpaceOnUse"><stop stop-color="#FF3A44"></stop><stop offset="1" stop-color="#C31162"></stop></linearGradient><linearGradient id="paint3_linear_1523_1188" x1="11.0234" y1="58.7401" x2="26.009" y2="43.3916" gradientUnits="userSpaceOnUse"><stop stop-color="#32A071"></stop><stop offset="0.0685" stop-color="#2DA771"></stop><stop offset="0.4762" stop-color="#15CF74"></stop><stop offset="0.8009" stop-color="#06E775"></stop><stop offset="1" stop-color="#00F076"></stop></linearGradient></defs>',15),m=[f];function H(C,i){return t.openBlock(),t.createElementBlock("svg",V,m)}const _=s._export_sfc(h,[["render",H]]);const u={id:"mobileApp"},w={class:"cols-2-1_2 gap-big pd-big pd-t-big o-hidden bg-black t-white radius-big"},g={class:"z-index-1 w-1/2"},M=["src"],L={class:"z-index-1 w-1/2"},Z={class:"mn-t-medium mn-semi w-m-40r"},y={class:"t-transp mn-big p-big w-m-33r"},b={class:"mn-big gap-medium cols-2"},k={class:"feature"},E={class:"mn-small"},x={class:"t-transp p-medium"},v={class:"feature"},N={class:"mn-small"},F={class:"t-transp p-medium"},S={class:"feature"},A={class:"mn-small"},D={class:"t-transp p-medium"},I={class:"feature"},U={class:"mn-small"},z={class:"t-transp p-medium"},B={class:"w-m-33r flex-nowrap flex gap-medium"},G={class:"w-100 h-100"},$={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},O={class:"w-100 h-100"},R={class:"z-index-2 pd-tin radius-big bg-main t-semi uppercase pd-micro pos-absolute pos-r-small-negative pos-t-small-negative"},q={key:0,class:"grid-lines"},P={__name:"MobileApp",props:{mockupImage:{type:String,default:"/assets/images/landing/mockup.png"},bgImage:{type:String,default:""},textData:{type:Object,default:()=>({messages:{en:{title:"Explore the Cannabis World at Your Fingertips",description:"Intuitive, Efficient, and Customized for Your Cannabis Needs",features:{instantUpdates:{title:"Instant Updates",text:"Receive real-time notifications for new product releases and community updates. Always stay in the loop."},locate:{title:"Locate with Ease",text:"Discover nearby dispensaries and cannabis events with our integrated geolocation services."},wallet:{title:"Wallet Integration",text:"Quickly and securely manage your transactions with integrated digital wallet functionality. Safety and convenience come together."},customization:{title:"Customization by AI",text:"Experience the AI difference with personalized recommendations based on your preferences and trends in the community."}}}}})}},setup(C){const i=C,{t:e}=a.useI18n(i.textData);return(o,j)=>(t.openBlock(),t.createElementBlock("div",u,[t.createElementVNode("section",w,[t.createElementVNode("div",g,[t.createElementVNode("img",{src:(o.FILE_SERVER_URL||"")+C.mockupImage,alt:"Mobile App Mockup",class:"app-mockup"},null,8,M)]),t.createElementVNode("div",L,[t.createElementVNode("h2",Z,t.toDisplayString(t.unref(e)("title")),1),t.createElementVNode("p",y,t.toDisplayString(t.unref(e)("description")),1),t.createElementVNode("div",b,[t.createElementVNode("div",k,[t.createElementVNode("h3",E,t.toDisplayString(t.unref(e)("features.instantUpdates.title")),1),t.createElementVNode("p",x,t.toDisplayString(t.unref(e)("features.instantUpdates.text")),1)]),t.createElementVNode("div",v,[t.createElementVNode("h3",N,t.toDisplayString(t.unref(e)("features.locate.title")),1),t.createElementVNode("p",F,t.toDisplayString(t.unref(e)("features.locate.text")),1)]),t.createElementVNode("div",S,[t.createElementVNode("h3",A,t.toDisplayString(t.unref(e)("features.wallet.title")),1),t.createElementVNode("p",D,t.toDisplayString(t.unref(e)("features.wallet.text")),1)]),t.createElementVNode("div",I,[t.createElementVNode("h3",U,t.toDisplayString(t.unref(e)("features.customization.title")),1),t.createElementVNode("p",z,t.toDisplayString(t.unref(e)("features.customization.text")),1)])]),t.createElementVNode("div",B,[t.createElementVNode("div",G,[t.createElementVNode("span",$,t.toDisplayString(t.unref(e)("features.soonLabel")),1),t.createVNode(c,{class:"w-100 h-100",alt:"Download on App Store"})]),t.createElementVNode("div",O,[t.createElementVNode("span",R,t.toDisplayString(t.unref(e)("features.soonLabel")),1),t.createVNode(_,{class:"w-100 h-100",alt:"Download on Google Play"})])])]),t.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-0 pos-r-0 z-index-0 grid",style:t.normalizeStyle({backgroundImage:`url(${C.bgImage})`})},[C.bgImage?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",q))],4)])]))}};exports.MobileApp=P;