@ozdao/prometheus-framework 0.1.36 → 0.1.37
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-568b55bb.js +1 -0
- package/dist/BackofficeGallery-b4105137.mjs +306 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/ButtonToggleMembership-15f149cb.js +1 -0
- package/dist/ButtonToggleMembership-3bb9139e.mjs +90 -0
- package/dist/CardBlogpost-38016b80.mjs +246 -0
- package/dist/CardBlogpost-cc208f93.js +1 -0
- package/dist/CardOrganization-d93c9bdb.js +1 -0
- package/dist/CardOrganization-e920be73.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-9d81b215.mjs +214 -0
- package/dist/Chips-d47704e6.js +1 -0
- package/dist/Community-87522a04.mjs +132 -0
- package/dist/Community-aef23aee.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-cdfbca78.js +1 -0
- package/dist/Events-e9dd58f7.mjs +123 -0
- package/dist/Feed-22464fcd.js +1 -0
- package/dist/Feed-6e96d3dd.mjs +124 -0
- package/dist/Feed-793b3eef.mjs +146 -0
- package/dist/Feed-7b80704d.mjs +361 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-b30ef609.js +1 -0
- package/dist/Feed-c5d4390a.js +1 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-245c003d.mjs +480 -0
- package/dist/Image-35d31936.js +9 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-08d9fb54.mjs +228 -0
- package/dist/LeftoverAdd-fc673884.js +1 -0
- package/dist/Leftovers-296c0042.js +1 -0
- package/dist/Leftovers-685d9f19.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-2cb2ff58.mjs +114 -0
- package/dist/Members-85534d1f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-0cb37d68.js +1 -0
- package/dist/Organizations-d6ef2113.mjs +73 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-5994a8c9.mjs +653 -0
- package/dist/Product-68fa1e9e.js +7 -0
- package/dist/ProductEdit-64207814.mjs +296 -0
- package/dist/ProductEdit-a434240f.js +1 -0
- package/dist/ProductsBackoffice-0c93f9b6.js +1 -0
- package/dist/ProductsBackoffice-3d987c60.mjs +86 -0
- package/dist/ProfileBlogposts-0b81d964.js +1 -0
- package/dist/ProfileBlogposts-b59992cf.mjs +79 -0
- package/dist/ProfileEvents-3f7ca2c1.js +1 -0
- package/dist/ProfileEvents-bbdd62e7.mjs +70 -0
- package/dist/ProfileOrganizations-4734c02e.mjs +73 -0
- package/dist/ProfileOrganizations-d55ee487.js +1 -0
- package/dist/Publics-0762210a.js +1 -0
- package/dist/Publics-660e851c.mjs +45 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/addMembersQuantity-7147aa4a.js +89 -0
- package/dist/addMembersQuantity-eac999f0.mjs +90 -0
- package/dist/auth-06d35b82.js +7 -0
- package/dist/auth-ec618cb3.mjs +627 -0
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +22 -19
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/auth.validation-0ce9e326.js +1 -0
- package/dist/auth.validation-ba3606bf.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +235 -59
- package/dist/categories-82b28618.js +1 -0
- package/dist/categories-df3240a7.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +233 -227
- package/dist/community.server.js +217 -189
- package/dist/community.server.mjs +217 -189
- package/dist/components/Field/Field.vue.d.ts +58 -2
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/UploadImage/UploadImage.vue.d.ts +1 -1
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +1793 -1888
- package/dist/events.server.js +100 -210
- package/dist/events.server.mjs +100 -210
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +40 -64
- package/dist/leftovers-66951de6.js +1 -0
- package/dist/leftovers-be37c7a5.mjs +67 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +7 -4
- package/dist/mailing-76895d59.mjs +50 -0
- package/dist/mailing-9659b3c4.js +49 -0
- package/dist/main.css +1 -1
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/metadata.schema-147f9902.mjs +212 -0
- package/dist/metadata.schema-93397f9f.js +211 -0
- package/dist/metadata.schema-a539dd65.mjs +210 -0
- package/dist/metadata.schema-e4fe5c57.js +209 -0
- package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +4 -3
- package/dist/modules/events/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/events/components/sections/List.vue.d.ts +3 -3
- package/dist/modules/globals/components/blocks/CardFooter.vue.d.ts +8 -0
- package/dist/modules/globals/components/blocks/CardHeader.vue.d.ts +15 -0
- package/dist/modules/globals/components/sections/Feed.vue.d.ts +69 -0
- package/dist/modules/orders/components/pages/EditOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Favorites.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/History.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Orders.vue.d.ts +2 -0
- package/dist/modules/orders/components/pages/ViewOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/sections/Form.vue.d.ts +1 -0
- package/dist/modules/organizations/components/blocks/CardDepartment.vue.d.ts +7 -0
- package/dist/modules/organizations/components/blocks/User.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +1 -1
- package/dist/modules/organizations/components/pages/Members.vue.d.ts +2 -0
- package/dist/modules/organizations/components/sections/Department2.vue.d.ts +7 -0
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/organizations/components/sections/FeedDepartments.vue.d.ts +8 -0
- package/dist/modules/payments/components/pages/Payments.vue.d.ts +2 -0
- package/dist/modules/products/components/blocks/CardLeftover.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/CardPosition.vue.d.ts +11 -0
- package/dist/modules/products/components/blocks/CardProduct.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/LeftoverPositions.vue.d.ts +0 -1
- package/dist/modules/products/components/pages/ProductsBackoffice.vue.d.ts +2 -0
- package/dist/modules/products/components/sections/FilterProducts.vue.d.ts +9 -0
- package/dist/modules/products/components/sections/SortProducts.vue.d.ts +10 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +3 -3
- package/dist/modules/spots/components/blocks/CardSpot.vue.d.ts +7 -0
- package/dist/modules/spots/components/blocks/SpotMemberModify.vue.d.ts +11 -0
- package/dist/modules/spots/components/blocks/SpotSub.vue.d.ts +6 -0
- package/dist/modules/spots/components/pages/Spot.vue.d.ts +7 -0
- package/dist/modules/spots/components/pages/SpotEdit.vue.d.ts +2 -0
- package/dist/modules/spots/components/sections/Feed.vue.d.ts +8 -0
- package/dist/modules/spots/components/sections/PlaceModify.vue.d.ts +9 -0
- package/dist/modules/spots/components/sections/Places.vue.d.ts +9 -0
- package/dist/modules/wallet/components/pages/Wallet.vue.d.ts +2 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-4d18a2e2.js +1 -0
- package/dist/organizations-6ed907e3.mjs +122 -0
- package/dist/organizations.client-01593e4d.js +3 -0
- package/dist/organizations.client-1b9fa66e.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +75 -51
- package/dist/organizations.server.js +9 -20
- package/dist/organizations.server.mjs +9 -20
- package/dist/products-7960bbd4.js +1 -0
- package/dist/products-bf5783aa.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +771 -758
- package/dist/states.validation-03f7cd49.js +1 -0
- package/dist/states.validation-50e3a5a0.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +214 -258
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +2 -119
- package/src/components/Field/Field.vue +34 -9
- package/src/components/SelectMulti/SelectMulti.vue +18 -22
- package/src/modules/auth/store/auth.js +34 -15
- package/src/modules/backoffice/components/pages/Dashboard.vue +91 -0
- package/src/modules/backoffice/router/admin.js +0 -28
- package/src/modules/backoffice/router/backoffice.js +131 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -0
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/community/components/sections/Feed.vue +6 -0
- package/src/modules/community/controllers/blog.controller.js +129 -285
- package/src/modules/community/controllers/reactions.controller.js +2 -0
- package/src/modules/community/controllers/utils/queryProcessor.js +56 -0
- package/src/modules/community/controllers/utils/queryProcessorReactions.js +63 -0
- package/src/modules/community/store/blogposts.js +5 -5
- package/src/modules/events/components/blocks/CardEvent.vue +2 -3
- package/src/modules/events/components/pages/Events.vue +4 -4
- package/src/modules/events/components/sections/Feed.vue +4 -4
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +8 -6
- package/src/modules/events/controllers/utils/queryProcessor.js +111 -1
- package/src/modules/events/models/event.model.js +0 -4
- package/src/modules/events/store/events.js +5 -7
- package/src/{components/CardHeader → modules/globals/components/blocks}/CardHeader.vue +31 -4
- package/src/modules/globals/components/sections/Feed.vue +136 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +19 -117
- package/src/modules/globals/models/engagement.schema.js +29 -25
- package/src/modules/globals/utils/mailing.js +1 -1
- package/src/modules/icons/icons.client.js +51 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/components/pages/Catalog.vue +3 -4
- package/src/modules/marketplace/router/marketplace.js +0 -11
- package/src/modules/middlewares/client/auth.validation.js +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -2
- package/src/modules/orders/components/pages/EditOrder.vue +238 -0
- package/src/modules/{backoffice → orders}/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +28 -34
- package/src/modules/orders/components/pages/Orders.vue +90 -0
- package/src/modules/{backoffice/components/pages/History.vue → orders/components/pages/ViewOrder.vue} +0 -8
- package/src/modules/orders/components/sections/Form.vue +52 -34
- package/src/modules/orders/controllers/orders.controller.js +102 -72
- package/src/modules/orders/models/order.model.js +30 -22
- package/src/modules/orders/router/orders.router.js +30 -0
- package/src/modules/orders/routes/orders.routes.js +23 -13
- package/src/modules/orders/store/orders.js +67 -40
- package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue} +1 -10
- package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -9
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +3 -3
- package/src/modules/organizations/components/{sections/MembersTab.vue → pages/Members.vue} +23 -8
- package/src/modules/organizations/components/pages/Organization.vue +80 -46
- package/src/modules/organizations/components/pages/Organizations.vue +45 -90
- package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue} +5 -5
- package/src/modules/organizations/components/sections/Organizations.vue +1 -2
- package/src/modules/organizations/components/sections/Publics.vue +3 -2
- package/src/modules/organizations/controllers/organizations.controller.js +8 -21
- package/src/modules/organizations/controllers/organizations.new.controller.js +372 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +53 -48
- package/src/modules/organizations/controllers/utils/queryProcessor.js +87 -0
- package/src/modules/organizations/controllers/utils/queryProcessorOrganizations.js +25 -0
- package/src/modules/organizations/organizations.client.js +42 -46
- package/src/modules/organizations/router/departments.router.js +29 -0
- package/src/modules/organizations/router/members.router.js +19 -0
- package/src/modules/organizations/router/organizations.js +12 -88
- package/src/modules/organizations/router/organizations.router.js +38 -0
- package/src/modules/organizations/router/products.router.js +24 -0
- package/src/modules/organizations/store/departments.js +108 -0
- package/src/modules/{backoffice/components/admin/Orders.vue → payments/components/pages/Payments.vue} +0 -15
- package/src/modules/products/components/blocks/{Leftover.vue → CardLeftover.vue} +21 -12
- package/src/modules/products/components/blocks/CardPosition.vue +84 -0
- package/src/modules/products/components/blocks/LeftoverPositions.vue +65 -136
- package/src/modules/products/components/pages/LeftoverAdd.vue +133 -88
- package/src/modules/products/components/pages/Leftovers.vue +91 -64
- package/src/modules/products/components/pages/Product.vue +3 -3
- package/src/modules/products/components/pages/Products.vue +42 -263
- package/src/modules/products/components/pages/ProductsBackoffice.vue +92 -0
- package/src/modules/products/components/sections/FilterProducts.vue +180 -0
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +18 -3
- package/src/modules/products/components/sections/SortProducts.vue +76 -0
- package/src/modules/products/controllers/leftovers.controller.js +51 -45
- package/src/modules/products/controllers/modifications.controller.js +66 -0
- package/src/modules/products/controllers/products.controller.js +67 -111
- package/src/modules/products/models/leftover.model.js +12 -9
- package/src/modules/products/models/product.model.js +1 -0
- package/src/modules/products/router/products.router.js +46 -0
- package/src/modules/products/routes/products.routes.js +4 -9
- package/src/modules/products/store/leftovers.js +56 -59
- package/src/modules/products/store/products.js +21 -22
- package/src/modules/spots/components/blocks/CardSpot.vue +104 -0
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +92 -0
- package/src/modules/spots/components/blocks/SpotSub.vue +24 -0
- package/src/modules/spots/components/pages/Map.vue +2 -2
- package/src/modules/spots/components/pages/Spot.vue +107 -0
- package/src/modules/spots/components/pages/SpotEdit.vue +319 -0
- package/src/modules/spots/components/sections/Feed.vue +64 -0
- package/src/modules/spots/controllers/spots.controller.js +83 -0
- package/src/modules/spots/models/spot.model.js +72 -0
- package/src/modules/spots/router/spots.js +34 -1
- package/src/modules/spots/routes/spots.routes.js +31 -0
- package/src/modules/spots/store/spots.js +15 -15
- package/src/modules/users/components/pages/Profile.vue +2 -3
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/styles/components/block.scss +2 -4
- package/src/modules/backoffice/components/admin/LeftoverAdd.vue +0 -157
- package/src/modules/backoffice/components/admin/Leftovers.vue +0 -119
- package/src/modules/backoffice/components/admin/Order.vue +0 -199
- package/src/modules/backoffice/components/admin/Product.vue +0 -28
- package/src/modules/backoffice/components/admin/Products.vue +0 -82
- package/src/modules/backoffice/components/pages/Organizations.vue +0 -104
- package/src/modules/community/controllers/blog.new.controller.js +0 -290
- package/src/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue +0 -92
- package/src/modules/organizations/components/elements/ButtonFollow.vue +0 -84
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +0 -110
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +0 -18
- /package/src/{components/CardFooter → modules/globals/components/blocks}/CardFooter.vue +0 -0
- /package/src/modules/{orders/controllers → payments/controller}/payments.controller.js +0 -0
- /package/src/modules/{orders → payments}/routes/payments.routes.js +0 -0
- /package/src/modules/{orders → payments}/store/payments.js +0 -0
- /package/src/modules/products/components/blocks/{ProductCard.vue → CardProduct.vue} +0 -0
- /package/src/modules/{organizations → spots}/components/sections/PlaceModify.vue +0 -0
- /package/src/modules/{organizations → spots}/components/sections/Places.vue +0 -0
- /package/src/modules/{backoffice → wallet}/components/pages/Wallet.vue +0 -0
package/dist/auth.client.js
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
import { ref as _, onMounted as $t, openBlock as g, createBlock as ue, unref as f, withCtx as C, createElementBlock as b, Fragment as ce, renderList as ut, createElementVNode as p, normalizeStyle as V, toDisplayString as y, resolveComponent as ve, createVNode as v, Transition as D, resolveDynamicComponent as Ft, reactive as ct, watch as ft, withDirectives as S, vModelText as Y, withAsyncContext as Dt, createTextVNode as F, createCommentVNode as A, defineComponent as Rt, resolveDirective as Mt, normalizeClass as U, withKeys as re, vShow as H, vModelDynamic as zt, renderSlot as Lt, inject as Ee } from "vue";
|
2
|
-
import
|
2
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
3
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
3
4
|
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
4
5
|
import { C as xt, S as kt } from "./carousel.es-44c501bc.mjs";
|
5
6
|
import { useI18n as B } from "vue-i18n";
|
6
7
|
import { useRoute as L, useRouter as x } from "vue-router";
|
7
|
-
import { b as ie, c as
|
8
|
-
import { d as
|
8
|
+
import { b as ie, c as pt, s as m, a as K } from "./auth-ec618cb3.mjs";
|
9
|
+
import { d as U1, t as G1 } from "./auth-ec618cb3.mjs";
|
10
|
+
import { v as R, a as mt, b as be, c as _e } from "./inputs.validation-db65277a.mjs";
|
9
11
|
import { s as z } from "./globals-96ba60e4.mjs";
|
10
|
-
import { F as M
|
12
|
+
import { F as M } from "./Field-e5ad88d3.mjs";
|
13
|
+
import { _ as X } from "./Button-9e1a9284.mjs";
|
11
14
|
import { a as jt } from "./index-a661083c.mjs";
|
12
|
-
import { _ as Ce } from "./Tab-
|
15
|
+
import { _ as Ce } from "./Tab-054b61f7.mjs";
|
13
16
|
import { c as Bt } from "./click-outside-6101836c.mjs";
|
14
17
|
import { _ as Ut } from "./_plugin-vue_export-helper-dad06003.mjs";
|
15
|
-
import { r as oe, c as Te } from "./states.validation-
|
16
|
-
import { b as G } from "./auth.validation-
|
17
|
-
const Gt = { class: "parent-div" }, Vt = { class: "mn-small" }, Ht = { class: "mn-big mn-r-small mn-l-small" },
|
18
|
+
import { r as oe, c as Te } from "./states.validation-50e3a5a0.mjs";
|
19
|
+
import { b as G } from "./auth.validation-ba3606bf.mjs";
|
20
|
+
const Gt = { class: "parent-div" }, Vt = { class: "mn-small" }, Ht = { class: "mn-big mn-r-small mn-l-small" }, L1 = {
|
18
21
|
__name: "SliderFeatures",
|
19
22
|
setup(e) {
|
20
23
|
const n = _(null), t = {
|
@@ -1896,7 +1899,7 @@ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = {
|
|
1896
1899
|
const i = _(null), o = _(0);
|
1897
1900
|
async function a() {
|
1898
1901
|
try {
|
1899
|
-
await
|
1902
|
+
await pt(m.user, n.query.type, m.user.phone ? "phone" : "email"), o.value = 30;
|
1900
1903
|
const u = setInterval(() => {
|
1901
1904
|
o.value > 0 ? o.value -= 1 : clearInterval(u);
|
1902
1905
|
}, 1e3);
|
@@ -2028,7 +2031,7 @@ const E = ct({
|
|
2028
2031
|
};
|
2029
2032
|
ft(E, (e, n) => {
|
2030
2033
|
});
|
2031
|
-
const
|
2034
|
+
const x1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2032
2035
|
__proto__: null,
|
2033
2036
|
actions: wt,
|
2034
2037
|
state: E
|
@@ -2043,7 +2046,7 @@ const ar = { class: "t-left pd-medium" }, sr = /* @__PURE__ */ p("h3", { class:
|
|
2043
2046
|
try {
|
2044
2047
|
await R(
|
2045
2048
|
d,
|
2046
|
-
|
2049
|
+
mt,
|
2047
2050
|
m.user.password,
|
2048
2051
|
"Некорректный пароль"
|
2049
2052
|
);
|
@@ -2188,7 +2191,7 @@ const mr = { class: "t-left pd-medium" }, hr = { class: "mn-small" }, yr = {
|
|
2188
2191
|
try {
|
2189
2192
|
await R(
|
2190
2193
|
n,
|
2191
|
-
|
2194
|
+
mt,
|
2192
2195
|
m.user.password,
|
2193
2196
|
"Некорректный пароль"
|
2194
2197
|
);
|
@@ -3400,7 +3403,7 @@ const Zr = { class: "t-left pd-medium" }, Jr = { class: "mn-small" }, Qr = { cla
|
|
3400
3403
|
throw new Error();
|
3401
3404
|
}
|
3402
3405
|
try {
|
3403
|
-
await
|
3406
|
+
await pt(m.user, "signup", i.value);
|
3404
3407
|
} catch {
|
3405
3408
|
throw new Error();
|
3406
3409
|
}
|
@@ -3761,7 +3764,7 @@ typeof lt == "function" && lt(Nt);
|
|
3761
3764
|
const g1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3762
3765
|
__proto__: null,
|
3763
3766
|
default: Nt
|
3764
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
3767
|
+
}, Symbol.toStringTag, { value: "Module" })), k1 = [
|
3765
3768
|
{
|
3766
3769
|
path: "auth",
|
3767
3770
|
name: "Authentication",
|
@@ -3863,9 +3866,9 @@ export {
|
|
3863
3866
|
St as ResetPassword,
|
3864
3867
|
Nt as SignIn,
|
3865
3868
|
It as SignUp,
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3869
|
+
L1 as SliderFeatures,
|
3870
|
+
k1 as authRoutes,
|
3871
|
+
U1 as authStore,
|
3872
|
+
x1 as invitesStore,
|
3873
|
+
G1 as twofaStore
|
3871
3874
|
};
|
package/dist/auth.server.js
CHANGED
@@ -6,7 +6,7 @@ const require$$0$1 = require("mongoose");
|
|
6
6
|
const require$$3 = require("uuidv4");
|
7
7
|
const require$$1 = require("node-fetch");
|
8
8
|
const require$$2 = require("jwk-to-pem");
|
9
|
-
const mailing = require("./mailing-
|
9
|
+
const mailing = require("./mailing-9659b3c4.js");
|
10
10
|
const index = require("./index-21dfdbd9.js");
|
11
11
|
require("dotenv");
|
12
12
|
require("nodemailer");
|
package/dist/auth.server.mjs
CHANGED
@@ -5,7 +5,7 @@ import require$$0$1 from "mongoose";
|
|
5
5
|
import require$$3 from "uuidv4";
|
6
6
|
import require$$1 from "node-fetch";
|
7
7
|
import require$$2 from "jwk-to-pem";
|
8
|
-
import { m as mailing } from "./mailing-
|
8
|
+
import { m as mailing } from "./mailing-76895d59.mjs";
|
9
9
|
import { s as server } from "./index-fa8d5df4.mjs";
|
10
10
|
import "dotenv";
|
11
11
|
import "nodemailer";
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const o=require("vue-router"),e=require("./auth-06d35b82.js");o.useRouter();function n(t,i,s){if(e.state.access.status!==!0)return s("/auth/signin");s()}function c(t,i,s){var u;if(((u=e.state.access.roles)!=null&&u.includes("ROLE_ADMIN")?e.state.access.roles.includes("ROLE_ADMIN"):!1)!==!0)return s("/404");s()}function a(t,i,s){if(e.state.access.status)return s("/profile/"+e.state.user._id);s()}exports.requiresAdmin=c;exports.requiresAuth=n;exports.requiresNoAuth=a;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { useRouter as u } from "vue-router";
|
2
|
+
import { s as i } from "./auth-ec618cb3.mjs";
|
3
|
+
u();
|
4
|
+
function a(r, o, s) {
|
5
|
+
if (i.access.status !== !0)
|
6
|
+
return s("/auth/signin");
|
7
|
+
s();
|
8
|
+
}
|
9
|
+
function f(r, o, s) {
|
10
|
+
var e;
|
11
|
+
if (((e = i.access.roles) != null && e.includes("ROLE_ADMIN") ? i.access.roles.includes("ROLE_ADMIN") : !1) !== !0)
|
12
|
+
return s("/404");
|
13
|
+
s();
|
14
|
+
}
|
15
|
+
function m(r, o, s) {
|
16
|
+
if (i.access.status)
|
17
|
+
return s("/profile/" + i.user._id);
|
18
|
+
s();
|
19
|
+
}
|
20
|
+
export {
|
21
|
+
a,
|
22
|
+
m as b,
|
23
|
+
f as r
|
24
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./_plugin-vue_export-helper-f246444f.js"),o=require("./auth.validation-0ce9e326.js");require("vue-router");require("./auth-06d35b82.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");const c={},s={id:"account",class:"cols-1 gap-medium pd-medium"},m={class:"w-100"};function u(t,p){const r=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",s,[e.createElementVNode("div",m,[e.createVNode(r,null,{default:e.withCtx(({Component:n,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:i.path}))]),_:2},1024)]),_:1})])])}const f=a._export_sfc(c,[["render",u]]),l=[{path:"backoffice",component:f,beforeEnter:[o.requiresAdmin],children:[{path:"",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Dashboard-91d73bc5.js"))},{path:"gallery",name:"Backoffice Gallery",meta:{title:{en:"Backoffice Gallery",ru:"Управление Галерей"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./BackofficeGallery-568b55bb.js"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("./BackofficeReports-d021871f.js"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Organizations-0cb37d68.js"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Events-cdfbca78.js")).then(t=>t.Events)},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Community-aef23aee.js"))},{path:"products",name:"Backoffice Products",meta:{title:{en:"Backoffice Products",ru:"Управление Продуктами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./ProductsBackoffice-0c93f9b6.js"))},{path:"products/add",name:"AddProduct",component:()=>Promise.resolve().then(()=>require("./ProductEdit-a434240f.js"))},{path:"products/:product",name:"Product Backofffice",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("./Product-68fa1e9e.js"))},{path:"products/:product/edit",name:"ProductEdit",beforeEnter:[o.requiresAuth],component:()=>Promise.resolve().then(()=>require("./ProductEdit-a434240f.js"))},{path:"leftovers",name:"Backoffice Leftovers",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Leftovers-296c0042.js"))},{path:"leftovers/add",name:"LeftoverAdd",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./LeftoverAdd-fc673884.js"))},{path:"leftovers/:_id",name:"LeftoverEdit",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./LeftoverAdd-fc673884.js"))},{path:"orders",name:"Backoffice Orders",meta:{title:{en:"Backoffice Orders",ru:"Управление Заказами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Orders-b64e8cb9.js"))},{path:"orders/add",name:"AdminOrder",component:()=>Promise.resolve().then(()=>require("./EditOrder-c070d474.js"))},{path:"orders/:_id",name:"AdminOrderEdit",component:()=>Promise.resolve().then(()=>require("./EditOrder-c070d474.js"))},{path:"payments",name:"Backoffice Payments",meta:{title:{en:"Backoffice Payments",ru:"Управление Платежами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Payments-53e5fecf.js"))}]}];exports.backofficeRoutes=l;
|
@@ -1,29 +1,29 @@
|
|
1
|
-
import { resolveComponent as
|
2
|
-
import { _ as
|
3
|
-
import { r as
|
1
|
+
import { resolveComponent as i, openBlock as t, createElementBlock as m, createElementVNode as p, createVNode as o, withCtx as r, Transition as f, createBlock as s, resolveDynamicComponent as u } from "vue";
|
2
|
+
import { _ as d } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
import { r as l, a as h } from "./auth.validation-ba3606bf.mjs";
|
4
4
|
import "vue-router";
|
5
|
-
import "./auth-
|
5
|
+
import "./auth-ec618cb3.mjs";
|
6
6
|
import "./index-a661083c.mjs";
|
7
7
|
import "./globals-96ba60e4.mjs";
|
8
8
|
import "vue-i18n";
|
9
|
-
const
|
9
|
+
const k = {}, B = {
|
10
10
|
id: "account",
|
11
11
|
class: "cols-1 gap-medium pd-medium"
|
12
|
-
},
|
13
|
-
function
|
14
|
-
const
|
15
|
-
return
|
16
|
-
|
17
|
-
o(
|
18
|
-
default:
|
19
|
-
o(
|
12
|
+
}, _ = { class: "w-100" };
|
13
|
+
function v(e, z) {
|
14
|
+
const a = i("router-view");
|
15
|
+
return t(), m("section", B, [
|
16
|
+
p("div", _, [
|
17
|
+
o(a, null, {
|
18
|
+
default: r(({ Component: n, route: c }) => [
|
19
|
+
o(f, {
|
20
20
|
name: "scaleIn",
|
21
21
|
mode: "out-in"
|
22
22
|
}, {
|
23
|
-
default:
|
24
|
-
(
|
23
|
+
default: r(() => [
|
24
|
+
(t(), s(u(n), {
|
25
25
|
ref: "page",
|
26
|
-
key:
|
26
|
+
key: c.path
|
27
27
|
}))
|
28
28
|
]),
|
29
29
|
_: 2
|
@@ -34,56 +34,232 @@ function h(y, v) {
|
|
34
34
|
])
|
35
35
|
]);
|
36
36
|
}
|
37
|
-
const
|
37
|
+
const y = /* @__PURE__ */ d(k, [["render", v]]), b = [{
|
38
38
|
path: "backoffice",
|
39
|
-
component:
|
39
|
+
component: y,
|
40
40
|
beforeEnter: [
|
41
|
-
|
41
|
+
l
|
42
42
|
],
|
43
|
-
children: [
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
43
|
+
children: [
|
44
|
+
{
|
45
|
+
path: "",
|
46
|
+
name: "Backoffice",
|
47
|
+
meta: {
|
48
|
+
title: {
|
49
|
+
en: "Backoffice",
|
50
|
+
ru: "Управление"
|
51
|
+
},
|
52
|
+
authorize: []
|
50
53
|
},
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
54
|
+
component: () => import(
|
55
|
+
/* webpackChunkName: 'BackofficeGallery' */
|
56
|
+
"./Dashboard-ea9035bc.mjs"
|
57
|
+
)
|
58
|
+
},
|
59
|
+
{
|
60
|
+
path: "gallery",
|
61
|
+
name: "Backoffice Gallery",
|
62
|
+
meta: {
|
63
|
+
title: {
|
64
|
+
en: "Backoffice Gallery",
|
65
|
+
ru: "Управление Галерей"
|
66
|
+
},
|
67
|
+
authorize: []
|
68
|
+
},
|
69
|
+
component: () => import(
|
70
|
+
/* webpackChunkName: 'BackofficeGallery' */
|
71
|
+
"./BackofficeGallery-b4105137.mjs"
|
72
|
+
)
|
73
|
+
},
|
74
|
+
{
|
75
|
+
path: "reports",
|
76
|
+
name: "Backoffice Reports",
|
77
|
+
meta: {
|
78
|
+
title: {
|
79
|
+
en: "Backoffice Reports",
|
80
|
+
ru: "Управление Жалобами"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
component: () => import(
|
84
|
+
/* webpackChunkName: 'BackofficeGallery' */
|
85
|
+
"./BackofficeReports-cb4b180d.mjs"
|
86
|
+
)
|
87
|
+
},
|
88
|
+
{
|
89
|
+
path: "organizations",
|
90
|
+
name: "Backoffice Organizations",
|
91
|
+
meta: {
|
92
|
+
title: {
|
93
|
+
en: "Backoffice Organizations",
|
94
|
+
ru: "Управление Организациями"
|
95
|
+
},
|
96
|
+
authorize: []
|
97
|
+
},
|
98
|
+
component: () => import(
|
99
|
+
/* webpackChunkName: 'BackofficeOrganizations' */
|
100
|
+
"./Organizations-d6ef2113.mjs"
|
101
|
+
)
|
102
|
+
},
|
103
|
+
{
|
104
|
+
path: "events",
|
105
|
+
name: "Backoffice Events",
|
106
|
+
meta: {
|
107
|
+
title: {
|
108
|
+
en: "Backoffice Events",
|
109
|
+
ru: "Управление Событиями"
|
110
|
+
},
|
111
|
+
authorize: []
|
64
112
|
},
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
113
|
+
component: () => import(
|
114
|
+
/* webpackChunkName: 'BackofficeEvents' */
|
115
|
+
"./Events-e9dd58f7.mjs"
|
116
|
+
).then((e) => e.E)
|
117
|
+
},
|
118
|
+
{
|
119
|
+
path: "community",
|
120
|
+
name: "Backoffice Community",
|
121
|
+
meta: {
|
122
|
+
title: {
|
123
|
+
en: "Backoffice Community",
|
124
|
+
ru: "Управление Сообществом"
|
125
|
+
},
|
126
|
+
authorize: []
|
127
|
+
},
|
128
|
+
component: () => import(
|
129
|
+
/* webpackChunkName: 'BackofficeCommunity' */
|
130
|
+
"./Community-87522a04.mjs"
|
131
|
+
)
|
132
|
+
},
|
133
|
+
{
|
134
|
+
path: "products",
|
135
|
+
name: "Backoffice Products",
|
136
|
+
meta: {
|
137
|
+
title: {
|
138
|
+
en: "Backoffice Products",
|
139
|
+
ru: "Управление Продуктами"
|
140
|
+
},
|
141
|
+
authorize: []
|
142
|
+
},
|
143
|
+
component: () => import(
|
144
|
+
/* webpackChunkName: 'BackofficeProducts' */
|
145
|
+
"./ProductsBackoffice-3d987c60.mjs"
|
146
|
+
)
|
147
|
+
},
|
148
|
+
{
|
149
|
+
path: "products/add",
|
150
|
+
name: "AddProduct",
|
151
|
+
component: () => import("./ProductEdit-64207814.mjs")
|
152
|
+
},
|
153
|
+
{
|
154
|
+
path: "products/:product",
|
155
|
+
name: "Product Backofffice",
|
156
|
+
meta: {
|
157
|
+
title: {
|
158
|
+
en: "Product",
|
159
|
+
ru: "Продукт"
|
160
|
+
}
|
78
161
|
},
|
79
|
-
|
162
|
+
component: () => import("./Product-5994a8c9.mjs")
|
80
163
|
},
|
81
|
-
|
82
|
-
|
83
|
-
"
|
84
|
-
|
85
|
-
|
164
|
+
{
|
165
|
+
path: "products/:product/edit",
|
166
|
+
name: "ProductEdit",
|
167
|
+
beforeEnter: [h],
|
168
|
+
component: () => import("./ProductEdit-64207814.mjs")
|
169
|
+
},
|
170
|
+
{
|
171
|
+
path: "leftovers",
|
172
|
+
name: "Backoffice Leftovers",
|
173
|
+
meta: {
|
174
|
+
title: {
|
175
|
+
en: "Backoffice Leftovers",
|
176
|
+
ru: "Управление Остатками"
|
177
|
+
},
|
178
|
+
authorize: []
|
179
|
+
},
|
180
|
+
component: () => import(
|
181
|
+
/* webpackChunkName: 'BackofficeLeftovers' */
|
182
|
+
"./Leftovers-685d9f19.mjs"
|
183
|
+
)
|
184
|
+
},
|
185
|
+
{
|
186
|
+
path: "leftovers/add",
|
187
|
+
name: "LeftoverAdd",
|
188
|
+
meta: {
|
189
|
+
title: {
|
190
|
+
en: "Backoffice Leftovers",
|
191
|
+
ru: "Управление Остатками"
|
192
|
+
},
|
193
|
+
authorize: []
|
194
|
+
},
|
195
|
+
component: () => import(
|
196
|
+
/* webpackChunkName: 'LeftoverEdit' */
|
197
|
+
"./LeftoverAdd-08d9fb54.mjs"
|
198
|
+
)
|
199
|
+
},
|
200
|
+
{
|
201
|
+
path: "leftovers/:_id",
|
202
|
+
name: "LeftoverEdit",
|
203
|
+
meta: {
|
204
|
+
title: {
|
205
|
+
en: "Backoffice Leftovers",
|
206
|
+
ru: "Управление Остатками"
|
207
|
+
},
|
208
|
+
authorize: []
|
209
|
+
},
|
210
|
+
component: () => import(
|
211
|
+
/* webpackChunkName: 'LeftoverEdit' */
|
212
|
+
"./LeftoverAdd-08d9fb54.mjs"
|
213
|
+
)
|
214
|
+
},
|
215
|
+
{
|
216
|
+
path: "orders",
|
217
|
+
name: "Backoffice Orders",
|
218
|
+
meta: {
|
219
|
+
title: {
|
220
|
+
en: "Backoffice Orders",
|
221
|
+
ru: "Управление Заказами"
|
222
|
+
},
|
223
|
+
authorize: []
|
224
|
+
},
|
225
|
+
component: () => import(
|
226
|
+
/* webpackChunkName: 'BackofficeOrders' */
|
227
|
+
"./Orders-ff30db05.mjs"
|
228
|
+
)
|
229
|
+
},
|
230
|
+
{
|
231
|
+
path: "orders/add",
|
232
|
+
name: "AdminOrder",
|
233
|
+
component: () => import(
|
234
|
+
/* webpackChunkName: 'AdminOrders' */
|
235
|
+
"./EditOrder-94bbebff.mjs"
|
236
|
+
)
|
237
|
+
},
|
238
|
+
{
|
239
|
+
path: "orders/:_id",
|
240
|
+
name: "AdminOrderEdit",
|
241
|
+
component: () => import(
|
242
|
+
/* webpackChunkName: 'AdminOrders' */
|
243
|
+
"./EditOrder-94bbebff.mjs"
|
244
|
+
)
|
245
|
+
},
|
246
|
+
{
|
247
|
+
path: "payments",
|
248
|
+
name: "Backoffice Payments",
|
249
|
+
meta: {
|
250
|
+
title: {
|
251
|
+
en: "Backoffice Payments",
|
252
|
+
ru: "Управление Платежами"
|
253
|
+
},
|
254
|
+
authorize: []
|
255
|
+
},
|
256
|
+
component: () => import(
|
257
|
+
/* webpackChunkName: 'BackofficePayments' */
|
258
|
+
"./Payments-82e545e1.mjs"
|
259
|
+
)
|
260
|
+
}
|
261
|
+
]
|
86
262
|
}];
|
87
263
|
export {
|
88
|
-
|
264
|
+
b as backofficeRoutes
|
89
265
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),g=require("vue-router"),k=require("vue-i18n"),a=require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./auth-06d35b82.js");const v=require("./index-b41aac19.js"),w={class:"breadcrumbs flex-row flex-nowrap flex-left flex","aria-label":"breadcrumbs"},B={key:0,class:"i-small mn-r-thin",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L=e.createElementVNode("path",{fill:"black",d:"M0.494141 4.26391C0.494141 4.48862 0.659906 4.66912 0.928813 4.66912C1.05037 4.66912 1.16825 4.6065 1.27139 4.52177L1.64344 4.20866V7.56448C1.64344 8.13545 1.98971 8.47803 2.5791 8.47803H7.56678C8.15616 8.47803 8.50243 8.13545 8.50243 7.56448V4.19392L8.8929 4.52177C8.99604 4.6065 9.11392 4.66912 9.23916 4.66912C9.48597 4.66912 9.67015 4.5144 9.67015 4.27128C9.67015 4.1313 9.61121 4.01343 9.5007 3.92133L8.50243 3.08146V1.47538C8.50243 1.30961 8.3956 1.1991 8.22984 1.1991H7.63308C7.46732 1.1991 7.35313 1.30961 7.35313 1.47538V2.11634L5.66969 0.70181C5.31606 0.403433 4.85928 0.403433 4.50197 0.70181L0.663589 3.92133C0.553079 4.01711 0.494141 4.14235 0.494141 4.26391ZM6.13752 5.26219C6.13752 5.08906 6.02701 4.97855 5.85387 4.97855H4.31779C4.14097 4.97855 4.02678 5.08906 4.02678 5.26219V7.63447H2.83327C2.60856 7.63447 2.48332 7.50922 2.48332 7.28084V3.5014L4.90349 1.47538C5.01768 1.37592 5.15029 1.37592 5.26817 1.47538L7.66255 3.48298V7.28084C7.66255 7.50922 7.53731 7.63447 7.3126 7.63447H6.13752V5.26219Z"},null,-1),x=[L],E={key:2},b={key:3,class:"i-small chevron",viewBox:"0 0 4 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V=e.createElementVNode("path",{d:"M4 3.99992C4 3.83673 3.94307 3.70391 3.81025 3.57867L0.899431 0.732369C0.800759 0.629902 0.679317 0.580566 0.531309 0.580566C0.239089 0.580566 0 0.815861 0 1.10808C0 1.25229 0.0607211 1.38512 0.166983 1.49138L2.74763 3.99613L0.166983 6.50846C0.0607211 6.61093 0 6.74375 0 6.89176C0 7.18398 0.239089 7.41928 0.531309 7.41928C0.675522 7.41928 0.800759 7.36994 0.899431 7.26747L3.81025 4.42117C3.94307 4.29594 4 4.15931 4 3.99992Z",fill:"black"},null,-1),P=[V],y={__name:"Breadcrumbs",setup(t){const r=g.useRoute(),{t:p,locale:c}=k.useI18n(),u=e.computed(()=>r.matched.map(s=>{var h,C,_;const m=(h=s.meta)==null?void 0:h.title,d=c==null?void 0:c.value,i=m&&d&&m[d],o=s.path.replace(/:.+?\//g,j=>""),f=(_=(C=s.meta)==null?void 0:C.breadcrumbs)==null?void 0:_.hidden;return{name:i,path:o,isHidden:f}}).filter(s=>s.name&&!s.isHidden));return(s,m)=>{const d=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("ol",w,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(i,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass(["flex-v-center flex-nowrap flex",{"t-main":o===e.unref(u).length-1}])},[o===0?(e.openBlock(),e.createElementBlock("svg",B,x)):e.createCommentVNode("",!0),o!==e.unref(u).length-1?(e.openBlock(),e.createBlock(d,{key:1,to:o===0?"/":i.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(i.name),1)),o!==e.unref(u).length-1?(e.openBlock(),e.createElementBlock("svg",b,P)):e.createCommentVNode("",!0)],2))),128))])}}},q=process.env.API_URL,l=v.axios.create({baseURL:q,withCredentials:!0}),n=e.reactive({all:[],current:{order:"1",name:"",url:"",subcategories:[],filters:[],localization:[]}}),H={async fetchCategories(){return await l.get("/categories").then(t=>(n.all=t.data,Promise.resolve(t.data)),t=>(a.setError(t),Promise.reject(t)))},updateCategories(t){return l.post("/categories",t).then(r=>(n.all=t,Promise.resolve(t)),r=>(a.setError(r),Promise.reject(r)))},fetchCategory(t){return l.get("/categories/"+t).then(r=>(n.current=r.data,Promise.resolve(r.data)),r=>(a.setError(r),Promise.reject(r)))},addCategory(){return l.post("/categories/add",n.current).then(t=>(n.all.push(t.data),Promise.resolve(t.data)),t=>(a.setError(t),Promise.reject(t)))},updateCategory(t){return l.post("/categories/"+t,n.current).then(r=>(n.current=r.data,Promise.resolve(r.data)),r=>(a.setError(r),Promise.reject(r)))},deleteCategory(t){return l.delete("/categories/"+t).then(r=>{const p=n.all.findIndex(c=>c.url===t);n.all.splice(p,1)},r=>{a.setError(r)})}};e.watch(n,t=>{});exports._sfc_main=y;exports.actions=H;exports.state=n;
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { computed as b, resolveComponent as k, openBlock as a, createElementBlock as o, Fragment as P, renderList as V, unref as p, normalizeClass as y, createCommentVNode as w, createBlock as H, withCtx as B, createTextVNode as j, toDisplayString as v, createElementVNode as L, reactive as U, watch as E } from "vue";
|
2
|
+
import { useRoute as I } from "vue-router";
|
3
|
+
import { useI18n as M } from "vue-i18n";
|
4
|
+
import { s as l } from "./globals-96ba60e4.mjs";
|
5
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
6
|
+
import "./auth-ec618cb3.mjs";
|
7
|
+
import { a as N } from "./index-a661083c.mjs";
|
8
|
+
const R = {
|
9
|
+
class: "breadcrumbs flex-row flex-nowrap flex-left flex",
|
10
|
+
"aria-label": "breadcrumbs"
|
11
|
+
}, Z = {
|
12
|
+
key: 0,
|
13
|
+
class: "i-small mn-r-thin",
|
14
|
+
viewBox: "0 0 10 9",
|
15
|
+
fill: "none",
|
16
|
+
xmlns: "http://www.w3.org/2000/svg"
|
17
|
+
}, z = /* @__PURE__ */ L("path", {
|
18
|
+
fill: "black",
|
19
|
+
d: "M0.494141 4.26391C0.494141 4.48862 0.659906 4.66912 0.928813 4.66912C1.05037 4.66912 1.16825 4.6065 1.27139 4.52177L1.64344 4.20866V7.56448C1.64344 8.13545 1.98971 8.47803 2.5791 8.47803H7.56678C8.15616 8.47803 8.50243 8.13545 8.50243 7.56448V4.19392L8.8929 4.52177C8.99604 4.6065 9.11392 4.66912 9.23916 4.66912C9.48597 4.66912 9.67015 4.5144 9.67015 4.27128C9.67015 4.1313 9.61121 4.01343 9.5007 3.92133L8.50243 3.08146V1.47538C8.50243 1.30961 8.3956 1.1991 8.22984 1.1991H7.63308C7.46732 1.1991 7.35313 1.30961 7.35313 1.47538V2.11634L5.66969 0.70181C5.31606 0.403433 4.85928 0.403433 4.50197 0.70181L0.663589 3.92133C0.553079 4.01711 0.494141 4.14235 0.494141 4.26391ZM6.13752 5.26219C6.13752 5.08906 6.02701 4.97855 5.85387 4.97855H4.31779C4.14097 4.97855 4.02678 5.08906 4.02678 5.26219V7.63447H2.83327C2.60856 7.63447 2.48332 7.50922 2.48332 7.28084V3.5014L4.90349 1.47538C5.01768 1.37592 5.15029 1.37592 5.26817 1.47538L7.66255 3.48298V7.28084C7.66255 7.50922 7.53731 7.63447 7.3126 7.63447H6.13752V5.26219Z"
|
20
|
+
}, null, -1), S = [
|
21
|
+
z
|
22
|
+
], A = { key: 2 }, D = {
|
23
|
+
key: 3,
|
24
|
+
class: "i-small chevron",
|
25
|
+
viewBox: "0 0 4 8",
|
26
|
+
fill: "none",
|
27
|
+
xmlns: "http://www.w3.org/2000/svg"
|
28
|
+
}, F = /* @__PURE__ */ L("path", {
|
29
|
+
d: "M4 3.99992C4 3.83673 3.94307 3.70391 3.81025 3.57867L0.899431 0.732369C0.800759 0.629902 0.679317 0.580566 0.531309 0.580566C0.239089 0.580566 0 0.815861 0 1.10808C0 1.25229 0.0607211 1.38512 0.166983 1.49138L2.74763 3.99613L0.166983 6.50846C0.0607211 6.61093 0 6.74375 0 6.89176C0 7.18398 0.239089 7.41928 0.531309 7.41928C0.675522 7.41928 0.800759 7.36994 0.899431 7.26747L3.81025 4.42117C3.94307 4.29594 4 4.15931 4 3.99992Z",
|
30
|
+
fill: "black"
|
31
|
+
}, null, -1), T = [
|
32
|
+
F
|
33
|
+
], Y = {
|
34
|
+
__name: "Breadcrumbs",
|
35
|
+
setup(e) {
|
36
|
+
const t = I(), { t: C, locale: i } = M(), m = b(() => t.matched.map((n) => {
|
37
|
+
var _, f, g;
|
38
|
+
const h = (_ = n.meta) == null ? void 0 : _.title, d = i == null ? void 0 : i.value, u = h && d && h[d], s = n.path.replace(/:.+?\//g, (q) => ""), x = (g = (f = n.meta) == null ? void 0 : f.breadcrumbs) == null ? void 0 : g.hidden;
|
39
|
+
return { name: u, path: s, isHidden: x };
|
40
|
+
}).filter((n) => n.name && !n.isHidden));
|
41
|
+
return (n, h) => {
|
42
|
+
const d = k("router-link");
|
43
|
+
return a(), o("ol", R, [
|
44
|
+
(a(!0), o(P, null, V(p(m), (u, s) => (a(), o("li", {
|
45
|
+
key: s,
|
46
|
+
class: y(["flex-v-center flex-nowrap flex", { "t-main": s === p(m).length - 1 }])
|
47
|
+
}, [
|
48
|
+
s === 0 ? (a(), o("svg", Z, S)) : w("", !0),
|
49
|
+
s !== p(m).length - 1 ? (a(), H(d, {
|
50
|
+
key: 1,
|
51
|
+
to: s === 0 ? "/" : u.path
|
52
|
+
}, {
|
53
|
+
default: B(() => [
|
54
|
+
j(v(u.name), 1)
|
55
|
+
]),
|
56
|
+
_: 2
|
57
|
+
}, 1032, ["to"])) : (a(), o("span", A, v(u.name), 1)),
|
58
|
+
s !== p(m).length - 1 ? (a(), o("svg", D, T)) : w("", !0)
|
59
|
+
], 2))), 128))
|
60
|
+
]);
|
61
|
+
};
|
62
|
+
}
|
63
|
+
}, $ = process.env.API_URL, c = N.create({ baseURL: $, withCredentials: !0 }), r = U({
|
64
|
+
all: [],
|
65
|
+
current: {
|
66
|
+
order: "1",
|
67
|
+
name: "",
|
68
|
+
url: "",
|
69
|
+
subcategories: [],
|
70
|
+
filters: [],
|
71
|
+
localization: []
|
72
|
+
}
|
73
|
+
}), ee = {
|
74
|
+
async fetchCategories() {
|
75
|
+
return await c.get("/categories").then(
|
76
|
+
(e) => (r.all = e.data, Promise.resolve(e.data)),
|
77
|
+
(e) => (l(e), Promise.reject(e))
|
78
|
+
);
|
79
|
+
},
|
80
|
+
updateCategories(e) {
|
81
|
+
return c.post("/categories", e).then(
|
82
|
+
(t) => (r.all = e, Promise.resolve(e)),
|
83
|
+
(t) => (l(t), Promise.reject(t))
|
84
|
+
);
|
85
|
+
},
|
86
|
+
fetchCategory(e) {
|
87
|
+
return c.get("/categories/" + e).then(
|
88
|
+
(t) => (r.current = t.data, Promise.resolve(t.data)),
|
89
|
+
(t) => (l(t), Promise.reject(t))
|
90
|
+
);
|
91
|
+
},
|
92
|
+
addCategory() {
|
93
|
+
return c.post("/categories/add", r.current).then(
|
94
|
+
(e) => (r.all.push(e.data), Promise.resolve(e.data)),
|
95
|
+
(e) => (l(e), Promise.reject(e))
|
96
|
+
);
|
97
|
+
},
|
98
|
+
updateCategory(e) {
|
99
|
+
return c.post("/categories/" + e, r.current).then(
|
100
|
+
(t) => (r.current = t.data, Promise.resolve(t.data)),
|
101
|
+
(t) => (l(t), Promise.reject(t))
|
102
|
+
);
|
103
|
+
},
|
104
|
+
deleteCategory(e) {
|
105
|
+
return c.delete("/categories/" + e).then(
|
106
|
+
(t) => {
|
107
|
+
const C = r.all.findIndex((i) => i.url === e);
|
108
|
+
r.all.splice(C, 1);
|
109
|
+
},
|
110
|
+
(t) => {
|
111
|
+
l(t);
|
112
|
+
}
|
113
|
+
);
|
114
|
+
}
|
115
|
+
};
|
116
|
+
E(r, (e) => {
|
117
|
+
});
|
118
|
+
export {
|
119
|
+
Y as _,
|
120
|
+
ee as a,
|
121
|
+
r as s
|
122
|
+
};
|