@ozdao/prometheus-framework 0.2.221 → 0.2.223
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +4 -4
- package/dist/auth.server.mjs +4 -4
- package/dist/builder.js +72 -60
- package/dist/builder.mjs +72 -60
- package/dist/community.server.js +9 -4
- package/dist/community.server.mjs +9 -4
- package/dist/events.server.js +14 -24
- package/dist/events.server.mjs +14 -24
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +42 -76
- package/dist/gallery.server.mjs +41 -75
- package/dist/index-CsS7qx1d.js +243 -0
- package/dist/index-UIHE6Rk3.mjs +244 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@capacitor/core/dist/index.cjs +529 -0
- package/dist/node_modules/@capacitor/core/dist/index.cjs.map +1 -0
- package/dist/node_modules/@capacitor/core/dist/index.js +530 -0
- package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.cjs +51 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js +55 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs +25 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +13 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.cjs +67 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +67 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +1 -0
- package/dist/node_modules/@unhead/shared/dist/index.cjs +7 -0
- package/dist/node_modules/@unhead/shared/dist/index.cjs.map +1 -0
- package/dist/node_modules/@unhead/shared/dist/index.js +7 -0
- package/dist/node_modules/@unhead/shared/dist/index.js.map +1 -0
- package/dist/node_modules/@unhead/ssr/dist/index.cjs +87 -0
- package/dist/node_modules/@unhead/ssr/dist/index.cjs.map +1 -0
- package/dist/node_modules/@unhead/ssr/dist/index.js +87 -0
- package/dist/node_modules/@unhead/ssr/dist/index.js.map +1 -0
- package/dist/orders.server.js +2 -2
- package/dist/orders.server.mjs +2 -2
- package/dist/organizations.server.js +174 -95
- package/dist/organizations.server.mjs +174 -95
- package/dist/pages.server.js +1 -1
- package/dist/pages.server.mjs +1 -1
- package/dist/products.server.js +119 -266
- package/dist/products.server.mjs +119 -266
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs +814 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +814 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +210 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js +210 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +26 -41
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +27 -42
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -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/FieldTags/BlockTags.vue.cjs +6 -8
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +6 -8
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js.map +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/UploadImage/UploadImage.vue.cjs +2 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +2 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js.map +1 -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/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +2 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +5 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +5 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs +44 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js +44 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +37 -35
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +33 -31
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +3 -5
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +2 -4
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +8 -5
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +8 -5
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +4 -2
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +4 -2
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +13 -9
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -10
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +53 -40
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +58 -45
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +16 -15
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +16 -15
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +47 -43
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js +47 -43
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +13 -20
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +9 -16
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +5 -9
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -5
- package/dist/prometheus-framework/src/modules/community/store/reactions.js.map +1 -1
- 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/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +29 -54
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +30 -55
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +163 -134
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +165 -136
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +124 -135
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +133 -144
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +96 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +96 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -0
- 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/HeroEvent.vue.cjs +39 -25
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +40 -26
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js.map +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/components/sections/SectionPreviousEvents.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +16 -5
- package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +16 -5
- package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +5 -6
- package/dist/prometheus-framework/src/modules/events/store/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -2
- package/dist/prometheus-framework/src/modules/events/store/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +20 -11
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +20 -11
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +5 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +5 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +2 -0
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +2 -0
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +4 -3
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +4 -3
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs +64 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js +64 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -19
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -19
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +3 -2
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +3 -2
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs +17 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js +17 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js.map +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +6 -7
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -2
- package/dist/prometheus-framework/src/modules/orders/store/orders.js.map +1 -1
- 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/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.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 +60 -23
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +60 -23
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +2 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -0
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +2 -0
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +11 -9
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +6 -4
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +5 -11
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -7
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +807 -801
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +807 -801
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +5 -10
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +5 -10
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +12 -7
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +12 -7
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +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/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- 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/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
- 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 +2 -2
- 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/store/categories.cjs +7 -8
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -2
- package/dist/prometheus-framework/src/modules/products/store/categories.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +6 -7
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -2
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +10 -21
- package/dist/prometheus-framework/src/modules/products/store/products.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -12
- package/dist/prometheus-framework/src/modules/products/store/products.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +6 -9
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -4
- package/dist/prometheus-framework/src/modules/spots/store/spots.js.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js.map +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 +1 -1
- 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/router/users.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/router/users.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
- package/dist/prometheus-framework/src/modules/users/router/users.js.map +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +5 -6
- package/dist/prometheus-framework/src/modules/users/store/users.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -2
- package/dist/prometheus-framework/src/modules/users/store/users.js.map +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +1790 -1790
- package/dist/queryProcessor-CU4A6Y4N.mjs +197 -0
- package/dist/queryProcessor-CcsJEUBr.js +196 -0
- package/dist/spots.server.js +1 -1
- package/dist/spots.server.mjs +1 -1
- package/dist/verifyAccesses-BsrJOct8.mjs +90 -0
- package/dist/verifyAccesses-BvLnOtBN.js +89 -0
- package/dist/wallet.server.js +2 -2
- package/dist/wallet.server.mjs +2 -2
- package/package.json +1 -1
- package/src/builder/modes/ssr.dev.js +2 -2
- package/src/builder/modes/ssr.prod.js +4 -4
- package/src/builder/ssr/ssr-render-html.js +11 -13
- package/src/builder/templates/page.html +37 -0
- package/src/builder/templates/page.js +4 -0
- package/src/builder/webpack/webpack.config.client.js +9 -6
- package/src/builder/webpack/webpack.config.ssr.js +1 -1
- package/src/components/Button/Button.vue +0 -1
- package/src/components/Feed/Feed.vue +34 -55
- package/src/components/FieldTags/BlockTags.vue +0 -1
- package/src/components/UploadImage/UploadImage.vue +2 -1
- package/src/modules/auth/controllers/middlewares/authJwt.js +1 -1
- package/src/modules/auth/controllers/middlewares/verifySignUp.js +11 -11
- package/src/modules/auth/controllers/routes/auth.routes.js +2 -2
- package/src/modules/auth/controllers/services/auth.service.js +1 -0
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -0
- package/src/modules/auth/views/middlewares/auth.validation.js +17 -1
- package/src/modules/auth/views/middlewares/ownership.validation.js +60 -0
- package/src/modules/auth/views/store/auth.js +43 -39
- package/src/modules/auth/views/store/twofa.js +2 -5
- package/src/modules/auth/views/validations/inputs.validation.js +12 -6
- package/src/modules/community/components/blocks/CardBlogpost.vue +3 -1
- package/src/modules/community/components/layouts/Community.vue +7 -9
- package/src/modules/community/components/pages/BlogPost.vue +122 -123
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/community/components/sections/Comments.vue +5 -5
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/models/blogpost.model.js +1 -1
- package/src/modules/community/router/blogposts.js +40 -33
- package/src/modules/community/routes/blog.routes.js +4 -0
- package/src/modules/community/store/blogposts.js +11 -19
- package/src/modules/community/store/reactions.js +1 -7
- package/src/modules/events/components/elements/ButtonCheck.vue +36 -66
- package/src/modules/events/components/pages/EditEvent.vue +76 -59
- package/src/modules/events/components/pages/Event.vue +2 -15
- package/src/modules/events/components/pages/Events.vue +2 -1
- package/src/modules/events/components/pages/EventsBackoffice.vue +122 -0
- package/src/modules/events/components/sections/HeroEvent.vue +15 -17
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +4 -13
- package/src/modules/events/router/events.js +11 -4
- package/src/modules/events/store/events.js +2 -4
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +24 -13
- package/src/modules/gallery/controllers/gallery.controller.js +30 -31
- package/src/modules/gallery/router/gallery.backoffice.router.js +5 -1
- package/src/modules/gallery/routes/gallery.routes.js +22 -4
- package/src/modules/globals/controllers/utils/queryProcessor.js +24 -4
- package/src/modules/globals/globals.client.js +2 -0
- package/src/modules/globals/views/classes/globals.store.js +4 -3
- package/src/modules/globals/views/components/blocks/Card.vue +56 -0
- package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -3
- package/src/modules/globals/views/components/layouts/App.vue +1 -0
- package/src/modules/globals/views/components/layouts/Client.vue +0 -30
- package/src/modules/globals/views/store/globals.js +4 -2
- package/src/modules/globals/views/utils/axios-instance.js +18 -0
- package/src/modules/globals/views/utils/vue-app-renderer.js +87 -0
- package/src/modules/integrations/stripe/controllers/services/stripe.service.js +15 -30
- package/src/modules/landing/components/pages/Governance.vue +4 -2
- package/src/modules/landing/components/sections/SectionHeroToken.vue +12 -10
- package/src/modules/landing/components/sections/SectionsSection.vue +5 -8
- package/src/modules/landing/router/landing.js +2 -1
- package/src/modules/orders/store/orders.js +1 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +36 -0
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +3 -1
- package/src/modules/organizations/controllers/organizations.controller.js +28 -35
- package/src/modules/organizations/middlewares/verifyAccesses.js +117 -0
- package/src/modules/organizations/models/department.model.js +3 -86
- package/src/modules/organizations/models/organization.model.js +6 -4
- package/src/modules/organizations/models/schemas/accesses.schema.js +142 -0
- package/src/modules/organizations/router/organizations.js +2 -0
- package/src/modules/organizations/store/departments.js +6 -6
- package/src/modules/organizations/store/organizations.js +2 -16
- package/src/modules/pages/views/router/pages.backoffice.router.js +5 -7
- package/src/modules/products/components/blocks/CardProduct.vue +2 -0
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +2 -2
- package/src/modules/products/controllers/products.controller.js +201 -367
- package/src/modules/products/routes/products.routes.js +0 -5
- package/src/modules/products/store/categories.js +1 -2
- package/src/modules/products/store/leftovers.js +1 -2
- package/src/modules/products/store/products.js +1 -13
- package/src/modules/reports/components/sections/FormReport.vue +20 -20
- package/src/modules/spots/store/spots.js +1 -6
- package/src/modules/users/components/pages/Profile.vue +1 -1
- package/src/modules/users/router/users.js +2 -2
- package/src/modules/users/store/users.js +1 -3
- package/src/styles/base/all.scss +0 -2
- package/src/styles/config.scss +6 -0
- package/src/modules/auth/controllers/middlewares/verifyAccesses.js +0 -114
- package/src/modules/users/components/pages/ProfileEvents.vue +0 -69
@@ -0,0 +1,814 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const vue = require("vue");
|
4
|
+
const shared_esmBundler = require("../../shared/dist/shared.esm-bundler.cjs");
|
5
|
+
/**
|
6
|
+
* @vue/server-renderer v3.4.38
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
8
|
+
* @license MIT
|
9
|
+
**/
|
10
|
+
const shouldIgnoreProp = /* @__PURE__ */ shared_esmBundler.makeMap(
|
11
|
+
`,key,ref,innerHTML,textContent,ref_key,ref_for`
|
12
|
+
);
|
13
|
+
function ssrRenderAttrs(props, tag) {
|
14
|
+
let ret = "";
|
15
|
+
for (const key in props) {
|
16
|
+
if (shouldIgnoreProp(key) || shared_esmBundler.isOn(key) || tag === "textarea" && key === "value") {
|
17
|
+
continue;
|
18
|
+
}
|
19
|
+
const value = props[key];
|
20
|
+
if (key === "class") {
|
21
|
+
ret += ` class="${ssrRenderClass(value)}"`;
|
22
|
+
} else if (key === "style") {
|
23
|
+
ret += ` style="${ssrRenderStyle(value)}"`;
|
24
|
+
} else {
|
25
|
+
ret += ssrRenderDynamicAttr(key, value, tag);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
return ret;
|
29
|
+
}
|
30
|
+
function ssrRenderDynamicAttr(key, value, tag) {
|
31
|
+
if (!shared_esmBundler.isRenderableAttrValue(value)) {
|
32
|
+
return ``;
|
33
|
+
}
|
34
|
+
const attrKey = tag && (tag.indexOf("-") > 0 || shared_esmBundler.isSVGTag(tag)) ? key : shared_esmBundler.propsToAttrMap[key] || key.toLowerCase();
|
35
|
+
if (shared_esmBundler.isBooleanAttr(attrKey)) {
|
36
|
+
return shared_esmBundler.includeBooleanAttr(value) ? ` ${attrKey}` : ``;
|
37
|
+
} else if (shared_esmBundler.isSSRSafeAttrName(attrKey)) {
|
38
|
+
return value === "" ? ` ${attrKey}` : ` ${attrKey}="${shared_esmBundler.escapeHtml(value)}"`;
|
39
|
+
} else {
|
40
|
+
console.warn(
|
41
|
+
`[@vue/server-renderer] Skipped rendering unsafe attribute name: ${attrKey}`
|
42
|
+
);
|
43
|
+
return ``;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
function ssrRenderClass(raw) {
|
47
|
+
return shared_esmBundler.escapeHtml(shared_esmBundler.normalizeClass(raw));
|
48
|
+
}
|
49
|
+
function ssrRenderStyle(raw) {
|
50
|
+
if (!raw) {
|
51
|
+
return "";
|
52
|
+
}
|
53
|
+
if (shared_esmBundler.isString(raw)) {
|
54
|
+
return shared_esmBundler.escapeHtml(raw);
|
55
|
+
}
|
56
|
+
const styles = shared_esmBundler.normalizeStyle(raw);
|
57
|
+
return shared_esmBundler.escapeHtml(shared_esmBundler.stringifyStyle(styles));
|
58
|
+
}
|
59
|
+
function ssrRenderTeleport(parentPush, contentRenderFn, target, disabled, parentComponent) {
|
60
|
+
parentPush("<!--teleport start-->");
|
61
|
+
const context = parentComponent.appContext.provides[vue.ssrContextKey];
|
62
|
+
const teleportBuffers = context.__teleportBuffers || (context.__teleportBuffers = {});
|
63
|
+
const targetBuffer = teleportBuffers[target] || (teleportBuffers[target] = []);
|
64
|
+
const bufferIndex = targetBuffer.length;
|
65
|
+
let teleportContent;
|
66
|
+
if (disabled) {
|
67
|
+
contentRenderFn(parentPush);
|
68
|
+
teleportContent = `<!--teleport start anchor--><!--teleport anchor-->`;
|
69
|
+
} else {
|
70
|
+
const { getBuffer, push } = createBuffer();
|
71
|
+
push(`<!--teleport start anchor-->`);
|
72
|
+
contentRenderFn(push);
|
73
|
+
push(`<!--teleport anchor-->`);
|
74
|
+
teleportContent = getBuffer();
|
75
|
+
}
|
76
|
+
targetBuffer.splice(bufferIndex, 0, teleportContent);
|
77
|
+
parentPush("<!--teleport end-->");
|
78
|
+
}
|
79
|
+
let activeEffect;
|
80
|
+
let shouldTrack = true;
|
81
|
+
const trackStack = [];
|
82
|
+
function pauseTracking() {
|
83
|
+
trackStack.push(shouldTrack);
|
84
|
+
shouldTrack = false;
|
85
|
+
}
|
86
|
+
function resetTracking() {
|
87
|
+
const last = trackStack.pop();
|
88
|
+
shouldTrack = last === void 0 ? true : last;
|
89
|
+
}
|
90
|
+
function trackEffect(effect2, dep, debuggerEventExtraInfo) {
|
91
|
+
var _a;
|
92
|
+
if (dep.get(effect2) !== effect2._trackId) {
|
93
|
+
dep.set(effect2, effect2._trackId);
|
94
|
+
const oldDep = effect2.deps[effect2._depsLength];
|
95
|
+
if (oldDep !== dep) {
|
96
|
+
effect2.deps[effect2._depsLength++] = dep;
|
97
|
+
} else {
|
98
|
+
effect2._depsLength++;
|
99
|
+
}
|
100
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
101
|
+
(_a = effect2.onTrack) == null ? void 0 : _a.call(effect2, shared_esmBundler.extend({ effect: effect2 }, debuggerEventExtraInfo));
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
const createDep = (cleanup, computed) => {
|
106
|
+
const dep = /* @__PURE__ */ new Map();
|
107
|
+
dep.cleanup = cleanup;
|
108
|
+
dep.computed = computed;
|
109
|
+
return dep;
|
110
|
+
};
|
111
|
+
const targetMap = /* @__PURE__ */ new WeakMap();
|
112
|
+
Symbol(!!(process.env.NODE_ENV !== "production") ? "iterate" : "");
|
113
|
+
Symbol(!!(process.env.NODE_ENV !== "production") ? "Map key iterate" : "");
|
114
|
+
function track(target, type, key) {
|
115
|
+
if (shouldTrack && activeEffect) {
|
116
|
+
let depsMap = targetMap.get(target);
|
117
|
+
if (!depsMap) {
|
118
|
+
targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
|
119
|
+
}
|
120
|
+
let dep = depsMap.get(key);
|
121
|
+
if (!dep) {
|
122
|
+
depsMap.set(key, dep = createDep(() => depsMap.delete(key)));
|
123
|
+
}
|
124
|
+
trackEffect(
|
125
|
+
activeEffect,
|
126
|
+
dep,
|
127
|
+
!!(process.env.NODE_ENV !== "production") ? {
|
128
|
+
target,
|
129
|
+
type,
|
130
|
+
key
|
131
|
+
} : void 0
|
132
|
+
);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
function toRaw(observed) {
|
136
|
+
const raw = observed && observed["__v_raw"];
|
137
|
+
return raw ? toRaw(raw) : observed;
|
138
|
+
}
|
139
|
+
function isRef(r) {
|
140
|
+
return !!(r && r.__v_isRef === true);
|
141
|
+
}
|
142
|
+
const stack = [];
|
143
|
+
function pushWarningContext(vnode) {
|
144
|
+
stack.push(vnode);
|
145
|
+
}
|
146
|
+
function popWarningContext() {
|
147
|
+
stack.pop();
|
148
|
+
}
|
149
|
+
let isWarning = false;
|
150
|
+
function warn$1(msg, ...args) {
|
151
|
+
if (isWarning) return;
|
152
|
+
isWarning = true;
|
153
|
+
pauseTracking();
|
154
|
+
const instance = stack.length ? stack[stack.length - 1].component : null;
|
155
|
+
const appWarnHandler = instance && instance.appContext.config.warnHandler;
|
156
|
+
const trace = getComponentTrace();
|
157
|
+
if (appWarnHandler) {
|
158
|
+
callWithErrorHandling(
|
159
|
+
appWarnHandler,
|
160
|
+
instance,
|
161
|
+
11,
|
162
|
+
[
|
163
|
+
// eslint-disable-next-line no-restricted-syntax
|
164
|
+
msg + args.map((a) => {
|
165
|
+
var _a, _b;
|
166
|
+
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
167
|
+
}).join(""),
|
168
|
+
instance && instance.proxy,
|
169
|
+
trace.map(
|
170
|
+
({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`
|
171
|
+
).join("\n"),
|
172
|
+
trace
|
173
|
+
]
|
174
|
+
);
|
175
|
+
} else {
|
176
|
+
const warnArgs = [`[Vue warn]: ${msg}`, ...args];
|
177
|
+
if (trace.length && // avoid spamming console during tests
|
178
|
+
true) {
|
179
|
+
warnArgs.push(`
|
180
|
+
`, ...formatTrace(trace));
|
181
|
+
}
|
182
|
+
console.warn(...warnArgs);
|
183
|
+
}
|
184
|
+
resetTracking();
|
185
|
+
isWarning = false;
|
186
|
+
}
|
187
|
+
function getComponentTrace() {
|
188
|
+
let currentVNode = stack[stack.length - 1];
|
189
|
+
if (!currentVNode) {
|
190
|
+
return [];
|
191
|
+
}
|
192
|
+
const normalizedStack = [];
|
193
|
+
while (currentVNode) {
|
194
|
+
const last = normalizedStack[0];
|
195
|
+
if (last && last.vnode === currentVNode) {
|
196
|
+
last.recurseCount++;
|
197
|
+
} else {
|
198
|
+
normalizedStack.push({
|
199
|
+
vnode: currentVNode,
|
200
|
+
recurseCount: 0
|
201
|
+
});
|
202
|
+
}
|
203
|
+
const parentInstance = currentVNode.component && currentVNode.component.parent;
|
204
|
+
currentVNode = parentInstance && parentInstance.vnode;
|
205
|
+
}
|
206
|
+
return normalizedStack;
|
207
|
+
}
|
208
|
+
function formatTrace(trace) {
|
209
|
+
const logs = [];
|
210
|
+
trace.forEach((entry, i) => {
|
211
|
+
logs.push(...i === 0 ? [] : [`
|
212
|
+
`], ...formatTraceEntry(entry));
|
213
|
+
});
|
214
|
+
return logs;
|
215
|
+
}
|
216
|
+
function formatTraceEntry({ vnode, recurseCount }) {
|
217
|
+
const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
|
218
|
+
const isRoot = vnode.component ? vnode.component.parent == null : false;
|
219
|
+
const open = ` at <${formatComponentName(
|
220
|
+
vnode.component,
|
221
|
+
vnode.type,
|
222
|
+
isRoot
|
223
|
+
)}`;
|
224
|
+
const close = `>` + postfix;
|
225
|
+
return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close];
|
226
|
+
}
|
227
|
+
function formatProps(props) {
|
228
|
+
const res = [];
|
229
|
+
const keys = Object.keys(props);
|
230
|
+
keys.slice(0, 3).forEach((key) => {
|
231
|
+
res.push(...formatProp(key, props[key]));
|
232
|
+
});
|
233
|
+
if (keys.length > 3) {
|
234
|
+
res.push(` ...`);
|
235
|
+
}
|
236
|
+
return res;
|
237
|
+
}
|
238
|
+
function formatProp(key, value, raw) {
|
239
|
+
if (shared_esmBundler.isString(value)) {
|
240
|
+
value = JSON.stringify(value);
|
241
|
+
return raw ? value : [`${key}=${value}`];
|
242
|
+
} else if (typeof value === "number" || typeof value === "boolean" || value == null) {
|
243
|
+
return raw ? value : [`${key}=${value}`];
|
244
|
+
} else if (isRef(value)) {
|
245
|
+
value = formatProp(key, toRaw(value.value), true);
|
246
|
+
return raw ? value : [`${key}=Ref<`, value, `>`];
|
247
|
+
} else if (shared_esmBundler.isFunction(value)) {
|
248
|
+
return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
|
249
|
+
} else {
|
250
|
+
value = toRaw(value);
|
251
|
+
return raw ? value : [`${key}=`, value];
|
252
|
+
}
|
253
|
+
}
|
254
|
+
const ErrorTypeStrings = {
|
255
|
+
["sp"]: "serverPrefetch hook",
|
256
|
+
["bc"]: "beforeCreate hook",
|
257
|
+
["c"]: "created hook",
|
258
|
+
["bm"]: "beforeMount hook",
|
259
|
+
["m"]: "mounted hook",
|
260
|
+
["bu"]: "beforeUpdate hook",
|
261
|
+
["u"]: "updated",
|
262
|
+
["bum"]: "beforeUnmount hook",
|
263
|
+
["um"]: "unmounted hook",
|
264
|
+
["a"]: "activated hook",
|
265
|
+
["da"]: "deactivated hook",
|
266
|
+
["ec"]: "errorCaptured hook",
|
267
|
+
["rtc"]: "renderTracked hook",
|
268
|
+
["rtg"]: "renderTriggered hook",
|
269
|
+
[0]: "setup function",
|
270
|
+
[1]: "render function",
|
271
|
+
[2]: "watcher getter",
|
272
|
+
[3]: "watcher callback",
|
273
|
+
[4]: "watcher cleanup function",
|
274
|
+
[5]: "native event handler",
|
275
|
+
[6]: "component event handler",
|
276
|
+
[7]: "vnode hook",
|
277
|
+
[8]: "directive hook",
|
278
|
+
[9]: "transition hook",
|
279
|
+
[10]: "app errorHandler",
|
280
|
+
[11]: "app warnHandler",
|
281
|
+
[12]: "ref function",
|
282
|
+
[13]: "async component loader",
|
283
|
+
[14]: "scheduler flush",
|
284
|
+
[15]: "component update"
|
285
|
+
};
|
286
|
+
function callWithErrorHandling(fn, instance, type, args) {
|
287
|
+
try {
|
288
|
+
return args ? fn(...args) : fn();
|
289
|
+
} catch (err) {
|
290
|
+
handleError(err, instance, type);
|
291
|
+
}
|
292
|
+
}
|
293
|
+
function handleError(err, instance, type, throwInDev = true) {
|
294
|
+
const contextVNode = instance ? instance.vnode : null;
|
295
|
+
if (instance) {
|
296
|
+
let cur = instance.parent;
|
297
|
+
const exposedInstance = instance.proxy;
|
298
|
+
const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings[type] : `https://vuejs.org/error-reference/#runtime-${type}`;
|
299
|
+
while (cur) {
|
300
|
+
const errorCapturedHooks = cur.ec;
|
301
|
+
if (errorCapturedHooks) {
|
302
|
+
for (let i = 0; i < errorCapturedHooks.length; i++) {
|
303
|
+
if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
|
304
|
+
return;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
}
|
308
|
+
cur = cur.parent;
|
309
|
+
}
|
310
|
+
const appErrorHandler = instance.appContext.config.errorHandler;
|
311
|
+
if (appErrorHandler) {
|
312
|
+
pauseTracking();
|
313
|
+
callWithErrorHandling(
|
314
|
+
appErrorHandler,
|
315
|
+
null,
|
316
|
+
10,
|
317
|
+
[err, exposedInstance, errorInfo]
|
318
|
+
);
|
319
|
+
resetTracking();
|
320
|
+
return;
|
321
|
+
}
|
322
|
+
}
|
323
|
+
logError(err, type, contextVNode, throwInDev);
|
324
|
+
}
|
325
|
+
function logError(err, type, contextVNode, throwInDev = true) {
|
326
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
327
|
+
const info = ErrorTypeStrings[type];
|
328
|
+
if (contextVNode) {
|
329
|
+
pushWarningContext(contextVNode);
|
330
|
+
}
|
331
|
+
warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
|
332
|
+
if (contextVNode) {
|
333
|
+
popWarningContext();
|
334
|
+
}
|
335
|
+
if (throwInDev) {
|
336
|
+
throw err;
|
337
|
+
} else {
|
338
|
+
console.error(err);
|
339
|
+
}
|
340
|
+
} else {
|
341
|
+
console.error(err);
|
342
|
+
}
|
343
|
+
}
|
344
|
+
let devtools;
|
345
|
+
let buffer = [];
|
346
|
+
function setDevtoolsHook(hook, target) {
|
347
|
+
var _a, _b;
|
348
|
+
devtools = hook;
|
349
|
+
if (devtools) {
|
350
|
+
devtools.enabled = true;
|
351
|
+
buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
|
352
|
+
buffer = [];
|
353
|
+
} else if (
|
354
|
+
// handle late devtools injection - only do this if we are in an actual
|
355
|
+
// browser environment to avoid the timer handle stalling test runner exit
|
356
|
+
// (#4815)
|
357
|
+
typeof window !== "undefined" && // some envs mock window but not fully
|
358
|
+
window.HTMLElement && // also exclude jsdom
|
359
|
+
// eslint-disable-next-line no-restricted-syntax
|
360
|
+
!((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
|
361
|
+
) {
|
362
|
+
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
363
|
+
replay.push((newHook) => {
|
364
|
+
setDevtoolsHook(newHook, target);
|
365
|
+
});
|
366
|
+
setTimeout(() => {
|
367
|
+
if (!devtools) {
|
368
|
+
target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
|
369
|
+
buffer = [];
|
370
|
+
}
|
371
|
+
}, 3e3);
|
372
|
+
} else {
|
373
|
+
buffer = [];
|
374
|
+
}
|
375
|
+
}
|
376
|
+
{
|
377
|
+
const g = shared_esmBundler.getGlobalThis();
|
378
|
+
const registerGlobalSetter = (key, setter) => {
|
379
|
+
let setters;
|
380
|
+
if (!(setters = g[key])) setters = g[key] = [];
|
381
|
+
setters.push(setter);
|
382
|
+
return (v) => {
|
383
|
+
if (setters.length > 1) setters.forEach((set) => set(v));
|
384
|
+
else setters[0](v);
|
385
|
+
};
|
386
|
+
};
|
387
|
+
registerGlobalSetter(
|
388
|
+
`__VUE_INSTANCE_SETTERS__`,
|
389
|
+
(v) => v
|
390
|
+
);
|
391
|
+
registerGlobalSetter(
|
392
|
+
`__VUE_SSR_SETTERS__`,
|
393
|
+
(v) => v
|
394
|
+
);
|
395
|
+
}
|
396
|
+
!!(process.env.NODE_ENV !== "production") ? {
|
397
|
+
get(target, key) {
|
398
|
+
track(target, "get", "");
|
399
|
+
return target[key];
|
400
|
+
},
|
401
|
+
set() {
|
402
|
+
warn$1(`setupContext.attrs is readonly.`);
|
403
|
+
return false;
|
404
|
+
},
|
405
|
+
deleteProperty() {
|
406
|
+
warn$1(`setupContext.attrs is readonly.`);
|
407
|
+
return false;
|
408
|
+
}
|
409
|
+
} : {
|
410
|
+
get(target, key) {
|
411
|
+
track(target, "get", "");
|
412
|
+
return target[key];
|
413
|
+
}
|
414
|
+
};
|
415
|
+
const classifyRE = /(?:^|[-_])(\w)/g;
|
416
|
+
const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
|
417
|
+
function getComponentName(Component, includeInferred = true) {
|
418
|
+
return shared_esmBundler.isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
|
419
|
+
}
|
420
|
+
function formatComponentName(instance, Component, isRoot = false) {
|
421
|
+
let name = getComponentName(Component);
|
422
|
+
if (!name && Component.__file) {
|
423
|
+
const match = Component.__file.match(/([^/\\]+)\.\w+$/);
|
424
|
+
if (match) {
|
425
|
+
name = match[1];
|
426
|
+
}
|
427
|
+
}
|
428
|
+
if (!name && instance && instance.parent) {
|
429
|
+
const inferFromRegistry = (registry) => {
|
430
|
+
for (const key in registry) {
|
431
|
+
if (registry[key] === Component) {
|
432
|
+
return key;
|
433
|
+
}
|
434
|
+
}
|
435
|
+
};
|
436
|
+
name = inferFromRegistry(
|
437
|
+
instance.components || instance.parent.type.components
|
438
|
+
) || inferFromRegistry(instance.appContext.components);
|
439
|
+
}
|
440
|
+
return name ? classify(name) : isRoot ? `App` : `Anonymous`;
|
441
|
+
}
|
442
|
+
!!(process.env.NODE_ENV !== "production") ? warn$1 : shared_esmBundler.NOOP;
|
443
|
+
!!(process.env.NODE_ENV !== "production") || true ? devtools : void 0;
|
444
|
+
!!(process.env.NODE_ENV !== "production") || true ? setDevtoolsHook : shared_esmBundler.NOOP;
|
445
|
+
function ssrCompile(template, instance) {
|
446
|
+
{
|
447
|
+
throw new Error(
|
448
|
+
`On-the-fly template compilation is not supported in the ESM build of @vue/server-renderer. All templates must be pre-compiled into render functions.`
|
449
|
+
);
|
450
|
+
}
|
451
|
+
}
|
452
|
+
const {
|
453
|
+
createComponentInstance,
|
454
|
+
setCurrentRenderingInstance,
|
455
|
+
setupComponent,
|
456
|
+
renderComponentRoot,
|
457
|
+
normalizeVNode
|
458
|
+
} = vue.ssrUtils;
|
459
|
+
function createBuffer() {
|
460
|
+
let appendable = false;
|
461
|
+
const buffer2 = [];
|
462
|
+
return {
|
463
|
+
getBuffer() {
|
464
|
+
return buffer2;
|
465
|
+
},
|
466
|
+
push(item) {
|
467
|
+
const isStringItem = shared_esmBundler.isString(item);
|
468
|
+
if (appendable && isStringItem) {
|
469
|
+
buffer2[buffer2.length - 1] += item;
|
470
|
+
return;
|
471
|
+
}
|
472
|
+
buffer2.push(item);
|
473
|
+
appendable = isStringItem;
|
474
|
+
if (shared_esmBundler.isPromise(item) || shared_esmBundler.isArray(item) && item.hasAsync) {
|
475
|
+
buffer2.hasAsync = true;
|
476
|
+
}
|
477
|
+
}
|
478
|
+
};
|
479
|
+
}
|
480
|
+
function renderComponentVNode(vnode, parentComponent = null, slotScopeId) {
|
481
|
+
const instance = createComponentInstance(vnode, parentComponent, null);
|
482
|
+
const res = setupComponent(
|
483
|
+
instance,
|
484
|
+
true
|
485
|
+
/* isSSR */
|
486
|
+
);
|
487
|
+
const hasAsyncSetup = shared_esmBundler.isPromise(res);
|
488
|
+
const prefetches = instance.sp;
|
489
|
+
if (hasAsyncSetup || prefetches) {
|
490
|
+
let p = hasAsyncSetup ? res : Promise.resolve();
|
491
|
+
if (prefetches) {
|
492
|
+
p = p.then(
|
493
|
+
() => Promise.all(
|
494
|
+
prefetches.map((prefetch) => prefetch.call(instance.proxy))
|
495
|
+
)
|
496
|
+
).catch(shared_esmBundler.NOOP);
|
497
|
+
}
|
498
|
+
return p.then(() => renderComponentSubTree(instance, slotScopeId));
|
499
|
+
} else {
|
500
|
+
return renderComponentSubTree(instance, slotScopeId);
|
501
|
+
}
|
502
|
+
}
|
503
|
+
function renderComponentSubTree(instance, slotScopeId) {
|
504
|
+
const comp = instance.type;
|
505
|
+
const { getBuffer, push } = createBuffer();
|
506
|
+
if (shared_esmBundler.isFunction(comp)) {
|
507
|
+
let root = renderComponentRoot(instance);
|
508
|
+
if (!comp.props) {
|
509
|
+
for (const key in instance.attrs) {
|
510
|
+
if (key.startsWith(`data-v-`)) {
|
511
|
+
(root.props || (root.props = {}))[key] = ``;
|
512
|
+
}
|
513
|
+
}
|
514
|
+
}
|
515
|
+
renderVNode(push, instance.subTree = root, instance, slotScopeId);
|
516
|
+
} else {
|
517
|
+
if ((!instance.render || instance.render === shared_esmBundler.NOOP) && !instance.ssrRender && !comp.ssrRender && shared_esmBundler.isString(comp.template)) {
|
518
|
+
comp.ssrRender = ssrCompile(comp.template);
|
519
|
+
}
|
520
|
+
for (const e of instance.scope.effects) {
|
521
|
+
if (e.computed) {
|
522
|
+
e.computed._dirty = true;
|
523
|
+
e.computed._cacheable = true;
|
524
|
+
}
|
525
|
+
}
|
526
|
+
const ssrRender = instance.ssrRender || comp.ssrRender;
|
527
|
+
if (ssrRender) {
|
528
|
+
let attrs = instance.inheritAttrs !== false ? instance.attrs : void 0;
|
529
|
+
let hasCloned = false;
|
530
|
+
let cur = instance;
|
531
|
+
while (true) {
|
532
|
+
const scopeId = cur.vnode.scopeId;
|
533
|
+
if (scopeId) {
|
534
|
+
if (!hasCloned) {
|
535
|
+
attrs = { ...attrs };
|
536
|
+
hasCloned = true;
|
537
|
+
}
|
538
|
+
attrs[scopeId] = "";
|
539
|
+
}
|
540
|
+
const parent = cur.parent;
|
541
|
+
if (parent && parent.subTree && parent.subTree === cur.vnode) {
|
542
|
+
cur = parent;
|
543
|
+
} else {
|
544
|
+
break;
|
545
|
+
}
|
546
|
+
}
|
547
|
+
if (slotScopeId) {
|
548
|
+
if (!hasCloned) attrs = { ...attrs };
|
549
|
+
const slotScopeIdList = slotScopeId.trim().split(" ");
|
550
|
+
for (let i = 0; i < slotScopeIdList.length; i++) {
|
551
|
+
attrs[slotScopeIdList[i]] = "";
|
552
|
+
}
|
553
|
+
}
|
554
|
+
const prev = setCurrentRenderingInstance(instance);
|
555
|
+
try {
|
556
|
+
ssrRender(
|
557
|
+
instance.proxy,
|
558
|
+
push,
|
559
|
+
instance,
|
560
|
+
attrs,
|
561
|
+
// compiler-optimized bindings
|
562
|
+
instance.props,
|
563
|
+
instance.setupState,
|
564
|
+
instance.data,
|
565
|
+
instance.ctx
|
566
|
+
);
|
567
|
+
} finally {
|
568
|
+
setCurrentRenderingInstance(prev);
|
569
|
+
}
|
570
|
+
} else if (instance.render && instance.render !== shared_esmBundler.NOOP) {
|
571
|
+
renderVNode(
|
572
|
+
push,
|
573
|
+
instance.subTree = renderComponentRoot(instance),
|
574
|
+
instance,
|
575
|
+
slotScopeId
|
576
|
+
);
|
577
|
+
} else {
|
578
|
+
const componentName = comp.name || comp.__file || `<Anonymous>`;
|
579
|
+
vue.warn(`Component ${componentName} is missing template or render function.`);
|
580
|
+
push(`<!---->`);
|
581
|
+
}
|
582
|
+
}
|
583
|
+
return getBuffer();
|
584
|
+
}
|
585
|
+
function renderVNode(push, vnode, parentComponent, slotScopeId) {
|
586
|
+
const { type, shapeFlag, children } = vnode;
|
587
|
+
switch (type) {
|
588
|
+
case vue.Text:
|
589
|
+
push(shared_esmBundler.escapeHtml(children));
|
590
|
+
break;
|
591
|
+
case vue.Comment:
|
592
|
+
push(
|
593
|
+
children ? `<!--${shared_esmBundler.escapeHtmlComment(children)}-->` : `<!---->`
|
594
|
+
);
|
595
|
+
break;
|
596
|
+
case vue.Static:
|
597
|
+
push(children);
|
598
|
+
break;
|
599
|
+
case vue.Fragment:
|
600
|
+
if (vnode.slotScopeIds) {
|
601
|
+
slotScopeId = (slotScopeId ? slotScopeId + " " : "") + vnode.slotScopeIds.join(" ");
|
602
|
+
}
|
603
|
+
push(`<!--[-->`);
|
604
|
+
renderVNodeChildren(
|
605
|
+
push,
|
606
|
+
children,
|
607
|
+
parentComponent,
|
608
|
+
slotScopeId
|
609
|
+
);
|
610
|
+
push(`<!--]-->`);
|
611
|
+
break;
|
612
|
+
default:
|
613
|
+
if (shapeFlag & 1) {
|
614
|
+
renderElementVNode(push, vnode, parentComponent, slotScopeId);
|
615
|
+
} else if (shapeFlag & 6) {
|
616
|
+
push(renderComponentVNode(vnode, parentComponent, slotScopeId));
|
617
|
+
} else if (shapeFlag & 64) {
|
618
|
+
renderTeleportVNode(push, vnode, parentComponent, slotScopeId);
|
619
|
+
} else if (shapeFlag & 128) {
|
620
|
+
renderVNode(push, vnode.ssContent, parentComponent, slotScopeId);
|
621
|
+
} else {
|
622
|
+
vue.warn(
|
623
|
+
"[@vue/server-renderer] Invalid VNode type:",
|
624
|
+
type,
|
625
|
+
`(${typeof type})`
|
626
|
+
);
|
627
|
+
}
|
628
|
+
}
|
629
|
+
}
|
630
|
+
function renderVNodeChildren(push, children, parentComponent, slotScopeId) {
|
631
|
+
for (let i = 0; i < children.length; i++) {
|
632
|
+
renderVNode(push, normalizeVNode(children[i]), parentComponent, slotScopeId);
|
633
|
+
}
|
634
|
+
}
|
635
|
+
function renderElementVNode(push, vnode, parentComponent, slotScopeId) {
|
636
|
+
const tag = vnode.type;
|
637
|
+
let { props, children, shapeFlag, scopeId, dirs } = vnode;
|
638
|
+
let openTag = `<${tag}`;
|
639
|
+
if (dirs) {
|
640
|
+
props = applySSRDirectives(vnode, props, dirs);
|
641
|
+
}
|
642
|
+
if (props) {
|
643
|
+
openTag += ssrRenderAttrs(props, tag);
|
644
|
+
}
|
645
|
+
if (scopeId) {
|
646
|
+
openTag += ` ${scopeId}`;
|
647
|
+
}
|
648
|
+
let curParent = parentComponent;
|
649
|
+
let curVnode = vnode;
|
650
|
+
while (curParent && curVnode === curParent.subTree) {
|
651
|
+
curVnode = curParent.vnode;
|
652
|
+
if (curVnode.scopeId) {
|
653
|
+
openTag += ` ${curVnode.scopeId}`;
|
654
|
+
}
|
655
|
+
curParent = curParent.parent;
|
656
|
+
}
|
657
|
+
if (slotScopeId) {
|
658
|
+
openTag += ` ${slotScopeId}`;
|
659
|
+
}
|
660
|
+
push(openTag + `>`);
|
661
|
+
if (!shared_esmBundler.isVoidTag(tag)) {
|
662
|
+
let hasChildrenOverride = false;
|
663
|
+
if (props) {
|
664
|
+
if (props.innerHTML) {
|
665
|
+
hasChildrenOverride = true;
|
666
|
+
push(props.innerHTML);
|
667
|
+
} else if (props.textContent) {
|
668
|
+
hasChildrenOverride = true;
|
669
|
+
push(shared_esmBundler.escapeHtml(props.textContent));
|
670
|
+
} else if (tag === "textarea" && props.value) {
|
671
|
+
hasChildrenOverride = true;
|
672
|
+
push(shared_esmBundler.escapeHtml(props.value));
|
673
|
+
}
|
674
|
+
}
|
675
|
+
if (!hasChildrenOverride) {
|
676
|
+
if (shapeFlag & 8) {
|
677
|
+
push(shared_esmBundler.escapeHtml(children));
|
678
|
+
} else if (shapeFlag & 16) {
|
679
|
+
renderVNodeChildren(
|
680
|
+
push,
|
681
|
+
children,
|
682
|
+
parentComponent,
|
683
|
+
slotScopeId
|
684
|
+
);
|
685
|
+
}
|
686
|
+
}
|
687
|
+
push(`</${tag}>`);
|
688
|
+
}
|
689
|
+
}
|
690
|
+
function applySSRDirectives(vnode, rawProps, dirs) {
|
691
|
+
const toMerge = [];
|
692
|
+
for (let i = 0; i < dirs.length; i++) {
|
693
|
+
const binding = dirs[i];
|
694
|
+
const {
|
695
|
+
dir: { getSSRProps }
|
696
|
+
} = binding;
|
697
|
+
if (getSSRProps) {
|
698
|
+
const props = getSSRProps(binding, vnode);
|
699
|
+
if (props) toMerge.push(props);
|
700
|
+
}
|
701
|
+
}
|
702
|
+
return vue.mergeProps(rawProps || {}, ...toMerge);
|
703
|
+
}
|
704
|
+
function renderTeleportVNode(push, vnode, parentComponent, slotScopeId) {
|
705
|
+
const target = vnode.props && vnode.props.to;
|
706
|
+
const disabled = vnode.props && vnode.props.disabled;
|
707
|
+
if (!target) {
|
708
|
+
if (!disabled) {
|
709
|
+
vue.warn(`[@vue/server-renderer] Teleport is missing target prop.`);
|
710
|
+
}
|
711
|
+
return [];
|
712
|
+
}
|
713
|
+
if (!shared_esmBundler.isString(target)) {
|
714
|
+
vue.warn(
|
715
|
+
`[@vue/server-renderer] Teleport target must be a query selector string.`
|
716
|
+
);
|
717
|
+
return [];
|
718
|
+
}
|
719
|
+
ssrRenderTeleport(
|
720
|
+
push,
|
721
|
+
(push2) => {
|
722
|
+
renderVNodeChildren(
|
723
|
+
push2,
|
724
|
+
vnode.children,
|
725
|
+
parentComponent,
|
726
|
+
slotScopeId
|
727
|
+
);
|
728
|
+
},
|
729
|
+
target,
|
730
|
+
disabled || disabled === "",
|
731
|
+
parentComponent
|
732
|
+
);
|
733
|
+
}
|
734
|
+
const { isVNode: isVNode$1 } = vue.ssrUtils;
|
735
|
+
function nestedUnrollBuffer(buffer2, parentRet, startIndex) {
|
736
|
+
if (!buffer2.hasAsync) {
|
737
|
+
return parentRet + unrollBufferSync$1(buffer2);
|
738
|
+
}
|
739
|
+
let ret = parentRet;
|
740
|
+
for (let i = startIndex; i < buffer2.length; i += 1) {
|
741
|
+
const item = buffer2[i];
|
742
|
+
if (shared_esmBundler.isString(item)) {
|
743
|
+
ret += item;
|
744
|
+
continue;
|
745
|
+
}
|
746
|
+
if (shared_esmBundler.isPromise(item)) {
|
747
|
+
return item.then((nestedItem) => {
|
748
|
+
buffer2[i] = nestedItem;
|
749
|
+
return nestedUnrollBuffer(buffer2, ret, i);
|
750
|
+
});
|
751
|
+
}
|
752
|
+
const result = nestedUnrollBuffer(item, ret, 0);
|
753
|
+
if (shared_esmBundler.isPromise(result)) {
|
754
|
+
return result.then((nestedItem) => {
|
755
|
+
buffer2[i] = nestedItem;
|
756
|
+
return nestedUnrollBuffer(buffer2, "", i);
|
757
|
+
});
|
758
|
+
}
|
759
|
+
ret = result;
|
760
|
+
}
|
761
|
+
return ret;
|
762
|
+
}
|
763
|
+
function unrollBuffer$1(buffer2) {
|
764
|
+
return nestedUnrollBuffer(buffer2, "", 0);
|
765
|
+
}
|
766
|
+
function unrollBufferSync$1(buffer2) {
|
767
|
+
let ret = "";
|
768
|
+
for (let i = 0; i < buffer2.length; i++) {
|
769
|
+
let item = buffer2[i];
|
770
|
+
if (shared_esmBundler.isString(item)) {
|
771
|
+
ret += item;
|
772
|
+
} else {
|
773
|
+
ret += unrollBufferSync$1(item);
|
774
|
+
}
|
775
|
+
}
|
776
|
+
return ret;
|
777
|
+
}
|
778
|
+
async function renderToString(input, context = {}) {
|
779
|
+
if (isVNode$1(input)) {
|
780
|
+
return renderToString(vue.createApp({ render: () => input }), context);
|
781
|
+
}
|
782
|
+
const vnode = vue.createVNode(input._component, input._props);
|
783
|
+
vnode.appContext = input._context;
|
784
|
+
input.provide(vue.ssrContextKey, context);
|
785
|
+
const buffer2 = await renderComponentVNode(vnode);
|
786
|
+
const result = await unrollBuffer$1(buffer2);
|
787
|
+
await resolveTeleports(context);
|
788
|
+
if (context.__watcherHandles) {
|
789
|
+
for (const unwatch of context.__watcherHandles) {
|
790
|
+
unwatch();
|
791
|
+
}
|
792
|
+
}
|
793
|
+
return result;
|
794
|
+
}
|
795
|
+
async function resolveTeleports(context) {
|
796
|
+
if (context.__teleportBuffers) {
|
797
|
+
context.teleports = context.teleports || {};
|
798
|
+
for (const key in context.__teleportBuffers) {
|
799
|
+
context.teleports[key] = await unrollBuffer$1(
|
800
|
+
await Promise.all([context.__teleportBuffers[key]])
|
801
|
+
);
|
802
|
+
}
|
803
|
+
}
|
804
|
+
}
|
805
|
+
vue.initDirectivesForSSR();
|
806
|
+
exports.ssrIncludeBooleanAttr = shared_esmBundler.includeBooleanAttr;
|
807
|
+
exports.renderToString = renderToString;
|
808
|
+
exports.ssrRenderAttrs = ssrRenderAttrs;
|
809
|
+
exports.ssrRenderClass = ssrRenderClass;
|
810
|
+
exports.ssrRenderDynamicAttr = ssrRenderDynamicAttr;
|
811
|
+
exports.ssrRenderStyle = ssrRenderStyle;
|
812
|
+
exports.ssrRenderTeleport = ssrRenderTeleport;
|
813
|
+
exports.ssrRenderVNode = renderVNode;
|
814
|
+
//# sourceMappingURL=server-renderer.esm-bundler.cjs.map
|