@ozdao/prometheus-framework 0.2.70 → 0.2.73
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +8 -21
- package/dist/auth.server.mjs +8 -21
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +306 -48
- package/dist/events.server.mjs +306 -48
- package/dist/files.server.js +9 -9
- package/dist/files.server.mjs +9 -9
- package/dist/gallery.server.js +2 -2
- package/dist/gallery.server.mjs +2 -2
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/mailing-BX0q8DIs.js +77 -0
- package/dist/mailing-Cdp8NXhP.mjs +78 -0
- package/dist/main-C0wbYN41.mjs +13744 -0
- package/dist/main-vACUb_p5.js +91 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -0
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3174 -0
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/ownership.schema-BQmRnCsc.mjs +184 -0
- package/dist/ownership.schema-D13NqEgo.js +183 -0
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -1
- package/dist/prometheus-framework/src/components/Completion/Completion.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Completion/Completion.vue.js +53 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +56 -57
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +373 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +51 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +1 -51
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -46
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +19 -20
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +81 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +127 -83
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +8 -5
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +24 -24
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +21 -14
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +205 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +157 -72
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +65 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +79 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +34 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +27 -22
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +24 -20
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +39 -27
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue.js +57 -0
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/users.server.js +5 -5
- package/dist/users.server.mjs +5 -5
- package/dist/web-BJSg7vH_.js +1 -0
- package/dist/web-DOXRo6XB.mjs +54 -0
- package/package.json +1 -1
- package/src/modules/users/users.server.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue2.cjs");const T=require("../../../constructor/components/sections/Constructor.vue.cjs"),C=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const k=require("../../../../components/Block/Block.vue.cjs"),P=require("../../../../components/Popup/Popup.vue.cjs"),n=require("../../../../components/Field/Field.vue.cjs"),L=require("../../../../components/FieldTags/BlockTags.vue.cjs"),V=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=require("../../../../components/Upload/Upload.vue.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),M=require("../../../../components/Button/Button.vue.cjs"),N=require("../../../icons/navigation/IconDelete.vue.cjs"),D=require("vue-router"),u=require("../../store/events.cjs"),i=require("../../../auth/store/auth.cjs"),O=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const S={key:0,class:"h-100 pd-thin"},R={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},F=e.createElementVNode("h4",null,"Upload Event Cover",-1),G={key:0,class:"mn-b-small"},I={key:2,class:"mn-b-small"},A={key:4,class:"mn-b-semi"},z=e.createElementVNode("h4",{class:"mn-b-thin"}," Hero Section ",-1),H=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Hero Section ",-1),$=e.createElementVNode("p",null,"Need to upload in webm format because of needs of optimization",-1),Y=e.createElementVNode("h5",{class:"mn-b-thin"}," Ticket ",-1),j={class:"mn-b-small gap-small cols-2-fit-content"},J={class:"gap-thin flex-nowrap flex w-100"},K=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),Q=e.createElementVNode("h4",{class:"mn-b-thin"}," Guest Section ",-1),W={class:"gap-thin cols-3"},X=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Guests Section ",-1),Z={class:"gap-thin flex-nowrap flex w-100"},ee={class:"w-100"},te={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},le=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),ae=e.createElementVNode("h4",{class:"mn-b-thin"}," Lineup Section ",-1),se={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},ne=e.createElementVNode("h5",{class:"mn-b-thin"}," Background in Lineup Section ",-1),ie=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),oe=e.createElementVNode("h4",{class:"mn-b-thin"}," Previous Party Section ",-1),re=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Previous Partys Section ",-1),de=e.createElementVNode("h3",{class:"mn-b-small"},"Date",-1),ue=e.createElementVNode("h3",{class:"mn-b-small"},"Description",-1),ce={key:5,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},pe={key:6,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},me={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},fe=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),ge=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),be={key:0,class:"mn-b-thin"},he={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},ve={__name:"EditEvent",setup(ke){const p=D.useRoute(),m=D.useRouter();let t=e.ref(null),h=e.ref(null);const v=e.ref([]),o=e.ref(null),r=e.ref(),w=()=>({top:0,left:0});e.onMounted(async()=>{if(p.params.url){const a=await u.read({user:i.state.user._id,url:p.params.url});t.value=a.pop(),console.log(t.value);const l=t.value.date.start,c=t.value.date.end;r.value=[l,c]}else{u.clean(),t.value=u.state.current;const a=new Date,l=new Date;r.value=[a,l]}t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.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 s=await O.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});h.value=s.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(!1);function y(){g.value=!0}function E(){g.value=!1}function U(){v.value.length>0&&v.value.map(s=>s.text),t.value.status="draft",t.value.date={start:r.value[0],end:r.value[1]},p.params.url?u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function x(){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",t.value.date={start:r.value[0],end:r.value[1]},console.log(r.value),p.params.url?(console.log(t.value),u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}function B(){confirm("Are you sure you want to delete this event?")&&u.remove(t.value._id).then(s=>{m.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(s=>{console.error(s)})}return(s,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",S,[e.createElementVNode("div",R,[e.createVNode(b.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"specials",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo"]),F]),e.createVNode(n.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-b-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),i.state.access.roles&&(i.state.access.roles.includes("ROLE_MODERATOR")||i.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",G," Tickets ")):e.createCommentVNode("",!0),i.state.access.roles&&(i.state.access.roles.includes("ROLE_MODERATOR")||i.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mn-b-semi w-100 bg-grey pd-medium radius-small",onClick:a[3]||(a[3]=l=>e.unref(m).push({name:"Edit Event Tickets",params:{url:e.unref(p).params.url}}))}," Edit tickets ")):e.createCommentVNode("",!0),i.state.access.roles&&(i.state.access.roles.includes("ROLE_MODERATOR")||i.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",I," Special Details ")):e.createCommentVNode("",!0),i.state.access.roles&&(i.state.access.roles.includes("ROLE_MODERATOR")||i.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(V.default,{key:3,label:"Special",radio:e.unref(t).special,"onUpdate:radio":a[4]||(a[4]=l=>e.unref(t).special=!e.unref(t).special),class:"mn-b-semi w-100 bg-black t-white pd-medium radius-small"},null,8,["radio"])):e.createCommentVNode("",!0),e.unref(t).special?(e.openBlock(),e.createElementBlock("div",A,[z,e.createVNode(n.default,{field:e.unref(t).specialData.subtitle,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).specialData.subtitle=l),placeholder:"Event subtitle",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(q.default,{images:e.unref(t).specialData.logos,uploadPath:"/specials",text:{title:"Drag & Drop Your Logos Here",subtitle:"Files supported: JPG, PNG, GIF"},options:{showTitle:!0,showText:!1},"onUpdate:images":a[6]||(a[6]=l=>e.unref(t).specialData.logos=l),class:"mn-b-thin bg-grey radius-small"},null,8,["images"]),H,$,e.createVNode(f.default,{field:e.unref(t).specialData.video,"onUpdate:field":a[7]||(a[7]=l=>e.unref(t).specialData.video=l),placeholder:"Upload video",onFileChange:a[8]||(a[8]=l=>e.unref(t).specialData.video=l),uploadPath:"specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),Y,e.createElementVNode("div",j,[e.createVNode(b.default,{photo:e.unref(t).specialData.ticketImage,"onUpdate:photo":a[9]||(a[9]=l=>e.unref(t).specialData.ticketImage=l),uploadPath:"/specials",class:"aspect-1x1 w-4r o-hidden radius-extra"},null,8,["photo"]),e.createElementVNode("div",J,[e.createVNode(n.default,{field:e.unref(t).specialData.ticketLinkStripe,"onUpdate:field":a[10]||(a[10]=l=>e.unref(t).specialData.ticketLinkStripe=l),placeholder:"Link to ticket stripe payment page",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.ticketPrice,"onUpdate:field":a[11]||(a[11]=l=>e.unref(t).specialData.ticketPrice=l),type:"number",placeholder:"Ticket price in baht",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.ticketText,"onUpdate:field":a[12]||(a[12]=l=>e.unref(t).specialData.ticketText=l),placeholder:"Promotion text for ticket in hero ",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.ticketTextButton,"onUpdate:field":a[13]||(a[13]=l=>e.unref(t).specialData.ticketTextButton=l),placeholder:"Text on 'Buy Ticket' button ",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"])])]),K,Q,e.createVNode(n.default,{field:e.unref(t).specialData.guestTitle,"onUpdate:field":a[14]||(a[14]=l=>e.unref(t).specialData.guestTitle=l),placeholder:"Title for Main Guest section",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestDescription,"onUpdate:field":a[15]||(a[15]=l=>e.unref(t).specialData.guestDescription=l),placeholder:"Description for Main Guest section",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createElementVNode("div",W,[e.createVNode(n.default,{field:e.unref(t).specialData.guestFacebook,"onUpdate:field":a[16]||(a[16]=l=>e.unref(t).specialData.guestFacebook=l),placeholder:"Facebook of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestInstagram,"onUpdate:field":a[17]||(a[17]=l=>e.unref(t).specialData.guestInstagram=l),placeholder:"Instagram of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestTwitter,"onUpdate:field":a[18]||(a[18]=l=>e.unref(t).specialData.guestTwitter=l),placeholder:"Twitter of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestTelegram,"onUpdate:field":a[19]||(a[19]=l=>e.unref(t).specialData.guestTelegram=l),placeholder:"Telegram of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestSoundcloud,"onUpdate:field":a[20]||(a[20]=l=>e.unref(t).specialData.guestSoundcloud=l),placeholder:"Link to Main Guest soundcloud track",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestSpotify,"onUpdate:field":a[21]||(a[21]=l=>e.unref(t).specialData.guestSpotify=l),placeholder:"Link to Main guest spotify track",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestYoutube,"onUpdate:field":a[22]||(a[22]=l=>e.unref(t).specialData.guestYoutube=l),placeholder:"Link to Main guest youtube video",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"])]),X,e.createVNode(f.default,{field:e.unref(t).specialData.guestVideo,"onUpdate:field":a[23]||(a[23]=l=>e.unref(t).specialData.guestVideo=l),placeholder:"Upload video",onFileChange:a[24]||(a[24]=l=>e.unref(t).specialData.guestVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),e.createVNode(k.default,{title:"Guests",placeholder:"No guests added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.guests.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 mn-b-thin t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.guests,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-small gap-small cols-2-fit-content",key:c},[e.createVNode(b.default,{photo:l.photo,"onUpdate:photo":d=>l.photo=d,uploadPath:"/specials",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","onUpdate:photo"]),e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createVNode(n.default,{field:l.name,"onUpdate:field":d=>l.name=d,placeholder:"Name",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(n.default,{field:l.description,"onUpdate:field":d=>l.description=d,placeholder:"Description",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"])]),e.createElementVNode("div",te,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.guests.splice(c,1),class:"i-medium"},null,8,["onClick"])])])]))),128))]),_:1},8,["actions"]),le,ae,e.createVNode(k.default,{title:"Line Up",placeholder:"No line ups added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.lineup.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.lineup,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-thin gap-small flex-nowrap flex",key:c},[e.createVNode(n.default,{field:l.name,"onUpdate:field":d=>l.name=d,placeholder:"Name",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(n.default,{field:l.time,"onUpdate:field":d=>l.time=d,placeholder:"Time",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",se,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.lineup.splice(c,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),ne,e.createVNode(f.default,{field:e.unref(t).specialData.lineupBackground,"onUpdate:field":a[25]||(a[25]=l=>e.unref(t).specialData.lineupBackground=l),placeholder:"Upload image",onFileChange:a[26]||(a[26]=l=>e.unref(t).specialData.lineupBackground=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),ie,oe,re,e.createVNode(n.default,{field:e.unref(t).specialData.previousTitle,"onUpdate:field":a[27]||(a[27]=l=>e.unref(t).specialData.previousTitle=l),placeholder:"Title",value:"Explore our exclusive party archive",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.previousDescription,"onUpdate:field":a[28]||(a[28]=l=>e.unref(t).specialData.previousDescription=l),label:"Description",value:"Experience the ultimate party vibe at The Commune! Elevate your evening with distinctive and exhilarating activities, ensuring an unforgettable time. Dive into the excitement and make every moment special.",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.previousLinkText,"onUpdate:field":a[29]||(a[29]=l=>e.unref(t).specialData.previousLinkText=l),label:"Button",value:"Check In Instagram",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.previousLink,"onUpdate:field":a[30]||(a[30]=l=>e.unref(t).specialData.previousLink=l),label:"Link",value:"https://www.instagram.com/thecommune.phuket/",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).specialData.previousVideo,"onUpdate:field":a[31]||(a[31]=l=>e.unref(t).specialData.previousVideo=l),placeholder:"Upload image",onFileChange:a[32]||(a[32]=l=>e.unref(t).specialData.previousVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"])])):e.createCommentVNode("",!0),de,e.createVNode(e.unref(C.default),{modelValue:r.value,"onUpdate:modelValue":a[33]||(a[33]=l=>r.value=l),"alt-position":w,range:"",class:"mn-b-semi"},null,8,["modelValue"]),ue,e.unref(t)?(e.openBlock(),e.createElementBlock("section",ce,[e.createVNode(T.default,{content:e.unref(t).content,onUpdate:a[34]||(a[34]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",pe,[e.createElementVNode("div",me,[e.unref(p).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[35]||(a[35]=l=>B()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[36]||(a[36]=l=>U()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[37]||(a[37]=l=>y()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(P.default,{title:"Добавить участника",onClosePopup:E,isPopupOpen:g.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[fe,e.createVNode(L.default,{onTagsChanged:a[38]||(a[38]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),ge,e.createVNode(_.default,{modelValue:o.value,"onUpdate:modelValue":a[39]||(a[39]=l=>o.value=l),options:e.unref(h),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",be,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",he,[e.createVNode(V.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[40]||(a[40]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(M.default,{submit:x,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)}};exports.default=ve;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue.cjs");const T=require("../../../constructor/components/sections/Constructor.vue.cjs"),C=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const k=require("../../../../components/Block/Block.vue.cjs"),P=require("../../../../components/Popup/Popup.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),L=require("../../../../components/FieldTags/BlockTags.vue.cjs"),V=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=require("../../../../components/Upload/Upload.vue.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),M=require("../../../../components/Button/Button.vue2.cjs"),N=require("../../../icons/navigation/IconDelete.vue.cjs"),D=require("vue-router"),u=require("../../store/events.cjs"),i=require("../../../auth/store/auth.cjs"),O=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const S={key:0,class:"h-100 pd-thin"},R={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},F=e.createElementVNode("h4",null,"Upload Event Cover",-1),G={key:0,class:"mn-b-small"},I={key:2,class:"mn-b-small"},A={key:4,class:"mn-b-semi"},z=e.createElementVNode("h4",{class:"mn-b-thin"}," Hero Section ",-1),H=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Hero Section ",-1),$=e.createElementVNode("p",null,"Need to upload in webm format because of needs of optimization",-1),Y=e.createElementVNode("h5",{class:"mn-b-thin"}," Ticket ",-1),j={class:"mn-b-small gap-small cols-2-fit-content"},J={class:"gap-thin flex-nowrap flex w-100"},K=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),Q=e.createElementVNode("h4",{class:"mn-b-thin"}," Guest Section ",-1),W={class:"gap-thin cols-3"},X=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Guests Section ",-1),Z={class:"gap-thin flex-nowrap flex w-100"},ee={class:"w-100"},te={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},le=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),ae=e.createElementVNode("h4",{class:"mn-b-thin"}," Lineup Section ",-1),se={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},ne=e.createElementVNode("h5",{class:"mn-b-thin"}," Background in Lineup Section ",-1),ie=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),oe=e.createElementVNode("h4",{class:"mn-b-thin"}," Previous Party Section ",-1),re=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Previous Partys Section ",-1),de=e.createElementVNode("h3",{class:"mn-b-small"},"Date",-1),ue=e.createElementVNode("h3",{class:"mn-b-small"},"Description",-1),ce={key:5,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},pe={key:6,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},me={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},fe=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),ge=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),be={key:0,class:"mn-b-thin"},he={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},ve={__name:"EditEvent",setup(ke){const p=D.useRoute(),m=D.useRouter();let t=e.ref(null),h=e.ref(null);const v=e.ref([]),o=e.ref(null),r=e.ref(),w=()=>({top:0,left:0});e.onMounted(async()=>{if(p.params.url){const a=await u.read({user:i.state.user._id,url:p.params.url});t.value=a.pop(),console.log(t.value);const l=t.value.date.start,c=t.value.date.end;r.value=[l,c]}else{u.clean(),t.value=u.state.current;const a=new Date,l=new Date;r.value=[a,l]}t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.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 s=await O.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});h.value=s.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(!1);function y(){g.value=!0}function E(){g.value=!1}function U(){v.value.length>0&&v.value.map(s=>s.text),t.value.status="draft",t.value.date={start:r.value[0],end:r.value[1]},p.params.url?u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function x(){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",t.value.date={start:r.value[0],end:r.value[1]},console.log(r.value),p.params.url?(console.log(t.value),u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}function B(){confirm("Are you sure you want to delete this event?")&&u.remove(t.value._id).then(s=>{m.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(s=>{console.error(s)})}return(s,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",S,[e.createElementVNode("div",R,[e.createVNode(b.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"specials",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo"]),F]),e.createVNode(n.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-b-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),i.state.access.roles&&(i.state.access.roles.includes("ROLE_MODERATOR")||i.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",G," Tickets ")):e.createCommentVNode("",!0),i.state.access.roles&&(i.state.access.roles.includes("ROLE_MODERATOR")||i.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mn-b-semi w-100 bg-grey pd-medium radius-small",onClick:a[3]||(a[3]=l=>e.unref(m).push({name:"Edit Event Tickets",params:{url:e.unref(p).params.url}}))}," Edit tickets ")):e.createCommentVNode("",!0),i.state.access.roles&&(i.state.access.roles.includes("ROLE_MODERATOR")||i.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",I," Special Details ")):e.createCommentVNode("",!0),i.state.access.roles&&(i.state.access.roles.includes("ROLE_MODERATOR")||i.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(V.default,{key:3,label:"Special",radio:e.unref(t).special,"onUpdate:radio":a[4]||(a[4]=l=>e.unref(t).special=!e.unref(t).special),class:"mn-b-semi w-100 bg-black t-white pd-medium radius-small"},null,8,["radio"])):e.createCommentVNode("",!0),e.unref(t).special?(e.openBlock(),e.createElementBlock("div",A,[z,e.createVNode(n.default,{field:e.unref(t).specialData.subtitle,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).specialData.subtitle=l),placeholder:"Event subtitle",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(q.default,{images:e.unref(t).specialData.logos,uploadPath:"/specials",text:{title:"Drag & Drop Your Logos Here",subtitle:"Files supported: JPG, PNG, GIF"},options:{showTitle:!0,showText:!1},"onUpdate:images":a[6]||(a[6]=l=>e.unref(t).specialData.logos=l),class:"mn-b-thin bg-grey radius-small"},null,8,["images"]),H,$,e.createVNode(f.default,{field:e.unref(t).specialData.video,"onUpdate:field":a[7]||(a[7]=l=>e.unref(t).specialData.video=l),placeholder:"Upload video",onFileChange:a[8]||(a[8]=l=>e.unref(t).specialData.video=l),uploadPath:"specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),Y,e.createElementVNode("div",j,[e.createVNode(b.default,{photo:e.unref(t).specialData.ticketImage,"onUpdate:photo":a[9]||(a[9]=l=>e.unref(t).specialData.ticketImage=l),uploadPath:"/specials",class:"aspect-1x1 w-4r o-hidden radius-extra"},null,8,["photo"]),e.createElementVNode("div",J,[e.createVNode(n.default,{field:e.unref(t).specialData.ticketLinkStripe,"onUpdate:field":a[10]||(a[10]=l=>e.unref(t).specialData.ticketLinkStripe=l),placeholder:"Link to ticket stripe payment page",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.ticketPrice,"onUpdate:field":a[11]||(a[11]=l=>e.unref(t).specialData.ticketPrice=l),type:"number",placeholder:"Ticket price in baht",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.ticketText,"onUpdate:field":a[12]||(a[12]=l=>e.unref(t).specialData.ticketText=l),placeholder:"Promotion text for ticket in hero ",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.ticketTextButton,"onUpdate:field":a[13]||(a[13]=l=>e.unref(t).specialData.ticketTextButton=l),placeholder:"Text on 'Buy Ticket' button ",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"])])]),K,Q,e.createVNode(n.default,{field:e.unref(t).specialData.guestTitle,"onUpdate:field":a[14]||(a[14]=l=>e.unref(t).specialData.guestTitle=l),placeholder:"Title for Main Guest section",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestDescription,"onUpdate:field":a[15]||(a[15]=l=>e.unref(t).specialData.guestDescription=l),placeholder:"Description for Main Guest section",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createElementVNode("div",W,[e.createVNode(n.default,{field:e.unref(t).specialData.guestFacebook,"onUpdate:field":a[16]||(a[16]=l=>e.unref(t).specialData.guestFacebook=l),placeholder:"Facebook of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestInstagram,"onUpdate:field":a[17]||(a[17]=l=>e.unref(t).specialData.guestInstagram=l),placeholder:"Instagram of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestTwitter,"onUpdate:field":a[18]||(a[18]=l=>e.unref(t).specialData.guestTwitter=l),placeholder:"Twitter of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestTelegram,"onUpdate:field":a[19]||(a[19]=l=>e.unref(t).specialData.guestTelegram=l),placeholder:"Telegram of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestSoundcloud,"onUpdate:field":a[20]||(a[20]=l=>e.unref(t).specialData.guestSoundcloud=l),placeholder:"Link to Main Guest soundcloud track",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestSpotify,"onUpdate:field":a[21]||(a[21]=l=>e.unref(t).specialData.guestSpotify=l),placeholder:"Link to Main guest spotify track",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestYoutube,"onUpdate:field":a[22]||(a[22]=l=>e.unref(t).specialData.guestYoutube=l),placeholder:"Link to Main guest youtube video",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"])]),X,e.createVNode(f.default,{field:e.unref(t).specialData.guestVideo,"onUpdate:field":a[23]||(a[23]=l=>e.unref(t).specialData.guestVideo=l),placeholder:"Upload video",onFileChange:a[24]||(a[24]=l=>e.unref(t).specialData.guestVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),e.createVNode(k.default,{title:"Guests",placeholder:"No guests added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.guests.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 mn-b-thin t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.guests,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-small gap-small cols-2-fit-content",key:c},[e.createVNode(b.default,{photo:l.photo,"onUpdate:photo":d=>l.photo=d,uploadPath:"/specials",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","onUpdate:photo"]),e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createVNode(n.default,{field:l.name,"onUpdate:field":d=>l.name=d,placeholder:"Name",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(n.default,{field:l.description,"onUpdate:field":d=>l.description=d,placeholder:"Description",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"])]),e.createElementVNode("div",te,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.guests.splice(c,1),class:"i-medium"},null,8,["onClick"])])])]))),128))]),_:1},8,["actions"]),le,ae,e.createVNode(k.default,{title:"Line Up",placeholder:"No line ups added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.lineup.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.lineup,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-thin gap-small flex-nowrap flex",key:c},[e.createVNode(n.default,{field:l.name,"onUpdate:field":d=>l.name=d,placeholder:"Name",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(n.default,{field:l.time,"onUpdate:field":d=>l.time=d,placeholder:"Time",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",se,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.lineup.splice(c,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),ne,e.createVNode(f.default,{field:e.unref(t).specialData.lineupBackground,"onUpdate:field":a[25]||(a[25]=l=>e.unref(t).specialData.lineupBackground=l),placeholder:"Upload image",onFileChange:a[26]||(a[26]=l=>e.unref(t).specialData.lineupBackground=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),ie,oe,re,e.createVNode(n.default,{field:e.unref(t).specialData.previousTitle,"onUpdate:field":a[27]||(a[27]=l=>e.unref(t).specialData.previousTitle=l),placeholder:"Title",value:"Explore our exclusive party archive",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.previousDescription,"onUpdate:field":a[28]||(a[28]=l=>e.unref(t).specialData.previousDescription=l),label:"Description",value:"Experience the ultimate party vibe at The Commune! Elevate your evening with distinctive and exhilarating activities, ensuring an unforgettable time. Dive into the excitement and make every moment special.",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.previousLinkText,"onUpdate:field":a[29]||(a[29]=l=>e.unref(t).specialData.previousLinkText=l),label:"Button",value:"Check In Instagram",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.previousLink,"onUpdate:field":a[30]||(a[30]=l=>e.unref(t).specialData.previousLink=l),label:"Link",value:"https://www.instagram.com/thecommune.phuket/",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).specialData.previousVideo,"onUpdate:field":a[31]||(a[31]=l=>e.unref(t).specialData.previousVideo=l),placeholder:"Upload image",onFileChange:a[32]||(a[32]=l=>e.unref(t).specialData.previousVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"])])):e.createCommentVNode("",!0),de,e.createVNode(e.unref(C.default),{modelValue:r.value,"onUpdate:modelValue":a[33]||(a[33]=l=>r.value=l),"alt-position":w,range:"",class:"mn-b-semi"},null,8,["modelValue"]),ue,e.unref(t)?(e.openBlock(),e.createElementBlock("section",ce,[e.createVNode(T.default,{content:e.unref(t).content,onUpdate:a[34]||(a[34]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",pe,[e.createElementVNode("div",me,[e.unref(p).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[35]||(a[35]=l=>B()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[36]||(a[36]=l=>U()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[37]||(a[37]=l=>y()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(P.default,{title:"Добавить участника",onClosePopup:E,isPopupOpen:g.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[fe,e.createVNode(L.default,{onTagsChanged:a[38]||(a[38]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),ge,e.createVNode(_.default,{modelValue:o.value,"onUpdate:modelValue":a[39]||(a[39]=l=>o.value=l),options:e.unref(h),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",be,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",he,[e.createVNode(V.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[40]||(a[40]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(M.default,{submit:x,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)}};exports.default=ve;
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import { ref as v, onMounted as $, unref as t, openBlock as r, createElementBlock as u, createElementVNode as i, createVNode as s, createCommentVNode as p, createBlock as F, withCtx as D, Fragment as T, renderList as _, createTextVNode as A } from "vue";
|
2
|
-
import "../../../constructor/components/elements/Textarea.
|
2
|
+
import "../../../constructor/components/elements/Textarea.vue.js";
|
3
3
|
import B from "../../../constructor/components/sections/Constructor.vue.js";
|
4
4
|
import I from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
5
5
|
import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
|
6
6
|
import E from "../../../../components/Block/Block.vue.js";
|
7
7
|
import z from "../../../../components/Popup/Popup.vue.js";
|
8
|
-
import n from "../../../../components/Field/Field.
|
8
|
+
import n from "../../../../components/Field/Field.vue2.js";
|
9
9
|
import H from "../../../../components/FieldTags/BlockTags.vue.js";
|
10
10
|
import P from "../../../../components/Checkbox/Checkbox.vue.js";
|
11
11
|
import Y from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
12
12
|
import k from "../../../../components/Upload/Upload.vue.js";
|
13
13
|
import y from "../../../../components/UploadImage/UploadImage.vue.js";
|
14
14
|
import J from "../../../../components/EditImages/EditImages.vue.js";
|
15
|
-
import j from "../../../../components/Button/Button.
|
15
|
+
import j from "../../../../components/Button/Button.vue2.js";
|
16
16
|
import L from "../../../icons/navigation/IconDelete.vue.js";
|
17
17
|
import { useRoute as q, useRouter as K } from "vue-router";
|
18
18
|
import { read as Q, clean as W, state as X, update as O, create as C, remove as Z } from "../../store/events.js";
|
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../../../components/Feed/Feed.vue.cjs"),N=require("../../../../components/Block/Block.vue.cjs"),x=require("../../../../components/Popup/Popup.vue.cjs"),u=require("../../../../components/Field/Field.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),V=require("../elements/ButtonCheck.vue.cjs"),q=require("../../../icons/navigation/IconDelete.vue.cjs"),_=require("vue-router"),B=require("../../store/events.cjs"),E=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m=require("../../store/tickets.cjs");require("./EditEventTickets.vue2.cjs");const C={key:0,class:"h-100 pd-thin"},T={class:"mn-b-medium flex-v-center flex-nowrap flex"},P=e.createElementVNode("h2",{class:"mn-r-medium"},"Tickets",-1),S=["onClick"],D={class:"radius-big bg-grey gap-small pd-medium flex-v-center flex-nowrap flex pos-relative mn-b-thin"},U=["href"],F=["src"],A={class:"mn-r-auto"},O={class:"h4"},M={class:"h5 t-transp mn-b-thin"},R={class:"pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase"},L={__name:"EditEventTickets",setup(Q){var h;const b=_.useRoute();_.useRouter();let o=e.ref(null);const c=e.ref([{name:"",email:"",target:(h=o.value)==null?void 0:h._id,type:"event",quantity:1}]),i=e.ref(!1);function g(l){var s;i.value=!0,c.value=[{name:"",email:"",target:(s=o.value)==null?void 0:s._id,type:"event",quantity:1}]}function p(){i.value=!1}const n=e.ref(!1);e.onMounted(async()=>{const l=await B.read({user:E.state.user._id,url:b.params.url});o.value=l.pop()});async function w(){try{const l=await m.actions.create(c.value);n.value=!n.value}catch(l){console.log(l)}}async function f(l,s){if(confirm("Are you sure you want to deactivate this event?"))try{const t=await m.actions.update({...l,status:s});n.value=!n.value}catch(t){console.error(t)}}return(l,s)=>e.unref(o)?(e.openBlock(),e.createElementBlock("article",C,[e.createElementVNode("header",T,[P,e.createElementVNode("button",{onClick:s[0]||(s[0]=t=>g()),class:"radius-extra uppercase button-small flex-child flex-child-shrink-0 hover-scale-1 cursor-pointer t-white bg-second"}," Add Tickets "),e.createVNode(V.default,{onQrcodecheck:s[1]||(s[1]=t=>n.value=!n.value),class:"w-100 pd-medium mn-auto"})]),e.createVNode(x.default,{title:"Добавить участника",onClosePopup:p,isPopupOpen:i.value,class:"w-max-40r"},{default:e.withCtx(()=>[e.createVNode(N.default,{title:"Add tickets",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>c.value.push({name:"",value:"",target:e.unref(o)._id,type:"event"})}],class:"cols-1 mn-b-thin gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:a},[e.createVNode(u.default,{field:t.name,"onUpdate:field":r=>t.name=r,placeholder:"Name",class:"w-50 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.email,"onUpdate:field":r=>t.email=r,placeholder:"Email",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.default,{field:t.quantity,"onUpdate:field":r=>t.quantity=r,placeholder:"Quantity",type:"number",class:"w-10 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),a>0?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:()=>c.value.splice(a,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(q.default,{class:"i-medium"})],8,S)):e.createCommentVNode("",!0)]))),128)),e.createVNode(d.default,{submit:w,callback:p,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Create Tickets ")]),_:1})]),_:1},8,["actions"])]),_:1},8,["isPopupOpen"]),e.createVNode(y.default,{search:!0,states:{empty:{title:"No Tickets Found",description:"Currently, there are no tickets."}},store:{read:t=>m.actions.read(t),state:null},options:{target:e.unref(o)._id},external:n.value},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(a,r)=>{var v,k;return e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("a",{href:a.image,target:"_blank"},[e.createElementVNode("img",{src:a.qrcode,class:"radius-small h-5r w-5r"},null,8,F)],8,U),e.createElementVNode("div",A,[e.createElementVNode("p",O,e.toDisplayString(((v=a.client_refactor)==null?void 0:v.name)||"No name")+", "+e.toDisplayString(a.role),1),e.createElementVNode("p",M,e.toDisplayString(((k=a.client_refactor)==null?void 0:k.email)||"No email"),1),e.createElementVNode("span",R,e.toDisplayString(a.status),1)]),a.status!=="deactivated"?(e.openBlock(),e.createBlock(d.default,{key:0,submit:()=>f(a,"deactivated"),callback:l.redirectTo,class:"w-min h-min pd-small bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Deactivate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0),a.status==="deactivated"||a.status==="used"?(e.openBlock(),e.createBlock(d.default,{key:1,submit:()=>f(a,"unused"),callback:l.redirectTo,class:"w-min h-min pd-small bg-green t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Activate ")]),_:2},1032,["submit","callback"])):e.createCommentVNode("",!0)])}),256))]),_:1},8,["states","store","options","external"])])):e.createCommentVNode("",!0)}};exports.default=L;
|
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js
CHANGED
@@ -1,111 +1,136 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as p, onMounted as B, unref as v, openBlock as i, createElementBlock as u, createElementVNode as n, createVNode as l, withCtx as d, Fragment as $, renderList as P, createCommentVNode as f, createTextVNode as b, toDisplayString as h, createBlock as U } from "vue";
|
2
2
|
import V from "../../../../components/Feed/Feed.vue.js";
|
3
3
|
import F from "../../../../components/Block/Block.vue.js";
|
4
4
|
import O from "../../../../components/Popup/Popup.vue.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import {
|
10
|
-
import {
|
5
|
+
import g from "../../../../components/Field/Field.vue2.js";
|
6
|
+
import w from "../../../../components/Button/Button.vue2.js";
|
7
|
+
import S from "../elements/ButtonCheck.vue.js";
|
8
|
+
import D from "../../../icons/navigation/IconDelete.vue.js";
|
9
|
+
import { useRoute as Q, useRouter as R } from "vue-router";
|
10
|
+
import { read as L } from "../../store/events.js";
|
11
|
+
import { state as M } from "../../../auth/store/auth.js";
|
11
12
|
import "../../../organizations/store/organizations.js";
|
12
|
-
import { actions as
|
13
|
+
import { actions as y } from "../../store/tickets.js";
|
13
14
|
import "./EditEventTickets.vue2.js";
|
14
|
-
const
|
15
|
+
const j = {
|
15
16
|
key: 0,
|
16
17
|
class: "h-100 pd-thin"
|
17
|
-
},
|
18
|
+
}, z = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, G = /* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Tickets", -1), H = ["onClick"], I = { class: "radius-big bg-grey gap-small pd-medium flex-v-center flex-nowrap flex pos-relative mn-b-thin" }, J = ["href"], K = ["src"], W = { class: "mn-r-auto" }, X = { class: "h4" }, Y = { class: "h5 t-transp mn-b-thin" }, Z = { class: "pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase" }, he = {
|
18
19
|
__name: "EditEventTickets",
|
19
|
-
setup(
|
20
|
-
var
|
21
|
-
const
|
20
|
+
setup(ee) {
|
21
|
+
var T;
|
22
|
+
const q = Q();
|
22
23
|
R();
|
23
|
-
let
|
24
|
-
const
|
24
|
+
let r = p(null);
|
25
|
+
const m = p([{
|
25
26
|
name: "",
|
26
27
|
email: "",
|
27
|
-
target: (
|
28
|
-
type: "event"
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
target: (T = r.value) == null ? void 0 : T._id,
|
29
|
+
type: "event",
|
30
|
+
quantity: 1
|
31
|
+
}]), _ = p(!1);
|
32
|
+
function E(a) {
|
33
|
+
var s;
|
34
|
+
_.value = !0, m.value = [{
|
33
35
|
name: "",
|
34
36
|
email: "",
|
35
|
-
target: (
|
36
|
-
type: "event"
|
37
|
+
target: (s = r.value) == null ? void 0 : s._id,
|
38
|
+
type: "event",
|
39
|
+
quantity: 1
|
37
40
|
}];
|
38
41
|
}
|
39
|
-
function
|
40
|
-
|
42
|
+
function k() {
|
43
|
+
_.value = !1;
|
41
44
|
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
+
const o = p(!1);
|
46
|
+
B(async () => {
|
47
|
+
const a = await L({ user: M.user._id, url: q.params.url });
|
48
|
+
r.value = a.pop();
|
45
49
|
});
|
46
|
-
async function
|
50
|
+
async function A() {
|
47
51
|
try {
|
48
|
-
const
|
49
|
-
|
50
|
-
|
52
|
+
const a = await y.create(m.value);
|
53
|
+
o.value = !o.value;
|
54
|
+
} catch (a) {
|
55
|
+
console.log(a);
|
51
56
|
}
|
52
57
|
}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
58
|
+
async function x(a, s) {
|
59
|
+
if (confirm("Are you sure you want to deactivate this event?"))
|
60
|
+
try {
|
61
|
+
const e = await y.update({ ...a, status: s });
|
62
|
+
o.value = !o.value;
|
63
|
+
} catch (e) {
|
64
|
+
console.error(e);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
return (a, s) => v(r) ? (i(), u("article", j, [
|
68
|
+
n("header", z, [
|
69
|
+
G,
|
70
|
+
n("button", {
|
71
|
+
onClick: s[0] || (s[0] = (e) => E()),
|
72
|
+
class: "radius-extra uppercase button-small flex-child flex-child-shrink-0 hover-scale-1 cursor-pointer t-white bg-second"
|
73
|
+
}, " Add Tickets "),
|
74
|
+
l(S, {
|
75
|
+
onQrcodecheck: s[1] || (s[1] = (e) => o.value = !o.value),
|
76
|
+
class: "w-100 pd-medium mn-auto"
|
77
|
+
})
|
60
78
|
]),
|
61
|
-
|
79
|
+
l(O, {
|
62
80
|
title: "Добавить участника",
|
63
|
-
onClosePopup:
|
64
|
-
isPopupOpen:
|
81
|
+
onClosePopup: k,
|
82
|
+
isPopupOpen: _.value,
|
65
83
|
class: "w-max-40r"
|
66
84
|
}, {
|
67
85
|
default: d(() => [
|
68
|
-
|
86
|
+
l(F, {
|
69
87
|
title: "Add tickets",
|
70
88
|
placeholder: "No parameters added yet",
|
71
89
|
actions: [{
|
72
90
|
label: "+",
|
73
|
-
function: () =>
|
91
|
+
function: () => m.value.push({ name: "", value: "", target: v(r)._id, type: "event" })
|
74
92
|
}],
|
75
93
|
class: "cols-1 mn-b-thin gap-thin"
|
76
94
|
}, {
|
77
95
|
default: d(() => [
|
78
|
-
(i(!0),
|
96
|
+
(i(!0), u($, null, P(m.value, (e, t) => (i(), u("div", {
|
79
97
|
class: "gap-thin flex-nowrap flex",
|
80
98
|
key: t
|
81
99
|
}, [
|
82
|
-
|
100
|
+
l(g, {
|
83
101
|
field: e.name,
|
84
|
-
"onUpdate:field": (
|
102
|
+
"onUpdate:field": (c) => e.name = c,
|
85
103
|
placeholder: "Name",
|
86
|
-
class: "w-
|
104
|
+
class: "w-50 bg-white radius-small pd-medium"
|
87
105
|
}, null, 8, ["field", "onUpdate:field"]),
|
88
|
-
|
106
|
+
l(g, {
|
89
107
|
field: e.email,
|
90
|
-
"onUpdate:field": (
|
108
|
+
"onUpdate:field": (c) => e.email = c,
|
91
109
|
placeholder: "Email",
|
92
110
|
class: "w-100 bg-white radius-small pd-medium"
|
93
111
|
}, null, 8, ["field", "onUpdate:field"]),
|
94
|
-
|
112
|
+
l(g, {
|
113
|
+
field: e.quantity,
|
114
|
+
"onUpdate:field": (c) => e.quantity = c,
|
115
|
+
placeholder: "Quantity",
|
116
|
+
type: "number",
|
117
|
+
class: "w-10 bg-white radius-small pd-medium"
|
118
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
119
|
+
t > 0 ? (i(), u("div", {
|
95
120
|
key: 0,
|
96
|
-
onClick: () =>
|
121
|
+
onClick: () => m.value.splice(t, 1),
|
97
122
|
class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"
|
98
123
|
}, [
|
99
|
-
|
100
|
-
], 8,
|
124
|
+
l(D, { class: "i-medium" })
|
125
|
+
], 8, H)) : f("", !0)
|
101
126
|
]))), 128)),
|
102
|
-
|
103
|
-
submit:
|
104
|
-
callback:
|
127
|
+
l(w, {
|
128
|
+
submit: A,
|
129
|
+
callback: k,
|
105
130
|
class: "w-100 bg-black t-white"
|
106
131
|
}, {
|
107
132
|
default: d(() => [
|
108
|
-
|
133
|
+
b(" Create Tickets ")
|
109
134
|
]),
|
110
135
|
_: 1
|
111
136
|
})
|
@@ -115,7 +140,8 @@ const L = {
|
|
115
140
|
]),
|
116
141
|
_: 1
|
117
142
|
}, 8, ["isPopupOpen"]),
|
118
|
-
|
143
|
+
l(V, {
|
144
|
+
search: !0,
|
119
145
|
states: {
|
120
146
|
empty: {
|
121
147
|
title: "No Tickets Found",
|
@@ -123,46 +149,64 @@ const L = {
|
|
123
149
|
}
|
124
150
|
},
|
125
151
|
store: {
|
126
|
-
read: (e) =>
|
152
|
+
read: (e) => y.read(e),
|
127
153
|
state: null
|
128
154
|
},
|
129
155
|
options: {
|
130
|
-
target:
|
131
|
-
}
|
156
|
+
target: v(r)._id
|
157
|
+
},
|
158
|
+
external: o.value
|
132
159
|
}, {
|
133
160
|
default: d(({
|
134
161
|
items: e
|
135
162
|
}) => [
|
136
|
-
(i(!0),
|
137
|
-
var
|
138
|
-
return i(),
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
},
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
163
|
+
(i(!0), u($, null, P(e, (t, c) => {
|
164
|
+
var C, N;
|
165
|
+
return i(), u("div", I, [
|
166
|
+
n("a", {
|
167
|
+
href: t.image,
|
168
|
+
target: "_blank"
|
169
|
+
}, [
|
170
|
+
n("img", {
|
171
|
+
src: t.qrcode,
|
172
|
+
class: "radius-small h-5r w-5r"
|
173
|
+
}, null, 8, K)
|
174
|
+
], 8, J),
|
175
|
+
n("div", W, [
|
176
|
+
n("p", X, h(((C = t.client_refactor) == null ? void 0 : C.name) || "No name") + ", " + h(t.role), 1),
|
177
|
+
n("p", Y, h(((N = t.client_refactor) == null ? void 0 : N.email) || "No email"), 1),
|
178
|
+
n("span", Z, h(t.status), 1)
|
147
179
|
]),
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
180
|
+
t.status !== "deactivated" ? (i(), U(w, {
|
181
|
+
key: 0,
|
182
|
+
submit: () => x(t, "deactivated"),
|
183
|
+
callback: a.redirectTo,
|
184
|
+
class: "w-min h-min pd-small bg-black t-white"
|
152
185
|
}, {
|
153
186
|
default: d(() => [
|
154
|
-
|
187
|
+
b(" Deactivate ")
|
155
188
|
]),
|
156
|
-
_:
|
157
|
-
},
|
189
|
+
_: 2
|
190
|
+
}, 1032, ["submit", "callback"])) : f("", !0),
|
191
|
+
t.status === "deactivated" || t.status === "used" ? (i(), U(w, {
|
192
|
+
key: 1,
|
193
|
+
submit: () => x(t, "unused"),
|
194
|
+
callback: a.redirectTo,
|
195
|
+
class: "w-min h-min pd-small bg-green t-white"
|
196
|
+
}, {
|
197
|
+
default: d(() => [
|
198
|
+
b(" Activate ")
|
199
|
+
]),
|
200
|
+
_: 2
|
201
|
+
}, 1032, ["submit", "callback"])) : f("", !0)
|
158
202
|
]);
|
159
203
|
}), 256))
|
160
204
|
]),
|
161
205
|
_: 1
|
162
|
-
}, 8, ["states", "store", "options"])
|
163
|
-
])) :
|
206
|
+
}, 8, ["states", "store", "options", "external"])
|
207
|
+
])) : f("", !0);
|
164
208
|
}
|
165
209
|
};
|
166
210
|
export {
|
167
|
-
|
211
|
+
he as default
|
168
212
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue2.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../sections/HeroEvent.vue.cjs"),g=require("../sections/SectionMainGuest.vue.cjs"),k=require("../sections/SectionSpecialGuests.vue.cjs"),D=require("../sections/SectionLineup.vue.cjs"),y=require("../sections/SectionPreviousEvents.vue.cjs"),f=require("../blocks/CardEvent.vue.cjs"),T=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),B=require("../elements/ButtonJoin.vue.cjs"),h=require("../../../community/components/sections/Comments.vue.cjs"),C=require("../../../constructor/components/elements/Image.vue.cjs"),b=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),u=require("../../../auth/store/auth.cjs"),N=require("vue-router"),V={class:"pd-thin"},q=e.createElementVNode("h2",{class:"mn-b-big w-100 t-center"},"Event Details",-1),E={__name:"Event",setup(x){const s=N.useRoute(),r=e.ref(null),c=({ticket:a,hasTicket:o,targetId:n})=>{_.mutations.handleTicketUpdate(t.value,a,o,n),console.log("HANDLE TICKET UPDATE",a,t.value),r.value=a.qrcode},p={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:C.default};function v(a){return a.type==="Textarea"?{innerHTML:a.content,class:"p-medium"}:a.type==="H2"?{innerHTML:a.content,class:"h3"}:a.type==="Caption"?{innerHTML:a.content}:a.type==="ImageUpload"?{src:a.content}:{}}const t=e.ref(null),l=e.ref(!0);return e.onMounted(async()=>{l.value=!0;const a=await b.read({user:u.state.user._id,url:s.params.url});t.value=a[0],l.value=!1}),(a,o)=>(e.openBlock(),e.createElementBlock("section",V,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,n=>e.createVNode(T.default,{key:n})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!l.value&&!t.value?(e.openBlock(),e.createBlock(d.default,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!l.value&&t.value&&t.value.special?(e.openBlock(),e.createBlock(m.default,{key:0,content:{title:t.value.name,description:t.value.description,ticketLinkStripe:t.value.specialData.ticketLinkStripe,ticketText:t.value.specialData.ticketText,cover:t.value.cover,subtitle:t.value.specialData.subtitle,logos:t.value.specialData.logos,video:t.value.specialData.video,ticketTextButton:t.value.specialData.ticketTextButton},options:{date:t.value.date.start,price:t.value.specialData.ticketPrice},class:"mn-b-thin"},null,8,["content","options"])):e.createCommentVNode("",!0),!l.value&&t.value&&t.value.special?(e.openBlock(),e.createBlock(g.default,{key:1,content:{title:t.value.specialData.guestTitle,description:t.value.specialData.guestDescription,socials:{twitter:t.value.specialData.guestTwitter,telegram:t.value.specialData.guestTelegram,instagram:t.value.specialData.guestInstagram,facebook:t.value.specialData.guestFacebook},video:t.value.specialData.guestVideo,spotify:t.value.specialData.guestSpotify,soundcloud:t.value.specialData.guestSoundcloud,youtube:t.value.specialData.guestYoutube},class:"mn-b-thin"},null,8,["content"])):e.createCommentVNode("",!0),!l.value&&t.value&&t.value.special?(e.openBlock(),e.createElementBlock("section",{key:2,style:e.normalizeStyle(`
|
2
2
|
background-size: 100%; background-repeat: no-repeat;
|
3
3
|
background-image: url(${t.value.specialData.lineupBackground});
|
4
4
|
`),class:"mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"},[q,e.createElementVNode("div",{class:e.normalizeClass(["gap-big mn-b-thin",{"cols-2":t.value.specialData.guests.length>0,"cols-1":t.value.specialData.guests.length>1}])},[t.value.specialData.guests.length>0?(e.openBlock(),e.createBlock(k.default,{key:0,content:{title:"Special Guests",guests:t.value.specialData.guests}},null,8,["content"])):e.createCommentVNode("",!0),e.createVNode(D.default,{content:{title:"Lineup",lineup:t.value.specialData.lineup}},null,8,["content"])],2),e.createVNode(y.default,{content:{ticket:t.value.specialData.ticketImage,ticketTextButton:t.value.specialData.ticketTextButton,paymentText:t.value.specialData.paymentText,paymentContact:t.value.specialData.paymentContact,previousTitle:t.value.specialData.previousTitle,previousDescription:t.value.specialData.previousDescription,previousLink:t.value.specialData.previousLink,previousLinkText:t.value.specialData.previousLinkText},options:{link:t.value.specialData.ticketLinkStripe,video:t.value.specialData.previousVideo}},null,8,["content","options"])],4)):e.createCommentVNode("",!0),!l.value&&t.value&&!t.value.special?(e.openBlock(),e.createBlock(f.default,{key:3,onClick:o[0]||(o[0]=n=>a.$router.push({name:"Event",params:{url:t.value.url}})),event:t.value,owner:t.value.owner,user:u.state.user._id,type:"normal",class:"mn-b-medium bg-grey radius-big"},{default:e.withCtx(()=>[u.state.user._id?(e.openBlock(),e.createBlock(B.default,{key:0,type:"event",hasTicket:t.value.hasTicket,targetId:t.value._id,userId:u.state.user._id,class:"mn-b-small w-100 pd-medium mn-auto",onUpdateTicket:c},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(n,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p[n.type]),e.mergeProps({key:i,index:i,component:n,prop:n,class:n.class,content:"content"},v(n),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!l.value&&t.value&&!t.value.special?(e.openBlock(),e.createBlock(h.default,{key:4,type:"event",target:t.value._id,owner:u.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=E;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as v, onMounted as b, openBlock as a, createElementBlock as c, createVNode as u, TransitionGroup as g, withCtx as p, Fragment as f, renderList as k, createCommentVNode as n, Transition as x, createBlock as s, normalizeStyle as L, createElementVNode as m, normalizeClass as w, resolveDynamicComponent as C, mergeProps as B } from "vue";
|
2
|
-
import "../../../../components/Loader/Loader.
|
2
|
+
import "../../../../components/Loader/Loader.vue2.js";
|
3
3
|
import E from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import $ from "../sections/HeroEvent.vue.js";
|
5
5
|
import I from "../sections/SectionMainGuest.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Tooltip/Tooltip.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
|
@@ -4,10 +4,10 @@ import "vue-i18n";
|
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
6
|
import s from "../sections/Feed.vue.js";
|
7
|
-
import "../../../../components/Loader/Loader.
|
7
|
+
import "../../../../components/Loader/Loader.vue2.js";
|
8
8
|
import "../../../../components/Chips/Chips.vue2.js";
|
9
9
|
import "../../../../components/Popup/Popup.vue2.js";
|
10
|
-
import "../../../../components/Button/Button.
|
10
|
+
import "../../../../components/Button/Button.vue.js";
|
11
11
|
import "../../../../components/Select/Select.vue2.js";
|
12
12
|
import "../../../reports/store/reports.js";
|
13
13
|
import "../../../../components/Tooltip/Tooltip.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue2.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardEvent.vue.cjs"),m=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),c=require("../../store/events.cjs"),v={class:"feed"},f={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},creator:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},sortParam:{type:String,default:"date.start"},participant:{type:String,default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(i){const t=i,a=e.ref([]),n=e.ref(!1),l=e.ref(!0),s=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){s.value+=u.value;const r=await c.read({skip:s.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,sortParam:t.sortParam,participant:t.participant,creator:t.creator,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=[...a.value,...r]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const r=await c.read({skip:s.value,limit:u.value,category:t.category,participant:t.participant,sortOrder:t.sortOrder,sortParam:t.sortParam,user:t.user,owner:t.owner,creator:t.creator,date:t.selectedDate,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=r,l.value=!1}),(r,y)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,o=>(e.openBlock(),e.createBlock(m.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!l.value&&a.value.length<1?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Events Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"container"},{default:e.withCtx(()=>[!l.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(o,k)=>(e.openBlock(),e.createBlock(g.default,{onClick:h=>r.$router.push({name:"Event",params:{url:o.url}}),key:o._id,event:o,user:i.user,type:"normal",class:"bg-grey radius-big mn-b-medium"},null,8,["onClick","event","user"]))),128)):e.createCommentVNode("",!0),n.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=f;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as i, onMounted as _, openBlock as r, createElementBlock as u, createVNode as p, TransitionGroup as f, withCtx as m, Fragment as y, renderList as h, createBlock as g, createCommentVNode as c, Transition as S } from "vue";
|
2
|
-
import "../../../../components/Loader/Loader.
|
2
|
+
import "../../../../components/Loader/Loader.vue2.js";
|
3
3
|
import w from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import C from "../blocks/CardEvent.vue.js";
|
5
5
|
import E from "../../../icons/skeletons/SkeletonEvent.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue2.cjs");const c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardEvent.vue.cjs"),p=require("../../../icons/skeletons/SkeletonEventShort.vue.cjs"),m=require("../../store/events.cjs");require("./List.vue2.cjs");const g={class:"today-events"},k={__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},phase:{type:String,default:null}},setup(l){const t=l,r=e.ref([]),n=e.ref(!0),s=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const o=await m.read({skip:s.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=o,n.value=!1}),(o,v)=>(e.openBlock(),e.createElementBlock("section",g,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(p.default,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,i)=>(e.openBlock(),e.createBlock(d.default,{onClick:f=>o.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:l.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":i!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as o, onMounted as h, openBlock as t, createElementBlock as i, createVNode as s, TransitionGroup as g, withCtx as u, Fragment as f, renderList as y, createBlock as c, createCommentVNode as d, Transition as b, normalizeClass as _ } from "vue";
|
2
|
-
import "../../../../components/Loader/Loader.
|
2
|
+
import "../../../../components/Loader/Loader.vue2.js";
|
3
3
|
import S from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import w from "../blocks/CardEvent.vue.js";
|
5
5
|
import C from "../../../icons/skeletons/SkeletonEventShort.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/layoutEvents.vue.cjs")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/layoutEvents.vue.cjs"),t=require("../../middlewares/client/auth.validation.cjs"),n=[{path:"events",component:e.default,meta:{title:{en:"Events",ru:"События"},title_hide:!0},children:[{path:":category?",name:"Events",meta:{title:{en:"Events",ru:"События"},title_hide:!0},component:()=>Promise.resolve().then(()=>require("../components/pages/Events.vue.cjs"))}]},{path:"events/create",name:"Create Event",meta:{title:{en:"Create Event",ru:"Создать Событие"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditEvent.vue.cjs"))},{path:"events/:url",name:"Event",meta:{title:{en:"Event",ru:"Событие"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Event.vue.cjs"))},{path:"events/:url/edit",name:"Edit Event",meta:{authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditEvent.vue.cjs"))},{path:"events/:url/edit/tickets",name:"Edit Event Tickets",meta:{authorize:[]},beforeEnter:[t.requiresAdmin],component:()=>Promise.resolve().then(()=>require("../components/pages/EditEventTickets.vue.cjs"))}];exports.default=n;
|