@ozdao/prometheus-framework 0.2.57 → 0.2.58
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_commonjsHelpers-CUmg6egw.mjs +6 -0
- package/dist/_commonjsHelpers-DHfMLFPC.js +5 -0
- package/dist/_virtual/index.cjs +1 -1
- package/dist/_virtual/index.js +2 -2
- package/dist/_virtual/index2.cjs +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/addMembersQuantity-B8UgqlUM.js +97 -0
- package/dist/addMembersQuantity-BXp_LeQd.mjs +98 -0
- package/dist/auth.server.js +5 -9
- package/dist/auth.server.mjs +5 -9
- package/dist/community.server.js +3 -5
- package/dist/community.server.mjs +3 -5
- package/dist/events.server.js +3 -5
- package/dist/events.server.mjs +3 -5
- package/dist/files.server.js +2 -4
- package/dist/files.server.mjs +2 -4
- package/dist/gallery.server.js +2 -4
- package/dist/gallery.server.mjs +2 -4
- package/dist/globals.server.js +2 -5
- package/dist/globals.server.mjs +2 -5
- package/dist/index-CGIn4v5E.mjs +217 -0
- package/dist/index-CL9l0HRS.js +216 -0
- package/dist/mailing-CxEcQ8NY.js +77 -0
- package/dist/mailing-DT2ZSkCD.mjs +78 -0
- package/dist/main-nO9P-mgH.js +91 -0
- package/dist/main-yJ9uXsVC.mjs +13748 -0
- package/dist/main.css +1 -1
- package/dist/metadata.schema-C_AgyVgg.mjs +210 -0
- package/dist/metadata.schema-IGS4BjqG.js +209 -0
- package/dist/middlewares.server.js +2 -4
- package/dist/middlewares.server.mjs +2 -4
- package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +1 -1
- package/dist/node_modules/@ethereumjs/rlp/dist/index.js +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +334 -332
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
- package/dist/node_modules/eventemitter3/index.cjs +1 -0
- package/dist/node_modules/eventemitter3/index.js +117 -0
- package/dist/node_modules/eventemitter3/index2.cjs +1 -0
- package/dist/node_modules/eventemitter3/index2.js +5 -0
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/index.js +41 -40
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/web3.js +50 -47
- package/dist/node_modules/web3/lib/esm/web3_eip6963.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/web3_eip6963.js +50 -0
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +171 -164
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +327 -265
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +18 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +35 -20
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +53 -47
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +69 -60
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +6 -82
- package/dist/node_modules/web3-utils/lib/esm/objects.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/objects.js +9 -9
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +20 -20
- package/dist/organizations.server.js +2 -2
- package/dist/organizations.server.mjs +2 -2
- package/dist/products.server.js +2 -4
- package/dist/products.server.mjs +2 -4
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/main.css.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/main.css.js +1 -4
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3113 -3253
- package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +11 -12
- package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +14 -14
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
- package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
- package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +3 -3
- package/dist/prometheus-framework/node_modules/date-fns/_lib/addLeadingZeros.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/defaultOptions.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/format/formatters.js +518 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/format/longFormatters.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/protectedTokens.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/_lib/protectedTokens.js +21 -0
- package/dist/prometheus-framework/node_modules/date-fns/add.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/add.js +20 -0
- package/dist/prometheus-framework/node_modules/date-fns/addDays.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/addDays.js +10 -0
- package/dist/prometheus-framework/node_modules/date-fns/addHours.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/addHours.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/addMilliseconds.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/addMilliseconds.js +10 -0
- package/dist/prometheus-framework/node_modules/date-fns/addMonths.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/addMonths.js +21 -0
- package/dist/prometheus-framework/node_modules/date-fns/addQuarters.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/addQuarters.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/addYears.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/addYears.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/constants.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/constants.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/constructFrom.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/constructFrom.js +7 -0
- package/dist/prometheus-framework/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/differenceInCalendarDays.js +11 -0
- package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.js +19 -0
- package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.js +20 -0
- package/dist/prometheus-framework/node_modules/date-fns/endOfQuarter.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/endOfQuarter.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/endOfWeek.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/endOfWeek.js +11 -0
- package/dist/prometheus-framework/node_modules/date-fns/endOfYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/endOfYear.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/format.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/format.js +60 -0
- package/dist/prometheus-framework/node_modules/date-fns/getDay.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getDay.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/getDayOfYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/prometheus-framework/node_modules/date-fns/getDaysInMonth.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/dist/prometheus-framework/node_modules/date-fns/getDefaultOptions.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getDefaultOptions.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/getHours.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getHours.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/getISODay.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getISODay.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/getISOWeek.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/prometheus-framework/node_modules/date-fns/getISOWeekYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/prometheus-framework/node_modules/date-fns/getMinutes.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getMinutes.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/getMonth.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getMonth.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/getQuarter.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getQuarter.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/getSeconds.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getSeconds.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/getWeek.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getWeek.js +12 -0
- package/dist/prometheus-framework/node_modules/date-fns/getWeekYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getWeekYear.js +17 -0
- package/dist/prometheus-framework/node_modules/date-fns/getYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/getYear.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/isAfter.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/isAfter.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/isBefore.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/isBefore.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/isDate.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/isDate.js +7 -0
- package/dist/prometheus-framework/node_modules/date-fns/isEqual.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/isEqual.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/isSameQuarter.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/isSameQuarter.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/isValid.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/isValid.js +12 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Parser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Parser.js +22 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Setter.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Setter.js +40 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/constants.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/constants.js +49 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/utils.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/utils.js +103 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/parse.js +90 -0
- package/dist/prometheus-framework/node_modules/date-fns/set.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/set.js +11 -0
- package/dist/prometheus-framework/node_modules/date-fns/setDay.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setDay.js +12 -0
- package/dist/prometheus-framework/node_modules/date-fns/setHours.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setHours.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/setISODay.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setISODay.js +11 -0
- package/dist/prometheus-framework/node_modules/date-fns/setISOWeek.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setISOWeek.js +10 -0
- package/dist/prometheus-framework/node_modules/date-fns/setMilliseconds.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setMilliseconds.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/setMinutes.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setMinutes.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/setMonth.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setMonth.js +13 -0
- package/dist/prometheus-framework/node_modules/date-fns/setSeconds.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setSeconds.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/setWeek.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setWeek.js +10 -0
- package/dist/prometheus-framework/node_modules/date-fns/setYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/setYear.js +10 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfDay.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfISOWeek.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfQuarter.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfQuarter.js +9 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfWeek.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfWeekYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfYear.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/prometheus-framework/node_modules/date-fns/sub.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/sub.js +19 -0
- package/dist/prometheus-framework/node_modules/date-fns/subDays.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/subDays.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/subMonths.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/subMonths.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/subYears.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/subYears.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/toDate.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/toDate.js +8 -0
- package/dist/prometheus-framework/node_modules/date-fns/transpose.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/transpose.js +18 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +223 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -225
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +81 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -83
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +8 -10
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +40 -43
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +34 -34
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +30 -92
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +29 -26
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.js +30 -50
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +28 -48
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +26 -30
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
- 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/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +11 -12
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +113 -116
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +63 -18
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
- 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/LeftoverPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
- 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/blocks/ListPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +1 -4
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +94 -63
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +20 -22
- package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/router/categories.router.js +24 -0
- package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +47 -0
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/router/products.router.js +38 -0
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +23 -22
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +35 -36
- package/dist/reports.server.js +2 -4
- package/dist/reports.server.mjs +2 -4
- package/dist/style.css +1 -1
- package/dist/users.server.js +2 -3
- package/dist/users.server.mjs +2 -3
- package/dist/web-YZLDTHc-.mjs +54 -0
- package/dist/web-zz-VV8RJ.js +1 -0
- package/package.json +30 -30
- package/src/components/Feed/Feed.vue +2 -1
- package/src/components/Radio/Radio.vue +0 -2
- package/src/modules/auth/components/sections/SliderFeatures.vue +37 -18
- package/src/modules/auth/controllers/auth.controller.js +0 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
- package/src/modules/backoffice/router/account.js +0 -33
- package/src/modules/backoffice/router/backoffice.js +20 -63
- package/src/modules/community/components/pages/Community.vue +7 -1
- package/src/modules/events/components/sections/SectionMainGuest.vue +1 -1
- package/src/modules/events/components/sections/SectionSpecialGuests.vue +1 -1
- package/src/modules/events/store/events.js +1 -0
- package/src/modules/landing/components/pages/Home.vue +2 -3
- package/src/modules/orders/components/pages/FormOrder.vue +15 -2
- package/src/modules/orders/components/pages/Order.vue +9 -16
- package/src/modules/orders/components/pages/Orders.vue +1 -1
- package/src/modules/orders/components/sections/FormClientDetails.vue +2 -2
- package/src/modules/orders/components/sections/FormDelivery.vue +5 -3
- package/src/modules/orders/components/sections/FormPayment.vue +1 -1
- package/src/modules/orders/controllers/orders.controller.js +1 -1
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/router/orders.router.js +1 -1
- package/src/modules/orders/routes/orders.routes.js +4 -2
- package/src/modules/orders/store/orders.js +15 -15
- package/src/modules/organizations/components/blocks/EditArray.vue +1 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +0 -1
- package/src/modules/organizations/router/departments.router.js +3 -3
- package/src/modules/organizations/router/members.router.js +6 -3
- package/src/modules/organizations/router/organizations.js +59 -12
- package/src/modules/products/components/pages/Products.vue +44 -8
- package/src/modules/products/products.client.js +0 -13
- package/src/modules/products/router/categories.router.js +24 -0
- package/src/modules/products/router/leftovers.router.js +38 -0
- package/src/modules/products/router/products.router.js +35 -0
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +1 -1
- package/src/modules/spots/components/pages/SpotEdit.vue +0 -1
- package/src/styles/config.scss +4 -3
- package/src/modules/landing/components/sections/SliderFeatures.vue +0 -131
- package/src/modules/organizations/router/organizations.router.js +0 -54
- package/src/modules/organizations/router/products.router.js +0 -78
- package/src/modules/products/components/pages/ProductsBackoffice.vue +0 -90
package/dist/_virtual/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/_virtual/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
@@ -0,0 +1,97 @@
|
|
1
|
+
"use strict";
|
2
|
+
const require$$0 = require("mongodb");
|
3
|
+
const { ObjectId } = require$$0;
|
4
|
+
const addUserStatusFields = (user) => {
|
5
|
+
return {
|
6
|
+
$addFields: {
|
7
|
+
isSubscriber: {
|
8
|
+
$cond: [
|
9
|
+
{
|
10
|
+
$anyElementTrue: {
|
11
|
+
$map: {
|
12
|
+
input: "$memberships",
|
13
|
+
as: "membership",
|
14
|
+
in: {
|
15
|
+
$and: [
|
16
|
+
{ $eq: ["$$membership.user", new ObjectId(user)] },
|
17
|
+
{ $eq: ["$$membership.role", "subscriber"] }
|
18
|
+
]
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
},
|
23
|
+
true,
|
24
|
+
false
|
25
|
+
]
|
26
|
+
},
|
27
|
+
isMember: {
|
28
|
+
$cond: [
|
29
|
+
{
|
30
|
+
$anyElementTrue: {
|
31
|
+
$map: {
|
32
|
+
input: "$memberships",
|
33
|
+
as: "membership",
|
34
|
+
in: {
|
35
|
+
$and: [
|
36
|
+
{ $eq: ["$$membership.user", new ObjectId(user)] },
|
37
|
+
{ $not: [{ $in: ["$$membership.role", ["subscriber", "blocked"]] }] }
|
38
|
+
]
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
},
|
43
|
+
true,
|
44
|
+
false
|
45
|
+
]
|
46
|
+
},
|
47
|
+
isBlocked: {
|
48
|
+
$cond: [
|
49
|
+
{
|
50
|
+
$anyElementTrue: {
|
51
|
+
$map: {
|
52
|
+
input: "$memberships",
|
53
|
+
as: "membership",
|
54
|
+
in: {
|
55
|
+
$and: [
|
56
|
+
{ $eq: ["$$membership.user", new ObjectId(user)] },
|
57
|
+
{ $eq: ["$$membership.role", "blocked"] }
|
58
|
+
]
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
},
|
63
|
+
true,
|
64
|
+
false
|
65
|
+
]
|
66
|
+
}
|
67
|
+
}
|
68
|
+
};
|
69
|
+
};
|
70
|
+
var addUserStatusFields_1 = addUserStatusFields;
|
71
|
+
const addMembersQuantity = (user) => {
|
72
|
+
return {
|
73
|
+
$addFields: {
|
74
|
+
numberOfSubscribers: {
|
75
|
+
$size: {
|
76
|
+
$filter: {
|
77
|
+
input: "$memberships",
|
78
|
+
as: "membership",
|
79
|
+
cond: { $eq: ["$$membership.role", "subscriber"] }
|
80
|
+
}
|
81
|
+
}
|
82
|
+
},
|
83
|
+
numberOfMembers: {
|
84
|
+
$size: {
|
85
|
+
$filter: {
|
86
|
+
input: "$memberships",
|
87
|
+
as: "membership",
|
88
|
+
cond: { $not: { $in: ["$$membership.role", ["blocked", "subscriber"]] } }
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
};
|
94
|
+
};
|
95
|
+
var addMembersQuantity_1 = addMembersQuantity;
|
96
|
+
exports.addMembersQuantity_1 = addMembersQuantity_1;
|
97
|
+
exports.addUserStatusFields_1 = addUserStatusFields_1;
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import require$$0 from "mongodb";
|
2
|
+
const { ObjectId } = require$$0;
|
3
|
+
const addUserStatusFields = (user) => {
|
4
|
+
return {
|
5
|
+
$addFields: {
|
6
|
+
isSubscriber: {
|
7
|
+
$cond: [
|
8
|
+
{
|
9
|
+
$anyElementTrue: {
|
10
|
+
$map: {
|
11
|
+
input: "$memberships",
|
12
|
+
as: "membership",
|
13
|
+
in: {
|
14
|
+
$and: [
|
15
|
+
{ $eq: ["$$membership.user", new ObjectId(user)] },
|
16
|
+
{ $eq: ["$$membership.role", "subscriber"] }
|
17
|
+
]
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
},
|
22
|
+
true,
|
23
|
+
false
|
24
|
+
]
|
25
|
+
},
|
26
|
+
isMember: {
|
27
|
+
$cond: [
|
28
|
+
{
|
29
|
+
$anyElementTrue: {
|
30
|
+
$map: {
|
31
|
+
input: "$memberships",
|
32
|
+
as: "membership",
|
33
|
+
in: {
|
34
|
+
$and: [
|
35
|
+
{ $eq: ["$$membership.user", new ObjectId(user)] },
|
36
|
+
{ $not: [{ $in: ["$$membership.role", ["subscriber", "blocked"]] }] }
|
37
|
+
]
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
true,
|
43
|
+
false
|
44
|
+
]
|
45
|
+
},
|
46
|
+
isBlocked: {
|
47
|
+
$cond: [
|
48
|
+
{
|
49
|
+
$anyElementTrue: {
|
50
|
+
$map: {
|
51
|
+
input: "$memberships",
|
52
|
+
as: "membership",
|
53
|
+
in: {
|
54
|
+
$and: [
|
55
|
+
{ $eq: ["$$membership.user", new ObjectId(user)] },
|
56
|
+
{ $eq: ["$$membership.role", "blocked"] }
|
57
|
+
]
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
},
|
62
|
+
true,
|
63
|
+
false
|
64
|
+
]
|
65
|
+
}
|
66
|
+
}
|
67
|
+
};
|
68
|
+
};
|
69
|
+
var addUserStatusFields_1 = addUserStatusFields;
|
70
|
+
const addMembersQuantity = (user) => {
|
71
|
+
return {
|
72
|
+
$addFields: {
|
73
|
+
numberOfSubscribers: {
|
74
|
+
$size: {
|
75
|
+
$filter: {
|
76
|
+
input: "$memberships",
|
77
|
+
as: "membership",
|
78
|
+
cond: { $eq: ["$$membership.role", "subscriber"] }
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
numberOfMembers: {
|
83
|
+
$size: {
|
84
|
+
$filter: {
|
85
|
+
input: "$memberships",
|
86
|
+
as: "membership",
|
87
|
+
cond: { $not: { $in: ["$$membership.role", ["blocked", "subscriber"]] } }
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
};
|
93
|
+
};
|
94
|
+
var addMembersQuantity_1 = addMembersQuantity;
|
95
|
+
export {
|
96
|
+
addUserStatusFields_1 as a,
|
97
|
+
addMembersQuantity_1 as b
|
98
|
+
};
|
package/dist/auth.server.js
CHANGED
@@ -1,16 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
const _commonjsHelpers = require("./_commonjsHelpers-
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("jsonwebtoken");
|
4
4
|
const require$$1$1 = require("bcryptjs");
|
5
5
|
const require$$0$1 = require("mongoose");
|
6
|
-
const require$$3 = require("uuidv4");
|
7
6
|
const require$$1 = require("jwk-to-pem");
|
8
|
-
const mailing = require("./mailing-
|
9
|
-
const
|
10
|
-
require("
|
11
|
-
require("nodemailer");
|
12
|
-
require("axios");
|
13
|
-
require("mongodb");
|
7
|
+
const mailing = require("./mailing-CxEcQ8NY.js");
|
8
|
+
const require$$0$2 = require("uuidv4");
|
9
|
+
const index = require("./index-CL9l0HRS.js");
|
14
10
|
const jwt$1 = require$$0;
|
15
11
|
const jwkToPem = require$$1;
|
16
12
|
async function verifyAppleIdToken$1(id_token) {
|
@@ -273,7 +269,7 @@ const controllerFactory$3 = (db) => {
|
|
273
269
|
};
|
274
270
|
};
|
275
271
|
var twofa_controller = controllerFactory$3;
|
276
|
-
const { uuid } = require$$
|
272
|
+
const { uuid } = require$$0$2;
|
277
273
|
const { sendEmail, sendSms } = mailing.mailing;
|
278
274
|
const сontrollerFactory = (db) => {
|
279
275
|
const User = db.user;
|
package/dist/auth.server.mjs
CHANGED
@@ -1,15 +1,11 @@
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-
|
1
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "jsonwebtoken";
|
3
3
|
import require$$1$1 from "bcryptjs";
|
4
4
|
import require$$0$1 from "mongoose";
|
5
|
-
import require$$3 from "uuidv4";
|
6
5
|
import require$$1 from "jwk-to-pem";
|
7
|
-
import { m as mailing } from "./mailing-
|
8
|
-
import
|
9
|
-
import "
|
10
|
-
import "nodemailer";
|
11
|
-
import "axios";
|
12
|
-
import "mongodb";
|
6
|
+
import { m as mailing } from "./mailing-DT2ZSkCD.mjs";
|
7
|
+
import require$$0$2 from "uuidv4";
|
8
|
+
import { s as server } from "./index-CGIn4v5E.mjs";
|
13
9
|
const jwt$1 = require$$0;
|
14
10
|
const jwkToPem = require$$1;
|
15
11
|
async function verifyAppleIdToken$1(id_token) {
|
@@ -272,7 +268,7 @@ const controllerFactory$3 = (db) => {
|
|
272
268
|
};
|
273
269
|
};
|
274
270
|
var twofa_controller = controllerFactory$3;
|
275
|
-
const { uuid } = require$$
|
271
|
+
const { uuid } = require$$0$2;
|
276
272
|
const { sendEmail, sendSms } = mailing;
|
277
273
|
const сontrollerFactory = (db) => {
|
278
274
|
const User = db.user;
|
package/dist/community.server.js
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
const _commonjsHelpers = require("./_commonjsHelpers-
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("mongoose");
|
4
|
-
const metadata_schema = require("./metadata.schema-
|
4
|
+
const metadata_schema = require("./metadata.schema-IGS4BjqG.js");
|
5
5
|
require("util");
|
6
6
|
require("uuid");
|
7
|
-
const index = require("./index-
|
8
|
-
require("jsonwebtoken");
|
9
|
-
require("mongodb");
|
7
|
+
const index = require("./index-CL9l0HRS.js");
|
10
8
|
function getPeriodConditions(period) {
|
11
9
|
const currentDate = /* @__PURE__ */ new Date();
|
12
10
|
const startDate = /* @__PURE__ */ new Date();
|
@@ -1,11 +1,9 @@
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-
|
1
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "mongoose";
|
3
|
-
import { q as queryProcessor$3, c as common_schema, e as engagement_schema, o as ownership_schema, m as metadata_schema } from "./metadata.schema-
|
3
|
+
import { q as queryProcessor$3, c as common_schema, e as engagement_schema, o as ownership_schema, m as metadata_schema } from "./metadata.schema-C_AgyVgg.mjs";
|
4
4
|
import "util";
|
5
5
|
import "uuid";
|
6
|
-
import { s as server$1 } from "./index-
|
7
|
-
import "jsonwebtoken";
|
8
|
-
import "mongodb";
|
6
|
+
import { s as server$1 } from "./index-CGIn4v5E.mjs";
|
9
7
|
function getPeriodConditions(period) {
|
10
8
|
const currentDate = /* @__PURE__ */ new Date();
|
11
9
|
const startDate = /* @__PURE__ */ new Date();
|
package/dist/events.server.js
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const _commonjsHelpers = require("./_commonjsHelpers-
|
3
|
+
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
4
4
|
const require$$0 = require("mongoose");
|
5
|
-
const metadata_schema = require("./metadata.schema-
|
6
|
-
const index = require("./index-
|
7
|
-
require("jsonwebtoken");
|
8
|
-
require("mongodb");
|
5
|
+
const metadata_schema = require("./metadata.schema-IGS4BjqG.js");
|
6
|
+
const index = require("./index-CL9l0HRS.js");
|
9
7
|
const ObjectId = require$$0.Types.ObjectId;
|
10
8
|
function getDateConditions(date) {
|
11
9
|
if (date) {
|
package/dist/events.server.mjs
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-
|
1
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "mongoose";
|
3
|
-
import { q as queryProcessor$2, c as common_schema, e as engagement_schema, o as ownership_schema, m as metadata_schema } from "./metadata.schema-
|
4
|
-
import { s as server$1 } from "./index-
|
5
|
-
import "jsonwebtoken";
|
6
|
-
import "mongodb";
|
3
|
+
import { q as queryProcessor$2, c as common_schema, e as engagement_schema, o as ownership_schema, m as metadata_schema } from "./metadata.schema-C_AgyVgg.mjs";
|
4
|
+
import { s as server$1 } from "./index-CGIn4v5E.mjs";
|
7
5
|
const ObjectId = require$$0.Types.ObjectId;
|
8
6
|
function getDateConditions(date) {
|
9
7
|
if (date) {
|
package/dist/files.server.js
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
"use strict";
|
2
|
-
const _commonjsHelpers = require("./_commonjsHelpers-
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("path");
|
4
|
-
const index = require("./index-
|
4
|
+
const index = require("./index-CL9l0HRS.js");
|
5
5
|
const require$$0$1 = require("sharp");
|
6
6
|
const require$$1 = require("fs");
|
7
7
|
const require$$2 = require("fs/promises");
|
8
8
|
const require$$4 = require("busboy");
|
9
|
-
require("jsonwebtoken");
|
10
|
-
require("mongodb");
|
11
9
|
const path = require$$0;
|
12
10
|
const controllerFactory$1 = (db, publicPath) => {
|
13
11
|
const uploadMultipleFileController = async (req, res, next) => {
|
package/dist/files.server.mjs
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-
|
1
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "path";
|
3
|
-
import { s as server$1 } from "./index-
|
3
|
+
import { s as server$1 } from "./index-CGIn4v5E.mjs";
|
4
4
|
import require$$0$1 from "sharp";
|
5
5
|
import require$$1 from "fs";
|
6
6
|
import require$$2 from "fs/promises";
|
7
7
|
import require$$4 from "busboy";
|
8
|
-
import "jsonwebtoken";
|
9
|
-
import "mongodb";
|
10
8
|
const path = require$$0;
|
11
9
|
const controllerFactory$1 = (db, publicPath) => {
|
12
10
|
const uploadMultipleFileController = async (req, res, next) => {
|
package/dist/gallery.server.js
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
const _commonjsHelpers = require("./_commonjsHelpers-
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("path");
|
4
|
-
const index = require("./index-
|
5
|
-
require("jsonwebtoken");
|
6
|
-
require("mongodb");
|
4
|
+
const index = require("./index-CL9l0HRS.js");
|
7
5
|
const path = require$$0;
|
8
6
|
const controllerFactory$1 = (db) => {
|
9
7
|
const Photo = db.photo;
|
package/dist/gallery.server.mjs
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-
|
1
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "path";
|
3
|
-
import { s as server } from "./index-
|
4
|
-
import "jsonwebtoken";
|
5
|
-
import "mongodb";
|
3
|
+
import { s as server } from "./index-CGIn4v5E.mjs";
|
6
4
|
const path = require$$0;
|
7
5
|
const controllerFactory$1 = (db) => {
|
8
6
|
const Photo = db.photo;
|
package/dist/globals.server.js
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
const _commonjsHelpers = require("./_commonjsHelpers-
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("sitemap");
|
4
4
|
const require$$1 = require("zlib");
|
5
|
-
const mailing$1 = require("./mailing-
|
6
|
-
require("dotenv");
|
7
|
-
require("nodemailer");
|
8
|
-
require("axios");
|
5
|
+
const mailing$1 = require("./mailing-CxEcQ8NY.js");
|
9
6
|
const { SitemapStream, streamToPromise } = require$$0;
|
10
7
|
const { createGzip } = require$$1;
|
11
8
|
async function generateSitemap(db, req, res) {
|
package/dist/globals.server.mjs
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-
|
1
|
+
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "sitemap";
|
3
3
|
import require$$1 from "zlib";
|
4
|
-
import { m as mailing$1 } from "./mailing-
|
5
|
-
import "dotenv";
|
6
|
-
import "nodemailer";
|
7
|
-
import "axios";
|
4
|
+
import { m as mailing$1 } from "./mailing-DT2ZSkCD.mjs";
|
8
5
|
const { SitemapStream, streamToPromise } = require$$0;
|
9
6
|
const { createGzip } = require$$1;
|
10
7
|
async function generateSitemap(db, req, res) {
|
@@ -0,0 +1,217 @@
|
|
1
|
+
import require$$0 from "jsonwebtoken";
|
2
|
+
import require$$0$1 from "mongodb";
|
3
|
+
const jwt = require$$0;
|
4
|
+
const middlewareFactory$4 = (db) => {
|
5
|
+
const User = db.user;
|
6
|
+
const Role = db.role;
|
7
|
+
const verifyToken = async (req, res, next) => {
|
8
|
+
try {
|
9
|
+
console.log(req.cookies);
|
10
|
+
let user = JSON.parse(req.cookies.user);
|
11
|
+
let token = req.headers["x-access-token"] || user.accessToken;
|
12
|
+
if (!token) {
|
13
|
+
return res.status(403).send({ message: "No token provided!" });
|
14
|
+
}
|
15
|
+
const decoded = jwt.verify(token, process.env.SECRET_KEY);
|
16
|
+
req.userId = decoded._id;
|
17
|
+
console.log("success");
|
18
|
+
next();
|
19
|
+
} catch (err) {
|
20
|
+
console.log(err);
|
21
|
+
return res.status(401).send({ message: "Unauthorized!" });
|
22
|
+
}
|
23
|
+
};
|
24
|
+
const checkRole = (roleToCheck) => async (req, res, next) => {
|
25
|
+
try {
|
26
|
+
const user = await User.findById(req.userId).exec();
|
27
|
+
if (!user) {
|
28
|
+
return res.status(404).send({ message: "User Not found." });
|
29
|
+
}
|
30
|
+
const roles = await Role.find({ _id: { $in: user.roles } }).exec();
|
31
|
+
for (let role of roles) {
|
32
|
+
if (role.name === roleToCheck) {
|
33
|
+
next();
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
res.status(403).send({ message: `Require ${roleToCheck} Role!` });
|
38
|
+
} catch (err) {
|
39
|
+
res.status(500).send({ message: err.message });
|
40
|
+
}
|
41
|
+
};
|
42
|
+
const isAdmin = checkRole("admin");
|
43
|
+
const isModerator = checkRole("moderator");
|
44
|
+
return {
|
45
|
+
verifyToken,
|
46
|
+
isAdmin,
|
47
|
+
isModerator
|
48
|
+
};
|
49
|
+
};
|
50
|
+
var authJwt = middlewareFactory$4;
|
51
|
+
const middlewareFactory$3 = (db) => {
|
52
|
+
const User = db.user;
|
53
|
+
db.role;
|
54
|
+
const checkDuplicateUsernameOrEmail = async (req, res, next) => {
|
55
|
+
const { type, email, phone } = req.body;
|
56
|
+
console.log(req.body);
|
57
|
+
let query;
|
58
|
+
if (type === "phone" && phone) {
|
59
|
+
query = { phone };
|
60
|
+
}
|
61
|
+
if (type === "email" && email) {
|
62
|
+
query = { email };
|
63
|
+
}
|
64
|
+
try {
|
65
|
+
const user = await User.findOne(query).exec();
|
66
|
+
if (user) {
|
67
|
+
console.log(`USER_ALREADY_REGISTERED`);
|
68
|
+
res.status(400).send({ errorCode: "USER_ALREADY_REGISTERED" });
|
69
|
+
return;
|
70
|
+
}
|
71
|
+
next();
|
72
|
+
} catch (err) {
|
73
|
+
console.log(err);
|
74
|
+
res.status(500).send({ message: err.message });
|
75
|
+
}
|
76
|
+
};
|
77
|
+
const checkRolesExisted = (req, res, next) => {
|
78
|
+
if (req.body.roles) {
|
79
|
+
for (let i = 0; i < req.body.roles.length; i++) {
|
80
|
+
if (!ROLES.includes(req.body.roles[i])) {
|
81
|
+
console.log(`Failed! Role ${req.body.roles[i]} does not exist!`);
|
82
|
+
res.status(400).send({
|
83
|
+
message: `Failed! Role ${req.body.roles[i]} does not exist!`
|
84
|
+
});
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
next();
|
90
|
+
};
|
91
|
+
return {
|
92
|
+
checkDuplicateUsernameOrEmail,
|
93
|
+
checkRolesExisted
|
94
|
+
};
|
95
|
+
};
|
96
|
+
var verifySignUp = middlewareFactory$3;
|
97
|
+
const middlewareFactory$2 = (db) => {
|
98
|
+
const User = db.user;
|
99
|
+
db.role;
|
100
|
+
const checkUserExist = async (req, res, next) => {
|
101
|
+
const { type, email, phone } = req.body;
|
102
|
+
let query;
|
103
|
+
if (type === "phone" && phone) {
|
104
|
+
query = { phone };
|
105
|
+
}
|
106
|
+
if (type === "email" && email) {
|
107
|
+
query = { email };
|
108
|
+
}
|
109
|
+
try {
|
110
|
+
const user = await User.findOne(query).exec();
|
111
|
+
if (!user) {
|
112
|
+
console.log(query);
|
113
|
+
res.status(400).send({ errorCode: "USER_NOT_REGISTERED_YET" });
|
114
|
+
return;
|
115
|
+
}
|
116
|
+
next();
|
117
|
+
} catch (err) {
|
118
|
+
res.status(500).send({ message: err.message });
|
119
|
+
}
|
120
|
+
};
|
121
|
+
return {
|
122
|
+
checkUserExist
|
123
|
+
};
|
124
|
+
};
|
125
|
+
var verifyUser = middlewareFactory$2;
|
126
|
+
const { ObjectId } = require$$0$1;
|
127
|
+
const middlewareFactory$1 = (db) => {
|
128
|
+
const User = db.user;
|
129
|
+
const Invite = db.invite;
|
130
|
+
const Membership = db.membership;
|
131
|
+
const checkInviteExist = async (req, res, next) => {
|
132
|
+
for (let invite of req.body) {
|
133
|
+
let query;
|
134
|
+
if (invite.contact.includes("@")) {
|
135
|
+
query = { invitedEmail: invite.contact };
|
136
|
+
} else {
|
137
|
+
query = { invitedPhone: invite.contact };
|
138
|
+
}
|
139
|
+
query.organization = req.params._id;
|
140
|
+
const userInvite = await Invite.findOne(query).exec();
|
141
|
+
if (userInvite) {
|
142
|
+
console.log(userInvite);
|
143
|
+
res.status(400).send({ message: "Инвайт c таким email или телефоном уже создан!" });
|
144
|
+
return;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
next();
|
148
|
+
};
|
149
|
+
const checkUsersExist = async (req, res, next) => {
|
150
|
+
for (let invite of req.body) {
|
151
|
+
let query;
|
152
|
+
if (invite.contact.includes("@")) {
|
153
|
+
query = { email: invite.contact };
|
154
|
+
} else {
|
155
|
+
query = { phone: invite.contact };
|
156
|
+
}
|
157
|
+
const user = await User.findOne(query).exec();
|
158
|
+
console.log(req.params);
|
159
|
+
if (user) {
|
160
|
+
const membership = await Membership.findOne({ user: new ObjectId(user._id), organization: req.params._id }).exec();
|
161
|
+
if (membership) {
|
162
|
+
console.log(membership);
|
163
|
+
res.status(400).send({ message: "Пользователь с таким email или телефоном уже добавлен в организацию!" });
|
164
|
+
return;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
next();
|
169
|
+
};
|
170
|
+
return {
|
171
|
+
checkInviteExist,
|
172
|
+
checkUsersExist
|
173
|
+
};
|
174
|
+
};
|
175
|
+
var verifyInvites = middlewareFactory$1;
|
176
|
+
const middlewareFactory = (db) => {
|
177
|
+
const Category = db.category;
|
178
|
+
const checkCategoryExistOrNot = async (req, res, next) => {
|
179
|
+
try {
|
180
|
+
const category = await Category.findOne({ url: req.body.url });
|
181
|
+
if (category) {
|
182
|
+
res.status(400).send({ message: "Failed! Category with this URL is already in use!" });
|
183
|
+
return;
|
184
|
+
}
|
185
|
+
next();
|
186
|
+
} catch (err) {
|
187
|
+
res.status(500).send({ message: err });
|
188
|
+
}
|
189
|
+
};
|
190
|
+
return {
|
191
|
+
checkCategoryExistOrNot
|
192
|
+
};
|
193
|
+
};
|
194
|
+
var verifyCategory = middlewareFactory;
|
195
|
+
const middlewareIndexFactory = (db) => {
|
196
|
+
const authJwt$1 = authJwt(db);
|
197
|
+
const verifySignUp$1 = verifySignUp(db);
|
198
|
+
const verifyUser$1 = verifyUser(db);
|
199
|
+
const verifyInvites$1 = verifyInvites(db);
|
200
|
+
const verifyCategory$1 = verifyCategory(db);
|
201
|
+
return {
|
202
|
+
authJwt: authJwt$1,
|
203
|
+
verifySignUp: verifySignUp$1,
|
204
|
+
verifyUser: verifyUser$1,
|
205
|
+
verifyInvites: verifyInvites$1,
|
206
|
+
verifyCategory: verifyCategory$1
|
207
|
+
};
|
208
|
+
};
|
209
|
+
var server = middlewareIndexFactory;
|
210
|
+
export {
|
211
|
+
verifyInvites as a,
|
212
|
+
authJwt as b,
|
213
|
+
verifySignUp as c,
|
214
|
+
verifyCategory as d,
|
215
|
+
server as s,
|
216
|
+
verifyUser as v
|
217
|
+
};
|