@ozdao/prometheus-framework 0.2.197 → 0.2.199
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +3 -10
- package/dist/builder.mjs +3 -10
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +21 -20
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5042 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +518 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/date-fns/add.cjs +1 -0
- package/dist/node_modules/date-fns/add.js +20 -0
- package/dist/node_modules/date-fns/addDays.cjs +1 -0
- package/dist/node_modules/date-fns/addDays.js +10 -0
- package/dist/node_modules/date-fns/addHours.cjs +1 -0
- package/dist/node_modules/date-fns/addHours.js +9 -0
- package/dist/node_modules/date-fns/addMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/addMilliseconds.js +10 -0
- package/dist/node_modules/date-fns/addMonths.cjs +1 -0
- package/dist/node_modules/date-fns/addMonths.js +20 -0
- package/dist/node_modules/date-fns/addQuarters.cjs +1 -0
- package/dist/node_modules/date-fns/addQuarters.js +9 -0
- package/dist/node_modules/date-fns/addYears.cjs +1 -0
- package/dist/node_modules/date-fns/addYears.js +8 -0
- package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
- package/dist/node_modules/date-fns/compareAsc.js +9 -0
- package/dist/node_modules/date-fns/constants.cjs +1 -0
- package/dist/node_modules/date-fns/constants.js +8 -0
- package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +7 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.js +9 -0
- package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInYears.js +13 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.cjs +1 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.js +16 -0
- package/dist/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -0
- package/dist/node_modules/date-fns/eachQuarterOfInterval.js +17 -0
- package/dist/node_modules/date-fns/endOfQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/endOfQuarter.js +9 -0
- package/dist/node_modules/date-fns/endOfWeek.cjs +1 -0
- package/dist/node_modules/date-fns/endOfWeek.js +11 -0
- package/dist/node_modules/date-fns/endOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/endOfYear.js +9 -0
- package/dist/node_modules/date-fns/format.cjs +1 -0
- package/dist/node_modules/date-fns/format.js +59 -0
- package/dist/node_modules/date-fns/getDay.cjs +1 -0
- package/dist/node_modules/date-fns/getDay.js +8 -0
- package/dist/node_modules/date-fns/getDayOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/date-fns/getDaysInMonth.cjs +1 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/dist/node_modules/date-fns/getDefaultOptions.cjs +1 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js +8 -0
- package/dist/node_modules/date-fns/getHours.cjs +1 -0
- package/dist/node_modules/date-fns/getHours.js +8 -0
- package/dist/node_modules/date-fns/getISODay.cjs +1 -0
- package/dist/node_modules/date-fns/getISODay.js +9 -0
- package/dist/node_modules/date-fns/getISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/date-fns/getMinutes.cjs +1 -0
- package/dist/node_modules/date-fns/getMinutes.js +8 -0
- package/dist/node_modules/date-fns/getMonth.cjs +1 -0
- package/dist/node_modules/date-fns/getMonth.js +8 -0
- package/dist/node_modules/date-fns/getQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/getQuarter.js +9 -0
- package/dist/node_modules/date-fns/getSeconds.cjs +1 -0
- package/dist/node_modules/date-fns/getSeconds.js +8 -0
- package/dist/node_modules/date-fns/getWeek.cjs +1 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/getWeekYear.js +17 -0
- package/dist/node_modules/date-fns/getYear.cjs +1 -0
- package/dist/node_modules/date-fns/getYear.js +8 -0
- package/dist/node_modules/date-fns/isAfter.cjs +1 -0
- package/dist/node_modules/date-fns/isAfter.js +9 -0
- package/dist/node_modules/date-fns/isBefore.cjs +1 -0
- package/dist/node_modules/date-fns/isBefore.js +9 -0
- package/dist/node_modules/date-fns/isDate.cjs +1 -0
- package/dist/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/date-fns/isEqual.cjs +1 -0
- package/dist/node_modules/date-fns/isEqual.js +9 -0
- package/dist/node_modules/date-fns/isSameQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/isSameQuarter.js +9 -0
- package/dist/node_modules/date-fns/isValid.cjs +1 -0
- package/dist/node_modules/date-fns/isValid.js +12 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +40 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js +103 -0
- package/dist/node_modules/date-fns/parse.cjs +1 -0
- package/dist/node_modules/date-fns/parse.js +90 -0
- package/dist/node_modules/date-fns/set.cjs +1 -0
- package/dist/node_modules/date-fns/set.js +11 -0
- package/dist/node_modules/date-fns/setDay.cjs +1 -0
- package/dist/node_modules/date-fns/setDay.js +12 -0
- package/dist/node_modules/date-fns/setHours.cjs +1 -0
- package/dist/node_modules/date-fns/setHours.js +9 -0
- package/dist/node_modules/date-fns/setISODay.cjs +1 -0
- package/dist/node_modules/date-fns/setISODay.js +11 -0
- package/dist/node_modules/date-fns/setISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/setISOWeek.js +10 -0
- package/dist/node_modules/date-fns/setMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/setMilliseconds.js +9 -0
- package/dist/node_modules/date-fns/setMinutes.cjs +1 -0
- package/dist/node_modules/date-fns/setMinutes.js +9 -0
- package/dist/node_modules/date-fns/setMonth.cjs +1 -0
- package/dist/node_modules/date-fns/setMonth.js +13 -0
- package/dist/node_modules/date-fns/setSeconds.cjs +1 -0
- package/dist/node_modules/date-fns/setSeconds.js +9 -0
- package/dist/node_modules/date-fns/setWeek.cjs +1 -0
- package/dist/node_modules/date-fns/setWeek.js +10 -0
- package/dist/node_modules/date-fns/setYear.cjs +1 -0
- package/dist/node_modules/date-fns/setYear.js +10 -0
- package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/date-fns/startOfMonth.cjs +1 -0
- package/dist/node_modules/date-fns/startOfMonth.js +9 -0
- package/dist/node_modules/date-fns/startOfQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/startOfQuarter.js +9 -0
- package/dist/node_modules/date-fns/startOfWeek.cjs +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/node_modules/date-fns/startOfWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/date-fns/sub.cjs +1 -0
- package/dist/node_modules/date-fns/sub.js +19 -0
- package/dist/node_modules/date-fns/subDays.cjs +1 -0
- package/dist/node_modules/date-fns/subDays.js +8 -0
- package/dist/node_modules/date-fns/subMonths.cjs +1 -0
- package/dist/node_modules/date-fns/subMonths.js +8 -0
- package/dist/node_modules/date-fns/subYears.cjs +1 -0
- package/dist/node_modules/date-fns/subYears.js +8 -0
- package/dist/node_modules/date-fns/toDate.cjs +1 -0
- package/dist/node_modules/date-fns/toDate.js +8 -0
- package/dist/node_modules/date-fns/transpose.cjs +1 -0
- package/dist/node_modules/date-fns/transpose.js +18 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +629 -622
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +19 -17
- package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -1
- package/dist/node_modules/qrcode/lib/core/byte-data.js +6 -7
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +1 -1
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3 -3
- 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 +3356 -3363
- 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/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +16 -15
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +13 -12
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +12 -11
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +10 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +11 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +8 -7
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +17 -17
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +5 -3
- 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 +17 -16
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +15 -14
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +11 -8
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +7 -6
- 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 +9 -8
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -4
- 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 +25 -23
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +22 -20
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +87 -93
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +142 -73
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +110 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -7
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +19 -18
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +127 -135
- 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 +2 -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 -0
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.js +5 -5
- 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 +75 -69
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +28 -27
- 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 +13 -12
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +3 -2
- 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 -0
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +3 -2
- 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 +7 -6
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +12 -9
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +3819 -3782
- package/dist/style.css +1 -1
- package/dist/tickets.controller-CB549rZT.mjs +402 -0
- package/dist/tickets.controller-yqXXLR62.js +401 -0
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/package.json +24 -25
- package/src/builder/webpack/webpack.config.base.js +2 -2
- package/src/builder/webpack/webpack.config.client.js +1 -1
- package/src/builder/webpack/webpack.config.spa.js +0 -6
- package/src/components/AskToLogin/AskToLogin.vue +1 -1
- package/src/components/EditImages/EditImages.vue +1 -1
- package/src/components/Error/Error.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +1 -1
- package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
- package/src/modules/auth/views/components/pages/EnterPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
- package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +2 -2
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +2 -2
- package/src/modules/events/components/pages/EditEvent.vue +12 -1
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +1 -1
- package/src/modules/events/components/sections/HeroEvent.vue +4 -4
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
- package/src/modules/events/components/sections/SectionSpecialGuests.vue +1 -1
- package/src/modules/events/controllers/utils/templateEmail.js +1 -1
- package/src/modules/events/controllers/utils/templateTicket.js +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
- package/src/modules/globals/views/components/blocks/CardHeader.vue +2 -2
- package/src/modules/globals/views/components/layouts/App.vue +15 -39
- package/src/modules/globals/views/components/layouts/Client.vue +89 -45
- package/src/modules/globals/views/components/partials/Footer.vue +7 -7
- package/src/modules/globals/views/components/partials/NavigationBar.vue +39 -16
- package/src/modules/globals/views/components/sections/Walkthrough.vue +2 -2
- package/src/modules/landing/components/sections/Examples.vue +1 -1
- package/src/modules/landing/components/sections/HowItWorksSection.vue +3 -3
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +1 -1
- package/src/modules/landing/components/sections/InstagramSection.vue +2 -2
- package/src/modules/landing/components/sections/MobileApp.vue +1 -1
- package/src/modules/landing/components/sections/SectionEarn.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +3 -3
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +7 -7
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +3 -4
- package/src/modules/orders/components/pages/Orders.vue +0 -3
- package/src/modules/orders/components/pages/Orders_refact.vue +7 -7
- package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
- package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
- package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/blocks/EditFilters.vue +1 -1
- package/src/modules/products/components/blocks/Images360.vue +1 -1
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +1 -1
- package/src/modules/products/components/sections/ProductInformationSection.vue +5 -5
- package/src/modules/products/components/sections/SectionProduct.vue +1 -1
- package/src/modules/spots/components/blocks/SpotSub.vue +1 -1
- package/src/modules/users/components/blocks/CardUser.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +1 -1
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
- package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js
CHANGED
@@ -1,235 +1,227 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as v, onMounted as W, computed as F, openBlock as r, createElementBlock as c, createElementVNode as t, createTextVNode as P, toDisplayString as a, Fragment as I, renderList as D, normalizeClass as L, createCommentVNode as h, createVNode as M, unref as f, withCtx as j, createBlock as x, pushScopeId as G, popScopeId as J } from "vue";
|
2
2
|
import { useRouter as K, useRoute as Q } from "vue-router";
|
3
|
-
import X from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
4
|
-
/* empty css */
|
5
3
|
/* empty css */
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import { state as
|
13
|
-
import { actions as
|
14
|
-
import { actions as
|
4
|
+
import X from "../../../../components/Popup/Popup.vue2.js";
|
5
|
+
import Y from "../../../icons/entities/IconTime.vue.js";
|
6
|
+
import T from "../blocks/CardOrderItem.vue.js";
|
7
|
+
import Z from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
8
|
+
import tt from "../../../chats/components/pages/ChatPage.vue.js";
|
9
|
+
import st from "../blocks/StatusHistory.vue.js";
|
10
|
+
import { state as et } from "../../../globals/views/store/globals.js";
|
11
|
+
import { actions as q, state as g } from "../../store/orders.js";
|
12
|
+
import { actions as at } from "../../../products/store/products.js";
|
15
13
|
import { actions as it } from "../../../organizations/store/organizations.js";
|
16
14
|
/* empty css */
|
17
|
-
import
|
18
|
-
const
|
15
|
+
import lt from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
16
|
+
const l = (k) => (G("data-v-5785b6f6"), k = k(), J(), k), rt = {
|
19
17
|
key: 0,
|
20
18
|
class: "pd-thin"
|
21
|
-
},
|
19
|
+
}, nt = {
|
22
20
|
key: 0,
|
23
21
|
class: "mn-b-thin pos-relative w-100 bg-main radius-big pd-medium"
|
24
|
-
},
|
22
|
+
}, ot = { class: "mn-b-small flex-nowrap flex" }, ut = { class: "t-medium p-medium" }, dt = { class: "p-small t-transp" }, ct = { class: "flex-nowrap flex gap-thin pos-relative" }, mt = { class: "bg-light mn-b-thin pd-thin radius-extra flex-nowrap flex" }, pt = { class: "w-max flex-v-center gap-thin flex-nowrap flex pd-thin radius-small bg-white-transp-20" }, _t = { class: "t-medium mn-r-auto" }, ht = /* @__PURE__ */ l(() => /* @__PURE__ */ t("span", { class: "p-small t-transp" }, "Estimated Arrival", -1)), bt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("br", null, null, -1)), vt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "t-medium p-medium mn-b-thin" }, " Positions ", -1)), ft = { class: "bg-light pd-small radius-small flex gap-thin flex-column mn-b-semi" }, gt = {
|
25
23
|
key: 1,
|
26
24
|
class: "gap-thin cols-2"
|
27
|
-
},
|
25
|
+
}, wt = { class: "w-100" }, yt = { class: "mn-b-thin bg-light w-100 o-hidden radius-medium" }, kt = { class: "pd-small flex-nowrap flex" }, xt = { class: "mn-r-auto" }, Ct = /* @__PURE__ */ l(() => /* @__PURE__ */ t("span", { class: "d-block t-medium p-medium" }, "Order is", -1)), Ot = /* @__PURE__ */ l(() => /* @__PURE__ */ t("span", { class: "t-lh-075 h2 d-block mn-b-small" }, "created", -1)), St = { class: "pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max" }, Nt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Pt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "w-100 t-medium p-medium" }, " Phone ", -1)), It = { class: "w-100 t-right" }, Dt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Mt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "t-medium p-medium" }, " Address ", -1)), $t = { class: "w-100 t-right" }, zt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Et = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "mn-b-small t-medium p-medium" }, " Delivery ", -1)), Bt = { class: "w-100 t-right mn-b-small" }, At = {
|
28
26
|
key: 2,
|
29
27
|
class: "t-transp"
|
30
|
-
}, Rt = { class: "bg-light radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100" },
|
28
|
+
}, Rt = { class: "bg-light radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100" }, Vt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Order Summary", -1)), Ft = { class: "flex gap-thin flex-column mn-b-semi" }, Lt = { class: "mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100" }, Tt = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, qt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "In total", -1)), Ht = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, Ut = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "Delivery", -1)), Wt = { class: "pd-small flex-bottom flex" }, jt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "In total to pay", -1)), Gt = { class: "p-big t-semi" }, Jt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Chat With Us", -1)), Kt = {
|
31
29
|
__name: "OrderBackoffice",
|
32
30
|
setup(k) {
|
33
31
|
K();
|
34
|
-
const w = Q(), e =
|
35
|
-
function
|
36
|
-
|
32
|
+
const w = Q(), e = v(null), C = v(null), o = v(null), u = ["created", "confirmed", "packing", "in delivery", "delivered"], $ = ["Created", "Confirmed", "Packing", "In Delivery", "Delivered"], O = (s) => u.slice(s).includes(e.value.status), S = v(!1), z = v(null), N = v([]);
|
33
|
+
function H(s) {
|
34
|
+
S.value = !0, typeof s == "number" && (z.value = s);
|
37
35
|
}
|
38
|
-
function
|
39
|
-
|
36
|
+
function E() {
|
37
|
+
S.value = !1, z.value = null;
|
40
38
|
}
|
41
39
|
W(async () => {
|
42
|
-
var
|
43
|
-
e.value = await
|
40
|
+
var i, n;
|
41
|
+
e.value = await q.read({ _id: w.params.order }), e.value = e.value[0], C.value = await at.read({
|
44
42
|
organization: e.value.owner.target._id,
|
45
43
|
limit: 1e3
|
46
|
-
}), console.log(
|
47
|
-
const s =
|
48
|
-
console.log(s),
|
49
|
-
const
|
44
|
+
}), console.log(C.value);
|
45
|
+
const s = C.value.reduce((m, p) => (m[p._id] = p, m), {});
|
46
|
+
console.log(s), N.value = e.value.positions.map(({ _id: m, quantity: p }) => {
|
47
|
+
const _ = s[m];
|
50
48
|
return {
|
51
|
-
name:
|
52
|
-
images:
|
53
|
-
price:
|
54
|
-
_id:
|
55
|
-
quantity:
|
49
|
+
name: _.name,
|
50
|
+
images: _.images,
|
51
|
+
price: _.price,
|
52
|
+
_id: _._id,
|
53
|
+
quantity: p
|
56
54
|
};
|
57
|
-
}),
|
58
|
-
_id: (
|
59
|
-
location: (
|
55
|
+
}), o.value = await it.read({
|
56
|
+
_id: (i = e.value) == null ? void 0 : i.owner.target._id,
|
57
|
+
location: (n = et.position) == null ? void 0 : n.location
|
60
58
|
});
|
61
59
|
});
|
62
|
-
let
|
60
|
+
let B = F(() => {
|
63
61
|
var s;
|
64
|
-
return Number((s = e.value) == null ? void 0 : s.positions.reduce((
|
62
|
+
return Number((s = e.value) == null ? void 0 : s.positions.reduce((i, n) => i + n.price * n.quantity, 0));
|
65
63
|
});
|
66
|
-
|
64
|
+
F(() => {
|
67
65
|
var s;
|
68
|
-
return Number((s = e.value) == null ? void 0 : s.positions.reduce((
|
66
|
+
return Number((s = e.value) == null ? void 0 : s.positions.reduce((i, n) => i + n.quantity, 0));
|
69
67
|
});
|
70
68
|
function y(s) {
|
71
|
-
const
|
72
|
-
return
|
69
|
+
const i = u.indexOf(s);
|
70
|
+
return i !== -1 && i + 1 < u.length ? u[i + 1] : null;
|
73
71
|
}
|
74
|
-
function
|
75
|
-
const
|
76
|
-
return s ?
|
72
|
+
function A(s) {
|
73
|
+
const i = u.indexOf(s);
|
74
|
+
return s ? $[i] : "";
|
77
75
|
}
|
78
|
-
async function
|
76
|
+
async function U() {
|
79
77
|
const s = y(g.current.status);
|
80
|
-
s ? (g.current.status = s, await
|
78
|
+
s ? (g.current.status = s, await q.update(g.current)) : console.error("Next status is void. Must handle somehow."), E();
|
81
79
|
}
|
82
|
-
return (s,
|
83
|
-
var
|
84
|
-
return e.value &&
|
85
|
-
e.value ? (
|
86
|
-
t("div",
|
80
|
+
return (s, i) => {
|
81
|
+
var n, m, p, _, R, V;
|
82
|
+
return e.value && o.value ? (r(), c("div", rt, [
|
83
|
+
e.value ? (r(), c("div", nt, [
|
84
|
+
t("div", ot, [
|
87
85
|
t("p", ut, [
|
88
|
-
|
89
|
-
t("span",
|
86
|
+
P(" Order No: "),
|
87
|
+
t("span", dt, "#" + a(e.value._id), 1)
|
90
88
|
])
|
91
89
|
]),
|
92
|
-
t("div",
|
93
|
-
(
|
94
|
-
key:
|
90
|
+
t("div", ct, [
|
91
|
+
(r(), c(I, null, D(u, (b, d) => t("div", {
|
92
|
+
key: d,
|
95
93
|
class: "w-20"
|
96
94
|
}, [
|
97
95
|
t("div", {
|
98
|
-
class:
|
96
|
+
class: L([
|
99
97
|
"bg-light br-anim br-glow radius-extra h-1r w-100",
|
100
|
-
{ "br-glow-anim":
|
101
|
-
{ "t-transp": !
|
102
|
-
{ blink: e.value.status === d
|
98
|
+
{ "br-glow-anim": O(d) },
|
99
|
+
{ "t-transp": !O(d) },
|
100
|
+
{ blink: e.value.status === u[d] && y(e.value.status) }
|
103
101
|
])
|
104
102
|
}, null, 2),
|
105
103
|
t("div", {
|
106
|
-
class:
|
107
|
-
},
|
104
|
+
class: L([{ "t-transp": !O(d) }, "mn-t-thin p-small t-medium uppercase"])
|
105
|
+
}, a($[d]), 3)
|
108
106
|
])), 64))
|
109
107
|
])
|
110
|
-
])) :
|
111
|
-
t("div",
|
112
|
-
t("div",
|
113
|
-
|
108
|
+
])) : h("", !0),
|
109
|
+
t("div", mt, [
|
110
|
+
t("div", pt, [
|
111
|
+
M(Y, {
|
114
112
|
class: "i-semi t-transp",
|
115
113
|
fill: "rgb(var(--black)"
|
116
114
|
}),
|
117
|
-
t("p",
|
115
|
+
t("p", _t, [
|
116
|
+
ht,
|
118
117
|
bt,
|
119
|
-
|
120
|
-
F(l(s.formatDate(e.value.deadline)), 1)
|
118
|
+
P(a(s.formatDate(e.value.deadline)), 1)
|
121
119
|
])
|
122
120
|
]),
|
123
|
-
y(e.value.status) &&
|
121
|
+
y(e.value.status) && f(w).name === "Order Edit" ? (r(), c("button", {
|
124
122
|
key: 0,
|
125
|
-
onClick:
|
123
|
+
onClick: H,
|
126
124
|
class: "mn-l-auto bg-black t-white button"
|
127
|
-
}, " Mark as " +
|
125
|
+
}, " Mark as " + a(A(y(e.value.status))), 1)) : h("", !0)
|
128
126
|
]),
|
129
|
-
|
127
|
+
M(X, {
|
130
128
|
title: "Change status",
|
131
|
-
onClosePopup:
|
132
|
-
isPopupOpen:
|
129
|
+
onClosePopup: E,
|
130
|
+
isPopupOpen: S.value,
|
133
131
|
class: "bg-white w-min-30r w-max-30r radius-big pd-big"
|
134
132
|
}, {
|
135
133
|
default: j(() => [
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
class: "z-index-3 bg-light radius-small pd-small mn-b-thin mn-b-semi"
|
142
|
-
}, null, 8, ["modelValue"]),
|
143
|
-
ft,
|
144
|
-
t("ul", gt, [
|
145
|
-
(n(!0), m(I, null, D(P.value, (u, c) => (n(), C(L, {
|
146
|
-
key: u._id,
|
134
|
+
P(a(e.value.deadline) + " ", 1),
|
135
|
+
vt,
|
136
|
+
t("ul", ft, [
|
137
|
+
(r(!0), c(I, null, D(N.value, (b, d) => (r(), x(T, {
|
138
|
+
key: b._id,
|
147
139
|
editable: !1,
|
148
|
-
product:
|
140
|
+
product: b
|
149
141
|
}, null, 8, ["product"]))), 128))
|
150
142
|
]),
|
151
143
|
t("button", {
|
152
|
-
onClick:
|
144
|
+
onClick: U,
|
153
145
|
class: "w-100 bg-black-small t-white button"
|
154
|
-
},
|
146
|
+
}, a("Confirm Changing to " + A(y(e.value.status))), 1)
|
155
147
|
]),
|
156
148
|
_: 1
|
157
149
|
}, 8, ["isPopupOpen"]),
|
158
|
-
e.value ? (
|
159
|
-
t("div",
|
160
|
-
|
150
|
+
e.value ? (r(), c("div", gt, [
|
151
|
+
t("div", wt, [
|
152
|
+
o.value[0] ? (r(), x(Z, {
|
161
153
|
key: 0,
|
162
|
-
organization:
|
154
|
+
organization: o.value[0],
|
163
155
|
showRating: !0,
|
164
156
|
showFollowers: !1,
|
165
157
|
showProducts: !1,
|
166
158
|
class: "bg-light mn-b-thin w-100 o-hidden radius-big pd-small"
|
167
|
-
}, null, 8, ["organization"])) :
|
168
|
-
t("div",
|
169
|
-
t("div",
|
170
|
-
t("div",
|
159
|
+
}, null, 8, ["organization"])) : h("", !0),
|
160
|
+
t("div", yt, [
|
161
|
+
t("div", kt, [
|
162
|
+
t("div", xt, [
|
163
|
+
Ct,
|
171
164
|
Ot,
|
172
|
-
St,
|
173
|
-
t("p", Nt, l(s.formatDate(e.value.createdAt)), 1)
|
165
|
+
t("p", St, a(s.formatDate(e.value.createdAt)), 1)
|
174
166
|
])
|
175
167
|
]),
|
176
|
-
t("div",
|
177
|
-
|
178
|
-
t("p",
|
168
|
+
t("div", Nt, [
|
169
|
+
Pt,
|
170
|
+
t("p", It, a(((n = e.value.customer.target) == null ? void 0 : n.number) || "Not specified"), 1)
|
179
171
|
]),
|
180
|
-
t("div",
|
181
|
-
|
182
|
-
t("p",
|
172
|
+
t("div", Dt, [
|
173
|
+
Mt,
|
174
|
+
t("p", $t, a(e.value.delivery.address ? e.value.delivery.address.slice(0, 64) : "Not specified"), 1)
|
183
175
|
]),
|
184
|
-
t("div",
|
176
|
+
t("div", zt, [
|
185
177
|
Et,
|
186
|
-
t("p", Bt,
|
178
|
+
t("p", Bt, a(e.value.delivery.type ? e.value.delivery.type : "Not specified"), 1)
|
187
179
|
])
|
188
180
|
]),
|
189
|
-
g.current.status_history ? (
|
181
|
+
g.current.status_history ? (r(), x(st, {
|
190
182
|
key: 1,
|
191
|
-
statuses:
|
183
|
+
statuses: u,
|
192
184
|
statusHistory: g.current.status_history,
|
193
185
|
statusCurrent: g.current.status,
|
194
|
-
edit:
|
195
|
-
}, null, 8, ["statusHistory", "statusCurrent", "edit"])) :
|
196
|
-
s.payment && s.payment.Status === "CONFIRMED" ? (
|
186
|
+
edit: f(w).name === "Order Edit"
|
187
|
+
}, null, 8, ["statusHistory", "statusCurrent", "edit"])) : h("", !0),
|
188
|
+
s.payment && s.payment.Status === "CONFIRMED" ? (r(), c("span", At, "Paid")) : h("", !0)
|
197
189
|
]),
|
198
190
|
t("div", Rt, [
|
199
|
-
|
200
|
-
t("ul",
|
201
|
-
(
|
202
|
-
key:
|
191
|
+
Vt,
|
192
|
+
t("ul", Ft, [
|
193
|
+
(r(!0), c(I, null, D(N.value, (b, d) => (r(), x(T, {
|
194
|
+
key: b._id,
|
203
195
|
editable: !1,
|
204
|
-
product:
|
196
|
+
product: b
|
205
197
|
}, null, 8, ["product"]))), 128))
|
206
198
|
]),
|
207
199
|
t("div", Lt, [
|
208
200
|
t("div", Tt, [
|
209
|
-
|
210
|
-
t("p", null,
|
201
|
+
qt,
|
202
|
+
t("p", null, a(f(B)) + " " + a(s.returnCurrency()), 1)
|
211
203
|
]),
|
212
|
-
t("div",
|
213
|
-
|
214
|
-
t("p", null,
|
204
|
+
t("div", Ht, [
|
205
|
+
Ut,
|
206
|
+
t("p", null, a(s.returnCurrency()) + " " + a(Math.trunc(100 + 20 * ((m = o.value[0]) == null ? void 0 : m.distance) - 7, 5 * (((p = o.value[0]) == null ? void 0 : p.distance) / 10))), 1)
|
215
207
|
]),
|
216
|
-
t("div",
|
217
|
-
|
218
|
-
t("p",
|
208
|
+
t("div", Wt, [
|
209
|
+
jt,
|
210
|
+
t("p", Gt, a(s.returnCurrency()) + " " + a(Math.trunc(100 + 20 * ((_ = o.value[0]) == null ? void 0 : _.distance) - 7, 5 * (((R = o.value[0]) == null ? void 0 : R.distance) / 10)) + f(B)), 1)
|
219
211
|
])
|
220
212
|
]),
|
221
|
-
|
222
|
-
|
223
|
-
username:
|
224
|
-
chatID:
|
213
|
+
Jt,
|
214
|
+
M(tt, {
|
215
|
+
username: f(w).name === "Order Status" ? ((V = e.value.user) == null ? void 0 : V.name) || "User" : "Weeder Support",
|
216
|
+
chatID: f(w).params.order,
|
225
217
|
class: "radius-semi bg-white o-hidden"
|
226
218
|
}, null, 8, ["username", "chatID"])
|
227
219
|
])
|
228
|
-
])) :
|
229
|
-
])) :
|
220
|
+
])) : h("", !0)
|
221
|
+
])) : h("", !0);
|
230
222
|
};
|
231
223
|
}
|
232
|
-
},
|
224
|
+
}, cs = /* @__PURE__ */ lt(Kt, [["__scopeId", "data-v-5785b6f6"]]);
|
233
225
|
export {
|
234
|
-
|
226
|
+
cs as default
|
235
227
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router");;/* empty css */const f=require("../../../../components/Block/Block.vue.cjs"),d=require("../../store/orders.cjs"),y=require("../../../auth/views/store/auth.cjs");;/* empty css */const N=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),b=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),E=require("../../../icons/entities/IconTime.vue.cjs"),k={class:"pd-thin"},w={class:"gap-micro flex-nowrap flex"},S={class:"w-100 bg-white radius-small pd-small"},D=e.createElementVNode("p",{class:"mn-b-thin"},"Total",-1),B={class:"w-100 bg-white radius-small pd-small"},x=e.createElementVNode("p",{class:"mn-b-thin"},"Paid",-1),C={class:"w-100 bg-white radius-small pd-small"},q=e.createElementVNode("p",{class:"mn-b-thin"},"Unpaid",-1),P={class:"mn-b-small pd-small bg-white radius-small flex-nowrap flex"},T={class:"w-100"},O={class:"mn-b-thin"},F={class:"t-truncate"},A={class:"w-100 t-right"},M={class:"mn-b-thin"},U={class:"cols-1 mn-b-small gap-thin pd-small bg-white radius-small"},L={class:"mn-r-auto"},R={class:"t-right"},z={class:"t-transp"},H={key:0},I={class:"mn-r-auto"},$={class:"t-right"},j={class:"t-transp"},G={class:"pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex"},J={class:"t-medium mn-r-auto"},K={class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},Q=e.createElementVNode("span",{class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red"}," Unpaid ",-1),W={key:0,class:"pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"},X=e.createElementVNode("p",{class:"mn-b-thin t-transp uppercase p-small t-medium"},"Comment",-1),Y={__name:"Orders",setup(Z){const h=p.useRoute();p.useRouter();const i=e.ref(!1),o=e.ref("all"),m=e.computed(()=>g(d.state.all)),_=e.computed(()=>v(d.state.all,"unpaid"));function g(a){return a.reduce((s,r)=>s+r.positions.reduce((l,t)=>l+t.price,0),0)}function v(a,s){return a.reduce((r,l)=>l.payment.status===s?r+l.positions.reduce((t,c)=>t+c.price,0):r,0)}return e.onMounted(async()=>{}),(a,s)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(b.default,{title:"Orders","onUpdate:tabs_current":s[0]||(s[0]=l=>o.value=l),tabs_current:o.value,tabs:[{name:"All",value:"all"},{name:"Created",value:"created"},{name:"Confirmed",value:"confirmed"},{name:"Preparing",value:"preparing"},{name:"Prepared",value:"prepared"},{name:"In delivery",value:"in delivery"},{name:"Delivered",value:"delivered"},{name:"Closed",value:"closed"}],actions:[{to:{name:"AdminOrderAdd"},label:"Create Order"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current"]),e.createVNode(f.default,{title:"Balance",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("div",S,[D,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(m.value)),1)]),e.createElementVNode("div",B,[x,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(_.value)),1)]),e.createElementVNode("div",C,[q,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(m.value)),1)])])]),_:1}),e.createVNode(V.default,{search:!0,states:{empty:{title:"No Orders Found",description:"Currently, there are no orders."}},store:{read:l=>d.actions.read(l)},options:{limit:15,owner:e.unref(h).params._id,...o.value!=="all"&&{status:o.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:l})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,t=>(e.openBlock(),e.createBlock(r,{to:{name:"Order Edit",params:{order:t._id}},class:"bg-light pos-relative pd-medium radius-big"},{default:e.withCtx(()=>{var c;return[e.createVNode(N.default,{entity:t,entityType:"order",user:y.state.user,owner:t.creator,creator:t.creator,date:t.createdAt,class:"mn-b-small"},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",P,[e.createElementVNode("div",T,[e.createElementVNode("h3",O,e.toDisplayString(((c=t.customer.target.profile)==null?void 0:c.name)||t.customer.target.phone||t.customer.target.email||"No name"),1),e.createElementVNode("p",F,e.toDisplayString(t.delivery.address||"Not specified"),1)]),e.createElementVNode("div",A,[e.createElementVNode("h3",M,e.toDisplayString(a.returnCurrency())+e.toDisplayString(d.getters.getTotal(t.positions)),1),e.createElementVNode("p",null,"#"+e.toDisplayString(t._id.slice(0,4)+"..."+t._id.slice(-4)),1)])]),e.createElementVNode("div",U,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(0,2),(n,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"w-100 flex"},[e.createElementVNode("p",L,e.toDisplayString(n.name),1),e.createElementVNode("p",R,[e.createTextVNode(e.toDisplayString(n.quantity)+" "+e.toDisplayString(n.type)+" x "+e.toDisplayString(n.price)+" ",1),e.createElementVNode("span",z,e.toDisplayString(a.returnCurrency()),1)])]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value&&t.positions.length>2?(e.openBlock(),e.createElementBlock("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(2),(n,u)=>(e.openBlock(),e.createElementBlock("div",{key:u+2,class:"w-100 flex"},[e.createElementVNode("p",I,e.toDisplayString(n.name),1),e.createElementVNode("p",$,[e.createTextVNode(e.toDisplayString(n.quantity)+" "+e.toDisplayString(n.type)+" x "+e.toDisplayString(n.price)+" ",1),e.createElementVNode("span",j,e.toDisplayString(a.returnCurrency()),1)])]))),128))])):e.createCommentVNode("",!0)]),_:2},1024),t.positions.length>2?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[1]||(s[1]=e.withModifiers(n=>i.value=!i.value,["prevent"])),class:"radius-big bg-light-transp-50 pd-nano w-100 flex-center flex"},e.toDisplayString(i.value?"Hide":`+${t.positions.length-2} more`),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",G,[e.createVNode(E.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),e.createElementVNode("p",J,e.toDisplayString(a.formatDate(t.deadline)),1),e.createElementVNode("span",K,e.toDisplayString(t.status),1),Q]),t.comment?(e.openBlock(),e.createElementBlock("div",W,[X,e.createElementVNode("p",null,e.toDisplayString(t.comment),1)])):e.createCommentVNode("",!0)]}),_:2},1032,["to"]))),256))]),_:1},8,["store","options"])])}}};exports.default=Y;
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import { ref as w, computed as y, onMounted as $, resolveComponent as O, openBlock as i, createElementBlock as r, createVNode as d, withCtx as _, createElementVNode as e, toDisplayString as s, unref as A, Fragment as f, renderList as v, createBlock as B, createTextVNode as x, Transition as U, createCommentVNode as g, withModifiers as V } from "vue";
|
2
2
|
import { useRoute as D, useRouter as E } from "vue-router";
|
3
|
-
import "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
4
|
-
/* empty css */
|
5
3
|
/* empty css */
|
6
4
|
import q from "../../../../components/Block/Block.vue.js";
|
7
5
|
import { state as k, actions as z, getters as F } from "../../store/orders.js";
|
@@ -14,7 +12,7 @@ import H from "../../../icons/entities/IconTime.vue.js";
|
|
14
12
|
const L = { class: "pd-thin" }, j = { class: "gap-micro flex-nowrap flex" }, G = { class: "w-100 bg-white radius-small pd-small" }, J = /* @__PURE__ */ e("p", { class: "mn-b-thin" }, "Total", -1), K = { class: "w-100 bg-white radius-small pd-small" }, Q = /* @__PURE__ */ e("p", { class: "mn-b-thin" }, "Paid", -1), W = { class: "w-100 bg-white radius-small pd-small" }, X = /* @__PURE__ */ e("p", { class: "mn-b-thin" }, "Unpaid", -1), Y = { class: "mn-b-small pd-small bg-white radius-small flex-nowrap flex" }, Z = { class: "w-100" }, ee = { class: "mn-b-thin" }, te = { class: "t-truncate" }, se = { class: "w-100 t-right" }, ae = { class: "mn-b-thin" }, ne = { class: "cols-1 mn-b-small gap-thin pd-small bg-white radius-small" }, le = { class: "mn-r-auto" }, ie = { class: "t-right" }, re = { class: "t-transp" }, oe = { key: 0 }, ce = { class: "mn-r-auto" }, de = { class: "t-right" }, me = { class: "t-transp" }, ue = { class: "pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex" }, pe = { class: "t-medium mn-r-auto" }, _e = { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main" }, he = /* @__PURE__ */ e("span", { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red" }, " Unpaid ", -1), fe = {
|
15
13
|
key: 0,
|
16
14
|
class: "pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"
|
17
|
-
}, ve = /* @__PURE__ */ e("p", { class: "mn-b-thin t-transp uppercase p-small t-medium" }, "Comment", -1),
|
15
|
+
}, ve = /* @__PURE__ */ e("p", { class: "mn-b-thin t-transp uppercase p-small t-medium" }, "Comment", -1), Ae = {
|
18
16
|
__name: "Orders",
|
19
17
|
setup(ge) {
|
20
18
|
const C = D();
|
@@ -182,5 +180,5 @@ const L = { class: "pd-thin" }, j = { class: "gap-micro flex-nowrap flex" }, G =
|
|
182
180
|
}
|
183
181
|
};
|
184
182
|
export {
|
185
|
-
|
183
|
+
Ae as default
|
186
184
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),d=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),u=require("../../../../components/Chips/Chips.vue.cjs"),m=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),h=require("../../../icons/entities/IconPrice.vue.cjs"),g=require("../../../icons/entities/IconShopcart.vue.cjs"),f=require("../../../icons/entities/IconTime.vue.cjs"),k=require("../elements/ButtonToggleMembership.vue.cjs"),w={class:"flex pos-relative"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),d=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),u=require("../../../../components/Chips/Chips.vue.cjs"),m=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),h=require("../../../icons/entities/IconPrice.vue.cjs"),g=require("../../../icons/entities/IconShopcart.vue.cjs"),f=require("../../../icons/entities/IconTime.vue.cjs"),k=require("../elements/ButtonToggleMembership.vue.cjs"),w={class:"flex pos-relative"},z=["src"],b={class:"pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100"},B={class:"h4 t-truncate"},y={key:1,class:"flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},p={class:"mn-t-thin mn-b-thin"},V={key:0,class:"mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},v={class:"mn-r-thin"},E={key:0,class:"t-transp mn-r-thin"},N={key:1,class:"mn-r-thin"},x={class:"mn-r-thin"},S={class:"mn-r-thin"},C={key:1,class:"w-100 o-scroll radius-medium"},M={class:"w-max flex-nowrap flex gap-thin"},q=e.createElementVNode("button",{class:"pd-thin w-15r radius-medium bg-main button"}," View menu ",-1),O={__name:"CardOrganization",props:{user:String,organization:Object,showProducts:{type:Boolean,default:!1},showFollowers:{type:Boolean,default:!0},showRating:{type:Boolean,default:!1},showFeatured:{type:Boolean,default:!0},showTags:{type:Boolean,default:!0}},emits:["updateMembership"],setup(t,{emit:l}){const s=l;return c.useRouter(),(o,i)=>{var a,r;return e.openBlock(),e.createElementBlock("div",{class:"o-hidden pos-relative cursor-pointer bg-light pd-small",onClick:i[1]||(i[1]=n=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",w,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,loading:"lazy",src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,z)):(e.openBlock(),e.createBlock(m.default,{key:1,class:"h-4r w-4r"})),e.createElementVNode("div",b,[e.createElementVNode("p",B,e.toDisplayString(t.organization.profile.name),1),t.showTags&&((a=t.organization.profile.tags)==null?void 0:a.length)>0?(e.openBlock(),e.createBlock(u.default,{key:0,chips:t.organization.profile.tags.slice(0,3),class:"pos-relative p-small"},null,8,["chips"])):e.createCommentVNode("",!0),t.showFollowers?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("p",p,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),(r=t.user)!=null&&r._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(k.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[0]||(i[0]=n=>s("updateMembership",n,"isSubscriber","numberOfSubscribers")),class:"i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.showProducts?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(f.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",v,e.toDisplayString(t.organization.distance?t.organization.distance>50?"3-5 days":Math.ceil((10+3*t.organization.distance)/5)*5+"-"+Math.ceil((20+3*t.organization.distance)/5)*5+" MIN":"Unavailable"),1),t.organization.distance&&t.organization.distance<50?(e.openBlock(),e.createElementBlock("span",E,"|")):e.createCommentVNode("",!0),t.organization.distance&&t.organization.distance<50?(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(t.organization.distance?t.organization.distance.toFixed(1)+" KM":""),1)):e.createCommentVNode("",!0),e.createVNode(h.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",x,e.toDisplayString(o.returnCurrency())+"500 ",1),e.createVNode(g.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",S,e.toDisplayString(t.organization.products.length)+" products",1)])):e.createCommentVNode("",!0),t.showProducts&&t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products.slice(0,5),n=>(e.openBlock(),e.createBlock(d.default,{onClick:e.withModifiers(P=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:n._id}}),["stop"]),key:n._id,editable:!1,product:n,class:"pd-thin w-15r radius-medium bg-white"},null,8,["onClick","product"]))),128)),q])])):e.createCommentVNode("",!0)])}}};exports.default=O;
|
@@ -62,6 +62,7 @@ const $ = { class: "flex pos-relative" }, O = ["src"], P = { class: "pos-relativ
|
|
62
62
|
t("div", $, [
|
63
63
|
e.organization.profile.photo && e.organization.profile.photo.length > 0 ? (i(), n("img", {
|
64
64
|
key: 0,
|
65
|
+
loading: "lazy",
|
65
66
|
src: (r.FILE_SERVER_URL || "") + e.organization.profile.photo,
|
66
67
|
class: "h-4r w-4r radius-extra bg-white"
|
67
68
|
}, null, 8, O)) : (i(), c(k, {
|
package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),a={class:"pd-small flex-nowrap flex"},n={class:"user-card__info"},s={class:"user-card__name"},c={class:"user-card__position"},o={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(l,u)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",n,[e.createElementVNode("p",s,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",c,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},d=r.default(o,[["__scopeId","data-v-aa5fbfa8"]]);exports.default=d;
|
package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as
|
1
|
+
import { openBlock as r, createElementBlock as s, createElementVNode as t, toDisplayString as a } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
import n from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
4
4
|
const o = { class: "pd-small flex-nowrap flex" }, c = { class: "user-card__info" }, m = { class: "user-card__name" }, d = { class: "user-card__position" }, p = {
|
@@ -11,14 +11,14 @@ const o = { class: "pd-small flex-nowrap flex" }, c = { class: "user-card__info"
|
|
11
11
|
// Define other props here
|
12
12
|
},
|
13
13
|
setup(e) {
|
14
|
-
return (_, i) => (
|
14
|
+
return (_, i) => (r(), s("div", o, [
|
15
15
|
t("div", c, [
|
16
|
-
t("p", m,
|
17
|
-
t("p", d,
|
16
|
+
t("p", m, a(e.department.name ? e.department.name : "Безымянный"), 1),
|
17
|
+
t("p", d, a(e.department.members ? e.department.members.length : "0") + " человек", 1)
|
18
18
|
])
|
19
19
|
]));
|
20
20
|
}
|
21
|
-
}, b = /* @__PURE__ */ n(p, [["__scopeId", "data-v-
|
21
|
+
}, b = /* @__PURE__ */ n(p, [["__scopeId", "data-v-aa5fbfa8"]]);
|
22
22
|
export {
|
23
23
|
b as default
|
24
24
|
};
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=require("../../../events/components/sections/Feed.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=,/* empty css */g=require("../../../events/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/blocks/CardSpot.vue.cjs"),B=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/views/store/auth.cjs"),s=require("../../store/organizations.cjs"),q=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),w=require("../../../spots/store/spots.cjs");;/* empty css */const N={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},V={key:0},x={__name:"Organization",setup(z){d.useRouter();const t=d.useRoute();let m=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await q.actions.read({target:t.params._id})});const a=e.ref(m);return t.query.tab=a.value,(p,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(h.default,{organization:s.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(c.default,{key:0,showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:r=>C.read(r)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>(e.openBlock(),e.createBlock(b.default,{key:i._id,blogpost:i,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),a.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(B.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>w.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,_)=>(e.openBlock(),e.createBlock(v.default,{key:_,spot:i,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=r=>p.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;
|